From f0ea55c76a0564912c2067571c35786e7298aaf6 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 13:31:23 +0900 Subject: [PATCH 1/7] release: create-freestyle-fetch 1.2.1 --- packages/create_freestyle_fetch/CHANGELOG.md | 6 ++++++ packages/create_freestyle_fetch/package.json | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/create_freestyle_fetch/CHANGELOG.md b/packages/create_freestyle_fetch/CHANGELOG.md index 4d67976..899f916 100644 --- a/packages/create_freestyle_fetch/CHANGELOG.md +++ b/packages/create_freestyle_fetch/CHANGELOG.md @@ -1,5 +1,11 @@ # create-freestyle-fetch +## 1.2.1 + +### Patch Changes + +- Handle strictNullChecks option correctly for model generation, handles nullable unions. + ## 1.2.0 ### Minor Changes diff --git a/packages/create_freestyle_fetch/package.json b/packages/create_freestyle_fetch/package.json index d741fee..4094f42 100644 --- a/packages/create_freestyle_fetch/package.json +++ b/packages/create_freestyle_fetch/package.json @@ -1,10 +1,14 @@ { "name": "create-freestyle-fetch", - "version": "1.2.0", + "version": "1.2.1", "description": "Generate freestylejs fetch client from OpenAPI spec", "author": "danpacho", "license": "MIT", - "keywords": ["openapi", "generator", "fetch"], + "keywords": [ + "openapi", + "generator", + "fetch" + ], "publishConfig": { "access": "public" }, From e4edb4c8f75616468197e3deba0677f35d9d26a2 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 13:31:35 +0900 Subject: [PATCH 2/7] chore: format --- packages/create_freestyle_fetch/package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/create_freestyle_fetch/package.json b/packages/create_freestyle_fetch/package.json index 4094f42..a26df75 100644 --- a/packages/create_freestyle_fetch/package.json +++ b/packages/create_freestyle_fetch/package.json @@ -4,11 +4,7 @@ "description": "Generate freestylejs fetch client from OpenAPI spec", "author": "danpacho", "license": "MIT", - "keywords": [ - "openapi", - "generator", - "fetch" - ], + "keywords": ["openapi", "generator", "fetch"], "publishConfig": { "access": "public" }, From 1139ee0433dc6bc6503d8d052a22ad1f13d77ad6 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 21:55:51 +0900 Subject: [PATCH 3/7] refactor: remove router structure check overhead --- packages/fetch/src/core/router.ts | 78 +++++++++++++++---------------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/packages/fetch/src/core/router.ts b/packages/fetch/src/core/router.ts index c74dd48..228ef4c 100644 --- a/packages/fetch/src/core/router.ts +++ b/packages/fetch/src/core/router.ts @@ -200,47 +200,45 @@ type BuildRouterUrlFromStructure< RouterBuilderStructure, BaseUrl extends string = '', PathParamsList extends ReadonlyArray = [], -> = RouterBuilderStructure extends BuilderStructure - ? { - [Key in keyof RouterBuilderStructure]: Key extends FetchMethod - ? RouterBuilderStructure[Key] extends FetchBuilder< - string, - unknown, - infer SearchParams, - infer Body, - infer Response, - infer IsJsonMode, - string +> = { + [Key in keyof RouterBuilderStructure]: Key extends FetchMethod + ? RouterBuilderStructure[Key] extends FetchBuilder< + string, + unknown, + infer SearchParams, + infer Body, + infer Response, + infer IsJsonMode, + string + > + ? FetchUnit< + Key, + PathParamsList[number] extends [] + ? unknown + : { + [CollectedPathParamsList in PathParamsList[number]]: Param + }, + SearchParams, + Body, + Response, + IsJsonMode, + BaseUrl + > + : never + : Key extends string + ? IsDynamicPath extends true + ? BuildRouterUrlFromStructure< + RouterBuilderStructure[Key], + `${BaseUrl}/${string}`, + readonly [...PathParamsList, GetDynamicPath] > - ? FetchUnit< - Key, - PathParamsList[number] extends [] - ? unknown - : { - [CollectedPathParamsList in PathParamsList[number]]: Param - }, - SearchParams, - Body, - Response, - IsJsonMode, - BaseUrl - > - : never - : Key extends string - ? IsDynamicPath extends true - ? BuildRouterUrlFromStructure< - RouterBuilderStructure[Key], - `${BaseUrl}/${string}`, - readonly [...PathParamsList, GetDynamicPath] - > - : BuildRouterUrlFromStructure< - RouterBuilderStructure[Key], - `${BaseUrl}/${Key}`, - PathParamsList - > - : never - } - : never + : BuildRouterUrlFromStructure< + RouterBuilderStructure[Key], + `${BaseUrl}/${Key}`, + PathParamsList + > + : never +} /** * Extract router config From 786bae2ff649bb1484c1eceec282a4110a0a5223 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 21:56:10 +0900 Subject: [PATCH 4/7] refactor: create static type-def for zod inference overhead removal --- .../src/schema_generator.ts | 57 +++++++------------ 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/packages/create_freestyle_fetch/src/schema_generator.ts b/packages/create_freestyle_fetch/src/schema_generator.ts index 461aa27..81ff5ba 100644 --- a/packages/create_freestyle_fetch/src/schema_generator.ts +++ b/packages/create_freestyle_fetch/src/schema_generator.ts @@ -2,10 +2,6 @@ import type { OpenAPIV3_1 } from 'openapi-types' import { SchemaValidationError } from './errors' // Assumed existing import { toPascalCase } from './utils' // Assumed existing -function isReferenceObject(obj: any): obj is OpenAPIV3_1.ReferenceObject { - return obj && '$ref' in obj -} - export class SchemaGenerator { private spec: OpenAPIV3_1.Document @@ -19,6 +15,10 @@ export class SchemaGenerator { this.spec = spec } + private isReferenceObject(obj: any): obj is OpenAPIV3_1.ReferenceObject { + return obj && '$ref' in obj + } + private initializeSchemaNames() { if (!this.spec.components?.schemas) return @@ -74,23 +74,18 @@ export class SchemaGenerator { const modelStrings: string[] = [`import { z } from 'zod';`] - // 4. Generate Types for Cyclic Schemas FIRST - // Use type - if (this.cyclicSchemas.size > 0) { - modelStrings.push('// Helper types for recursive schemas') - for (const name of this.cyclicSchemas) { - const pascalName = this.getSchemaName(name) - const typeDef = this.mapSchemaObjectToType(name) - modelStrings.push( - `export type ${pascalName}Model = ${typeDef};` - ) - } - modelStrings.push('') - } - - // 5. Sort schemas topologically + // 4. Sort schemas topologically const sortedSchemaNames = this.sortSchemas() + // 5. Generate Types for ALL schemas for performance + modelStrings.push('// Helper types for schemas') + for (const name of sortedSchemaNames) { + const pascalName = this.getSchemaName(name) + const typeDef = this.mapSchemaObjectToType(name) + modelStrings.push(`export type ${pascalName}Model = ${typeDef};`) + } + modelStrings.push('') + // 6. Generate Zod Schemas for (const name of sortedSchemaNames) { const zodSchema = @@ -98,18 +93,10 @@ export class SchemaGenerator { this.mapSchemaObjectToZod(name) const pascalName = this.getSchemaName(name) - if (this.cyclicSchemas.has(name)) { - // For cyclic schemas, use the explicitly generated type - modelStrings.push( - `export const ${pascalName}: z.ZodType<${pascalName}Model> = ${zodSchema};` - ) - } else { - // Standard generation - modelStrings.push(`export const ${pascalName} = ${zodSchema};`) - modelStrings.push( - `export type ${pascalName}Model = z.infer;` - ) - } + // Use explicit type for perf. + modelStrings.push( + `export const ${pascalName}: z.ZodType<${pascalName}Model> = ${zodSchema};` + ) } return modelStrings.join('\n\n') @@ -122,7 +109,7 @@ export class SchemaGenerator { const schema = schemaObject || this.spec.components?.schemas?.[name] if (!schema) return 'any' - if (isReferenceObject(schema)) { + if (this.isReferenceObject(schema)) { const { name: refName } = this.resolveRef(schema.$ref) return `${this.getSchemaName(refName)}Model` } @@ -193,14 +180,14 @@ export class SchemaGenerator { } if (schema.additionalProperties) { - const addlType = + const additionalTypes = typeof schema.additionalProperties === 'object' ? this.mapSchemaObjectToType( name, schema.additionalProperties ) : 'any' - props.push(` [key: string]: ${addlType};`) + props.push(` [key: string]: ${additionalTypes};`) } return `{\n${props.join('\n')}\n}` } @@ -271,7 +258,7 @@ export class SchemaGenerator { } // Handle References - if (isReferenceObject(schema)) { + if (this.isReferenceObject(schema)) { const { name: refName } = this.resolveRef(schema.$ref) // Track dependency From 99e90693af0e58c744e1f2a96eb29173b8343613 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 21:56:29 +0900 Subject: [PATCH 5/7] test: sync new static schema creation related schema test --- .../src/__tests__/schema_generator.test.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/create_freestyle_fetch/src/__tests__/schema_generator.test.ts b/packages/create_freestyle_fetch/src/__tests__/schema_generator.test.ts index a1836d8..5d7f422 100644 --- a/packages/create_freestyle_fetch/src/__tests__/schema_generator.test.ts +++ b/packages/create_freestyle_fetch/src/__tests__/schema_generator.test.ts @@ -690,8 +690,14 @@ describe('SchemaGenerator', () => { }) const generator = new SchemaGenerator(spec) const result = generator.generateModels() - expect(result).toContain('export const UserProfile =') - expect(result).toContain('export type UserProfileModel =') + expect(result).toContain( + 'export const UserProfile: z.ZodType = z.object({' + ) + expect(result).toContain("'name': z.string().optional()") + expect(result).toContain('});') + expect(result).toContain( + "export type UserProfileModel = {\n 'name'?: string | undefined;\n};" + ) }) it('should generate imports and exports', () => { @@ -701,10 +707,10 @@ describe('SchemaGenerator', () => { const generator = new SchemaGenerator(spec) const result = generator.generateModels() expect(result).toContain("import { z } from 'zod';") - expect(result).toContain('export const User = z.string();') expect(result).toContain( - 'export type UserModel = z.infer;' + 'export const User: z.ZodType = z.string();' ) + expect(result).toContain('export type UserModel = string;') }) it('should handle multiple schemas', () => { @@ -854,7 +860,7 @@ describe('SchemaGenerator', () => { const models = generator.generateModels() expect(models).toContain( - "export const UnionHell = z.discriminatedUnion('type', [OptionA, OptionB]);" + "export const UnionHell: z.ZodType = z.discriminatedUnion('type', [OptionA, OptionB]);" ) }) From ca58e5d34070113b0655ff3a158ad4658dd4a764 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 21:56:46 +0900 Subject: [PATCH 6/7] chore: specify type-test config --- packages/create_freestyle_fetch/vitest.config.ts | 8 -------- vitest.config.ts | 6 +++++- 2 files changed, 5 insertions(+), 9 deletions(-) delete mode 100644 packages/create_freestyle_fetch/vitest.config.ts diff --git a/packages/create_freestyle_fetch/vitest.config.ts b/packages/create_freestyle_fetch/vitest.config.ts deleted file mode 100644 index 4fd5cf0..0000000 --- a/packages/create_freestyle_fetch/vitest.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from 'vitest/config' - -export default defineConfig({ - test: { - globals: true, - environment: 'node', - }, -}) diff --git a/vitest.config.ts b/vitest.config.ts index ec22a0e..2d60461 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -10,6 +10,10 @@ export default defineConfig({ reporter: ['html', 'text'], provider: 'v8', }, + typecheck: { + enabled: true, + checker: 'tsc', + include: ['**/*.{test,spec}-d.ts'], + } }, - resolve: {}, }) From 6539c54e99e6ae6c4b61a2fa7995c3b3def11d95 Mon Sep 17 00:00:00 2001 From: Danpa_cho Date: Wed, 26 Nov 2025 21:57:01 +0900 Subject: [PATCH 7/7] test: sync generated final models --- .../__mocks__/.gen/e_commerse/models.ts | 57 +- .../__mocks__/.gen/e_commerse_2/models.ts | 113 +- .../__tests__/__mocks__/.gen/hell/models.ts | 59 +- .../__tests__/__mocks__/.gen/hell_2/models.ts | 37 +- .../__tests__/__mocks__/.gen/simple/models.ts | 28 +- .../__tests__/__mocks__/.gen/stripe/models.ts | 15917 ++++++++---- .../__mocks__/.gen/stripe_2/models.ts | 18041 ++++++++----- .../__mocks__/.gen/stripe_3/models.ts | 21039 +++++++++++----- .../__tests__/__mocks__/.gen/twilo/models.ts | 209 +- .../__mocks__/.gen/youtube/models.ts | 160 +- 10 files changed, 38337 insertions(+), 17323 deletions(-) diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse/models.ts index 0c0412c..7ea8762 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse/models.ts @@ -1,28 +1,57 @@ import { z } from 'zod'; -export const Product = z.object({ +// Helper types for schemas + +export type ProductModel = { + 'id': string; + 'name': string; + 'productType': string; + 'price': number; +}; + +export type ElectronicsProductModel = ProductModel & { + 'specs'?: { + [key: string]: string; +} | undefined; +}; + +export type ClothingProductModel = ProductModel & { + 'size'?: 'S' | 'M' | 'L' | 'XL' | undefined; + 'color'?: string | undefined; +}; + +export type OrderModel = { + 'id'?: string | undefined; + 'userId'?: string | undefined; + 'products'?: ProductModel[] | undefined; + 'total'?: number | undefined; + 'status'?: 'pending' | 'shipped' | 'delivered' | undefined; +}; + +export type ErrorModel = { + 'code'?: number | undefined; + 'message'?: string | undefined; +}; + + + +export const Product: z.ZodType = z.object({ 'id': z.uuid(), 'name': z.string(), 'productType': z.string(), 'price': z.number().min(0) }); -export type ProductModel = z.infer; - -export const ElectronicsProduct = Product.and(z.object({ +export const ElectronicsProduct: z.ZodType = Product.and(z.object({ 'specs': z.record(z.string(), z.string()).optional() })); -export type ElectronicsProductModel = z.infer; - -export const ClothingProduct = Product.and(z.object({ +export const ClothingProduct: z.ZodType = Product.and(z.object({ 'size': z.enum(['S', 'M', 'L', 'XL']).optional(), 'color': z.string().optional() })); -export type ClothingProductModel = z.infer; - -export const Order = z.object({ +export const Order: z.ZodType = z.object({ 'id': z.uuid().optional(), 'userId': z.string().optional(), 'products': z.array(Product).optional(), @@ -30,11 +59,7 @@ export const Order = z.object({ 'status': z.enum(['pending', 'shipped', 'delivered']).optional() }); -export type OrderModel = z.infer; - -export const Error = z.object({ +export const Error: z.ZodType = z.object({ 'code': z.number().int().optional(), 'message': z.string().optional() -}); - -export type ErrorModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse_2/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse_2/models.ts index 97579d4..7839a0f 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse_2/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/e_commerse_2/models.ts @@ -1,6 +1,73 @@ import { z } from 'zod'; -export const User = z.object({ +// Helper types for schemas + +export type UserModel = { + 'id': string; + 'username': string; + 'email': string; + 'profile'?: { + 'fullName'?: string | undefined; + 'joinDate'?: string | undefined; +} | undefined; + 'legacyId'?: number | undefined; +}; + +export type ProductInputModel = { + 'name': string; + 'description'?: string | undefined; + 'price': number; +}; + +export type ProductModel = ProductInputModel & { + 'id'?: string | undefined; + 'imageUrl'?: string | undefined; + 'stock'?: number | undefined; +}; + +export type PaginatedResponseModel = { + 'page'?: number | undefined; + 'pageSize'?: number | undefined; + 'total'?: number | undefined; + 'items'?: any[] | undefined; +}; + +export type PaginatedProductResponseModel = PaginatedResponseModel; + +export type CreditCardModel = { + 'methodType': 'card'; + 'cardNumber': string; + 'expiry'?: string | undefined; + 'cvv'?: string | undefined; +}; + +export type PayPalModel = { + 'methodType': 'paypal_account'; + 'email': string; +}; + +export type PaymentMethodModel = CreditCardModel | PayPalModel; + +export type CallbackPayloadModel = { + 'orderId'?: string | undefined; + 'status'?: 'PROCESSED' | 'FAILED' | undefined; + 'detail'?: string | undefined; +}; + +export type InventoryUpdatePayloadModel = { + 'productId'?: string | undefined; + 'newStockLevel'?: number | undefined; + 'timestamp'?: string | undefined; +}; + +export type ApiErrorModel = { + 'errorCode'?: string | undefined; + 'message'?: string | undefined; +}; + + + +export const User: z.ZodType = z.object({ 'id': z.uuid(), 'username': z.string().regex(/^[a-zA-Z0-9_-]{3,16}$/), 'email': z.email(), @@ -11,76 +78,54 @@ export const User = z.object({ 'legacyId': z.number().int().optional() }); -export type UserModel = z.infer; - -export const ProductInput = z.object({ +export const ProductInput: z.ZodType = z.object({ 'name': z.string(), 'description': z.string().optional(), 'price': z.number().min(0) }); -export type ProductInputModel = z.infer; - -export const Product = ProductInput.and(z.object({ +export const Product: z.ZodType = ProductInput.and(z.object({ 'id': z.uuid().optional(), 'imageUrl': z.url().optional(), 'stock': z.number().int().optional() })); -export type ProductModel = z.infer; - -export const PaginatedResponse = z.object({ +export const PaginatedResponse: z.ZodType = z.object({ 'page': z.number().int().optional(), 'pageSize': z.number().int().optional(), 'total': z.number().int().optional(), 'items': z.array(z.any()).optional() }); -export type PaginatedResponseModel = z.infer; +export const PaginatedProductResponse: z.ZodType = PaginatedResponse; -export const PaginatedProductResponse = PaginatedResponse; - -export type PaginatedProductResponseModel = z.infer; - -export const CreditCard = z.object({ +export const CreditCard: z.ZodType = z.object({ 'methodType': z.enum(['card']), 'cardNumber': z.string(), 'expiry': z.string().optional(), 'cvv': z.string().optional() }); -export type CreditCardModel = z.infer; - -export const PayPal = z.object({ +export const PayPal: z.ZodType = z.object({ 'methodType': z.enum(['paypal_account']), 'email': z.email() }); -export type PayPalModel = z.infer; +export const PaymentMethod: z.ZodType = z.discriminatedUnion('methodType', [CreditCard, PayPal]); -export const PaymentMethod = z.discriminatedUnion('methodType', [CreditCard, PayPal]); - -export type PaymentMethodModel = z.infer; - -export const CallbackPayload = z.object({ +export const CallbackPayload: z.ZodType = z.object({ 'orderId': z.uuid().optional(), 'status': z.enum(['PROCESSED', 'FAILED']).optional(), 'detail': z.string().optional() }); -export type CallbackPayloadModel = z.infer; - -export const InventoryUpdatePayload = z.object({ +export const InventoryUpdatePayload: z.ZodType = z.object({ 'productId': z.uuid().optional(), 'newStockLevel': z.number().int().optional(), 'timestamp': z.iso.datetime().optional() }); -export type InventoryUpdatePayloadModel = z.infer; - -export const ApiError = z.object({ +export const ApiError: z.ZodType = z.object({ 'errorCode': z.string().optional(), 'message': z.string().optional() -}); - -export type ApiErrorModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell/models.ts index 8f275f6..e3f2a61 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell/models.ts @@ -1,15 +1,48 @@ import { z } from 'zod'; -export const HellObject = z.object({ +// Helper types for schemas + +export type HellObjectModel = { + 'required-key': string; + 'optional-key'?: string | undefined; + 'spaced key': number; + '$special$'?: boolean | undefined; +}; + +export type DeepNestedModel = { + 'level1'?: { + 'level2'?: Array<{ + 'level3'?: 'deep' | undefined; +}> | undefined; +} | undefined; +}; + +export type IntersectionHellModel = HellObjectModel & { + 'extra'?: string | undefined; +}; + +export type OptionAModel = { + 'type': 'A'; + 'a'?: string | undefined; +}; + +export type OptionBModel = { + 'type': 'B'; + 'b'?: number | undefined; +}; + +export type UnionHellModel = OptionAModel | OptionBModel; + + + +export const HellObject: z.ZodType = z.object({ 'required-key': z.string(), 'optional-key': z.string().optional(), 'spaced key': z.number(), '$special$': z.boolean().optional() }); -export type HellObjectModel = z.infer; - -export const DeepNested = z.object({ +export const DeepNested: z.ZodType = z.object({ 'level1': z.object({ 'level2': z.array(z.object({ 'level3': z.enum(['deep']).optional() @@ -17,28 +50,18 @@ export const DeepNested = z.object({ }).optional() }); -export type DeepNestedModel = z.infer; - -export const IntersectionHell = HellObject.and(z.object({ +export const IntersectionHell: z.ZodType = HellObject.and(z.object({ 'extra': z.string().optional() })); -export type IntersectionHellModel = z.infer; - -export const OptionA = z.object({ +export const OptionA: z.ZodType = z.object({ 'type': z.enum(['A']), 'a': z.string().optional() }); -export type OptionAModel = z.infer; - -export const OptionB = z.object({ +export const OptionB: z.ZodType = z.object({ 'type': z.enum(['B']), 'b': z.number().optional() }); -export type OptionBModel = z.infer; - -export const UnionHell = z.discriminatedUnion('type', [OptionA, OptionB]); - -export type UnionHellModel = z.infer; \ No newline at end of file +export const UnionHell: z.ZodType = z.discriminatedUnion('type', [OptionA, OptionB]); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell_2/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell_2/models.ts index 6c50bb2..988f59e 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell_2/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/hell_2/models.ts @@ -1,27 +1,36 @@ import { z } from 'zod'; -export const StringDictionary = z.record(z.string(), z.string()); +// Helper types for schemas -export type StringDictionaryModel = z.infer; +export type StringDictionaryModel = { + [key: string]: string; +}; -export const ObjectWithCatchall = z.object({ -'id': z.string() -}).catchall(z.number().int()); +export type ObjectWithCatchallModel = { + 'id': string; + [key: string]: number; +}; + +export type SimpleUnionModel = string | boolean; + +export type AnyOfUnionModel = StringDictionaryModel | number; -export type ObjectWithCatchallModel = z.infer; +export type ConstStringModel = string; -export const SimpleUnion = z.union([z.string(), z.boolean()]); +export type NullableStringModel = string | null; -export type SimpleUnionModel = z.infer; -export const AnyOfUnion = z.union([StringDictionary, z.number()]); -export type AnyOfUnionModel = z.infer; +export const StringDictionary: z.ZodType = z.record(z.string(), z.string()); + +export const ObjectWithCatchall: z.ZodType = z.object({ +'id': z.string() +}).catchall(z.number().int()); -export const ConstString = z.literal('FIXED_VALUE'); +export const SimpleUnion: z.ZodType = z.union([z.string(), z.boolean()]); -export type ConstStringModel = z.infer; +export const AnyOfUnion: z.ZodType = z.union([StringDictionary, z.number()]); -export const NullableString = z.string().nullable(); +export const ConstString: z.ZodType = z.literal('FIXED_VALUE'); -export type NullableStringModel = z.infer; \ No newline at end of file +export const NullableString: z.ZodType = z.string().nullable(); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/simple/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/simple/models.ts index 0025d88..48bf1ef 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/simple/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/simple/models.ts @@ -1,6 +1,24 @@ import { z } from 'zod'; -export const Book = z.object({ +// Helper types for schemas + +export type BookModel = { + 'uuid': string; + 'name': string; + 'price': number; + 'category': string; + 'publish_date': string; +}; + +export type BookRequestModel = { + 'name': string; + 'price': number; + 'category': string; +}; + + + +export const Book: z.ZodType = z.object({ 'uuid': z.string(), 'name': z.string(), 'price': z.number(), @@ -8,12 +26,8 @@ export const Book = z.object({ 'publish_date': z.iso.datetime() }); -export type BookModel = z.infer; - -export const BookRequest = z.object({ +export const BookRequest: z.ZodType = z.object({ 'name': z.string(), 'price': z.number(), 'category': z.string() -}); - -export type BookRequestModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe/models.ts index 32a3a41..1131108 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe/models.ts @@ -1,6 +1,152 @@ import { z } from 'zod'; -// Helper types for recursive schemas +// Helper types for schemas + +export type AccountAnnualRevenueModel = { + 'amount'?: number | undefined; + 'currency'?: string | undefined; + 'fiscal_year_end'?: string | undefined; +}; + +export type AccountMonthlyEstimatedRevenueModel = { + 'amount': number; + 'currency': string; +}; + +export type AddressModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; +}; + +export type AccountBusinessProfileModel = { + 'annual_revenue'?: AccountAnnualRevenueModel | undefined; + 'estimated_worker_count'?: number | undefined; + 'mcc'?: string | undefined; + 'minority_owned_business_designation'?: Array<'lgbtqi_owned_business' | 'minority_owned_business' | 'none_of_these_apply' | 'prefer_not_to_answer' | 'women_owned_business'> | undefined; + 'monthly_estimated_revenue'?: AccountMonthlyEstimatedRevenueModel | undefined; + 'name'?: string | undefined; + 'product_description'?: string | undefined; + 'support_address'?: AddressModel | undefined; + 'support_email'?: string | undefined; + 'support_phone'?: string | undefined; + 'support_url'?: string | undefined; + 'url'?: string | undefined; +}; + +export type AccountCapabilitiesModel = { + '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; + 'billie_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; + 'crypto_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; + 'mb_way_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; + 'nz_bank_account_becs_debit_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'oxxo_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'p24_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pay_by_bank_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'payco_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'paynow_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pix_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; + 'satispay_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 LegalEntityJapanAddressModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; + 'town'?: string | undefined; +}; + +export type LegalEntityDirectorshipDeclarationModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type LegalEntityUboDeclarationModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type LegalEntityRegistrationDateModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type LegalEntityRepresentativeDeclarationModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type FileLinkModel = { + 'created': number; + 'expired': boolean; + 'expires_at'?: number | undefined; + 'file': string | FileModel; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'file_link'; + 'url'?: string | undefined; +}; export type FileModel = { 'created': number; @@ -21,20 +167,6 @@ export type FileModel = { 'url'?: string | undefined; }; -export type FileLinkModel = { - 'created': number; - 'expired': boolean; - 'expires_at'?: number | undefined; - 'file': string | FileModel; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'object': 'file_link'; - 'url'?: string | undefined; -}; - export type LegalEntityCompanyVerificationDocumentModel = { 'back'?: string | FileModel | undefined; 'details'?: string | undefined; @@ -71,113 +203,50 @@ export type LegalEntityCompanyModel = { 'verification'?: LegalEntityCompanyVerificationModel | undefined; }; -export type AccountModel = { - 'business_profile'?: AccountBusinessProfileModel | undefined; - 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; - 'capabilities'?: AccountCapabilitiesModel | undefined; - 'charges_enabled'?: boolean | undefined; - 'company'?: LegalEntityCompanyModel | undefined; - 'controller'?: AccountUnificationAccountControllerModel | undefined; - 'country'?: string | undefined; - 'created'?: number | undefined; - 'default_currency'?: string | undefined; - 'details_submitted'?: boolean | undefined; - 'email'?: string | undefined; - 'external_accounts'?: { - 'data': Array; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'future_requirements'?: AccountFutureRequirementsModel | undefined; - 'groups'?: AccountGroupMembershipModel | undefined; - 'id': string; - 'individual'?: PersonModel | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'account'; - 'payouts_enabled'?: boolean | undefined; - 'requirements'?: AccountRequirementsModel | undefined; - 'settings'?: AccountSettingsModel | undefined; - 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; - 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +export type AccountUnificationAccountControllerFeesModel = { + 'payer': 'account' | 'application' | 'application_custom' | 'application_express'; }; -export type BankAccountModel = { - 'account'?: string | AccountModel | undefined; - 'account_holder_name'?: string | undefined; - 'account_holder_type'?: string | undefined; - 'account_type'?: string | undefined; - 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; - 'bank_name'?: string | undefined; - 'country': string; - 'currency': string; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'default_for_currency'?: boolean | undefined; - 'fingerprint'?: string | undefined; - 'future_requirements'?: ExternalAccountRequirementsModel | undefined; - 'id': string; - 'last4': string; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'bank_account'; - 'requirements'?: ExternalAccountRequirementsModel | undefined; - 'routing_number'?: string | undefined; - 'status': string; +export type AccountUnificationAccountControllerLossesModel = { + 'payments': 'application' | 'stripe'; }; -export type CustomerModel = { - 'address'?: AddressModel | undefined; - 'balance'?: number | undefined; - 'business_name'?: string | undefined; - 'cash_balance'?: CashBalanceModel | undefined; - 'created': number; - 'currency'?: string | undefined; - 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; - 'delinquent'?: boolean | undefined; - 'description'?: string | undefined; - 'discount'?: DiscountModel | undefined; - 'email'?: string | undefined; - 'id': string; - 'individual_name'?: string | undefined; - 'invoice_credit_balance'?: { +export type AccountUnificationAccountControllerStripeDashboardModel = { + 'type': 'express' | 'full' | 'none'; +}; + +export type AccountUnificationAccountControllerModel = { + 'fees'?: AccountUnificationAccountControllerFeesModel | undefined; + 'is_controller'?: boolean | undefined; + 'losses'?: AccountUnificationAccountControllerLossesModel | undefined; + 'requirement_collection'?: 'application' | 'stripe' | undefined; + 'stripe_dashboard'?: AccountUnificationAccountControllerStripeDashboardModel | undefined; + 'type': 'account' | 'application'; +}; + +export type CustomerBalanceCustomerBalanceSettingsModel = { + 'reconciliation_mode': 'automatic' | 'manual'; + 'using_merchant_default': boolean; +}; + +export type CashBalanceModel = { + 'available'?: { [key: string]: number; } | undefined; - 'invoice_prefix'?: string | undefined; - 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; + 'customer': string; 'livemode': boolean; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'name'?: string | undefined; - 'next_invoice_sequence'?: number | undefined; + 'object': 'cash_balance'; + 'settings': CustomerBalanceCustomerBalanceSettingsModel; +}; + +export type DeletedCustomerModel = { + 'deleted': boolean; + 'id': string; 'object': 'customer'; - 'phone'?: string | undefined; - 'preferred_locales'?: string[] | undefined; - 'shipping'?: ShippingModel | undefined; - 'sources'?: { - 'data': Array; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'subscriptions'?: { - 'data': SubscriptionModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'tax'?: CustomerTaxModel | undefined; - 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; - 'tax_ids'?: { - 'data': TaxIdModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type TokenCardNetworksModel = { + 'preferred'?: string | undefined; }; export type CardModel = { @@ -217,1436 +286,9784 @@ export type CardModel = { 'tokenization_method'?: string | undefined; }; -export type DiscountModel = { - 'checkout_session'?: string | undefined; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'end'?: number | undefined; - 'id': string; - 'invoice'?: string | undefined; - 'invoice_item'?: string | undefined; - 'object': 'discount'; - 'promotion_code'?: string | PromotionCodeModel | undefined; - 'source': DiscountSourceModel; - 'start': number; - 'subscription'?: string | undefined; - 'subscription_item'?: string | undefined; +export type SourceTypeAchCreditTransferModel = { + 'account_number'?: string | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_account_holder_type'?: string | undefined; + 'refund_routing_number'?: string | undefined; + 'routing_number'?: string | undefined; + 'swift_code'?: string | undefined; }; -export type PromotionCodeModel = { - 'active': boolean; - 'code': string; - 'created': number; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'expires_at'?: number | undefined; - 'id': string; - 'livemode': boolean; - 'max_redemptions'?: number | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'promotion_code'; - 'promotion': PromotionCodesResourcePromotionModel; - 'restrictions': PromotionCodesResourceRestrictionsModel; - 'times_redeemed': number; +export type SourceTypeAchDebitModel = { + 'bank_name'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; + 'type'?: string | undefined; }; -export type SetupAttemptModel = { - 'application'?: string | ApplicationModel | undefined; - 'attach_to_self'?: boolean | undefined; - 'created': number; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; - 'id': string; - 'livemode': boolean; - 'object': 'setup_attempt'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; - 'setup_error'?: ApiErrorsModel | undefined; - 'setup_intent': string | SetupIntentModel; +export type SourceTypeAcssDebitModel = { + 'bank_address_city'?: string | undefined; + 'bank_address_line_1'?: string | undefined; + 'bank_address_line_2'?: string | undefined; + 'bank_address_postal_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'category'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type SourceTypeAlipayModel = { + 'data_string'?: string | undefined; + 'native_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeAuBecsDebitModel = { + 'bsb_number'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; +}; + +export type SourceTypeBancontactModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeCardModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'cvc_check'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; +}; + +export type SourceTypeCardPresentModel = { + 'application_cryptogram'?: string | undefined; + 'application_preferred_name'?: string | undefined; + 'authorization_code'?: string | undefined; + 'authorization_response_code'?: string | undefined; + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'cvm_type'?: string | undefined; + 'data_type'?: string | undefined; + 'dedicated_file_name'?: string | undefined; + 'emv_auth_data'?: string | undefined; + 'evidence_customer_signature'?: string | undefined; + 'evidence_transaction_certificate'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'last4'?: string | undefined; + 'pos_device_id'?: string | undefined; + 'pos_entry_mode'?: string | undefined; + 'read_method'?: string | undefined; + 'reader'?: string | undefined; + 'terminal_verification_results'?: string | undefined; + 'transaction_status_information'?: string | undefined; +}; + +export type SourceCodeVerificationFlowModel = { + 'attempts_remaining': number; 'status': string; - 'usage': string; }; -export type PaymentMethodModel = { - 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; - 'affirm'?: PaymentMethodAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; - 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; - 'alma'?: PaymentMethodAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodBancontactModel | undefined; - 'billie'?: PaymentMethodBillieModel | undefined; - 'billing_details': BillingDetailsModel; - 'blik'?: PaymentMethodBlikModel | undefined; - 'boleto'?: PaymentMethodBoletoModel | undefined; - 'card'?: PaymentMethodCardModel | undefined; - 'card_present'?: PaymentMethodCardPresentModel | undefined; - 'cashapp'?: PaymentMethodCashappModel | undefined; - 'created': number; - 'crypto'?: PaymentMethodCryptoModel | undefined; - 'custom'?: PaymentMethodCustomModel | undefined; - 'customer'?: string | CustomerModel | undefined; - 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodEpsModel | undefined; - 'fpx'?: PaymentMethodFpxModel | undefined; - 'giropay'?: PaymentMethodGiropayModel | undefined; - 'grabpay'?: PaymentMethodGrabpayModel | undefined; - 'id': string; - 'ideal'?: PaymentMethodIdealModel | undefined; - 'interac_present'?: PaymentMethodInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; - 'klarna'?: PaymentMethodKlarnaModel | undefined; - 'konbini'?: PaymentMethodKonbiniModel | undefined; - 'kr_card'?: PaymentMethodKrCardModel | undefined; - 'link'?: PaymentMethodLinkModel | undefined; - 'livemode': boolean; - 'mb_way'?: PaymentMethodMbWayModel | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'mobilepay'?: PaymentMethodMobilepayModel | undefined; - 'multibanco'?: PaymentMethodMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; - 'object': 'payment_method'; - 'oxxo'?: PaymentMethodOxxoModel | undefined; - 'p24'?: PaymentMethodP24Model | undefined; - 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; - 'payco'?: PaymentMethodPaycoModel | undefined; - 'paynow'?: PaymentMethodPaynowModel | undefined; - 'paypal'?: PaymentMethodPaypalModel | undefined; - 'pix'?: PaymentMethodPixModel | undefined; - 'promptpay'?: PaymentMethodPromptpayModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; - 'satispay'?: PaymentMethodSatispayModel | undefined; - 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; - 'sofort'?: PaymentMethodSofortModel | undefined; - 'swish'?: PaymentMethodSwishModel | undefined; - 'twint'?: PaymentMethodTwintModel | undefined; - 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; - 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; - 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; - 'zip'?: PaymentMethodZipModel | undefined; +export type SourceTypeEpsModel = { + 'reference'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsBancontactModel = { +export type SourceTypeGiropayModel = { 'bank_code'?: string | undefined; 'bank_name'?: string | undefined; 'bic'?: string | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeIdealModel = { + 'bank'?: string | undefined; + 'bic'?: string | undefined; 'iban_last4'?: string | undefined; - 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeKlarnaModel = { + 'background_image_url'?: string | undefined; + 'client_token'?: string | 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 SourceTypeMultibancoModel = { + 'entity'?: string | undefined; + 'reference'?: string | undefined; + 'refund_account_holder_address_city'?: string | undefined; + 'refund_account_holder_address_country'?: string | undefined; + 'refund_account_holder_address_line1'?: string | undefined; + 'refund_account_holder_address_line2'?: string | undefined; + 'refund_account_holder_address_postal_code'?: string | undefined; + 'refund_account_holder_address_state'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_iban'?: string | undefined; +}; + +export type SourceOwnerModel = { + 'address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'verified_address'?: AddressModel | undefined; + 'verified_email'?: string | undefined; 'verified_name'?: string | undefined; + 'verified_phone'?: string | undefined; }; -export type MandateModel = { - 'customer_acceptance': CustomerAcceptanceModel; - 'id': string; - 'livemode': boolean; - 'multi_use'?: MandateMultiUseModel | undefined; - 'object': 'mandate'; - 'on_behalf_of'?: string | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': MandatePaymentMethodDetailsModel; - 'single_use'?: MandateSingleUseModel | undefined; - 'status': 'active' | 'inactive' | 'pending'; - 'type': 'multi_use' | 'single_use'; +export type SourceTypeP24Model = { + 'reference'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsModel = { - 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; - 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; - 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; - 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; - 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; - 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; - 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; - 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; - 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; - 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; - 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; - 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; - 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; - 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; - 'type': string; - 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; +export type SourceReceiverFlowModel = { + 'address'?: string | undefined; + 'amount_charged': number; + 'amount_received': number; + 'amount_returned': number; + 'refund_attributes_method': string; + 'refund_attributes_status': string; }; -export type SetupAttemptPaymentMethodDetailsCardPresentModel = { - 'generated_card'?: string | PaymentMethodModel | undefined; - 'offline'?: PaymentMethodDetailsCardPresentOfflineModel | undefined; +export type SourceRedirectFlowModel = { + 'failure_reason'?: string | undefined; + 'return_url': string; + 'status': string; + 'url': string; }; -export type SetupAttemptPaymentMethodDetailsIdealModel = { - 'bank'?: 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | undefined; - 'bic'?: 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; - 'iban_last4'?: string | undefined; - 'verified_name'?: string | undefined; +export type SourceTypeSepaDebitModel = { + 'bank_code'?: string | undefined; + 'branch_code'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; + 'mandate_url'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsSofortModel = { +export type SourceTypeSofortModel = { 'bank_code'?: string | undefined; 'bank_name'?: string | undefined; 'bic'?: string | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'country'?: string | undefined; 'iban_last4'?: string | undefined; - 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; - 'verified_name'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; -export type PaymentIntentModel = { +export type SourceOrderItemModel = { 'amount'?: number | undefined; - 'amount_capturable'?: number | undefined; - 'amount_details'?: PaymentFlowsAmountDetailsModel | PaymentFlowsAmountDetailsClientModel | undefined; - 'amount_received'?: number | undefined; - 'application'?: string | ApplicationModel | undefined; - 'application_fee_amount'?: number | undefined; - 'automatic_payment_methods'?: PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel | undefined; - 'canceled_at'?: number | undefined; - 'cancellation_reason'?: 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice' | undefined; - 'capture_method'?: 'automatic' | 'automatic_async' | 'manual' | undefined; - 'client_secret'?: string | undefined; - 'confirmation_method'?: 'automatic' | 'manual' | undefined; - 'created': number; 'currency'?: string | undefined; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; 'description'?: string | undefined; - 'excluded_payment_method_types'?: Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'> | undefined; - 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'parent'?: string | undefined; + 'quantity'?: number | undefined; + 'type'?: string | undefined; +}; + +export type ShippingModel = { + 'address'?: AddressModel | undefined; + 'carrier'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'tracking_number'?: string | undefined; +}; + +export type SourceOrderModel = { + 'amount': number; + 'currency': string; + 'email'?: string | undefined; + 'items'?: SourceOrderItemModel[] | undefined; + 'shipping'?: ShippingModel | undefined; +}; + +export type SourceTypeThreeDSecureModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'authenticated'?: boolean | undefined; + 'brand'?: string | undefined; + 'card'?: string | undefined; + 'country'?: string | undefined; + 'customer'?: string | undefined; + 'cvc_check'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; +}; + +export type SourceTypeWechatModel = { + 'prepay_id'?: string | undefined; + 'qr_code_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceModel = { + 'ach_credit_transfer'?: SourceTypeAchCreditTransferModel | undefined; + 'ach_debit'?: SourceTypeAchDebitModel | undefined; + 'acss_debit'?: SourceTypeAcssDebitModel | undefined; + 'alipay'?: SourceTypeAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'amount'?: number | undefined; + 'au_becs_debit'?: SourceTypeAuBecsDebitModel | undefined; + 'bancontact'?: SourceTypeBancontactModel | undefined; + 'card'?: SourceTypeCardModel | undefined; + 'card_present'?: SourceTypeCardPresentModel | undefined; + 'client_secret': string; + 'code_verification'?: SourceCodeVerificationFlowModel | undefined; + 'created': number; + 'currency'?: string | undefined; + 'customer'?: string | undefined; + 'eps'?: SourceTypeEpsModel | undefined; + 'flow': string; + 'giropay'?: SourceTypeGiropayModel | undefined; 'id': string; - 'last_payment_error'?: ApiErrorsModel | undefined; - 'latest_charge'?: string | ChargeModel | undefined; + 'ideal'?: SourceTypeIdealModel | undefined; + 'klarna'?: SourceTypeKlarnaModel | undefined; 'livemode': boolean; 'metadata'?: { [key: string]: string; } | undefined; - 'next_action'?: PaymentIntentNextActionModel | undefined; - 'object': 'payment_intent'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; - 'payment_method'?: string | PaymentMethodModel | undefined; - 'payment_method_configuration_details'?: PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel | undefined; - 'payment_method_options'?: PaymentIntentPaymentMethodOptionsModel | undefined; - 'payment_method_types'?: string[] | undefined; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'processing'?: PaymentIntentProcessingModel | undefined; - 'receipt_email'?: string | undefined; - 'review'?: string | ReviewModel | undefined; - 'setup_future_usage'?: 'off_session' | 'on_session' | undefined; - 'shipping'?: ShippingModel | undefined; + 'multibanco'?: SourceTypeMultibancoModel | undefined; + 'object': 'source'; + 'owner'?: SourceOwnerModel | undefined; + 'p24'?: SourceTypeP24Model | undefined; + 'receiver'?: SourceReceiverFlowModel | undefined; + 'redirect'?: SourceRedirectFlowModel | undefined; + 'sepa_debit'?: SourceTypeSepaDebitModel | undefined; + 'sofort'?: SourceTypeSofortModel | undefined; + 'source_order'?: SourceOrderModel | undefined; 'statement_descriptor'?: string | undefined; - 'statement_descriptor_suffix'?: string | undefined; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'transfer_data'?: TransferDataModel | undefined; - 'transfer_group'?: string | undefined; + 'status': string; + 'three_d_secure'?: SourceTypeThreeDSecureModel | undefined; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'alipay' | 'au_becs_debit' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; + 'usage'?: string | undefined; + 'wechat'?: SourceTypeWechatModel | undefined; }; -export type ApiErrorsModel = { - 'advice_code'?: string | undefined; - 'charge'?: string | undefined; - 'code'?: string | undefined; - 'decline_code'?: string | undefined; - 'doc_url'?: string | undefined; - 'message'?: string | undefined; - 'network_advice_code'?: string | undefined; - 'network_decline_code'?: string | undefined; - 'param'?: string | undefined; - 'payment_intent'?: PaymentIntentModel | undefined; - 'payment_method'?: PaymentMethodModel | undefined; - 'payment_method_type'?: string | undefined; - 'request_log_url'?: string | undefined; - 'setup_intent'?: SetupIntentModel | undefined; - 'source'?: BankAccountModel | CardModel | SourceModel | undefined; - 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +export type CouponAppliesToModel = { + 'products': string[]; }; -export type ApplicationFeeModel = { - 'account': string | AccountModel; - 'amount': number; - 'amount_refunded': number; - 'application': string | ApplicationModel; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'charge': string | ChargeModel; +export type CouponCurrencyOptionModel = { + 'amount_off': number; +}; + +export type CouponModel = { + 'amount_off'?: number | undefined; + 'applies_to'?: CouponAppliesToModel | undefined; 'created': number; - 'currency': string; - 'fee_source'?: PlatformEarningFeeSourceModel | undefined; + 'currency'?: string | undefined; + 'currency_options'?: { + [key: string]: CouponCurrencyOptionModel; +} | undefined; + 'duration': 'forever' | 'once' | 'repeating'; + 'duration_in_months'?: number | undefined; 'id': string; 'livemode': boolean; - 'object': 'application_fee'; - 'originating_transaction'?: string | ChargeModel | undefined; - 'refunded': boolean; - 'refunds': { - 'data': FeeRefundModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + 'max_redemptions'?: number | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'name'?: string | undefined; + 'object': 'coupon'; + 'percent_off'?: number | undefined; + 'redeem_by'?: number | undefined; + 'times_redeemed': number; + 'valid': boolean; }; + +export type PromotionCodesResourcePromotionModel = { + 'coupon'?: string | CouponModel | undefined; + 'type': 'coupon'; }; -export type BalanceTransactionModel = { - 'amount': number; - 'available_on': number; - 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'exchange_rate'?: number | undefined; - 'fee': number; - 'fee_details': FeeModel[]; - 'id': string; - 'net': number; - 'object': 'balance_transaction'; - 'reporting_category': string; - 'source'?: string | ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel | undefined; - 'status': string; - 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; +export type PromotionCodeCurrencyOptionModel = { + 'minimum_amount': number; }; -export type ChargeModel = { - 'amount': number; - 'amount_captured': number; - 'amount_refunded': number; - 'application'?: string | ApplicationModel | undefined; - 'application_fee'?: string | ApplicationFeeModel | undefined; - 'application_fee_amount'?: number | undefined; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'billing_details': BillingDetailsModel; - 'calculated_statement_descriptor'?: string | undefined; - 'captured': boolean; +export type PromotionCodesResourceRestrictionsModel = { + 'currency_options'?: { + [key: string]: PromotionCodeCurrencyOptionModel; +} | undefined; + 'first_time_transaction': boolean; + 'minimum_amount'?: number | undefined; + 'minimum_amount_currency'?: string | undefined; +}; + +export type PromotionCodeModel = { + 'active': boolean; + 'code': string; 'created': number; - 'currency': string; 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'description'?: string | undefined; - 'disputed': boolean; - 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; - 'failure_code'?: string | undefined; - 'failure_message'?: string | undefined; - 'fraud_details'?: ChargeFraudDetailsModel | undefined; + 'expires_at'?: number | undefined; 'id': string; 'livemode': boolean; - 'metadata': { + 'max_redemptions'?: number | undefined; + 'metadata'?: { [key: string]: string; -}; - 'object': 'charge'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'outcome'?: ChargeOutcomeModel | undefined; - 'paid': boolean; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'payment_method'?: string | undefined; - 'payment_method_details'?: PaymentMethodDetailsModel | undefined; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'receipt_email'?: string | undefined; - 'receipt_number'?: string | undefined; - 'receipt_url'?: string | undefined; - 'refunded': boolean; - 'refunds'?: { - 'data': RefundModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; } | undefined; - 'review'?: string | ReviewModel | undefined; - 'shipping'?: ShippingModel | undefined; - 'source_transfer'?: string | TransferModel | undefined; - 'statement_descriptor'?: string | undefined; - 'statement_descriptor_suffix'?: string | undefined; - 'status': 'failed' | 'pending' | 'succeeded'; - 'transfer'?: string | TransferModel | undefined; - 'transfer_data'?: ChargeTransferDataModel | undefined; - 'transfer_group'?: string | undefined; + 'object': 'promotion_code'; + 'promotion': PromotionCodesResourcePromotionModel; + 'restrictions': PromotionCodesResourceRestrictionsModel; + 'times_redeemed': number; }; -export type ConnectCollectionTransferModel = { - 'amount': number; - 'currency': string; - 'destination': string | AccountModel; +export type DiscountSourceModel = { + 'coupon'?: string | CouponModel | undefined; + 'type': 'coupon'; +}; + +export type DiscountModel = { + 'checkout_session'?: string | undefined; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'end'?: number | undefined; 'id': string; - 'livemode': boolean; - 'object': 'connect_collection_transfer'; + 'invoice'?: string | undefined; + 'invoice_item'?: string | undefined; + 'object': 'discount'; + 'promotion_code'?: string | PromotionCodeModel | undefined; + 'source': DiscountSourceModel; + 'start': number; + 'subscription'?: string | undefined; + 'subscription_item'?: string | undefined; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { - 'balance_transaction': string | BalanceTransactionModel; - 'linked_transaction': string | CustomerCashBalanceTransactionModel; +export type InvoiceSettingCustomFieldModel = { + 'name': string; + 'value': string; }; -export type CustomerCashBalanceTransactionModel = { - 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; - 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel; - 'ending_balance': number; - 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; - 'id': string; - 'livemode': boolean; - 'net_amount': number; - 'object': 'customer_cash_balance_transaction'; - 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; - 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; - 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; - 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; +export type PaymentMethodAcssDebitModel = { + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'institution_number'?: string | undefined; + 'last4'?: string | undefined; + 'transit_number'?: string | undefined; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; +export type PaymentMethodAffirmModel = { + }; -export type RefundModel = { - 'amount': number; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'charge'?: string | ChargeModel | undefined; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'destination_details'?: RefundDestinationDetailsModel | undefined; - 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; - 'failure_reason'?: string | undefined; - 'id': string; - 'instructions_email'?: string | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'next_action'?: RefundNextActionModel | undefined; - 'object': 'refund'; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'reason'?: 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer' | undefined; - 'receipt_number'?: string | undefined; - 'source_transfer_reversal'?: string | TransferReversalModel | undefined; - 'status'?: string | undefined; - 'transfer_reversal'?: string | TransferReversalModel | undefined; +export type PaymentMethodAfterpayClearpayModel = { + }; -export type TransferReversalModel = { - 'amount': number; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'created': number; - 'currency': string; - 'destination_payment_refund'?: string | RefundModel | undefined; - 'id': string; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'transfer_reversal'; - 'source_refund'?: string | RefundModel | undefined; - 'transfer': string | TransferModel; +export type PaymentFlowsPrivatePaymentMethodsAlipayModel = { + }; -export type TransferModel = { - 'amount': number; - 'amount_reversed': number; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'destination'?: string | AccountModel | undefined; - 'destination_payment'?: string | ChargeModel | undefined; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type PaymentMethodAlmaModel = { + }; - 'object': 'transfer'; - 'reversals': { - 'data': TransferReversalModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + +export type PaymentMethodAmazonPayModel = { + }; - 'reversed': boolean; - 'source_transaction'?: string | ChargeModel | undefined; - 'source_type'?: string | undefined; - 'transfer_group'?: string | undefined; + +export type PaymentMethodAuBecsDebitModel = { + 'bsb_number'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { - 'refund': string | RefundModel; +export type PaymentMethodBacsDebitModel = { + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'sort_code'?: string | undefined; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { - 'balance_transaction': string | BalanceTransactionModel; +export type PaymentMethodBancontactModel = { + }; -export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; +export type PaymentMethodBillieModel = { + }; -export type DisputeModel = { - 'amount': number; - 'balance_transactions': BalanceTransactionModel[]; - 'charge': string | ChargeModel; - 'created': number; - 'currency': string; - 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; - 'evidence': DisputeEvidenceModel; - 'evidence_details': DisputeEvidenceDetailsModel; - 'id': string; - 'is_charge_refundable': boolean; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type BillingDetailsModel = { + 'address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'tax_id'?: string | undefined; }; - 'object': 'dispute'; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; - 'reason': string; - 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; + +export type PaymentMethodBlikModel = { + }; -export type FeeRefundModel = { - 'amount': number; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'created': number; - 'currency': string; - 'fee': string | ApplicationFeeModel; - 'id': string; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'fee_refund'; +export type PaymentMethodBoletoModel = { + 'tax_id': string; }; -export type IssuingAuthorizationModel = { - 'amount': number; - 'amount_details'?: IssuingAuthorizationAmountDetailsModel | undefined; - 'approved': boolean; - 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; - 'balance_transactions': BalanceTransactionModel[]; - 'card': IssuingCardModel; - 'cardholder'?: string | IssuingCardholderModel | undefined; - 'created': number; - 'currency': string; - 'fleet'?: IssuingAuthorizationFleetDataModel | undefined; - 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; - 'fuel'?: IssuingAuthorizationFuelDataModel | undefined; - 'id': string; - 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; - 'metadata': { +export type PaymentMethodCardChecksModel = { + 'address_line1_check'?: string | undefined; + 'address_postal_code_check'?: string | undefined; + 'cvc_check'?: string | undefined; +}; + +export type PaymentMethodDetailsCardPresentOfflineModel = { + 'stored_at'?: number | undefined; + 'type'?: 'deferred' | undefined; +}; + +export type PaymentMethodDetailsCardPresentReceiptModel = { + 'account_type'?: 'checking' | 'credit' | 'prepaid' | 'unknown' | undefined; + 'application_cryptogram'?: string | undefined; + 'application_preferred_name'?: string | undefined; + 'authorization_code'?: string | undefined; + 'authorization_response_code'?: string | undefined; + 'cardholder_verification_method'?: string | undefined; + 'dedicated_file_name'?: string | undefined; + 'terminal_verification_results'?: string | undefined; + 'transaction_status_information'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = { + 'type': 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown'; +}; + +export type PaymentMethodDetailsCardPresentModel = { + 'amount_authorized'?: number | undefined; + 'brand'?: string | undefined; + 'brand_product'?: string | undefined; + 'capture_before'?: number | undefined; + 'cardholder_name'?: string | undefined; + 'country'?: string | undefined; + 'description'?: string | undefined; + 'emv_auth_data'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'generated_card'?: string | undefined; + 'incremental_authorization_supported': boolean; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'network'?: string | undefined; + 'network_transaction_id'?: string | undefined; + 'offline'?: PaymentMethodDetailsCardPresentOfflineModel | undefined; + 'overcapture_supported': boolean; + 'preferred_locales'?: string[] | undefined; + 'read_method'?: 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2' | undefined; + 'receipt'?: PaymentMethodDetailsCardPresentReceiptModel | undefined; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type CardGeneratedFromPaymentMethodDetailsModel = { + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'type': string; +}; + +export type ApplicationModel = { + 'id': string; + 'name'?: string | undefined; + 'object': 'application'; +}; + +export type SetupAttemptPaymentMethodDetailsAcssDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAmazonPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsBacsDebitModel = { + +}; + +export type OfflineAcceptanceModel = { + +}; + +export type OnlineAcceptanceModel = { + 'ip_address'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type CustomerAcceptanceModel = { + 'accepted_at'?: number | undefined; + 'offline'?: OfflineAcceptanceModel | undefined; + 'online'?: OnlineAcceptanceModel | undefined; + 'type': 'offline' | 'online'; +}; + +export type MandateMultiUseModel = { + +}; + +export type MandateAcssDebitModel = { + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description'?: string | undefined; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type MandateAmazonPayModel = { + +}; + +export type MandateAuBecsDebitModel = { + 'url': string; +}; + +export type MandateBacsDebitModel = { + 'network_status': 'accepted' | 'pending' | 'refused' | 'revoked'; + 'reference': string; + 'revocation_reason'?: 'account_closed' | 'bank_account_restricted' | 'bank_ownership_changed' | 'could_not_process' | 'debit_not_authorized' | undefined; + 'url': string; +}; + +export type CardMandatePaymentMethodDetailsModel = { + +}; + +export type MandateCashappModel = { + +}; + +export type MandateKakaoPayModel = { + +}; + +export type MandateKlarnaModel = { + +}; + +export type MandateKrCardModel = { + +}; + +export type MandateLinkModel = { + +}; + +export type MandateNaverPayModel = { + +}; + +export type MandateNzBankAccountModel = { + +}; + +export type MandatePaypalModel = { + 'billing_agreement_id'?: string | undefined; + 'payer_id'?: string | undefined; +}; + +export type MandateRevolutPayModel = { + +}; + +export type MandateSepaDebitModel = { + 'reference': string; + 'url': string; +}; + +export type MandateUsBankAccountModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type MandatePaymentMethodDetailsModel = { + 'acss_debit'?: MandateAcssDebitModel | undefined; + 'amazon_pay'?: MandateAmazonPayModel | undefined; + 'au_becs_debit'?: MandateAuBecsDebitModel | undefined; + 'bacs_debit'?: MandateBacsDebitModel | undefined; + 'card'?: CardMandatePaymentMethodDetailsModel | undefined; + 'cashapp'?: MandateCashappModel | undefined; + 'kakao_pay'?: MandateKakaoPayModel | undefined; + 'klarna'?: MandateKlarnaModel | undefined; + 'kr_card'?: MandateKrCardModel | undefined; + 'link'?: MandateLinkModel | undefined; + 'naver_pay'?: MandateNaverPayModel | undefined; + 'nz_bank_account'?: MandateNzBankAccountModel | undefined; + 'paypal'?: MandatePaypalModel | undefined; + 'revolut_pay'?: MandateRevolutPayModel | undefined; + 'sepa_debit'?: MandateSepaDebitModel | undefined; + 'type': string; + 'us_bank_account'?: MandateUsBankAccountModel | undefined; +}; + +export type MandateSingleUseModel = { + 'amount': number; + 'currency': string; +}; + +export type MandateModel = { + 'customer_acceptance': CustomerAcceptanceModel; + 'id': string; + 'livemode': boolean; + 'multi_use'?: MandateMultiUseModel | undefined; + 'object': 'mandate'; + 'on_behalf_of'?: string | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': MandatePaymentMethodDetailsModel; + 'single_use'?: MandateSingleUseModel | undefined; + 'status': 'active' | 'inactive' | 'pending'; + 'type': 'multi_use' | 'single_use'; +}; + +export type SetupAttemptPaymentMethodDetailsBancontactModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; + 'verified_name'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsBoletoModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardChecksModel = { + 'address_line1_check'?: string | undefined; + 'address_postal_code_check'?: string | undefined; + 'cvc_check'?: string | undefined; +}; + +export type ThreeDSecureDetailsModel = { + 'authentication_flow'?: 'challenge' | 'frictionless' | undefined; + 'electronic_commerce_indicator'?: '01' | '02' | '05' | '06' | '07' | undefined; + 'result'?: 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | undefined; + 'result_reason'?: 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | undefined; + 'transaction_id'?: string | undefined; + 'version'?: '1.0.2' | '2.1.0' | '2.2.0' | undefined; +}; + +export type PaymentMethodDetailsCardWalletApplePayModel = { + +}; + +export type PaymentMethodDetailsCardWalletGooglePayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardWalletModel = { + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'type': 'apple_pay' | 'google_pay' | 'link'; +}; + +export type SetupAttemptPaymentMethodDetailsCardModel = { + 'brand'?: string | undefined; + 'checks'?: SetupAttemptPaymentMethodDetailsCardChecksModel | undefined; + 'country'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'last4'?: string | undefined; + 'network'?: string | undefined; + 'three_d_secure'?: ThreeDSecureDetailsModel | undefined; + 'wallet'?: SetupAttemptPaymentMethodDetailsCardWalletModel | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsCardPresentModel = { + 'generated_card'?: string | PaymentMethodModel | undefined; + 'offline'?: PaymentMethodDetailsCardPresentOfflineModel | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsCashappModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsIdealModel = { + 'bank'?: 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | undefined; + 'bic'?: 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsKakaoPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKlarnaModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKrCardModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsLinkModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsNaverPayModel = { + 'buyer_id'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsPaypalModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsRevolutPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSepaDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSofortModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; + 'verified_name'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsModel = { + 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; + 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; + 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; + 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; + 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; + 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; + 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; + 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; + 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; + 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; + 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; + 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; + 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; + 'type': string; + 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'image_url'?: string | undefined; + 'product_url'?: string | undefined; + 'reference'?: string | undefined; + 'subscription_reference'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = { + 'category'?: 'digital_goods' | 'donation' | 'physical_goods' | undefined; + 'description'?: string | undefined; + 'sold_by'?: string | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = { + 'card'?: PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'card_present'?: PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'klarna'?: PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'paypal'?: PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = { + 'total_tax_amount': number; +}; + +export type PaymentIntentAmountDetailsLineItemModel = { + 'discount_amount'?: number | undefined; + 'id': string; + 'object': 'payment_intent_amount_details_line_item'; + 'payment_method_options'?: PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel | undefined; + 'product_code'?: string | undefined; + 'product_name': string; + 'quantity': number; + 'tax'?: PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel | undefined; + 'unit_cost': number; + 'unit_of_measure'?: string | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceShippingModel = { + 'amount'?: number | undefined; + 'from_postal_code'?: string | undefined; + 'to_postal_code'?: string | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceTaxModel = { + 'total_tax_amount'?: number | undefined; +}; + +export type PaymentFlowsAmountDetailsClientResourceTipModel = { + 'amount'?: number | undefined; +}; + +export type PaymentFlowsAmountDetailsModel = { + 'discount_amount'?: number | undefined; + 'line_items'?: { + 'data': PaymentIntentAmountDetailsLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'shipping'?: PaymentFlowsAmountDetailsResourceShippingModel | undefined; + 'tax'?: PaymentFlowsAmountDetailsResourceTaxModel | undefined; + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsAmountDetailsClientModel = { + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled': boolean; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = { + 'calculation': string; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = { + 'tax'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel | undefined; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = { + 'inputs'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel | undefined; +}; + +export type FeeModel = { + 'amount': number; + 'application'?: string | undefined; + 'currency': string; + 'description'?: string | undefined; + 'type': string; +}; + +export type ConnectCollectionTransferModel = { + 'amount': number; + 'currency': string; + 'destination': string | AccountModel; + 'id': string; + 'livemode': boolean; + 'object': 'connect_collection_transfer'; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { + 'balance_transaction': string | BalanceTransactionModel; + 'linked_transaction': string | CustomerCashBalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = { + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = { + 'account_number_last4'?: string | undefined; + 'sender_name'?: string | undefined; + 'sort_code'?: string | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = { + 'sender_bank'?: string | undefined; + 'sender_branch'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = { + 'network'?: 'ach' | 'domestic_wire_us' | 'swift' | undefined; + 'sender_name'?: string | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = { + 'eu_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel | undefined; + 'gb_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel | undefined; + 'jp_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel | undefined; + 'reference'?: string | undefined; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; + 'us_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = { + 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel; +}; + +export type DestinationDetailsUnimplementedModel = { + +}; + +export type RefundDestinationDetailsBlikModel = { + 'network_decline_code'?: string | undefined; + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsBrBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsCardModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; + 'reference_type'?: string | undefined; + 'type': 'pending' | 'refund' | 'reversal'; +}; + +export type RefundDestinationDetailsCryptoModel = { + 'reference'?: string | undefined; +}; + +export type RefundDestinationDetailsEuBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsGbBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsJpBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsMbWayModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsMultibancoModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsMxBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsP24Model = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsPaypalModel = { + 'network_decline_code'?: string | undefined; +}; + +export type RefundDestinationDetailsSwishModel = { + 'network_decline_code'?: string | undefined; + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsThBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsUsBankTransferModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; +}; + +export type RefundDestinationDetailsModel = { + 'affirm'?: DestinationDetailsUnimplementedModel | undefined; + 'afterpay_clearpay'?: DestinationDetailsUnimplementedModel | undefined; + 'alipay'?: DestinationDetailsUnimplementedModel | undefined; + 'alma'?: DestinationDetailsUnimplementedModel | undefined; + 'amazon_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'au_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'blik'?: RefundDestinationDetailsBlikModel | undefined; + 'br_bank_transfer'?: RefundDestinationDetailsBrBankTransferModel | undefined; + 'card'?: RefundDestinationDetailsCardModel | undefined; + 'cashapp'?: DestinationDetailsUnimplementedModel | undefined; + 'crypto'?: RefundDestinationDetailsCryptoModel | undefined; + 'customer_cash_balance'?: DestinationDetailsUnimplementedModel | undefined; + 'eps'?: DestinationDetailsUnimplementedModel | undefined; + 'eu_bank_transfer'?: RefundDestinationDetailsEuBankTransferModel | undefined; + 'gb_bank_transfer'?: RefundDestinationDetailsGbBankTransferModel | undefined; + 'giropay'?: DestinationDetailsUnimplementedModel | undefined; + 'grabpay'?: DestinationDetailsUnimplementedModel | undefined; + 'jp_bank_transfer'?: RefundDestinationDetailsJpBankTransferModel | undefined; + 'klarna'?: DestinationDetailsUnimplementedModel | undefined; + 'mb_way'?: RefundDestinationDetailsMbWayModel | undefined; + 'multibanco'?: RefundDestinationDetailsMultibancoModel | undefined; + 'mx_bank_transfer'?: RefundDestinationDetailsMxBankTransferModel | undefined; + 'nz_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'p24'?: RefundDestinationDetailsP24Model | undefined; + 'paynow'?: DestinationDetailsUnimplementedModel | undefined; + 'paypal'?: RefundDestinationDetailsPaypalModel | undefined; + 'pix'?: DestinationDetailsUnimplementedModel | undefined; + 'revolut'?: DestinationDetailsUnimplementedModel | undefined; + 'sofort'?: DestinationDetailsUnimplementedModel | undefined; + 'swish'?: RefundDestinationDetailsSwishModel | undefined; + 'th_bank_transfer'?: RefundDestinationDetailsThBankTransferModel | undefined; + 'twint'?: DestinationDetailsUnimplementedModel | undefined; + 'type': string; + 'us_bank_transfer'?: RefundDestinationDetailsUsBankTransferModel | undefined; + 'wechat_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'zip'?: DestinationDetailsUnimplementedModel | undefined; +}; + +export type EmailSentModel = { + 'email_sent_at': number; + 'email_sent_to': string; +}; + +export type RefundNextActionDisplayDetailsModel = { + 'email_sent': EmailSentModel; + 'expires_at': number; +}; + +export type RefundNextActionModel = { + 'display_details'?: RefundNextActionDisplayDetailsModel | undefined; + 'type': string; +}; + +export type PaymentFlowsPaymentIntentPresentmentDetailsModel = { + 'presentment_amount': number; + 'presentment_currency': string; +}; + +export type TransferModel = { + 'amount': number; + 'amount_reversed': number; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'destination'?: string | AccountModel | undefined; + 'destination_payment'?: string | ChargeModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'transfer'; + 'reversals': { + 'data': TransferReversalModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'reversed': boolean; + 'source_transaction'?: string | ChargeModel | undefined; + 'source_type'?: string | undefined; + 'transfer_group'?: string | undefined; +}; + +export type TransferReversalModel = { + 'amount': number; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'created': number; + 'currency': string; + 'destination_payment_refund'?: string | RefundModel | undefined; + 'id': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'transfer_reversal'; + 'source_refund'?: string | RefundModel | undefined; + 'transfer': string | TransferModel; +}; + +export type RefundModel = { + 'amount': number; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'charge'?: string | ChargeModel | undefined; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'destination_details'?: RefundDestinationDetailsModel | undefined; + 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; + 'failure_reason'?: string | undefined; + 'id': string; + 'instructions_email'?: string | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'next_action'?: RefundNextActionModel | undefined; + 'object': 'refund'; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'reason'?: 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer' | undefined; + 'receipt_number'?: string | undefined; + 'source_transfer_reversal'?: string | TransferReversalModel | undefined; + 'status'?: string | undefined; + 'transfer_reversal'?: string | TransferReversalModel | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { + 'refund': string | RefundModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { + 'balance_transaction': string | BalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerCashBalanceTransactionModel = { + 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; + 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel; + 'ending_balance': number; + 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; + 'id': string; + 'livemode': boolean; + 'net_amount': number; + 'object': 'customer_cash_balance_transaction'; + 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; + 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; + 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; + 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; +}; + +export type DisputeTransactionShippingAddressModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; +}; + +export type DisputeVisaCompellingEvidence3DisputedTransactionModel = { + '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'?: DisputeTransactionShippingAddressModel | undefined; +}; + +export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = { + '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'?: DisputeTransactionShippingAddressModel | undefined; +}; + +export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = { + 'disputed_transaction'?: DisputeVisaCompellingEvidence3DisputedTransactionModel | undefined; + 'prior_undisputed_transactions': DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel[]; +}; + +export type DisputeEnhancedEvidenceVisaComplianceModel = { + 'fee_acknowledged': boolean; +}; + +export type DisputeEnhancedEvidenceModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEvidenceVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEvidenceVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceModel = { + 'access_activity_log'?: string | undefined; + 'billing_address'?: string | undefined; + 'cancellation_policy'?: string | FileModel | undefined; + 'cancellation_policy_disclosure'?: string | undefined; + 'cancellation_rebuttal'?: string | undefined; + 'customer_communication'?: string | FileModel | undefined; + 'customer_email_address'?: string | undefined; + 'customer_name'?: string | undefined; + 'customer_purchase_ip'?: string | undefined; + 'customer_signature'?: string | FileModel | undefined; + 'duplicate_charge_documentation'?: string | FileModel | undefined; + 'duplicate_charge_explanation'?: string | undefined; + 'duplicate_charge_id'?: string | undefined; + 'enhanced_evidence': DisputeEnhancedEvidenceModel; + 'product_description'?: string | undefined; + 'receipt'?: string | FileModel | undefined; + 'refund_policy'?: string | FileModel | undefined; + 'refund_policy_disclosure'?: string | undefined; + 'refund_refusal_explanation'?: string | undefined; + 'service_date'?: string | undefined; + 'service_documentation'?: string | FileModel | undefined; + 'shipping_address'?: string | undefined; + 'shipping_carrier'?: string | undefined; + 'shipping_date'?: string | undefined; + 'shipping_documentation'?: string | FileModel | undefined; + 'shipping_tracking_number'?: string | undefined; + 'uncategorized_file'?: string | FileModel | undefined; + 'uncategorized_text'?: string | undefined; +}; + +export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = { + 'required_actions': Array<'missing_customer_identifiers' | 'missing_disputed_transaction_description' | 'missing_merchandise_or_services' | 'missing_prior_undisputed_transaction_description' | 'missing_prior_undisputed_transactions'>; + 'status': 'not_qualified' | 'qualified' | 'requires_action'; +}; + +export type DisputeEnhancedEligibilityVisaComplianceModel = { + 'status': 'fee_acknowledged' | 'requires_fee_acknowledgement'; +}; + +export type DisputeEnhancedEligibilityModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEligibilityVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEligibilityVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceDetailsModel = { + 'due_by'?: number | undefined; + 'enhanced_eligibility': DisputeEnhancedEligibilityModel; + 'has_evidence': boolean; + 'past_due': boolean; + 'submission_count': number; +}; + +export type DisputePaymentMethodDetailsAmazonPayModel = { + 'dispute_type'?: 'chargeback' | 'claim' | undefined; +}; + +export type DisputePaymentMethodDetailsCardModel = { + 'brand': string; + 'case_type': 'block' | 'chargeback' | 'compliance' | 'inquiry' | 'resolution'; + 'network_reason_code'?: string | undefined; +}; + +export type DisputePaymentMethodDetailsKlarnaModel = { + 'chargeback_loss_reason_code'?: string | undefined; + 'reason_code'?: string | undefined; +}; + +export type DisputePaymentMethodDetailsPaypalModel = { + 'case_id'?: string | undefined; + 'reason_code'?: string | undefined; +}; + +export type DisputePaymentMethodDetailsModel = { + 'amazon_pay'?: DisputePaymentMethodDetailsAmazonPayModel | undefined; + 'card'?: DisputePaymentMethodDetailsCardModel | undefined; + 'klarna'?: DisputePaymentMethodDetailsKlarnaModel | undefined; + 'paypal'?: DisputePaymentMethodDetailsPaypalModel | undefined; + 'type': 'amazon_pay' | 'card' | 'klarna' | 'paypal'; +}; + +export type DisputeModel = { + 'amount': number; + 'balance_transactions': BalanceTransactionModel[]; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; + 'evidence': DisputeEvidenceModel; + 'evidence_details': DisputeEvidenceDetailsModel; + 'id': string; + 'is_charge_refundable': boolean; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'dispute'; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; + 'reason': string; + 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; +}; + +export type FeeRefundModel = { + 'amount': number; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'created': number; + 'currency': string; + 'fee': string | ApplicationFeeModel; + 'id': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'fee_refund'; +}; + +export type IssuingAuthorizationAmountDetailsModel = { + 'atm_fee'?: number | undefined; + 'cashback_amount'?: number | undefined; +}; + +export type IssuingCardholderAddressModel = { + 'address': AddressModel; +}; + +export type IssuingCardholderCompanyModel = { + 'tax_id_provided': boolean; +}; + +export type IssuingCardholderUserTermsAcceptanceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type IssuingCardholderCardIssuingModel = { + 'user_terms_acceptance'?: IssuingCardholderUserTermsAcceptanceModel | undefined; +}; + +export type IssuingCardholderIndividualDobModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type IssuingCardholderIdDocumentModel = { + 'back'?: string | FileModel | undefined; + 'front'?: string | FileModel | undefined; +}; + +export type IssuingCardholderVerificationModel = { + 'document'?: IssuingCardholderIdDocumentModel | undefined; +}; + +export type IssuingCardholderIndividualModel = { + 'card_issuing'?: IssuingCardholderCardIssuingModel | undefined; + 'dob'?: IssuingCardholderIndividualDobModel | undefined; + 'first_name'?: string | undefined; + 'last_name'?: string | undefined; + 'verification'?: IssuingCardholderVerificationModel | undefined; +}; + +export type IssuingCardholderRequirementsModel = { + 'disabled_reason'?: 'listed' | 'rejected.listed' | 'requirements.past_due' | 'under_review' | undefined; + 'past_due'?: Array<'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'> | undefined; +}; + +export type IssuingCardholderSpendingLimitModel = { + 'amount': number; + 'categories'?: Array<'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'; +}; + +export type IssuingCardholderAuthorizationControlsModel = { + 'allowed_categories'?: Array<'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'?: Array<'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'?: IssuingCardholderSpendingLimitModel[] | undefined; + 'spending_limits_currency'?: string | undefined; +}; + +export type IssuingCardholderModel = { + 'billing': IssuingCardholderAddressModel; + 'company'?: IssuingCardholderCompanyModel | undefined; + 'created': number; + 'email'?: string | undefined; + 'id': string; + 'individual'?: IssuingCardholderIndividualModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'issuing.cardholder'; + 'phone_number'?: string | undefined; + 'preferred_locales'?: Array<'de' | 'en' | 'es' | 'fr' | 'it'> | undefined; + 'requirements': IssuingCardholderRequirementsModel; + 'spending_controls'?: IssuingCardholderAuthorizationControlsModel | undefined; + 'status': 'active' | 'blocked' | 'inactive'; + 'type': 'company' | 'individual'; +}; + +export type IssuingCardFraudWarningModel = { + 'started_at'?: number | undefined; + 'type'?: 'card_testing_exposure' | 'fraud_dispute_filed' | 'third_party_reported' | 'user_indicated_fraud' | undefined; +}; + +export type IssuingPersonalizationDesignCarrierTextModel = { + 'footer_body'?: string | undefined; + 'footer_title'?: string | undefined; + 'header_body'?: string | undefined; + 'header_title'?: string | undefined; +}; + +export type IssuingPhysicalBundleFeaturesModel = { + 'card_logo': 'optional' | 'required' | 'unsupported'; + 'carrier_text': 'optional' | 'required' | 'unsupported'; + 'second_line': 'optional' | 'required' | 'unsupported'; +}; + +export type IssuingPhysicalBundleModel = { + 'features': IssuingPhysicalBundleFeaturesModel; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'issuing.physical_bundle'; + 'status': 'active' | 'inactive' | 'review'; + 'type': 'custom' | 'standard'; +}; + +export type IssuingPersonalizationDesignPreferencesModel = { + 'is_default': boolean; + 'is_platform_default'?: boolean | undefined; +}; + +export type IssuingPersonalizationDesignRejectionReasonsModel = { + 'card_logo'?: Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_binary_image' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'> | undefined; + 'carrier_text'?: Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'> | undefined; +}; + +export type IssuingPersonalizationDesignModel = { + 'card_logo'?: string | FileModel | undefined; + 'carrier_text'?: IssuingPersonalizationDesignCarrierTextModel | undefined; + 'created': number; + 'id': string; + 'livemode': boolean; + 'lookup_key'?: string | undefined; + 'metadata': { + [key: string]: string; +}; + 'name'?: string | undefined; + 'object': 'issuing.personalization_design'; + 'physical_bundle': string | IssuingPhysicalBundleModel; + 'preferences': IssuingPersonalizationDesignPreferencesModel; + 'rejection_reasons': IssuingPersonalizationDesignRejectionReasonsModel; + 'status': 'active' | 'inactive' | 'rejected' | 'review'; +}; + +export type IssuingCardShippingAddressValidationModel = { + 'mode': 'disabled' | 'normalization_only' | 'validation_and_normalization'; + 'normalized_address'?: AddressModel | undefined; + 'result'?: 'indeterminate' | 'likely_deliverable' | 'likely_undeliverable' | undefined; +}; + +export type IssuingCardShippingCustomsModel = { + 'eori_number'?: string | undefined; +}; + +export type IssuingCardShippingModel = { + 'address': AddressModel; + 'address_validation'?: IssuingCardShippingAddressValidationModel | undefined; + 'carrier'?: 'dhl' | 'fedex' | 'royal_mail' | 'usps' | undefined; + 'customs'?: IssuingCardShippingCustomsModel | undefined; + 'eta'?: number | undefined; + 'name': string; + 'phone_number'?: string | undefined; + 'require_signature'?: boolean | undefined; + 'service': 'express' | 'priority' | 'standard'; + 'status'?: 'canceled' | 'delivered' | 'failure' | 'pending' | 'returned' | 'shipped' | 'submitted' | undefined; + 'tracking_number'?: string | undefined; + 'tracking_url'?: string | undefined; + 'type': 'bulk' | 'individual'; +}; + +export type IssuingCardSpendingLimitModel = { + 'amount': number; + 'categories'?: Array<'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'; +}; + +export type IssuingCardAuthorizationControlsModel = { + 'allowed_categories'?: Array<'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'?: Array<'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'?: IssuingCardSpendingLimitModel[] | undefined; + 'spending_limits_currency'?: string | undefined; +}; + +export type IssuingCardApplePayModel = { + 'eligible': boolean; + 'ineligible_reason'?: 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region' | undefined; +}; + +export type IssuingCardGooglePayModel = { + 'eligible': boolean; + 'ineligible_reason'?: 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region' | undefined; +}; + +export type IssuingCardWalletsModel = { + 'apple_pay': IssuingCardApplePayModel; + 'google_pay': IssuingCardGooglePayModel; + 'primary_account_identifier'?: string | undefined; +}; + +export type IssuingCardModel = { + 'brand': string; + 'cancellation_reason'?: 'design_rejected' | 'lost' | 'stolen' | undefined; + 'cardholder': IssuingCardholderModel; + 'created': number; + 'currency': string; + 'cvc'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'financial_account'?: string | undefined; + 'id': string; + 'last4': string; + 'latest_fraud_warning'?: IssuingCardFraudWarningModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'number'?: string | undefined; + 'object': 'issuing.card'; + 'personalization_design'?: string | IssuingPersonalizationDesignModel | undefined; + 'replaced_by'?: string | IssuingCardModel | undefined; + 'replacement_for'?: string | IssuingCardModel | undefined; + 'replacement_reason'?: 'damaged' | 'expired' | 'lost' | 'stolen' | undefined; + 'second_line'?: string | undefined; + 'shipping'?: IssuingCardShippingModel | undefined; + 'spending_controls': IssuingCardAuthorizationControlsModel; + 'status': 'active' | 'canceled' | 'inactive'; + 'type': 'physical' | 'virtual'; + 'wallets'?: IssuingCardWalletsModel | undefined; +}; + +export type IssuingAuthorizationFleetCardholderPromptDataModel = { + 'alphanumeric_id'?: string | undefined; + 'driver_id'?: string | undefined; + 'odometer'?: number | undefined; + 'unspecified_id'?: string | undefined; + 'user_id'?: string | undefined; + 'vehicle_number'?: string | undefined; +}; + +export type IssuingAuthorizationFleetFuelPriceDataModel = { + 'gross_amount_decimal'?: string | undefined; +}; + +export type IssuingAuthorizationFleetNonFuelPriceDataModel = { + 'gross_amount_decimal'?: string | undefined; +}; + +export type IssuingAuthorizationFleetTaxDataModel = { + 'local_amount_decimal'?: string | undefined; + 'national_amount_decimal'?: string | undefined; +}; + +export type IssuingAuthorizationFleetReportedBreakdownModel = { + 'fuel'?: IssuingAuthorizationFleetFuelPriceDataModel | undefined; + 'non_fuel'?: IssuingAuthorizationFleetNonFuelPriceDataModel | undefined; + 'tax'?: IssuingAuthorizationFleetTaxDataModel | undefined; +}; + +export type IssuingAuthorizationFleetDataModel = { + 'cardholder_prompt_data'?: IssuingAuthorizationFleetCardholderPromptDataModel | undefined; + 'purchase_type'?: 'fuel_and_non_fuel_purchase' | 'fuel_purchase' | 'non_fuel_purchase' | undefined; + 'reported_breakdown'?: IssuingAuthorizationFleetReportedBreakdownModel | undefined; + 'service_type'?: 'full_service' | 'non_fuel_transaction' | 'self_service' | undefined; +}; + +export type IssuingAuthorizationFraudChallengeModel = { + 'channel': 'sms'; + 'status': 'expired' | 'pending' | 'rejected' | 'undeliverable' | 'verified'; + 'undeliverable_reason'?: 'no_phone_number' | 'unsupported_phone_number' | undefined; +}; + +export type IssuingAuthorizationFuelDataModel = { + '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; +}; + +export type IssuingAuthorizationMerchantDataModel = { + 'category': string; + 'category_code': string; + 'city'?: string | undefined; + 'country'?: string | undefined; + 'name'?: string | undefined; + 'network_id': string; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; + 'tax_id'?: string | undefined; + 'terminal_id'?: string | undefined; + 'url'?: string | undefined; +}; + +export type IssuingAuthorizationNetworkDataModel = { + 'acquiring_institution_id'?: string | undefined; + 'system_trace_audit_number'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type IssuingAuthorizationPendingRequestModel = { + 'amount': number; + 'amount_details'?: IssuingAuthorizationAmountDetailsModel | undefined; + 'currency': string; + 'is_amount_controllable': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score'?: number | undefined; +}; + +export type IssuingAuthorizationRequestModel = { + 'amount': number; + 'amount_details'?: IssuingAuthorizationAmountDetailsModel | undefined; + 'approved': boolean; + 'authorization_code'?: string | undefined; + 'created': number; + 'currency': string; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score'?: number | undefined; + 'reason': 'account_disabled' | 'card_active' | 'card_canceled' | 'card_expired' | 'card_inactive' | 'cardholder_blocked' | 'cardholder_inactive' | 'cardholder_verification_required' | 'insecure_authorization_method' | 'insufficient_funds' | 'network_fallback' | 'not_allowed' | 'pin_blocked' | 'spending_controls' | 'suspected_fraud' | 'verification_failed' | 'webhook_approved' | 'webhook_declined' | 'webhook_error' | 'webhook_timeout'; + 'reason_message'?: string | undefined; + 'requested_at'?: number | undefined; +}; + +export type IssuingNetworkTokenDeviceModel = { + '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 IssuingNetworkTokenMastercardModel = { + 'card_reference_id'?: string | undefined; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_requestor_name'?: string | undefined; +}; + +export type IssuingNetworkTokenVisaModel = { + 'card_reference_id': string; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_risk_score'?: string | undefined; +}; + +export type IssuingNetworkTokenAddressModel = { + 'line1': string; + 'postal_code': string; +}; + +export type IssuingNetworkTokenWalletProviderModel = { + 'account_id'?: string | undefined; + 'account_trust_score'?: number | undefined; + 'card_number_source'?: 'app' | 'manual' | 'on_file' | 'other' | undefined; + 'cardholder_address'?: IssuingNetworkTokenAddressModel | undefined; + 'cardholder_name'?: string | undefined; + 'device_trust_score'?: number | undefined; + 'hashed_account_email_address'?: string | undefined; + 'reason_codes'?: Array<'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 IssuingNetworkTokenNetworkDataModel = { + 'device'?: IssuingNetworkTokenDeviceModel | undefined; + 'mastercard'?: IssuingNetworkTokenMastercardModel | undefined; + 'type': 'mastercard' | 'visa'; + 'visa'?: IssuingNetworkTokenVisaModel | undefined; + 'wallet_provider'?: IssuingNetworkTokenWalletProviderModel | undefined; +}; + +export type IssuingTokenModel = { + 'card': string | IssuingCardModel; + 'created': number; + 'device_fingerprint'?: string | undefined; + 'id': string; + 'last4'?: string | undefined; + 'livemode': boolean; + 'network': 'mastercard' | 'visa'; + 'network_data'?: IssuingNetworkTokenNetworkDataModel | undefined; + 'network_updated_at': number; + 'object': 'issuing.token'; + 'status': 'active' | 'deleted' | 'requested' | 'suspended'; + 'wallet_provider'?: 'apple_pay' | 'google_pay' | 'samsung_pay' | undefined; +}; + +export type IssuingTransactionAmountDetailsModel = { + 'atm_fee'?: number | undefined; + 'cashback_amount'?: number | undefined; +}; + +export type IssuingDisputeCanceledEvidenceModel = { + 'additional_documentation'?: string | FileModel | 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; +}; + +export type IssuingDisputeDuplicateEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'card_statement'?: string | FileModel | undefined; + 'cash_receipt'?: string | FileModel | undefined; + 'check_image'?: string | FileModel | undefined; + 'explanation'?: string | undefined; + 'original_transaction'?: string | undefined; +}; + +export type IssuingDisputeFraudulentEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'explanation'?: string | undefined; +}; + +export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'explanation'?: string | undefined; + 'received_at'?: number | undefined; + 'return_description'?: string | undefined; + 'return_status'?: 'merchant_rejected' | 'successful' | undefined; + 'returned_at'?: number | undefined; +}; + +export type IssuingDisputeNoValidAuthorizationEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'explanation'?: string | undefined; +}; + +export type IssuingDisputeNotReceivedEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'expected_at'?: number | undefined; + 'explanation'?: string | undefined; + 'product_description'?: string | undefined; + 'product_type'?: 'merchandise' | 'service' | undefined; +}; + +export type IssuingDisputeOtherEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'explanation'?: string | undefined; + 'product_description'?: string | undefined; + 'product_type'?: 'merchandise' | 'service' | undefined; +}; + +export type IssuingDisputeServiceNotAsDescribedEvidenceModel = { + 'additional_documentation'?: string | FileModel | undefined; + 'canceled_at'?: number | undefined; + 'cancellation_reason'?: string | undefined; + 'explanation'?: string | undefined; + 'received_at'?: number | undefined; +}; + +export type IssuingDisputeEvidenceModel = { + 'canceled'?: IssuingDisputeCanceledEvidenceModel | undefined; + 'duplicate'?: IssuingDisputeDuplicateEvidenceModel | undefined; + 'fraudulent'?: IssuingDisputeFraudulentEvidenceModel | undefined; + 'merchandise_not_as_described'?: IssuingDisputeMerchandiseNotAsDescribedEvidenceModel | undefined; + 'no_valid_authorization'?: IssuingDisputeNoValidAuthorizationEvidenceModel | undefined; + 'not_received'?: IssuingDisputeNotReceivedEvidenceModel | undefined; + 'other'?: IssuingDisputeOtherEvidenceModel | undefined; + 'reason': 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described'; + 'service_not_as_described'?: IssuingDisputeServiceNotAsDescribedEvidenceModel | undefined; +}; + +export type IssuingDisputeTreasuryModel = { + 'debit_reversal'?: string | undefined; + 'received_debit': string; +}; + +export type IssuingDisputeModel = { + 'amount': number; + 'balance_transactions'?: BalanceTransactionModel[] | undefined; + 'created': number; + 'currency': string; + 'evidence': IssuingDisputeEvidenceModel; + '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' | undefined; + 'metadata': { + [key: string]: string; +}; + 'object': 'issuing.dispute'; + 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; + 'transaction': string | IssuingTransactionModel; + 'treasury'?: IssuingDisputeTreasuryModel | undefined; +}; + +export type IssuingTransactionNetworkDataModel = { + 'authorization_code'?: string | undefined; + 'processing_date'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type IssuingTransactionFleetCardholderPromptDataModel = { + 'driver_id'?: string | undefined; + 'odometer'?: number | undefined; + 'unspecified_id'?: string | undefined; + 'user_id'?: string | undefined; + 'vehicle_number'?: string | undefined; +}; + +export type IssuingTransactionFleetFuelPriceDataModel = { + 'gross_amount_decimal'?: string | undefined; +}; + +export type IssuingTransactionFleetNonFuelPriceDataModel = { + 'gross_amount_decimal'?: string | undefined; +}; + +export type IssuingTransactionFleetTaxDataModel = { + 'local_amount_decimal'?: string | undefined; + 'national_amount_decimal'?: string | undefined; +}; + +export type IssuingTransactionFleetReportedBreakdownModel = { + 'fuel'?: IssuingTransactionFleetFuelPriceDataModel | undefined; + 'non_fuel'?: IssuingTransactionFleetNonFuelPriceDataModel | undefined; + 'tax'?: IssuingTransactionFleetTaxDataModel | undefined; +}; + +export type IssuingTransactionFleetDataModel = { + 'cardholder_prompt_data'?: IssuingTransactionFleetCardholderPromptDataModel | undefined; + 'purchase_type'?: string | undefined; + 'reported_breakdown'?: IssuingTransactionFleetReportedBreakdownModel | undefined; + 'service_type'?: string | undefined; +}; + +export type IssuingTransactionFlightDataLegModel = { + '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; +}; + +export type IssuingTransactionFlightDataModel = { + 'departure_at'?: number | undefined; + 'passenger_name'?: string | undefined; + 'refundable'?: boolean | undefined; + 'segments'?: IssuingTransactionFlightDataLegModel[] | undefined; + 'travel_agency'?: string | undefined; +}; + +export type IssuingTransactionFuelDataModel = { + 'industry_product_code'?: string | undefined; + 'quantity_decimal'?: string | undefined; + 'type': string; + 'unit': string; + 'unit_cost_decimal': string; +}; + +export type IssuingTransactionLodgingDataModel = { + 'check_in_at'?: number | undefined; + 'nights'?: number | undefined; +}; + +export type IssuingTransactionReceiptDataModel = { + 'description'?: string | undefined; + 'quantity'?: number | undefined; + 'total'?: number | undefined; + 'unit_cost'?: number | undefined; +}; + +export type IssuingTransactionPurchaseDetailsModel = { + 'fleet'?: IssuingTransactionFleetDataModel | undefined; + 'flight'?: IssuingTransactionFlightDataModel | undefined; + 'fuel'?: IssuingTransactionFuelDataModel | undefined; + 'lodging'?: IssuingTransactionLodgingDataModel | undefined; + 'receipt'?: IssuingTransactionReceiptDataModel[] | undefined; + 'reference'?: string | undefined; +}; + +export type IssuingTransactionTreasuryModel = { + 'received_credit'?: string | undefined; + 'received_debit'?: string | undefined; +}; + +export type IssuingTransactionModel = { + 'amount': number; + 'amount_details'?: IssuingTransactionAmountDetailsModel | undefined; + 'authorization'?: string | IssuingAuthorizationModel | undefined; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'card': string | IssuingCardModel; + 'cardholder'?: string | IssuingCardholderModel | undefined; + 'created': number; + 'currency': string; + 'dispute'?: string | IssuingDisputeModel | undefined; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; +}; + 'network_data'?: IssuingTransactionNetworkDataModel | undefined; + 'object': 'issuing.transaction'; + 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; + 'token'?: string | IssuingTokenModel | undefined; + 'treasury'?: IssuingTransactionTreasuryModel | undefined; + 'type': 'capture' | 'refund'; + 'wallet'?: 'apple_pay' | 'google_pay' | 'samsung_pay' | undefined; +}; + +export type IssuingAuthorizationTreasuryModel = { + 'received_credits': string[]; + 'received_debits': string[]; + 'transaction'?: string | undefined; +}; + +export type IssuingAuthorizationAuthenticationExemptionModel = { + 'claimed_by': 'acquirer' | 'issuer'; + 'type': 'low_value_transaction' | 'transaction_risk_analysis' | 'unknown'; +}; + +export type IssuingAuthorizationThreeDSecureModel = { + 'result': 'attempt_acknowledged' | 'authenticated' | 'failed' | 'required'; +}; + +export type IssuingAuthorizationVerificationDataModel = { + 'address_line1_check': 'match' | 'mismatch' | 'not_provided'; + 'address_postal_code_check': 'match' | 'mismatch' | 'not_provided'; + 'authentication_exemption'?: IssuingAuthorizationAuthenticationExemptionModel | undefined; + 'cvc_check': 'match' | 'mismatch' | 'not_provided'; + 'expiry_check': 'match' | 'mismatch' | 'not_provided'; + 'postal_code'?: string | undefined; + 'three_d_secure'?: IssuingAuthorizationThreeDSecureModel | undefined; +}; + +export type IssuingAuthorizationModel = { + 'amount': number; + 'amount_details'?: IssuingAuthorizationAmountDetailsModel | undefined; + 'approved': boolean; + 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; + 'balance_transactions': BalanceTransactionModel[]; + 'card': IssuingCardModel; + 'cardholder'?: string | IssuingCardholderModel | undefined; + 'created': number; + 'currency': string; + 'fleet'?: IssuingAuthorizationFleetDataModel | undefined; + 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; + 'fuel'?: IssuingAuthorizationFuelDataModel | undefined; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; +}; + 'network_data'?: IssuingAuthorizationNetworkDataModel | undefined; + 'object': 'issuing.authorization'; + 'pending_request'?: IssuingAuthorizationPendingRequestModel | undefined; + 'request_history': IssuingAuthorizationRequestModel[]; + 'status': 'closed' | 'expired' | 'pending' | 'reversed'; + 'token'?: string | IssuingTokenModel | undefined; + 'transactions': IssuingTransactionModel[]; + 'treasury'?: IssuingAuthorizationTreasuryModel | undefined; + 'verification_data': IssuingAuthorizationVerificationDataModel; + 'verified_by_fraud_challenge'?: boolean | undefined; + 'wallet'?: string | undefined; +}; + +export type DeletedBankAccountModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'bank_account'; +}; + +export type DeletedCardModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'card'; +}; + +export type PayoutsTraceIdModel = { + 'status': string; + 'value'?: string | undefined; +}; + +export type PayoutModel = { + 'amount': number; + 'application_fee'?: string | ApplicationFeeModel | undefined; + 'application_fee_amount'?: number | undefined; + 'arrival_date': number; + 'automatic': boolean; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'destination'?: string | BankAccountModel | CardModel | DeletedBankAccountModel | DeletedCardModel | undefined; + 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; + 'failure_code'?: string | undefined; + 'failure_message'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'method': string; + 'object': 'payout'; + 'original_payout'?: string | PayoutModel | undefined; + 'payout_method'?: string | undefined; + 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; + 'reversed_by'?: string | PayoutModel | undefined; + 'source_type': string; + 'statement_descriptor'?: string | undefined; + 'status': string; + 'trace_id'?: PayoutsTraceIdModel | undefined; + 'type': 'bank_account' | 'card'; +}; + +export type ReserveTransactionModel = { + 'amount': number; + 'currency': string; + 'description'?: string | undefined; + 'id': string; + 'object': 'reserve_transaction'; +}; + +export type TaxDeductedAtSourceModel = { + 'id': string; + 'object': 'tax_deducted_at_source'; + 'period_end': number; + 'period_start': number; + 'tax_deduction_account_number': string; +}; + +export type TopupModel = { + 'amount': number; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'expected_availability_date'?: number | undefined; + 'failure_code'?: string | undefined; + 'failure_message'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'topup'; + 'source'?: SourceModel | undefined; + 'statement_descriptor'?: string | undefined; + 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; + 'transfer_group'?: string | undefined; +}; + +export type BalanceTransactionModel = { + 'amount': number; + 'available_on': number; + 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'exchange_rate'?: number | undefined; + 'fee': number; + 'fee_details': FeeModel[]; + 'id': string; + 'net': number; + 'object': 'balance_transaction'; + 'reporting_category': string; + 'source'?: string | ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel | undefined; + 'status': string; + 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; +}; + +export type PlatformEarningFeeSourceModel = { + 'charge'?: string | undefined; + 'payout'?: string | undefined; + 'type': 'charge' | 'payout'; +}; + +export type ApplicationFeeModel = { + 'account': string | AccountModel; + 'amount': number; + 'amount_refunded': number; + 'application': string | ApplicationModel; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'fee_source'?: PlatformEarningFeeSourceModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'application_fee'; + 'originating_transaction'?: string | ChargeModel | undefined; + 'refunded': boolean; + 'refunds': { + 'data': FeeRefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type ChargeFraudDetailsModel = { + 'stripe_report'?: string | undefined; + 'user_report'?: string | undefined; +}; + +export type RuleModel = { + 'action': string; + 'id': string; + 'predicate': string; +}; + +export type ChargeOutcomeModel = { + 'advice_code'?: 'confirm_card_data' | 'do_not_try_again' | 'try_again_later' | undefined; + 'network_advice_code'?: string | undefined; + 'network_decline_code'?: string | undefined; + 'network_status'?: string | undefined; + 'reason'?: string | undefined; + 'risk_level'?: string | undefined; + 'risk_score'?: number | undefined; + 'rule'?: string | RuleModel | undefined; + 'seller_message'?: string | undefined; + 'type': string; +}; + +export type PaymentMethodDetailsAchCreditTransferModel = { + 'account_number'?: string | undefined; + 'bank_name'?: string | undefined; + 'routing_number'?: string | undefined; + 'swift_code'?: string | undefined; +}; + +export type PaymentMethodDetailsAchDebitModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'bank_name'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type PaymentMethodDetailsAcssDebitModel = { + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'institution_number'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | undefined; + 'transit_number'?: string | undefined; +}; + +export type PaymentMethodDetailsAffirmModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsAfterpayClearpayModel = { + 'order_id'?: string | undefined; + 'reference'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = { + 'buyer_id'?: string | undefined; + 'fingerprint'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type AlmaInstallmentsModel = { + 'count': number; +}; + +export type PaymentMethodDetailsAlmaModel = { + 'installments'?: AlmaInstallmentsModel | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsPassthroughCardModel = { + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'funding'?: string | undefined; + 'last4'?: string | undefined; +}; + +export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type'?: 'card' | undefined; +}; + +export type PaymentMethodDetailsAmazonPayModel = { + 'funding'?: AmazonPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsAuBecsDebitModel = { + 'bsb_number'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | undefined; +}; + +export type PaymentMethodDetailsBacsDebitModel = { + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | undefined; + 'sort_code'?: string | undefined; +}; + +export type PaymentMethodDetailsBancontactModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsBillieModel = { + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsBlikModel = { + 'buyer_id'?: string | undefined; +}; + +export type PaymentMethodDetailsBoletoModel = { + 'tax_id': string; +}; + +export type PaymentMethodDetailsCardChecksModel = { + 'address_line1_check'?: string | undefined; + 'address_postal_code_check'?: string | undefined; + 'cvc_check'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = { + 'status': 'disabled' | 'enabled'; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardInstallmentsPlanModel = { + 'count'?: number | undefined; + 'interval'?: 'month' | undefined; + 'type': 'bonus' | 'fixed_count' | 'revolving'; +}; + +export type PaymentMethodDetailsCardInstallmentsModel = { + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = { + 'maximum_amount_capturable': number; + 'status': 'available' | 'unavailable'; +}; + +export type ThreeDSecureDetailsChargeModel = { + 'authentication_flow'?: 'challenge' | 'frictionless' | undefined; + 'electronic_commerce_indicator'?: '01' | '02' | '05' | '06' | '07' | undefined; + 'exemption_indicator'?: 'low_risk' | 'none' | undefined; + 'exemption_indicator_applied'?: boolean | undefined; + 'result'?: 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | undefined; + 'result_reason'?: 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | undefined; + 'transaction_id'?: string | undefined; + 'version'?: '1.0.2' | '2.1.0' | '2.2.0' | undefined; +}; + +export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodDetailsCardWalletLinkModel = { + +}; + +export type PaymentMethodDetailsCardWalletMasterpassModel = { + 'billing_address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'shipping_address'?: AddressModel | undefined; +}; + +export type PaymentMethodDetailsCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodDetailsCardWalletVisaCheckoutModel = { + 'billing_address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'shipping_address'?: AddressModel | undefined; +}; + +export type PaymentMethodDetailsCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodDetailsCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'dynamic_last4'?: string | undefined; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodDetailsCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodDetailsCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodDetailsCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodDetailsCardModel = { + 'amount_authorized'?: number | undefined; + 'authorization_code'?: string | undefined; + 'brand'?: string | undefined; + 'capture_before'?: number | undefined; + 'checks'?: PaymentMethodDetailsCardChecksModel | undefined; + 'country'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'extended_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'incremental_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel | undefined; + 'installments'?: PaymentMethodDetailsCardInstallmentsModel | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | undefined; + 'multicapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel | undefined; + 'network'?: string | undefined; + 'network_token'?: PaymentMethodDetailsCardNetworkTokenModel | undefined; + 'network_transaction_id'?: string | undefined; + 'overcapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel | undefined; + 'regulated_status'?: 'regulated' | 'unregulated' | undefined; + 'three_d_secure'?: ThreeDSecureDetailsChargeModel | undefined; + 'wallet'?: PaymentMethodDetailsCardWalletModel | undefined; +}; + +export type PaymentMethodDetailsCashappModel = { + 'buyer_id'?: string | undefined; + 'cashtag'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsCryptoModel = { + 'buyer_address'?: string | undefined; + 'network'?: 'base' | 'ethereum' | 'polygon' | 'solana' | undefined; + 'token_currency'?: 'usdc' | 'usdg' | 'usdp' | undefined; + 'transaction_hash'?: string | undefined; +}; + +export type PaymentMethodDetailsCustomerBalanceModel = { + +}; + +export type PaymentMethodDetailsEpsModel = { + '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; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsFpxModel = { + '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'; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsGiropayModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsGrabpayModel = { + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsIdealModel = { + 'bank'?: 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | undefined; + 'bic'?: 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'transaction_id'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsInteracPresentReceiptModel = { + 'account_type'?: 'checking' | 'savings' | 'unknown' | undefined; + 'application_cryptogram'?: string | undefined; + 'application_preferred_name'?: string | undefined; + 'authorization_code'?: string | undefined; + 'authorization_response_code'?: string | undefined; + 'cardholder_verification_method'?: string | undefined; + 'dedicated_file_name'?: string | undefined; + 'terminal_verification_results'?: string | undefined; + 'transaction_status_information'?: string | undefined; +}; + +export type PaymentMethodDetailsInteracPresentModel = { + 'brand'?: string | undefined; + 'cardholder_name'?: string | undefined; + 'country'?: string | undefined; + 'description'?: string | undefined; + 'emv_auth_data'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'generated_card'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'network'?: string | undefined; + 'network_transaction_id'?: string | undefined; + 'preferred_locales'?: string[] | undefined; + 'read_method'?: 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2' | undefined; + 'receipt'?: PaymentMethodDetailsInteracPresentReceiptModel | undefined; +}; + +export type PaymentMethodDetailsKakaoPayModel = { + 'buyer_id'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type KlarnaAddressModel = { + 'country'?: string | undefined; +}; + +export type KlarnaPayerDetailsModel = { + 'address'?: KlarnaAddressModel | undefined; +}; + +export type PaymentMethodDetailsKlarnaModel = { + 'payer_details'?: KlarnaPayerDetailsModel | undefined; + 'payment_method_category'?: string | undefined; + 'preferred_locale'?: string | undefined; +}; + +export type PaymentMethodDetailsKonbiniStoreModel = { + 'chain'?: 'familymart' | 'lawson' | 'ministop' | 'seicomart' | undefined; +}; + +export type PaymentMethodDetailsKonbiniModel = { + 'store'?: PaymentMethodDetailsKonbiniStoreModel | undefined; +}; + +export type PaymentMethodDetailsKrCardModel = { + 'brand'?: 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori' | undefined; + 'buyer_id'?: string | undefined; + 'last4'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsLinkModel = { + 'country'?: string | undefined; +}; + +export type PaymentMethodDetailsMbWayModel = { + +}; + +export type InternalCardModel = { + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'last4'?: string | undefined; +}; + +export type PaymentMethodDetailsMobilepayModel = { + 'card'?: InternalCardModel | undefined; +}; + +export type PaymentMethodDetailsMultibancoModel = { + 'entity'?: string | undefined; + 'reference'?: string | undefined; +}; + +export type PaymentMethodDetailsNaverPayModel = { + 'buyer_id'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsNzBankAccountModel = { + 'account_holder_name'?: string | undefined; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix'?: string | undefined; +}; + +export type PaymentMethodDetailsOxxoModel = { + 'number'?: string | undefined; +}; + +export type PaymentMethodDetailsP24Model = { + '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; + 'reference'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsPayByBankModel = { + +}; + +export type PaymentMethodDetailsPaycoModel = { + 'buyer_id'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsPaynowModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'reference'?: string | undefined; +}; + +export type PaypalSellerProtectionModel = { + 'dispute_categories'?: Array<'fraudulent' | 'product_not_received'> | undefined; + 'status': 'eligible' | 'not_eligible' | 'partially_eligible'; +}; + +export type PaymentMethodDetailsPaypalModel = { + 'country'?: string | undefined; + 'payer_email'?: string | undefined; + 'payer_id'?: string | undefined; + 'payer_name'?: string | undefined; + 'seller_protection'?: PaypalSellerProtectionModel | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsPixModel = { + 'bank_transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsPromptpayModel = { + 'reference'?: string | undefined; +}; + +export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type'?: 'card' | undefined; +}; + +export type PaymentMethodDetailsRevolutPayModel = { + 'funding'?: RevolutPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsSamsungPayModel = { + 'buyer_id'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsSatispayModel = { + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsSepaDebitModel = { + 'bank_code'?: string | undefined; + 'branch_code'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | undefined; +}; + +export type PaymentMethodDetailsSofortModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'country'?: string | undefined; + 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; + 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl' | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsStripeAccountModel = { + +}; + +export type PaymentMethodDetailsSwishModel = { + 'fingerprint'?: string | undefined; + 'payment_reference'?: string | undefined; + 'verified_phone_last4'?: string | undefined; +}; + +export type PaymentMethodDetailsTwintModel = { + +}; + +export type PaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type PaymentMethodDetailsWechatModel = { + +}; + +export type PaymentMethodDetailsWechatPayModel = { + 'fingerprint'?: string | undefined; + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsZipModel = { + +}; + +export type PaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentMethodDetailsCardModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type RadarRadarOptionsModel = { + 'session'?: string | undefined; +}; + +export type RadarReviewResourceLocationModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'latitude'?: number | undefined; + 'longitude'?: number | undefined; + 'region'?: string | undefined; +}; + +export type RadarReviewResourceSessionModel = { + 'browser'?: string | undefined; + 'device'?: string | undefined; + 'platform'?: string | undefined; + 'version'?: string | undefined; +}; + +export type ReviewModel = { + 'billing_zip'?: string | undefined; + 'charge'?: string | ChargeModel | undefined; + 'closed_reason'?: 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud' | undefined; + 'created': number; + 'id': string; + 'ip_address'?: string | undefined; + 'ip_address_location'?: RadarReviewResourceLocationModel | undefined; + 'livemode': boolean; + 'object': 'review'; + 'open': boolean; + 'opened_reason': 'manual' | 'rule'; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason': string; + 'session'?: RadarReviewResourceSessionModel | undefined; +}; + +export type ChargeTransferDataModel = { + 'amount'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type ChargeModel = { + 'amount': number; + 'amount_captured': number; + 'amount_refunded': number; + 'application'?: string | ApplicationModel | undefined; + 'application_fee'?: string | ApplicationFeeModel | undefined; + 'application_fee_amount'?: number | undefined; + 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'billing_details': BillingDetailsModel; + 'calculated_statement_descriptor'?: string | undefined; + 'captured': boolean; + 'created': number; + 'currency': string; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'description'?: string | undefined; + 'disputed': boolean; + 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; + 'failure_code'?: string | undefined; + 'failure_message'?: string | undefined; + 'fraud_details'?: ChargeFraudDetailsModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'charge'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'outcome'?: ChargeOutcomeModel | undefined; + 'paid': boolean; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_method'?: string | undefined; + 'payment_method_details'?: PaymentMethodDetailsModel | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'receipt_email'?: string | undefined; + 'receipt_number'?: string | undefined; + 'receipt_url'?: string | undefined; + 'refunded': boolean; + 'refunds'?: { + 'data': RefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'review'?: string | ReviewModel | undefined; + 'shipping'?: ShippingModel | undefined; + 'source_transfer'?: string | TransferModel | undefined; + 'statement_descriptor'?: string | undefined; + 'statement_descriptor_suffix'?: string | undefined; + 'status': 'failed' | 'pending' | 'succeeded'; + 'transfer'?: string | TransferModel | undefined; + 'transfer_data'?: ChargeTransferDataModel | undefined; + 'transfer_group'?: string | undefined; +}; + +export type PaymentIntentNextActionAlipayHandleRedirectModel = { + 'native_data'?: string | undefined; + 'native_url'?: string | undefined; + 'return_url'?: string | undefined; + 'url'?: string | undefined; +}; + +export type PaymentIntentNextActionBoletoModel = { + 'expires_at'?: number | undefined; + 'hosted_voucher_url'?: string | undefined; + 'number'?: string | undefined; + 'pdf'?: string | undefined; +}; + +export type PaymentIntentNextActionCardAwaitNotificationModel = { + 'charge_attempt_at'?: number | undefined; + 'customer_approval_required'?: boolean | undefined; +}; + +export type PaymentIntentNextActionCashappQrCodeModel = { + 'expires_at': number; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'mobile_auth_url': string; + 'qr_code': PaymentIntentNextActionCashappQrCodeModel; +}; + +export type FundingInstructionsBankTransferAbaRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'routing_number': string; +}; + +export type FundingInstructionsBankTransferIbanRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bic': string; + 'country': string; + 'iban': string; +}; + +export type FundingInstructionsBankTransferSortCodeRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'bank_address': AddressModel; + 'sort_code': string; +}; + +export type FundingInstructionsBankTransferSpeiRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bank_code': string; + 'bank_name': string; + 'clabe': string; +}; + +export type FundingInstructionsBankTransferSwiftRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'swift_code': string; +}; + +export type FundingInstructionsBankTransferZenginRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name'?: string | undefined; + 'account_number'?: string | undefined; + 'account_type'?: string | undefined; + 'bank_address': AddressModel; + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'branch_code'?: string | undefined; + 'branch_name'?: string | undefined; +}; + +export type FundingInstructionsBankTransferFinancialAddressModel = { + 'aba'?: FundingInstructionsBankTransferAbaRecordModel | undefined; + 'iban'?: FundingInstructionsBankTransferIbanRecordModel | undefined; + 'sort_code'?: FundingInstructionsBankTransferSortCodeRecordModel | undefined; + 'spei'?: FundingInstructionsBankTransferSpeiRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'bacs' | 'domestic_wire_us' | 'fps' | 'sepa' | 'spei' | 'swift' | 'zengin'> | undefined; + 'swift'?: FundingInstructionsBankTransferSwiftRecordModel | undefined; + 'type': 'aba' | 'iban' | 'sort_code' | 'spei' | 'swift' | 'zengin'; + 'zengin'?: FundingInstructionsBankTransferZenginRecordModel | undefined; +}; + +export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = { + 'amount_remaining'?: number | undefined; + 'currency'?: string | undefined; + 'financial_addresses'?: FundingInstructionsBankTransferFinancialAddressModel[] | undefined; + 'hosted_instructions_url'?: string | undefined; + 'reference'?: string | undefined; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; +}; + +export type PaymentIntentNextActionKonbiniFamilymartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniLawsonModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniMinistopModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniSeicomartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniStoresModel = { + 'familymart'?: PaymentIntentNextActionKonbiniFamilymartModel | undefined; + 'lawson'?: PaymentIntentNextActionKonbiniLawsonModel | undefined; + 'ministop'?: PaymentIntentNextActionKonbiniMinistopModel | undefined; + 'seicomart'?: PaymentIntentNextActionKonbiniSeicomartModel | undefined; +}; + +export type PaymentIntentNextActionKonbiniModel = { + 'expires_at': number; + 'hosted_voucher_url'?: string | undefined; + 'stores': PaymentIntentNextActionKonbiniStoresModel; +}; + +export type PaymentIntentNextActionDisplayMultibancoDetailsModel = { + 'entity'?: string | undefined; + 'expires_at'?: number | undefined; + 'hosted_voucher_url'?: string | undefined; + 'reference'?: string | undefined; +}; + +export type PaymentIntentNextActionDisplayOxxoDetailsModel = { + 'expires_after'?: number | undefined; + 'hosted_voucher_url'?: string | undefined; + 'number'?: string | undefined; +}; + +export type PaymentIntentNextActionPaynowDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url'?: string | undefined; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionPixDisplayQrCodeModel = { + 'data'?: string | undefined; + 'expires_at'?: number | undefined; + 'hosted_instructions_url'?: string | undefined; + 'image_url_png'?: string | undefined; + 'image_url_svg'?: string | undefined; +}; + +export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionRedirectToUrlModel = { + 'return_url'?: string | undefined; + 'url'?: string | undefined; +}; + +export type PaymentIntentNextActionSwishQrCodeModel = { + 'data': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'qr_code': PaymentIntentNextActionSwishQrCodeModel; +}; + +export type PaymentIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type'?: 'amounts' | 'descriptor_code' | undefined; +}; + +export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_data_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = { + 'app_id': string; + 'nonce_str': string; + 'package': string; + 'partner_id': string; + 'prepay_id': string; + 'sign': string; + 'timestamp': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = { + 'native_url': string; +}; + +export type PaymentIntentNextActionModel = { + 'alipay_handle_redirect'?: PaymentIntentNextActionAlipayHandleRedirectModel | undefined; + 'boleto_display_details'?: PaymentIntentNextActionBoletoModel | undefined; + 'card_await_notification'?: PaymentIntentNextActionCardAwaitNotificationModel | undefined; + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'display_bank_transfer_instructions'?: PaymentIntentNextActionDisplayBankTransferInstructionsModel | undefined; + 'konbini_display_details'?: PaymentIntentNextActionKonbiniModel | undefined; + 'multibanco_display_details'?: PaymentIntentNextActionDisplayMultibancoDetailsModel | undefined; + 'oxxo_display_details'?: PaymentIntentNextActionDisplayOxxoDetailsModel | undefined; + 'paynow_display_qr_code'?: PaymentIntentNextActionPaynowDisplayQrCodeModel | undefined; + 'pix_display_qr_code'?: PaymentIntentNextActionPixDisplayQrCodeModel | undefined; + 'promptpay_display_qr_code'?: PaymentIntentNextActionPromptpayDisplayQrCodeModel | undefined; + 'redirect_to_url'?: PaymentIntentNextActionRedirectToUrlModel | undefined; + 'swish_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: PaymentIntentNextActionVerifyWithMicrodepositsModel | undefined; + 'wechat_pay_display_qr_code'?: PaymentIntentNextActionWechatPayDisplayQrCodeModel | undefined; + 'wechat_pay_redirect_to_android_app'?: PaymentIntentNextActionWechatPayRedirectToAndroidAppModel | undefined; + 'wechat_pay_redirect_to_ios_app'?: PaymentIntentNextActionWechatPayRedirectToIosAppModel | undefined; +}; + +export type PaymentFlowsPaymentDetailsModel = { + 'customer_reference'?: string | undefined; + 'order_reference'?: string | undefined; +}; + +export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = { + 'id': string; + 'parent'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'interval_description'?: string | undefined; + 'payment_schedule'?: 'combined' | 'interval' | 'sporadic' | undefined; + 'transaction_type'?: 'business' | 'personal' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentFlowsInstallmentOptionsModel = { + 'enabled': boolean; + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type PaymentMethodOptionsCardPresentRoutingModel = { + 'requested_priority'?: 'domestic' | 'international' | undefined; +}; + +export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'installments'?: PaymentFlowsInstallmentOptionsModel | undefined; + 'request_incremental_authorization_support'?: boolean | undefined; + 'require_cvc_recollection'?: boolean | undefined; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsAffirmModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAfterpayClearpayModel = { + 'capture_method'?: 'manual' | undefined; + 'reference'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAlipayModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsAlmaModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsAmazonPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsBillieModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBlikModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsBoletoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCardInstallmentsModel = { + 'available_plans'?: PaymentMethodDetailsCardInstallmentsPlanModel[] | undefined; + 'enabled': boolean; + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type PaymentMethodOptionsCardMandateOptionsModel = { + '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; +}; + +export type PaymentIntentPaymentMethodOptionsCardModel = { + 'capture_method'?: 'manual' | undefined; + 'installments'?: PaymentMethodOptionsCardInstallmentsModel | undefined; + 'mandate_options'?: PaymentMethodOptionsCardMandateOptionsModel | 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; +}; + +export type PaymentMethodOptionsCardPresentModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'request_extended_authorization'?: boolean | undefined; + 'request_incremental_authorization_support'?: boolean | undefined; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; +}; + +export type PaymentMethodOptionsCashappModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCryptoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type PaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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; +}; + +export type PaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: PaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type'?: 'bank_transfer' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsEpsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsFpxModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGiropayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGrabpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsIdealModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsInteracPresentModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsKlarnaModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsKonbiniModel = { + 'confirmation_number'?: string | undefined; + 'expires_after_days'?: number | undefined; + 'expires_at'?: number | undefined; + 'product_description'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsKrCardModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsLinkModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsMbWayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMobilepayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsMultibancoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsOxxoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsP24Model = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPayByBankModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsPaynowModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPaypalModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'reference'?: string | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsPixModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds'?: number | undefined; + 'expires_at'?: number | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPromptpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsRevolutPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsSatispayModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsSofortModel = { + 'preferred_language'?: 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSwishModel = { + 'reference'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsTwintModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; +}; + +export type LinkedAccountOptionsCommonModel = { + 'filters'?: PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch'?: Array<'balances' | 'ownership' | 'transactions'> | undefined; + 'return_url'?: string | undefined; +}; + +export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'preferred_settlement_speed'?: 'fastest' | 'standard' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsWechatPayModel = { + 'app_id'?: string | undefined; + 'client'?: 'android' | 'ios' | 'web' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsZipModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsModel = { + 'acss_debit'?: PaymentIntentPaymentMethodOptionsAcssDebitModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'affirm'?: PaymentMethodOptionsAffirmModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'afterpay_clearpay'?: PaymentMethodOptionsAfterpayClearpayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'alipay'?: PaymentMethodOptionsAlipayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'alma'?: PaymentMethodOptionsAlmaModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'amazon_pay'?: PaymentMethodOptionsAmazonPayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'au_becs_debit'?: PaymentIntentPaymentMethodOptionsAuBecsDebitModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'bacs_debit'?: PaymentIntentPaymentMethodOptionsBacsDebitModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'bancontact'?: PaymentMethodOptionsBancontactModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'billie'?: PaymentMethodOptionsBillieModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'blik'?: PaymentIntentPaymentMethodOptionsBlikModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'boleto'?: PaymentMethodOptionsBoletoModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'card'?: PaymentIntentPaymentMethodOptionsCardModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'card_present'?: PaymentMethodOptionsCardPresentModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'cashapp'?: PaymentMethodOptionsCashappModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'crypto'?: PaymentMethodOptionsCryptoModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'customer_balance'?: PaymentMethodOptionsCustomerBalanceModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'eps'?: PaymentIntentPaymentMethodOptionsEpsModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'fpx'?: PaymentMethodOptionsFpxModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'giropay'?: PaymentMethodOptionsGiropayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'grabpay'?: PaymentMethodOptionsGrabpayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'ideal'?: PaymentMethodOptionsIdealModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'interac_present'?: PaymentMethodOptionsInteracPresentModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'kakao_pay'?: PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'klarna'?: PaymentMethodOptionsKlarnaModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'konbini'?: PaymentMethodOptionsKonbiniModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'kr_card'?: PaymentMethodOptionsKrCardModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'link'?: PaymentIntentPaymentMethodOptionsLinkModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'mb_way'?: PaymentMethodOptionsMbWayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'mobilepay'?: PaymentIntentPaymentMethodOptionsMobilepayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'multibanco'?: PaymentMethodOptionsMultibancoModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'naver_pay'?: PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'nz_bank_account'?: PaymentIntentPaymentMethodOptionsNzBankAccountModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'oxxo'?: PaymentMethodOptionsOxxoModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'p24'?: PaymentMethodOptionsP24Model | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'pay_by_bank'?: PaymentMethodOptionsPayByBankModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'payco'?: PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'paynow'?: PaymentMethodOptionsPaynowModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'paypal'?: PaymentMethodOptionsPaypalModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'pix'?: PaymentMethodOptionsPixModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'promptpay'?: PaymentMethodOptionsPromptpayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'revolut_pay'?: PaymentMethodOptionsRevolutPayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'samsung_pay'?: PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'satispay'?: PaymentMethodOptionsSatispayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'sepa_debit'?: PaymentIntentPaymentMethodOptionsSepaDebitModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'sofort'?: PaymentMethodOptionsSofortModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'swish'?: PaymentIntentPaymentMethodOptionsSwishModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'twint'?: PaymentMethodOptionsTwintModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'us_bank_account'?: PaymentIntentPaymentMethodOptionsUsBankAccountModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'wechat_pay'?: PaymentMethodOptionsWechatPayModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'zip'?: PaymentMethodOptionsZipModel | PaymentIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; +}; + +export type PaymentIntentProcessingCustomerNotificationModel = { + 'approval_requested'?: boolean | undefined; + 'completes_at'?: number | undefined; +}; + +export type PaymentIntentCardProcessingModel = { + 'customer_notification'?: PaymentIntentProcessingCustomerNotificationModel | undefined; +}; + +export type PaymentIntentProcessingModel = { + 'card'?: PaymentIntentCardProcessingModel | undefined; + 'type': 'card'; +}; + +export type TransferDataModel = { + 'amount'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type PaymentIntentModel = { + 'amount'?: number | undefined; + 'amount_capturable'?: number | undefined; + 'amount_details'?: PaymentFlowsAmountDetailsModel | PaymentFlowsAmountDetailsClientModel | undefined; + 'amount_received'?: number | undefined; + 'application'?: string | ApplicationModel | undefined; + 'application_fee_amount'?: number | undefined; + 'automatic_payment_methods'?: PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel | undefined; + 'canceled_at'?: number | undefined; + 'cancellation_reason'?: 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice' | undefined; + 'capture_method'?: 'automatic' | 'automatic_async' | 'manual' | undefined; + 'client_secret'?: string | undefined; + 'confirmation_method'?: 'automatic' | 'manual' | undefined; + 'created': number; + 'currency'?: string | undefined; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'description'?: string | undefined; + 'excluded_payment_method_types'?: Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'> | undefined; + 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'id': string; + 'last_payment_error'?: ApiErrorsModel | undefined; + 'latest_charge'?: string | ChargeModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'next_action'?: PaymentIntentNextActionModel | undefined; + 'object': 'payment_intent'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; + 'payment_method'?: string | PaymentMethodModel | undefined; + 'payment_method_configuration_details'?: PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel | undefined; + 'payment_method_options'?: PaymentIntentPaymentMethodOptionsModel | undefined; + 'payment_method_types'?: string[] | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'processing'?: PaymentIntentProcessingModel | undefined; + 'receipt_email'?: string | undefined; + 'review'?: string | ReviewModel | undefined; + 'setup_future_usage'?: 'off_session' | 'on_session' | undefined; + 'shipping'?: ShippingModel | undefined; + 'statement_descriptor'?: string | undefined; + 'statement_descriptor_suffix'?: string | undefined; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'transfer_data'?: TransferDataModel | undefined; + 'transfer_group'?: string | undefined; +}; + +export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled'?: boolean | undefined; +}; + +export type SetupIntentNextActionRedirectToUrlModel = { + 'return_url'?: string | undefined; + 'url'?: string | undefined; +}; + +export type SetupIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type'?: 'amounts' | 'descriptor_code' | undefined; +}; + +export type SetupIntentNextActionModel = { + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'redirect_to_url'?: SetupIntentNextActionRedirectToUrlModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: SetupIntentNextActionVerifyWithMicrodepositsModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description'?: string | undefined; + 'payment_schedule'?: 'combined' | 'interval' | 'sporadic' | undefined; + 'transaction_type'?: 'business' | 'personal' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsAcssDebitModel = { + 'currency'?: 'cad' | 'usd' | undefined; + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsAmazonPayModel = { + +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = { + '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; +}; + +export type SetupIntentPaymentMethodOptionsCardModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsCardMandateOptionsModel | 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; +}; + +export type SetupIntentPaymentMethodOptionsCardPresentModel = { + +}; + +export type SetupIntentPaymentMethodOptionsKlarnaModel = { + 'currency'?: string | undefined; + 'preferred_locale'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsLinkModel = { + +}; + +export type SetupIntentPaymentMethodOptionsPaypalModel = { + 'billing_agreement_id'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsModel = { + 'acss_debit'?: SetupIntentPaymentMethodOptionsAcssDebitModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'amazon_pay'?: SetupIntentPaymentMethodOptionsAmazonPayModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'bacs_debit'?: SetupIntentPaymentMethodOptionsBacsDebitModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'card'?: SetupIntentPaymentMethodOptionsCardModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'card_present'?: SetupIntentPaymentMethodOptionsCardPresentModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'klarna'?: SetupIntentPaymentMethodOptionsKlarnaModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'link'?: SetupIntentPaymentMethodOptionsLinkModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'paypal'?: SetupIntentPaymentMethodOptionsPaypalModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'sepa_debit'?: SetupIntentPaymentMethodOptionsSepaDebitModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; + 'us_bank_account'?: SetupIntentPaymentMethodOptionsUsBankAccountModel | SetupIntentTypeSpecificPaymentMethodOptionsClientModel | undefined; +}; + +export type SetupIntentModel = { + 'application'?: string | ApplicationModel | undefined; + 'attach_to_self'?: boolean | undefined; + 'automatic_payment_methods'?: PaymentFlowsAutomaticPaymentMethodsSetupIntentModel | undefined; + 'cancellation_reason'?: 'abandoned' | 'duplicate' | 'requested_by_customer' | undefined; + 'client_secret'?: string | undefined; + 'created': number; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'description'?: string | undefined; + 'excluded_payment_method_types'?: Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'> | undefined; + 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; + 'id': string; + 'last_setup_error'?: ApiErrorsModel | undefined; + 'latest_attempt'?: string | SetupAttemptModel | undefined; + 'livemode': boolean; + 'mandate'?: string | MandateModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'next_action'?: SetupIntentNextActionModel | undefined; + 'object': 'setup_intent'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'payment_method'?: string | PaymentMethodModel | undefined; + 'payment_method_configuration_details'?: PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel | undefined; + 'payment_method_options'?: SetupIntentPaymentMethodOptionsModel | undefined; + 'payment_method_types': string[]; + 'single_use_mandate'?: string | MandateModel | undefined; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'usage': string; +}; + +export type ApiErrorsModel = { + 'advice_code'?: string | undefined; + 'charge'?: string | undefined; + 'code'?: string | undefined; + 'decline_code'?: string | undefined; + 'doc_url'?: string | undefined; + 'message'?: string | undefined; + 'network_advice_code'?: string | undefined; + 'network_decline_code'?: string | undefined; + 'param'?: string | undefined; + 'payment_intent'?: PaymentIntentModel | undefined; + 'payment_method'?: PaymentMethodModel | undefined; + 'payment_method_type'?: string | undefined; + 'request_log_url'?: string | undefined; + 'setup_intent'?: SetupIntentModel | undefined; + 'source'?: BankAccountModel | CardModel | SourceModel | undefined; + 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +}; + +export type SetupAttemptModel = { + 'application'?: string | ApplicationModel | undefined; + 'attach_to_self'?: boolean | undefined; + 'created': number; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'setup_attempt'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; + 'setup_error'?: ApiErrorsModel | undefined; + 'setup_intent': string | SetupIntentModel; + 'status': string; + 'usage': string; +}; + +export type PaymentMethodCardGeneratedCardModel = { + 'charge'?: string | undefined; + 'payment_method_details'?: CardGeneratedFromPaymentMethodDetailsModel | undefined; + 'setup_attempt'?: string | SetupAttemptModel | undefined; +}; + +export type NetworksModel = { + 'available': string[]; + 'preferred'?: string | undefined; +}; + +export type ThreeDSecureUsageModel = { + 'supported': boolean; +}; + +export type PaymentMethodCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodCardWalletApplePayModel = { + +}; + +export type PaymentMethodCardWalletGooglePayModel = { + +}; + +export type PaymentMethodCardWalletLinkModel = { + +}; + +export type PaymentMethodCardWalletMasterpassModel = { + 'billing_address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'shipping_address'?: AddressModel | undefined; +}; + +export type PaymentMethodCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodCardWalletVisaCheckoutModel = { + 'billing_address'?: AddressModel | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'shipping_address'?: AddressModel | undefined; +}; + +export type PaymentMethodCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodCardWalletApplePayModel | undefined; + 'dynamic_last4'?: string | undefined; + 'google_pay'?: PaymentMethodCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodCardModel = { + 'brand': string; + 'checks'?: PaymentMethodCardChecksModel | undefined; + 'country'?: string | undefined; + 'display_brand'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': string; + 'generated_from'?: PaymentMethodCardGeneratedCardModel | undefined; + 'last4': string; + 'networks'?: NetworksModel | undefined; + 'regulated_status'?: 'regulated' | 'unregulated' | undefined; + 'three_d_secure_usage'?: ThreeDSecureUsageModel | undefined; + 'wallet'?: PaymentMethodCardWalletModel | undefined; +}; + +export type PaymentMethodCardPresentNetworksModel = { + 'available': string[]; + 'preferred'?: string | undefined; +}; + +export type PaymentMethodCardPresentModel = { + 'brand'?: string | undefined; + 'brand_product'?: string | undefined; + 'cardholder_name'?: string | undefined; + 'country'?: string | undefined; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'networks'?: PaymentMethodCardPresentNetworksModel | undefined; + 'offline'?: PaymentMethodDetailsCardPresentOfflineModel | undefined; + 'preferred_locales'?: string[] | undefined; + 'read_method'?: 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2' | undefined; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type PaymentMethodCashappModel = { + 'buyer_id'?: string | undefined; + 'cashtag'?: string | undefined; +}; + +export type PaymentMethodCryptoModel = { + +}; + +export type CustomLogoModel = { + 'content_type'?: string | undefined; + 'url': string; +}; + +export type PaymentMethodCustomModel = { + 'display_name'?: string | undefined; + 'logo'?: CustomLogoModel | undefined; + 'type': string; +}; + +export type PaymentMethodCustomerBalanceModel = { + +}; + +export type PaymentMethodEpsModel = { + '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; +}; + +export type PaymentMethodFpxModel = { + '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'; +}; + +export type PaymentMethodGiropayModel = { + +}; + +export type PaymentMethodGrabpayModel = { + +}; + +export type PaymentMethodIdealModel = { + 'bank'?: 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | undefined; + 'bic'?: 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | undefined; +}; + +export type PaymentMethodInteracPresentModel = { + 'brand'?: string | undefined; + 'cardholder_name'?: string | undefined; + 'country'?: string | undefined; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'networks'?: PaymentMethodCardPresentNetworksModel | undefined; + 'preferred_locales'?: string[] | undefined; + 'read_method'?: 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2' | undefined; +}; + +export type PaymentMethodKakaoPayModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type PaymentMethodKlarnaModel = { + 'dob'?: PaymentFlowsPrivatePaymentMethodsKlarnaDobModel | undefined; +}; + +export type PaymentMethodKonbiniModel = { + +}; + +export type PaymentMethodKrCardModel = { + 'brand'?: 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori' | undefined; + 'last4'?: string | undefined; +}; + +export type PaymentMethodLinkModel = { + 'email'?: string | undefined; +}; + +export type PaymentMethodMbWayModel = { + +}; + +export type PaymentMethodMobilepayModel = { + +}; + +export type PaymentMethodMultibancoModel = { + +}; + +export type PaymentMethodNaverPayModel = { + 'buyer_id'?: string | undefined; + 'funding': 'card' | 'points'; +}; + +export type PaymentMethodNzBankAccountModel = { + 'account_holder_name'?: string | undefined; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix'?: string | undefined; +}; + +export type PaymentMethodOxxoModel = { + +}; + +export type PaymentMethodP24Model = { + '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; +}; + +export type PaymentMethodPayByBankModel = { + +}; + +export type PaymentMethodPaycoModel = { + +}; + +export type PaymentMethodPaynowModel = { + +}; + +export type PaymentMethodPaypalModel = { + 'country'?: string | undefined; + 'payer_email'?: string | undefined; + 'payer_id'?: string | undefined; +}; + +export type PaymentMethodPixModel = { + +}; + +export type PaymentMethodPromptpayModel = { + +}; + +export type PaymentMethodRevolutPayModel = { + +}; + +export type PaymentMethodSamsungPayModel = { + +}; + +export type PaymentMethodSatispayModel = { + +}; + +export type SepaDebitGeneratedFromModel = { + 'charge'?: string | ChargeModel | undefined; + 'setup_attempt'?: string | SetupAttemptModel | undefined; +}; + +export type PaymentMethodSepaDebitModel = { + 'bank_code'?: string | undefined; + 'branch_code'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'generated_from'?: SepaDebitGeneratedFromModel | undefined; + 'last4'?: string | undefined; +}; + +export type PaymentMethodSofortModel = { + 'country'?: string | undefined; +}; + +export type PaymentMethodSwishModel = { + +}; + +export type PaymentMethodTwintModel = { + +}; + +export type UsBankAccountNetworksModel = { + 'preferred'?: string | undefined; + 'supported': Array<'ach' | 'us_domestic_wire'>; +}; + +export type PaymentMethodUsBankAccountBlockedModel = { + 'network_code'?: 'R02' | 'R03' | 'R04' | 'R05' | 'R07' | 'R08' | 'R10' | 'R11' | 'R16' | 'R20' | 'R29' | 'R31' | undefined; + 'reason'?: 'bank_account_closed' | 'bank_account_frozen' | 'bank_account_invalid_details' | 'bank_account_restricted' | 'bank_account_unusable' | 'debit_not_authorized' | 'tokenized_account_number_deactivated' | undefined; +}; + +export type PaymentMethodUsBankAccountStatusDetailsModel = { + 'blocked'?: PaymentMethodUsBankAccountBlockedModel | undefined; +}; + +export type PaymentMethodUsBankAccountModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'financial_connections_account'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'networks'?: UsBankAccountNetworksModel | undefined; + 'routing_number'?: string | undefined; + 'status_details'?: PaymentMethodUsBankAccountStatusDetailsModel | undefined; +}; + +export type PaymentMethodWechatPayModel = { + +}; + +export type PaymentMethodZipModel = { + +}; + +export type PaymentMethodModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'created': number; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'custom'?: PaymentMethodCustomModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'id': string; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'object': 'payment_method'; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type InvoiceSettingCustomerRenderingOptionsModel = { + 'amount_tax_display'?: string | undefined; + 'template'?: string | undefined; +}; + +export type InvoiceSettingCustomerSettingModel = { + 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; + 'default_payment_method'?: string | PaymentMethodModel | undefined; + 'footer'?: string | undefined; + 'rendering_options'?: InvoiceSettingCustomerRenderingOptionsModel | undefined; +}; + +export type DeletedApplicationModel = { + 'deleted': boolean; + 'id': string; + 'name'?: string | undefined; + 'object': 'application'; +}; + +export type ConnectAccountReferenceModel = { + 'account'?: string | AccountModel | undefined; + 'type': 'account' | 'self'; +}; + +export type SubscriptionAutomaticTaxModel = { + 'disabled_reason'?: 'requires_location_inputs' | undefined; + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; +}; + +export type SubscriptionsResourceBillingCycleAnchorConfigModel = { + 'day_of_month': number; + 'hour'?: number | undefined; + 'minute'?: number | undefined; + 'month'?: number | undefined; + 'second'?: number | undefined; +}; + +export type SubscriptionsResourceBillingModeFlexibleModel = { + 'proration_discounts'?: 'included' | 'itemized' | undefined; +}; + +export type SubscriptionsResourceBillingModeModel = { + 'flexible'?: SubscriptionsResourceBillingModeFlexibleModel | undefined; + 'type': 'classic' | 'flexible'; + 'updated_at'?: number | undefined; +}; + +export type SubscriptionBillingThresholdsModel = { + 'amount_gte'?: number | undefined; + 'reset_billing_cycle_anchor'?: boolean | undefined; +}; + +export type CancellationDetailsModel = { + 'comment'?: string | undefined; + 'feedback'?: 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused' | undefined; + 'reason'?: 'cancellation_requested' | 'payment_disputed' | 'payment_failed' | undefined; +}; + +export type TaxRateFlatAmountModel = { + 'amount': number; + 'currency': string; +}; + +export type TaxRateModel = { + 'active': boolean; + 'country'?: string | undefined; + 'created': number; + 'description'?: string | undefined; + 'display_name': string; + 'effective_percentage'?: number | undefined; + 'flat_amount'?: TaxRateFlatAmountModel | undefined; + 'id': string; + 'inclusive': boolean; + 'jurisdiction'?: string | undefined; + 'jurisdiction_level'?: 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state' | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'tax_rate'; + 'percentage': number; + 'rate_type'?: 'flat_amount' | 'percentage' | 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' | undefined; +}; + +export type TaxIDsOwnerModel = { + 'account'?: string | AccountModel | undefined; + 'application'?: string | ApplicationModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'type': 'account' | 'application' | 'customer' | 'self'; +}; + +export type TaxIdVerificationModel = { + 'status': 'pending' | 'unavailable' | 'unverified' | 'verified'; + 'verified_address'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type TaxIdModel = { + 'country'?: string | undefined; + 'created': number; + 'customer'?: string | CustomerModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'tax_id'; + 'owner'?: TaxIDsOwnerModel | undefined; + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; + 'verification'?: TaxIdVerificationModel | undefined; +}; + +export type DeletedTaxIdModel = { + 'deleted': boolean; + 'id': string; + 'object': 'tax_id'; +}; + +export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { + 'account_tax_ids'?: Array | undefined; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionItemBillingThresholdsModel = { + 'usage_gte'?: number | undefined; +}; + +export type CustomUnitAmountModel = { + 'maximum'?: number | undefined; + 'minimum'?: number | undefined; + 'preset'?: number | undefined; +}; + +export type PriceTierModel = { + 'flat_amount'?: number | undefined; + 'flat_amount_decimal'?: string | undefined; + 'unit_amount'?: number | undefined; + 'unit_amount_decimal'?: string | undefined; + 'up_to'?: number | undefined; +}; + +export type CurrencyOptionModel = { + 'custom_unit_amount'?: CustomUnitAmountModel | undefined; + 'tax_behavior'?: 'exclusive' | 'inclusive' | 'unspecified' | undefined; + 'tiers'?: PriceTierModel[] | undefined; + 'unit_amount'?: number | undefined; + 'unit_amount_decimal'?: string | undefined; +}; + +export type ProductMarketingFeatureModel = { + 'name'?: string | undefined; +}; + +export type PackageDimensionsModel = { + 'height': number; + 'length': number; + 'weight': number; + 'width': number; +}; + +export type TaxCodeModel = { + 'description': string; + 'id': string; + 'name': string; + 'object': 'tax_code'; +}; + +export type ProductModel = { + 'active': boolean; + 'created': number; + 'default_price'?: string | PriceModel | undefined; + 'description'?: string | undefined; + 'id': string; + 'images': string[]; + 'livemode': boolean; + 'marketing_features': ProductMarketingFeatureModel[]; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'product'; + 'package_dimensions'?: PackageDimensionsModel | undefined; + 'shippable'?: boolean | undefined; + 'statement_descriptor'?: string | undefined; + 'tax_code'?: string | TaxCodeModel | undefined; + 'unit_label'?: string | undefined; + 'updated': number; + 'url'?: string | undefined; +}; + +export type DeletedProductModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product'; +}; + +export type RecurringModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'meter'?: string | undefined; + 'usage_type': 'licensed' | 'metered'; +}; + +export type TransformQuantityModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PriceModel = { + 'active': boolean; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'currency_options'?: { + [key: string]: CurrencyOptionModel; +} | undefined; + 'custom_unit_amount'?: CustomUnitAmountModel | undefined; + 'id': string; + 'livemode': boolean; + 'lookup_key'?: string | undefined; + 'metadata': { + [key: string]: string; +}; + 'nickname'?: string | undefined; + 'object': 'price'; + 'product': string | ProductModel | DeletedProductModel; + 'recurring'?: RecurringModel | undefined; + 'tax_behavior'?: 'exclusive' | 'inclusive' | 'unspecified' | undefined; + 'tiers'?: PriceTierModel[] | undefined; + 'tiers_mode'?: 'graduated' | 'volume' | undefined; + 'transform_quantity'?: TransformQuantityModel | undefined; + 'type': 'one_time' | 'recurring'; + 'unit_amount'?: number | undefined; + 'unit_amount_decimal'?: string | undefined; +}; + +export type SubscriptionItemModel = { + 'billing_thresholds'?: SubscriptionItemBillingThresholdsModel | undefined; + 'created': number; + 'current_period_end': number; + 'current_period_start': number; + 'discounts': Array; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'subscription_item'; + 'price': PriceModel; + 'quantity'?: number | undefined; + 'subscription': string; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type AutomaticTaxModel = { + 'disabled_reason'?: 'finalization_requires_location_inputs' | 'finalization_system_error' | undefined; + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; + 'provider'?: string | undefined; + 'status'?: 'complete' | 'failed' | 'requires_location_inputs' | undefined; +}; + +export type InvoicesResourceConfirmationSecretModel = { + 'client_secret': string; + 'type': string; +}; + +export type InvoicesResourceInvoiceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value'?: string | undefined; +}; + +export type DeletedDiscountModel = { + 'checkout_session'?: string | undefined; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'deleted': boolean; + 'id': string; + 'invoice'?: string | undefined; + 'invoice_item'?: string | undefined; + 'object': 'discount'; + 'promotion_code'?: string | PromotionCodeModel | undefined; + 'source': DiscountSourceModel; + 'start': number; + 'subscription'?: string | undefined; + 'subscription_item'?: string | undefined; +}; + +export type InvoicesResourceFromInvoiceModel = { + 'action': string; + 'invoice': string | InvoiceModel; +}; + +export type DiscountsResourceDiscountAmountModel = { + 'amount': number; + 'discount': string | DiscountModel | DeletedDiscountModel; +}; + +export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = { + 'invoice': string; + 'invoice_line_items': string[]; +}; + +export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = { + 'credited_items'?: BillingBillResourceInvoicingLinesCommonCreditedItemsModel | undefined; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = { + 'invoice_item': string; + 'proration': boolean; + 'proration_details'?: BillingBillResourceInvoicingLinesCommonProrationDetailsModel | undefined; + 'subscription'?: string | undefined; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = { + 'invoice_item'?: string | undefined; + 'proration': boolean; + 'proration_details'?: BillingBillResourceInvoicingLinesCommonProrationDetailsModel | undefined; + 'subscription'?: string | undefined; + 'subscription_item': string; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = { + 'invoice_item_details'?: BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel | undefined; + 'subscription_item_details'?: BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel | undefined; + 'type': 'invoice_item_details' | 'subscription_item_details'; +}; + +export type InvoiceLineItemPeriodModel = { + 'end': number; + 'start': number; +}; + +export type BillingCreditGrantsResourceMonetaryAmountModel = { + 'currency': string; + 'value': number; +}; + +export type BillingCreditGrantsResourceAmountModel = { + 'monetary'?: BillingCreditGrantsResourceMonetaryAmountModel | undefined; + 'type': 'monetary'; +}; + +export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceCreditModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_application_invoice_voided'?: BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel | undefined; + 'type': 'credits_application_invoice_voided' | 'credits_granted'; +}; + +export type BillingCreditGrantsResourceApplicablePriceModel = { + 'id'?: string | undefined; +}; + +export type BillingCreditGrantsResourceScopeModel = { + 'price_type'?: 'metered' | undefined; + 'prices'?: BillingCreditGrantsResourceApplicablePriceModel[] | undefined; +}; + +export type BillingCreditGrantsResourceApplicabilityConfigModel = { + 'scope': BillingCreditGrantsResourceScopeModel; +}; + +export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = { + 'target_frozen_time': number; +}; + +export type BillingClocksResourceStatusDetailsStatusDetailsModel = { + 'advancing'?: BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel | undefined; +}; + +export type TestHelpersTestClockModel = { + 'created': number; + 'deletes_after': number; + 'frozen_time': number; + 'id': string; + 'livemode': boolean; + 'name'?: string | undefined; + 'object': 'test_helpers.test_clock'; + 'status': 'advancing' | 'internal_failure' | 'ready'; + 'status_details': BillingClocksResourceStatusDetailsStatusDetailsModel; +}; + +export type BillingCreditGrantModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; + 'category': 'paid' | 'promotional'; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'effective_at'?: number | undefined; + 'expires_at'?: number | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name'?: string | undefined; + 'object': 'billing.credit_grant'; + 'priority'?: number | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; + 'updated': number; + 'voided_at'?: number | undefined; +}; + +export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceDebitModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_applied'?: BillingCreditGrantsResourceBalanceCreditsAppliedModel | undefined; + 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +}; + +export type BillingCreditBalanceTransactionModel = { + 'created': number; + 'credit'?: BillingCreditGrantsResourceBalanceCreditModel | undefined; + 'credit_grant': string | BillingCreditGrantModel; + 'debit'?: BillingCreditGrantsResourceBalanceDebitModel | undefined; + 'effective_at': number; + 'id': string; + 'livemode': boolean; + 'object': 'billing.credit_balance_transaction'; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; + 'type'?: 'credit' | 'debit' | undefined; +}; + +export type InvoicesResourcePretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'type': 'credit_balance_transaction' | 'discount'; +}; + +export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = { + 'price': string; + 'product': string; +}; + +export type BillingBillResourceInvoicingPricingPricingModel = { + 'price_details'?: BillingBillResourceInvoicingPricingPricingPriceDetailsModel | undefined; + 'type': 'price_details'; + 'unit_amount_decimal'?: string | undefined; +}; + +export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = { + 'tax_rate': string; +}; + +export type BillingBillResourceInvoicingTaxesTaxModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_rate_details'?: BillingBillResourceInvoicingTaxesTaxRateDetailsModel | undefined; + 'taxability_reason': 'customer_exempt' | 'not_available' | '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'; + 'taxable_amount'?: number | undefined; + 'type': 'tax_rate_details'; +}; + +export type LineItemModel = { + 'amount': number; + 'currency': string; + 'description'?: string | undefined; + 'discount_amounts'?: DiscountsResourceDiscountAmountModel[] | undefined; + 'discountable': boolean; + 'discounts': Array; + 'id': string; + 'invoice'?: string | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'line_item'; + 'parent'?: BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel | undefined; + 'period': InvoiceLineItemPeriodModel; + 'pretax_credit_amounts'?: InvoicesResourcePretaxCreditAmountModel[] | undefined; + 'pricing'?: BillingBillResourceInvoicingPricingPricingModel | undefined; + 'quantity'?: number | undefined; + 'subscription'?: string | SubscriptionModel | undefined; + 'taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; +}; + +export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = { + 'quote': string; +}; + +export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { + 'metadata'?: { + [key: string]: string; +} | undefined; + 'subscription': string | SubscriptionModel; + 'subscription_proration_date'?: number | undefined; +}; + +export type BillingBillResourceInvoicingParentsInvoiceParentModel = { + 'quote_details'?: BillingBillResourceInvoicingParentsInvoiceQuoteParentModel | undefined; + 'subscription_details'?: BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel | undefined; + 'type': 'quote_details' | 'subscription_details'; +}; + +export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = { + 'transaction_type'?: 'business' | 'personal' | undefined; +}; + +export type InvoicePaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicePaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; +}; + +export type InvoiceInstallmentsCardModel = { + 'enabled'?: boolean | undefined; +}; + +export type InvoicePaymentMethodOptionsCardModel = { + 'installments'?: InvoiceInstallmentsCardModel | undefined; + 'request_three_d_secure'?: 'any' | 'automatic' | 'challenge' | undefined; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel | undefined; + 'type'?: string | undefined; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type'?: 'bank_transfer' | undefined; +}; + +export type InvoicePaymentMethodOptionsKonbiniModel = { + +}; + +export type InvoicePaymentMethodOptionsSepaDebitModel = { + +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = { + 'filters'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch'?: Array<'balances' | 'ownership' | 'transactions'> | undefined; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicesPaymentMethodOptionsModel = { + 'acss_debit'?: InvoicePaymentMethodOptionsAcssDebitModel | undefined; + 'bancontact'?: InvoicePaymentMethodOptionsBancontactModel | undefined; + 'card'?: InvoicePaymentMethodOptionsCardModel | undefined; + 'customer_balance'?: InvoicePaymentMethodOptionsCustomerBalanceModel | undefined; + 'konbini'?: InvoicePaymentMethodOptionsKonbiniModel | undefined; + 'sepa_debit'?: InvoicePaymentMethodOptionsSepaDebitModel | undefined; + 'us_bank_account'?: InvoicePaymentMethodOptionsUsBankAccountModel | undefined; +}; + +export type InvoicesPaymentSettingsModel = { + 'default_mandate'?: string | undefined; + 'payment_method_options'?: InvoicesPaymentMethodOptionsModel | undefined; + 'payment_method_types'?: Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'payco' | 'paynow' | 'paypal' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'us_bank_account' | 'wechat_pay'> | undefined; +}; + +export type DeletedInvoiceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoice'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = { + 'currency': string; + 'value': number; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = { + 'customer'?: string | undefined; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'email'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = { + 'address_line1_check'?: 'fail' | 'pass' | 'unavailable' | 'unchecked' | undefined; + 'address_postal_code_check'?: 'fail' | 'pass' | 'unavailable' | 'unchecked' | undefined; + 'cvc_check'?: 'fail' | 'pass' | 'unavailable' | 'unchecked' | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = { + 'authentication_flow'?: 'challenge' | 'frictionless' | undefined; + 'result'?: 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | undefined; + 'result_reason'?: 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | undefined; + 'version'?: '1.0.2' | '2.1.0' | '2.2.0' | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = { + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = { + +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = { + 'apple_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel | undefined; + 'dynamic_last4'?: string | undefined; + 'google_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel | undefined; + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = { + 'brand': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'capture_before'?: number | undefined; + 'checks'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel | undefined; + 'country'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': 'credit' | 'debit' | 'prepaid' | 'unknown'; + 'last4': string; + 'network'?: 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa' | undefined; + 'network_token'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel | undefined; + 'network_transaction_id'?: string | undefined; + 'three_d_secure'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel | undefined; + 'wallet'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = { + 'display_name': string; + 'type'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'billing_details'?: PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel | undefined; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'custom'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'payment_method'?: string | undefined; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = { + 'payment_reference'?: string | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = { + 'custom'?: PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel | undefined; + 'type': 'custom'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'name'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type PaymentRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application'?: string | undefined; + 'created': number; + 'customer_details'?: PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel | undefined; + 'customer_presence'?: 'off_session' | 'on_session' | undefined; + 'description'?: string | undefined; + 'id': string; + 'latest_payment_attempt_record'?: string | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_record'; + 'payment_method_details'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel | undefined; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'shipping_details'?: PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel | undefined; +}; + +export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = { + 'charge'?: string | ChargeModel | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_record'?: string | PaymentRecordModel | undefined; + 'type': 'charge' | 'payment_intent' | 'payment_record'; +}; + +export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'paid_at'?: number | undefined; +}; + +export type InvoicePaymentModel = { + 'amount_paid'?: number | undefined; + 'amount_requested': number; + 'created': number; + 'currency': string; + 'id': string; + 'invoice': string | InvoiceModel | DeletedInvoiceModel; + 'is_default': boolean; + 'livemode': boolean; + 'object': 'invoice_payment'; + 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; + 'status': string; + 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +}; + +export type InvoiceRenderingPdfModel = { + 'page_size'?: 'a4' | 'auto' | 'letter' | undefined; +}; + +export type InvoicesResourceInvoiceRenderingModel = { + 'amount_tax_display'?: string | undefined; + 'pdf'?: InvoiceRenderingPdfModel | undefined; + 'template'?: string | undefined; + 'template_version'?: number | undefined; +}; + +export type ShippingRateDeliveryEstimateBoundModel = { + 'unit': 'business_day' | 'day' | 'hour' | 'month' | 'week'; + 'value': number; +}; + +export type ShippingRateDeliveryEstimateModel = { + 'maximum'?: ShippingRateDeliveryEstimateBoundModel | undefined; + 'minimum'?: ShippingRateDeliveryEstimateBoundModel | undefined; +}; + +export type ShippingRateCurrencyOptionModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; +}; + +export type ShippingRateFixedAmountModel = { + 'amount': number; + 'currency': string; + 'currency_options'?: { + [key: string]: ShippingRateCurrencyOptionModel; +} | undefined; +}; + +export type ShippingRateModel = { + 'active': boolean; + 'created': number; + 'delivery_estimate'?: ShippingRateDeliveryEstimateModel | undefined; + 'display_name'?: string | undefined; + 'fixed_amount'?: ShippingRateFixedAmountModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'shipping_rate'; + 'tax_behavior'?: 'exclusive' | 'inclusive' | 'unspecified' | undefined; + 'tax_code'?: string | TaxCodeModel | undefined; + 'type': 'fixed_amount'; +}; + +export type LineItemsTaxAmountModel = { + 'amount': number; + 'rate': TaxRateModel; + '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' | undefined; + 'taxable_amount'?: number | undefined; +}; + +export type InvoicesResourceShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate'?: string | ShippingRateModel | undefined; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type InvoicesResourceStatusTransitionsModel = { + 'finalized_at'?: number | undefined; + 'marked_uncollectible_at'?: number | undefined; + 'paid_at'?: number | undefined; + 'voided_at'?: number | undefined; +}; + +export type InvoiceItemThresholdReasonModel = { + 'line_item_ids': string[]; + 'usage_gte': number; +}; + +export type InvoiceThresholdReasonModel = { + 'amount_gte'?: number | undefined; + 'item_reasons': InvoiceItemThresholdReasonModel[]; +}; + +export type InvoiceModel = { + 'account_country'?: string | undefined; + 'account_name'?: string | undefined; + 'account_tax_ids'?: Array | undefined; + 'amount_due': number; + 'amount_overpaid': number; + 'amount_paid': number; + 'amount_remaining': number; + 'amount_shipping': number; + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'attempt_count': number; + 'attempted': boolean; + 'auto_advance': boolean; + 'automatic_tax': AutomaticTaxModel; + 'automatically_finalizes_at'?: number | undefined; + 'billing_reason'?: 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming' | undefined; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; + 'created': number; + 'currency': string; + 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_address'?: AddressModel | undefined; + 'customer_email'?: string | undefined; + 'customer_name'?: string | undefined; + 'customer_phone'?: string | undefined; + 'customer_shipping'?: ShippingModel | undefined; + 'customer_tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; + 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; + 'default_payment_method'?: string | PaymentMethodModel | undefined; + 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; + 'default_tax_rates': TaxRateModel[]; + 'description'?: string | undefined; + 'discounts': Array; + 'due_date'?: number | undefined; + 'effective_at'?: number | undefined; + 'ending_balance'?: number | undefined; + 'footer'?: string | undefined; + 'from_invoice'?: InvoicesResourceFromInvoiceModel | undefined; + 'hosted_invoice_url'?: string | undefined; + 'id': string; + 'invoice_pdf'?: string | undefined; + 'issuer': ConnectAccountReferenceModel; + 'last_finalization_error'?: ApiErrorsModel | undefined; + 'latest_revision'?: string | InvoiceModel | undefined; + 'lines': { + 'data': LineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'next_payment_attempt'?: number | undefined; + 'number'?: string | undefined; + 'object': 'invoice'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'parent'?: BillingBillResourceInvoicingParentsInvoiceParentModel | undefined; + 'payment_settings': InvoicesPaymentSettingsModel; + 'payments'?: { + 'data': InvoicePaymentModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'period_end': number; + 'period_start': number; + 'post_payment_credit_notes_amount': number; + 'pre_payment_credit_notes_amount': number; + 'receipt_number'?: string | undefined; + 'rendering'?: InvoicesResourceInvoiceRenderingModel | undefined; + 'shipping_cost'?: InvoicesResourceShippingCostModel | undefined; + 'shipping_details'?: ShippingModel | undefined; + 'starting_balance': number; + 'statement_descriptor'?: string | undefined; + 'status'?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | undefined; + 'status_transitions': InvoicesResourceStatusTransitionsModel; + 'subtotal': number; + 'subtotal_excluding_tax'?: number | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; + 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; + 'total': number; + 'total_discount_amounts'?: DiscountsResourceDiscountAmountModel[] | undefined; + 'total_excluding_tax'?: number | undefined; + 'total_pretax_credit_amounts'?: InvoicesResourcePretaxCreditAmountModel[] | undefined; + 'total_taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; + 'webhooks_delivered_at'?: number | undefined; +}; + +export type SubscriptionsResourcePauseCollectionModel = { + 'behavior': 'keep_as_draft' | 'mark_uncollectible' | 'void'; + 'resumes_at'?: number | undefined; +}; + +export type InvoiceMandateOptionsCardModel = { + 'amount'?: number | undefined; + 'amount_type'?: 'fixed' | 'maximum' | undefined; + 'description'?: string | undefined; +}; + +export type SubscriptionPaymentMethodOptionsCardModel = { + 'mandate_options'?: InvoiceMandateOptionsCardModel | 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; +}; + +export type SubscriptionsResourcePaymentMethodOptionsModel = { + 'acss_debit'?: InvoicePaymentMethodOptionsAcssDebitModel | undefined; + 'bancontact'?: InvoicePaymentMethodOptionsBancontactModel | undefined; + 'card'?: SubscriptionPaymentMethodOptionsCardModel | undefined; + 'customer_balance'?: InvoicePaymentMethodOptionsCustomerBalanceModel | undefined; + 'konbini'?: InvoicePaymentMethodOptionsKonbiniModel | undefined; + 'sepa_debit'?: InvoicePaymentMethodOptionsSepaDebitModel | undefined; + 'us_bank_account'?: InvoicePaymentMethodOptionsUsBankAccountModel | undefined; +}; + +export type SubscriptionsResourcePaymentSettingsModel = { + 'payment_method_options'?: SubscriptionsResourcePaymentMethodOptionsModel | undefined; + 'payment_method_types'?: Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | '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; +}; + +export type SubscriptionPendingInvoiceItemIntervalModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; +}; + +export type SubscriptionsResourcePendingUpdateModel = { + 'billing_cycle_anchor'?: number | undefined; + 'expires_at': number; + 'subscription_items'?: SubscriptionItemModel[] | undefined; + 'trial_end'?: number | undefined; + 'trial_from_plan'?: boolean | undefined; +}; + +export type SubscriptionScheduleCurrentPhaseModel = { + 'end_date': number; + 'start_date': number; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = { + 'disabled_reason'?: 'requires_location_inputs' | undefined; + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; +}; + +export type InvoiceSettingSubscriptionScheduleSettingModel = { + 'account_tax_ids'?: Array | undefined; + 'days_until_due'?: number | undefined; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionTransferDataModel = { + 'amount_percent'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsModel = { + 'application_fee_percent'?: number | undefined; + 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; + 'billing_cycle_anchor': 'automatic' | 'phase_start'; + 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; + 'collection_method'?: 'charge_automatically' | 'send_invoice' | undefined; + 'default_payment_method'?: string | PaymentMethodModel | undefined; + 'description'?: string | undefined; + 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; + 'on_behalf_of'?: string | AccountModel | undefined; + 'transfer_data'?: SubscriptionTransferDataModel | undefined; +}; + +export type DiscountsResourceStackableDiscountModel = { + 'coupon'?: string | CouponModel | undefined; + 'discount'?: string | DiscountModel | undefined; + 'promotion_code'?: string | PromotionCodeModel | undefined; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = { + 'timestamp'?: number | undefined; + 'type': 'min_item_period_end' | 'phase_end' | 'timestamp'; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = { + 'timestamp'?: number | undefined; + 'type': 'max_item_period_start' | 'phase_start' | 'timestamp'; +}; + +export type SubscriptionScheduleAddInvoiceItemPeriodModel = { + 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel; + 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel; +}; + +export type DeletedPriceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'price'; +}; + +export type SubscriptionScheduleAddInvoiceItemModel = { + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'period': SubscriptionScheduleAddInvoiceItemPeriodModel; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity'?: number | undefined; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type SchedulesPhaseAutomaticTaxModel = { + 'disabled_reason'?: 'requires_location_inputs' | undefined; + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; +}; + +export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = { + 'account_tax_ids'?: Array | undefined; + 'days_until_due'?: number | undefined; + 'issuer'?: ConnectAccountReferenceModel | undefined; +}; + +export type SubscriptionScheduleConfigurationItemModel = { + 'billing_thresholds'?: SubscriptionItemBillingThresholdsModel | undefined; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity'?: number | undefined; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type SubscriptionSchedulePhaseConfigurationModel = { + 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; + 'application_fee_percent'?: number | undefined; + 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; + 'billing_cycle_anchor'?: 'automatic' | 'phase_start' | undefined; + 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; + 'collection_method'?: 'charge_automatically' | 'send_invoice' | undefined; + 'currency': string; + 'default_payment_method'?: string | PaymentMethodModel | undefined; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description'?: string | undefined; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'end_date': number; + 'invoice_settings'?: InvoiceSettingSubscriptionSchedulePhaseSettingModel | undefined; + 'items': SubscriptionScheduleConfigurationItemModel[]; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'on_behalf_of'?: string | AccountModel | undefined; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'start_date': number; + 'transfer_data'?: SubscriptionTransferDataModel | undefined; + 'trial_end'?: number | undefined; +}; + +export type SubscriptionScheduleModel = { + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'canceled_at'?: number | undefined; + 'completed_at'?: number | undefined; + 'created': number; + 'current_phase'?: SubscriptionScheduleCurrentPhaseModel | undefined; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; + 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'subscription_schedule'; + 'phases': SubscriptionSchedulePhaseConfigurationModel[]; + 'released_at'?: number | undefined; + 'released_subscription'?: string | undefined; + 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; + 'subscription'?: string | SubscriptionModel | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type SubscriptionsTrialsResourceEndBehaviorModel = { + 'missing_payment_method': 'cancel' | 'create_invoice' | 'pause'; +}; + +export type SubscriptionsTrialsResourceTrialSettingsModel = { + 'end_behavior': SubscriptionsTrialsResourceEndBehaviorModel; +}; + +export type SubscriptionModel = { + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'application_fee_percent'?: number | undefined; + 'automatic_tax': SubscriptionAutomaticTaxModel; + 'billing_cycle_anchor': number; + 'billing_cycle_anchor_config'?: SubscriptionsResourceBillingCycleAnchorConfigModel | undefined; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; + 'cancel_at'?: number | undefined; + 'cancel_at_period_end': boolean; + 'canceled_at'?: number | undefined; + 'cancellation_details'?: CancellationDetailsModel | undefined; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'days_until_due'?: number | undefined; + 'default_payment_method'?: string | PaymentMethodModel | undefined; + 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description'?: string | undefined; + 'discounts': Array; + 'ended_at'?: number | undefined; + 'id': string; + 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; + 'items': { + 'data': SubscriptionItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'latest_invoice'?: string | InvoiceModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_pending_invoice_item_invoice'?: number | undefined; + 'object': 'subscription'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'pause_collection'?: SubscriptionsResourcePauseCollectionModel | undefined; + 'payment_settings'?: SubscriptionsResourcePaymentSettingsModel | undefined; + 'pending_invoice_item_interval'?: SubscriptionPendingInvoiceItemIntervalModel | undefined; + 'pending_setup_intent'?: string | SetupIntentModel | undefined; + 'pending_update'?: SubscriptionsResourcePendingUpdateModel | undefined; + 'schedule'?: string | SubscriptionScheduleModel | undefined; + 'start_date': number; + 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; + 'transfer_data'?: SubscriptionTransferDataModel | undefined; + 'trial_end'?: number | undefined; + 'trial_settings'?: SubscriptionsTrialsResourceTrialSettingsModel | undefined; + 'trial_start'?: number | undefined; +}; + +export type CustomerTaxLocationModel = { + 'country': string; + 'source': 'billing_address' | 'ip_address' | 'payment_method' | 'shipping_destination'; + 'state'?: string | undefined; +}; + +export type CustomerTaxModel = { + 'automatic_tax': 'failed' | 'not_collecting' | 'supported' | 'unrecognized_location'; + 'ip_address'?: string | undefined; + 'location'?: CustomerTaxLocationModel | undefined; + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; +}; + +export type CustomerModel = { + 'address'?: AddressModel | undefined; + 'balance'?: number | undefined; + 'business_name'?: string | undefined; + 'cash_balance'?: CashBalanceModel | undefined; + 'created': number; + 'currency'?: string | undefined; + 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; + 'delinquent'?: boolean | undefined; + 'description'?: string | undefined; + 'discount'?: DiscountModel | undefined; + 'email'?: string | undefined; + 'id': string; + 'individual_name'?: string | undefined; + 'invoice_credit_balance'?: { + [key: string]: number; +} | undefined; + 'invoice_prefix'?: string | undefined; + 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'name'?: string | undefined; + 'next_invoice_sequence'?: number | undefined; + 'object': 'customer'; + 'phone'?: string | undefined; + 'preferred_locales'?: string[] | undefined; + 'shipping'?: ShippingModel | undefined; + 'sources'?: { + 'data': Array; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'subscriptions'?: { + 'data': SubscriptionModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'tax'?: CustomerTaxModel | undefined; + 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; + 'tax_ids'?: { + 'data': TaxIdModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type AccountRequirementsErrorModel = { + 'code': 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability'; + 'reason': string; + 'requirement': string; +}; + +export type ExternalAccountRequirementsModel = { + 'currently_due'?: string[] | undefined; + 'errors'?: AccountRequirementsErrorModel[] | undefined; + 'past_due'?: string[] | undefined; + 'pending_verification'?: string[] | undefined; +}; + +export type BankAccountModel = { + 'account'?: string | AccountModel | undefined; + 'account_holder_name'?: string | undefined; + 'account_holder_type'?: string | undefined; + 'account_type'?: string | undefined; + 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; + 'bank_name'?: string | undefined; + 'country': string; + 'currency': string; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'default_for_currency'?: boolean | undefined; + 'fingerprint'?: string | undefined; + 'future_requirements'?: ExternalAccountRequirementsModel | undefined; + 'id': string; + 'last4': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'bank_account'; + 'requirements'?: ExternalAccountRequirementsModel | undefined; + 'routing_number'?: string | undefined; + 'status': string; +}; + +export type AccountRequirementsAlternativeModel = { + 'alternative_fields_due': string[]; + 'original_fields_due': string[]; +}; + +export type AccountFutureRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'current_deadline'?: number | undefined; + 'currently_due'?: string[] | 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' | undefined; + 'errors'?: AccountRequirementsErrorModel[] | undefined; + 'eventually_due'?: string[] | undefined; + 'past_due'?: string[] | undefined; + 'pending_verification'?: string[] | undefined; +}; + +export type AccountGroupMembershipModel = { + 'payments_pricing'?: string | undefined; +}; + +export type PersonAdditionalTosAcceptanceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type PersonAdditionalTosAcceptancesModel = { + 'account'?: PersonAdditionalTosAcceptanceModel | undefined; +}; + +export type LegalEntityDobModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type PersonFutureRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonRelationshipModel = { + '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; +}; + +export type PersonRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonEthnicityDetailsModel = { + 'ethnicity'?: Array<'cuban' | 'hispanic_or_latino' | 'mexican' | 'not_hispanic_or_latino' | 'other_hispanic_or_latino' | 'prefer_not_to_answer' | 'puerto_rican'> | undefined; + 'ethnicity_other'?: string | undefined; +}; + +export type PersonRaceDetailsModel = { + 'race'?: Array<'african_american' | 'american_indian_or_alaska_native' | 'asian' | 'asian_indian' | 'black_or_african_american' | 'chinese' | 'ethiopian' | 'filipino' | 'guamanian_or_chamorro' | 'haitian' | 'jamaican' | 'japanese' | 'korean' | 'native_hawaiian' | 'native_hawaiian_or_other_pacific_islander' | 'nigerian' | 'other_asian' | 'other_black_or_african_american' | 'other_pacific_islander' | 'prefer_not_to_answer' | 'samoan' | 'somali' | 'vietnamese' | 'white'> | undefined; + 'race_other'?: string | undefined; +}; + +export type PersonUsCfpbDataModel = { + 'ethnicity_details'?: PersonEthnicityDetailsModel | undefined; + 'race_details'?: PersonRaceDetailsModel | undefined; + 'self_identified_gender'?: string | undefined; +}; + +export type LegalEntityPersonVerificationDocumentModel = { + 'back'?: string | FileModel | undefined; + 'details'?: string | undefined; + 'details_code'?: string | undefined; + 'front'?: string | FileModel | undefined; +}; + +export type LegalEntityPersonVerificationModel = { + 'additional_document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'details'?: string | undefined; + 'details_code'?: string | undefined; + 'document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'status': string; +}; + +export type PersonModel = { + 'account': string; + 'additional_tos_acceptances'?: PersonAdditionalTosAcceptancesModel | undefined; + 'address'?: AddressModel | undefined; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'created': number; + 'dob'?: LegalEntityDobModel | undefined; + 'email'?: string | undefined; + 'first_name'?: string | undefined; + 'first_name_kana'?: string | undefined; + 'first_name_kanji'?: string | undefined; + 'full_name_aliases'?: string[] | undefined; + 'future_requirements'?: PersonFutureRequirementsModel | undefined; + 'gender'?: string | undefined; + 'id': string; + 'id_number_provided'?: boolean | undefined; + 'id_number_secondary_provided'?: boolean | undefined; + 'last_name'?: string | undefined; + 'last_name_kana'?: string | undefined; + 'last_name_kanji'?: string | undefined; + 'maiden_name'?: string | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'nationality'?: string | undefined; + 'object': 'person'; + 'phone'?: string | undefined; + 'political_exposure'?: 'existing' | 'none' | undefined; + 'registered_address'?: AddressModel | undefined; + 'relationship'?: PersonRelationshipModel | undefined; + 'requirements'?: PersonRequirementsModel | undefined; + 'ssn_last_4_provided'?: boolean | undefined; + 'us_cfpb_data'?: PersonUsCfpbDataModel | undefined; + 'verification'?: LegalEntityPersonVerificationModel | undefined; +}; + +export type AccountRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'current_deadline'?: number | undefined; + 'currently_due'?: string[] | 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' | undefined; + 'errors'?: AccountRequirementsErrorModel[] | undefined; + 'eventually_due'?: string[] | undefined; + 'past_due'?: string[] | undefined; + 'pending_verification'?: string[] | undefined; +}; + +export type AccountBacsDebitPaymentsSettingsModel = { + 'display_name'?: string | undefined; + 'service_user_number'?: string | undefined; +}; + +export type AccountBrandingSettingsModel = { + 'icon'?: string | FileModel | undefined; + 'logo'?: string | FileModel | undefined; + 'primary_color'?: string | undefined; + 'secondary_color'?: string | undefined; +}; + +export type CardIssuingAccountTermsOfServiceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type AccountCardIssuingSettingsModel = { + 'tos_acceptance'?: CardIssuingAccountTermsOfServiceModel | undefined; +}; + +export type AccountDeclineChargeOnModel = { + 'avs_failure': boolean; + 'cvc_failure': boolean; +}; + +export type AccountCardPaymentsSettingsModel = { + 'decline_on'?: AccountDeclineChargeOnModel | undefined; + 'statement_descriptor_prefix'?: string | undefined; + 'statement_descriptor_prefix_kana'?: string | undefined; + 'statement_descriptor_prefix_kanji'?: string | undefined; +}; + +export type AccountDashboardSettingsModel = { + 'display_name'?: string | undefined; + 'timezone'?: string | undefined; +}; + +export type AccountInvoicesSettingsModel = { + 'default_account_tax_ids'?: Array | undefined; + 'hosted_payment_method_save'?: 'always' | 'never' | 'offer' | undefined; +}; + +export type AccountPaymentsSettingsModel = { + 'statement_descriptor'?: string | undefined; + 'statement_descriptor_kana'?: string | undefined; + 'statement_descriptor_kanji'?: string | undefined; +}; + +export type TransferScheduleModel = { + 'delay_days': number; + 'interval': string; + 'monthly_anchor'?: number | undefined; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_anchor'?: string | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type AccountPayoutSettingsModel = { + 'debit_negative_balances': boolean; + 'schedule': TransferScheduleModel; + 'statement_descriptor'?: string | undefined; +}; + +export type AccountSepaDebitPaymentsSettingsModel = { + 'creditor_id'?: string | undefined; +}; + +export type AccountTermsOfServiceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type AccountTreasurySettingsModel = { + 'tos_acceptance'?: AccountTermsOfServiceModel | undefined; +}; + +export type AccountSettingsModel = { + 'bacs_debit_payments'?: AccountBacsDebitPaymentsSettingsModel | undefined; + 'branding': AccountBrandingSettingsModel; + 'card_issuing'?: AccountCardIssuingSettingsModel | undefined; + 'card_payments': AccountCardPaymentsSettingsModel; + 'dashboard': AccountDashboardSettingsModel; + 'invoices'?: AccountInvoicesSettingsModel | undefined; + 'payments': AccountPaymentsSettingsModel; + 'payouts'?: AccountPayoutSettingsModel | undefined; + 'sepa_debit_payments'?: AccountSepaDebitPaymentsSettingsModel | undefined; + 'treasury'?: AccountTreasurySettingsModel | undefined; +}; + +export type AccountTosAcceptanceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'service_agreement'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type AccountModel = { + 'business_profile'?: AccountBusinessProfileModel | undefined; + 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; + 'capabilities'?: AccountCapabilitiesModel | undefined; + 'charges_enabled'?: boolean | undefined; + 'company'?: LegalEntityCompanyModel | undefined; + 'controller'?: AccountUnificationAccountControllerModel | undefined; + 'country'?: string | undefined; + 'created'?: number | undefined; + 'default_currency'?: string | undefined; + 'details_submitted'?: boolean | undefined; + 'email'?: string | undefined; + 'external_accounts'?: { + 'data': Array; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'future_requirements'?: AccountFutureRequirementsModel | undefined; + 'groups'?: AccountGroupMembershipModel | undefined; + 'id': string; + 'individual'?: PersonModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'account'; + 'payouts_enabled'?: boolean | undefined; + 'requirements'?: AccountRequirementsModel | undefined; + 'settings'?: AccountSettingsModel | undefined; + 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; + 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +}; + +export type AccountCapabilityFutureRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'current_deadline'?: number | 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' | undefined; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountCapabilityRequirementsModel = { + 'alternatives'?: AccountRequirementsAlternativeModel[] | undefined; + 'current_deadline'?: number | 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' | undefined; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountLinkModel = { + 'created': number; + 'expires_at': number; + 'object': 'account_link'; + 'url': string; +}; + +export type ConnectEmbeddedAccountFeaturesClaimModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; +}; + +export type ConnectEmbeddedAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedAccountFeaturesClaimModel; +}; + +export type ConnectEmbeddedPayoutsFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'edit_payout_schedule': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; + 'standard_payouts': boolean; +}; + +export type ConnectEmbeddedPayoutsConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPayoutsFeaturesModel; +}; + +export type ConnectEmbeddedDisputesListFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedDisputesListConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedDisputesListFeaturesModel; +}; + +export type ConnectEmbeddedBaseFeaturesModel = { + +}; + +export type ConnectEmbeddedBaseConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedBaseFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'send_money': boolean; + 'transfer_balance': boolean; +}; + +export type ConnectEmbeddedFinancialAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = { + 'card_spend_dispute_management': boolean; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountTransactionsFeaturesModel; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedInstantPayoutsPromotionFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardsListFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'disable_stripe_user_authentication': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardsListConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardsListFeaturesModel; +}; + +export type ConnectEmbeddedPaymentsFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentsFeaturesModel; +}; + +export type ConnectEmbeddedPaymentDisputesFeaturesModel = { + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentDisputesConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentDisputesFeaturesModel; +}; + +export type ConnectEmbeddedAccountSessionCreateComponentsModel = { + 'account_management': ConnectEmbeddedAccountConfigClaimModel; + 'account_onboarding': ConnectEmbeddedAccountConfigClaimModel; + 'balances': ConnectEmbeddedPayoutsConfigModel; + 'disputes_list': ConnectEmbeddedDisputesListConfigModel; + 'documents': ConnectEmbeddedBaseConfigClaimModel; + 'financial_account': ConnectEmbeddedFinancialAccountConfigClaimModel; + 'financial_account_transactions': ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel; + 'instant_payouts_promotion': ConnectEmbeddedInstantPayoutsPromotionConfigModel; + 'issuing_card': ConnectEmbeddedIssuingCardConfigClaimModel; + 'issuing_cards_list': ConnectEmbeddedIssuingCardsListConfigClaimModel; + 'notification_banner': ConnectEmbeddedAccountConfigClaimModel; + 'payment_details': ConnectEmbeddedPaymentsConfigClaimModel; + 'payment_disputes': ConnectEmbeddedPaymentDisputesConfigModel; + 'payments': ConnectEmbeddedPaymentsConfigClaimModel; + 'payout_details': ConnectEmbeddedBaseConfigClaimModel; + 'payouts': ConnectEmbeddedPayoutsConfigModel; + 'payouts_list': ConnectEmbeddedBaseConfigClaimModel; + 'tax_registrations': ConnectEmbeddedBaseConfigClaimModel; + 'tax_settings': ConnectEmbeddedBaseConfigClaimModel; +}; + +export type AccountSessionModel = { + 'account': string; + 'client_secret': string; + 'components': ConnectEmbeddedAccountSessionCreateComponentsModel; + 'expires_at': number; + 'livemode': boolean; + 'object': 'account_session'; +}; + +export type ApplePayDomainModel = { + 'created': number; + 'domain_name': string; + 'id': string; + 'livemode': boolean; + 'object': 'apple_pay_domain'; +}; + +export type SecretServiceResourceScopeModel = { + 'type': 'account' | 'user'; + 'user'?: string | undefined; +}; + +export type AppsSecretModel = { + 'created': number; + 'deleted'?: boolean | undefined; + 'expires_at'?: number | undefined; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'apps.secret'; + 'payload'?: string | undefined; + 'scope': SecretServiceResourceScopeModel; +}; + +export type BalanceAmountBySourceTypeModel = { + 'bank_account'?: number | undefined; + 'card'?: number | undefined; + 'fpx'?: number | undefined; +}; + +export type BalanceAmountModel = { + 'amount': number; + 'currency': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceNetAvailableModel = { + 'amount': number; + 'destination': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceAmountNetModel = { + 'amount': number; + 'currency': string; + 'net_available'?: BalanceNetAvailableModel[] | undefined; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceDetailModel = { + 'available': BalanceAmountModel[]; +}; + +export type BalanceDetailUngatedModel = { + 'available': BalanceAmountModel[]; + 'pending': BalanceAmountModel[]; +}; + +export type BalanceModel = { + 'available': BalanceAmountModel[]; + 'connect_reserved'?: BalanceAmountModel[] | undefined; + 'instant_available'?: BalanceAmountNetModel[] | undefined; + 'issuing'?: BalanceDetailModel | undefined; + 'livemode': boolean; + 'object': 'balance'; + 'pending': BalanceAmountModel[]; + 'refund_and_dispute_prefunding'?: BalanceDetailUngatedModel | undefined; +}; + +export type BalanceSettingsResourcePayoutScheduleModel = { + 'interval'?: 'daily' | 'manual' | 'monthly' | 'weekly' | undefined; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type BalanceSettingsResourcePayoutsModel = { + 'minimum_balance_by_currency'?: { + [key: string]: number; +} | undefined; + 'schedule'?: BalanceSettingsResourcePayoutScheduleModel | undefined; + 'statement_descriptor'?: string | undefined; + 'status': 'disabled' | 'enabled'; +}; + +export type BalanceSettingsResourceSettlementTimingModel = { + 'delay_days': number; + 'delay_days_override'?: number | undefined; +}; + +export type BalanceSettingsResourcePaymentsModel = { + 'debit_negative_balances'?: boolean | undefined; + 'payouts'?: BalanceSettingsResourcePayoutsModel | undefined; + 'settlement_timing': BalanceSettingsResourceSettlementTimingModel; +}; + +export type BalanceSettingsModel = { + 'object': 'balance_settings'; + 'payments': BalanceSettingsResourcePaymentsModel; +}; + +export type BankConnectionsResourceAccountNumberDetailsModel = { + 'expected_expiry_date'?: number | undefined; + 'identifier_type': 'account_number' | 'tokenized_account_number'; + 'status': 'deactivated' | 'transactable'; + 'supported_networks': 'ach'[]; +}; + +export type BankConnectionsResourceAccountholderModel = { + 'account'?: string | AccountModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'type': 'account' | 'customer'; +}; + +export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = { + 'available'?: { + [key: string]: number; +} | undefined; +}; + +export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = { + 'used'?: { + [key: string]: number; +} | undefined; +}; + +export type BankConnectionsResourceBalanceModel = { + 'as_of': number; + 'cash'?: BankConnectionsResourceBalanceApiResourceCashBalanceModel | undefined; + 'credit'?: BankConnectionsResourceBalanceApiResourceCreditBalanceModel | undefined; + 'current': { + [key: string]: number; +}; + 'type': 'cash' | 'credit'; +}; + +export type BankConnectionsResourceBalanceRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at'?: number | undefined; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceLinkAccountSessionFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'savings'> | undefined; + 'countries'?: string[] | undefined; +}; + +export type BankConnectionsResourceOwnershipRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at'?: number | undefined; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionRefreshModel = { + 'id': string; + 'last_attempted_at': number; + 'next_refresh_available_at'?: number | undefined; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = { + 'posted_at'?: number | undefined; + 'void_at'?: number | undefined; +}; + +export type ThresholdsResourceUsageAlertFilterModel = { + 'customer'?: string | CustomerModel | undefined; + 'type': 'customer'; +}; + +export type BillingMeterResourceCustomerMappingSettingsModel = { + 'event_payload_key': string; + 'type': 'by_id'; +}; + +export type BillingMeterResourceAggregationSettingsModel = { + 'formula': 'count' | 'last' | 'sum'; +}; + +export type BillingMeterResourceBillingMeterStatusTransitionsModel = { + 'deactivated_at'?: number | undefined; +}; + +export type BillingMeterResourceBillingMeterValueModel = { + 'event_payload_key': string; +}; + +export type BillingMeterModel = { + 'created': number; + 'customer_mapping': BillingMeterResourceCustomerMappingSettingsModel; + 'default_aggregation': BillingMeterResourceAggregationSettingsModel; + 'display_name': string; + 'event_name': string; + 'event_time_window'?: 'day' | 'hour' | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'billing.meter'; + 'status': 'active' | 'inactive'; + 'status_transitions': BillingMeterResourceBillingMeterStatusTransitionsModel; + 'updated': number; + 'value_settings': BillingMeterResourceBillingMeterValueModel; +}; + +export type ThresholdsResourceUsageThresholdConfigModel = { + 'filters'?: ThresholdsResourceUsageAlertFilterModel[] | undefined; + 'gte': number; + 'meter': string | BillingMeterModel; + 'recurrence': 'one_time'; +}; + +export type BillingAlertModel = { + 'alert_type': 'usage_threshold'; + 'id': string; + 'livemode': boolean; + 'object': 'billing.alert'; + 'status'?: 'active' | 'archived' | 'inactive' | undefined; + 'title': string; + 'usage_threshold'?: ThresholdsResourceUsageThresholdConfigModel | undefined; +}; + +export type CreditBalanceModel = { + 'available_balance': BillingCreditGrantsResourceAmountModel; + 'ledger_balance': BillingCreditGrantsResourceAmountModel; +}; + +export type BillingCreditBalanceSummaryModel = { + 'balances': CreditBalanceModel[]; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'livemode': boolean; + 'object': 'billing.credit_balance_summary'; +}; + +export type BillingMeterEventModel = { + 'created': number; + 'event_name': string; + 'identifier': string; + 'livemode': boolean; + 'object': 'billing.meter_event'; + 'payload': { + [key: string]: string; +}; + 'timestamp': number; +}; + +export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = { + 'identifier'?: string | undefined; +}; + +export type BillingMeterEventAdjustmentModel = { + 'cancel'?: BillingMeterResourceBillingMeterEventAdjustmentCancelModel | undefined; + 'event_name': string; + 'livemode': boolean; + 'object': 'billing.meter_event_adjustment'; + 'status': 'complete' | 'pending'; + 'type': 'cancel'; +}; + +export type BillingMeterEventSummaryModel = { + 'aggregated_value': number; + 'end_time': number; + 'id': string; + 'livemode': boolean; + 'meter': string; + 'object': 'billing.meter_event_summary'; + 'start_time': number; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = { + 'subscription': string; + 'subscription_item'?: string | undefined; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = { + 'subscription_details'?: BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel | undefined; + 'type': 'subscription_details'; +}; + +export type PortalBusinessProfileModel = { + 'headline'?: string | undefined; + 'privacy_policy_url'?: string | undefined; + 'terms_of_service_url'?: string | undefined; +}; + +export type PortalCustomerUpdateModel = { + 'allowed_updates': Array<'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id'>; + 'enabled': boolean; +}; + +export type PortalInvoiceListModel = { + 'enabled': boolean; +}; + +export type PortalPaymentMethodUpdateModel = { + 'enabled': boolean; + 'payment_method_configuration'?: string | undefined; +}; + +export type PortalSubscriptionCancellationReasonModel = { + 'enabled': boolean; + 'options': Array<'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'>; +}; + +export type PortalSubscriptionCancelModel = { + 'cancellation_reason': PortalSubscriptionCancellationReasonModel; + 'enabled': boolean; + 'mode': 'at_period_end' | 'immediately'; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; +}; + +export type PortalSubscriptionUpdateProductAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum'?: number | undefined; + 'minimum': number; +}; + +export type PortalSubscriptionUpdateProductModel = { + 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantityModel; + 'prices': string[]; + 'product': string; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = { + 'type': 'decreasing_item_amount' | 'shortening_interval'; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndModel = { + 'conditions': PortalResourceScheduleUpdateAtPeriodEndConditionModel[]; +}; + +export type PortalSubscriptionUpdateModel = { + 'default_allowed_updates': Array<'price' | 'promotion_code' | 'quantity'>; + 'enabled': boolean; + 'products'?: PortalSubscriptionUpdateProductModel[] | undefined; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'schedule_at_period_end': PortalResourceScheduleUpdateAtPeriodEndModel; + 'trial_update_behavior': 'continue_trial' | 'end_trial'; +}; + +export type PortalFeaturesModel = { + 'customer_update': PortalCustomerUpdateModel; + 'invoice_history': PortalInvoiceListModel; + 'payment_method_update': PortalPaymentMethodUpdateModel; + 'subscription_cancel': PortalSubscriptionCancelModel; + 'subscription_update': PortalSubscriptionUpdateModel; +}; + +export type PortalLoginPageModel = { + 'enabled': boolean; + 'url'?: string | undefined; +}; + +export type BillingPortalConfigurationModel = { + 'active': boolean; + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'business_profile': PortalBusinessProfileModel; + 'created': number; + 'default_return_url'?: string | undefined; + 'features': PortalFeaturesModel; + 'id': string; + 'is_default': boolean; + 'livemode': boolean; + 'login_page': PortalLoginPageModel; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'name'?: string | undefined; + 'object': 'billing_portal.configuration'; + 'updated': number; +}; + +export type PortalFlowsAfterCompletionHostedConfirmationModel = { + 'custom_message'?: string | undefined; +}; + +export type PortalFlowsAfterCompletionRedirectModel = { + 'return_url': string; +}; + +export type PortalFlowsFlowAfterCompletionModel = { + 'hosted_confirmation'?: PortalFlowsAfterCompletionHostedConfirmationModel | undefined; + 'redirect'?: PortalFlowsAfterCompletionRedirectModel | undefined; + 'type': 'hosted_confirmation' | 'portal_homepage' | 'redirect'; +}; + +export type PortalFlowsCouponOfferModel = { + 'coupon': string; +}; + +export type PortalFlowsRetentionModel = { + 'coupon_offer'?: PortalFlowsCouponOfferModel | undefined; + 'type': 'coupon_offer'; +}; + +export type PortalFlowsFlowSubscriptionCancelModel = { + 'retention'?: PortalFlowsRetentionModel | undefined; + 'subscription': string; +}; + +export type PortalFlowsFlowSubscriptionUpdateModel = { + 'subscription': string; +}; + +export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = { + 'coupon'?: string | undefined; + 'promotion_code'?: string | undefined; +}; + +export type PortalFlowsSubscriptionUpdateConfirmItemModel = { + 'id'?: string | undefined; + 'price'?: string | undefined; + 'quantity'?: number | undefined; +}; + +export type PortalFlowsFlowSubscriptionUpdateConfirmModel = { + 'discounts'?: PortalFlowsSubscriptionUpdateConfirmDiscountModel[] | undefined; + 'items': PortalFlowsSubscriptionUpdateConfirmItemModel[]; + 'subscription': string; +}; + +export type PortalFlowsFlowModel = { + 'after_completion': PortalFlowsFlowAfterCompletionModel; + 'subscription_cancel'?: PortalFlowsFlowSubscriptionCancelModel | undefined; + 'subscription_update'?: PortalFlowsFlowSubscriptionUpdateModel | undefined; + 'subscription_update_confirm'?: PortalFlowsFlowSubscriptionUpdateConfirmModel | undefined; + 'type': 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'subscription_update_confirm'; +}; + +export type BillingPortalSessionModel = { + 'configuration': string | BillingPortalConfigurationModel; + 'created': number; + 'customer': string; + 'flow'?: PortalFlowsFlowModel | 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' | undefined; + 'object': 'billing_portal.session'; + 'on_behalf_of'?: string | undefined; + 'return_url'?: string | undefined; + 'url': string; +}; + +export type CapabilityModel = { + 'account': string | AccountModel; + 'future_requirements'?: AccountCapabilityFutureRequirementsModel | undefined; + 'id': string; + 'object': 'capability'; + 'requested': boolean; + 'requested_at'?: number | undefined; + 'requirements'?: AccountCapabilityRequirementsModel | undefined; + 'status': 'active' | 'inactive' | 'pending' | 'unrequested'; +}; + +export type PaymentPagesCheckoutSessionAdaptivePricingModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = { + 'allow_promotion_codes': boolean; + 'enabled': boolean; + 'expires_at'?: number | undefined; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationModel = { + 'recovery'?: PaymentPagesCheckoutSessionAfterExpirationRecoveryModel | undefined; +}; + +export type PaymentPagesCheckoutSessionAutomaticTaxModel = { + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; + 'provider'?: string | undefined; + 'status'?: 'complete' | 'failed' | 'requires_location_inputs' | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsModel = { + 'background_color': string; + 'border_style': 'pill' | 'rectangular' | 'rounded'; + 'button_color': string; + 'display_name': string; + 'font_family': string; + 'icon'?: PaymentPagesCheckoutSessionBrandingSettingsIconModel | undefined; + 'logo'?: PaymentPagesCheckoutSessionBrandingSettingsLogoModel | undefined; +}; + +export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = { + 'address': AddressModel; + 'name': string; +}; + +export type PaymentPagesCheckoutSessionCollectedInformationModel = { + 'business_name'?: string | undefined; + 'individual_name'?: string | undefined; + 'shipping_details'?: PaymentPagesCheckoutSessionCheckoutAddressDetailsModel | undefined; +}; + +export type PaymentPagesCheckoutSessionConsentModel = { + 'promotions'?: 'opt_in' | 'opt_out' | undefined; + 'terms_of_service'?: 'accepted' | undefined; +}; + +export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentPagesCheckoutSessionConsentCollectionModel = { + 'payment_method_reuse_agreement'?: PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel | undefined; + 'promotions'?: 'auto' | 'none' | undefined; + 'terms_of_service'?: 'none' | 'required' | undefined; +}; + +export type PaymentPagesCheckoutSessionCurrencyConversionModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'fx_rate': string; + 'source_currency': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = { + 'default_value'?: string | undefined; + 'options': PaymentPagesCheckoutSessionCustomFieldsOptionModel[]; + 'value'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = { + 'custom'?: string | undefined; + 'type': 'custom'; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = { + 'default_value'?: string | undefined; + 'maximum_length'?: number | undefined; + 'minimum_length'?: number | undefined; + 'value'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsTextModel = { + 'default_value'?: string | undefined; + 'maximum_length'?: number | undefined; + 'minimum_length'?: number | undefined; + 'value'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsModel = { + 'dropdown'?: PaymentPagesCheckoutSessionCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentPagesCheckoutSessionCustomFieldsLabelModel; + 'numeric'?: PaymentPagesCheckoutSessionCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentPagesCheckoutSessionCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentPagesCheckoutSessionCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentPagesCheckoutSessionCustomTextModel = { + 'after_submit'?: PaymentPagesCheckoutSessionCustomTextPositionModel | undefined; + 'shipping_address'?: PaymentPagesCheckoutSessionCustomTextPositionModel | undefined; + 'submit'?: PaymentPagesCheckoutSessionCustomTextPositionModel | undefined; + 'terms_of_service_acceptance'?: PaymentPagesCheckoutSessionCustomTextPositionModel | undefined; +}; + +export type PaymentPagesCheckoutSessionTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionCustomerDetailsModel = { + 'address'?: AddressModel | undefined; + 'business_name'?: string | undefined; + 'email'?: string | undefined; + 'individual_name'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; + 'tax_ids'?: PaymentPagesCheckoutSessionTaxIdModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionDiscountModel = { + 'coupon'?: string | CouponModel | undefined; + 'promotion_code'?: string | PromotionCodeModel | undefined; +}; + +export type InvoiceSettingCheckoutRenderingOptionsModel = { + 'amount_tax_display'?: string | undefined; + 'template'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionInvoiceSettingsModel = { + 'account_tax_ids'?: Array | undefined; + 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; + 'description'?: string | undefined; + 'footer'?: string | undefined; + 'issuer'?: ConnectAccountReferenceModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'rendering_options'?: InvoiceSettingCheckoutRenderingOptionsModel | undefined; +}; + +export type PaymentPagesCheckoutSessionInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettingsModel; +}; + +export type LineItemsDiscountAmountModel = { + 'amount': number; + 'discount': DiscountModel; +}; + +export type ItemModel = { + 'amount_discount': number; + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'currency': string; + 'description'?: string | undefined; + 'discounts'?: LineItemsDiscountAmountModel[] | undefined; + 'id': string; + 'object': 'item'; + 'price'?: PriceModel | undefined; + 'quantity'?: number | undefined; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionNameCollectionModel = { + 'business'?: PaymentPagesCheckoutSessionBusinessNameModel | undefined; + 'individual'?: PaymentPagesCheckoutSessionIndividualNameModel | undefined; +}; + +export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum'?: number | undefined; + 'minimum'?: number | undefined; +}; + +export type PaymentPagesCheckoutSessionOptionalItemModel = { + 'adjustable_quantity'?: PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel | undefined; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = { + 'custom_message'?: string | undefined; +}; + +export type PaymentLinksResourceCompletionBehaviorRedirectModel = { + 'url': string; +}; + +export type PaymentLinksResourceAfterCompletionModel = { + 'hosted_confirmation'?: PaymentLinksResourceCompletionBehaviorConfirmationPageModel | undefined; + 'redirect'?: PaymentLinksResourceCompletionBehaviorRedirectModel | undefined; + 'type': 'hosted_confirmation' | 'redirect'; +}; + +export type PaymentLinksResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; +}; + +export type PaymentLinksResourcePaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentLinksResourceConsentCollectionModel = { + 'payment_method_reuse_agreement'?: PaymentLinksResourcePaymentMethodReuseAgreementModel | undefined; + 'promotions'?: 'auto' | 'none' | undefined; + 'terms_of_service'?: 'none' | 'required' | undefined; +}; + +export type PaymentLinksResourceCustomFieldsDropdownOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentLinksResourceCustomFieldsDropdownModel = { + 'default_value'?: string | undefined; + 'options': PaymentLinksResourceCustomFieldsDropdownOptionModel[]; +}; + +export type PaymentLinksResourceCustomFieldsLabelModel = { + 'custom'?: string | undefined; + 'type': 'custom'; +}; + +export type PaymentLinksResourceCustomFieldsNumericModel = { + 'default_value'?: string | undefined; + 'maximum_length'?: number | undefined; + 'minimum_length'?: number | undefined; +}; + +export type PaymentLinksResourceCustomFieldsTextModel = { + 'default_value'?: string | undefined; + 'maximum_length'?: number | undefined; + 'minimum_length'?: number | undefined; +}; + +export type PaymentLinksResourceCustomFieldsModel = { + 'dropdown'?: PaymentLinksResourceCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentLinksResourceCustomFieldsLabelModel; + 'numeric'?: PaymentLinksResourceCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentLinksResourceCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentLinksResourceCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentLinksResourceCustomTextModel = { + 'after_submit'?: PaymentLinksResourceCustomTextPositionModel | undefined; + 'shipping_address'?: PaymentLinksResourceCustomTextPositionModel | undefined; + 'submit'?: PaymentLinksResourceCustomTextPositionModel | undefined; + 'terms_of_service_acceptance'?: PaymentLinksResourceCustomTextPositionModel | undefined; +}; + +export type PaymentLinksResourceInvoiceSettingsModel = { + 'account_tax_ids'?: Array | undefined; + 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; + 'description'?: string | undefined; + 'footer'?: string | undefined; + 'issuer'?: ConnectAccountReferenceModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'rendering_options'?: InvoiceSettingCheckoutRenderingOptionsModel | undefined; +}; + +export type PaymentLinksResourceInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data'?: PaymentLinksResourceInvoiceSettingsModel | undefined; +}; + +export type PaymentLinksResourceBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceNameCollectionModel = { + 'business'?: PaymentLinksResourceBusinessNameModel | undefined; + 'individual'?: PaymentLinksResourceIndividualNameModel | undefined; +}; + +export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum'?: number | undefined; + 'minimum'?: number | undefined; +}; + +export type PaymentLinksResourceOptionalItemModel = { + 'adjustable_quantity'?: PaymentLinksResourceOptionalItemAdjustableQuantityModel | undefined; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourcePaymentIntentDataModel = { + 'capture_method'?: 'automatic' | 'automatic_async' | 'manual' | undefined; + 'description'?: string | undefined; + 'metadata': { + [key: string]: string; +}; + 'setup_future_usage'?: 'off_session' | 'on_session' | undefined; + 'statement_descriptor'?: string | undefined; + 'statement_descriptor_suffix'?: string | undefined; + 'transfer_group'?: string | undefined; +}; + +export type PaymentLinksResourcePhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentLinksResourceCompletedSessionsModel = { + 'count': number; + 'limit': number; +}; + +export type PaymentLinksResourceRestrictionsModel = { + 'completed_sessions': PaymentLinksResourceCompletedSessionsModel; +}; + +export type PaymentLinksResourceShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentLinksResourceShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = { + 'issuer': ConnectAccountReferenceModel; +}; + +export type PaymentLinksResourceSubscriptionDataModel = { + 'description'?: string | undefined; + 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettingsModel; + 'metadata': { + [key: string]: string; +}; + 'trial_period_days'?: number | undefined; + 'trial_settings'?: SubscriptionsTrialsResourceTrialSettingsModel | undefined; +}; + +export type PaymentLinksResourceTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentLinksResourceTransferDataModel = { + 'amount'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type PaymentLinkModel = { + 'active': boolean; + 'after_completion': PaymentLinksResourceAfterCompletionModel; + 'allow_promotion_codes': boolean; + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'application_fee_amount'?: number | undefined; + 'application_fee_percent'?: number | undefined; + 'automatic_tax': PaymentLinksResourceAutomaticTaxModel; + 'billing_address_collection': 'auto' | 'required'; + 'consent_collection'?: PaymentLinksResourceConsentCollectionModel | undefined; + 'currency': string; + 'custom_fields': PaymentLinksResourceCustomFieldsModel[]; + 'custom_text': PaymentLinksResourceCustomTextModel; + 'customer_creation': 'always' | 'if_required'; + 'id': string; + 'inactive_message'?: string | undefined; + 'invoice_creation'?: PaymentLinksResourceInvoiceCreationModel | undefined; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name_collection'?: PaymentLinksResourceNameCollectionModel | undefined; + 'object': 'payment_link'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'optional_items'?: PaymentLinksResourceOptionalItemModel[] | undefined; + 'payment_intent_data'?: PaymentLinksResourcePaymentIntentDataModel | undefined; + 'payment_method_collection': 'always' | 'if_required'; + 'payment_method_types'?: Array<'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'klarna' | 'konbini' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' | 'pay_by_bank' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'> | undefined; + 'phone_number_collection': PaymentLinksResourcePhoneNumberCollectionModel; + 'restrictions'?: PaymentLinksResourceRestrictionsModel | undefined; + 'shipping_address_collection'?: PaymentLinksResourceShippingAddressCollectionModel | undefined; + 'shipping_options': PaymentLinksResourceShippingOptionModel[]; + 'submit_type': 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + 'subscription_data'?: PaymentLinksResourceSubscriptionDataModel | undefined; + 'tax_id_collection': PaymentLinksResourceTaxIdCollectionModel; + 'transfer_data'?: PaymentLinksResourceTransferDataModel | undefined; + 'url': string; +}; + +export type CheckoutAcssDebitMandateOptionsModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description'?: string | undefined; + 'payment_schedule'?: 'combined' | 'interval' | 'sporadic' | undefined; + 'transaction_type'?: 'business' | 'personal' | undefined; +}; + +export type CheckoutAcssDebitPaymentMethodOptionsModel = { + 'currency'?: 'cad' | 'usd' | undefined; + 'mandate_options'?: CheckoutAcssDebitMandateOptionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type CheckoutAffirmPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlipayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlmaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutAmazonPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutAuBecsDebitPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutBacsDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutBancontactPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutBilliePaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutBoletoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutCardInstallmentsOptionsModel = { + 'enabled'?: boolean | undefined; +}; + +export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = { + 'brands_blocked'?: Array<'american_express' | 'discover_global_network' | 'mastercard' | 'visa'> | undefined; +}; + +export type CheckoutCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'installments'?: CheckoutCardInstallmentsOptionsModel | 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'; + 'restrictions'?: PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'statement_descriptor_suffix_kana'?: string | undefined; + 'statement_descriptor_suffix_kanji'?: string | undefined; +}; + +export type CheckoutCashappPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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; +}; + +export type CheckoutCustomerBalancePaymentMethodOptionsModel = { + 'bank_transfer'?: CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel | undefined; + 'funding_type'?: 'bank_transfer' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutEpsPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutFpxPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGiropayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGrabPayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutIdealPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutKlarnaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutKonbiniPaymentMethodOptionsModel = { + 'expires_after_days'?: number | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKrCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutLinkPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutMobilepayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutMultibancoPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutOxxoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutP24PaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaynowPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaypalPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'reference'?: string | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutPixPaymentMethodOptionsModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds'?: number | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutRevolutPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutSatispayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutSepaDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutSofortPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutSwishPaymentMethodOptionsModel = { + 'reference'?: string | undefined; +}; + +export type CheckoutTwintPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutUsBankAccountPaymentMethodOptionsModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | undefined; +}; + +export type CheckoutSessionPaymentMethodOptionsModel = { + 'acss_debit'?: CheckoutAcssDebitPaymentMethodOptionsModel | undefined; + 'affirm'?: CheckoutAffirmPaymentMethodOptionsModel | undefined; + 'afterpay_clearpay'?: CheckoutAfterpayClearpayPaymentMethodOptionsModel | undefined; + 'alipay'?: CheckoutAlipayPaymentMethodOptionsModel | undefined; + 'alma'?: CheckoutAlmaPaymentMethodOptionsModel | undefined; + 'amazon_pay'?: CheckoutAmazonPayPaymentMethodOptionsModel | undefined; + 'au_becs_debit'?: CheckoutAuBecsDebitPaymentMethodOptionsModel | undefined; + 'bacs_debit'?: CheckoutBacsDebitPaymentMethodOptionsModel | undefined; + 'bancontact'?: CheckoutBancontactPaymentMethodOptionsModel | undefined; + 'billie'?: CheckoutBilliePaymentMethodOptionsModel | undefined; + 'boleto'?: CheckoutBoletoPaymentMethodOptionsModel | undefined; + 'card'?: CheckoutCardPaymentMethodOptionsModel | undefined; + 'cashapp'?: CheckoutCashappPaymentMethodOptionsModel | undefined; + 'customer_balance'?: CheckoutCustomerBalancePaymentMethodOptionsModel | undefined; + 'eps'?: CheckoutEpsPaymentMethodOptionsModel | undefined; + 'fpx'?: CheckoutFpxPaymentMethodOptionsModel | undefined; + 'giropay'?: CheckoutGiropayPaymentMethodOptionsModel | undefined; + 'grabpay'?: CheckoutGrabPayPaymentMethodOptionsModel | undefined; + 'ideal'?: CheckoutIdealPaymentMethodOptionsModel | undefined; + 'kakao_pay'?: CheckoutKakaoPayPaymentMethodOptionsModel | undefined; + 'klarna'?: CheckoutKlarnaPaymentMethodOptionsModel | undefined; + 'konbini'?: CheckoutKonbiniPaymentMethodOptionsModel | undefined; + 'kr_card'?: CheckoutKrCardPaymentMethodOptionsModel | undefined; + 'link'?: CheckoutLinkPaymentMethodOptionsModel | undefined; + 'mobilepay'?: CheckoutMobilepayPaymentMethodOptionsModel | undefined; + 'multibanco'?: CheckoutMultibancoPaymentMethodOptionsModel | undefined; + 'naver_pay'?: CheckoutNaverPayPaymentMethodOptionsModel | undefined; + 'oxxo'?: CheckoutOxxoPaymentMethodOptionsModel | undefined; + 'p24'?: CheckoutP24PaymentMethodOptionsModel | undefined; + 'payco'?: CheckoutPaycoPaymentMethodOptionsModel | undefined; + 'paynow'?: CheckoutPaynowPaymentMethodOptionsModel | undefined; + 'paypal'?: CheckoutPaypalPaymentMethodOptionsModel | undefined; + 'pix'?: CheckoutPixPaymentMethodOptionsModel | undefined; + 'revolut_pay'?: CheckoutRevolutPayPaymentMethodOptionsModel | undefined; + 'samsung_pay'?: CheckoutSamsungPayPaymentMethodOptionsModel | undefined; + 'satispay'?: CheckoutSatispayPaymentMethodOptionsModel | undefined; + 'sepa_debit'?: CheckoutSepaDebitPaymentMethodOptionsModel | undefined; + 'sofort'?: CheckoutSofortPaymentMethodOptionsModel | undefined; + 'swish'?: CheckoutSwishPaymentMethodOptionsModel | undefined; + 'twint'?: CheckoutTwintPaymentMethodOptionsModel | undefined; + 'us_bank_account'?: CheckoutUsBankAccountPaymentMethodOptionsModel | undefined; +}; + +export type PaymentPagesCheckoutSessionPermissionsModel = { + 'update_shipping_details'?: 'client_only' | 'server_only' | undefined; +}; + +export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = { + 'allow_redisplay_filters'?: Array<'always' | 'limited' | 'unspecified'> | undefined; + 'payment_method_remove'?: 'disabled' | 'enabled' | undefined; + 'payment_method_save'?: 'disabled' | 'enabled' | undefined; +}; + +export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentPagesCheckoutSessionShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate'?: string | ShippingRateModel | undefined; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentPagesCheckoutSessionTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping'?: number | undefined; + 'amount_tax': number; + 'breakdown'?: PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel | undefined; +}; + +export type CheckoutLinkWalletOptionsModel = { + 'display'?: 'auto' | 'never' | undefined; +}; + +export type CheckoutSessionWalletOptionsModel = { + 'link'?: CheckoutLinkWalletOptionsModel | undefined; +}; + +export type CheckoutSessionModel = { + 'adaptive_pricing'?: PaymentPagesCheckoutSessionAdaptivePricingModel | undefined; + 'after_expiration'?: PaymentPagesCheckoutSessionAfterExpirationModel | undefined; + 'allow_promotion_codes'?: boolean | undefined; + 'amount_subtotal'?: number | undefined; + 'amount_total'?: number | undefined; + 'automatic_tax': PaymentPagesCheckoutSessionAutomaticTaxModel; + 'billing_address_collection'?: 'auto' | 'required' | undefined; + 'branding_settings'?: PaymentPagesCheckoutSessionBrandingSettingsModel | undefined; + 'cancel_url'?: string | undefined; + 'client_reference_id'?: string | undefined; + 'client_secret'?: string | undefined; + 'collected_information'?: PaymentPagesCheckoutSessionCollectedInformationModel | undefined; + 'consent'?: PaymentPagesCheckoutSessionConsentModel | undefined; + 'consent_collection'?: PaymentPagesCheckoutSessionConsentCollectionModel | undefined; + 'created': number; + 'currency'?: string | undefined; + 'currency_conversion'?: PaymentPagesCheckoutSessionCurrencyConversionModel | undefined; + 'custom_fields': PaymentPagesCheckoutSessionCustomFieldsModel[]; + 'custom_text': PaymentPagesCheckoutSessionCustomTextModel; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'customer_creation'?: 'always' | 'if_required' | undefined; + 'customer_details'?: PaymentPagesCheckoutSessionCustomerDetailsModel | undefined; + 'customer_email'?: string | undefined; + 'discounts'?: PaymentPagesCheckoutSessionDiscountModel[] | undefined; + 'excluded_payment_method_types'?: string[] | undefined; + 'expires_at': number; + 'id': string; + 'invoice'?: string | InvoiceModel | undefined; + 'invoice_creation'?: PaymentPagesCheckoutSessionInvoiceCreationModel | undefined; + 'line_items'?: { + 'data': ItemModel[]; + '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' | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'mode': 'payment' | 'setup' | 'subscription'; + 'name_collection'?: PaymentPagesCheckoutSessionNameCollectionModel | undefined; + 'object': 'checkout.session'; + 'optional_items'?: PaymentPagesCheckoutSessionOptionalItemModel[] | undefined; + 'origin_context'?: 'mobile_app' | 'web' | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_link'?: string | PaymentLinkModel | undefined; + 'payment_method_collection'?: 'always' | 'if_required' | undefined; + 'payment_method_configuration_details'?: PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel | undefined; + 'payment_method_options'?: CheckoutSessionPaymentMethodOptionsModel | undefined; + 'payment_method_types': string[]; + 'payment_status': 'no_payment_required' | 'paid' | 'unpaid'; + 'permissions'?: PaymentPagesCheckoutSessionPermissionsModel | undefined; + 'phone_number_collection'?: PaymentPagesCheckoutSessionPhoneNumberCollectionModel | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'recovered_from'?: string | undefined; + 'redirect_on_completion'?: 'always' | 'if_required' | 'never' | undefined; + 'return_url'?: string | undefined; + 'saved_payment_method_options'?: PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel | undefined; + 'setup_intent'?: string | SetupIntentModel | undefined; + 'shipping_address_collection'?: PaymentPagesCheckoutSessionShippingAddressCollectionModel | undefined; + 'shipping_cost'?: PaymentPagesCheckoutSessionShippingCostModel | undefined; + 'shipping_options': PaymentPagesCheckoutSessionShippingOptionModel[]; + 'status'?: 'complete' | 'expired' | 'open' | undefined; + 'submit_type'?: 'auto' | 'book' | 'donate' | 'pay' | 'subscribe' | undefined; + 'subscription'?: string | SubscriptionModel | undefined; + 'success_url'?: string | undefined; + 'tax_id_collection'?: PaymentPagesCheckoutSessionTaxIdCollectionModel | undefined; + 'total_details'?: PaymentPagesCheckoutSessionTotalDetailsModel | undefined; + 'ui_mode'?: 'custom' | 'embedded' | 'hosted' | undefined; + 'url'?: string | undefined; + 'wallet_options'?: CheckoutSessionWalletOptionsModel | undefined; +}; + +export type ClimateRemovalsBeneficiaryModel = { + 'public_name': string; +}; + +export type ClimateRemovalsLocationModel = { + 'city'?: string | undefined; + 'country': string; + 'latitude'?: number | undefined; + 'longitude'?: number | undefined; + 'region'?: string | undefined; +}; + +export type ClimateSupplierModel = { + 'id': string; + 'info_url': string; + 'livemode': boolean; + 'locations': ClimateRemovalsLocationModel[]; + 'name': string; + 'object': 'climate.supplier'; + 'removal_pathway': 'biomass_carbon_removal_and_storage' | 'direct_air_capture' | 'enhanced_weathering'; +}; + +export type ClimateRemovalsOrderDeliveriesModel = { + 'delivered_at': number; + 'location'?: ClimateRemovalsLocationModel | undefined; + 'metric_tons': string; + 'registry_url'?: string | undefined; + 'supplier': ClimateSupplierModel; +}; + +export type ClimateRemovalsProductsPriceModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; +}; + +export type ClimateProductModel = { + 'created': number; + 'current_prices_per_metric_ton': { + [key: string]: ClimateRemovalsProductsPriceModel; +}; + 'delivery_year'?: number | undefined; + 'id': string; + 'livemode': boolean; + 'metric_tons_available': string; + 'name': string; + 'object': 'climate.product'; + 'suppliers': ClimateSupplierModel[]; +}; + +export type ClimateOrderModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; + 'beneficiary'?: ClimateRemovalsBeneficiaryModel | undefined; + 'canceled_at'?: number | undefined; + 'cancellation_reason'?: 'expired' | 'product_unavailable' | 'requested' | undefined; + 'certificate'?: string | undefined; + 'confirmed_at'?: number | undefined; + 'created': number; + 'currency': string; + 'delayed_at'?: number | undefined; + 'delivered_at'?: number | undefined; + 'delivery_details': ClimateRemovalsOrderDeliveriesModel[]; + 'expected_delivery_year': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'metric_tons': string; + 'object': 'climate.order'; + 'product': string | ClimateProductModel; + 'product_substituted_at'?: number | undefined; + 'status': 'awaiting_funds' | 'canceled' | 'confirmed' | 'delivered' | 'open'; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = { + 'ip_address'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = { + 'online'?: ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel | undefined; + 'type': string; +}; + +export type ConfirmationTokensResourceMandateDataModel = { + 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = { + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = { + 'cvc_token'?: string | undefined; + 'installments'?: ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsModel = { + 'card'?: ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodPreviewModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type ConfirmationTokensResourceShippingModel = { + 'address': AddressModel; + 'name': string; + 'phone'?: string | undefined; +}; + +export type ConfirmationTokenModel = { + 'created': number; + 'expires_at'?: number | undefined; + 'id': string; + 'livemode': boolean; + 'mandate_data'?: ConfirmationTokensResourceMandateDataModel | undefined; + 'object': 'confirmation_token'; + 'payment_intent'?: string | undefined; + 'payment_method_options'?: ConfirmationTokensResourcePaymentMethodOptionsModel | undefined; + 'payment_method_preview'?: ConfirmationTokensResourcePaymentMethodPreviewModel | undefined; + 'return_url'?: string | undefined; + 'setup_future_usage'?: 'off_session' | 'on_session' | undefined; + 'setup_intent'?: string | undefined; + 'shipping'?: ConfirmationTokensResourceShippingModel | undefined; + 'use_stripe_sdk': boolean; +}; + +export type CountrySpecVerificationFieldDetailsModel = { + 'additional': string[]; + 'minimum': string[]; +}; + +export type CountrySpecVerificationFieldsModel = { + 'company': CountrySpecVerificationFieldDetailsModel; + 'individual': CountrySpecVerificationFieldDetailsModel; +}; + +export type CountrySpecModel = { + 'default_currency': string; + 'id': string; + 'object': 'country_spec'; + 'supported_bank_account_currencies': { + [key: string]: string[]; +}; + 'supported_payment_currencies': string[]; + 'supported_payment_methods': string[]; + 'supported_transfer_countries': string[]; + 'verification_fields': CountrySpecVerificationFieldsModel; +}; + +export type CustomerBalanceTransactionModel = { + 'amount': number; + 'checkout_session'?: string | CheckoutSessionModel | undefined; + 'created': number; + 'credit_note'?: string | CreditNoteModel | undefined; + 'currency': string; + 'customer': string | CustomerModel; + 'description'?: string | undefined; + 'ending_balance': number; + 'id': string; + 'invoice'?: string | InvoiceModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'customer_balance_transaction'; + 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; +}; + +export type CreditNotesPretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'type': 'credit_balance_transaction' | 'discount'; +}; + +export type CreditNoteLineItemModel = { + 'amount': number; + 'description'?: string | undefined; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'id': string; + 'invoice_line_item'?: string | undefined; + 'livemode': boolean; + 'object': 'credit_note_line_item'; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'quantity'?: number | undefined; + 'tax_rates': TaxRateModel[]; + 'taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; + 'type': 'custom_line_item' | 'invoice_line_item'; + 'unit_amount'?: number | undefined; + 'unit_amount_decimal'?: string | undefined; +}; + +export type CreditNotesPaymentRecordRefundModel = { + 'payment_record': string; + 'refund_group': string; +}; + +export type CreditNoteRefundModel = { + 'amount_refunded': number; + 'payment_record_refund'?: CreditNotesPaymentRecordRefundModel | undefined; + 'refund': string | RefundModel; + 'type'?: 'payment_record_refund' | 'refund' | undefined; +}; + +export type CreditNoteModel = { + 'amount': number; + 'amount_shipping': number; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_balance_transaction'?: string | CustomerBalanceTransactionModel | undefined; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'effective_at'?: number | undefined; + 'id': string; + 'invoice': string | InvoiceModel; + 'lines': { + 'data': CreditNoteLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'memo'?: string | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'number': string; + 'object': 'credit_note'; + 'out_of_band_amount'?: number | undefined; + 'pdf': string; + 'post_payment_amount': number; + 'pre_payment_amount': number; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'reason'?: 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory' | undefined; + 'refunds': CreditNoteRefundModel[]; + 'shipping_cost'?: InvoicesResourceShippingCostModel | undefined; + 'status': 'issued' | 'void'; + 'subtotal': number; + 'subtotal_excluding_tax'?: number | undefined; + 'total': number; + 'total_excluding_tax'?: number | undefined; + 'total_taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; + 'type': 'mixed' | 'post_payment' | 'pre_payment'; + 'voided_at'?: number | undefined; +}; + +export type CustomerSessionResourceComponentsResourceBuyButtonModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters'?: Array<'always' | 'limited' | 'unspecified'> | undefined; + 'payment_method_remove'?: 'disabled' | 'enabled' | undefined; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetModel = { + 'enabled': boolean; + 'features'?: CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel | undefined; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters'?: Array<'always' | 'limited' | 'unspecified'> | undefined; + 'payment_method_redisplay'?: 'disabled' | 'enabled' | undefined; + 'payment_method_remove'?: 'disabled' | 'enabled' | undefined; + 'payment_method_save'?: 'disabled' | 'enabled' | undefined; + 'payment_method_save_allow_redisplay_override'?: 'always' | 'limited' | 'unspecified' | undefined; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = { + 'enabled': boolean; + 'features'?: CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel | undefined; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_redisplay': 'disabled' | 'enabled'; + 'payment_method_redisplay_limit'?: number | undefined; + 'payment_method_remove': 'disabled' | 'enabled'; + 'payment_method_save': 'disabled' | 'enabled'; + 'payment_method_save_usage'?: 'off_session' | 'on_session' | undefined; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementModel = { + 'enabled': boolean; + 'features'?: CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel | undefined; +}; + +export type CustomerSessionResourceComponentsResourcePricingTableModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceComponentsModel = { + 'buy_button': CustomerSessionResourceComponentsResourceBuyButtonModel; + 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheetModel; + 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElementModel; + 'payment_element': CustomerSessionResourceComponentsResourcePaymentElementModel; + 'pricing_table': CustomerSessionResourceComponentsResourcePricingTableModel; +}; + +export type CustomerSessionModel = { + 'client_secret': string; + 'components'?: CustomerSessionResourceComponentsModel | undefined; + 'created': number; + 'customer': string | CustomerModel; + 'expires_at': number; + 'livemode': boolean; + 'object': 'customer_session'; +}; + +export type DeletedAccountModel = { + 'deleted': boolean; + 'id': string; + 'object': 'account'; +}; + +export type DeletedApplePayDomainModel = { + 'deleted': boolean; + 'id': string; + 'object': 'apple_pay_domain'; +}; + +export type DeletedCouponModel = { + 'deleted': boolean; + 'id': string; + 'object': 'coupon'; +}; + +export type DeletedExternalAccountModel = DeletedBankAccountModel | DeletedCardModel; + +export type DeletedInvoiceitemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoiceitem'; +}; + +export type DeletedPaymentSourceModel = DeletedBankAccountModel | DeletedCardModel; + +export type DeletedPersonModel = { + 'deleted': boolean; + 'id': string; + 'object': 'person'; +}; + +export type DeletedPlanModel = { + 'deleted': boolean; + 'id': string; + 'object': 'plan'; +}; + +export type DeletedProductFeatureModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product_feature'; +}; + +export type DeletedRadarValueListModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list'; +}; + +export type DeletedRadarValueListItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list_item'; +}; + +export type DeletedSubscriptionItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'subscription_item'; +}; + +export type DeletedTerminalConfigurationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.configuration'; +}; + +export type DeletedTerminalLocationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.location'; +}; + +export type DeletedTerminalReaderModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.reader'; +}; + +export type DeletedTestHelpersTestClockModel = { + 'deleted': boolean; + 'id': string; + 'object': 'test_helpers.test_clock'; +}; + +export type DeletedWebhookEndpointModel = { + 'deleted': boolean; + 'id': string; + 'object': 'webhook_endpoint'; +}; + +export type EntitlementsFeatureModel = { + 'active': boolean; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'entitlements.feature'; +}; + +export type EntitlementsActiveEntitlementModel = { + 'feature': string | EntitlementsFeatureModel; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'object': 'entitlements.active_entitlement'; +}; + +export type EphemeralKeyModel = { + 'created': number; + 'expires': number; + 'id': string; + 'livemode': boolean; + 'object': 'ephemeral_key'; + 'secret'?: string | undefined; +}; + +export type ErrorModel = { + 'error': ApiErrorsModel; +}; + +export type NotificationEventDataModel = { + 'object': {}; + 'previous_attributes'?: {} | undefined; +}; + +export type NotificationEventRequestModel = { + 'id'?: string | undefined; + 'idempotency_key'?: string | undefined; +}; + +export type EventModel = { + 'account'?: string | undefined; + 'api_version'?: string | undefined; + 'context'?: string | undefined; + 'created': number; + 'data': NotificationEventDataModel; + 'id': string; + 'livemode': boolean; + 'object': 'event'; + 'pending_webhooks': number; + 'request'?: NotificationEventRequestModel | undefined; + 'type': string; +}; + +export type ExchangeRateModel = { + 'id': string; + 'object': 'exchange_rate'; + 'rates': { + [key: string]: number; +}; +}; + +export type ExternalAccountModel = BankAccountModel | CardModel; + +export type FinancialConnectionsAccountOwnerModel = { + 'email'?: string | undefined; + 'id': string; + 'name': string; + 'object': 'financial_connections.account_owner'; + 'ownership': string; + 'phone'?: string | undefined; + 'raw_address'?: string | undefined; + 'refreshed_at'?: number | undefined; +}; + +export type FinancialConnectionsAccountOwnershipModel = { + 'created': number; + 'id': string; + 'object': 'financial_connections.account_ownership'; + 'owners': { + 'data': FinancialConnectionsAccountOwnerModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type FinancialConnectionsAccountModel = { + 'account_holder'?: BankConnectionsResourceAccountholderModel | undefined; + 'account_numbers'?: BankConnectionsResourceAccountNumberDetailsModel[] | undefined; + 'balance'?: BankConnectionsResourceBalanceModel | undefined; + 'balance_refresh'?: BankConnectionsResourceBalanceRefreshModel | undefined; + 'category': 'cash' | 'credit' | 'investment' | 'other'; + 'created': number; + 'display_name'?: string | undefined; + 'id': string; + 'institution_name': string; + 'last4'?: string | undefined; + 'livemode': boolean; + 'object': 'financial_connections.account'; + 'ownership'?: string | FinancialConnectionsAccountOwnershipModel | undefined; + 'ownership_refresh'?: BankConnectionsResourceOwnershipRefreshModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'status': 'active' | 'disconnected' | 'inactive'; + 'subcategory': 'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'other' | 'savings'; + 'subscriptions'?: 'transactions'[] | undefined; + 'supported_payment_method_types': Array<'link' | 'us_bank_account'>; + 'transaction_refresh'?: BankConnectionsResourceTransactionRefreshModel | undefined; +}; + +export type FinancialConnectionsSessionModel = { + 'account_holder'?: BankConnectionsResourceAccountholderModel | undefined; + 'accounts': { + 'data': FinancialConnectionsAccountModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'client_secret'?: string | undefined; + 'filters'?: BankConnectionsResourceLinkAccountSessionFiltersModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'financial_connections.session'; + 'permissions': Array<'balances' | 'ownership' | 'payment_method' | 'transactions'>; + 'prefetch'?: Array<'balances' | 'ownership' | 'transactions'> | undefined; + 'return_url'?: string | undefined; +}; + +export type FinancialConnectionsTransactionModel = { + 'account': string; + 'amount': number; + 'currency': string; + 'description': string; + 'id': string; + 'livemode': boolean; + 'object': 'financial_connections.transaction'; + 'status': 'pending' | 'posted' | 'void'; + 'status_transitions': BankConnectionsResourceTransactionResourceStatusTransitionsModel; + 'transacted_at': number; + 'transaction_refresh': string; + 'updated': number; +}; + +export type FinancialReportingFinanceReportRunRunParametersModel = { + '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 ForwardedRequestContextModel = { + 'destination_duration': number; + 'destination_ip_address': string; +}; + +export type ForwardedRequestHeaderModel = { + 'name': string; + 'value': string; +}; + +export type ForwardedRequestDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'http_method': 'POST'; +}; + +export type ForwardedResponseDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'status': number; +}; + +export type ForwardingRequestModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'forwarding.request'; + 'payment_method': string; + 'replacements': Array<'card_cvc' | 'card_expiry' | 'card_number' | 'cardholder_name' | 'request_signature'>; + 'request_context'?: ForwardedRequestContextModel | undefined; + 'request_details'?: ForwardedRequestDetailsModel | undefined; + 'response_details'?: ForwardedResponseDetailsModel | undefined; + 'url'?: string | undefined; +}; + +export type FundingInstructionsBankTransferModel = { + 'country': string; + 'financial_addresses': FundingInstructionsBankTransferFinancialAddressModel[]; + 'type': 'eu_bank_transfer' | 'jp_bank_transfer'; +}; + +export type FundingInstructionsModel = { + 'bank_transfer': FundingInstructionsBankTransferModel; + 'currency': string; + 'funding_type': 'bank_transfer'; + 'livemode': boolean; + 'object': 'funding_instructions'; +}; + +export type GelatoDataDocumentReportDateOfBirthModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type GelatoDataDocumentReportExpirationDateModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type GelatoDataDocumentReportIssuedDateModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type GelatoDataIdNumberReportDateModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type GelatoDataVerifiedOutputsDateModel = { + 'day'?: number | undefined; + 'month'?: number | undefined; + 'year'?: number | undefined; +}; + +export type GelatoDocumentReportErrorModel = { + 'code'?: 'document_expired' | 'document_type_not_supported' | 'document_unverified_other' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoDocumentReportModel = { + 'address'?: AddressModel | undefined; + 'dob'?: GelatoDataDocumentReportDateOfBirthModel | undefined; + 'error'?: GelatoDocumentReportErrorModel | undefined; + 'expiration_date'?: GelatoDataDocumentReportExpirationDateModel | undefined; + 'files'?: string[] | undefined; + 'first_name'?: string | undefined; + 'issued_date'?: GelatoDataDocumentReportIssuedDateModel | undefined; + 'issuing_country'?: string | undefined; + 'last_name'?: string | undefined; + 'number'?: string | undefined; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'status': 'unverified' | 'verified'; + 'type'?: 'driving_license' | 'id_card' | 'passport' | undefined; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type GelatoEmailReportErrorModel = { + 'code'?: 'email_unverified_other' | 'email_verification_declined' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoEmailReportModel = { + 'email'?: string | undefined; + 'error'?: GelatoEmailReportErrorModel | undefined; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoIdNumberReportErrorModel = { + 'code'?: 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoIdNumberReportModel = { + 'dob'?: GelatoDataIdNumberReportDateModel | undefined; + 'error'?: GelatoIdNumberReportErrorModel | undefined; + 'first_name'?: string | undefined; + 'id_number'?: string | undefined; + 'id_number_type'?: 'br_cpf' | 'sg_nric' | 'us_ssn' | undefined; + 'last_name'?: string | undefined; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoPhoneReportErrorModel = { + 'code'?: 'phone_unverified_other' | 'phone_verification_declined' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoPhoneReportModel = { + 'error'?: GelatoPhoneReportErrorModel | undefined; + 'phone'?: string | undefined; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoProvidedDetailsModel = { + 'email'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type GelatoRelatedPersonModel = { + 'account': string; + 'person': string; +}; + +export type GelatoReportDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoReportIdNumberOptionsModel = { + +}; + +export type GelatoSelfieReportErrorModel = { + 'code'?: 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoSelfieReportModel = { + 'document'?: string | undefined; + 'error'?: GelatoSelfieReportErrorModel | undefined; + 'selfie'?: string | undefined; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoSessionDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoSessionEmailOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoSessionIdNumberOptionsModel = { + +}; + +export type GelatoSessionLastErrorModel = { + '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' | undefined; + 'reason'?: string | undefined; +}; + +export type GelatoSessionMatchingOptionsModel = { + 'dob'?: 'none' | 'similar' | undefined; + 'name'?: 'none' | 'similar' | undefined; +}; + +export type GelatoSessionPhoneOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoVerificationReportOptionsModel = { + 'document'?: GelatoReportDocumentOptionsModel | undefined; + 'id_number'?: GelatoReportIdNumberOptionsModel | undefined; +}; + +export type GelatoVerificationSessionOptionsModel = { + 'document'?: GelatoSessionDocumentOptionsModel | undefined; + 'email'?: GelatoSessionEmailOptionsModel | undefined; + 'id_number'?: GelatoSessionIdNumberOptionsModel | undefined; + 'matching'?: GelatoSessionMatchingOptionsModel | undefined; + 'phone'?: GelatoSessionPhoneOptionsModel | undefined; +}; + +export type GelatoVerifiedOutputsModel = { + 'address'?: AddressModel | undefined; + 'dob'?: GelatoDataVerifiedOutputsDateModel | undefined; + 'email'?: string | undefined; + 'first_name'?: string | undefined; + 'id_number'?: string | undefined; + 'id_number_type'?: 'br_cpf' | 'sg_nric' | 'us_ssn' | undefined; + 'last_name'?: string | undefined; + 'phone'?: string | undefined; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type IdentityVerificationReportModel = { + 'client_reference_id'?: string | undefined; + 'created': number; + 'document'?: GelatoDocumentReportModel | undefined; + 'email'?: GelatoEmailReportModel | undefined; + 'id': string; + 'id_number'?: GelatoIdNumberReportModel | undefined; + 'livemode': boolean; + 'object': 'identity.verification_report'; + 'options'?: GelatoVerificationReportOptionsModel | undefined; + 'phone'?: GelatoPhoneReportModel | undefined; + 'selfie'?: GelatoSelfieReportModel | undefined; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'verification_flow'?: string | undefined; + 'verification_session'?: string | undefined; +}; + +export type VerificationSessionRedactionModel = { + 'status': 'processing' | 'redacted'; +}; + +export type IdentityVerificationSessionModel = { + 'client_reference_id'?: string | undefined; + 'client_secret'?: string | undefined; + 'created': number; + 'id': string; + 'last_error'?: GelatoSessionLastErrorModel | undefined; + 'last_verification_report'?: string | IdentityVerificationReportModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'identity.verification_session'; + 'options'?: GelatoVerificationSessionOptionsModel | undefined; + 'provided_details'?: GelatoProvidedDetailsModel | undefined; + 'redaction'?: VerificationSessionRedactionModel | undefined; + 'related_customer'?: string | undefined; + 'related_person'?: GelatoRelatedPersonModel | undefined; + 'status': 'canceled' | 'processing' | 'requires_input' | 'verified'; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'url'?: string | undefined; + 'verification_flow'?: string | undefined; + 'verified_outputs'?: GelatoVerifiedOutputsModel | undefined; +}; + +export type TreasurySharedResourceBillingDetailsModel = { + 'address': AddressModel; + 'email'?: string | undefined; + 'name'?: string | undefined; +}; + +export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach'; + 'routing_number'?: string | undefined; +}; + +export type InboundTransfersModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'type': 'us_bank_account'; + 'us_bank_account'?: InboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type InvoiceRenderingTemplateModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'nickname'?: string | undefined; + 'object': 'invoice_rendering_template'; + 'status': 'active' | 'archived'; + 'version': number; +}; + +export type InvoiceSettingQuoteSettingModel = { + 'days_until_due'?: number | undefined; + 'issuer': ConnectAccountReferenceModel; +}; + +export type ProrationDetailsModel = { + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; +}; + +export type InvoiceitemModel = { + 'amount': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'date': number; + 'description'?: string | undefined; + 'discountable': boolean; + 'discounts'?: Array | undefined; + 'id': string; + 'invoice'?: string | InvoiceModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'net_amount'?: number | undefined; + 'object': 'invoiceitem'; + 'parent'?: BillingBillResourceInvoiceItemParentsInvoiceItemParentModel | undefined; + 'period': InvoiceLineItemPeriodModel; + 'pricing'?: BillingBillResourceInvoicingPricingPricingModel | undefined; + 'proration': boolean; + 'proration_details'?: ProrationDetailsModel | undefined; + 'quantity': number; + 'tax_rates'?: TaxRateModel[] | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type IssuingSettlementModel = { + 'bin': string; + 'clearing_date': number; + 'created': number; + 'currency': string; + 'id': string; + 'interchange_fees_amount': number; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'net_total_amount': number; + 'network': 'maestro' | 'visa'; + 'network_fees_amount': number; + 'network_settlement_identifier': string; + 'object': 'issuing.settlement'; + 'settlement_service': string; + 'status': 'complete' | 'pending'; + 'transaction_amount': number; + 'transaction_count': number; +}; + +export type LoginLinkModel = { + 'created': number; + 'object': 'login_link'; + 'url': string; +}; + +export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number'?: string | undefined; +}; + +export type OutboundPaymentsPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundPaymentsPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundPaymentsPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type'?: 'company' | 'individual' | undefined; + 'account_type'?: 'checking' | 'savings' | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number'?: string | undefined; +}; + +export type OutboundTransfersPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundTransfersPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentAttemptRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application'?: string | undefined; + 'created': number; + 'customer_details'?: PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel | undefined; + 'customer_presence'?: 'off_session' | 'on_session' | undefined; + 'description'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_attempt_record'; + 'payment_method_details'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel | undefined; + 'payment_record'?: string | undefined; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'reported_by': 'self' | 'stripe'; + 'shipping_details'?: PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel | undefined; +}; + +export type PaymentMethodConfigResourceDisplayPreferenceModel = { + 'overridable'?: boolean | undefined; + 'preference': 'none' | 'off' | 'on'; + 'value': 'off' | 'on'; +}; + +export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = { + 'available': boolean; + 'display_preference': PaymentMethodConfigResourceDisplayPreferenceModel; +}; + +export type PaymentMethodConfigurationModel = { + 'acss_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'active': boolean; + 'affirm'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'afterpay_clearpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alipay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alma'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'amazon_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'apple_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'application'?: string | undefined; + 'au_becs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bacs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bancontact'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'billie'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'blik'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'boleto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cartes_bancaires'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cashapp'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'crypto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'customer_balance'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'eps'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'fpx'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'giropay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'google_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'grabpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'id': string; + 'ideal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'is_default': boolean; + 'jcb'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kakao_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'klarna'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'konbini'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kr_card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'link'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'mobilepay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'multibanco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'name': string; + 'naver_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'nz_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'object': 'payment_method_configuration'; + 'oxxo'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'p24'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'parent'?: string | undefined; + 'pay_by_bank'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'payco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paynow'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paypal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'pix'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'promptpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'revolut_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'samsung_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'satispay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sepa_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sofort'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'swish'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'twint'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'us_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'wechat_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'zip'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = { + 'error_message': string; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusModel = { + 'status': 'active' | 'inactive'; + 'status_details'?: PaymentMethodDomainResourcePaymentMethodStatusDetailsModel | undefined; +}; + +export type PaymentMethodDomainModel = { + 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'created': number; + 'domain_name': string; + 'enabled': boolean; + 'google_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'id': string; + 'klarna': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'link': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'livemode': boolean; + 'object': 'payment_method_domain'; + 'paypal': PaymentMethodDomainResourcePaymentMethodStatusModel; +}; + +export type PaymentSourceModel = AccountModel | BankAccountModel | CardModel | SourceModel; + +export type PlanTierModel = { + 'flat_amount'?: number | undefined; + 'flat_amount_decimal'?: string | undefined; + 'unit_amount'?: number | undefined; + 'unit_amount_decimal'?: string | undefined; + 'up_to'?: number | undefined; +}; + +export type TransformUsageModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PlanModel = { + 'active': boolean; + 'amount'?: number | undefined; + 'amount_decimal'?: string | undefined; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'id': string; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'meter'?: string | undefined; + 'nickname'?: string | undefined; + 'object': 'plan'; + 'product'?: string | ProductModel | DeletedProductModel | undefined; + 'tiers'?: PlanTierModel[] | undefined; + 'tiers_mode'?: 'graduated' | 'volume' | undefined; + 'transform_usage'?: TransformUsageModel | undefined; + 'trial_period_days'?: number | undefined; + 'usage_type': 'licensed' | 'metered'; +}; + +export type ProductFeatureModel = { + 'entitlement_feature': EntitlementsFeatureModel; + 'id': string; + 'livemode': boolean; + 'object': 'product_feature'; +}; + +export type QuotesResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability'?: ConnectAccountReferenceModel | undefined; + 'provider'?: string | undefined; + 'status'?: 'complete' | 'failed' | 'requires_location_inputs' | undefined; +}; + +export type QuotesResourceTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type QuotesResourceTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping'?: number | undefined; + 'amount_tax': number; + 'breakdown'?: QuotesResourceTotalDetailsResourceBreakdownModel | undefined; +}; + +export type QuotesResourceRecurringModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceUpfrontModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceComputedModel = { + 'recurring'?: QuotesResourceRecurringModel | undefined; + 'upfront': QuotesResourceUpfrontModel; +}; + +export type QuotesResourceFromQuoteModel = { + 'is_revision': boolean; + 'quote': string | QuoteModel; +}; + +export type QuotesResourceStatusTransitionsModel = { + 'accepted_at'?: number | undefined; + 'canceled_at'?: number | undefined; + 'finalized_at'?: number | undefined; +}; + +export type QuotesResourceSubscriptionDataBillingModeModel = { + 'flexible'?: SubscriptionsResourceBillingModeFlexibleModel | undefined; + 'type': 'classic' | 'flexible'; +}; + +export type QuotesResourceSubscriptionDataSubscriptionDataModel = { + 'billing_mode': QuotesResourceSubscriptionDataBillingModeModel; + 'description'?: string | undefined; + 'effective_date'?: number | undefined; + 'metadata'?: { [key: string]: string; +} | undefined; + 'trial_period_days'?: number | undefined; }; - 'network_data'?: IssuingAuthorizationNetworkDataModel | undefined; - 'object': 'issuing.authorization'; - 'pending_request'?: IssuingAuthorizationPendingRequestModel | undefined; - 'request_history': IssuingAuthorizationRequestModel[]; - 'status': 'closed' | 'expired' | 'pending' | 'reversed'; - 'token'?: string | IssuingTokenModel | undefined; - 'transactions': IssuingTransactionModel[]; - 'treasury'?: IssuingAuthorizationTreasuryModel | undefined; - 'verification_data': IssuingAuthorizationVerificationDataModel; - 'verified_by_fraud_challenge'?: boolean | undefined; - 'wallet'?: string | undefined; + +export type QuotesResourceTransferDataModel = { + 'amount'?: number | undefined; + 'amount_percent'?: number | undefined; + 'destination': string | AccountModel; }; -export type IssuingCardModel = { - 'brand': string; - 'cancellation_reason'?: 'design_rejected' | 'lost' | 'stolen' | undefined; - 'cardholder': IssuingCardholderModel; +export type QuoteModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; + 'application_fee_amount'?: number | undefined; + 'application_fee_percent'?: number | undefined; + 'automatic_tax': QuotesResourceAutomaticTaxModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'computed': QuotesResourceComputedModel; 'created': number; - 'currency': string; - 'cvc'?: string | undefined; - 'exp_month': number; - 'exp_year': number; - 'financial_account'?: string | undefined; + 'currency'?: string | undefined; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'default_tax_rates'?: Array | undefined; + 'description'?: string | undefined; + 'discounts': Array; + 'expires_at': number; + 'footer'?: string | undefined; + 'from_quote'?: QuotesResourceFromQuoteModel | undefined; + 'header'?: string | undefined; 'id': string; - 'last4': string; - 'latest_fraud_warning'?: IssuingCardFraudWarningModel | undefined; + 'invoice'?: string | InvoiceModel | DeletedInvoiceModel | undefined; + 'invoice_settings': InvoiceSettingQuoteSettingModel; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; 'number'?: string | undefined; - 'object': 'issuing.card'; - 'personalization_design'?: string | IssuingPersonalizationDesignModel | undefined; - 'replaced_by'?: string | IssuingCardModel | undefined; - 'replacement_for'?: string | IssuingCardModel | undefined; - 'replacement_reason'?: 'damaged' | 'expired' | 'lost' | 'stolen' | undefined; - 'second_line'?: string | undefined; - 'shipping'?: IssuingCardShippingModel | undefined; - 'spending_controls': IssuingCardAuthorizationControlsModel; - 'status': 'active' | 'canceled' | 'inactive'; - 'type': 'physical' | 'virtual'; - 'wallets'?: IssuingCardWalletsModel | undefined; + 'object': 'quote'; + 'on_behalf_of'?: string | AccountModel | undefined; + 'status': 'accepted' | 'canceled' | 'draft' | 'open'; + 'status_transitions': QuotesResourceStatusTransitionsModel; + 'subscription'?: string | SubscriptionModel | undefined; + 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; + 'subscription_schedule'?: string | SubscriptionScheduleModel | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; + 'total_details': QuotesResourceTotalDetailsModel; + 'transfer_data'?: QuotesResourceTransferDataModel | undefined; }; -export type IssuingTransactionModel = { - 'amount': number; - 'amount_details'?: IssuingTransactionAmountDetailsModel | undefined; - 'authorization'?: string | IssuingAuthorizationModel | undefined; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'card': string | IssuingCardModel; - 'cardholder'?: string | IssuingCardholderModel | undefined; +export type RadarEarlyFraudWarningModel = { + 'actionable': boolean; + 'charge': string | ChargeModel; 'created': number; - 'currency': string; - 'dispute'?: string | IssuingDisputeModel | undefined; + 'fraud_type': string; 'id': string; 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; - 'metadata': { - [key: string]: string; + 'object': 'radar.early_fraud_warning'; + 'payment_intent'?: string | PaymentIntentModel | undefined; }; - 'network_data'?: IssuingTransactionNetworkDataModel | undefined; - 'object': 'issuing.transaction'; - 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; - 'token'?: string | IssuingTokenModel | undefined; - 'treasury'?: IssuingTransactionTreasuryModel | undefined; - 'type': 'capture' | 'refund'; - 'wallet'?: 'apple_pay' | 'google_pay' | 'samsung_pay' | undefined; + +export type RadarValueListItemModel = { + 'created': number; + 'created_by': string; + 'id': string; + 'livemode': boolean; + 'object': 'radar.value_list_item'; + 'value': string; + 'value_list': string; }; -export type IssuingDisputeModel = { - 'amount': number; - 'balance_transactions'?: BalanceTransactionModel[] | undefined; +export type RadarValueListModel = { + 'alias': string; 'created': number; - 'currency': string; - 'evidence': IssuingDisputeEvidenceModel; + 'created_by': string; 'id': string; + 'item_type': 'card_bin' | 'card_fingerprint' | 'case_sensitive_string' | 'country' | 'customer_id' | 'email' | 'ip_address' | 'sepa_debit_fingerprint' | 'string' | 'us_bank_account_fingerprint'; + 'list_items': { + 'data': RadarValueListItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': 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' | undefined; 'metadata': { [key: string]: string; }; - 'object': 'issuing.dispute'; - 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; - 'transaction': string | IssuingTransactionModel; - 'treasury'?: IssuingDisputeTreasuryModel | undefined; + 'name': string; + 'object': 'radar.value_list'; }; -export type PayoutModel = { +export type ReceivedPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type ReportingReportRunModel = { + 'created': number; + 'error'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'reporting.report_run'; + 'parameters': FinancialReportingFinanceReportRunRunParametersModel; + 'report_type': string; + 'result'?: FileModel | undefined; + 'status': string; + 'succeeded_at'?: number | undefined; +}; + +export type ReportingReportTypeModel = { + 'data_available_end': number; + 'data_available_start': number; + 'default_columns'?: string[] | undefined; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'reporting.report_type'; + 'updated': number; + 'version': number; +}; + +export type SigmaScheduledQueryRunErrorModel = { + 'message': string; +}; + +export type ScheduledQueryRunModel = { + 'created': number; + 'data_load_time': number; + 'error'?: SigmaScheduledQueryRunErrorModel | undefined; + 'file'?: FileModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'scheduled_query_run'; + 'result_available_until': number; + 'sql': string; + 'status': string; + 'title': string; +}; + +export type SigmaSigmaApiQueryModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'sigma.sigma_api_query'; + 'sql': string; +}; + +export type SourceMandateNotificationAcssDebitDataModel = { + 'statement_descriptor'?: string | undefined; +}; + +export type SourceMandateNotificationBacsDebitDataModel = { + 'last4'?: string | undefined; +}; + +export type SourceMandateNotificationSepaDebitDataModel = { + 'creditor_identifier'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; +}; + +export type SourceMandateNotificationModel = { + 'acss_debit'?: SourceMandateNotificationAcssDebitDataModel | undefined; + 'amount'?: number | undefined; + 'bacs_debit'?: SourceMandateNotificationBacsDebitDataModel | undefined; + 'created': number; + 'id': string; + 'livemode': boolean; + 'object': 'source_mandate_notification'; + 'reason': string; + 'sepa_debit'?: SourceMandateNotificationSepaDebitDataModel | undefined; + 'source': SourceModel; + 'status': string; + 'type': string; +}; + +export type SourceTransactionAchCreditTransferDataModel = { + 'customer_data'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type SourceTransactionChfCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_address_country'?: string | undefined; + 'sender_address_line1'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionGbpCreditTransferDataModel = { + '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 SourceTransactionPaperCheckDataModel = { + 'available_at'?: string | undefined; + 'invoices'?: string | undefined; +}; + +export type SourceTransactionSepaCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionModel = { + 'ach_credit_transfer'?: SourceTransactionAchCreditTransferDataModel | undefined; 'amount': number; - 'application_fee'?: string | ApplicationFeeModel | undefined; - 'application_fee_amount'?: number | undefined; - 'arrival_date': number; - 'automatic': boolean; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; + 'chf_credit_transfer'?: SourceTransactionChfCreditTransferDataModel | undefined; 'created': number; 'currency': string; - 'description'?: string | undefined; - 'destination'?: string | BankAccountModel | CardModel | DeletedBankAccountModel | DeletedCardModel | undefined; - 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; - 'failure_code'?: string | undefined; - 'failure_message'?: string | undefined; + 'gbp_credit_transfer'?: SourceTransactionGbpCreditTransferDataModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'source_transaction'; + 'paper_check'?: SourceTransactionPaperCheckDataModel | undefined; + 'sepa_credit_transfer'?: SourceTransactionSepaCreditTransferDataModel | undefined; + 'source': string; + 'status': string; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = { + 'transaction': string; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = { + 'reason': 'another_payment_associated_with_calculation' | 'calculation_expired' | 'currency_mismatch' | 'original_transaction_voided' | 'unique_reference_violation'; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsModel = { + 'committed'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel | undefined; + 'errored'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel | undefined; + 'source': string; + 'status': string; +}; + +export type TaxAssociationModel = { + 'calculation': string; + 'id': string; + 'object': 'tax.association'; + 'payment_intent': string; + 'tax_transaction_attempts'?: TaxProductResourceTaxAssociationTransactionAttemptsModel[] | undefined; +}; + +export type TaxProductResourcePostalAddressModel = { + 'city'?: string | undefined; + 'country': string; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; +}; + +export type TaxProductResourceCustomerDetailsResourceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type TaxProductResourceCustomerDetailsModel = { + 'address'?: TaxProductResourcePostalAddressModel | undefined; + 'address_source'?: 'billing' | 'shipping' | undefined; + 'ip_address'?: string | undefined; + 'tax_ids': TaxProductResourceCustomerDetailsResourceTaxIdModel[]; + 'taxability_override': 'customer_exempt' | 'none' | 'reverse_charge'; +}; + +export type TaxProductResourceJurisdictionModel = { + 'country': string; + 'display_name': string; + 'level': 'city' | 'country' | 'county' | 'district' | 'state'; + 'state'?: string | undefined; +}; + +export type TaxProductResourceLineItemTaxRateDetailsModel = { + 'display_name': string; + 'percentage_decimal': string; + 'tax_type': 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat'; +}; + +export type TaxProductResourceLineItemTaxBreakdownModel = { + 'amount': number; + 'jurisdiction': TaxProductResourceJurisdictionModel; + 'sourcing': 'destination' | 'origin'; + 'tax_rate_details'?: TaxProductResourceLineItemTaxRateDetailsModel | undefined; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; 'livemode': boolean; 'metadata'?: { [key: string]: string; } | undefined; - 'method': string; - 'object': 'payout'; - 'original_payout'?: string | PayoutModel | undefined; - 'payout_method'?: string | undefined; - 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; - 'reversed_by'?: string | PayoutModel | undefined; - 'source_type': string; - 'statement_descriptor'?: string | undefined; - 'status': string; - 'trace_id'?: PayoutsTraceIdModel | undefined; - 'type': 'bank_account' | 'card'; + 'object': 'tax.calculation_line_item'; + 'product'?: string | undefined; + 'quantity': number; + 'reference': string; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; }; -export type TopupModel = { +export type TaxProductResourceShipFromDetailsModel = { + 'address': TaxProductResourcePostalAddressModel; +}; + +export type TaxProductResourceTaxCalculationShippingCostModel = { 'amount': number; - 'balance_transaction'?: string | BalanceTransactionModel | undefined; - 'created': number; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; +}; + +export type TaxProductResourceTaxRateDetailsModel = { + 'country'?: string | undefined; + 'flat_amount'?: TaxRateFlatAmountModel | undefined; + 'percentage_decimal': string; + 'rate_type'?: 'flat_amount' | 'percentage' | 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' | undefined; +}; + +export type TaxProductResourceTaxBreakdownModel = { + 'amount': number; + 'inclusive': boolean; + 'tax_rate_details': TaxProductResourceTaxRateDetailsModel; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationModel = { + 'amount_total': number; 'currency': string; - 'description'?: string | undefined; - 'expected_availability_date'?: number | undefined; - 'failure_code'?: string | undefined; - 'failure_message'?: string | undefined; - 'id': string; + 'customer'?: string | undefined; + 'customer_details': TaxProductResourceCustomerDetailsModel; + 'expires_at'?: number | undefined; + 'id'?: string | undefined; + 'line_items'?: { + 'data': TaxCalculationLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'tax.calculation'; + 'ship_from_details'?: TaxProductResourceShipFromDetailsModel | undefined; + 'shipping_cost'?: TaxProductResourceTaxCalculationShippingCostModel | undefined; + 'tax_amount_exclusive': number; + 'tax_amount_inclusive': number; + 'tax_breakdown': TaxProductResourceTaxBreakdownModel[]; + 'tax_date': number; }; - 'object': 'topup'; - 'source'?: SourceModel | undefined; - 'statement_descriptor'?: string | undefined; - 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; - 'transfer_group'?: string | undefined; + +export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'standard'; }; -export type PaymentMethodDetailsBancontactModel = { - 'bank_code'?: string | undefined; - 'bank_name'?: string | undefined; - 'bic'?: string | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; - 'iban_last4'?: string | undefined; - 'preferred_language'?: 'de' | 'en' | 'fr' | 'nl' | undefined; - 'verified_name'?: string | undefined; +export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel | undefined; + 'type': 'standard'; }; -export type PaymentMethodDetailsModel = { - 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; - 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; - 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; - 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; - 'alma'?: PaymentMethodDetailsAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; - 'billie'?: PaymentMethodDetailsBillieModel | undefined; - 'blik'?: PaymentMethodDetailsBlikModel | undefined; - 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; - 'card'?: PaymentMethodDetailsCardModel | undefined; - 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; - 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; - 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodDetailsEpsModel | undefined; - 'fpx'?: PaymentMethodDetailsFpxModel | undefined; - 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; - 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; - 'ideal'?: PaymentMethodDetailsIdealModel | undefined; - 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; - 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; - 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; - 'link'?: PaymentMethodDetailsLinkModel | undefined; - 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; - 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; - 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; - 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; - 'p24'?: PaymentMethodDetailsP24Model | undefined; - 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; - 'payco'?: PaymentMethodDetailsPaycoModel | undefined; - 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; - 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; - 'pix'?: PaymentMethodDetailsPixModel | undefined; - 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; - 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; - 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; - 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; - 'sofort'?: PaymentMethodDetailsSofortModel | undefined; - 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; - 'swish'?: PaymentMethodDetailsSwishModel | undefined; - 'twint'?: PaymentMethodDetailsTwintModel | undefined; - 'type': string; - 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; - 'wechat'?: PaymentMethodDetailsWechatModel | undefined; - 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; - 'zip'?: PaymentMethodDetailsZipModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = { + 'type': 'standard'; }; -export type PaymentMethodDetailsIdealModel = { - 'bank'?: 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe' | undefined; - 'bic'?: 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U' | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; - 'iban_last4'?: string | undefined; - 'transaction_id'?: string | undefined; - 'verified_name'?: string | undefined; +export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = { + 'type': 'simplified'; }; -export type PaymentMethodDetailsSofortModel = { - 'bank_code'?: string | undefined; - 'bank_name'?: string | undefined; - 'bic'?: string | undefined; - 'country'?: string | undefined; - 'generated_sepa_debit'?: string | PaymentMethodModel | undefined; - 'generated_sepa_debit_mandate'?: string | MandateModel | undefined; - 'iban_last4'?: string | undefined; - 'preferred_language'?: 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl' | undefined; - 'verified_name'?: string | undefined; +export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'small_seller' | 'standard'; }; -export type ReviewModel = { - 'billing_zip'?: string | undefined; - 'charge'?: string | ChargeModel | undefined; - 'closed_reason'?: 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud' | undefined; - 'created': number; - 'id': string; - 'ip_address'?: string | undefined; - 'ip_address_location'?: RadarReviewResourceLocationModel | undefined; - 'livemode': boolean; - 'object': 'review'; - 'open': boolean; - 'opened_reason': 'manual' | 'rule'; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'reason': string; - 'session'?: RadarReviewResourceSessionModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsEuStandardModel | undefined; + 'type': 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; }; -export type ChargeTransferDataModel = { - 'amount'?: number | undefined; - 'destination': string | AccountModel; +export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = { + 'province': string; }; -export type TransferDataModel = { - 'amount'?: number | undefined; - 'destination': string | AccountModel; +export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = { + 'province_standard'?: TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel | undefined; + 'type': 'province_standard' | 'simplified' | 'standard'; }; -export type SetupIntentModel = { - 'application'?: string | ApplicationModel | undefined; - 'attach_to_self'?: boolean | undefined; - 'automatic_payment_methods'?: PaymentFlowsAutomaticPaymentMethodsSetupIntentModel | undefined; - 'cancellation_reason'?: 'abandoned' | 'duplicate' | 'requested_by_customer' | undefined; - 'client_secret'?: string | undefined; - 'created': number; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'description'?: string | undefined; - 'excluded_payment_method_types'?: Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'> | undefined; - 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; - 'id': string; - 'last_setup_error'?: ApiErrorsModel | undefined; - 'latest_attempt'?: string | SetupAttemptModel | undefined; - 'livemode': boolean; - 'mandate'?: string | MandateModel | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'next_action'?: SetupIntentNextActionModel | undefined; - 'object': 'setup_intent'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'payment_method'?: string | PaymentMethodModel | undefined; - 'payment_method_configuration_details'?: PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel | undefined; - 'payment_method_options'?: SetupIntentPaymentMethodOptionsModel | undefined; - 'payment_method_types': string[]; - 'single_use_mandate'?: string | MandateModel | undefined; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'usage': string; +export type TaxProductRegistrationsResourceCountryOptionsThailandModel = { + 'type': 'simplified'; }; -export type PaymentMethodCardGeneratedCardModel = { - 'charge'?: string | undefined; - 'payment_method_details'?: CardGeneratedFromPaymentMethodDetailsModel | undefined; - 'setup_attempt'?: string | SetupAttemptModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = { + 'jurisdiction': string; }; -export type PaymentMethodCardModel = { - 'brand': string; - 'checks'?: PaymentMethodCardChecksModel | undefined; - 'country'?: string | undefined; - 'display_brand'?: string | undefined; - 'exp_month': number; - 'exp_year': number; - 'fingerprint'?: string | undefined; - 'funding': string; - 'generated_from'?: PaymentMethodCardGeneratedCardModel | undefined; - 'last4': string; - 'networks'?: NetworksModel | undefined; - 'regulated_status'?: 'regulated' | 'unregulated' | undefined; - 'three_d_secure_usage'?: ThreeDSecureUsageModel | undefined; - 'wallet'?: PaymentMethodCardWalletModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = { + 'jurisdiction': string; }; -export type InvoiceSettingCustomerSettingModel = { - 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; - 'default_payment_method'?: string | PaymentMethodModel | undefined; - 'footer'?: string | undefined; - 'rendering_options'?: InvoiceSettingCustomerRenderingOptionsModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = { + 'jurisdiction'?: string | undefined; + 'type': 'local_use_tax' | 'simplified_sellers_use_tax' | 'single_local_use_tax'; }; -export type ConnectAccountReferenceModel = { - 'account'?: string | AccountModel | undefined; - 'type': 'account' | 'self'; +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = { + 'elections'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel[] | undefined; }; -export type SubscriptionAutomaticTaxModel = { - 'disabled_reason'?: 'requires_location_inputs' | undefined; - 'enabled': boolean; - 'liability'?: ConnectAccountReferenceModel | undefined; +export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = { + 'local_amusement_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel | undefined; + 'local_lease_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel | undefined; + 'state': string; + 'state_sales_tax'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel | undefined; + 'type': 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' | 'state_retail_delivery_fee' | 'state_sales_tax'; }; -export type SubscriptionModel = { - 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; - 'application_fee_percent'?: number | undefined; - 'automatic_tax': SubscriptionAutomaticTaxModel; - 'billing_cycle_anchor': number; - 'billing_cycle_anchor_config'?: SubscriptionsResourceBillingCycleAnchorConfigModel | undefined; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; - 'cancel_at'?: number | undefined; - 'cancel_at_period_end': boolean; - 'canceled_at'?: number | undefined; - 'cancellation_details'?: CancellationDetailsModel | undefined; - 'collection_method': 'charge_automatically' | 'send_invoice'; +export type TaxProductRegistrationsResourceCountryOptionsModel = { + 'ae'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'al'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'am'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ao'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'at'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'au'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'aw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'az'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ba'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bb'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'be'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bf'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bg'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bh'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'bs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'by'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ca'?: TaxProductRegistrationsResourceCountryOptionsCanadaModel | undefined; + 'cd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ch'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'cl'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'co'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cv'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cy'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'cz'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'de'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'dk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ec'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ee'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'eg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'es'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'et'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'fi'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'fr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'gb'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ge'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'gn'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'gr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'id'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ie'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'in'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'is'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'it'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'jp'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ke'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kh'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'la'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'lt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lv'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ma'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'md'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'me'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mk'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'mx'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'my'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ng'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'no'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'np'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nz'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'om'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'pe'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ph'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'pl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'pt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ro'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'rs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ru'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sa'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'se'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sg'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'si'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'th'?: TaxProductRegistrationsResourceCountryOptionsThailandModel | undefined; + 'tj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tw'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ua'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ug'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'us'?: TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel | undefined; + 'uy'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'uz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'vn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'za'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'zm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'zw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; +}; + +export type TaxRegistrationModel = { + 'active_from': number; + 'country': string; + 'country_options': TaxProductRegistrationsResourceCountryOptionsModel; 'created': number; - 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'days_until_due'?: number | undefined; - 'default_payment_method'?: string | PaymentMethodModel | undefined; - 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description'?: string | undefined; - 'discounts': Array; - 'ended_at'?: number | undefined; + 'expires_at'?: number | undefined; 'id': string; - 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; - 'items': { - 'data': SubscriptionItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + 'livemode': boolean; + 'object': 'tax.registration'; + 'status': 'active' | 'expired' | 'scheduled'; +}; + +export type TaxProductResourceTaxSettingsDefaultsModel = { + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; + 'tax_behavior'?: 'exclusive' | 'inclusive' | 'inferred_by_currency' | undefined; + 'tax_code'?: string | undefined; +}; + +export type TaxProductResourceTaxSettingsHeadOfficeModel = { + 'address': AddressModel; }; - 'latest_invoice'?: string | InvoiceModel | undefined; + +export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = { + +}; + +export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = { + 'missing_fields'?: string[] | undefined; +}; + +export type TaxProductResourceTaxSettingsStatusDetailsModel = { + 'active'?: TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel | undefined; + 'pending'?: TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel | undefined; +}; + +export type TaxSettingsModel = { + 'defaults': TaxProductResourceTaxSettingsDefaultsModel; + 'head_office'?: TaxProductResourceTaxSettingsHeadOfficeModel | undefined; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'tax.settings'; + 'status': 'active' | 'pending'; + 'status_details': TaxProductResourceTaxSettingsStatusDetailsModel; }; - 'next_pending_invoice_item_invoice'?: number | undefined; - 'object': 'subscription'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'pause_collection'?: SubscriptionsResourcePauseCollectionModel | undefined; - 'payment_settings'?: SubscriptionsResourcePaymentSettingsModel | undefined; - 'pending_invoice_item_interval'?: SubscriptionPendingInvoiceItemIntervalModel | undefined; - 'pending_setup_intent'?: string | SetupIntentModel | undefined; - 'pending_update'?: SubscriptionsResourcePendingUpdateModel | undefined; - 'schedule'?: string | SubscriptionScheduleModel | undefined; - 'start_date': number; - 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; - 'transfer_data'?: SubscriptionTransferDataModel | undefined; - 'trial_end'?: number | undefined; - 'trial_settings'?: SubscriptionsTrialsResourceTrialSettingsModel | undefined; - 'trial_start'?: number | undefined; + +export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = { + 'original_line_item': string; }; -export type TaxIdModel = { - 'country'?: string | undefined; - 'created': number; - 'customer'?: string | CustomerModel | undefined; +export type TaxTransactionLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; 'livemode': boolean; - 'object': 'tax_id'; - 'owner'?: TaxIDsOwnerModel | undefined; - 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; - 'value': string; - 'verification'?: TaxIdVerificationModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'tax.transaction_line_item'; + 'product'?: string | undefined; + 'quantity': number; + 'reference': string; + 'reversal'?: TaxProductResourceTaxTransactionLineItemResourceReversalModel | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_code': string; + 'type': 'reversal' | 'transaction'; }; -export type TaxIDsOwnerModel = { - 'account'?: string | AccountModel | undefined; - 'application'?: string | ApplicationModel | undefined; - 'customer'?: string | CustomerModel | undefined; - 'type': 'account' | 'application' | 'customer' | 'self'; +export type TaxProductResourceTaxTransactionResourceReversalModel = { + 'original_transaction'?: string | undefined; }; -export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { - 'account_tax_ids'?: Array | undefined; - 'issuer': ConnectAccountReferenceModel; +export type TaxProductResourceTaxTransactionShippingCostModel = { + 'amount': number; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_code': string; }; -export type PriceModel = { - 'active': boolean; - 'billing_scheme': 'per_unit' | 'tiered'; +export type TaxTransactionModel = { 'created': number; 'currency': string; - 'currency_options'?: { - [key: string]: CurrencyOptionModel; -} | undefined; - 'custom_unit_amount'?: CustomUnitAmountModel | undefined; + 'customer'?: string | undefined; + 'customer_details': TaxProductResourceCustomerDetailsModel; 'id': string; + 'line_items'?: { + 'data': TaxTransactionLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; 'livemode': boolean; - 'lookup_key'?: string | undefined; - 'metadata': { + 'metadata'?: { [key: string]: string; +} | undefined; + 'object': 'tax.transaction'; + 'posted_at': number; + 'reference': string; + 'reversal'?: TaxProductResourceTaxTransactionResourceReversalModel | undefined; + 'ship_from_details'?: TaxProductResourceShipFromDetailsModel | undefined; + 'shipping_cost'?: TaxProductResourceTaxTransactionShippingCostModel | undefined; + 'tax_date': number; + 'type': 'reversal' | 'transaction'; }; - 'nickname'?: string | undefined; - 'object': 'price'; - 'product': string | ProductModel | DeletedProductModel; - 'recurring'?: RecurringModel | undefined; - 'tax_behavior'?: 'exclusive' | 'inclusive' | 'unspecified' | undefined; - 'tiers'?: PriceTierModel[] | undefined; - 'tiers_mode'?: 'graduated' | 'volume' | undefined; - 'transform_quantity'?: TransformQuantityModel | undefined; - 'type': 'one_time' | 'recurring'; - 'unit_amount'?: number | undefined; - 'unit_amount_decimal'?: string | undefined; + +export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = { + 'splashscreen'?: string | FileModel | undefined; }; -export type ProductModel = { - 'active': boolean; - 'created': number; - 'default_price'?: string | PriceModel | undefined; - 'description'?: string | undefined; +export type TerminalConfigurationConfigurationResourceOfflineConfigModel = { + 'enabled'?: boolean | undefined; +}; + +export type TerminalConfigurationConfigurationResourceRebootWindowModel = { + 'end_hour': number; + 'start_hour': number; +}; + +export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = { + 'fixed_amounts'?: number[] | undefined; + 'percentages'?: number[] | undefined; + 'smart_tip_threshold'?: number | undefined; +}; + +export type TerminalConfigurationConfigurationResourceTippingModel = { + 'aed'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'aud'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'bgn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'cad'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'chf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'czk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'dkk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'eur'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gbp'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gip'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'hkd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'huf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'jpy'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'mxn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'myr'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nok'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nzd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'pln'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'ron'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sek'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sgd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'usd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; +}; + +export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'password': string; + 'ssid': string; + 'username': string; +}; + +export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'client_certificate_file': string; + 'private_key_file': string; + 'private_key_file_password'?: string | undefined; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = { + 'password': string; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourceWifiConfigModel = { + 'enterprise_eap_peap'?: TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel | undefined; + 'enterprise_eap_tls'?: TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel | undefined; + 'personal_psk'?: TerminalConfigurationConfigurationResourcePersonalPskWifiModel | undefined; + 'type': 'enterprise_eap_peap' | 'enterprise_eap_tls' | 'personal_psk'; +}; + +export type TerminalConfigurationModel = { + 'bbpos_wisepad3'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'bbpos_wisepos_e'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; 'id': string; - 'images': string[]; + 'is_account_default'?: boolean | undefined; 'livemode': boolean; - 'marketing_features': ProductMarketingFeatureModel[]; - 'metadata': { - [key: string]: string; + 'name'?: string | undefined; + 'object': 'terminal.configuration'; + 'offline'?: TerminalConfigurationConfigurationResourceOfflineConfigModel | undefined; + 'reboot_window'?: TerminalConfigurationConfigurationResourceRebootWindowModel | undefined; + 'stripe_s700'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'tipping'?: TerminalConfigurationConfigurationResourceTippingModel | undefined; + 'verifone_p400'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'wifi'?: TerminalConfigurationConfigurationResourceWifiConfigModel | undefined; }; - 'name': string; - 'object': 'product'; - 'package_dimensions'?: PackageDimensionsModel | undefined; - 'shippable'?: boolean | undefined; - 'statement_descriptor'?: string | undefined; - 'tax_code'?: string | TaxCodeModel | undefined; - 'unit_label'?: string | undefined; - 'updated': number; - 'url'?: string | undefined; + +export type TerminalConnectionTokenModel = { + 'location'?: string | undefined; + 'object': 'terminal.connection_token'; + 'secret': string; }; -export type SubscriptionItemModel = { - 'billing_thresholds'?: SubscriptionItemBillingThresholdsModel | undefined; - 'created': number; - 'current_period_end': number; - 'current_period_start': number; - 'discounts': Array; +export type TerminalLocationModel = { + 'address': AddressModel; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'configuration_overrides'?: string | undefined; + 'display_name': string; + 'display_name_kana'?: string | undefined; + 'display_name_kanji'?: string | undefined; 'id': string; + 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'subscription_item'; - 'price': PriceModel; - 'quantity'?: number | undefined; - 'subscription': string; - 'tax_rates'?: TaxRateModel[] | undefined; + 'object': 'terminal.location'; + 'phone'?: string | undefined; }; -export type InvoiceModel = { - 'account_country'?: string | undefined; - 'account_name'?: string | undefined; - 'account_tax_ids'?: Array | undefined; - 'amount_due': number; - 'amount_overpaid': number; - 'amount_paid': number; - 'amount_remaining': number; - 'amount_shipping': number; - 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; - 'attempt_count': number; - 'attempted': boolean; - 'auto_advance': boolean; - 'automatic_tax': AutomaticTaxModel; - 'automatically_finalizes_at'?: number | undefined; - 'billing_reason'?: 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming' | undefined; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; - 'created': number; - 'currency': string; - 'custom_fields'?: InvoiceSettingCustomFieldModel[] | undefined; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_address'?: AddressModel | undefined; - 'customer_email'?: string | undefined; - 'customer_name'?: string | undefined; - 'customer_phone'?: string | undefined; - 'customer_shipping'?: ShippingModel | undefined; - 'customer_tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; - 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; - 'default_payment_method'?: string | PaymentMethodModel | undefined; - 'default_source'?: string | BankAccountModel | CardModel | SourceModel | undefined; - 'default_tax_rates': TaxRateModel[]; +export type TerminalOnboardingLinkAppleTermsAndConditionsModel = { + 'allow_relinking'?: boolean | undefined; + 'merchant_display_name': string; +}; + +export type TerminalOnboardingLinkLinkOptionsModel = { + 'apple_terms_and_conditions'?: TerminalOnboardingLinkAppleTermsAndConditionsModel | undefined; +}; + +export type TerminalOnboardingLinkModel = { + 'link_options': TerminalOnboardingLinkLinkOptionsModel; + 'link_type': 'apple_terms_and_conditions'; + 'object': 'terminal.onboarding_link'; + 'on_behalf_of'?: string | undefined; + 'redirect_url': string; +}; + +export type TerminalReaderReaderResourceCustomTextModel = { 'description'?: string | undefined; - 'discounts': Array; - 'due_date'?: number | undefined; - 'effective_at'?: number | undefined; - 'ending_balance'?: number | undefined; - 'footer'?: string | undefined; - 'from_invoice'?: InvoicesResourceFromInvoiceModel | undefined; - 'hosted_invoice_url'?: string | undefined; - 'id': string; - 'invoice_pdf'?: string | undefined; - 'issuer': ConnectAccountReferenceModel; - 'last_finalization_error'?: ApiErrorsModel | undefined; - 'latest_revision'?: string | InvoiceModel | undefined; - 'lines': { - 'data': LineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + 'skip_button'?: string | undefined; + 'submit_button'?: string | undefined; + 'title'?: string | undefined; }; - 'livemode': boolean; + +export type TerminalReaderReaderResourceEmailModel = { + 'value'?: string | undefined; +}; + +export type TerminalReaderReaderResourceNumericModel = { + 'value'?: string | undefined; +}; + +export type TerminalReaderReaderResourcePhoneModel = { + 'value'?: string | undefined; +}; + +export type TerminalReaderReaderResourceChoiceModel = { + 'id'?: string | undefined; + 'style'?: 'primary' | 'secondary' | undefined; + 'text': string; +}; + +export type TerminalReaderReaderResourceSelectionModel = { + 'choices': TerminalReaderReaderResourceChoiceModel[]; + 'id'?: string | undefined; + 'text'?: string | undefined; +}; + +export type TerminalReaderReaderResourceSignatureModel = { + 'value'?: string | undefined; +}; + +export type TerminalReaderReaderResourceTextModel = { + 'value'?: string | undefined; +}; + +export type TerminalReaderReaderResourceToggleModel = { + 'default_value'?: 'disabled' | 'enabled' | undefined; + 'description'?: string | undefined; + 'title'?: string | undefined; + 'value'?: 'disabled' | 'enabled' | undefined; +}; + +export type TerminalReaderReaderResourceInputModel = { + 'custom_text'?: TerminalReaderReaderResourceCustomTextModel | undefined; + 'email'?: TerminalReaderReaderResourceEmailModel | undefined; + 'numeric'?: TerminalReaderReaderResourceNumericModel | undefined; + 'phone'?: TerminalReaderReaderResourcePhoneModel | undefined; + 'required'?: boolean | undefined; + 'selection'?: TerminalReaderReaderResourceSelectionModel | undefined; + 'signature'?: TerminalReaderReaderResourceSignatureModel | undefined; + 'skipped'?: boolean | undefined; + 'text'?: TerminalReaderReaderResourceTextModel | undefined; + 'toggles'?: TerminalReaderReaderResourceToggleModel[] | undefined; + 'type': 'email' | 'numeric' | 'phone' | 'selection' | 'signature' | 'text'; +}; + +export type TerminalReaderReaderResourceCollectInputsActionModel = { + 'inputs': TerminalReaderReaderResourceInputModel[]; 'metadata'?: { [key: string]: string; } | undefined; - 'next_payment_attempt'?: number | undefined; - 'number'?: string | undefined; - 'object': 'invoice'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'parent'?: BillingBillResourceInvoicingParentsInvoiceParentModel | undefined; - 'payment_settings': InvoicesPaymentSettingsModel; - 'payments'?: { - 'data': InvoicePaymentModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'period_end': number; - 'period_start': number; - 'post_payment_credit_notes_amount': number; - 'pre_payment_credit_notes_amount': number; - 'receipt_number'?: string | undefined; - 'rendering'?: InvoicesResourceInvoiceRenderingModel | undefined; - 'shipping_cost'?: InvoicesResourceShippingCostModel | undefined; - 'shipping_details'?: ShippingModel | undefined; - 'starting_balance': number; - 'statement_descriptor'?: string | undefined; - 'status'?: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | undefined; - 'status_transitions': InvoicesResourceStatusTransitionsModel; - 'subtotal': number; - 'subtotal_excluding_tax'?: number | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; - 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; - 'total': number; - 'total_discount_amounts'?: DiscountsResourceDiscountAmountModel[] | undefined; - 'total_excluding_tax'?: number | undefined; - 'total_pretax_credit_amounts'?: InvoicesResourcePretaxCreditAmountModel[] | undefined; - 'total_taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; - 'webhooks_delivered_at'?: number | undefined; }; -export type DeletedDiscountModel = { - 'checkout_session'?: string | undefined; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'deleted': boolean; - 'id': string; - 'invoice'?: string | undefined; - 'invoice_item'?: string | undefined; - 'object': 'discount'; - 'promotion_code'?: string | PromotionCodeModel | undefined; - 'source': DiscountSourceModel; - 'start': number; - 'subscription'?: string | undefined; - 'subscription_item'?: string | undefined; +export type TerminalReaderReaderResourceTippingConfigModel = { + 'amount_eligible'?: number | undefined; +}; + +export type TerminalReaderReaderResourceCollectConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; +}; + +export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = { + 'collect_config'?: TerminalReaderReaderResourceCollectConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; + 'payment_method'?: PaymentMethodModel | undefined; +}; + +export type TerminalReaderReaderResourceConfirmConfigModel = { + 'return_url'?: string | undefined; +}; + +export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = { + 'confirm_config'?: TerminalReaderReaderResourceConfirmConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; +}; + +export type TerminalReaderReaderResourceProcessConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'return_url'?: string | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; }; -export type InvoicesResourceFromInvoiceModel = { - 'action': string; - 'invoice': string | InvoiceModel; +export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = { + 'payment_intent': string | PaymentIntentModel; + 'process_config'?: TerminalReaderReaderResourceProcessConfigModel | undefined; }; -export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TerminalReaderReaderResourceProcessSetupConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; }; -export type BillingCreditGrantsResourceBalanceCreditModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_application_invoice_voided'?: BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel | undefined; - 'type': 'credits_application_invoice_voided' | 'credits_granted'; +export type TerminalReaderReaderResourceProcessSetupIntentActionModel = { + 'generated_card'?: string | undefined; + 'process_config'?: TerminalReaderReaderResourceProcessSetupConfigModel | undefined; + 'setup_intent': string | SetupIntentModel; }; -export type BillingCreditBalanceTransactionModel = { - 'created': number; - 'credit'?: BillingCreditGrantsResourceBalanceCreditModel | undefined; - 'credit_grant': string | BillingCreditGrantModel; - 'debit'?: BillingCreditGrantsResourceBalanceDebitModel | undefined; - 'effective_at': number; - 'id': string; - 'livemode': boolean; - 'object': 'billing.credit_balance_transaction'; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; - 'type'?: 'credit' | 'debit' | undefined; +export type TerminalReaderReaderResourceRefundPaymentConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; }; -export type BillingCreditGrantModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; - 'category': 'paid' | 'promotional'; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'effective_at'?: number | undefined; - 'expires_at'?: number | undefined; - 'id': string; - 'livemode': boolean; - 'metadata': { +export type TerminalReaderReaderResourceRefundPaymentActionModel = { + 'amount'?: number | undefined; + 'charge'?: string | ChargeModel | undefined; + 'metadata'?: { [key: string]: string; +} | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason'?: 'duplicate' | 'fraudulent' | 'requested_by_customer' | undefined; + 'refund'?: string | RefundModel | undefined; + 'refund_application_fee'?: boolean | undefined; + 'refund_payment_config'?: TerminalReaderReaderResourceRefundPaymentConfigModel | undefined; + 'reverse_transfer'?: boolean | undefined; }; - 'name'?: string | undefined; - 'object': 'billing.credit_grant'; - 'priority'?: number | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; - 'updated': number; - 'voided_at'?: number | undefined; + +export type TerminalReaderReaderResourceLineItemModel = { + 'amount': number; + 'description': string; + 'quantity': number; }; -export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TerminalReaderReaderResourceCartModel = { + 'currency': string; + 'line_items': TerminalReaderReaderResourceLineItemModel[]; + 'tax'?: number | undefined; + 'total': number; }; -export type BillingCreditGrantsResourceBalanceDebitModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_applied'?: BillingCreditGrantsResourceBalanceCreditsAppliedModel | undefined; - 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +export type TerminalReaderReaderResourceSetReaderDisplayActionModel = { + 'cart'?: TerminalReaderReaderResourceCartModel | undefined; + 'type': 'cart'; }; -export type InvoicesResourcePretaxCreditAmountModel = { - 'amount': number; - 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; - 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; - 'type': 'credit_balance_transaction' | 'discount'; +export type TerminalReaderReaderResourceReaderActionModel = { + 'collect_inputs'?: TerminalReaderReaderResourceCollectInputsActionModel | undefined; + 'collect_payment_method'?: TerminalReaderReaderResourceCollectPaymentMethodActionModel | undefined; + 'confirm_payment_intent'?: TerminalReaderReaderResourceConfirmPaymentIntentActionModel | undefined; + 'failure_code'?: string | undefined; + 'failure_message'?: string | undefined; + 'process_payment_intent'?: TerminalReaderReaderResourceProcessPaymentIntentActionModel | undefined; + 'process_setup_intent'?: TerminalReaderReaderResourceProcessSetupIntentActionModel | undefined; + 'refund_payment'?: TerminalReaderReaderResourceRefundPaymentActionModel | undefined; + 'set_reader_display'?: TerminalReaderReaderResourceSetReaderDisplayActionModel | undefined; + 'status': 'failed' | 'in_progress' | 'succeeded'; + 'type': 'collect_inputs' | 'collect_payment_method' | 'confirm_payment_intent' | 'process_payment_intent' | 'process_setup_intent' | 'refund_payment' | 'set_reader_display'; }; -export type LineItemModel = { - 'amount': number; - 'currency': string; - 'description'?: string | undefined; - 'discount_amounts'?: DiscountsResourceDiscountAmountModel[] | undefined; - 'discountable': boolean; - 'discounts': Array; +export type TerminalReaderModel = { + 'action'?: TerminalReaderReaderResourceReaderActionModel | undefined; + 'device_sw_version'?: string | undefined; + 'device_type': 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'verifone_P400'; 'id': string; - 'invoice'?: string | undefined; + 'ip_address'?: string | undefined; + 'label': string; + 'last_seen_at'?: number | undefined; 'livemode': boolean; + 'location'?: string | TerminalLocationModel | undefined; 'metadata': { [key: string]: string; }; - 'object': 'line_item'; - 'parent'?: BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel | undefined; - 'period': InvoiceLineItemPeriodModel; - 'pretax_credit_amounts'?: InvoicesResourcePretaxCreditAmountModel[] | undefined; - 'pricing'?: BillingBillResourceInvoicingPricingPricingModel | undefined; - 'quantity'?: number | undefined; - 'subscription'?: string | SubscriptionModel | undefined; - 'taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; + 'object': 'terminal.reader'; + 'serial_number': string; + 'status'?: 'offline' | 'online' | undefined; }; -export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { - 'metadata'?: { - [key: string]: string; -} | undefined; - 'subscription': string | SubscriptionModel; - 'subscription_proration_date'?: number | undefined; +export type TokenModel = { + 'bank_account'?: BankAccountModel | undefined; + 'card'?: CardModel | undefined; + 'client_ip'?: string | undefined; + 'created': number; + 'id': string; + 'livemode': boolean; + 'object': 'token'; + 'type': string; + 'used': boolean; }; -export type BillingBillResourceInvoicingParentsInvoiceParentModel = { - 'quote_details'?: BillingBillResourceInvoicingParentsInvoiceQuoteParentModel | undefined; - 'subscription_details'?: BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel | undefined; - 'type': 'quote_details' | 'subscription_details'; +export type TreasuryReceivedCreditsResourceStatusTransitionsModel = { + 'posted_at'?: number | undefined; }; -export type InvoicePaymentModel = { - 'amount_paid'?: number | undefined; - 'amount_requested': number; - 'created': number; - 'currency': string; - 'id': string; - 'invoice': string | InvoiceModel | DeletedInvoiceModel; - 'is_default': boolean; - 'livemode': boolean; - 'object': 'invoice_payment'; - 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; - 'status': string; - 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +export type TreasuryTransactionsResourceBalanceImpactModel = { + 'cash': number; + 'inbound_pending': number; + 'outbound_pending': number; }; -export type SubscriptionScheduleModel = { - 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'canceled_at'?: number | undefined; +export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = { + 'issuing_dispute'?: string | undefined; +}; + +export type TreasuryReceivedDebitsResourceStatusTransitionsModel = { 'completed_at'?: number | undefined; +}; + +export type TreasuryDebitReversalModel = { + 'amount': number; 'created': number; - 'current_phase'?: SubscriptionScheduleCurrentPhaseModel | undefined; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; - 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'currency': string; + 'financial_account'?: string | undefined; + 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; + 'linked_flows'?: TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel | undefined; 'livemode': boolean; - 'metadata'?: { + 'metadata': { [key: string]: string; -} | undefined; - 'object': 'subscription_schedule'; - 'phases': SubscriptionSchedulePhaseConfigurationModel[]; - 'released_at'?: number | undefined; - 'released_subscription'?: string | undefined; - 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; - 'subscription'?: string | SubscriptionModel | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + 'network': 'ach' | 'card'; + 'object': 'treasury.debit_reversal'; + 'received_debit': string; + 'status': 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'transaction'?: string | TreasuryTransactionModel | undefined; }; -export type SubscriptionSchedulesResourceDefaultSettingsModel = { - 'application_fee_percent'?: number | undefined; - 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; - 'billing_cycle_anchor': 'automatic' | 'phase_start'; - 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; - 'collection_method'?: 'charge_automatically' | 'send_invoice' | undefined; - 'default_payment_method'?: string | PaymentMethodModel | undefined; - 'description'?: string | undefined; - 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; - 'on_behalf_of'?: string | AccountModel | undefined; - 'transfer_data'?: SubscriptionTransferDataModel | undefined; +export type TreasuryInboundTransfersResourceFailureDetailsModel = { + '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'; }; -export type SubscriptionTransferDataModel = { - 'amount_percent'?: number | undefined; - 'destination': string | AccountModel; +export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = { + 'received_debit'?: string | undefined; }; -export type SubscriptionSchedulePhaseConfigurationModel = { - 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; - 'application_fee_percent'?: number | undefined; - 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; - 'billing_cycle_anchor'?: 'automatic' | 'phase_start' | undefined; - 'billing_thresholds'?: SubscriptionBillingThresholdsModel | undefined; - 'collection_method'?: 'charge_automatically' | 'send_invoice' | undefined; - 'currency': string; - 'default_payment_method'?: string | PaymentMethodModel | undefined; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description'?: string | undefined; - 'discounts': DiscountsResourceStackableDiscountModel[]; - 'end_date': number; - 'invoice_settings'?: InvoiceSettingSubscriptionSchedulePhaseSettingModel | undefined; - 'items': SubscriptionScheduleConfigurationItemModel[]; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'on_behalf_of'?: string | AccountModel | undefined; - 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; - 'start_date': number; - 'transfer_data'?: SubscriptionTransferDataModel | undefined; - 'trial_end'?: number | undefined; +export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'failed_at'?: number | undefined; + 'succeeded_at'?: number | undefined; }; -export type CreditNoteModel = { +export type TreasuryInboundTransferModel = { 'amount': number; - 'amount_shipping': number; + 'cancelable': boolean; 'created': number; 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_balance_transaction'?: string | CustomerBalanceTransactionModel | undefined; - 'discount_amount': number; - 'discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'effective_at'?: number | undefined; + 'description'?: string | undefined; + 'failure_details'?: TreasuryInboundTransfersResourceFailureDetailsModel | undefined; + 'financial_account': string; + 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; - 'invoice': string | InvoiceModel; - 'lines': { - 'data': CreditNoteLineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -}; + 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; 'livemode': boolean; - 'memo'?: string | undefined; - 'metadata'?: { + 'metadata': { [key: string]: string; -} | undefined; - 'number': string; - 'object': 'credit_note'; - 'out_of_band_amount'?: number | undefined; - 'pdf': string; - 'post_payment_amount': number; - 'pre_payment_amount': number; - 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; - 'reason'?: 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory' | undefined; - 'refunds': CreditNoteRefundModel[]; - 'shipping_cost'?: InvoicesResourceShippingCostModel | undefined; - 'status': 'issued' | 'void'; - 'subtotal': number; - 'subtotal_excluding_tax'?: number | undefined; - 'total': number; - 'total_excluding_tax'?: number | undefined; - 'total_taxes'?: BillingBillResourceInvoicingTaxesTaxModel[] | undefined; - 'type': 'mixed' | 'post_payment' | 'pre_payment'; - 'voided_at'?: number | undefined; +}; + 'object': 'treasury.inbound_transfer'; + 'origin_payment_method'?: string | undefined; + 'origin_payment_method_details'?: InboundTransfersModel | undefined; + 'returned'?: boolean | undefined; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; + 'transaction'?: string | TreasuryTransactionModel | undefined; +}; + +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = { + 'ip_address'?: string | undefined; + 'present': boolean; +}; + +export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; +}; + +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'failed_at'?: number | undefined; + 'posted_at'?: number | undefined; + 'returned_at'?: number | undefined; }; -export type CustomerBalanceTransactionModel = { +export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = { + 'trace_id': string; +}; + +export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = { + 'chips'?: string | undefined; + 'imad'?: string | undefined; + 'omad'?: string | undefined; +}; + +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundPaymentsResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel | undefined; +}; + +export type TreasuryOutboundPaymentModel = { 'amount': number; - 'checkout_session'?: string | CheckoutSessionModel | undefined; + 'cancelable': boolean; 'created': number; - 'credit_note'?: string | CreditNoteModel | undefined; 'currency': string; - 'customer': string | CustomerModel; + 'customer'?: string | undefined; 'description'?: string | undefined; - 'ending_balance': number; + 'destination_payment_method'?: string | undefined; + 'destination_payment_method_details'?: OutboundPaymentsPaymentMethodDetailsModel | undefined; + 'end_user_details'?: TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel | undefined; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; - 'invoice'?: string | InvoiceModel | undefined; 'livemode': boolean; - 'metadata'?: { + 'metadata': { [key: string]: string; -} | undefined; - 'object': 'customer_balance_transaction'; - 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; +}; + 'object': 'treasury.outbound_payment'; + 'returned_details'?: TreasuryOutboundPaymentsResourceReturnedStatusModel | undefined; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; + 'tracking_details'?: TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel | undefined; + 'transaction': string | TreasuryTransactionModel; }; -export type QuoteModel = { - 'amount_subtotal': number; - 'amount_total': number; - 'application'?: string | ApplicationModel | DeletedApplicationModel | undefined; - 'application_fee_amount'?: number | undefined; - 'application_fee_percent'?: number | undefined; - 'automatic_tax': QuotesResourceAutomaticTaxModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'computed': QuotesResourceComputedModel; +export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; +}; + +export type TreasuryOutboundTransfersResourceStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'failed_at'?: number | undefined; + 'posted_at'?: number | undefined; + 'returned_at'?: number | undefined; +}; + +export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = { + 'trace_id': string; +}; + +export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = { + 'chips'?: string | undefined; + 'imad'?: string | undefined; + 'omad'?: string | undefined; +}; + +export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundTransfersResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel | undefined; +}; + +export type TreasuryOutboundTransferModel = { + 'amount': number; + 'cancelable': boolean; 'created': number; - 'currency'?: string | undefined; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'default_tax_rates'?: Array | undefined; + 'currency': string; 'description'?: string | undefined; - 'discounts': Array; - 'expires_at': number; - 'footer'?: string | undefined; - 'from_quote'?: QuotesResourceFromQuoteModel | undefined; - 'header'?: string | undefined; + 'destination_payment_method'?: string | undefined; + 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; - 'invoice'?: string | InvoiceModel | DeletedInvoiceModel | undefined; - 'invoice_settings': InvoiceSettingQuoteSettingModel; - 'line_items'?: { - 'data': ItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'number'?: string | undefined; - 'object': 'quote'; - 'on_behalf_of'?: string | AccountModel | undefined; - 'status': 'accepted' | 'canceled' | 'draft' | 'open'; - 'status_transitions': QuotesResourceStatusTransitionsModel; - 'subscription'?: string | SubscriptionModel | undefined; - 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; - 'subscription_schedule'?: string | SubscriptionScheduleModel | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; - 'total_details': QuotesResourceTotalDetailsModel; - 'transfer_data'?: QuotesResourceTransferDataModel | undefined; + 'object': 'treasury.outbound_transfer'; + 'returned_details'?: TreasuryOutboundTransfersResourceReturnedDetailsModel | undefined; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; + 'tracking_details'?: TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel | undefined; + 'transaction': string | TreasuryTransactionModel; }; -export type QuotesResourceFromQuoteModel = { - 'is_revision': boolean; - 'quote': string | QuoteModel; +export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = { + 'bank_name'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; }; -export type TreasuryCreditReversalModel = { +export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = { + 'balance'?: 'payments' | undefined; + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: ReceivedPaymentMethodDetailsFinancialAccountModel | undefined; + 'issuing_card'?: string | undefined; + 'type': 'balance' | 'financial_account' | 'issuing_card' | 'stripe' | 'us_bank_account'; + 'us_bank_account'?: TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { + 'credit_reversal'?: TreasuryCreditReversalModel | undefined; + 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; + 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; + 'payout'?: PayoutModel | undefined; + 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +}; + +export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { + 'credit_reversal'?: string | undefined; + 'issuing_authorization'?: string | undefined; + 'issuing_transaction'?: string | undefined; + 'source_flow'?: string | undefined; + 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; + 'source_flow_type'?: string | undefined; +}; + +export type TreasuryReceivedCreditsResourceReversalDetailsModel = { + 'deadline'?: number | undefined; + 'restricted_reason'?: 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted' | undefined; +}; + +export type TreasuryReceivedCreditModel = { 'amount': number; 'created': number; 'currency': string; - 'financial_account': string; + 'description': string; + 'failure_code'?: 'account_closed' | 'account_frozen' | 'international_transaction' | 'other' | undefined; + 'financial_account'?: string | undefined; 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; + 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; + 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; + 'object': 'treasury.received_credit'; + 'reversal_details'?: TreasuryReceivedCreditsResourceReversalDetailsModel | undefined; + 'status': 'failed' | 'succeeded'; + 'transaction'?: string | TreasuryTransactionModel | undefined; }; - 'network': 'ach' | 'stripe'; - 'object': 'treasury.credit_reversal'; - 'received_credit': string; - 'status': 'canceled' | 'posted' | 'processing'; - 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; + +export type TreasuryReceivedDebitsResourceLinkedFlowsModel = { + 'debit_reversal'?: string | undefined; + 'inbound_transfer'?: string | undefined; + 'issuing_authorization'?: string | undefined; + 'issuing_transaction'?: string | undefined; + 'payout'?: string | undefined; +}; + +export type TreasuryReceivedDebitsResourceReversalDetailsModel = { + 'deadline'?: number | undefined; + 'restricted_reason'?: 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted' | undefined; +}; + +export type TreasuryReceivedDebitModel = { + 'amount': number; + 'created': number; + 'currency': string; + 'description': string; + 'failure_code'?: 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other' | undefined; + 'financial_account'?: string | undefined; + 'hosted_regulatory_receipt_url'?: string | undefined; + 'id': string; + 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; + 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; + 'livemode': boolean; + 'network': 'ach' | 'card' | 'stripe'; + 'object': 'treasury.received_debit'; + 'reversal_details'?: TreasuryReceivedDebitsResourceReversalDetailsModel | undefined; + 'status': 'failed' | 'succeeded'; 'transaction'?: string | TreasuryTransactionModel | undefined; }; @@ -1662,6 +10079,27 @@ export type TreasuryTransactionsResourceFlowDetailsModel = { 'type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; }; +export type TreasuryTransactionEntryModel = { + 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; + 'created': number; + 'currency': string; + 'effective_at': number; + 'financial_account': string; + 'flow'?: string | undefined; + 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; + 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'id': string; + 'livemode': boolean; + 'object': 'treasury.transaction_entry'; + 'transaction': string | TreasuryTransactionModel; + 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; +}; + +export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = { + 'posted_at'?: number | undefined; + 'void_at'?: number | undefined; +}; + export type TreasuryTransactionModel = { 'amount': number; 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; @@ -1685,202 +10123,177 @@ export type TreasuryTransactionModel = { 'status_transitions': TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel; }; -export type TreasuryDebitReversalModel = { +export type TreasuryCreditReversalModel = { 'amount': number; 'created': number; 'currency': string; - 'financial_account'?: string | undefined; + 'financial_account': string; 'hosted_regulatory_receipt_url'?: string | undefined; 'id': string; - 'linked_flows'?: TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'network': 'ach' | 'card'; - 'object': 'treasury.debit_reversal'; - 'received_debit': string; - 'status': 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'network': 'ach' | 'stripe'; + 'object': 'treasury.credit_reversal'; + 'received_credit': string; + 'status': 'canceled' | 'posted' | 'processing'; + 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; 'transaction'?: string | TreasuryTransactionModel | undefined; }; -export type TreasuryInboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'failure_details'?: TreasuryInboundTransfersResourceFailureDetailsModel | undefined; - 'financial_account': string; - 'hosted_regulatory_receipt_url'?: string | undefined; - 'id': string; - 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryFinancialAccountsResourceBalanceModel = { + 'cash': { + [key: string]: number; +}; + 'inbound_pending': { + [key: string]: number; +}; + 'outbound_pending': { + [key: string]: number; }; - 'object': 'treasury.inbound_transfer'; - 'origin_payment_method'?: string | undefined; - 'origin_payment_method_details'?: InboundTransfersModel | undefined; - 'returned'?: boolean | undefined; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; - 'transaction'?: string | TreasuryTransactionModel | undefined; }; -export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = { + 'code': 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; + 'resolution'?: 'contact_stripe' | 'provide_information' | 'remove_restriction' | undefined; + 'restriction'?: 'inbound_flows' | 'outbound_flows' | undefined; }; -export type TreasuryOutboundPaymentModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'customer'?: string | undefined; - 'description'?: string | undefined; - 'destination_payment_method'?: string | undefined; - 'destination_payment_method_details'?: OutboundPaymentsPaymentMethodDetailsModel | undefined; - 'end_user_details'?: TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel | undefined; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url'?: string | undefined; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryFinancialAccountsResourceToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; }; - 'object': 'treasury.outbound_payment'; - 'returned_details'?: TreasuryOutboundPaymentsResourceReturnedStatusModel | undefined; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; - 'tracking_details'?: TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel | undefined; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryFinancialAccountsResourceInboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel | undefined; }; -export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; }; -export type TreasuryOutboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'destination_payment_method'?: string | undefined; - 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url'?: string | undefined; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; }; - 'object': 'treasury.outbound_transfer'; - 'returned_details'?: TreasuryOutboundTransfersResourceReturnedDetailsModel | undefined; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; - 'tracking_details'?: TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel | undefined; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryFinancialAccountsResourceOutboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; }; -export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { - 'credit_reversal'?: TreasuryCreditReversalModel | undefined; - 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; - 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; - 'payout'?: PayoutModel | undefined; - 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +export type TreasuryFinancialAccountFeaturesModel = { + 'card_issuing'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'deposit_insurance'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'financial_addresses'?: TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel | undefined; + 'inbound_transfers'?: TreasuryFinancialAccountsResourceInboundTransfersModel | undefined; + 'intra_stripe_flows'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'object': 'treasury.financial_account_features'; + 'outbound_payments'?: TreasuryFinancialAccountsResourceOutboundPaymentsModel | undefined; + 'outbound_transfers'?: TreasuryFinancialAccountsResourceOutboundTransfersModel | undefined; }; -export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { - 'credit_reversal'?: string | undefined; - 'issuing_authorization'?: string | undefined; - 'issuing_transaction'?: string | undefined; - 'source_flow'?: string | undefined; - 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; - 'source_flow_type'?: string | undefined; +export type TreasuryFinancialAccountsResourceAbaRecordModel = { + 'account_holder_name': string; + 'account_number'?: string | undefined; + 'account_number_last4': string; + 'bank_name': string; + 'routing_number': string; }; -export type TreasuryReceivedCreditModel = { - 'amount': number; - 'created': number; - 'currency': string; - 'description': string; - 'failure_code'?: 'account_closed' | 'account_frozen' | 'international_transaction' | 'other' | undefined; - 'financial_account'?: string | undefined; - 'hosted_regulatory_receipt_url'?: string | undefined; - 'id': string; - 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; - 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; - 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; - 'object': 'treasury.received_credit'; - 'reversal_details'?: TreasuryReceivedCreditsResourceReversalDetailsModel | undefined; - 'status': 'failed' | 'succeeded'; - 'transaction'?: string | TreasuryTransactionModel | undefined; +export type TreasuryFinancialAccountsResourceFinancialAddressModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'us_domestic_wire'> | undefined; + 'type': 'aba'; }; -export type TreasuryReceivedDebitModel = { - 'amount': number; +export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = { + 'inbound_flows'?: 'restricted' | 'unrestricted' | undefined; + 'outbound_flows'?: 'restricted' | 'unrestricted' | undefined; +}; + +export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = { + 'reasons': Array<'account_rejected' | 'closed_by_platform' | 'other'>; +}; + +export type TreasuryFinancialAccountsResourceStatusDetailsModel = { + 'closed'?: TreasuryFinancialAccountsResourceClosedStatusDetailsModel | undefined; +}; + +export type TreasuryFinancialAccountModel = { + 'active_features'?: Array<'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': TreasuryFinancialAccountsResourceBalanceModel; + 'country': string; 'created': number; - 'currency': string; - 'description': string; - 'failure_code'?: 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other' | undefined; - 'financial_account'?: string | undefined; - 'hosted_regulatory_receipt_url'?: string | undefined; + 'features'?: TreasuryFinancialAccountFeaturesModel | undefined; + 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressModel[]; 'id': string; - 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; - 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; + 'is_default'?: boolean | undefined; 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe'; - 'object': 'treasury.received_debit'; - 'reversal_details'?: TreasuryReceivedDebitsResourceReversalDetailsModel | undefined; - 'status': 'failed' | 'succeeded'; - 'transaction'?: string | TreasuryTransactionModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'nickname'?: string | undefined; + 'object': 'treasury.financial_account'; + 'pending_features'?: Array<'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'?: TreasuryFinancialAccountsResourcePlatformRestrictionsModel | undefined; + 'restricted_features'?: Array<'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': TreasuryFinancialAccountsResourceStatusDetailsModel; + 'supported_currencies': string[]; }; -export type TreasuryTransactionEntryModel = { - 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; +export type WebhookEndpointModel = { + 'api_version'?: string | undefined; + 'application'?: string | undefined; 'created': number; - 'currency': string; - 'effective_at': number; - 'financial_account': string; - 'flow'?: string | undefined; - 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; - 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'description'?: string | undefined; + 'enabled_events': string[]; 'id': string; 'livemode': boolean; - 'object': 'treasury.transaction_entry'; - 'transaction': string | TreasuryTransactionModel; - 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; + 'metadata': { + [key: string]: string; +}; + 'object': 'webhook_endpoint'; + 'secret'?: string | undefined; + 'status': string; + 'url': string; }; -export const AccountAnnualRevenue = z.object({ +export const AccountAnnualRevenue: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'currency': z.string().optional(), 'fiscal_year_end': z.string().optional() }); -export type AccountAnnualRevenueModel = z.infer; - -export const AccountMonthlyEstimatedRevenue = z.object({ +export const AccountMonthlyEstimatedRevenue: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type AccountMonthlyEstimatedRevenueModel = z.infer; - -export const Address = z.object({ +export const Address: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'line1': z.string().optional(), @@ -1889,9 +10302,7 @@ export const Address = z.object({ 'state': z.string().optional() }); -export type AddressModel = z.infer; - -export const AccountBusinessProfile = z.object({ +export const AccountBusinessProfile: z.ZodType = z.object({ 'annual_revenue': z.union([AccountAnnualRevenue]).optional(), 'estimated_worker_count': z.number().int().optional(), 'mcc': z.string().optional(), @@ -1906,9 +10317,7 @@ export const AccountBusinessProfile = z.object({ 'url': z.string().optional() }); -export type AccountBusinessProfileModel = z.infer; - -export const AccountCapabilities = z.object({ +export const AccountCapabilities: z.ZodType = z.object({ 'acss_debit_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'affirm_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'afterpay_clearpay_payments': z.enum(['active', 'inactive', 'pending']).optional(), @@ -1971,9 +10380,7 @@ export const AccountCapabilities = z.object({ 'zip_payments': z.enum(['active', 'inactive', 'pending']).optional() }); -export type AccountCapabilitiesModel = z.infer; - -export const LegalEntityJapanAddress = z.object({ +export const LegalEntityJapanAddress: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'line1': z.string().optional(), @@ -1983,40 +10390,30 @@ export const LegalEntityJapanAddress = z.object({ 'town': z.string().optional() }); -export type LegalEntityJapanAddressModel = z.infer; - -export const LegalEntityDirectorshipDeclaration = z.object({ +export const LegalEntityDirectorshipDeclaration: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type LegalEntityDirectorshipDeclarationModel = z.infer; - -export const LegalEntityUboDeclaration = z.object({ +export const LegalEntityUboDeclaration: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type LegalEntityUboDeclarationModel = z.infer; - -export const LegalEntityRegistrationDate = z.object({ +export const LegalEntityRegistrationDate: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type LegalEntityRegistrationDateModel = z.infer; - -export const LegalEntityRepresentativeDeclaration = z.object({ +export const LegalEntityRepresentativeDeclaration: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type LegalEntityRepresentativeDeclarationModel = z.infer; - export const FileLink: z.ZodType = z.object({ 'created': z.number().int(), 'expired': z.boolean(), @@ -2084,25 +10481,19 @@ export const LegalEntityCompany: z.ZodType = z.object({ 'verification': z.union([z.lazy(() => LegalEntityCompanyVerification)]).optional() }); -export const AccountUnificationAccountControllerFees = z.object({ +export const AccountUnificationAccountControllerFees: z.ZodType = z.object({ 'payer': z.enum(['account', 'application', 'application_custom', 'application_express']) }); -export type AccountUnificationAccountControllerFeesModel = z.infer; - -export const AccountUnificationAccountControllerLosses = z.object({ +export const AccountUnificationAccountControllerLosses: z.ZodType = z.object({ 'payments': z.enum(['application', 'stripe']) }); -export type AccountUnificationAccountControllerLossesModel = z.infer; - -export const AccountUnificationAccountControllerStripeDashboard = z.object({ +export const AccountUnificationAccountControllerStripeDashboard: z.ZodType = z.object({ 'type': z.enum(['express', 'full', 'none']) }); -export type AccountUnificationAccountControllerStripeDashboardModel = z.infer; - -export const AccountUnificationAccountController = z.object({ +export const AccountUnificationAccountController: z.ZodType = z.object({ 'fees': AccountUnificationAccountControllerFees.optional(), 'is_controller': z.boolean().optional(), 'losses': AccountUnificationAccountControllerLosses.optional(), @@ -2111,16 +10502,12 @@ export const AccountUnificationAccountController = z.object({ 'type': z.enum(['account', 'application']) }); -export type AccountUnificationAccountControllerModel = z.infer; - -export const CustomerBalanceCustomerBalanceSettings = z.object({ +export const CustomerBalanceCustomerBalanceSettings: z.ZodType = z.object({ 'reconciliation_mode': z.enum(['automatic', 'manual']), 'using_merchant_default': z.boolean() }); -export type CustomerBalanceCustomerBalanceSettingsModel = z.infer; - -export const CashBalance = z.object({ +export const CashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()).optional(), 'customer': z.string(), 'livemode': z.boolean(), @@ -2128,22 +10515,16 @@ export const CashBalance = z.object({ 'settings': CustomerBalanceCustomerBalanceSettings }); -export type CashBalanceModel = z.infer; - -export const DeletedCustomer = z.object({ +export const DeletedCustomer: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['customer']) }); -export type DeletedCustomerModel = z.infer; - -export const TokenCardNetworks = z.object({ +export const TokenCardNetworks: z.ZodType = z.object({ 'preferred': z.string().optional() }); -export type TokenCardNetworksModel = z.infer; - export const Card: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'address_city': z.string().optional(), @@ -2179,7 +10560,7 @@ export const Card: z.ZodType = z.object({ 'tokenization_method': z.string().optional() }); -export const SourceTypeAchCreditTransfer = z.object({ +export const SourceTypeAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string().optional(), 'bank_name': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2190,9 +10571,7 @@ export const SourceTypeAchCreditTransfer = z.object({ 'swift_code': z.string().optional() }); -export type SourceTypeAchCreditTransferModel = z.infer; - -export const SourceTypeAchDebit = z.object({ +export const SourceTypeAchDebit: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'country': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2201,9 +10580,7 @@ export const SourceTypeAchDebit = z.object({ 'type': z.string().optional() }); -export type SourceTypeAchDebitModel = z.infer; - -export const SourceTypeAcssDebit = z.object({ +export const SourceTypeAcssDebit: z.ZodType = z.object({ 'bank_address_city': z.string().optional(), 'bank_address_line_1': z.string().optional(), 'bank_address_line_2': z.string().optional(), @@ -2216,25 +10593,19 @@ export const SourceTypeAcssDebit = z.object({ 'routing_number': z.string().optional() }); -export type SourceTypeAcssDebitModel = z.infer; - -export const SourceTypeAlipay = z.object({ +export const SourceTypeAlipay: z.ZodType = z.object({ 'data_string': z.string().optional(), 'native_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeAlipayModel = z.infer; - -export const SourceTypeAuBecsDebit = z.object({ +export const SourceTypeAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional() }); -export type SourceTypeAuBecsDebitModel = z.infer; - -export const SourceTypeBancontact = z.object({ +export const SourceTypeBancontact: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2243,9 +10614,7 @@ export const SourceTypeBancontact = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeBancontactModel = z.infer; - -export const SourceTypeCard = z.object({ +export const SourceTypeCard: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'brand': z.string().optional(), @@ -2262,9 +10631,7 @@ export const SourceTypeCard = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeCardModel = z.infer; - -export const SourceTypeCardPresent = z.object({ +export const SourceTypeCardPresent: z.ZodType = z.object({ 'application_cryptogram': z.string().optional(), 'application_preferred_name': z.string().optional(), 'authorization_code': z.string().optional(), @@ -2290,41 +10657,31 @@ export const SourceTypeCardPresent = z.object({ 'transaction_status_information': z.string().optional() }); -export type SourceTypeCardPresentModel = z.infer; - -export const SourceCodeVerificationFlow = z.object({ +export const SourceCodeVerificationFlow: z.ZodType = z.object({ 'attempts_remaining': z.number().int(), 'status': z.string() }); -export type SourceCodeVerificationFlowModel = z.infer; - -export const SourceTypeEps = z.object({ +export const SourceTypeEps: z.ZodType = z.object({ 'reference': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeEpsModel = z.infer; - -export const SourceTypeGiropay = z.object({ +export const SourceTypeGiropay: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeGiropayModel = z.infer; - -export const SourceTypeIdeal = z.object({ +export const SourceTypeIdeal: z.ZodType = z.object({ 'bank': z.string().optional(), 'bic': z.string().optional(), 'iban_last4': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeIdealModel = z.infer; - -export const SourceTypeKlarna = z.object({ +export const SourceTypeKlarna: z.ZodType = z.object({ 'background_image_url': z.string().optional(), 'client_token': z.string().optional(), 'first_name': z.string().optional(), @@ -2353,9 +10710,7 @@ export const SourceTypeKlarna = z.object({ 'shipping_last_name': z.string().optional() }); -export type SourceTypeKlarnaModel = z.infer; - -export const SourceTypeMultibanco = z.object({ +export const SourceTypeMultibanco: z.ZodType = z.object({ 'entity': z.string().optional(), 'reference': z.string().optional(), 'refund_account_holder_address_city': z.string().optional(), @@ -2368,9 +10723,7 @@ export const SourceTypeMultibanco = z.object({ 'refund_iban': z.string().optional() }); -export type SourceTypeMultibancoModel = z.infer; - -export const SourceOwner = z.object({ +export const SourceOwner: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), @@ -2381,15 +10734,11 @@ export const SourceOwner = z.object({ 'verified_phone': z.string().optional() }); -export type SourceOwnerModel = z.infer; - -export const SourceTypeP24 = z.object({ +export const SourceTypeP24: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type SourceTypeP24Model = z.infer; - -export const SourceReceiverFlow = z.object({ +export const SourceReceiverFlow: z.ZodType = z.object({ 'address': z.string().optional(), 'amount_charged': z.number().int(), 'amount_received': z.number().int(), @@ -2398,18 +10747,14 @@ export const SourceReceiverFlow = z.object({ 'refund_attributes_status': z.string() }); -export type SourceReceiverFlowModel = z.infer; - -export const SourceRedirectFlow = z.object({ +export const SourceRedirectFlow: z.ZodType = z.object({ 'failure_reason': z.string().optional(), 'return_url': z.string(), 'status': z.string(), 'url': z.string() }); -export type SourceRedirectFlowModel = z.infer; - -export const SourceTypeSepaDebit = z.object({ +export const SourceTypeSepaDebit: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'branch_code': z.string().optional(), 'country': z.string().optional(), @@ -2419,9 +10764,7 @@ export const SourceTypeSepaDebit = z.object({ 'mandate_url': z.string().optional() }); -export type SourceTypeSepaDebitModel = z.infer; - -export const SourceTypeSofort = z.object({ +export const SourceTypeSofort: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2431,9 +10774,7 @@ export const SourceTypeSofort = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeSofortModel = z.infer; - -export const SourceOrderItem = z.object({ +export const SourceOrderItem: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'currency': z.string().optional(), 'description': z.string().optional(), @@ -2442,9 +10783,7 @@ export const SourceOrderItem = z.object({ 'type': z.string().optional() }); -export type SourceOrderItemModel = z.infer; - -export const Shipping = z.object({ +export const Shipping: z.ZodType = z.object({ 'address': Address.optional(), 'carrier': z.string().optional(), 'name': z.string().optional(), @@ -2452,9 +10791,7 @@ export const Shipping = z.object({ 'tracking_number': z.string().optional() }); -export type ShippingModel = z.infer; - -export const SourceOrder = z.object({ +export const SourceOrder: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'email': z.string().optional(), @@ -2462,9 +10799,7 @@ export const SourceOrder = z.object({ 'shipping': Shipping.optional() }); -export type SourceOrderModel = z.infer; - -export const SourceTypeThreeDSecure = z.object({ +export const SourceTypeThreeDSecure: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'authenticated': z.boolean().optional(), @@ -2484,17 +10819,13 @@ export const SourceTypeThreeDSecure = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeThreeDSecureModel = z.infer; - -export const SourceTypeWechat = z.object({ +export const SourceTypeWechat: z.ZodType = z.object({ 'prepay_id': z.string().optional(), 'qr_code_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeWechatModel = z.infer; - -export const Source = z.object({ +export const Source: z.ZodType = z.object({ 'ach_credit_transfer': SourceTypeAchCreditTransfer.optional(), 'ach_debit': SourceTypeAchDebit.optional(), 'acss_debit': SourceTypeAcssDebit.optional(), @@ -2535,21 +10866,15 @@ export const Source = z.object({ 'wechat': SourceTypeWechat.optional() }); -export type SourceModel = z.infer; - -export const CouponAppliesTo = z.object({ +export const CouponAppliesTo: z.ZodType = z.object({ 'products': z.array(z.string()) }); -export type CouponAppliesToModel = z.infer; - -export const CouponCurrencyOption = z.object({ +export const CouponCurrencyOption: z.ZodType = z.object({ 'amount_off': z.number().int() }); -export type CouponCurrencyOptionModel = z.infer; - -export const Coupon = z.object({ +export const Coupon: z.ZodType = z.object({ 'amount_off': z.number().int().optional(), 'applies_to': CouponAppliesTo.optional(), 'created': z.number().int(), @@ -2569,30 +10894,22 @@ export const Coupon = z.object({ 'valid': z.boolean() }); -export type CouponModel = z.infer; - -export const PromotionCodesResourcePromotion = z.object({ +export const PromotionCodesResourcePromotion: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]).optional(), 'type': z.enum(['coupon']) }); -export type PromotionCodesResourcePromotionModel = z.infer; - -export const PromotionCodeCurrencyOption = z.object({ +export const PromotionCodeCurrencyOption: z.ZodType = z.object({ 'minimum_amount': z.number().int() }); -export type PromotionCodeCurrencyOptionModel = z.infer; - -export const PromotionCodesResourceRestrictions = z.object({ +export const PromotionCodesResourceRestrictions: z.ZodType = z.object({ 'currency_options': z.record(z.string(), PromotionCodeCurrencyOption).optional(), 'first_time_transaction': z.boolean(), 'minimum_amount': z.number().int().optional(), 'minimum_amount_currency': z.string().optional() }); -export type PromotionCodesResourceRestrictionsModel = z.infer; - export const PromotionCode: z.ZodType = z.object({ 'active': z.boolean(), 'code': z.string(), @@ -2609,13 +10926,11 @@ export const PromotionCode: z.ZodType = z.object({ 'times_redeemed': z.number().int() }); -export const DiscountSource = z.object({ +export const DiscountSource: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]).optional(), 'type': z.enum(['coupon']) }); -export type DiscountSourceModel = z.infer; - export const Discount: z.ZodType = z.object({ 'checkout_session': z.string().optional(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]).optional(), @@ -2631,14 +10946,12 @@ export const Discount: z.ZodType = z.object({ 'subscription_item': z.string().optional() }); -export const InvoiceSettingCustomField = z.object({ +export const InvoiceSettingCustomField: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type InvoiceSettingCustomFieldModel = z.infer; - -export const PaymentMethodAcssDebit = z.object({ +export const PaymentMethodAcssDebit: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'fingerprint': z.string().optional(), 'institution_number': z.string().optional(), @@ -2646,67 +10959,47 @@ export const PaymentMethodAcssDebit = z.object({ 'transit_number': z.string().optional() }); -export type PaymentMethodAcssDebitModel = z.infer; - -export const PaymentMethodAffirm = z.object({ +export const PaymentMethodAffirm: z.ZodType = z.object({ }); -export type PaymentMethodAffirmModel = z.infer; - -export const PaymentMethodAfterpayClearpay = z.object({ +export const PaymentMethodAfterpayClearpay: z.ZodType = z.object({ }); -export type PaymentMethodAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipay = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipay: z.ZodType = z.object({ }); -export type PaymentFlowsPrivatePaymentMethodsAlipayModel = z.infer; - -export const PaymentMethodAlma = z.object({ +export const PaymentMethodAlma: z.ZodType = z.object({ }); -export type PaymentMethodAlmaModel = z.infer; - -export const PaymentMethodAmazonPay = z.object({ +export const PaymentMethodAmazonPay: z.ZodType = z.object({ }); -export type PaymentMethodAmazonPayModel = z.infer; - -export const PaymentMethodAuBecsDebit = z.object({ +export const PaymentMethodAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional() }); -export type PaymentMethodAuBecsDebitModel = z.infer; - -export const PaymentMethodBacsDebit = z.object({ +export const PaymentMethodBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'sort_code': z.string().optional() }); -export type PaymentMethodBacsDebitModel = z.infer; - -export const PaymentMethodBancontact = z.object({ +export const PaymentMethodBancontact: z.ZodType = z.object({ }); -export type PaymentMethodBancontactModel = z.infer; - -export const PaymentMethodBillie = z.object({ +export const PaymentMethodBillie: z.ZodType = z.object({ }); -export type PaymentMethodBillieModel = z.infer; - -export const BillingDetails = z.object({ +export const BillingDetails: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), @@ -2714,36 +11007,26 @@ export const BillingDetails = z.object({ 'tax_id': z.string().optional() }); -export type BillingDetailsModel = z.infer; - -export const PaymentMethodBlik = z.object({ +export const PaymentMethodBlik: z.ZodType = z.object({ }); -export type PaymentMethodBlikModel = z.infer; - -export const PaymentMethodBoleto = z.object({ +export const PaymentMethodBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodBoletoModel = z.infer; - -export const PaymentMethodCardChecks = z.object({ +export const PaymentMethodCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_postal_code_check': z.string().optional(), 'cvc_check': z.string().optional() }); -export type PaymentMethodCardChecksModel = z.infer; - -export const PaymentMethodDetailsCardPresentOffline = z.object({ +export const PaymentMethodDetailsCardPresentOffline: z.ZodType = z.object({ 'stored_at': z.number().int().optional(), 'type': z.enum(['deferred']).optional() }); -export type PaymentMethodDetailsCardPresentOfflineModel = z.infer; - -export const PaymentMethodDetailsCardPresentReceipt = z.object({ +export const PaymentMethodDetailsCardPresentReceipt: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'credit', 'prepaid', 'unknown']).optional(), 'application_cryptogram': z.string().optional(), 'application_preferred_name': z.string().optional(), @@ -2755,15 +11038,11 @@ export const PaymentMethodDetailsCardPresentReceipt = z.object({ 'transaction_status_information': z.string().optional() }); -export type PaymentMethodDetailsCardPresentReceiptModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet: z.ZodType = z.object({ 'type': z.enum(['apple_pay', 'google_pay', 'samsung_pay', 'unknown']) }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = z.infer; - -export const PaymentMethodDetailsCardPresent = z.object({ +export const PaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'amount_authorized': z.number().int().optional(), 'brand': z.string().optional(), 'brand_product': z.string().optional(), @@ -2790,180 +11069,126 @@ export const PaymentMethodDetailsCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodDetailsCardPresentModel = z.infer; - -export const CardGeneratedFromPaymentMethodDetails = z.object({ +export const CardGeneratedFromPaymentMethodDetails: z.ZodType = z.object({ 'card_present': PaymentMethodDetailsCardPresent.optional(), 'type': z.string() }); -export type CardGeneratedFromPaymentMethodDetailsModel = z.infer; - -export const Application = z.object({ +export const Application: z.ZodType = z.object({ 'id': z.string(), 'name': z.string().optional(), 'object': z.enum(['application']) }); -export type ApplicationModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAcssDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAcssDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAcssDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAmazonPay = z.object({ +export const SetupAttemptPaymentMethodDetailsAmazonPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAmazonPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAuBecsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsBacsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsBacsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBacsDebitModel = z.infer; - -export const OfflineAcceptance = z.object({ +export const OfflineAcceptance: z.ZodType = z.object({ }); -export type OfflineAcceptanceModel = z.infer; - -export const OnlineAcceptance = z.object({ +export const OnlineAcceptance: z.ZodType = z.object({ 'ip_address': z.string().optional(), 'user_agent': z.string().optional() }); -export type OnlineAcceptanceModel = z.infer; - -export const CustomerAcceptance = z.object({ +export const CustomerAcceptance: z.ZodType = z.object({ 'accepted_at': z.number().int().optional(), 'offline': OfflineAcceptance.optional(), 'online': OnlineAcceptance.optional(), 'type': z.enum(['offline', 'online']) }); -export type CustomerAcceptanceModel = z.infer; - -export const MandateMultiUse = z.object({ +export const MandateMultiUse: z.ZodType = z.object({ }); -export type MandateMultiUseModel = z.infer; - -export const MandateAcssDebit = z.object({ +export const MandateAcssDebit: z.ZodType = z.object({ 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string().optional(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']), 'transaction_type': z.enum(['business', 'personal']) }); -export type MandateAcssDebitModel = z.infer; - -export const MandateAmazonPay = z.object({ +export const MandateAmazonPay: z.ZodType = z.object({ }); -export type MandateAmazonPayModel = z.infer; - -export const MandateAuBecsDebit = z.object({ +export const MandateAuBecsDebit: z.ZodType = z.object({ 'url': z.string() }); -export type MandateAuBecsDebitModel = z.infer; - -export const MandateBacsDebit = z.object({ +export const MandateBacsDebit: z.ZodType = z.object({ 'network_status': z.enum(['accepted', 'pending', 'refused', 'revoked']), 'reference': z.string(), 'revocation_reason': z.enum(['account_closed', 'bank_account_restricted', 'bank_ownership_changed', 'could_not_process', 'debit_not_authorized']).optional(), 'url': z.string() }); -export type MandateBacsDebitModel = z.infer; - -export const CardMandatePaymentMethodDetails = z.object({ +export const CardMandatePaymentMethodDetails: z.ZodType = z.object({ }); -export type CardMandatePaymentMethodDetailsModel = z.infer; - -export const MandateCashapp = z.object({ +export const MandateCashapp: z.ZodType = z.object({ }); -export type MandateCashappModel = z.infer; - -export const MandateKakaoPay = z.object({ +export const MandateKakaoPay: z.ZodType = z.object({ }); -export type MandateKakaoPayModel = z.infer; - -export const MandateKlarna = z.object({ +export const MandateKlarna: z.ZodType = z.object({ }); -export type MandateKlarnaModel = z.infer; - -export const MandateKrCard = z.object({ +export const MandateKrCard: z.ZodType = z.object({ }); -export type MandateKrCardModel = z.infer; - -export const MandateLink = z.object({ +export const MandateLink: z.ZodType = z.object({ }); -export type MandateLinkModel = z.infer; - -export const MandateNaverPay = z.object({ +export const MandateNaverPay: z.ZodType = z.object({ }); -export type MandateNaverPayModel = z.infer; - -export const MandateNzBankAccount = z.object({ +export const MandateNzBankAccount: z.ZodType = z.object({ }); -export type MandateNzBankAccountModel = z.infer; - -export const MandatePaypal = z.object({ +export const MandatePaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string().optional(), 'payer_id': z.string().optional() }); -export type MandatePaypalModel = z.infer; - -export const MandateRevolutPay = z.object({ +export const MandateRevolutPay: z.ZodType = z.object({ }); -export type MandateRevolutPayModel = z.infer; - -export const MandateSepaDebit = z.object({ +export const MandateSepaDebit: z.ZodType = z.object({ 'reference': z.string(), 'url': z.string() }); -export type MandateSepaDebitModel = z.infer; - -export const MandateUsBankAccount = z.object({ +export const MandateUsBankAccount: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type MandateUsBankAccountModel = z.infer; - -export const MandatePaymentMethodDetails = z.object({ +export const MandatePaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': MandateAcssDebit.optional(), 'amazon_pay': MandateAmazonPay.optional(), 'au_becs_debit': MandateAuBecsDebit.optional(), @@ -2983,15 +11208,11 @@ export const MandatePaymentMethodDetails = z.object({ 'us_bank_account': MandateUsBankAccount.optional() }); -export type MandatePaymentMethodDetailsModel = z.infer; - -export const MandateSingleUse = z.object({ +export const MandateSingleUse: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type MandateSingleUseModel = z.infer; - export const Mandate: z.ZodType = z.object({ 'customer_acceptance': CustomerAcceptance, 'id': z.string(), @@ -3017,21 +11238,17 @@ export const SetupAttemptPaymentMethodDetailsBancontact: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBoletoModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardChecks = z.object({ +export const SetupAttemptPaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_postal_code_check': z.string().optional(), 'cvc_check': z.string().optional() }); -export type SetupAttemptPaymentMethodDetailsCardChecksModel = z.infer; - -export const ThreeDSecureDetails = z.object({ +export const ThreeDSecureDetails: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']).optional(), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']).optional(), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']).optional(), @@ -3040,29 +11257,21 @@ export const ThreeDSecureDetails = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']).optional() }); -export type ThreeDSecureDetailsModel = z.infer; - -export const PaymentMethodDetailsCardWalletApplePay = z.object({ +export const PaymentMethodDetailsCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletApplePayModel = z.infer; - -export const PaymentMethodDetailsCardWalletGooglePay = z.object({ +export const PaymentMethodDetailsCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletGooglePayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardWallet = z.object({ +export const SetupAttemptPaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'google_pay': PaymentMethodDetailsCardWalletGooglePay.optional(), 'type': z.enum(['apple_pay', 'google_pay', 'link']) }); -export type SetupAttemptPaymentMethodDetailsCardWalletModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCard = z.object({ +export const SetupAttemptPaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string().optional(), 'checks': z.union([SetupAttemptPaymentMethodDetailsCardChecks]).optional(), 'country': z.string().optional(), @@ -3076,19 +11285,15 @@ export const SetupAttemptPaymentMethodDetailsCard = z.object({ 'wallet': z.union([SetupAttemptPaymentMethodDetailsCardWallet]).optional() }); -export type SetupAttemptPaymentMethodDetailsCardModel = z.infer; - export const SetupAttemptPaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'generated_card': z.union([z.string(), z.lazy(() => PaymentMethod)]).optional(), 'offline': z.union([PaymentMethodDetailsCardPresentOffline]).optional() }); -export const SetupAttemptPaymentMethodDetailsCashapp = z.object({ +export const SetupAttemptPaymentMethodDetailsCashapp: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsCashappModel = z.infer; - export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']).optional(), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']).optional(), @@ -3098,60 +11303,42 @@ export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKakaoPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKlarna = z.object({ +export const SetupAttemptPaymentMethodDetailsKlarna: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKlarnaModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKrCard = z.object({ +export const SetupAttemptPaymentMethodDetailsKrCard: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKrCardModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsLink = z.object({ +export const SetupAttemptPaymentMethodDetailsLink: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsLinkModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNaverPay = z.object({ +export const SetupAttemptPaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string().optional() }); -export type SetupAttemptPaymentMethodDetailsNaverPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNzBankAccount = z.object({ +export const SetupAttemptPaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsPaypal = z.object({ +export const SetupAttemptPaymentMethodDetailsPaypal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsPaypalModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsRevolutPay = z.object({ +export const SetupAttemptPaymentMethodDetailsRevolutPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsRevolutPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsSepaDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsSepaDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsSepaDebitModel = z.infer; - export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), @@ -3163,12 +11350,10 @@ export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = z.infer; - export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': SetupAttemptPaymentMethodDetailsAcssDebit.optional(), 'amazon_pay': SetupAttemptPaymentMethodDetailsAmazonPay.optional(), @@ -3194,51 +11379,39 @@ export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'commodity_code': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'commodity_code': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'image_url': z.string().optional(), 'product_url': z.string().optional(), 'reference': z.string().optional(), 'subscription_reference': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'category': z.enum(['digital_goods', 'donation', 'physical_goods']).optional(), 'description': z.string().optional(), 'sold_by': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'card_present': PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions.optional(), 'klarna': PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'paypal': PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions.optional() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = z.infer; - -export const PaymentIntentAmountDetailsLineItem = z.object({ +export const PaymentIntentAmountDetailsLineItem: z.ZodType = z.object({ 'discount_amount': z.number().int().optional(), 'id': z.string(), 'object': z.enum(['payment_intent_amount_details_line_item']), @@ -3251,29 +11424,21 @@ export const PaymentIntentAmountDetailsLineItem = z.object({ 'unit_of_measure': z.string().optional() }); -export type PaymentIntentAmountDetailsLineItemModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceShipping = z.object({ +export const PaymentFlowsAmountDetailsResourceShipping: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'from_postal_code': z.string().optional(), 'to_postal_code': z.string().optional() }); -export type PaymentFlowsAmountDetailsResourceShippingModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int().optional() }); -export type PaymentFlowsAmountDetailsResourceTaxModel = z.infer; - -export const PaymentFlowsAmountDetailsClientResourceTip = z.object({ +export const PaymentFlowsAmountDetailsClientResourceTip: z.ZodType = z.object({ 'amount': z.number().int().optional() }); -export type PaymentFlowsAmountDetailsClientResourceTipModel = z.infer; - -export const PaymentFlowsAmountDetails = z.object({ +export const PaymentFlowsAmountDetails: z.ZodType = z.object({ 'discount_amount': z.number().int().optional(), 'line_items': z.object({ 'data': z.array(PaymentIntentAmountDetailsLineItem), @@ -3286,40 +11451,28 @@ export const PaymentFlowsAmountDetails = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsModel = z.infer; - -export const PaymentFlowsAmountDetailsClient = z.object({ +export const PaymentFlowsAmountDetailsClient: z.ZodType = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsClientModel = z.infer; - -export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean() }); -export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax: z.ZodType = z.object({ 'calculation': z.string() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs: z.ZodType = z.object({ 'tax': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflows = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflows: z.ZodType = z.object({ 'inputs': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = z.infer; - -export const Fee = z.object({ +export const Fee: z.ZodType = z.object({ 'amount': z.number().int(), 'application': z.string().optional(), 'currency': z.string(), @@ -3327,8 +11480,6 @@ export const Fee = z.object({ 'type': z.string() }); -export type FeeModel = z.infer; - export const ConnectCollectionTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -3347,38 +11498,30 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPayme 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer: z.ZodType = z.object({ 'bic': z.string().optional(), 'iban_last4': z.string().optional(), 'sender_name': z.string().optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer: z.ZodType = z.object({ 'account_number_last4': z.string().optional(), 'sender_name': z.string().optional(), 'sort_code': z.string().optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer: z.ZodType = z.object({ 'sender_bank': z.string().optional(), 'sender_branch': z.string().optional(), 'sender_name': z.string().optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer: z.ZodType = z.object({ 'network': z.enum(['ach', 'domestic_wire_us', 'swift']).optional(), 'sender_name': z.string().optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer.optional(), 'gb_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer.optional(), 'jp_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer.optional(), @@ -3387,128 +11530,92 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransact 'us_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer.optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction: z.ZodType = z.object({ 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = z.infer; - -export const DestinationDetailsUnimplemented = z.object({ +export const DestinationDetailsUnimplemented: z.ZodType = z.object({ }); -export type DestinationDetailsUnimplementedModel = z.infer; - -export const RefundDestinationDetailsBlik = z.object({ +export const RefundDestinationDetailsBlik: z.ZodType = z.object({ 'network_decline_code': z.string().optional(), 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsBlikModel = z.infer; - -export const RefundDestinationDetailsBrBankTransfer = z.object({ +export const RefundDestinationDetailsBrBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsBrBankTransferModel = z.infer; - -export const RefundDestinationDetailsCard = z.object({ +export const RefundDestinationDetailsCard: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional(), 'reference_type': z.string().optional(), 'type': z.enum(['pending', 'refund', 'reversal']) }); -export type RefundDestinationDetailsCardModel = z.infer; - -export const RefundDestinationDetailsCrypto = z.object({ +export const RefundDestinationDetailsCrypto: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type RefundDestinationDetailsCryptoModel = z.infer; - -export const RefundDestinationDetailsEuBankTransfer = z.object({ +export const RefundDestinationDetailsEuBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsEuBankTransferModel = z.infer; - -export const RefundDestinationDetailsGbBankTransfer = z.object({ +export const RefundDestinationDetailsGbBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsGbBankTransferModel = z.infer; - -export const RefundDestinationDetailsJpBankTransfer = z.object({ +export const RefundDestinationDetailsJpBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsJpBankTransferModel = z.infer; - -export const RefundDestinationDetailsMbWay = z.object({ +export const RefundDestinationDetailsMbWay: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsMbWayModel = z.infer; - -export const RefundDestinationDetailsMultibanco = z.object({ +export const RefundDestinationDetailsMultibanco: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsMultibancoModel = z.infer; - -export const RefundDestinationDetailsMxBankTransfer = z.object({ +export const RefundDestinationDetailsMxBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsMxBankTransferModel = z.infer; - -export const RefundDestinationDetailsP24 = z.object({ +export const RefundDestinationDetailsP24: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsP24Model = z.infer; - -export const RefundDestinationDetailsPaypal = z.object({ +export const RefundDestinationDetailsPaypal: z.ZodType = z.object({ 'network_decline_code': z.string().optional() }); -export type RefundDestinationDetailsPaypalModel = z.infer; - -export const RefundDestinationDetailsSwish = z.object({ +export const RefundDestinationDetailsSwish: z.ZodType = z.object({ 'network_decline_code': z.string().optional(), 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsSwishModel = z.infer; - -export const RefundDestinationDetailsThBankTransfer = z.object({ +export const RefundDestinationDetailsThBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsThBankTransferModel = z.infer; - -export const RefundDestinationDetailsUsBankTransfer = z.object({ +export const RefundDestinationDetailsUsBankTransfer: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional() }); -export type RefundDestinationDetailsUsBankTransferModel = z.infer; - -export const RefundDestinationDetails = z.object({ +export const RefundDestinationDetails: z.ZodType = z.object({ 'affirm': DestinationDetailsUnimplemented.optional(), 'afterpay_clearpay': DestinationDetailsUnimplemented.optional(), 'alipay': DestinationDetailsUnimplemented.optional(), @@ -3547,36 +11654,26 @@ export const RefundDestinationDetails = z.object({ 'zip': DestinationDetailsUnimplemented.optional() }); -export type RefundDestinationDetailsModel = z.infer; - -export const EmailSent = z.object({ +export const EmailSent: z.ZodType = z.object({ 'email_sent_at': z.number().int(), 'email_sent_to': z.string() }); -export type EmailSentModel = z.infer; - -export const RefundNextActionDisplayDetails = z.object({ +export const RefundNextActionDisplayDetails: z.ZodType = z.object({ 'email_sent': EmailSent, 'expires_at': z.number().int() }); -export type RefundNextActionDisplayDetailsModel = z.infer; - -export const RefundNextAction = z.object({ +export const RefundNextAction: z.ZodType = z.object({ 'display_details': RefundNextActionDisplayDetails.optional(), 'type': z.string() }); -export type RefundNextActionModel = z.infer; - -export const PaymentFlowsPaymentIntentPresentmentDetails = z.object({ +export const PaymentFlowsPaymentIntentPresentmentDetails: z.ZodType = z.object({ 'presentment_amount': z.number().int(), 'presentment_currency': z.string() }); -export type PaymentFlowsPaymentIntentPresentmentDetailsModel = z.infer; - export const Transfer: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_reversed': z.number().int(), @@ -3670,7 +11767,7 @@ export const CustomerCashBalanceTransaction: z.ZodType CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction).optional() }); -export const DisputeTransactionShippingAddress = z.object({ +export const DisputeTransactionShippingAddress: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'line1': z.string().optional(), @@ -3679,9 +11776,7 @@ export const DisputeTransactionShippingAddress = z.object({ 'state': z.string().optional() }); -export type DisputeTransactionShippingAddressModel = z.infer; - -export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3DisputedTransaction: z.ZodType = z.object({ 'customer_account_id': z.string().optional(), 'customer_device_fingerprint': z.string().optional(), 'customer_device_id': z.string().optional(), @@ -3692,9 +11787,7 @@ export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ 'shipping_address': z.union([DisputeTransactionShippingAddress]).optional() }); -export type DisputeVisaCompellingEvidence3DisputedTransactionModel = z.infer; - -export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction: z.ZodType = z.object({ 'charge': z.string(), 'customer_account_id': z.string().optional(), 'customer_device_fingerprint': z.string().optional(), @@ -3705,29 +11798,21 @@ export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object 'shipping_address': z.union([DisputeTransactionShippingAddress]).optional() }); -export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = z.infer; - -export const DisputeEnhancedEvidenceVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEvidenceVisaCompellingEvidence3: z.ZodType = z.object({ 'disputed_transaction': z.union([DisputeVisaCompellingEvidence3DisputedTransaction]).optional(), 'prior_undisputed_transactions': z.array(DisputeVisaCompellingEvidence3PriorUndisputedTransaction) }); -export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEvidenceVisaCompliance = z.object({ +export const DisputeEnhancedEvidenceVisaCompliance: z.ZodType = z.object({ 'fee_acknowledged': z.boolean() }); -export type DisputeEnhancedEvidenceVisaComplianceModel = z.infer; - -export const DisputeEnhancedEvidence = z.object({ +export const DisputeEnhancedEvidence: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEvidenceVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEvidenceVisaCompliance.optional() }); -export type DisputeEnhancedEvidenceModel = z.infer; - -export const DisputeEvidence = z.object({ +export const DisputeEvidence: z.ZodType = z.object({ 'access_activity_log': z.string().optional(), 'billing_address': z.string().optional(), 'cancellation_policy': z.union([z.string(), z.lazy(() => File)]).optional(), @@ -3758,29 +11843,21 @@ export const DisputeEvidence = z.object({ 'uncategorized_text': z.string().optional() }); -export type DisputeEvidenceModel = z.infer; - -export const DisputeEnhancedEligibilityVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEligibilityVisaCompellingEvidence3: z.ZodType = z.object({ 'required_actions': z.array(z.enum(['missing_customer_identifiers', 'missing_disputed_transaction_description', 'missing_merchandise_or_services', 'missing_prior_undisputed_transaction_description', 'missing_prior_undisputed_transactions'])), 'status': z.enum(['not_qualified', 'qualified', 'requires_action']) }); -export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEligibilityVisaCompliance = z.object({ +export const DisputeEnhancedEligibilityVisaCompliance: z.ZodType = z.object({ 'status': z.enum(['fee_acknowledged', 'requires_fee_acknowledgement']) }); -export type DisputeEnhancedEligibilityVisaComplianceModel = z.infer; - -export const DisputeEnhancedEligibility = z.object({ +export const DisputeEnhancedEligibility: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEligibilityVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEligibilityVisaCompliance.optional() }); -export type DisputeEnhancedEligibilityModel = z.infer; - -export const DisputeEvidenceDetails = z.object({ +export const DisputeEvidenceDetails: z.ZodType = z.object({ 'due_by': z.number().int().optional(), 'enhanced_eligibility': DisputeEnhancedEligibility, 'has_evidence': z.boolean(), @@ -3788,37 +11865,27 @@ export const DisputeEvidenceDetails = z.object({ 'submission_count': z.number().int() }); -export type DisputeEvidenceDetailsModel = z.infer; - -export const DisputePaymentMethodDetailsAmazonPay = z.object({ +export const DisputePaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'dispute_type': z.enum(['chargeback', 'claim']).optional() }); -export type DisputePaymentMethodDetailsAmazonPayModel = z.infer; - -export const DisputePaymentMethodDetailsCard = z.object({ +export const DisputePaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string(), 'case_type': z.enum(['block', 'chargeback', 'compliance', 'inquiry', 'resolution']), 'network_reason_code': z.string().optional() }); -export type DisputePaymentMethodDetailsCardModel = z.infer; - -export const DisputePaymentMethodDetailsKlarna = z.object({ +export const DisputePaymentMethodDetailsKlarna: z.ZodType = z.object({ 'chargeback_loss_reason_code': z.string().optional(), 'reason_code': z.string().optional() }); -export type DisputePaymentMethodDetailsKlarnaModel = z.infer; - -export const DisputePaymentMethodDetailsPaypal = z.object({ +export const DisputePaymentMethodDetailsPaypal: z.ZodType = z.object({ 'case_id': z.string().optional(), 'reason_code': z.string().optional() }); -export type DisputePaymentMethodDetailsPaypalModel = z.infer; - -export const DisputePaymentMethodDetails = z.object({ +export const DisputePaymentMethodDetails: z.ZodType = z.object({ 'amazon_pay': DisputePaymentMethodDetailsAmazonPay.optional(), 'card': DisputePaymentMethodDetailsCard.optional(), 'klarna': DisputePaymentMethodDetailsKlarna.optional(), @@ -3826,8 +11893,6 @@ export const DisputePaymentMethodDetails = z.object({ 'type': z.enum(['amazon_pay', 'card', 'klarna', 'paypal']) }); -export type DisputePaymentMethodDetailsModel = z.infer; - export const Dispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)), @@ -3859,61 +11924,45 @@ export const FeeRefund: z.ZodType = z.object({ 'object': z.enum(['fee_refund']) }); -export const IssuingAuthorizationAmountDetails = z.object({ +export const IssuingAuthorizationAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int().optional(), 'cashback_amount': z.number().int().optional() }); -export type IssuingAuthorizationAmountDetailsModel = z.infer; - -export const IssuingCardholderAddress = z.object({ +export const IssuingCardholderAddress: z.ZodType = z.object({ 'address': Address }); -export type IssuingCardholderAddressModel = z.infer; - -export const IssuingCardholderCompany = z.object({ +export const IssuingCardholderCompany: z.ZodType = z.object({ 'tax_id_provided': z.boolean() }); -export type IssuingCardholderCompanyModel = z.infer; - -export const IssuingCardholderUserTermsAcceptance = z.object({ +export const IssuingCardholderUserTermsAcceptance: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type IssuingCardholderUserTermsAcceptanceModel = z.infer; - -export const IssuingCardholderCardIssuing = z.object({ +export const IssuingCardholderCardIssuing: z.ZodType = z.object({ 'user_terms_acceptance': z.union([IssuingCardholderUserTermsAcceptance]).optional() }); -export type IssuingCardholderCardIssuingModel = z.infer; - -export const IssuingCardholderIndividualDob = z.object({ +export const IssuingCardholderIndividualDob: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type IssuingCardholderIndividualDobModel = z.infer; - -export const IssuingCardholderIdDocument = z.object({ +export const IssuingCardholderIdDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]).optional(), 'front': z.union([z.string(), z.lazy(() => File)]).optional() }); -export type IssuingCardholderIdDocumentModel = z.infer; - -export const IssuingCardholderVerification = z.object({ +export const IssuingCardholderVerification: z.ZodType = z.object({ 'document': z.union([IssuingCardholderIdDocument]).optional() }); -export type IssuingCardholderVerificationModel = z.infer; - -export const IssuingCardholderIndividual = z.object({ +export const IssuingCardholderIndividual: z.ZodType = z.object({ 'card_issuing': z.union([IssuingCardholderCardIssuing]).optional(), 'dob': z.union([IssuingCardholderIndividualDob]).optional(), 'first_name': z.string().optional(), @@ -3921,24 +11970,18 @@ export const IssuingCardholderIndividual = z.object({ 'verification': z.union([IssuingCardholderVerification]).optional() }); -export type IssuingCardholderIndividualModel = z.infer; - -export const IssuingCardholderRequirements = z.object({ +export const IssuingCardholderRequirements: z.ZodType = z.object({ 'disabled_reason': z.enum(['listed', 'rejected.listed', 'requirements.past_due', 'under_review']).optional(), 'past_due': z.array(z.enum(['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'])).optional() }); -export type IssuingCardholderRequirementsModel = z.infer; - -export const IssuingCardholderSpendingLimit = z.object({ +export const IssuingCardholderSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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'])).optional(), 'interval': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardholderSpendingLimitModel = z.infer; - -export const IssuingCardholderAuthorizationControls = z.object({ +export const IssuingCardholderAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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'])).optional(), 'allowed_merchant_countries': z.array(z.string()).optional(), 'blocked_categories': z.array(z.enum(['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'])).optional(), @@ -3947,9 +11990,7 @@ export const IssuingCardholderAuthorizationControls = z.object({ 'spending_limits_currency': z.string().optional() }); -export type IssuingCardholderAuthorizationControlsModel = z.infer; - -export const IssuingCardholder = z.object({ +export const IssuingCardholder: z.ZodType = z.object({ 'billing': IssuingCardholderAddress, 'company': z.union([IssuingCardholderCompany]).optional(), 'created': z.number().int(), @@ -3968,33 +12009,25 @@ export const IssuingCardholder = z.object({ 'type': z.enum(['company', 'individual']) }); -export type IssuingCardholderModel = z.infer; - -export const IssuingCardFraudWarning = z.object({ +export const IssuingCardFraudWarning: z.ZodType = z.object({ 'started_at': z.number().int().optional(), 'type': z.enum(['card_testing_exposure', 'fraud_dispute_filed', 'third_party_reported', 'user_indicated_fraud']).optional() }); -export type IssuingCardFraudWarningModel = z.infer; - -export const IssuingPersonalizationDesignCarrierText = z.object({ +export const IssuingPersonalizationDesignCarrierText: z.ZodType = z.object({ 'footer_body': z.string().optional(), 'footer_title': z.string().optional(), 'header_body': z.string().optional(), 'header_title': z.string().optional() }); -export type IssuingPersonalizationDesignCarrierTextModel = z.infer; - -export const IssuingPhysicalBundleFeatures = z.object({ +export const IssuingPhysicalBundleFeatures: z.ZodType = z.object({ 'card_logo': z.enum(['optional', 'required', 'unsupported']), 'carrier_text': z.enum(['optional', 'required', 'unsupported']), 'second_line': z.enum(['optional', 'required', 'unsupported']) }); -export type IssuingPhysicalBundleFeaturesModel = z.infer; - -export const IssuingPhysicalBundle = z.object({ +export const IssuingPhysicalBundle: z.ZodType = z.object({ 'features': IssuingPhysicalBundleFeatures, 'id': z.string(), 'livemode': z.boolean(), @@ -4004,23 +12037,17 @@ export const IssuingPhysicalBundle = z.object({ 'type': z.enum(['custom', 'standard']) }); -export type IssuingPhysicalBundleModel = z.infer; - -export const IssuingPersonalizationDesignPreferences = z.object({ +export const IssuingPersonalizationDesignPreferences: z.ZodType = z.object({ 'is_default': z.boolean(), 'is_platform_default': z.boolean().optional() }); -export type IssuingPersonalizationDesignPreferencesModel = z.infer; - -export const IssuingPersonalizationDesignRejectionReasons = z.object({ +export const IssuingPersonalizationDesignRejectionReasons: z.ZodType = z.object({ 'card_logo': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_binary_image', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])).optional(), 'carrier_text': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])).optional() }); -export type IssuingPersonalizationDesignRejectionReasonsModel = z.infer; - -export const IssuingPersonalizationDesign = z.object({ +export const IssuingPersonalizationDesign: z.ZodType = z.object({ 'card_logo': z.union([z.string(), z.lazy(() => File)]).optional(), 'carrier_text': z.union([IssuingPersonalizationDesignCarrierText]).optional(), 'created': z.number().int(), @@ -4036,23 +12063,17 @@ export const IssuingPersonalizationDesign = z.object({ 'status': z.enum(['active', 'inactive', 'rejected', 'review']) }); -export type IssuingPersonalizationDesignModel = z.infer; - -export const IssuingCardShippingAddressValidation = z.object({ +export const IssuingCardShippingAddressValidation: z.ZodType = z.object({ 'mode': z.enum(['disabled', 'normalization_only', 'validation_and_normalization']), 'normalized_address': z.union([Address]).optional(), 'result': z.enum(['indeterminate', 'likely_deliverable', 'likely_undeliverable']).optional() }); -export type IssuingCardShippingAddressValidationModel = z.infer; - -export const IssuingCardShippingCustoms = z.object({ +export const IssuingCardShippingCustoms: z.ZodType = z.object({ 'eori_number': z.string().optional() }); -export type IssuingCardShippingCustomsModel = z.infer; - -export const IssuingCardShipping = z.object({ +export const IssuingCardShipping: z.ZodType = z.object({ 'address': Address, 'address_validation': z.union([IssuingCardShippingAddressValidation]).optional(), 'carrier': z.enum(['dhl', 'fedex', 'royal_mail', 'usps']).optional(), @@ -4068,17 +12089,13 @@ export const IssuingCardShipping = z.object({ 'type': z.enum(['bulk', 'individual']) }); -export type IssuingCardShippingModel = z.infer; - -export const IssuingCardSpendingLimit = z.object({ +export const IssuingCardSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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'])).optional(), 'interval': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardSpendingLimitModel = z.infer; - -export const IssuingCardAuthorizationControls = z.object({ +export const IssuingCardAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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'])).optional(), 'allowed_merchant_countries': z.array(z.string()).optional(), 'blocked_categories': z.array(z.enum(['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'])).optional(), @@ -4087,30 +12104,22 @@ export const IssuingCardAuthorizationControls = z.object({ 'spending_limits_currency': z.string().optional() }); -export type IssuingCardAuthorizationControlsModel = z.infer; - -export const IssuingCardApplePay = z.object({ +export const IssuingCardApplePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']).optional() }); -export type IssuingCardApplePayModel = z.infer; - -export const IssuingCardGooglePay = z.object({ +export const IssuingCardGooglePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']).optional() }); -export type IssuingCardGooglePayModel = z.infer; - -export const IssuingCardWallets = z.object({ +export const IssuingCardWallets: z.ZodType = z.object({ 'apple_pay': IssuingCardApplePay, 'google_pay': IssuingCardGooglePay, 'primary_account_identifier': z.string().optional() }); -export type IssuingCardWalletsModel = z.infer; - export const IssuingCard: z.ZodType = z.object({ 'brand': z.string(), 'cancellation_reason': z.enum(['design_rejected', 'lost', 'stolen']).optional(), @@ -4140,7 +12149,7 @@ export const IssuingCard: z.ZodType = z.object({ 'wallets': z.union([IssuingCardWallets]).optional() }); -export const IssuingAuthorizationFleetCardholderPromptData = z.object({ +export const IssuingAuthorizationFleetCardholderPromptData: z.ZodType = z.object({ 'alphanumeric_id': z.string().optional(), 'driver_id': z.string().optional(), 'odometer': z.number().int().optional(), @@ -4149,53 +12158,39 @@ export const IssuingAuthorizationFleetCardholderPromptData = z.object({ 'vehicle_number': z.string().optional() }); -export type IssuingAuthorizationFleetCardholderPromptDataModel = z.infer; - -export const IssuingAuthorizationFleetFuelPriceData = z.object({ +export const IssuingAuthorizationFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string().optional() }); -export type IssuingAuthorizationFleetFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetNonFuelPriceData = z.object({ +export const IssuingAuthorizationFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string().optional() }); -export type IssuingAuthorizationFleetNonFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetTaxData = z.object({ +export const IssuingAuthorizationFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string().optional(), 'national_amount_decimal': z.string().optional() }); -export type IssuingAuthorizationFleetTaxDataModel = z.infer; - -export const IssuingAuthorizationFleetReportedBreakdown = z.object({ +export const IssuingAuthorizationFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingAuthorizationFleetFuelPriceData]).optional(), 'non_fuel': z.union([IssuingAuthorizationFleetNonFuelPriceData]).optional(), 'tax': z.union([IssuingAuthorizationFleetTaxData]).optional() }); -export type IssuingAuthorizationFleetReportedBreakdownModel = z.infer; - -export const IssuingAuthorizationFleetData = z.object({ +export const IssuingAuthorizationFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingAuthorizationFleetCardholderPromptData]).optional(), 'purchase_type': z.enum(['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']).optional(), 'reported_breakdown': z.union([IssuingAuthorizationFleetReportedBreakdown]).optional(), 'service_type': z.enum(['full_service', 'non_fuel_transaction', 'self_service']).optional() }); -export type IssuingAuthorizationFleetDataModel = z.infer; - -export const IssuingAuthorizationFraudChallenge = z.object({ +export const IssuingAuthorizationFraudChallenge: z.ZodType = z.object({ 'channel': z.enum(['sms']), 'status': z.enum(['expired', 'pending', 'rejected', 'undeliverable', 'verified']), 'undeliverable_reason': z.enum(['no_phone_number', 'unsupported_phone_number']).optional() }); -export type IssuingAuthorizationFraudChallengeModel = z.infer; - -export const IssuingAuthorizationFuelData = z.object({ +export const IssuingAuthorizationFuelData: z.ZodType = z.object({ 'industry_product_code': z.string().optional(), 'quantity_decimal': z.string().optional(), 'type': z.enum(['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']).optional(), @@ -4203,9 +12198,7 @@ export const IssuingAuthorizationFuelData = z.object({ 'unit_cost_decimal': z.string().optional() }); -export type IssuingAuthorizationFuelDataModel = z.infer; - -export const IssuingAuthorizationMerchantData = z.object({ +export const IssuingAuthorizationMerchantData: z.ZodType = z.object({ 'category': z.string(), 'category_code': z.string(), 'city': z.string().optional(), @@ -4219,17 +12212,13 @@ export const IssuingAuthorizationMerchantData = z.object({ 'url': z.string().optional() }); -export type IssuingAuthorizationMerchantDataModel = z.infer; - -export const IssuingAuthorizationNetworkData = z.object({ +export const IssuingAuthorizationNetworkData: z.ZodType = z.object({ 'acquiring_institution_id': z.string().optional(), 'system_trace_audit_number': z.string().optional(), 'transaction_id': z.string().optional() }); -export type IssuingAuthorizationNetworkDataModel = z.infer; - -export const IssuingAuthorizationPendingRequest = z.object({ +export const IssuingAuthorizationPendingRequest: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]).optional(), 'currency': z.string(), @@ -4239,9 +12228,7 @@ export const IssuingAuthorizationPendingRequest = z.object({ 'network_risk_score': z.number().int().optional() }); -export type IssuingAuthorizationPendingRequestModel = z.infer; - -export const IssuingAuthorizationRequest = z.object({ +export const IssuingAuthorizationRequest: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]).optional(), 'approved': z.boolean(), @@ -4256,9 +12243,7 @@ export const IssuingAuthorizationRequest = z.object({ 'requested_at': z.number().int().optional() }); -export type IssuingAuthorizationRequestModel = z.infer; - -export const IssuingNetworkTokenDevice = z.object({ +export const IssuingNetworkTokenDevice: z.ZodType = z.object({ 'device_fingerprint': z.string().optional(), 'ip_address': z.string().optional(), 'location': z.string().optional(), @@ -4267,34 +12252,26 @@ export const IssuingNetworkTokenDevice = z.object({ 'type': z.enum(['other', 'phone', 'watch']).optional() }); -export type IssuingNetworkTokenDeviceModel = z.infer; - -export const IssuingNetworkTokenMastercard = z.object({ +export const IssuingNetworkTokenMastercard: z.ZodType = z.object({ 'card_reference_id': z.string().optional(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_requestor_name': z.string().optional() }); -export type IssuingNetworkTokenMastercardModel = z.infer; - -export const IssuingNetworkTokenVisa = z.object({ +export const IssuingNetworkTokenVisa: z.ZodType = z.object({ 'card_reference_id': z.string(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_risk_score': z.string().optional() }); -export type IssuingNetworkTokenVisaModel = z.infer; - -export const IssuingNetworkTokenAddress = z.object({ +export const IssuingNetworkTokenAddress: z.ZodType = z.object({ 'line1': z.string(), 'postal_code': z.string() }); -export type IssuingNetworkTokenAddressModel = z.infer; - -export const IssuingNetworkTokenWalletProvider = z.object({ +export const IssuingNetworkTokenWalletProvider: z.ZodType = z.object({ 'account_id': z.string().optional(), 'account_trust_score': z.number().int().optional(), 'card_number_source': z.enum(['app', 'manual', 'on_file', 'other']).optional(), @@ -4307,9 +12284,7 @@ export const IssuingNetworkTokenWalletProvider = z.object({ 'suggested_decision_version': z.string().optional() }); -export type IssuingNetworkTokenWalletProviderModel = z.infer; - -export const IssuingNetworkTokenNetworkData = z.object({ +export const IssuingNetworkTokenNetworkData: z.ZodType = z.object({ 'device': IssuingNetworkTokenDevice.optional(), 'mastercard': IssuingNetworkTokenMastercard.optional(), 'type': z.enum(['mastercard', 'visa']), @@ -4317,9 +12292,7 @@ export const IssuingNetworkTokenNetworkData = z.object({ 'wallet_provider': IssuingNetworkTokenWalletProvider.optional() }); -export type IssuingNetworkTokenNetworkDataModel = z.infer; - -export const IssuingToken = z.object({ +export const IssuingToken: z.ZodType = z.object({ 'card': z.union([z.string(), z.lazy(() => IssuingCard)]), 'created': z.number().int(), 'device_fingerprint': z.string().optional(), @@ -4334,16 +12307,12 @@ export const IssuingToken = z.object({ 'wallet_provider': z.enum(['apple_pay', 'google_pay', 'samsung_pay']).optional() }); -export type IssuingTokenModel = z.infer; - -export const IssuingTransactionAmountDetails = z.object({ +export const IssuingTransactionAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int().optional(), 'cashback_amount': z.number().int().optional() }); -export type IssuingTransactionAmountDetailsModel = z.infer; - -export const IssuingDisputeCanceledEvidence = z.object({ +export const IssuingDisputeCanceledEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'canceled_at': z.number().int().optional(), 'cancellation_policy_provided': z.boolean().optional(), @@ -4356,9 +12325,7 @@ export const IssuingDisputeCanceledEvidence = z.object({ 'returned_at': z.number().int().optional() }); -export type IssuingDisputeCanceledEvidenceModel = z.infer; - -export const IssuingDisputeDuplicateEvidence = z.object({ +export const IssuingDisputeDuplicateEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'card_statement': z.union([z.string(), z.lazy(() => File)]).optional(), 'cash_receipt': z.union([z.string(), z.lazy(() => File)]).optional(), @@ -4367,16 +12334,12 @@ export const IssuingDisputeDuplicateEvidence = z.object({ 'original_transaction': z.string().optional() }); -export type IssuingDisputeDuplicateEvidenceModel = z.infer; - -export const IssuingDisputeFraudulentEvidence = z.object({ +export const IssuingDisputeFraudulentEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'explanation': z.string().optional() }); -export type IssuingDisputeFraudulentEvidenceModel = z.infer; - -export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ +export const IssuingDisputeMerchandiseNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'explanation': z.string().optional(), 'received_at': z.number().int().optional(), @@ -4385,16 +12348,12 @@ export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ 'returned_at': z.number().int().optional() }); -export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeNoValidAuthorizationEvidence = z.object({ +export const IssuingDisputeNoValidAuthorizationEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'explanation': z.string().optional() }); -export type IssuingDisputeNoValidAuthorizationEvidenceModel = z.infer; - -export const IssuingDisputeNotReceivedEvidence = z.object({ +export const IssuingDisputeNotReceivedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'expected_at': z.number().int().optional(), 'explanation': z.string().optional(), @@ -4402,18 +12361,14 @@ export const IssuingDisputeNotReceivedEvidence = z.object({ 'product_type': z.enum(['merchandise', 'service']).optional() }); -export type IssuingDisputeNotReceivedEvidenceModel = z.infer; - -export const IssuingDisputeOtherEvidence = z.object({ +export const IssuingDisputeOtherEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'explanation': z.string().optional(), 'product_description': z.string().optional(), 'product_type': z.enum(['merchandise', 'service']).optional() }); -export type IssuingDisputeOtherEvidenceModel = z.infer; - -export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ +export const IssuingDisputeServiceNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]).optional(), 'canceled_at': z.number().int().optional(), 'cancellation_reason': z.string().optional(), @@ -4421,9 +12376,7 @@ export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ 'received_at': z.number().int().optional() }); -export type IssuingDisputeServiceNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeEvidence = z.object({ +export const IssuingDisputeEvidence: z.ZodType = z.object({ 'canceled': IssuingDisputeCanceledEvidence.optional(), 'duplicate': IssuingDisputeDuplicateEvidence.optional(), 'fraudulent': IssuingDisputeFraudulentEvidence.optional(), @@ -4435,15 +12388,11 @@ export const IssuingDisputeEvidence = z.object({ 'service_not_as_described': IssuingDisputeServiceNotAsDescribedEvidence.optional() }); -export type IssuingDisputeEvidenceModel = z.infer; - -export const IssuingDisputeTreasury = z.object({ +export const IssuingDisputeTreasury: z.ZodType = z.object({ 'debit_reversal': z.string().optional(), 'received_debit': z.string() }); -export type IssuingDisputeTreasuryModel = z.infer; - export const IssuingDispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)).optional(), @@ -4460,15 +12409,13 @@ export const IssuingDispute: z.ZodType = z.object({ 'treasury': z.union([IssuingDisputeTreasury]).optional() }); -export const IssuingTransactionNetworkData = z.object({ +export const IssuingTransactionNetworkData: z.ZodType = z.object({ 'authorization_code': z.string().optional(), 'processing_date': z.string().optional(), 'transaction_id': z.string().optional() }); -export type IssuingTransactionNetworkDataModel = z.infer; - -export const IssuingTransactionFleetCardholderPromptData = z.object({ +export const IssuingTransactionFleetCardholderPromptData: z.ZodType = z.object({ 'driver_id': z.string().optional(), 'odometer': z.number().int().optional(), 'unspecified_id': z.string().optional(), @@ -4476,45 +12423,33 @@ export const IssuingTransactionFleetCardholderPromptData = z.object({ 'vehicle_number': z.string().optional() }); -export type IssuingTransactionFleetCardholderPromptDataModel = z.infer; - -export const IssuingTransactionFleetFuelPriceData = z.object({ +export const IssuingTransactionFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string().optional() }); -export type IssuingTransactionFleetFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetNonFuelPriceData = z.object({ +export const IssuingTransactionFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string().optional() }); -export type IssuingTransactionFleetNonFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetTaxData = z.object({ +export const IssuingTransactionFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string().optional(), 'national_amount_decimal': z.string().optional() }); -export type IssuingTransactionFleetTaxDataModel = z.infer; - -export const IssuingTransactionFleetReportedBreakdown = z.object({ +export const IssuingTransactionFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingTransactionFleetFuelPriceData]).optional(), 'non_fuel': z.union([IssuingTransactionFleetNonFuelPriceData]).optional(), 'tax': z.union([IssuingTransactionFleetTaxData]).optional() }); -export type IssuingTransactionFleetReportedBreakdownModel = z.infer; - -export const IssuingTransactionFleetData = z.object({ +export const IssuingTransactionFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingTransactionFleetCardholderPromptData]).optional(), 'purchase_type': z.string().optional(), 'reported_breakdown': z.union([IssuingTransactionFleetReportedBreakdown]).optional(), 'service_type': z.string().optional() }); -export type IssuingTransactionFleetDataModel = z.infer; - -export const IssuingTransactionFlightDataLeg = z.object({ +export const IssuingTransactionFlightDataLeg: z.ZodType = z.object({ 'arrival_airport_code': z.string().optional(), 'carrier': z.string().optional(), 'departure_airport_code': z.string().optional(), @@ -4523,9 +12458,7 @@ export const IssuingTransactionFlightDataLeg = z.object({ 'stopover_allowed': z.boolean().optional() }); -export type IssuingTransactionFlightDataLegModel = z.infer; - -export const IssuingTransactionFlightData = z.object({ +export const IssuingTransactionFlightData: z.ZodType = z.object({ 'departure_at': z.number().int().optional(), 'passenger_name': z.string().optional(), 'refundable': z.boolean().optional(), @@ -4533,9 +12466,7 @@ export const IssuingTransactionFlightData = z.object({ 'travel_agency': z.string().optional() }); -export type IssuingTransactionFlightDataModel = z.infer; - -export const IssuingTransactionFuelData = z.object({ +export const IssuingTransactionFuelData: z.ZodType = z.object({ 'industry_product_code': z.string().optional(), 'quantity_decimal': z.string().optional(), 'type': z.string(), @@ -4543,25 +12474,19 @@ export const IssuingTransactionFuelData = z.object({ 'unit_cost_decimal': z.string() }); -export type IssuingTransactionFuelDataModel = z.infer; - -export const IssuingTransactionLodgingData = z.object({ +export const IssuingTransactionLodgingData: z.ZodType = z.object({ 'check_in_at': z.number().int().optional(), 'nights': z.number().int().optional() }); -export type IssuingTransactionLodgingDataModel = z.infer; - -export const IssuingTransactionReceiptData = z.object({ +export const IssuingTransactionReceiptData: z.ZodType = z.object({ 'description': z.string().optional(), 'quantity': z.number().optional(), 'total': z.number().int().optional(), 'unit_cost': z.number().int().optional() }); -export type IssuingTransactionReceiptDataModel = z.infer; - -export const IssuingTransactionPurchaseDetails = z.object({ +export const IssuingTransactionPurchaseDetails: z.ZodType = z.object({ 'fleet': z.union([IssuingTransactionFleetData]).optional(), 'flight': z.union([IssuingTransactionFlightData]).optional(), 'fuel': z.union([IssuingTransactionFuelData]).optional(), @@ -4570,15 +12495,11 @@ export const IssuingTransactionPurchaseDetails = z.object({ 'reference': z.string().optional() }); -export type IssuingTransactionPurchaseDetailsModel = z.infer; - -export const IssuingTransactionTreasury = z.object({ +export const IssuingTransactionTreasury: z.ZodType = z.object({ 'received_credit': z.string().optional(), 'received_debit': z.string().optional() }); -export type IssuingTransactionTreasuryModel = z.infer; - export const IssuingTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingTransactionAmountDetails]).optional(), @@ -4604,28 +12525,22 @@ export const IssuingTransaction: z.ZodType = z.object({ 'wallet': z.enum(['apple_pay', 'google_pay', 'samsung_pay']).optional() }); -export const IssuingAuthorizationTreasury = z.object({ +export const IssuingAuthorizationTreasury: z.ZodType = z.object({ 'received_credits': z.array(z.string()), 'received_debits': z.array(z.string()), 'transaction': z.string().optional() }); -export type IssuingAuthorizationTreasuryModel = z.infer; - -export const IssuingAuthorizationAuthenticationExemption = z.object({ +export const IssuingAuthorizationAuthenticationExemption: z.ZodType = z.object({ 'claimed_by': z.enum(['acquirer', 'issuer']), 'type': z.enum(['low_value_transaction', 'transaction_risk_analysis', 'unknown']) }); -export type IssuingAuthorizationAuthenticationExemptionModel = z.infer; - -export const IssuingAuthorizationThreeDSecure = z.object({ +export const IssuingAuthorizationThreeDSecure: z.ZodType = z.object({ 'result': z.enum(['attempt_acknowledged', 'authenticated', 'failed', 'required']) }); -export type IssuingAuthorizationThreeDSecureModel = z.infer; - -export const IssuingAuthorizationVerificationData = z.object({ +export const IssuingAuthorizationVerificationData: z.ZodType = z.object({ 'address_line1_check': z.enum(['match', 'mismatch', 'not_provided']), 'address_postal_code_check': z.enum(['match', 'mismatch', 'not_provided']), 'authentication_exemption': z.union([IssuingAuthorizationAuthenticationExemption]).optional(), @@ -4635,8 +12550,6 @@ export const IssuingAuthorizationVerificationData = z.object({ 'three_d_secure': z.union([IssuingAuthorizationThreeDSecure]).optional() }); -export type IssuingAuthorizationVerificationDataModel = z.infer; - export const IssuingAuthorization: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]).optional(), @@ -4669,31 +12582,25 @@ export const IssuingAuthorization: z.ZodType = z.obje 'wallet': z.string().optional() }); -export const DeletedBankAccount = z.object({ +export const DeletedBankAccount: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['bank_account']) }); -export type DeletedBankAccountModel = z.infer; - -export const DeletedCard = z.object({ +export const DeletedCard: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['card']) }); -export type DeletedCardModel = z.infer; - -export const PayoutsTraceId = z.object({ +export const PayoutsTraceId: z.ZodType = z.object({ 'status': z.string(), 'value': z.string().optional() }); -export type PayoutsTraceIdModel = z.infer; - export const Payout: z.ZodType = z.object({ 'amount': z.number().int(), 'application_fee': z.union([z.string(), z.lazy(() => ApplicationFee)]).optional(), @@ -4724,7 +12631,7 @@ export const Payout: z.ZodType = z.object({ 'type': z.enum(['bank_account', 'card']) }); -export const ReserveTransaction = z.object({ +export const ReserveTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'description': z.string().optional(), @@ -4732,9 +12639,7 @@ export const ReserveTransaction = z.object({ 'object': z.enum(['reserve_transaction']) }); -export type ReserveTransactionModel = z.infer; - -export const TaxDeductedAtSource = z.object({ +export const TaxDeductedAtSource: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['tax_deducted_at_source']), 'period_end': z.number().int(), @@ -4742,8 +12647,6 @@ export const TaxDeductedAtSource = z.object({ 'tax_deduction_account_number': z.string() }); -export type TaxDeductedAtSourceModel = z.infer; - export const Topup: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transaction': z.union([z.string(), z.lazy(() => BalanceTransaction)]).optional(), @@ -4782,14 +12685,12 @@ export const BalanceTransaction: z.ZodType = z.object({ 'type': z.enum(['adjustment', 'advance', 'advance_funding', 'anticipation_repayment', 'application_fee', 'application_fee_refund', 'charge', 'climate_order_purchase', 'climate_order_refund', 'connect_collection_transfer', 'contribution', 'issuing_authorization_hold', 'issuing_authorization_release', 'issuing_dispute', 'issuing_transaction', 'obligation_outbound', 'obligation_reversal_inbound', 'payment', 'payment_failure_refund', 'payment_network_reserve_hold', 'payment_network_reserve_release', 'payment_refund', 'payment_reversal', 'payment_unreconciled', 'payout', 'payout_cancel', 'payout_failure', 'payout_minimum_balance_hold', 'payout_minimum_balance_release', 'refund', 'refund_failure', 'reserve_transaction', 'reserved_funds', 'stripe_balance_payment_debit', 'stripe_balance_payment_debit_reversal', 'stripe_fee', 'stripe_fx_fee', 'tax_fee', 'topup', 'topup_reversal', 'transfer', 'transfer_cancel', 'transfer_failure', 'transfer_refund']) }); -export const PlatformEarningFeeSource = z.object({ +export const PlatformEarningFeeSource: z.ZodType = z.object({ 'charge': z.string().optional(), 'payout': z.string().optional(), 'type': z.enum(['charge', 'payout']) }); -export type PlatformEarningFeeSourceModel = z.infer; - export const ApplicationFee: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'amount': z.number().int(), @@ -4813,22 +12714,18 @@ export const ApplicationFee: z.ZodType = z.object({ }) }); -export const ChargeFraudDetails = z.object({ +export const ChargeFraudDetails: z.ZodType = z.object({ 'stripe_report': z.string().optional(), 'user_report': z.string().optional() }); -export type ChargeFraudDetailsModel = z.infer; - -export const Rule = z.object({ +export const Rule: z.ZodType = z.object({ 'action': z.string(), 'id': z.string(), 'predicate': z.string() }); -export type RuleModel = z.infer; - -export const ChargeOutcome = z.object({ +export const ChargeOutcome: z.ZodType = z.object({ 'advice_code': z.enum(['confirm_card_data', 'do_not_try_again', 'try_again_later']).optional(), 'network_advice_code': z.string().optional(), 'network_decline_code': z.string().optional(), @@ -4841,18 +12738,14 @@ export const ChargeOutcome = z.object({ 'type': z.string() }); -export type ChargeOutcomeModel = z.infer; - -export const PaymentMethodDetailsAchCreditTransfer = z.object({ +export const PaymentMethodDetailsAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string().optional(), 'bank_name': z.string().optional(), 'routing_number': z.string().optional(), 'swift_code': z.string().optional() }); -export type PaymentMethodDetailsAchCreditTransferModel = z.infer; - -export const PaymentMethodDetailsAchDebit = z.object({ +export const PaymentMethodDetailsAchDebit: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'bank_name': z.string().optional(), 'country': z.string().optional(), @@ -4861,9 +12754,7 @@ export const PaymentMethodDetailsAchDebit = z.object({ 'routing_number': z.string().optional() }); -export type PaymentMethodDetailsAchDebitModel = z.infer; - -export const PaymentMethodDetailsAcssDebit = z.object({ +export const PaymentMethodDetailsAcssDebit: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'fingerprint': z.string().optional(), 'institution_number': z.string().optional(), @@ -4872,45 +12763,33 @@ export const PaymentMethodDetailsAcssDebit = z.object({ 'transit_number': z.string().optional() }); -export type PaymentMethodDetailsAcssDebitModel = z.infer; - -export const PaymentMethodDetailsAffirm = z.object({ +export const PaymentMethodDetailsAffirm: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsAffirmModel = z.infer; - -export const PaymentMethodDetailsAfterpayClearpay = z.object({ +export const PaymentMethodDetailsAfterpayClearpay: z.ZodType = z.object({ 'order_id': z.string().optional(), 'reference': z.string().optional() }); -export type PaymentMethodDetailsAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipayDetails = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipayDetails: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'fingerprint': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = z.infer; - -export const AlmaInstallments = z.object({ +export const AlmaInstallments: z.ZodType = z.object({ 'count': z.number().int() }); -export type AlmaInstallmentsModel = z.infer; - -export const PaymentMethodDetailsAlma = z.object({ +export const PaymentMethodDetailsAlma: z.ZodType = z.object({ 'installments': AlmaInstallments.optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsAlmaModel = z.infer; - -export const PaymentMethodDetailsPassthroughCard = z.object({ +export const PaymentMethodDetailsPassthroughCard: z.ZodType = z.object({ 'brand': z.string().optional(), 'country': z.string().optional(), 'exp_month': z.number().int().optional(), @@ -4919,40 +12798,30 @@ export const PaymentMethodDetailsPassthroughCard = z.object({ 'last4': z.string().optional() }); -export type PaymentMethodDetailsPassthroughCardModel = z.infer; - -export const AmazonPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const AmazonPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']).optional() }); -export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsAmazonPay = z.object({ +export const PaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'funding': AmazonPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsAmazonPayModel = z.infer; - -export const PaymentMethodDetailsAuBecsDebit = z.object({ +export const PaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'mandate': z.string().optional() }); -export type PaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const PaymentMethodDetailsBacsDebit = z.object({ +export const PaymentMethodDetailsBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'mandate': z.string().optional(), 'sort_code': z.string().optional() }); -export type PaymentMethodDetailsBacsDebitModel = z.infer; - export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), @@ -4964,78 +12833,56 @@ export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsBillieModel = z.infer; - -export const PaymentMethodDetailsBlik = z.object({ +export const PaymentMethodDetailsBlik: z.ZodType = z.object({ 'buyer_id': z.string().optional() }); -export type PaymentMethodDetailsBlikModel = z.infer; - -export const PaymentMethodDetailsBoleto = z.object({ +export const PaymentMethodDetailsBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodDetailsBoletoModel = z.infer; - -export const PaymentMethodDetailsCardChecks = z.object({ +export const PaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_postal_code_check': z.string().optional(), 'cvc_check': z.string().optional() }); -export type PaymentMethodDetailsCardChecksModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization: z.ZodType = z.object({ 'status': z.enum(['disabled', 'enabled']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = z.infer; - -export const PaymentMethodDetailsCardInstallmentsPlan = z.object({ +export const PaymentMethodDetailsCardInstallmentsPlan: z.ZodType = z.object({ 'count': z.number().int().optional(), 'interval': z.enum(['month']).optional(), 'type': z.enum(['bonus', 'fixed_count', 'revolving']) }); -export type PaymentMethodDetailsCardInstallmentsPlanModel = z.infer; - -export const PaymentMethodDetailsCardInstallments = z.object({ +export const PaymentMethodDetailsCardInstallments: z.ZodType = z.object({ 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]).optional() }); -export type PaymentMethodDetailsCardInstallmentsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = z.infer; - -export const PaymentMethodDetailsCardNetworkToken = z.object({ +export const PaymentMethodDetailsCardNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentMethodDetailsCardNetworkTokenModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture: z.ZodType = z.object({ 'maximum_amount_capturable': z.number().int(), 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = z.infer; - -export const ThreeDSecureDetailsCharge = z.object({ +export const ThreeDSecureDetailsCharge: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']).optional(), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']).optional(), 'exemption_indicator': z.enum(['low_risk', 'none']).optional(), @@ -5046,45 +12893,33 @@ export const ThreeDSecureDetailsCharge = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']).optional() }); -export type ThreeDSecureDetailsChargeModel = z.infer; - -export const PaymentMethodDetailsCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodDetailsCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWalletLink = z.object({ +export const PaymentMethodDetailsCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletLinkModel = z.infer; - -export const PaymentMethodDetailsCardWalletMasterpass = z.object({ +export const PaymentMethodDetailsCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), 'shipping_address': z.union([Address]).optional() }); -export type PaymentMethodDetailsCardWalletMasterpassModel = z.infer; - -export const PaymentMethodDetailsCardWalletSamsungPay = z.object({ +export const PaymentMethodDetailsCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodDetailsCardWalletVisaCheckout = z.object({ +export const PaymentMethodDetailsCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), 'shipping_address': z.union([Address]).optional() }); -export type PaymentMethodDetailsCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWallet = z.object({ +export const PaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodDetailsCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'dynamic_last4': z.string().optional(), @@ -5096,9 +12931,7 @@ export const PaymentMethodDetailsCardWallet = z.object({ 'visa_checkout': PaymentMethodDetailsCardWalletVisaCheckout.optional() }); -export type PaymentMethodDetailsCardWalletModel = z.infer; - -export const PaymentMethodDetailsCard = z.object({ +export const PaymentMethodDetailsCard: z.ZodType = z.object({ 'amount_authorized': z.number().int().optional(), 'authorization_code': z.string().optional(), 'brand': z.string().optional(), @@ -5124,60 +12957,44 @@ export const PaymentMethodDetailsCard = z.object({ 'wallet': z.union([PaymentMethodDetailsCardWallet]).optional() }); -export type PaymentMethodDetailsCardModel = z.infer; - -export const PaymentMethodDetailsCashapp = z.object({ +export const PaymentMethodDetailsCashapp: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'cashtag': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsCashappModel = z.infer; - -export const PaymentMethodDetailsCrypto = z.object({ +export const PaymentMethodDetailsCrypto: z.ZodType = z.object({ 'buyer_address': z.string().optional(), 'network': z.enum(['base', 'ethereum', 'polygon', 'solana']).optional(), 'token_currency': z.enum(['usdc', 'usdg', 'usdp']).optional(), 'transaction_hash': z.string().optional() }); -export type PaymentMethodDetailsCryptoModel = z.infer; - -export const PaymentMethodDetailsCustomerBalance = z.object({ +export const PaymentMethodDetailsCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCustomerBalanceModel = z.infer; - -export const PaymentMethodDetailsEps = z.object({ +export const PaymentMethodDetailsEps: z.ZodType = z.object({ 'bank': z.enum(['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']).optional(), 'verified_name': z.string().optional() }); -export type PaymentMethodDetailsEpsModel = z.infer; - -export const PaymentMethodDetailsFpx = z.object({ +export const PaymentMethodDetailsFpx: z.ZodType = z.object({ 'bank': z.enum(['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']), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsFpxModel = z.infer; - -export const PaymentMethodDetailsGiropay = z.object({ +export const PaymentMethodDetailsGiropay: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'verified_name': z.string().optional() }); -export type PaymentMethodDetailsGiropayModel = z.infer; - -export const PaymentMethodDetailsGrabpay = z.object({ +export const PaymentMethodDetailsGrabpay: z.ZodType = z.object({ 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsGrabpayModel = z.infer; - export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']).optional(), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']).optional(), @@ -5188,7 +13005,7 @@ export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'savings', 'unknown']).optional(), 'application_cryptogram': z.string().optional(), 'application_preferred_name': z.string().optional(), @@ -5200,9 +13017,7 @@ export const PaymentMethodDetailsInteracPresentReceipt = z.object({ 'transaction_status_information': z.string().optional() }); -export type PaymentMethodDetailsInteracPresentReceiptModel = z.infer; - -export const PaymentMethodDetailsInteracPresent = z.object({ +export const PaymentMethodDetailsInteracPresent: z.ZodType = z.object({ 'brand': z.string().optional(), 'cardholder_name': z.string().optional(), 'country': z.string().optional(), @@ -5222,69 +13037,49 @@ export const PaymentMethodDetailsInteracPresent = z.object({ 'receipt': z.union([PaymentMethodDetailsInteracPresentReceipt]).optional() }); -export type PaymentMethodDetailsInteracPresentModel = z.infer; - -export const PaymentMethodDetailsKakaoPay = z.object({ +export const PaymentMethodDetailsKakaoPay: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsKakaoPayModel = z.infer; - -export const KlarnaAddress = z.object({ +export const KlarnaAddress: z.ZodType = z.object({ 'country': z.string().optional() }); -export type KlarnaAddressModel = z.infer; - -export const KlarnaPayerDetails = z.object({ +export const KlarnaPayerDetails: z.ZodType = z.object({ 'address': z.union([KlarnaAddress]).optional() }); -export type KlarnaPayerDetailsModel = z.infer; - -export const PaymentMethodDetailsKlarna = z.object({ +export const PaymentMethodDetailsKlarna: z.ZodType = z.object({ 'payer_details': z.union([KlarnaPayerDetails]).optional(), 'payment_method_category': z.string().optional(), 'preferred_locale': z.string().optional() }); -export type PaymentMethodDetailsKlarnaModel = z.infer; - -export const PaymentMethodDetailsKonbiniStore = z.object({ +export const PaymentMethodDetailsKonbiniStore: z.ZodType = z.object({ 'chain': z.enum(['familymart', 'lawson', 'ministop', 'seicomart']).optional() }); -export type PaymentMethodDetailsKonbiniStoreModel = z.infer; - -export const PaymentMethodDetailsKonbini = z.object({ +export const PaymentMethodDetailsKonbini: z.ZodType = z.object({ 'store': z.union([PaymentMethodDetailsKonbiniStore]).optional() }); -export type PaymentMethodDetailsKonbiniModel = z.infer; - -export const PaymentMethodDetailsKrCard = z.object({ +export const PaymentMethodDetailsKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']).optional(), 'buyer_id': z.string().optional(), 'last4': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsKrCardModel = z.infer; - -export const PaymentMethodDetailsLink = z.object({ +export const PaymentMethodDetailsLink: z.ZodType = z.object({ 'country': z.string().optional() }); -export type PaymentMethodDetailsLinkModel = z.infer; - -export const PaymentMethodDetailsMbWay = z.object({ +export const PaymentMethodDetailsMbWay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsMbWayModel = z.infer; - -export const InternalCard = z.object({ +export const InternalCard: z.ZodType = z.object({ 'brand': z.string().optional(), 'country': z.string().optional(), 'exp_month': z.number().int().optional(), @@ -5292,29 +13087,21 @@ export const InternalCard = z.object({ 'last4': z.string().optional() }); -export type InternalCardModel = z.infer; - -export const PaymentMethodDetailsMobilepay = z.object({ +export const PaymentMethodDetailsMobilepay: z.ZodType = z.object({ 'card': z.union([InternalCard]).optional() }); -export type PaymentMethodDetailsMobilepayModel = z.infer; - -export const PaymentMethodDetailsMultibanco = z.object({ +export const PaymentMethodDetailsMultibanco: z.ZodType = z.object({ 'entity': z.string().optional(), 'reference': z.string().optional() }); -export type PaymentMethodDetailsMultibancoModel = z.infer; - -export const PaymentMethodDetailsNaverPay = z.object({ +export const PaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsNaverPayModel = z.infer; - -export const PaymentMethodDetailsNzBankAccount = z.object({ +export const PaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string().optional(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -5323,51 +13110,37 @@ export const PaymentMethodDetailsNzBankAccount = z.object({ 'suffix': z.string().optional() }); -export type PaymentMethodDetailsNzBankAccountModel = z.infer; - -export const PaymentMethodDetailsOxxo = z.object({ +export const PaymentMethodDetailsOxxo: z.ZodType = z.object({ 'number': z.string().optional() }); -export type PaymentMethodDetailsOxxoModel = z.infer; - -export const PaymentMethodDetailsP24 = z.object({ +export const PaymentMethodDetailsP24: z.ZodType = z.object({ 'bank': z.enum(['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']).optional(), 'reference': z.string().optional(), 'verified_name': z.string().optional() }); -export type PaymentMethodDetailsP24Model = z.infer; - -export const PaymentMethodDetailsPayByBank = z.object({ +export const PaymentMethodDetailsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodDetailsPayByBankModel = z.infer; - -export const PaymentMethodDetailsPayco = z.object({ +export const PaymentMethodDetailsPayco: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsPaycoModel = z.infer; - -export const PaymentMethodDetailsPaynow = z.object({ +export const PaymentMethodDetailsPaynow: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'reference': z.string().optional() }); -export type PaymentMethodDetailsPaynowModel = z.infer; - -export const PaypalSellerProtection = z.object({ +export const PaypalSellerProtection: z.ZodType = z.object({ 'dispute_categories': z.array(z.enum(['fraudulent', 'product_not_received'])).optional(), 'status': z.enum(['eligible', 'not_eligible', 'partially_eligible']) }); -export type PaypalSellerProtectionModel = z.infer; - -export const PaymentMethodDetailsPaypal = z.object({ +export const PaymentMethodDetailsPaypal: z.ZodType = z.object({ 'country': z.string().optional(), 'payer_email': z.string().optional(), 'payer_id': z.string().optional(), @@ -5376,48 +13149,34 @@ export const PaymentMethodDetailsPaypal = z.object({ 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsPaypalModel = z.infer; - -export const PaymentMethodDetailsPix = z.object({ +export const PaymentMethodDetailsPix: z.ZodType = z.object({ 'bank_transaction_id': z.string().optional() }); -export type PaymentMethodDetailsPixModel = z.infer; - -export const PaymentMethodDetailsPromptpay = z.object({ +export const PaymentMethodDetailsPromptpay: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type PaymentMethodDetailsPromptpayModel = z.infer; - -export const RevolutPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const RevolutPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']).optional() }); -export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsRevolutPay = z.object({ +export const PaymentMethodDetailsRevolutPay: z.ZodType = z.object({ 'funding': RevolutPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsRevolutPayModel = z.infer; - -export const PaymentMethodDetailsSamsungPay = z.object({ +export const PaymentMethodDetailsSamsungPay: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsSamsungPayModel = z.infer; - -export const PaymentMethodDetailsSatispay = z.object({ +export const PaymentMethodDetailsSatispay: z.ZodType = z.object({ 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsSatispayModel = z.infer; - -export const PaymentMethodDetailsSepaDebit = z.object({ +export const PaymentMethodDetailsSepaDebit: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'branch_code': z.string().optional(), 'country': z.string().optional(), @@ -5426,8 +13185,6 @@ export const PaymentMethodDetailsSepaDebit = z.object({ 'mandate': z.string().optional() }); -export type PaymentMethodDetailsSepaDebitModel = z.infer; - export const PaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), @@ -5440,27 +13197,21 @@ export const PaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type PaymentMethodDetailsStripeAccountModel = z.infer; - -export const PaymentMethodDetailsSwish = z.object({ +export const PaymentMethodDetailsSwish: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'payment_reference': z.string().optional(), 'verified_phone_last4': z.string().optional() }); -export type PaymentMethodDetailsSwishModel = z.infer; - -export const PaymentMethodDetailsTwint = z.object({ +export const PaymentMethodDetailsTwint: z.ZodType = z.object({ }); -export type PaymentMethodDetailsTwintModel = z.infer; - -export const PaymentMethodDetailsUsBankAccount = z.object({ +export const PaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -5471,29 +13222,21 @@ export const PaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string().optional() }); -export type PaymentMethodDetailsUsBankAccountModel = z.infer; - -export const PaymentMethodDetailsWechat = z.object({ +export const PaymentMethodDetailsWechat: z.ZodType = z.object({ }); -export type PaymentMethodDetailsWechatModel = z.infer; - -export const PaymentMethodDetailsWechatPay = z.object({ +export const PaymentMethodDetailsWechatPay: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string().optional() }); -export type PaymentMethodDetailsWechatPayModel = z.infer; - -export const PaymentMethodDetailsZip = z.object({ +export const PaymentMethodDetailsZip: z.ZodType = z.object({ }); -export type PaymentMethodDetailsZipModel = z.infer; - export const PaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), @@ -5553,13 +13296,11 @@ export const PaymentMethodDetails: z.ZodType = z.obje 'zip': PaymentMethodDetailsZip.optional() }); -export const RadarRadarOptions = z.object({ +export const RadarRadarOptions: z.ZodType = z.object({ 'session': z.string().optional() }); -export type RadarRadarOptionsModel = z.infer; - -export const RadarReviewResourceLocation = z.object({ +export const RadarReviewResourceLocation: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'latitude': z.number().optional(), @@ -5567,17 +13308,13 @@ export const RadarReviewResourceLocation = z.object({ 'region': z.string().optional() }); -export type RadarReviewResourceLocationModel = z.infer; - -export const RadarReviewResourceSession = z.object({ +export const RadarReviewResourceSession: z.ZodType = z.object({ 'browser': z.string().optional(), 'device': z.string().optional(), 'platform': z.string().optional(), 'version': z.string().optional() }); -export type RadarReviewResourceSessionModel = z.infer; - export const Review: z.ZodType = z.object({ 'billing_zip': z.string().optional(), 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), @@ -5653,48 +13390,38 @@ export const Charge: z.ZodType = z.object({ 'transfer_group': z.string().optional() }); -export const PaymentIntentNextActionAlipayHandleRedirect = z.object({ +export const PaymentIntentNextActionAlipayHandleRedirect: z.ZodType = z.object({ 'native_data': z.string().optional(), 'native_url': z.string().optional(), 'return_url': z.string().optional(), 'url': z.string().optional() }); -export type PaymentIntentNextActionAlipayHandleRedirectModel = z.infer; - -export const PaymentIntentNextActionBoleto = z.object({ +export const PaymentIntentNextActionBoleto: z.ZodType = z.object({ 'expires_at': z.number().int().optional(), 'hosted_voucher_url': z.string().optional(), 'number': z.string().optional(), 'pdf': z.string().optional() }); -export type PaymentIntentNextActionBoletoModel = z.infer; - -export const PaymentIntentNextActionCardAwaitNotification = z.object({ +export const PaymentIntentNextActionCardAwaitNotification: z.ZodType = z.object({ 'charge_attempt_at': z.number().int().optional(), 'customer_approval_required': z.boolean().optional() }); -export type PaymentIntentNextActionCardAwaitNotificationModel = z.infer; - -export const PaymentIntentNextActionCashappQrCode = z.object({ +export const PaymentIntentNextActionCashappQrCode: z.ZodType = z.object({ 'expires_at': z.number().int(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionCashappQrCodeModel = z.infer; - -export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'mobile_auth_url': z.string(), 'qr_code': PaymentIntentNextActionCashappQrCode }); -export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const FundingInstructionsBankTransferAbaRecord = z.object({ +export const FundingInstructionsBankTransferAbaRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5704,9 +13431,7 @@ export const FundingInstructionsBankTransferAbaRecord = z.object({ 'routing_number': z.string() }); -export type FundingInstructionsBankTransferAbaRecordModel = z.infer; - -export const FundingInstructionsBankTransferIbanRecord = z.object({ +export const FundingInstructionsBankTransferIbanRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -5715,9 +13440,7 @@ export const FundingInstructionsBankTransferIbanRecord = z.object({ 'iban': z.string() }); -export type FundingInstructionsBankTransferIbanRecordModel = z.infer; - -export const FundingInstructionsBankTransferSortCodeRecord = z.object({ +export const FundingInstructionsBankTransferSortCodeRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5725,9 +13448,7 @@ export const FundingInstructionsBankTransferSortCodeRecord = z.object({ 'sort_code': z.string() }); -export type FundingInstructionsBankTransferSortCodeRecordModel = z.infer; - -export const FundingInstructionsBankTransferSpeiRecord = z.object({ +export const FundingInstructionsBankTransferSpeiRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -5736,9 +13457,7 @@ export const FundingInstructionsBankTransferSpeiRecord = z.object({ 'clabe': z.string() }); -export type FundingInstructionsBankTransferSpeiRecordModel = z.infer; - -export const FundingInstructionsBankTransferSwiftRecord = z.object({ +export const FundingInstructionsBankTransferSwiftRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5748,9 +13467,7 @@ export const FundingInstructionsBankTransferSwiftRecord = z.object({ 'swift_code': z.string() }); -export type FundingInstructionsBankTransferSwiftRecordModel = z.infer; - -export const FundingInstructionsBankTransferZenginRecord = z.object({ +export const FundingInstructionsBankTransferZenginRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string().optional(), 'account_number': z.string().optional(), @@ -5762,9 +13479,7 @@ export const FundingInstructionsBankTransferZenginRecord = z.object({ 'branch_name': z.string().optional() }); -export type FundingInstructionsBankTransferZenginRecordModel = z.infer; - -export const FundingInstructionsBankTransferFinancialAddress = z.object({ +export const FundingInstructionsBankTransferFinancialAddress: z.ZodType = z.object({ 'aba': FundingInstructionsBankTransferAbaRecord.optional(), 'iban': FundingInstructionsBankTransferIbanRecord.optional(), 'sort_code': FundingInstructionsBankTransferSortCodeRecord.optional(), @@ -5775,9 +13490,7 @@ export const FundingInstructionsBankTransferFinancialAddress = z.object({ 'zengin': FundingInstructionsBankTransferZenginRecord.optional() }); -export type FundingInstructionsBankTransferFinancialAddressModel = z.infer; - -export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ +export const PaymentIntentNextActionDisplayBankTransferInstructions: z.ZodType = z.object({ 'amount_remaining': z.number().int().optional(), 'currency': z.string().optional(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress).optional(), @@ -5786,80 +13499,60 @@ export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = z.infer; - -export const PaymentIntentNextActionKonbiniFamilymart = z.object({ +export const PaymentIntentNextActionKonbiniFamilymart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniFamilymartModel = z.infer; - -export const PaymentIntentNextActionKonbiniLawson = z.object({ +export const PaymentIntentNextActionKonbiniLawson: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniLawsonModel = z.infer; - -export const PaymentIntentNextActionKonbiniMinistop = z.object({ +export const PaymentIntentNextActionKonbiniMinistop: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniMinistopModel = z.infer; - -export const PaymentIntentNextActionKonbiniSeicomart = z.object({ +export const PaymentIntentNextActionKonbiniSeicomart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniSeicomartModel = z.infer; - -export const PaymentIntentNextActionKonbiniStores = z.object({ +export const PaymentIntentNextActionKonbiniStores: z.ZodType = z.object({ 'familymart': z.union([PaymentIntentNextActionKonbiniFamilymart]).optional(), 'lawson': z.union([PaymentIntentNextActionKonbiniLawson]).optional(), 'ministop': z.union([PaymentIntentNextActionKonbiniMinistop]).optional(), 'seicomart': z.union([PaymentIntentNextActionKonbiniSeicomart]).optional() }); -export type PaymentIntentNextActionKonbiniStoresModel = z.infer; - -export const PaymentIntentNextActionKonbini = z.object({ +export const PaymentIntentNextActionKonbini: z.ZodType = z.object({ 'expires_at': z.number().int(), 'hosted_voucher_url': z.string().optional(), 'stores': PaymentIntentNextActionKonbiniStores }); -export type PaymentIntentNextActionKonbiniModel = z.infer; - -export const PaymentIntentNextActionDisplayMultibancoDetails = z.object({ +export const PaymentIntentNextActionDisplayMultibancoDetails: z.ZodType = z.object({ 'entity': z.string().optional(), 'expires_at': z.number().int().optional(), 'hosted_voucher_url': z.string().optional(), 'reference': z.string().optional() }); -export type PaymentIntentNextActionDisplayMultibancoDetailsModel = z.infer; - -export const PaymentIntentNextActionDisplayOxxoDetails = z.object({ +export const PaymentIntentNextActionDisplayOxxoDetails: z.ZodType = z.object({ 'expires_after': z.number().int().optional(), 'hosted_voucher_url': z.string().optional(), 'number': z.string().optional() }); -export type PaymentIntentNextActionDisplayOxxoDetailsModel = z.infer; - -export const PaymentIntentNextActionPaynowDisplayQrCode = z.object({ +export const PaymentIntentNextActionPaynowDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string().optional(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPaynowDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPixDisplayQrCode = z.object({ +export const PaymentIntentNextActionPixDisplayQrCode: z.ZodType = z.object({ 'data': z.string().optional(), 'expires_at': z.number().int().optional(), 'hosted_instructions_url': z.string().optional(), @@ -5867,48 +13560,36 @@ export const PaymentIntentNextActionPixDisplayQrCode = z.object({ 'image_url_svg': z.string().optional() }); -export type PaymentIntentNextActionPixDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPromptpayDisplayQrCode = z.object({ +export const PaymentIntentNextActionPromptpayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionRedirectToUrl = z.object({ +export const PaymentIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string().optional(), 'url': z.string().optional() }); -export type PaymentIntentNextActionRedirectToUrlModel = z.infer; - -export const PaymentIntentNextActionSwishQrCode = z.object({ +export const PaymentIntentNextActionSwishQrCode: z.ZodType = z.object({ 'data': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionSwishQrCodeModel = z.infer; - -export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'qr_code': PaymentIntentNextActionSwishQrCode }); -export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionVerifyWithMicrodeposits = z.object({ +export const PaymentIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']).optional() }); -export type PaymentIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ +export const PaymentIntentNextActionWechatPayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_data_url': z.string(), @@ -5916,9 +13597,7 @@ export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ 'image_url_svg': z.string() }); -export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToAndroidApp: z.ZodType = z.object({ 'app_id': z.string(), 'nonce_str': z.string(), 'package': z.string(), @@ -5928,15 +13607,11 @@ export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ 'timestamp': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToIosApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToIosApp: z.ZodType = z.object({ 'native_url': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = z.infer; - -export const PaymentIntentNextAction = z.object({ +export const PaymentIntentNextAction: z.ZodType = z.object({ 'alipay_handle_redirect': PaymentIntentNextActionAlipayHandleRedirect.optional(), 'boleto_display_details': PaymentIntentNextActionBoleto.optional(), 'card_await_notification': PaymentIntentNextActionCardAwaitNotification.optional(), @@ -5958,54 +13633,40 @@ export const PaymentIntentNextAction = z.object({ 'wechat_pay_redirect_to_ios_app': PaymentIntentNextActionWechatPayRedirectToIosApp.optional() }); -export type PaymentIntentNextActionModel = z.infer; - -export const PaymentFlowsPaymentDetails = z.object({ +export const PaymentFlowsPaymentDetails: z.ZodType = z.object({ 'customer_reference': z.string().optional(), 'order_reference': z.string().optional() }); -export type PaymentFlowsPaymentDetailsModel = z.infer; - -export const PaymentMethodConfigBizPaymentMethodConfigurationDetails = z.object({ +export const PaymentMethodConfigBizPaymentMethodConfigurationDetails: z.ZodType = z.object({ 'id': z.string(), 'parent': z.string().optional() }); -export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'interval_description': z.string().optional(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']).optional(), 'transaction_type': z.enum(['business', 'personal']).optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const PaymentFlowsInstallmentOptions = z.object({ +export const PaymentFlowsInstallmentOptions: z.ZodType = z.object({ 'enabled': z.boolean(), 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type PaymentFlowsInstallmentOptionsModel = z.infer; - -export const PaymentMethodOptionsCardPresentRouting = z.object({ +export const PaymentMethodOptionsCardPresentRouting: z.ZodType = z.object({ 'requested_priority': z.enum(['domestic', 'international']).optional() }); -export type PaymentMethodOptionsCardPresentRoutingModel = z.infer; - -export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const PaymentIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'installments': PaymentFlowsInstallmentOptions.optional(), 'request_incremental_authorization_support': z.boolean().optional(), @@ -6015,99 +13676,71 @@ export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const PaymentMethodOptionsAffirm = z.object({ +export const PaymentMethodOptionsAffirm: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAffirmModel = z.infer; - -export const PaymentMethodOptionsAfterpayClearpay = z.object({ +export const PaymentMethodOptionsAfterpayClearpay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'reference': z.string().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAfterpayClearpayModel = z.infer; - -export const PaymentMethodOptionsAlipay = z.object({ +export const PaymentMethodOptionsAlipay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAlipayModel = z.infer; - -export const PaymentMethodOptionsAlma = z.object({ +export const PaymentMethodOptionsAlma: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsAlmaModel = z.infer; - -export const PaymentMethodOptionsAmazonPay = z.object({ +export const PaymentMethodOptionsAmazonPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAmazonPayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAuBecsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAuBecsDebit: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const PaymentMethodOptionsBancontact = z.object({ +export const PaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsBancontactModel = z.infer; - -export const PaymentMethodOptionsBillie = z.object({ +export const PaymentMethodOptionsBillie: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsBillieModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBlik = z.object({ +export const PaymentIntentPaymentMethodOptionsBlik: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsBlikModel = z.infer; - -export const PaymentMethodOptionsBoleto = z.object({ +export const PaymentMethodOptionsBoleto: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsBoletoModel = z.infer; - -export const PaymentMethodOptionsCardInstallments = z.object({ +export const PaymentMethodOptionsCardInstallments: z.ZodType = z.object({ 'available_plans': z.array(PaymentMethodDetailsCardInstallmentsPlan).optional(), 'enabled': z.boolean(), 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]).optional() }); -export type PaymentMethodOptionsCardInstallmentsModel = z.infer; - -export const PaymentMethodOptionsCardMandateOptions = z.object({ +export const PaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string().optional(), @@ -6119,9 +13752,7 @@ export const PaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])).optional() }); -export type PaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsCard = z.object({ +export const PaymentIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': z.union([PaymentMethodOptionsCardInstallments]).optional(), 'mandate_options': z.union([PaymentMethodOptionsCardMandateOptions]).optional(), @@ -6137,104 +13768,74 @@ export const PaymentIntentPaymentMethodOptionsCard = z.object({ 'statement_descriptor_suffix_kanji': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsCardModel = z.infer; - -export const PaymentMethodOptionsCardPresent = z.object({ +export const PaymentMethodOptionsCardPresent: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'request_extended_authorization': z.boolean().optional(), 'request_incremental_authorization_support': z.boolean().optional(), 'routing': PaymentMethodOptionsCardPresentRouting.optional() }); -export type PaymentMethodOptionsCardPresentModel = z.infer; - -export const PaymentMethodOptionsCashapp = z.object({ +export const PaymentMethodOptionsCashapp: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsCashappModel = z.infer; - -export const PaymentMethodOptionsCrypto = z.object({ +export const PaymentMethodOptionsCrypto: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCryptoModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceEuBankAccount = z.object({ +export const PaymentMethodOptionsCustomerBalanceEuBankAccount: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const PaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']).optional() }); -export type PaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const PaymentMethodOptionsCustomerBalance = z.object({ +export const PaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': PaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsEps = z.object({ +export const PaymentIntentPaymentMethodOptionsEps: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsEpsModel = z.infer; - -export const PaymentMethodOptionsFpx = z.object({ +export const PaymentMethodOptionsFpx: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsFpxModel = z.infer; - -export const PaymentMethodOptionsGiropay = z.object({ +export const PaymentMethodOptionsGiropay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGiropayModel = z.infer; - -export const PaymentMethodOptionsGrabpay = z.object({ +export const PaymentMethodOptionsGrabpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGrabpayModel = z.infer; - -export const PaymentMethodOptionsIdeal = z.object({ +export const PaymentMethodOptionsIdeal: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsIdealModel = z.infer; - -export const PaymentMethodOptionsInteracPresent = z.object({ +export const PaymentMethodOptionsInteracPresent: z.ZodType = z.object({ }); -export type PaymentMethodOptionsInteracPresentModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsKlarna = z.object({ +export const PaymentMethodOptionsKlarna: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsKlarnaModel = z.infer; - -export const PaymentMethodOptionsKonbini = z.object({ +export const PaymentMethodOptionsKonbini: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'expires_after_days': z.number().int().optional(), 'expires_at': z.number().int().optional(), @@ -6242,185 +13843,131 @@ export const PaymentMethodOptionsKonbini = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsKonbiniModel = z.infer; - -export const PaymentMethodOptionsKrCard = z.object({ +export const PaymentMethodOptionsKrCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsKrCardModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsLink = z.object({ +export const PaymentIntentPaymentMethodOptionsLink: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentIntentPaymentMethodOptionsLinkModel = z.infer; - -export const PaymentMethodOptionsMbWay = z.object({ +export const PaymentMethodOptionsMbWay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMbWayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMobilepay = z.object({ +export const PaymentIntentPaymentMethodOptionsMobilepay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsMobilepayModel = z.infer; - -export const PaymentMethodOptionsMultibanco = z.object({ +export const PaymentMethodOptionsMultibanco: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMultibancoModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsNzBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsNzBankAccount: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = z.infer; - -export const PaymentMethodOptionsOxxo = z.object({ +export const PaymentMethodOptionsOxxo: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsOxxoModel = z.infer; - -export const PaymentMethodOptionsP24 = z.object({ +export const PaymentMethodOptionsP24: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsP24Model = z.infer; - -export const PaymentMethodOptionsPayByBank = z.object({ +export const PaymentMethodOptionsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodOptionsPayByBankModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsPaynow = z.object({ +export const PaymentMethodOptionsPaynow: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPaynowModel = z.infer; - -export const PaymentMethodOptionsPaypal = z.object({ +export const PaymentMethodOptionsPaypal: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'reference': z.string().optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsPaypalModel = z.infer; - -export const PaymentMethodOptionsPix = z.object({ +export const PaymentMethodOptionsPix: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int().optional(), 'expires_at': z.number().int().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPixModel = z.infer; - -export const PaymentMethodOptionsPromptpay = z.object({ +export const PaymentMethodOptionsPromptpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPromptpayModel = z.infer; - -export const PaymentMethodOptionsRevolutPay = z.object({ +export const PaymentMethodOptionsRevolutPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsRevolutPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsSatispay = z.object({ +export const PaymentMethodOptionsSatispay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsSatispayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const PaymentMethodOptionsSofort = z.object({ +export const PaymentMethodOptionsSofort: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsSofortModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSwish = z.object({ +export const PaymentIntentPaymentMethodOptionsSwish: z.ZodType = z.object({ 'reference': z.string().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsSwishModel = z.infer; - -export const PaymentMethodOptionsTwint = z.object({ +export const PaymentMethodOptionsTwint: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsTwintModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters = z.object({ +export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional() }); -export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = z.infer; - -export const LinkedAccountOptionsCommon = z.object({ +export const LinkedAccountOptionsCommon: z.ZodType = z.object({ 'filters': PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), 'prefetch': z.array(z.enum(['balances', 'ownership', 'transactions'])).optional(), 'return_url': z.string().optional() }); -export type LinkedAccountOptionsCommonModel = z.infer; - -export const PaymentMethodOptionsUsBankAccountMandateOptions = z.object({ +export const PaymentMethodOptionsUsBankAccountMandateOptions: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'preferred_settlement_speed': z.enum(['fastest', 'standard']).optional(), @@ -6429,23 +13976,17 @@ export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const PaymentMethodOptionsWechatPay = z.object({ +export const PaymentMethodOptionsWechatPay: z.ZodType = z.object({ 'app_id': z.string().optional(), 'client': z.enum(['android', 'ios', 'web']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsWechatPayModel = z.infer; - -export const PaymentMethodOptionsZip = z.object({ +export const PaymentMethodOptionsZip: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsZipModel = z.infer; - -export const PaymentIntentPaymentMethodOptions = z.object({ +export const PaymentIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([PaymentIntentPaymentMethodOptionsAcssDebit, PaymentIntentTypeSpecificPaymentMethodOptionsClient]).optional(), 'affirm': z.union([PaymentMethodOptionsAffirm, PaymentIntentTypeSpecificPaymentMethodOptionsClient]).optional(), 'afterpay_clearpay': z.union([PaymentMethodOptionsAfterpayClearpay, PaymentIntentTypeSpecificPaymentMethodOptionsClient]).optional(), @@ -6499,28 +14040,20 @@ export const PaymentIntentPaymentMethodOptions = z.object({ 'zip': z.union([PaymentMethodOptionsZip, PaymentIntentTypeSpecificPaymentMethodOptionsClient]).optional() }); -export type PaymentIntentPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentProcessingCustomerNotification = z.object({ +export const PaymentIntentProcessingCustomerNotification: z.ZodType = z.object({ 'approval_requested': z.boolean().optional(), 'completes_at': z.number().int().optional() }); -export type PaymentIntentProcessingCustomerNotificationModel = z.infer; - -export const PaymentIntentCardProcessing = z.object({ +export const PaymentIntentCardProcessing: z.ZodType = z.object({ 'customer_notification': PaymentIntentProcessingCustomerNotification.optional() }); -export type PaymentIntentCardProcessingModel = z.infer; - -export const PaymentIntentProcessing = z.object({ +export const PaymentIntentProcessing: z.ZodType = z.object({ 'card': PaymentIntentCardProcessing.optional(), 'type': z.enum(['card']) }); -export type PaymentIntentProcessingModel = z.infer; - export const TransferData: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'destination': z.union([z.string(), z.lazy(() => Account)]) @@ -6571,29 +14104,23 @@ export const PaymentIntent: z.ZodType = z.object({ 'transfer_group': z.string().optional() }); -export const PaymentFlowsAutomaticPaymentMethodsSetupIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsSetupIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean().optional() }); -export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = z.infer; - -export const SetupIntentNextActionRedirectToUrl = z.object({ +export const SetupIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string().optional(), 'url': z.string().optional() }); -export type SetupIntentNextActionRedirectToUrlModel = z.infer; - -export const SetupIntentNextActionVerifyWithMicrodeposits = z.object({ +export const SetupIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']).optional() }); -export type SetupIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const SetupIntentNextAction = z.object({ +export const SetupIntentNextAction: z.ZodType = z.object({ 'cashapp_handle_redirect_or_display_qr_code': PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.optional(), 'redirect_to_url': SetupIntentNextActionRedirectToUrl.optional(), 'type': z.string(), @@ -6601,9 +14128,7 @@ export const SetupIntentNextAction = z.object({ 'verify_with_microdeposits': SetupIntentNextActionVerifyWithMicrodeposits.optional() }); -export type SetupIntentNextActionModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string().optional(), @@ -6611,41 +14136,29 @@ export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ 'transaction_type': z.enum(['business', 'personal']).optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']).optional(), 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const SetupIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const SetupIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAmazonPay = z.object({ +export const SetupIntentPaymentMethodOptionsAmazonPay: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsAmazonPayModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional() }); -export type SetupIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ +export const SetupIntentPaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'currency': z.string(), @@ -6658,62 +14171,44 @@ export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])).optional() }); -export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCard = z.object({ +export const SetupIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': z.union([SetupIntentPaymentMethodOptionsCardMandateOptions]).optional(), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']).optional(), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']).optional() }); -export type SetupIntentPaymentMethodOptionsCardModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardPresent = z.object({ +export const SetupIntentPaymentMethodOptionsCardPresent: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsCardPresentModel = z.infer; - -export const SetupIntentPaymentMethodOptionsKlarna = z.object({ +export const SetupIntentPaymentMethodOptionsKlarna: z.ZodType = z.object({ 'currency': z.string().optional(), 'preferred_locale': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsKlarnaModel = z.infer; - -export const SetupIntentPaymentMethodOptionsLink = z.object({ +export const SetupIntentPaymentMethodOptionsLink: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsLinkModel = z.infer; - -export const SetupIntentPaymentMethodOptionsPaypal = z.object({ +export const SetupIntentPaymentMethodOptionsPaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsPaypalModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional() }); -export type SetupIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const SetupIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const SetupIntentPaymentMethodOptions = z.object({ +export const SetupIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([SetupIntentPaymentMethodOptionsAcssDebit, SetupIntentTypeSpecificPaymentMethodOptionsClient]).optional(), 'amazon_pay': z.union([SetupIntentPaymentMethodOptionsAmazonPay, SetupIntentTypeSpecificPaymentMethodOptionsClient]).optional(), 'bacs_debit': z.union([SetupIntentPaymentMethodOptionsBacsDebit, SetupIntentTypeSpecificPaymentMethodOptionsClient]).optional(), @@ -6726,8 +14221,6 @@ export const SetupIntentPaymentMethodOptions = z.object({ 'us_bank_account': z.union([SetupIntentPaymentMethodOptionsUsBankAccount, SetupIntentTypeSpecificPaymentMethodOptionsClient]).optional() }); -export type SetupIntentPaymentMethodOptionsModel = z.infer; - export const SetupIntent: z.ZodType = z.object({ 'application': z.union([z.string(), Application]).optional(), 'attach_to_self': z.boolean().optional(), @@ -6800,68 +14293,50 @@ export const PaymentMethodCardGeneratedCard: z.ZodType SetupAttempt)]).optional() }); -export const Networks = z.object({ +export const Networks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string().optional() }); -export type NetworksModel = z.infer; - -export const ThreeDSecureUsage = z.object({ +export const ThreeDSecureUsage: z.ZodType = z.object({ 'supported': z.boolean() }); -export type ThreeDSecureUsageModel = z.infer; - -export const PaymentMethodCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodCardWalletApplePay = z.object({ +export const PaymentMethodCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletApplePayModel = z.infer; - -export const PaymentMethodCardWalletGooglePay = z.object({ +export const PaymentMethodCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletGooglePayModel = z.infer; - -export const PaymentMethodCardWalletLink = z.object({ +export const PaymentMethodCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletLinkModel = z.infer; - -export const PaymentMethodCardWalletMasterpass = z.object({ +export const PaymentMethodCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), 'shipping_address': z.union([Address]).optional() }); -export type PaymentMethodCardWalletMasterpassModel = z.infer; - -export const PaymentMethodCardWalletSamsungPay = z.object({ +export const PaymentMethodCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodCardWalletVisaCheckout = z.object({ +export const PaymentMethodCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]).optional(), 'email': z.string().optional(), 'name': z.string().optional(), 'shipping_address': z.union([Address]).optional() }); -export type PaymentMethodCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodCardWallet = z.object({ +export const PaymentMethodCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodCardWalletApplePay.optional(), 'dynamic_last4': z.string().optional(), @@ -6873,8 +14348,6 @@ export const PaymentMethodCardWallet = z.object({ 'visa_checkout': PaymentMethodCardWalletVisaCheckout.optional() }); -export type PaymentMethodCardWalletModel = z.infer; - export const PaymentMethodCard: z.ZodType = z.object({ 'brand': z.string(), 'checks': z.union([PaymentMethodCardChecks]).optional(), @@ -6892,14 +14365,12 @@ export const PaymentMethodCard: z.ZodType = z.object({ 'wallet': z.union([PaymentMethodCardWallet]).optional() }); -export const PaymentMethodCardPresentNetworks = z.object({ +export const PaymentMethodCardPresentNetworks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string().optional() }); -export type PaymentMethodCardPresentNetworksModel = z.infer; - -export const PaymentMethodCardPresent = z.object({ +export const PaymentMethodCardPresent: z.ZodType = z.object({ 'brand': z.string().optional(), 'brand_product': z.string().optional(), 'cardholder_name': z.string().optional(), @@ -6918,74 +14389,52 @@ export const PaymentMethodCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodCardPresentModel = z.infer; - -export const PaymentMethodCashapp = z.object({ +export const PaymentMethodCashapp: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'cashtag': z.string().optional() }); -export type PaymentMethodCashappModel = z.infer; - -export const PaymentMethodCrypto = z.object({ +export const PaymentMethodCrypto: z.ZodType = z.object({ }); -export type PaymentMethodCryptoModel = z.infer; - -export const CustomLogo = z.object({ +export const CustomLogo: z.ZodType = z.object({ 'content_type': z.string().optional(), 'url': z.string() }); -export type CustomLogoModel = z.infer; - -export const PaymentMethodCustom = z.object({ +export const PaymentMethodCustom: z.ZodType = z.object({ 'display_name': z.string().optional(), 'logo': z.union([CustomLogo]).optional(), 'type': z.string() }); -export type PaymentMethodCustomModel = z.infer; - -export const PaymentMethodCustomerBalance = z.object({ +export const PaymentMethodCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodCustomerBalanceModel = z.infer; - -export const PaymentMethodEps = z.object({ +export const PaymentMethodEps: z.ZodType = z.object({ 'bank': z.enum(['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']).optional() }); -export type PaymentMethodEpsModel = z.infer; - -export const PaymentMethodFpx = z.object({ +export const PaymentMethodFpx: z.ZodType = z.object({ 'bank': z.enum(['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']) }); -export type PaymentMethodFpxModel = z.infer; - -export const PaymentMethodGiropay = z.object({ +export const PaymentMethodGiropay: z.ZodType = z.object({ }); -export type PaymentMethodGiropayModel = z.infer; - -export const PaymentMethodGrabpay = z.object({ +export const PaymentMethodGrabpay: z.ZodType = z.object({ }); -export type PaymentMethodGrabpayModel = z.infer; - -export const PaymentMethodIdeal = z.object({ +export const PaymentMethodIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']).optional(), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']).optional() }); -export type PaymentMethodIdealModel = z.infer; - -export const PaymentMethodInteracPresent = z.object({ +export const PaymentMethodInteracPresent: z.ZodType = z.object({ 'brand': z.string().optional(), 'cardholder_name': z.string().optional(), 'country': z.string().optional(), @@ -7001,73 +14450,51 @@ export const PaymentMethodInteracPresent = z.object({ 'read_method': z.enum(['contact_emv', 'contactless_emv', 'contactless_magstripe_mode', 'magnetic_stripe_fallback', 'magnetic_stripe_track2']).optional() }); -export type PaymentMethodInteracPresentModel = z.infer; - -export const PaymentMethodKakaoPay = z.object({ +export const PaymentMethodKakaoPay: z.ZodType = z.object({ }); -export type PaymentMethodKakaoPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaDob = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaDob: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = z.infer; - -export const PaymentMethodKlarna = z.object({ +export const PaymentMethodKlarna: z.ZodType = z.object({ 'dob': z.union([PaymentFlowsPrivatePaymentMethodsKlarnaDob]).optional() }); -export type PaymentMethodKlarnaModel = z.infer; - -export const PaymentMethodKonbini = z.object({ +export const PaymentMethodKonbini: z.ZodType = z.object({ }); -export type PaymentMethodKonbiniModel = z.infer; - -export const PaymentMethodKrCard = z.object({ +export const PaymentMethodKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']).optional(), 'last4': z.string().optional() }); -export type PaymentMethodKrCardModel = z.infer; - -export const PaymentMethodLink = z.object({ +export const PaymentMethodLink: z.ZodType = z.object({ 'email': z.string().optional() }); -export type PaymentMethodLinkModel = z.infer; - -export const PaymentMethodMbWay = z.object({ +export const PaymentMethodMbWay: z.ZodType = z.object({ }); -export type PaymentMethodMbWayModel = z.infer; - -export const PaymentMethodMobilepay = z.object({ +export const PaymentMethodMobilepay: z.ZodType = z.object({ }); -export type PaymentMethodMobilepayModel = z.infer; - -export const PaymentMethodMultibanco = z.object({ +export const PaymentMethodMultibanco: z.ZodType = z.object({ }); -export type PaymentMethodMultibancoModel = z.infer; - -export const PaymentMethodNaverPay = z.object({ +export const PaymentMethodNaverPay: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'funding': z.enum(['card', 'points']) }); -export type PaymentMethodNaverPayModel = z.infer; - -export const PaymentMethodNzBankAccount = z.object({ +export const PaymentMethodNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string().optional(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -7076,84 +14503,58 @@ export const PaymentMethodNzBankAccount = z.object({ 'suffix': z.string().optional() }); -export type PaymentMethodNzBankAccountModel = z.infer; - -export const PaymentMethodOxxo = z.object({ +export const PaymentMethodOxxo: z.ZodType = z.object({ }); -export type PaymentMethodOxxoModel = z.infer; - -export const PaymentMethodP24 = z.object({ +export const PaymentMethodP24: z.ZodType = z.object({ 'bank': z.enum(['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']).optional() }); -export type PaymentMethodP24Model = z.infer; - -export const PaymentMethodPayByBank = z.object({ +export const PaymentMethodPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodPayByBankModel = z.infer; - -export const PaymentMethodPayco = z.object({ +export const PaymentMethodPayco: z.ZodType = z.object({ }); -export type PaymentMethodPaycoModel = z.infer; - -export const PaymentMethodPaynow = z.object({ +export const PaymentMethodPaynow: z.ZodType = z.object({ }); -export type PaymentMethodPaynowModel = z.infer; - -export const PaymentMethodPaypal = z.object({ +export const PaymentMethodPaypal: z.ZodType = z.object({ 'country': z.string().optional(), 'payer_email': z.string().optional(), 'payer_id': z.string().optional() }); -export type PaymentMethodPaypalModel = z.infer; - -export const PaymentMethodPix = z.object({ +export const PaymentMethodPix: z.ZodType = z.object({ }); -export type PaymentMethodPixModel = z.infer; - -export const PaymentMethodPromptpay = z.object({ +export const PaymentMethodPromptpay: z.ZodType = z.object({ }); -export type PaymentMethodPromptpayModel = z.infer; - -export const PaymentMethodRevolutPay = z.object({ +export const PaymentMethodRevolutPay: z.ZodType = z.object({ }); -export type PaymentMethodRevolutPayModel = z.infer; - -export const PaymentMethodSamsungPay = z.object({ +export const PaymentMethodSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodSamsungPayModel = z.infer; - -export const PaymentMethodSatispay = z.object({ +export const PaymentMethodSatispay: z.ZodType = z.object({ }); -export type PaymentMethodSatispayModel = z.infer; - -export const SepaDebitGeneratedFrom = z.object({ +export const SepaDebitGeneratedFrom: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'setup_attempt': z.union([z.string(), z.lazy(() => SetupAttempt)]).optional() }); -export type SepaDebitGeneratedFromModel = z.infer; - -export const PaymentMethodSepaDebit = z.object({ +export const PaymentMethodSepaDebit: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'branch_code': z.string().optional(), 'country': z.string().optional(), @@ -7162,47 +14563,33 @@ export const PaymentMethodSepaDebit = z.object({ 'last4': z.string().optional() }); -export type PaymentMethodSepaDebitModel = z.infer; - -export const PaymentMethodSofort = z.object({ +export const PaymentMethodSofort: z.ZodType = z.object({ 'country': z.string().optional() }); -export type PaymentMethodSofortModel = z.infer; - -export const PaymentMethodSwish = z.object({ +export const PaymentMethodSwish: z.ZodType = z.object({ }); -export type PaymentMethodSwishModel = z.infer; - -export const PaymentMethodTwint = z.object({ +export const PaymentMethodTwint: z.ZodType = z.object({ }); -export type PaymentMethodTwintModel = z.infer; - -export const UsBankAccountNetworks = z.object({ +export const UsBankAccountNetworks: z.ZodType = z.object({ 'preferred': z.string().optional(), 'supported': z.array(z.enum(['ach', 'us_domestic_wire'])) }); -export type UsBankAccountNetworksModel = z.infer; - -export const PaymentMethodUsBankAccountBlocked = z.object({ +export const PaymentMethodUsBankAccountBlocked: z.ZodType = z.object({ 'network_code': z.enum(['R02', 'R03', 'R04', 'R05', 'R07', 'R08', 'R10', 'R11', 'R16', 'R20', 'R29', 'R31']).optional(), 'reason': z.enum(['bank_account_closed', 'bank_account_frozen', 'bank_account_invalid_details', 'bank_account_restricted', 'bank_account_unusable', 'debit_not_authorized', 'tokenized_account_number_deactivated']).optional() }); -export type PaymentMethodUsBankAccountBlockedModel = z.infer; - -export const PaymentMethodUsBankAccountStatusDetails = z.object({ +export const PaymentMethodUsBankAccountStatusDetails: z.ZodType = z.object({ 'blocked': PaymentMethodUsBankAccountBlocked.optional() }); -export type PaymentMethodUsBankAccountStatusDetailsModel = z.infer; - -export const PaymentMethodUsBankAccount = z.object({ +export const PaymentMethodUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -7214,20 +14601,14 @@ export const PaymentMethodUsBankAccount = z.object({ 'status_details': z.union([PaymentMethodUsBankAccountStatusDetails]).optional() }); -export type PaymentMethodUsBankAccountModel = z.infer; - -export const PaymentMethodWechatPay = z.object({ +export const PaymentMethodWechatPay: z.ZodType = z.object({ }); -export type PaymentMethodWechatPayModel = z.infer; - -export const PaymentMethodZip = z.object({ +export const PaymentMethodZip: z.ZodType = z.object({ }); -export type PaymentMethodZipModel = z.infer; - export const PaymentMethod: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), @@ -7293,13 +14674,11 @@ export const PaymentMethod: z.ZodType = z.object({ 'zip': PaymentMethodZip.optional() }); -export const InvoiceSettingCustomerRenderingOptions = z.object({ +export const InvoiceSettingCustomerRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string().optional(), 'template': z.string().optional() }); -export type InvoiceSettingCustomerRenderingOptionsModel = z.infer; - export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'custom_fields': z.array(InvoiceSettingCustomField).optional(), 'default_payment_method': z.union([z.string(), z.lazy(() => PaymentMethod)]).optional(), @@ -7307,15 +14686,13 @@ export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'name': z.string().optional(), 'object': z.enum(['application']) }); -export type DeletedApplicationModel = z.infer; - export const ConnectAccountReference: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'type': z.enum(['account', 'self']) @@ -7327,7 +14704,7 @@ export const SubscriptionAutomaticTax: z.ZodType 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional() }); -export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ +export const SubscriptionsResourceBillingCycleAnchorConfig: z.ZodType = z.object({ 'day_of_month': z.number().int(), 'hour': z.number().int().optional(), 'minute': z.number().int().optional(), @@ -7335,45 +14712,33 @@ export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ 'second': z.number().int().optional() }); -export type SubscriptionsResourceBillingCycleAnchorConfigModel = z.infer; - -export const SubscriptionsResourceBillingModeFlexible = z.object({ +export const SubscriptionsResourceBillingModeFlexible: z.ZodType = z.object({ 'proration_discounts': z.enum(['included', 'itemized']).optional() }); -export type SubscriptionsResourceBillingModeFlexibleModel = z.infer; - -export const SubscriptionsResourceBillingMode = z.object({ +export const SubscriptionsResourceBillingMode: z.ZodType = z.object({ 'flexible': z.union([SubscriptionsResourceBillingModeFlexible]).optional(), 'type': z.enum(['classic', 'flexible']), 'updated_at': z.number().int().optional() }); -export type SubscriptionsResourceBillingModeModel = z.infer; - -export const SubscriptionBillingThresholds = z.object({ +export const SubscriptionBillingThresholds: z.ZodType = z.object({ 'amount_gte': z.number().int().optional(), 'reset_billing_cycle_anchor': z.boolean().optional() }); -export type SubscriptionBillingThresholdsModel = z.infer; - -export const CancellationDetails = z.object({ +export const CancellationDetails: z.ZodType = z.object({ 'comment': z.string().optional(), 'feedback': z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']).optional(), 'reason': z.enum(['cancellation_requested', 'payment_disputed', 'payment_failed']).optional() }); -export type CancellationDetailsModel = z.infer; - -export const TaxRateFlatAmount = z.object({ +export const TaxRateFlatAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type TaxRateFlatAmountModel = z.infer; - -export const TaxRate = z.object({ +export const TaxRate: z.ZodType = z.object({ 'active': z.boolean(), 'country': z.string().optional(), 'created': z.number().int(), @@ -7394,8 +14759,6 @@ export const TaxRate = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']).optional() }); -export type TaxRateModel = z.infer; - export const TaxIDsOwner: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'application': z.union([z.string(), Application]).optional(), @@ -7403,14 +14766,12 @@ export const TaxIDsOwner: z.ZodType = z.object({ 'type': z.enum(['account', 'application', 'customer', 'self']) }); -export const TaxIdVerification = z.object({ +export const TaxIdVerification: z.ZodType = z.object({ 'status': z.enum(['pending', 'unavailable', 'unverified', 'verified']), 'verified_address': z.string().optional(), 'verified_name': z.string().optional() }); -export type TaxIdVerificationModel = z.infer; - export const TaxId: z.ZodType = z.object({ 'country': z.string().optional(), 'created': z.number().int(), @@ -7424,34 +14785,28 @@ export const TaxId: z.ZodType = z.object({ 'verification': z.union([TaxIdVerification]).optional() }); -export const DeletedTaxId = z.object({ +export const DeletedTaxId: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['tax_id']) }); -export type DeletedTaxIdModel = z.infer; - export const SubscriptionsResourceSubscriptionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])).optional(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export const SubscriptionItemBillingThresholds = z.object({ +export const SubscriptionItemBillingThresholds: z.ZodType = z.object({ 'usage_gte': z.number().int().optional() }); -export type SubscriptionItemBillingThresholdsModel = z.infer; - -export const CustomUnitAmount = z.object({ +export const CustomUnitAmount: z.ZodType = z.object({ 'maximum': z.number().int().optional(), 'minimum': z.number().int().optional(), 'preset': z.number().int().optional() }); -export type CustomUnitAmountModel = z.infer; - -export const PriceTier = z.object({ +export const PriceTier: z.ZodType = z.object({ 'flat_amount': z.number().int().optional(), 'flat_amount_decimal': z.string().optional(), 'unit_amount': z.number().int().optional(), @@ -7459,9 +14814,7 @@ export const PriceTier = z.object({ 'up_to': z.number().int().optional() }); -export type PriceTierModel = z.infer; - -export const CurrencyOption = z.object({ +export const CurrencyOption: z.ZodType = z.object({ 'custom_unit_amount': z.union([CustomUnitAmount]).optional(), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']).optional(), 'tiers': z.array(PriceTier).optional(), @@ -7469,32 +14822,24 @@ export const CurrencyOption = z.object({ 'unit_amount_decimal': z.string().optional() }); -export type CurrencyOptionModel = z.infer; - -export const ProductMarketingFeature = z.object({ +export const ProductMarketingFeature: z.ZodType = z.object({ 'name': z.string().optional() }); -export type ProductMarketingFeatureModel = z.infer; - -export const PackageDimensions = z.object({ +export const PackageDimensions: z.ZodType = z.object({ 'height': z.number(), 'length': z.number(), 'weight': z.number(), 'width': z.number() }); -export type PackageDimensionsModel = z.infer; - -export const TaxCode = z.object({ +export const TaxCode: z.ZodType = z.object({ 'description': z.string(), 'id': z.string(), 'name': z.string(), 'object': z.enum(['tax_code']) }); -export type TaxCodeModel = z.infer; - export const Product: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), @@ -7516,30 +14861,24 @@ export const Product: z.ZodType = z.object({ 'url': z.string().optional() }); -export const DeletedProduct = z.object({ +export const DeletedProduct: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product']) }); -export type DeletedProductModel = z.infer; - -export const Recurring = z.object({ +export const Recurring: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int(), 'meter': z.string().optional(), 'usage_type': z.enum(['licensed', 'metered']) }); -export type RecurringModel = z.infer; - -export const TransformQuantity = z.object({ +export const TransformQuantity: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformQuantityModel = z.infer; - export const Price: z.ZodType = z.object({ 'active': z.boolean(), 'billing_scheme': z.enum(['per_unit', 'tiered']), @@ -7579,7 +14918,7 @@ export const SubscriptionItem: z.ZodType = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export const AutomaticTax = z.object({ +export const AutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['finalization_requires_location_inputs', 'finalization_system_error']).optional(), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional(), @@ -7587,22 +14926,16 @@ export const AutomaticTax = z.object({ 'status': z.enum(['complete', 'failed', 'requires_location_inputs']).optional() }); -export type AutomaticTaxModel = z.infer; - -export const InvoicesResourceConfirmationSecret = z.object({ +export const InvoicesResourceConfirmationSecret: z.ZodType = z.object({ 'client_secret': z.string(), 'type': z.string() }); -export type InvoicesResourceConfirmationSecretModel = z.infer; - -export const InvoicesResourceInvoiceTaxId = z.object({ +export const InvoicesResourceInvoiceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string().optional() }); -export type InvoicesResourceInvoiceTaxIdModel = z.infer; - export const DeletedDiscount: z.ZodType = z.object({ 'checkout_session': z.string().optional(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]).optional(), @@ -7623,36 +14956,28 @@ export const InvoicesResourceFromInvoice: z.ZodType Invoice)]) }); -export const DiscountsResourceDiscountAmount = z.object({ +export const DiscountsResourceDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]) }); -export type DiscountsResourceDiscountAmountModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonCreditedItems = z.object({ +export const BillingBillResourceInvoicingLinesCommonCreditedItems: z.ZodType = z.object({ 'invoice': z.string(), 'invoice_line_items': z.array(z.string()) }); -export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonProrationDetails = z.object({ +export const BillingBillResourceInvoicingLinesCommonProrationDetails: z.ZodType = z.object({ 'credited_items': z.union([BillingBillResourceInvoicingLinesCommonCreditedItems]).optional() }); -export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent: z.ZodType = z.object({ 'invoice_item': z.string(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]).optional(), 'subscription': z.string().optional() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent: z.ZodType = z.object({ 'invoice_item': z.string().optional(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]).optional(), @@ -7660,37 +14985,27 @@ export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscription 'subscription_item': z.string() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent: z.ZodType = z.object({ 'invoice_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent]).optional(), 'subscription_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent]).optional(), 'type': z.enum(['invoice_item_details', 'subscription_item_details']) }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = z.infer; - -export const InvoiceLineItemPeriod = z.object({ +export const InvoiceLineItemPeriod: z.ZodType = z.object({ 'end': z.number().int(), 'start': z.number().int() }); -export type InvoiceLineItemPeriodModel = z.infer; - -export const BillingCreditGrantsResourceMonetaryAmount = z.object({ +export const BillingCreditGrantsResourceMonetaryAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type BillingCreditGrantsResourceMonetaryAmountModel = z.infer; - -export const BillingCreditGrantsResourceAmount = z.object({ +export const BillingCreditGrantsResourceAmount: z.ZodType = z.object({ 'monetary': z.union([BillingCreditGrantsResourceMonetaryAmount]).optional(), 'type': z.enum(['monetary']) }); -export type BillingCreditGrantsResourceAmountModel = z.infer; - export const BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoided: z.ZodType = z.object({ 'invoice': z.union([z.string(), z.lazy(() => Invoice)]), 'invoice_line_item': z.string() @@ -7702,38 +15017,28 @@ export const BillingCreditGrantsResourceBalanceCredit: z.ZodType = z.object({ 'id': z.string().optional() }); -export type BillingCreditGrantsResourceApplicablePriceModel = z.infer; - -export const BillingCreditGrantsResourceScope = z.object({ +export const BillingCreditGrantsResourceScope: z.ZodType = z.object({ 'price_type': z.enum(['metered']).optional(), 'prices': z.array(BillingCreditGrantsResourceApplicablePrice).optional() }); -export type BillingCreditGrantsResourceScopeModel = z.infer; - -export const BillingCreditGrantsResourceApplicabilityConfig = z.object({ +export const BillingCreditGrantsResourceApplicabilityConfig: z.ZodType = z.object({ 'scope': BillingCreditGrantsResourceScope }); -export type BillingCreditGrantsResourceApplicabilityConfigModel = z.infer; - -export const BillingClocksResourceStatusDetailsAdvancingStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsAdvancingStatusDetails: z.ZodType = z.object({ 'target_frozen_time': z.number().int() }); -export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = z.infer; - -export const BillingClocksResourceStatusDetailsStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsStatusDetails: z.ZodType = z.object({ 'advancing': BillingClocksResourceStatusDetailsAdvancingStatusDetails.optional() }); -export type BillingClocksResourceStatusDetailsStatusDetailsModel = z.infer; - -export const TestHelpersTestClock = z.object({ +export const TestHelpersTestClock: z.ZodType = z.object({ 'created': z.number().int(), 'deletes_after': z.number().int(), 'frozen_time': z.number().int(), @@ -7745,8 +15050,6 @@ export const TestHelpersTestClock = z.object({ 'status_details': BillingClocksResourceStatusDetailsStatusDetails }); -export type TestHelpersTestClockModel = z.infer; - export const BillingCreditGrant: z.ZodType = z.object({ 'amount': BillingCreditGrantsResourceAmount, 'applicability_config': BillingCreditGrantsResourceApplicabilityConfig, @@ -7797,28 +15100,22 @@ export const InvoicesResourcePretaxCreditAmount: z.ZodType = z.object({ 'price': z.string(), 'product': z.string() }); -export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = z.infer; - -export const BillingBillResourceInvoicingPricingPricing = z.object({ +export const BillingBillResourceInvoicingPricingPricing: z.ZodType = z.object({ 'price_details': BillingBillResourceInvoicingPricingPricingPriceDetails.optional(), 'type': z.enum(['price_details']), 'unit_amount_decimal': z.string().optional() }); -export type BillingBillResourceInvoicingPricingPricingModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTaxRateDetails = z.object({ +export const BillingBillResourceInvoicingTaxesTaxRateDetails: z.ZodType = z.object({ 'tax_rate': z.string() }); -export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTax = z.object({ +export const BillingBillResourceInvoicingTaxesTax: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive']), 'tax_rate_details': z.union([BillingBillResourceInvoicingTaxesTaxRateDetails]).optional(), @@ -7827,8 +15124,6 @@ export const BillingBillResourceInvoicingTaxesTax = z.object({ 'type': z.enum(['tax_rate_details']) }); -export type BillingBillResourceInvoicingTaxesTaxModel = z.infer; - export const LineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -7850,12 +15145,10 @@ export const LineItem: z.ZodType = z.object({ 'taxes': z.array(BillingBillResourceInvoicingTaxesTax).optional() }); -export const BillingBillResourceInvoicingParentsInvoiceQuoteParent = z.object({ +export const BillingBillResourceInvoicingParentsInvoiceQuoteParent: z.ZodType = z.object({ 'quote': z.string() }); -export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = z.infer; - export const BillingBillResourceInvoicingParentsInvoiceSubscriptionParent: z.ZodType = z.object({ 'metadata': z.record(z.string(), z.string()).optional(), 'subscription': z.union([z.string(), z.lazy(() => Subscription)]), @@ -7868,92 +15161,66 @@ export const BillingBillResourceInvoicingParentsInvoiceParent: z.ZodType = z.object({ 'transaction_type': z.enum(['business', 'personal']).optional() }); -export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsAcssDebit = z.object({ +export const InvoicePaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': InvoicePaymentMethodOptionsAcssDebitMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsAcssDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsBancontact = z.object({ +export const InvoicePaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']) }); -export type InvoicePaymentMethodOptionsBancontactModel = z.infer; - -export const InvoiceInstallmentsCard = z.object({ +export const InvoiceInstallmentsCard: z.ZodType = z.object({ 'enabled': z.boolean().optional() }); -export type InvoiceInstallmentsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCard = z.object({ +export const InvoicePaymentMethodOptionsCard: z.ZodType = z.object({ 'installments': InvoiceInstallmentsCard.optional(), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']).optional() }); -export type InvoicePaymentMethodOptionsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.optional(), 'type': z.string().optional() }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalance = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']).optional() }); -export type InvoicePaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const InvoicePaymentMethodOptionsKonbini = z.object({ +export const InvoicePaymentMethodOptionsKonbini: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsKonbiniModel = z.infer; - -export const InvoicePaymentMethodOptionsSepaDebit = z.object({ +export const InvoicePaymentMethodOptionsSepaDebit: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsSepaDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions: z.ZodType = z.object({ 'filters': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), 'prefetch': z.array(z.enum(['balances', 'ownership', 'transactions'])).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccount = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountModel = z.infer; - -export const InvoicesPaymentMethodOptions = z.object({ +export const InvoicesPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]).optional(), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]).optional(), 'card': z.union([InvoicePaymentMethodOptionsCard]).optional(), @@ -7963,41 +15230,31 @@ export const InvoicesPaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]).optional() }); -export type InvoicesPaymentMethodOptionsModel = z.infer; - -export const InvoicesPaymentSettings = z.object({ +export const InvoicesPaymentSettings: z.ZodType = z.object({ 'default_mandate': z.string().optional(), 'payment_method_options': z.union([InvoicesPaymentMethodOptions]).optional(), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay'])).optional() }); -export type InvoicesPaymentSettingsModel = z.infer; - -export const DeletedInvoice = z.object({ +export const DeletedInvoice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoice']) }); -export type DeletedInvoiceModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAmount = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails: z.ZodType = z.object({ 'customer': z.string().optional(), 'email': z.string().optional(), 'name': z.string().optional(), 'phone': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAddress: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'line1': z.string().optional(), @@ -8006,62 +15263,46 @@ export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ 'state': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'email': z.string().optional(), 'name': z.string().optional(), 'phone': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks: z.ZodType = z.object({ 'address_line1_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']).optional(), 'address_postal_code_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']).optional(), 'cvc_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']).optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']).optional(), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']).optional(), 'result_reason': z.enum(['abandoned', 'bypassed', 'canceled', 'card_not_enrolled', 'network_not_supported', 'protocol_error', 'rejected']).optional(), 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']).optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay: z.ZodType = z.object({ 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay: z.ZodType = z.object({ }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet: z.ZodType = z.object({ 'apple_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay.optional(), 'dynamic_last4': z.string().optional(), 'google_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay.optional(), 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails: z.ZodType = z.object({ 'brand': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'capture_before': z.number().int().optional(), 'checks': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks]).optional(), @@ -8078,16 +15319,12 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = 'wallet': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet]).optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails: z.ZodType = z.object({ 'display_name': z.string(), 'type': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -8098,9 +15335,7 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountD 'routing_number': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), 'acss_debit': PaymentMethodDetailsAcssDebit.optional(), @@ -8162,30 +15397,22 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.ob 'zip': PaymentMethodDetailsZip.optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails: z.ZodType = z.object({ 'payment_reference': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails: z.ZodType = z.object({ 'custom': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails.optional(), 'type': z.enum(['custom']) }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'name': z.string().optional(), 'phone': z.string().optional() }); -export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = z.infer; - -export const PaymentRecord = z.object({ +export const PaymentRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -8208,24 +15435,18 @@ export const PaymentRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]).optional() }); -export type PaymentRecordModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentAssociatedPayment = z.object({ +export const InvoicesPaymentsInvoicePaymentAssociatedPayment: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional(), 'payment_record': z.union([z.string(), PaymentRecord]).optional(), 'type': z.enum(['charge', 'payment_intent', 'payment_record']) }); -export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentStatusTransitions = z.object({ +export const InvoicesPaymentsInvoicePaymentStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'paid_at': z.number().int().optional() }); -export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = z.infer; - export const InvoicePayment: z.ZodType = z.object({ 'amount_paid': z.number().int().optional(), 'amount_requested': z.number().int(), @@ -8241,51 +15462,39 @@ export const InvoicePayment: z.ZodType = z.object({ 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitions }); -export const InvoiceRenderingPdf = z.object({ +export const InvoiceRenderingPdf: z.ZodType = z.object({ 'page_size': z.enum(['a4', 'auto', 'letter']).optional() }); -export type InvoiceRenderingPdfModel = z.infer; - -export const InvoicesResourceInvoiceRendering = z.object({ +export const InvoicesResourceInvoiceRendering: z.ZodType = z.object({ 'amount_tax_display': z.string().optional(), 'pdf': z.union([InvoiceRenderingPdf]).optional(), 'template': z.string().optional(), 'template_version': z.number().int().optional() }); -export type InvoicesResourceInvoiceRenderingModel = z.infer; - -export const ShippingRateDeliveryEstimateBound = z.object({ +export const ShippingRateDeliveryEstimateBound: z.ZodType = z.object({ 'unit': z.enum(['business_day', 'day', 'hour', 'month', 'week']), 'value': z.number().int() }); -export type ShippingRateDeliveryEstimateBoundModel = z.infer; - -export const ShippingRateDeliveryEstimate = z.object({ +export const ShippingRateDeliveryEstimate: z.ZodType = z.object({ 'maximum': z.union([ShippingRateDeliveryEstimateBound]).optional(), 'minimum': z.union([ShippingRateDeliveryEstimateBound]).optional() }); -export type ShippingRateDeliveryEstimateModel = z.infer; - -export const ShippingRateCurrencyOption = z.object({ +export const ShippingRateCurrencyOption: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']) }); -export type ShippingRateCurrencyOptionModel = z.infer; - -export const ShippingRateFixedAmount = z.object({ +export const ShippingRateFixedAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'currency_options': z.record(z.string(), ShippingRateCurrencyOption).optional() }); -export type ShippingRateFixedAmountModel = z.infer; - -export const ShippingRate = z.object({ +export const ShippingRate: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), 'delivery_estimate': z.union([ShippingRateDeliveryEstimate]).optional(), @@ -8300,18 +15509,14 @@ export const ShippingRate = z.object({ 'type': z.enum(['fixed_amount']) }); -export type ShippingRateModel = z.infer; - -export const LineItemsTaxAmount = z.object({ +export const LineItemsTaxAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'rate': TaxRate, 'taxability_reason': z.enum(['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']).optional(), 'taxable_amount': z.number().int().optional() }); -export type LineItemsTaxAmountModel = z.infer; - -export const InvoicesResourceShippingCost = z.object({ +export const InvoicesResourceShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -8319,31 +15524,23 @@ export const InvoicesResourceShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type InvoicesResourceShippingCostModel = z.infer; - -export const InvoicesResourceStatusTransitions = z.object({ +export const InvoicesResourceStatusTransitions: z.ZodType = z.object({ 'finalized_at': z.number().int().optional(), 'marked_uncollectible_at': z.number().int().optional(), 'paid_at': z.number().int().optional(), 'voided_at': z.number().int().optional() }); -export type InvoicesResourceStatusTransitionsModel = z.infer; - -export const InvoiceItemThresholdReason = z.object({ +export const InvoiceItemThresholdReason: z.ZodType = z.object({ 'line_item_ids': z.array(z.string()), 'usage_gte': z.number().int() }); -export type InvoiceItemThresholdReasonModel = z.infer; - -export const InvoiceThresholdReason = z.object({ +export const InvoiceThresholdReason: z.ZodType = z.object({ 'amount_gte': z.number().int().optional(), 'item_reasons': z.array(InvoiceItemThresholdReason) }); -export type InvoiceThresholdReasonModel = z.infer; - export const Invoice: z.ZodType = z.object({ 'account_country': z.string().optional(), 'account_name': z.string().optional(), @@ -8433,30 +15630,24 @@ export const Invoice: z.ZodType = z.object({ 'webhooks_delivered_at': z.number().int().optional() }); -export const SubscriptionsResourcePauseCollection = z.object({ +export const SubscriptionsResourcePauseCollection: z.ZodType = z.object({ 'behavior': z.enum(['keep_as_draft', 'mark_uncollectible', 'void']), 'resumes_at': z.number().int().optional() }); -export type SubscriptionsResourcePauseCollectionModel = z.infer; - -export const InvoiceMandateOptionsCard = z.object({ +export const InvoiceMandateOptionsCard: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'amount_type': z.enum(['fixed', 'maximum']).optional(), 'description': z.string().optional() }); -export type InvoiceMandateOptionsCardModel = z.infer; - -export const SubscriptionPaymentMethodOptionsCard = z.object({ +export const SubscriptionPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': InvoiceMandateOptionsCard.optional(), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']).optional(), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']).optional() }); -export type SubscriptionPaymentMethodOptionsCardModel = z.infer; - -export const SubscriptionsResourcePaymentMethodOptions = z.object({ +export const SubscriptionsResourcePaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]).optional(), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]).optional(), 'card': z.union([SubscriptionPaymentMethodOptionsCard]).optional(), @@ -8466,24 +15657,18 @@ export const SubscriptionsResourcePaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]).optional() }); -export type SubscriptionsResourcePaymentMethodOptionsModel = z.infer; - -export const SubscriptionsResourcePaymentSettings = z.object({ +export const SubscriptionsResourcePaymentSettings: z.ZodType = z.object({ 'payment_method_options': z.union([SubscriptionsResourcePaymentMethodOptions]).optional(), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay'])).optional(), 'save_default_payment_method': z.enum(['off', 'on_subscription']).optional() }); -export type SubscriptionsResourcePaymentSettingsModel = z.infer; - -export const SubscriptionPendingInvoiceItemInterval = z.object({ +export const SubscriptionPendingInvoiceItemInterval: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int() }); -export type SubscriptionPendingInvoiceItemIntervalModel = z.infer; - -export const SubscriptionsResourcePendingUpdate = z.object({ +export const SubscriptionsResourcePendingUpdate: z.ZodType = z.object({ 'billing_cycle_anchor': z.number().int().optional(), 'expires_at': z.number().int(), 'subscription_items': z.array(z.lazy(() => SubscriptionItem)).optional(), @@ -8491,31 +15676,23 @@ export const SubscriptionsResourcePendingUpdate = z.object({ 'trial_from_plan': z.boolean().optional() }); -export type SubscriptionsResourcePendingUpdateModel = z.infer; - -export const SubscriptionScheduleCurrentPhase = z.object({ +export const SubscriptionScheduleCurrentPhase: z.ZodType = z.object({ 'end_date': z.number().int(), 'start_date': z.number().int() }); -export type SubscriptionScheduleCurrentPhaseModel = z.infer; - -export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax = z.object({ +export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']).optional(), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional() }); -export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionScheduleSetting = z.object({ +export const InvoiceSettingSubscriptionScheduleSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])).optional(), 'days_until_due': z.number().int().optional(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingSubscriptionScheduleSettingModel = z.infer; - export const SubscriptionTransferData: z.ZodType = z.object({ 'amount_percent': z.number().optional(), 'destination': z.union([z.string(), z.lazy(() => Account)]) @@ -8534,44 +15711,34 @@ export const SubscriptionSchedulesResourceDefaultSettings: z.ZodType SubscriptionTransferData)]).optional() }); -export const DiscountsResourceStackableDiscount = z.object({ +export const DiscountsResourceStackableDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]).optional(), 'discount': z.union([z.string(), z.lazy(() => Discount)]).optional(), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]).optional() }); -export type DiscountsResourceStackableDiscountModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['min_item_period_end', 'phase_end', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['max_item_period_start', 'phase_start', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItemPeriod = z.object({ +export const SubscriptionScheduleAddInvoiceItemPeriod: z.ZodType = z.object({ 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd, 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart }); -export type SubscriptionScheduleAddInvoiceItemPeriodModel = z.infer; - -export const DeletedPrice = z.object({ +export const DeletedPrice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['price']) }); -export type DeletedPriceModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItem = z.object({ +export const SubscriptionScheduleAddInvoiceItem: z.ZodType = z.object({ 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()).optional(), 'period': SubscriptionScheduleAddInvoiceItemPeriod, @@ -8580,25 +15747,19 @@ export const SubscriptionScheduleAddInvoiceItem = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export type SubscriptionScheduleAddInvoiceItemModel = z.infer; - -export const SchedulesPhaseAutomaticTax = z.object({ +export const SchedulesPhaseAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']).optional(), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional() }); -export type SchedulesPhaseAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionSchedulePhaseSetting = z.object({ +export const InvoiceSettingSubscriptionSchedulePhaseSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])).optional(), 'days_until_due': z.number().int().optional(), 'issuer': z.union([z.lazy(() => ConnectAccountReference)]).optional() }); -export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = z.infer; - -export const SubscriptionScheduleConfigurationItem = z.object({ +export const SubscriptionScheduleConfigurationItem: z.ZodType = z.object({ 'billing_thresholds': z.union([SubscriptionItemBillingThresholds]).optional(), 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()).optional(), @@ -8607,8 +15768,6 @@ export const SubscriptionScheduleConfigurationItem = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export type SubscriptionScheduleConfigurationItemModel = z.infer; - export const SubscriptionSchedulePhaseConfiguration: z.ZodType = z.object({ 'add_invoice_items': z.array(SubscriptionScheduleAddInvoiceItem), 'application_fee_percent': z.number().optional(), @@ -8654,18 +15813,14 @@ export const SubscriptionSchedule: z.ZodType = z.obje 'test_clock': z.union([z.string(), TestHelpersTestClock]).optional() }); -export const SubscriptionsTrialsResourceEndBehavior = z.object({ +export const SubscriptionsTrialsResourceEndBehavior: z.ZodType = z.object({ 'missing_payment_method': z.enum(['cancel', 'create_invoice', 'pause']) }); -export type SubscriptionsTrialsResourceEndBehaviorModel = z.infer; - -export const SubscriptionsTrialsResourceTrialSettings = z.object({ +export const SubscriptionsTrialsResourceTrialSettings: z.ZodType = z.object({ 'end_behavior': SubscriptionsTrialsResourceEndBehavior }); -export type SubscriptionsTrialsResourceTrialSettingsModel = z.infer; - export const Subscription: z.ZodType = z.object({ 'application': z.union([z.string(), Application, DeletedApplication]).optional(), 'application_fee_percent': z.number().optional(), @@ -8718,23 +15873,19 @@ export const Subscription: z.ZodType = z.object({ 'trial_start': z.number().int().optional() }); -export const CustomerTaxLocation = z.object({ +export const CustomerTaxLocation: z.ZodType = z.object({ 'country': z.string(), 'source': z.enum(['billing_address', 'ip_address', 'payment_method', 'shipping_destination']), 'state': z.string().optional() }); -export type CustomerTaxLocationModel = z.infer; - -export const CustomerTax = z.object({ +export const CustomerTax: z.ZodType = z.object({ 'automatic_tax': z.enum(['failed', 'not_collecting', 'supported', 'unrecognized_location']), 'ip_address': z.string().optional(), 'location': z.union([CustomerTaxLocation]).optional(), 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']) }); -export type CustomerTaxModel = z.infer; - export const Customer: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'balance': z.number().int().optional(), @@ -8783,23 +15934,19 @@ export const Customer: z.ZodType = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]).optional() }); -export const AccountRequirementsError = z.object({ +export const AccountRequirementsError: z.ZodType = z.object({ 'code': z.enum(['external_request', 'information_missing', 'invalid_address_city_state_postal_code', 'invalid_address_highway_contract_box', 'invalid_address_private_mailbox', 'invalid_business_profile_name', 'invalid_business_profile_name_denylisted', 'invalid_company_name_denylisted', 'invalid_dob_age_over_maximum', 'invalid_dob_age_under_18', 'invalid_dob_age_under_minimum', 'invalid_product_description_length', 'invalid_product_description_url_match', 'invalid_representative_country', 'invalid_signator', 'invalid_statement_descriptor_business_mismatch', 'invalid_statement_descriptor_denylisted', 'invalid_statement_descriptor_length', 'invalid_statement_descriptor_prefix_denylisted', 'invalid_statement_descriptor_prefix_mismatch', 'invalid_street_address', 'invalid_tax_id', 'invalid_tax_id_format', 'invalid_tos_acceptance', 'invalid_url_denylisted', 'invalid_url_format', 'invalid_url_web_presence_detected', 'invalid_url_website_business_information_mismatch', 'invalid_url_website_empty', 'invalid_url_website_inaccessible', 'invalid_url_website_inaccessible_geoblocked', 'invalid_url_website_inaccessible_password_protected', 'invalid_url_website_incomplete', 'invalid_url_website_incomplete_cancellation_policy', 'invalid_url_website_incomplete_customer_service_details', 'invalid_url_website_incomplete_legal_restrictions', 'invalid_url_website_incomplete_refund_policy', 'invalid_url_website_incomplete_return_policy', 'invalid_url_website_incomplete_terms_and_conditions', 'invalid_url_website_incomplete_under_construction', 'invalid_url_website_other', 'invalid_value_other', 'unsupported_business_type', 'verification_directors_mismatch', 'verification_document_address_mismatch', 'verification_document_address_missing', 'verification_document_corrupt', 'verification_document_country_not_supported', 'verification_document_directors_mismatch', 'verification_document_dob_mismatch', 'verification_document_duplicate_type', 'verification_document_expired', 'verification_document_failed_copy', 'verification_document_failed_greyscale', 'verification_document_failed_other', 'verification_document_failed_test_mode', 'verification_document_fraudulent', 'verification_document_id_number_mismatch', 'verification_document_id_number_missing', 'verification_document_incomplete', 'verification_document_invalid', 'verification_document_issue_or_expiry_date_missing', 'verification_document_manipulated', 'verification_document_missing_back', 'verification_document_missing_front', 'verification_document_name_mismatch', 'verification_document_name_missing', 'verification_document_nationality_mismatch', 'verification_document_not_readable', 'verification_document_not_signed', 'verification_document_not_uploaded', 'verification_document_photo_mismatch', 'verification_document_too_large', 'verification_document_type_not_supported', 'verification_extraneous_directors', 'verification_failed_address_match', 'verification_failed_authorizer_authority', 'verification_failed_business_iec_number', 'verification_failed_document_match', 'verification_failed_id_number_match', 'verification_failed_keyed_identity', 'verification_failed_keyed_match', 'verification_failed_name_match', 'verification_failed_other', 'verification_failed_representative_authority', 'verification_failed_residential_address', 'verification_failed_tax_id_match', 'verification_failed_tax_id_not_issued', 'verification_legal_entity_structure_mismatch', 'verification_missing_directors', 'verification_missing_executives', 'verification_missing_owners', 'verification_rejected_ownership_exemption_reason', 'verification_requires_additional_memorandum_of_associations', 'verification_requires_additional_proof_of_registration', 'verification_supportability']), 'reason': z.string(), 'requirement': z.string() }); -export type AccountRequirementsErrorModel = z.infer; - -export const ExternalAccountRequirements = z.object({ +export const ExternalAccountRequirements: z.ZodType = z.object({ 'currently_due': z.array(z.string()).optional(), 'errors': z.array(AccountRequirementsError).optional(), 'past_due': z.array(z.string()).optional(), 'pending_verification': z.array(z.string()).optional() }); -export type ExternalAccountRequirementsModel = z.infer; - export const BankAccount: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'account_holder_name': z.string().optional(), @@ -8822,14 +15969,12 @@ export const BankAccount: z.ZodType = z.object({ 'status': z.string() }); -export const AccountRequirementsAlternative = z.object({ +export const AccountRequirementsAlternative: z.ZodType = z.object({ 'alternative_fields_due': z.array(z.string()), 'original_fields_due': z.array(z.string()) }); -export type AccountRequirementsAlternativeModel = z.infer; - -export const AccountFutureRequirements = z.object({ +export const AccountFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'current_deadline': z.number().int().optional(), 'currently_due': z.array(z.string()).optional(), @@ -8840,37 +15985,27 @@ export const AccountFutureRequirements = z.object({ 'pending_verification': z.array(z.string()).optional() }); -export type AccountFutureRequirementsModel = z.infer; - -export const AccountGroupMembership = z.object({ +export const AccountGroupMembership: z.ZodType = z.object({ 'payments_pricing': z.string().optional() }); -export type AccountGroupMembershipModel = z.infer; - -export const PersonAdditionalTosAcceptance = z.object({ +export const PersonAdditionalTosAcceptance: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type PersonAdditionalTosAcceptanceModel = z.infer; - -export const PersonAdditionalTosAcceptances = z.object({ +export const PersonAdditionalTosAcceptances: z.ZodType = z.object({ 'account': z.union([PersonAdditionalTosAcceptance]).optional() }); -export type PersonAdditionalTosAcceptancesModel = z.infer; - -export const LegalEntityDob = z.object({ +export const LegalEntityDob: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type LegalEntityDobModel = z.infer; - -export const PersonFutureRequirements = z.object({ +export const PersonFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -8879,9 +16014,7 @@ export const PersonFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonFutureRequirementsModel = z.infer; - -export const PersonRelationship = z.object({ +export const PersonRelationship: z.ZodType = z.object({ 'authorizer': z.boolean().optional(), 'director': z.boolean().optional(), 'executive': z.boolean().optional(), @@ -8892,9 +16025,7 @@ export const PersonRelationship = z.object({ 'title': z.string().optional() }); -export type PersonRelationshipModel = z.infer; - -export const PersonRequirements = z.object({ +export const PersonRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -8903,40 +16034,30 @@ export const PersonRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonRequirementsModel = z.infer; - -export const PersonEthnicityDetails = z.object({ +export const PersonEthnicityDetails: z.ZodType = z.object({ 'ethnicity': z.array(z.enum(['cuban', 'hispanic_or_latino', 'mexican', 'not_hispanic_or_latino', 'other_hispanic_or_latino', 'prefer_not_to_answer', 'puerto_rican'])).optional(), 'ethnicity_other': z.string().optional() }); -export type PersonEthnicityDetailsModel = z.infer; - -export const PersonRaceDetails = z.object({ +export const PersonRaceDetails: z.ZodType = z.object({ 'race': z.array(z.enum(['african_american', 'american_indian_or_alaska_native', 'asian', 'asian_indian', 'black_or_african_american', 'chinese', 'ethiopian', 'filipino', 'guamanian_or_chamorro', 'haitian', 'jamaican', 'japanese', 'korean', 'native_hawaiian', 'native_hawaiian_or_other_pacific_islander', 'nigerian', 'other_asian', 'other_black_or_african_american', 'other_pacific_islander', 'prefer_not_to_answer', 'samoan', 'somali', 'vietnamese', 'white'])).optional(), 'race_other': z.string().optional() }); -export type PersonRaceDetailsModel = z.infer; - -export const PersonUsCfpbData = z.object({ +export const PersonUsCfpbData: z.ZodType = z.object({ 'ethnicity_details': z.union([PersonEthnicityDetails]).optional(), 'race_details': z.union([PersonRaceDetails]).optional(), 'self_identified_gender': z.string().optional() }); -export type PersonUsCfpbDataModel = z.infer; - -export const LegalEntityPersonVerificationDocument = z.object({ +export const LegalEntityPersonVerificationDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]).optional(), 'details': z.string().optional(), 'details_code': z.string().optional(), 'front': z.union([z.string(), z.lazy(() => File)]).optional() }); -export type LegalEntityPersonVerificationDocumentModel = z.infer; - -export const LegalEntityPersonVerification = z.object({ +export const LegalEntityPersonVerification: z.ZodType = z.object({ 'additional_document': z.union([LegalEntityPersonVerificationDocument]).optional(), 'details': z.string().optional(), 'details_code': z.string().optional(), @@ -8944,9 +16065,7 @@ export const LegalEntityPersonVerification = z.object({ 'status': z.string() }); -export type LegalEntityPersonVerificationModel = z.infer; - -export const Person = z.object({ +export const Person: z.ZodType = z.object({ 'account': z.string(), 'additional_tos_acceptances': PersonAdditionalTosAcceptances.optional(), 'address': Address.optional(), @@ -8981,9 +16100,7 @@ export const Person = z.object({ 'verification': LegalEntityPersonVerification.optional() }); -export type PersonModel = z.infer; - -export const AccountRequirements = z.object({ +export const AccountRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'current_deadline': z.number().int().optional(), 'currently_due': z.array(z.string()).optional(), @@ -8994,77 +16111,57 @@ export const AccountRequirements = z.object({ 'pending_verification': z.array(z.string()).optional() }); -export type AccountRequirementsModel = z.infer; - -export const AccountBacsDebitPaymentsSettings = z.object({ +export const AccountBacsDebitPaymentsSettings: z.ZodType = z.object({ 'display_name': z.string().optional(), 'service_user_number': z.string().optional() }); -export type AccountBacsDebitPaymentsSettingsModel = z.infer; - -export const AccountBrandingSettings = z.object({ +export const AccountBrandingSettings: z.ZodType = z.object({ 'icon': z.union([z.string(), z.lazy(() => File)]).optional(), 'logo': z.union([z.string(), z.lazy(() => File)]).optional(), 'primary_color': z.string().optional(), 'secondary_color': z.string().optional() }); -export type AccountBrandingSettingsModel = z.infer; - -export const CardIssuingAccountTermsOfService = z.object({ +export const CardIssuingAccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type CardIssuingAccountTermsOfServiceModel = z.infer; - -export const AccountCardIssuingSettings = z.object({ +export const AccountCardIssuingSettings: z.ZodType = z.object({ 'tos_acceptance': CardIssuingAccountTermsOfService.optional() }); -export type AccountCardIssuingSettingsModel = z.infer; - -export const AccountDeclineChargeOn = z.object({ +export const AccountDeclineChargeOn: z.ZodType = z.object({ 'avs_failure': z.boolean(), 'cvc_failure': z.boolean() }); -export type AccountDeclineChargeOnModel = z.infer; - -export const AccountCardPaymentsSettings = z.object({ +export const AccountCardPaymentsSettings: z.ZodType = z.object({ 'decline_on': AccountDeclineChargeOn.optional(), 'statement_descriptor_prefix': z.string().optional(), 'statement_descriptor_prefix_kana': z.string().optional(), 'statement_descriptor_prefix_kanji': z.string().optional() }); -export type AccountCardPaymentsSettingsModel = z.infer; - -export const AccountDashboardSettings = z.object({ +export const AccountDashboardSettings: z.ZodType = z.object({ 'display_name': z.string().optional(), 'timezone': z.string().optional() }); -export type AccountDashboardSettingsModel = z.infer; - -export const AccountInvoicesSettings = z.object({ +export const AccountInvoicesSettings: z.ZodType = z.object({ 'default_account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId)])).optional(), 'hosted_payment_method_save': z.enum(['always', 'never', 'offer']).optional() }); -export type AccountInvoicesSettingsModel = z.infer; - -export const AccountPaymentsSettings = z.object({ +export const AccountPaymentsSettings: z.ZodType = z.object({ 'statement_descriptor': z.string().optional(), 'statement_descriptor_kana': z.string().optional(), 'statement_descriptor_kanji': z.string().optional() }); -export type AccountPaymentsSettingsModel = z.infer; - -export const TransferSchedule = z.object({ +export const TransferSchedule: z.ZodType = z.object({ 'delay_days': z.number().int(), 'interval': z.string(), 'monthly_anchor': z.number().int().optional(), @@ -9073,37 +16170,27 @@ export const TransferSchedule = z.object({ 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type TransferScheduleModel = z.infer; - -export const AccountPayoutSettings = z.object({ +export const AccountPayoutSettings: z.ZodType = z.object({ 'debit_negative_balances': z.boolean(), 'schedule': TransferSchedule, 'statement_descriptor': z.string().optional() }); -export type AccountPayoutSettingsModel = z.infer; - -export const AccountSepaDebitPaymentsSettings = z.object({ +export const AccountSepaDebitPaymentsSettings: z.ZodType = z.object({ 'creditor_id': z.string().optional() }); -export type AccountSepaDebitPaymentsSettingsModel = z.infer; - -export const AccountTermsOfService = z.object({ +export const AccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'user_agent': z.string().optional() }); -export type AccountTermsOfServiceModel = z.infer; - -export const AccountTreasurySettings = z.object({ +export const AccountTreasurySettings: z.ZodType = z.object({ 'tos_acceptance': AccountTermsOfService.optional() }); -export type AccountTreasurySettingsModel = z.infer; - -export const AccountSettings = z.object({ +export const AccountSettings: z.ZodType = z.object({ 'bacs_debit_payments': AccountBacsDebitPaymentsSettings.optional(), 'branding': AccountBrandingSettings, 'card_issuing': AccountCardIssuingSettings.optional(), @@ -9116,17 +16203,13 @@ export const AccountSettings = z.object({ 'treasury': AccountTreasurySettings.optional() }); -export type AccountSettingsModel = z.infer; - -export const AccountTosAcceptance = z.object({ +export const AccountTosAcceptance: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'service_agreement': z.string().optional(), 'user_agent': z.string().optional() }); -export type AccountTosAcceptanceModel = z.infer; - export const Account: z.ZodType = z.object({ 'business_profile': z.union([AccountBusinessProfile]).optional(), 'business_type': z.enum(['company', 'government_entity', 'individual', 'non_profit']).optional(), @@ -9158,7 +16241,7 @@ export const Account: z.ZodType = z.object({ 'type': z.enum(['custom', 'express', 'none', 'standard']).optional() }); -export const AccountCapabilityFutureRequirements = z.object({ +export const AccountCapabilityFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'current_deadline': z.number().int().optional(), 'currently_due': z.array(z.string()), @@ -9169,9 +16252,7 @@ export const AccountCapabilityFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityFutureRequirementsModel = z.infer; - -export const AccountCapabilityRequirements = z.object({ +export const AccountCapabilityRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative).optional(), 'current_deadline': z.number().int().optional(), 'currently_due': z.array(z.string()), @@ -9182,32 +16263,24 @@ export const AccountCapabilityRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityRequirementsModel = z.infer; - -export const AccountLink = z.object({ +export const AccountLink: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int(), 'object': z.enum(['account_link']), 'url': z.string() }); -export type AccountLinkModel = z.infer; - -export const ConnectEmbeddedAccountFeaturesClaim = z.object({ +export const ConnectEmbeddedAccountFeaturesClaim: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean() }); -export type ConnectEmbeddedAccountFeaturesClaimModel = z.infer; - -export const ConnectEmbeddedAccountConfigClaim = z.object({ +export const ConnectEmbeddedAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedAccountFeaturesClaim }); -export type ConnectEmbeddedAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedPayoutsFeatures = z.object({ +export const ConnectEmbeddedPayoutsFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'edit_payout_schedule': z.boolean(), 'external_account_collection': z.boolean(), @@ -9215,105 +16288,77 @@ export const ConnectEmbeddedPayoutsFeatures = z.object({ 'standard_payouts': z.boolean() }); -export type ConnectEmbeddedPayoutsFeaturesModel = z.infer; - -export const ConnectEmbeddedPayoutsConfig = z.object({ +export const ConnectEmbeddedPayoutsConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPayoutsFeatures }); -export type ConnectEmbeddedPayoutsConfigModel = z.infer; - -export const ConnectEmbeddedDisputesListFeatures = z.object({ +export const ConnectEmbeddedDisputesListFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedDisputesListFeaturesModel = z.infer; - -export const ConnectEmbeddedDisputesListConfig = z.object({ +export const ConnectEmbeddedDisputesListConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedDisputesListFeatures }); -export type ConnectEmbeddedDisputesListConfigModel = z.infer; - -export const ConnectEmbeddedBaseFeatures = z.object({ +export const ConnectEmbeddedBaseFeatures: z.ZodType = z.object({ }); -export type ConnectEmbeddedBaseFeaturesModel = z.infer; - -export const ConnectEmbeddedBaseConfigClaim = z.object({ +export const ConnectEmbeddedBaseConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedBaseFeatures }); -export type ConnectEmbeddedBaseConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'send_money': z.boolean(), 'transfer_balance': z.boolean() }); -export type ConnectEmbeddedFinancialAccountFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountFeatures }); -export type ConnectEmbeddedFinancialAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsFeatures: z.ZodType = z.object({ 'card_spend_dispute_management': z.boolean() }); -export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountTransactionsFeatures }); -export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionFeatures = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'instant_payouts': z.boolean() }); -export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionConfig = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedInstantPayoutsPromotionFeatures }); -export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = z.infer; - -export const ConnectEmbeddedIssuingCardFeatures = z.object({ +export const ConnectEmbeddedIssuingCardFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardFeatures }); -export type ConnectEmbeddedIssuingCardConfigClaimModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ +export const ConnectEmbeddedIssuingCardsListFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), @@ -9321,47 +16366,35 @@ export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardsListFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardsListConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardsListFeatures }); -export type ConnectEmbeddedIssuingCardsListConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentsFeatures = z.object({ +export const ConnectEmbeddedPaymentsFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentsFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentsConfigClaim = z.object({ +export const ConnectEmbeddedPaymentsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentsFeatures }); -export type ConnectEmbeddedPaymentsConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesFeatures = z.object({ +export const ConnectEmbeddedPaymentDisputesFeatures: z.ZodType = z.object({ 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentDisputesFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesConfig = z.object({ +export const ConnectEmbeddedPaymentDisputesConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentDisputesFeatures }); -export type ConnectEmbeddedPaymentDisputesConfigModel = z.infer; - -export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ +export const ConnectEmbeddedAccountSessionCreateComponents: z.ZodType = z.object({ 'account_management': ConnectEmbeddedAccountConfigClaim, 'account_onboarding': ConnectEmbeddedAccountConfigClaim, 'balances': ConnectEmbeddedPayoutsConfig, @@ -9383,9 +16416,7 @@ export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ 'tax_settings': ConnectEmbeddedBaseConfigClaim }); -export type ConnectEmbeddedAccountSessionCreateComponentsModel = z.infer; - -export const AccountSession = z.object({ +export const AccountSession: z.ZodType = z.object({ 'account': z.string(), 'client_secret': z.string(), 'components': ConnectEmbeddedAccountSessionCreateComponents, @@ -9394,9 +16425,7 @@ export const AccountSession = z.object({ 'object': z.enum(['account_session']) }); -export type AccountSessionModel = z.infer; - -export const ApplePayDomain = z.object({ +export const ApplePayDomain: z.ZodType = z.object({ 'created': z.number().int(), 'domain_name': z.string(), 'id': z.string(), @@ -9404,16 +16433,12 @@ export const ApplePayDomain = z.object({ 'object': z.enum(['apple_pay_domain']) }); -export type ApplePayDomainModel = z.infer; - -export const SecretServiceResourceScope = z.object({ +export const SecretServiceResourceScope: z.ZodType = z.object({ 'type': z.enum(['account', 'user']), 'user': z.string().optional() }); -export type SecretServiceResourceScopeModel = z.infer; - -export const AppsSecret = z.object({ +export const AppsSecret: z.ZodType = z.object({ 'created': z.number().int(), 'deleted': z.boolean().optional(), 'expires_at': z.number().int().optional(), @@ -9425,55 +16450,41 @@ export const AppsSecret = z.object({ 'scope': SecretServiceResourceScope }); -export type AppsSecretModel = z.infer; - -export const BalanceAmountBySourceType = z.object({ +export const BalanceAmountBySourceType: z.ZodType = z.object({ 'bank_account': z.number().int().optional(), 'card': z.number().int().optional(), 'fpx': z.number().int().optional() }); -export type BalanceAmountBySourceTypeModel = z.infer; - -export const BalanceAmount = z.object({ +export const BalanceAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountModel = z.infer; - -export const BalanceNetAvailable = z.object({ +export const BalanceNetAvailable: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceNetAvailableModel = z.infer; - -export const BalanceAmountNet = z.object({ +export const BalanceAmountNet: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'net_available': z.array(BalanceNetAvailable).optional(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountNetModel = z.infer; - -export const BalanceDetail = z.object({ +export const BalanceDetail: z.ZodType = z.object({ 'available': z.array(BalanceAmount) }); -export type BalanceDetailModel = z.infer; - -export const BalanceDetailUngated = z.object({ +export const BalanceDetailUngated: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'pending': z.array(BalanceAmount) }); -export type BalanceDetailUngatedModel = z.infer; - -export const Balance = z.object({ +export const Balance: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'connect_reserved': z.array(BalanceAmount).optional(), 'instant_available': z.array(BalanceAmountNet).optional(), @@ -9484,77 +16495,57 @@ export const Balance = z.object({ 'refund_and_dispute_prefunding': BalanceDetailUngated.optional() }); -export type BalanceModel = z.infer; - -export const BalanceSettingsResourcePayoutSchedule = z.object({ +export const BalanceSettingsResourcePayoutSchedule: z.ZodType = z.object({ 'interval': z.enum(['daily', 'manual', 'monthly', 'weekly']).optional(), 'monthly_payout_days': z.array(z.number().int()).optional(), 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type BalanceSettingsResourcePayoutScheduleModel = z.infer; - -export const BalanceSettingsResourcePayouts = z.object({ +export const BalanceSettingsResourcePayouts: z.ZodType = z.object({ 'minimum_balance_by_currency': z.record(z.string(), z.number().int()).optional(), 'schedule': z.union([BalanceSettingsResourcePayoutSchedule]).optional(), 'statement_descriptor': z.string().optional(), 'status': z.enum(['disabled', 'enabled']) }); -export type BalanceSettingsResourcePayoutsModel = z.infer; - -export const BalanceSettingsResourceSettlementTiming = z.object({ +export const BalanceSettingsResourceSettlementTiming: z.ZodType = z.object({ 'delay_days': z.number().int(), 'delay_days_override': z.number().int().optional() }); -export type BalanceSettingsResourceSettlementTimingModel = z.infer; - -export const BalanceSettingsResourcePayments = z.object({ +export const BalanceSettingsResourcePayments: z.ZodType = z.object({ 'debit_negative_balances': z.boolean().optional(), 'payouts': z.union([BalanceSettingsResourcePayouts]).optional(), 'settlement_timing': BalanceSettingsResourceSettlementTiming }); -export type BalanceSettingsResourcePaymentsModel = z.infer; - -export const BalanceSettings = z.object({ +export const BalanceSettings: z.ZodType = z.object({ 'object': z.enum(['balance_settings']), 'payments': BalanceSettingsResourcePayments }); -export type BalanceSettingsModel = z.infer; - -export const BankConnectionsResourceAccountNumberDetails = z.object({ +export const BankConnectionsResourceAccountNumberDetails: z.ZodType = z.object({ 'expected_expiry_date': z.number().int().optional(), 'identifier_type': z.enum(['account_number', 'tokenized_account_number']), 'status': z.enum(['deactivated', 'transactable']), 'supported_networks': z.array(z.enum(['ach'])) }); -export type BankConnectionsResourceAccountNumberDetailsModel = z.infer; - -export const BankConnectionsResourceAccountholder = z.object({ +export const BankConnectionsResourceAccountholder: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'customer': z.union([z.string(), z.lazy(() => Customer)]).optional(), 'type': z.enum(['account', 'customer']) }); -export type BankConnectionsResourceAccountholderModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCashBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()).optional() }); -export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCreditBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCreditBalance: z.ZodType = z.object({ 'used': z.record(z.string(), z.number().int()).optional() }); -export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = z.infer; - -export const BankConnectionsResourceBalance = z.object({ +export const BankConnectionsResourceBalance: z.ZodType = z.object({ 'as_of': z.number().int(), 'cash': BankConnectionsResourceBalanceApiResourceCashBalance.optional(), 'credit': BankConnectionsResourceBalanceApiResourceCreditBalance.optional(), @@ -9562,80 +16553,58 @@ export const BankConnectionsResourceBalance = z.object({ 'type': z.enum(['cash', 'credit']) }); -export type BankConnectionsResourceBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceRefresh = z.object({ +export const BankConnectionsResourceBalanceRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int().optional(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceBalanceRefreshModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionFilters = z.object({ +export const BankConnectionsResourceLinkAccountSessionFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'credit_card', 'line_of_credit', 'mortgage', 'savings'])).optional(), 'countries': z.array(z.string()).optional() }); -export type BankConnectionsResourceLinkAccountSessionFiltersModel = z.infer; - -export const BankConnectionsResourceOwnershipRefresh = z.object({ +export const BankConnectionsResourceOwnershipRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int().optional(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceOwnershipRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionRefresh = z.object({ +export const BankConnectionsResourceTransactionRefresh: z.ZodType = z.object({ 'id': z.string(), 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int().optional(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceTransactionRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionResourceStatusTransitions = z.object({ +export const BankConnectionsResourceTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int().optional(), 'void_at': z.number().int().optional() }); -export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = z.infer; - -export const ThresholdsResourceUsageAlertFilter = z.object({ +export const ThresholdsResourceUsageAlertFilter: z.ZodType = z.object({ 'customer': z.union([z.string(), z.lazy(() => Customer)]).optional(), 'type': z.enum(['customer']) }); -export type ThresholdsResourceUsageAlertFilterModel = z.infer; - -export const BillingMeterResourceCustomerMappingSettings = z.object({ +export const BillingMeterResourceCustomerMappingSettings: z.ZodType = z.object({ 'event_payload_key': z.string(), 'type': z.enum(['by_id']) }); -export type BillingMeterResourceCustomerMappingSettingsModel = z.infer; - -export const BillingMeterResourceAggregationSettings = z.object({ +export const BillingMeterResourceAggregationSettings: z.ZodType = z.object({ 'formula': z.enum(['count', 'last', 'sum']) }); -export type BillingMeterResourceAggregationSettingsModel = z.infer; - -export const BillingMeterResourceBillingMeterStatusTransitions = z.object({ +export const BillingMeterResourceBillingMeterStatusTransitions: z.ZodType = z.object({ 'deactivated_at': z.number().int().optional() }); -export type BillingMeterResourceBillingMeterStatusTransitionsModel = z.infer; - -export const BillingMeterResourceBillingMeterValue = z.object({ +export const BillingMeterResourceBillingMeterValue: z.ZodType = z.object({ 'event_payload_key': z.string() }); -export type BillingMeterResourceBillingMeterValueModel = z.infer; - -export const BillingMeter = z.object({ +export const BillingMeter: z.ZodType = z.object({ 'created': z.number().int(), 'customer_mapping': BillingMeterResourceCustomerMappingSettings, 'default_aggregation': BillingMeterResourceAggregationSettings, @@ -9651,18 +16620,14 @@ export const BillingMeter = z.object({ 'value_settings': BillingMeterResourceBillingMeterValue }); -export type BillingMeterModel = z.infer; - -export const ThresholdsResourceUsageThresholdConfig = z.object({ +export const ThresholdsResourceUsageThresholdConfig: z.ZodType = z.object({ 'filters': z.array(ThresholdsResourceUsageAlertFilter).optional(), 'gte': z.number().int(), 'meter': z.union([z.string(), BillingMeter]), 'recurrence': z.enum(['one_time']) }); -export type ThresholdsResourceUsageThresholdConfigModel = z.infer; - -export const BillingAlert = z.object({ +export const BillingAlert: z.ZodType = z.object({ 'alert_type': z.enum(['usage_threshold']), 'id': z.string(), 'livemode': z.boolean(), @@ -9672,25 +16637,19 @@ export const BillingAlert = z.object({ 'usage_threshold': z.union([ThresholdsResourceUsageThresholdConfig]).optional() }); -export type BillingAlertModel = z.infer; - -export const CreditBalance = z.object({ +export const CreditBalance: z.ZodType = z.object({ 'available_balance': BillingCreditGrantsResourceAmount, 'ledger_balance': BillingCreditGrantsResourceAmount }); -export type CreditBalanceModel = z.infer; - -export const BillingCreditBalanceSummary = z.object({ +export const BillingCreditBalanceSummary: z.ZodType = z.object({ 'balances': z.array(CreditBalance), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), 'livemode': z.boolean(), 'object': z.enum(['billing.credit_balance_summary']) }); -export type BillingCreditBalanceSummaryModel = z.infer; - -export const BillingMeterEvent = z.object({ +export const BillingMeterEvent: z.ZodType = z.object({ 'created': z.number().int(), 'event_name': z.string(), 'identifier': z.string(), @@ -9700,15 +16659,11 @@ export const BillingMeterEvent = z.object({ 'timestamp': z.number().int() }); -export type BillingMeterEventModel = z.infer; - -export const BillingMeterResourceBillingMeterEventAdjustmentCancel = z.object({ +export const BillingMeterResourceBillingMeterEventAdjustmentCancel: z.ZodType = z.object({ 'identifier': z.string().optional() }); -export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = z.infer; - -export const BillingMeterEventAdjustment = z.object({ +export const BillingMeterEventAdjustment: z.ZodType = z.object({ 'cancel': z.union([BillingMeterResourceBillingMeterEventAdjustmentCancel]).optional(), 'event_name': z.string(), 'livemode': z.boolean(), @@ -9717,9 +16672,7 @@ export const BillingMeterEventAdjustment = z.object({ 'type': z.enum(['cancel']) }); -export type BillingMeterEventAdjustmentModel = z.infer; - -export const BillingMeterEventSummary = z.object({ +export const BillingMeterEventSummary: z.ZodType = z.object({ 'aggregated_value': z.number(), 'end_time': z.number().int(), 'id': z.string(), @@ -9729,95 +16682,69 @@ export const BillingMeterEventSummary = z.object({ 'start_time': z.number().int() }); -export type BillingMeterEventSummaryModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent: z.ZodType = z.object({ 'subscription': z.string(), 'subscription_item': z.string().optional() }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemParent: z.ZodType = z.object({ 'subscription_details': z.union([BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent]).optional(), 'type': z.enum(['subscription_details']) }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = z.infer; - -export const PortalBusinessProfile = z.object({ +export const PortalBusinessProfile: z.ZodType = z.object({ 'headline': z.string().optional(), 'privacy_policy_url': z.string().optional(), 'terms_of_service_url': z.string().optional() }); -export type PortalBusinessProfileModel = z.infer; - -export const PortalCustomerUpdate = z.object({ +export const PortalCustomerUpdate: z.ZodType = z.object({ 'allowed_updates': z.array(z.enum(['address', 'email', 'name', 'phone', 'shipping', 'tax_id'])), 'enabled': z.boolean() }); -export type PortalCustomerUpdateModel = z.infer; - -export const PortalInvoiceList = z.object({ +export const PortalInvoiceList: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PortalInvoiceListModel = z.infer; - -export const PortalPaymentMethodUpdate = z.object({ +export const PortalPaymentMethodUpdate: z.ZodType = z.object({ 'enabled': z.boolean(), 'payment_method_configuration': z.string().optional() }); -export type PortalPaymentMethodUpdateModel = z.infer; - -export const PortalSubscriptionCancellationReason = z.object({ +export const PortalSubscriptionCancellationReason: z.ZodType = z.object({ 'enabled': z.boolean(), 'options': z.array(z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused'])) }); -export type PortalSubscriptionCancellationReasonModel = z.infer; - -export const PortalSubscriptionCancel = z.object({ +export const PortalSubscriptionCancel: z.ZodType = z.object({ 'cancellation_reason': PortalSubscriptionCancellationReason, 'enabled': z.boolean(), 'mode': z.enum(['at_period_end', 'immediately']), 'proration_behavior': z.enum(['always_invoice', 'create_prorations', 'none']) }); -export type PortalSubscriptionCancelModel = z.infer; - -export const PortalSubscriptionUpdateProductAdjustableQuantity = z.object({ +export const PortalSubscriptionUpdateProductAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int().optional(), 'minimum': z.number().int() }); -export type PortalSubscriptionUpdateProductAdjustableQuantityModel = z.infer; - -export const PortalSubscriptionUpdateProduct = z.object({ +export const PortalSubscriptionUpdateProduct: z.ZodType = z.object({ 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantity, 'prices': z.array(z.string()), 'product': z.string() }); -export type PortalSubscriptionUpdateProductModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEndCondition = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEndCondition: z.ZodType = z.object({ 'type': z.enum(['decreasing_item_amount', 'shortening_interval']) }); -export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEnd = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEnd: z.ZodType = z.object({ 'conditions': z.array(PortalResourceScheduleUpdateAtPeriodEndCondition) }); -export type PortalResourceScheduleUpdateAtPeriodEndModel = z.infer; - -export const PortalSubscriptionUpdate = z.object({ +export const PortalSubscriptionUpdate: z.ZodType = z.object({ 'default_allowed_updates': z.array(z.enum(['price', 'promotion_code', 'quantity'])), 'enabled': z.boolean(), 'products': z.array(PortalSubscriptionUpdateProduct).optional(), @@ -9826,9 +16753,7 @@ export const PortalSubscriptionUpdate = z.object({ 'trial_update_behavior': z.enum(['continue_trial', 'end_trial']) }); -export type PortalSubscriptionUpdateModel = z.infer; - -export const PortalFeatures = z.object({ +export const PortalFeatures: z.ZodType = z.object({ 'customer_update': PortalCustomerUpdate, 'invoice_history': PortalInvoiceList, 'payment_method_update': PortalPaymentMethodUpdate, @@ -9836,16 +16761,12 @@ export const PortalFeatures = z.object({ 'subscription_update': PortalSubscriptionUpdate }); -export type PortalFeaturesModel = z.infer; - -export const PortalLoginPage = z.object({ +export const PortalLoginPage: z.ZodType = z.object({ 'enabled': z.boolean(), 'url': z.string().optional() }); -export type PortalLoginPageModel = z.infer; - -export const BillingPortalConfiguration = z.object({ +export const BillingPortalConfiguration: z.ZodType = z.object({ 'active': z.boolean(), 'application': z.union([z.string(), Application, DeletedApplication]).optional(), 'business_profile': PortalBusinessProfile, @@ -9862,78 +16783,56 @@ export const BillingPortalConfiguration = z.object({ 'updated': z.number().int() }); -export type BillingPortalConfigurationModel = z.infer; - -export const PortalFlowsAfterCompletionHostedConfirmation = z.object({ +export const PortalFlowsAfterCompletionHostedConfirmation: z.ZodType = z.object({ 'custom_message': z.string().optional() }); -export type PortalFlowsAfterCompletionHostedConfirmationModel = z.infer; - -export const PortalFlowsAfterCompletionRedirect = z.object({ +export const PortalFlowsAfterCompletionRedirect: z.ZodType = z.object({ 'return_url': z.string() }); -export type PortalFlowsAfterCompletionRedirectModel = z.infer; - -export const PortalFlowsFlowAfterCompletion = z.object({ +export const PortalFlowsFlowAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': z.union([PortalFlowsAfterCompletionHostedConfirmation]).optional(), 'redirect': z.union([PortalFlowsAfterCompletionRedirect]).optional(), 'type': z.enum(['hosted_confirmation', 'portal_homepage', 'redirect']) }); -export type PortalFlowsFlowAfterCompletionModel = z.infer; - -export const PortalFlowsCouponOffer = z.object({ +export const PortalFlowsCouponOffer: z.ZodType = z.object({ 'coupon': z.string() }); -export type PortalFlowsCouponOfferModel = z.infer; - -export const PortalFlowsRetention = z.object({ +export const PortalFlowsRetention: z.ZodType = z.object({ 'coupon_offer': z.union([PortalFlowsCouponOffer]).optional(), 'type': z.enum(['coupon_offer']) }); -export type PortalFlowsRetentionModel = z.infer; - -export const PortalFlowsFlowSubscriptionCancel = z.object({ +export const PortalFlowsFlowSubscriptionCancel: z.ZodType = z.object({ 'retention': z.union([PortalFlowsRetention]).optional(), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionCancelModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdate = z.object({ +export const PortalFlowsFlowSubscriptionUpdate: z.ZodType = z.object({ 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmDiscount = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmDiscount: z.ZodType = z.object({ 'coupon': z.string().optional(), 'promotion_code': z.string().optional() }); -export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmItem = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmItem: z.ZodType = z.object({ 'id': z.string().optional(), 'price': z.string().optional(), 'quantity': z.number().int().optional() }); -export type PortalFlowsSubscriptionUpdateConfirmItemModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdateConfirm = z.object({ +export const PortalFlowsFlowSubscriptionUpdateConfirm: z.ZodType = z.object({ 'discounts': z.array(PortalFlowsSubscriptionUpdateConfirmDiscount).optional(), 'items': z.array(PortalFlowsSubscriptionUpdateConfirmItem), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateConfirmModel = z.infer; - -export const PortalFlowsFlow = z.object({ +export const PortalFlowsFlow: z.ZodType = z.object({ 'after_completion': PortalFlowsFlowAfterCompletion, 'subscription_cancel': z.union([PortalFlowsFlowSubscriptionCancel]).optional(), 'subscription_update': z.union([PortalFlowsFlowSubscriptionUpdate]).optional(), @@ -9941,9 +16840,7 @@ export const PortalFlowsFlow = z.object({ 'type': z.enum(['payment_method_update', 'subscription_cancel', 'subscription_update', 'subscription_update_confirm']) }); -export type PortalFlowsFlowModel = z.infer; - -export const BillingPortalSession = z.object({ +export const BillingPortalSession: z.ZodType = z.object({ 'configuration': z.union([z.string(), BillingPortalConfiguration]), 'created': z.number().int(), 'customer': z.string(), @@ -9957,9 +16854,7 @@ export const BillingPortalSession = z.object({ 'url': z.string() }); -export type BillingPortalSessionModel = z.infer; - -export const Capability = z.object({ +export const Capability: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'future_requirements': AccountCapabilityFutureRequirements.optional(), 'id': z.string(), @@ -9970,55 +16865,41 @@ export const Capability = z.object({ 'status': z.enum(['active', 'inactive', 'pending', 'unrequested']) }); -export type CapabilityModel = z.infer; - -export const PaymentPagesCheckoutSessionAdaptivePricing = z.object({ +export const PaymentPagesCheckoutSessionAdaptivePricing: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionAdaptivePricingModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpirationRecovery = z.object({ +export const PaymentPagesCheckoutSessionAfterExpirationRecovery: z.ZodType = z.object({ 'allow_promotion_codes': z.boolean(), 'enabled': z.boolean(), 'expires_at': z.number().int().optional(), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpiration = z.object({ +export const PaymentPagesCheckoutSessionAfterExpiration: z.ZodType = z.object({ 'recovery': z.union([PaymentPagesCheckoutSessionAfterExpirationRecovery]).optional() }); -export type PaymentPagesCheckoutSessionAfterExpirationModel = z.infer; - -export const PaymentPagesCheckoutSessionAutomaticTax = z.object({ +export const PaymentPagesCheckoutSessionAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional(), 'provider': z.string().optional(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']).optional() }); -export type PaymentPagesCheckoutSessionAutomaticTaxModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsIcon = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsIcon: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsLogo = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsLogo: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettings: z.ZodType = z.object({ 'background_color': z.string(), 'border_style': z.enum(['pill', 'rectangular', 'rounded']), 'button_color': z.string(), @@ -10028,94 +16909,70 @@ export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ 'logo': z.union([PaymentPagesCheckoutSessionBrandingSettingsLogo]).optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionCheckoutAddressDetails = z.object({ +export const PaymentPagesCheckoutSessionCheckoutAddressDetails: z.ZodType = z.object({ 'address': Address, 'name': z.string() }); -export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionCollectedInformation = z.object({ +export const PaymentPagesCheckoutSessionCollectedInformation: z.ZodType = z.object({ 'business_name': z.string().optional(), 'individual_name': z.string().optional(), 'shipping_details': z.union([PaymentPagesCheckoutSessionCheckoutAddressDetails]).optional() }); -export type PaymentPagesCheckoutSessionCollectedInformationModel = z.infer; - -export const PaymentPagesCheckoutSessionConsent = z.object({ +export const PaymentPagesCheckoutSessionConsent: z.ZodType = z.object({ 'promotions': z.enum(['opt_in', 'opt_out']).optional(), 'terms_of_service': z.enum(['accepted']).optional() }); -export type PaymentPagesCheckoutSessionConsentModel = z.infer; - -export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement = z.object({ +export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = z.infer; - -export const PaymentPagesCheckoutSessionConsentCollection = z.object({ +export const PaymentPagesCheckoutSessionConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentPagesCheckoutSessionPaymentMethodReuseAgreement]).optional(), 'promotions': z.enum(['auto', 'none']).optional(), 'terms_of_service': z.enum(['none', 'required']).optional() }); -export type PaymentPagesCheckoutSessionConsentCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionCurrencyConversion = z.object({ +export const PaymentPagesCheckoutSessionCurrencyConversion: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'fx_rate': z.string(), 'source_currency': z.string() }); -export type PaymentPagesCheckoutSessionCurrencyConversionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsOption = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsDropdown = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string().optional(), 'options': z.array(PaymentPagesCheckoutSessionCustomFieldsOption), 'value': z.string().optional() }); -export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsLabel = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string().optional(), 'type': z.enum(['custom']) }); -export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsNumeric = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string().optional(), 'maximum_length': z.number().int().optional(), 'minimum_length': z.number().int().optional(), 'value': z.string().optional() }); -export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsText = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string().optional(), 'maximum_length': z.number().int().optional(), 'minimum_length': z.number().int().optional(), 'value': z.string().optional() }); -export type PaymentPagesCheckoutSessionCustomFieldsTextModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFields = z.object({ +export const PaymentPagesCheckoutSessionCustomFields: z.ZodType = z.object({ 'dropdown': PaymentPagesCheckoutSessionCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentPagesCheckoutSessionCustomFieldsLabel, @@ -10125,31 +16982,23 @@ export const PaymentPagesCheckoutSessionCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentPagesCheckoutSessionCustomFieldsModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomTextPosition = z.object({ +export const PaymentPagesCheckoutSessionCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentPagesCheckoutSessionCustomTextPositionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomText = z.object({ +export const PaymentPagesCheckoutSessionCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]).optional(), 'shipping_address': z.union([PaymentPagesCheckoutSessionCustomTextPosition]).optional(), 'submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]).optional(), 'terms_of_service_acceptance': z.union([PaymentPagesCheckoutSessionCustomTextPosition]).optional() }); -export type PaymentPagesCheckoutSessionCustomTextModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxId = z.object({ +export const PaymentPagesCheckoutSessionTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string().optional() }); -export type PaymentPagesCheckoutSessionTaxIdModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ +export const PaymentPagesCheckoutSessionCustomerDetails: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'business_name': z.string().optional(), 'email': z.string().optional(), @@ -10160,23 +17009,17 @@ export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ 'tax_ids': z.array(PaymentPagesCheckoutSessionTaxId).optional() }); -export type PaymentPagesCheckoutSessionCustomerDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionDiscount = z.object({ +export const PaymentPagesCheckoutSessionDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]).optional(), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]).optional() }); -export type PaymentPagesCheckoutSessionDiscountModel = z.infer; - -export const InvoiceSettingCheckoutRenderingOptions = z.object({ +export const InvoiceSettingCheckoutRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string().optional(), 'template': z.string().optional() }); -export type InvoiceSettingCheckoutRenderingOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ +export const PaymentPagesCheckoutSessionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])).optional(), 'custom_fields': z.array(InvoiceSettingCustomField).optional(), 'description': z.string().optional(), @@ -10186,23 +17029,17 @@ export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]).optional() }); -export type PaymentPagesCheckoutSessionInvoiceSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceCreation = z.object({ +export const PaymentPagesCheckoutSessionInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettings }); -export type PaymentPagesCheckoutSessionInvoiceCreationModel = z.infer; - -export const LineItemsDiscountAmount = z.object({ +export const LineItemsDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.lazy(() => Discount) }); -export type LineItemsDiscountAmountModel = z.infer; - -export const Item = z.object({ +export const Item: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), @@ -10217,124 +17054,90 @@ export const Item = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type ItemModel = z.infer; - -export const PaymentPagesCheckoutSessionBusinessName = z.object({ +export const PaymentPagesCheckoutSessionBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionBusinessNameModel = z.infer; - -export const PaymentPagesCheckoutSessionIndividualName = z.object({ +export const PaymentPagesCheckoutSessionIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionIndividualNameModel = z.infer; - -export const PaymentPagesCheckoutSessionNameCollection = z.object({ +export const PaymentPagesCheckoutSessionNameCollection: z.ZodType = z.object({ 'business': PaymentPagesCheckoutSessionBusinessName.optional(), 'individual': PaymentPagesCheckoutSessionIndividualName.optional() }); -export type PaymentPagesCheckoutSessionNameCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity = z.object({ +export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int().optional(), 'minimum': z.number().int().optional() }); -export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItem = z.object({ +export const PaymentPagesCheckoutSessionOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity]).optional(), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentPagesCheckoutSessionOptionalItemModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorConfirmationPage = z.object({ +export const PaymentLinksResourceCompletionBehaviorConfirmationPage: z.ZodType = z.object({ 'custom_message': z.string().optional() }); -export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorRedirect = z.object({ +export const PaymentLinksResourceCompletionBehaviorRedirect: z.ZodType = z.object({ 'url': z.string() }); -export type PaymentLinksResourceCompletionBehaviorRedirectModel = z.infer; - -export const PaymentLinksResourceAfterCompletion = z.object({ +export const PaymentLinksResourceAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': PaymentLinksResourceCompletionBehaviorConfirmationPage.optional(), 'redirect': PaymentLinksResourceCompletionBehaviorRedirect.optional(), 'type': z.enum(['hosted_confirmation', 'redirect']) }); -export type PaymentLinksResourceAfterCompletionModel = z.infer; - -export const PaymentLinksResourceAutomaticTax = z.object({ +export const PaymentLinksResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional() }); -export type PaymentLinksResourceAutomaticTaxModel = z.infer; - -export const PaymentLinksResourcePaymentMethodReuseAgreement = z.object({ +export const PaymentLinksResourcePaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentLinksResourcePaymentMethodReuseAgreementModel = z.infer; - -export const PaymentLinksResourceConsentCollection = z.object({ +export const PaymentLinksResourceConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentLinksResourcePaymentMethodReuseAgreement]).optional(), 'promotions': z.enum(['auto', 'none']).optional(), 'terms_of_service': z.enum(['none', 'required']).optional() }); -export type PaymentLinksResourceConsentCollectionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdownOption = z.object({ +export const PaymentLinksResourceCustomFieldsDropdownOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentLinksResourceCustomFieldsDropdownOptionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdown = z.object({ +export const PaymentLinksResourceCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string().optional(), 'options': z.array(PaymentLinksResourceCustomFieldsDropdownOption) }); -export type PaymentLinksResourceCustomFieldsDropdownModel = z.infer; - -export const PaymentLinksResourceCustomFieldsLabel = z.object({ +export const PaymentLinksResourceCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string().optional(), 'type': z.enum(['custom']) }); -export type PaymentLinksResourceCustomFieldsLabelModel = z.infer; - -export const PaymentLinksResourceCustomFieldsNumeric = z.object({ +export const PaymentLinksResourceCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string().optional(), 'maximum_length': z.number().int().optional(), 'minimum_length': z.number().int().optional() }); -export type PaymentLinksResourceCustomFieldsNumericModel = z.infer; - -export const PaymentLinksResourceCustomFieldsText = z.object({ +export const PaymentLinksResourceCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string().optional(), 'maximum_length': z.number().int().optional(), 'minimum_length': z.number().int().optional() }); -export type PaymentLinksResourceCustomFieldsTextModel = z.infer; - -export const PaymentLinksResourceCustomFields = z.object({ +export const PaymentLinksResourceCustomFields: z.ZodType = z.object({ 'dropdown': PaymentLinksResourceCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentLinksResourceCustomFieldsLabel, @@ -10344,24 +17147,18 @@ export const PaymentLinksResourceCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentLinksResourceCustomFieldsModel = z.infer; - -export const PaymentLinksResourceCustomTextPosition = z.object({ +export const PaymentLinksResourceCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentLinksResourceCustomTextPositionModel = z.infer; - -export const PaymentLinksResourceCustomText = z.object({ +export const PaymentLinksResourceCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentLinksResourceCustomTextPosition]).optional(), 'shipping_address': z.union([PaymentLinksResourceCustomTextPosition]).optional(), 'submit': z.union([PaymentLinksResourceCustomTextPosition]).optional(), 'terms_of_service_acceptance': z.union([PaymentLinksResourceCustomTextPosition]).optional() }); -export type PaymentLinksResourceCustomTextModel = z.infer; - -export const PaymentLinksResourceInvoiceSettings = z.object({ +export const PaymentLinksResourceInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])).optional(), 'custom_fields': z.array(InvoiceSettingCustomField).optional(), 'description': z.string().optional(), @@ -10371,53 +17168,39 @@ export const PaymentLinksResourceInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]).optional() }); -export type PaymentLinksResourceInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceInvoiceCreation = z.object({ +export const PaymentLinksResourceInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': z.union([PaymentLinksResourceInvoiceSettings]).optional() }); -export type PaymentLinksResourceInvoiceCreationModel = z.infer; - -export const PaymentLinksResourceBusinessName = z.object({ +export const PaymentLinksResourceBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceBusinessNameModel = z.infer; - -export const PaymentLinksResourceIndividualName = z.object({ +export const PaymentLinksResourceIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceIndividualNameModel = z.infer; - -export const PaymentLinksResourceNameCollection = z.object({ +export const PaymentLinksResourceNameCollection: z.ZodType = z.object({ 'business': PaymentLinksResourceBusinessName.optional(), 'individual': PaymentLinksResourceIndividualName.optional() }); -export type PaymentLinksResourceNameCollectionModel = z.infer; - -export const PaymentLinksResourceOptionalItemAdjustableQuantity = z.object({ +export const PaymentLinksResourceOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int().optional(), 'minimum': z.number().int().optional() }); -export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentLinksResourceOptionalItem = z.object({ +export const PaymentLinksResourceOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentLinksResourceOptionalItemAdjustableQuantity]).optional(), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentLinksResourceOptionalItemModel = z.infer; - -export const PaymentLinksResourcePaymentIntentData = z.object({ +export const PaymentLinksResourcePaymentIntentData: z.ZodType = z.object({ 'capture_method': z.enum(['automatic', 'automatic_async', 'manual']).optional(), 'description': z.string().optional(), 'metadata': z.record(z.string(), z.string()), @@ -10427,47 +17210,33 @@ export const PaymentLinksResourcePaymentIntentData = z.object({ 'transfer_group': z.string().optional() }); -export type PaymentLinksResourcePaymentIntentDataModel = z.infer; - -export const PaymentLinksResourcePhoneNumberCollection = z.object({ +export const PaymentLinksResourcePhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentLinksResourcePhoneNumberCollectionModel = z.infer; - -export const PaymentLinksResourceCompletedSessions = z.object({ +export const PaymentLinksResourceCompletedSessions: z.ZodType = z.object({ 'count': z.number().int(), 'limit': z.number().int() }); -export type PaymentLinksResourceCompletedSessionsModel = z.infer; - -export const PaymentLinksResourceRestrictions = z.object({ +export const PaymentLinksResourceRestrictions: z.ZodType = z.object({ 'completed_sessions': PaymentLinksResourceCompletedSessions }); -export type PaymentLinksResourceRestrictionsModel = z.infer; - -export const PaymentLinksResourceShippingAddressCollection = z.object({ +export const PaymentLinksResourceShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentLinksResourceShippingAddressCollectionModel = z.infer; - -export const PaymentLinksResourceShippingOption = z.object({ +export const PaymentLinksResourceShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentLinksResourceShippingOptionModel = z.infer; - -export const PaymentLinksResourceSubscriptionDataInvoiceSettings = z.object({ +export const PaymentLinksResourceSubscriptionDataInvoiceSettings: z.ZodType = z.object({ 'issuer': z.lazy(() => ConnectAccountReference) }); -export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceSubscriptionData = z.object({ +export const PaymentLinksResourceSubscriptionData: z.ZodType = z.object({ 'description': z.string().optional(), 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettings, 'metadata': z.record(z.string(), z.string()), @@ -10475,23 +17244,17 @@ export const PaymentLinksResourceSubscriptionData = z.object({ 'trial_settings': z.union([SubscriptionsTrialsResourceTrialSettings]).optional() }); -export type PaymentLinksResourceSubscriptionDataModel = z.infer; - -export const PaymentLinksResourceTaxIdCollection = z.object({ +export const PaymentLinksResourceTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentLinksResourceTaxIdCollectionModel = z.infer; - -export const PaymentLinksResourceTransferData = z.object({ +export const PaymentLinksResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type PaymentLinksResourceTransferDataModel = z.infer; - -export const PaymentLink = z.object({ +export const PaymentLink: z.ZodType = z.object({ 'active': z.boolean(), 'after_completion': PaymentLinksResourceAfterCompletion, 'allow_promotion_codes': z.boolean(), @@ -10534,9 +17297,7 @@ export const PaymentLink = z.object({ 'url': z.string() }); -export type PaymentLinkModel = z.infer; - -export const CheckoutAcssDebitMandateOptions = z.object({ +export const CheckoutAcssDebitMandateOptions: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string().optional(), @@ -10544,9 +17305,7 @@ export const CheckoutAcssDebitMandateOptions = z.object({ 'transaction_type': z.enum(['business', 'personal']).optional() }); -export type CheckoutAcssDebitMandateOptionsModel = z.infer; - -export const CheckoutAcssDebitPaymentMethodOptions = z.object({ +export const CheckoutAcssDebitPaymentMethodOptions: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']).optional(), 'mandate_options': CheckoutAcssDebitMandateOptions.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), @@ -10554,94 +17313,66 @@ export const CheckoutAcssDebitPaymentMethodOptions = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type CheckoutAcssDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutAffirmPaymentMethodOptions = z.object({ +export const CheckoutAffirmPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAffirmPaymentMethodOptionsModel = z.infer; - -export const CheckoutAfterpayClearpayPaymentMethodOptions = z.object({ +export const CheckoutAfterpayClearpayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlipayPaymentMethodOptions = z.object({ +export const CheckoutAlipayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAlipayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlmaPaymentMethodOptions = z.object({ +export const CheckoutAlmaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutAlmaPaymentMethodOptionsModel = z.infer; - -export const CheckoutAmazonPayPaymentMethodOptions = z.object({ +export const CheckoutAmazonPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutAmazonPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAuBecsDebitPaymentMethodOptions = z.object({ +export const CheckoutAuBecsDebitPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional(), 'target_date': z.string().optional() }); -export type CheckoutAuBecsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const CheckoutBacsDebitPaymentMethodOptions = z.object({ +export const CheckoutBacsDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutBacsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutBancontactPaymentMethodOptions = z.object({ +export const CheckoutBancontactPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutBancontactPaymentMethodOptionsModel = z.infer; - -export const CheckoutBilliePaymentMethodOptions = z.object({ +export const CheckoutBilliePaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutBilliePaymentMethodOptionsModel = z.infer; - -export const CheckoutBoletoPaymentMethodOptions = z.object({ +export const CheckoutBoletoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutBoletoPaymentMethodOptionsModel = z.infer; - -export const CheckoutCardInstallmentsOptions = z.object({ +export const CheckoutCardInstallmentsOptions: z.ZodType = z.object({ 'enabled': z.boolean().optional() }); -export type CheckoutCardInstallmentsOptionsModel = z.infer; - -export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions = z.object({ +export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions: z.ZodType = z.object({ 'brands_blocked': z.array(z.enum(['american_express', 'discover_global_network', 'mastercard', 'visa'])).optional() }); -export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = z.infer; - -export const CheckoutCardPaymentMethodOptions = z.object({ +export const CheckoutCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': CheckoutCardInstallmentsOptions.optional(), 'request_extended_authorization': z.enum(['if_available', 'never']).optional(), @@ -10655,219 +17386,155 @@ export const CheckoutCardPaymentMethodOptions = z.object({ 'statement_descriptor_suffix_kanji': z.string().optional() }); -export type CheckoutCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutCashappPaymentMethodOptions = z.object({ +export const CheckoutCashappPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCashappPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions = z.object({ +export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']).optional() }); -export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalancePaymentMethodOptions = z.object({ +export const CheckoutCustomerBalancePaymentMethodOptions: z.ZodType = z.object({ 'bank_transfer': CheckoutCustomerBalanceBankTransferPaymentMethodOptions.optional(), 'funding_type': z.enum(['bank_transfer']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCustomerBalancePaymentMethodOptionsModel = z.infer; - -export const CheckoutEpsPaymentMethodOptions = z.object({ +export const CheckoutEpsPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutEpsPaymentMethodOptionsModel = z.infer; - -export const CheckoutFpxPaymentMethodOptions = z.object({ +export const CheckoutFpxPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutFpxPaymentMethodOptionsModel = z.infer; - -export const CheckoutGiropayPaymentMethodOptions = z.object({ +export const CheckoutGiropayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGiropayPaymentMethodOptionsModel = z.infer; - -export const CheckoutGrabPayPaymentMethodOptions = z.object({ +export const CheckoutGrabPayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGrabPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutIdealPaymentMethodOptions = z.object({ +export const CheckoutIdealPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutIdealPaymentMethodOptionsModel = z.infer; - -export const CheckoutKakaoPayPaymentMethodOptions = z.object({ +export const CheckoutKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKakaoPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutKlarnaPaymentMethodOptions = z.object({ +export const CheckoutKlarnaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutKlarnaPaymentMethodOptionsModel = z.infer; - -export const CheckoutKonbiniPaymentMethodOptions = z.object({ +export const CheckoutKonbiniPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutKonbiniPaymentMethodOptionsModel = z.infer; - -export const CheckoutKrCardPaymentMethodOptions = z.object({ +export const CheckoutKrCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKrCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutLinkPaymentMethodOptions = z.object({ +export const CheckoutLinkPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutLinkPaymentMethodOptionsModel = z.infer; - -export const CheckoutMobilepayPaymentMethodOptions = z.object({ +export const CheckoutMobilepayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMobilepayPaymentMethodOptionsModel = z.infer; - -export const CheckoutMultibancoPaymentMethodOptions = z.object({ +export const CheckoutMultibancoPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMultibancoPaymentMethodOptionsModel = z.infer; - -export const CheckoutNaverPayPaymentMethodOptions = z.object({ +export const CheckoutNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutNaverPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutOxxoPaymentMethodOptions = z.object({ +export const CheckoutOxxoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutOxxoPaymentMethodOptionsModel = z.infer; - -export const CheckoutP24PaymentMethodOptions = z.object({ +export const CheckoutP24PaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutP24PaymentMethodOptionsModel = z.infer; - -export const CheckoutPaycoPaymentMethodOptions = z.object({ +export const CheckoutPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutPaycoPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaynowPaymentMethodOptions = z.object({ +export const CheckoutPaynowPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutPaynowPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaypalPaymentMethodOptions = z.object({ +export const CheckoutPaypalPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'reference': z.string().optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutPaypalPaymentMethodOptionsModel = z.infer; - -export const CheckoutPixPaymentMethodOptions = z.object({ +export const CheckoutPixPaymentMethodOptions: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutPixPaymentMethodOptionsModel = z.infer; - -export const CheckoutRevolutPayPaymentMethodOptions = z.object({ +export const CheckoutRevolutPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutRevolutPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSamsungPayPaymentMethodOptions = z.object({ +export const CheckoutSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSamsungPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSatispayPaymentMethodOptions = z.object({ +export const CheckoutSatispayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSatispayPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const CheckoutSepaDebitPaymentMethodOptions = z.object({ +export const CheckoutSepaDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutSepaDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutSofortPaymentMethodOptions = z.object({ +export const CheckoutSofortPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutSofortPaymentMethodOptionsModel = z.infer; - -export const CheckoutSwishPaymentMethodOptions = z.object({ +export const CheckoutSwishPaymentMethodOptions: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type CheckoutSwishPaymentMethodOptionsModel = z.infer; - -export const CheckoutTwintPaymentMethodOptions = z.object({ +export const CheckoutTwintPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutTwintPaymentMethodOptionsModel = z.infer; - -export const CheckoutUsBankAccountPaymentMethodOptions = z.object({ +export const CheckoutUsBankAccountPaymentMethodOptions: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant']).optional() }); -export type CheckoutUsBankAccountPaymentMethodOptionsModel = z.infer; - -export const CheckoutSessionPaymentMethodOptions = z.object({ +export const CheckoutSessionPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': CheckoutAcssDebitPaymentMethodOptions.optional(), 'affirm': CheckoutAffirmPaymentMethodOptions.optional(), 'afterpay_clearpay': CheckoutAfterpayClearpayPaymentMethodOptions.optional(), @@ -10911,35 +17578,25 @@ export const CheckoutSessionPaymentMethodOptions = z.object({ 'us_bank_account': CheckoutUsBankAccountPaymentMethodOptions.optional() }); -export type CheckoutSessionPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionPermissions = z.object({ +export const PaymentPagesCheckoutSessionPermissions: z.ZodType = z.object({ 'update_shipping_details': z.enum(['client_only', 'server_only']).optional() }); -export type PaymentPagesCheckoutSessionPermissionsModel = z.infer; - -export const PaymentPagesCheckoutSessionPhoneNumberCollection = z.object({ +export const PaymentPagesCheckoutSessionPhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions = z.object({ +export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions: z.ZodType = z.object({ 'allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])).optional(), 'payment_method_remove': z.enum(['disabled', 'enabled']).optional(), 'payment_method_save': z.enum(['disabled', 'enabled']).optional() }); -export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingAddressCollection = z.object({ +export const PaymentPagesCheckoutSessionShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingCost = z.object({ +export const PaymentPagesCheckoutSessionShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -10947,51 +17604,37 @@ export const PaymentPagesCheckoutSessionShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type PaymentPagesCheckoutSessionShippingCostModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingOption = z.object({ +export const PaymentPagesCheckoutSessionShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentPagesCheckoutSessionShippingOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxIdCollection = z.object({ +export const PaymentPagesCheckoutSessionTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentPagesCheckoutSessionTaxIdCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown = z.object({ +export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetails = z.object({ +export const PaymentPagesCheckoutSessionTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int().optional(), 'amount_tax': z.number().int(), 'breakdown': PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown.optional() }); -export type PaymentPagesCheckoutSessionTotalDetailsModel = z.infer; - -export const CheckoutLinkWalletOptions = z.object({ +export const CheckoutLinkWalletOptions: z.ZodType = z.object({ 'display': z.enum(['auto', 'never']).optional() }); -export type CheckoutLinkWalletOptionsModel = z.infer; - -export const CheckoutSessionWalletOptions = z.object({ +export const CheckoutSessionWalletOptions: z.ZodType = z.object({ 'link': CheckoutLinkWalletOptions.optional() }); -export type CheckoutSessionWalletOptionsModel = z.infer; - -export const CheckoutSession = z.object({ +export const CheckoutSession: z.ZodType = z.object({ 'adaptive_pricing': z.union([PaymentPagesCheckoutSessionAdaptivePricing]).optional(), 'after_expiration': z.union([PaymentPagesCheckoutSessionAfterExpiration]).optional(), 'allow_promotion_codes': z.boolean().optional(), @@ -11064,15 +17707,11 @@ export const CheckoutSession = z.object({ 'wallet_options': z.union([CheckoutSessionWalletOptions]).optional() }); -export type CheckoutSessionModel = z.infer; - -export const ClimateRemovalsBeneficiary = z.object({ +export const ClimateRemovalsBeneficiary: z.ZodType = z.object({ 'public_name': z.string() }); -export type ClimateRemovalsBeneficiaryModel = z.infer; - -export const ClimateRemovalsLocation = z.object({ +export const ClimateRemovalsLocation: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string(), 'latitude': z.number().optional(), @@ -11080,9 +17719,7 @@ export const ClimateRemovalsLocation = z.object({ 'region': z.string().optional() }); -export type ClimateRemovalsLocationModel = z.infer; - -export const ClimateSupplier = z.object({ +export const ClimateSupplier: z.ZodType = z.object({ 'id': z.string(), 'info_url': z.string(), 'livemode': z.boolean(), @@ -11092,9 +17729,7 @@ export const ClimateSupplier = z.object({ 'removal_pathway': z.enum(['biomass_carbon_removal_and_storage', 'direct_air_capture', 'enhanced_weathering']) }); -export type ClimateSupplierModel = z.infer; - -export const ClimateRemovalsOrderDeliveries = z.object({ +export const ClimateRemovalsOrderDeliveries: z.ZodType = z.object({ 'delivered_at': z.number().int(), 'location': z.union([ClimateRemovalsLocation]).optional(), 'metric_tons': z.string(), @@ -11102,17 +17737,13 @@ export const ClimateRemovalsOrderDeliveries = z.object({ 'supplier': ClimateSupplier }); -export type ClimateRemovalsOrderDeliveriesModel = z.infer; - -export const ClimateRemovalsProductsPrice = z.object({ +export const ClimateRemovalsProductsPrice: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int() }); -export type ClimateRemovalsProductsPriceModel = z.infer; - -export const ClimateProduct = z.object({ +export const ClimateProduct: z.ZodType = z.object({ 'created': z.number().int(), 'current_prices_per_metric_ton': z.record(z.string(), ClimateRemovalsProductsPrice), 'delivery_year': z.number().int().optional(), @@ -11124,9 +17755,7 @@ export const ClimateProduct = z.object({ 'suppliers': z.array(ClimateSupplier) }); -export type ClimateProductModel = z.infer; - -export const ClimateOrder = z.object({ +export const ClimateOrder: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), @@ -11151,48 +17780,34 @@ export const ClimateOrder = z.object({ 'status': z.enum(['awaiting_funds', 'canceled', 'confirmed', 'delivered', 'open']) }); -export type ClimateOrderModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline: z.ZodType = z.object({ 'ip_address': z.string().optional(), 'user_agent': z.string().optional() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance: z.ZodType = z.object({ 'online': z.union([ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline]).optional(), 'type': z.string() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = z.infer; - -export const ConfirmationTokensResourceMandateData = z.object({ +export const ConfirmationTokensResourceMandateData: z.ZodType = z.object({ 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptance }); -export type ConfirmationTokensResourceMandateDataModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment: z.ZodType = z.object({ 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard: z.ZodType = z.object({ 'cvc_token': z.string().optional(), 'installments': ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptions = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': z.union([ConfirmationTokensResourcePaymentMethodOptionsResourceCard]).optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ +export const ConfirmationTokensResourcePaymentMethodPreview: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), 'afterpay_clearpay': PaymentMethodAfterpayClearpay.optional(), @@ -11250,17 +17865,13 @@ export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ 'zip': PaymentMethodZip.optional() }); -export type ConfirmationTokensResourcePaymentMethodPreviewModel = z.infer; - -export const ConfirmationTokensResourceShipping = z.object({ +export const ConfirmationTokensResourceShipping: z.ZodType = z.object({ 'address': Address, 'name': z.string(), 'phone': z.string().optional() }); -export type ConfirmationTokensResourceShippingModel = z.infer; - -export const ConfirmationToken = z.object({ +export const ConfirmationToken: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int().optional(), 'id': z.string(), @@ -11277,23 +17888,17 @@ export const ConfirmationToken = z.object({ 'use_stripe_sdk': z.boolean() }); -export type ConfirmationTokenModel = z.infer; - -export const CountrySpecVerificationFieldDetails = z.object({ +export const CountrySpecVerificationFieldDetails: z.ZodType = z.object({ 'additional': z.array(z.string()), 'minimum': z.array(z.string()) }); -export type CountrySpecVerificationFieldDetailsModel = z.infer; - -export const CountrySpecVerificationFields = z.object({ +export const CountrySpecVerificationFields: z.ZodType = z.object({ 'company': CountrySpecVerificationFieldDetails, 'individual': CountrySpecVerificationFieldDetails }); -export type CountrySpecVerificationFieldsModel = z.infer; - -export const CountrySpec = z.object({ +export const CountrySpec: z.ZodType = z.object({ 'default_currency': z.string(), 'id': z.string(), 'object': z.enum(['country_spec']), @@ -11304,8 +17909,6 @@ export const CountrySpec = z.object({ 'verification_fields': CountrySpecVerificationFields }); -export type CountrySpecModel = z.infer; - export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'checkout_session': z.union([z.string(), CheckoutSession]).optional(), @@ -11323,16 +17926,14 @@ export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'credit_balance_transaction': z.union([z.string(), z.lazy(() => BillingCreditBalanceTransaction)]).optional(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]).optional(), 'type': z.enum(['credit_balance_transaction', 'discount']) }); -export type CreditNotesPretaxCreditAmountModel = z.infer; - -export const CreditNoteLineItem = z.object({ +export const CreditNoteLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string().optional(), 'discount_amount': z.number().int(), @@ -11350,24 +17951,18 @@ export const CreditNoteLineItem = z.object({ 'unit_amount_decimal': z.string().optional() }); -export type CreditNoteLineItemModel = z.infer; - -export const CreditNotesPaymentRecordRefund = z.object({ +export const CreditNotesPaymentRecordRefund: z.ZodType = z.object({ 'payment_record': z.string(), 'refund_group': z.string() }); -export type CreditNotesPaymentRecordRefundModel = z.infer; - -export const CreditNoteRefund = z.object({ +export const CreditNoteRefund: z.ZodType = z.object({ 'amount_refunded': z.number().int(), 'payment_record_refund': z.union([CreditNotesPaymentRecordRefund]).optional(), 'refund': z.union([z.string(), z.lazy(() => Refund)]), 'type': z.enum(['payment_record_refund', 'refund']).optional() }); -export type CreditNoteRefundModel = z.infer; - export const CreditNote: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_shipping': z.number().int(), @@ -11409,27 +18004,21 @@ export const CreditNote: z.ZodType = z.object({ 'voided_at': z.number().int().optional() }); -export const CustomerSessionResourceComponentsResourceBuyButton = z.object({ +export const CustomerSessionResourceComponentsResourceBuyButton: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourceBuyButtonModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])).optional(), 'payment_method_remove': z.enum(['disabled', 'enabled']).optional() }); -export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheet = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheet: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures]).optional() }); -export type CustomerSessionResourceComponentsResourceCustomerSheetModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])).optional(), 'payment_method_redisplay': z.enum(['disabled', 'enabled']).optional(), 'payment_method_remove': z.enum(['disabled', 'enabled']).optional(), @@ -11437,16 +18026,12 @@ export const CustomerSessionResourceComponentsResourceMobilePaymentElementResour 'payment_method_save_allow_redisplay_override': z.enum(['always', 'limited', 'unspecified']).optional() }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures]).optional() }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_redisplay': z.enum(['disabled', 'enabled']), 'payment_method_redisplay_limit': z.number().int().optional(), @@ -11455,22 +18040,16 @@ export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeat 'payment_method_save_usage': z.enum(['off_session', 'on_session']).optional() }); -export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures]).optional() }); -export type CustomerSessionResourceComponentsResourcePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePricingTable = z.object({ +export const CustomerSessionResourceComponentsResourcePricingTable: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourcePricingTableModel = z.infer; - -export const CustomerSessionResourceComponents = z.object({ +export const CustomerSessionResourceComponents: z.ZodType = z.object({ 'buy_button': CustomerSessionResourceComponentsResourceBuyButton, 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheet, 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElement, @@ -11478,9 +18057,7 @@ export const CustomerSessionResourceComponents = z.object({ 'pricing_table': CustomerSessionResourceComponentsResourcePricingTable }); -export type CustomerSessionResourceComponentsModel = z.infer; - -export const CustomerSession = z.object({ +export const CustomerSession: z.ZodType = z.object({ 'client_secret': z.string(), 'components': CustomerSessionResourceComponents.optional(), 'created': z.number().int(), @@ -11490,137 +18067,101 @@ export const CustomerSession = z.object({ 'object': z.enum(['customer_session']) }); -export type CustomerSessionModel = z.infer; - -export const DeletedAccount = z.object({ +export const DeletedAccount: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['account']) }); -export type DeletedAccountModel = z.infer; - -export const DeletedApplePayDomain = z.object({ +export const DeletedApplePayDomain: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['apple_pay_domain']) }); -export type DeletedApplePayDomainModel = z.infer; - -export const DeletedCoupon = z.object({ +export const DeletedCoupon: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['coupon']) }); -export type DeletedCouponModel = z.infer; - -export const DeletedExternalAccount = z.union([DeletedBankAccount, DeletedCard]); +export const DeletedExternalAccount: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); -export type DeletedExternalAccountModel = z.infer; - -export const DeletedInvoiceitem = z.object({ +export const DeletedInvoiceitem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoiceitem']) }); -export type DeletedInvoiceitemModel = z.infer; - -export const DeletedPaymentSource = z.union([DeletedBankAccount, DeletedCard]); +export const DeletedPaymentSource: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); -export type DeletedPaymentSourceModel = z.infer; - -export const DeletedPerson = z.object({ +export const DeletedPerson: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['person']) }); -export type DeletedPersonModel = z.infer; - -export const DeletedPlan = z.object({ +export const DeletedPlan: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['plan']) }); -export type DeletedPlanModel = z.infer; - -export const DeletedProductFeature = z.object({ +export const DeletedProductFeature: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product_feature']) }); -export type DeletedProductFeatureModel = z.infer; - -export const DeletedRadarValueList = z.object({ +export const DeletedRadarValueList: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list']) }); -export type DeletedRadarValueListModel = z.infer; - -export const DeletedRadarValueListItem = z.object({ +export const DeletedRadarValueListItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list_item']) }); -export type DeletedRadarValueListItemModel = z.infer; - -export const DeletedSubscriptionItem = z.object({ +export const DeletedSubscriptionItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['subscription_item']) }); -export type DeletedSubscriptionItemModel = z.infer; - -export const DeletedTerminalConfiguration = z.object({ +export const DeletedTerminalConfiguration: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.configuration']) }); -export type DeletedTerminalConfigurationModel = z.infer; - -export const DeletedTerminalLocation = z.object({ +export const DeletedTerminalLocation: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.location']) }); -export type DeletedTerminalLocationModel = z.infer; - -export const DeletedTerminalReader = z.object({ +export const DeletedTerminalReader: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.reader']) }); -export type DeletedTerminalReaderModel = z.infer; - -export const DeletedTestHelpersTestClock = z.object({ +export const DeletedTestHelpersTestClock: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['test_helpers.test_clock']) }); -export type DeletedTestHelpersTestClockModel = z.infer; - -export const DeletedWebhookEndpoint = z.object({ +export const DeletedWebhookEndpoint: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['webhook_endpoint']) }); -export type DeletedWebhookEndpointModel = z.infer; - -export const EntitlementsFeature = z.object({ +export const EntitlementsFeature: z.ZodType = z.object({ 'active': z.boolean(), 'id': z.string(), 'livemode': z.boolean(), @@ -11630,9 +18171,7 @@ export const EntitlementsFeature = z.object({ 'object': z.enum(['entitlements.feature']) }); -export type EntitlementsFeatureModel = z.infer; - -export const EntitlementsActiveEntitlement = z.object({ +export const EntitlementsActiveEntitlement: z.ZodType = z.object({ 'feature': z.union([z.string(), EntitlementsFeature]), 'id': z.string(), 'livemode': z.boolean(), @@ -11640,9 +18179,7 @@ export const EntitlementsActiveEntitlement = z.object({ 'object': z.enum(['entitlements.active_entitlement']) }); -export type EntitlementsActiveEntitlementModel = z.infer; - -export const EphemeralKey = z.object({ +export const EphemeralKey: z.ZodType = z.object({ 'created': z.number().int(), 'expires': z.number().int(), 'id': z.string(), @@ -11651,29 +18188,21 @@ export const EphemeralKey = z.object({ 'secret': z.string().optional() }); -export type EphemeralKeyModel = z.infer; - -export const Error = z.object({ +export const Error: z.ZodType = z.object({ 'error': z.lazy(() => ApiErrors) }); -export type ErrorModel = z.infer; - -export const NotificationEventData = z.object({ +export const NotificationEventData: z.ZodType = z.object({ 'object': z.object({}), 'previous_attributes': z.object({}).optional() }); -export type NotificationEventDataModel = z.infer; - -export const NotificationEventRequest = z.object({ +export const NotificationEventRequest: z.ZodType = z.object({ 'id': z.string().optional(), 'idempotency_key': z.string().optional() }); -export type NotificationEventRequestModel = z.infer; - -export const Event = z.object({ +export const Event: z.ZodType = z.object({ 'account': z.string().optional(), 'api_version': z.string().optional(), 'context': z.string().optional(), @@ -11687,21 +18216,15 @@ export const Event = z.object({ 'type': z.string() }); -export type EventModel = z.infer; - -export const ExchangeRate = z.object({ +export const ExchangeRate: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['exchange_rate']), 'rates': z.record(z.string(), z.number()) }); -export type ExchangeRateModel = z.infer; - -export const ExternalAccount = z.union([z.lazy(() => BankAccount), z.lazy(() => Card)]); +export const ExternalAccount: z.ZodType = z.union([z.lazy(() => BankAccount), z.lazy(() => Card)]); -export type ExternalAccountModel = z.infer; - -export const FinancialConnectionsAccountOwner = z.object({ +export const FinancialConnectionsAccountOwner: z.ZodType = z.object({ 'email': z.string().optional(), 'id': z.string(), 'name': z.string(), @@ -11712,9 +18235,7 @@ export const FinancialConnectionsAccountOwner = z.object({ 'refreshed_at': z.number().int().optional() }); -export type FinancialConnectionsAccountOwnerModel = z.infer; - -export const FinancialConnectionsAccountOwnership = z.object({ +export const FinancialConnectionsAccountOwnership: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'object': z.enum(['financial_connections.account_ownership']), @@ -11726,9 +18247,7 @@ export const FinancialConnectionsAccountOwnership = z.object({ }) }); -export type FinancialConnectionsAccountOwnershipModel = z.infer; - -export const FinancialConnectionsAccount = z.object({ +export const FinancialConnectionsAccount: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]).optional(), 'account_numbers': z.array(BankConnectionsResourceAccountNumberDetails).optional(), 'balance': z.union([BankConnectionsResourceBalance]).optional(), @@ -11751,9 +18270,7 @@ export const FinancialConnectionsAccount = z.object({ 'transaction_refresh': z.union([BankConnectionsResourceTransactionRefresh]).optional() }); -export type FinancialConnectionsAccountModel = z.infer; - -export const FinancialConnectionsSession = z.object({ +export const FinancialConnectionsSession: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]).optional(), 'accounts': z.object({ 'data': z.array(FinancialConnectionsAccount), @@ -11771,9 +18288,7 @@ export const FinancialConnectionsSession = z.object({ 'return_url': z.string().optional() }); -export type FinancialConnectionsSessionModel = z.infer; - -export const FinancialConnectionsTransaction = z.object({ +export const FinancialConnectionsTransaction: z.ZodType = z.object({ 'account': z.string(), 'amount': z.number().int(), 'currency': z.string(), @@ -11788,9 +18303,7 @@ export const FinancialConnectionsTransaction = z.object({ 'updated': z.number().int() }); -export type FinancialConnectionsTransactionModel = z.infer; - -export const FinancialReportingFinanceReportRunRunParameters = z.object({ +export const FinancialReportingFinanceReportRunRunParameters: z.ZodType = z.object({ 'columns': z.array(z.string()).optional(), 'connected_account': z.string().optional(), 'currency': z.string().optional(), @@ -11801,39 +18314,29 @@ export const FinancialReportingFinanceReportRunRunParameters = z.object({ 'timezone': z.string().optional() }); -export type FinancialReportingFinanceReportRunRunParametersModel = z.infer; - -export const ForwardedRequestContext = z.object({ +export const ForwardedRequestContext: z.ZodType = z.object({ 'destination_duration': z.number().int(), 'destination_ip_address': z.string() }); -export type ForwardedRequestContextModel = z.infer; - -export const ForwardedRequestHeader = z.object({ +export const ForwardedRequestHeader: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type ForwardedRequestHeaderModel = z.infer; - -export const ForwardedRequestDetails = z.object({ +export const ForwardedRequestDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'http_method': z.enum(['POST']) }); -export type ForwardedRequestDetailsModel = z.infer; - -export const ForwardedResponseDetails = z.object({ +export const ForwardedResponseDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'status': z.number().int() }); -export type ForwardedResponseDetailsModel = z.infer; - -export const ForwardingRequest = z.object({ +export const ForwardingRequest: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -11847,17 +18350,13 @@ export const ForwardingRequest = z.object({ 'url': z.string().optional() }); -export type ForwardingRequestModel = z.infer; - -export const FundingInstructionsBankTransfer = z.object({ +export const FundingInstructionsBankTransfer: z.ZodType = z.object({ 'country': z.string(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress), 'type': z.enum(['eu_bank_transfer', 'jp_bank_transfer']) }); -export type FundingInstructionsBankTransferModel = z.infer; - -export const FundingInstructions = z.object({ +export const FundingInstructions: z.ZodType = z.object({ 'bank_transfer': FundingInstructionsBankTransfer, 'currency': z.string(), 'funding_type': z.enum(['bank_transfer']), @@ -11865,56 +18364,42 @@ export const FundingInstructions = z.object({ 'object': z.enum(['funding_instructions']) }); -export type FundingInstructionsModel = z.infer; - -export const GelatoDataDocumentReportDateOfBirth = z.object({ +export const GelatoDataDocumentReportDateOfBirth: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type GelatoDataDocumentReportDateOfBirthModel = z.infer; - -export const GelatoDataDocumentReportExpirationDate = z.object({ +export const GelatoDataDocumentReportExpirationDate: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type GelatoDataDocumentReportExpirationDateModel = z.infer; - -export const GelatoDataDocumentReportIssuedDate = z.object({ +export const GelatoDataDocumentReportIssuedDate: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type GelatoDataDocumentReportIssuedDateModel = z.infer; - -export const GelatoDataIdNumberReportDate = z.object({ +export const GelatoDataIdNumberReportDate: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type GelatoDataIdNumberReportDateModel = z.infer; - -export const GelatoDataVerifiedOutputsDate = z.object({ +export const GelatoDataVerifiedOutputsDate: z.ZodType = z.object({ 'day': z.number().int().optional(), 'month': z.number().int().optional(), 'year': z.number().int().optional() }); -export type GelatoDataVerifiedOutputsDateModel = z.infer; - -export const GelatoDocumentReportError = z.object({ +export const GelatoDocumentReportError: z.ZodType = z.object({ 'code': z.enum(['document_expired', 'document_type_not_supported', 'document_unverified_other']).optional(), 'reason': z.string().optional() }); -export type GelatoDocumentReportErrorModel = z.infer; - -export const GelatoDocumentReport = z.object({ +export const GelatoDocumentReport: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'dob': z.union([GelatoDataDocumentReportDateOfBirth]).optional(), 'error': z.union([GelatoDocumentReportError]).optional(), @@ -11932,31 +18417,23 @@ export const GelatoDocumentReport = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoDocumentReportModel = z.infer; - -export const GelatoEmailReportError = z.object({ +export const GelatoEmailReportError: z.ZodType = z.object({ 'code': z.enum(['email_unverified_other', 'email_verification_declined']).optional(), 'reason': z.string().optional() }); -export type GelatoEmailReportErrorModel = z.infer; - -export const GelatoEmailReport = z.object({ +export const GelatoEmailReport: z.ZodType = z.object({ 'email': z.string().optional(), 'error': z.union([GelatoEmailReportError]).optional(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoEmailReportModel = z.infer; - -export const GelatoIdNumberReportError = z.object({ +export const GelatoIdNumberReportError: z.ZodType = z.object({ 'code': z.enum(['id_number_insufficient_document_data', 'id_number_mismatch', 'id_number_unverified_other']).optional(), 'reason': z.string().optional() }); -export type GelatoIdNumberReportErrorModel = z.infer; - -export const GelatoIdNumberReport = z.object({ +export const GelatoIdNumberReport: z.ZodType = z.object({ 'dob': z.union([GelatoDataIdNumberReportDate]).optional(), 'error': z.union([GelatoIdNumberReportError]).optional(), 'first_name': z.string().optional(), @@ -11966,117 +18443,85 @@ export const GelatoIdNumberReport = z.object({ 'status': z.enum(['unverified', 'verified']) }); -export type GelatoIdNumberReportModel = z.infer; - -export const GelatoPhoneReportError = z.object({ +export const GelatoPhoneReportError: z.ZodType = z.object({ 'code': z.enum(['phone_unverified_other', 'phone_verification_declined']).optional(), 'reason': z.string().optional() }); -export type GelatoPhoneReportErrorModel = z.infer; - -export const GelatoPhoneReport = z.object({ +export const GelatoPhoneReport: z.ZodType = z.object({ 'error': z.union([GelatoPhoneReportError]).optional(), 'phone': z.string().optional(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoPhoneReportModel = z.infer; - -export const GelatoProvidedDetails = z.object({ +export const GelatoProvidedDetails: z.ZodType = z.object({ 'email': z.string().optional(), 'phone': z.string().optional() }); -export type GelatoProvidedDetailsModel = z.infer; - -export const GelatoRelatedPerson = z.object({ +export const GelatoRelatedPerson: z.ZodType = z.object({ 'account': z.string(), 'person': z.string() }); -export type GelatoRelatedPersonModel = z.infer; - -export const GelatoReportDocumentOptions = z.object({ +export const GelatoReportDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoReportDocumentOptionsModel = z.infer; - -export const GelatoReportIdNumberOptions = z.object({ +export const GelatoReportIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoReportIdNumberOptionsModel = z.infer; - -export const GelatoSelfieReportError = z.object({ +export const GelatoSelfieReportError: z.ZodType = z.object({ 'code': z.enum(['selfie_document_missing_photo', 'selfie_face_mismatch', 'selfie_manipulated', 'selfie_unverified_other']).optional(), 'reason': z.string().optional() }); -export type GelatoSelfieReportErrorModel = z.infer; - -export const GelatoSelfieReport = z.object({ +export const GelatoSelfieReport: z.ZodType = z.object({ 'document': z.string().optional(), 'error': z.union([GelatoSelfieReportError]).optional(), 'selfie': z.string().optional(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoSelfieReportModel = z.infer; - -export const GelatoSessionDocumentOptions = z.object({ +export const GelatoSessionDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoSessionDocumentOptionsModel = z.infer; - -export const GelatoSessionEmailOptions = z.object({ +export const GelatoSessionEmailOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionEmailOptionsModel = z.infer; - -export const GelatoSessionIdNumberOptions = z.object({ +export const GelatoSessionIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoSessionIdNumberOptionsModel = z.infer; - -export const GelatoSessionLastError = z.object({ +export const GelatoSessionLastError: z.ZodType = z.object({ 'code': z.enum(['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']).optional(), 'reason': z.string().optional() }); -export type GelatoSessionLastErrorModel = z.infer; - -export const GelatoSessionMatchingOptions = z.object({ +export const GelatoSessionMatchingOptions: z.ZodType = z.object({ 'dob': z.enum(['none', 'similar']).optional(), 'name': z.enum(['none', 'similar']).optional() }); -export type GelatoSessionMatchingOptionsModel = z.infer; - -export const GelatoSessionPhoneOptions = z.object({ +export const GelatoSessionPhoneOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionPhoneOptionsModel = z.infer; - -export const GelatoVerificationReportOptions = z.object({ +export const GelatoVerificationReportOptions: z.ZodType = z.object({ 'document': GelatoReportDocumentOptions.optional(), 'id_number': GelatoReportIdNumberOptions.optional() }); -export type GelatoVerificationReportOptionsModel = z.infer; - -export const GelatoVerificationSessionOptions = z.object({ +export const GelatoVerificationSessionOptions: z.ZodType = z.object({ 'document': GelatoSessionDocumentOptions.optional(), 'email': GelatoSessionEmailOptions.optional(), 'id_number': GelatoSessionIdNumberOptions.optional(), @@ -12084,9 +18529,7 @@ export const GelatoVerificationSessionOptions = z.object({ 'phone': GelatoSessionPhoneOptions.optional() }); -export type GelatoVerificationSessionOptionsModel = z.infer; - -export const GelatoVerifiedOutputs = z.object({ +export const GelatoVerifiedOutputs: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'dob': z.union([GelatoDataVerifiedOutputsDate]).optional(), 'email': z.string().optional(), @@ -12100,9 +18543,7 @@ export const GelatoVerifiedOutputs = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoVerifiedOutputsModel = z.infer; - -export const IdentityVerificationReport = z.object({ +export const IdentityVerificationReport: z.ZodType = z.object({ 'client_reference_id': z.string().optional(), 'created': z.number().int(), 'document': GelatoDocumentReport.optional(), @@ -12119,15 +18560,11 @@ export const IdentityVerificationReport = z.object({ 'verification_session': z.string().optional() }); -export type IdentityVerificationReportModel = z.infer; - -export const VerificationSessionRedaction = z.object({ +export const VerificationSessionRedaction: z.ZodType = z.object({ 'status': z.enum(['processing', 'redacted']) }); -export type VerificationSessionRedactionModel = z.infer; - -export const IdentityVerificationSession = z.object({ +export const IdentityVerificationSession: z.ZodType = z.object({ 'client_reference_id': z.string().optional(), 'client_secret': z.string().optional(), 'created': z.number().int(), @@ -12149,17 +18586,13 @@ export const IdentityVerificationSession = z.object({ 'verified_outputs': z.union([GelatoVerifiedOutputs]).optional() }); -export type IdentityVerificationSessionModel = z.infer; - -export const TreasurySharedResourceBillingDetails = z.object({ +export const TreasurySharedResourceBillingDetails: z.ZodType = z.object({ 'address': Address, 'email': z.string().optional(), 'name': z.string().optional() }); -export type TreasurySharedResourceBillingDetailsModel = z.infer; - -export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const InboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -12170,17 +18603,13 @@ export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string().optional() }); -export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const InboundTransfers = z.object({ +export const InboundTransfers: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'type': z.enum(['us_bank_account']), 'us_bank_account': InboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type InboundTransfersModel = z.infer; - -export const InvoiceRenderingTemplate = z.object({ +export const InvoiceRenderingTemplate: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -12191,22 +18620,16 @@ export const InvoiceRenderingTemplate = z.object({ 'version': z.number().int() }); -export type InvoiceRenderingTemplateModel = z.infer; - -export const InvoiceSettingQuoteSetting = z.object({ +export const InvoiceSettingQuoteSetting: z.ZodType = z.object({ 'days_until_due': z.number().int().optional(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingQuoteSettingModel = z.infer; - -export const ProrationDetails = z.object({ +export const ProrationDetails: z.ZodType = z.object({ 'discount_amounts': z.array(DiscountsResourceDiscountAmount) }); -export type ProrationDetailsModel = z.infer; - -export const Invoiceitem = z.object({ +export const Invoiceitem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -12230,9 +18653,7 @@ export const Invoiceitem = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]).optional() }); -export type InvoiceitemModel = z.infer; - -export const IssuingSettlement = z.object({ +export const IssuingSettlement: z.ZodType = z.object({ 'bin': z.string(), 'clearing_date': z.number().int(), 'created': z.number().int(), @@ -12252,24 +18673,18 @@ export const IssuingSettlement = z.object({ 'transaction_count': z.number().int() }); -export type IssuingSettlementModel = z.infer; - -export const LoginLink = z.object({ +export const LoginLink: z.ZodType = z.object({ 'created': z.number().int(), 'object': z.enum(['login_link']), 'url': z.string() }); -export type LoginLinkModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -12280,25 +18695,19 @@ export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string().optional() }); -export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetails = z.object({ +export const OutboundPaymentsPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundPaymentsPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundPaymentsPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundPaymentsPaymentMethodDetailsModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']).optional(), 'account_type': z.enum(['checking', 'savings']).optional(), 'bank_name': z.string().optional(), @@ -12309,18 +18718,14 @@ export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string().optional() }); -export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetails = z.object({ +export const OutboundTransfersPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundTransfersPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundTransfersPaymentMethodDetailsModel = z.infer; - -export const PaymentAttemptRecord = z.object({ +export const PaymentAttemptRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -12344,24 +18749,18 @@ export const PaymentAttemptRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]).optional() }); -export type PaymentAttemptRecordModel = z.infer; - -export const PaymentMethodConfigResourceDisplayPreference = z.object({ +export const PaymentMethodConfigResourceDisplayPreference: z.ZodType = z.object({ 'overridable': z.boolean().optional(), 'preference': z.enum(['none', 'off', 'on']), 'value': z.enum(['off', 'on']) }); -export type PaymentMethodConfigResourceDisplayPreferenceModel = z.infer; - -export const PaymentMethodConfigResourcePaymentMethodProperties = z.object({ +export const PaymentMethodConfigResourcePaymentMethodProperties: z.ZodType = z.object({ 'available': z.boolean(), 'display_preference': PaymentMethodConfigResourceDisplayPreference }); -export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = z.infer; - -export const PaymentMethodConfiguration = z.object({ +export const PaymentMethodConfiguration: z.ZodType = z.object({ 'acss_debit': PaymentMethodConfigResourcePaymentMethodProperties.optional(), 'active': z.boolean(), 'affirm': PaymentMethodConfigResourcePaymentMethodProperties.optional(), @@ -12425,22 +18824,16 @@ export const PaymentMethodConfiguration = z.object({ 'zip': PaymentMethodConfigResourcePaymentMethodProperties.optional() }); -export type PaymentMethodConfigurationModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatusDetails = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatusDetails: z.ZodType = z.object({ 'error_message': z.string() }); -export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatus = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatus: z.ZodType = z.object({ 'status': z.enum(['active', 'inactive']), 'status_details': PaymentMethodDomainResourcePaymentMethodStatusDetails.optional() }); -export type PaymentMethodDomainResourcePaymentMethodStatusModel = z.infer; - -export const PaymentMethodDomain = z.object({ +export const PaymentMethodDomain: z.ZodType = z.object({ 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'created': z.number().int(), @@ -12455,13 +18848,9 @@ export const PaymentMethodDomain = z.object({ 'paypal': PaymentMethodDomainResourcePaymentMethodStatus }); -export type PaymentMethodDomainModel = z.infer; - -export const PaymentSource = z.union([z.lazy(() => Account), z.lazy(() => BankAccount), z.lazy(() => Card), Source]); - -export type PaymentSourceModel = z.infer; +export const PaymentSource: z.ZodType = z.union([z.lazy(() => Account), z.lazy(() => BankAccount), z.lazy(() => Card), Source]); -export const PlanTier = z.object({ +export const PlanTier: z.ZodType = z.object({ 'flat_amount': z.number().int().optional(), 'flat_amount_decimal': z.string().optional(), 'unit_amount': z.number().int().optional(), @@ -12469,16 +18858,12 @@ export const PlanTier = z.object({ 'up_to': z.number().int().optional() }); -export type PlanTierModel = z.infer; - -export const TransformUsage = z.object({ +export const TransformUsage: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformUsageModel = z.infer; - -export const Plan = z.object({ +export const Plan: z.ZodType = z.object({ 'active': z.boolean(), 'amount': z.number().int().optional(), 'amount_decimal': z.string().optional(), @@ -12501,43 +18886,33 @@ export const Plan = z.object({ 'usage_type': z.enum(['licensed', 'metered']) }); -export type PlanModel = z.infer; - -export const ProductFeature = z.object({ +export const ProductFeature: z.ZodType = z.object({ 'entitlement_feature': EntitlementsFeature, 'id': z.string(), 'livemode': z.boolean(), 'object': z.enum(['product_feature']) }); -export type ProductFeatureModel = z.infer; - -export const QuotesResourceAutomaticTax = z.object({ +export const QuotesResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]).optional(), 'provider': z.string().optional(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']).optional() }); -export type QuotesResourceAutomaticTaxModel = z.infer; - -export const QuotesResourceTotalDetailsResourceBreakdown = z.object({ +export const QuotesResourceTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type QuotesResourceTotalDetailsResourceBreakdownModel = z.infer; - -export const QuotesResourceTotalDetails = z.object({ +export const QuotesResourceTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int().optional(), 'amount_tax': z.number().int(), 'breakdown': QuotesResourceTotalDetailsResourceBreakdown.optional() }); -export type QuotesResourceTotalDetailsModel = z.infer; - -export const QuotesResourceRecurring = z.object({ +export const QuotesResourceRecurring: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'interval': z.enum(['day', 'month', 'week', 'year']), @@ -12545,9 +18920,7 @@ export const QuotesResourceRecurring = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceRecurringModel = z.infer; - -export const QuotesResourceUpfront = z.object({ +export const QuotesResourceUpfront: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'line_items': z.object({ @@ -12559,36 +18932,28 @@ export const QuotesResourceUpfront = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceUpfrontModel = z.infer; - -export const QuotesResourceComputed = z.object({ +export const QuotesResourceComputed: z.ZodType = z.object({ 'recurring': z.union([QuotesResourceRecurring]).optional(), 'upfront': QuotesResourceUpfront }); -export type QuotesResourceComputedModel = z.infer; - export const QuotesResourceFromQuote: z.ZodType = z.object({ 'is_revision': z.boolean(), 'quote': z.union([z.string(), z.lazy(() => Quote)]) }); -export const QuotesResourceStatusTransitions = z.object({ +export const QuotesResourceStatusTransitions: z.ZodType = z.object({ 'accepted_at': z.number().int().optional(), 'canceled_at': z.number().int().optional(), 'finalized_at': z.number().int().optional() }); -export type QuotesResourceStatusTransitionsModel = z.infer; - -export const QuotesResourceSubscriptionDataBillingMode = z.object({ +export const QuotesResourceSubscriptionDataBillingMode: z.ZodType = z.object({ 'flexible': SubscriptionsResourceBillingModeFlexible.optional(), 'type': z.enum(['classic', 'flexible']) }); -export type QuotesResourceSubscriptionDataBillingModeModel = z.infer; - -export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ +export const QuotesResourceSubscriptionDataSubscriptionData: z.ZodType = z.object({ 'billing_mode': QuotesResourceSubscriptionDataBillingMode, 'description': z.string().optional(), 'effective_date': z.number().int().optional(), @@ -12596,16 +18961,12 @@ export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ 'trial_period_days': z.number().int().optional() }); -export type QuotesResourceSubscriptionDataSubscriptionDataModel = z.infer; - -export const QuotesResourceTransferData = z.object({ +export const QuotesResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'amount_percent': z.number().optional(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type QuotesResourceTransferDataModel = z.infer; - export const Quote: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), @@ -12649,7 +19010,7 @@ export const Quote: z.ZodType = z.object({ 'transfer_data': z.union([QuotesResourceTransferData]).optional() }); -export const RadarEarlyFraudWarning = z.object({ +export const RadarEarlyFraudWarning: z.ZodType = z.object({ 'actionable': z.boolean(), 'charge': z.union([z.string(), z.lazy(() => Charge)]), 'created': z.number().int(), @@ -12660,9 +19021,7 @@ export const RadarEarlyFraudWarning = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional() }); -export type RadarEarlyFraudWarningModel = z.infer; - -export const RadarValueListItem = z.object({ +export const RadarValueListItem: z.ZodType = z.object({ 'created': z.number().int(), 'created_by': z.string(), 'id': z.string(), @@ -12672,9 +19031,7 @@ export const RadarValueListItem = z.object({ 'value_list': z.string() }); -export type RadarValueListItemModel = z.infer; - -export const RadarValueList = z.object({ +export const RadarValueList: z.ZodType = z.object({ 'alias': z.string(), 'created': z.number().int(), 'created_by': z.string(), @@ -12692,16 +19049,12 @@ export const RadarValueList = z.object({ 'object': z.enum(['radar.value_list']) }); -export type RadarValueListModel = z.infer; - -export const ReceivedPaymentMethodDetailsFinancialAccount = z.object({ +export const ReceivedPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type ReceivedPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const ReportingReportRun = z.object({ +export const ReportingReportRun: z.ZodType = z.object({ 'created': z.number().int(), 'error': z.string().optional(), 'id': z.string(), @@ -12714,9 +19067,7 @@ export const ReportingReportRun = z.object({ 'succeeded_at': z.number().int().optional() }); -export type ReportingReportRunModel = z.infer; - -export const ReportingReportType = z.object({ +export const ReportingReportType: z.ZodType = z.object({ 'data_available_end': z.number().int(), 'data_available_start': z.number().int(), 'default_columns': z.array(z.string()).optional(), @@ -12728,15 +19079,11 @@ export const ReportingReportType = z.object({ 'version': z.number().int() }); -export type ReportingReportTypeModel = z.infer; - -export const SigmaScheduledQueryRunError = z.object({ +export const SigmaScheduledQueryRunError: z.ZodType = z.object({ 'message': z.string() }); -export type SigmaScheduledQueryRunErrorModel = z.infer; - -export const ScheduledQueryRun = z.object({ +export const ScheduledQueryRun: z.ZodType = z.object({ 'created': z.number().int(), 'data_load_time': z.number().int(), 'error': SigmaScheduledQueryRunError.optional(), @@ -12750,9 +19097,7 @@ export const ScheduledQueryRun = z.object({ 'title': z.string() }); -export type ScheduledQueryRunModel = z.infer; - -export const SigmaSigmaApiQuery = z.object({ +export const SigmaSigmaApiQuery: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -12761,29 +19106,21 @@ export const SigmaSigmaApiQuery = z.object({ 'sql': z.string() }); -export type SigmaSigmaApiQueryModel = z.infer; - -export const SourceMandateNotificationAcssDebitData = z.object({ +export const SourceMandateNotificationAcssDebitData: z.ZodType = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceMandateNotificationAcssDebitDataModel = z.infer; - -export const SourceMandateNotificationBacsDebitData = z.object({ +export const SourceMandateNotificationBacsDebitData: z.ZodType = z.object({ 'last4': z.string().optional() }); -export type SourceMandateNotificationBacsDebitDataModel = z.infer; - -export const SourceMandateNotificationSepaDebitData = z.object({ +export const SourceMandateNotificationSepaDebitData: z.ZodType = z.object({ 'creditor_identifier': z.string().optional(), 'last4': z.string().optional(), 'mandate_reference': z.string().optional() }); -export type SourceMandateNotificationSepaDebitDataModel = z.infer; - -export const SourceMandateNotification = z.object({ +export const SourceMandateNotification: z.ZodType = z.object({ 'acss_debit': SourceMandateNotificationAcssDebitData.optional(), 'amount': z.number().int().optional(), 'bacs_debit': SourceMandateNotificationBacsDebitData.optional(), @@ -12798,18 +19135,14 @@ export const SourceMandateNotification = z.object({ 'type': z.string() }); -export type SourceMandateNotificationModel = z.infer; - -export const SourceTransactionAchCreditTransferData = z.object({ +export const SourceTransactionAchCreditTransferData: z.ZodType = z.object({ 'customer_data': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'routing_number': z.string().optional() }); -export type SourceTransactionAchCreditTransferDataModel = z.infer; - -export const SourceTransactionChfCreditTransferData = z.object({ +export const SourceTransactionChfCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_address_country': z.string().optional(), 'sender_address_line1': z.string().optional(), @@ -12817,9 +19150,7 @@ export const SourceTransactionChfCreditTransferData = z.object({ 'sender_name': z.string().optional() }); -export type SourceTransactionChfCreditTransferDataModel = z.infer; - -export const SourceTransactionGbpCreditTransferData = z.object({ +export const SourceTransactionGbpCreditTransferData: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'funding_method': z.string().optional(), 'last4': z.string().optional(), @@ -12829,24 +19160,18 @@ export const SourceTransactionGbpCreditTransferData = z.object({ 'sender_sort_code': z.string().optional() }); -export type SourceTransactionGbpCreditTransferDataModel = z.infer; - -export const SourceTransactionPaperCheckData = z.object({ +export const SourceTransactionPaperCheckData: z.ZodType = z.object({ 'available_at': z.string().optional(), 'invoices': z.string().optional() }); -export type SourceTransactionPaperCheckDataModel = z.infer; - -export const SourceTransactionSepaCreditTransferData = z.object({ +export const SourceTransactionSepaCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_iban': z.string().optional(), 'sender_name': z.string().optional() }); -export type SourceTransactionSepaCreditTransferDataModel = z.infer; - -export const SourceTransaction = z.object({ +export const SourceTransaction: z.ZodType = z.object({ 'ach_credit_transfer': SourceTransactionAchCreditTransferData.optional(), 'amount': z.number().int(), 'chf_credit_transfer': SourceTransactionChfCreditTransferData.optional(), @@ -12863,30 +19188,22 @@ export const SourceTransaction = z.object({ 'type': z.enum(['ach_credit_transfer', 'ach_debit', 'alipay', 'bancontact', 'card', 'card_present', 'eps', 'giropay', 'ideal', 'klarna', 'multibanco', 'p24', 'sepa_debit', 'sofort', 'three_d_secure', 'wechat']) }); -export type SourceTransactionModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted: z.ZodType = z.object({ 'transaction': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored: z.ZodType = z.object({ 'reason': z.enum(['another_payment_associated_with_calculation', 'calculation_expired', 'currency_mismatch', 'original_transaction_voided', 'unique_reference_violation']) }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttempts = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttempts: z.ZodType = z.object({ 'committed': TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted.optional(), 'errored': TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored.optional(), 'source': z.string(), 'status': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsModel = z.infer; - -export const TaxAssociation = z.object({ +export const TaxAssociation: z.ZodType = z.object({ 'calculation': z.string(), 'id': z.string(), 'object': z.enum(['tax.association']), @@ -12894,9 +19211,7 @@ export const TaxAssociation = z.object({ 'tax_transaction_attempts': z.array(TaxProductResourceTaxAssociationTransactionAttempts).optional() }); -export type TaxAssociationModel = z.infer; - -export const TaxProductResourcePostalAddress = z.object({ +export const TaxProductResourcePostalAddress: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string(), 'line1': z.string().optional(), @@ -12905,16 +19220,12 @@ export const TaxProductResourcePostalAddress = z.object({ 'state': z.string().optional() }); -export type TaxProductResourcePostalAddressModel = z.infer; - -export const TaxProductResourceCustomerDetailsResourceTaxId = z.object({ +export const TaxProductResourceCustomerDetailsResourceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type TaxProductResourceCustomerDetailsResourceTaxIdModel = z.infer; - -export const TaxProductResourceCustomerDetails = z.object({ +export const TaxProductResourceCustomerDetails: z.ZodType = z.object({ 'address': z.union([TaxProductResourcePostalAddress]).optional(), 'address_source': z.enum(['billing', 'shipping']).optional(), 'ip_address': z.string().optional(), @@ -12922,26 +19233,20 @@ export const TaxProductResourceCustomerDetails = z.object({ 'taxability_override': z.enum(['customer_exempt', 'none', 'reverse_charge']) }); -export type TaxProductResourceCustomerDetailsModel = z.infer; - -export const TaxProductResourceJurisdiction = z.object({ +export const TaxProductResourceJurisdiction: z.ZodType = z.object({ 'country': z.string(), 'display_name': z.string(), 'level': z.enum(['city', 'country', 'county', 'district', 'state']), 'state': z.string().optional() }); -export type TaxProductResourceJurisdictionModel = z.infer; - -export const TaxProductResourceLineItemTaxRateDetails = z.object({ +export const TaxProductResourceLineItemTaxRateDetails: z.ZodType = z.object({ 'display_name': z.string(), 'percentage_decimal': z.string(), 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxProductResourceLineItemTaxRateDetailsModel = z.infer; - -export const TaxProductResourceLineItemTaxBreakdown = z.object({ +export const TaxProductResourceLineItemTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'jurisdiction': TaxProductResourceJurisdiction, 'sourcing': z.enum(['destination', 'origin']), @@ -12950,9 +19255,7 @@ export const TaxProductResourceLineItemTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceLineItemTaxBreakdownModel = z.infer; - -export const TaxCalculationLineItem = z.object({ +export const TaxCalculationLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -12967,15 +19270,11 @@ export const TaxCalculationLineItem = z.object({ 'tax_code': z.string() }); -export type TaxCalculationLineItemModel = z.infer; - -export const TaxProductResourceShipFromDetails = z.object({ +export const TaxProductResourceShipFromDetails: z.ZodType = z.object({ 'address': TaxProductResourcePostalAddress }); -export type TaxProductResourceShipFromDetailsModel = z.infer; - -export const TaxProductResourceTaxCalculationShippingCost = z.object({ +export const TaxProductResourceTaxCalculationShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -12984,9 +19283,7 @@ export const TaxProductResourceTaxCalculationShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxCalculationShippingCostModel = z.infer; - -export const TaxProductResourceTaxRateDetails = z.object({ +export const TaxProductResourceTaxRateDetails: z.ZodType = z.object({ 'country': z.string().optional(), 'flat_amount': z.union([TaxRateFlatAmount]).optional(), 'percentage_decimal': z.string(), @@ -12995,9 +19292,7 @@ export const TaxProductResourceTaxRateDetails = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']).optional() }); -export type TaxProductResourceTaxRateDetailsModel = z.infer; - -export const TaxProductResourceTaxBreakdown = z.object({ +export const TaxProductResourceTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'inclusive': z.boolean(), 'tax_rate_details': TaxProductResourceTaxRateDetails, @@ -13005,9 +19300,7 @@ export const TaxProductResourceTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceTaxBreakdownModel = z.infer; - -export const TaxCalculation = z.object({ +export const TaxCalculation: z.ZodType = z.object({ 'amount_total': z.number().int(), 'currency': z.string(), 'customer': z.string().optional(), @@ -13030,91 +19323,63 @@ export const TaxCalculation = z.object({ 'tax_date': z.number().int() }); -export type TaxCalculationModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsDefaultStandard.optional(), 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefault = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefault: z.ZodType = z.object({ 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsSimplified = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsSimplified: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEuStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEuStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'small_seller', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEurope = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEurope: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsEuStandard.optional(), 'type': z.enum(['ioss', 'oss_non_union', 'oss_union', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard: z.ZodType = z.object({ 'province': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCanada = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCanada: z.ZodType = z.object({ 'province_standard': TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard.optional(), 'type': z.enum(['province_standard', 'simplified', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsThailand = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsThailand: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsThailandModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection: z.ZodType = z.object({ 'jurisdiction': z.string().optional(), 'type': z.enum(['local_use_tax', 'simplified_sellers_use_tax', 'single_local_use_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax: z.ZodType = z.object({ 'elections': z.array(TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection).optional() }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUnitedStates: z.ZodType = z.object({ 'local_amusement_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax.optional(), 'local_lease_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax.optional(), 'state': z.string(), @@ -13122,9 +19387,7 @@ export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.objec 'type': z.enum(['local_amusement_tax', 'local_lease_tax', 'state_communications_tax', 'state_retail_delivery_fee', 'state_sales_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptions = z.object({ +export const TaxProductRegistrationsResourceCountryOptions: z.ZodType = z.object({ 'ae': TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods.optional(), 'al': TaxProductRegistrationsResourceCountryOptionsDefault.optional(), 'am': TaxProductRegistrationsResourceCountryOptionsSimplified.optional(), @@ -13227,9 +19490,7 @@ export const TaxProductRegistrationsResourceCountryOptions = z.object({ 'zw': TaxProductRegistrationsResourceCountryOptionsDefault.optional() }); -export type TaxProductRegistrationsResourceCountryOptionsModel = z.infer; - -export const TaxRegistration = z.object({ +export const TaxRegistration: z.ZodType = z.object({ 'active_from': z.number().int(), 'country': z.string(), 'country_options': TaxProductRegistrationsResourceCountryOptions, @@ -13241,42 +19502,30 @@ export const TaxRegistration = z.object({ 'status': z.enum(['active', 'expired', 'scheduled']) }); -export type TaxRegistrationModel = z.infer; - -export const TaxProductResourceTaxSettingsDefaults = z.object({ +export const TaxProductResourceTaxSettingsDefaults: z.ZodType = z.object({ 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'inferred_by_currency']).optional(), 'tax_code': z.string().optional() }); -export type TaxProductResourceTaxSettingsDefaultsModel = z.infer; - -export const TaxProductResourceTaxSettingsHeadOffice = z.object({ +export const TaxProductResourceTaxSettingsHeadOffice: z.ZodType = z.object({ 'address': Address }); -export type TaxProductResourceTaxSettingsHeadOfficeModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourceActive = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourceActive: z.ZodType = z.object({ }); -export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourcePending = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourcePending: z.ZodType = z.object({ 'missing_fields': z.array(z.string()).optional() }); -export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetails = z.object({ +export const TaxProductResourceTaxSettingsStatusDetails: z.ZodType = z.object({ 'active': TaxProductResourceTaxSettingsStatusDetailsResourceActive.optional(), 'pending': TaxProductResourceTaxSettingsStatusDetailsResourcePending.optional() }); -export type TaxProductResourceTaxSettingsStatusDetailsModel = z.infer; - -export const TaxSettings = z.object({ +export const TaxSettings: z.ZodType = z.object({ 'defaults': TaxProductResourceTaxSettingsDefaults, 'head_office': z.union([TaxProductResourceTaxSettingsHeadOffice]).optional(), 'livemode': z.boolean(), @@ -13285,15 +19534,11 @@ export const TaxSettings = z.object({ 'status_details': TaxProductResourceTaxSettingsStatusDetails }); -export type TaxSettingsModel = z.infer; - -export const TaxProductResourceTaxTransactionLineItemResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionLineItemResourceReversal: z.ZodType = z.object({ 'original_line_item': z.string() }); -export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = z.infer; - -export const TaxTransactionLineItem = z.object({ +export const TaxTransactionLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -13309,15 +19554,11 @@ export const TaxTransactionLineItem = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionLineItemModel = z.infer; - -export const TaxProductResourceTaxTransactionResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionResourceReversal: z.ZodType = z.object({ 'original_transaction': z.string().optional() }); -export type TaxProductResourceTaxTransactionResourceReversalModel = z.infer; - -export const TaxProductResourceTaxTransactionShippingCost = z.object({ +export const TaxProductResourceTaxTransactionShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -13325,9 +19566,7 @@ export const TaxProductResourceTaxTransactionShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxTransactionShippingCostModel = z.infer; - -export const TaxTransaction = z.object({ +export const TaxTransaction: z.ZodType = z.object({ 'created': z.number().int(), 'currency': z.string(), 'customer': z.string().optional(), @@ -13351,36 +19590,26 @@ export const TaxTransaction = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionModel = z.infer; - -export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig: z.ZodType = z.object({ 'splashscreen': z.union([z.string(), z.lazy(() => File)]).optional() }); -export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceOfflineConfig = z.object({ +export const TerminalConfigurationConfigurationResourceOfflineConfig: z.ZodType = z.object({ 'enabled': z.boolean().optional() }); -export type TerminalConfigurationConfigurationResourceOfflineConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceRebootWindow = z.object({ +export const TerminalConfigurationConfigurationResourceRebootWindow: z.ZodType = z.object({ 'end_hour': z.number().int(), 'start_hour': z.number().int() }); -export type TerminalConfigurationConfigurationResourceRebootWindowModel = z.infer; - -export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig: z.ZodType = z.object({ 'fixed_amounts': z.array(z.number().int()).optional(), 'percentages': z.array(z.number().int()).optional(), 'smart_tip_threshold': z.number().int().optional() }); -export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceTipping = z.object({ +export const TerminalConfigurationConfigurationResourceTipping: z.ZodType = z.object({ 'aed': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'aud': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'bgn': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), @@ -13405,18 +19634,14 @@ export const TerminalConfigurationConfigurationResourceTipping = z.object({ 'usd': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional() }); -export type TerminalConfigurationConfigurationResourceTippingModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'password': z.string(), 'ssid': z.string(), 'username': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'client_certificate_file': z.string(), 'private_key_file': z.string(), @@ -13424,25 +19649,19 @@ export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.obj 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourcePersonalPskWifi = z.object({ +export const TerminalConfigurationConfigurationResourcePersonalPskWifi: z.ZodType = z.object({ 'password': z.string(), 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceWifiConfig = z.object({ +export const TerminalConfigurationConfigurationResourceWifiConfig: z.ZodType = z.object({ 'enterprise_eap_peap': TerminalConfigurationConfigurationResourceEnterprisePeapWifi.optional(), 'enterprise_eap_tls': TerminalConfigurationConfigurationResourceEnterpriseTlsWifi.optional(), 'personal_psk': TerminalConfigurationConfigurationResourcePersonalPskWifi.optional(), 'type': z.enum(['enterprise_eap_peap', 'enterprise_eap_tls', 'personal_psk']) }); -export type TerminalConfigurationConfigurationResourceWifiConfigModel = z.infer; - -export const TerminalConfiguration = z.object({ +export const TerminalConfiguration: z.ZodType = z.object({ 'bbpos_wisepad3': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'bbpos_wisepos_e': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'id': z.string(), @@ -13458,17 +19677,13 @@ export const TerminalConfiguration = z.object({ 'wifi': TerminalConfigurationConfigurationResourceWifiConfig.optional() }); -export type TerminalConfigurationModel = z.infer; - -export const TerminalConnectionToken = z.object({ +export const TerminalConnectionToken: z.ZodType = z.object({ 'location': z.string().optional(), 'object': z.enum(['terminal.connection_token']), 'secret': z.string() }); -export type TerminalConnectionTokenModel = z.infer; - -export const TerminalLocation = z.object({ +export const TerminalLocation: z.ZodType = z.object({ 'address': Address, 'address_kana': LegalEntityJapanAddress.optional(), 'address_kanji': LegalEntityJapanAddress.optional(), @@ -13483,22 +19698,16 @@ export const TerminalLocation = z.object({ 'phone': z.string().optional() }); -export type TerminalLocationModel = z.infer; - -export const TerminalOnboardingLinkAppleTermsAndConditions = z.object({ +export const TerminalOnboardingLinkAppleTermsAndConditions: z.ZodType = z.object({ 'allow_relinking': z.boolean().optional(), 'merchant_display_name': z.string() }); -export type TerminalOnboardingLinkAppleTermsAndConditionsModel = z.infer; - -export const TerminalOnboardingLinkLinkOptions = z.object({ +export const TerminalOnboardingLinkLinkOptions: z.ZodType = z.object({ 'apple_terms_and_conditions': z.union([TerminalOnboardingLinkAppleTermsAndConditions]).optional() }); -export type TerminalOnboardingLinkLinkOptionsModel = z.infer; - -export const TerminalOnboardingLink = z.object({ +export const TerminalOnboardingLink: z.ZodType = z.object({ 'link_options': TerminalOnboardingLinkLinkOptions, 'link_type': z.enum(['apple_terms_and_conditions']), 'object': z.enum(['terminal.onboarding_link']), @@ -13506,73 +19715,53 @@ export const TerminalOnboardingLink = z.object({ 'redirect_url': z.string() }); -export type TerminalOnboardingLinkModel = z.infer; - -export const TerminalReaderReaderResourceCustomText = z.object({ +export const TerminalReaderReaderResourceCustomText: z.ZodType = z.object({ 'description': z.string().optional(), 'skip_button': z.string().optional(), 'submit_button': z.string().optional(), 'title': z.string().optional() }); -export type TerminalReaderReaderResourceCustomTextModel = z.infer; - -export const TerminalReaderReaderResourceEmail = z.object({ +export const TerminalReaderReaderResourceEmail: z.ZodType = z.object({ 'value': z.string().optional() }); -export type TerminalReaderReaderResourceEmailModel = z.infer; - -export const TerminalReaderReaderResourceNumeric = z.object({ +export const TerminalReaderReaderResourceNumeric: z.ZodType = z.object({ 'value': z.string().optional() }); -export type TerminalReaderReaderResourceNumericModel = z.infer; - -export const TerminalReaderReaderResourcePhone = z.object({ +export const TerminalReaderReaderResourcePhone: z.ZodType = z.object({ 'value': z.string().optional() }); -export type TerminalReaderReaderResourcePhoneModel = z.infer; - -export const TerminalReaderReaderResourceChoice = z.object({ +export const TerminalReaderReaderResourceChoice: z.ZodType = z.object({ 'id': z.string().optional(), 'style': z.enum(['primary', 'secondary']).optional(), 'text': z.string() }); -export type TerminalReaderReaderResourceChoiceModel = z.infer; - -export const TerminalReaderReaderResourceSelection = z.object({ +export const TerminalReaderReaderResourceSelection: z.ZodType = z.object({ 'choices': z.array(TerminalReaderReaderResourceChoice), 'id': z.string().optional(), 'text': z.string().optional() }); -export type TerminalReaderReaderResourceSelectionModel = z.infer; - -export const TerminalReaderReaderResourceSignature = z.object({ +export const TerminalReaderReaderResourceSignature: z.ZodType = z.object({ 'value': z.string().optional() }); -export type TerminalReaderReaderResourceSignatureModel = z.infer; - -export const TerminalReaderReaderResourceText = z.object({ +export const TerminalReaderReaderResourceText: z.ZodType = z.object({ 'value': z.string().optional() }); -export type TerminalReaderReaderResourceTextModel = z.infer; - -export const TerminalReaderReaderResourceToggle = z.object({ +export const TerminalReaderReaderResourceToggle: z.ZodType = z.object({ 'default_value': z.enum(['disabled', 'enabled']).optional(), 'description': z.string().optional(), 'title': z.string().optional(), 'value': z.enum(['disabled', 'enabled']).optional() }); -export type TerminalReaderReaderResourceToggleModel = z.infer; - -export const TerminalReaderReaderResourceInput = z.object({ +export const TerminalReaderReaderResourceInput: z.ZodType = z.object({ 'custom_text': z.union([TerminalReaderReaderResourceCustomText]).optional(), 'email': TerminalReaderReaderResourceEmail.optional(), 'numeric': TerminalReaderReaderResourceNumeric.optional(), @@ -13586,87 +19775,63 @@ export const TerminalReaderReaderResourceInput = z.object({ 'type': z.enum(['email', 'numeric', 'phone', 'selection', 'signature', 'text']) }); -export type TerminalReaderReaderResourceInputModel = z.infer; - -export const TerminalReaderReaderResourceCollectInputsAction = z.object({ +export const TerminalReaderReaderResourceCollectInputsAction: z.ZodType = z.object({ 'inputs': z.array(TerminalReaderReaderResourceInput), 'metadata': z.record(z.string(), z.string()).optional() }); -export type TerminalReaderReaderResourceCollectInputsActionModel = z.infer; - -export const TerminalReaderReaderResourceTippingConfig = z.object({ +export const TerminalReaderReaderResourceTippingConfig: z.ZodType = z.object({ 'amount_eligible': z.number().int().optional() }); -export type TerminalReaderReaderResourceTippingConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectConfig = z.object({ +export const TerminalReaderReaderResourceCollectConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceCollectConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectPaymentMethodAction = z.object({ +export const TerminalReaderReaderResourceCollectPaymentMethodAction: z.ZodType = z.object({ 'collect_config': TerminalReaderReaderResourceCollectConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'payment_method': z.lazy(() => PaymentMethod).optional() }); -export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = z.infer; - -export const TerminalReaderReaderResourceConfirmConfig = z.object({ +export const TerminalReaderReaderResourceConfirmConfig: z.ZodType = z.object({ 'return_url': z.string().optional() }); -export type TerminalReaderReaderResourceConfirmConfigModel = z.infer; - -export const TerminalReaderReaderResourceConfirmPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceConfirmPaymentIntentAction: z.ZodType = z.object({ 'confirm_config': TerminalReaderReaderResourceConfirmConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessConfig = z.object({ +export const TerminalReaderReaderResourceProcessConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'return_url': z.string().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceProcessConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessPaymentIntentAction: z.ZodType = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'process_config': TerminalReaderReaderResourceProcessConfig.optional() }); -export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupConfig = z.object({ +export const TerminalReaderReaderResourceProcessSetupConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceProcessSetupConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessSetupIntentAction: z.ZodType = z.object({ 'generated_card': z.string().optional(), 'process_config': TerminalReaderReaderResourceProcessSetupConfig.optional(), 'setup_intent': z.union([z.string(), z.lazy(() => SetupIntent)]) }); -export type TerminalReaderReaderResourceProcessSetupIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentConfig = z.object({ +export const TerminalReaderReaderResourceRefundPaymentConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentConfigModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ +export const TerminalReaderReaderResourceRefundPaymentAction: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'metadata': z.record(z.string(), z.string()).optional(), @@ -13678,33 +19843,25 @@ export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ 'reverse_transfer': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentActionModel = z.infer; - -export const TerminalReaderReaderResourceLineItem = z.object({ +export const TerminalReaderReaderResourceLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string(), 'quantity': z.number().int() }); -export type TerminalReaderReaderResourceLineItemModel = z.infer; - -export const TerminalReaderReaderResourceCart = z.object({ +export const TerminalReaderReaderResourceCart: z.ZodType = z.object({ 'currency': z.string(), 'line_items': z.array(TerminalReaderReaderResourceLineItem), 'tax': z.number().int().optional(), 'total': z.number().int() }); -export type TerminalReaderReaderResourceCartModel = z.infer; - -export const TerminalReaderReaderResourceSetReaderDisplayAction = z.object({ +export const TerminalReaderReaderResourceSetReaderDisplayAction: z.ZodType = z.object({ 'cart': z.union([TerminalReaderReaderResourceCart]).optional(), 'type': z.enum(['cart']) }); -export type TerminalReaderReaderResourceSetReaderDisplayActionModel = z.infer; - -export const TerminalReaderReaderResourceReaderAction = z.object({ +export const TerminalReaderReaderResourceReaderAction: z.ZodType = z.object({ 'collect_inputs': TerminalReaderReaderResourceCollectInputsAction.optional(), 'collect_payment_method': TerminalReaderReaderResourceCollectPaymentMethodAction.optional(), 'confirm_payment_intent': TerminalReaderReaderResourceConfirmPaymentIntentAction.optional(), @@ -13718,9 +19875,7 @@ export const TerminalReaderReaderResourceReaderAction = z.object({ 'type': z.enum(['collect_inputs', 'collect_payment_method', 'confirm_payment_intent', 'process_payment_intent', 'process_setup_intent', 'refund_payment', 'set_reader_display']) }); -export type TerminalReaderReaderResourceReaderActionModel = z.infer; - -export const TerminalReader = z.object({ +export const TerminalReader: z.ZodType = z.object({ 'action': z.union([TerminalReaderReaderResourceReaderAction]).optional(), 'device_sw_version': z.string().optional(), 'device_type': z.enum(['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'verifone_P400']), @@ -13736,9 +19891,7 @@ export const TerminalReader = z.object({ 'status': z.enum(['offline', 'online']).optional() }); -export type TerminalReaderModel = z.infer; - -export const Token = z.object({ +export const Token: z.ZodType = z.object({ 'bank_account': z.lazy(() => BankAccount).optional(), 'card': z.lazy(() => Card).optional(), 'client_ip': z.string().optional(), @@ -13750,34 +19903,24 @@ export const Token = z.object({ 'used': z.boolean() }); -export type TokenModel = z.infer; - -export const TreasuryReceivedCreditsResourceStatusTransitions = z.object({ +export const TreasuryReceivedCreditsResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int().optional() }); -export type TreasuryReceivedCreditsResourceStatusTransitionsModel = z.infer; - -export const TreasuryTransactionsResourceBalanceImpact = z.object({ +export const TreasuryTransactionsResourceBalanceImpact: z.ZodType = z.object({ 'cash': z.number().int(), 'inbound_pending': z.number().int(), 'outbound_pending': z.number().int() }); -export type TreasuryTransactionsResourceBalanceImpactModel = z.infer; - -export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows: z.ZodType = z.object({ 'issuing_dispute': z.string().optional() }); -export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceStatusTransitions = z.object({ +export const TreasuryReceivedDebitsResourceStatusTransitions: z.ZodType = z.object({ 'completed_at': z.number().int().optional() }); -export type TreasuryReceivedDebitsResourceStatusTransitionsModel = z.infer; - export const TreasuryDebitReversal: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -13796,26 +19939,20 @@ export const TreasuryDebitReversal: z.ZodType = z.ob 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]).optional() }); -export const TreasuryInboundTransfersResourceFailureDetails = z.object({ +export const TreasuryInboundTransfersResourceFailureDetails: z.ZodType = z.object({ 'code': z.enum(['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']) }); -export type TreasuryInboundTransfersResourceFailureDetailsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows: z.ZodType = z.object({ 'received_debit': z.string().optional() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'failed_at': z.number().int().optional(), 'succeeded_at': z.number().int().optional() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = z.infer; - export const TreasuryInboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -13839,49 +19976,39 @@ export const TreasuryInboundTransfer: z.ZodType = 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]).optional() }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails: z.ZodType = z.object({ 'ip_address': z.string().optional(), 'present': z.boolean() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = z.infer; - export const TreasuryOutboundPaymentsResourceReturnedStatus: z.ZodType = z.object({ 'code': z.enum(['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'declined', 'incorrect_account_holder_name', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']), 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'failed_at': z.number().int().optional(), 'posted_at': z.number().int().optional(), 'returned_at': z.number().int().optional() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string().optional(), 'imad': z.string().optional(), 'omad': z.string().optional() }); -export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundPaymentsResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundPayment: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -13912,37 +20039,29 @@ export const TreasuryOutboundTransfersResourceReturnedDetails: z.ZodType TreasuryTransaction)]) }); -export const TreasuryOutboundTransfersResourceStatusTransitions = z.object({ +export const TreasuryOutboundTransfersResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'failed_at': z.number().int().optional(), 'posted_at': z.number().int().optional(), 'returned_at': z.number().int().optional() }); -export type TreasuryOutboundTransfersResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundTransfersResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string().optional(), 'imad': z.string().optional(), 'omad': z.string().optional() }); -export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundTransfersResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -13966,15 +20085,13 @@ export const TreasuryOutboundTransfer: z.ZodType 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'last4': z.string().optional(), 'routing_number': z.string().optional() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails: z.ZodType = z.object({ 'balance': z.enum(['payments']).optional(), 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': ReceivedPaymentMethodDetailsFinancialAccount.optional(), @@ -13983,8 +20100,6 @@ export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPayme 'us_bank_account': TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount.optional() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = z.infer; - export const TreasuryReceivedCreditsResourceSourceFlowsDetails: z.ZodType = z.object({ 'credit_reversal': z.lazy(() => TreasuryCreditReversal).optional(), 'outbound_payment': z.lazy(() => TreasuryOutboundPayment).optional(), @@ -14002,13 +20117,11 @@ export const TreasuryReceivedCreditsResourceLinkedFlows: z.ZodType = z.object({ 'deadline': z.number().int().optional(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']).optional() }); -export type TreasuryReceivedCreditsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedCredit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -14028,7 +20141,7 @@ export const TreasuryReceivedCredit: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]).optional() }); -export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceLinkedFlows: z.ZodType = z.object({ 'debit_reversal': z.string().optional(), 'inbound_transfer': z.string().optional(), 'issuing_authorization': z.string().optional(), @@ -14036,15 +20149,11 @@ export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ 'payout': z.string().optional() }); -export type TreasuryReceivedDebitsResourceLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceReversalDetails = z.object({ +export const TreasuryReceivedDebitsResourceReversalDetails: z.ZodType = z.object({ 'deadline': z.number().int().optional(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']).optional() }); -export type TreasuryReceivedDebitsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedDebit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -14092,13 +20201,11 @@ export const TreasuryTransactionEntry: z.ZodType 'type': z.enum(['credit_reversal', 'credit_reversal_posting', 'debit_reversal', 'inbound_transfer', 'inbound_transfer_return', 'issuing_authorization_hold', 'issuing_authorization_release', 'other', 'outbound_payment', 'outbound_payment_cancellation', 'outbound_payment_failure', 'outbound_payment_posting', 'outbound_payment_return', 'outbound_transfer', 'outbound_transfer_cancellation', 'outbound_transfer_failure', 'outbound_transfer_posting', 'outbound_transfer_return', 'received_credit', 'received_debit']) }); -export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions = z.object({ +export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int().optional(), 'void_at': z.number().int().optional() }); -export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = z.infer; - export const TreasuryTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_impact': TreasuryTransactionsResourceBalanceImpact, @@ -14139,81 +20246,61 @@ export const TreasuryCreditReversal: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]).optional() }); -export const TreasuryFinancialAccountsResourceBalance = z.object({ +export const TreasuryFinancialAccountsResourceBalance: z.ZodType = z.object({ 'cash': z.record(z.string(), z.number().int()), 'inbound_pending': z.record(z.string(), z.number().int()), 'outbound_pending': z.record(z.string(), z.number().int()) }); -export type TreasuryFinancialAccountsResourceBalanceModel = z.infer; - -export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails: z.ZodType = z.object({ 'code': z.enum(['activating', 'capability_not_requested', 'financial_account_closed', 'rejected_other', 'rejected_unsupported_business', 'requirements_past_due', 'requirements_pending_verification', 'restricted_by_platform', 'restricted_other']), 'resolution': z.enum(['contact_stripe', 'provide_information', 'remove_restriction']).optional(), 'restriction': z.enum(['inbound_flows', 'outbound_flows']).optional() }); -export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceAbaToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceInboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceInboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceInboundAchToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceInboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundPayments = z.object({ +export const TreasuryFinancialAccountsResourceOutboundPayments: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceOutboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountFeatures = z.object({ +export const TreasuryFinancialAccountFeatures: z.ZodType = z.object({ 'card_issuing': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'deposit_insurance': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressesFeatures.optional(), @@ -14224,9 +20311,7 @@ export const TreasuryFinancialAccountFeatures = z.object({ 'outbound_transfers': TreasuryFinancialAccountsResourceOutboundTransfers.optional() }); -export type TreasuryFinancialAccountFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ +export const TreasuryFinancialAccountsResourceAbaRecord: z.ZodType = z.object({ 'account_holder_name': z.string(), 'account_number': z.string().optional(), 'account_number_last4': z.string(), @@ -14234,36 +20319,26 @@ export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ 'routing_number': z.string() }); -export type TreasuryFinancialAccountsResourceAbaRecordModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddress = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddress: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaRecord.optional(), 'supported_networks': z.array(z.enum(['ach', 'us_domestic_wire'])).optional(), 'type': z.enum(['aba']) }); -export type TreasuryFinancialAccountsResourceFinancialAddressModel = z.infer; - -export const TreasuryFinancialAccountsResourcePlatformRestrictions = z.object({ +export const TreasuryFinancialAccountsResourcePlatformRestrictions: z.ZodType = z.object({ 'inbound_flows': z.enum(['restricted', 'unrestricted']).optional(), 'outbound_flows': z.enum(['restricted', 'unrestricted']).optional() }); -export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = z.infer; - -export const TreasuryFinancialAccountsResourceClosedStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceClosedStatusDetails: z.ZodType = z.object({ 'reasons': z.array(z.enum(['account_rejected', 'closed_by_platform', 'other'])) }); -export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceStatusDetails: z.ZodType = z.object({ 'closed': z.union([TreasuryFinancialAccountsResourceClosedStatusDetails]).optional() }); -export type TreasuryFinancialAccountsResourceStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccount = z.object({ +export const TreasuryFinancialAccount: z.ZodType = z.object({ 'active_features': z.array(z.enum(['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'])).optional(), 'balance': TreasuryFinancialAccountsResourceBalance, 'country': z.string(), @@ -14284,9 +20359,7 @@ export const TreasuryFinancialAccount = z.object({ 'supported_currencies': z.array(z.string()) }); -export type TreasuryFinancialAccountModel = z.infer; - -export const WebhookEndpoint = z.object({ +export const WebhookEndpoint: z.ZodType = z.object({ 'api_version': z.string().optional(), 'application': z.string().optional(), 'created': z.number().int(), @@ -14299,6 +20372,4 @@ export const WebhookEndpoint = z.object({ 'secret': z.string().optional(), 'status': z.string(), 'url': z.string() -}); - -export type WebhookEndpointModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_2/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_2/models.ts index 2ed7b6b..2ec6a58 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_2/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_2/models.ts @@ -1,6 +1,152 @@ import { z } from 'zod'; -// Helper types for recursive schemas +// Helper types for schemas + +export type AccountAnnualRevenueModel = { + 'amount': number; + 'currency': string; + 'fiscal_year_end': string; +}; + +export type AccountMonthlyEstimatedRevenueModel = { + 'amount': number; + 'currency': string; +}; + +export type AddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type AccountBusinessProfileModel = { + 'annual_revenue'?: AccountAnnualRevenueModel | undefined; + 'estimated_worker_count'?: number | undefined; + 'mcc': string; + 'minority_owned_business_designation': Array<'lgbtqi_owned_business' | 'minority_owned_business' | 'none_of_these_apply' | 'prefer_not_to_answer' | 'women_owned_business'>; + 'monthly_estimated_revenue'?: AccountMonthlyEstimatedRevenueModel | undefined; + 'name': string; + 'product_description'?: string | undefined; + 'support_address': AddressModel; + 'support_email': string; + 'support_phone': string; + 'support_url': string; + 'url': string; +}; + +export type AccountCapabilitiesModel = { + '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; + 'billie_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; + 'crypto_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; + 'mb_way_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; + 'nz_bank_account_becs_debit_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'oxxo_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'p24_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pay_by_bank_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'payco_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'paynow_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pix_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; + 'satispay_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 LegalEntityJapanAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; + 'town': string; +}; + +export type LegalEntityDirectorshipDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type LegalEntityUboDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type LegalEntityRegistrationDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type LegalEntityRepresentativeDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type FileLinkModel = { + 'created': number; + 'expired': boolean; + 'expires_at': number; + 'file': string | FileModel; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'file_link'; + 'url': string; +}; export type FileModel = { 'created': number; @@ -21,20 +167,6 @@ export type FileModel = { 'url': string; }; -export type FileLinkModel = { - 'created': number; - 'expired': boolean; - 'expires_at': number; - 'file': string | FileModel; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'object': 'file_link'; - 'url': string; -}; - export type LegalEntityCompanyVerificationDocumentModel = { 'back': string | FileModel; 'details': string; @@ -71,64 +203,51 @@ export type LegalEntityCompanyModel = { 'verification'?: LegalEntityCompanyVerificationModel | undefined; }; -export type AccountModel = { - 'business_profile'?: AccountBusinessProfileModel | undefined; - 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; - 'capabilities'?: AccountCapabilitiesModel | undefined; - 'charges_enabled'?: boolean | undefined; - 'company'?: LegalEntityCompanyModel | undefined; - 'controller'?: AccountUnificationAccountControllerModel | undefined; - 'country'?: string | undefined; - 'created'?: number | undefined; - 'default_currency'?: string | undefined; - 'details_submitted'?: boolean | undefined; - 'email'?: string | undefined; - 'external_accounts'?: { - 'data': ExternalAccountModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'future_requirements'?: AccountFutureRequirementsModel | undefined; - 'groups'?: AccountGroupMembershipModel | undefined; - 'id': string; - 'individual'?: PersonModel | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'account'; - 'payouts_enabled'?: boolean | undefined; - 'requirements'?: AccountRequirementsModel | undefined; - 'settings'?: AccountSettingsModel | undefined; - 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; - 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +export type AccountUnificationAccountControllerFeesModel = { + 'payer': 'account' | 'application' | 'application_custom' | 'application_express'; }; -export type BankAccountModel = { - 'account'?: string | AccountModel | undefined; - 'account_holder_name': string; - 'account_holder_type': string; - 'account_type': string; - 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; - 'bank_name': string; - 'country': string; - 'currency': string; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'default_for_currency'?: boolean | undefined; - 'fingerprint': string; - 'future_requirements'?: ExternalAccountRequirementsModel | undefined; +export type AccountUnificationAccountControllerLossesModel = { + 'payments': 'application' | 'stripe'; +}; + +export type AccountUnificationAccountControllerStripeDashboardModel = { + 'type': 'express' | 'full' | 'none'; +}; + +export type AccountUnificationAccountControllerModel = { + 'fees'?: AccountUnificationAccountControllerFeesModel | undefined; + 'is_controller'?: boolean | undefined; + 'losses'?: AccountUnificationAccountControllerLossesModel | undefined; + 'requirement_collection'?: 'application' | 'stripe' | undefined; + 'stripe_dashboard'?: AccountUnificationAccountControllerStripeDashboardModel | undefined; + 'type': 'account' | 'application'; +}; + +export type CustomerBalanceCustomerBalanceSettingsModel = { + 'reconciliation_mode': 'automatic' | 'manual'; + 'using_merchant_default': boolean; +}; + +export type CashBalanceModel = { + 'available': { + [key: string]: number; +}; + 'customer': string; + 'livemode': boolean; + 'object': 'cash_balance'; + 'settings': CustomerBalanceCustomerBalanceSettingsModel; +}; + +export type DeletedCustomerModel = { + 'deleted': boolean; 'id': string; - 'last4': string; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'bank_account'; - 'requirements'?: ExternalAccountRequirementsModel | undefined; - 'routing_number': string; - 'status': string; + 'object': 'customer'; }; -export type PaymentSourceModel = AccountModel | BankAccountModel | CardModel | SourceModel; +export type TokenCardNetworksModel = { + 'preferred': string; +}; export type CardModel = { 'account'?: string | AccountModel | undefined; @@ -169,593 +288,2073 @@ export type CardModel = { 'tokenization_method': string; }; -export type CustomerModel = { - 'address'?: AddressModel | undefined; - 'balance'?: number | undefined; - 'business_name'?: string | undefined; - 'cash_balance'?: CashBalanceModel | undefined; - 'created': number; - 'currency'?: string | undefined; - 'default_source': string | PaymentSourceModel; - 'delinquent'?: boolean | undefined; - 'description': string; - 'discount'?: DiscountModel | undefined; - 'email': string; - 'id': string; - 'individual_name'?: string | undefined; - 'invoice_credit_balance'?: { - [key: string]: number; -} | undefined; - 'invoice_prefix'?: string | undefined; - 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; - 'livemode': boolean; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'name'?: string | undefined; - 'next_invoice_sequence'?: number | undefined; - 'object': 'customer'; - 'phone'?: string | undefined; - 'preferred_locales'?: string[] | undefined; - 'shipping': ShippingModel; - 'sources'?: { - 'data': PaymentSourceModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'subscriptions'?: { - 'data': SubscriptionModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'tax'?: CustomerTaxModel | undefined; - 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; - 'tax_ids'?: { - 'data': TaxIdModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; +export type SourceTypeAchCreditTransferModel = { + 'account_number'?: string | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_account_holder_type'?: string | undefined; + 'refund_routing_number'?: string | undefined; + 'routing_number'?: string | undefined; + 'swift_code'?: string | undefined; }; -export type DiscountModel = { - 'checkout_session': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'end': number; - 'id': string; - 'invoice': string; - 'invoice_item': string; - 'object': 'discount'; - 'promotion_code': string | PromotionCodeModel; - 'source': DiscountSourceModel; - 'start': number; - 'subscription': string; - 'subscription_item': string; +export type SourceTypeAchDebitModel = { + 'bank_name'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; + 'type'?: string | undefined; }; -export type PromotionCodeModel = { - 'active': boolean; - 'code': string; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'expires_at': number; - 'id': string; - 'livemode': boolean; - 'max_redemptions': number; - 'metadata': { - [key: string]: string; +export type SourceTypeAcssDebitModel = { + 'bank_address_city'?: string | undefined; + 'bank_address_line_1'?: string | undefined; + 'bank_address_line_2'?: string | undefined; + 'bank_address_postal_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'category'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; }; - 'object': 'promotion_code'; - 'promotion': PromotionCodesResourcePromotionModel; - 'restrictions': PromotionCodesResourceRestrictionsModel; - 'times_redeemed': number; + +export type SourceTypeAlipayModel = { + 'data_string'?: string | undefined; + 'native_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; -export type SetupAttemptModel = { - 'application': string | ApplicationModel; - 'attach_to_self'?: boolean | undefined; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'flow_directions': Array<'inbound' | 'outbound'>; - 'id': string; - 'livemode': boolean; - 'object': 'setup_attempt'; - 'on_behalf_of': string | AccountModel; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; - 'setup_error': ApiErrorsModel; - 'setup_intent': string | SetupIntentModel; +export type SourceTypeAuBecsDebitModel = { + 'bsb_number'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; +}; + +export type SourceTypeBancontactModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeCardModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'cvc_check'?: string | undefined; + 'description'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; +}; + +export type SourceTypeCardPresentModel = { + 'application_cryptogram'?: string | undefined; + 'application_preferred_name'?: string | undefined; + 'authorization_code'?: string | undefined; + 'authorization_response_code'?: string | undefined; + 'brand'?: string | undefined; + 'country'?: string | undefined; + 'cvm_type'?: string | undefined; + 'data_type'?: string | undefined; + 'dedicated_file_name'?: string | undefined; + 'description'?: string | undefined; + 'emv_auth_data'?: string | undefined; + 'evidence_customer_signature'?: string | undefined; + 'evidence_transaction_certificate'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'pos_device_id'?: string | undefined; + 'pos_entry_mode'?: string | undefined; + 'read_method'?: string | undefined; + 'reader'?: string | undefined; + 'terminal_verification_results'?: string | undefined; + 'transaction_status_information'?: string | undefined; +}; + +export type SourceCodeVerificationFlowModel = { + 'attempts_remaining': number; 'status': string; - 'usage': string; }; -export type PaymentMethodModel = { - 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; - 'affirm'?: PaymentMethodAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; - 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; - 'alma'?: PaymentMethodAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodBancontactModel | undefined; - 'billie'?: PaymentMethodBillieModel | undefined; - 'billing_details': BillingDetailsModel; - 'blik'?: PaymentMethodBlikModel | undefined; - 'boleto'?: PaymentMethodBoletoModel | undefined; - 'card'?: PaymentMethodCardModel | undefined; - 'card_present'?: PaymentMethodCardPresentModel | undefined; - 'cashapp'?: PaymentMethodCashappModel | undefined; - 'created': number; - 'crypto'?: PaymentMethodCryptoModel | undefined; - 'custom'?: PaymentMethodCustomModel | undefined; - 'customer': string | CustomerModel; - 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodEpsModel | undefined; - 'fpx'?: PaymentMethodFpxModel | undefined; - 'giropay'?: PaymentMethodGiropayModel | undefined; - 'grabpay'?: PaymentMethodGrabpayModel | undefined; - 'id': string; - 'ideal'?: PaymentMethodIdealModel | undefined; - 'interac_present'?: PaymentMethodInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; - 'klarna'?: PaymentMethodKlarnaModel | undefined; - 'konbini'?: PaymentMethodKonbiniModel | undefined; - 'kr_card'?: PaymentMethodKrCardModel | undefined; - 'link'?: PaymentMethodLinkModel | undefined; - 'livemode': boolean; - 'mb_way'?: PaymentMethodMbWayModel | undefined; - 'metadata': { - [key: string]: string; +export type SourceTypeEpsModel = { + 'reference'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; - 'mobilepay'?: PaymentMethodMobilepayModel | undefined; - 'multibanco'?: PaymentMethodMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; - 'object': 'payment_method'; - 'oxxo'?: PaymentMethodOxxoModel | undefined; - 'p24'?: PaymentMethodP24Model | undefined; - 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; - 'payco'?: PaymentMethodPaycoModel | undefined; - 'paynow'?: PaymentMethodPaynowModel | undefined; - 'paypal'?: PaymentMethodPaypalModel | undefined; - 'pix'?: PaymentMethodPixModel | undefined; - 'promptpay'?: PaymentMethodPromptpayModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; - 'satispay'?: PaymentMethodSatispayModel | undefined; - 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; - 'sofort'?: PaymentMethodSofortModel | undefined; - 'swish'?: PaymentMethodSwishModel | undefined; - 'twint'?: PaymentMethodTwintModel | undefined; - 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; - 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; - 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; - 'zip'?: PaymentMethodZipModel | undefined; + +export type SourceTypeGiropayModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsBancontactModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; +export type SourceTypeIdealModel = { + 'bank'?: string | undefined; + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeKlarnaModel = { + 'background_image_url'?: string | undefined; + 'client_token'?: string | 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 SourceTypeMultibancoModel = { + 'entity'?: string | undefined; + 'reference'?: string | undefined; + 'refund_account_holder_address_city'?: string | undefined; + 'refund_account_holder_address_country'?: string | undefined; + 'refund_account_holder_address_line1'?: string | undefined; + 'refund_account_holder_address_line2'?: string | undefined; + 'refund_account_holder_address_postal_code'?: string | undefined; + 'refund_account_holder_address_state'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_iban'?: string | undefined; +}; + +export type SourceOwnerModel = { + 'address': AddressModel; + 'email': string; + 'name': string; + 'phone': string; + 'verified_address': AddressModel; + 'verified_email': string; 'verified_name': string; + 'verified_phone': string; }; -export type MandateModel = { - 'customer_acceptance': CustomerAcceptanceModel; - 'id': string; - 'livemode': boolean; - 'multi_use'?: MandateMultiUseModel | undefined; - 'object': 'mandate'; - 'on_behalf_of'?: string | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': MandatePaymentMethodDetailsModel; - 'single_use'?: MandateSingleUseModel | undefined; - 'status': 'active' | 'inactive' | 'pending'; - 'type': 'multi_use' | 'single_use'; +export type SourceTypeP24Model = { + 'reference'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsModel = { - 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; - 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; - 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; - 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; - 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; - 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; - 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; - 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; - 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; - 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; - 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; - 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; - 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; - 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; +export type SourceReceiverFlowModel = { + 'address': string; + 'amount_charged': number; + 'amount_received': number; + 'amount_returned': number; + 'refund_attributes_method': string; + 'refund_attributes_status': string; +}; + +export type SourceRedirectFlowModel = { + 'failure_reason': string; + 'return_url': string; + 'status': string; + 'url': string; +}; + +export type SourceTypeSepaCreditTransferModel = { + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'iban'?: string | undefined; + 'refund_account_holder_address_city'?: string | undefined; + 'refund_account_holder_address_country'?: string | undefined; + 'refund_account_holder_address_line1'?: string | undefined; + 'refund_account_holder_address_line2'?: string | undefined; + 'refund_account_holder_address_postal_code'?: string | undefined; + 'refund_account_holder_address_state'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_iban'?: string | undefined; +}; + +export type SourceTypeSepaDebitModel = { + 'bank_code'?: string | undefined; + 'branch_code'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; + 'mandate_url'?: string | undefined; +}; + +export type SourceTypeSofortModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'country'?: string | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceOrderItemModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'parent': string; + 'quantity'?: number | undefined; 'type': string; - 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; }; -export type SetupAttemptPaymentMethodDetailsCardPresentModel = { - 'generated_card': string | PaymentMethodModel; - 'offline': PaymentMethodDetailsCardPresentOfflineModel; +export type ShippingModel = { + 'address'?: AddressModel | undefined; + 'carrier'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'tracking_number'?: string | undefined; }; -export type SetupAttemptPaymentMethodDetailsIdealModel = { - 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; - 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'verified_name': string; +export type SourceOrderModel = { + 'amount': number; + 'currency': string; + 'email'?: string | undefined; + 'items': SourceOrderItemModel[]; + 'shipping'?: ShippingModel | undefined; }; -export type SetupAttemptPaymentMethodDetailsSofortModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; - 'verified_name': string; +export type SourceTypeThreeDSecureModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'authenticated'?: boolean | undefined; + 'brand'?: string | undefined; + 'card'?: string | undefined; + 'country'?: string | undefined; + 'customer'?: string | undefined; + 'cvc_check'?: string | undefined; + 'description'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; }; -export type PaymentIntentModel = { +export type SourceTypeWechatModel = { + 'prepay_id'?: string | undefined; + 'qr_code_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceModel = { + 'ach_credit_transfer'?: SourceTypeAchCreditTransferModel | undefined; + 'ach_debit'?: SourceTypeAchDebitModel | undefined; + 'acss_debit'?: SourceTypeAcssDebitModel | undefined; + 'alipay'?: SourceTypeAlipayModel | undefined; + 'allow_redisplay': 'always' | 'limited' | 'unspecified'; 'amount': number; - 'amount_capturable': number; - 'amount_details'?: PaymentFlowsAmountDetailsModel | undefined; - 'amount_received': number; - 'application': string | ApplicationModel; - 'application_fee_amount': number; - 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel; - 'canceled_at': number; - 'cancellation_reason': 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice'; - 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'au_becs_debit'?: SourceTypeAuBecsDebitModel | undefined; + 'bancontact'?: SourceTypeBancontactModel | undefined; + 'card'?: SourceTypeCardModel | undefined; + 'card_present'?: SourceTypeCardPresentModel | undefined; 'client_secret': string; - 'confirmation_method': 'automatic' | 'manual'; + 'code_verification'?: SourceCodeVerificationFlowModel | undefined; 'created': number; 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'description': string; - 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; - 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'customer'?: string | undefined; + 'eps'?: SourceTypeEpsModel | undefined; + 'flow': string; + 'giropay'?: SourceTypeGiropayModel | undefined; 'id': string; - 'last_payment_error': ApiErrorsModel; - 'latest_charge': string | ChargeModel; + 'ideal'?: SourceTypeIdealModel | undefined; + 'klarna'?: SourceTypeKlarnaModel | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'next_action': PaymentIntentNextActionModel; - 'object': 'payment_intent'; - 'on_behalf_of': string | AccountModel; - 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; - 'payment_method_options': PaymentIntentPaymentMethodOptionsModel; - 'payment_method_types': string[]; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'processing': PaymentIntentProcessing_1Model; - 'receipt_email': string; - 'review': string | ReviewModel; - 'setup_future_usage': 'off_session' | 'on_session'; - 'shipping': ShippingModel; - 'source': string | PaymentSourceModel | DeletedPaymentSourceModel; + 'multibanco'?: SourceTypeMultibancoModel | undefined; + 'object': 'source'; + 'owner': SourceOwnerModel; + 'p24'?: SourceTypeP24Model | undefined; + 'receiver'?: SourceReceiverFlowModel | undefined; + 'redirect'?: SourceRedirectFlowModel | undefined; + 'sepa_credit_transfer'?: SourceTypeSepaCreditTransferModel | undefined; + 'sepa_debit'?: SourceTypeSepaDebitModel | undefined; + 'sofort'?: SourceTypeSofortModel | undefined; + 'source_order'?: SourceOrderModel | undefined; 'statement_descriptor': string; - 'statement_descriptor_suffix': string; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'transfer_data': TransferDataModel; - 'transfer_group': string; + 'status': string; + 'three_d_secure'?: SourceTypeThreeDSecureModel | undefined; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'alipay' | 'au_becs_debit' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; + 'usage': string; + 'wechat'?: SourceTypeWechatModel | undefined; }; -export type ApiErrorsModel = { - 'advice_code'?: string | undefined; - 'charge'?: string | undefined; - 'code'?: 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'acss_debit_session_incomplete' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | undefined; - 'decline_code'?: string | undefined; - 'doc_url'?: string | undefined; - 'message'?: string | undefined; - 'network_advice_code'?: string | undefined; - 'network_decline_code'?: string | undefined; - 'param'?: string | undefined; - 'payment_intent'?: PaymentIntentModel | undefined; - 'payment_method'?: PaymentMethodModel | undefined; - 'payment_method_type'?: string | undefined; - 'request_log_url'?: string | undefined; - 'setup_intent'?: SetupIntentModel | undefined; - 'source'?: PaymentSourceModel | undefined; - 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +export type PaymentSourceModel = AccountModel | BankAccountModel | CardModel | SourceModel; + +export type CouponAppliesToModel = { + 'products': string[]; }; -export type ApplicationFeeModel = { - 'account': string | AccountModel; - 'amount': number; - 'amount_refunded': number; - 'application': string | ApplicationModel; - 'balance_transaction': string | BalanceTransactionModel; - 'charge': string | ChargeModel; +export type CouponCurrencyOptionModel = { + 'amount_off': number; +}; + +export type CouponModel = { + 'amount_off': number; + 'applies_to'?: CouponAppliesToModel | undefined; 'created': number; 'currency': string; - 'fee_source': PlatformEarningFeeSourceModel; + 'currency_options'?: { + [key: string]: CouponCurrencyOptionModel; +} | undefined; + 'duration': 'forever' | 'once' | 'repeating'; + 'duration_in_months': number; 'id': string; 'livemode': boolean; - 'object': 'application_fee'; - 'originating_transaction': string | ChargeModel; - 'refunded': boolean; - 'refunds': { - 'data': FeeRefundModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + 'max_redemptions': number; + 'metadata': { + [key: string]: string; }; + 'name': string; + 'object': 'coupon'; + 'percent_off': number; + 'redeem_by': number; + 'times_redeemed': number; + 'valid': boolean; }; -export type BalanceTransactionSourceModel = ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel; +export type PromotionCodesResourcePromotionModel = { + 'coupon': string | CouponModel; + 'type': 'coupon'; +}; -export type ChargeModel = { - 'amount': number; - 'amount_captured': number; - 'amount_refunded': number; - 'application': string | ApplicationModel; - 'application_fee': string | ApplicationFeeModel; - 'application_fee_amount': number; - 'authorization_code'?: string | undefined; - 'balance_transaction': string | BalanceTransactionModel; - 'billing_details': BillingDetailsModel; - 'calculated_statement_descriptor': string; - 'captured': boolean; +export type PromotionCodeCurrencyOptionModel = { + 'minimum_amount': number; +}; + +export type PromotionCodesResourceRestrictionsModel = { + 'currency_options'?: { + [key: string]: PromotionCodeCurrencyOptionModel; +} | undefined; + 'first_time_transaction': boolean; + 'minimum_amount': number; + 'minimum_amount_currency': string; +}; + +export type PromotionCodeModel = { + 'active': boolean; + 'code': string; 'created': number; - 'currency': string; 'customer': string | CustomerModel | DeletedCustomerModel; - 'description': string; - 'disputed': boolean; - 'failure_balance_transaction': string | BalanceTransactionModel; - 'failure_code': string; - 'failure_message': string; - 'fraud_details': ChargeFraudDetailsModel; + 'expires_at': number; 'id': string; - 'level3'?: Level3Model | undefined; 'livemode': boolean; + 'max_redemptions': number; 'metadata': { [key: string]: string; }; - 'object': 'charge'; - 'on_behalf_of': string | AccountModel; - 'outcome': ChargeOutcomeModel; - 'paid': boolean; - 'payment_intent': string | PaymentIntentModel; - 'payment_method': string; - 'payment_method_details': PaymentMethodDetailsModel; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'receipt_email': string; - 'receipt_number': string; - 'receipt_url': string; - 'refunded': boolean; - 'refunds'?: { - 'data': RefundModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'review': string | ReviewModel; - 'shipping': ShippingModel; - 'source': PaymentSourceModel; - 'source_transfer': string | TransferModel; - 'statement_descriptor': string; - 'statement_descriptor_suffix': string; - 'status': 'failed' | 'pending' | 'succeeded'; - 'transfer'?: string | TransferModel | undefined; - 'transfer_data': ChargeTransferDataModel; - 'transfer_group': string; + 'object': 'promotion_code'; + 'promotion': PromotionCodesResourcePromotionModel; + 'restrictions': PromotionCodesResourceRestrictionsModel; + 'times_redeemed': number; }; -export type ConnectCollectionTransferModel = { - 'amount': number; - 'currency': string; - 'destination': string | AccountModel; - 'id': string; - 'livemode': boolean; - 'object': 'connect_collection_transfer'; +export type DiscountSourceModel = { + 'coupon': string | CouponModel; + 'type': 'coupon'; }; -export type BalanceTransactionModel = { - 'amount': number; - 'available_on': number; - 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; - 'created': number; - 'currency': string; - 'description': string; - 'exchange_rate': number; - 'fee': number; - 'fee_details': FeeModel[]; +export type DiscountModel = { + 'checkout_session': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'end': number; 'id': string; - 'net': number; - 'object': 'balance_transaction'; - 'reporting_category': string; - 'source': string | BalanceTransactionSourceModel; - 'status': string; - 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; + 'invoice': string; + 'invoice_item': string; + 'object': 'discount'; + 'promotion_code': string | PromotionCodeModel; + 'source': DiscountSourceModel; + 'start': number; + 'subscription': string; + 'subscription_item': string; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { - 'balance_transaction': string | BalanceTransactionModel; - 'linked_transaction': string | CustomerCashBalanceTransactionModel; +export type InvoiceSettingCustomFieldModel = { + 'name': string; + 'value': string; }; -export type CustomerCashBalanceTransactionModel = { - 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; - 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel; - 'ending_balance': number; - 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; - 'id': string; - 'livemode': boolean; - 'net_amount': number; - 'object': 'customer_cash_balance_transaction'; - 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; - 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; - 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; - 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; +export type PaymentMethodAcssDebitModel = { + 'bank_name': string; + 'fingerprint': string; + 'institution_number': string; + 'last4': string; + 'transit_number': string; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; +export type PaymentMethodAffirmModel = { + }; -export type RefundModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'charge': string | ChargeModel; - 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'destination_details'?: RefundDestinationDetailsModel | undefined; - 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; - 'failure_reason'?: string | undefined; - 'id': string; - 'instructions_email'?: string | undefined; - 'metadata': { - [key: string]: string; +export type PaymentMethodAfterpayClearpayModel = { + }; - 'next_action'?: RefundNextActionModel | undefined; - 'object': 'refund'; - 'payment_intent': string | PaymentIntentModel; - 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'reason': 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer'; - 'receipt_number': string; - 'source_transfer_reversal': string | TransferReversalModel; - 'status': string; - 'transfer_reversal': string | TransferReversalModel; + +export type PaymentFlowsPrivatePaymentMethodsAlipayModel = { + }; -export type TransferReversalModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; - 'destination_payment_refund': string | RefundModel; - 'id': string; - 'metadata': { - [key: string]: string; +export type PaymentMethodAlmaModel = { + }; - 'object': 'transfer_reversal'; - 'source_refund': string | RefundModel; - 'transfer': string | TransferModel; + +export type PaymentMethodAmazonPayModel = { + }; -export type TransferModel = { - 'amount': number; - 'amount_reversed': number; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; - 'description': string; - 'destination': string | AccountModel; - 'destination_payment'?: string | ChargeModel | undefined; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type PaymentMethodAuBecsDebitModel = { + 'bsb_number': string; + 'fingerprint': string; + 'last4': string; }; - 'object': 'transfer'; - 'reversals': { - 'data': TransferReversalModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + +export type PaymentMethodBacsDebitModel = { + 'fingerprint': string; + 'last4': string; + 'sort_code': string; }; - 'reversed': boolean; - 'source_transaction': string | ChargeModel; - 'source_type'?: string | undefined; - 'transfer_group': string; + +export type PaymentMethodBancontactModel = { + }; -export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { - 'refund': string | RefundModel; +export type PaymentMethodBillieModel = { + }; -export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { - 'balance_transaction': string | BalanceTransactionModel; +export type BillingDetailsModel = { + 'address': AddressModel; + 'email': string; + 'name': string; + 'phone': string; + 'tax_id': string; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; +export type PaymentMethodBlikModel = { + }; -export type DisputeModel = { - 'amount': number; - 'balance_transactions': BalanceTransactionModel[]; - 'charge': string | ChargeModel; - 'created': number; - 'currency': string; - 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; - 'evidence': DisputeEvidenceModel; - 'evidence_details': DisputeEvidenceDetailsModel; - 'id': string; - 'is_charge_refundable': boolean; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type PaymentMethodBoletoModel = { + 'tax_id': string; }; - 'network_reason_code'?: string | undefined; - 'object': 'dispute'; - 'payment_intent': string | PaymentIntentModel; - 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; - 'reason': string; - 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; + +export type PaymentMethodCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; }; -export type FeeRefundModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; - 'fee': string | ApplicationFeeModel; - 'id': string; - 'metadata': { - [key: string]: string; +export type PaymentMethodDetailsCardPresentOfflineModel = { + 'stored_at': number; + 'type': 'deferred'; }; - 'object': 'fee_refund'; + +export type PaymentMethodDetailsCardPresentReceiptModel = { + 'account_type'?: 'checking' | 'credit' | 'prepaid' | 'unknown' | undefined; + 'application_cryptogram': string; + 'application_preferred_name': string; + 'authorization_code': string; + 'authorization_response_code': string; + 'cardholder_verification_method': string; + 'dedicated_file_name': string; + 'terminal_verification_results': string; + 'transaction_status_information': string; }; -export type IssuingAuthorizationModel = { - 'amount': number; - 'amount_details': IssuingAuthorizationAmountDetailsModel; - 'approved': boolean; - 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; - 'balance_transactions': BalanceTransactionModel[]; - 'card': IssuingCardModel; - 'cardholder': string | IssuingCardholderModel; - 'created': number; - 'currency': string; - 'fleet': IssuingAuthorizationFleetDataModel; - 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; - 'fuel': IssuingAuthorizationFuelDataModel; - 'id': string; - 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; - 'metadata': { - [key: string]: string; +export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = { + 'type': 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown'; +}; + +export type PaymentMethodDetailsCardPresentModel = { + 'amount_authorized': number; + 'brand': string; + 'brand_product': string; + 'capture_before'?: number | undefined; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'emv_auth_data': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'generated_card': string; + 'iin'?: string | undefined; + 'incremental_authorization_supported': boolean; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'network_transaction_id': string; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; + 'overcapture_supported': boolean; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'receipt': PaymentMethodDetailsCardPresentReceiptModel; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type CardGeneratedFromPaymentMethodDetailsModel = { + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'type': string; +}; + +export type ApplicationModel = { + 'id': string; + 'name': string; + 'object': 'application'; +}; + +export type SetupAttemptPaymentMethodDetailsAcssDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAmazonPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsBacsDebitModel = { + +}; + +export type OfflineAcceptanceModel = { + +}; + +export type OnlineAcceptanceModel = { + 'ip_address': string; + 'user_agent': string; +}; + +export type CustomerAcceptanceModel = { + 'accepted_at': number; + 'offline'?: OfflineAcceptanceModel | undefined; + 'online'?: OnlineAcceptanceModel | undefined; + 'type': 'offline' | 'online'; +}; + +export type MandateMultiUseModel = { + +}; + +export type MandateAcssDebitModel = { + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type MandateAmazonPayModel = { + +}; + +export type MandateAuBecsDebitModel = { + 'url': string; +}; + +export type MandateBacsDebitModel = { + 'network_status': 'accepted' | 'pending' | 'refused' | 'revoked'; + 'reference': string; + 'revocation_reason': 'account_closed' | 'bank_account_restricted' | 'bank_ownership_changed' | 'could_not_process' | 'debit_not_authorized'; + 'url': string; +}; + +export type CardMandatePaymentMethodDetailsModel = { + +}; + +export type MandateCashappModel = { + +}; + +export type MandateKakaoPayModel = { + +}; + +export type MandateKlarnaModel = { + +}; + +export type MandateKrCardModel = { + +}; + +export type MandateLinkModel = { + +}; + +export type MandateNaverPayModel = { + +}; + +export type MandateNzBankAccountModel = { + +}; + +export type MandatePaypalModel = { + 'billing_agreement_id': string; + 'payer_id': string; +}; + +export type MandateRevolutPayModel = { + +}; + +export type MandateSepaDebitModel = { + 'reference': string; + 'url': string; +}; + +export type MandateUsBankAccountModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type MandatePaymentMethodDetailsModel = { + 'acss_debit'?: MandateAcssDebitModel | undefined; + 'amazon_pay'?: MandateAmazonPayModel | undefined; + 'au_becs_debit'?: MandateAuBecsDebitModel | undefined; + 'bacs_debit'?: MandateBacsDebitModel | undefined; + 'card'?: CardMandatePaymentMethodDetailsModel | undefined; + 'cashapp'?: MandateCashappModel | undefined; + 'kakao_pay'?: MandateKakaoPayModel | undefined; + 'klarna'?: MandateKlarnaModel | undefined; + 'kr_card'?: MandateKrCardModel | undefined; + 'link'?: MandateLinkModel | undefined; + 'naver_pay'?: MandateNaverPayModel | undefined; + 'nz_bank_account'?: MandateNzBankAccountModel | undefined; + 'paypal'?: MandatePaypalModel | undefined; + 'revolut_pay'?: MandateRevolutPayModel | undefined; + 'sepa_debit'?: MandateSepaDebitModel | undefined; + 'type': string; + 'us_bank_account'?: MandateUsBankAccountModel | undefined; +}; + +export type MandateSingleUseModel = { + 'amount': number; + 'currency': string; +}; + +export type MandateModel = { + 'customer_acceptance': CustomerAcceptanceModel; + 'id': string; + 'livemode': boolean; + 'multi_use'?: MandateMultiUseModel | undefined; + 'object': 'mandate'; + 'on_behalf_of'?: string | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': MandatePaymentMethodDetailsModel; + 'single_use'?: MandateSingleUseModel | undefined; + 'status': 'active' | 'inactive' | 'pending'; + 'type': 'multi_use' | 'single_use'; +}; + +export type SetupAttemptPaymentMethodDetailsBancontactModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsBoletoModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; +}; + +export type ThreeDSecureDetailsModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'electronic_commerce_indicator': '01' | '02' | '05' | '06' | '07'; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'transaction_id': string; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentMethodDetailsCardWalletApplePayModel = { + +}; + +export type PaymentMethodDetailsCardWalletGooglePayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardWalletModel = { + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'type': 'apple_pay' | 'google_pay' | 'link'; +}; + +export type SetupAttemptPaymentMethodDetailsCardModel = { + 'brand': string; + 'checks': SetupAttemptPaymentMethodDetailsCardChecksModel; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'three_d_secure': ThreeDSecureDetailsModel; + 'wallet': SetupAttemptPaymentMethodDetailsCardWalletModel; +}; + +export type SetupAttemptPaymentMethodDetailsCardPresentModel = { + 'generated_card': string | PaymentMethodModel; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; +}; + +export type SetupAttemptPaymentMethodDetailsCashappModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsKakaoPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKlarnaModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKrCardModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsLinkModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsNaverPayModel = { + 'buyer_id'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsPaypalModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsRevolutPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSepaDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSofortModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsModel = { + 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; + 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; + 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; + 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; + 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; + 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; + 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; + 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; + 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; + 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; + 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; + 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; + 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; + 'type': string; + 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'image_url': string; + 'product_url': string; + 'reference': string; + 'subscription_reference': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = { + 'category'?: 'digital_goods' | 'donation' | 'physical_goods' | undefined; + 'description'?: string | undefined; + 'sold_by'?: string | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = { + 'card'?: PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'card_present'?: PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'klarna'?: PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'paypal'?: PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = { + 'total_tax_amount': number; +}; + +export type PaymentIntentAmountDetailsLineItemModel = { + 'discount_amount': number; + 'id': string; + 'object': 'payment_intent_amount_details_line_item'; + 'payment_method_options': PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel; + 'product_code': string; + 'product_name': string; + 'quantity': number; + 'tax': PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel; + 'unit_cost': number; + 'unit_of_measure': string; +}; + +export type PaymentFlowsAmountDetailsResourceShippingModel = { + 'amount': number; + 'from_postal_code': string; + 'to_postal_code': string; +}; + +export type PaymentFlowsAmountDetailsResourceTaxModel = { + 'total_tax_amount': number; +}; + +export type PaymentFlowsAmountDetailsClientResourceTipModel = { + 'amount'?: number | undefined; +}; + +export type PaymentFlowsAmountDetailsModel = { + 'discount_amount'?: number | undefined; + 'line_items'?: { + 'data': PaymentIntentAmountDetailsLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'shipping'?: PaymentFlowsAmountDetailsResourceShippingModel | undefined; + 'tax'?: PaymentFlowsAmountDetailsResourceTaxModel | undefined; + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled': boolean; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = { + 'calculation': string; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = { + 'tax'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel | undefined; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = { + 'inputs'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel | undefined; +}; + +export type FeeModel = { + 'amount': number; + 'application': string; + 'currency': string; + 'description': string; + 'type': string; +}; + +export type ConnectCollectionTransferModel = { + 'amount': number; + 'currency': string; + 'destination': string | AccountModel; + 'id': string; + 'livemode': boolean; + 'object': 'connect_collection_transfer'; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { + 'balance_transaction': string | BalanceTransactionModel; + 'linked_transaction': string | CustomerCashBalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = { + 'bic': string; + 'iban_last4': string; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = { + 'account_number_last4': string; + 'sender_name': string; + 'sort_code': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = { + 'sender_bank': string; + 'sender_branch': string; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = { + 'network'?: 'ach' | 'domestic_wire_us' | 'swift' | undefined; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = { + 'eu_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel | undefined; + 'gb_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel | undefined; + 'jp_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel | undefined; + 'reference': string; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; + 'us_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = { + 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel; +}; + +export type DestinationDetailsUnimplementedModel = { + +}; + +export type RefundDestinationDetailsBlikModel = { + 'network_decline_code': string; + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsBrBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsCardModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; + 'reference_type'?: string | undefined; + 'type': 'pending' | 'refund' | 'reversal'; +}; + +export type RefundDestinationDetailsCryptoModel = { + 'reference': string; +}; + +export type RefundDestinationDetailsEuBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsGbBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsJpBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMbWayModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMultibancoModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMxBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsP24Model = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsPaypalModel = { + 'network_decline_code': string; +}; + +export type RefundDestinationDetailsSwishModel = { + 'network_decline_code': string; + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsThBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsUsBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsModel = { + 'affirm'?: DestinationDetailsUnimplementedModel | undefined; + 'afterpay_clearpay'?: DestinationDetailsUnimplementedModel | undefined; + 'alipay'?: DestinationDetailsUnimplementedModel | undefined; + 'alma'?: DestinationDetailsUnimplementedModel | undefined; + 'amazon_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'au_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'blik'?: RefundDestinationDetailsBlikModel | undefined; + 'br_bank_transfer'?: RefundDestinationDetailsBrBankTransferModel | undefined; + 'card'?: RefundDestinationDetailsCardModel | undefined; + 'cashapp'?: DestinationDetailsUnimplementedModel | undefined; + 'crypto'?: RefundDestinationDetailsCryptoModel | undefined; + 'customer_cash_balance'?: DestinationDetailsUnimplementedModel | undefined; + 'eps'?: DestinationDetailsUnimplementedModel | undefined; + 'eu_bank_transfer'?: RefundDestinationDetailsEuBankTransferModel | undefined; + 'gb_bank_transfer'?: RefundDestinationDetailsGbBankTransferModel | undefined; + 'giropay'?: DestinationDetailsUnimplementedModel | undefined; + 'grabpay'?: DestinationDetailsUnimplementedModel | undefined; + 'jp_bank_transfer'?: RefundDestinationDetailsJpBankTransferModel | undefined; + 'klarna'?: DestinationDetailsUnimplementedModel | undefined; + 'mb_way'?: RefundDestinationDetailsMbWayModel | undefined; + 'multibanco'?: RefundDestinationDetailsMultibancoModel | undefined; + 'mx_bank_transfer'?: RefundDestinationDetailsMxBankTransferModel | undefined; + 'nz_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'p24'?: RefundDestinationDetailsP24Model | undefined; + 'paynow'?: DestinationDetailsUnimplementedModel | undefined; + 'paypal'?: RefundDestinationDetailsPaypalModel | undefined; + 'pix'?: DestinationDetailsUnimplementedModel | undefined; + 'revolut'?: DestinationDetailsUnimplementedModel | undefined; + 'sofort'?: DestinationDetailsUnimplementedModel | undefined; + 'swish'?: RefundDestinationDetailsSwishModel | undefined; + 'th_bank_transfer'?: RefundDestinationDetailsThBankTransferModel | undefined; + 'twint'?: DestinationDetailsUnimplementedModel | undefined; + 'type': string; + 'us_bank_transfer'?: RefundDestinationDetailsUsBankTransferModel | undefined; + 'wechat_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'zip'?: DestinationDetailsUnimplementedModel | undefined; +}; + +export type EmailSentModel = { + 'email_sent_at': number; + 'email_sent_to': string; +}; + +export type RefundNextActionDisplayDetailsModel = { + 'email_sent': EmailSentModel; + 'expires_at': number; +}; + +export type RefundNextActionModel = { + 'display_details'?: RefundNextActionDisplayDetailsModel | undefined; + 'type': string; +}; + +export type PaymentFlowsPaymentIntentPresentmentDetailsModel = { + 'presentment_amount': number; + 'presentment_currency': string; +}; + +export type TransferModel = { + 'amount': number; + 'amount_reversed': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'destination': string | AccountModel; + 'destination_payment'?: string | ChargeModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'transfer'; + 'reversals': { + 'data': TransferReversalModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'reversed': boolean; + 'source_transaction': string | ChargeModel; + 'source_type'?: string | undefined; + 'transfer_group': string; +}; + +export type TransferReversalModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'destination_payment_refund': string | RefundModel; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'transfer_reversal'; + 'source_refund': string | RefundModel; + 'transfer': string | TransferModel; +}; + +export type RefundModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'destination_details'?: RefundDestinationDetailsModel | undefined; + 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; + 'failure_reason'?: string | undefined; + 'id': string; + 'instructions_email'?: string | undefined; + 'metadata': { + [key: string]: string; +}; + 'next_action'?: RefundNextActionModel | undefined; + 'object': 'refund'; + 'payment_intent': string | PaymentIntentModel; + 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'reason': 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer'; + 'receipt_number': string; + 'source_transfer_reversal': string | TransferReversalModel; + 'status': string; + 'transfer_reversal': string | TransferReversalModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { + 'refund': string | RefundModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { + 'balance_transaction': string | BalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerCashBalanceTransactionModel = { + 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; + 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel; + 'ending_balance': number; + 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; + 'id': string; + 'livemode': boolean; + 'net_amount': number; + 'object': 'customer_cash_balance_transaction'; + 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; + 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; + 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; + 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; +}; + +export type DisputeTransactionShippingAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type DisputeVisaCompellingEvidence3DisputedTransactionModel = { + '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': DisputeTransactionShippingAddressModel; +}; + +export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = { + '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': DisputeTransactionShippingAddressModel; +}; + +export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = { + 'disputed_transaction': DisputeVisaCompellingEvidence3DisputedTransactionModel; + 'prior_undisputed_transactions': DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel[]; +}; + +export type DisputeEnhancedEvidenceVisaComplianceModel = { + 'fee_acknowledged': boolean; +}; + +export type DisputeEnhancedEvidenceModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEvidenceVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEvidenceVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceModel = { + 'access_activity_log': string; + 'billing_address': string; + 'cancellation_policy': string | FileModel; + 'cancellation_policy_disclosure': string; + 'cancellation_rebuttal': string; + 'customer_communication': string | FileModel; + 'customer_email_address': string; + 'customer_name': string; + 'customer_purchase_ip': string; + 'customer_signature': string | FileModel; + 'duplicate_charge_documentation': string | FileModel; + 'duplicate_charge_explanation': string; + 'duplicate_charge_id': string; + 'enhanced_evidence': DisputeEnhancedEvidenceModel; + 'product_description': string; + 'receipt': string | FileModel; + 'refund_policy': string | FileModel; + 'refund_policy_disclosure': string; + 'refund_refusal_explanation': string; + 'service_date': string; + 'service_documentation': string | FileModel; + 'shipping_address': string; + 'shipping_carrier': string; + 'shipping_date': string; + 'shipping_documentation': string | FileModel; + 'shipping_tracking_number': string; + 'uncategorized_file': string | FileModel; + 'uncategorized_text': string; +}; + +export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = { + 'required_actions': Array<'missing_customer_identifiers' | 'missing_disputed_transaction_description' | 'missing_merchandise_or_services' | 'missing_prior_undisputed_transaction_description' | 'missing_prior_undisputed_transactions'>; + 'status': 'not_qualified' | 'qualified' | 'requires_action'; +}; + +export type DisputeEnhancedEligibilityVisaComplianceModel = { + 'status': 'fee_acknowledged' | 'requires_fee_acknowledgement'; +}; + +export type DisputeEnhancedEligibilityModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEligibilityVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEligibilityVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceDetailsModel = { + 'due_by': number; + 'enhanced_eligibility': DisputeEnhancedEligibilityModel; + 'has_evidence': boolean; + 'past_due': boolean; + 'submission_count': number; +}; + +export type DisputePaymentMethodDetailsAmazonPayModel = { + 'dispute_type': 'chargeback' | 'claim'; +}; + +export type DisputePaymentMethodDetailsCardModel = { + 'brand': string; + 'case_type': 'block' | 'chargeback' | 'compliance' | 'inquiry' | 'resolution'; + 'network_reason_code': string; +}; + +export type DisputePaymentMethodDetailsKlarnaModel = { + 'chargeback_loss_reason_code'?: string | undefined; + 'reason_code': string; +}; + +export type DisputePaymentMethodDetailsPaypalModel = { + 'case_id': string; + 'reason_code': string; +}; + +export type DisputePaymentMethodDetailsModel = { + 'amazon_pay'?: DisputePaymentMethodDetailsAmazonPayModel | undefined; + 'card'?: DisputePaymentMethodDetailsCardModel | undefined; + 'klarna'?: DisputePaymentMethodDetailsKlarnaModel | undefined; + 'paypal'?: DisputePaymentMethodDetailsPaypalModel | undefined; + 'type': 'amazon_pay' | 'card' | 'klarna' | 'paypal'; +}; + +export type DisputeModel = { + 'amount': number; + 'balance_transactions': BalanceTransactionModel[]; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; + 'evidence': DisputeEvidenceModel; + 'evidence_details': DisputeEvidenceDetailsModel; + 'id': string; + 'is_charge_refundable': boolean; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'network_reason_code'?: string | undefined; + 'object': 'dispute'; + 'payment_intent': string | PaymentIntentModel; + 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; + 'reason': string; + 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; +}; + +export type FeeRefundModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'fee': string | ApplicationFeeModel; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'fee_refund'; +}; + +export type IssuingAuthorizationAmountDetailsModel = { + 'atm_fee': number; + 'cashback_amount': number; +}; + +export type IssuingCardholderAddressModel = { + 'address': AddressModel; +}; + +export type IssuingCardholderCompanyModel = { + 'tax_id_provided': boolean; +}; + +export type IssuingCardholderUserTermsAcceptanceModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type IssuingCardholderCardIssuingModel = { + 'user_terms_acceptance': IssuingCardholderUserTermsAcceptanceModel; +}; + +export type IssuingCardholderIndividualDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type IssuingCardholderIdDocumentModel = { + 'back': string | FileModel; + 'front': string | FileModel; +}; + +export type IssuingCardholderVerificationModel = { + 'document': IssuingCardholderIdDocumentModel; +}; + +export type IssuingCardholderIndividualModel = { + 'card_issuing'?: IssuingCardholderCardIssuingModel | undefined; + 'dob': IssuingCardholderIndividualDobModel; + 'first_name': string; + 'last_name': string; + 'verification': IssuingCardholderVerificationModel; +}; + +export type IssuingCardholderRequirementsModel = { + 'disabled_reason': 'listed' | 'rejected.listed' | 'requirements.past_due' | 'under_review'; + 'past_due': Array<'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'>; +}; + +export type IssuingCardholderSpendingLimitModel = { + 'amount': number; + 'categories': Array<'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'; +}; + +export type IssuingCardholderAuthorizationControlsModel = { + 'allowed_categories': Array<'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': Array<'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': IssuingCardholderSpendingLimitModel[]; + 'spending_limits_currency': string; +}; + +export type IssuingCardholderModel = { + 'billing': IssuingCardholderAddressModel; + 'company': IssuingCardholderCompanyModel; + 'created': number; + 'email': string; + 'id': string; + 'individual': IssuingCardholderIndividualModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'issuing.cardholder'; + 'phone_number': string; + 'preferred_locales': Array<'de' | 'en' | 'es' | 'fr' | 'it'>; + 'requirements': IssuingCardholderRequirementsModel; + 'spending_controls': IssuingCardholderAuthorizationControlsModel; + 'status': 'active' | 'blocked' | 'inactive'; + 'type': 'company' | 'individual'; +}; + +export type IssuingCardFraudWarningModel = { + 'started_at': number; + 'type': 'card_testing_exposure' | 'fraud_dispute_filed' | 'third_party_reported' | 'user_indicated_fraud'; +}; + +export type IssuingPersonalizationDesignCarrierTextModel = { + 'footer_body': string; + 'footer_title': string; + 'header_body': string; + 'header_title': string; +}; + +export type IssuingPhysicalBundleFeaturesModel = { + 'card_logo': 'optional' | 'required' | 'unsupported'; + 'carrier_text': 'optional' | 'required' | 'unsupported'; + 'second_line': 'optional' | 'required' | 'unsupported'; +}; + +export type IssuingPhysicalBundleModel = { + 'features': IssuingPhysicalBundleFeaturesModel; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'issuing.physical_bundle'; + 'status': 'active' | 'inactive' | 'review'; + 'type': 'custom' | 'standard'; +}; + +export type IssuingPersonalizationDesignPreferencesModel = { + 'is_default': boolean; + 'is_platform_default': boolean; +}; + +export type IssuingPersonalizationDesignRejectionReasonsModel = { + 'card_logo': Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_binary_image' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'>; + 'carrier_text': Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'>; +}; + +export type IssuingPersonalizationDesignModel = { + 'card_logo': string | FileModel; + 'carrier_text': IssuingPersonalizationDesignCarrierTextModel; + 'created': number; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'issuing.personalization_design'; + 'physical_bundle': string | IssuingPhysicalBundleModel; + 'preferences': IssuingPersonalizationDesignPreferencesModel; + 'rejection_reasons': IssuingPersonalizationDesignRejectionReasonsModel; + 'status': 'active' | 'inactive' | 'rejected' | 'review'; +}; + +export type IssuingCardShippingAddressValidationModel = { + 'mode': 'disabled' | 'normalization_only' | 'validation_and_normalization'; + 'normalized_address': AddressModel; + 'result': 'indeterminate' | 'likely_deliverable' | 'likely_undeliverable'; +}; + +export type IssuingCardShippingCustomsModel = { + 'eori_number': string; +}; + +export type IssuingCardShippingModel = { + 'address': AddressModel; + 'address_validation': IssuingCardShippingAddressValidationModel; + 'carrier': 'dhl' | 'fedex' | 'royal_mail' | 'usps'; + 'customs': IssuingCardShippingCustomsModel; + 'eta': number; + 'name': string; + 'phone_number': string; + 'require_signature': boolean; + 'service': 'express' | 'priority' | 'standard'; + 'status': 'canceled' | 'delivered' | 'failure' | 'pending' | 'returned' | 'shipped' | 'submitted'; + 'tracking_number': string; + 'tracking_url': string; + 'type': 'bulk' | 'individual'; +}; + +export type IssuingCardSpendingLimitModel = { + 'amount': number; + 'categories': Array<'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'; +}; + +export type IssuingCardAuthorizationControlsModel = { + 'allowed_categories': Array<'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': Array<'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': IssuingCardSpendingLimitModel[]; + 'spending_limits_currency': string; +}; + +export type IssuingCardApplePayModel = { + 'eligible': boolean; + 'ineligible_reason': 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region'; +}; + +export type IssuingCardGooglePayModel = { + 'eligible': boolean; + 'ineligible_reason': 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region'; +}; + +export type IssuingCardWalletsModel = { + 'apple_pay': IssuingCardApplePayModel; + 'google_pay': IssuingCardGooglePayModel; + 'primary_account_identifier': string; +}; + +export type IssuingCardModel = { + 'brand': string; + 'cancellation_reason': 'design_rejected' | 'lost' | 'stolen'; + 'cardholder': IssuingCardholderModel; + 'created': number; + 'currency': string; + 'cvc'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'financial_account'?: string | undefined; + 'id': string; + 'last4': string; + 'latest_fraud_warning': IssuingCardFraudWarningModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'number'?: string | undefined; + 'object': 'issuing.card'; + 'personalization_design': string | IssuingPersonalizationDesignModel; + 'replaced_by': string | IssuingCardModel; + 'replacement_for': string | IssuingCardModel; + 'replacement_reason': 'damaged' | 'expired' | 'lost' | 'stolen'; + 'second_line': string; + 'shipping': IssuingCardShippingModel; + 'spending_controls': IssuingCardAuthorizationControlsModel; + 'status': 'active' | 'canceled' | 'inactive'; + 'type': 'physical' | 'virtual'; + 'wallets': IssuingCardWalletsModel; +}; + +export type IssuingAuthorizationFleetCardholderPromptDataModel = { + 'alphanumeric_id': string; + 'driver_id': string; + 'odometer': number; + 'unspecified_id': string; + 'user_id': string; + 'vehicle_number': string; +}; + +export type IssuingAuthorizationFleetFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetNonFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetTaxDataModel = { + 'local_amount_decimal': string; + 'national_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetReportedBreakdownModel = { + 'fuel': IssuingAuthorizationFleetFuelPriceDataModel; + 'non_fuel': IssuingAuthorizationFleetNonFuelPriceDataModel; + 'tax': IssuingAuthorizationFleetTaxDataModel; +}; + +export type IssuingAuthorizationFleetDataModel = { + 'cardholder_prompt_data': IssuingAuthorizationFleetCardholderPromptDataModel; + 'purchase_type': 'fuel_and_non_fuel_purchase' | 'fuel_purchase' | 'non_fuel_purchase'; + 'reported_breakdown': IssuingAuthorizationFleetReportedBreakdownModel; + 'service_type': 'full_service' | 'non_fuel_transaction' | 'self_service'; +}; + +export type IssuingAuthorizationFraudChallengeModel = { + 'channel': 'sms'; + 'status': 'expired' | 'pending' | 'rejected' | 'undeliverable' | 'verified'; + 'undeliverable_reason': 'no_phone_number' | 'unsupported_phone_number'; +}; + +export type IssuingAuthorizationFuelDataModel = { + '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; +}; + +export type IssuingAuthorizationMerchantDataModel = { + 'category': string; + 'category_code': string; + 'city': string; + 'country': string; + 'name': string; + 'network_id': string; + 'postal_code': string; + 'state': string; + 'tax_id': string; + 'terminal_id': string; + 'url': string; +}; + +export type IssuingAuthorizationNetworkDataModel = { + 'acquiring_institution_id': string; + 'system_trace_audit_number': string; + 'transaction_id': string; +}; + +export type IssuingAuthorizationPendingRequestModel = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'currency': string; + 'is_amount_controllable': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score': number; +}; + +export type IssuingAuthorizationRequest_1Model = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'approved': boolean; + 'authorization_code': string; + 'created': number; + 'currency': string; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score': number; + 'reason': 'account_disabled' | 'card_active' | 'card_canceled' | 'card_expired' | 'card_inactive' | 'cardholder_blocked' | 'cardholder_inactive' | 'cardholder_verification_required' | 'insecure_authorization_method' | 'insufficient_funds' | 'network_fallback' | 'not_allowed' | 'pin_blocked' | 'spending_controls' | 'suspected_fraud' | 'verification_failed' | 'webhook_approved' | 'webhook_declined' | 'webhook_error' | 'webhook_timeout'; + 'reason_message': string; + 'requested_at': number; +}; + +export type IssuingNetworkTokenDeviceModel = { + '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 IssuingNetworkTokenMastercardModel = { + 'card_reference_id'?: string | undefined; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_requestor_name'?: string | undefined; +}; + +export type IssuingNetworkTokenVisaModel = { + 'card_reference_id': string; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_risk_score'?: string | undefined; +}; + +export type IssuingNetworkTokenAddressModel = { + 'line1': string; + 'postal_code': string; +}; + +export type IssuingNetworkTokenWalletProviderModel = { + 'account_id'?: string | undefined; + 'account_trust_score'?: number | undefined; + 'card_number_source'?: 'app' | 'manual' | 'on_file' | 'other' | undefined; + 'cardholder_address'?: IssuingNetworkTokenAddressModel | undefined; + 'cardholder_name'?: string | undefined; + 'device_trust_score'?: number | undefined; + 'hashed_account_email_address'?: string | undefined; + 'reason_codes'?: Array<'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 IssuingNetworkTokenNetworkDataModel = { + 'device'?: IssuingNetworkTokenDeviceModel | undefined; + 'mastercard'?: IssuingNetworkTokenMastercardModel | undefined; + 'type': 'mastercard' | 'visa'; + 'visa'?: IssuingNetworkTokenVisaModel | undefined; + 'wallet_provider'?: IssuingNetworkTokenWalletProviderModel | undefined; +}; + +export type IssuingTokenModel = { + 'card': string | IssuingCardModel; + 'created': number; + 'device_fingerprint': string; + 'id': string; + 'last4'?: string | undefined; + 'livemode': boolean; + 'network': 'mastercard' | 'visa'; + 'network_data'?: IssuingNetworkTokenNetworkDataModel | undefined; + 'network_updated_at': number; + 'object': 'issuing.token'; + 'status': 'active' | 'deleted' | 'requested' | 'suspended'; + 'wallet_provider'?: 'apple_pay' | 'google_pay' | 'samsung_pay' | undefined; +}; + +export type IssuingTransactionAmountDetailsModel = { + 'atm_fee': number; + 'cashback_amount': number; +}; + +export type IssuingDisputeCanceledEvidenceModel = { + 'additional_documentation': string | FileModel; + '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; +}; + +export type IssuingDisputeDuplicateEvidenceModel = { + 'additional_documentation': string | FileModel; + 'card_statement': string | FileModel; + 'cash_receipt': string | FileModel; + 'check_image': string | FileModel; + 'explanation': string; + 'original_transaction': string; +}; + +export type IssuingDisputeFraudulentEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; +}; + +export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; + 'received_at': number; + 'return_description': string; + 'return_status': 'merchant_rejected' | 'successful'; + 'returned_at': number; +}; + +export type IssuingDisputeNoValidAuthorizationEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; +}; + +export type IssuingDisputeNotReceivedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'expected_at': number; + 'explanation': string; + 'product_description': string; + 'product_type': 'merchandise' | 'service'; +}; + +export type IssuingDisputeOtherEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; + 'product_description': string; + 'product_type': 'merchandise' | 'service'; +}; + +export type IssuingDisputeServiceNotAsDescribedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'canceled_at': number; + 'cancellation_reason': string; + 'explanation': string; + 'received_at': number; +}; + +export type IssuingDisputeEvidenceModel = { + 'canceled'?: IssuingDisputeCanceledEvidenceModel | undefined; + 'duplicate'?: IssuingDisputeDuplicateEvidenceModel | undefined; + 'fraudulent'?: IssuingDisputeFraudulentEvidenceModel | undefined; + 'merchandise_not_as_described'?: IssuingDisputeMerchandiseNotAsDescribedEvidenceModel | undefined; + 'no_valid_authorization'?: IssuingDisputeNoValidAuthorizationEvidenceModel | undefined; + 'not_received'?: IssuingDisputeNotReceivedEvidenceModel | undefined; + 'other'?: IssuingDisputeOtherEvidenceModel | undefined; + 'reason': 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described'; + 'service_not_as_described'?: IssuingDisputeServiceNotAsDescribedEvidenceModel | undefined; +}; + +export type IssuingDisputeTreasuryModel = { + 'debit_reversal': string; + 'received_debit': string; +}; + +export type IssuingDisputeModel = { + 'amount': number; + 'balance_transactions'?: BalanceTransactionModel[] | undefined; + 'created': number; + 'currency': string; + 'evidence': IssuingDisputeEvidenceModel; + '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' | undefined; + 'metadata': { + [key: string]: string; +}; + 'object': 'issuing.dispute'; + 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; + 'transaction': string | IssuingTransactionModel; + 'treasury'?: IssuingDisputeTreasuryModel | undefined; +}; + +export type IssuingTransactionNetworkDataModel = { + 'authorization_code': string; + 'processing_date': string; + 'transaction_id': string; +}; + +export type IssuingTransactionFleetCardholderPromptDataModel = { + 'driver_id': string; + 'odometer': number; + 'unspecified_id': string; + 'user_id': string; + 'vehicle_number': string; +}; + +export type IssuingTransactionFleetFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingTransactionFleetNonFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingTransactionFleetTaxDataModel = { + 'local_amount_decimal': string; + 'national_amount_decimal': string; +}; + +export type IssuingTransactionFleetReportedBreakdownModel = { + 'fuel': IssuingTransactionFleetFuelPriceDataModel; + 'non_fuel': IssuingTransactionFleetNonFuelPriceDataModel; + 'tax': IssuingTransactionFleetTaxDataModel; +}; + +export type IssuingTransactionFleetDataModel = { + 'cardholder_prompt_data': IssuingTransactionFleetCardholderPromptDataModel; + 'purchase_type': string; + 'reported_breakdown': IssuingTransactionFleetReportedBreakdownModel; + 'service_type': string; +}; + +export type IssuingTransactionFlightDataLegModel = { + 'arrival_airport_code': string; + 'carrier': string; + 'departure_airport_code': string; + 'flight_number': string; + 'service_class': string; + 'stopover_allowed': boolean; +}; + +export type IssuingTransactionFlightDataModel = { + 'departure_at': number; + 'passenger_name': string; + 'refundable': boolean; + 'segments': IssuingTransactionFlightDataLegModel[]; + 'travel_agency': string; +}; + +export type IssuingTransactionFuelDataModel = { + 'industry_product_code': string; + 'quantity_decimal': string; + 'type': string; + 'unit': string; + 'unit_cost_decimal': string; +}; + +export type IssuingTransactionLodgingDataModel = { + 'check_in_at': number; + 'nights': number; +}; + +export type IssuingTransactionReceiptDataModel = { + 'description': string; + 'quantity': number; + 'total': number; + 'unit_cost': number; +}; + +export type IssuingTransactionPurchaseDetailsModel = { + 'fleet': IssuingTransactionFleetDataModel; + 'flight': IssuingTransactionFlightDataModel; + 'fuel': IssuingTransactionFuelDataModel; + 'lodging': IssuingTransactionLodgingDataModel; + 'receipt': IssuingTransactionReceiptDataModel[]; + 'reference': string; +}; + +export type IssuingTransactionTreasuryModel = { + 'received_credit': string; + 'received_debit': string; +}; + +export type IssuingTransactionModel = { + 'amount': number; + 'amount_details': IssuingTransactionAmountDetailsModel; + 'authorization': string | IssuingAuthorizationModel; + 'balance_transaction': string | BalanceTransactionModel; + 'card': string | IssuingCardModel; + 'cardholder': string | IssuingCardholderModel; + 'created': number; + 'currency': string; + 'dispute': string | IssuingDisputeModel; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; +}; + 'network_data': IssuingTransactionNetworkDataModel; + 'object': 'issuing.transaction'; + 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; + 'token'?: string | IssuingTokenModel | undefined; + 'treasury'?: IssuingTransactionTreasuryModel | undefined; + 'type': 'capture' | 'refund'; + 'wallet': 'apple_pay' | 'google_pay' | 'samsung_pay'; +}; + +export type IssuingAuthorizationTreasuryModel = { + 'received_credits': string[]; + 'received_debits': string[]; + 'transaction': string; +}; + +export type IssuingAuthorizationAuthenticationExemptionModel = { + 'claimed_by': 'acquirer' | 'issuer'; + 'type': 'low_value_transaction' | 'transaction_risk_analysis' | 'unknown'; +}; + +export type IssuingAuthorizationThreeDSecureModel = { + 'result': 'attempt_acknowledged' | 'authenticated' | 'failed' | 'required'; +}; + +export type IssuingAuthorizationVerificationDataModel = { + 'address_line1_check': 'match' | 'mismatch' | 'not_provided'; + 'address_postal_code_check': 'match' | 'mismatch' | 'not_provided'; + 'authentication_exemption': IssuingAuthorizationAuthenticationExemptionModel; + 'cvc_check': 'match' | 'mismatch' | 'not_provided'; + 'expiry_check': 'match' | 'mismatch' | 'not_provided'; + 'postal_code': string; + 'three_d_secure': IssuingAuthorizationThreeDSecureModel; +}; + +export type IssuingAuthorizationModel = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'approved': boolean; + 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; + 'balance_transactions': BalanceTransactionModel[]; + 'card': IssuingCardModel; + 'cardholder': string | IssuingCardholderModel; + 'created': number; + 'currency': string; + 'fleet': IssuingAuthorizationFleetDataModel; + 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; + 'fuel': IssuingAuthorizationFuelDataModel; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; }; 'network_data': IssuingAuthorizationNetworkDataModel; 'object': 'issuing.authorization'; @@ -770,928 +2369,8670 @@ export type IssuingAuthorizationModel = { 'wallet': string; }; -export type IssuingCardModel = { - 'brand': string; - 'cancellation_reason': 'design_rejected' | 'lost' | 'stolen'; - 'cardholder': IssuingCardholderModel; +export type DeletedBankAccountModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'bank_account'; +}; + +export type DeletedCardModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'card'; +}; + +export type DeletedExternalAccountModel = DeletedBankAccountModel | DeletedCardModel; + +export type PayoutsTraceIdModel = { + 'status': string; + 'value': string; +}; + +export type PayoutModel = { + 'amount': number; + 'application_fee': string | ApplicationFeeModel; + 'application_fee_amount': number; + 'arrival_date': number; + 'automatic': boolean; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'destination': string | ExternalAccountModel | DeletedExternalAccountModel; + 'failure_balance_transaction': string | BalanceTransactionModel; + 'failure_code': string; + 'failure_message': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'method': string; + 'object': 'payout'; + 'original_payout': string | PayoutModel; + 'payout_method': string; + 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; + 'reversed_by': string | PayoutModel; + 'source_type': string; + 'statement_descriptor': string; + 'status': string; + 'trace_id': PayoutsTraceIdModel; + 'type': 'bank_account' | 'card'; +}; + +export type ReserveTransactionModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'id': string; + 'object': 'reserve_transaction'; +}; + +export type TaxDeductedAtSourceModel = { + 'id': string; + 'object': 'tax_deducted_at_source'; + 'period_end': number; + 'period_start': number; + 'tax_deduction_account_number': string; +}; + +export type TopupModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'expected_availability_date': number; + 'failure_code': string; + 'failure_message': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'topup'; + 'source': SourceModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; + 'transfer_group': string; +}; + +export type BalanceTransactionSourceModel = ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel; + +export type BalanceTransactionModel = { + 'amount': number; + 'available_on': number; + 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; + 'created': number; + 'currency': string; + 'description': string; + 'exchange_rate': number; + 'fee': number; + 'fee_details': FeeModel[]; + 'id': string; + 'net': number; + 'object': 'balance_transaction'; + 'reporting_category': string; + 'source': string | BalanceTransactionSourceModel; + 'status': string; + 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; +}; + +export type PlatformEarningFeeSourceModel = { + 'charge'?: string | undefined; + 'payout'?: string | undefined; + 'type': 'charge' | 'payout'; +}; + +export type ApplicationFeeModel = { + 'account': string | AccountModel; + 'amount': number; + 'amount_refunded': number; + 'application': string | ApplicationModel; + 'balance_transaction': string | BalanceTransactionModel; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'fee_source': PlatformEarningFeeSourceModel; + 'id': string; + 'livemode': boolean; + 'object': 'application_fee'; + 'originating_transaction': string | ChargeModel; + 'refunded': boolean; + 'refunds': { + 'data': FeeRefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type ChargeFraudDetailsModel = { + 'stripe_report'?: string | undefined; + 'user_report'?: string | undefined; +}; + +export type Level3LineItemsModel = { + 'discount_amount': number; + 'product_code': string; + 'product_description': string; + 'quantity': number; + 'tax_amount': number; + 'unit_cost': number; +}; + +export type Level3Model = { + 'customer_reference'?: string | undefined; + 'line_items': Level3LineItemsModel[]; + 'merchant_reference': string; + 'shipping_address_zip'?: string | undefined; + 'shipping_amount'?: number | undefined; + 'shipping_from_zip'?: string | undefined; +}; + +export type RuleModel = { + 'action': string; + 'id': string; + 'predicate': string; +}; + +export type ChargeOutcomeModel = { + 'advice_code': 'confirm_card_data' | 'do_not_try_again' | 'try_again_later'; + 'network_advice_code': string; + 'network_decline_code': string; + 'network_status': string; + 'reason': string; + 'risk_level'?: string | undefined; + 'risk_score'?: number | undefined; + 'rule'?: string | RuleModel | undefined; + 'seller_message': string; + 'type': string; +}; + +export type PaymentMethodDetailsAchCreditTransferModel = { + 'account_number': string; + 'bank_name': string; + 'routing_number': string; + 'swift_code': string; +}; + +export type PaymentMethodDetailsAchDebitModel = { + 'account_holder_type': 'company' | 'individual'; + 'bank_name': string; + 'country': string; + 'fingerprint': string; + 'last4': string; + 'routing_number': string; +}; + +export type PaymentMethodDetailsAcssDebitModel = { + 'bank_name': string; + 'fingerprint': string; + 'institution_number': string; + 'last4': string; + 'mandate'?: string | undefined; + 'transit_number': string; +}; + +export type PaymentMethodDetailsAffirmModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsAfterpayClearpayModel = { + 'order_id': string; + 'reference': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = { + 'buyer_id'?: string | undefined; + 'fingerprint': string; + 'transaction_id': string; +}; + +export type AlmaInstallmentsModel = { + 'count': number; +}; + +export type PaymentMethodDetailsAlmaModel = { + 'installments'?: AlmaInstallmentsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsPassthroughCardModel = { + 'brand': string; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'funding': string; + 'last4': string; +}; + +export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type': 'card'; +}; + +export type PaymentMethodDetailsAmazonPayModel = { + 'funding'?: AmazonPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsAuBecsDebitModel = { + 'bsb_number': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | undefined; +}; + +export type PaymentMethodDetailsBacsDebitModel = { + 'fingerprint': string; + 'last4': string; + 'mandate': string; + 'sort_code': string; +}; + +export type PaymentMethodDetailsBancontactModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsBillieModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsBlikModel = { + 'buyer_id': string; +}; + +export type PaymentMethodDetailsBoletoModel = { + 'tax_id': string; +}; + +export type PaymentMethodDetailsCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = { + 'status': 'disabled' | 'enabled'; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardInstallmentsPlanModel = { + 'count': number; + 'interval': 'month'; + 'type': 'bonus' | 'fixed_count' | 'revolving'; +}; + +export type PaymentMethodDetailsCardInstallmentsModel = { + 'plan': PaymentMethodDetailsCardInstallmentsPlanModel; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = { + 'maximum_amount_capturable': number; + 'status': 'available' | 'unavailable'; +}; + +export type ThreeDSecureDetailsChargeModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'electronic_commerce_indicator': '01' | '02' | '05' | '06' | '07'; + 'exemption_indicator': 'low_risk' | 'none'; + 'exemption_indicator_applied'?: boolean | undefined; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'transaction_id': string; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodDetailsCardWalletLinkModel = { + +}; + +export type PaymentMethodDetailsCardWalletMasterpassModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodDetailsCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodDetailsCardWalletVisaCheckoutModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodDetailsCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodDetailsCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'dynamic_last4': string; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodDetailsCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodDetailsCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodDetailsCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodDetailsCardModel = { + 'amount_authorized': number; + 'authorization_code': string; + 'brand': string; + 'capture_before'?: number | undefined; + 'checks': PaymentMethodDetailsCardChecksModel; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'extended_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel | undefined; + 'fingerprint'?: string | undefined; + 'funding': string; + 'iin'?: string | undefined; + 'incremental_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel | undefined; + 'installments': PaymentMethodDetailsCardInstallmentsModel; + 'issuer'?: string | undefined; + 'last4': string; + 'mandate': string; + 'moto'?: boolean | undefined; + 'multicapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel | undefined; + 'network': string; + 'network_token'?: PaymentMethodDetailsCardNetworkTokenModel | undefined; + 'network_transaction_id': string; + 'overcapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel | undefined; + 'regulated_status': 'regulated' | 'unregulated'; + 'three_d_secure': ThreeDSecureDetailsChargeModel; + 'wallet': PaymentMethodDetailsCardWalletModel; +}; + +export type PaymentMethodDetailsCashappModel = { + 'buyer_id': string; + 'cashtag': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsCryptoModel = { + 'buyer_address'?: string | undefined; + 'network'?: 'base' | 'ethereum' | 'polygon' | 'solana' | undefined; + 'token_currency'?: 'usdc' | 'usdg' | 'usdp' | undefined; + 'transaction_hash'?: string | undefined; +}; + +export type PaymentMethodDetailsCustomerBalanceModel = { + +}; + +export type PaymentMethodDetailsEpsModel = { + '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'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsFpxModel = { + 'account_holder_type': 'company' | 'individual'; + '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'; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsGiropayModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsGrabpayModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'transaction_id': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsInteracPresentReceiptModel = { + 'account_type'?: 'checking' | 'savings' | 'unknown' | undefined; + 'application_cryptogram': string; + 'application_preferred_name': string; + 'authorization_code': string; + 'authorization_response_code': string; + 'cardholder_verification_method': string; + 'dedicated_file_name': string; + 'terminal_verification_results': string; + 'transaction_status_information': string; +}; + +export type PaymentMethodDetailsInteracPresentModel = { + 'brand': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'emv_auth_data': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'generated_card': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'network_transaction_id': string; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'receipt': PaymentMethodDetailsInteracPresentReceiptModel; +}; + +export type PaymentMethodDetailsKakaoPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type KlarnaAddressModel = { + 'country': string; +}; + +export type KlarnaPayerDetailsModel = { + 'address': KlarnaAddressModel; +}; + +export type PaymentMethodDetailsKlarnaModel = { + 'payer_details': KlarnaPayerDetailsModel; + 'payment_method_category': string; + 'preferred_locale': string; +}; + +export type PaymentMethodDetailsKonbiniStoreModel = { + 'chain': 'familymart' | 'lawson' | 'ministop' | 'seicomart'; +}; + +export type PaymentMethodDetailsKonbiniModel = { + 'store': PaymentMethodDetailsKonbiniStoreModel; +}; + +export type PaymentMethodDetailsKrCardModel = { + 'brand': 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori'; + 'buyer_id': string; + 'last4': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsLinkModel = { + 'country': string; +}; + +export type PaymentMethodDetailsMbWayModel = { + +}; + +export type InternalCardModel = { + 'brand': string; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'last4': string; +}; + +export type PaymentMethodDetailsMobilepayModel = { + 'card': InternalCardModel; +}; + +export type PaymentMethodDetailsMultibancoModel = { + 'entity': string; + 'reference': string; +}; + +export type PaymentMethodDetailsNaverPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsNzBankAccountModel = { + 'account_holder_name': string; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix': string; +}; + +export type PaymentMethodDetailsOxxoModel = { + 'number': string; +}; + +export type PaymentMethodDetailsP24Model = { + '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'; + 'reference': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsPayByBankModel = { + +}; + +export type PaymentMethodDetailsPaycoModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsPaynowModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'reference': string; +}; + +export type PaypalSellerProtectionModel = { + 'dispute_categories': Array<'fraudulent' | 'product_not_received'>; + 'status': 'eligible' | 'not_eligible' | 'partially_eligible'; +}; + +export type PaymentMethodDetailsPaypalModel = { + 'country': string; + 'payer_email': string; + 'payer_id': string; + 'payer_name': string; + 'seller_protection': PaypalSellerProtectionModel; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsPixModel = { + 'bank_transaction_id'?: string | undefined; +}; + +export type PaymentMethodDetailsPromptpayModel = { + 'reference': string; +}; + +export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type': 'card'; +}; + +export type PaymentMethodDetailsRevolutPayModel = { + 'funding'?: RevolutPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSamsungPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSatispayModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSepaCreditTransferModel = { + 'bank_name': string; + 'bic': string; + 'iban': string; +}; + +export type PaymentMethodDetailsSepaDebitModel = { + 'bank_code': string; + 'branch_code': string; + 'country': string; + 'fingerprint': string; + 'last4': string; + 'mandate': string; +}; + +export type PaymentMethodDetailsSofortModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'country': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsStripeAccountModel = { + +}; + +export type PaymentMethodDetailsSwishModel = { + 'fingerprint': string; + 'payment_reference': string; + 'verified_phone_last4': string; +}; + +export type PaymentMethodDetailsTwintModel = { + +}; + +export type PaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference': string; + 'routing_number': string; +}; + +export type PaymentMethodDetailsWechatModel = { + +}; + +export type PaymentMethodDetailsWechatPayModel = { + 'fingerprint': string; + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsZipModel = { + +}; + +export type PaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentMethodDetailsCardModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type RadarRadarOptionsModel = { + 'session'?: string | undefined; +}; + +export type RadarReviewResourceLocationModel = { + 'city': string; + 'country': string; + 'latitude': number; + 'longitude': number; + 'region': string; +}; + +export type RadarReviewResourceSessionModel = { + 'browser': string; + 'device': string; + 'platform': string; + 'version': string; +}; + +export type ReviewModel = { + 'billing_zip': string; + 'charge': string | ChargeModel; + 'closed_reason': 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud'; + 'created': number; + 'id': string; + 'ip_address': string; + 'ip_address_location': RadarReviewResourceLocationModel; + 'livemode': boolean; + 'object': 'review'; + 'open': boolean; + 'opened_reason': 'manual' | 'rule'; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason': string; + 'session': RadarReviewResourceSessionModel; +}; + +export type ChargeTransferDataModel = { + 'amount': number; + 'destination': string | AccountModel; +}; + +export type ChargeModel = { + 'amount': number; + 'amount_captured': number; + 'amount_refunded': number; + 'application': string | ApplicationModel; + 'application_fee': string | ApplicationFeeModel; + 'application_fee_amount': number; + 'authorization_code'?: string | undefined; + 'balance_transaction': string | BalanceTransactionModel; + 'billing_details': BillingDetailsModel; + 'calculated_statement_descriptor': string; + 'captured': boolean; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'description': string; + 'disputed': boolean; + 'failure_balance_transaction': string | BalanceTransactionModel; + 'failure_code': string; + 'failure_message': string; + 'fraud_details': ChargeFraudDetailsModel; + 'id': string; + 'level3'?: Level3Model | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'charge'; + 'on_behalf_of': string | AccountModel; + 'outcome': ChargeOutcomeModel; + 'paid': boolean; + 'payment_intent': string | PaymentIntentModel; + 'payment_method': string; + 'payment_method_details': PaymentMethodDetailsModel; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'receipt_email': string; + 'receipt_number': string; + 'receipt_url': string; + 'refunded': boolean; + 'refunds'?: { + 'data': RefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'review': string | ReviewModel; + 'shipping': ShippingModel; + 'source': PaymentSourceModel; + 'source_transfer': string | TransferModel; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'status': 'failed' | 'pending' | 'succeeded'; + 'transfer'?: string | TransferModel | undefined; + 'transfer_data': ChargeTransferDataModel; + 'transfer_group': string; +}; + +export type PaymentIntentNextActionAlipayHandleRedirectModel = { + 'native_data': string; + 'native_url': string; + 'return_url': string; + 'url': string; +}; + +export type PaymentIntentNextActionBoletoModel = { + 'expires_at': number; + 'hosted_voucher_url': string; + 'number': string; + 'pdf': string; +}; + +export type PaymentIntentNextActionCardAwaitNotificationModel = { + 'charge_attempt_at': number; + 'customer_approval_required': boolean; +}; + +export type PaymentIntentNextActionCashappQrCodeModel = { + 'expires_at': number; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'mobile_auth_url': string; + 'qr_code': PaymentIntentNextActionCashappQrCodeModel; +}; + +export type FundingInstructionsBankTransferAbaRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'routing_number': string; +}; + +export type FundingInstructionsBankTransferIbanRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bic': string; + 'country': string; + 'iban': string; +}; + +export type FundingInstructionsBankTransferSortCodeRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'bank_address': AddressModel; + 'sort_code': string; +}; + +export type FundingInstructionsBankTransferSpeiRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bank_code': string; + 'bank_name': string; + 'clabe': string; +}; + +export type FundingInstructionsBankTransferSwiftRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'swift_code': string; +}; + +export type FundingInstructionsBankTransferZenginRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'branch_name': string; +}; + +export type FundingInstructionsBankTransferFinancialAddressModel = { + 'aba'?: FundingInstructionsBankTransferAbaRecordModel | undefined; + 'iban'?: FundingInstructionsBankTransferIbanRecordModel | undefined; + 'sort_code'?: FundingInstructionsBankTransferSortCodeRecordModel | undefined; + 'spei'?: FundingInstructionsBankTransferSpeiRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'bacs' | 'domestic_wire_us' | 'fps' | 'sepa' | 'spei' | 'swift' | 'zengin'> | undefined; + 'swift'?: FundingInstructionsBankTransferSwiftRecordModel | undefined; + 'type': 'aba' | 'iban' | 'sort_code' | 'spei' | 'swift' | 'zengin'; + 'zengin'?: FundingInstructionsBankTransferZenginRecordModel | undefined; +}; + +export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = { + 'amount_remaining': number; + 'currency': string; + 'financial_addresses'?: FundingInstructionsBankTransferFinancialAddressModel[] | undefined; + 'hosted_instructions_url': string; + 'reference': string; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; +}; + +export type PaymentIntentNextActionKonbiniFamilymartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniLawsonModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniMinistopModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniSeicomartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniStoresModel = { + 'familymart': PaymentIntentNextActionKonbiniFamilymartModel; + 'lawson': PaymentIntentNextActionKonbiniLawsonModel; + 'ministop': PaymentIntentNextActionKonbiniMinistopModel; + 'seicomart': PaymentIntentNextActionKonbiniSeicomartModel; +}; + +export type PaymentIntentNextActionKonbiniModel = { + 'expires_at': number; + 'hosted_voucher_url': string; + 'stores': PaymentIntentNextActionKonbiniStoresModel; +}; + +export type PaymentIntentNextActionDisplayMultibancoDetailsModel = { + 'entity': string; + 'expires_at': number; + 'hosted_voucher_url': string; + 'reference': string; +}; + +export type PaymentIntentNextActionDisplayOxxoDetailsModel = { + 'expires_after': number; + 'hosted_voucher_url': string; + 'number': string; +}; + +export type PaymentIntentNextActionPaynowDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionPixDisplayQrCodeModel = { + 'data'?: string | undefined; + 'expires_at'?: number | undefined; + 'hosted_instructions_url'?: string | undefined; + 'image_url_png'?: string | undefined; + 'image_url_svg'?: string | undefined; +}; + +export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionRedirectToUrlModel = { + 'return_url': string; + 'url': string; +}; + +export type PaymentIntentNextActionSwishQrCodeModel = { + 'data': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'mobile_auth_url': string; + 'qr_code': PaymentIntentNextActionSwishQrCodeModel; +}; + +export type PaymentIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type': 'amounts' | 'descriptor_code'; +}; + +export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_data_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = { + 'app_id': string; + 'nonce_str': string; + 'package': string; + 'partner_id': string; + 'prepay_id': string; + 'sign': string; + 'timestamp': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = { + 'native_url': string; +}; + +export type PaymentIntentNextActionModel = { + 'alipay_handle_redirect'?: PaymentIntentNextActionAlipayHandleRedirectModel | undefined; + 'boleto_display_details'?: PaymentIntentNextActionBoletoModel | undefined; + 'card_await_notification'?: PaymentIntentNextActionCardAwaitNotificationModel | undefined; + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'display_bank_transfer_instructions'?: PaymentIntentNextActionDisplayBankTransferInstructionsModel | undefined; + 'konbini_display_details'?: PaymentIntentNextActionKonbiniModel | undefined; + 'multibanco_display_details'?: PaymentIntentNextActionDisplayMultibancoDetailsModel | undefined; + 'oxxo_display_details'?: PaymentIntentNextActionDisplayOxxoDetailsModel | undefined; + 'paynow_display_qr_code'?: PaymentIntentNextActionPaynowDisplayQrCodeModel | undefined; + 'pix_display_qr_code'?: PaymentIntentNextActionPixDisplayQrCodeModel | undefined; + 'promptpay_display_qr_code'?: PaymentIntentNextActionPromptpayDisplayQrCodeModel | undefined; + 'redirect_to_url'?: PaymentIntentNextActionRedirectToUrlModel | undefined; + 'swish_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: PaymentIntentNextActionVerifyWithMicrodepositsModel | undefined; + 'wechat_pay_display_qr_code'?: PaymentIntentNextActionWechatPayDisplayQrCodeModel | undefined; + 'wechat_pay_redirect_to_android_app'?: PaymentIntentNextActionWechatPayRedirectToAndroidAppModel | undefined; + 'wechat_pay_redirect_to_ios_app'?: PaymentIntentNextActionWechatPayRedirectToIosAppModel | undefined; +}; + +export type PaymentFlowsPaymentDetailsModel = { + 'customer_reference': string; + 'order_reference': string; +}; + +export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = { + 'id': string; + 'parent': string; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type PaymentIntentPaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsAffirmModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAfterpayClearpayModel = { + 'capture_method'?: 'manual' | undefined; + 'reference': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAlipayModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsAlmaModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsAmazonPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsBillieModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBlikModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsBoletoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCardInstallmentsModel = { + 'available_plans': PaymentMethodDetailsCardInstallmentsPlanModel[]; + 'enabled': boolean; + 'plan': PaymentMethodDetailsCardInstallmentsPlanModel; +}; + +export type PaymentMethodOptionsCardMandateOptionsModel = { + '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'[]; +}; + +export type PaymentIntentPaymentMethodOptionsCardModel = { + 'capture_method'?: 'manual' | undefined; + 'installments': PaymentMethodOptionsCardInstallmentsModel; + 'mandate_options': PaymentMethodOptionsCardMandateOptionsModel; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + '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'; + '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 PaymentMethodOptionsCardPresentRoutingModel = { + 'requested_priority': 'domestic' | 'international'; +}; + +export type PaymentMethodOptionsCardPresentModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'request_extended_authorization': boolean; + 'request_incremental_authorization_support': boolean; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; +}; + +export type PaymentMethodOptionsCashappModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCryptoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type PaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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'; +}; + +export type PaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: PaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type': 'bank_transfer'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsEpsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsFpxModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGiropayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGrabpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsIdealModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsInteracPresentModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsKlarnaModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale': string; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsKonbiniModel = { + 'confirmation_number': string; + 'expires_after_days': number; + 'expires_at': number; + 'product_description': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsKrCardModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsLinkModel = { + 'capture_method'?: 'manual' | undefined; + 'persistent_token': string; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsMbWayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMobilepayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsMultibancoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsOxxoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsP24Model = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPayByBankModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsPaynowModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPaypalModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale': string; + 'reference': string; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsPixModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds': number; + 'expires_at': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPromptpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsRevolutPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsSatispayModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsSofortModel = { + 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSwishModel = { + 'reference': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsTwintModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; +}; + +export type LinkedAccountOptionsCommonModel = { + 'filters'?: PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch': Array<'balances' | 'ownership' | 'transactions'>; + 'return_url'?: string | undefined; +}; + +export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'preferred_settlement_speed'?: 'fastest' | 'standard' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsWechatPayModel = { + 'app_id': string; + 'client': 'android' | 'ios' | 'web'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsZipModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsModel = { + 'acss_debit'?: PaymentIntentPaymentMethodOptionsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodOptionsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodOptionsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentMethodOptionsAlipayModel | undefined; + 'alma'?: PaymentMethodOptionsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodOptionsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentIntentPaymentMethodOptionsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentIntentPaymentMethodOptionsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodOptionsBancontactModel | undefined; + 'billie'?: PaymentMethodOptionsBillieModel | undefined; + 'blik'?: PaymentIntentPaymentMethodOptionsBlikModel | undefined; + 'boleto'?: PaymentMethodOptionsBoletoModel | undefined; + 'card'?: PaymentIntentPaymentMethodOptionsCardModel | undefined; + 'card_present'?: PaymentMethodOptionsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodOptionsCashappModel | undefined; + 'crypto'?: PaymentMethodOptionsCryptoModel | undefined; + 'customer_balance'?: PaymentMethodOptionsCustomerBalanceModel | undefined; + 'eps'?: PaymentIntentPaymentMethodOptionsEpsModel | undefined; + 'fpx'?: PaymentMethodOptionsFpxModel | undefined; + 'giropay'?: PaymentMethodOptionsGiropayModel | undefined; + 'grabpay'?: PaymentMethodOptionsGrabpayModel | undefined; + 'ideal'?: PaymentMethodOptionsIdealModel | undefined; + 'interac_present'?: PaymentMethodOptionsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel | undefined; + 'klarna'?: PaymentMethodOptionsKlarnaModel | undefined; + 'konbini'?: PaymentMethodOptionsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodOptionsKrCardModel | undefined; + 'link'?: PaymentIntentPaymentMethodOptionsLinkModel | undefined; + 'mb_way'?: PaymentMethodOptionsMbWayModel | undefined; + 'mobilepay'?: PaymentIntentPaymentMethodOptionsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodOptionsMultibancoModel | undefined; + 'naver_pay'?: PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel | undefined; + 'nz_bank_account'?: PaymentIntentPaymentMethodOptionsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodOptionsOxxoModel | undefined; + 'p24'?: PaymentMethodOptionsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodOptionsPayByBankModel | undefined; + 'payco'?: PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel | undefined; + 'paynow'?: PaymentMethodOptionsPaynowModel | undefined; + 'paypal'?: PaymentMethodOptionsPaypalModel | undefined; + 'pix'?: PaymentMethodOptionsPixModel | undefined; + 'promptpay'?: PaymentMethodOptionsPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodOptionsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel | undefined; + 'satispay'?: PaymentMethodOptionsSatispayModel | undefined; + 'sepa_debit'?: PaymentIntentPaymentMethodOptionsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodOptionsSofortModel | undefined; + 'swish'?: PaymentIntentPaymentMethodOptionsSwishModel | undefined; + 'twint'?: PaymentMethodOptionsTwintModel | undefined; + 'us_bank_account'?: PaymentIntentPaymentMethodOptionsUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodOptionsWechatPayModel | undefined; + 'zip'?: PaymentMethodOptionsZipModel | undefined; +}; + +export type PaymentIntentProcessingCustomerNotificationModel = { + 'approval_requested': boolean; + 'completes_at': number; +}; + +export type PaymentIntentCardProcessingModel = { + 'customer_notification'?: PaymentIntentProcessingCustomerNotificationModel | undefined; +}; + +export type PaymentIntentProcessing_1Model = { + 'card'?: PaymentIntentCardProcessingModel | undefined; + 'type': 'card'; +}; + +export type DeletedPaymentSourceModel = DeletedBankAccountModel | DeletedCardModel; + +export type TransferDataModel = { + 'amount'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type PaymentIntentModel = { + 'amount': number; + 'amount_capturable': number; + 'amount_details'?: PaymentFlowsAmountDetailsModel | undefined; + 'amount_received': number; + 'application': string | ApplicationModel; + 'application_fee_amount': number; + 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel; + 'canceled_at': number; + 'cancellation_reason': 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice'; + 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'client_secret': string; + 'confirmation_method': 'automatic' | 'manual'; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'description': string; + 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'id': string; + 'last_payment_error': ApiErrorsModel; + 'latest_charge': string | ChargeModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_action': PaymentIntentNextActionModel; + 'object': 'payment_intent'; + 'on_behalf_of': string | AccountModel; + 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': PaymentIntentPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'processing': PaymentIntentProcessing_1Model; + 'receipt_email': string; + 'review': string | ReviewModel; + 'setup_future_usage': 'off_session' | 'on_session'; + 'shipping': ShippingModel; + 'source': string | PaymentSourceModel | DeletedPaymentSourceModel; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'transfer_data': TransferDataModel; + 'transfer_group': string; +}; + +export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled': boolean; +}; + +export type SetupIntentNextActionRedirectToUrlModel = { + 'return_url': string; + 'url': string; +}; + +export type SetupIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type': 'amounts' | 'descriptor_code'; +}; + +export type SetupIntentNextActionModel = { + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'redirect_to_url'?: SetupIntentNextActionRedirectToUrlModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: SetupIntentNextActionVerifyWithMicrodepositsModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type SetupIntentPaymentMethodOptionsAcssDebitModel = { + 'currency': 'cad' | 'usd'; + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsAmazonPayModel = { + +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = { + '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'[]; +}; + +export type SetupIntentPaymentMethodOptionsCardModel = { + 'mandate_options': SetupIntentPaymentMethodOptionsCardMandateOptionsModel; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type SetupIntentPaymentMethodOptionsCardPresentModel = { + +}; + +export type SetupIntentPaymentMethodOptionsKlarnaModel = { + 'currency': string; + 'preferred_locale': string; +}; + +export type SetupIntentPaymentMethodOptionsLinkModel = { + 'persistent_token': string; +}; + +export type SetupIntentPaymentMethodOptionsPaypalModel = { + 'billing_agreement_id': string; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsModel = { + 'acss_debit'?: SetupIntentPaymentMethodOptionsAcssDebitModel | undefined; + 'amazon_pay'?: SetupIntentPaymentMethodOptionsAmazonPayModel | undefined; + 'bacs_debit'?: SetupIntentPaymentMethodOptionsBacsDebitModel | undefined; + 'card'?: SetupIntentPaymentMethodOptionsCardModel | undefined; + 'card_present'?: SetupIntentPaymentMethodOptionsCardPresentModel | undefined; + 'klarna'?: SetupIntentPaymentMethodOptionsKlarnaModel | undefined; + 'link'?: SetupIntentPaymentMethodOptionsLinkModel | undefined; + 'paypal'?: SetupIntentPaymentMethodOptionsPaypalModel | undefined; + 'sepa_debit'?: SetupIntentPaymentMethodOptionsSepaDebitModel | undefined; + 'us_bank_account'?: SetupIntentPaymentMethodOptionsUsBankAccountModel | undefined; +}; + +export type SetupIntentModel = { + 'application': string | ApplicationModel; + 'attach_to_self'?: boolean | undefined; + 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsSetupIntentModel; + 'cancellation_reason': 'abandoned' | 'duplicate' | 'requested_by_customer'; + 'client_secret': string; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'description': string; + 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; + 'id': string; + 'last_setup_error': ApiErrorsModel; + 'latest_attempt': string | SetupAttemptModel; + 'livemode': boolean; + 'mandate': string | MandateModel; + 'metadata': { + [key: string]: string; +}; + 'next_action': SetupIntentNextActionModel; + 'object': 'setup_intent'; + 'on_behalf_of': string | AccountModel; + 'payment_method': string | PaymentMethodModel; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': SetupIntentPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'single_use_mandate': string | MandateModel; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'usage': string; +}; + +export type ApiErrorsModel = { + 'advice_code'?: string | undefined; + 'charge'?: string | undefined; + 'code'?: 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'acss_debit_session_incomplete' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | undefined; + 'decline_code'?: string | undefined; + 'doc_url'?: string | undefined; + 'message'?: string | undefined; + 'network_advice_code'?: string | undefined; + 'network_decline_code'?: string | undefined; + 'param'?: string | undefined; + 'payment_intent'?: PaymentIntentModel | undefined; + 'payment_method'?: PaymentMethodModel | undefined; + 'payment_method_type'?: string | undefined; + 'request_log_url'?: string | undefined; + 'setup_intent'?: SetupIntentModel | undefined; + 'source'?: PaymentSourceModel | undefined; + 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +}; + +export type SetupAttemptModel = { + 'application': string | ApplicationModel; + 'attach_to_self'?: boolean | undefined; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'flow_directions': Array<'inbound' | 'outbound'>; + 'id': string; + 'livemode': boolean; + 'object': 'setup_attempt'; + 'on_behalf_of': string | AccountModel; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; + 'setup_error': ApiErrorsModel; + 'setup_intent': string | SetupIntentModel; + 'status': string; + 'usage': string; +}; + +export type PaymentMethodCardGeneratedCardModel = { + 'charge': string; + 'payment_method_details': CardGeneratedFromPaymentMethodDetailsModel; + 'setup_attempt': string | SetupAttemptModel; +}; + +export type NetworksModel = { + 'available': string[]; + 'preferred': string; +}; + +export type ThreeDSecureUsageModel = { + 'supported': boolean; +}; + +export type PaymentMethodCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodCardWalletApplePayModel = { + +}; + +export type PaymentMethodCardWalletGooglePayModel = { + +}; + +export type PaymentMethodCardWalletLinkModel = { + +}; + +export type PaymentMethodCardWalletMasterpassModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodCardWalletVisaCheckoutModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodCardWalletApplePayModel | undefined; + 'dynamic_last4': string; + 'google_pay'?: PaymentMethodCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodCardModel = { + 'brand': string; + 'checks': PaymentMethodCardChecksModel; + 'country': string; + 'description'?: string | undefined; + 'display_brand': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': string; + 'generated_from': PaymentMethodCardGeneratedCardModel; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': NetworksModel; + 'regulated_status': 'regulated' | 'unregulated'; + 'three_d_secure_usage': ThreeDSecureUsageModel; + 'wallet': PaymentMethodCardWalletModel; +}; + +export type PaymentMethodCardPresentNetworksModel = { + 'available': string[]; + 'preferred': string; +}; + +export type PaymentMethodCardPresentModel = { + 'brand': string; + 'brand_product': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': PaymentMethodCardPresentNetworksModel; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type PaymentMethodCashappModel = { + 'buyer_id': string; + 'cashtag': string; +}; + +export type PaymentMethodCryptoModel = { + +}; + +export type CustomLogoModel = { + 'content_type': string; + 'url': string; +}; + +export type PaymentMethodCustomModel = { + 'display_name': string; + 'logo': CustomLogoModel; + 'type': string; +}; + +export type PaymentMethodCustomerBalanceModel = { + +}; + +export type PaymentMethodEpsModel = { + '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'; +}; + +export type PaymentMethodFpxModel = { + 'account_holder_type': 'company' | 'individual'; + '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'; +}; + +export type PaymentMethodGiropayModel = { + +}; + +export type PaymentMethodGrabpayModel = { + +}; + +export type PaymentMethodIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; +}; + +export type PaymentMethodInteracPresentModel = { + 'brand': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': PaymentMethodCardPresentNetworksModel; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; +}; + +export type PaymentMethodKakaoPayModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type PaymentMethodKlarnaModel = { + 'dob'?: PaymentFlowsPrivatePaymentMethodsKlarnaDobModel | undefined; +}; + +export type PaymentMethodKonbiniModel = { + +}; + +export type PaymentMethodKrCardModel = { + 'brand': 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori'; + 'last4': string; +}; + +export type PaymentMethodLinkModel = { + 'email': string; + 'persistent_token'?: string | undefined; +}; + +export type PaymentMethodMbWayModel = { + +}; + +export type PaymentMethodMobilepayModel = { + +}; + +export type PaymentMethodMultibancoModel = { + +}; + +export type PaymentMethodNaverPayModel = { + 'buyer_id': string; + 'funding': 'card' | 'points'; +}; + +export type PaymentMethodNzBankAccountModel = { + 'account_holder_name': string; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix': string; +}; + +export type PaymentMethodOxxoModel = { + +}; + +export type PaymentMethodP24Model = { + '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'; +}; + +export type PaymentMethodPayByBankModel = { + +}; + +export type PaymentMethodPaycoModel = { + +}; + +export type PaymentMethodPaynowModel = { + +}; + +export type PaymentMethodPaypalModel = { + 'country': string; + 'payer_email': string; + 'payer_id': string; +}; + +export type PaymentMethodPixModel = { + +}; + +export type PaymentMethodPromptpayModel = { + +}; + +export type PaymentMethodRevolutPayModel = { + +}; + +export type PaymentMethodSamsungPayModel = { + +}; + +export type PaymentMethodSatispayModel = { + +}; + +export type SepaDebitGeneratedFromModel = { + 'charge': string | ChargeModel; + 'setup_attempt': string | SetupAttemptModel; +}; + +export type PaymentMethodSepaDebitModel = { + 'bank_code': string; + 'branch_code': string; + 'country': string; + 'fingerprint': string; + 'generated_from': SepaDebitGeneratedFromModel; + 'last4': string; +}; + +export type PaymentMethodSofortModel = { + 'country': string; +}; + +export type PaymentMethodSwishModel = { + +}; + +export type PaymentMethodTwintModel = { + +}; + +export type UsBankAccountNetworksModel = { + 'preferred': string; + 'supported': Array<'ach' | 'us_domestic_wire'>; +}; + +export type PaymentMethodUsBankAccountBlockedModel = { + 'network_code': 'R02' | 'R03' | 'R04' | 'R05' | 'R07' | 'R08' | 'R10' | 'R11' | 'R16' | 'R20' | 'R29' | 'R31'; + 'reason': 'bank_account_closed' | 'bank_account_frozen' | 'bank_account_invalid_details' | 'bank_account_restricted' | 'bank_account_unusable' | 'debit_not_authorized' | 'tokenized_account_number_deactivated'; +}; + +export type PaymentMethodUsBankAccountStatusDetailsModel = { + 'blocked'?: PaymentMethodUsBankAccountBlockedModel | undefined; +}; + +export type PaymentMethodUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'financial_connections_account': string; + 'fingerprint': string; + 'last4': string; + 'networks': UsBankAccountNetworksModel; + 'routing_number': string; + 'status_details': PaymentMethodUsBankAccountStatusDetailsModel; +}; + +export type PaymentMethodWechatPayModel = { + +}; + +export type PaymentMethodZipModel = { + +}; + +export type PaymentMethodModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'created': number; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'custom'?: PaymentMethodCustomModel | undefined; + 'customer': string | CustomerModel; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'id': string; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'metadata': { + [key: string]: string; +}; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'object': 'payment_method'; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type InvoiceSettingCustomerRenderingOptionsModel = { + 'amount_tax_display': string; + 'template': string; +}; + +export type InvoiceSettingCustomerSettingModel = { + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'default_payment_method': string | PaymentMethodModel; + 'footer': string; + 'rendering_options': InvoiceSettingCustomerRenderingOptionsModel; +}; + +export type DeletedApplicationModel = { + 'deleted': boolean; + 'id': string; + 'name': string; + 'object': 'application'; +}; + +export type ConnectAccountReferenceModel = { + 'account'?: string | AccountModel | undefined; + 'type': 'account' | 'self'; +}; + +export type SubscriptionAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type SubscriptionsResourceBillingCycleAnchorConfigModel = { + 'day_of_month': number; + 'hour': number; + 'minute': number; + 'month': number; + 'second': number; +}; + +export type SubscriptionsResourceBillingModeFlexibleModel = { + 'proration_discounts'?: 'included' | 'itemized' | undefined; +}; + +export type SubscriptionsResourceBillingModeModel = { + 'flexible': SubscriptionsResourceBillingModeFlexibleModel; + 'type': 'classic' | 'flexible'; + 'updated_at'?: number | undefined; +}; + +export type SubscriptionBillingThresholdsModel = { + 'amount_gte': number; + 'reset_billing_cycle_anchor': boolean; +}; + +export type CancellationDetailsModel = { + 'comment': string; + 'feedback': 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'; + 'reason': 'cancellation_requested' | 'payment_disputed' | 'payment_failed'; +}; + +export type TaxRateFlatAmountModel = { + 'amount': number; + 'currency': string; +}; + +export type TaxRateModel = { + 'active': boolean; + 'country': string; + 'created': number; + 'description': string; + 'display_name': string; + 'effective_percentage': number; + 'flat_amount': TaxRateFlatAmountModel; + 'id': string; + 'inclusive': boolean; + 'jurisdiction': string; + 'jurisdiction_level': 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state'; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'tax_rate'; + 'percentage': number; + 'rate_type': 'flat_amount' | 'percentage'; + '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'; +}; + +export type TaxIDsOwnerModel = { + 'account'?: string | AccountModel | undefined; + 'application'?: string | ApplicationModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'type': 'account' | 'application' | 'customer' | 'self'; +}; + +export type TaxIdVerificationModel = { + 'status': 'pending' | 'unavailable' | 'unverified' | 'verified'; + 'verified_address': string; + 'verified_name': string; +}; + +export type TaxIdModel = { + 'country': string; + 'created': number; + 'customer': string | CustomerModel; + 'id': string; + 'livemode': boolean; + 'object': 'tax_id'; + 'owner': TaxIDsOwnerModel; + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; + 'verification': TaxIdVerificationModel; +}; + +export type DeletedTaxIdModel = { + 'deleted': boolean; + 'id': string; + 'object': 'tax_id'; +}; + +export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionItemBillingThresholdsModel = { + 'usage_gte': number; +}; + +export type CustomUnitAmountModel = { + 'maximum': number; + 'minimum': number; + 'preset': number; +}; + +export type PriceTierModel = { + 'flat_amount': number; + 'flat_amount_decimal': string; + 'unit_amount': number; + 'unit_amount_decimal': string; + 'up_to': number; +}; + +export type CurrencyOptionModel = { + 'custom_unit_amount': CustomUnitAmountModel; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tiers'?: PriceTierModel[] | undefined; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type DeletedProductModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product'; +}; + +export type RecurringModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'meter': string; + 'trial_period_days': number; + 'usage_type': 'licensed' | 'metered'; +}; + +export type TransformQuantityModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PriceModel = { + 'active': boolean; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'currency_options'?: { + [key: string]: CurrencyOptionModel; +} | undefined; + 'custom_unit_amount': CustomUnitAmountModel; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'nickname': string; + 'object': 'price'; + 'product': string | ProductModel | DeletedProductModel; + 'recurring': RecurringModel; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tiers'?: PriceTierModel[] | undefined; + 'tiers_mode': 'graduated' | 'volume'; + 'transform_quantity': TransformQuantityModel; + 'type': 'one_time' | 'recurring'; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type ProductMarketingFeatureModel = { + 'name'?: string | undefined; +}; + +export type PackageDimensionsModel = { + 'height': number; + 'length': number; + 'weight': number; + 'width': number; +}; + +export type TaxCodeModel = { + 'description': string; + 'id': string; + 'name': string; + 'object': 'tax_code'; +}; + +export type ProductModel = { + 'active': boolean; + 'created': number; + 'default_price'?: string | PriceModel | undefined; + 'description': string; + 'id': string; + 'images': string[]; + 'livemode': boolean; + 'marketing_features': ProductMarketingFeatureModel[]; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'product'; + 'package_dimensions': PackageDimensionsModel; + 'shippable': boolean; + 'statement_descriptor'?: string | undefined; + 'tax_code': string | TaxCodeModel; + 'type': 'good' | 'service'; + 'unit_label'?: string | undefined; + 'updated': number; + 'url': string; +}; + +export type PlanTierModel = { + 'flat_amount': number; + 'flat_amount_decimal': string; + 'unit_amount': number; + 'unit_amount_decimal': string; + 'up_to': number; +}; + +export type TransformUsageModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PlanModel = { + 'active': boolean; + 'amount': number; + 'amount_decimal': string; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'id': string; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'meter': string; + 'nickname': string; + 'object': 'plan'; + 'product': string | ProductModel | DeletedProductModel; + 'tiers'?: PlanTierModel[] | undefined; + 'tiers_mode': 'graduated' | 'volume'; + 'transform_usage': TransformUsageModel; + 'trial_period_days': number; + 'usage_type': 'licensed' | 'metered'; +}; + +export type SubscriptionItemModel = { + 'billing_thresholds': SubscriptionItemBillingThresholdsModel; + 'created': number; + 'current_period_end': number; + 'current_period_start': number; + 'discounts': Array; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'subscription_item'; + 'plan': PlanModel; + 'price': PriceModel; + 'quantity'?: number | undefined; + 'subscription': string; + 'tax_rates': TaxRateModel[]; +}; + +export type AutomaticTaxModel = { + 'disabled_reason': 'finalization_requires_location_inputs' | 'finalization_system_error'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type InvoicesResourceConfirmationSecretModel = { + 'client_secret': string; + 'type': string; +}; + +export type InvoicesResourceInvoiceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type DeletedDiscountModel = { + 'checkout_session': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'deleted': boolean; + 'id': string; + 'invoice': string; + 'invoice_item': string; + 'object': 'discount'; + 'promotion_code': string | PromotionCodeModel; + 'source': DiscountSourceModel; + 'start': number; + 'subscription': string; + 'subscription_item': string; +}; + +export type InvoicesResourceFromInvoiceModel = { + 'action': string; + 'invoice': string | InvoiceModel; +}; + +export type DiscountsResourceDiscountAmountModel = { + 'amount': number; + 'discount': string | DiscountModel | DeletedDiscountModel; +}; + +export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = { + 'invoice': string; + 'invoice_line_items': string[]; +}; + +export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = { + 'credited_items': BillingBillResourceInvoicingLinesCommonCreditedItemsModel; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = { + 'invoice_item': string; + 'proration': boolean; + 'proration_details': BillingBillResourceInvoicingLinesCommonProrationDetailsModel; + 'subscription': string; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = { + 'invoice_item': string; + 'proration': boolean; + 'proration_details': BillingBillResourceInvoicingLinesCommonProrationDetailsModel; + 'subscription': string; + 'subscription_item': string; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = { + 'invoice_item_details': BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel; + 'subscription_item_details': BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel; + 'type': 'invoice_item_details' | 'subscription_item_details'; +}; + +export type InvoiceLineItemPeriodModel = { + 'end': number; + 'start': number; +}; + +export type BillingCreditGrantsResourceMonetaryAmountModel = { + 'currency': string; + 'value': number; +}; + +export type BillingCreditGrantsResourceAmountModel = { + 'monetary': BillingCreditGrantsResourceMonetaryAmountModel; + 'type': 'monetary'; +}; + +export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceCreditModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_application_invoice_voided': BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel; + 'type': 'credits_application_invoice_voided' | 'credits_granted'; +}; + +export type BillingCreditGrantsResourceApplicablePriceModel = { + 'id': string; +}; + +export type BillingCreditGrantsResourceScopeModel = { + 'price_type'?: 'metered' | undefined; + 'prices'?: BillingCreditGrantsResourceApplicablePriceModel[] | undefined; +}; + +export type BillingCreditGrantsResourceApplicabilityConfigModel = { + 'scope': BillingCreditGrantsResourceScopeModel; +}; + +export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = { + 'target_frozen_time': number; +}; + +export type BillingClocksResourceStatusDetailsStatusDetailsModel = { + 'advancing'?: BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel | undefined; +}; + +export type TestHelpersTestClockModel = { + 'created': number; + 'deletes_after': number; + 'frozen_time': number; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'test_helpers.test_clock'; + 'status': 'advancing' | 'internal_failure' | 'ready'; + 'status_details': BillingClocksResourceStatusDetailsStatusDetailsModel; +}; + +export type BillingCreditGrantModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; + 'category': 'paid' | 'promotional'; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'effective_at': number; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'billing.credit_grant'; + 'priority'?: number | undefined; + 'test_clock': string | TestHelpersTestClockModel; + 'updated': number; + 'voided_at': number; +}; + +export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceDebitModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_applied': BillingCreditGrantsResourceBalanceCreditsAppliedModel; + 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +}; + +export type BillingCreditBalanceTransactionModel = { + 'created': number; + 'credit': BillingCreditGrantsResourceBalanceCreditModel; + 'credit_grant': string | BillingCreditGrantModel; + 'debit': BillingCreditGrantsResourceBalanceDebitModel; + 'effective_at': number; + 'id': string; + 'livemode': boolean; + 'object': 'billing.credit_balance_transaction'; + 'test_clock': string | TestHelpersTestClockModel; + 'type': 'credit' | 'debit'; +}; + +export type InvoicesResourcePretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'type': 'credit_balance_transaction' | 'discount'; +}; + +export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = { + 'price': string; + 'product': string; +}; + +export type BillingBillResourceInvoicingPricingPricingModel = { + 'price_details'?: BillingBillResourceInvoicingPricingPricingPriceDetailsModel | undefined; + 'type': 'price_details'; + 'unit_amount_decimal': string; +}; + +export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = { + 'tax_rate': string; +}; + +export type BillingBillResourceInvoicingTaxesTaxModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_rate_details': BillingBillResourceInvoicingTaxesTaxRateDetailsModel; + 'taxability_reason': 'customer_exempt' | 'not_available' | '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'; + 'taxable_amount': number; + 'type': 'tax_rate_details'; +}; + +export type LineItemModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'discountable': boolean; + 'discounts': Array; + 'id': string; + 'invoice': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'line_item'; + 'parent': BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel; + 'period': InvoiceLineItemPeriodModel; + 'pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; + 'pricing': BillingBillResourceInvoicingPricingPricingModel; + 'quantity': number; + 'subscription': string | SubscriptionModel; + 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; +}; + +export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = { + 'quote': string; +}; + +export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { + 'metadata': { + [key: string]: string; +}; + 'subscription': string | SubscriptionModel; + 'subscription_proration_date'?: number | undefined; +}; + +export type BillingBillResourceInvoicingParentsInvoiceParentModel = { + 'quote_details': BillingBillResourceInvoicingParentsInvoiceQuoteParentModel; + 'subscription_details': BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel; + 'type': 'quote_details' | 'subscription_details'; +}; + +export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = { + 'transaction_type': 'business' | 'personal'; +}; + +export type InvoicePaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicePaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; +}; + +export type InvoiceInstallmentsCardModel = { + 'enabled': boolean; +}; + +export type InvoicePaymentMethodOptionsCardModel = { + 'installments'?: InvoiceInstallmentsCardModel | undefined; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel | undefined; + 'type': string; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type': 'bank_transfer'; +}; + +export type InvoicePaymentMethodOptionsKonbiniModel = { + +}; + +export type InvoicePaymentMethodOptionsSepaDebitModel = { + +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = { + 'filters'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch': Array<'balances' | 'ownership' | 'transactions'>; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicesPaymentMethodOptionsModel = { + 'acss_debit': InvoicePaymentMethodOptionsAcssDebitModel; + 'bancontact': InvoicePaymentMethodOptionsBancontactModel; + 'card': InvoicePaymentMethodOptionsCardModel; + 'customer_balance': InvoicePaymentMethodOptionsCustomerBalanceModel; + 'konbini': InvoicePaymentMethodOptionsKonbiniModel; + 'sepa_debit': InvoicePaymentMethodOptionsSepaDebitModel; + 'us_bank_account': InvoicePaymentMethodOptionsUsBankAccountModel; +}; + +export type InvoicesPaymentSettingsModel = { + 'default_mandate': string; + 'payment_method_options': InvoicesPaymentMethodOptionsModel; + 'payment_method_types': Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'payco' | 'paynow' | 'paypal' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'us_bank_account' | 'wechat_pay'>; +}; + +export type DeletedInvoiceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoice'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = { + 'currency': string; + 'value': number; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = { + 'customer': string; + 'email': string; + 'name': string; + 'phone': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'email': string; + 'name': string; + 'phone': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = { + 'address_line1_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; + 'address_postal_code_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; + 'cvc_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = { + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = { + +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = { + 'apple_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel | undefined; + 'dynamic_last4'?: string | undefined; + 'google_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel | undefined; + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = { + 'brand': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'capture_before'?: number | undefined; + 'checks': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': 'credit' | 'debit' | 'prepaid' | 'unknown'; + 'last4': string; + 'moto'?: boolean | undefined; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'network_token'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel | undefined; + 'network_transaction_id': string; + 'three_d_secure': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel; + 'wallet': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = { + 'display_name': string; + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference': string; + 'routing_number': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'billing_details': PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'custom'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'payment_method': string; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = { + 'payment_reference': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = { + 'custom'?: PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel | undefined; + 'type': 'custom'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'name': string; + 'phone': string; +}; + +export type PaymentRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application': string; + 'created': number; + 'customer_details': PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel; + 'customer_presence': 'off_session' | 'on_session'; + 'description': string; + 'id': string; + 'latest_payment_attempt_record': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_record'; + 'payment_method_details': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'shipping_details': PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel; +}; + +export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = { + 'charge'?: string | ChargeModel | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_record'?: string | PaymentRecordModel | undefined; + 'type': 'charge' | 'payment_intent' | 'payment_record'; +}; + +export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = { + 'canceled_at': number; + 'paid_at': number; +}; + +export type InvoicePaymentModel = { + 'amount_paid': number; + 'amount_requested': number; + 'created': number; + 'currency': string; + 'id': string; + 'invoice': string | InvoiceModel | DeletedInvoiceModel; + 'is_default': boolean; + 'livemode': boolean; + 'object': 'invoice_payment'; + 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; + 'status': string; + 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +}; + +export type InvoiceRenderingPdfModel = { + 'page_size': 'a4' | 'auto' | 'letter'; +}; + +export type InvoicesResourceInvoiceRenderingModel = { + 'amount_tax_display': string; + 'pdf': InvoiceRenderingPdfModel; + 'template': string; + 'template_version': number; +}; + +export type ShippingRateDeliveryEstimateBoundModel = { + 'unit': 'business_day' | 'day' | 'hour' | 'month' | 'week'; + 'value': number; +}; + +export type ShippingRateDeliveryEstimateModel = { + 'maximum': ShippingRateDeliveryEstimateBoundModel; + 'minimum': ShippingRateDeliveryEstimateBoundModel; +}; + +export type ShippingRateCurrencyOptionModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; +}; + +export type ShippingRateFixedAmountModel = { + 'amount': number; + 'currency': string; + 'currency_options'?: { + [key: string]: ShippingRateCurrencyOptionModel; +} | undefined; +}; + +export type ShippingRateModel = { + 'active': boolean; + 'created': number; + 'delivery_estimate': ShippingRateDeliveryEstimateModel; + 'display_name': string; + 'fixed_amount'?: ShippingRateFixedAmountModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'shipping_rate'; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tax_code': string | TaxCodeModel; + 'type': 'fixed_amount'; +}; + +export type LineItemsTaxAmountModel = { + 'amount': number; + 'rate': TaxRateModel; + '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'; + 'taxable_amount': number; +}; + +export type InvoicesResourceShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate': string | ShippingRateModel; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type InvoicesResourceStatusTransitionsModel = { + 'finalized_at': number; + 'marked_uncollectible_at': number; + 'paid_at': number; + 'voided_at': number; +}; + +export type InvoiceItemThresholdReasonModel = { + 'line_item_ids': string[]; + 'usage_gte': number; +}; + +export type InvoiceThresholdReasonModel = { + 'amount_gte': number; + 'item_reasons': InvoiceItemThresholdReasonModel[]; +}; + +export type InvoiceModel = { + 'account_country': string; + 'account_name': string; + 'account_tax_ids': Array; + 'amount_due': number; + 'amount_overpaid': number; + 'amount_paid': number; + 'amount_remaining': number; + 'amount_shipping': number; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'attempt_count': number; + 'attempted': boolean; + 'auto_advance'?: boolean | undefined; + 'automatic_tax': AutomaticTaxModel; + 'automatically_finalizes_at': number; + 'billing_reason': 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming'; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; + 'created': number; + 'currency': string; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_address': AddressModel; + 'customer_email': string; + 'customer_name': string; + 'customer_phone': string; + 'customer_shipping': ShippingModel; + 'customer_tax_exempt': 'exempt' | 'none' | 'reverse'; + 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; + 'default_payment_method': string | PaymentMethodModel; + 'default_source': string | PaymentSourceModel; + 'default_tax_rates': TaxRateModel[]; + 'description': string; + 'discounts': Array; + 'due_date': number; + 'effective_at': number; + 'ending_balance': number; + 'footer': string; + 'from_invoice': InvoicesResourceFromInvoiceModel; + 'hosted_invoice_url'?: string | undefined; + 'id'?: string | undefined; + 'invoice_pdf'?: string | undefined; + 'issuer': ConnectAccountReferenceModel; + 'last_finalization_error': ApiErrorsModel; + 'latest_revision': string | InvoiceModel; + 'lines': { + 'data': LineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_payment_attempt': number; + 'number': string; + 'object': 'invoice'; + 'on_behalf_of': string | AccountModel; + 'parent': BillingBillResourceInvoicingParentsInvoiceParentModel; + 'payment_settings': InvoicesPaymentSettingsModel; + 'payments'?: { + 'data': InvoicePaymentModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'period_end': number; + 'period_start': number; + 'post_payment_credit_notes_amount': number; + 'pre_payment_credit_notes_amount': number; + 'receipt_number': string; + 'rendering': InvoicesResourceInvoiceRenderingModel; + 'shipping_cost': InvoicesResourceShippingCostModel; + 'shipping_details': ShippingModel; + 'starting_balance': number; + 'statement_descriptor': string; + 'status': 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'; + 'status_transitions': InvoicesResourceStatusTransitionsModel; + 'subscription'?: string | SubscriptionModel | undefined; + 'subtotal': number; + 'subtotal_excluding_tax': number; + 'test_clock': string | TestHelpersTestClockModel; + 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; + 'total': number; + 'total_discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'total_excluding_tax': number; + 'total_pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; + 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'webhooks_delivered_at': number; +}; + +export type SubscriptionsResourcePauseCollectionModel = { + 'behavior': 'keep_as_draft' | 'mark_uncollectible' | 'void'; + 'resumes_at': number; +}; + +export type InvoiceMandateOptionsCardModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'description': string; +}; + +export type SubscriptionPaymentMethodOptionsCardModel = { + 'mandate_options'?: InvoiceMandateOptionsCardModel | undefined; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type SubscriptionsResourcePaymentMethodOptionsModel = { + 'acss_debit': InvoicePaymentMethodOptionsAcssDebitModel; + 'bancontact': InvoicePaymentMethodOptionsBancontactModel; + 'card': SubscriptionPaymentMethodOptionsCardModel; + 'customer_balance': InvoicePaymentMethodOptionsCustomerBalanceModel; + 'konbini': InvoicePaymentMethodOptionsKonbiniModel; + 'sepa_debit': InvoicePaymentMethodOptionsSepaDebitModel; + 'us_bank_account': InvoicePaymentMethodOptionsUsBankAccountModel; +}; + +export type SubscriptionsResourcePaymentSettingsModel = { + 'payment_method_options': SubscriptionsResourcePaymentMethodOptionsModel; + 'payment_method_types': Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | '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'; +}; + +export type SubscriptionPendingInvoiceItemIntervalModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; +}; + +export type SubscriptionsResourcePendingUpdateModel = { + 'billing_cycle_anchor': number; + 'expires_at': number; + 'subscription_items': SubscriptionItemModel[]; + 'trial_end': number; + 'trial_from_plan': boolean; +}; + +export type SubscriptionScheduleCurrentPhaseModel = { + 'end_date': number; + 'start_date': number; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type InvoiceSettingSubscriptionScheduleSettingModel = { + 'account_tax_ids': Array; + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionTransferDataModel = { + 'amount_percent': number; + 'destination': string | AccountModel; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsModel = { + 'application_fee_percent': number; + 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; + 'billing_cycle_anchor': 'automatic' | 'phase_start'; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'default_payment_method': string | PaymentMethodModel; + 'description': string; + 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; + 'on_behalf_of': string | AccountModel; + 'transfer_data': SubscriptionTransferDataModel; +}; + +export type DiscountsResourceStackableDiscountModel = { + 'coupon': string | CouponModel; + 'discount': string | DiscountModel; + 'promotion_code': string | PromotionCodeModel; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = { + 'timestamp'?: number | undefined; + 'type': 'min_item_period_end' | 'phase_end' | 'timestamp'; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = { + 'timestamp'?: number | undefined; + 'type': 'max_item_period_start' | 'phase_start' | 'timestamp'; +}; + +export type SubscriptionScheduleAddInvoiceItemPeriodModel = { + 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel; + 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel; +}; + +export type DeletedPriceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'price'; +}; + +export type SubscriptionScheduleAddInvoiceItemModel = { + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata': { + [key: string]: string; +}; + 'period': SubscriptionScheduleAddInvoiceItemPeriodModel; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity': number; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type SchedulesPhaseAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = { + 'account_tax_ids': Array; + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type DeletedPlanModel = { + 'deleted': boolean; + 'id': string; + 'object': 'plan'; +}; + +export type SubscriptionScheduleConfigurationItemModel = { + 'billing_thresholds': SubscriptionItemBillingThresholdsModel; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata': { + [key: string]: string; +}; + 'plan': string | PlanModel | DeletedPlanModel; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity'?: number | undefined; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type SubscriptionSchedulePhaseConfigurationModel = { + 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; + 'application_fee_percent': number; + 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; + 'billing_cycle_anchor': 'automatic' | 'phase_start'; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'currency': string; + 'default_payment_method': string | PaymentMethodModel; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description': string; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'end_date': number; + 'invoice_settings': InvoiceSettingSubscriptionSchedulePhaseSettingModel; + 'items': SubscriptionScheduleConfigurationItemModel[]; + 'metadata': { + [key: string]: string; +}; + 'on_behalf_of': string | AccountModel; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'start_date': number; + 'transfer_data': SubscriptionTransferDataModel; + 'trial_end': number; +}; + +export type SubscriptionScheduleModel = { + 'application': string | ApplicationModel | DeletedApplicationModel; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'canceled_at': number; + 'completed_at': number; + 'created': number; + 'current_phase': SubscriptionScheduleCurrentPhaseModel; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; + 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'subscription_schedule'; + 'phases': SubscriptionSchedulePhaseConfigurationModel[]; + 'released_at': number; + 'released_subscription': string; + 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; + 'subscription': string | SubscriptionModel; + 'test_clock': string | TestHelpersTestClockModel; +}; + +export type SubscriptionsTrialsResourceEndBehaviorModel = { + 'missing_payment_method': 'cancel' | 'create_invoice' | 'pause'; +}; + +export type SubscriptionsTrialsResourceTrialSettingsModel = { + 'end_behavior': SubscriptionsTrialsResourceEndBehaviorModel; +}; + +export type SubscriptionModel = { + 'application': string | ApplicationModel | DeletedApplicationModel; + 'application_fee_percent': number; + 'automatic_tax': SubscriptionAutomaticTaxModel; + 'billing_cycle_anchor': number; + 'billing_cycle_anchor_config': SubscriptionsResourceBillingCycleAnchorConfigModel; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'cancel_at': number; + 'cancel_at_period_end': boolean; + 'canceled_at': number; + 'cancellation_details': CancellationDetailsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'days_until_due': number; + 'default_payment_method': string | PaymentMethodModel; + 'default_source': string | PaymentSourceModel; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description': string; + 'discounts': Array; + 'ended_at': number; + 'id': string; + 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; + 'items': { + 'data': SubscriptionItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'latest_invoice': string | InvoiceModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_pending_invoice_item_invoice': number; + 'object': 'subscription'; + 'on_behalf_of': string | AccountModel; + 'pause_collection': SubscriptionsResourcePauseCollectionModel; + 'payment_settings': SubscriptionsResourcePaymentSettingsModel; + 'pending_invoice_item_interval': SubscriptionPendingInvoiceItemIntervalModel; + 'pending_setup_intent': string | SetupIntentModel; + 'pending_update': SubscriptionsResourcePendingUpdateModel; + 'schedule': string | SubscriptionScheduleModel; + 'start_date': number; + 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; + 'test_clock': string | TestHelpersTestClockModel; + 'transfer_data': SubscriptionTransferDataModel; + 'trial_end': number; + 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; + 'trial_start': number; +}; + +export type CustomerTaxLocationModel = { + 'country': string; + 'source': 'billing_address' | 'ip_address' | 'payment_method' | 'shipping_destination'; + 'state': string; +}; + +export type CustomerTaxModel = { + 'automatic_tax': 'failed' | 'not_collecting' | 'supported' | 'unrecognized_location'; + 'ip_address': string; + 'location': CustomerTaxLocationModel; + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; +}; + +export type CustomerModel = { + 'address'?: AddressModel | undefined; + 'balance'?: number | undefined; + 'business_name'?: string | undefined; + 'cash_balance'?: CashBalanceModel | undefined; + 'created': number; + 'currency'?: string | undefined; + 'default_source': string | PaymentSourceModel; + 'delinquent'?: boolean | undefined; + 'description': string; + 'discount'?: DiscountModel | undefined; + 'email': string; + 'id': string; + 'individual_name'?: string | undefined; + 'invoice_credit_balance'?: { + [key: string]: number; +} | undefined; + 'invoice_prefix'?: string | undefined; + 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'name'?: string | undefined; + 'next_invoice_sequence'?: number | undefined; + 'object': 'customer'; + 'phone'?: string | undefined; + 'preferred_locales'?: string[] | undefined; + 'shipping': ShippingModel; + 'sources'?: { + 'data': PaymentSourceModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'subscriptions'?: { + 'data': SubscriptionModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'tax'?: CustomerTaxModel | undefined; + 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; + 'tax_ids'?: { + 'data': TaxIdModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type AccountRequirementsErrorModel = { + 'code': 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability'; + 'reason': string; + 'requirement': string; +}; + +export type ExternalAccountRequirementsModel = { + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type BankAccountModel = { + 'account'?: string | AccountModel | undefined; + 'account_holder_name': string; + 'account_holder_type': string; + 'account_type': string; + 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; + 'bank_name': string; + 'country': string; + 'currency': string; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'default_for_currency'?: boolean | undefined; + 'fingerprint': string; + 'future_requirements'?: ExternalAccountRequirementsModel | undefined; + 'id': string; + 'last4': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'bank_account'; + 'requirements'?: ExternalAccountRequirementsModel | undefined; + 'routing_number': string; + 'status': string; +}; + +export type ExternalAccountModel = BankAccountModel | CardModel; + +export type AccountRequirementsAlternativeModel = { + 'alternative_fields_due': string[]; + 'original_fields_due': string[]; +}; + +export type AccountFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + 'currently_due': string[]; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountGroupMembershipModel = { + 'payments_pricing': string; +}; + +export type PersonAdditionalTosAcceptanceModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type PersonAdditionalTosAcceptancesModel = { + 'account': PersonAdditionalTosAcceptanceModel; +}; + +export type LegalEntityDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type PersonFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonRelationshipModel = { + 'authorizer': boolean; + 'director': boolean; + 'executive': boolean; + 'legal_guardian': boolean; + 'owner': boolean; + 'percent_ownership': number; + 'representative': boolean; + 'title': string; +}; + +export type PersonRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonEthnicityDetailsModel = { + 'ethnicity': Array<'cuban' | 'hispanic_or_latino' | 'mexican' | 'not_hispanic_or_latino' | 'other_hispanic_or_latino' | 'prefer_not_to_answer' | 'puerto_rican'>; + 'ethnicity_other': string; +}; + +export type PersonRaceDetailsModel = { + 'race': Array<'african_american' | 'american_indian_or_alaska_native' | 'asian' | 'asian_indian' | 'black_or_african_american' | 'chinese' | 'ethiopian' | 'filipino' | 'guamanian_or_chamorro' | 'haitian' | 'jamaican' | 'japanese' | 'korean' | 'native_hawaiian' | 'native_hawaiian_or_other_pacific_islander' | 'nigerian' | 'other_asian' | 'other_black_or_african_american' | 'other_pacific_islander' | 'prefer_not_to_answer' | 'samoan' | 'somali' | 'vietnamese' | 'white'>; + 'race_other': string; +}; + +export type PersonUsCfpbDataModel = { + 'ethnicity_details': PersonEthnicityDetailsModel; + 'race_details': PersonRaceDetailsModel; + 'self_identified_gender': string; +}; + +export type LegalEntityPersonVerificationDocumentModel = { + 'back': string | FileModel; + 'details': string; + 'details_code': string; + 'front': string | FileModel; +}; + +export type LegalEntityPersonVerificationModel = { + 'additional_document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'details'?: string | undefined; + 'details_code'?: string | undefined; + 'document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'status': string; +}; + +export type PersonModel = { + 'account'?: string | undefined; + 'additional_tos_acceptances'?: PersonAdditionalTosAcceptancesModel | undefined; + 'address'?: AddressModel | undefined; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'created': number; + 'dob'?: LegalEntityDobModel | undefined; + 'email'?: string | undefined; + 'first_name'?: string | undefined; + 'first_name_kana'?: string | undefined; + 'first_name_kanji'?: string | undefined; + 'full_name_aliases'?: string[] | undefined; + 'future_requirements'?: PersonFutureRequirementsModel | undefined; + 'gender'?: string | undefined; + 'id': string; + 'id_number_provided'?: boolean | undefined; + 'id_number_secondary_provided'?: boolean | undefined; + 'last_name'?: string | undefined; + 'last_name_kana'?: string | undefined; + 'last_name_kanji'?: string | undefined; + 'maiden_name'?: string | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'nationality'?: string | undefined; + 'object': 'person'; + 'phone'?: string | undefined; + 'political_exposure'?: 'existing' | 'none' | undefined; + 'registered_address'?: AddressModel | undefined; + 'relationship'?: PersonRelationshipModel | undefined; + 'requirements'?: PersonRequirementsModel | undefined; + 'ssn_last_4_provided'?: boolean | undefined; + 'us_cfpb_data'?: PersonUsCfpbDataModel | undefined; + 'verification'?: LegalEntityPersonVerificationModel | undefined; +}; + +export type AccountRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + 'currently_due': string[]; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountBacsDebitPaymentsSettingsModel = { + 'display_name': string; + 'service_user_number': string; +}; + +export type AccountBrandingSettingsModel = { + 'icon': string | FileModel; + 'logo': string | FileModel; + 'primary_color': string; + 'secondary_color': string; +}; + +export type CardIssuingAccountTermsOfServiceModel = { + 'date': number; + 'ip': string; + 'user_agent'?: string | undefined; +}; + +export type AccountCardIssuingSettingsModel = { + 'tos_acceptance'?: CardIssuingAccountTermsOfServiceModel | undefined; +}; + +export type AccountDeclineChargeOnModel = { + 'avs_failure': boolean; + 'cvc_failure': boolean; +}; + +export type AccountCardPaymentsSettingsModel = { + 'decline_on'?: AccountDeclineChargeOnModel | undefined; + 'statement_descriptor_prefix': string; + 'statement_descriptor_prefix_kana': string; + 'statement_descriptor_prefix_kanji': string; +}; + +export type AccountDashboardSettingsModel = { + 'display_name': string; + 'timezone': string; +}; + +export type AccountInvoicesSettingsModel = { + 'default_account_tax_ids': Array; + 'hosted_payment_method_save': 'always' | 'never' | 'offer'; +}; + +export type AccountPaymentsSettingsModel = { + 'statement_descriptor': string; + 'statement_descriptor_kana': string; + 'statement_descriptor_kanji': string; + 'statement_descriptor_prefix_kana': string; + 'statement_descriptor_prefix_kanji': string; +}; + +export type TransferScheduleModel = { + 'delay_days': number; + 'interval': string; + 'monthly_anchor'?: number | undefined; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_anchor'?: string | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type AccountPayoutSettingsModel = { + 'debit_negative_balances': boolean; + 'schedule': TransferScheduleModel; + 'statement_descriptor': string; +}; + +export type AccountSepaDebitPaymentsSettingsModel = { + 'creditor_id'?: string | undefined; +}; + +export type AccountTermsOfServiceModel = { + 'date': number; + 'ip': string; + 'user_agent'?: string | undefined; +}; + +export type AccountTreasurySettingsModel = { + 'tos_acceptance'?: AccountTermsOfServiceModel | undefined; +}; + +export type AccountSettingsModel = { + 'bacs_debit_payments'?: AccountBacsDebitPaymentsSettingsModel | undefined; + 'branding': AccountBrandingSettingsModel; + 'card_issuing'?: AccountCardIssuingSettingsModel | undefined; + 'card_payments': AccountCardPaymentsSettingsModel; + 'dashboard': AccountDashboardSettingsModel; + 'invoices'?: AccountInvoicesSettingsModel | undefined; + 'payments': AccountPaymentsSettingsModel; + 'payouts'?: AccountPayoutSettingsModel | undefined; + 'sepa_debit_payments'?: AccountSepaDebitPaymentsSettingsModel | undefined; + 'treasury'?: AccountTreasurySettingsModel | undefined; +}; + +export type AccountTosAcceptanceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'service_agreement'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type AccountModel = { + 'business_profile'?: AccountBusinessProfileModel | undefined; + 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; + 'capabilities'?: AccountCapabilitiesModel | undefined; + 'charges_enabled'?: boolean | undefined; + 'company'?: LegalEntityCompanyModel | undefined; + 'controller'?: AccountUnificationAccountControllerModel | undefined; + 'country'?: string | undefined; + 'created'?: number | undefined; + 'default_currency'?: string | undefined; + 'details_submitted'?: boolean | undefined; + 'email'?: string | undefined; + 'external_accounts'?: { + 'data': ExternalAccountModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'future_requirements'?: AccountFutureRequirementsModel | undefined; + 'groups'?: AccountGroupMembershipModel | undefined; + 'id': string; + 'individual'?: PersonModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'account'; + 'payouts_enabled'?: boolean | undefined; + 'requirements'?: AccountRequirementsModel | undefined; + 'settings'?: AccountSettingsModel | undefined; + 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; + 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +}; + +export type AccountApplicationAuthorizedModel = { + 'object': ApplicationModel; +}; + +export type AccountApplicationDeauthorizedModel = { + 'object': ApplicationModel; +}; + +export type AccountExternalAccountCreatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountExternalAccountDeletedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountExternalAccountUpdatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountUpdatedModel = { + 'object': AccountModel; +}; + +export type AccountCapabilityFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountCapabilityRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountLinkModel = { + 'created': number; + 'expires_at': number; + 'object': 'account_link'; + 'url': string; +}; + +export type ConnectEmbeddedAccountFeaturesClaimModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; +}; + +export type ConnectEmbeddedAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedAccountFeaturesClaimModel; +}; + +export type ConnectEmbeddedPayoutsFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'edit_payout_schedule': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; + 'standard_payouts': boolean; +}; + +export type ConnectEmbeddedPayoutsConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPayoutsFeaturesModel; +}; + +export type ConnectEmbeddedDisputesListFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedDisputesListConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedDisputesListFeaturesModel; +}; + +export type ConnectEmbeddedBaseFeaturesModel = { + +}; + +export type ConnectEmbeddedBaseConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedBaseFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'send_money': boolean; + 'transfer_balance': boolean; +}; + +export type ConnectEmbeddedFinancialAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = { + 'card_spend_dispute_management': boolean; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountTransactionsFeaturesModel; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedInstantPayoutsPromotionFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardsListFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'disable_stripe_user_authentication': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardsListConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardsListFeaturesModel; +}; + +export type ConnectEmbeddedPaymentsFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentsFeaturesModel; +}; + +export type ConnectEmbeddedPaymentDisputesFeaturesModel = { + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentDisputesConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentDisputesFeaturesModel; +}; + +export type ConnectEmbeddedAccountSessionCreateComponentsModel = { + 'account_management': ConnectEmbeddedAccountConfigClaimModel; + 'account_onboarding': ConnectEmbeddedAccountConfigClaimModel; + 'balances': ConnectEmbeddedPayoutsConfigModel; + 'disputes_list': ConnectEmbeddedDisputesListConfigModel; + 'documents': ConnectEmbeddedBaseConfigClaimModel; + 'financial_account': ConnectEmbeddedFinancialAccountConfigClaimModel; + 'financial_account_transactions': ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel; + 'instant_payouts_promotion': ConnectEmbeddedInstantPayoutsPromotionConfigModel; + 'issuing_card': ConnectEmbeddedIssuingCardConfigClaimModel; + 'issuing_cards_list': ConnectEmbeddedIssuingCardsListConfigClaimModel; + 'notification_banner': ConnectEmbeddedAccountConfigClaimModel; + 'payment_details': ConnectEmbeddedPaymentsConfigClaimModel; + 'payment_disputes': ConnectEmbeddedPaymentDisputesConfigModel; + 'payments': ConnectEmbeddedPaymentsConfigClaimModel; + 'payout_details': ConnectEmbeddedBaseConfigClaimModel; + 'payouts': ConnectEmbeddedPayoutsConfigModel; + 'payouts_list': ConnectEmbeddedBaseConfigClaimModel; + 'tax_registrations': ConnectEmbeddedBaseConfigClaimModel; + 'tax_settings': ConnectEmbeddedBaseConfigClaimModel; +}; + +export type AccountSessionModel = { + 'account': string; + 'client_secret': string; + 'components': ConnectEmbeddedAccountSessionCreateComponentsModel; + 'expires_at': number; + 'livemode': boolean; + 'object': 'account_session'; +}; + +export type ApplePayDomainModel = { + 'created': number; + 'domain_name': string; + 'id': string; + 'livemode': boolean; + 'object': 'apple_pay_domain'; +}; + +export type ApplicationFeeCreatedModel = { + 'object': ApplicationFeeModel; +}; + +export type ApplicationFeeRefundUpdatedModel = { + 'object': FeeRefundModel; +}; + +export type ApplicationFeeRefundedModel = { + 'object': ApplicationFeeModel; +}; + +export type SecretServiceResourceScopeModel = { + 'type': 'account' | 'user'; + 'user'?: string | undefined; +}; + +export type AppsSecretModel = { + 'created': number; + 'deleted'?: boolean | undefined; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'apps.secret'; + 'payload'?: string | undefined; + 'scope': SecretServiceResourceScopeModel; +}; + +export type BalanceAmountBySourceTypeModel = { + 'bank_account'?: number | undefined; + 'card'?: number | undefined; + 'fpx'?: number | undefined; +}; + +export type BalanceAmountModel = { + 'amount': number; + 'currency': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceNetAvailableModel = { + 'amount': number; + 'destination': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceAmountNetModel = { + 'amount': number; + 'currency': string; + 'net_available'?: BalanceNetAvailableModel[] | undefined; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceDetailModel = { + 'available': BalanceAmountModel[]; +}; + +export type BalanceDetailUngatedModel = { + 'available': BalanceAmountModel[]; + 'pending': BalanceAmountModel[]; +}; + +export type BalanceModel = { + 'available': BalanceAmountModel[]; + 'connect_reserved'?: BalanceAmountModel[] | undefined; + 'instant_available'?: BalanceAmountNetModel[] | undefined; + 'issuing'?: BalanceDetailModel | undefined; + 'livemode': boolean; + 'object': 'balance'; + 'pending': BalanceAmountModel[]; + 'refund_and_dispute_prefunding'?: BalanceDetailUngatedModel | undefined; +}; + +export type BalanceAvailableModel = { + 'object': BalanceModel; +}; + +export type BalanceSettingsResourcePayoutScheduleModel = { + 'interval': 'daily' | 'manual' | 'monthly' | 'weekly'; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type BalanceSettingsResourcePayoutsModel = { + 'minimum_balance_by_currency': { + [key: string]: number; +}; + 'schedule': BalanceSettingsResourcePayoutScheduleModel; + 'statement_descriptor': string; + 'status': 'disabled' | 'enabled'; +}; + +export type BalanceSettingsResourceSettlementTimingModel = { + 'delay_days': number; + 'delay_days_override'?: number | undefined; +}; + +export type BalanceSettingsResourcePaymentsModel = { + 'debit_negative_balances': boolean; + 'payouts': BalanceSettingsResourcePayoutsModel; + 'settlement_timing': BalanceSettingsResourceSettlementTimingModel; +}; + +export type BalanceSettingsModel = { + 'object': 'balance_settings'; + 'payments': BalanceSettingsResourcePaymentsModel; +}; + +export type BalanceSettingsUpdatedModel = { + 'object': BalanceSettingsModel; +}; + +export type BankConnectionsResourceAccountNumberDetailsModel = { + 'expected_expiry_date': number; + 'identifier_type': 'account_number' | 'tokenized_account_number'; + 'status': 'deactivated' | 'transactable'; + 'supported_networks': 'ach'[]; +}; + +export type BankConnectionsResourceAccountholderModel = { + 'account'?: string | AccountModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'type': 'account' | 'customer'; +}; + +export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = { + 'available': { + [key: string]: number; +}; +}; + +export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = { + 'used': { + [key: string]: number; +}; +}; + +export type BankConnectionsResourceBalanceModel = { + 'as_of': number; + 'cash'?: BankConnectionsResourceBalanceApiResourceCashBalanceModel | undefined; + 'credit'?: BankConnectionsResourceBalanceApiResourceCreditBalanceModel | undefined; + 'current': { + [key: string]: number; +}; + 'type': 'cash' | 'credit'; +}; + +export type BankConnectionsResourceBalanceRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceLinkAccountSessionFiltersModel = { + 'account_subcategories': Array<'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'savings'>; + 'countries': string[]; +}; + +export type BankConnectionsResourceOwnershipRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionRefreshModel = { + 'id': string; + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = { + 'posted_at': number; + 'void_at': number; +}; + +export type ThresholdsResourceUsageAlertFilterModel = { + 'customer': string | CustomerModel; + 'type': 'customer'; +}; + +export type BillingMeterResourceCustomerMappingSettingsModel = { + 'event_payload_key': string; + 'type': 'by_id'; +}; + +export type BillingMeterResourceAggregationSettingsModel = { + 'formula': 'count' | 'last' | 'sum'; +}; + +export type BillingMeterResourceBillingMeterStatusTransitionsModel = { + 'deactivated_at': number; +}; + +export type BillingMeterResourceBillingMeterValueModel = { + 'event_payload_key': string; +}; + +export type BillingMeterModel = { + 'created': number; + 'customer_mapping': BillingMeterResourceCustomerMappingSettingsModel; + 'default_aggregation': BillingMeterResourceAggregationSettingsModel; + 'display_name': string; + 'event_name': string; + 'event_time_window': 'day' | 'hour'; + 'id': string; + 'livemode': boolean; + 'object': 'billing.meter'; + 'status': 'active' | 'inactive'; + 'status_transitions': BillingMeterResourceBillingMeterStatusTransitionsModel; + 'updated': number; + 'value_settings': BillingMeterResourceBillingMeterValueModel; +}; + +export type ThresholdsResourceUsageThresholdConfigModel = { + 'filters': ThresholdsResourceUsageAlertFilterModel[]; + 'gte': number; + 'meter': string | BillingMeterModel; + 'recurrence': 'one_time'; +}; + +export type BillingAlertModel = { + 'alert_type': 'usage_threshold'; + 'id': string; + 'livemode': boolean; + 'object': 'billing.alert'; + 'status': 'active' | 'archived' | 'inactive'; + 'title': string; + 'usage_threshold': ThresholdsResourceUsageThresholdConfigModel; +}; + +export type BillingAlertTriggered_1Model = { + 'alert': BillingAlertModel; + 'created': number; + 'customer': string; + 'livemode': boolean; + 'object': 'billing.alert_triggered'; + 'value': number; +}; + +export type BillingAlertTriggeredModel = { + 'object': BillingAlertTriggered_1Model; +}; + +export type CreditBalanceModel = { + 'available_balance': BillingCreditGrantsResourceAmountModel; + 'ledger_balance': BillingCreditGrantsResourceAmountModel; +}; + +export type BillingCreditBalanceSummaryModel = { + 'balances': CreditBalanceModel[]; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'livemode': boolean; + 'object': 'billing.credit_balance_summary'; +}; + +export type BillingCreditBalanceTransactionCreatedModel = { + 'object': BillingCreditBalanceTransactionModel; +}; + +export type BillingCreditGrantCreatedModel = { + 'object': BillingCreditGrantModel; +}; + +export type BillingCreditGrantUpdatedModel = { + 'object': BillingCreditGrantModel; +}; + +export type BillingMeterCreatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterDeactivatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterReactivatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterUpdatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterEventModel = { + 'created': number; + 'event_name': string; + 'identifier': string; + 'livemode': boolean; + 'object': 'billing.meter_event'; + 'payload': { + [key: string]: string; +}; + 'timestamp': number; +}; + +export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = { + 'identifier': string; +}; + +export type BillingMeterEventAdjustmentModel = { + 'cancel': BillingMeterResourceBillingMeterEventAdjustmentCancelModel; + 'event_name': string; + 'livemode': boolean; + 'object': 'billing.meter_event_adjustment'; + 'status': 'complete' | 'pending'; + 'type': 'cancel'; +}; + +export type BillingMeterEventSummaryModel = { + 'aggregated_value': number; + 'end_time': number; + 'id': string; + 'livemode': boolean; + 'meter': string; + 'object': 'billing.meter_event_summary'; + 'start_time': number; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = { + 'subscription': string; + 'subscription_item'?: string | undefined; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = { + 'subscription_details': BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel; + 'type': 'subscription_details'; +}; + +export type PortalBusinessProfileModel = { + 'headline': string; + 'privacy_policy_url': string; + 'terms_of_service_url': string; +}; + +export type PortalCustomerUpdateModel = { + 'allowed_updates': Array<'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id'>; + 'enabled': boolean; +}; + +export type PortalInvoiceListModel = { + 'enabled': boolean; +}; + +export type PortalPaymentMethodUpdateModel = { + 'enabled': boolean; + 'payment_method_configuration': string; +}; + +export type PortalSubscriptionCancellationReasonModel = { + 'enabled': boolean; + 'options': Array<'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'>; +}; + +export type PortalSubscriptionCancelModel = { + 'cancellation_reason': PortalSubscriptionCancellationReasonModel; + 'enabled': boolean; + 'mode': 'at_period_end' | 'immediately'; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; +}; + +export type PortalSubscriptionUpdateProductAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PortalSubscriptionUpdateProductModel = { + 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantityModel; + 'prices': string[]; + 'product': string; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = { + 'type': 'decreasing_item_amount' | 'shortening_interval'; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndModel = { + 'conditions': PortalResourceScheduleUpdateAtPeriodEndConditionModel[]; +}; + +export type PortalSubscriptionUpdateModel = { + 'default_allowed_updates': Array<'price' | 'promotion_code' | 'quantity'>; + 'enabled': boolean; + 'products'?: PortalSubscriptionUpdateProductModel[] | undefined; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'schedule_at_period_end': PortalResourceScheduleUpdateAtPeriodEndModel; + 'trial_update_behavior': 'continue_trial' | 'end_trial'; +}; + +export type PortalFeaturesModel = { + 'customer_update': PortalCustomerUpdateModel; + 'invoice_history': PortalInvoiceListModel; + 'payment_method_update': PortalPaymentMethodUpdateModel; + 'subscription_cancel': PortalSubscriptionCancelModel; + 'subscription_update': PortalSubscriptionUpdateModel; +}; + +export type PortalLoginPageModel = { + 'enabled': boolean; + 'url': string; +}; + +export type BillingPortalConfigurationModel = { + 'active': boolean; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'business_profile': PortalBusinessProfileModel; + 'created': number; + 'default_return_url': string; + 'features': PortalFeaturesModel; + 'id': string; + 'is_default': boolean; + 'livemode': boolean; + 'login_page': PortalLoginPageModel; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'billing_portal.configuration'; + 'updated': number; +}; + +export type BillingPortalConfigurationCreatedModel = { + 'object': BillingPortalConfigurationModel; +}; + +export type BillingPortalConfigurationUpdatedModel = { + 'object': BillingPortalConfigurationModel; +}; + +export type PortalFlowsAfterCompletionHostedConfirmationModel = { + 'custom_message': string; +}; + +export type PortalFlowsAfterCompletionRedirectModel = { + 'return_url': string; +}; + +export type PortalFlowsFlowAfterCompletionModel = { + 'hosted_confirmation': PortalFlowsAfterCompletionHostedConfirmationModel; + 'redirect': PortalFlowsAfterCompletionRedirectModel; + 'type': 'hosted_confirmation' | 'portal_homepage' | 'redirect'; +}; + +export type PortalFlowsCouponOfferModel = { + 'coupon': string; +}; + +export type PortalFlowsRetentionModel = { + 'coupon_offer': PortalFlowsCouponOfferModel; + 'type': 'coupon_offer'; +}; + +export type PortalFlowsFlowSubscriptionCancelModel = { + 'retention': PortalFlowsRetentionModel; + 'subscription': string; +}; + +export type PortalFlowsFlowSubscriptionUpdateModel = { + 'subscription': string; +}; + +export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = { + 'coupon': string; + 'promotion_code': string; +}; + +export type PortalFlowsSubscriptionUpdateConfirmItemModel = { + 'id': string; + 'price': string; + 'quantity'?: number | undefined; +}; + +export type PortalFlowsFlowSubscriptionUpdateConfirmModel = { + 'discounts': PortalFlowsSubscriptionUpdateConfirmDiscountModel[]; + 'items': PortalFlowsSubscriptionUpdateConfirmItemModel[]; + 'subscription': string; +}; + +export type PortalFlowsFlowModel = { + 'after_completion': PortalFlowsFlowAfterCompletionModel; + 'subscription_cancel': PortalFlowsFlowSubscriptionCancelModel; + 'subscription_update': PortalFlowsFlowSubscriptionUpdateModel; + 'subscription_update_confirm': PortalFlowsFlowSubscriptionUpdateConfirmModel; + 'type': 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'subscription_update_confirm'; +}; + +export type BillingPortalSessionModel = { + 'configuration': string | BillingPortalConfigurationModel; + 'created': number; + 'customer': string; + 'flow': PortalFlowsFlowModel; + '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'; + 'object': 'billing_portal.session'; + 'on_behalf_of': string; + 'return_url': string; + 'url': string; +}; + +export type BillingPortalSessionCreatedModel = { + 'object': BillingPortalSessionModel; +}; + +export type CapabilityModel = { + 'account': string | AccountModel; + 'future_requirements'?: AccountCapabilityFutureRequirementsModel | undefined; + 'id': string; + 'object': 'capability'; + 'requested': boolean; + 'requested_at': number; + 'requirements'?: AccountCapabilityRequirementsModel | undefined; + 'status': 'active' | 'inactive' | 'pending' | 'unrequested'; +}; + +export type CapabilityUpdatedModel = { + 'object': CapabilityModel; +}; + +export type CashBalanceFundsAvailableModel = { + 'object': CashBalanceModel; +}; + +export type ChargeCapturedModel = { + 'object': ChargeModel; +}; + +export type ChargeDisputeClosedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeCreatedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeFundsReinstatedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeFundsWithdrawnModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeUpdatedModel = { + 'object': DisputeModel; +}; + +export type ChargeExpiredModel = { + 'object': ChargeModel; +}; + +export type ChargeFailedModel = { + 'object': ChargeModel; +}; + +export type ChargePendingModel = { + 'object': ChargeModel; +}; + +export type ChargeRefundUpdatedModel = { + 'object': RefundModel; +}; + +export type ChargeRefundedModel = { + 'object': ChargeModel; +}; + +export type ChargeSucceededModel = { + 'object': ChargeModel; +}; + +export type ChargeUpdatedModel = { + 'object': ChargeModel; +}; + +export type PaymentPagesCheckoutSessionAdaptivePricingModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = { + 'allow_promotion_codes': boolean; + 'enabled': boolean; + 'expires_at': number; + 'url': string; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationModel = { + 'recovery': PaymentPagesCheckoutSessionAfterExpirationRecoveryModel; +}; + +export type PaymentPagesCheckoutSessionAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsModel = { + 'background_color': string; + 'border_style': 'pill' | 'rectangular' | 'rounded'; + 'button_color': string; + 'display_name': string; + 'font_family': string; + 'icon': PaymentPagesCheckoutSessionBrandingSettingsIconModel; + 'logo': PaymentPagesCheckoutSessionBrandingSettingsLogoModel; +}; + +export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = { + 'address': AddressModel; + 'name': string; +}; + +export type PaymentPagesCheckoutSessionCollectedInformationModel = { + 'business_name': string; + 'individual_name': string; + 'shipping_details': PaymentPagesCheckoutSessionCheckoutAddressDetailsModel; +}; + +export type PaymentPagesCheckoutSessionConsentModel = { + 'promotions': 'opt_in' | 'opt_out'; + 'terms_of_service': 'accepted'; +}; + +export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentPagesCheckoutSessionConsentCollectionModel = { + 'payment_method_reuse_agreement': PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel; + 'promotions': 'auto' | 'none'; + 'terms_of_service': 'none' | 'required'; +}; + +export type PaymentPagesCheckoutSessionCurrencyConversionModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'fx_rate': string; + 'source_currency': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = { + 'default_value': string; + 'options': PaymentPagesCheckoutSessionCustomFieldsOptionModel[]; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = { + 'custom': string; + 'type': 'custom'; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsTextModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsModel = { + 'dropdown'?: PaymentPagesCheckoutSessionCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentPagesCheckoutSessionCustomFieldsLabelModel; + 'numeric'?: PaymentPagesCheckoutSessionCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentPagesCheckoutSessionCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentPagesCheckoutSessionCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentPagesCheckoutSessionCustomTextModel = { + 'after_submit': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'shipping_address': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'submit': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'terms_of_service_acceptance': PaymentPagesCheckoutSessionCustomTextPositionModel; +}; + +export type PaymentPagesCheckoutSessionTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomerDetailsModel = { + 'address': AddressModel; + 'business_name': string; + 'email': string; + 'individual_name': string; + 'name': string; + 'phone': string; + 'tax_exempt': 'exempt' | 'none' | 'reverse'; + 'tax_ids': PaymentPagesCheckoutSessionTaxIdModel[]; +}; + +export type PaymentPagesCheckoutSessionDiscountModel = { + 'coupon': string | CouponModel; + 'promotion_code': string | PromotionCodeModel; +}; + +export type InvoiceSettingCheckoutRenderingOptionsModel = { + 'amount_tax_display': string; + 'template': string; +}; + +export type PaymentPagesCheckoutSessionInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'description': string; + 'footer': string; + 'issuer': ConnectAccountReferenceModel; + 'metadata': { + [key: string]: string; +}; + 'rendering_options': InvoiceSettingCheckoutRenderingOptionsModel; +}; + +export type PaymentPagesCheckoutSessionInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettingsModel; +}; + +export type LineItemsDiscountAmountModel = { + 'amount': number; + 'discount': DiscountModel; +}; + +export type ItemModel = { + 'amount_discount': number; + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'currency': string; + 'description': string; + 'discounts'?: LineItemsDiscountAmountModel[] | undefined; + 'id': string; + 'object': 'item'; + 'price': PriceModel; + 'quantity': number; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionNameCollectionModel = { + 'business'?: PaymentPagesCheckoutSessionBusinessNameModel | undefined; + 'individual'?: PaymentPagesCheckoutSessionIndividualNameModel | undefined; +}; + +export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PaymentPagesCheckoutSessionOptionalItemModel = { + 'adjustable_quantity': PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = { + 'custom_message': string; +}; + +export type PaymentLinksResourceCompletionBehaviorRedirectModel = { + 'url': string; +}; + +export type PaymentLinksResourceAfterCompletionModel = { + 'hosted_confirmation'?: PaymentLinksResourceCompletionBehaviorConfirmationPageModel | undefined; + 'redirect'?: PaymentLinksResourceCompletionBehaviorRedirectModel | undefined; + 'type': 'hosted_confirmation' | 'redirect'; +}; + +export type PaymentLinksResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type PaymentLinksResourcePaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentLinksResourceConsentCollectionModel = { + 'payment_method_reuse_agreement': PaymentLinksResourcePaymentMethodReuseAgreementModel; + 'promotions': 'auto' | 'none'; + 'terms_of_service': 'none' | 'required'; +}; + +export type PaymentLinksResourceCustomFieldsDropdownOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentLinksResourceCustomFieldsDropdownModel = { + 'default_value': string; + 'options': PaymentLinksResourceCustomFieldsDropdownOptionModel[]; +}; + +export type PaymentLinksResourceCustomFieldsLabelModel = { + 'custom': string; + 'type': 'custom'; +}; + +export type PaymentLinksResourceCustomFieldsNumericModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; +}; + +export type PaymentLinksResourceCustomFieldsTextModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; +}; + +export type PaymentLinksResourceCustomFieldsModel = { + 'dropdown'?: PaymentLinksResourceCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentLinksResourceCustomFieldsLabelModel; + 'numeric'?: PaymentLinksResourceCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentLinksResourceCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentLinksResourceCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentLinksResourceCustomTextModel = { + 'after_submit': PaymentLinksResourceCustomTextPositionModel; + 'shipping_address': PaymentLinksResourceCustomTextPositionModel; + 'submit': PaymentLinksResourceCustomTextPositionModel; + 'terms_of_service_acceptance': PaymentLinksResourceCustomTextPositionModel; +}; + +export type PaymentLinksResourceInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'description': string; + 'footer': string; + 'issuer': ConnectAccountReferenceModel; + 'metadata': { + [key: string]: string; +}; + 'rendering_options': InvoiceSettingCheckoutRenderingOptionsModel; +}; + +export type PaymentLinksResourceInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data': PaymentLinksResourceInvoiceSettingsModel; +}; + +export type PaymentLinksResourceBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceNameCollectionModel = { + 'business'?: PaymentLinksResourceBusinessNameModel | undefined; + 'individual'?: PaymentLinksResourceIndividualNameModel | undefined; +}; + +export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PaymentLinksResourceOptionalItemModel = { + 'adjustable_quantity': PaymentLinksResourceOptionalItemAdjustableQuantityModel; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourcePaymentIntentDataModel = { + 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'description': string; + 'metadata': { + [key: string]: string; +}; + 'setup_future_usage': 'off_session' | 'on_session'; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'transfer_group': string; +}; + +export type PaymentLinksResourcePhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentLinksResourceCompletedSessionsModel = { + 'count': number; + 'limit': number; +}; + +export type PaymentLinksResourceRestrictionsModel = { + 'completed_sessions': PaymentLinksResourceCompletedSessionsModel; +}; + +export type PaymentLinksResourceShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentLinksResourceShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = { + 'issuer': ConnectAccountReferenceModel; +}; + +export type PaymentLinksResourceSubscriptionDataModel = { + 'description': string; + 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettingsModel; + 'metadata': { + [key: string]: string; +}; + 'trial_period_days': number; + 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; +}; + +export type PaymentLinksResourceTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentLinksResourceTransferDataModel = { + 'amount': number; + 'destination': string | AccountModel; +}; + +export type PaymentLinkModel = { + 'active': boolean; + 'after_completion': PaymentLinksResourceAfterCompletionModel; + 'allow_promotion_codes': boolean; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'application_fee_amount': number; + 'application_fee_percent': number; + 'automatic_tax': PaymentLinksResourceAutomaticTaxModel; + 'billing_address_collection': 'auto' | 'required'; + 'consent_collection': PaymentLinksResourceConsentCollectionModel; + 'currency': string; + 'custom_fields': PaymentLinksResourceCustomFieldsModel[]; + 'custom_text': PaymentLinksResourceCustomTextModel; + 'customer_creation': 'always' | 'if_required'; + 'id': string; + 'inactive_message': string; + 'invoice_creation': PaymentLinksResourceInvoiceCreationModel; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name_collection'?: PaymentLinksResourceNameCollectionModel | undefined; + 'object': 'payment_link'; + 'on_behalf_of': string | AccountModel; + 'optional_items'?: PaymentLinksResourceOptionalItemModel[] | undefined; + 'payment_intent_data': PaymentLinksResourcePaymentIntentDataModel; + 'payment_method_collection': 'always' | 'if_required'; + 'payment_method_types': Array<'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'klarna' | 'konbini' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' | 'pay_by_bank' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'phone_number_collection': PaymentLinksResourcePhoneNumberCollectionModel; + 'restrictions': PaymentLinksResourceRestrictionsModel; + 'shipping_address_collection': PaymentLinksResourceShippingAddressCollectionModel; + 'shipping_options': PaymentLinksResourceShippingOptionModel[]; + 'submit_type': 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + 'subscription_data': PaymentLinksResourceSubscriptionDataModel; + 'tax_id_collection': PaymentLinksResourceTaxIdCollectionModel; + 'transfer_data': PaymentLinksResourceTransferDataModel; + 'url': string; +}; + +export type CheckoutAcssDebitMandateOptionsModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type CheckoutAcssDebitPaymentMethodOptionsModel = { + 'currency'?: 'cad' | 'usd' | undefined; + 'mandate_options'?: CheckoutAcssDebitMandateOptionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type CheckoutAffirmPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlipayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlmaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutAmazonPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutAuBecsDebitPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutBacsDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutBancontactPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutBilliePaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutBoletoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutCardInstallmentsOptionsModel = { + 'enabled'?: boolean | undefined; +}; + +export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = { + 'brands_blocked'?: Array<'american_express' | 'discover_global_network' | 'mastercard' | 'visa'> | undefined; +}; + +export type CheckoutCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'installments'?: CheckoutCardInstallmentsOptionsModel | 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'; + 'restrictions'?: PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'statement_descriptor_suffix_kana'?: string | undefined; + 'statement_descriptor_suffix_kanji'?: string | undefined; +}; + +export type CheckoutCashappPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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'; +}; + +export type CheckoutCustomerBalancePaymentMethodOptionsModel = { + 'bank_transfer'?: CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel | undefined; + 'funding_type': 'bank_transfer'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutEpsPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutFpxPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGiropayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGrabPayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutIdealPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutKlarnaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutKonbiniPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKrCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutLinkPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutMobilepayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutMultibancoPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutOxxoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutP24PaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaynowPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaypalPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale': string; + 'reference': string; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutPixPaymentMethodOptionsModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutRevolutPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutSatispayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutSepaDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutSofortPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutSwishPaymentMethodOptionsModel = { + 'reference': string; +}; + +export type CheckoutTwintPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutUsBankAccountPaymentMethodOptionsModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | undefined; +}; + +export type CheckoutSessionPaymentMethodOptionsModel = { + 'acss_debit'?: CheckoutAcssDebitPaymentMethodOptionsModel | undefined; + 'affirm'?: CheckoutAffirmPaymentMethodOptionsModel | undefined; + 'afterpay_clearpay'?: CheckoutAfterpayClearpayPaymentMethodOptionsModel | undefined; + 'alipay'?: CheckoutAlipayPaymentMethodOptionsModel | undefined; + 'alma'?: CheckoutAlmaPaymentMethodOptionsModel | undefined; + 'amazon_pay'?: CheckoutAmazonPayPaymentMethodOptionsModel | undefined; + 'au_becs_debit'?: CheckoutAuBecsDebitPaymentMethodOptionsModel | undefined; + 'bacs_debit'?: CheckoutBacsDebitPaymentMethodOptionsModel | undefined; + 'bancontact'?: CheckoutBancontactPaymentMethodOptionsModel | undefined; + 'billie'?: CheckoutBilliePaymentMethodOptionsModel | undefined; + 'boleto'?: CheckoutBoletoPaymentMethodOptionsModel | undefined; + 'card'?: CheckoutCardPaymentMethodOptionsModel | undefined; + 'cashapp'?: CheckoutCashappPaymentMethodOptionsModel | undefined; + 'customer_balance'?: CheckoutCustomerBalancePaymentMethodOptionsModel | undefined; + 'eps'?: CheckoutEpsPaymentMethodOptionsModel | undefined; + 'fpx'?: CheckoutFpxPaymentMethodOptionsModel | undefined; + 'giropay'?: CheckoutGiropayPaymentMethodOptionsModel | undefined; + 'grabpay'?: CheckoutGrabPayPaymentMethodOptionsModel | undefined; + 'ideal'?: CheckoutIdealPaymentMethodOptionsModel | undefined; + 'kakao_pay'?: CheckoutKakaoPayPaymentMethodOptionsModel | undefined; + 'klarna'?: CheckoutKlarnaPaymentMethodOptionsModel | undefined; + 'konbini'?: CheckoutKonbiniPaymentMethodOptionsModel | undefined; + 'kr_card'?: CheckoutKrCardPaymentMethodOptionsModel | undefined; + 'link'?: CheckoutLinkPaymentMethodOptionsModel | undefined; + 'mobilepay'?: CheckoutMobilepayPaymentMethodOptionsModel | undefined; + 'multibanco'?: CheckoutMultibancoPaymentMethodOptionsModel | undefined; + 'naver_pay'?: CheckoutNaverPayPaymentMethodOptionsModel | undefined; + 'oxxo'?: CheckoutOxxoPaymentMethodOptionsModel | undefined; + 'p24'?: CheckoutP24PaymentMethodOptionsModel | undefined; + 'payco'?: CheckoutPaycoPaymentMethodOptionsModel | undefined; + 'paynow'?: CheckoutPaynowPaymentMethodOptionsModel | undefined; + 'paypal'?: CheckoutPaypalPaymentMethodOptionsModel | undefined; + 'pix'?: CheckoutPixPaymentMethodOptionsModel | undefined; + 'revolut_pay'?: CheckoutRevolutPayPaymentMethodOptionsModel | undefined; + 'samsung_pay'?: CheckoutSamsungPayPaymentMethodOptionsModel | undefined; + 'satispay'?: CheckoutSatispayPaymentMethodOptionsModel | undefined; + 'sepa_debit'?: CheckoutSepaDebitPaymentMethodOptionsModel | undefined; + 'sofort'?: CheckoutSofortPaymentMethodOptionsModel | undefined; + 'swish'?: CheckoutSwishPaymentMethodOptionsModel | undefined; + 'twint'?: CheckoutTwintPaymentMethodOptionsModel | undefined; + 'us_bank_account'?: CheckoutUsBankAccountPaymentMethodOptionsModel | undefined; +}; + +export type PaymentPagesCheckoutSessionPermissionsModel = { + 'update_shipping_details': 'client_only' | 'server_only'; +}; + +export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = { + 'allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_remove': 'disabled' | 'enabled'; + 'payment_method_save': 'disabled' | 'enabled'; +}; + +export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentPagesCheckoutSessionShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate': string | ShippingRateModel; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentPagesCheckoutSessionTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping': number; + 'amount_tax': number; + 'breakdown'?: PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel | undefined; +}; + +export type CheckoutLinkWalletOptionsModel = { + 'display'?: 'auto' | 'never' | undefined; +}; + +export type CheckoutSessionWalletOptionsModel = { + 'link'?: CheckoutLinkWalletOptionsModel | undefined; +}; + +export type CheckoutSessionModel = { + 'adaptive_pricing': PaymentPagesCheckoutSessionAdaptivePricingModel; + 'after_expiration': PaymentPagesCheckoutSessionAfterExpirationModel; + 'allow_promotion_codes': boolean; + 'amount_subtotal': number; + 'amount_total': number; + 'automatic_tax': PaymentPagesCheckoutSessionAutomaticTaxModel; + 'billing_address_collection': 'auto' | 'required'; + 'branding_settings'?: PaymentPagesCheckoutSessionBrandingSettingsModel | undefined; + 'cancel_url': string; + 'client_reference_id': string; + 'client_secret': string; + 'collected_information': PaymentPagesCheckoutSessionCollectedInformationModel; + 'consent': PaymentPagesCheckoutSessionConsentModel; + 'consent_collection': PaymentPagesCheckoutSessionConsentCollectionModel; + 'created': number; + 'currency': string; + 'currency_conversion': PaymentPagesCheckoutSessionCurrencyConversionModel; + 'custom_fields': PaymentPagesCheckoutSessionCustomFieldsModel[]; + 'custom_text': PaymentPagesCheckoutSessionCustomTextModel; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_creation': 'always' | 'if_required'; + 'customer_details': PaymentPagesCheckoutSessionCustomerDetailsModel; + 'customer_email': string; + 'discounts': PaymentPagesCheckoutSessionDiscountModel[]; + 'excluded_payment_method_types'?: string[] | undefined; + 'expires_at': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'invoice_creation': PaymentPagesCheckoutSessionInvoiceCreationModel; + 'line_items'?: { + 'data': ItemModel[]; + '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'; + 'metadata': { + [key: string]: string; +}; + 'mode': 'payment' | 'setup' | 'subscription'; + 'name_collection'?: PaymentPagesCheckoutSessionNameCollectionModel | undefined; + 'object': 'checkout.session'; + 'optional_items'?: PaymentPagesCheckoutSessionOptionalItemModel[] | undefined; + 'origin_context': 'mobile_app' | 'web'; + 'payment_intent': string | PaymentIntentModel; + 'payment_link': string | PaymentLinkModel; + 'payment_method_collection': 'always' | 'if_required'; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': CheckoutSessionPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'payment_status': 'no_payment_required' | 'paid' | 'unpaid'; + 'permissions': PaymentPagesCheckoutSessionPermissionsModel; + 'phone_number_collection'?: PaymentPagesCheckoutSessionPhoneNumberCollectionModel | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'recovered_from': string; + 'redirect_on_completion'?: 'always' | 'if_required' | 'never' | undefined; + 'return_url'?: string | undefined; + 'saved_payment_method_options': PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel; + 'setup_intent': string | SetupIntentModel; + 'shipping_address_collection': PaymentPagesCheckoutSessionShippingAddressCollectionModel; + 'shipping_cost': PaymentPagesCheckoutSessionShippingCostModel; + 'shipping_options': PaymentPagesCheckoutSessionShippingOptionModel[]; + 'status': 'complete' | 'expired' | 'open'; + 'submit_type': 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + 'subscription': string | SubscriptionModel; + 'success_url': string; + 'tax_id_collection'?: PaymentPagesCheckoutSessionTaxIdCollectionModel | undefined; + 'total_details': PaymentPagesCheckoutSessionTotalDetailsModel; + 'ui_mode': 'custom' | 'embedded' | 'hosted'; + 'url': string; + 'wallet_options': CheckoutSessionWalletOptionsModel; +}; + +export type CheckoutSessionAsyncPaymentFailedModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionAsyncPaymentSucceededModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionCompletedModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionExpiredModel = { + 'object': CheckoutSessionModel; +}; + +export type ClimateRemovalsBeneficiaryModel = { + 'public_name': string; +}; + +export type ClimateRemovalsLocationModel = { + 'city': string; + 'country': string; + 'latitude': number; + 'longitude': number; + 'region': string; +}; + +export type ClimateSupplierModel = { + 'id': string; + 'info_url': string; + 'livemode': boolean; + 'locations': ClimateRemovalsLocationModel[]; + 'name': string; + 'object': 'climate.supplier'; + 'removal_pathway': 'biomass_carbon_removal_and_storage' | 'direct_air_capture' | 'enhanced_weathering'; +}; + +export type ClimateRemovalsOrderDeliveriesModel = { + 'delivered_at': number; + 'location': ClimateRemovalsLocationModel; + 'metric_tons': string; + 'registry_url': string; + 'supplier': ClimateSupplierModel; +}; + +export type ClimateRemovalsProductsPriceModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; +}; + +export type ClimateProductModel = { + 'created': number; + 'current_prices_per_metric_ton': { + [key: string]: ClimateRemovalsProductsPriceModel; +}; + 'delivery_year': number; + 'id': string; + 'livemode': boolean; + 'metric_tons_available': string; + 'name': string; + 'object': 'climate.product'; + 'suppliers': ClimateSupplierModel[]; +}; + +export type ClimateOrderModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; + 'beneficiary'?: ClimateRemovalsBeneficiaryModel | undefined; + 'canceled_at': number; + 'cancellation_reason': 'expired' | 'product_unavailable' | 'requested'; + 'certificate': string; + 'confirmed_at': number; + 'created': number; + 'currency': string; + 'delayed_at': number; + 'delivered_at': number; + 'delivery_details': ClimateRemovalsOrderDeliveriesModel[]; + 'expected_delivery_year': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'metric_tons': string; + 'object': 'climate.order'; + 'product': string | ClimateProductModel; + 'product_substituted_at': number; + 'status': 'awaiting_funds' | 'canceled' | 'confirmed' | 'delivered' | 'open'; +}; + +export type ClimateOrderCanceledModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderCreatedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderDelayedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderDeliveredModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderProductSubstitutedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateProductCreatedModel = { + 'object': ClimateProductModel; +}; + +export type ClimateProductPricingUpdatedModel = { + 'object': ClimateProductModel; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = { + 'ip_address': string; + 'user_agent': string; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = { + 'online': ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel; + 'type': string; +}; + +export type ConfirmationTokensResourceMandateDataModel = { + 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = { + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = { + 'cvc_token': string; + 'installments'?: ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsModel = { + 'card': ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel; +}; + +export type ConfirmationTokensResourcePaymentMethodPreviewModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'customer': string | CustomerModel; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type ConfirmationTokensResourceShippingModel = { + 'address': AddressModel; + 'name': string; + 'phone': string; +}; + +export type ConfirmationTokenModel = { + 'created': number; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'mandate_data'?: ConfirmationTokensResourceMandateDataModel | undefined; + 'object': 'confirmation_token'; + 'payment_intent': string; + 'payment_method_options': ConfirmationTokensResourcePaymentMethodOptionsModel; + 'payment_method_preview': ConfirmationTokensResourcePaymentMethodPreviewModel; + 'return_url': string; + 'setup_future_usage': 'off_session' | 'on_session'; + 'setup_intent': string; + 'shipping': ConfirmationTokensResourceShippingModel; + 'use_stripe_sdk': boolean; +}; + +export type CountrySpecVerificationFieldDetailsModel = { + 'additional': string[]; + 'minimum': string[]; +}; + +export type CountrySpecVerificationFieldsModel = { + 'company': CountrySpecVerificationFieldDetailsModel; + 'individual': CountrySpecVerificationFieldDetailsModel; +}; + +export type CountrySpecModel = { + 'default_currency': string; + 'id': string; + 'object': 'country_spec'; + 'supported_bank_account_currencies': { + [key: string]: string[]; +}; + 'supported_payment_currencies': string[]; + 'supported_payment_methods': string[]; + 'supported_transfer_countries': string[]; + 'verification_fields': CountrySpecVerificationFieldsModel; +}; + +export type CouponCreatedModel = { + 'object': CouponModel; +}; + +export type CouponDeletedModel = { + 'object': CouponModel; +}; + +export type CouponUpdatedModel = { + 'object': CouponModel; +}; + +export type CustomerBalanceTransactionModel = { + 'amount': number; + 'checkout_session': string | CheckoutSessionModel; + 'created': number; + 'credit_note': string | CreditNoteModel; + 'currency': string; + 'customer': string | CustomerModel; + 'description': string; + 'ending_balance': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'customer_balance_transaction'; + 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; +}; + +export type CreditNotesPretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'type': 'credit_balance_transaction' | 'discount'; +}; + +export type CreditNoteLineItemModel = { + 'amount': number; + 'description': string; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'id': string; + 'invoice_line_item'?: string | undefined; + 'livemode': boolean; + 'object': 'credit_note_line_item'; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'quantity': number; + 'tax_rates': TaxRateModel[]; + 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'type': 'custom_line_item' | 'invoice_line_item'; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type CreditNotesPaymentRecordRefundModel = { + 'payment_record': string; + 'refund_group': string; +}; + +export type CreditNoteRefundModel = { + 'amount_refunded': number; + 'payment_record_refund': CreditNotesPaymentRecordRefundModel; + 'refund': string | RefundModel; + 'type': 'payment_record_refund' | 'refund'; +}; + +export type CreditNoteModel = { + 'amount': number; + 'amount_shipping': number; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_balance_transaction': string | CustomerBalanceTransactionModel; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'effective_at': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'lines': { + 'data': CreditNoteLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'memo': string; + 'metadata': { + [key: string]: string; +}; + 'number': string; + 'object': 'credit_note'; + 'out_of_band_amount': number; + 'pdf': string; + 'post_payment_amount': number; + 'pre_payment_amount': number; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'reason': 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory'; + 'refunds': CreditNoteRefundModel[]; + 'shipping_cost': InvoicesResourceShippingCostModel; + 'status': 'issued' | 'void'; + 'subtotal': number; + 'subtotal_excluding_tax': number; + 'total': number; + 'total_excluding_tax': number; + 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'type': 'mixed' | 'post_payment' | 'pre_payment'; + 'voided_at': number; +}; + +export type CreditNoteCreatedModel = { + 'object': CreditNoteModel; +}; + +export type CreditNoteUpdatedModel = { + 'object': CreditNoteModel; +}; + +export type CreditNoteVoidedModel = { + 'object': CreditNoteModel; +}; + +export type CustomerCreatedModel = { + 'object': CustomerModel; +}; + +export type CustomerDeletedModel = { + 'object': CustomerModel; +}; + +export type CustomerDiscountCreatedModel = { + 'object': DiscountModel; +}; + +export type CustomerDiscountDeletedModel = { + 'object': DiscountModel; +}; + +export type CustomerDiscountUpdatedModel = { + 'object': DiscountModel; +}; + +export type CustomerSourceCreatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSourceDeletedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSourceExpiringModel = { + 'object': CardModel | SourceModel; +}; + +export type CustomerSourceUpdatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSubscriptionCreatedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionDeletedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPausedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPendingUpdateAppliedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPendingUpdateExpiredModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionResumedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionTrialWillEndModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionUpdatedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerTaxIdCreatedModel = { + 'object': TaxIdModel; +}; + +export type CustomerTaxIdDeletedModel = { + 'object': TaxIdModel; +}; + +export type CustomerTaxIdUpdatedModel = { + 'object': TaxIdModel; +}; + +export type CustomerUpdatedModel = { + 'object': CustomerModel; +}; + +export type CustomerCashBalanceTransactionCreatedModel = { + 'object': CustomerCashBalanceTransactionModel; +}; + +export type CustomerSessionResourceComponentsResourceBuyButtonModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_remove': 'disabled' | 'enabled'; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_redisplay': 'disabled' | 'enabled'; + 'payment_method_remove': 'disabled' | 'enabled'; + 'payment_method_save': 'disabled' | 'enabled'; + 'payment_method_save_allow_redisplay_override': 'always' | 'limited' | 'unspecified'; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'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'; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourcePricingTableModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceComponentsModel = { + 'buy_button': CustomerSessionResourceComponentsResourceBuyButtonModel; + 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheetModel; + 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElementModel; + 'payment_element': CustomerSessionResourceComponentsResourcePaymentElementModel; + 'pricing_table': CustomerSessionResourceComponentsResourcePricingTableModel; +}; + +export type CustomerSessionModel = { + 'client_secret': string; + 'components'?: CustomerSessionResourceComponentsModel | undefined; + 'created': number; + 'customer': string | CustomerModel; + 'expires_at': number; + 'livemode': boolean; + 'object': 'customer_session'; +}; + +export type DeletedAccountModel = { + 'deleted': boolean; + 'id': string; + 'object': 'account'; +}; + +export type DeletedApplePayDomainModel = { + 'deleted': boolean; + 'id': string; + 'object': 'apple_pay_domain'; +}; + +export type DeletedCouponModel = { + 'deleted': boolean; + 'id': string; + 'object': 'coupon'; +}; + +export type DeletedInvoiceitemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoiceitem'; +}; + +export type DeletedPersonModel = { + 'deleted': boolean; + 'id': string; + 'object': 'person'; +}; + +export type DeletedProductFeatureModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product_feature'; +}; + +export type DeletedRadarValueListModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list'; +}; + +export type DeletedRadarValueListItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list_item'; +}; + +export type DeletedSubscriptionItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'subscription_item'; +}; + +export type DeletedTerminalConfigurationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.configuration'; +}; + +export type DeletedTerminalLocationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.location'; +}; + +export type DeletedTerminalReaderModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.reader'; +}; + +export type DeletedTestHelpersTestClockModel = { + 'deleted': boolean; + 'id': string; + 'object': 'test_helpers.test_clock'; +}; + +export type DeletedWebhookEndpointModel = { + 'deleted': boolean; + 'id': string; + 'object': 'webhook_endpoint'; +}; + +export type EntitlementsFeatureModel = { + 'active': boolean; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'entitlements.feature'; +}; + +export type EntitlementsActiveEntitlementModel = { + 'feature': string | EntitlementsFeatureModel; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'object': 'entitlements.active_entitlement'; +}; + +export type EntitlementsActiveEntitlementSummaryModel = { + 'customer': string; + 'entitlements': { + 'data': EntitlementsActiveEntitlementModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'object': 'entitlements.active_entitlement_summary'; +}; + +export type EntitlementsActiveEntitlementSummaryUpdatedModel = { + 'object': EntitlementsActiveEntitlementSummaryModel; +}; + +export type EphemeralKeyModel = { + 'created': number; + 'expires': number; + 'id': string; + 'livemode': boolean; + 'object': 'ephemeral_key'; + 'secret'?: string | undefined; +}; + +export type ErrorModel = { + 'error': ApiErrorsModel; +}; + +export type NotificationEventDataModel = { + 'object': {}; + 'previous_attributes'?: {} | undefined; +}; + +export type NotificationEventRequestModel = { + 'id': string; + 'idempotency_key': string; +}; + +export type EventModel = { + 'account'?: string | undefined; + 'api_version': string; + 'context'?: string | undefined; + 'created': number; + 'data': NotificationEventDataModel; + 'id': string; + 'livemode': boolean; + 'object': 'event'; + 'pending_webhooks': number; + 'request': NotificationEventRequestModel; + 'type': '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' | 'balance_settings.updated' | '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.account_numbers_updated' | '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' | 'financial_connections.account.upcoming_account_number_expiry' | '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.overpaid' | 'invoice.paid' | 'invoice.payment_action_required' | 'invoice.payment_attempt_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' | 'invoice.upcoming' | 'invoice.updated' | 'invoice.voided' | 'invoice.will_be_due' | 'invoice_payment.paid' | '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' | 'terminal.reader.action_updated' | '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'; +}; + +export type ExchangeRateModel = { + 'id': string; + 'object': 'exchange_rate'; + 'rates': { + [key: string]: number; +}; +}; + +export type FileCreatedModel = { + 'object': FileModel; +}; + +export type FinancialConnectionsAccountOwnerModel = { + 'email': string; + 'id': string; + 'name': string; + 'object': 'financial_connections.account_owner'; + 'ownership': string; + 'phone': string; + 'raw_address': string; + 'refreshed_at': number; +}; + +export type FinancialConnectionsAccountOwnershipModel = { + 'created': number; + 'id': string; + 'object': 'financial_connections.account_ownership'; + 'owners': { + 'data': FinancialConnectionsAccountOwnerModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type FinancialConnectionsAccountModel = { + 'account_holder': BankConnectionsResourceAccountholderModel; + 'account_numbers': BankConnectionsResourceAccountNumberDetailsModel[]; + 'balance': BankConnectionsResourceBalanceModel; + 'balance_refresh': BankConnectionsResourceBalanceRefreshModel; + 'category': 'cash' | 'credit' | 'investment' | 'other'; + 'created': number; + 'display_name': string; + 'id': string; + 'institution_name': string; + 'last4': string; + 'livemode': boolean; + 'object': 'financial_connections.account'; + 'ownership': string | FinancialConnectionsAccountOwnershipModel; + 'ownership_refresh': BankConnectionsResourceOwnershipRefreshModel; + 'permissions': Array<'balances' | 'ownership' | 'payment_method' | 'transactions'>; + 'status': 'active' | 'disconnected' | 'inactive'; + 'subcategory': 'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'other' | 'savings'; + 'subscriptions': 'transactions'[]; + 'supported_payment_method_types': Array<'link' | 'us_bank_account'>; + 'transaction_refresh': BankConnectionsResourceTransactionRefreshModel; +}; + +export type FinancialConnectionsAccountAccountNumbersUpdatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountCreatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountDeactivatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountDisconnectedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountReactivatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedBalanceModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedOwnershipModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedTransactionsModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountUpcomingAccountNumberExpiryModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsSessionModel = { + 'account_holder': BankConnectionsResourceAccountholderModel; + 'accounts': { + 'data': FinancialConnectionsAccountModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'client_secret': string; + 'filters'?: BankConnectionsResourceLinkAccountSessionFiltersModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'financial_connections.session'; + 'permissions': Array<'balances' | 'ownership' | 'payment_method' | 'transactions'>; + 'prefetch': Array<'balances' | 'ownership' | 'transactions'>; + 'return_url'?: string | undefined; +}; + +export type FinancialConnectionsTransactionModel = { + 'account': string; + 'amount': number; + 'currency': string; + 'description': string; + 'id': string; + 'livemode': boolean; + 'object': 'financial_connections.transaction'; + 'status': 'pending' | 'posted' | 'void'; + 'status_transitions': BankConnectionsResourceTransactionResourceStatusTransitionsModel; + 'transacted_at': number; + 'transaction_refresh': string; + 'updated': number; +}; + +export type FinancialReportingFinanceReportRunRunParametersModel = { + '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 ForwardedRequestContextModel = { + 'destination_duration': number; + 'destination_ip_address': string; +}; + +export type ForwardedRequestHeaderModel = { + 'name': string; + 'value': string; +}; + +export type ForwardedRequestDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'http_method': 'POST'; +}; + +export type ForwardedResponseDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'status': number; +}; + +export type ForwardingRequestModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'forwarding.request'; + 'payment_method': string; + 'replacements': Array<'card_cvc' | 'card_expiry' | 'card_number' | 'cardholder_name' | 'request_signature'>; + 'request_context': ForwardedRequestContextModel; + 'request_details': ForwardedRequestDetailsModel; + 'response_details': ForwardedResponseDetailsModel; + 'url': string; +}; + +export type FundingInstructionsBankTransferModel = { + 'country': string; + 'financial_addresses': FundingInstructionsBankTransferFinancialAddressModel[]; + 'type': 'eu_bank_transfer' | 'jp_bank_transfer'; +}; + +export type FundingInstructionsModel = { + 'bank_transfer': FundingInstructionsBankTransferModel; + 'currency': string; + 'funding_type': 'bank_transfer'; + 'livemode': boolean; + 'object': 'funding_instructions'; +}; + +export type GelatoDataDocumentReportDateOfBirthModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataDocumentReportExpirationDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataDocumentReportIssuedDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataIdNumberReportDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataVerifiedOutputsDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDocumentReportErrorModel = { + 'code': 'document_expired' | 'document_type_not_supported' | 'document_unverified_other'; + 'reason': string; +}; + +export type GelatoDocumentReportModel = { + 'address': AddressModel; + 'dob'?: GelatoDataDocumentReportDateOfBirthModel | undefined; + 'error': GelatoDocumentReportErrorModel; + 'expiration_date'?: GelatoDataDocumentReportExpirationDateModel | undefined; + 'files': string[]; + 'first_name': string; + 'issued_date': GelatoDataDocumentReportIssuedDateModel; + 'issuing_country': string; + 'last_name': string; + 'number'?: string | undefined; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'status': 'unverified' | 'verified'; + 'type': 'driving_license' | 'id_card' | 'passport'; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type GelatoEmailReportErrorModel = { + 'code': 'email_unverified_other' | 'email_verification_declined'; + 'reason': string; +}; + +export type GelatoEmailReportModel = { + 'email': string; + 'error': GelatoEmailReportErrorModel; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoIdNumberReportErrorModel = { + 'code': 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other'; + 'reason': string; +}; + +export type GelatoIdNumberReportModel = { + 'dob'?: GelatoDataIdNumberReportDateModel | undefined; + 'error': GelatoIdNumberReportErrorModel; + 'first_name': string; + 'id_number'?: string | undefined; + 'id_number_type': 'br_cpf' | 'sg_nric' | 'us_ssn'; + 'last_name': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoPhoneReportErrorModel = { + 'code': 'phone_unverified_other' | 'phone_verification_declined'; + 'reason': string; +}; + +export type GelatoPhoneReportModel = { + 'error': GelatoPhoneReportErrorModel; + 'phone': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoProvidedDetailsModel = { + 'email'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type GelatoRelatedPersonModel = { + 'account': string; + 'person': string; +}; + +export type GelatoReportDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoReportIdNumberOptionsModel = { + +}; + +export type GelatoSelfieReportErrorModel = { + 'code': 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other'; + 'reason': string; +}; + +export type GelatoSelfieReportModel = { + 'document': string; + 'error': GelatoSelfieReportErrorModel; + 'selfie': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoSessionDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoSessionEmailOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoSessionIdNumberOptionsModel = { + +}; + +export type GelatoSessionLastErrorModel = { + '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'; + 'reason': string; +}; + +export type GelatoSessionMatchingOptionsModel = { + 'dob'?: 'none' | 'similar' | undefined; + 'name'?: 'none' | 'similar' | undefined; +}; + +export type GelatoSessionPhoneOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoVerificationReportOptionsModel = { + 'document'?: GelatoReportDocumentOptionsModel | undefined; + 'id_number'?: GelatoReportIdNumberOptionsModel | undefined; +}; + +export type GelatoVerificationSessionOptionsModel = { + 'document'?: GelatoSessionDocumentOptionsModel | undefined; + 'email'?: GelatoSessionEmailOptionsModel | undefined; + 'id_number'?: GelatoSessionIdNumberOptionsModel | undefined; + 'matching'?: GelatoSessionMatchingOptionsModel | undefined; + 'phone'?: GelatoSessionPhoneOptionsModel | undefined; +}; + +export type GelatoVerifiedOutputsModel = { + 'address': AddressModel; + 'dob'?: GelatoDataVerifiedOutputsDateModel | undefined; + 'email': string; + 'first_name': string; + 'id_number'?: string | undefined; + 'id_number_type': 'br_cpf' | 'sg_nric' | 'us_ssn'; + 'last_name': string; + 'phone': string; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type IdentityVerificationReportModel = { + 'client_reference_id': string; + 'created': number; + 'document'?: GelatoDocumentReportModel | undefined; + 'email'?: GelatoEmailReportModel | undefined; + 'id': string; + 'id_number'?: GelatoIdNumberReportModel | undefined; + 'livemode': boolean; + 'object': 'identity.verification_report'; + 'options'?: GelatoVerificationReportOptionsModel | undefined; + 'phone'?: GelatoPhoneReportModel | undefined; + 'selfie'?: GelatoSelfieReportModel | undefined; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'verification_flow'?: string | undefined; + 'verification_session': string; +}; + +export type VerificationSessionRedactionModel = { + 'status': 'processing' | 'redacted'; +}; + +export type IdentityVerificationSessionModel = { + 'client_reference_id': string; + 'client_secret': string; + 'created': number; + 'id': string; + 'last_error': GelatoSessionLastErrorModel; + 'last_verification_report': string | IdentityVerificationReportModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'identity.verification_session'; + 'options': GelatoVerificationSessionOptionsModel; + 'provided_details'?: GelatoProvidedDetailsModel | undefined; + 'redaction': VerificationSessionRedactionModel; + 'related_customer': string; + 'related_person'?: GelatoRelatedPersonModel | undefined; + 'status': 'canceled' | 'processing' | 'requires_input' | 'verified'; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'url': string; + 'verification_flow'?: string | undefined; + 'verified_outputs'?: GelatoVerifiedOutputsModel | undefined; +}; + +export type IdentityVerificationSessionCanceledModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionCreatedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionProcessingModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionRedactedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionRequiresInputModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionVerifiedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type TreasurySharedResourceBillingDetailsModel = { + 'address': AddressModel; + 'email': string; + 'name': string; +}; + +export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach'; + 'routing_number': string; +}; + +export type InboundTransfersModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'type': 'us_bank_account'; + 'us_bank_account'?: InboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type InvoiceCreatedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceDeletedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceFinalizationFailedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceFinalizedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceMarkedUncollectibleModel = { + 'object': InvoiceModel; +}; + +export type InvoiceOverdueModel = { + 'object': InvoiceModel; +}; + +export type InvoiceOverpaidModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaidModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentActionRequiredModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentAttemptRequiredModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentFailedModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentSucceededModel = { + 'object': InvoiceModel; +}; + +export type InvoiceSentModel = { + 'object': InvoiceModel; +}; + +export type InvoiceUpcomingModel = { + 'object': InvoiceModel; +}; + +export type InvoiceUpdatedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceVoidedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceWillBeDueModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentPaidModel = { + 'object': InvoicePaymentModel; +}; + +export type InvoiceRenderingTemplateModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'nickname': string; + 'object': 'invoice_rendering_template'; + 'status': 'active' | 'archived'; + 'version': number; +}; + +export type InvoiceSettingQuoteSettingModel = { + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type ProrationDetailsModel = { + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; +}; + +export type InvoiceitemModel = { + 'amount': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'date': number; + 'description': string; + 'discountable': boolean; + 'discounts': Array; + 'id': string; + 'invoice': string | InvoiceModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'net_amount'?: number | undefined; + 'object': 'invoiceitem'; + 'parent': BillingBillResourceInvoiceItemParentsInvoiceItemParentModel; + 'period': InvoiceLineItemPeriodModel; + 'pricing': BillingBillResourceInvoicingPricingPricingModel; + 'proration': boolean; + 'proration_details'?: ProrationDetailsModel | undefined; + 'quantity': number; + 'tax_rates': TaxRateModel[]; + 'test_clock': string | TestHelpersTestClockModel; +}; + +export type InvoiceitemCreatedModel = { + 'object': InvoiceitemModel; +}; + +export type InvoiceitemDeletedModel = { + 'object': InvoiceitemModel; +}; + +export type IssuingAuthorizationCreatedModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingAuthorizationRequestModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingAuthorizationUpdatedModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingCardCreatedModel = { + 'object': IssuingCardModel; +}; + +export type IssuingCardUpdatedModel = { + 'object': IssuingCardModel; +}; + +export type IssuingCardholderCreatedModel = { + 'object': IssuingCardholderModel; +}; + +export type IssuingCardholderUpdatedModel = { + 'object': IssuingCardholderModel; +}; + +export type IssuingDisputeClosedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeCreatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeFundsReinstatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeFundsRescindedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeSubmittedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeUpdatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingPersonalizationDesignActivatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignDeactivatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignRejectedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignUpdatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingTokenCreatedModel = { + 'object': IssuingTokenModel; +}; + +export type IssuingTokenUpdatedModel = { + 'object': IssuingTokenModel; +}; + +export type IssuingTransactionCreatedModel = { + 'object': IssuingTransactionModel; +}; + +export type IssuingTransactionPurchaseDetailsReceiptUpdatedModel = { + 'object': IssuingTransactionModel; +}; + +export type IssuingTransactionUpdatedModel = { + 'object': IssuingTransactionModel; +}; + +export type LoginLinkModel = { + 'created': number; + 'object': 'login_link'; + 'url': string; +}; + +export type MandateUpdatedModel = { + 'object': MandateModel; +}; + +export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number': string; +}; + +export type OutboundPaymentsPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundPaymentsPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundPaymentsPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number': string; +}; + +export type OutboundTransfersPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundTransfersPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentAttemptRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application': string; + 'created': number; + 'customer_details': PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel; + 'customer_presence': 'off_session' | 'on_session'; + 'description': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_attempt_record'; + 'payment_method_details': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel; + 'payment_record': string; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'reported_by': 'self' | 'stripe'; + 'shipping_details': PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel; +}; + +export type PaymentFlowsAmountDetailsClientModel = { + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsInstallmentOptionsModel = { + 'enabled': boolean; + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type PaymentIntentAmountCapturableUpdatedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentCanceledModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentCreatedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentPartiallyFundedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentPaymentFailedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentProcessingModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentRequiresActionModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentSucceededModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'installments'?: PaymentFlowsInstallmentOptionsModel | undefined; + 'request_incremental_authorization_support'?: boolean | undefined; + 'require_cvc_recollection'?: boolean | undefined; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentLinkCreatedModel = { + 'object': PaymentLinkModel; +}; + +export type PaymentLinkUpdatedModel = { + 'object': PaymentLinkModel; +}; + +export type PaymentMethodAttachedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodAutomaticallyUpdatedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodDetachedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodUpdatedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodConfigResourceDisplayPreferenceModel = { + 'overridable': boolean; + 'preference': 'none' | 'off' | 'on'; + 'value': 'off' | 'on'; +}; + +export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = { + 'available': boolean; + 'display_preference': PaymentMethodConfigResourceDisplayPreferenceModel; +}; + +export type PaymentMethodConfigurationModel = { + 'acss_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'active': boolean; + 'affirm'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'afterpay_clearpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alipay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alma'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'amazon_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'apple_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'application': string; + 'au_becs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bacs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bancontact'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'billie'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'blik'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'boleto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cartes_bancaires'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cashapp'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'crypto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'customer_balance'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'eps'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'fpx'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'giropay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'google_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'grabpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'id': string; + 'ideal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'is_default': boolean; + 'jcb'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kakao_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'klarna'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'konbini'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kr_card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'link'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'mobilepay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'multibanco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'name': string; + 'naver_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'nz_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'object': 'payment_method_configuration'; + 'oxxo'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'p24'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'parent': string; + 'pay_by_bank'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'payco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paynow'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paypal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'pix'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'promptpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'revolut_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'samsung_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'satispay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sepa_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sofort'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'swish'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'twint'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'us_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'wechat_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'zip'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = { + 'error_message': string; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusModel = { + 'status': 'active' | 'inactive'; + 'status_details'?: PaymentMethodDomainResourcePaymentMethodStatusDetailsModel | undefined; +}; + +export type PaymentMethodDomainModel = { + 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'created': number; + 'domain_name': string; + 'enabled': boolean; + 'google_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'id': string; + 'klarna': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'link': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'livemode': boolean; + 'object': 'payment_method_domain'; + 'paypal': PaymentMethodDomainResourcePaymentMethodStatusModel; +}; + +export type PayoutCanceledModel = { + 'object': PayoutModel; +}; + +export type PayoutCreatedModel = { + 'object': PayoutModel; +}; + +export type PayoutFailedModel = { + 'object': PayoutModel; +}; + +export type PayoutPaidModel = { + 'object': PayoutModel; +}; + +export type PayoutReconciliationCompletedModel = { + 'object': PayoutModel; +}; + +export type PayoutUpdatedModel = { + 'object': PayoutModel; +}; + +export type PersonCreatedModel = { + 'object': PersonModel; +}; + +export type PersonDeletedModel = { + 'object': PersonModel; +}; + +export type PersonUpdatedModel = { + 'object': PersonModel; +}; + +export type PlanCreatedModel = { + 'object': PlanModel; +}; + +export type PlanDeletedModel = { + 'object': PlanModel; +}; + +export type PlanUpdatedModel = { + 'object': PlanModel; +}; + +export type PriceCreatedModel = { + 'object': PriceModel; +}; + +export type PriceDeletedModel = { + 'object': PriceModel; +}; + +export type PriceUpdatedModel = { + 'object': PriceModel; +}; + +export type ProductCreatedModel = { + 'object': ProductModel; +}; + +export type ProductDeletedModel = { + 'object': ProductModel; +}; + +export type ProductUpdatedModel = { + 'object': ProductModel; +}; + +export type ProductFeatureModel = { + 'entitlement_feature': EntitlementsFeatureModel; + 'id': string; + 'livemode': boolean; + 'object': 'product_feature'; +}; + +export type PromotionCodeCreatedModel = { + 'object': PromotionCodeModel; +}; + +export type PromotionCodeUpdatedModel = { + 'object': PromotionCodeModel; +}; + +export type QuotesResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type QuotesResourceTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type QuotesResourceTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping': number; + 'amount_tax': number; + 'breakdown'?: QuotesResourceTotalDetailsResourceBreakdownModel | undefined; +}; + +export type QuotesResourceRecurringModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceUpfrontModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceComputedModel = { + 'recurring': QuotesResourceRecurringModel; + 'upfront': QuotesResourceUpfrontModel; +}; + +export type QuotesResourceFromQuoteModel = { + 'is_revision': boolean; + 'quote': string | QuoteModel; +}; + +export type QuotesResourceStatusTransitionsModel = { + 'accepted_at': number; + 'canceled_at': number; + 'finalized_at': number; +}; + +export type QuotesResourceSubscriptionDataBillingModeModel = { + 'flexible'?: SubscriptionsResourceBillingModeFlexibleModel | undefined; + 'type': 'classic' | 'flexible'; +}; + +export type QuotesResourceSubscriptionDataSubscriptionDataModel = { + 'billing_mode': QuotesResourceSubscriptionDataBillingModeModel; + 'description': string; + 'effective_date': number; + 'metadata': { + [key: string]: string; +}; + 'trial_period_days': number; +}; + +export type QuotesResourceTransferDataModel = { + 'amount': number; + 'amount_percent': number; + 'destination': string | AccountModel; +}; + +export type QuoteModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'application_fee_amount': number; + 'application_fee_percent': number; + 'automatic_tax': QuotesResourceAutomaticTaxModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'computed': QuotesResourceComputedModel; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'default_tax_rates'?: Array | undefined; + 'description': string; + 'discounts': Array; + 'expires_at': number; + 'footer': string; + 'from_quote': QuotesResourceFromQuoteModel; + 'header': string; + 'id': string; + 'invoice': string | InvoiceModel | DeletedInvoiceModel; + 'invoice_settings': InvoiceSettingQuoteSettingModel; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'number': string; + 'object': 'quote'; + 'on_behalf_of': string | AccountModel; + 'status': 'accepted' | 'canceled' | 'draft' | 'open'; + 'status_transitions': QuotesResourceStatusTransitionsModel; + 'subscription': string | SubscriptionModel; + 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; + 'subscription_schedule': string | SubscriptionScheduleModel; + 'test_clock': string | TestHelpersTestClockModel; + 'total_details': QuotesResourceTotalDetailsModel; + 'transfer_data': QuotesResourceTransferDataModel; +}; + +export type QuoteAcceptedModel = { + 'object': QuoteModel; +}; + +export type QuoteCanceledModel = { + 'object': QuoteModel; +}; + +export type QuoteCreatedModel = { + 'object': QuoteModel; +}; + +export type QuoteFinalizedModel = { + 'object': QuoteModel; +}; + +export type RadarEarlyFraudWarningModel = { + 'actionable': boolean; + 'charge': string | ChargeModel; + 'created': number; + 'fraud_type': string; + 'id': string; + 'livemode': boolean; + 'object': 'radar.early_fraud_warning'; + 'payment_intent'?: string | PaymentIntentModel | undefined; +}; + +export type RadarEarlyFraudWarningCreatedModel = { + 'object': RadarEarlyFraudWarningModel; +}; + +export type RadarEarlyFraudWarningUpdatedModel = { + 'object': RadarEarlyFraudWarningModel; +}; + +export type RadarValueListItemModel = { + 'created': number; + 'created_by': string; + 'id': string; + 'livemode': boolean; + 'object': 'radar.value_list_item'; + 'value': string; + 'value_list': string; +}; + +export type RadarValueListModel = { + 'alias': string; + 'created': number; + 'created_by': string; + 'id': string; + 'item_type': 'card_bin' | 'card_fingerprint' | 'case_sensitive_string' | 'country' | 'customer_id' | 'email' | 'ip_address' | 'sepa_debit_fingerprint' | 'string' | 'us_bank_account_fingerprint'; + 'list_items': { + 'data': RadarValueListItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'radar.value_list'; +}; + +export type ReceivedPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type RefundCreatedModel = { + 'object': RefundModel; +}; + +export type RefundFailedModel = { + 'object': RefundModel; +}; + +export type RefundUpdatedModel = { + 'object': RefundModel; +}; + +export type ReportingReportRunModel = { + 'created': number; + 'error': string; + 'id': string; + 'livemode': boolean; + 'object': 'reporting.report_run'; + 'parameters': FinancialReportingFinanceReportRunRunParametersModel; + 'report_type': string; + 'result': FileModel; + 'status': string; + 'succeeded_at': number; +}; + +export type ReportingReportRunFailedModel = { + 'object': ReportingReportRunModel; +}; + +export type ReportingReportRunSucceededModel = { + 'object': ReportingReportRunModel; +}; + +export type ReportingReportTypeModel = { + 'data_available_end': number; + 'data_available_start': number; + 'default_columns': string[]; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'reporting.report_type'; + 'updated': number; + 'version': number; +}; + +export type ReportingReportTypeUpdatedModel = { + 'object': ReportingReportTypeModel; +}; + +export type ReviewClosedModel = { + 'object': ReviewModel; +}; + +export type ReviewOpenedModel = { + 'object': ReviewModel; +}; + +export type SigmaScheduledQueryRunErrorModel = { + 'message': string; +}; + +export type ScheduledQueryRunModel = { + 'created': number; + 'data_load_time': number; + 'error'?: SigmaScheduledQueryRunErrorModel | undefined; + 'file': FileModel; + 'id': string; + 'livemode': boolean; + 'object': 'scheduled_query_run'; + 'result_available_until': number; + 'sql': string; + 'status': string; + 'title': string; +}; + +export type SetupIntentCanceledModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentCreatedModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentRequiresActionModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentSetupFailedModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentSucceededModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SigmaScheduledQueryRunCreatedModel = { + 'object': ScheduledQueryRunModel; +}; + +export type SourceCanceledModel = { + 'object': SourceModel; +}; + +export type SourceChargeableModel = { + 'object': SourceModel; +}; + +export type SourceFailedModel = { + 'object': SourceModel; +}; + +export type SourceMandateNotificationAcssDebitDataModel = { + 'statement_descriptor'?: string | undefined; +}; + +export type SourceMandateNotificationBacsDebitDataModel = { + 'last4'?: string | undefined; +}; + +export type SourceMandateNotificationSepaDebitDataModel = { + 'creditor_identifier'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; +}; + +export type SourceMandateNotification_1Model = { + 'acss_debit'?: SourceMandateNotificationAcssDebitDataModel | undefined; + 'amount': number; + 'bacs_debit'?: SourceMandateNotificationBacsDebitDataModel | undefined; + 'created': number; + 'id': string; + 'livemode': boolean; + 'object': 'source_mandate_notification'; + 'reason': string; + 'sepa_debit'?: SourceMandateNotificationSepaDebitDataModel | undefined; + 'source': SourceModel; + 'status': string; + 'type': string; +}; + +export type SourceMandateNotificationModel = { + 'object': SourceMandateNotification_1Model; +}; + +export type SourceRefundAttributesRequiredModel = { + 'object': SourceModel; +}; + +export type SourceTransactionAchCreditTransferDataModel = { + 'customer_data'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type SourceTransactionChfCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_address_country'?: string | undefined; + 'sender_address_line1'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionGbpCreditTransferDataModel = { + '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 SourceTransactionPaperCheckDataModel = { + 'available_at'?: string | undefined; + 'invoices'?: string | undefined; +}; + +export type SourceTransactionSepaCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionModel = { + 'ach_credit_transfer'?: SourceTransactionAchCreditTransferDataModel | undefined; + 'amount': number; + 'chf_credit_transfer'?: SourceTransactionChfCreditTransferDataModel | undefined; 'created': number; 'currency': string; - 'cvc'?: string | undefined; - 'exp_month': number; - 'exp_year': number; - 'financial_account'?: string | undefined; + 'gbp_credit_transfer'?: SourceTransactionGbpCreditTransferDataModel | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'source_transaction'; + 'paper_check'?: SourceTransactionPaperCheckDataModel | undefined; + 'sepa_credit_transfer'?: SourceTransactionSepaCreditTransferDataModel | undefined; + 'source': string; + 'status': string; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; +}; + +export type SourceTransactionCreatedModel = { + 'object': SourceTransactionModel; +}; + +export type SourceTransactionUpdatedModel = { + 'object': SourceTransactionModel; +}; + +export type SubscriptionScheduleAbortedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCanceledModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCompletedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCreatedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleExpiringModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleReleasedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleUpdatedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = { + 'transaction': string; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = { + 'reason': 'another_payment_associated_with_calculation' | 'calculation_expired' | 'currency_mismatch' | 'original_transaction_voided' | 'unique_reference_violation'; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsModel = { + 'committed'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel | undefined; + 'errored'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel | undefined; + 'source': string; + 'status': string; +}; + +export type TaxAssociationModel = { + 'calculation': string; + 'id': string; + 'object': 'tax.association'; + 'payment_intent': string; + 'tax_transaction_attempts': TaxProductResourceTaxAssociationTransactionAttemptsModel[]; +}; + +export type TaxProductResourcePostalAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type TaxProductResourceCustomerDetailsResourceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type TaxProductResourceCustomerDetailsModel = { + 'address': TaxProductResourcePostalAddressModel; + 'address_source': 'billing' | 'shipping'; + 'ip_address': string; + 'tax_ids': TaxProductResourceCustomerDetailsResourceTaxIdModel[]; + 'taxability_override': 'customer_exempt' | 'none' | 'reverse_charge'; +}; + +export type TaxProductResourceJurisdictionModel = { + 'country': string; + 'display_name': string; + 'level': 'city' | 'country' | 'county' | 'district' | 'state'; + 'state': string; +}; + +export type TaxProductResourceLineItemTaxRateDetailsModel = { + 'display_name': string; + 'percentage_decimal': string; + 'tax_type': 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat'; +}; + +export type TaxProductResourceLineItemTaxBreakdownModel = { + 'amount': number; + 'jurisdiction': TaxProductResourceJurisdictionModel; + 'sourcing': 'destination' | 'origin'; + 'tax_rate_details': TaxProductResourceLineItemTaxRateDetailsModel; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; - 'last4': string; - 'latest_fraud_warning': IssuingCardFraudWarningModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'number'?: string | undefined; - 'object': 'issuing.card'; - 'personalization_design': string | IssuingPersonalizationDesignModel; - 'replaced_by': string | IssuingCardModel; - 'replacement_for': string | IssuingCardModel; - 'replacement_reason': 'damaged' | 'expired' | 'lost' | 'stolen'; - 'second_line': string; - 'shipping': IssuingCardShippingModel; - 'spending_controls': IssuingCardAuthorizationControlsModel; - 'status': 'active' | 'canceled' | 'inactive'; - 'type': 'physical' | 'virtual'; - 'wallets': IssuingCardWalletsModel; + 'object': 'tax.calculation_line_item'; + 'product': string; + 'quantity': number; + 'reference': string; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; }; -export type IssuingTransactionModel = { +export type TaxProductResourceShipFromDetailsModel = { + 'address': TaxProductResourcePostalAddressModel; +}; + +export type TaxProductResourceTaxCalculationShippingCostModel = { 'amount': number; - 'amount_details': IssuingTransactionAmountDetailsModel; - 'authorization': string | IssuingAuthorizationModel; - 'balance_transaction': string | BalanceTransactionModel; - 'card': string | IssuingCardModel; - 'cardholder': string | IssuingCardholderModel; - 'created': number; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; +}; + +export type TaxProductResourceTaxRateDetailsModel = { + 'country': string; + 'flat_amount': TaxRateFlatAmountModel; + 'percentage_decimal': string; + 'rate_type': 'flat_amount' | 'percentage'; + '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'; +}; + +export type TaxProductResourceTaxBreakdownModel = { + 'amount': number; + 'inclusive': boolean; + 'tax_rate_details': TaxProductResourceTaxRateDetailsModel; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationModel = { + 'amount_total': number; 'currency': string; - 'dispute': string | IssuingDisputeModel; + 'customer': string; + 'customer_details': TaxProductResourceCustomerDetailsModel; + 'expires_at': number; + 'id': string; + 'line_items'?: { + 'data': TaxCalculationLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'object': 'tax.calculation'; + 'ship_from_details': TaxProductResourceShipFromDetailsModel; + 'shipping_cost': TaxProductResourceTaxCalculationShippingCostModel; + 'tax_amount_exclusive': number; + 'tax_amount_inclusive': number; + 'tax_breakdown': TaxProductResourceTaxBreakdownModel[]; + 'tax_date': number; +}; + +export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel | undefined; + 'type': 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = { + 'type': 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = { + 'type': 'simplified'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'small_seller' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsEuStandardModel | undefined; + 'type': 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = { + 'province': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = { + 'province_standard'?: TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel | undefined; + 'type': 'province_standard' | 'simplified' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsThailandModel = { + 'type': 'simplified'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = { + 'jurisdiction': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = { + 'jurisdiction': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = { + 'jurisdiction'?: string | undefined; + 'type': 'local_use_tax' | 'simplified_sellers_use_tax' | 'single_local_use_tax'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = { + 'elections'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel[] | undefined; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = { + 'local_amusement_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel | undefined; + 'local_lease_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel | undefined; + 'state': string; + 'state_sales_tax'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel | undefined; + 'type': 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' | 'state_retail_delivery_fee' | 'state_sales_tax'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsModel = { + 'ae'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'al'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'am'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ao'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'at'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'au'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'aw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'az'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ba'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bb'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'be'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bf'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bg'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bh'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'bs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'by'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ca'?: TaxProductRegistrationsResourceCountryOptionsCanadaModel | undefined; + 'cd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ch'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'cl'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'co'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cv'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cy'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'cz'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'de'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'dk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ec'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ee'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'eg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'es'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'et'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'fi'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'fr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'gb'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ge'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'gn'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'gr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'id'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ie'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'in'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'is'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'it'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'jp'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ke'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kh'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'la'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'lt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lv'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ma'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'md'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'me'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mk'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'mx'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'my'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ng'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'no'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'np'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nz'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'om'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'pe'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ph'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'pl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'pt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ro'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'rs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ru'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sa'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'se'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sg'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'si'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'th'?: TaxProductRegistrationsResourceCountryOptionsThailandModel | undefined; + 'tj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tw'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ua'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ug'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'us'?: TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel | undefined; + 'uy'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'uz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'vn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'za'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'zm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'zw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; +}; + +export type TaxRegistrationModel = { + 'active_from': number; + 'country': string; + 'country_options': TaxProductRegistrationsResourceCountryOptionsModel; + 'created': number; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'object': 'tax.registration'; + 'status': 'active' | 'expired' | 'scheduled'; +}; + +export type TaxProductResourceTaxSettingsDefaultsModel = { + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; + 'tax_behavior': 'exclusive' | 'inclusive' | 'inferred_by_currency'; + 'tax_code': string; +}; + +export type TaxProductResourceTaxSettingsHeadOfficeModel = { + 'address': AddressModel; +}; + +export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = { + +}; + +export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = { + 'missing_fields': string[]; +}; + +export type TaxProductResourceTaxSettingsStatusDetailsModel = { + 'active'?: TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel | undefined; + 'pending'?: TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel | undefined; +}; + +export type TaxSettingsModel = { + 'defaults': TaxProductResourceTaxSettingsDefaultsModel; + 'head_office': TaxProductResourceTaxSettingsHeadOfficeModel; + 'livemode': boolean; + 'object': 'tax.settings'; + 'status': 'active' | 'pending'; + 'status_details': TaxProductResourceTaxSettingsStatusDetailsModel; +}; + +export type TaxSettingsUpdatedModel = { + 'object': TaxSettingsModel; +}; + +export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = { + 'original_line_item': string; +}; + +export type TaxTransactionLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; 'metadata': { [key: string]: string; }; - 'network_data': IssuingTransactionNetworkDataModel; - 'object': 'issuing.transaction'; - 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; - 'token'?: string | IssuingTokenModel | undefined; - 'treasury'?: IssuingTransactionTreasuryModel | undefined; - 'type': 'capture' | 'refund'; - 'wallet': 'apple_pay' | 'google_pay' | 'samsung_pay'; + 'object': 'tax.transaction_line_item'; + 'product': string; + 'quantity': number; + 'reference': string; + 'reversal': TaxProductResourceTaxTransactionLineItemResourceReversalModel; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_code': string; + 'type': 'reversal' | 'transaction'; }; -export type IssuingDisputeModel = { +export type TaxProductResourceTaxTransactionResourceReversalModel = { + 'original_transaction': string; +}; + +export type TaxProductResourceTaxTransactionShippingCostModel = { 'amount': number; - 'balance_transactions'?: BalanceTransactionModel[] | undefined; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; +}; + +export type TaxTransactionModel = { 'created': number; 'currency': string; - 'evidence': IssuingDisputeEvidenceModel; + 'customer': string; + 'customer_details': TaxProductResourceCustomerDetailsModel; + 'id': string; + 'line_items'?: { + 'data': TaxTransactionLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'tax.transaction'; + 'posted_at': number; + 'reference': string; + 'reversal': TaxProductResourceTaxTransactionResourceReversalModel; + 'ship_from_details': TaxProductResourceShipFromDetailsModel; + 'shipping_cost': TaxProductResourceTaxTransactionShippingCostModel; + 'tax_date': number; + 'type': 'reversal' | 'transaction'; +}; + +export type TaxRateCreatedModel = { + 'object': TaxRateModel; +}; + +export type TaxRateUpdatedModel = { + 'object': TaxRateModel; +}; + +export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = { + 'splashscreen'?: string | FileModel | undefined; +}; + +export type TerminalConfigurationConfigurationResourceOfflineConfigModel = { + 'enabled': boolean; +}; + +export type TerminalConfigurationConfigurationResourceRebootWindowModel = { + 'end_hour': number; + 'start_hour': number; +}; + +export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = { + 'fixed_amounts'?: number[] | undefined; + 'percentages'?: number[] | undefined; + 'smart_tip_threshold'?: number | undefined; +}; + +export type TerminalConfigurationConfigurationResourceTippingModel = { + 'aed'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'aud'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'bgn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'cad'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'chf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'czk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'dkk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'eur'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gbp'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gip'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'hkd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'huf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'jpy'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'mxn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'myr'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nok'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nzd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'pln'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'ron'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sek'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sgd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'usd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; +}; + +export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'password': string; + 'ssid': string; + 'username': string; +}; + +export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'client_certificate_file': string; + 'private_key_file': string; + 'private_key_file_password'?: string | undefined; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = { + 'password': string; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourceWifiConfigModel = { + 'enterprise_eap_peap'?: TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel | undefined; + 'enterprise_eap_tls'?: TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel | undefined; + 'personal_psk'?: TerminalConfigurationConfigurationResourcePersonalPskWifiModel | undefined; + 'type': 'enterprise_eap_peap' | 'enterprise_eap_tls' | 'personal_psk'; +}; + +export type TerminalConfigurationModel = { + 'bbpos_wisepad3'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'bbpos_wisepos_e'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'id': string; + 'is_account_default': boolean; + 'livemode': boolean; + 'name': string; + 'object': 'terminal.configuration'; + 'offline'?: TerminalConfigurationConfigurationResourceOfflineConfigModel | undefined; + 'reboot_window'?: TerminalConfigurationConfigurationResourceRebootWindowModel | undefined; + 'stripe_s700'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'tipping'?: TerminalConfigurationConfigurationResourceTippingModel | undefined; + 'verifone_p400'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'wifi'?: TerminalConfigurationConfigurationResourceWifiConfigModel | undefined; +}; + +export type TerminalConnectionTokenModel = { + 'location'?: string | undefined; + 'object': 'terminal.connection_token'; + 'secret': string; +}; + +export type TerminalLocationModel = { + 'address': AddressModel; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'configuration_overrides'?: string | undefined; + 'display_name': string; + 'display_name_kana'?: string | undefined; + 'display_name_kanji'?: string | undefined; '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' | undefined; 'metadata': { [key: string]: string; }; - 'object': 'issuing.dispute'; - 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; - 'transaction': string | IssuingTransactionModel; - 'treasury'?: IssuingDisputeTreasuryModel | undefined; + 'object': 'terminal.location'; + 'phone'?: string | undefined; }; -export type PayoutModel = { - 'amount': number; - 'application_fee': string | ApplicationFeeModel; - 'application_fee_amount': number; - 'arrival_date': number; - 'automatic': boolean; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; +export type TerminalOnboardingLinkAppleTermsAndConditionsModel = { + 'allow_relinking': boolean; + 'merchant_display_name': string; +}; + +export type TerminalOnboardingLinkLinkOptionsModel = { + 'apple_terms_and_conditions': TerminalOnboardingLinkAppleTermsAndConditionsModel; +}; + +export type TerminalOnboardingLinkModel = { + 'link_options': TerminalOnboardingLinkLinkOptionsModel; + 'link_type': 'apple_terms_and_conditions'; + 'object': 'terminal.onboarding_link'; + 'on_behalf_of': string; + 'redirect_url': string; +}; + +export type TerminalReaderReaderResourceCustomTextModel = { 'description': string; - 'destination': string | ExternalAccountModel | DeletedExternalAccountModel; - 'failure_balance_transaction': string | BalanceTransactionModel; - 'failure_code': string; - 'failure_message': string; + 'skip_button': string; + 'submit_button': string; + 'title': string; +}; + +export type TerminalReaderReaderResourceEmailModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceNumericModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourcePhoneModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceChoiceModel = { 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'style': 'primary' | 'secondary'; + 'text': string; }; - 'method': string; - 'object': 'payout'; - 'original_payout': string | PayoutModel; - 'payout_method': string; - 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; - 'reversed_by': string | PayoutModel; - 'source_type': string; - 'statement_descriptor': string; - 'status': string; - 'trace_id': PayoutsTraceIdModel; - 'type': 'bank_account' | 'card'; + +export type TerminalReaderReaderResourceSelectionModel = { + 'choices': TerminalReaderReaderResourceChoiceModel[]; + 'id': string; + 'text': string; }; -export type ExternalAccountModel = BankAccountModel | CardModel; +export type TerminalReaderReaderResourceSignatureModel = { + 'value': string; +}; -export type TopupModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; +export type TerminalReaderReaderResourceTextModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceToggleModel = { + 'default_value': 'disabled' | 'enabled'; 'description': string; - 'expected_availability_date': number; - 'failure_code': string; - 'failure_message': string; - 'id': string; - 'livemode': boolean; + 'title': string; + 'value': 'disabled' | 'enabled'; +}; + +export type TerminalReaderReaderResourceInputModel = { + 'custom_text': TerminalReaderReaderResourceCustomTextModel; + 'email'?: TerminalReaderReaderResourceEmailModel | undefined; + 'numeric'?: TerminalReaderReaderResourceNumericModel | undefined; + 'phone'?: TerminalReaderReaderResourcePhoneModel | undefined; + 'required': boolean; + 'selection'?: TerminalReaderReaderResourceSelectionModel | undefined; + 'signature'?: TerminalReaderReaderResourceSignatureModel | undefined; + 'skipped'?: boolean | undefined; + 'text'?: TerminalReaderReaderResourceTextModel | undefined; + 'toggles': TerminalReaderReaderResourceToggleModel[]; + 'type': 'email' | 'numeric' | 'phone' | 'selection' | 'signature' | 'text'; +}; + +export type TerminalReaderReaderResourceCollectInputsActionModel = { + 'inputs': TerminalReaderReaderResourceInputModel[]; 'metadata': { [key: string]: string; }; - 'object': 'topup'; - 'source': SourceModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; - 'transfer_group': string; }; -export type PaymentMethodDetailsBancontactModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; - 'verified_name': string; +export type TerminalReaderReaderResourceTippingConfigModel = { + 'amount_eligible'?: number | undefined; }; -export type PaymentMethodDetailsModel = { - 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; - 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; - 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; - 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; - 'alma'?: PaymentMethodDetailsAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; - 'billie'?: PaymentMethodDetailsBillieModel | undefined; - 'blik'?: PaymentMethodDetailsBlikModel | undefined; - 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; - 'card'?: PaymentMethodDetailsCardModel | undefined; - 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; - 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; - 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodDetailsEpsModel | undefined; - 'fpx'?: PaymentMethodDetailsFpxModel | undefined; - 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; - 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; - 'ideal'?: PaymentMethodDetailsIdealModel | undefined; - 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; - 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; - 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; - 'link'?: PaymentMethodDetailsLinkModel | undefined; - 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; - 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; - 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; - 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; - 'p24'?: PaymentMethodDetailsP24Model | undefined; - 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; - 'payco'?: PaymentMethodDetailsPaycoModel | undefined; - 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; - 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; - 'pix'?: PaymentMethodDetailsPixModel | undefined; - 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; - 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; - 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; - 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; - 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; - 'sofort'?: PaymentMethodDetailsSofortModel | undefined; - 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; - 'swish'?: PaymentMethodDetailsSwishModel | undefined; - 'twint'?: PaymentMethodDetailsTwintModel | undefined; - 'type': string; - 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; - 'wechat'?: PaymentMethodDetailsWechatModel | undefined; - 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; - 'zip'?: PaymentMethodDetailsZipModel | undefined; +export type TerminalReaderReaderResourceCollectConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; }; -export type PaymentMethodDetailsIdealModel = { - 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; - 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'transaction_id': string; - 'verified_name': string; +export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = { + 'collect_config'?: TerminalReaderReaderResourceCollectConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; + 'payment_method'?: PaymentMethodModel | undefined; }; -export type PaymentMethodDetailsSofortModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'country': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; - 'verified_name': string; +export type TerminalReaderReaderResourceConfirmConfigModel = { + 'return_url'?: string | undefined; }; -export type ReviewModel = { - 'billing_zip': string; - 'charge': string | ChargeModel; - 'closed_reason': 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud'; - 'created': number; - 'id': string; - 'ip_address': string; - 'ip_address_location': RadarReviewResourceLocationModel; - 'livemode': boolean; - 'object': 'review'; - 'open': boolean; - 'opened_reason': 'manual' | 'rule'; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'reason': string; - 'session': RadarReviewResourceSessionModel; +export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = { + 'confirm_config'?: TerminalReaderReaderResourceConfirmConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; }; -export type ChargeTransferDataModel = { - 'amount': number; - 'destination': string | AccountModel; +export type TerminalReaderReaderResourceProcessConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'return_url'?: string | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; }; -export type TransferDataModel = { - 'amount'?: number | undefined; - 'destination': string | AccountModel; +export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = { + 'payment_intent': string | PaymentIntentModel; + 'process_config'?: TerminalReaderReaderResourceProcessConfigModel | undefined; }; -export type SetupIntentModel = { - 'application': string | ApplicationModel; - 'attach_to_self'?: boolean | undefined; - 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsSetupIntentModel; - 'cancellation_reason': 'abandoned' | 'duplicate' | 'requested_by_customer'; - 'client_secret': string; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'description': string; - 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; - 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; - 'id': string; - 'last_setup_error': ApiErrorsModel; - 'latest_attempt': string | SetupAttemptModel; - 'livemode': boolean; - 'mandate': string | MandateModel; - 'metadata': { - [key: string]: string; +export type TerminalReaderReaderResourceProcessSetupConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; }; - 'next_action': SetupIntentNextActionModel; - 'object': 'setup_intent'; - 'on_behalf_of': string | AccountModel; - 'payment_method': string | PaymentMethodModel; - 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; - 'payment_method_options': SetupIntentPaymentMethodOptionsModel; - 'payment_method_types': string[]; - 'single_use_mandate': string | MandateModel; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'usage': string; + +export type TerminalReaderReaderResourceProcessSetupIntentActionModel = { + 'generated_card'?: string | undefined; + 'process_config'?: TerminalReaderReaderResourceProcessSetupConfigModel | undefined; + 'setup_intent': string | SetupIntentModel; }; -export type PaymentMethodCardGeneratedCardModel = { - 'charge': string; - 'payment_method_details': CardGeneratedFromPaymentMethodDetailsModel; - 'setup_attempt': string | SetupAttemptModel; +export type TerminalReaderReaderResourceRefundPaymentConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; }; -export type PaymentMethodCardModel = { - 'brand': string; - 'checks': PaymentMethodCardChecksModel; - 'country': string; - 'description'?: string | undefined; - 'display_brand': string; - 'exp_month': number; - 'exp_year': number; - 'fingerprint'?: string | undefined; - 'funding': string; - 'generated_from': PaymentMethodCardGeneratedCardModel; - 'iin'?: string | undefined; - 'issuer'?: string | undefined; - 'last4': string; - 'networks': NetworksModel; - 'regulated_status': 'regulated' | 'unregulated'; - 'three_d_secure_usage': ThreeDSecureUsageModel; - 'wallet': PaymentMethodCardWalletModel; +export type TerminalReaderReaderResourceRefundPaymentActionModel = { + 'amount'?: number | undefined; + 'charge'?: string | ChargeModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason'?: 'duplicate' | 'fraudulent' | 'requested_by_customer' | undefined; + 'refund'?: string | RefundModel | undefined; + 'refund_application_fee'?: boolean | undefined; + 'refund_payment_config'?: TerminalReaderReaderResourceRefundPaymentConfigModel | undefined; + 'reverse_transfer'?: boolean | undefined; }; -export type InvoiceSettingCustomerSettingModel = { - 'custom_fields': InvoiceSettingCustomFieldModel[]; - 'default_payment_method': string | PaymentMethodModel; - 'footer': string; - 'rendering_options': InvoiceSettingCustomerRenderingOptionsModel; +export type TerminalReaderReaderResourceLineItemModel = { + 'amount': number; + 'description': string; + 'quantity': number; +}; + +export type TerminalReaderReaderResourceCartModel = { + 'currency': string; + 'line_items': TerminalReaderReaderResourceLineItemModel[]; + 'tax': number; + 'total': number; }; -export type ConnectAccountReferenceModel = { - 'account'?: string | AccountModel | undefined; - 'type': 'account' | 'self'; +export type TerminalReaderReaderResourceSetReaderDisplayActionModel = { + 'cart': TerminalReaderReaderResourceCartModel; + 'type': 'cart'; }; -export type SubscriptionAutomaticTaxModel = { - 'disabled_reason': 'requires_location_inputs'; - 'enabled': boolean; - 'liability': ConnectAccountReferenceModel; +export type TerminalReaderReaderResourceReaderActionModel = { + 'collect_inputs'?: TerminalReaderReaderResourceCollectInputsActionModel | undefined; + 'collect_payment_method'?: TerminalReaderReaderResourceCollectPaymentMethodActionModel | undefined; + 'confirm_payment_intent'?: TerminalReaderReaderResourceConfirmPaymentIntentActionModel | undefined; + 'failure_code': string; + 'failure_message': string; + 'process_payment_intent'?: TerminalReaderReaderResourceProcessPaymentIntentActionModel | undefined; + 'process_setup_intent'?: TerminalReaderReaderResourceProcessSetupIntentActionModel | undefined; + 'refund_payment'?: TerminalReaderReaderResourceRefundPaymentActionModel | undefined; + 'set_reader_display'?: TerminalReaderReaderResourceSetReaderDisplayActionModel | undefined; + 'status': 'failed' | 'in_progress' | 'succeeded'; + 'type': 'collect_inputs' | 'collect_payment_method' | 'confirm_payment_intent' | 'process_payment_intent' | 'process_setup_intent' | 'refund_payment' | 'set_reader_display'; }; -export type SubscriptionModel = { - 'application': string | ApplicationModel | DeletedApplicationModel; - 'application_fee_percent': number; - 'automatic_tax': SubscriptionAutomaticTaxModel; - 'billing_cycle_anchor': number; - 'billing_cycle_anchor_config': SubscriptionsResourceBillingCycleAnchorConfigModel; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'cancel_at': number; - 'cancel_at_period_end': boolean; - 'canceled_at': number; - 'cancellation_details': CancellationDetailsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'days_until_due': number; - 'default_payment_method': string | PaymentMethodModel; - 'default_source': string | PaymentSourceModel; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description': string; - 'discounts': Array; - 'ended_at': number; +export type TerminalReaderModel = { + 'action': TerminalReaderReaderResourceReaderActionModel; + 'device_sw_version': string; + 'device_type': 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'verifone_P400'; 'id': string; - 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; - 'items': { - 'data': SubscriptionItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -}; - 'latest_invoice': string | InvoiceModel; + 'ip_address': string; + 'label': string; + 'last_seen_at': number; 'livemode': boolean; + 'location': string | TerminalLocationModel; 'metadata': { [key: string]: string; }; - 'next_pending_invoice_item_invoice': number; - 'object': 'subscription'; - 'on_behalf_of': string | AccountModel; - 'pause_collection': SubscriptionsResourcePauseCollectionModel; - 'payment_settings': SubscriptionsResourcePaymentSettingsModel; - 'pending_invoice_item_interval': SubscriptionPendingInvoiceItemIntervalModel; - 'pending_setup_intent': string | SetupIntentModel; - 'pending_update': SubscriptionsResourcePendingUpdateModel; - 'schedule': string | SubscriptionScheduleModel; - 'start_date': number; - 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; - 'test_clock': string | TestHelpersTestClockModel; - 'transfer_data': SubscriptionTransferDataModel; - 'trial_end': number; - 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; - 'trial_start': number; + 'object': 'terminal.reader'; + 'serial_number': string; + 'status': 'offline' | 'online'; }; -export type TaxIdModel = { - 'country': string; - 'created': number; - 'customer': string | CustomerModel; - 'id': string; - 'livemode': boolean; - 'object': 'tax_id'; - 'owner': TaxIDsOwnerModel; - 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; - 'value': string; - 'verification': TaxIdVerificationModel; +export type TerminalReaderActionFailedModel = { + 'object': TerminalReaderModel; }; -export type TaxIDsOwnerModel = { - 'account'?: string | AccountModel | undefined; - 'application'?: string | ApplicationModel | undefined; - 'customer'?: string | CustomerModel | undefined; - 'type': 'account' | 'application' | 'customer' | 'self'; +export type TerminalReaderActionSucceededModel = { + 'object': TerminalReaderModel; }; -export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { - 'account_tax_ids': Array; - 'issuer': ConnectAccountReferenceModel; +export type TerminalReaderActionUpdatedModel = { + 'object': TerminalReaderModel; }; -export type ProductModel = { - 'active': boolean; - 'created': number; - 'default_price'?: string | PriceModel | undefined; - 'description': string; - 'id': string; - 'images': string[]; - 'livemode': boolean; - 'marketing_features': ProductMarketingFeatureModel[]; - 'metadata': { - [key: string]: string; +export type TestHelpersTestClockAdvancingModel = { + 'object': TestHelpersTestClockModel; }; - 'name': string; - 'object': 'product'; - 'package_dimensions': PackageDimensionsModel; - 'shippable': boolean; - 'statement_descriptor'?: string | undefined; - 'tax_code': string | TaxCodeModel; - 'type': 'good' | 'service'; - 'unit_label'?: string | undefined; - 'updated': number; - 'url': string; + +export type TestHelpersTestClockCreatedModel = { + 'object': TestHelpersTestClockModel; }; -export type PriceModel = { - 'active': boolean; - 'billing_scheme': 'per_unit' | 'tiered'; - 'created': number; - 'currency': string; - 'currency_options'?: { - [key: string]: CurrencyOptionModel; -} | undefined; - 'custom_unit_amount': CustomUnitAmountModel; - 'id': string; - 'livemode': boolean; - 'lookup_key': string; - 'metadata': { - [key: string]: string; +export type TestHelpersTestClockDeletedModel = { + 'object': TestHelpersTestClockModel; }; - 'nickname': string; - 'object': 'price'; - 'product': string | ProductModel | DeletedProductModel; - 'recurring': RecurringModel; - 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; - 'tiers'?: PriceTierModel[] | undefined; - 'tiers_mode': 'graduated' | 'volume'; - 'transform_quantity': TransformQuantityModel; - 'type': 'one_time' | 'recurring'; - 'unit_amount': number; - 'unit_amount_decimal': string; + +export type TestHelpersTestClockInternalFailureModel = { + 'object': TestHelpersTestClockModel; }; -export type PlanModel = { - 'active': boolean; - 'amount': number; - 'amount_decimal': string; - 'billing_scheme': 'per_unit' | 'tiered'; +export type TestHelpersTestClockReadyModel = { + 'object': TestHelpersTestClockModel; +}; + +export type TokenModel = { + 'bank_account'?: BankAccountModel | undefined; + 'card'?: CardModel | undefined; + 'client_ip': string; 'created': number; - 'currency': string; 'id': string; - 'interval': 'day' | 'month' | 'week' | 'year'; - 'interval_count': number; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'token'; + 'type': string; + 'used': boolean; }; - 'meter': string; - 'nickname': string; - 'object': 'plan'; - 'product': string | ProductModel | DeletedProductModel; - 'tiers'?: PlanTierModel[] | undefined; - 'tiers_mode': 'graduated' | 'volume'; - 'transform_usage': TransformUsageModel; - 'trial_period_days': number; - 'usage_type': 'licensed' | 'metered'; + +export type TopupCanceledModel = { + 'object': TopupModel; }; -export type SubscriptionItemModel = { - 'billing_thresholds': SubscriptionItemBillingThresholdsModel; - 'created': number; - 'current_period_end': number; - 'current_period_start': number; - 'discounts': Array; - 'id': string; - 'metadata': { - [key: string]: string; +export type TopupCreatedModel = { + 'object': TopupModel; }; - 'object': 'subscription_item'; - 'plan': PlanModel; - 'price': PriceModel; - 'quantity'?: number | undefined; - 'subscription': string; - 'tax_rates': TaxRateModel[]; + +export type TopupFailedModel = { + 'object': TopupModel; }; -export type InvoiceModel = { - 'account_country': string; - 'account_name': string; - 'account_tax_ids': Array; - 'amount_due': number; - 'amount_overpaid': number; - 'amount_paid': number; - 'amount_remaining': number; - 'amount_shipping': number; - 'application': string | ApplicationModel | DeletedApplicationModel; - 'attempt_count': number; - 'attempted': boolean; - 'auto_advance'?: boolean | undefined; - 'automatic_tax': AutomaticTaxModel; - 'automatically_finalizes_at': number; - 'billing_reason': 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming'; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; - 'created': number; - 'currency': string; - 'custom_fields': InvoiceSettingCustomFieldModel[]; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_address': AddressModel; - 'customer_email': string; - 'customer_name': string; - 'customer_phone': string; - 'customer_shipping': ShippingModel; - 'customer_tax_exempt': 'exempt' | 'none' | 'reverse'; - 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; - 'default_payment_method': string | PaymentMethodModel; - 'default_source': string | PaymentSourceModel; - 'default_tax_rates': TaxRateModel[]; - 'description': string; - 'discounts': Array; - 'due_date': number; - 'effective_at': number; - 'ending_balance': number; - 'footer': string; - 'from_invoice': InvoicesResourceFromInvoiceModel; - 'hosted_invoice_url'?: string | undefined; - 'id'?: string | undefined; - 'invoice_pdf'?: string | undefined; - 'issuer': ConnectAccountReferenceModel; - 'last_finalization_error': ApiErrorsModel; - 'latest_revision': string | InvoiceModel; - 'lines': { - 'data': LineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; +export type TopupReversedModel = { + 'object': TopupModel; }; - 'livemode': boolean; - 'metadata': { - [key: string]: string; + +export type TopupSucceededModel = { + 'object': TopupModel; }; - 'next_payment_attempt': number; - 'number': string; - 'object': 'invoice'; - 'on_behalf_of': string | AccountModel; - 'parent': BillingBillResourceInvoicingParentsInvoiceParentModel; - 'payment_settings': InvoicesPaymentSettingsModel; - 'payments'?: { - 'data': InvoicePaymentModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'period_end': number; - 'period_start': number; - 'post_payment_credit_notes_amount': number; - 'pre_payment_credit_notes_amount': number; - 'receipt_number': string; - 'rendering': InvoicesResourceInvoiceRenderingModel; - 'shipping_cost': InvoicesResourceShippingCostModel; - 'shipping_details': ShippingModel; - 'starting_balance': number; - 'statement_descriptor': string; - 'status': 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'; - 'status_transitions': InvoicesResourceStatusTransitionsModel; - 'subscription'?: string | SubscriptionModel | undefined; - 'subtotal': number; - 'subtotal_excluding_tax': number; - 'test_clock': string | TestHelpersTestClockModel; - 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; - 'total': number; - 'total_discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'total_excluding_tax': number; - 'total_pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; - 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; - 'webhooks_delivered_at': number; + +export type TransferCreatedModel = { + 'object': TransferModel; +}; + +export type TransferReversedModel = { + 'object': TransferModel; }; -export type DeletedDiscountModel = { - 'checkout_session': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'deleted': boolean; - 'id': string; - 'invoice': string; - 'invoice_item': string; - 'object': 'discount'; - 'promotion_code': string | PromotionCodeModel; - 'source': DiscountSourceModel; - 'start': number; - 'subscription': string; - 'subscription_item': string; +export type TransferUpdatedModel = { + 'object': TransferModel; }; -export type InvoicesResourceFromInvoiceModel = { - 'action': string; - 'invoice': string | InvoiceModel; +export type TreasuryReceivedCreditsResourceStatusTransitionsModel = { + 'posted_at': number; }; -export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TreasuryTransactionsResourceBalanceImpactModel = { + 'cash': number; + 'inbound_pending': number; + 'outbound_pending': number; }; -export type BillingCreditGrantsResourceBalanceCreditModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_application_invoice_voided': BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel; - 'type': 'credits_application_invoice_voided' | 'credits_granted'; +export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = { + 'issuing_dispute': string; }; -export type BillingCreditBalanceTransactionModel = { - 'created': number; - 'credit': BillingCreditGrantsResourceBalanceCreditModel; - 'credit_grant': string | BillingCreditGrantModel; - 'debit': BillingCreditGrantsResourceBalanceDebitModel; - 'effective_at': number; - 'id': string; - 'livemode': boolean; - 'object': 'billing.credit_balance_transaction'; - 'test_clock': string | TestHelpersTestClockModel; - 'type': 'credit' | 'debit'; +export type TreasuryReceivedDebitsResourceStatusTransitionsModel = { + 'completed_at': number; }; -export type BillingCreditGrantModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; - 'category': 'paid' | 'promotional'; +export type TreasuryDebitReversalModel = { + 'amount': number; 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'effective_at': number; - 'expires_at': number; + 'currency': string; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; + 'linked_flows': TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'name': string; - 'object': 'billing.credit_grant'; - 'priority'?: number | undefined; - 'test_clock': string | TestHelpersTestClockModel; - 'updated': number; - 'voided_at': number; + 'network': 'ach' | 'card'; + 'object': 'treasury.debit_reversal'; + 'received_debit': string; + 'status': 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TreasuryInboundTransfersResourceFailureDetailsModel = { + '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'; }; -export type BillingCreditGrantsResourceBalanceDebitModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_applied': BillingCreditGrantsResourceBalanceCreditsAppliedModel; - 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = { + 'received_debit': string; }; -export type InvoicesResourcePretaxCreditAmountModel = { - 'amount': number; - 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; - 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; - 'type': 'credit_balance_transaction' | 'discount'; +export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'failed_at': number; + 'succeeded_at': number; }; -export type LineItemModel = { +export type TreasuryInboundTransferModel = { 'amount': number; + 'cancelable': boolean; + 'created': number; 'currency': string; 'description': string; - 'discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'discountable': boolean; - 'discounts': Array; + 'failure_details': TreasuryInboundTransfersResourceFailureDetailsModel; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string; + 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'line_item'; - 'parent': BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel; - 'period': InvoiceLineItemPeriodModel; - 'pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; - 'pricing': BillingBillResourceInvoicingPricingPricingModel; - 'quantity': number; - 'subscription': string | SubscriptionModel; - 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'object': 'treasury.inbound_transfer'; + 'origin_payment_method': string; + 'origin_payment_method_details': InboundTransfersModel; + 'returned': boolean; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { - 'metadata': { - [key: string]: string; +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = { + 'ip_address': string; + 'present': boolean; }; - 'subscription': string | SubscriptionModel; - 'subscription_proration_date'?: number | undefined; + +export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingBillResourceInvoicingParentsInvoiceParentModel = { - 'quote_details': BillingBillResourceInvoicingParentsInvoiceQuoteParentModel; - 'subscription_details': BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel; - 'type': 'quote_details' | 'subscription_details'; +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = { + 'canceled_at': number; + 'failed_at': number; + 'posted_at': number; + 'returned_at': number; }; -export type InvoicePaymentModel = { - 'amount_paid': number; - 'amount_requested': number; - 'created': number; - 'currency': string; - 'id': string; - 'invoice': string | InvoiceModel | DeletedInvoiceModel; - 'is_default': boolean; - 'livemode': boolean; - 'object': 'invoice_payment'; - 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; - 'status': string; - 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = { + 'trace_id': string; }; -export type SubscriptionScheduleModel = { - 'application': string | ApplicationModel | DeletedApplicationModel; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'canceled_at': number; - 'completed_at': number; +export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = { + 'chips': string; + 'imad': string; + 'omad': string; +}; + +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundPaymentsResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel | undefined; +}; + +export type TreasuryOutboundPaymentModel = { + 'amount': number; + 'cancelable': boolean; 'created': number; - 'current_phase': SubscriptionScheduleCurrentPhaseModel; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; - 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'currency': string; + 'customer': string; + 'description': string; + 'destination_payment_method': string; + 'destination_payment_method_details': OutboundPaymentsPaymentMethodDetailsModel; + 'end_user_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'subscription_schedule'; - 'phases': SubscriptionSchedulePhaseConfigurationModel[]; - 'released_at': number; - 'released_subscription': string; - 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; - 'subscription': string | SubscriptionModel; - 'test_clock': string | TestHelpersTestClockModel; + 'object': 'treasury.outbound_payment'; + 'returned_details': TreasuryOutboundPaymentsResourceReturnedStatusModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; + 'tracking_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type SubscriptionSchedulesResourceDefaultSettingsModel = { - 'application_fee_percent': number; - 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; - 'billing_cycle_anchor': 'automatic' | 'phase_start'; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'default_payment_method': string | PaymentMethodModel; - 'description': string; - 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; - 'on_behalf_of': string | AccountModel; - 'transfer_data': SubscriptionTransferDataModel; +export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; }; -export type SubscriptionTransferDataModel = { - 'amount_percent': number; - 'destination': string | AccountModel; +export type TreasuryOutboundTransfersResourceStatusTransitionsModel = { + 'canceled_at': number; + 'failed_at': number; + 'posted_at': number; + 'returned_at': number; }; -export type SubscriptionSchedulePhaseConfigurationModel = { - 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; - 'application_fee_percent': number; - 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; - 'billing_cycle_anchor': 'automatic' | 'phase_start'; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'currency': string; - 'default_payment_method': string | PaymentMethodModel; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description': string; - 'discounts': DiscountsResourceStackableDiscountModel[]; - 'end_date': number; - 'invoice_settings': InvoiceSettingSubscriptionSchedulePhaseSettingModel; - 'items': SubscriptionScheduleConfigurationItemModel[]; - 'metadata': { - [key: string]: string; -}; - 'on_behalf_of': string | AccountModel; - 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; - 'start_date': number; - 'transfer_data': SubscriptionTransferDataModel; - 'trial_end': number; +export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = { + 'trace_id': string; }; -export type CreditNoteModel = { - 'amount': number; - 'amount_shipping': number; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_balance_transaction': string | CustomerBalanceTransactionModel; - 'discount_amount': number; - 'discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'effective_at': number; - 'id': string; - 'invoice': string | InvoiceModel; - 'lines': { - 'data': CreditNoteLineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -}; - 'livemode': boolean; - 'memo': string; - 'metadata': { - [key: string]: string; +export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = { + 'chips': string; + 'imad': string; + 'omad': string; }; - 'number': string; - 'object': 'credit_note'; - 'out_of_band_amount': number; - 'pdf': string; - 'post_payment_amount': number; - 'pre_payment_amount': number; - 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; - 'reason': 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory'; - 'refunds': CreditNoteRefundModel[]; - 'shipping_cost': InvoicesResourceShippingCostModel; - 'status': 'issued' | 'void'; - 'subtotal': number; - 'subtotal_excluding_tax': number; - 'total': number; - 'total_excluding_tax': number; - 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; - 'type': 'mixed' | 'post_payment' | 'pre_payment'; - 'voided_at': number; + +export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundTransfersResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel | undefined; }; -export type CustomerBalanceTransactionModel = { +export type TreasuryOutboundTransferModel = { 'amount': number; - 'checkout_session': string | CheckoutSessionModel; + 'cancelable': boolean; 'created': number; - 'credit_note': string | CreditNoteModel; 'currency': string; - 'customer': string | CustomerModel; 'description': string; - 'ending_balance': number; + 'destination_payment_method': string; + 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string | InvoiceModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'customer_balance_transaction'; - 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; + 'object': 'treasury.outbound_transfer'; + 'returned_details': TreasuryOutboundTransfersResourceReturnedDetailsModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; + 'tracking_details': TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type QuoteModel = { - 'amount_subtotal': number; - 'amount_total': number; - 'application': string | ApplicationModel | DeletedApplicationModel; - 'application_fee_amount': number; - 'application_fee_percent': number; - 'automatic_tax': QuotesResourceAutomaticTaxModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'computed': QuotesResourceComputedModel; +export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = { + 'bank_name': string; + 'last4': string; + 'routing_number': string; +}; + +export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = { + 'balance'?: 'payments' | undefined; + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: ReceivedPaymentMethodDetailsFinancialAccountModel | undefined; + 'issuing_card'?: string | undefined; + 'type': 'balance' | 'financial_account' | 'issuing_card' | 'stripe' | 'us_bank_account'; + 'us_bank_account'?: TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { + 'credit_reversal'?: TreasuryCreditReversalModel | undefined; + 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; + 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; + 'payout'?: PayoutModel | undefined; + 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +}; + +export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { + 'credit_reversal': string; + 'issuing_authorization': string; + 'issuing_transaction': string; + 'source_flow': string; + 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; + 'source_flow_type': string; +}; + +export type TreasuryReceivedCreditsResourceReversalDetailsModel = { + 'deadline': number; + 'restricted_reason': 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted'; +}; + +export type TreasuryReceivedCreditModel = { + 'amount': number; 'created': number; 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'default_tax_rates'?: Array | undefined; 'description': string; - 'discounts': Array; - 'expires_at': number; - 'footer': string; - 'from_quote': QuotesResourceFromQuoteModel; - 'header': string; + 'failure_code': 'account_closed' | 'account_frozen' | 'international_transaction' | 'other'; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string | InvoiceModel | DeletedInvoiceModel; - 'invoice_settings': InvoiceSettingQuoteSettingModel; - 'line_items'?: { - 'data': ItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; + 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; + 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; + 'object': 'treasury.received_credit'; + 'reversal_details': TreasuryReceivedCreditsResourceReversalDetailsModel; + 'status': 'failed' | 'succeeded'; + 'transaction': string | TreasuryTransactionModel; }; - 'number': string; - 'object': 'quote'; - 'on_behalf_of': string | AccountModel; - 'status': 'accepted' | 'canceled' | 'draft' | 'open'; - 'status_transitions': QuotesResourceStatusTransitionsModel; - 'subscription': string | SubscriptionModel; - 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; - 'subscription_schedule': string | SubscriptionScheduleModel; - 'test_clock': string | TestHelpersTestClockModel; - 'total_details': QuotesResourceTotalDetailsModel; - 'transfer_data': QuotesResourceTransferDataModel; + +export type TreasuryReceivedDebitsResourceLinkedFlowsModel = { + 'debit_reversal': string; + 'inbound_transfer': string; + 'issuing_authorization': string; + 'issuing_transaction': string; + 'payout': string; }; -export type QuotesResourceFromQuoteModel = { - 'is_revision': boolean; - 'quote': string | QuoteModel; +export type TreasuryReceivedDebitsResourceReversalDetailsModel = { + 'deadline': number; + 'restricted_reason': 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted'; }; -export type TreasuryCreditReversalModel = { +export type TreasuryReceivedDebitModel = { 'amount': number; 'created': number; 'currency': string; + 'description': string; + 'failure_code': 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other'; 'financial_account': string; 'hosted_regulatory_receipt_url': string; 'id': string; + 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; + 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'network': 'ach' | 'stripe'; - 'object': 'treasury.credit_reversal'; - 'received_credit': string; - 'status': 'canceled' | 'posted' | 'processing'; - 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; + 'network': 'ach' | 'card' | 'stripe'; + 'object': 'treasury.received_debit'; + 'reversal_details': TreasuryReceivedDebitsResourceReversalDetailsModel; + 'status': 'failed' | 'succeeded'; 'transaction': string | TreasuryTransactionModel; }; @@ -1707,6 +11048,27 @@ export type TreasuryTransactionsResourceFlowDetailsModel = { 'type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; }; +export type TreasuryTransactionEntryModel = { + 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; + 'created': number; + 'currency': string; + 'effective_at': number; + 'financial_account': string; + 'flow': string; + 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; + 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'id': string; + 'livemode': boolean; + 'object': 'treasury.transaction_entry'; + 'transaction': string | TreasuryTransactionModel; + 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; +}; + +export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = { + 'posted_at': number; + 'void_at': number; +}; + export type TreasuryTransactionModel = { 'amount': number; 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; @@ -1730,202 +11092,297 @@ export type TreasuryTransactionModel = { 'status_transitions': TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel; }; -export type TreasuryDebitReversalModel = { +export type TreasuryCreditReversalModel = { 'amount': number; 'created': number; 'currency': string; 'financial_account': string; 'hosted_regulatory_receipt_url': string; 'id': string; - 'linked_flows': TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'network': 'ach' | 'card'; - 'object': 'treasury.debit_reversal'; - 'received_debit': string; - 'status': 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'network': 'ach' | 'stripe'; + 'object': 'treasury.credit_reversal'; + 'received_credit': string; + 'status': 'canceled' | 'posted' | 'processing'; + 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; 'transaction': string | TreasuryTransactionModel; }; -export type TreasuryInboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description': string; - 'failure_details': TreasuryInboundTransfersResourceFailureDetailsModel; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryCreditReversalCreatedModel = { + 'object': TreasuryCreditReversalModel; }; - 'object': 'treasury.inbound_transfer'; - 'origin_payment_method': string; - 'origin_payment_method_details': InboundTransfersModel; - 'returned': boolean; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryCreditReversalPostedModel = { + 'object': TreasuryCreditReversalModel; }; -export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryDebitReversalCompletedModel = { + 'object': TreasuryDebitReversalModel; }; -export type TreasuryOutboundPaymentModel = { - 'amount': number; - 'cancelable': boolean; +export type TreasuryDebitReversalCreatedModel = { + 'object': TreasuryDebitReversalModel; +}; + +export type TreasuryDebitReversalInitialCreditGrantedModel = { + 'object': TreasuryDebitReversalModel; +}; + +export type TreasuryFinancialAccountsResourceBalanceModel = { + 'cash': { + [key: string]: number; +}; + 'inbound_pending': { + [key: string]: number; +}; + 'outbound_pending': { + [key: string]: number; +}; +}; + +export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = { + 'code': 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; + 'resolution': 'contact_stripe' | 'provide_information' | 'remove_restriction'; + 'restriction'?: 'inbound_flows' | 'outbound_flows' | undefined; +}; + +export type TreasuryFinancialAccountsResourceToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceInboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceOutboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountFeaturesModel = { + 'card_issuing'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'deposit_insurance'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'financial_addresses'?: TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel | undefined; + 'inbound_transfers'?: TreasuryFinancialAccountsResourceInboundTransfersModel | undefined; + 'intra_stripe_flows'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'object': 'treasury.financial_account_features'; + 'outbound_payments'?: TreasuryFinancialAccountsResourceOutboundPaymentsModel | undefined; + 'outbound_transfers'?: TreasuryFinancialAccountsResourceOutboundTransfersModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceAbaRecordModel = { + 'account_holder_name': string; + 'account_number'?: string | undefined; + 'account_number_last4': string; + 'bank_name': string; + 'routing_number': string; +}; + +export type TreasuryFinancialAccountsResourceFinancialAddressModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'us_domestic_wire'> | undefined; + 'type': 'aba'; +}; + +export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = { + 'inbound_flows': 'restricted' | 'unrestricted'; + 'outbound_flows': 'restricted' | 'unrestricted'; +}; + +export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = { + 'reasons': Array<'account_rejected' | 'closed_by_platform' | 'other'>; +}; + +export type TreasuryFinancialAccountsResourceStatusDetailsModel = { + 'closed': TreasuryFinancialAccountsResourceClosedStatusDetailsModel; +}; + +export type TreasuryFinancialAccountModel = { + 'active_features'?: Array<'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': TreasuryFinancialAccountsResourceBalanceModel; + 'country': string; 'created': number; - 'currency': string; - 'customer': string; - 'description': string; - 'destination_payment_method': string; - 'destination_payment_method_details': OutboundPaymentsPaymentMethodDetailsModel; - 'end_user_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; + 'features'?: TreasuryFinancialAccountFeaturesModel | undefined; + 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressModel[]; 'id': string; + 'is_default'?: boolean | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'treasury.outbound_payment'; - 'returned_details': TreasuryOutboundPaymentsResourceReturnedStatusModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; - 'tracking_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel; - 'transaction': string | TreasuryTransactionModel; + 'nickname'?: string | undefined; + 'object': 'treasury.financial_account'; + 'pending_features'?: Array<'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'?: TreasuryFinancialAccountsResourcePlatformRestrictionsModel | undefined; + 'restricted_features'?: Array<'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': TreasuryFinancialAccountsResourceStatusDetailsModel; + 'supported_currencies': string[]; +}; + +export type TreasuryFinancialAccountClosedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryFinancialAccountCreatedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryFinancialAccountFeaturesStatusUpdatedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryInboundTransferCanceledModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferCreatedModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferFailedModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferSucceededModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryOutboundPaymentCanceledModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentCreatedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentFailedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentPostedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentReturnedModel = { + 'object': TreasuryOutboundPaymentModel; }; -export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundPaymentTrackingDetailsUpdatedModel = { + 'object': TreasuryOutboundPaymentModel; }; -export type TreasuryOutboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description': string; - 'destination_payment_method': string; - 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryOutboundTransferCanceledModel = { + 'object': TreasuryOutboundTransferModel; }; - 'object': 'treasury.outbound_transfer'; - 'returned_details': TreasuryOutboundTransfersResourceReturnedDetailsModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; - 'tracking_details': TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryOutboundTransferCreatedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { - 'credit_reversal'?: TreasuryCreditReversalModel | undefined; - 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; - 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; - 'payout'?: PayoutModel | undefined; - 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +export type TreasuryOutboundTransferExpectedArrivalDateUpdatedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { - 'credit_reversal': string; - 'issuing_authorization': string; - 'issuing_transaction': string; - 'source_flow': string; - 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; - 'source_flow_type': string; +export type TreasuryOutboundTransferFailedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditModel = { - 'amount': number; - 'created': number; - 'currency': string; - 'description': string; - 'failure_code': 'account_closed' | 'account_frozen' | 'international_transaction' | 'other'; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; - 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; - 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; - 'object': 'treasury.received_credit'; - 'reversal_details': TreasuryReceivedCreditsResourceReversalDetailsModel; - 'status': 'failed' | 'succeeded'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundTransferPostedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedDebitModel = { - 'amount': number; - 'created': number; - 'currency': string; - 'description': string; - 'failure_code': 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other'; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; - 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; - 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe'; - 'object': 'treasury.received_debit'; - 'reversal_details': TreasuryReceivedDebitsResourceReversalDetailsModel; - 'status': 'failed' | 'succeeded'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundTransferReturnedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryTransactionEntryModel = { - 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; +export type TreasuryOutboundTransferTrackingDetailsUpdatedModel = { + 'object': TreasuryOutboundTransferModel; +}; + +export type TreasuryReceivedCreditCreatedModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedCreditFailedModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedCreditSucceededModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedDebitCreatedModel = { + 'object': TreasuryReceivedDebitModel; +}; + +export type WebhookEndpointModel = { + 'api_version': string; + 'application': string; 'created': number; - 'currency': string; - 'effective_at': number; - 'financial_account': string; - 'flow': string; - 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; - 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'description': string; + 'enabled_events': string[]; 'id': string; 'livemode': boolean; - 'object': 'treasury.transaction_entry'; - 'transaction': string | TreasuryTransactionModel; - 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; + 'metadata': { + [key: string]: string; +}; + 'object': 'webhook_endpoint'; + 'secret'?: string | undefined; + 'status': string; + 'url': string; }; -export const AccountAnnualRevenue = z.object({ +export const AccountAnnualRevenue: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'fiscal_year_end': z.string() }); -export type AccountAnnualRevenueModel = z.infer; - -export const AccountMonthlyEstimatedRevenue = z.object({ +export const AccountMonthlyEstimatedRevenue: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type AccountMonthlyEstimatedRevenueModel = z.infer; - -export const Address = z.object({ +export const Address: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -1934,9 +11391,7 @@ export const Address = z.object({ 'state': z.string() }); -export type AddressModel = z.infer; - -export const AccountBusinessProfile = z.object({ +export const AccountBusinessProfile: z.ZodType = z.object({ 'annual_revenue': z.union([AccountAnnualRevenue]).optional(), 'estimated_worker_count': z.number().int().optional(), 'mcc': z.string(), @@ -1951,9 +11406,7 @@ export const AccountBusinessProfile = z.object({ 'url': z.string() }); -export type AccountBusinessProfileModel = z.infer; - -export const AccountCapabilities = z.object({ +export const AccountCapabilities: z.ZodType = z.object({ 'acss_debit_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'affirm_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'afterpay_clearpay_payments': z.enum(['active', 'inactive', 'pending']).optional(), @@ -2016,9 +11469,7 @@ export const AccountCapabilities = z.object({ 'zip_payments': z.enum(['active', 'inactive', 'pending']).optional() }); -export type AccountCapabilitiesModel = z.infer; - -export const LegalEntityJapanAddress = z.object({ +export const LegalEntityJapanAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -2028,40 +11479,30 @@ export const LegalEntityJapanAddress = z.object({ 'town': z.string() }); -export type LegalEntityJapanAddressModel = z.infer; - -export const LegalEntityDirectorshipDeclaration = z.object({ +export const LegalEntityDirectorshipDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityDirectorshipDeclarationModel = z.infer; - -export const LegalEntityUboDeclaration = z.object({ +export const LegalEntityUboDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityUboDeclarationModel = z.infer; - -export const LegalEntityRegistrationDate = z.object({ +export const LegalEntityRegistrationDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type LegalEntityRegistrationDateModel = z.infer; - -export const LegalEntityRepresentativeDeclaration = z.object({ +export const LegalEntityRepresentativeDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityRepresentativeDeclarationModel = z.infer; - export const FileLink: z.ZodType = z.object({ 'created': z.number().int(), 'expired': z.boolean(), @@ -2129,25 +11570,19 @@ export const LegalEntityCompany: z.ZodType = z.object({ 'verification': z.union([z.lazy(() => LegalEntityCompanyVerification)]).optional() }); -export const AccountUnificationAccountControllerFees = z.object({ +export const AccountUnificationAccountControllerFees: z.ZodType = z.object({ 'payer': z.enum(['account', 'application', 'application_custom', 'application_express']) }); -export type AccountUnificationAccountControllerFeesModel = z.infer; - -export const AccountUnificationAccountControllerLosses = z.object({ +export const AccountUnificationAccountControllerLosses: z.ZodType = z.object({ 'payments': z.enum(['application', 'stripe']) }); -export type AccountUnificationAccountControllerLossesModel = z.infer; - -export const AccountUnificationAccountControllerStripeDashboard = z.object({ +export const AccountUnificationAccountControllerStripeDashboard: z.ZodType = z.object({ 'type': z.enum(['express', 'full', 'none']) }); -export type AccountUnificationAccountControllerStripeDashboardModel = z.infer; - -export const AccountUnificationAccountController = z.object({ +export const AccountUnificationAccountController: z.ZodType = z.object({ 'fees': AccountUnificationAccountControllerFees.optional(), 'is_controller': z.boolean().optional(), 'losses': AccountUnificationAccountControllerLosses.optional(), @@ -2156,16 +11591,12 @@ export const AccountUnificationAccountController = z.object({ 'type': z.enum(['account', 'application']) }); -export type AccountUnificationAccountControllerModel = z.infer; - -export const CustomerBalanceCustomerBalanceSettings = z.object({ +export const CustomerBalanceCustomerBalanceSettings: z.ZodType = z.object({ 'reconciliation_mode': z.enum(['automatic', 'manual']), 'using_merchant_default': z.boolean() }); -export type CustomerBalanceCustomerBalanceSettingsModel = z.infer; - -export const CashBalance = z.object({ +export const CashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()), 'customer': z.string(), 'livemode': z.boolean(), @@ -2173,22 +11604,16 @@ export const CashBalance = z.object({ 'settings': CustomerBalanceCustomerBalanceSettings }); -export type CashBalanceModel = z.infer; - -export const DeletedCustomer = z.object({ +export const DeletedCustomer: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['customer']) }); -export type DeletedCustomerModel = z.infer; - -export const TokenCardNetworks = z.object({ +export const TokenCardNetworks: z.ZodType = z.object({ 'preferred': z.string() }); -export type TokenCardNetworksModel = z.infer; - export const Card: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'address_city': z.string(), @@ -2226,7 +11651,7 @@ export const Card: z.ZodType = z.object({ 'tokenization_method': z.string() }); -export const SourceTypeAchCreditTransfer = z.object({ +export const SourceTypeAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string().optional(), 'bank_name': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2237,9 +11662,7 @@ export const SourceTypeAchCreditTransfer = z.object({ 'swift_code': z.string().optional() }); -export type SourceTypeAchCreditTransferModel = z.infer; - -export const SourceTypeAchDebit = z.object({ +export const SourceTypeAchDebit: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'country': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2248,9 +11671,7 @@ export const SourceTypeAchDebit = z.object({ 'type': z.string().optional() }); -export type SourceTypeAchDebitModel = z.infer; - -export const SourceTypeAcssDebit = z.object({ +export const SourceTypeAcssDebit: z.ZodType = z.object({ 'bank_address_city': z.string().optional(), 'bank_address_line_1': z.string().optional(), 'bank_address_line_2': z.string().optional(), @@ -2263,25 +11684,19 @@ export const SourceTypeAcssDebit = z.object({ 'routing_number': z.string().optional() }); -export type SourceTypeAcssDebitModel = z.infer; - -export const SourceTypeAlipay = z.object({ +export const SourceTypeAlipay: z.ZodType = z.object({ 'data_string': z.string().optional(), 'native_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeAlipayModel = z.infer; - -export const SourceTypeAuBecsDebit = z.object({ +export const SourceTypeAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional() }); -export type SourceTypeAuBecsDebitModel = z.infer; - -export const SourceTypeBancontact = z.object({ +export const SourceTypeBancontact: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2290,9 +11705,7 @@ export const SourceTypeBancontact = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeBancontactModel = z.infer; - -export const SourceTypeCard = z.object({ +export const SourceTypeCard: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'brand': z.string().optional(), @@ -2312,9 +11725,7 @@ export const SourceTypeCard = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeCardModel = z.infer; - -export const SourceTypeCardPresent = z.object({ +export const SourceTypeCardPresent: z.ZodType = z.object({ 'application_cryptogram': z.string().optional(), 'application_preferred_name': z.string().optional(), 'authorization_code': z.string().optional(), @@ -2343,41 +11754,31 @@ export const SourceTypeCardPresent = z.object({ 'transaction_status_information': z.string().optional() }); -export type SourceTypeCardPresentModel = z.infer; - -export const SourceCodeVerificationFlow = z.object({ +export const SourceCodeVerificationFlow: z.ZodType = z.object({ 'attempts_remaining': z.number().int(), 'status': z.string() }); -export type SourceCodeVerificationFlowModel = z.infer; - -export const SourceTypeEps = z.object({ +export const SourceTypeEps: z.ZodType = z.object({ 'reference': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeEpsModel = z.infer; - -export const SourceTypeGiropay = z.object({ +export const SourceTypeGiropay: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeGiropayModel = z.infer; - -export const SourceTypeIdeal = z.object({ +export const SourceTypeIdeal: z.ZodType = z.object({ 'bank': z.string().optional(), 'bic': z.string().optional(), 'iban_last4': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeIdealModel = z.infer; - -export const SourceTypeKlarna = z.object({ +export const SourceTypeKlarna: z.ZodType = z.object({ 'background_image_url': z.string().optional(), 'client_token': z.string().optional(), 'first_name': z.string().optional(), @@ -2406,9 +11807,7 @@ export const SourceTypeKlarna = z.object({ 'shipping_last_name': z.string().optional() }); -export type SourceTypeKlarnaModel = z.infer; - -export const SourceTypeMultibanco = z.object({ +export const SourceTypeMultibanco: z.ZodType = z.object({ 'entity': z.string().optional(), 'reference': z.string().optional(), 'refund_account_holder_address_city': z.string().optional(), @@ -2421,9 +11820,7 @@ export const SourceTypeMultibanco = z.object({ 'refund_iban': z.string().optional() }); -export type SourceTypeMultibancoModel = z.infer; - -export const SourceOwner = z.object({ +export const SourceOwner: z.ZodType = z.object({ 'address': z.union([Address]), 'email': z.string(), 'name': z.string(), @@ -2434,15 +11831,11 @@ export const SourceOwner = z.object({ 'verified_phone': z.string() }); -export type SourceOwnerModel = z.infer; - -export const SourceTypeP24 = z.object({ +export const SourceTypeP24: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type SourceTypeP24Model = z.infer; - -export const SourceReceiverFlow = z.object({ +export const SourceReceiverFlow: z.ZodType = z.object({ 'address': z.string(), 'amount_charged': z.number().int(), 'amount_received': z.number().int(), @@ -2451,18 +11844,14 @@ export const SourceReceiverFlow = z.object({ 'refund_attributes_status': z.string() }); -export type SourceReceiverFlowModel = z.infer; - -export const SourceRedirectFlow = z.object({ +export const SourceRedirectFlow: z.ZodType = z.object({ 'failure_reason': z.string(), 'return_url': z.string(), 'status': z.string(), 'url': z.string() }); -export type SourceRedirectFlowModel = z.infer; - -export const SourceTypeSepaCreditTransfer = z.object({ +export const SourceTypeSepaCreditTransfer: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'iban': z.string().optional(), @@ -2476,9 +11865,7 @@ export const SourceTypeSepaCreditTransfer = z.object({ 'refund_iban': z.string().optional() }); -export type SourceTypeSepaCreditTransferModel = z.infer; - -export const SourceTypeSepaDebit = z.object({ +export const SourceTypeSepaDebit: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'branch_code': z.string().optional(), 'country': z.string().optional(), @@ -2488,9 +11875,7 @@ export const SourceTypeSepaDebit = z.object({ 'mandate_url': z.string().optional() }); -export type SourceTypeSepaDebitModel = z.infer; - -export const SourceTypeSofort = z.object({ +export const SourceTypeSofort: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2500,9 +11885,7 @@ export const SourceTypeSofort = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeSofortModel = z.infer; - -export const SourceOrderItem = z.object({ +export const SourceOrderItem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'description': z.string(), @@ -2511,9 +11894,7 @@ export const SourceOrderItem = z.object({ 'type': z.string() }); -export type SourceOrderItemModel = z.infer; - -export const Shipping = z.object({ +export const Shipping: z.ZodType = z.object({ 'address': Address.optional(), 'carrier': z.string().optional(), 'name': z.string().optional(), @@ -2521,9 +11902,7 @@ export const Shipping = z.object({ 'tracking_number': z.string().optional() }); -export type ShippingModel = z.infer; - -export const SourceOrder = z.object({ +export const SourceOrder: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'email': z.string().optional(), @@ -2531,9 +11910,7 @@ export const SourceOrder = z.object({ 'shipping': Shipping.optional() }); -export type SourceOrderModel = z.infer; - -export const SourceTypeThreeDSecure = z.object({ +export const SourceTypeThreeDSecure: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'authenticated': z.boolean().optional(), @@ -2556,17 +11933,13 @@ export const SourceTypeThreeDSecure = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeThreeDSecureModel = z.infer; - -export const SourceTypeWechat = z.object({ +export const SourceTypeWechat: z.ZodType = z.object({ 'prepay_id': z.string().optional(), 'qr_code_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeWechatModel = z.infer; - -export const Source = z.object({ +export const Source: z.ZodType = z.object({ 'ach_credit_transfer': SourceTypeAchCreditTransfer.optional(), 'ach_debit': SourceTypeAchDebit.optional(), 'acss_debit': SourceTypeAcssDebit.optional(), @@ -2608,23 +11981,17 @@ export const Source = z.object({ 'wechat': SourceTypeWechat.optional() }); -export type SourceModel = z.infer; - export const PaymentSource: z.ZodType = z.union([z.lazy(() => Account), z.lazy(() => BankAccount), z.lazy(() => Card), Source]); -export const CouponAppliesTo = z.object({ +export const CouponAppliesTo: z.ZodType = z.object({ 'products': z.array(z.string()) }); -export type CouponAppliesToModel = z.infer; - -export const CouponCurrencyOption = z.object({ +export const CouponCurrencyOption: z.ZodType = z.object({ 'amount_off': z.number().int() }); -export type CouponCurrencyOptionModel = z.infer; - -export const Coupon = z.object({ +export const Coupon: z.ZodType = z.object({ 'amount_off': z.number().int(), 'applies_to': CouponAppliesTo.optional(), 'created': z.number().int(), @@ -2644,30 +12011,22 @@ export const Coupon = z.object({ 'valid': z.boolean() }); -export type CouponModel = z.infer; - -export const PromotionCodesResourcePromotion = z.object({ +export const PromotionCodesResourcePromotion: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'type': z.enum(['coupon']) }); -export type PromotionCodesResourcePromotionModel = z.infer; - -export const PromotionCodeCurrencyOption = z.object({ +export const PromotionCodeCurrencyOption: z.ZodType = z.object({ 'minimum_amount': z.number().int() }); -export type PromotionCodeCurrencyOptionModel = z.infer; - -export const PromotionCodesResourceRestrictions = z.object({ +export const PromotionCodesResourceRestrictions: z.ZodType = z.object({ 'currency_options': z.record(z.string(), PromotionCodeCurrencyOption).optional(), 'first_time_transaction': z.boolean(), 'minimum_amount': z.number().int(), 'minimum_amount_currency': z.string() }); -export type PromotionCodesResourceRestrictionsModel = z.infer; - export const PromotionCode: z.ZodType = z.object({ 'active': z.boolean(), 'code': z.string(), @@ -2684,13 +12043,11 @@ export const PromotionCode: z.ZodType = z.object({ 'times_redeemed': z.number().int() }); -export const DiscountSource = z.object({ +export const DiscountSource: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'type': z.enum(['coupon']) }); -export type DiscountSourceModel = z.infer; - export const Discount: z.ZodType = z.object({ 'checkout_session': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -2706,14 +12063,12 @@ export const Discount: z.ZodType = z.object({ 'subscription_item': z.string() }); -export const InvoiceSettingCustomField = z.object({ +export const InvoiceSettingCustomField: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type InvoiceSettingCustomFieldModel = z.infer; - -export const PaymentMethodAcssDebit = z.object({ +export const PaymentMethodAcssDebit: z.ZodType = z.object({ 'bank_name': z.string(), 'fingerprint': z.string(), 'institution_number': z.string(), @@ -2721,67 +12076,47 @@ export const PaymentMethodAcssDebit = z.object({ 'transit_number': z.string() }); -export type PaymentMethodAcssDebitModel = z.infer; - -export const PaymentMethodAffirm = z.object({ +export const PaymentMethodAffirm: z.ZodType = z.object({ }); -export type PaymentMethodAffirmModel = z.infer; - -export const PaymentMethodAfterpayClearpay = z.object({ +export const PaymentMethodAfterpayClearpay: z.ZodType = z.object({ }); -export type PaymentMethodAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipay = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipay: z.ZodType = z.object({ }); -export type PaymentFlowsPrivatePaymentMethodsAlipayModel = z.infer; - -export const PaymentMethodAlma = z.object({ +export const PaymentMethodAlma: z.ZodType = z.object({ }); -export type PaymentMethodAlmaModel = z.infer; - -export const PaymentMethodAmazonPay = z.object({ +export const PaymentMethodAmazonPay: z.ZodType = z.object({ }); -export type PaymentMethodAmazonPayModel = z.infer; - -export const PaymentMethodAuBecsDebit = z.object({ +export const PaymentMethodAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string(), 'fingerprint': z.string(), 'last4': z.string() }); -export type PaymentMethodAuBecsDebitModel = z.infer; - -export const PaymentMethodBacsDebit = z.object({ +export const PaymentMethodBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string(), 'last4': z.string(), 'sort_code': z.string() }); -export type PaymentMethodBacsDebitModel = z.infer; - -export const PaymentMethodBancontact = z.object({ +export const PaymentMethodBancontact: z.ZodType = z.object({ }); -export type PaymentMethodBancontactModel = z.infer; - -export const PaymentMethodBillie = z.object({ +export const PaymentMethodBillie: z.ZodType = z.object({ }); -export type PaymentMethodBillieModel = z.infer; - -export const BillingDetails = z.object({ +export const BillingDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'email': z.string(), 'name': z.string(), @@ -2789,36 +12124,26 @@ export const BillingDetails = z.object({ 'tax_id': z.string() }); -export type BillingDetailsModel = z.infer; - -export const PaymentMethodBlik = z.object({ +export const PaymentMethodBlik: z.ZodType = z.object({ }); -export type PaymentMethodBlikModel = z.infer; - -export const PaymentMethodBoleto = z.object({ +export const PaymentMethodBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodBoletoModel = z.infer; - -export const PaymentMethodCardChecks = z.object({ +export const PaymentMethodCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type PaymentMethodCardChecksModel = z.infer; - -export const PaymentMethodDetailsCardPresentOffline = z.object({ +export const PaymentMethodDetailsCardPresentOffline: z.ZodType = z.object({ 'stored_at': z.number().int(), 'type': z.enum(['deferred']) }); -export type PaymentMethodDetailsCardPresentOfflineModel = z.infer; - -export const PaymentMethodDetailsCardPresentReceipt = z.object({ +export const PaymentMethodDetailsCardPresentReceipt: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'credit', 'prepaid', 'unknown']).optional(), 'application_cryptogram': z.string(), 'application_preferred_name': z.string(), @@ -2830,15 +12155,11 @@ export const PaymentMethodDetailsCardPresentReceipt = z.object({ 'transaction_status_information': z.string() }); -export type PaymentMethodDetailsCardPresentReceiptModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet: z.ZodType = z.object({ 'type': z.enum(['apple_pay', 'google_pay', 'samsung_pay', 'unknown']) }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = z.infer; - -export const PaymentMethodDetailsCardPresent = z.object({ +export const PaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'amount_authorized': z.number().int(), 'brand': z.string(), 'brand_product': z.string(), @@ -2866,180 +12187,126 @@ export const PaymentMethodDetailsCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodDetailsCardPresentModel = z.infer; - -export const CardGeneratedFromPaymentMethodDetails = z.object({ +export const CardGeneratedFromPaymentMethodDetails: z.ZodType = z.object({ 'card_present': PaymentMethodDetailsCardPresent.optional(), 'type': z.string() }); -export type CardGeneratedFromPaymentMethodDetailsModel = z.infer; - -export const Application = z.object({ +export const Application: z.ZodType = z.object({ 'id': z.string(), 'name': z.string(), 'object': z.enum(['application']) }); -export type ApplicationModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAcssDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAcssDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAcssDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAmazonPay = z.object({ +export const SetupAttemptPaymentMethodDetailsAmazonPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAmazonPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAuBecsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsBacsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsBacsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBacsDebitModel = z.infer; - -export const OfflineAcceptance = z.object({ +export const OfflineAcceptance: z.ZodType = z.object({ }); -export type OfflineAcceptanceModel = z.infer; - -export const OnlineAcceptance = z.object({ +export const OnlineAcceptance: z.ZodType = z.object({ 'ip_address': z.string(), 'user_agent': z.string() }); -export type OnlineAcceptanceModel = z.infer; - -export const CustomerAcceptance = z.object({ +export const CustomerAcceptance: z.ZodType = z.object({ 'accepted_at': z.number().int(), 'offline': OfflineAcceptance.optional(), 'online': OnlineAcceptance.optional(), 'type': z.enum(['offline', 'online']) }); -export type CustomerAcceptanceModel = z.infer; - -export const MandateMultiUse = z.object({ +export const MandateMultiUse: z.ZodType = z.object({ }); -export type MandateMultiUseModel = z.infer; - -export const MandateAcssDebit = z.object({ +export const MandateAcssDebit: z.ZodType = z.object({ 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']), 'transaction_type': z.enum(['business', 'personal']) }); -export type MandateAcssDebitModel = z.infer; - -export const MandateAmazonPay = z.object({ +export const MandateAmazonPay: z.ZodType = z.object({ }); -export type MandateAmazonPayModel = z.infer; - -export const MandateAuBecsDebit = z.object({ +export const MandateAuBecsDebit: z.ZodType = z.object({ 'url': z.string() }); -export type MandateAuBecsDebitModel = z.infer; - -export const MandateBacsDebit = z.object({ +export const MandateBacsDebit: z.ZodType = z.object({ 'network_status': z.enum(['accepted', 'pending', 'refused', 'revoked']), 'reference': z.string(), 'revocation_reason': z.enum(['account_closed', 'bank_account_restricted', 'bank_ownership_changed', 'could_not_process', 'debit_not_authorized']), 'url': z.string() }); -export type MandateBacsDebitModel = z.infer; - -export const CardMandatePaymentMethodDetails = z.object({ +export const CardMandatePaymentMethodDetails: z.ZodType = z.object({ }); -export type CardMandatePaymentMethodDetailsModel = z.infer; - -export const MandateCashapp = z.object({ +export const MandateCashapp: z.ZodType = z.object({ }); -export type MandateCashappModel = z.infer; - -export const MandateKakaoPay = z.object({ +export const MandateKakaoPay: z.ZodType = z.object({ }); -export type MandateKakaoPayModel = z.infer; - -export const MandateKlarna = z.object({ +export const MandateKlarna: z.ZodType = z.object({ }); -export type MandateKlarnaModel = z.infer; - -export const MandateKrCard = z.object({ +export const MandateKrCard: z.ZodType = z.object({ }); -export type MandateKrCardModel = z.infer; - -export const MandateLink = z.object({ +export const MandateLink: z.ZodType = z.object({ }); -export type MandateLinkModel = z.infer; - -export const MandateNaverPay = z.object({ +export const MandateNaverPay: z.ZodType = z.object({ }); -export type MandateNaverPayModel = z.infer; - -export const MandateNzBankAccount = z.object({ +export const MandateNzBankAccount: z.ZodType = z.object({ }); -export type MandateNzBankAccountModel = z.infer; - -export const MandatePaypal = z.object({ +export const MandatePaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string(), 'payer_id': z.string() }); -export type MandatePaypalModel = z.infer; - -export const MandateRevolutPay = z.object({ +export const MandateRevolutPay: z.ZodType = z.object({ }); -export type MandateRevolutPayModel = z.infer; - -export const MandateSepaDebit = z.object({ +export const MandateSepaDebit: z.ZodType = z.object({ 'reference': z.string(), 'url': z.string() }); -export type MandateSepaDebitModel = z.infer; - -export const MandateUsBankAccount = z.object({ +export const MandateUsBankAccount: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type MandateUsBankAccountModel = z.infer; - -export const MandatePaymentMethodDetails = z.object({ +export const MandatePaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': MandateAcssDebit.optional(), 'amazon_pay': MandateAmazonPay.optional(), 'au_becs_debit': MandateAuBecsDebit.optional(), @@ -3059,15 +12326,11 @@ export const MandatePaymentMethodDetails = z.object({ 'us_bank_account': MandateUsBankAccount.optional() }); -export type MandatePaymentMethodDetailsModel = z.infer; - -export const MandateSingleUse = z.object({ +export const MandateSingleUse: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type MandateSingleUseModel = z.infer; - export const Mandate: z.ZodType = z.object({ 'customer_acceptance': CustomerAcceptance, 'id': z.string(), @@ -3093,21 +12356,17 @@ export const SetupAttemptPaymentMethodDetailsBancontact: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBoletoModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardChecks = z.object({ +export const SetupAttemptPaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type SetupAttemptPaymentMethodDetailsCardChecksModel = z.infer; - -export const ThreeDSecureDetails = z.object({ +export const ThreeDSecureDetails: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']), @@ -3116,29 +12375,21 @@ export const ThreeDSecureDetails = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type ThreeDSecureDetailsModel = z.infer; - -export const PaymentMethodDetailsCardWalletApplePay = z.object({ +export const PaymentMethodDetailsCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletApplePayModel = z.infer; - -export const PaymentMethodDetailsCardWalletGooglePay = z.object({ +export const PaymentMethodDetailsCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletGooglePayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardWallet = z.object({ +export const SetupAttemptPaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'google_pay': PaymentMethodDetailsCardWalletGooglePay.optional(), 'type': z.enum(['apple_pay', 'google_pay', 'link']) }); -export type SetupAttemptPaymentMethodDetailsCardWalletModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCard = z.object({ +export const SetupAttemptPaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string(), 'checks': z.union([SetupAttemptPaymentMethodDetailsCardChecks]), 'country': z.string(), @@ -3155,19 +12406,15 @@ export const SetupAttemptPaymentMethodDetailsCard = z.object({ 'wallet': z.union([SetupAttemptPaymentMethodDetailsCardWallet]) }); -export type SetupAttemptPaymentMethodDetailsCardModel = z.infer; - export const SetupAttemptPaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'generated_card': z.union([z.string(), z.lazy(() => PaymentMethod)]), 'offline': z.union([PaymentMethodDetailsCardPresentOffline]) }); -export const SetupAttemptPaymentMethodDetailsCashapp = z.object({ +export const SetupAttemptPaymentMethodDetailsCashapp: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsCashappModel = z.infer; - export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']), @@ -3177,60 +12424,42 @@ export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKakaoPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKlarna = z.object({ +export const SetupAttemptPaymentMethodDetailsKlarna: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKlarnaModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKrCard = z.object({ +export const SetupAttemptPaymentMethodDetailsKrCard: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKrCardModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsLink = z.object({ +export const SetupAttemptPaymentMethodDetailsLink: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsLinkModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNaverPay = z.object({ +export const SetupAttemptPaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string().optional() }); -export type SetupAttemptPaymentMethodDetailsNaverPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNzBankAccount = z.object({ +export const SetupAttemptPaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsPaypal = z.object({ +export const SetupAttemptPaymentMethodDetailsPaypal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsPaypalModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsRevolutPay = z.object({ +export const SetupAttemptPaymentMethodDetailsRevolutPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsRevolutPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsSepaDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsSepaDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsSepaDebitModel = z.infer; - export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -3242,12 +12471,10 @@ export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = z.infer; - export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': SetupAttemptPaymentMethodDetailsAcssDebit.optional(), 'amazon_pay': SetupAttemptPaymentMethodDetailsAmazonPay.optional(), @@ -3273,51 +12500,39 @@ export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'commodity_code': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'commodity_code': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'image_url': z.string(), 'product_url': z.string(), 'reference': z.string(), 'subscription_reference': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'category': z.enum(['digital_goods', 'donation', 'physical_goods']).optional(), 'description': z.string().optional(), 'sold_by': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'card_present': PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions.optional(), 'klarna': PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'paypal': PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions.optional() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = z.infer; - -export const PaymentIntentAmountDetailsLineItem = z.object({ +export const PaymentIntentAmountDetailsLineItem: z.ZodType = z.object({ 'discount_amount': z.number().int(), 'id': z.string(), 'object': z.enum(['payment_intent_amount_details_line_item']), @@ -3330,29 +12545,21 @@ export const PaymentIntentAmountDetailsLineItem = z.object({ 'unit_of_measure': z.string() }); -export type PaymentIntentAmountDetailsLineItemModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceShipping = z.object({ +export const PaymentFlowsAmountDetailsResourceShipping: z.ZodType = z.object({ 'amount': z.number().int(), 'from_postal_code': z.string(), 'to_postal_code': z.string() }); -export type PaymentFlowsAmountDetailsResourceShippingModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int() }); -export type PaymentFlowsAmountDetailsResourceTaxModel = z.infer; - -export const PaymentFlowsAmountDetailsClientResourceTip = z.object({ +export const PaymentFlowsAmountDetailsClientResourceTip: z.ZodType = z.object({ 'amount': z.number().int().optional() }); -export type PaymentFlowsAmountDetailsClientResourceTipModel = z.infer; - -export const PaymentFlowsAmountDetails = z.object({ +export const PaymentFlowsAmountDetails: z.ZodType = z.object({ 'discount_amount': z.number().int().optional(), 'line_items': z.object({ 'data': z.array(PaymentIntentAmountDetailsLineItem), @@ -3365,34 +12572,24 @@ export const PaymentFlowsAmountDetails = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsModel = z.infer; - -export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean() }); -export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax: z.ZodType = z.object({ 'calculation': z.string() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs: z.ZodType = z.object({ 'tax': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflows = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflows: z.ZodType = z.object({ 'inputs': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = z.infer; - -export const Fee = z.object({ +export const Fee: z.ZodType = z.object({ 'amount': z.number().int(), 'application': z.string(), 'currency': z.string(), @@ -3400,8 +12597,6 @@ export const Fee = z.object({ 'type': z.string() }); -export type FeeModel = z.infer; - export const ConnectCollectionTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -3420,38 +12615,30 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPayme 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer: z.ZodType = z.object({ 'bic': z.string(), 'iban_last4': z.string(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer: z.ZodType = z.object({ 'account_number_last4': z.string(), 'sender_name': z.string(), 'sort_code': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer: z.ZodType = z.object({ 'sender_bank': z.string(), 'sender_branch': z.string(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer: z.ZodType = z.object({ 'network': z.enum(['ach', 'domestic_wire_us', 'swift']).optional(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer.optional(), 'gb_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer.optional(), 'jp_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer.optional(), @@ -3460,128 +12647,92 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransact 'us_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer.optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction: z.ZodType = z.object({ 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = z.infer; - -export const DestinationDetailsUnimplemented = z.object({ +export const DestinationDetailsUnimplemented: z.ZodType = z.object({ }); -export type DestinationDetailsUnimplementedModel = z.infer; - -export const RefundDestinationDetailsBlik = z.object({ +export const RefundDestinationDetailsBlik: z.ZodType = z.object({ 'network_decline_code': z.string(), 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsBlikModel = z.infer; - -export const RefundDestinationDetailsBrBankTransfer = z.object({ +export const RefundDestinationDetailsBrBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsBrBankTransferModel = z.infer; - -export const RefundDestinationDetailsCard = z.object({ +export const RefundDestinationDetailsCard: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional(), 'reference_type': z.string().optional(), 'type': z.enum(['pending', 'refund', 'reversal']) }); -export type RefundDestinationDetailsCardModel = z.infer; - -export const RefundDestinationDetailsCrypto = z.object({ +export const RefundDestinationDetailsCrypto: z.ZodType = z.object({ 'reference': z.string() }); -export type RefundDestinationDetailsCryptoModel = z.infer; - -export const RefundDestinationDetailsEuBankTransfer = z.object({ +export const RefundDestinationDetailsEuBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsEuBankTransferModel = z.infer; - -export const RefundDestinationDetailsGbBankTransfer = z.object({ +export const RefundDestinationDetailsGbBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsGbBankTransferModel = z.infer; - -export const RefundDestinationDetailsJpBankTransfer = z.object({ +export const RefundDestinationDetailsJpBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsJpBankTransferModel = z.infer; - -export const RefundDestinationDetailsMbWay = z.object({ +export const RefundDestinationDetailsMbWay: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMbWayModel = z.infer; - -export const RefundDestinationDetailsMultibanco = z.object({ +export const RefundDestinationDetailsMultibanco: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMultibancoModel = z.infer; - -export const RefundDestinationDetailsMxBankTransfer = z.object({ +export const RefundDestinationDetailsMxBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMxBankTransferModel = z.infer; - -export const RefundDestinationDetailsP24 = z.object({ +export const RefundDestinationDetailsP24: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsP24Model = z.infer; - -export const RefundDestinationDetailsPaypal = z.object({ +export const RefundDestinationDetailsPaypal: z.ZodType = z.object({ 'network_decline_code': z.string() }); -export type RefundDestinationDetailsPaypalModel = z.infer; - -export const RefundDestinationDetailsSwish = z.object({ +export const RefundDestinationDetailsSwish: z.ZodType = z.object({ 'network_decline_code': z.string(), 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsSwishModel = z.infer; - -export const RefundDestinationDetailsThBankTransfer = z.object({ +export const RefundDestinationDetailsThBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsThBankTransferModel = z.infer; - -export const RefundDestinationDetailsUsBankTransfer = z.object({ +export const RefundDestinationDetailsUsBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsUsBankTransferModel = z.infer; - -export const RefundDestinationDetails = z.object({ +export const RefundDestinationDetails: z.ZodType = z.object({ 'affirm': DestinationDetailsUnimplemented.optional(), 'afterpay_clearpay': DestinationDetailsUnimplemented.optional(), 'alipay': DestinationDetailsUnimplemented.optional(), @@ -3620,36 +12771,26 @@ export const RefundDestinationDetails = z.object({ 'zip': DestinationDetailsUnimplemented.optional() }); -export type RefundDestinationDetailsModel = z.infer; - -export const EmailSent = z.object({ +export const EmailSent: z.ZodType = z.object({ 'email_sent_at': z.number().int(), 'email_sent_to': z.string() }); -export type EmailSentModel = z.infer; - -export const RefundNextActionDisplayDetails = z.object({ +export const RefundNextActionDisplayDetails: z.ZodType = z.object({ 'email_sent': EmailSent, 'expires_at': z.number().int() }); -export type RefundNextActionDisplayDetailsModel = z.infer; - -export const RefundNextAction = z.object({ +export const RefundNextAction: z.ZodType = z.object({ 'display_details': RefundNextActionDisplayDetails.optional(), 'type': z.string() }); -export type RefundNextActionModel = z.infer; - -export const PaymentFlowsPaymentIntentPresentmentDetails = z.object({ +export const PaymentFlowsPaymentIntentPresentmentDetails: z.ZodType = z.object({ 'presentment_amount': z.number().int(), 'presentment_currency': z.string() }); -export type PaymentFlowsPaymentIntentPresentmentDetailsModel = z.infer; - export const Transfer: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_reversed': z.number().int(), @@ -3743,7 +12884,7 @@ export const CustomerCashBalanceTransaction: z.ZodType CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction).optional() }); -export const DisputeTransactionShippingAddress = z.object({ +export const DisputeTransactionShippingAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -3752,9 +12893,7 @@ export const DisputeTransactionShippingAddress = z.object({ 'state': z.string() }); -export type DisputeTransactionShippingAddressModel = z.infer; - -export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3DisputedTransaction: z.ZodType = z.object({ 'customer_account_id': z.string(), 'customer_device_fingerprint': z.string(), 'customer_device_id': z.string(), @@ -3765,9 +12904,7 @@ export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ 'shipping_address': z.union([DisputeTransactionShippingAddress]) }); -export type DisputeVisaCompellingEvidence3DisputedTransactionModel = z.infer; - -export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction: z.ZodType = z.object({ 'charge': z.string(), 'customer_account_id': z.string(), 'customer_device_fingerprint': z.string(), @@ -3778,29 +12915,21 @@ export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object 'shipping_address': z.union([DisputeTransactionShippingAddress]) }); -export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = z.infer; - -export const DisputeEnhancedEvidenceVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEvidenceVisaCompellingEvidence3: z.ZodType = z.object({ 'disputed_transaction': z.union([DisputeVisaCompellingEvidence3DisputedTransaction]), 'prior_undisputed_transactions': z.array(DisputeVisaCompellingEvidence3PriorUndisputedTransaction) }); -export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEvidenceVisaCompliance = z.object({ +export const DisputeEnhancedEvidenceVisaCompliance: z.ZodType = z.object({ 'fee_acknowledged': z.boolean() }); -export type DisputeEnhancedEvidenceVisaComplianceModel = z.infer; - -export const DisputeEnhancedEvidence = z.object({ +export const DisputeEnhancedEvidence: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEvidenceVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEvidenceVisaCompliance.optional() }); -export type DisputeEnhancedEvidenceModel = z.infer; - -export const DisputeEvidence = z.object({ +export const DisputeEvidence: z.ZodType = z.object({ 'access_activity_log': z.string(), 'billing_address': z.string(), 'cancellation_policy': z.union([z.string(), z.lazy(() => File)]), @@ -3831,29 +12960,21 @@ export const DisputeEvidence = z.object({ 'uncategorized_text': z.string() }); -export type DisputeEvidenceModel = z.infer; - -export const DisputeEnhancedEligibilityVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEligibilityVisaCompellingEvidence3: z.ZodType = z.object({ 'required_actions': z.array(z.enum(['missing_customer_identifiers', 'missing_disputed_transaction_description', 'missing_merchandise_or_services', 'missing_prior_undisputed_transaction_description', 'missing_prior_undisputed_transactions'])), 'status': z.enum(['not_qualified', 'qualified', 'requires_action']) }); -export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEligibilityVisaCompliance = z.object({ +export const DisputeEnhancedEligibilityVisaCompliance: z.ZodType = z.object({ 'status': z.enum(['fee_acknowledged', 'requires_fee_acknowledgement']) }); -export type DisputeEnhancedEligibilityVisaComplianceModel = z.infer; - -export const DisputeEnhancedEligibility = z.object({ +export const DisputeEnhancedEligibility: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEligibilityVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEligibilityVisaCompliance.optional() }); -export type DisputeEnhancedEligibilityModel = z.infer; - -export const DisputeEvidenceDetails = z.object({ +export const DisputeEvidenceDetails: z.ZodType = z.object({ 'due_by': z.number().int(), 'enhanced_eligibility': DisputeEnhancedEligibility, 'has_evidence': z.boolean(), @@ -3861,37 +12982,27 @@ export const DisputeEvidenceDetails = z.object({ 'submission_count': z.number().int() }); -export type DisputeEvidenceDetailsModel = z.infer; - -export const DisputePaymentMethodDetailsAmazonPay = z.object({ +export const DisputePaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'dispute_type': z.enum(['chargeback', 'claim']) }); -export type DisputePaymentMethodDetailsAmazonPayModel = z.infer; - -export const DisputePaymentMethodDetailsCard = z.object({ +export const DisputePaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string(), 'case_type': z.enum(['block', 'chargeback', 'compliance', 'inquiry', 'resolution']), 'network_reason_code': z.string() }); -export type DisputePaymentMethodDetailsCardModel = z.infer; - -export const DisputePaymentMethodDetailsKlarna = z.object({ +export const DisputePaymentMethodDetailsKlarna: z.ZodType = z.object({ 'chargeback_loss_reason_code': z.string().optional(), 'reason_code': z.string() }); -export type DisputePaymentMethodDetailsKlarnaModel = z.infer; - -export const DisputePaymentMethodDetailsPaypal = z.object({ +export const DisputePaymentMethodDetailsPaypal: z.ZodType = z.object({ 'case_id': z.string(), 'reason_code': z.string() }); -export type DisputePaymentMethodDetailsPaypalModel = z.infer; - -export const DisputePaymentMethodDetails = z.object({ +export const DisputePaymentMethodDetails: z.ZodType = z.object({ 'amazon_pay': DisputePaymentMethodDetailsAmazonPay.optional(), 'card': DisputePaymentMethodDetailsCard.optional(), 'klarna': DisputePaymentMethodDetailsKlarna.optional(), @@ -3899,8 +13010,6 @@ export const DisputePaymentMethodDetails = z.object({ 'type': z.enum(['amazon_pay', 'card', 'klarna', 'paypal']) }); -export type DisputePaymentMethodDetailsModel = z.infer; - export const Dispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)), @@ -3933,61 +13042,45 @@ export const FeeRefund: z.ZodType = z.object({ 'object': z.enum(['fee_refund']) }); -export const IssuingAuthorizationAmountDetails = z.object({ +export const IssuingAuthorizationAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int(), 'cashback_amount': z.number().int() }); -export type IssuingAuthorizationAmountDetailsModel = z.infer; - -export const IssuingCardholderAddress = z.object({ +export const IssuingCardholderAddress: z.ZodType = z.object({ 'address': Address }); -export type IssuingCardholderAddressModel = z.infer; - -export const IssuingCardholderCompany = z.object({ +export const IssuingCardholderCompany: z.ZodType = z.object({ 'tax_id_provided': z.boolean() }); -export type IssuingCardholderCompanyModel = z.infer; - -export const IssuingCardholderUserTermsAcceptance = z.object({ +export const IssuingCardholderUserTermsAcceptance: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type IssuingCardholderUserTermsAcceptanceModel = z.infer; - -export const IssuingCardholderCardIssuing = z.object({ +export const IssuingCardholderCardIssuing: z.ZodType = z.object({ 'user_terms_acceptance': z.union([IssuingCardholderUserTermsAcceptance]) }); -export type IssuingCardholderCardIssuingModel = z.infer; - -export const IssuingCardholderIndividualDob = z.object({ +export const IssuingCardholderIndividualDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type IssuingCardholderIndividualDobModel = z.infer; - -export const IssuingCardholderIdDocument = z.object({ +export const IssuingCardholderIdDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]), 'front': z.union([z.string(), z.lazy(() => File)]) }); -export type IssuingCardholderIdDocumentModel = z.infer; - -export const IssuingCardholderVerification = z.object({ +export const IssuingCardholderVerification: z.ZodType = z.object({ 'document': z.union([IssuingCardholderIdDocument]) }); -export type IssuingCardholderVerificationModel = z.infer; - -export const IssuingCardholderIndividual = z.object({ +export const IssuingCardholderIndividual: z.ZodType = z.object({ 'card_issuing': z.union([IssuingCardholderCardIssuing]).optional(), 'dob': z.union([IssuingCardholderIndividualDob]), 'first_name': z.string(), @@ -3995,24 +13088,18 @@ export const IssuingCardholderIndividual = z.object({ 'verification': z.union([IssuingCardholderVerification]) }); -export type IssuingCardholderIndividualModel = z.infer; - -export const IssuingCardholderRequirements = z.object({ +export const IssuingCardholderRequirements: z.ZodType = z.object({ 'disabled_reason': z.enum(['listed', 'rejected.listed', 'requirements.past_due', 'under_review']), 'past_due': z.array(z.enum(['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'])) }); -export type IssuingCardholderRequirementsModel = z.infer; - -export const IssuingCardholderSpendingLimit = z.object({ +export const IssuingCardholderSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardholderSpendingLimitModel = z.infer; - -export const IssuingCardholderAuthorizationControls = z.object({ +export const IssuingCardholderAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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': z.array(z.string()), 'blocked_categories': z.array(z.enum(['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'])), @@ -4021,9 +13108,7 @@ export const IssuingCardholderAuthorizationControls = z.object({ 'spending_limits_currency': z.string() }); -export type IssuingCardholderAuthorizationControlsModel = z.infer; - -export const IssuingCardholder = z.object({ +export const IssuingCardholder: z.ZodType = z.object({ 'billing': IssuingCardholderAddress, 'company': z.union([IssuingCardholderCompany]), 'created': z.number().int(), @@ -4042,33 +13127,25 @@ export const IssuingCardholder = z.object({ 'type': z.enum(['company', 'individual']) }); -export type IssuingCardholderModel = z.infer; - -export const IssuingCardFraudWarning = z.object({ +export const IssuingCardFraudWarning: z.ZodType = z.object({ 'started_at': z.number().int(), 'type': z.enum(['card_testing_exposure', 'fraud_dispute_filed', 'third_party_reported', 'user_indicated_fraud']) }); -export type IssuingCardFraudWarningModel = z.infer; - -export const IssuingPersonalizationDesignCarrierText = z.object({ +export const IssuingPersonalizationDesignCarrierText: z.ZodType = z.object({ 'footer_body': z.string(), 'footer_title': z.string(), 'header_body': z.string(), 'header_title': z.string() }); -export type IssuingPersonalizationDesignCarrierTextModel = z.infer; - -export const IssuingPhysicalBundleFeatures = z.object({ +export const IssuingPhysicalBundleFeatures: z.ZodType = z.object({ 'card_logo': z.enum(['optional', 'required', 'unsupported']), 'carrier_text': z.enum(['optional', 'required', 'unsupported']), 'second_line': z.enum(['optional', 'required', 'unsupported']) }); -export type IssuingPhysicalBundleFeaturesModel = z.infer; - -export const IssuingPhysicalBundle = z.object({ +export const IssuingPhysicalBundle: z.ZodType = z.object({ 'features': IssuingPhysicalBundleFeatures, 'id': z.string(), 'livemode': z.boolean(), @@ -4078,23 +13155,17 @@ export const IssuingPhysicalBundle = z.object({ 'type': z.enum(['custom', 'standard']) }); -export type IssuingPhysicalBundleModel = z.infer; - -export const IssuingPersonalizationDesignPreferences = z.object({ +export const IssuingPersonalizationDesignPreferences: z.ZodType = z.object({ 'is_default': z.boolean(), 'is_platform_default': z.boolean() }); -export type IssuingPersonalizationDesignPreferencesModel = z.infer; - -export const IssuingPersonalizationDesignRejectionReasons = z.object({ +export const IssuingPersonalizationDesignRejectionReasons: z.ZodType = z.object({ 'card_logo': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_binary_image', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])), 'carrier_text': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])) }); -export type IssuingPersonalizationDesignRejectionReasonsModel = z.infer; - -export const IssuingPersonalizationDesign = z.object({ +export const IssuingPersonalizationDesign: z.ZodType = z.object({ 'card_logo': z.union([z.string(), z.lazy(() => File)]), 'carrier_text': z.union([IssuingPersonalizationDesignCarrierText]), 'created': z.number().int(), @@ -4110,23 +13181,17 @@ export const IssuingPersonalizationDesign = z.object({ 'status': z.enum(['active', 'inactive', 'rejected', 'review']) }); -export type IssuingPersonalizationDesignModel = z.infer; - -export const IssuingCardShippingAddressValidation = z.object({ +export const IssuingCardShippingAddressValidation: z.ZodType = z.object({ 'mode': z.enum(['disabled', 'normalization_only', 'validation_and_normalization']), 'normalized_address': z.union([Address]), 'result': z.enum(['indeterminate', 'likely_deliverable', 'likely_undeliverable']) }); -export type IssuingCardShippingAddressValidationModel = z.infer; - -export const IssuingCardShippingCustoms = z.object({ +export const IssuingCardShippingCustoms: z.ZodType = z.object({ 'eori_number': z.string() }); -export type IssuingCardShippingCustomsModel = z.infer; - -export const IssuingCardShipping = z.object({ +export const IssuingCardShipping: z.ZodType = z.object({ 'address': Address, 'address_validation': z.union([IssuingCardShippingAddressValidation]), 'carrier': z.enum(['dhl', 'fedex', 'royal_mail', 'usps']), @@ -4142,17 +13207,13 @@ export const IssuingCardShipping = z.object({ 'type': z.enum(['bulk', 'individual']) }); -export type IssuingCardShippingModel = z.infer; - -export const IssuingCardSpendingLimit = z.object({ +export const IssuingCardSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardSpendingLimitModel = z.infer; - -export const IssuingCardAuthorizationControls = z.object({ +export const IssuingCardAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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': z.array(z.string()), 'blocked_categories': z.array(z.enum(['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'])), @@ -4161,30 +13222,22 @@ export const IssuingCardAuthorizationControls = z.object({ 'spending_limits_currency': z.string() }); -export type IssuingCardAuthorizationControlsModel = z.infer; - -export const IssuingCardApplePay = z.object({ +export const IssuingCardApplePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']) }); -export type IssuingCardApplePayModel = z.infer; - -export const IssuingCardGooglePay = z.object({ +export const IssuingCardGooglePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']) }); -export type IssuingCardGooglePayModel = z.infer; - -export const IssuingCardWallets = z.object({ +export const IssuingCardWallets: z.ZodType = z.object({ 'apple_pay': IssuingCardApplePay, 'google_pay': IssuingCardGooglePay, 'primary_account_identifier': z.string() }); -export type IssuingCardWalletsModel = z.infer; - export const IssuingCard: z.ZodType = z.object({ 'brand': z.string(), 'cancellation_reason': z.enum(['design_rejected', 'lost', 'stolen']), @@ -4214,7 +13267,7 @@ export const IssuingCard: z.ZodType = z.object({ 'wallets': z.union([IssuingCardWallets]) }); -export const IssuingAuthorizationFleetCardholderPromptData = z.object({ +export const IssuingAuthorizationFleetCardholderPromptData: z.ZodType = z.object({ 'alphanumeric_id': z.string(), 'driver_id': z.string(), 'odometer': z.number().int(), @@ -4223,53 +13276,39 @@ export const IssuingAuthorizationFleetCardholderPromptData = z.object({ 'vehicle_number': z.string() }); -export type IssuingAuthorizationFleetCardholderPromptDataModel = z.infer; - -export const IssuingAuthorizationFleetFuelPriceData = z.object({ +export const IssuingAuthorizationFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetNonFuelPriceData = z.object({ +export const IssuingAuthorizationFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetNonFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetTaxData = z.object({ +export const IssuingAuthorizationFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string(), 'national_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetTaxDataModel = z.infer; - -export const IssuingAuthorizationFleetReportedBreakdown = z.object({ +export const IssuingAuthorizationFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingAuthorizationFleetFuelPriceData]), 'non_fuel': z.union([IssuingAuthorizationFleetNonFuelPriceData]), 'tax': z.union([IssuingAuthorizationFleetTaxData]) }); -export type IssuingAuthorizationFleetReportedBreakdownModel = z.infer; - -export const IssuingAuthorizationFleetData = z.object({ +export const IssuingAuthorizationFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingAuthorizationFleetCardholderPromptData]), 'purchase_type': z.enum(['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']), 'reported_breakdown': z.union([IssuingAuthorizationFleetReportedBreakdown]), 'service_type': z.enum(['full_service', 'non_fuel_transaction', 'self_service']) }); -export type IssuingAuthorizationFleetDataModel = z.infer; - -export const IssuingAuthorizationFraudChallenge = z.object({ +export const IssuingAuthorizationFraudChallenge: z.ZodType = z.object({ 'channel': z.enum(['sms']), 'status': z.enum(['expired', 'pending', 'rejected', 'undeliverable', 'verified']), 'undeliverable_reason': z.enum(['no_phone_number', 'unsupported_phone_number']) }); -export type IssuingAuthorizationFraudChallengeModel = z.infer; - -export const IssuingAuthorizationFuelData = z.object({ +export const IssuingAuthorizationFuelData: z.ZodType = z.object({ 'industry_product_code': z.string(), 'quantity_decimal': z.string(), 'type': z.enum(['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']), @@ -4277,9 +13316,7 @@ export const IssuingAuthorizationFuelData = z.object({ 'unit_cost_decimal': z.string() }); -export type IssuingAuthorizationFuelDataModel = z.infer; - -export const IssuingAuthorizationMerchantData = z.object({ +export const IssuingAuthorizationMerchantData: z.ZodType = z.object({ 'category': z.string(), 'category_code': z.string(), 'city': z.string(), @@ -4293,17 +13330,13 @@ export const IssuingAuthorizationMerchantData = z.object({ 'url': z.string() }); -export type IssuingAuthorizationMerchantDataModel = z.infer; - -export const IssuingAuthorizationNetworkData = z.object({ +export const IssuingAuthorizationNetworkData: z.ZodType = z.object({ 'acquiring_institution_id': z.string(), 'system_trace_audit_number': z.string(), 'transaction_id': z.string() }); -export type IssuingAuthorizationNetworkDataModel = z.infer; - -export const IssuingAuthorizationPendingRequest = z.object({ +export const IssuingAuthorizationPendingRequest: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), 'currency': z.string(), @@ -4313,9 +13346,7 @@ export const IssuingAuthorizationPendingRequest = z.object({ 'network_risk_score': z.number().int() }); -export type IssuingAuthorizationPendingRequestModel = z.infer; - -export const IssuingAuthorizationRequest_1 = z.object({ +export const IssuingAuthorizationRequest_1: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), 'approved': z.boolean(), @@ -4330,9 +13361,7 @@ export const IssuingAuthorizationRequest_1 = z.object({ 'requested_at': z.number().int() }); -export type IssuingAuthorizationRequest_1Model = z.infer; - -export const IssuingNetworkTokenDevice = z.object({ +export const IssuingNetworkTokenDevice: z.ZodType = z.object({ 'device_fingerprint': z.string().optional(), 'ip_address': z.string().optional(), 'location': z.string().optional(), @@ -4341,34 +13370,26 @@ export const IssuingNetworkTokenDevice = z.object({ 'type': z.enum(['other', 'phone', 'watch']).optional() }); -export type IssuingNetworkTokenDeviceModel = z.infer; - -export const IssuingNetworkTokenMastercard = z.object({ +export const IssuingNetworkTokenMastercard: z.ZodType = z.object({ 'card_reference_id': z.string().optional(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_requestor_name': z.string().optional() }); -export type IssuingNetworkTokenMastercardModel = z.infer; - -export const IssuingNetworkTokenVisa = z.object({ +export const IssuingNetworkTokenVisa: z.ZodType = z.object({ 'card_reference_id': z.string(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_risk_score': z.string().optional() }); -export type IssuingNetworkTokenVisaModel = z.infer; - -export const IssuingNetworkTokenAddress = z.object({ +export const IssuingNetworkTokenAddress: z.ZodType = z.object({ 'line1': z.string(), 'postal_code': z.string() }); -export type IssuingNetworkTokenAddressModel = z.infer; - -export const IssuingNetworkTokenWalletProvider = z.object({ +export const IssuingNetworkTokenWalletProvider: z.ZodType = z.object({ 'account_id': z.string().optional(), 'account_trust_score': z.number().int().optional(), 'card_number_source': z.enum(['app', 'manual', 'on_file', 'other']).optional(), @@ -4381,9 +13402,7 @@ export const IssuingNetworkTokenWalletProvider = z.object({ 'suggested_decision_version': z.string().optional() }); -export type IssuingNetworkTokenWalletProviderModel = z.infer; - -export const IssuingNetworkTokenNetworkData = z.object({ +export const IssuingNetworkTokenNetworkData: z.ZodType = z.object({ 'device': IssuingNetworkTokenDevice.optional(), 'mastercard': IssuingNetworkTokenMastercard.optional(), 'type': z.enum(['mastercard', 'visa']), @@ -4391,9 +13410,7 @@ export const IssuingNetworkTokenNetworkData = z.object({ 'wallet_provider': IssuingNetworkTokenWalletProvider.optional() }); -export type IssuingNetworkTokenNetworkDataModel = z.infer; - -export const IssuingToken = z.object({ +export const IssuingToken: z.ZodType = z.object({ 'card': z.union([z.string(), z.lazy(() => IssuingCard)]), 'created': z.number().int(), 'device_fingerprint': z.string(), @@ -4408,16 +13425,12 @@ export const IssuingToken = z.object({ 'wallet_provider': z.enum(['apple_pay', 'google_pay', 'samsung_pay']).optional() }); -export type IssuingTokenModel = z.infer; - -export const IssuingTransactionAmountDetails = z.object({ +export const IssuingTransactionAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int(), 'cashback_amount': z.number().int() }); -export type IssuingTransactionAmountDetailsModel = z.infer; - -export const IssuingDisputeCanceledEvidence = z.object({ +export const IssuingDisputeCanceledEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'canceled_at': z.number().int(), 'cancellation_policy_provided': z.boolean(), @@ -4430,9 +13443,7 @@ export const IssuingDisputeCanceledEvidence = z.object({ 'returned_at': z.number().int() }); -export type IssuingDisputeCanceledEvidenceModel = z.infer; - -export const IssuingDisputeDuplicateEvidence = z.object({ +export const IssuingDisputeDuplicateEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'card_statement': z.union([z.string(), z.lazy(() => File)]), 'cash_receipt': z.union([z.string(), z.lazy(() => File)]), @@ -4441,16 +13452,12 @@ export const IssuingDisputeDuplicateEvidence = z.object({ 'original_transaction': z.string() }); -export type IssuingDisputeDuplicateEvidenceModel = z.infer; - -export const IssuingDisputeFraudulentEvidence = z.object({ +export const IssuingDisputeFraudulentEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string() }); -export type IssuingDisputeFraudulentEvidenceModel = z.infer; - -export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ +export const IssuingDisputeMerchandiseNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string(), 'received_at': z.number().int(), @@ -4459,16 +13466,12 @@ export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ 'returned_at': z.number().int() }); -export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeNoValidAuthorizationEvidence = z.object({ +export const IssuingDisputeNoValidAuthorizationEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string() }); -export type IssuingDisputeNoValidAuthorizationEvidenceModel = z.infer; - -export const IssuingDisputeNotReceivedEvidence = z.object({ +export const IssuingDisputeNotReceivedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'expected_at': z.number().int(), 'explanation': z.string(), @@ -4476,18 +13479,14 @@ export const IssuingDisputeNotReceivedEvidence = z.object({ 'product_type': z.enum(['merchandise', 'service']) }); -export type IssuingDisputeNotReceivedEvidenceModel = z.infer; - -export const IssuingDisputeOtherEvidence = z.object({ +export const IssuingDisputeOtherEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string(), 'product_description': z.string(), 'product_type': z.enum(['merchandise', 'service']) }); -export type IssuingDisputeOtherEvidenceModel = z.infer; - -export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ +export const IssuingDisputeServiceNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'canceled_at': z.number().int(), 'cancellation_reason': z.string(), @@ -4495,9 +13494,7 @@ export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ 'received_at': z.number().int() }); -export type IssuingDisputeServiceNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeEvidence = z.object({ +export const IssuingDisputeEvidence: z.ZodType = z.object({ 'canceled': IssuingDisputeCanceledEvidence.optional(), 'duplicate': IssuingDisputeDuplicateEvidence.optional(), 'fraudulent': IssuingDisputeFraudulentEvidence.optional(), @@ -4509,15 +13506,11 @@ export const IssuingDisputeEvidence = z.object({ 'service_not_as_described': IssuingDisputeServiceNotAsDescribedEvidence.optional() }); -export type IssuingDisputeEvidenceModel = z.infer; - -export const IssuingDisputeTreasury = z.object({ +export const IssuingDisputeTreasury: z.ZodType = z.object({ 'debit_reversal': z.string(), 'received_debit': z.string() }); -export type IssuingDisputeTreasuryModel = z.infer; - export const IssuingDispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)).optional(), @@ -4534,15 +13527,13 @@ export const IssuingDispute: z.ZodType = z.object({ 'treasury': z.union([IssuingDisputeTreasury]).optional() }); -export const IssuingTransactionNetworkData = z.object({ +export const IssuingTransactionNetworkData: z.ZodType = z.object({ 'authorization_code': z.string(), 'processing_date': z.string(), 'transaction_id': z.string() }); -export type IssuingTransactionNetworkDataModel = z.infer; - -export const IssuingTransactionFleetCardholderPromptData = z.object({ +export const IssuingTransactionFleetCardholderPromptData: z.ZodType = z.object({ 'driver_id': z.string(), 'odometer': z.number().int(), 'unspecified_id': z.string(), @@ -4550,45 +13541,33 @@ export const IssuingTransactionFleetCardholderPromptData = z.object({ 'vehicle_number': z.string() }); -export type IssuingTransactionFleetCardholderPromptDataModel = z.infer; - -export const IssuingTransactionFleetFuelPriceData = z.object({ +export const IssuingTransactionFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingTransactionFleetFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetNonFuelPriceData = z.object({ +export const IssuingTransactionFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingTransactionFleetNonFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetTaxData = z.object({ +export const IssuingTransactionFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string(), 'national_amount_decimal': z.string() }); -export type IssuingTransactionFleetTaxDataModel = z.infer; - -export const IssuingTransactionFleetReportedBreakdown = z.object({ +export const IssuingTransactionFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingTransactionFleetFuelPriceData]), 'non_fuel': z.union([IssuingTransactionFleetNonFuelPriceData]), 'tax': z.union([IssuingTransactionFleetTaxData]) }); -export type IssuingTransactionFleetReportedBreakdownModel = z.infer; - -export const IssuingTransactionFleetData = z.object({ +export const IssuingTransactionFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingTransactionFleetCardholderPromptData]), 'purchase_type': z.string(), 'reported_breakdown': z.union([IssuingTransactionFleetReportedBreakdown]), 'service_type': z.string() }); -export type IssuingTransactionFleetDataModel = z.infer; - -export const IssuingTransactionFlightDataLeg = z.object({ +export const IssuingTransactionFlightDataLeg: z.ZodType = z.object({ 'arrival_airport_code': z.string(), 'carrier': z.string(), 'departure_airport_code': z.string(), @@ -4597,9 +13576,7 @@ export const IssuingTransactionFlightDataLeg = z.object({ 'stopover_allowed': z.boolean() }); -export type IssuingTransactionFlightDataLegModel = z.infer; - -export const IssuingTransactionFlightData = z.object({ +export const IssuingTransactionFlightData: z.ZodType = z.object({ 'departure_at': z.number().int(), 'passenger_name': z.string(), 'refundable': z.boolean(), @@ -4607,9 +13584,7 @@ export const IssuingTransactionFlightData = z.object({ 'travel_agency': z.string() }); -export type IssuingTransactionFlightDataModel = z.infer; - -export const IssuingTransactionFuelData = z.object({ +export const IssuingTransactionFuelData: z.ZodType = z.object({ 'industry_product_code': z.string(), 'quantity_decimal': z.string(), 'type': z.string(), @@ -4617,25 +13592,19 @@ export const IssuingTransactionFuelData = z.object({ 'unit_cost_decimal': z.string() }); -export type IssuingTransactionFuelDataModel = z.infer; - -export const IssuingTransactionLodgingData = z.object({ +export const IssuingTransactionLodgingData: z.ZodType = z.object({ 'check_in_at': z.number().int(), 'nights': z.number().int() }); -export type IssuingTransactionLodgingDataModel = z.infer; - -export const IssuingTransactionReceiptData = z.object({ +export const IssuingTransactionReceiptData: z.ZodType = z.object({ 'description': z.string(), 'quantity': z.number(), 'total': z.number().int(), 'unit_cost': z.number().int() }); -export type IssuingTransactionReceiptDataModel = z.infer; - -export const IssuingTransactionPurchaseDetails = z.object({ +export const IssuingTransactionPurchaseDetails: z.ZodType = z.object({ 'fleet': z.union([IssuingTransactionFleetData]), 'flight': z.union([IssuingTransactionFlightData]), 'fuel': z.union([IssuingTransactionFuelData]), @@ -4644,15 +13613,11 @@ export const IssuingTransactionPurchaseDetails = z.object({ 'reference': z.string() }); -export type IssuingTransactionPurchaseDetailsModel = z.infer; - -export const IssuingTransactionTreasury = z.object({ +export const IssuingTransactionTreasury: z.ZodType = z.object({ 'received_credit': z.string(), 'received_debit': z.string() }); -export type IssuingTransactionTreasuryModel = z.infer; - export const IssuingTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingTransactionAmountDetails]), @@ -4678,28 +13643,22 @@ export const IssuingTransaction: z.ZodType = z.object({ 'wallet': z.enum(['apple_pay', 'google_pay', 'samsung_pay']) }); -export const IssuingAuthorizationTreasury = z.object({ +export const IssuingAuthorizationTreasury: z.ZodType = z.object({ 'received_credits': z.array(z.string()), 'received_debits': z.array(z.string()), 'transaction': z.string() }); -export type IssuingAuthorizationTreasuryModel = z.infer; - -export const IssuingAuthorizationAuthenticationExemption = z.object({ +export const IssuingAuthorizationAuthenticationExemption: z.ZodType = z.object({ 'claimed_by': z.enum(['acquirer', 'issuer']), 'type': z.enum(['low_value_transaction', 'transaction_risk_analysis', 'unknown']) }); -export type IssuingAuthorizationAuthenticationExemptionModel = z.infer; - -export const IssuingAuthorizationThreeDSecure = z.object({ +export const IssuingAuthorizationThreeDSecure: z.ZodType = z.object({ 'result': z.enum(['attempt_acknowledged', 'authenticated', 'failed', 'required']) }); -export type IssuingAuthorizationThreeDSecureModel = z.infer; - -export const IssuingAuthorizationVerificationData = z.object({ +export const IssuingAuthorizationVerificationData: z.ZodType = z.object({ 'address_line1_check': z.enum(['match', 'mismatch', 'not_provided']), 'address_postal_code_check': z.enum(['match', 'mismatch', 'not_provided']), 'authentication_exemption': z.union([IssuingAuthorizationAuthenticationExemption]), @@ -4709,8 +13668,6 @@ export const IssuingAuthorizationVerificationData = z.object({ 'three_d_secure': z.union([IssuingAuthorizationThreeDSecure]) }); -export type IssuingAuthorizationVerificationDataModel = z.infer; - export const IssuingAuthorization: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), @@ -4743,35 +13700,27 @@ export const IssuingAuthorization: z.ZodType = z.obje 'wallet': z.string() }); -export const DeletedBankAccount = z.object({ +export const DeletedBankAccount: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['bank_account']) }); -export type DeletedBankAccountModel = z.infer; - -export const DeletedCard = z.object({ +export const DeletedCard: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['card']) }); -export type DeletedCardModel = z.infer; - -export const DeletedExternalAccount = z.union([DeletedBankAccount, DeletedCard]); +export const DeletedExternalAccount: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); -export type DeletedExternalAccountModel = z.infer; - -export const PayoutsTraceId = z.object({ +export const PayoutsTraceId: z.ZodType = z.object({ 'status': z.string(), 'value': z.string() }); -export type PayoutsTraceIdModel = z.infer; - export const Payout: z.ZodType = z.object({ 'amount': z.number().int(), 'application_fee': z.union([z.string(), z.lazy(() => ApplicationFee)]), @@ -4802,7 +13751,7 @@ export const Payout: z.ZodType = z.object({ 'type': z.enum(['bank_account', 'card']) }); -export const ReserveTransaction = z.object({ +export const ReserveTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'description': z.string(), @@ -4810,9 +13759,7 @@ export const ReserveTransaction = z.object({ 'object': z.enum(['reserve_transaction']) }); -export type ReserveTransactionModel = z.infer; - -export const TaxDeductedAtSource = z.object({ +export const TaxDeductedAtSource: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['tax_deducted_at_source']), 'period_end': z.number().int(), @@ -4820,8 +13767,6 @@ export const TaxDeductedAtSource = z.object({ 'tax_deduction_account_number': z.string() }); -export type TaxDeductedAtSourceModel = z.infer; - export const Topup: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transaction': z.union([z.string(), z.lazy(() => BalanceTransaction)]), @@ -4862,14 +13807,12 @@ export const BalanceTransaction: z.ZodType = z.object({ 'type': z.enum(['adjustment', 'advance', 'advance_funding', 'anticipation_repayment', 'application_fee', 'application_fee_refund', 'charge', 'climate_order_purchase', 'climate_order_refund', 'connect_collection_transfer', 'contribution', 'issuing_authorization_hold', 'issuing_authorization_release', 'issuing_dispute', 'issuing_transaction', 'obligation_outbound', 'obligation_reversal_inbound', 'payment', 'payment_failure_refund', 'payment_network_reserve_hold', 'payment_network_reserve_release', 'payment_refund', 'payment_reversal', 'payment_unreconciled', 'payout', 'payout_cancel', 'payout_failure', 'payout_minimum_balance_hold', 'payout_minimum_balance_release', 'refund', 'refund_failure', 'reserve_transaction', 'reserved_funds', 'stripe_balance_payment_debit', 'stripe_balance_payment_debit_reversal', 'stripe_fee', 'stripe_fx_fee', 'tax_fee', 'topup', 'topup_reversal', 'transfer', 'transfer_cancel', 'transfer_failure', 'transfer_refund']) }); -export const PlatformEarningFeeSource = z.object({ +export const PlatformEarningFeeSource: z.ZodType = z.object({ 'charge': z.string().optional(), 'payout': z.string().optional(), 'type': z.enum(['charge', 'payout']) }); -export type PlatformEarningFeeSourceModel = z.infer; - export const ApplicationFee: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'amount': z.number().int(), @@ -4893,14 +13836,12 @@ export const ApplicationFee: z.ZodType = z.object({ }) }); -export const ChargeFraudDetails = z.object({ +export const ChargeFraudDetails: z.ZodType = z.object({ 'stripe_report': z.string().optional(), 'user_report': z.string().optional() }); -export type ChargeFraudDetailsModel = z.infer; - -export const Level3LineItems = z.object({ +export const Level3LineItems: z.ZodType = z.object({ 'discount_amount': z.number().int(), 'product_code': z.string(), 'product_description': z.string(), @@ -4909,9 +13850,7 @@ export const Level3LineItems = z.object({ 'unit_cost': z.number().int() }); -export type Level3LineItemsModel = z.infer; - -export const Level3 = z.object({ +export const Level3: z.ZodType = z.object({ 'customer_reference': z.string().optional(), 'line_items': z.array(Level3LineItems), 'merchant_reference': z.string(), @@ -4920,17 +13859,13 @@ export const Level3 = z.object({ 'shipping_from_zip': z.string().optional() }); -export type Level3Model = z.infer; - -export const Rule = z.object({ +export const Rule: z.ZodType = z.object({ 'action': z.string(), 'id': z.string(), 'predicate': z.string() }); -export type RuleModel = z.infer; - -export const ChargeOutcome = z.object({ +export const ChargeOutcome: z.ZodType = z.object({ 'advice_code': z.enum(['confirm_card_data', 'do_not_try_again', 'try_again_later']), 'network_advice_code': z.string(), 'network_decline_code': z.string(), @@ -4943,18 +13878,14 @@ export const ChargeOutcome = z.object({ 'type': z.string() }); -export type ChargeOutcomeModel = z.infer; - -export const PaymentMethodDetailsAchCreditTransfer = z.object({ +export const PaymentMethodDetailsAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string(), 'bank_name': z.string(), 'routing_number': z.string(), 'swift_code': z.string() }); -export type PaymentMethodDetailsAchCreditTransferModel = z.infer; - -export const PaymentMethodDetailsAchDebit = z.object({ +export const PaymentMethodDetailsAchDebit: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank_name': z.string(), 'country': z.string(), @@ -4963,9 +13894,7 @@ export const PaymentMethodDetailsAchDebit = z.object({ 'routing_number': z.string() }); -export type PaymentMethodDetailsAchDebitModel = z.infer; - -export const PaymentMethodDetailsAcssDebit = z.object({ +export const PaymentMethodDetailsAcssDebit: z.ZodType = z.object({ 'bank_name': z.string(), 'fingerprint': z.string(), 'institution_number': z.string(), @@ -4974,45 +13903,33 @@ export const PaymentMethodDetailsAcssDebit = z.object({ 'transit_number': z.string() }); -export type PaymentMethodDetailsAcssDebitModel = z.infer; - -export const PaymentMethodDetailsAffirm = z.object({ +export const PaymentMethodDetailsAffirm: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAffirmModel = z.infer; - -export const PaymentMethodDetailsAfterpayClearpay = z.object({ +export const PaymentMethodDetailsAfterpayClearpay: z.ZodType = z.object({ 'order_id': z.string(), 'reference': z.string() }); -export type PaymentMethodDetailsAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipayDetails = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipayDetails: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'fingerprint': z.string(), 'transaction_id': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = z.infer; - -export const AlmaInstallments = z.object({ +export const AlmaInstallments: z.ZodType = z.object({ 'count': z.number().int() }); -export type AlmaInstallmentsModel = z.infer; - -export const PaymentMethodDetailsAlma = z.object({ +export const PaymentMethodDetailsAlma: z.ZodType = z.object({ 'installments': AlmaInstallments.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAlmaModel = z.infer; - -export const PaymentMethodDetailsPassthroughCard = z.object({ +export const PaymentMethodDetailsPassthroughCard: z.ZodType = z.object({ 'brand': z.string(), 'country': z.string(), 'exp_month': z.number().int(), @@ -5021,40 +13938,30 @@ export const PaymentMethodDetailsPassthroughCard = z.object({ 'last4': z.string() }); -export type PaymentMethodDetailsPassthroughCardModel = z.infer; - -export const AmazonPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const AmazonPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']) }); -export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsAmazonPay = z.object({ +export const PaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'funding': AmazonPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAmazonPayModel = z.infer; - -export const PaymentMethodDetailsAuBecsDebit = z.object({ +export const PaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string(), 'fingerprint': z.string(), 'last4': z.string(), 'mandate': z.string().optional() }); -export type PaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const PaymentMethodDetailsBacsDebit = z.object({ +export const PaymentMethodDetailsBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string(), 'last4': z.string(), 'mandate': z.string(), 'sort_code': z.string() }); -export type PaymentMethodDetailsBacsDebitModel = z.infer; - export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -5066,78 +13973,56 @@ export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsBillieModel = z.infer; - -export const PaymentMethodDetailsBlik = z.object({ +export const PaymentMethodDetailsBlik: z.ZodType = z.object({ 'buyer_id': z.string() }); -export type PaymentMethodDetailsBlikModel = z.infer; - -export const PaymentMethodDetailsBoleto = z.object({ +export const PaymentMethodDetailsBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodDetailsBoletoModel = z.infer; - -export const PaymentMethodDetailsCardChecks = z.object({ +export const PaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type PaymentMethodDetailsCardChecksModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization: z.ZodType = z.object({ 'status': z.enum(['disabled', 'enabled']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = z.infer; - -export const PaymentMethodDetailsCardInstallmentsPlan = z.object({ +export const PaymentMethodDetailsCardInstallmentsPlan: z.ZodType = z.object({ 'count': z.number().int(), 'interval': z.enum(['month']), 'type': z.enum(['bonus', 'fixed_count', 'revolving']) }); -export type PaymentMethodDetailsCardInstallmentsPlanModel = z.infer; - -export const PaymentMethodDetailsCardInstallments = z.object({ +export const PaymentMethodDetailsCardInstallments: z.ZodType = z.object({ 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]) }); -export type PaymentMethodDetailsCardInstallmentsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = z.infer; - -export const PaymentMethodDetailsCardNetworkToken = z.object({ +export const PaymentMethodDetailsCardNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentMethodDetailsCardNetworkTokenModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture: z.ZodType = z.object({ 'maximum_amount_capturable': z.number().int(), 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = z.infer; - -export const ThreeDSecureDetailsCharge = z.object({ +export const ThreeDSecureDetailsCharge: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']), 'exemption_indicator': z.enum(['low_risk', 'none']), @@ -5148,45 +14033,33 @@ export const ThreeDSecureDetailsCharge = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type ThreeDSecureDetailsChargeModel = z.infer; - -export const PaymentMethodDetailsCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodDetailsCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWalletLink = z.object({ +export const PaymentMethodDetailsCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletLinkModel = z.infer; - -export const PaymentMethodDetailsCardWalletMasterpass = z.object({ +export const PaymentMethodDetailsCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodDetailsCardWalletMasterpassModel = z.infer; - -export const PaymentMethodDetailsCardWalletSamsungPay = z.object({ +export const PaymentMethodDetailsCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodDetailsCardWalletVisaCheckout = z.object({ +export const PaymentMethodDetailsCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodDetailsCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWallet = z.object({ +export const PaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodDetailsCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'dynamic_last4': z.string(), @@ -5198,9 +14071,7 @@ export const PaymentMethodDetailsCardWallet = z.object({ 'visa_checkout': PaymentMethodDetailsCardWalletVisaCheckout.optional() }); -export type PaymentMethodDetailsCardWalletModel = z.infer; - -export const PaymentMethodDetailsCard = z.object({ +export const PaymentMethodDetailsCard: z.ZodType = z.object({ 'amount_authorized': z.number().int(), 'authorization_code': z.string(), 'brand': z.string(), @@ -5230,61 +14101,45 @@ export const PaymentMethodDetailsCard = z.object({ 'wallet': z.union([PaymentMethodDetailsCardWallet]) }); -export type PaymentMethodDetailsCardModel = z.infer; - -export const PaymentMethodDetailsCashapp = z.object({ +export const PaymentMethodDetailsCashapp: z.ZodType = z.object({ 'buyer_id': z.string(), 'cashtag': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsCashappModel = z.infer; - -export const PaymentMethodDetailsCrypto = z.object({ +export const PaymentMethodDetailsCrypto: z.ZodType = z.object({ 'buyer_address': z.string().optional(), 'network': z.enum(['base', 'ethereum', 'polygon', 'solana']).optional(), 'token_currency': z.enum(['usdc', 'usdg', 'usdp']).optional(), 'transaction_hash': z.string().optional() }); -export type PaymentMethodDetailsCryptoModel = z.infer; - -export const PaymentMethodDetailsCustomerBalance = z.object({ +export const PaymentMethodDetailsCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCustomerBalanceModel = z.infer; - -export const PaymentMethodDetailsEps = z.object({ +export const PaymentMethodDetailsEps: z.ZodType = z.object({ 'bank': z.enum(['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']), 'verified_name': z.string() }); -export type PaymentMethodDetailsEpsModel = z.infer; - -export const PaymentMethodDetailsFpx = z.object({ +export const PaymentMethodDetailsFpx: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank': z.enum(['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']), 'transaction_id': z.string() }); -export type PaymentMethodDetailsFpxModel = z.infer; - -export const PaymentMethodDetailsGiropay = z.object({ +export const PaymentMethodDetailsGiropay: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), 'bic': z.string(), 'verified_name': z.string() }); -export type PaymentMethodDetailsGiropayModel = z.infer; - -export const PaymentMethodDetailsGrabpay = z.object({ +export const PaymentMethodDetailsGrabpay: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsGrabpayModel = z.infer; - export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']), @@ -5295,7 +14150,7 @@ export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'savings', 'unknown']).optional(), 'application_cryptogram': z.string(), 'application_preferred_name': z.string(), @@ -5307,9 +14162,7 @@ export const PaymentMethodDetailsInteracPresentReceipt = z.object({ 'transaction_status_information': z.string() }); -export type PaymentMethodDetailsInteracPresentReceiptModel = z.infer; - -export const PaymentMethodDetailsInteracPresent = z.object({ +export const PaymentMethodDetailsInteracPresent: z.ZodType = z.object({ 'brand': z.string(), 'cardholder_name': z.string(), 'country': z.string(), @@ -5330,69 +14183,49 @@ export const PaymentMethodDetailsInteracPresent = z.object({ 'receipt': z.union([PaymentMethodDetailsInteracPresentReceipt]) }); -export type PaymentMethodDetailsInteracPresentModel = z.infer; - -export const PaymentMethodDetailsKakaoPay = z.object({ +export const PaymentMethodDetailsKakaoPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsKakaoPayModel = z.infer; - -export const KlarnaAddress = z.object({ +export const KlarnaAddress: z.ZodType = z.object({ 'country': z.string() }); -export type KlarnaAddressModel = z.infer; - -export const KlarnaPayerDetails = z.object({ +export const KlarnaPayerDetails: z.ZodType = z.object({ 'address': z.union([KlarnaAddress]) }); -export type KlarnaPayerDetailsModel = z.infer; - -export const PaymentMethodDetailsKlarna = z.object({ +export const PaymentMethodDetailsKlarna: z.ZodType = z.object({ 'payer_details': z.union([KlarnaPayerDetails]), 'payment_method_category': z.string(), 'preferred_locale': z.string() }); -export type PaymentMethodDetailsKlarnaModel = z.infer; - -export const PaymentMethodDetailsKonbiniStore = z.object({ +export const PaymentMethodDetailsKonbiniStore: z.ZodType = z.object({ 'chain': z.enum(['familymart', 'lawson', 'ministop', 'seicomart']) }); -export type PaymentMethodDetailsKonbiniStoreModel = z.infer; - -export const PaymentMethodDetailsKonbini = z.object({ +export const PaymentMethodDetailsKonbini: z.ZodType = z.object({ 'store': z.union([PaymentMethodDetailsKonbiniStore]) }); -export type PaymentMethodDetailsKonbiniModel = z.infer; - -export const PaymentMethodDetailsKrCard = z.object({ +export const PaymentMethodDetailsKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']), 'buyer_id': z.string(), 'last4': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsKrCardModel = z.infer; - -export const PaymentMethodDetailsLink = z.object({ +export const PaymentMethodDetailsLink: z.ZodType = z.object({ 'country': z.string() }); -export type PaymentMethodDetailsLinkModel = z.infer; - -export const PaymentMethodDetailsMbWay = z.object({ +export const PaymentMethodDetailsMbWay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsMbWayModel = z.infer; - -export const InternalCard = z.object({ +export const InternalCard: z.ZodType = z.object({ 'brand': z.string(), 'country': z.string(), 'exp_month': z.number().int(), @@ -5400,29 +14233,21 @@ export const InternalCard = z.object({ 'last4': z.string() }); -export type InternalCardModel = z.infer; - -export const PaymentMethodDetailsMobilepay = z.object({ +export const PaymentMethodDetailsMobilepay: z.ZodType = z.object({ 'card': z.union([InternalCard]) }); -export type PaymentMethodDetailsMobilepayModel = z.infer; - -export const PaymentMethodDetailsMultibanco = z.object({ +export const PaymentMethodDetailsMultibanco: z.ZodType = z.object({ 'entity': z.string(), 'reference': z.string() }); -export type PaymentMethodDetailsMultibancoModel = z.infer; - -export const PaymentMethodDetailsNaverPay = z.object({ +export const PaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsNaverPayModel = z.infer; - -export const PaymentMethodDetailsNzBankAccount = z.object({ +export const PaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -5431,51 +14256,37 @@ export const PaymentMethodDetailsNzBankAccount = z.object({ 'suffix': z.string() }); -export type PaymentMethodDetailsNzBankAccountModel = z.infer; - -export const PaymentMethodDetailsOxxo = z.object({ +export const PaymentMethodDetailsOxxo: z.ZodType = z.object({ 'number': z.string() }); -export type PaymentMethodDetailsOxxoModel = z.infer; - -export const PaymentMethodDetailsP24 = z.object({ +export const PaymentMethodDetailsP24: z.ZodType = z.object({ 'bank': z.enum(['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']), 'reference': z.string(), 'verified_name': z.string() }); -export type PaymentMethodDetailsP24Model = z.infer; - -export const PaymentMethodDetailsPayByBank = z.object({ +export const PaymentMethodDetailsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodDetailsPayByBankModel = z.infer; - -export const PaymentMethodDetailsPayco = z.object({ +export const PaymentMethodDetailsPayco: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsPaycoModel = z.infer; - -export const PaymentMethodDetailsPaynow = z.object({ +export const PaymentMethodDetailsPaynow: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'reference': z.string() }); -export type PaymentMethodDetailsPaynowModel = z.infer; - -export const PaypalSellerProtection = z.object({ +export const PaypalSellerProtection: z.ZodType = z.object({ 'dispute_categories': z.array(z.enum(['fraudulent', 'product_not_received'])), 'status': z.enum(['eligible', 'not_eligible', 'partially_eligible']) }); -export type PaypalSellerProtectionModel = z.infer; - -export const PaymentMethodDetailsPaypal = z.object({ +export const PaymentMethodDetailsPaypal: z.ZodType = z.object({ 'country': z.string(), 'payer_email': z.string(), 'payer_id': z.string(), @@ -5484,56 +14295,40 @@ export const PaymentMethodDetailsPaypal = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsPaypalModel = z.infer; - -export const PaymentMethodDetailsPix = z.object({ +export const PaymentMethodDetailsPix: z.ZodType = z.object({ 'bank_transaction_id': z.string().optional() }); -export type PaymentMethodDetailsPixModel = z.infer; - -export const PaymentMethodDetailsPromptpay = z.object({ +export const PaymentMethodDetailsPromptpay: z.ZodType = z.object({ 'reference': z.string() }); -export type PaymentMethodDetailsPromptpayModel = z.infer; - -export const RevolutPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const RevolutPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']) }); -export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsRevolutPay = z.object({ +export const PaymentMethodDetailsRevolutPay: z.ZodType = z.object({ 'funding': RevolutPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsRevolutPayModel = z.infer; - -export const PaymentMethodDetailsSamsungPay = z.object({ +export const PaymentMethodDetailsSamsungPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsSamsungPayModel = z.infer; - -export const PaymentMethodDetailsSatispay = z.object({ +export const PaymentMethodDetailsSatispay: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsSatispayModel = z.infer; - -export const PaymentMethodDetailsSepaCreditTransfer = z.object({ +export const PaymentMethodDetailsSepaCreditTransfer: z.ZodType = z.object({ 'bank_name': z.string(), 'bic': z.string(), 'iban': z.string() }); -export type PaymentMethodDetailsSepaCreditTransferModel = z.infer; - -export const PaymentMethodDetailsSepaDebit = z.object({ +export const PaymentMethodDetailsSepaDebit: z.ZodType = z.object({ 'bank_code': z.string(), 'branch_code': z.string(), 'country': z.string(), @@ -5542,8 +14337,6 @@ export const PaymentMethodDetailsSepaDebit = z.object({ 'mandate': z.string() }); -export type PaymentMethodDetailsSepaDebitModel = z.infer; - export const PaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -5556,27 +14349,21 @@ export const PaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type PaymentMethodDetailsStripeAccountModel = z.infer; - -export const PaymentMethodDetailsSwish = z.object({ +export const PaymentMethodDetailsSwish: z.ZodType = z.object({ 'fingerprint': z.string(), 'payment_reference': z.string(), 'verified_phone_last4': z.string() }); -export type PaymentMethodDetailsSwishModel = z.infer; - -export const PaymentMethodDetailsTwint = z.object({ +export const PaymentMethodDetailsTwint: z.ZodType = z.object({ }); -export type PaymentMethodDetailsTwintModel = z.infer; - -export const PaymentMethodDetailsUsBankAccount = z.object({ +export const PaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -5587,29 +14374,21 @@ export const PaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type PaymentMethodDetailsUsBankAccountModel = z.infer; - -export const PaymentMethodDetailsWechat = z.object({ +export const PaymentMethodDetailsWechat: z.ZodType = z.object({ }); -export type PaymentMethodDetailsWechatModel = z.infer; - -export const PaymentMethodDetailsWechatPay = z.object({ +export const PaymentMethodDetailsWechatPay: z.ZodType = z.object({ 'fingerprint': z.string(), 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsWechatPayModel = z.infer; - -export const PaymentMethodDetailsZip = z.object({ +export const PaymentMethodDetailsZip: z.ZodType = z.object({ }); -export type PaymentMethodDetailsZipModel = z.infer; - export const PaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), @@ -5670,13 +14449,11 @@ export const PaymentMethodDetails: z.ZodType = z.obje 'zip': PaymentMethodDetailsZip.optional() }); -export const RadarRadarOptions = z.object({ +export const RadarRadarOptions: z.ZodType = z.object({ 'session': z.string().optional() }); -export type RadarRadarOptionsModel = z.infer; - -export const RadarReviewResourceLocation = z.object({ +export const RadarReviewResourceLocation: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'latitude': z.number(), @@ -5684,17 +14461,13 @@ export const RadarReviewResourceLocation = z.object({ 'region': z.string() }); -export type RadarReviewResourceLocationModel = z.infer; - -export const RadarReviewResourceSession = z.object({ +export const RadarReviewResourceSession: z.ZodType = z.object({ 'browser': z.string(), 'device': z.string(), 'platform': z.string(), 'version': z.string() }); -export type RadarReviewResourceSessionModel = z.infer; - export const Review: z.ZodType = z.object({ 'billing_zip': z.string(), 'charge': z.union([z.string(), z.lazy(() => Charge)]), @@ -5773,48 +14546,38 @@ export const Charge: z.ZodType = z.object({ 'transfer_group': z.string() }); -export const PaymentIntentNextActionAlipayHandleRedirect = z.object({ +export const PaymentIntentNextActionAlipayHandleRedirect: z.ZodType = z.object({ 'native_data': z.string(), 'native_url': z.string(), 'return_url': z.string(), 'url': z.string() }); -export type PaymentIntentNextActionAlipayHandleRedirectModel = z.infer; - -export const PaymentIntentNextActionBoleto = z.object({ +export const PaymentIntentNextActionBoleto: z.ZodType = z.object({ 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'number': z.string(), 'pdf': z.string() }); -export type PaymentIntentNextActionBoletoModel = z.infer; - -export const PaymentIntentNextActionCardAwaitNotification = z.object({ +export const PaymentIntentNextActionCardAwaitNotification: z.ZodType = z.object({ 'charge_attempt_at': z.number().int(), 'customer_approval_required': z.boolean() }); -export type PaymentIntentNextActionCardAwaitNotificationModel = z.infer; - -export const PaymentIntentNextActionCashappQrCode = z.object({ +export const PaymentIntentNextActionCashappQrCode: z.ZodType = z.object({ 'expires_at': z.number().int(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionCashappQrCodeModel = z.infer; - -export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'mobile_auth_url': z.string(), 'qr_code': PaymentIntentNextActionCashappQrCode }); -export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const FundingInstructionsBankTransferAbaRecord = z.object({ +export const FundingInstructionsBankTransferAbaRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5824,9 +14587,7 @@ export const FundingInstructionsBankTransferAbaRecord = z.object({ 'routing_number': z.string() }); -export type FundingInstructionsBankTransferAbaRecordModel = z.infer; - -export const FundingInstructionsBankTransferIbanRecord = z.object({ +export const FundingInstructionsBankTransferIbanRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -5835,9 +14596,7 @@ export const FundingInstructionsBankTransferIbanRecord = z.object({ 'iban': z.string() }); -export type FundingInstructionsBankTransferIbanRecordModel = z.infer; - -export const FundingInstructionsBankTransferSortCodeRecord = z.object({ +export const FundingInstructionsBankTransferSortCodeRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5845,9 +14604,7 @@ export const FundingInstructionsBankTransferSortCodeRecord = z.object({ 'sort_code': z.string() }); -export type FundingInstructionsBankTransferSortCodeRecordModel = z.infer; - -export const FundingInstructionsBankTransferSpeiRecord = z.object({ +export const FundingInstructionsBankTransferSpeiRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -5856,9 +14613,7 @@ export const FundingInstructionsBankTransferSpeiRecord = z.object({ 'clabe': z.string() }); -export type FundingInstructionsBankTransferSpeiRecordModel = z.infer; - -export const FundingInstructionsBankTransferSwiftRecord = z.object({ +export const FundingInstructionsBankTransferSwiftRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5868,9 +14623,7 @@ export const FundingInstructionsBankTransferSwiftRecord = z.object({ 'swift_code': z.string() }); -export type FundingInstructionsBankTransferSwiftRecordModel = z.infer; - -export const FundingInstructionsBankTransferZenginRecord = z.object({ +export const FundingInstructionsBankTransferZenginRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -5882,9 +14635,7 @@ export const FundingInstructionsBankTransferZenginRecord = z.object({ 'branch_name': z.string() }); -export type FundingInstructionsBankTransferZenginRecordModel = z.infer; - -export const FundingInstructionsBankTransferFinancialAddress = z.object({ +export const FundingInstructionsBankTransferFinancialAddress: z.ZodType = z.object({ 'aba': FundingInstructionsBankTransferAbaRecord.optional(), 'iban': FundingInstructionsBankTransferIbanRecord.optional(), 'sort_code': FundingInstructionsBankTransferSortCodeRecord.optional(), @@ -5895,9 +14646,7 @@ export const FundingInstructionsBankTransferFinancialAddress = z.object({ 'zengin': FundingInstructionsBankTransferZenginRecord.optional() }); -export type FundingInstructionsBankTransferFinancialAddressModel = z.infer; - -export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ +export const PaymentIntentNextActionDisplayBankTransferInstructions: z.ZodType = z.object({ 'amount_remaining': z.number().int(), 'currency': z.string(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress).optional(), @@ -5906,80 +14655,60 @@ export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = z.infer; - -export const PaymentIntentNextActionKonbiniFamilymart = z.object({ +export const PaymentIntentNextActionKonbiniFamilymart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniFamilymartModel = z.infer; - -export const PaymentIntentNextActionKonbiniLawson = z.object({ +export const PaymentIntentNextActionKonbiniLawson: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniLawsonModel = z.infer; - -export const PaymentIntentNextActionKonbiniMinistop = z.object({ +export const PaymentIntentNextActionKonbiniMinistop: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniMinistopModel = z.infer; - -export const PaymentIntentNextActionKonbiniSeicomart = z.object({ +export const PaymentIntentNextActionKonbiniSeicomart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniSeicomartModel = z.infer; - -export const PaymentIntentNextActionKonbiniStores = z.object({ +export const PaymentIntentNextActionKonbiniStores: z.ZodType = z.object({ 'familymart': z.union([PaymentIntentNextActionKonbiniFamilymart]), 'lawson': z.union([PaymentIntentNextActionKonbiniLawson]), 'ministop': z.union([PaymentIntentNextActionKonbiniMinistop]), 'seicomart': z.union([PaymentIntentNextActionKonbiniSeicomart]) }); -export type PaymentIntentNextActionKonbiniStoresModel = z.infer; - -export const PaymentIntentNextActionKonbini = z.object({ +export const PaymentIntentNextActionKonbini: z.ZodType = z.object({ 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'stores': PaymentIntentNextActionKonbiniStores }); -export type PaymentIntentNextActionKonbiniModel = z.infer; - -export const PaymentIntentNextActionDisplayMultibancoDetails = z.object({ +export const PaymentIntentNextActionDisplayMultibancoDetails: z.ZodType = z.object({ 'entity': z.string(), 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'reference': z.string() }); -export type PaymentIntentNextActionDisplayMultibancoDetailsModel = z.infer; - -export const PaymentIntentNextActionDisplayOxxoDetails = z.object({ +export const PaymentIntentNextActionDisplayOxxoDetails: z.ZodType = z.object({ 'expires_after': z.number().int(), 'hosted_voucher_url': z.string(), 'number': z.string() }); -export type PaymentIntentNextActionDisplayOxxoDetailsModel = z.infer; - -export const PaymentIntentNextActionPaynowDisplayQrCode = z.object({ +export const PaymentIntentNextActionPaynowDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPaynowDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPixDisplayQrCode = z.object({ +export const PaymentIntentNextActionPixDisplayQrCode: z.ZodType = z.object({ 'data': z.string().optional(), 'expires_at': z.number().int().optional(), 'hosted_instructions_url': z.string().optional(), @@ -5987,49 +14716,37 @@ export const PaymentIntentNextActionPixDisplayQrCode = z.object({ 'image_url_svg': z.string().optional() }); -export type PaymentIntentNextActionPixDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPromptpayDisplayQrCode = z.object({ +export const PaymentIntentNextActionPromptpayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionRedirectToUrl = z.object({ +export const PaymentIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string(), 'url': z.string() }); -export type PaymentIntentNextActionRedirectToUrlModel = z.infer; - -export const PaymentIntentNextActionSwishQrCode = z.object({ +export const PaymentIntentNextActionSwishQrCode: z.ZodType = z.object({ 'data': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionSwishQrCodeModel = z.infer; - -export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'mobile_auth_url': z.string(), 'qr_code': PaymentIntentNextActionSwishQrCode }); -export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionVerifyWithMicrodeposits = z.object({ +export const PaymentIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']) }); -export type PaymentIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ +export const PaymentIntentNextActionWechatPayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_data_url': z.string(), @@ -6037,9 +14754,7 @@ export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ 'image_url_svg': z.string() }); -export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToAndroidApp: z.ZodType = z.object({ 'app_id': z.string(), 'nonce_str': z.string(), 'package': z.string(), @@ -6049,15 +14764,11 @@ export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ 'timestamp': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToIosApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToIosApp: z.ZodType = z.object({ 'native_url': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = z.infer; - -export const PaymentIntentNextAction = z.object({ +export const PaymentIntentNextAction: z.ZodType = z.object({ 'alipay_handle_redirect': PaymentIntentNextActionAlipayHandleRedirect.optional(), 'boleto_display_details': PaymentIntentNextActionBoleto.optional(), 'card_await_notification': PaymentIntentNextActionCardAwaitNotification.optional(), @@ -6079,131 +14790,95 @@ export const PaymentIntentNextAction = z.object({ 'wechat_pay_redirect_to_ios_app': PaymentIntentNextActionWechatPayRedirectToIosApp.optional() }); -export type PaymentIntentNextActionModel = z.infer; - -export const PaymentFlowsPaymentDetails = z.object({ +export const PaymentFlowsPaymentDetails: z.ZodType = z.object({ 'customer_reference': z.string(), 'order_reference': z.string() }); -export type PaymentFlowsPaymentDetailsModel = z.infer; - -export const PaymentMethodConfigBizPaymentMethodConfigurationDetails = z.object({ +export const PaymentMethodConfigBizPaymentMethodConfigurationDetails: z.ZodType = z.object({ 'id': z.string(), 'parent': z.string() }); -export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'interval_description': z.string(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']), 'transaction_type': z.enum(['business', 'personal']) }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const PaymentMethodOptionsAffirm = z.object({ +export const PaymentMethodOptionsAffirm: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAffirmModel = z.infer; - -export const PaymentMethodOptionsAfterpayClearpay = z.object({ +export const PaymentMethodOptionsAfterpayClearpay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'reference': z.string(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAfterpayClearpayModel = z.infer; - -export const PaymentMethodOptionsAlipay = z.object({ +export const PaymentMethodOptionsAlipay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAlipayModel = z.infer; - -export const PaymentMethodOptionsAlma = z.object({ +export const PaymentMethodOptionsAlma: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsAlmaModel = z.infer; - -export const PaymentMethodOptionsAmazonPay = z.object({ +export const PaymentMethodOptionsAmazonPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAmazonPayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAuBecsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAuBecsDebit: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const PaymentMethodOptionsBancontact = z.object({ +export const PaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsBancontactModel = z.infer; - -export const PaymentMethodOptionsBillie = z.object({ +export const PaymentMethodOptionsBillie: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsBillieModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBlik = z.object({ +export const PaymentIntentPaymentMethodOptionsBlik: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsBlikModel = z.infer; - -export const PaymentMethodOptionsBoleto = z.object({ +export const PaymentMethodOptionsBoleto: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsBoletoModel = z.infer; - -export const PaymentMethodOptionsCardInstallments = z.object({ +export const PaymentMethodOptionsCardInstallments: z.ZodType = z.object({ 'available_plans': z.array(PaymentMethodDetailsCardInstallmentsPlan), 'enabled': z.boolean(), 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]) }); -export type PaymentMethodOptionsCardInstallmentsModel = z.infer; - -export const PaymentMethodOptionsCardMandateOptions = z.object({ +export const PaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string(), @@ -6215,9 +14890,7 @@ export const PaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])) }); -export type PaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsCard = z.object({ +export const PaymentIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': z.union([PaymentMethodOptionsCardInstallments]), 'mandate_options': z.union([PaymentMethodOptionsCardMandateOptions]), @@ -6233,110 +14906,78 @@ export const PaymentIntentPaymentMethodOptionsCard = z.object({ 'statement_descriptor_suffix_kanji': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsCardModel = z.infer; - -export const PaymentMethodOptionsCardPresentRouting = z.object({ +export const PaymentMethodOptionsCardPresentRouting: z.ZodType = z.object({ 'requested_priority': z.enum(['domestic', 'international']) }); -export type PaymentMethodOptionsCardPresentRoutingModel = z.infer; - -export const PaymentMethodOptionsCardPresent = z.object({ +export const PaymentMethodOptionsCardPresent: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'request_extended_authorization': z.boolean(), 'request_incremental_authorization_support': z.boolean(), 'routing': PaymentMethodOptionsCardPresentRouting.optional() }); -export type PaymentMethodOptionsCardPresentModel = z.infer; - -export const PaymentMethodOptionsCashapp = z.object({ +export const PaymentMethodOptionsCashapp: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsCashappModel = z.infer; - -export const PaymentMethodOptionsCrypto = z.object({ +export const PaymentMethodOptionsCrypto: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCryptoModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceEuBankAccount = z.object({ +export const PaymentMethodOptionsCustomerBalanceEuBankAccount: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const PaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type PaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const PaymentMethodOptionsCustomerBalance = z.object({ +export const PaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': PaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsEps = z.object({ +export const PaymentIntentPaymentMethodOptionsEps: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsEpsModel = z.infer; - -export const PaymentMethodOptionsFpx = z.object({ +export const PaymentMethodOptionsFpx: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsFpxModel = z.infer; - -export const PaymentMethodOptionsGiropay = z.object({ +export const PaymentMethodOptionsGiropay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGiropayModel = z.infer; - -export const PaymentMethodOptionsGrabpay = z.object({ +export const PaymentMethodOptionsGrabpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGrabpayModel = z.infer; - -export const PaymentMethodOptionsIdeal = z.object({ +export const PaymentMethodOptionsIdeal: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsIdealModel = z.infer; - -export const PaymentMethodOptionsInteracPresent = z.object({ +export const PaymentMethodOptionsInteracPresent: z.ZodType = z.object({ }); -export type PaymentMethodOptionsInteracPresentModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsKlarna = z.object({ +export const PaymentMethodOptionsKlarna: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsKlarnaModel = z.infer; - -export const PaymentMethodOptionsKonbini = z.object({ +export const PaymentMethodOptionsKonbini: z.ZodType = z.object({ 'confirmation_number': z.string(), 'expires_after_days': z.number().int(), 'expires_at': z.number().int(), @@ -6344,186 +14985,132 @@ export const PaymentMethodOptionsKonbini = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsKonbiniModel = z.infer; - -export const PaymentMethodOptionsKrCard = z.object({ +export const PaymentMethodOptionsKrCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsKrCardModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsLink = z.object({ +export const PaymentIntentPaymentMethodOptionsLink: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'persistent_token': z.string(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentIntentPaymentMethodOptionsLinkModel = z.infer; - -export const PaymentMethodOptionsMbWay = z.object({ +export const PaymentMethodOptionsMbWay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMbWayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMobilepay = z.object({ +export const PaymentIntentPaymentMethodOptionsMobilepay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsMobilepayModel = z.infer; - -export const PaymentMethodOptionsMultibanco = z.object({ +export const PaymentMethodOptionsMultibanco: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMultibancoModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsNzBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsNzBankAccount: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = z.infer; - -export const PaymentMethodOptionsOxxo = z.object({ +export const PaymentMethodOptionsOxxo: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsOxxoModel = z.infer; - -export const PaymentMethodOptionsP24 = z.object({ +export const PaymentMethodOptionsP24: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsP24Model = z.infer; - -export const PaymentMethodOptionsPayByBank = z.object({ +export const PaymentMethodOptionsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodOptionsPayByBankModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsPaynow = z.object({ +export const PaymentMethodOptionsPaynow: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPaynowModel = z.infer; - -export const PaymentMethodOptionsPaypal = z.object({ +export const PaymentMethodOptionsPaypal: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string(), 'reference': z.string(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsPaypalModel = z.infer; - -export const PaymentMethodOptionsPix = z.object({ +export const PaymentMethodOptionsPix: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int(), 'expires_at': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPixModel = z.infer; - -export const PaymentMethodOptionsPromptpay = z.object({ +export const PaymentMethodOptionsPromptpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPromptpayModel = z.infer; - -export const PaymentMethodOptionsRevolutPay = z.object({ +export const PaymentMethodOptionsRevolutPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsRevolutPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsSatispay = z.object({ +export const PaymentMethodOptionsSatispay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsSatispayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const PaymentMethodOptionsSofort = z.object({ +export const PaymentMethodOptionsSofort: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsSofortModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSwish = z.object({ +export const PaymentIntentPaymentMethodOptionsSwish: z.ZodType = z.object({ 'reference': z.string(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsSwishModel = z.infer; - -export const PaymentMethodOptionsTwint = z.object({ +export const PaymentMethodOptionsTwint: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsTwintModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters = z.object({ +export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional() }); -export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = z.infer; - -export const LinkedAccountOptionsCommon = z.object({ +export const LinkedAccountOptionsCommon: z.ZodType = z.object({ 'filters': PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), 'prefetch': z.array(z.enum(['balances', 'ownership', 'transactions'])), 'return_url': z.string().optional() }); -export type LinkedAccountOptionsCommonModel = z.infer; - -export const PaymentMethodOptionsUsBankAccountMandateOptions = z.object({ +export const PaymentMethodOptionsUsBankAccountMandateOptions: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'preferred_settlement_speed': z.enum(['fastest', 'standard']).optional(), @@ -6532,23 +15119,17 @@ export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const PaymentMethodOptionsWechatPay = z.object({ +export const PaymentMethodOptionsWechatPay: z.ZodType = z.object({ 'app_id': z.string(), 'client': z.enum(['android', 'ios', 'web']), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsWechatPayModel = z.infer; - -export const PaymentMethodOptionsZip = z.object({ +export const PaymentMethodOptionsZip: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsZipModel = z.infer; - -export const PaymentIntentPaymentMethodOptions = z.object({ +export const PaymentIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': PaymentIntentPaymentMethodOptionsAcssDebit.optional(), 'affirm': PaymentMethodOptionsAffirm.optional(), 'afterpay_clearpay': PaymentMethodOptionsAfterpayClearpay.optional(), @@ -6602,31 +15183,21 @@ export const PaymentIntentPaymentMethodOptions = z.object({ 'zip': PaymentMethodOptionsZip.optional() }); -export type PaymentIntentPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentProcessingCustomerNotification = z.object({ +export const PaymentIntentProcessingCustomerNotification: z.ZodType = z.object({ 'approval_requested': z.boolean(), 'completes_at': z.number().int() }); -export type PaymentIntentProcessingCustomerNotificationModel = z.infer; - -export const PaymentIntentCardProcessing = z.object({ +export const PaymentIntentCardProcessing: z.ZodType = z.object({ 'customer_notification': PaymentIntentProcessingCustomerNotification.optional() }); -export type PaymentIntentCardProcessingModel = z.infer; - -export const PaymentIntentProcessing_1 = z.object({ +export const PaymentIntentProcessing_1: z.ZodType = z.object({ 'card': PaymentIntentCardProcessing.optional(), 'type': z.enum(['card']) }); -export type PaymentIntentProcessing_1Model = z.infer; - -export const DeletedPaymentSource = z.union([DeletedBankAccount, DeletedCard]); - -export type DeletedPaymentSourceModel = z.infer; +export const DeletedPaymentSource: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); export const TransferData: z.ZodType = z.object({ 'amount': z.number().int().optional(), @@ -6679,29 +15250,23 @@ export const PaymentIntent: z.ZodType = z.object({ 'transfer_group': z.string() }); -export const PaymentFlowsAutomaticPaymentMethodsSetupIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsSetupIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean() }); -export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = z.infer; - -export const SetupIntentNextActionRedirectToUrl = z.object({ +export const SetupIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string(), 'url': z.string() }); -export type SetupIntentNextActionRedirectToUrlModel = z.infer; - -export const SetupIntentNextActionVerifyWithMicrodeposits = z.object({ +export const SetupIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']) }); -export type SetupIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const SetupIntentNextAction = z.object({ +export const SetupIntentNextAction: z.ZodType = z.object({ 'cashapp_handle_redirect_or_display_qr_code': PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.optional(), 'redirect_to_url': SetupIntentNextActionRedirectToUrl.optional(), 'type': z.string(), @@ -6709,9 +15274,7 @@ export const SetupIntentNextAction = z.object({ 'verify_with_microdeposits': SetupIntentNextActionVerifyWithMicrodeposits.optional() }); -export type SetupIntentNextActionModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), @@ -6719,35 +15282,25 @@ export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']), 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAmazonPay = z.object({ +export const SetupIntentPaymentMethodOptionsAmazonPay: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsAmazonPayModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional() }); -export type SetupIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ +export const SetupIntentPaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'currency': z.string(), @@ -6760,62 +15313,44 @@ export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])) }); -export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCard = z.object({ +export const SetupIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': z.union([SetupIntentPaymentMethodOptionsCardMandateOptions]), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type SetupIntentPaymentMethodOptionsCardModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardPresent = z.object({ +export const SetupIntentPaymentMethodOptionsCardPresent: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsCardPresentModel = z.infer; - -export const SetupIntentPaymentMethodOptionsKlarna = z.object({ +export const SetupIntentPaymentMethodOptionsKlarna: z.ZodType = z.object({ 'currency': z.string(), 'preferred_locale': z.string() }); -export type SetupIntentPaymentMethodOptionsKlarnaModel = z.infer; - -export const SetupIntentPaymentMethodOptionsLink = z.object({ +export const SetupIntentPaymentMethodOptionsLink: z.ZodType = z.object({ 'persistent_token': z.string() }); -export type SetupIntentPaymentMethodOptionsLinkModel = z.infer; - -export const SetupIntentPaymentMethodOptionsPaypal = z.object({ +export const SetupIntentPaymentMethodOptionsPaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string() }); -export type SetupIntentPaymentMethodOptionsPaypalModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional() }); -export type SetupIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const SetupIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const SetupIntentPaymentMethodOptions = z.object({ +export const SetupIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': SetupIntentPaymentMethodOptionsAcssDebit.optional(), 'amazon_pay': SetupIntentPaymentMethodOptionsAmazonPay.optional(), 'bacs_debit': SetupIntentPaymentMethodOptionsBacsDebit.optional(), @@ -6828,8 +15363,6 @@ export const SetupIntentPaymentMethodOptions = z.object({ 'us_bank_account': SetupIntentPaymentMethodOptionsUsBankAccount.optional() }); -export type SetupIntentPaymentMethodOptionsModel = z.infer; - export const SetupIntent: z.ZodType = z.object({ 'application': z.union([z.string(), Application]), 'attach_to_self': z.boolean().optional(), @@ -6902,68 +15435,50 @@ export const PaymentMethodCardGeneratedCard: z.ZodType SetupAttempt)]) }); -export const Networks = z.object({ +export const Networks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string() }); -export type NetworksModel = z.infer; - -export const ThreeDSecureUsage = z.object({ +export const ThreeDSecureUsage: z.ZodType = z.object({ 'supported': z.boolean() }); -export type ThreeDSecureUsageModel = z.infer; - -export const PaymentMethodCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodCardWalletApplePay = z.object({ +export const PaymentMethodCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletApplePayModel = z.infer; - -export const PaymentMethodCardWalletGooglePay = z.object({ +export const PaymentMethodCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletGooglePayModel = z.infer; - -export const PaymentMethodCardWalletLink = z.object({ +export const PaymentMethodCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletLinkModel = z.infer; - -export const PaymentMethodCardWalletMasterpass = z.object({ +export const PaymentMethodCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodCardWalletMasterpassModel = z.infer; - -export const PaymentMethodCardWalletSamsungPay = z.object({ +export const PaymentMethodCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodCardWalletVisaCheckout = z.object({ +export const PaymentMethodCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodCardWallet = z.object({ +export const PaymentMethodCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodCardWalletApplePay.optional(), 'dynamic_last4': z.string(), @@ -6975,8 +15490,6 @@ export const PaymentMethodCardWallet = z.object({ 'visa_checkout': PaymentMethodCardWalletVisaCheckout.optional() }); -export type PaymentMethodCardWalletModel = z.infer; - export const PaymentMethodCard: z.ZodType = z.object({ 'brand': z.string(), 'checks': z.union([PaymentMethodCardChecks]), @@ -6997,14 +15510,12 @@ export const PaymentMethodCard: z.ZodType = z.object({ 'wallet': z.union([PaymentMethodCardWallet]) }); -export const PaymentMethodCardPresentNetworks = z.object({ +export const PaymentMethodCardPresentNetworks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string() }); -export type PaymentMethodCardPresentNetworksModel = z.infer; - -export const PaymentMethodCardPresent = z.object({ +export const PaymentMethodCardPresent: z.ZodType = z.object({ 'brand': z.string(), 'brand_product': z.string(), 'cardholder_name': z.string(), @@ -7024,75 +15535,53 @@ export const PaymentMethodCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodCardPresentModel = z.infer; - -export const PaymentMethodCashapp = z.object({ +export const PaymentMethodCashapp: z.ZodType = z.object({ 'buyer_id': z.string(), 'cashtag': z.string() }); -export type PaymentMethodCashappModel = z.infer; - -export const PaymentMethodCrypto = z.object({ +export const PaymentMethodCrypto: z.ZodType = z.object({ }); -export type PaymentMethodCryptoModel = z.infer; - -export const CustomLogo = z.object({ +export const CustomLogo: z.ZodType = z.object({ 'content_type': z.string(), 'url': z.string() }); -export type CustomLogoModel = z.infer; - -export const PaymentMethodCustom = z.object({ +export const PaymentMethodCustom: z.ZodType = z.object({ 'display_name': z.string(), 'logo': z.union([CustomLogo]), 'type': z.string() }); -export type PaymentMethodCustomModel = z.infer; - -export const PaymentMethodCustomerBalance = z.object({ +export const PaymentMethodCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodCustomerBalanceModel = z.infer; - -export const PaymentMethodEps = z.object({ +export const PaymentMethodEps: z.ZodType = z.object({ 'bank': z.enum(['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']) }); -export type PaymentMethodEpsModel = z.infer; - -export const PaymentMethodFpx = z.object({ +export const PaymentMethodFpx: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank': z.enum(['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']) }); -export type PaymentMethodFpxModel = z.infer; - -export const PaymentMethodGiropay = z.object({ +export const PaymentMethodGiropay: z.ZodType = z.object({ }); -export type PaymentMethodGiropayModel = z.infer; - -export const PaymentMethodGrabpay = z.object({ +export const PaymentMethodGrabpay: z.ZodType = z.object({ }); -export type PaymentMethodGrabpayModel = z.infer; - -export const PaymentMethodIdeal = z.object({ +export const PaymentMethodIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']) }); -export type PaymentMethodIdealModel = z.infer; - -export const PaymentMethodInteracPresent = z.object({ +export const PaymentMethodInteracPresent: z.ZodType = z.object({ 'brand': z.string(), 'cardholder_name': z.string(), 'country': z.string(), @@ -7109,74 +15598,52 @@ export const PaymentMethodInteracPresent = z.object({ 'read_method': z.enum(['contact_emv', 'contactless_emv', 'contactless_magstripe_mode', 'magnetic_stripe_fallback', 'magnetic_stripe_track2']) }); -export type PaymentMethodInteracPresentModel = z.infer; - -export const PaymentMethodKakaoPay = z.object({ +export const PaymentMethodKakaoPay: z.ZodType = z.object({ }); -export type PaymentMethodKakaoPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaDob = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = z.infer; - -export const PaymentMethodKlarna = z.object({ +export const PaymentMethodKlarna: z.ZodType = z.object({ 'dob': z.union([PaymentFlowsPrivatePaymentMethodsKlarnaDob]).optional() }); -export type PaymentMethodKlarnaModel = z.infer; - -export const PaymentMethodKonbini = z.object({ +export const PaymentMethodKonbini: z.ZodType = z.object({ }); -export type PaymentMethodKonbiniModel = z.infer; - -export const PaymentMethodKrCard = z.object({ +export const PaymentMethodKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']), 'last4': z.string() }); -export type PaymentMethodKrCardModel = z.infer; - -export const PaymentMethodLink = z.object({ +export const PaymentMethodLink: z.ZodType = z.object({ 'email': z.string(), 'persistent_token': z.string().optional() }); -export type PaymentMethodLinkModel = z.infer; - -export const PaymentMethodMbWay = z.object({ +export const PaymentMethodMbWay: z.ZodType = z.object({ }); -export type PaymentMethodMbWayModel = z.infer; - -export const PaymentMethodMobilepay = z.object({ +export const PaymentMethodMobilepay: z.ZodType = z.object({ }); -export type PaymentMethodMobilepayModel = z.infer; - -export const PaymentMethodMultibanco = z.object({ +export const PaymentMethodMultibanco: z.ZodType = z.object({ }); -export type PaymentMethodMultibancoModel = z.infer; - -export const PaymentMethodNaverPay = z.object({ +export const PaymentMethodNaverPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'funding': z.enum(['card', 'points']) }); -export type PaymentMethodNaverPayModel = z.infer; - -export const PaymentMethodNzBankAccount = z.object({ +export const PaymentMethodNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -7185,84 +15652,58 @@ export const PaymentMethodNzBankAccount = z.object({ 'suffix': z.string() }); -export type PaymentMethodNzBankAccountModel = z.infer; - -export const PaymentMethodOxxo = z.object({ +export const PaymentMethodOxxo: z.ZodType = z.object({ }); -export type PaymentMethodOxxoModel = z.infer; - -export const PaymentMethodP24 = z.object({ +export const PaymentMethodP24: z.ZodType = z.object({ 'bank': z.enum(['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']) }); -export type PaymentMethodP24Model = z.infer; - -export const PaymentMethodPayByBank = z.object({ +export const PaymentMethodPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodPayByBankModel = z.infer; - -export const PaymentMethodPayco = z.object({ +export const PaymentMethodPayco: z.ZodType = z.object({ }); -export type PaymentMethodPaycoModel = z.infer; - -export const PaymentMethodPaynow = z.object({ +export const PaymentMethodPaynow: z.ZodType = z.object({ }); -export type PaymentMethodPaynowModel = z.infer; - -export const PaymentMethodPaypal = z.object({ +export const PaymentMethodPaypal: z.ZodType = z.object({ 'country': z.string(), 'payer_email': z.string(), 'payer_id': z.string() }); -export type PaymentMethodPaypalModel = z.infer; - -export const PaymentMethodPix = z.object({ +export const PaymentMethodPix: z.ZodType = z.object({ }); -export type PaymentMethodPixModel = z.infer; - -export const PaymentMethodPromptpay = z.object({ +export const PaymentMethodPromptpay: z.ZodType = z.object({ }); -export type PaymentMethodPromptpayModel = z.infer; - -export const PaymentMethodRevolutPay = z.object({ +export const PaymentMethodRevolutPay: z.ZodType = z.object({ }); -export type PaymentMethodRevolutPayModel = z.infer; - -export const PaymentMethodSamsungPay = z.object({ +export const PaymentMethodSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodSamsungPayModel = z.infer; - -export const PaymentMethodSatispay = z.object({ +export const PaymentMethodSatispay: z.ZodType = z.object({ }); -export type PaymentMethodSatispayModel = z.infer; - -export const SepaDebitGeneratedFrom = z.object({ +export const SepaDebitGeneratedFrom: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]), 'setup_attempt': z.union([z.string(), z.lazy(() => SetupAttempt)]) }); -export type SepaDebitGeneratedFromModel = z.infer; - -export const PaymentMethodSepaDebit = z.object({ +export const PaymentMethodSepaDebit: z.ZodType = z.object({ 'bank_code': z.string(), 'branch_code': z.string(), 'country': z.string(), @@ -7271,47 +15712,33 @@ export const PaymentMethodSepaDebit = z.object({ 'last4': z.string() }); -export type PaymentMethodSepaDebitModel = z.infer; - -export const PaymentMethodSofort = z.object({ +export const PaymentMethodSofort: z.ZodType = z.object({ 'country': z.string() }); -export type PaymentMethodSofortModel = z.infer; - -export const PaymentMethodSwish = z.object({ +export const PaymentMethodSwish: z.ZodType = z.object({ }); -export type PaymentMethodSwishModel = z.infer; - -export const PaymentMethodTwint = z.object({ +export const PaymentMethodTwint: z.ZodType = z.object({ }); -export type PaymentMethodTwintModel = z.infer; - -export const UsBankAccountNetworks = z.object({ +export const UsBankAccountNetworks: z.ZodType = z.object({ 'preferred': z.string(), 'supported': z.array(z.enum(['ach', 'us_domestic_wire'])) }); -export type UsBankAccountNetworksModel = z.infer; - -export const PaymentMethodUsBankAccountBlocked = z.object({ +export const PaymentMethodUsBankAccountBlocked: z.ZodType = z.object({ 'network_code': z.enum(['R02', 'R03', 'R04', 'R05', 'R07', 'R08', 'R10', 'R11', 'R16', 'R20', 'R29', 'R31']), 'reason': z.enum(['bank_account_closed', 'bank_account_frozen', 'bank_account_invalid_details', 'bank_account_restricted', 'bank_account_unusable', 'debit_not_authorized', 'tokenized_account_number_deactivated']) }); -export type PaymentMethodUsBankAccountBlockedModel = z.infer; - -export const PaymentMethodUsBankAccountStatusDetails = z.object({ +export const PaymentMethodUsBankAccountStatusDetails: z.ZodType = z.object({ 'blocked': PaymentMethodUsBankAccountBlocked.optional() }); -export type PaymentMethodUsBankAccountStatusDetailsModel = z.infer; - -export const PaymentMethodUsBankAccount = z.object({ +export const PaymentMethodUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -7323,20 +15750,14 @@ export const PaymentMethodUsBankAccount = z.object({ 'status_details': z.union([PaymentMethodUsBankAccountStatusDetails]) }); -export type PaymentMethodUsBankAccountModel = z.infer; - -export const PaymentMethodWechatPay = z.object({ +export const PaymentMethodWechatPay: z.ZodType = z.object({ }); -export type PaymentMethodWechatPayModel = z.infer; - -export const PaymentMethodZip = z.object({ +export const PaymentMethodZip: z.ZodType = z.object({ }); -export type PaymentMethodZipModel = z.infer; - export const PaymentMethod: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), @@ -7402,13 +15823,11 @@ export const PaymentMethod: z.ZodType = z.object({ 'zip': PaymentMethodZip.optional() }); -export const InvoiceSettingCustomerRenderingOptions = z.object({ +export const InvoiceSettingCustomerRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'template': z.string() }); -export type InvoiceSettingCustomerRenderingOptionsModel = z.infer; - export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'custom_fields': z.array(InvoiceSettingCustomField), 'default_payment_method': z.union([z.string(), z.lazy(() => PaymentMethod)]), @@ -7416,15 +15835,13 @@ export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'name': z.string(), 'object': z.enum(['application']) }); -export type DeletedApplicationModel = z.infer; - export const ConnectAccountReference: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'type': z.enum(['account', 'self']) @@ -7436,7 +15853,7 @@ export const SubscriptionAutomaticTax: z.ZodType 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ +export const SubscriptionsResourceBillingCycleAnchorConfig: z.ZodType = z.object({ 'day_of_month': z.number().int(), 'hour': z.number().int(), 'minute': z.number().int(), @@ -7444,45 +15861,33 @@ export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ 'second': z.number().int() }); -export type SubscriptionsResourceBillingCycleAnchorConfigModel = z.infer; - -export const SubscriptionsResourceBillingModeFlexible = z.object({ +export const SubscriptionsResourceBillingModeFlexible: z.ZodType = z.object({ 'proration_discounts': z.enum(['included', 'itemized']).optional() }); -export type SubscriptionsResourceBillingModeFlexibleModel = z.infer; - -export const SubscriptionsResourceBillingMode = z.object({ +export const SubscriptionsResourceBillingMode: z.ZodType = z.object({ 'flexible': z.union([SubscriptionsResourceBillingModeFlexible]), 'type': z.enum(['classic', 'flexible']), 'updated_at': z.number().int().optional() }); -export type SubscriptionsResourceBillingModeModel = z.infer; - -export const SubscriptionBillingThresholds = z.object({ +export const SubscriptionBillingThresholds: z.ZodType = z.object({ 'amount_gte': z.number().int(), 'reset_billing_cycle_anchor': z.boolean() }); -export type SubscriptionBillingThresholdsModel = z.infer; - -export const CancellationDetails = z.object({ +export const CancellationDetails: z.ZodType = z.object({ 'comment': z.string(), 'feedback': z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']), 'reason': z.enum(['cancellation_requested', 'payment_disputed', 'payment_failed']) }); -export type CancellationDetailsModel = z.infer; - -export const TaxRateFlatAmount = z.object({ +export const TaxRateFlatAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type TaxRateFlatAmountModel = z.infer; - -export const TaxRate = z.object({ +export const TaxRate: z.ZodType = z.object({ 'active': z.boolean(), 'country': z.string(), 'created': z.number().int(), @@ -7503,8 +15908,6 @@ export const TaxRate = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxRateModel = z.infer; - export const TaxIDsOwner: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'application': z.union([z.string(), Application]).optional(), @@ -7512,14 +15915,12 @@ export const TaxIDsOwner: z.ZodType = z.object({ 'type': z.enum(['account', 'application', 'customer', 'self']) }); -export const TaxIdVerification = z.object({ +export const TaxIdVerification: z.ZodType = z.object({ 'status': z.enum(['pending', 'unavailable', 'unverified', 'verified']), 'verified_address': z.string(), 'verified_name': z.string() }); -export type TaxIdVerificationModel = z.infer; - export const TaxId: z.ZodType = z.object({ 'country': z.string(), 'created': z.number().int(), @@ -7533,34 +15934,28 @@ export const TaxId: z.ZodType = z.object({ 'verification': z.union([TaxIdVerification]) }); -export const DeletedTaxId = z.object({ +export const DeletedTaxId: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['tax_id']) }); -export type DeletedTaxIdModel = z.infer; - export const SubscriptionsResourceSubscriptionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'issuer': z.lazy(() => ConnectAccountReference) }); -export const SubscriptionItemBillingThresholds = z.object({ +export const SubscriptionItemBillingThresholds: z.ZodType = z.object({ 'usage_gte': z.number().int() }); -export type SubscriptionItemBillingThresholdsModel = z.infer; - -export const CustomUnitAmount = z.object({ +export const CustomUnitAmount: z.ZodType = z.object({ 'maximum': z.number().int(), 'minimum': z.number().int(), 'preset': z.number().int() }); -export type CustomUnitAmountModel = z.infer; - -export const PriceTier = z.object({ +export const PriceTier: z.ZodType = z.object({ 'flat_amount': z.number().int(), 'flat_amount_decimal': z.string(), 'unit_amount': z.number().int(), @@ -7568,9 +15963,7 @@ export const PriceTier = z.object({ 'up_to': z.number().int() }); -export type PriceTierModel = z.infer; - -export const CurrencyOption = z.object({ +export const CurrencyOption: z.ZodType = z.object({ 'custom_unit_amount': z.union([CustomUnitAmount]), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']), 'tiers': z.array(PriceTier).optional(), @@ -7578,17 +15971,13 @@ export const CurrencyOption = z.object({ 'unit_amount_decimal': z.string() }); -export type CurrencyOptionModel = z.infer; - -export const DeletedProduct = z.object({ +export const DeletedProduct: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product']) }); -export type DeletedProductModel = z.infer; - -export const Recurring = z.object({ +export const Recurring: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int(), 'meter': z.string(), @@ -7596,15 +15985,11 @@ export const Recurring = z.object({ 'usage_type': z.enum(['licensed', 'metered']) }); -export type RecurringModel = z.infer; - -export const TransformQuantity = z.object({ +export const TransformQuantity: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformQuantityModel = z.infer; - export const Price: z.ZodType = z.object({ 'active': z.boolean(), 'billing_scheme': z.enum(['per_unit', 'tiered']), @@ -7629,30 +16014,24 @@ export const Price: z.ZodType = z.object({ 'unit_amount_decimal': z.string() }); -export const ProductMarketingFeature = z.object({ +export const ProductMarketingFeature: z.ZodType = z.object({ 'name': z.string().optional() }); -export type ProductMarketingFeatureModel = z.infer; - -export const PackageDimensions = z.object({ +export const PackageDimensions: z.ZodType = z.object({ 'height': z.number(), 'length': z.number(), 'weight': z.number(), 'width': z.number() }); -export type PackageDimensionsModel = z.infer; - -export const TaxCode = z.object({ +export const TaxCode: z.ZodType = z.object({ 'description': z.string(), 'id': z.string(), 'name': z.string(), 'object': z.enum(['tax_code']) }); -export type TaxCodeModel = z.infer; - export const Product: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), @@ -7675,7 +16054,7 @@ export const Product: z.ZodType = z.object({ 'url': z.string() }); -export const PlanTier = z.object({ +export const PlanTier: z.ZodType = z.object({ 'flat_amount': z.number().int(), 'flat_amount_decimal': z.string(), 'unit_amount': z.number().int(), @@ -7683,15 +16062,11 @@ export const PlanTier = z.object({ 'up_to': z.number().int() }); -export type PlanTierModel = z.infer; - -export const TransformUsage = z.object({ +export const TransformUsage: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformUsageModel = z.infer; - export const Plan: z.ZodType = z.object({ 'active': z.boolean(), 'amount': z.number().int(), @@ -7731,7 +16106,7 @@ export const SubscriptionItem: z.ZodType = z.object({ 'tax_rates': z.array(TaxRate) }); -export const AutomaticTax = z.object({ +export const AutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['finalization_requires_location_inputs', 'finalization_system_error']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), @@ -7739,22 +16114,16 @@ export const AutomaticTax = z.object({ 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type AutomaticTaxModel = z.infer; - -export const InvoicesResourceConfirmationSecret = z.object({ +export const InvoicesResourceConfirmationSecret: z.ZodType = z.object({ 'client_secret': z.string(), 'type': z.string() }); -export type InvoicesResourceConfirmationSecretModel = z.infer; - -export const InvoicesResourceInvoiceTaxId = z.object({ +export const InvoicesResourceInvoiceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type InvoicesResourceInvoiceTaxIdModel = z.infer; - export const DeletedDiscount: z.ZodType = z.object({ 'checkout_session': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -7775,36 +16144,28 @@ export const InvoicesResourceFromInvoice: z.ZodType Invoice)]) }); -export const DiscountsResourceDiscountAmount = z.object({ +export const DiscountsResourceDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]) }); -export type DiscountsResourceDiscountAmountModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonCreditedItems = z.object({ +export const BillingBillResourceInvoicingLinesCommonCreditedItems: z.ZodType = z.object({ 'invoice': z.string(), 'invoice_line_items': z.array(z.string()) }); -export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonProrationDetails = z.object({ +export const BillingBillResourceInvoicingLinesCommonProrationDetails: z.ZodType = z.object({ 'credited_items': z.union([BillingBillResourceInvoicingLinesCommonCreditedItems]) }); -export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent: z.ZodType = z.object({ 'invoice_item': z.string(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]), 'subscription': z.string() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent: z.ZodType = z.object({ 'invoice_item': z.string(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]), @@ -7812,37 +16173,27 @@ export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscription 'subscription_item': z.string() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent: z.ZodType = z.object({ 'invoice_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent]), 'subscription_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent]), 'type': z.enum(['invoice_item_details', 'subscription_item_details']) }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = z.infer; - -export const InvoiceLineItemPeriod = z.object({ +export const InvoiceLineItemPeriod: z.ZodType = z.object({ 'end': z.number().int(), 'start': z.number().int() }); -export type InvoiceLineItemPeriodModel = z.infer; - -export const BillingCreditGrantsResourceMonetaryAmount = z.object({ +export const BillingCreditGrantsResourceMonetaryAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type BillingCreditGrantsResourceMonetaryAmountModel = z.infer; - -export const BillingCreditGrantsResourceAmount = z.object({ +export const BillingCreditGrantsResourceAmount: z.ZodType = z.object({ 'monetary': z.union([BillingCreditGrantsResourceMonetaryAmount]), 'type': z.enum(['monetary']) }); -export type BillingCreditGrantsResourceAmountModel = z.infer; - export const BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoided: z.ZodType = z.object({ 'invoice': z.union([z.string(), z.lazy(() => Invoice)]), 'invoice_line_item': z.string() @@ -7854,38 +16205,28 @@ export const BillingCreditGrantsResourceBalanceCredit: z.ZodType = z.object({ 'id': z.string() }); -export type BillingCreditGrantsResourceApplicablePriceModel = z.infer; - -export const BillingCreditGrantsResourceScope = z.object({ +export const BillingCreditGrantsResourceScope: z.ZodType = z.object({ 'price_type': z.enum(['metered']).optional(), 'prices': z.array(BillingCreditGrantsResourceApplicablePrice).optional() }); -export type BillingCreditGrantsResourceScopeModel = z.infer; - -export const BillingCreditGrantsResourceApplicabilityConfig = z.object({ +export const BillingCreditGrantsResourceApplicabilityConfig: z.ZodType = z.object({ 'scope': BillingCreditGrantsResourceScope }); -export type BillingCreditGrantsResourceApplicabilityConfigModel = z.infer; - -export const BillingClocksResourceStatusDetailsAdvancingStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsAdvancingStatusDetails: z.ZodType = z.object({ 'target_frozen_time': z.number().int() }); -export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = z.infer; - -export const BillingClocksResourceStatusDetailsStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsStatusDetails: z.ZodType = z.object({ 'advancing': BillingClocksResourceStatusDetailsAdvancingStatusDetails.optional() }); -export type BillingClocksResourceStatusDetailsStatusDetailsModel = z.infer; - -export const TestHelpersTestClock = z.object({ +export const TestHelpersTestClock: z.ZodType = z.object({ 'created': z.number().int(), 'deletes_after': z.number().int(), 'frozen_time': z.number().int(), @@ -7897,8 +16238,6 @@ export const TestHelpersTestClock = z.object({ 'status_details': BillingClocksResourceStatusDetailsStatusDetails }); -export type TestHelpersTestClockModel = z.infer; - export const BillingCreditGrant: z.ZodType = z.object({ 'amount': BillingCreditGrantsResourceAmount, 'applicability_config': BillingCreditGrantsResourceApplicabilityConfig, @@ -7949,28 +16288,22 @@ export const InvoicesResourcePretaxCreditAmount: z.ZodType = z.object({ 'price': z.string(), 'product': z.string() }); -export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = z.infer; - -export const BillingBillResourceInvoicingPricingPricing = z.object({ +export const BillingBillResourceInvoicingPricingPricing: z.ZodType = z.object({ 'price_details': BillingBillResourceInvoicingPricingPricingPriceDetails.optional(), 'type': z.enum(['price_details']), 'unit_amount_decimal': z.string() }); -export type BillingBillResourceInvoicingPricingPricingModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTaxRateDetails = z.object({ +export const BillingBillResourceInvoicingTaxesTaxRateDetails: z.ZodType = z.object({ 'tax_rate': z.string() }); -export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTax = z.object({ +export const BillingBillResourceInvoicingTaxesTax: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive']), 'tax_rate_details': z.union([BillingBillResourceInvoicingTaxesTaxRateDetails]), @@ -7979,8 +16312,6 @@ export const BillingBillResourceInvoicingTaxesTax = z.object({ 'type': z.enum(['tax_rate_details']) }); -export type BillingBillResourceInvoicingTaxesTaxModel = z.infer; - export const LineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -8002,12 +16333,10 @@ export const LineItem: z.ZodType = z.object({ 'taxes': z.array(BillingBillResourceInvoicingTaxesTax) }); -export const BillingBillResourceInvoicingParentsInvoiceQuoteParent = z.object({ +export const BillingBillResourceInvoicingParentsInvoiceQuoteParent: z.ZodType = z.object({ 'quote': z.string() }); -export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = z.infer; - export const BillingBillResourceInvoicingParentsInvoiceSubscriptionParent: z.ZodType = z.object({ 'metadata': z.record(z.string(), z.string()), 'subscription': z.union([z.string(), z.lazy(() => Subscription)]), @@ -8020,92 +16349,66 @@ export const BillingBillResourceInvoicingParentsInvoiceParent: z.ZodType = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsAcssDebit = z.object({ +export const InvoicePaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': InvoicePaymentMethodOptionsAcssDebitMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsAcssDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsBancontact = z.object({ +export const InvoicePaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']) }); -export type InvoicePaymentMethodOptionsBancontactModel = z.infer; - -export const InvoiceInstallmentsCard = z.object({ +export const InvoiceInstallmentsCard: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type InvoiceInstallmentsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCard = z.object({ +export const InvoicePaymentMethodOptionsCard: z.ZodType = z.object({ 'installments': InvoiceInstallmentsCard.optional(), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type InvoicePaymentMethodOptionsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.optional(), 'type': z.string() }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalance = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']) }); -export type InvoicePaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const InvoicePaymentMethodOptionsKonbini = z.object({ +export const InvoicePaymentMethodOptionsKonbini: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsKonbiniModel = z.infer; - -export const InvoicePaymentMethodOptionsSepaDebit = z.object({ +export const InvoicePaymentMethodOptionsSepaDebit: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsSepaDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions: z.ZodType = z.object({ 'filters': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), 'prefetch': z.array(z.enum(['balances', 'ownership', 'transactions'])) }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccount = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountModel = z.infer; - -export const InvoicesPaymentMethodOptions = z.object({ +export const InvoicesPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]), 'card': z.union([InvoicePaymentMethodOptionsCard]), @@ -8115,41 +16418,31 @@ export const InvoicesPaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]) }); -export type InvoicesPaymentMethodOptionsModel = z.infer; - -export const InvoicesPaymentSettings = z.object({ +export const InvoicesPaymentSettings: z.ZodType = z.object({ 'default_mandate': z.string(), 'payment_method_options': z.union([InvoicesPaymentMethodOptions]), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay'])) }); -export type InvoicesPaymentSettingsModel = z.infer; - -export const DeletedInvoice = z.object({ +export const DeletedInvoice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoice']) }); -export type DeletedInvoiceModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAmount = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails: z.ZodType = z.object({ 'customer': z.string(), 'email': z.string(), 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -8158,62 +16451,46 @@ export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ 'state': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'email': z.string(), 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks: z.ZodType = z.object({ 'address_line1_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']), 'address_postal_code_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']), 'cvc_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']), 'result_reason': z.enum(['abandoned', 'bypassed', 'canceled', 'card_not_enrolled', 'network_not_supported', 'protocol_error', 'rejected']), 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay: z.ZodType = z.object({ 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay: z.ZodType = z.object({ }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet: z.ZodType = z.object({ 'apple_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay.optional(), 'dynamic_last4': z.string().optional(), 'google_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay.optional(), 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails: z.ZodType = z.object({ 'brand': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'capture_before': z.number().int().optional(), 'checks': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks]), @@ -8231,16 +16508,12 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = 'wallet': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet]) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails: z.ZodType = z.object({ 'display_name': z.string(), 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -8251,9 +16524,7 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountD 'routing_number': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), 'acss_debit': PaymentMethodDetailsAcssDebit.optional(), @@ -8316,30 +16587,22 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.ob 'zip': PaymentMethodDetailsZip.optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails: z.ZodType = z.object({ 'payment_reference': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails: z.ZodType = z.object({ 'custom': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails.optional(), 'type': z.enum(['custom']) }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = z.infer; - -export const PaymentRecord = z.object({ +export const PaymentRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -8362,24 +16625,18 @@ export const PaymentRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]) }); -export type PaymentRecordModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentAssociatedPayment = z.object({ +export const InvoicesPaymentsInvoicePaymentAssociatedPayment: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional(), 'payment_record': z.union([z.string(), PaymentRecord]).optional(), 'type': z.enum(['charge', 'payment_intent', 'payment_record']) }); -export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentStatusTransitions = z.object({ +export const InvoicesPaymentsInvoicePaymentStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'paid_at': z.number().int() }); -export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = z.infer; - export const InvoicePayment: z.ZodType = z.object({ 'amount_paid': z.number().int(), 'amount_requested': z.number().int(), @@ -8395,51 +16652,39 @@ export const InvoicePayment: z.ZodType = z.object({ 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitions }); -export const InvoiceRenderingPdf = z.object({ +export const InvoiceRenderingPdf: z.ZodType = z.object({ 'page_size': z.enum(['a4', 'auto', 'letter']) }); -export type InvoiceRenderingPdfModel = z.infer; - -export const InvoicesResourceInvoiceRendering = z.object({ +export const InvoicesResourceInvoiceRendering: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'pdf': z.union([InvoiceRenderingPdf]), 'template': z.string(), 'template_version': z.number().int() }); -export type InvoicesResourceInvoiceRenderingModel = z.infer; - -export const ShippingRateDeliveryEstimateBound = z.object({ +export const ShippingRateDeliveryEstimateBound: z.ZodType = z.object({ 'unit': z.enum(['business_day', 'day', 'hour', 'month', 'week']), 'value': z.number().int() }); -export type ShippingRateDeliveryEstimateBoundModel = z.infer; - -export const ShippingRateDeliveryEstimate = z.object({ +export const ShippingRateDeliveryEstimate: z.ZodType = z.object({ 'maximum': z.union([ShippingRateDeliveryEstimateBound]), 'minimum': z.union([ShippingRateDeliveryEstimateBound]) }); -export type ShippingRateDeliveryEstimateModel = z.infer; - -export const ShippingRateCurrencyOption = z.object({ +export const ShippingRateCurrencyOption: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']) }); -export type ShippingRateCurrencyOptionModel = z.infer; - -export const ShippingRateFixedAmount = z.object({ +export const ShippingRateFixedAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'currency_options': z.record(z.string(), ShippingRateCurrencyOption).optional() }); -export type ShippingRateFixedAmountModel = z.infer; - -export const ShippingRate = z.object({ +export const ShippingRate: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), 'delivery_estimate': z.union([ShippingRateDeliveryEstimate]), @@ -8454,18 +16699,14 @@ export const ShippingRate = z.object({ 'type': z.enum(['fixed_amount']) }); -export type ShippingRateModel = z.infer; - -export const LineItemsTaxAmount = z.object({ +export const LineItemsTaxAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'rate': TaxRate, 'taxability_reason': z.enum(['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']), 'taxable_amount': z.number().int() }); -export type LineItemsTaxAmountModel = z.infer; - -export const InvoicesResourceShippingCost = z.object({ +export const InvoicesResourceShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -8473,31 +16714,23 @@ export const InvoicesResourceShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type InvoicesResourceShippingCostModel = z.infer; - -export const InvoicesResourceStatusTransitions = z.object({ +export const InvoicesResourceStatusTransitions: z.ZodType = z.object({ 'finalized_at': z.number().int(), 'marked_uncollectible_at': z.number().int(), 'paid_at': z.number().int(), 'voided_at': z.number().int() }); -export type InvoicesResourceStatusTransitionsModel = z.infer; - -export const InvoiceItemThresholdReason = z.object({ +export const InvoiceItemThresholdReason: z.ZodType = z.object({ 'line_item_ids': z.array(z.string()), 'usage_gte': z.number().int() }); -export type InvoiceItemThresholdReasonModel = z.infer; - -export const InvoiceThresholdReason = z.object({ +export const InvoiceThresholdReason: z.ZodType = z.object({ 'amount_gte': z.number().int(), 'item_reasons': z.array(InvoiceItemThresholdReason) }); -export type InvoiceThresholdReasonModel = z.infer; - export const Invoice: z.ZodType = z.object({ 'account_country': z.string(), 'account_name': z.string(), @@ -8588,30 +16821,24 @@ export const Invoice: z.ZodType = z.object({ 'webhooks_delivered_at': z.number().int() }); -export const SubscriptionsResourcePauseCollection = z.object({ +export const SubscriptionsResourcePauseCollection: z.ZodType = z.object({ 'behavior': z.enum(['keep_as_draft', 'mark_uncollectible', 'void']), 'resumes_at': z.number().int() }); -export type SubscriptionsResourcePauseCollectionModel = z.infer; - -export const InvoiceMandateOptionsCard = z.object({ +export const InvoiceMandateOptionsCard: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string() }); -export type InvoiceMandateOptionsCardModel = z.infer; - -export const SubscriptionPaymentMethodOptionsCard = z.object({ +export const SubscriptionPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': InvoiceMandateOptionsCard.optional(), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type SubscriptionPaymentMethodOptionsCardModel = z.infer; - -export const SubscriptionsResourcePaymentMethodOptions = z.object({ +export const SubscriptionsResourcePaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]), 'card': z.union([SubscriptionPaymentMethodOptionsCard]), @@ -8621,24 +16848,18 @@ export const SubscriptionsResourcePaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]) }); -export type SubscriptionsResourcePaymentMethodOptionsModel = z.infer; - -export const SubscriptionsResourcePaymentSettings = z.object({ +export const SubscriptionsResourcePaymentSettings: z.ZodType = z.object({ 'payment_method_options': z.union([SubscriptionsResourcePaymentMethodOptions]), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay'])), 'save_default_payment_method': z.enum(['off', 'on_subscription']) }); -export type SubscriptionsResourcePaymentSettingsModel = z.infer; - -export const SubscriptionPendingInvoiceItemInterval = z.object({ +export const SubscriptionPendingInvoiceItemInterval: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int() }); -export type SubscriptionPendingInvoiceItemIntervalModel = z.infer; - -export const SubscriptionsResourcePendingUpdate = z.object({ +export const SubscriptionsResourcePendingUpdate: z.ZodType = z.object({ 'billing_cycle_anchor': z.number().int(), 'expires_at': z.number().int(), 'subscription_items': z.array(z.lazy(() => SubscriptionItem)), @@ -8646,31 +16867,23 @@ export const SubscriptionsResourcePendingUpdate = z.object({ 'trial_from_plan': z.boolean() }); -export type SubscriptionsResourcePendingUpdateModel = z.infer; - -export const SubscriptionScheduleCurrentPhase = z.object({ +export const SubscriptionScheduleCurrentPhase: z.ZodType = z.object({ 'end_date': z.number().int(), 'start_date': z.number().int() }); -export type SubscriptionScheduleCurrentPhaseModel = z.infer; - -export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax = z.object({ +export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionScheduleSetting = z.object({ +export const InvoiceSettingSubscriptionScheduleSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'days_until_due': z.number().int(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingSubscriptionScheduleSettingModel = z.infer; - export const SubscriptionTransferData: z.ZodType = z.object({ 'amount_percent': z.number(), 'destination': z.union([z.string(), z.lazy(() => Account)]) @@ -8689,44 +16902,34 @@ export const SubscriptionSchedulesResourceDefaultSettings: z.ZodType SubscriptionTransferData)]) }); -export const DiscountsResourceStackableDiscount = z.object({ +export const DiscountsResourceStackableDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'discount': z.union([z.string(), z.lazy(() => Discount)]), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]) }); -export type DiscountsResourceStackableDiscountModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['min_item_period_end', 'phase_end', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['max_item_period_start', 'phase_start', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItemPeriod = z.object({ +export const SubscriptionScheduleAddInvoiceItemPeriod: z.ZodType = z.object({ 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd, 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart }); -export type SubscriptionScheduleAddInvoiceItemPeriodModel = z.infer; - -export const DeletedPrice = z.object({ +export const DeletedPrice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['price']) }); -export type DeletedPriceModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItem = z.object({ +export const SubscriptionScheduleAddInvoiceItem: z.ZodType = z.object({ 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()), 'period': SubscriptionScheduleAddInvoiceItemPeriod, @@ -8735,33 +16938,25 @@ export const SubscriptionScheduleAddInvoiceItem = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export type SubscriptionScheduleAddInvoiceItemModel = z.infer; - -export const SchedulesPhaseAutomaticTax = z.object({ +export const SchedulesPhaseAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type SchedulesPhaseAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionSchedulePhaseSetting = z.object({ +export const InvoiceSettingSubscriptionSchedulePhaseSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'days_until_due': z.number().int(), 'issuer': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = z.infer; - -export const DeletedPlan = z.object({ +export const DeletedPlan: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['plan']) }); -export type DeletedPlanModel = z.infer; - -export const SubscriptionScheduleConfigurationItem = z.object({ +export const SubscriptionScheduleConfigurationItem: z.ZodType = z.object({ 'billing_thresholds': z.union([SubscriptionItemBillingThresholds]), 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()), @@ -8771,8 +16966,6 @@ export const SubscriptionScheduleConfigurationItem = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export type SubscriptionScheduleConfigurationItemModel = z.infer; - export const SubscriptionSchedulePhaseConfiguration: z.ZodType = z.object({ 'add_invoice_items': z.array(SubscriptionScheduleAddInvoiceItem), 'application_fee_percent': z.number(), @@ -8818,18 +17011,14 @@ export const SubscriptionSchedule: z.ZodType = z.obje 'test_clock': z.union([z.string(), TestHelpersTestClock]) }); -export const SubscriptionsTrialsResourceEndBehavior = z.object({ +export const SubscriptionsTrialsResourceEndBehavior: z.ZodType = z.object({ 'missing_payment_method': z.enum(['cancel', 'create_invoice', 'pause']) }); -export type SubscriptionsTrialsResourceEndBehaviorModel = z.infer; - -export const SubscriptionsTrialsResourceTrialSettings = z.object({ +export const SubscriptionsTrialsResourceTrialSettings: z.ZodType = z.object({ 'end_behavior': SubscriptionsTrialsResourceEndBehavior }); -export type SubscriptionsTrialsResourceTrialSettingsModel = z.infer; - export const Subscription: z.ZodType = z.object({ 'application': z.union([z.string(), Application, DeletedApplication]), 'application_fee_percent': z.number(), @@ -8882,23 +17071,19 @@ export const Subscription: z.ZodType = z.object({ 'trial_start': z.number().int() }); -export const CustomerTaxLocation = z.object({ +export const CustomerTaxLocation: z.ZodType = z.object({ 'country': z.string(), 'source': z.enum(['billing_address', 'ip_address', 'payment_method', 'shipping_destination']), 'state': z.string() }); -export type CustomerTaxLocationModel = z.infer; - -export const CustomerTax = z.object({ +export const CustomerTax: z.ZodType = z.object({ 'automatic_tax': z.enum(['failed', 'not_collecting', 'supported', 'unrecognized_location']), 'ip_address': z.string(), 'location': z.union([CustomerTaxLocation]), 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']) }); -export type CustomerTaxModel = z.infer; - export const Customer: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'balance': z.number().int().optional(), @@ -8947,23 +17132,19 @@ export const Customer: z.ZodType = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]).optional() }); -export const AccountRequirementsError = z.object({ +export const AccountRequirementsError: z.ZodType = z.object({ 'code': z.enum(['external_request', 'information_missing', 'invalid_address_city_state_postal_code', 'invalid_address_highway_contract_box', 'invalid_address_private_mailbox', 'invalid_business_profile_name', 'invalid_business_profile_name_denylisted', 'invalid_company_name_denylisted', 'invalid_dob_age_over_maximum', 'invalid_dob_age_under_18', 'invalid_dob_age_under_minimum', 'invalid_product_description_length', 'invalid_product_description_url_match', 'invalid_representative_country', 'invalid_signator', 'invalid_statement_descriptor_business_mismatch', 'invalid_statement_descriptor_denylisted', 'invalid_statement_descriptor_length', 'invalid_statement_descriptor_prefix_denylisted', 'invalid_statement_descriptor_prefix_mismatch', 'invalid_street_address', 'invalid_tax_id', 'invalid_tax_id_format', 'invalid_tos_acceptance', 'invalid_url_denylisted', 'invalid_url_format', 'invalid_url_length', 'invalid_url_web_presence_detected', 'invalid_url_website_business_information_mismatch', 'invalid_url_website_empty', 'invalid_url_website_inaccessible', 'invalid_url_website_inaccessible_geoblocked', 'invalid_url_website_inaccessible_password_protected', 'invalid_url_website_incomplete', 'invalid_url_website_incomplete_cancellation_policy', 'invalid_url_website_incomplete_customer_service_details', 'invalid_url_website_incomplete_legal_restrictions', 'invalid_url_website_incomplete_refund_policy', 'invalid_url_website_incomplete_return_policy', 'invalid_url_website_incomplete_terms_and_conditions', 'invalid_url_website_incomplete_under_construction', 'invalid_url_website_other', 'invalid_value_other', 'unsupported_business_type', 'verification_directors_mismatch', 'verification_document_address_mismatch', 'verification_document_address_missing', 'verification_document_corrupt', 'verification_document_country_not_supported', 'verification_document_directors_mismatch', 'verification_document_dob_mismatch', 'verification_document_duplicate_type', 'verification_document_expired', 'verification_document_failed_copy', 'verification_document_failed_greyscale', 'verification_document_failed_other', 'verification_document_failed_test_mode', 'verification_document_fraudulent', 'verification_document_id_number_mismatch', 'verification_document_id_number_missing', 'verification_document_incomplete', 'verification_document_invalid', 'verification_document_issue_or_expiry_date_missing', 'verification_document_manipulated', 'verification_document_missing_back', 'verification_document_missing_front', 'verification_document_name_mismatch', 'verification_document_name_missing', 'verification_document_nationality_mismatch', 'verification_document_not_readable', 'verification_document_not_signed', 'verification_document_not_uploaded', 'verification_document_photo_mismatch', 'verification_document_too_large', 'verification_document_type_not_supported', 'verification_extraneous_directors', 'verification_failed_address_match', 'verification_failed_authorizer_authority', 'verification_failed_business_iec_number', 'verification_failed_document_match', 'verification_failed_id_number_match', 'verification_failed_keyed_identity', 'verification_failed_keyed_match', 'verification_failed_name_match', 'verification_failed_other', 'verification_failed_representative_authority', 'verification_failed_residential_address', 'verification_failed_tax_id_match', 'verification_failed_tax_id_not_issued', 'verification_legal_entity_structure_mismatch', 'verification_missing_directors', 'verification_missing_executives', 'verification_missing_owners', 'verification_rejected_ownership_exemption_reason', 'verification_requires_additional_memorandum_of_associations', 'verification_requires_additional_proof_of_registration', 'verification_supportability']), 'reason': z.string(), 'requirement': z.string() }); -export type AccountRequirementsErrorModel = z.infer; - -export const ExternalAccountRequirements = z.object({ +export const ExternalAccountRequirements: z.ZodType = z.object({ 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), 'past_due': z.array(z.string()), 'pending_verification': z.array(z.string()) }); -export type ExternalAccountRequirementsModel = z.infer; - export const BankAccount: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'account_holder_name': z.string(), @@ -8988,14 +17169,12 @@ export const BankAccount: z.ZodType = z.object({ export const ExternalAccount: z.ZodType = z.union([z.lazy(() => BankAccount), z.lazy(() => Card)]); -export const AccountRequirementsAlternative = z.object({ +export const AccountRequirementsAlternative: z.ZodType = z.object({ 'alternative_fields_due': z.array(z.string()), 'original_fields_due': z.array(z.string()) }); -export type AccountRequirementsAlternativeModel = z.infer; - -export const AccountFutureRequirements = z.object({ +export const AccountFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -9006,37 +17185,27 @@ export const AccountFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountFutureRequirementsModel = z.infer; - -export const AccountGroupMembership = z.object({ +export const AccountGroupMembership: z.ZodType = z.object({ 'payments_pricing': z.string() }); -export type AccountGroupMembershipModel = z.infer; - -export const PersonAdditionalTosAcceptance = z.object({ +export const PersonAdditionalTosAcceptance: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type PersonAdditionalTosAcceptanceModel = z.infer; - -export const PersonAdditionalTosAcceptances = z.object({ +export const PersonAdditionalTosAcceptances: z.ZodType = z.object({ 'account': z.union([PersonAdditionalTosAcceptance]) }); -export type PersonAdditionalTosAcceptancesModel = z.infer; - -export const LegalEntityDob = z.object({ +export const LegalEntityDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type LegalEntityDobModel = z.infer; - -export const PersonFutureRequirements = z.object({ +export const PersonFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -9045,9 +17214,7 @@ export const PersonFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonFutureRequirementsModel = z.infer; - -export const PersonRelationship = z.object({ +export const PersonRelationship: z.ZodType = z.object({ 'authorizer': z.boolean(), 'director': z.boolean(), 'executive': z.boolean(), @@ -9058,9 +17225,7 @@ export const PersonRelationship = z.object({ 'title': z.string() }); -export type PersonRelationshipModel = z.infer; - -export const PersonRequirements = z.object({ +export const PersonRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -9069,40 +17234,30 @@ export const PersonRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonRequirementsModel = z.infer; - -export const PersonEthnicityDetails = z.object({ +export const PersonEthnicityDetails: z.ZodType = z.object({ 'ethnicity': z.array(z.enum(['cuban', 'hispanic_or_latino', 'mexican', 'not_hispanic_or_latino', 'other_hispanic_or_latino', 'prefer_not_to_answer', 'puerto_rican'])), 'ethnicity_other': z.string() }); -export type PersonEthnicityDetailsModel = z.infer; - -export const PersonRaceDetails = z.object({ +export const PersonRaceDetails: z.ZodType = z.object({ 'race': z.array(z.enum(['african_american', 'american_indian_or_alaska_native', 'asian', 'asian_indian', 'black_or_african_american', 'chinese', 'ethiopian', 'filipino', 'guamanian_or_chamorro', 'haitian', 'jamaican', 'japanese', 'korean', 'native_hawaiian', 'native_hawaiian_or_other_pacific_islander', 'nigerian', 'other_asian', 'other_black_or_african_american', 'other_pacific_islander', 'prefer_not_to_answer', 'samoan', 'somali', 'vietnamese', 'white'])), 'race_other': z.string() }); -export type PersonRaceDetailsModel = z.infer; - -export const PersonUsCfpbData = z.object({ +export const PersonUsCfpbData: z.ZodType = z.object({ 'ethnicity_details': z.union([PersonEthnicityDetails]), 'race_details': z.union([PersonRaceDetails]), 'self_identified_gender': z.string() }); -export type PersonUsCfpbDataModel = z.infer; - -export const LegalEntityPersonVerificationDocument = z.object({ +export const LegalEntityPersonVerificationDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]), 'details': z.string(), 'details_code': z.string(), 'front': z.union([z.string(), z.lazy(() => File)]) }); -export type LegalEntityPersonVerificationDocumentModel = z.infer; - -export const LegalEntityPersonVerification = z.object({ +export const LegalEntityPersonVerification: z.ZodType = z.object({ 'additional_document': z.union([LegalEntityPersonVerificationDocument]).optional(), 'details': z.string().optional(), 'details_code': z.string().optional(), @@ -9110,9 +17265,7 @@ export const LegalEntityPersonVerification = z.object({ 'status': z.string() }); -export type LegalEntityPersonVerificationModel = z.infer; - -export const Person = z.object({ +export const Person: z.ZodType = z.object({ 'account': z.string().optional(), 'additional_tos_acceptances': PersonAdditionalTosAcceptances.optional(), 'address': Address.optional(), @@ -9147,9 +17300,7 @@ export const Person = z.object({ 'verification': LegalEntityPersonVerification.optional() }); -export type PersonModel = z.infer; - -export const AccountRequirements = z.object({ +export const AccountRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -9160,69 +17311,51 @@ export const AccountRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountRequirementsModel = z.infer; - -export const AccountBacsDebitPaymentsSettings = z.object({ +export const AccountBacsDebitPaymentsSettings: z.ZodType = z.object({ 'display_name': z.string(), 'service_user_number': z.string() }); -export type AccountBacsDebitPaymentsSettingsModel = z.infer; - -export const AccountBrandingSettings = z.object({ +export const AccountBrandingSettings: z.ZodType = z.object({ 'icon': z.union([z.string(), z.lazy(() => File)]), 'logo': z.union([z.string(), z.lazy(() => File)]), 'primary_color': z.string(), 'secondary_color': z.string() }); -export type AccountBrandingSettingsModel = z.infer; - -export const CardIssuingAccountTermsOfService = z.object({ +export const CardIssuingAccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string().optional() }); -export type CardIssuingAccountTermsOfServiceModel = z.infer; - -export const AccountCardIssuingSettings = z.object({ +export const AccountCardIssuingSettings: z.ZodType = z.object({ 'tos_acceptance': CardIssuingAccountTermsOfService.optional() }); -export type AccountCardIssuingSettingsModel = z.infer; - -export const AccountDeclineChargeOn = z.object({ +export const AccountDeclineChargeOn: z.ZodType = z.object({ 'avs_failure': z.boolean(), 'cvc_failure': z.boolean() }); -export type AccountDeclineChargeOnModel = z.infer; - -export const AccountCardPaymentsSettings = z.object({ +export const AccountCardPaymentsSettings: z.ZodType = z.object({ 'decline_on': AccountDeclineChargeOn.optional(), 'statement_descriptor_prefix': z.string(), 'statement_descriptor_prefix_kana': z.string(), 'statement_descriptor_prefix_kanji': z.string() }); -export type AccountCardPaymentsSettingsModel = z.infer; - -export const AccountDashboardSettings = z.object({ +export const AccountDashboardSettings: z.ZodType = z.object({ 'display_name': z.string(), 'timezone': z.string() }); -export type AccountDashboardSettingsModel = z.infer; - -export const AccountInvoicesSettings = z.object({ +export const AccountInvoicesSettings: z.ZodType = z.object({ 'default_account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId)])), 'hosted_payment_method_save': z.enum(['always', 'never', 'offer']) }); -export type AccountInvoicesSettingsModel = z.infer; - -export const AccountPaymentsSettings = z.object({ +export const AccountPaymentsSettings: z.ZodType = z.object({ 'statement_descriptor': z.string(), 'statement_descriptor_kana': z.string(), 'statement_descriptor_kanji': z.string(), @@ -9230,9 +17363,7 @@ export const AccountPaymentsSettings = z.object({ 'statement_descriptor_prefix_kanji': z.string() }); -export type AccountPaymentsSettingsModel = z.infer; - -export const TransferSchedule = z.object({ +export const TransferSchedule: z.ZodType = z.object({ 'delay_days': z.number().int(), 'interval': z.string(), 'monthly_anchor': z.number().int().optional(), @@ -9241,37 +17372,27 @@ export const TransferSchedule = z.object({ 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type TransferScheduleModel = z.infer; - -export const AccountPayoutSettings = z.object({ +export const AccountPayoutSettings: z.ZodType = z.object({ 'debit_negative_balances': z.boolean(), 'schedule': TransferSchedule, 'statement_descriptor': z.string() }); -export type AccountPayoutSettingsModel = z.infer; - -export const AccountSepaDebitPaymentsSettings = z.object({ +export const AccountSepaDebitPaymentsSettings: z.ZodType = z.object({ 'creditor_id': z.string().optional() }); -export type AccountSepaDebitPaymentsSettingsModel = z.infer; - -export const AccountTermsOfService = z.object({ +export const AccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string().optional() }); -export type AccountTermsOfServiceModel = z.infer; - -export const AccountTreasurySettings = z.object({ +export const AccountTreasurySettings: z.ZodType = z.object({ 'tos_acceptance': AccountTermsOfService.optional() }); -export type AccountTreasurySettingsModel = z.infer; - -export const AccountSettings = z.object({ +export const AccountSettings: z.ZodType = z.object({ 'bacs_debit_payments': AccountBacsDebitPaymentsSettings.optional(), 'branding': AccountBrandingSettings, 'card_issuing': AccountCardIssuingSettings.optional(), @@ -9284,17 +17405,13 @@ export const AccountSettings = z.object({ 'treasury': AccountTreasurySettings.optional() }); -export type AccountSettingsModel = z.infer; - -export const AccountTosAcceptance = z.object({ +export const AccountTosAcceptance: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'service_agreement': z.string().optional(), 'user_agent': z.string().optional() }); -export type AccountTosAcceptanceModel = z.infer; - export const Account: z.ZodType = z.object({ 'business_profile': z.union([AccountBusinessProfile]).optional(), 'business_type': z.enum(['company', 'government_entity', 'individual', 'non_profit']).optional(), @@ -9326,43 +17443,31 @@ export const Account: z.ZodType = z.object({ 'type': z.enum(['custom', 'express', 'none', 'standard']).optional() }); -export const AccountApplicationAuthorized = z.object({ +export const AccountApplicationAuthorized: z.ZodType = z.object({ 'object': Application }); -export type AccountApplicationAuthorizedModel = z.infer; - -export const AccountApplicationDeauthorized = z.object({ +export const AccountApplicationDeauthorized: z.ZodType = z.object({ 'object': Application }); -export type AccountApplicationDeauthorizedModel = z.infer; - -export const AccountExternalAccountCreated = z.object({ +export const AccountExternalAccountCreated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountCreatedModel = z.infer; - -export const AccountExternalAccountDeleted = z.object({ +export const AccountExternalAccountDeleted: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountDeletedModel = z.infer; - -export const AccountExternalAccountUpdated = z.object({ +export const AccountExternalAccountUpdated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountUpdatedModel = z.infer; - -export const AccountUpdated = z.object({ +export const AccountUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Account) }); -export type AccountUpdatedModel = z.infer; - -export const AccountCapabilityFutureRequirements = z.object({ +export const AccountCapabilityFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -9373,9 +17478,7 @@ export const AccountCapabilityFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityFutureRequirementsModel = z.infer; - -export const AccountCapabilityRequirements = z.object({ +export const AccountCapabilityRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -9386,32 +17489,24 @@ export const AccountCapabilityRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityRequirementsModel = z.infer; - -export const AccountLink = z.object({ +export const AccountLink: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int(), 'object': z.enum(['account_link']), 'url': z.string() }); -export type AccountLinkModel = z.infer; - -export const ConnectEmbeddedAccountFeaturesClaim = z.object({ +export const ConnectEmbeddedAccountFeaturesClaim: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean() }); -export type ConnectEmbeddedAccountFeaturesClaimModel = z.infer; - -export const ConnectEmbeddedAccountConfigClaim = z.object({ +export const ConnectEmbeddedAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedAccountFeaturesClaim }); -export type ConnectEmbeddedAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedPayoutsFeatures = z.object({ +export const ConnectEmbeddedPayoutsFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'edit_payout_schedule': z.boolean(), 'external_account_collection': z.boolean(), @@ -9419,105 +17514,77 @@ export const ConnectEmbeddedPayoutsFeatures = z.object({ 'standard_payouts': z.boolean() }); -export type ConnectEmbeddedPayoutsFeaturesModel = z.infer; - -export const ConnectEmbeddedPayoutsConfig = z.object({ +export const ConnectEmbeddedPayoutsConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPayoutsFeatures }); -export type ConnectEmbeddedPayoutsConfigModel = z.infer; - -export const ConnectEmbeddedDisputesListFeatures = z.object({ +export const ConnectEmbeddedDisputesListFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedDisputesListFeaturesModel = z.infer; - -export const ConnectEmbeddedDisputesListConfig = z.object({ +export const ConnectEmbeddedDisputesListConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedDisputesListFeatures }); -export type ConnectEmbeddedDisputesListConfigModel = z.infer; - -export const ConnectEmbeddedBaseFeatures = z.object({ +export const ConnectEmbeddedBaseFeatures: z.ZodType = z.object({ }); -export type ConnectEmbeddedBaseFeaturesModel = z.infer; - -export const ConnectEmbeddedBaseConfigClaim = z.object({ +export const ConnectEmbeddedBaseConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedBaseFeatures }); -export type ConnectEmbeddedBaseConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'send_money': z.boolean(), 'transfer_balance': z.boolean() }); -export type ConnectEmbeddedFinancialAccountFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountFeatures }); -export type ConnectEmbeddedFinancialAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsFeatures: z.ZodType = z.object({ 'card_spend_dispute_management': z.boolean() }); -export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountTransactionsFeatures }); -export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionFeatures = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'instant_payouts': z.boolean() }); -export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionConfig = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedInstantPayoutsPromotionFeatures }); -export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = z.infer; - -export const ConnectEmbeddedIssuingCardFeatures = z.object({ +export const ConnectEmbeddedIssuingCardFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardFeatures }); -export type ConnectEmbeddedIssuingCardConfigClaimModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ +export const ConnectEmbeddedIssuingCardsListFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), @@ -9525,47 +17592,35 @@ export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardsListFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardsListConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardsListFeatures }); -export type ConnectEmbeddedIssuingCardsListConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentsFeatures = z.object({ +export const ConnectEmbeddedPaymentsFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentsFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentsConfigClaim = z.object({ +export const ConnectEmbeddedPaymentsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentsFeatures }); -export type ConnectEmbeddedPaymentsConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesFeatures = z.object({ +export const ConnectEmbeddedPaymentDisputesFeatures: z.ZodType = z.object({ 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentDisputesFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesConfig = z.object({ +export const ConnectEmbeddedPaymentDisputesConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentDisputesFeatures }); -export type ConnectEmbeddedPaymentDisputesConfigModel = z.infer; - -export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ +export const ConnectEmbeddedAccountSessionCreateComponents: z.ZodType = z.object({ 'account_management': ConnectEmbeddedAccountConfigClaim, 'account_onboarding': ConnectEmbeddedAccountConfigClaim, 'balances': ConnectEmbeddedPayoutsConfig, @@ -9587,9 +17642,7 @@ export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ 'tax_settings': ConnectEmbeddedBaseConfigClaim }); -export type ConnectEmbeddedAccountSessionCreateComponentsModel = z.infer; - -export const AccountSession = z.object({ +export const AccountSession: z.ZodType = z.object({ 'account': z.string(), 'client_secret': z.string(), 'components': ConnectEmbeddedAccountSessionCreateComponents, @@ -9598,9 +17651,7 @@ export const AccountSession = z.object({ 'object': z.enum(['account_session']) }); -export type AccountSessionModel = z.infer; - -export const ApplePayDomain = z.object({ +export const ApplePayDomain: z.ZodType = z.object({ 'created': z.number().int(), 'domain_name': z.string(), 'id': z.string(), @@ -9608,34 +17659,24 @@ export const ApplePayDomain = z.object({ 'object': z.enum(['apple_pay_domain']) }); -export type ApplePayDomainModel = z.infer; - -export const ApplicationFeeCreated = z.object({ +export const ApplicationFeeCreated: z.ZodType = z.object({ 'object': z.lazy(() => ApplicationFee) }); -export type ApplicationFeeCreatedModel = z.infer; - -export const ApplicationFeeRefundUpdated = z.object({ +export const ApplicationFeeRefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => FeeRefund) }); -export type ApplicationFeeRefundUpdatedModel = z.infer; - -export const ApplicationFeeRefunded = z.object({ +export const ApplicationFeeRefunded: z.ZodType = z.object({ 'object': z.lazy(() => ApplicationFee) }); -export type ApplicationFeeRefundedModel = z.infer; - -export const SecretServiceResourceScope = z.object({ +export const SecretServiceResourceScope: z.ZodType = z.object({ 'type': z.enum(['account', 'user']), 'user': z.string().optional() }); -export type SecretServiceResourceScopeModel = z.infer; - -export const AppsSecret = z.object({ +export const AppsSecret: z.ZodType = z.object({ 'created': z.number().int(), 'deleted': z.boolean().optional(), 'expires_at': z.number().int(), @@ -9647,55 +17688,41 @@ export const AppsSecret = z.object({ 'scope': SecretServiceResourceScope }); -export type AppsSecretModel = z.infer; - -export const BalanceAmountBySourceType = z.object({ +export const BalanceAmountBySourceType: z.ZodType = z.object({ 'bank_account': z.number().int().optional(), 'card': z.number().int().optional(), 'fpx': z.number().int().optional() }); -export type BalanceAmountBySourceTypeModel = z.infer; - -export const BalanceAmount = z.object({ +export const BalanceAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountModel = z.infer; - -export const BalanceNetAvailable = z.object({ +export const BalanceNetAvailable: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceNetAvailableModel = z.infer; - -export const BalanceAmountNet = z.object({ +export const BalanceAmountNet: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'net_available': z.array(BalanceNetAvailable).optional(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountNetModel = z.infer; - -export const BalanceDetail = z.object({ +export const BalanceDetail: z.ZodType = z.object({ 'available': z.array(BalanceAmount) }); -export type BalanceDetailModel = z.infer; - -export const BalanceDetailUngated = z.object({ +export const BalanceDetailUngated: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'pending': z.array(BalanceAmount) }); -export type BalanceDetailUngatedModel = z.infer; - -export const Balance = z.object({ +export const Balance: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'connect_reserved': z.array(BalanceAmount).optional(), 'instant_available': z.array(BalanceAmountNet).optional(), @@ -9706,89 +17733,65 @@ export const Balance = z.object({ 'refund_and_dispute_prefunding': BalanceDetailUngated.optional() }); -export type BalanceModel = z.infer; - -export const BalanceAvailable = z.object({ +export const BalanceAvailable: z.ZodType = z.object({ 'object': Balance }); -export type BalanceAvailableModel = z.infer; - -export const BalanceSettingsResourcePayoutSchedule = z.object({ +export const BalanceSettingsResourcePayoutSchedule: z.ZodType = z.object({ 'interval': z.enum(['daily', 'manual', 'monthly', 'weekly']), 'monthly_payout_days': z.array(z.number().int()).optional(), 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type BalanceSettingsResourcePayoutScheduleModel = z.infer; - -export const BalanceSettingsResourcePayouts = z.object({ +export const BalanceSettingsResourcePayouts: z.ZodType = z.object({ 'minimum_balance_by_currency': z.record(z.string(), z.number().int()), 'schedule': z.union([BalanceSettingsResourcePayoutSchedule]), 'statement_descriptor': z.string(), 'status': z.enum(['disabled', 'enabled']) }); -export type BalanceSettingsResourcePayoutsModel = z.infer; - -export const BalanceSettingsResourceSettlementTiming = z.object({ +export const BalanceSettingsResourceSettlementTiming: z.ZodType = z.object({ 'delay_days': z.number().int(), 'delay_days_override': z.number().int().optional() }); -export type BalanceSettingsResourceSettlementTimingModel = z.infer; - -export const BalanceSettingsResourcePayments = z.object({ +export const BalanceSettingsResourcePayments: z.ZodType = z.object({ 'debit_negative_balances': z.boolean(), 'payouts': z.union([BalanceSettingsResourcePayouts]), 'settlement_timing': BalanceSettingsResourceSettlementTiming }); -export type BalanceSettingsResourcePaymentsModel = z.infer; - -export const BalanceSettings = z.object({ +export const BalanceSettings: z.ZodType = z.object({ 'object': z.enum(['balance_settings']), 'payments': BalanceSettingsResourcePayments }); -export type BalanceSettingsModel = z.infer; - -export const BalanceSettingsUpdated = z.object({ +export const BalanceSettingsUpdated: z.ZodType = z.object({ 'object': BalanceSettings }); -export type BalanceSettingsUpdatedModel = z.infer; - -export const BankConnectionsResourceAccountNumberDetails = z.object({ +export const BankConnectionsResourceAccountNumberDetails: z.ZodType = z.object({ 'expected_expiry_date': z.number().int(), 'identifier_type': z.enum(['account_number', 'tokenized_account_number']), 'status': z.enum(['deactivated', 'transactable']), 'supported_networks': z.array(z.enum(['ach'])) }); -export type BankConnectionsResourceAccountNumberDetailsModel = z.infer; - -export const BankConnectionsResourceAccountholder = z.object({ +export const BankConnectionsResourceAccountholder: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'customer': z.union([z.string(), z.lazy(() => Customer)]).optional(), 'type': z.enum(['account', 'customer']) }); -export type BankConnectionsResourceAccountholderModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCashBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()) }); -export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCreditBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCreditBalance: z.ZodType = z.object({ 'used': z.record(z.string(), z.number().int()) }); -export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = z.infer; - -export const BankConnectionsResourceBalance = z.object({ +export const BankConnectionsResourceBalance: z.ZodType = z.object({ 'as_of': z.number().int(), 'cash': BankConnectionsResourceBalanceApiResourceCashBalance.optional(), 'credit': BankConnectionsResourceBalanceApiResourceCreditBalance.optional(), @@ -9796,80 +17799,58 @@ export const BankConnectionsResourceBalance = z.object({ 'type': z.enum(['cash', 'credit']) }); -export type BankConnectionsResourceBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceRefresh = z.object({ +export const BankConnectionsResourceBalanceRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceBalanceRefreshModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionFilters = z.object({ +export const BankConnectionsResourceLinkAccountSessionFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'credit_card', 'line_of_credit', 'mortgage', 'savings'])), 'countries': z.array(z.string()) }); -export type BankConnectionsResourceLinkAccountSessionFiltersModel = z.infer; - -export const BankConnectionsResourceOwnershipRefresh = z.object({ +export const BankConnectionsResourceOwnershipRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceOwnershipRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionRefresh = z.object({ +export const BankConnectionsResourceTransactionRefresh: z.ZodType = z.object({ 'id': z.string(), 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceTransactionRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionResourceStatusTransitions = z.object({ +export const BankConnectionsResourceTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int(), 'void_at': z.number().int() }); -export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = z.infer; - -export const ThresholdsResourceUsageAlertFilter = z.object({ +export const ThresholdsResourceUsageAlertFilter: z.ZodType = z.object({ 'customer': z.union([z.string(), z.lazy(() => Customer)]), 'type': z.enum(['customer']) }); -export type ThresholdsResourceUsageAlertFilterModel = z.infer; - -export const BillingMeterResourceCustomerMappingSettings = z.object({ +export const BillingMeterResourceCustomerMappingSettings: z.ZodType = z.object({ 'event_payload_key': z.string(), 'type': z.enum(['by_id']) }); -export type BillingMeterResourceCustomerMappingSettingsModel = z.infer; - -export const BillingMeterResourceAggregationSettings = z.object({ +export const BillingMeterResourceAggregationSettings: z.ZodType = z.object({ 'formula': z.enum(['count', 'last', 'sum']) }); -export type BillingMeterResourceAggregationSettingsModel = z.infer; - -export const BillingMeterResourceBillingMeterStatusTransitions = z.object({ +export const BillingMeterResourceBillingMeterStatusTransitions: z.ZodType = z.object({ 'deactivated_at': z.number().int() }); -export type BillingMeterResourceBillingMeterStatusTransitionsModel = z.infer; - -export const BillingMeterResourceBillingMeterValue = z.object({ +export const BillingMeterResourceBillingMeterValue: z.ZodType = z.object({ 'event_payload_key': z.string() }); -export type BillingMeterResourceBillingMeterValueModel = z.infer; - -export const BillingMeter = z.object({ +export const BillingMeter: z.ZodType = z.object({ 'created': z.number().int(), 'customer_mapping': BillingMeterResourceCustomerMappingSettings, 'default_aggregation': BillingMeterResourceAggregationSettings, @@ -9885,18 +17866,14 @@ export const BillingMeter = z.object({ 'value_settings': BillingMeterResourceBillingMeterValue }); -export type BillingMeterModel = z.infer; - -export const ThresholdsResourceUsageThresholdConfig = z.object({ +export const ThresholdsResourceUsageThresholdConfig: z.ZodType = z.object({ 'filters': z.array(ThresholdsResourceUsageAlertFilter), 'gte': z.number().int(), 'meter': z.union([z.string(), BillingMeter]), 'recurrence': z.enum(['one_time']) }); -export type ThresholdsResourceUsageThresholdConfigModel = z.infer; - -export const BillingAlert = z.object({ +export const BillingAlert: z.ZodType = z.object({ 'alert_type': z.enum(['usage_threshold']), 'id': z.string(), 'livemode': z.boolean(), @@ -9906,9 +17883,7 @@ export const BillingAlert = z.object({ 'usage_threshold': z.union([ThresholdsResourceUsageThresholdConfig]) }); -export type BillingAlertModel = z.infer; - -export const BillingAlertTriggered_1 = z.object({ +export const BillingAlertTriggered_1: z.ZodType = z.object({ 'alert': BillingAlert, 'created': z.number().int(), 'customer': z.string(), @@ -9917,73 +17892,51 @@ export const BillingAlertTriggered_1 = z.object({ 'value': z.number().int() }); -export type BillingAlertTriggered_1Model = z.infer; - -export const BillingAlertTriggered = z.object({ +export const BillingAlertTriggered: z.ZodType = z.object({ 'object': BillingAlertTriggered_1 }); -export type BillingAlertTriggeredModel = z.infer; - -export const CreditBalance = z.object({ +export const CreditBalance: z.ZodType = z.object({ 'available_balance': BillingCreditGrantsResourceAmount, 'ledger_balance': BillingCreditGrantsResourceAmount }); -export type CreditBalanceModel = z.infer; - -export const BillingCreditBalanceSummary = z.object({ +export const BillingCreditBalanceSummary: z.ZodType = z.object({ 'balances': z.array(CreditBalance), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), 'livemode': z.boolean(), 'object': z.enum(['billing.credit_balance_summary']) }); -export type BillingCreditBalanceSummaryModel = z.infer; - -export const BillingCreditBalanceTransactionCreated = z.object({ +export const BillingCreditBalanceTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditBalanceTransaction) }); -export type BillingCreditBalanceTransactionCreatedModel = z.infer; - -export const BillingCreditGrantCreated = z.object({ +export const BillingCreditGrantCreated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditGrant) }); -export type BillingCreditGrantCreatedModel = z.infer; - -export const BillingCreditGrantUpdated = z.object({ +export const BillingCreditGrantUpdated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditGrant) }); -export type BillingCreditGrantUpdatedModel = z.infer; - -export const BillingMeterCreated = z.object({ +export const BillingMeterCreated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterCreatedModel = z.infer; - -export const BillingMeterDeactivated = z.object({ +export const BillingMeterDeactivated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterDeactivatedModel = z.infer; - -export const BillingMeterReactivated = z.object({ +export const BillingMeterReactivated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterReactivatedModel = z.infer; - -export const BillingMeterUpdated = z.object({ +export const BillingMeterUpdated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterUpdatedModel = z.infer; - -export const BillingMeterEvent = z.object({ +export const BillingMeterEvent: z.ZodType = z.object({ 'created': z.number().int(), 'event_name': z.string(), 'identifier': z.string(), @@ -9993,15 +17946,11 @@ export const BillingMeterEvent = z.object({ 'timestamp': z.number().int() }); -export type BillingMeterEventModel = z.infer; - -export const BillingMeterResourceBillingMeterEventAdjustmentCancel = z.object({ +export const BillingMeterResourceBillingMeterEventAdjustmentCancel: z.ZodType = z.object({ 'identifier': z.string() }); -export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = z.infer; - -export const BillingMeterEventAdjustment = z.object({ +export const BillingMeterEventAdjustment: z.ZodType = z.object({ 'cancel': z.union([BillingMeterResourceBillingMeterEventAdjustmentCancel]), 'event_name': z.string(), 'livemode': z.boolean(), @@ -10010,9 +17959,7 @@ export const BillingMeterEventAdjustment = z.object({ 'type': z.enum(['cancel']) }); -export type BillingMeterEventAdjustmentModel = z.infer; - -export const BillingMeterEventSummary = z.object({ +export const BillingMeterEventSummary: z.ZodType = z.object({ 'aggregated_value': z.number(), 'end_time': z.number().int(), 'id': z.string(), @@ -10022,95 +17969,69 @@ export const BillingMeterEventSummary = z.object({ 'start_time': z.number().int() }); -export type BillingMeterEventSummaryModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent: z.ZodType = z.object({ 'subscription': z.string(), 'subscription_item': z.string().optional() }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemParent: z.ZodType = z.object({ 'subscription_details': z.union([BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent]), 'type': z.enum(['subscription_details']) }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = z.infer; - -export const PortalBusinessProfile = z.object({ +export const PortalBusinessProfile: z.ZodType = z.object({ 'headline': z.string(), 'privacy_policy_url': z.string(), 'terms_of_service_url': z.string() }); -export type PortalBusinessProfileModel = z.infer; - -export const PortalCustomerUpdate = z.object({ +export const PortalCustomerUpdate: z.ZodType = z.object({ 'allowed_updates': z.array(z.enum(['address', 'email', 'name', 'phone', 'shipping', 'tax_id'])), 'enabled': z.boolean() }); -export type PortalCustomerUpdateModel = z.infer; - -export const PortalInvoiceList = z.object({ +export const PortalInvoiceList: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PortalInvoiceListModel = z.infer; - -export const PortalPaymentMethodUpdate = z.object({ +export const PortalPaymentMethodUpdate: z.ZodType = z.object({ 'enabled': z.boolean(), 'payment_method_configuration': z.string() }); -export type PortalPaymentMethodUpdateModel = z.infer; - -export const PortalSubscriptionCancellationReason = z.object({ +export const PortalSubscriptionCancellationReason: z.ZodType = z.object({ 'enabled': z.boolean(), 'options': z.array(z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused'])) }); -export type PortalSubscriptionCancellationReasonModel = z.infer; - -export const PortalSubscriptionCancel = z.object({ +export const PortalSubscriptionCancel: z.ZodType = z.object({ 'cancellation_reason': PortalSubscriptionCancellationReason, 'enabled': z.boolean(), 'mode': z.enum(['at_period_end', 'immediately']), 'proration_behavior': z.enum(['always_invoice', 'create_prorations', 'none']) }); -export type PortalSubscriptionCancelModel = z.infer; - -export const PortalSubscriptionUpdateProductAdjustableQuantity = z.object({ +export const PortalSubscriptionUpdateProductAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PortalSubscriptionUpdateProductAdjustableQuantityModel = z.infer; - -export const PortalSubscriptionUpdateProduct = z.object({ +export const PortalSubscriptionUpdateProduct: z.ZodType = z.object({ 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantity, 'prices': z.array(z.string()), 'product': z.string() }); -export type PortalSubscriptionUpdateProductModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEndCondition = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEndCondition: z.ZodType = z.object({ 'type': z.enum(['decreasing_item_amount', 'shortening_interval']) }); -export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEnd = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEnd: z.ZodType = z.object({ 'conditions': z.array(PortalResourceScheduleUpdateAtPeriodEndCondition) }); -export type PortalResourceScheduleUpdateAtPeriodEndModel = z.infer; - -export const PortalSubscriptionUpdate = z.object({ +export const PortalSubscriptionUpdate: z.ZodType = z.object({ 'default_allowed_updates': z.array(z.enum(['price', 'promotion_code', 'quantity'])), 'enabled': z.boolean(), 'products': z.array(PortalSubscriptionUpdateProduct).optional(), @@ -10119,9 +18040,7 @@ export const PortalSubscriptionUpdate = z.object({ 'trial_update_behavior': z.enum(['continue_trial', 'end_trial']) }); -export type PortalSubscriptionUpdateModel = z.infer; - -export const PortalFeatures = z.object({ +export const PortalFeatures: z.ZodType = z.object({ 'customer_update': PortalCustomerUpdate, 'invoice_history': PortalInvoiceList, 'payment_method_update': PortalPaymentMethodUpdate, @@ -10129,16 +18048,12 @@ export const PortalFeatures = z.object({ 'subscription_update': PortalSubscriptionUpdate }); -export type PortalFeaturesModel = z.infer; - -export const PortalLoginPage = z.object({ +export const PortalLoginPage: z.ZodType = z.object({ 'enabled': z.boolean(), 'url': z.string() }); -export type PortalLoginPageModel = z.infer; - -export const BillingPortalConfiguration = z.object({ +export const BillingPortalConfiguration: z.ZodType = z.object({ 'active': z.boolean(), 'application': z.union([z.string(), Application, DeletedApplication]), 'business_profile': PortalBusinessProfile, @@ -10155,90 +18070,64 @@ export const BillingPortalConfiguration = z.object({ 'updated': z.number().int() }); -export type BillingPortalConfigurationModel = z.infer; - -export const BillingPortalConfigurationCreated = z.object({ +export const BillingPortalConfigurationCreated: z.ZodType = z.object({ 'object': BillingPortalConfiguration }); -export type BillingPortalConfigurationCreatedModel = z.infer; - -export const BillingPortalConfigurationUpdated = z.object({ +export const BillingPortalConfigurationUpdated: z.ZodType = z.object({ 'object': BillingPortalConfiguration }); -export type BillingPortalConfigurationUpdatedModel = z.infer; - -export const PortalFlowsAfterCompletionHostedConfirmation = z.object({ +export const PortalFlowsAfterCompletionHostedConfirmation: z.ZodType = z.object({ 'custom_message': z.string() }); -export type PortalFlowsAfterCompletionHostedConfirmationModel = z.infer; - -export const PortalFlowsAfterCompletionRedirect = z.object({ +export const PortalFlowsAfterCompletionRedirect: z.ZodType = z.object({ 'return_url': z.string() }); -export type PortalFlowsAfterCompletionRedirectModel = z.infer; - -export const PortalFlowsFlowAfterCompletion = z.object({ +export const PortalFlowsFlowAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': z.union([PortalFlowsAfterCompletionHostedConfirmation]), 'redirect': z.union([PortalFlowsAfterCompletionRedirect]), 'type': z.enum(['hosted_confirmation', 'portal_homepage', 'redirect']) }); -export type PortalFlowsFlowAfterCompletionModel = z.infer; - -export const PortalFlowsCouponOffer = z.object({ +export const PortalFlowsCouponOffer: z.ZodType = z.object({ 'coupon': z.string() }); -export type PortalFlowsCouponOfferModel = z.infer; - -export const PortalFlowsRetention = z.object({ +export const PortalFlowsRetention: z.ZodType = z.object({ 'coupon_offer': z.union([PortalFlowsCouponOffer]), 'type': z.enum(['coupon_offer']) }); -export type PortalFlowsRetentionModel = z.infer; - -export const PortalFlowsFlowSubscriptionCancel = z.object({ +export const PortalFlowsFlowSubscriptionCancel: z.ZodType = z.object({ 'retention': z.union([PortalFlowsRetention]), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionCancelModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdate = z.object({ +export const PortalFlowsFlowSubscriptionUpdate: z.ZodType = z.object({ 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmDiscount = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmDiscount: z.ZodType = z.object({ 'coupon': z.string(), 'promotion_code': z.string() }); -export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmItem = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmItem: z.ZodType = z.object({ 'id': z.string(), 'price': z.string(), 'quantity': z.number().int().optional() }); -export type PortalFlowsSubscriptionUpdateConfirmItemModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdateConfirm = z.object({ +export const PortalFlowsFlowSubscriptionUpdateConfirm: z.ZodType = z.object({ 'discounts': z.array(PortalFlowsSubscriptionUpdateConfirmDiscount), 'items': z.array(PortalFlowsSubscriptionUpdateConfirmItem), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateConfirmModel = z.infer; - -export const PortalFlowsFlow = z.object({ +export const PortalFlowsFlow: z.ZodType = z.object({ 'after_completion': PortalFlowsFlowAfterCompletion, 'subscription_cancel': z.union([PortalFlowsFlowSubscriptionCancel]), 'subscription_update': z.union([PortalFlowsFlowSubscriptionUpdate]), @@ -10246,9 +18135,7 @@ export const PortalFlowsFlow = z.object({ 'type': z.enum(['payment_method_update', 'subscription_cancel', 'subscription_update', 'subscription_update_confirm']) }); -export type PortalFlowsFlowModel = z.infer; - -export const BillingPortalSession = z.object({ +export const BillingPortalSession: z.ZodType = z.object({ 'configuration': z.union([z.string(), BillingPortalConfiguration]), 'created': z.number().int(), 'customer': z.string(), @@ -10262,15 +18149,11 @@ export const BillingPortalSession = z.object({ 'url': z.string() }); -export type BillingPortalSessionModel = z.infer; - -export const BillingPortalSessionCreated = z.object({ +export const BillingPortalSessionCreated: z.ZodType = z.object({ 'object': BillingPortalSession }); -export type BillingPortalSessionCreatedModel = z.infer; - -export const Capability = z.object({ +export const Capability: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'future_requirements': AccountCapabilityFutureRequirements.optional(), 'id': z.string(), @@ -10281,145 +18164,101 @@ export const Capability = z.object({ 'status': z.enum(['active', 'inactive', 'pending', 'unrequested']) }); -export type CapabilityModel = z.infer; - -export const CapabilityUpdated = z.object({ +export const CapabilityUpdated: z.ZodType = z.object({ 'object': Capability }); -export type CapabilityUpdatedModel = z.infer; - -export const CashBalanceFundsAvailable = z.object({ +export const CashBalanceFundsAvailable: z.ZodType = z.object({ 'object': CashBalance }); -export type CashBalanceFundsAvailableModel = z.infer; - -export const ChargeCaptured = z.object({ +export const ChargeCaptured: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeCapturedModel = z.infer; - -export const ChargeDisputeClosed = z.object({ +export const ChargeDisputeClosed: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeClosedModel = z.infer; - -export const ChargeDisputeCreated = z.object({ +export const ChargeDisputeCreated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeCreatedModel = z.infer; - -export const ChargeDisputeFundsReinstated = z.object({ +export const ChargeDisputeFundsReinstated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeFundsReinstatedModel = z.infer; - -export const ChargeDisputeFundsWithdrawn = z.object({ +export const ChargeDisputeFundsWithdrawn: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeFundsWithdrawnModel = z.infer; - -export const ChargeDisputeUpdated = z.object({ +export const ChargeDisputeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeUpdatedModel = z.infer; - -export const ChargeExpired = z.object({ +export const ChargeExpired: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeExpiredModel = z.infer; - -export const ChargeFailed = z.object({ +export const ChargeFailed: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeFailedModel = z.infer; - -export const ChargePending = z.object({ +export const ChargePending: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargePendingModel = z.infer; - -export const ChargeRefundUpdated = z.object({ +export const ChargeRefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type ChargeRefundUpdatedModel = z.infer; - -export const ChargeRefunded = z.object({ +export const ChargeRefunded: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeRefundedModel = z.infer; - -export const ChargeSucceeded = z.object({ +export const ChargeSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeSucceededModel = z.infer; - -export const ChargeUpdated = z.object({ +export const ChargeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeUpdatedModel = z.infer; - -export const PaymentPagesCheckoutSessionAdaptivePricing = z.object({ +export const PaymentPagesCheckoutSessionAdaptivePricing: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionAdaptivePricingModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpirationRecovery = z.object({ +export const PaymentPagesCheckoutSessionAfterExpirationRecovery: z.ZodType = z.object({ 'allow_promotion_codes': z.boolean(), 'enabled': z.boolean(), 'expires_at': z.number().int(), 'url': z.string() }); -export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpiration = z.object({ +export const PaymentPagesCheckoutSessionAfterExpiration: z.ZodType = z.object({ 'recovery': z.union([PaymentPagesCheckoutSessionAfterExpirationRecovery]) }); -export type PaymentPagesCheckoutSessionAfterExpirationModel = z.infer; - -export const PaymentPagesCheckoutSessionAutomaticTax = z.object({ +export const PaymentPagesCheckoutSessionAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), 'provider': z.string(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type PaymentPagesCheckoutSessionAutomaticTaxModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsIcon = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsIcon: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsLogo = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsLogo: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettings: z.ZodType = z.object({ 'background_color': z.string(), 'border_style': z.enum(['pill', 'rectangular', 'rounded']), 'button_color': z.string(), @@ -10429,94 +18268,70 @@ export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ 'logo': z.union([PaymentPagesCheckoutSessionBrandingSettingsLogo]) }); -export type PaymentPagesCheckoutSessionBrandingSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionCheckoutAddressDetails = z.object({ +export const PaymentPagesCheckoutSessionCheckoutAddressDetails: z.ZodType = z.object({ 'address': Address, 'name': z.string() }); -export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionCollectedInformation = z.object({ +export const PaymentPagesCheckoutSessionCollectedInformation: z.ZodType = z.object({ 'business_name': z.string(), 'individual_name': z.string(), 'shipping_details': z.union([PaymentPagesCheckoutSessionCheckoutAddressDetails]) }); -export type PaymentPagesCheckoutSessionCollectedInformationModel = z.infer; - -export const PaymentPagesCheckoutSessionConsent = z.object({ +export const PaymentPagesCheckoutSessionConsent: z.ZodType = z.object({ 'promotions': z.enum(['opt_in', 'opt_out']), 'terms_of_service': z.enum(['accepted']) }); -export type PaymentPagesCheckoutSessionConsentModel = z.infer; - -export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement = z.object({ +export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = z.infer; - -export const PaymentPagesCheckoutSessionConsentCollection = z.object({ +export const PaymentPagesCheckoutSessionConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentPagesCheckoutSessionPaymentMethodReuseAgreement]), 'promotions': z.enum(['auto', 'none']), 'terms_of_service': z.enum(['none', 'required']) }); -export type PaymentPagesCheckoutSessionConsentCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionCurrencyConversion = z.object({ +export const PaymentPagesCheckoutSessionCurrencyConversion: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'fx_rate': z.string(), 'source_currency': z.string() }); -export type PaymentPagesCheckoutSessionCurrencyConversionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsOption = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsDropdown = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string(), 'options': z.array(PaymentPagesCheckoutSessionCustomFieldsOption), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsLabel = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string(), 'type': z.enum(['custom']) }); -export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsNumeric = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsText = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsTextModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFields = z.object({ +export const PaymentPagesCheckoutSessionCustomFields: z.ZodType = z.object({ 'dropdown': PaymentPagesCheckoutSessionCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentPagesCheckoutSessionCustomFieldsLabel, @@ -10526,31 +18341,23 @@ export const PaymentPagesCheckoutSessionCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentPagesCheckoutSessionCustomFieldsModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomTextPosition = z.object({ +export const PaymentPagesCheckoutSessionCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentPagesCheckoutSessionCustomTextPositionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomText = z.object({ +export const PaymentPagesCheckoutSessionCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'shipping_address': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'terms_of_service_acceptance': z.union([PaymentPagesCheckoutSessionCustomTextPosition]) }); -export type PaymentPagesCheckoutSessionCustomTextModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxId = z.object({ +export const PaymentPagesCheckoutSessionTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type PaymentPagesCheckoutSessionTaxIdModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ +export const PaymentPagesCheckoutSessionCustomerDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'business_name': z.string(), 'email': z.string(), @@ -10561,23 +18368,17 @@ export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ 'tax_ids': z.array(PaymentPagesCheckoutSessionTaxId) }); -export type PaymentPagesCheckoutSessionCustomerDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionDiscount = z.object({ +export const PaymentPagesCheckoutSessionDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]) }); -export type PaymentPagesCheckoutSessionDiscountModel = z.infer; - -export const InvoiceSettingCheckoutRenderingOptions = z.object({ +export const InvoiceSettingCheckoutRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'template': z.string() }); -export type InvoiceSettingCheckoutRenderingOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ +export const PaymentPagesCheckoutSessionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'custom_fields': z.array(InvoiceSettingCustomField), 'description': z.string(), @@ -10587,23 +18388,17 @@ export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]) }); -export type PaymentPagesCheckoutSessionInvoiceSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceCreation = z.object({ +export const PaymentPagesCheckoutSessionInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettings }); -export type PaymentPagesCheckoutSessionInvoiceCreationModel = z.infer; - -export const LineItemsDiscountAmount = z.object({ +export const LineItemsDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.lazy(() => Discount) }); -export type LineItemsDiscountAmountModel = z.infer; - -export const Item = z.object({ +export const Item: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), @@ -10618,124 +18413,90 @@ export const Item = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type ItemModel = z.infer; - -export const PaymentPagesCheckoutSessionBusinessName = z.object({ +export const PaymentPagesCheckoutSessionBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionBusinessNameModel = z.infer; - -export const PaymentPagesCheckoutSessionIndividualName = z.object({ +export const PaymentPagesCheckoutSessionIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionIndividualNameModel = z.infer; - -export const PaymentPagesCheckoutSessionNameCollection = z.object({ +export const PaymentPagesCheckoutSessionNameCollection: z.ZodType = z.object({ 'business': PaymentPagesCheckoutSessionBusinessName.optional(), 'individual': PaymentPagesCheckoutSessionIndividualName.optional() }); -export type PaymentPagesCheckoutSessionNameCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity = z.object({ +export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItem = z.object({ +export const PaymentPagesCheckoutSessionOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity]), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentPagesCheckoutSessionOptionalItemModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorConfirmationPage = z.object({ +export const PaymentLinksResourceCompletionBehaviorConfirmationPage: z.ZodType = z.object({ 'custom_message': z.string() }); -export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorRedirect = z.object({ +export const PaymentLinksResourceCompletionBehaviorRedirect: z.ZodType = z.object({ 'url': z.string() }); -export type PaymentLinksResourceCompletionBehaviorRedirectModel = z.infer; - -export const PaymentLinksResourceAfterCompletion = z.object({ +export const PaymentLinksResourceAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': PaymentLinksResourceCompletionBehaviorConfirmationPage.optional(), 'redirect': PaymentLinksResourceCompletionBehaviorRedirect.optional(), 'type': z.enum(['hosted_confirmation', 'redirect']) }); -export type PaymentLinksResourceAfterCompletionModel = z.infer; - -export const PaymentLinksResourceAutomaticTax = z.object({ +export const PaymentLinksResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type PaymentLinksResourceAutomaticTaxModel = z.infer; - -export const PaymentLinksResourcePaymentMethodReuseAgreement = z.object({ +export const PaymentLinksResourcePaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentLinksResourcePaymentMethodReuseAgreementModel = z.infer; - -export const PaymentLinksResourceConsentCollection = z.object({ +export const PaymentLinksResourceConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentLinksResourcePaymentMethodReuseAgreement]), 'promotions': z.enum(['auto', 'none']), 'terms_of_service': z.enum(['none', 'required']) }); -export type PaymentLinksResourceConsentCollectionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdownOption = z.object({ +export const PaymentLinksResourceCustomFieldsDropdownOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentLinksResourceCustomFieldsDropdownOptionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdown = z.object({ +export const PaymentLinksResourceCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string(), 'options': z.array(PaymentLinksResourceCustomFieldsDropdownOption) }); -export type PaymentLinksResourceCustomFieldsDropdownModel = z.infer; - -export const PaymentLinksResourceCustomFieldsLabel = z.object({ +export const PaymentLinksResourceCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string(), 'type': z.enum(['custom']) }); -export type PaymentLinksResourceCustomFieldsLabelModel = z.infer; - -export const PaymentLinksResourceCustomFieldsNumeric = z.object({ +export const PaymentLinksResourceCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int() }); -export type PaymentLinksResourceCustomFieldsNumericModel = z.infer; - -export const PaymentLinksResourceCustomFieldsText = z.object({ +export const PaymentLinksResourceCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int() }); -export type PaymentLinksResourceCustomFieldsTextModel = z.infer; - -export const PaymentLinksResourceCustomFields = z.object({ +export const PaymentLinksResourceCustomFields: z.ZodType = z.object({ 'dropdown': PaymentLinksResourceCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentLinksResourceCustomFieldsLabel, @@ -10745,24 +18506,18 @@ export const PaymentLinksResourceCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentLinksResourceCustomFieldsModel = z.infer; - -export const PaymentLinksResourceCustomTextPosition = z.object({ +export const PaymentLinksResourceCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentLinksResourceCustomTextPositionModel = z.infer; - -export const PaymentLinksResourceCustomText = z.object({ +export const PaymentLinksResourceCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentLinksResourceCustomTextPosition]), 'shipping_address': z.union([PaymentLinksResourceCustomTextPosition]), 'submit': z.union([PaymentLinksResourceCustomTextPosition]), 'terms_of_service_acceptance': z.union([PaymentLinksResourceCustomTextPosition]) }); -export type PaymentLinksResourceCustomTextModel = z.infer; - -export const PaymentLinksResourceInvoiceSettings = z.object({ +export const PaymentLinksResourceInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'custom_fields': z.array(InvoiceSettingCustomField), 'description': z.string(), @@ -10772,53 +18527,39 @@ export const PaymentLinksResourceInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]) }); -export type PaymentLinksResourceInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceInvoiceCreation = z.object({ +export const PaymentLinksResourceInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': z.union([PaymentLinksResourceInvoiceSettings]) }); -export type PaymentLinksResourceInvoiceCreationModel = z.infer; - -export const PaymentLinksResourceBusinessName = z.object({ +export const PaymentLinksResourceBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceBusinessNameModel = z.infer; - -export const PaymentLinksResourceIndividualName = z.object({ +export const PaymentLinksResourceIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceIndividualNameModel = z.infer; - -export const PaymentLinksResourceNameCollection = z.object({ +export const PaymentLinksResourceNameCollection: z.ZodType = z.object({ 'business': PaymentLinksResourceBusinessName.optional(), 'individual': PaymentLinksResourceIndividualName.optional() }); -export type PaymentLinksResourceNameCollectionModel = z.infer; - -export const PaymentLinksResourceOptionalItemAdjustableQuantity = z.object({ +export const PaymentLinksResourceOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentLinksResourceOptionalItem = z.object({ +export const PaymentLinksResourceOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentLinksResourceOptionalItemAdjustableQuantity]), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentLinksResourceOptionalItemModel = z.infer; - -export const PaymentLinksResourcePaymentIntentData = z.object({ +export const PaymentLinksResourcePaymentIntentData: z.ZodType = z.object({ 'capture_method': z.enum(['automatic', 'automatic_async', 'manual']), 'description': z.string(), 'metadata': z.record(z.string(), z.string()), @@ -10828,47 +18569,33 @@ export const PaymentLinksResourcePaymentIntentData = z.object({ 'transfer_group': z.string() }); -export type PaymentLinksResourcePaymentIntentDataModel = z.infer; - -export const PaymentLinksResourcePhoneNumberCollection = z.object({ +export const PaymentLinksResourcePhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentLinksResourcePhoneNumberCollectionModel = z.infer; - -export const PaymentLinksResourceCompletedSessions = z.object({ +export const PaymentLinksResourceCompletedSessions: z.ZodType = z.object({ 'count': z.number().int(), 'limit': z.number().int() }); -export type PaymentLinksResourceCompletedSessionsModel = z.infer; - -export const PaymentLinksResourceRestrictions = z.object({ +export const PaymentLinksResourceRestrictions: z.ZodType = z.object({ 'completed_sessions': PaymentLinksResourceCompletedSessions }); -export type PaymentLinksResourceRestrictionsModel = z.infer; - -export const PaymentLinksResourceShippingAddressCollection = z.object({ +export const PaymentLinksResourceShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentLinksResourceShippingAddressCollectionModel = z.infer; - -export const PaymentLinksResourceShippingOption = z.object({ +export const PaymentLinksResourceShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentLinksResourceShippingOptionModel = z.infer; - -export const PaymentLinksResourceSubscriptionDataInvoiceSettings = z.object({ +export const PaymentLinksResourceSubscriptionDataInvoiceSettings: z.ZodType = z.object({ 'issuer': z.lazy(() => ConnectAccountReference) }); -export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceSubscriptionData = z.object({ +export const PaymentLinksResourceSubscriptionData: z.ZodType = z.object({ 'description': z.string(), 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettings, 'metadata': z.record(z.string(), z.string()), @@ -10876,23 +18603,17 @@ export const PaymentLinksResourceSubscriptionData = z.object({ 'trial_settings': z.union([SubscriptionsTrialsResourceTrialSettings]) }); -export type PaymentLinksResourceSubscriptionDataModel = z.infer; - -export const PaymentLinksResourceTaxIdCollection = z.object({ +export const PaymentLinksResourceTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentLinksResourceTaxIdCollectionModel = z.infer; - -export const PaymentLinksResourceTransferData = z.object({ +export const PaymentLinksResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type PaymentLinksResourceTransferDataModel = z.infer; - -export const PaymentLink = z.object({ +export const PaymentLink: z.ZodType = z.object({ 'active': z.boolean(), 'after_completion': PaymentLinksResourceAfterCompletion, 'allow_promotion_codes': z.boolean(), @@ -10935,9 +18656,7 @@ export const PaymentLink = z.object({ 'url': z.string() }); -export type PaymentLinkModel = z.infer; - -export const CheckoutAcssDebitMandateOptions = z.object({ +export const CheckoutAcssDebitMandateOptions: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), @@ -10945,9 +18664,7 @@ export const CheckoutAcssDebitMandateOptions = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type CheckoutAcssDebitMandateOptionsModel = z.infer; - -export const CheckoutAcssDebitPaymentMethodOptions = z.object({ +export const CheckoutAcssDebitPaymentMethodOptions: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']).optional(), 'mandate_options': CheckoutAcssDebitMandateOptions.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), @@ -10955,94 +18672,66 @@ export const CheckoutAcssDebitPaymentMethodOptions = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type CheckoutAcssDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutAffirmPaymentMethodOptions = z.object({ +export const CheckoutAffirmPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAffirmPaymentMethodOptionsModel = z.infer; - -export const CheckoutAfterpayClearpayPaymentMethodOptions = z.object({ +export const CheckoutAfterpayClearpayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlipayPaymentMethodOptions = z.object({ +export const CheckoutAlipayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAlipayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlmaPaymentMethodOptions = z.object({ +export const CheckoutAlmaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutAlmaPaymentMethodOptionsModel = z.infer; - -export const CheckoutAmazonPayPaymentMethodOptions = z.object({ +export const CheckoutAmazonPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutAmazonPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAuBecsDebitPaymentMethodOptions = z.object({ +export const CheckoutAuBecsDebitPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional(), 'target_date': z.string().optional() }); -export type CheckoutAuBecsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const CheckoutBacsDebitPaymentMethodOptions = z.object({ +export const CheckoutBacsDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutBacsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutBancontactPaymentMethodOptions = z.object({ +export const CheckoutBancontactPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutBancontactPaymentMethodOptionsModel = z.infer; - -export const CheckoutBilliePaymentMethodOptions = z.object({ +export const CheckoutBilliePaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutBilliePaymentMethodOptionsModel = z.infer; - -export const CheckoutBoletoPaymentMethodOptions = z.object({ +export const CheckoutBoletoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutBoletoPaymentMethodOptionsModel = z.infer; - -export const CheckoutCardInstallmentsOptions = z.object({ +export const CheckoutCardInstallmentsOptions: z.ZodType = z.object({ 'enabled': z.boolean().optional() }); -export type CheckoutCardInstallmentsOptionsModel = z.infer; - -export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions = z.object({ +export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions: z.ZodType = z.object({ 'brands_blocked': z.array(z.enum(['american_express', 'discover_global_network', 'mastercard', 'visa'])).optional() }); -export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = z.infer; - -export const CheckoutCardPaymentMethodOptions = z.object({ +export const CheckoutCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': CheckoutCardInstallmentsOptions.optional(), 'request_extended_authorization': z.enum(['if_available', 'never']).optional(), @@ -11056,219 +18745,155 @@ export const CheckoutCardPaymentMethodOptions = z.object({ 'statement_descriptor_suffix_kanji': z.string().optional() }); -export type CheckoutCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutCashappPaymentMethodOptions = z.object({ +export const CheckoutCashappPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCashappPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions = z.object({ +export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalancePaymentMethodOptions = z.object({ +export const CheckoutCustomerBalancePaymentMethodOptions: z.ZodType = z.object({ 'bank_transfer': CheckoutCustomerBalanceBankTransferPaymentMethodOptions.optional(), 'funding_type': z.enum(['bank_transfer']), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCustomerBalancePaymentMethodOptionsModel = z.infer; - -export const CheckoutEpsPaymentMethodOptions = z.object({ +export const CheckoutEpsPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutEpsPaymentMethodOptionsModel = z.infer; - -export const CheckoutFpxPaymentMethodOptions = z.object({ +export const CheckoutFpxPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutFpxPaymentMethodOptionsModel = z.infer; - -export const CheckoutGiropayPaymentMethodOptions = z.object({ +export const CheckoutGiropayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGiropayPaymentMethodOptionsModel = z.infer; - -export const CheckoutGrabPayPaymentMethodOptions = z.object({ +export const CheckoutGrabPayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGrabPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutIdealPaymentMethodOptions = z.object({ +export const CheckoutIdealPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutIdealPaymentMethodOptionsModel = z.infer; - -export const CheckoutKakaoPayPaymentMethodOptions = z.object({ +export const CheckoutKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKakaoPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutKlarnaPaymentMethodOptions = z.object({ +export const CheckoutKlarnaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutKlarnaPaymentMethodOptionsModel = z.infer; - -export const CheckoutKonbiniPaymentMethodOptions = z.object({ +export const CheckoutKonbiniPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutKonbiniPaymentMethodOptionsModel = z.infer; - -export const CheckoutKrCardPaymentMethodOptions = z.object({ +export const CheckoutKrCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKrCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutLinkPaymentMethodOptions = z.object({ +export const CheckoutLinkPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutLinkPaymentMethodOptionsModel = z.infer; - -export const CheckoutMobilepayPaymentMethodOptions = z.object({ +export const CheckoutMobilepayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMobilepayPaymentMethodOptionsModel = z.infer; - -export const CheckoutMultibancoPaymentMethodOptions = z.object({ +export const CheckoutMultibancoPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMultibancoPaymentMethodOptionsModel = z.infer; - -export const CheckoutNaverPayPaymentMethodOptions = z.object({ +export const CheckoutNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutNaverPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutOxxoPaymentMethodOptions = z.object({ +export const CheckoutOxxoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutOxxoPaymentMethodOptionsModel = z.infer; - -export const CheckoutP24PaymentMethodOptions = z.object({ +export const CheckoutP24PaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutP24PaymentMethodOptionsModel = z.infer; - -export const CheckoutPaycoPaymentMethodOptions = z.object({ +export const CheckoutPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutPaycoPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaynowPaymentMethodOptions = z.object({ +export const CheckoutPaynowPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutPaynowPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaypalPaymentMethodOptions = z.object({ +export const CheckoutPaypalPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string(), 'reference': z.string(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutPaypalPaymentMethodOptionsModel = z.infer; - -export const CheckoutPixPaymentMethodOptions = z.object({ +export const CheckoutPixPaymentMethodOptions: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutPixPaymentMethodOptionsModel = z.infer; - -export const CheckoutRevolutPayPaymentMethodOptions = z.object({ +export const CheckoutRevolutPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutRevolutPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSamsungPayPaymentMethodOptions = z.object({ +export const CheckoutSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSamsungPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSatispayPaymentMethodOptions = z.object({ +export const CheckoutSatispayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSatispayPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const CheckoutSepaDebitPaymentMethodOptions = z.object({ +export const CheckoutSepaDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutSepaDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutSofortPaymentMethodOptions = z.object({ +export const CheckoutSofortPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutSofortPaymentMethodOptionsModel = z.infer; - -export const CheckoutSwishPaymentMethodOptions = z.object({ +export const CheckoutSwishPaymentMethodOptions: z.ZodType = z.object({ 'reference': z.string() }); -export type CheckoutSwishPaymentMethodOptionsModel = z.infer; - -export const CheckoutTwintPaymentMethodOptions = z.object({ +export const CheckoutTwintPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutTwintPaymentMethodOptionsModel = z.infer; - -export const CheckoutUsBankAccountPaymentMethodOptions = z.object({ +export const CheckoutUsBankAccountPaymentMethodOptions: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant']).optional() }); -export type CheckoutUsBankAccountPaymentMethodOptionsModel = z.infer; - -export const CheckoutSessionPaymentMethodOptions = z.object({ +export const CheckoutSessionPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': CheckoutAcssDebitPaymentMethodOptions.optional(), 'affirm': CheckoutAffirmPaymentMethodOptions.optional(), 'afterpay_clearpay': CheckoutAfterpayClearpayPaymentMethodOptions.optional(), @@ -11312,35 +18937,25 @@ export const CheckoutSessionPaymentMethodOptions = z.object({ 'us_bank_account': CheckoutUsBankAccountPaymentMethodOptions.optional() }); -export type CheckoutSessionPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionPermissions = z.object({ +export const PaymentPagesCheckoutSessionPermissions: z.ZodType = z.object({ 'update_shipping_details': z.enum(['client_only', 'server_only']) }); -export type PaymentPagesCheckoutSessionPermissionsModel = z.infer; - -export const PaymentPagesCheckoutSessionPhoneNumberCollection = z.object({ +export const PaymentPagesCheckoutSessionPhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions = z.object({ +export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions: z.ZodType = z.object({ 'allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_remove': z.enum(['disabled', 'enabled']), 'payment_method_save': z.enum(['disabled', 'enabled']) }); -export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingAddressCollection = z.object({ +export const PaymentPagesCheckoutSessionShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingCost = z.object({ +export const PaymentPagesCheckoutSessionShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -11348,51 +18963,37 @@ export const PaymentPagesCheckoutSessionShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type PaymentPagesCheckoutSessionShippingCostModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingOption = z.object({ +export const PaymentPagesCheckoutSessionShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentPagesCheckoutSessionShippingOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxIdCollection = z.object({ +export const PaymentPagesCheckoutSessionTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentPagesCheckoutSessionTaxIdCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown = z.object({ +export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetails = z.object({ +export const PaymentPagesCheckoutSessionTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int(), 'amount_tax': z.number().int(), 'breakdown': PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown.optional() }); -export type PaymentPagesCheckoutSessionTotalDetailsModel = z.infer; - -export const CheckoutLinkWalletOptions = z.object({ +export const CheckoutLinkWalletOptions: z.ZodType = z.object({ 'display': z.enum(['auto', 'never']).optional() }); -export type CheckoutLinkWalletOptionsModel = z.infer; - -export const CheckoutSessionWalletOptions = z.object({ +export const CheckoutSessionWalletOptions: z.ZodType = z.object({ 'link': CheckoutLinkWalletOptions.optional() }); -export type CheckoutSessionWalletOptionsModel = z.infer; - -export const CheckoutSession = z.object({ +export const CheckoutSession: z.ZodType = z.object({ 'adaptive_pricing': z.union([PaymentPagesCheckoutSessionAdaptivePricing]), 'after_expiration': z.union([PaymentPagesCheckoutSessionAfterExpiration]), 'allow_promotion_codes': z.boolean(), @@ -11465,39 +19066,27 @@ export const CheckoutSession = z.object({ 'wallet_options': z.union([CheckoutSessionWalletOptions]) }); -export type CheckoutSessionModel = z.infer; - -export const CheckoutSessionAsyncPaymentFailed = z.object({ +export const CheckoutSessionAsyncPaymentFailed: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionAsyncPaymentFailedModel = z.infer; - -export const CheckoutSessionAsyncPaymentSucceeded = z.object({ +export const CheckoutSessionAsyncPaymentSucceeded: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionAsyncPaymentSucceededModel = z.infer; - -export const CheckoutSessionCompleted = z.object({ +export const CheckoutSessionCompleted: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionCompletedModel = z.infer; - -export const CheckoutSessionExpired = z.object({ +export const CheckoutSessionExpired: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionExpiredModel = z.infer; - -export const ClimateRemovalsBeneficiary = z.object({ +export const ClimateRemovalsBeneficiary: z.ZodType = z.object({ 'public_name': z.string() }); -export type ClimateRemovalsBeneficiaryModel = z.infer; - -export const ClimateRemovalsLocation = z.object({ +export const ClimateRemovalsLocation: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'latitude': z.number(), @@ -11505,9 +19094,7 @@ export const ClimateRemovalsLocation = z.object({ 'region': z.string() }); -export type ClimateRemovalsLocationModel = z.infer; - -export const ClimateSupplier = z.object({ +export const ClimateSupplier: z.ZodType = z.object({ 'id': z.string(), 'info_url': z.string(), 'livemode': z.boolean(), @@ -11517,9 +19104,7 @@ export const ClimateSupplier = z.object({ 'removal_pathway': z.enum(['biomass_carbon_removal_and_storage', 'direct_air_capture', 'enhanced_weathering']) }); -export type ClimateSupplierModel = z.infer; - -export const ClimateRemovalsOrderDeliveries = z.object({ +export const ClimateRemovalsOrderDeliveries: z.ZodType = z.object({ 'delivered_at': z.number().int(), 'location': z.union([ClimateRemovalsLocation]), 'metric_tons': z.string(), @@ -11527,17 +19112,13 @@ export const ClimateRemovalsOrderDeliveries = z.object({ 'supplier': ClimateSupplier }); -export type ClimateRemovalsOrderDeliveriesModel = z.infer; - -export const ClimateRemovalsProductsPrice = z.object({ +export const ClimateRemovalsProductsPrice: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int() }); -export type ClimateRemovalsProductsPriceModel = z.infer; - -export const ClimateProduct = z.object({ +export const ClimateProduct: z.ZodType = z.object({ 'created': z.number().int(), 'current_prices_per_metric_ton': z.record(z.string(), ClimateRemovalsProductsPrice), 'delivery_year': z.number().int(), @@ -11549,9 +19130,7 @@ export const ClimateProduct = z.object({ 'suppliers': z.array(ClimateSupplier) }); -export type ClimateProductModel = z.infer; - -export const ClimateOrder = z.object({ +export const ClimateOrder: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), @@ -11576,90 +19155,62 @@ export const ClimateOrder = z.object({ 'status': z.enum(['awaiting_funds', 'canceled', 'confirmed', 'delivered', 'open']) }); -export type ClimateOrderModel = z.infer; - -export const ClimateOrderCanceled = z.object({ +export const ClimateOrderCanceled: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderCanceledModel = z.infer; - -export const ClimateOrderCreated = z.object({ +export const ClimateOrderCreated: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderCreatedModel = z.infer; - -export const ClimateOrderDelayed = z.object({ +export const ClimateOrderDelayed: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderDelayedModel = z.infer; - -export const ClimateOrderDelivered = z.object({ +export const ClimateOrderDelivered: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderDeliveredModel = z.infer; - -export const ClimateOrderProductSubstituted = z.object({ +export const ClimateOrderProductSubstituted: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderProductSubstitutedModel = z.infer; - -export const ClimateProductCreated = z.object({ +export const ClimateProductCreated: z.ZodType = z.object({ 'object': ClimateProduct }); -export type ClimateProductCreatedModel = z.infer; - -export const ClimateProductPricingUpdated = z.object({ +export const ClimateProductPricingUpdated: z.ZodType = z.object({ 'object': ClimateProduct }); -export type ClimateProductPricingUpdatedModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline: z.ZodType = z.object({ 'ip_address': z.string(), 'user_agent': z.string() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance: z.ZodType = z.object({ 'online': z.union([ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline]), 'type': z.string() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = z.infer; - -export const ConfirmationTokensResourceMandateData = z.object({ +export const ConfirmationTokensResourceMandateData: z.ZodType = z.object({ 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptance }); -export type ConfirmationTokensResourceMandateDataModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment: z.ZodType = z.object({ 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard: z.ZodType = z.object({ 'cvc_token': z.string(), 'installments': ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptions = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': z.union([ConfirmationTokensResourcePaymentMethodOptionsResourceCard]) }); -export type ConfirmationTokensResourcePaymentMethodOptionsModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ +export const ConfirmationTokensResourcePaymentMethodPreview: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), 'afterpay_clearpay': PaymentMethodAfterpayClearpay.optional(), @@ -11717,17 +19268,13 @@ export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ 'zip': PaymentMethodZip.optional() }); -export type ConfirmationTokensResourcePaymentMethodPreviewModel = z.infer; - -export const ConfirmationTokensResourceShipping = z.object({ +export const ConfirmationTokensResourceShipping: z.ZodType = z.object({ 'address': Address, 'name': z.string(), 'phone': z.string() }); -export type ConfirmationTokensResourceShippingModel = z.infer; - -export const ConfirmationToken = z.object({ +export const ConfirmationToken: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int(), 'id': z.string(), @@ -11744,23 +19291,17 @@ export const ConfirmationToken = z.object({ 'use_stripe_sdk': z.boolean() }); -export type ConfirmationTokenModel = z.infer; - -export const CountrySpecVerificationFieldDetails = z.object({ +export const CountrySpecVerificationFieldDetails: z.ZodType = z.object({ 'additional': z.array(z.string()), 'minimum': z.array(z.string()) }); -export type CountrySpecVerificationFieldDetailsModel = z.infer; - -export const CountrySpecVerificationFields = z.object({ +export const CountrySpecVerificationFields: z.ZodType = z.object({ 'company': CountrySpecVerificationFieldDetails, 'individual': CountrySpecVerificationFieldDetails }); -export type CountrySpecVerificationFieldsModel = z.infer; - -export const CountrySpec = z.object({ +export const CountrySpec: z.ZodType = z.object({ 'default_currency': z.string(), 'id': z.string(), 'object': z.enum(['country_spec']), @@ -11771,26 +19312,18 @@ export const CountrySpec = z.object({ 'verification_fields': CountrySpecVerificationFields }); -export type CountrySpecModel = z.infer; - -export const CouponCreated = z.object({ +export const CouponCreated: z.ZodType = z.object({ 'object': Coupon }); -export type CouponCreatedModel = z.infer; - -export const CouponDeleted = z.object({ +export const CouponDeleted: z.ZodType = z.object({ 'object': Coupon }); -export type CouponDeletedModel = z.infer; - -export const CouponUpdated = z.object({ +export const CouponUpdated: z.ZodType = z.object({ 'object': Coupon }); -export type CouponUpdatedModel = z.infer; - export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'checkout_session': z.union([z.string(), CheckoutSession]), @@ -11808,16 +19341,14 @@ export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'credit_balance_transaction': z.union([z.string(), z.lazy(() => BillingCreditBalanceTransaction)]).optional(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]).optional(), 'type': z.enum(['credit_balance_transaction', 'discount']) }); -export type CreditNotesPretaxCreditAmountModel = z.infer; - -export const CreditNoteLineItem = z.object({ +export const CreditNoteLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string(), 'discount_amount': z.number().int(), @@ -11835,24 +19366,18 @@ export const CreditNoteLineItem = z.object({ 'unit_amount_decimal': z.string() }); -export type CreditNoteLineItemModel = z.infer; - -export const CreditNotesPaymentRecordRefund = z.object({ +export const CreditNotesPaymentRecordRefund: z.ZodType = z.object({ 'payment_record': z.string(), 'refund_group': z.string() }); -export type CreditNotesPaymentRecordRefundModel = z.infer; - -export const CreditNoteRefund = z.object({ +export const CreditNoteRefund: z.ZodType = z.object({ 'amount_refunded': z.number().int(), 'payment_record_refund': z.union([CreditNotesPaymentRecordRefund]), 'refund': z.union([z.string(), z.lazy(() => Refund)]), 'type': z.enum(['payment_record_refund', 'refund']) }); -export type CreditNoteRefundModel = z.infer; - export const CreditNote: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_shipping': z.number().int(), @@ -11894,177 +19419,121 @@ export const CreditNote: z.ZodType = z.object({ 'voided_at': z.number().int() }); -export const CreditNoteCreated = z.object({ +export const CreditNoteCreated: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteCreatedModel = z.infer; - -export const CreditNoteUpdated = z.object({ +export const CreditNoteUpdated: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteUpdatedModel = z.infer; - -export const CreditNoteVoided = z.object({ +export const CreditNoteVoided: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteVoidedModel = z.infer; - -export const CustomerCreated = z.object({ +export const CustomerCreated: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerCreatedModel = z.infer; - -export const CustomerDeleted = z.object({ +export const CustomerDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerDeletedModel = z.infer; - -export const CustomerDiscountCreated = z.object({ +export const CustomerDiscountCreated: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountCreatedModel = z.infer; - -export const CustomerDiscountDeleted = z.object({ +export const CustomerDiscountDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountDeletedModel = z.infer; - -export const CustomerDiscountUpdated = z.object({ +export const CustomerDiscountUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountUpdatedModel = z.infer; - -export const CustomerSourceCreated = z.object({ +export const CustomerSourceCreated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceCreatedModel = z.infer; - -export const CustomerSourceDeleted = z.object({ +export const CustomerSourceDeleted: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceDeletedModel = z.infer; - -export const CustomerSourceExpiring = z.object({ +export const CustomerSourceExpiring: z.ZodType = z.object({ 'object': z.union([z.lazy(() => Card), Source]) }); -export type CustomerSourceExpiringModel = z.infer; - -export const CustomerSourceUpdated = z.object({ +export const CustomerSourceUpdated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceUpdatedModel = z.infer; - -export const CustomerSubscriptionCreated = z.object({ +export const CustomerSubscriptionCreated: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionCreatedModel = z.infer; - -export const CustomerSubscriptionDeleted = z.object({ +export const CustomerSubscriptionDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionDeletedModel = z.infer; - -export const CustomerSubscriptionPaused = z.object({ +export const CustomerSubscriptionPaused: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPausedModel = z.infer; - -export const CustomerSubscriptionPendingUpdateApplied = z.object({ +export const CustomerSubscriptionPendingUpdateApplied: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPendingUpdateAppliedModel = z.infer; - -export const CustomerSubscriptionPendingUpdateExpired = z.object({ +export const CustomerSubscriptionPendingUpdateExpired: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPendingUpdateExpiredModel = z.infer; - -export const CustomerSubscriptionResumed = z.object({ +export const CustomerSubscriptionResumed: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionResumedModel = z.infer; - -export const CustomerSubscriptionTrialWillEnd = z.object({ +export const CustomerSubscriptionTrialWillEnd: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionTrialWillEndModel = z.infer; - -export const CustomerSubscriptionUpdated = z.object({ +export const CustomerSubscriptionUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionUpdatedModel = z.infer; - -export const CustomerTaxIdCreated = z.object({ +export const CustomerTaxIdCreated: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdCreatedModel = z.infer; - -export const CustomerTaxIdDeleted = z.object({ +export const CustomerTaxIdDeleted: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdDeletedModel = z.infer; - -export const CustomerTaxIdUpdated = z.object({ +export const CustomerTaxIdUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdUpdatedModel = z.infer; - -export const CustomerUpdated = z.object({ +export const CustomerUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerUpdatedModel = z.infer; - -export const CustomerCashBalanceTransactionCreated = z.object({ +export const CustomerCashBalanceTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => CustomerCashBalanceTransaction) }); -export type CustomerCashBalanceTransactionCreatedModel = z.infer; - -export const CustomerSessionResourceComponentsResourceBuyButton = z.object({ +export const CustomerSessionResourceComponentsResourceBuyButton: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourceBuyButtonModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_remove': z.enum(['disabled', 'enabled']) }); -export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheet = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheet: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourceCustomerSheetModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_redisplay': z.enum(['disabled', 'enabled']), 'payment_method_remove': z.enum(['disabled', 'enabled']), @@ -12072,16 +19541,12 @@ export const CustomerSessionResourceComponentsResourceMobilePaymentElementResour 'payment_method_save_allow_redisplay_override': z.enum(['always', 'limited', 'unspecified']) }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_redisplay': z.enum(['disabled', 'enabled']), 'payment_method_redisplay_limit': z.number().int(), @@ -12090,22 +19555,16 @@ export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeat 'payment_method_save_usage': z.enum(['off_session', 'on_session']) }); -export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourcePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePricingTable = z.object({ +export const CustomerSessionResourceComponentsResourcePricingTable: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourcePricingTableModel = z.infer; - -export const CustomerSessionResourceComponents = z.object({ +export const CustomerSessionResourceComponents: z.ZodType = z.object({ 'buy_button': CustomerSessionResourceComponentsResourceBuyButton, 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheet, 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElement, @@ -12113,9 +19572,7 @@ export const CustomerSessionResourceComponents = z.object({ 'pricing_table': CustomerSessionResourceComponentsResourcePricingTable }); -export type CustomerSessionResourceComponentsModel = z.infer; - -export const CustomerSession = z.object({ +export const CustomerSession: z.ZodType = z.object({ 'client_secret': z.string(), 'components': CustomerSessionResourceComponents.optional(), 'created': z.number().int(), @@ -12125,121 +19582,91 @@ export const CustomerSession = z.object({ 'object': z.enum(['customer_session']) }); -export type CustomerSessionModel = z.infer; - -export const DeletedAccount = z.object({ +export const DeletedAccount: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['account']) }); -export type DeletedAccountModel = z.infer; - -export const DeletedApplePayDomain = z.object({ +export const DeletedApplePayDomain: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['apple_pay_domain']) }); -export type DeletedApplePayDomainModel = z.infer; - -export const DeletedCoupon = z.object({ +export const DeletedCoupon: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['coupon']) }); -export type DeletedCouponModel = z.infer; - -export const DeletedInvoiceitem = z.object({ +export const DeletedInvoiceitem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoiceitem']) }); -export type DeletedInvoiceitemModel = z.infer; - -export const DeletedPerson = z.object({ +export const DeletedPerson: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['person']) }); -export type DeletedPersonModel = z.infer; - -export const DeletedProductFeature = z.object({ +export const DeletedProductFeature: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product_feature']) }); -export type DeletedProductFeatureModel = z.infer; - -export const DeletedRadarValueList = z.object({ +export const DeletedRadarValueList: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list']) }); -export type DeletedRadarValueListModel = z.infer; - -export const DeletedRadarValueListItem = z.object({ +export const DeletedRadarValueListItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list_item']) }); -export type DeletedRadarValueListItemModel = z.infer; - -export const DeletedSubscriptionItem = z.object({ +export const DeletedSubscriptionItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['subscription_item']) }); -export type DeletedSubscriptionItemModel = z.infer; - -export const DeletedTerminalConfiguration = z.object({ +export const DeletedTerminalConfiguration: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.configuration']) }); -export type DeletedTerminalConfigurationModel = z.infer; - -export const DeletedTerminalLocation = z.object({ +export const DeletedTerminalLocation: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.location']) }); -export type DeletedTerminalLocationModel = z.infer; - -export const DeletedTerminalReader = z.object({ +export const DeletedTerminalReader: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.reader']) }); -export type DeletedTerminalReaderModel = z.infer; - -export const DeletedTestHelpersTestClock = z.object({ +export const DeletedTestHelpersTestClock: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['test_helpers.test_clock']) }); -export type DeletedTestHelpersTestClockModel = z.infer; - -export const DeletedWebhookEndpoint = z.object({ +export const DeletedWebhookEndpoint: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['webhook_endpoint']) }); -export type DeletedWebhookEndpointModel = z.infer; - -export const EntitlementsFeature = z.object({ +export const EntitlementsFeature: z.ZodType = z.object({ 'active': z.boolean(), 'id': z.string(), 'livemode': z.boolean(), @@ -12249,9 +19676,7 @@ export const EntitlementsFeature = z.object({ 'object': z.enum(['entitlements.feature']) }); -export type EntitlementsFeatureModel = z.infer; - -export const EntitlementsActiveEntitlement = z.object({ +export const EntitlementsActiveEntitlement: z.ZodType = z.object({ 'feature': z.union([z.string(), EntitlementsFeature]), 'id': z.string(), 'livemode': z.boolean(), @@ -12259,9 +19684,7 @@ export const EntitlementsActiveEntitlement = z.object({ 'object': z.enum(['entitlements.active_entitlement']) }); -export type EntitlementsActiveEntitlementModel = z.infer; - -export const EntitlementsActiveEntitlementSummary = z.object({ +export const EntitlementsActiveEntitlementSummary: z.ZodType = z.object({ 'customer': z.string(), 'entitlements': z.object({ 'data': z.array(EntitlementsActiveEntitlement), @@ -12273,15 +19696,11 @@ export const EntitlementsActiveEntitlementSummary = z.object({ 'object': z.enum(['entitlements.active_entitlement_summary']) }); -export type EntitlementsActiveEntitlementSummaryModel = z.infer; - -export const EntitlementsActiveEntitlementSummaryUpdated = z.object({ +export const EntitlementsActiveEntitlementSummaryUpdated: z.ZodType = z.object({ 'object': EntitlementsActiveEntitlementSummary }); -export type EntitlementsActiveEntitlementSummaryUpdatedModel = z.infer; - -export const EphemeralKey = z.object({ +export const EphemeralKey: z.ZodType = z.object({ 'created': z.number().int(), 'expires': z.number().int(), 'id': z.string(), @@ -12290,29 +19709,21 @@ export const EphemeralKey = z.object({ 'secret': z.string().optional() }); -export type EphemeralKeyModel = z.infer; - -export const Error = z.object({ +export const Error: z.ZodType = z.object({ 'error': z.lazy(() => ApiErrors) }); -export type ErrorModel = z.infer; - -export const NotificationEventData = z.object({ +export const NotificationEventData: z.ZodType = z.object({ 'object': z.object({}), 'previous_attributes': z.object({}).optional() }); -export type NotificationEventDataModel = z.infer; - -export const NotificationEventRequest = z.object({ +export const NotificationEventRequest: z.ZodType = z.object({ 'id': z.string(), 'idempotency_key': z.string() }); -export type NotificationEventRequestModel = z.infer; - -export const Event = z.object({ +export const Event: z.ZodType = z.object({ 'account': z.string().optional(), 'api_version': z.string(), 'context': z.string().optional(), @@ -12326,23 +19737,17 @@ export const Event = z.object({ 'type': z.enum(['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', 'balance_settings.updated', '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.account_numbers_updated', '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', 'financial_connections.account.upcoming_account_number_expiry', '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.overpaid', 'invoice.paid', 'invoice.payment_action_required', 'invoice.payment_attempt_required', 'invoice.payment_failed', 'invoice.payment_succeeded', 'invoice.sent', 'invoice.upcoming', 'invoice.updated', 'invoice.voided', 'invoice.will_be_due', 'invoice_payment.paid', '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', 'terminal.reader.action_updated', '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']) }); -export type EventModel = z.infer; - -export const ExchangeRate = z.object({ +export const ExchangeRate: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['exchange_rate']), 'rates': z.record(z.string(), z.number()) }); -export type ExchangeRateModel = z.infer; - -export const FileCreated = z.object({ +export const FileCreated: z.ZodType = z.object({ 'object': z.lazy(() => File) }); -export type FileCreatedModel = z.infer; - -export const FinancialConnectionsAccountOwner = z.object({ +export const FinancialConnectionsAccountOwner: z.ZodType = z.object({ 'email': z.string(), 'id': z.string(), 'name': z.string(), @@ -12353,9 +19758,7 @@ export const FinancialConnectionsAccountOwner = z.object({ 'refreshed_at': z.number().int() }); -export type FinancialConnectionsAccountOwnerModel = z.infer; - -export const FinancialConnectionsAccountOwnership = z.object({ +export const FinancialConnectionsAccountOwnership: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'object': z.enum(['financial_connections.account_ownership']), @@ -12367,9 +19770,7 @@ export const FinancialConnectionsAccountOwnership = z.object({ }) }); -export type FinancialConnectionsAccountOwnershipModel = z.infer; - -export const FinancialConnectionsAccount = z.object({ +export const FinancialConnectionsAccount: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]), 'account_numbers': z.array(BankConnectionsResourceAccountNumberDetails), 'balance': z.union([BankConnectionsResourceBalance]), @@ -12392,63 +19793,43 @@ export const FinancialConnectionsAccount = z.object({ 'transaction_refresh': z.union([BankConnectionsResourceTransactionRefresh]) }); -export type FinancialConnectionsAccountModel = z.infer; - -export const FinancialConnectionsAccountAccountNumbersUpdated = z.object({ +export const FinancialConnectionsAccountAccountNumbersUpdated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountAccountNumbersUpdatedModel = z.infer; - -export const FinancialConnectionsAccountCreated = z.object({ +export const FinancialConnectionsAccountCreated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountCreatedModel = z.infer; - -export const FinancialConnectionsAccountDeactivated = z.object({ +export const FinancialConnectionsAccountDeactivated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountDeactivatedModel = z.infer; - -export const FinancialConnectionsAccountDisconnected = z.object({ +export const FinancialConnectionsAccountDisconnected: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountDisconnectedModel = z.infer; - -export const FinancialConnectionsAccountReactivated = z.object({ +export const FinancialConnectionsAccountReactivated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountReactivatedModel = z.infer; - -export const FinancialConnectionsAccountRefreshedBalance = z.object({ +export const FinancialConnectionsAccountRefreshedBalance: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedBalanceModel = z.infer; - -export const FinancialConnectionsAccountRefreshedOwnership = z.object({ +export const FinancialConnectionsAccountRefreshedOwnership: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedOwnershipModel = z.infer; - -export const FinancialConnectionsAccountRefreshedTransactions = z.object({ +export const FinancialConnectionsAccountRefreshedTransactions: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedTransactionsModel = z.infer; - -export const FinancialConnectionsAccountUpcomingAccountNumberExpiry = z.object({ +export const FinancialConnectionsAccountUpcomingAccountNumberExpiry: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountUpcomingAccountNumberExpiryModel = z.infer; - -export const FinancialConnectionsSession = z.object({ +export const FinancialConnectionsSession: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]), 'accounts': z.object({ 'data': z.array(FinancialConnectionsAccount), @@ -12466,9 +19847,7 @@ export const FinancialConnectionsSession = z.object({ 'return_url': z.string().optional() }); -export type FinancialConnectionsSessionModel = z.infer; - -export const FinancialConnectionsTransaction = z.object({ +export const FinancialConnectionsTransaction: z.ZodType = z.object({ 'account': z.string(), 'amount': z.number().int(), 'currency': z.string(), @@ -12483,9 +19862,7 @@ export const FinancialConnectionsTransaction = z.object({ 'updated': z.number().int() }); -export type FinancialConnectionsTransactionModel = z.infer; - -export const FinancialReportingFinanceReportRunRunParameters = z.object({ +export const FinancialReportingFinanceReportRunRunParameters: z.ZodType = z.object({ 'columns': z.array(z.string()).optional(), 'connected_account': z.string().optional(), 'currency': z.string().optional(), @@ -12496,39 +19873,29 @@ export const FinancialReportingFinanceReportRunRunParameters = z.object({ 'timezone': z.string().optional() }); -export type FinancialReportingFinanceReportRunRunParametersModel = z.infer; - -export const ForwardedRequestContext = z.object({ +export const ForwardedRequestContext: z.ZodType = z.object({ 'destination_duration': z.number().int(), 'destination_ip_address': z.string() }); -export type ForwardedRequestContextModel = z.infer; - -export const ForwardedRequestHeader = z.object({ +export const ForwardedRequestHeader: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type ForwardedRequestHeaderModel = z.infer; - -export const ForwardedRequestDetails = z.object({ +export const ForwardedRequestDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'http_method': z.enum(['POST']) }); -export type ForwardedRequestDetailsModel = z.infer; - -export const ForwardedResponseDetails = z.object({ +export const ForwardedResponseDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'status': z.number().int() }); -export type ForwardedResponseDetailsModel = z.infer; - -export const ForwardingRequest = z.object({ +export const ForwardingRequest: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -12542,17 +19909,13 @@ export const ForwardingRequest = z.object({ 'url': z.string() }); -export type ForwardingRequestModel = z.infer; - -export const FundingInstructionsBankTransfer = z.object({ +export const FundingInstructionsBankTransfer: z.ZodType = z.object({ 'country': z.string(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress), 'type': z.enum(['eu_bank_transfer', 'jp_bank_transfer']) }); -export type FundingInstructionsBankTransferModel = z.infer; - -export const FundingInstructions = z.object({ +export const FundingInstructions: z.ZodType = z.object({ 'bank_transfer': FundingInstructionsBankTransfer, 'currency': z.string(), 'funding_type': z.enum(['bank_transfer']), @@ -12560,56 +19923,42 @@ export const FundingInstructions = z.object({ 'object': z.enum(['funding_instructions']) }); -export type FundingInstructionsModel = z.infer; - -export const GelatoDataDocumentReportDateOfBirth = z.object({ +export const GelatoDataDocumentReportDateOfBirth: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportDateOfBirthModel = z.infer; - -export const GelatoDataDocumentReportExpirationDate = z.object({ +export const GelatoDataDocumentReportExpirationDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportExpirationDateModel = z.infer; - -export const GelatoDataDocumentReportIssuedDate = z.object({ +export const GelatoDataDocumentReportIssuedDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportIssuedDateModel = z.infer; - -export const GelatoDataIdNumberReportDate = z.object({ +export const GelatoDataIdNumberReportDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataIdNumberReportDateModel = z.infer; - -export const GelatoDataVerifiedOutputsDate = z.object({ +export const GelatoDataVerifiedOutputsDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataVerifiedOutputsDateModel = z.infer; - -export const GelatoDocumentReportError = z.object({ +export const GelatoDocumentReportError: z.ZodType = z.object({ 'code': z.enum(['document_expired', 'document_type_not_supported', 'document_unverified_other']), 'reason': z.string() }); -export type GelatoDocumentReportErrorModel = z.infer; - -export const GelatoDocumentReport = z.object({ +export const GelatoDocumentReport: z.ZodType = z.object({ 'address': z.union([Address]), 'dob': z.union([GelatoDataDocumentReportDateOfBirth]).optional(), 'error': z.union([GelatoDocumentReportError]), @@ -12627,31 +19976,23 @@ export const GelatoDocumentReport = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoDocumentReportModel = z.infer; - -export const GelatoEmailReportError = z.object({ +export const GelatoEmailReportError: z.ZodType = z.object({ 'code': z.enum(['email_unverified_other', 'email_verification_declined']), 'reason': z.string() }); -export type GelatoEmailReportErrorModel = z.infer; - -export const GelatoEmailReport = z.object({ +export const GelatoEmailReport: z.ZodType = z.object({ 'email': z.string(), 'error': z.union([GelatoEmailReportError]), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoEmailReportModel = z.infer; - -export const GelatoIdNumberReportError = z.object({ +export const GelatoIdNumberReportError: z.ZodType = z.object({ 'code': z.enum(['id_number_insufficient_document_data', 'id_number_mismatch', 'id_number_unverified_other']), 'reason': z.string() }); -export type GelatoIdNumberReportErrorModel = z.infer; - -export const GelatoIdNumberReport = z.object({ +export const GelatoIdNumberReport: z.ZodType = z.object({ 'dob': z.union([GelatoDataIdNumberReportDate]).optional(), 'error': z.union([GelatoIdNumberReportError]), 'first_name': z.string(), @@ -12661,117 +20002,85 @@ export const GelatoIdNumberReport = z.object({ 'status': z.enum(['unverified', 'verified']) }); -export type GelatoIdNumberReportModel = z.infer; - -export const GelatoPhoneReportError = z.object({ +export const GelatoPhoneReportError: z.ZodType = z.object({ 'code': z.enum(['phone_unverified_other', 'phone_verification_declined']), 'reason': z.string() }); -export type GelatoPhoneReportErrorModel = z.infer; - -export const GelatoPhoneReport = z.object({ +export const GelatoPhoneReport: z.ZodType = z.object({ 'error': z.union([GelatoPhoneReportError]), 'phone': z.string(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoPhoneReportModel = z.infer; - -export const GelatoProvidedDetails = z.object({ +export const GelatoProvidedDetails: z.ZodType = z.object({ 'email': z.string().optional(), 'phone': z.string().optional() }); -export type GelatoProvidedDetailsModel = z.infer; - -export const GelatoRelatedPerson = z.object({ +export const GelatoRelatedPerson: z.ZodType = z.object({ 'account': z.string(), 'person': z.string() }); -export type GelatoRelatedPersonModel = z.infer; - -export const GelatoReportDocumentOptions = z.object({ +export const GelatoReportDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoReportDocumentOptionsModel = z.infer; - -export const GelatoReportIdNumberOptions = z.object({ +export const GelatoReportIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoReportIdNumberOptionsModel = z.infer; - -export const GelatoSelfieReportError = z.object({ +export const GelatoSelfieReportError: z.ZodType = z.object({ 'code': z.enum(['selfie_document_missing_photo', 'selfie_face_mismatch', 'selfie_manipulated', 'selfie_unverified_other']), 'reason': z.string() }); -export type GelatoSelfieReportErrorModel = z.infer; - -export const GelatoSelfieReport = z.object({ +export const GelatoSelfieReport: z.ZodType = z.object({ 'document': z.string(), 'error': z.union([GelatoSelfieReportError]), 'selfie': z.string(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoSelfieReportModel = z.infer; - -export const GelatoSessionDocumentOptions = z.object({ +export const GelatoSessionDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoSessionDocumentOptionsModel = z.infer; - -export const GelatoSessionEmailOptions = z.object({ +export const GelatoSessionEmailOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionEmailOptionsModel = z.infer; - -export const GelatoSessionIdNumberOptions = z.object({ +export const GelatoSessionIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoSessionIdNumberOptionsModel = z.infer; - -export const GelatoSessionLastError = z.object({ +export const GelatoSessionLastError: z.ZodType = z.object({ 'code': z.enum(['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']), 'reason': z.string() }); -export type GelatoSessionLastErrorModel = z.infer; - -export const GelatoSessionMatchingOptions = z.object({ +export const GelatoSessionMatchingOptions: z.ZodType = z.object({ 'dob': z.enum(['none', 'similar']).optional(), 'name': z.enum(['none', 'similar']).optional() }); -export type GelatoSessionMatchingOptionsModel = z.infer; - -export const GelatoSessionPhoneOptions = z.object({ +export const GelatoSessionPhoneOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionPhoneOptionsModel = z.infer; - -export const GelatoVerificationReportOptions = z.object({ +export const GelatoVerificationReportOptions: z.ZodType = z.object({ 'document': GelatoReportDocumentOptions.optional(), 'id_number': GelatoReportIdNumberOptions.optional() }); -export type GelatoVerificationReportOptionsModel = z.infer; - -export const GelatoVerificationSessionOptions = z.object({ +export const GelatoVerificationSessionOptions: z.ZodType = z.object({ 'document': GelatoSessionDocumentOptions.optional(), 'email': GelatoSessionEmailOptions.optional(), 'id_number': GelatoSessionIdNumberOptions.optional(), @@ -12779,9 +20088,7 @@ export const GelatoVerificationSessionOptions = z.object({ 'phone': GelatoSessionPhoneOptions.optional() }); -export type GelatoVerificationSessionOptionsModel = z.infer; - -export const GelatoVerifiedOutputs = z.object({ +export const GelatoVerifiedOutputs: z.ZodType = z.object({ 'address': z.union([Address]), 'dob': z.union([GelatoDataVerifiedOutputsDate]).optional(), 'email': z.string(), @@ -12795,9 +20102,7 @@ export const GelatoVerifiedOutputs = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoVerifiedOutputsModel = z.infer; - -export const IdentityVerificationReport = z.object({ +export const IdentityVerificationReport: z.ZodType = z.object({ 'client_reference_id': z.string(), 'created': z.number().int(), 'document': GelatoDocumentReport.optional(), @@ -12814,15 +20119,11 @@ export const IdentityVerificationReport = z.object({ 'verification_session': z.string() }); -export type IdentityVerificationReportModel = z.infer; - -export const VerificationSessionRedaction = z.object({ +export const VerificationSessionRedaction: z.ZodType = z.object({ 'status': z.enum(['processing', 'redacted']) }); -export type VerificationSessionRedactionModel = z.infer; - -export const IdentityVerificationSession = z.object({ +export const IdentityVerificationSession: z.ZodType = z.object({ 'client_reference_id': z.string(), 'client_secret': z.string(), 'created': z.number().int(), @@ -12844,53 +20145,37 @@ export const IdentityVerificationSession = z.object({ 'verified_outputs': z.union([GelatoVerifiedOutputs]).optional() }); -export type IdentityVerificationSessionModel = z.infer; - -export const IdentityVerificationSessionCanceled = z.object({ +export const IdentityVerificationSessionCanceled: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionCanceledModel = z.infer; - -export const IdentityVerificationSessionCreated = z.object({ +export const IdentityVerificationSessionCreated: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionCreatedModel = z.infer; - -export const IdentityVerificationSessionProcessing = z.object({ +export const IdentityVerificationSessionProcessing: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionProcessingModel = z.infer; - -export const IdentityVerificationSessionRedacted = z.object({ +export const IdentityVerificationSessionRedacted: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionRedactedModel = z.infer; - -export const IdentityVerificationSessionRequiresInput = z.object({ +export const IdentityVerificationSessionRequiresInput: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionRequiresInputModel = z.infer; - -export const IdentityVerificationSessionVerified = z.object({ +export const IdentityVerificationSessionVerified: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionVerifiedModel = z.infer; - -export const TreasurySharedResourceBillingDetails = z.object({ +export const TreasurySharedResourceBillingDetails: z.ZodType = z.object({ 'address': Address, 'email': z.string(), 'name': z.string() }); -export type TreasurySharedResourceBillingDetailsModel = z.infer; - -export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const InboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -12901,125 +20186,85 @@ export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const InboundTransfers = z.object({ +export const InboundTransfers: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'type': z.enum(['us_bank_account']), 'us_bank_account': InboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type InboundTransfersModel = z.infer; - -export const InvoiceCreated = z.object({ +export const InvoiceCreated: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceCreatedModel = z.infer; - -export const InvoiceDeleted = z.object({ +export const InvoiceDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceDeletedModel = z.infer; - -export const InvoiceFinalizationFailed = z.object({ +export const InvoiceFinalizationFailed: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceFinalizationFailedModel = z.infer; - -export const InvoiceFinalized = z.object({ +export const InvoiceFinalized: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceFinalizedModel = z.infer; - -export const InvoiceMarkedUncollectible = z.object({ +export const InvoiceMarkedUncollectible: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceMarkedUncollectibleModel = z.infer; - -export const InvoiceOverdue = z.object({ +export const InvoiceOverdue: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceOverdueModel = z.infer; - -export const InvoiceOverpaid = z.object({ +export const InvoiceOverpaid: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceOverpaidModel = z.infer; - -export const InvoicePaid = z.object({ +export const InvoicePaid: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaidModel = z.infer; - -export const InvoicePaymentActionRequired = z.object({ +export const InvoicePaymentActionRequired: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentActionRequiredModel = z.infer; - -export const InvoicePaymentAttemptRequired = z.object({ +export const InvoicePaymentAttemptRequired: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentAttemptRequiredModel = z.infer; - -export const InvoicePaymentFailed = z.object({ +export const InvoicePaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentFailedModel = z.infer; - -export const InvoicePaymentSucceeded = z.object({ +export const InvoicePaymentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentSucceededModel = z.infer; - -export const InvoiceSent = z.object({ +export const InvoiceSent: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceSentModel = z.infer; - -export const InvoiceUpcoming = z.object({ +export const InvoiceUpcoming: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceUpcomingModel = z.infer; - -export const InvoiceUpdated = z.object({ +export const InvoiceUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceUpdatedModel = z.infer; - -export const InvoiceVoided = z.object({ +export const InvoiceVoided: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceVoidedModel = z.infer; - -export const InvoiceWillBeDue = z.object({ +export const InvoiceWillBeDue: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceWillBeDueModel = z.infer; - -export const InvoicePaymentPaid = z.object({ +export const InvoicePaymentPaid: z.ZodType = z.object({ 'object': z.lazy(() => InvoicePayment) }); -export type InvoicePaymentPaidModel = z.infer; - -export const InvoiceRenderingTemplate = z.object({ +export const InvoiceRenderingTemplate: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -13030,22 +20275,16 @@ export const InvoiceRenderingTemplate = z.object({ 'version': z.number().int() }); -export type InvoiceRenderingTemplateModel = z.infer; - -export const InvoiceSettingQuoteSetting = z.object({ +export const InvoiceSettingQuoteSetting: z.ZodType = z.object({ 'days_until_due': z.number().int(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingQuoteSettingModel = z.infer; - -export const ProrationDetails = z.object({ +export const ProrationDetails: z.ZodType = z.object({ 'discount_amounts': z.array(DiscountsResourceDiscountAmount) }); -export type ProrationDetailsModel = z.infer; - -export const Invoiceitem = z.object({ +export const Invoiceitem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -13069,174 +20308,118 @@ export const Invoiceitem = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]) }); -export type InvoiceitemModel = z.infer; - -export const InvoiceitemCreated = z.object({ +export const InvoiceitemCreated: z.ZodType = z.object({ 'object': Invoiceitem }); -export type InvoiceitemCreatedModel = z.infer; - -export const InvoiceitemDeleted = z.object({ +export const InvoiceitemDeleted: z.ZodType = z.object({ 'object': Invoiceitem }); -export type InvoiceitemDeletedModel = z.infer; - -export const IssuingAuthorizationCreated = z.object({ +export const IssuingAuthorizationCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationCreatedModel = z.infer; - -export const IssuingAuthorizationRequest = z.object({ +export const IssuingAuthorizationRequest: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationRequestModel = z.infer; - -export const IssuingAuthorizationUpdated = z.object({ +export const IssuingAuthorizationUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationUpdatedModel = z.infer; - -export const IssuingCardCreated = z.object({ +export const IssuingCardCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingCard) }); -export type IssuingCardCreatedModel = z.infer; - -export const IssuingCardUpdated = z.object({ +export const IssuingCardUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingCard) }); -export type IssuingCardUpdatedModel = z.infer; - -export const IssuingCardholderCreated = z.object({ +export const IssuingCardholderCreated: z.ZodType = z.object({ 'object': IssuingCardholder }); -export type IssuingCardholderCreatedModel = z.infer; - -export const IssuingCardholderUpdated = z.object({ +export const IssuingCardholderUpdated: z.ZodType = z.object({ 'object': IssuingCardholder }); -export type IssuingCardholderUpdatedModel = z.infer; - -export const IssuingDisputeClosed = z.object({ +export const IssuingDisputeClosed: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeClosedModel = z.infer; - -export const IssuingDisputeCreated = z.object({ +export const IssuingDisputeCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeCreatedModel = z.infer; - -export const IssuingDisputeFundsReinstated = z.object({ +export const IssuingDisputeFundsReinstated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeFundsReinstatedModel = z.infer; - -export const IssuingDisputeFundsRescinded = z.object({ +export const IssuingDisputeFundsRescinded: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeFundsRescindedModel = z.infer; - -export const IssuingDisputeSubmitted = z.object({ +export const IssuingDisputeSubmitted: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeSubmittedModel = z.infer; - -export const IssuingDisputeUpdated = z.object({ +export const IssuingDisputeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeUpdatedModel = z.infer; - -export const IssuingPersonalizationDesignActivated = z.object({ +export const IssuingPersonalizationDesignActivated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignActivatedModel = z.infer; - -export const IssuingPersonalizationDesignDeactivated = z.object({ +export const IssuingPersonalizationDesignDeactivated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignDeactivatedModel = z.infer; - -export const IssuingPersonalizationDesignRejected = z.object({ +export const IssuingPersonalizationDesignRejected: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignRejectedModel = z.infer; - -export const IssuingPersonalizationDesignUpdated = z.object({ +export const IssuingPersonalizationDesignUpdated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignUpdatedModel = z.infer; - -export const IssuingTokenCreated = z.object({ +export const IssuingTokenCreated: z.ZodType = z.object({ 'object': IssuingToken }); -export type IssuingTokenCreatedModel = z.infer; - -export const IssuingTokenUpdated = z.object({ +export const IssuingTokenUpdated: z.ZodType = z.object({ 'object': IssuingToken }); -export type IssuingTokenUpdatedModel = z.infer; - -export const IssuingTransactionCreated = z.object({ +export const IssuingTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionCreatedModel = z.infer; - -export const IssuingTransactionPurchaseDetailsReceiptUpdated = z.object({ +export const IssuingTransactionPurchaseDetailsReceiptUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionPurchaseDetailsReceiptUpdatedModel = z.infer; - -export const IssuingTransactionUpdated = z.object({ +export const IssuingTransactionUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionUpdatedModel = z.infer; - -export const LoginLink = z.object({ +export const LoginLink: z.ZodType = z.object({ 'created': z.number().int(), 'object': z.enum(['login_link']), 'url': z.string() }); -export type LoginLinkModel = z.infer; - -export const MandateUpdated = z.object({ +export const MandateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Mandate) }); -export type MandateUpdatedModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -13247,25 +20430,19 @@ export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetails = z.object({ +export const OutboundPaymentsPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundPaymentsPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundPaymentsPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundPaymentsPaymentMethodDetailsModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -13276,18 +20453,14 @@ export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetails = z.object({ +export const OutboundTransfersPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundTransfersPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundTransfersPaymentMethodDetailsModel = z.infer; - -export const PaymentAttemptRecord = z.object({ +export const PaymentAttemptRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -13311,70 +20484,48 @@ export const PaymentAttemptRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]) }); -export type PaymentAttemptRecordModel = z.infer; - -export const PaymentFlowsAmountDetailsClient = z.object({ +export const PaymentFlowsAmountDetailsClient: z.ZodType = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsClientModel = z.infer; - -export const PaymentFlowsInstallmentOptions = z.object({ +export const PaymentFlowsInstallmentOptions: z.ZodType = z.object({ 'enabled': z.boolean(), 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type PaymentFlowsInstallmentOptionsModel = z.infer; - -export const PaymentIntentAmountCapturableUpdated = z.object({ +export const PaymentIntentAmountCapturableUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentAmountCapturableUpdatedModel = z.infer; - -export const PaymentIntentCanceled = z.object({ +export const PaymentIntentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentCanceledModel = z.infer; - -export const PaymentIntentCreated = z.object({ +export const PaymentIntentCreated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentCreatedModel = z.infer; - -export const PaymentIntentPartiallyFunded = z.object({ +export const PaymentIntentPartiallyFunded: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentPartiallyFundedModel = z.infer; - -export const PaymentIntentPaymentFailed = z.object({ +export const PaymentIntentPaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentPaymentFailedModel = z.infer; - -export const PaymentIntentProcessing = z.object({ +export const PaymentIntentProcessing: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentProcessingModel = z.infer; - -export const PaymentIntentRequiresAction = z.object({ +export const PaymentIntentRequiresAction: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentRequiresActionModel = z.infer; - -export const PaymentIntentSucceeded = z.object({ +export const PaymentIntentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentSucceededModel = z.infer; - -export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const PaymentIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'installments': PaymentFlowsInstallmentOptions.optional(), 'request_incremental_authorization_support': z.boolean().optional(), @@ -13384,60 +20535,42 @@ export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const PaymentLinkCreated = z.object({ +export const PaymentLinkCreated: z.ZodType = z.object({ 'object': PaymentLink }); -export type PaymentLinkCreatedModel = z.infer; - -export const PaymentLinkUpdated = z.object({ +export const PaymentLinkUpdated: z.ZodType = z.object({ 'object': PaymentLink }); -export type PaymentLinkUpdatedModel = z.infer; - -export const PaymentMethodAttached = z.object({ +export const PaymentMethodAttached: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodAttachedModel = z.infer; - -export const PaymentMethodAutomaticallyUpdated = z.object({ +export const PaymentMethodAutomaticallyUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodAutomaticallyUpdatedModel = z.infer; - -export const PaymentMethodDetached = z.object({ +export const PaymentMethodDetached: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodDetachedModel = z.infer; - -export const PaymentMethodUpdated = z.object({ +export const PaymentMethodUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodUpdatedModel = z.infer; - -export const PaymentMethodConfigResourceDisplayPreference = z.object({ +export const PaymentMethodConfigResourceDisplayPreference: z.ZodType = z.object({ 'overridable': z.boolean(), 'preference': z.enum(['none', 'off', 'on']), 'value': z.enum(['off', 'on']) }); -export type PaymentMethodConfigResourceDisplayPreferenceModel = z.infer; - -export const PaymentMethodConfigResourcePaymentMethodProperties = z.object({ +export const PaymentMethodConfigResourcePaymentMethodProperties: z.ZodType = z.object({ 'available': z.boolean(), 'display_preference': PaymentMethodConfigResourceDisplayPreference }); -export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = z.infer; - -export const PaymentMethodConfiguration = z.object({ +export const PaymentMethodConfiguration: z.ZodType = z.object({ 'acss_debit': PaymentMethodConfigResourcePaymentMethodProperties.optional(), 'active': z.boolean(), 'affirm': PaymentMethodConfigResourcePaymentMethodProperties.optional(), @@ -13501,22 +20634,16 @@ export const PaymentMethodConfiguration = z.object({ 'zip': PaymentMethodConfigResourcePaymentMethodProperties.optional() }); -export type PaymentMethodConfigurationModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatusDetails = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatusDetails: z.ZodType = z.object({ 'error_message': z.string() }); -export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatus = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatus: z.ZodType = z.object({ 'status': z.enum(['active', 'inactive']), 'status_details': PaymentMethodDomainResourcePaymentMethodStatusDetails.optional() }); -export type PaymentMethodDomainResourcePaymentMethodStatusModel = z.infer; - -export const PaymentMethodDomain = z.object({ +export const PaymentMethodDomain: z.ZodType = z.object({ 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'created': z.number().int(), @@ -13531,163 +20658,113 @@ export const PaymentMethodDomain = z.object({ 'paypal': PaymentMethodDomainResourcePaymentMethodStatus }); -export type PaymentMethodDomainModel = z.infer; - -export const PayoutCanceled = z.object({ +export const PayoutCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutCanceledModel = z.infer; - -export const PayoutCreated = z.object({ +export const PayoutCreated: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutCreatedModel = z.infer; - -export const PayoutFailed = z.object({ +export const PayoutFailed: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutFailedModel = z.infer; - -export const PayoutPaid = z.object({ +export const PayoutPaid: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutPaidModel = z.infer; - -export const PayoutReconciliationCompleted = z.object({ +export const PayoutReconciliationCompleted: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutReconciliationCompletedModel = z.infer; - -export const PayoutUpdated = z.object({ +export const PayoutUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutUpdatedModel = z.infer; - -export const PersonCreated = z.object({ +export const PersonCreated: z.ZodType = z.object({ 'object': Person }); -export type PersonCreatedModel = z.infer; - -export const PersonDeleted = z.object({ +export const PersonDeleted: z.ZodType = z.object({ 'object': Person }); -export type PersonDeletedModel = z.infer; - -export const PersonUpdated = z.object({ +export const PersonUpdated: z.ZodType = z.object({ 'object': Person }); -export type PersonUpdatedModel = z.infer; - -export const PlanCreated = z.object({ +export const PlanCreated: z.ZodType = z.object({ 'object': z.lazy(() => Plan) }); -export type PlanCreatedModel = z.infer; - -export const PlanDeleted = z.object({ +export const PlanDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Plan) }); -export type PlanDeletedModel = z.infer; - -export const PlanUpdated = z.object({ +export const PlanUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Plan) }); -export type PlanUpdatedModel = z.infer; - -export const PriceCreated = z.object({ +export const PriceCreated: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceCreatedModel = z.infer; - -export const PriceDeleted = z.object({ +export const PriceDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceDeletedModel = z.infer; - -export const PriceUpdated = z.object({ +export const PriceUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceUpdatedModel = z.infer; - -export const ProductCreated = z.object({ +export const ProductCreated: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductCreatedModel = z.infer; - -export const ProductDeleted = z.object({ +export const ProductDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductDeletedModel = z.infer; - -export const ProductUpdated = z.object({ +export const ProductUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductUpdatedModel = z.infer; - -export const ProductFeature = z.object({ +export const ProductFeature: z.ZodType = z.object({ 'entitlement_feature': EntitlementsFeature, 'id': z.string(), 'livemode': z.boolean(), 'object': z.enum(['product_feature']) }); -export type ProductFeatureModel = z.infer; - -export const PromotionCodeCreated = z.object({ +export const PromotionCodeCreated: z.ZodType = z.object({ 'object': z.lazy(() => PromotionCode) }); -export type PromotionCodeCreatedModel = z.infer; - -export const PromotionCodeUpdated = z.object({ +export const PromotionCodeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PromotionCode) }); -export type PromotionCodeUpdatedModel = z.infer; - -export const QuotesResourceAutomaticTax = z.object({ +export const QuotesResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), 'provider': z.string(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type QuotesResourceAutomaticTaxModel = z.infer; - -export const QuotesResourceTotalDetailsResourceBreakdown = z.object({ +export const QuotesResourceTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type QuotesResourceTotalDetailsResourceBreakdownModel = z.infer; - -export const QuotesResourceTotalDetails = z.object({ +export const QuotesResourceTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int(), 'amount_tax': z.number().int(), 'breakdown': QuotesResourceTotalDetailsResourceBreakdown.optional() }); -export type QuotesResourceTotalDetailsModel = z.infer; - -export const QuotesResourceRecurring = z.object({ +export const QuotesResourceRecurring: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'interval': z.enum(['day', 'month', 'week', 'year']), @@ -13695,9 +20772,7 @@ export const QuotesResourceRecurring = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceRecurringModel = z.infer; - -export const QuotesResourceUpfront = z.object({ +export const QuotesResourceUpfront: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'line_items': z.object({ @@ -13709,36 +20784,28 @@ export const QuotesResourceUpfront = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceUpfrontModel = z.infer; - -export const QuotesResourceComputed = z.object({ +export const QuotesResourceComputed: z.ZodType = z.object({ 'recurring': z.union([QuotesResourceRecurring]), 'upfront': QuotesResourceUpfront }); -export type QuotesResourceComputedModel = z.infer; - export const QuotesResourceFromQuote: z.ZodType = z.object({ 'is_revision': z.boolean(), 'quote': z.union([z.string(), z.lazy(() => Quote)]) }); -export const QuotesResourceStatusTransitions = z.object({ +export const QuotesResourceStatusTransitions: z.ZodType = z.object({ 'accepted_at': z.number().int(), 'canceled_at': z.number().int(), 'finalized_at': z.number().int() }); -export type QuotesResourceStatusTransitionsModel = z.infer; - -export const QuotesResourceSubscriptionDataBillingMode = z.object({ +export const QuotesResourceSubscriptionDataBillingMode: z.ZodType = z.object({ 'flexible': SubscriptionsResourceBillingModeFlexible.optional(), 'type': z.enum(['classic', 'flexible']) }); -export type QuotesResourceSubscriptionDataBillingModeModel = z.infer; - -export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ +export const QuotesResourceSubscriptionDataSubscriptionData: z.ZodType = z.object({ 'billing_mode': QuotesResourceSubscriptionDataBillingMode, 'description': z.string(), 'effective_date': z.number().int(), @@ -13746,16 +20813,12 @@ export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ 'trial_period_days': z.number().int() }); -export type QuotesResourceSubscriptionDataSubscriptionDataModel = z.infer; - -export const QuotesResourceTransferData = z.object({ +export const QuotesResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_percent': z.number(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type QuotesResourceTransferDataModel = z.infer; - export const Quote: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), @@ -13799,31 +20862,23 @@ export const Quote: z.ZodType = z.object({ 'transfer_data': z.union([QuotesResourceTransferData]) }); -export const QuoteAccepted = z.object({ +export const QuoteAccepted: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteAcceptedModel = z.infer; - -export const QuoteCanceled = z.object({ +export const QuoteCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteCanceledModel = z.infer; - -export const QuoteCreated = z.object({ +export const QuoteCreated: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteCreatedModel = z.infer; - -export const QuoteFinalized = z.object({ +export const QuoteFinalized: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteFinalizedModel = z.infer; - -export const RadarEarlyFraudWarning = z.object({ +export const RadarEarlyFraudWarning: z.ZodType = z.object({ 'actionable': z.boolean(), 'charge': z.union([z.string(), z.lazy(() => Charge)]), 'created': z.number().int(), @@ -13834,21 +20889,15 @@ export const RadarEarlyFraudWarning = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional() }); -export type RadarEarlyFraudWarningModel = z.infer; - -export const RadarEarlyFraudWarningCreated = z.object({ +export const RadarEarlyFraudWarningCreated: z.ZodType = z.object({ 'object': RadarEarlyFraudWarning }); -export type RadarEarlyFraudWarningCreatedModel = z.infer; - -export const RadarEarlyFraudWarningUpdated = z.object({ +export const RadarEarlyFraudWarningUpdated: z.ZodType = z.object({ 'object': RadarEarlyFraudWarning }); -export type RadarEarlyFraudWarningUpdatedModel = z.infer; - -export const RadarValueListItem = z.object({ +export const RadarValueListItem: z.ZodType = z.object({ 'created': z.number().int(), 'created_by': z.string(), 'id': z.string(), @@ -13858,9 +20907,7 @@ export const RadarValueListItem = z.object({ 'value_list': z.string() }); -export type RadarValueListItemModel = z.infer; - -export const RadarValueList = z.object({ +export const RadarValueList: z.ZodType = z.object({ 'alias': z.string(), 'created': z.number().int(), 'created_by': z.string(), @@ -13878,34 +20925,24 @@ export const RadarValueList = z.object({ 'object': z.enum(['radar.value_list']) }); -export type RadarValueListModel = z.infer; - -export const ReceivedPaymentMethodDetailsFinancialAccount = z.object({ +export const ReceivedPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type ReceivedPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const RefundCreated = z.object({ +export const RefundCreated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundCreatedModel = z.infer; - -export const RefundFailed = z.object({ +export const RefundFailed: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundFailedModel = z.infer; - -export const RefundUpdated = z.object({ +export const RefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundUpdatedModel = z.infer; - -export const ReportingReportRun = z.object({ +export const ReportingReportRun: z.ZodType = z.object({ 'created': z.number().int(), 'error': z.string(), 'id': z.string(), @@ -13918,21 +20955,15 @@ export const ReportingReportRun = z.object({ 'succeeded_at': z.number().int() }); -export type ReportingReportRunModel = z.infer; - -export const ReportingReportRunFailed = z.object({ +export const ReportingReportRunFailed: z.ZodType = z.object({ 'object': ReportingReportRun }); -export type ReportingReportRunFailedModel = z.infer; - -export const ReportingReportRunSucceeded = z.object({ +export const ReportingReportRunSucceeded: z.ZodType = z.object({ 'object': ReportingReportRun }); -export type ReportingReportRunSucceededModel = z.infer; - -export const ReportingReportType = z.object({ +export const ReportingReportType: z.ZodType = z.object({ 'data_available_end': z.number().int(), 'data_available_start': z.number().int(), 'default_columns': z.array(z.string()), @@ -13944,33 +20975,23 @@ export const ReportingReportType = z.object({ 'version': z.number().int() }); -export type ReportingReportTypeModel = z.infer; - -export const ReportingReportTypeUpdated = z.object({ +export const ReportingReportTypeUpdated: z.ZodType = z.object({ 'object': ReportingReportType }); -export type ReportingReportTypeUpdatedModel = z.infer; - -export const ReviewClosed = z.object({ +export const ReviewClosed: z.ZodType = z.object({ 'object': z.lazy(() => Review) }); -export type ReviewClosedModel = z.infer; - -export const ReviewOpened = z.object({ +export const ReviewOpened: z.ZodType = z.object({ 'object': z.lazy(() => Review) }); -export type ReviewOpenedModel = z.infer; - -export const SigmaScheduledQueryRunError = z.object({ +export const SigmaScheduledQueryRunError: z.ZodType = z.object({ 'message': z.string() }); -export type SigmaScheduledQueryRunErrorModel = z.infer; - -export const ScheduledQueryRun = z.object({ +export const ScheduledQueryRun: z.ZodType = z.object({ 'created': z.number().int(), 'data_load_time': z.number().int(), 'error': SigmaScheduledQueryRunError.optional(), @@ -13984,89 +21005,61 @@ export const ScheduledQueryRun = z.object({ 'title': z.string() }); -export type ScheduledQueryRunModel = z.infer; - -export const SetupIntentCanceled = z.object({ +export const SetupIntentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentCanceledModel = z.infer; - -export const SetupIntentCreated = z.object({ +export const SetupIntentCreated: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentCreatedModel = z.infer; - -export const SetupIntentRequiresAction = z.object({ +export const SetupIntentRequiresAction: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentRequiresActionModel = z.infer; - -export const SetupIntentSetupFailed = z.object({ +export const SetupIntentSetupFailed: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentSetupFailedModel = z.infer; - -export const SetupIntentSucceeded = z.object({ +export const SetupIntentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentSucceededModel = z.infer; - -export const SetupIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const SetupIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const SigmaScheduledQueryRunCreated = z.object({ +export const SigmaScheduledQueryRunCreated: z.ZodType = z.object({ 'object': ScheduledQueryRun }); -export type SigmaScheduledQueryRunCreatedModel = z.infer; - -export const SourceCanceled = z.object({ +export const SourceCanceled: z.ZodType = z.object({ 'object': Source }); -export type SourceCanceledModel = z.infer; - -export const SourceChargeable = z.object({ +export const SourceChargeable: z.ZodType = z.object({ 'object': Source }); -export type SourceChargeableModel = z.infer; - -export const SourceFailed = z.object({ +export const SourceFailed: z.ZodType = z.object({ 'object': Source }); -export type SourceFailedModel = z.infer; - -export const SourceMandateNotificationAcssDebitData = z.object({ +export const SourceMandateNotificationAcssDebitData: z.ZodType = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceMandateNotificationAcssDebitDataModel = z.infer; - -export const SourceMandateNotificationBacsDebitData = z.object({ +export const SourceMandateNotificationBacsDebitData: z.ZodType = z.object({ 'last4': z.string().optional() }); -export type SourceMandateNotificationBacsDebitDataModel = z.infer; - -export const SourceMandateNotificationSepaDebitData = z.object({ +export const SourceMandateNotificationSepaDebitData: z.ZodType = z.object({ 'creditor_identifier': z.string().optional(), 'last4': z.string().optional(), 'mandate_reference': z.string().optional() }); -export type SourceMandateNotificationSepaDebitDataModel = z.infer; - -export const SourceMandateNotification_1 = z.object({ +export const SourceMandateNotification_1: z.ZodType = z.object({ 'acss_debit': SourceMandateNotificationAcssDebitData.optional(), 'amount': z.number().int(), 'bacs_debit': SourceMandateNotificationBacsDebitData.optional(), @@ -14081,30 +21074,22 @@ export const SourceMandateNotification_1 = z.object({ 'type': z.string() }); -export type SourceMandateNotification_1Model = z.infer; - -export const SourceMandateNotification = z.object({ +export const SourceMandateNotification: z.ZodType = z.object({ 'object': SourceMandateNotification_1 }); -export type SourceMandateNotificationModel = z.infer; - -export const SourceRefundAttributesRequired = z.object({ +export const SourceRefundAttributesRequired: z.ZodType = z.object({ 'object': Source }); -export type SourceRefundAttributesRequiredModel = z.infer; - -export const SourceTransactionAchCreditTransferData = z.object({ +export const SourceTransactionAchCreditTransferData: z.ZodType = z.object({ 'customer_data': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'routing_number': z.string().optional() }); -export type SourceTransactionAchCreditTransferDataModel = z.infer; - -export const SourceTransactionChfCreditTransferData = z.object({ +export const SourceTransactionChfCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_address_country': z.string().optional(), 'sender_address_line1': z.string().optional(), @@ -14112,9 +21097,7 @@ export const SourceTransactionChfCreditTransferData = z.object({ 'sender_name': z.string().optional() }); -export type SourceTransactionChfCreditTransferDataModel = z.infer; - -export const SourceTransactionGbpCreditTransferData = z.object({ +export const SourceTransactionGbpCreditTransferData: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'funding_method': z.string().optional(), 'last4': z.string().optional(), @@ -14124,24 +21107,18 @@ export const SourceTransactionGbpCreditTransferData = z.object({ 'sender_sort_code': z.string().optional() }); -export type SourceTransactionGbpCreditTransferDataModel = z.infer; - -export const SourceTransactionPaperCheckData = z.object({ +export const SourceTransactionPaperCheckData: z.ZodType = z.object({ 'available_at': z.string().optional(), 'invoices': z.string().optional() }); -export type SourceTransactionPaperCheckDataModel = z.infer; - -export const SourceTransactionSepaCreditTransferData = z.object({ +export const SourceTransactionSepaCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_iban': z.string().optional(), 'sender_name': z.string().optional() }); -export type SourceTransactionSepaCreditTransferDataModel = z.infer; - -export const SourceTransaction = z.object({ +export const SourceTransaction: z.ZodType = z.object({ 'ach_credit_transfer': SourceTransactionAchCreditTransferData.optional(), 'amount': z.number().int(), 'chf_credit_transfer': SourceTransactionChfCreditTransferData.optional(), @@ -14158,84 +21135,58 @@ export const SourceTransaction = z.object({ 'type': z.enum(['ach_credit_transfer', 'ach_debit', 'alipay', 'bancontact', 'card', 'card_present', 'eps', 'giropay', 'ideal', 'klarna', 'multibanco', 'p24', 'sepa_debit', 'sofort', 'three_d_secure', 'wechat']) }); -export type SourceTransactionModel = z.infer; - -export const SourceTransactionCreated = z.object({ +export const SourceTransactionCreated: z.ZodType = z.object({ 'object': SourceTransaction }); -export type SourceTransactionCreatedModel = z.infer; - -export const SourceTransactionUpdated = z.object({ +export const SourceTransactionUpdated: z.ZodType = z.object({ 'object': SourceTransaction }); -export type SourceTransactionUpdatedModel = z.infer; - -export const SubscriptionScheduleAborted = z.object({ +export const SubscriptionScheduleAborted: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleAbortedModel = z.infer; - -export const SubscriptionScheduleCanceled = z.object({ +export const SubscriptionScheduleCanceled: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCanceledModel = z.infer; - -export const SubscriptionScheduleCompleted = z.object({ +export const SubscriptionScheduleCompleted: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCompletedModel = z.infer; - -export const SubscriptionScheduleCreated = z.object({ +export const SubscriptionScheduleCreated: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCreatedModel = z.infer; - -export const SubscriptionScheduleExpiring = z.object({ +export const SubscriptionScheduleExpiring: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleExpiringModel = z.infer; - -export const SubscriptionScheduleReleased = z.object({ +export const SubscriptionScheduleReleased: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleReleasedModel = z.infer; - -export const SubscriptionScheduleUpdated = z.object({ +export const SubscriptionScheduleUpdated: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleUpdatedModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted: z.ZodType = z.object({ 'transaction': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored: z.ZodType = z.object({ 'reason': z.enum(['another_payment_associated_with_calculation', 'calculation_expired', 'currency_mismatch', 'original_transaction_voided', 'unique_reference_violation']) }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttempts = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttempts: z.ZodType = z.object({ 'committed': TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted.optional(), 'errored': TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored.optional(), 'source': z.string(), 'status': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsModel = z.infer; - -export const TaxAssociation = z.object({ +export const TaxAssociation: z.ZodType = z.object({ 'calculation': z.string(), 'id': z.string(), 'object': z.enum(['tax.association']), @@ -14243,9 +21194,7 @@ export const TaxAssociation = z.object({ 'tax_transaction_attempts': z.array(TaxProductResourceTaxAssociationTransactionAttempts) }); -export type TaxAssociationModel = z.infer; - -export const TaxProductResourcePostalAddress = z.object({ +export const TaxProductResourcePostalAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -14254,16 +21203,12 @@ export const TaxProductResourcePostalAddress = z.object({ 'state': z.string() }); -export type TaxProductResourcePostalAddressModel = z.infer; - -export const TaxProductResourceCustomerDetailsResourceTaxId = z.object({ +export const TaxProductResourceCustomerDetailsResourceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type TaxProductResourceCustomerDetailsResourceTaxIdModel = z.infer; - -export const TaxProductResourceCustomerDetails = z.object({ +export const TaxProductResourceCustomerDetails: z.ZodType = z.object({ 'address': z.union([TaxProductResourcePostalAddress]), 'address_source': z.enum(['billing', 'shipping']), 'ip_address': z.string(), @@ -14271,26 +21216,20 @@ export const TaxProductResourceCustomerDetails = z.object({ 'taxability_override': z.enum(['customer_exempt', 'none', 'reverse_charge']) }); -export type TaxProductResourceCustomerDetailsModel = z.infer; - -export const TaxProductResourceJurisdiction = z.object({ +export const TaxProductResourceJurisdiction: z.ZodType = z.object({ 'country': z.string(), 'display_name': z.string(), 'level': z.enum(['city', 'country', 'county', 'district', 'state']), 'state': z.string() }); -export type TaxProductResourceJurisdictionModel = z.infer; - -export const TaxProductResourceLineItemTaxRateDetails = z.object({ +export const TaxProductResourceLineItemTaxRateDetails: z.ZodType = z.object({ 'display_name': z.string(), 'percentage_decimal': z.string(), 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxProductResourceLineItemTaxRateDetailsModel = z.infer; - -export const TaxProductResourceLineItemTaxBreakdown = z.object({ +export const TaxProductResourceLineItemTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'jurisdiction': TaxProductResourceJurisdiction, 'sourcing': z.enum(['destination', 'origin']), @@ -14299,9 +21238,7 @@ export const TaxProductResourceLineItemTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceLineItemTaxBreakdownModel = z.infer; - -export const TaxCalculationLineItem = z.object({ +export const TaxCalculationLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -14316,15 +21253,11 @@ export const TaxCalculationLineItem = z.object({ 'tax_code': z.string() }); -export type TaxCalculationLineItemModel = z.infer; - -export const TaxProductResourceShipFromDetails = z.object({ +export const TaxProductResourceShipFromDetails: z.ZodType = z.object({ 'address': TaxProductResourcePostalAddress }); -export type TaxProductResourceShipFromDetailsModel = z.infer; - -export const TaxProductResourceTaxCalculationShippingCost = z.object({ +export const TaxProductResourceTaxCalculationShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -14333,9 +21266,7 @@ export const TaxProductResourceTaxCalculationShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxCalculationShippingCostModel = z.infer; - -export const TaxProductResourceTaxRateDetails = z.object({ +export const TaxProductResourceTaxRateDetails: z.ZodType = z.object({ 'country': z.string(), 'flat_amount': z.union([TaxRateFlatAmount]), 'percentage_decimal': z.string(), @@ -14344,9 +21275,7 @@ export const TaxProductResourceTaxRateDetails = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxProductResourceTaxRateDetailsModel = z.infer; - -export const TaxProductResourceTaxBreakdown = z.object({ +export const TaxProductResourceTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'inclusive': z.boolean(), 'tax_rate_details': TaxProductResourceTaxRateDetails, @@ -14354,9 +21283,7 @@ export const TaxProductResourceTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceTaxBreakdownModel = z.infer; - -export const TaxCalculation = z.object({ +export const TaxCalculation: z.ZodType = z.object({ 'amount_total': z.number().int(), 'currency': z.string(), 'customer': z.string(), @@ -14379,91 +21306,63 @@ export const TaxCalculation = z.object({ 'tax_date': z.number().int() }); -export type TaxCalculationModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsDefaultStandard.optional(), 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefault = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefault: z.ZodType = z.object({ 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsSimplified = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsSimplified: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEuStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEuStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'small_seller', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEurope = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEurope: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsEuStandard.optional(), 'type': z.enum(['ioss', 'oss_non_union', 'oss_union', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard: z.ZodType = z.object({ 'province': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCanada = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCanada: z.ZodType = z.object({ 'province_standard': TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard.optional(), 'type': z.enum(['province_standard', 'simplified', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsThailand = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsThailand: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsThailandModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection: z.ZodType = z.object({ 'jurisdiction': z.string().optional(), 'type': z.enum(['local_use_tax', 'simplified_sellers_use_tax', 'single_local_use_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax: z.ZodType = z.object({ 'elections': z.array(TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection).optional() }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUnitedStates: z.ZodType = z.object({ 'local_amusement_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax.optional(), 'local_lease_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax.optional(), 'state': z.string(), @@ -14471,9 +21370,7 @@ export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.objec 'type': z.enum(['local_amusement_tax', 'local_lease_tax', 'state_communications_tax', 'state_retail_delivery_fee', 'state_sales_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptions = z.object({ +export const TaxProductRegistrationsResourceCountryOptions: z.ZodType = z.object({ 'ae': TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods.optional(), 'al': TaxProductRegistrationsResourceCountryOptionsDefault.optional(), 'am': TaxProductRegistrationsResourceCountryOptionsSimplified.optional(), @@ -14576,9 +21473,7 @@ export const TaxProductRegistrationsResourceCountryOptions = z.object({ 'zw': TaxProductRegistrationsResourceCountryOptionsDefault.optional() }); -export type TaxProductRegistrationsResourceCountryOptionsModel = z.infer; - -export const TaxRegistration = z.object({ +export const TaxRegistration: z.ZodType = z.object({ 'active_from': z.number().int(), 'country': z.string(), 'country_options': TaxProductRegistrationsResourceCountryOptions, @@ -14590,42 +21485,30 @@ export const TaxRegistration = z.object({ 'status': z.enum(['active', 'expired', 'scheduled']) }); -export type TaxRegistrationModel = z.infer; - -export const TaxProductResourceTaxSettingsDefaults = z.object({ +export const TaxProductResourceTaxSettingsDefaults: z.ZodType = z.object({ 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'inferred_by_currency']), 'tax_code': z.string() }); -export type TaxProductResourceTaxSettingsDefaultsModel = z.infer; - -export const TaxProductResourceTaxSettingsHeadOffice = z.object({ +export const TaxProductResourceTaxSettingsHeadOffice: z.ZodType = z.object({ 'address': Address }); -export type TaxProductResourceTaxSettingsHeadOfficeModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourceActive = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourceActive: z.ZodType = z.object({ }); -export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourcePending = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourcePending: z.ZodType = z.object({ 'missing_fields': z.array(z.string()) }); -export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetails = z.object({ +export const TaxProductResourceTaxSettingsStatusDetails: z.ZodType = z.object({ 'active': TaxProductResourceTaxSettingsStatusDetailsResourceActive.optional(), 'pending': TaxProductResourceTaxSettingsStatusDetailsResourcePending.optional() }); -export type TaxProductResourceTaxSettingsStatusDetailsModel = z.infer; - -export const TaxSettings = z.object({ +export const TaxSettings: z.ZodType = z.object({ 'defaults': TaxProductResourceTaxSettingsDefaults, 'head_office': z.union([TaxProductResourceTaxSettingsHeadOffice]), 'livemode': z.boolean(), @@ -14634,21 +21517,15 @@ export const TaxSettings = z.object({ 'status_details': TaxProductResourceTaxSettingsStatusDetails }); -export type TaxSettingsModel = z.infer; - -export const TaxSettingsUpdated = z.object({ +export const TaxSettingsUpdated: z.ZodType = z.object({ 'object': TaxSettings }); -export type TaxSettingsUpdatedModel = z.infer; - -export const TaxProductResourceTaxTransactionLineItemResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionLineItemResourceReversal: z.ZodType = z.object({ 'original_line_item': z.string() }); -export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = z.infer; - -export const TaxTransactionLineItem = z.object({ +export const TaxTransactionLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -14664,15 +21541,11 @@ export const TaxTransactionLineItem = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionLineItemModel = z.infer; - -export const TaxProductResourceTaxTransactionResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionResourceReversal: z.ZodType = z.object({ 'original_transaction': z.string() }); -export type TaxProductResourceTaxTransactionResourceReversalModel = z.infer; - -export const TaxProductResourceTaxTransactionShippingCost = z.object({ +export const TaxProductResourceTaxTransactionShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -14681,9 +21554,7 @@ export const TaxProductResourceTaxTransactionShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxTransactionShippingCostModel = z.infer; - -export const TaxTransaction = z.object({ +export const TaxTransaction: z.ZodType = z.object({ 'created': z.number().int(), 'currency': z.string(), 'customer': z.string(), @@ -14707,48 +21578,34 @@ export const TaxTransaction = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionModel = z.infer; - -export const TaxRateCreated = z.object({ +export const TaxRateCreated: z.ZodType = z.object({ 'object': TaxRate }); -export type TaxRateCreatedModel = z.infer; - -export const TaxRateUpdated = z.object({ +export const TaxRateUpdated: z.ZodType = z.object({ 'object': TaxRate }); -export type TaxRateUpdatedModel = z.infer; - -export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig: z.ZodType = z.object({ 'splashscreen': z.union([z.string(), z.lazy(() => File)]).optional() }); -export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceOfflineConfig = z.object({ +export const TerminalConfigurationConfigurationResourceOfflineConfig: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type TerminalConfigurationConfigurationResourceOfflineConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceRebootWindow = z.object({ +export const TerminalConfigurationConfigurationResourceRebootWindow: z.ZodType = z.object({ 'end_hour': z.number().int(), 'start_hour': z.number().int() }); -export type TerminalConfigurationConfigurationResourceRebootWindowModel = z.infer; - -export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig: z.ZodType = z.object({ 'fixed_amounts': z.array(z.number().int()).optional(), 'percentages': z.array(z.number().int()).optional(), 'smart_tip_threshold': z.number().int().optional() }); -export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceTipping = z.object({ +export const TerminalConfigurationConfigurationResourceTipping: z.ZodType = z.object({ 'aed': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'aud': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'bgn': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), @@ -14773,18 +21630,14 @@ export const TerminalConfigurationConfigurationResourceTipping = z.object({ 'usd': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional() }); -export type TerminalConfigurationConfigurationResourceTippingModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'password': z.string(), 'ssid': z.string(), 'username': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'client_certificate_file': z.string(), 'private_key_file': z.string(), @@ -14792,25 +21645,19 @@ export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.obj 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourcePersonalPskWifi = z.object({ +export const TerminalConfigurationConfigurationResourcePersonalPskWifi: z.ZodType = z.object({ 'password': z.string(), 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceWifiConfig = z.object({ +export const TerminalConfigurationConfigurationResourceWifiConfig: z.ZodType = z.object({ 'enterprise_eap_peap': TerminalConfigurationConfigurationResourceEnterprisePeapWifi.optional(), 'enterprise_eap_tls': TerminalConfigurationConfigurationResourceEnterpriseTlsWifi.optional(), 'personal_psk': TerminalConfigurationConfigurationResourcePersonalPskWifi.optional(), 'type': z.enum(['enterprise_eap_peap', 'enterprise_eap_tls', 'personal_psk']) }); -export type TerminalConfigurationConfigurationResourceWifiConfigModel = z.infer; - -export const TerminalConfiguration = z.object({ +export const TerminalConfiguration: z.ZodType = z.object({ 'bbpos_wisepad3': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'bbpos_wisepos_e': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'id': z.string(), @@ -14826,17 +21673,13 @@ export const TerminalConfiguration = z.object({ 'wifi': TerminalConfigurationConfigurationResourceWifiConfig.optional() }); -export type TerminalConfigurationModel = z.infer; - -export const TerminalConnectionToken = z.object({ +export const TerminalConnectionToken: z.ZodType = z.object({ 'location': z.string().optional(), 'object': z.enum(['terminal.connection_token']), 'secret': z.string() }); -export type TerminalConnectionTokenModel = z.infer; - -export const TerminalLocation = z.object({ +export const TerminalLocation: z.ZodType = z.object({ 'address': Address, 'address_kana': LegalEntityJapanAddress.optional(), 'address_kanji': LegalEntityJapanAddress.optional(), @@ -14851,22 +21694,16 @@ export const TerminalLocation = z.object({ 'phone': z.string().optional() }); -export type TerminalLocationModel = z.infer; - -export const TerminalOnboardingLinkAppleTermsAndConditions = z.object({ +export const TerminalOnboardingLinkAppleTermsAndConditions: z.ZodType = z.object({ 'allow_relinking': z.boolean(), 'merchant_display_name': z.string() }); -export type TerminalOnboardingLinkAppleTermsAndConditionsModel = z.infer; - -export const TerminalOnboardingLinkLinkOptions = z.object({ +export const TerminalOnboardingLinkLinkOptions: z.ZodType = z.object({ 'apple_terms_and_conditions': z.union([TerminalOnboardingLinkAppleTermsAndConditions]) }); -export type TerminalOnboardingLinkLinkOptionsModel = z.infer; - -export const TerminalOnboardingLink = z.object({ +export const TerminalOnboardingLink: z.ZodType = z.object({ 'link_options': TerminalOnboardingLinkLinkOptions, 'link_type': z.enum(['apple_terms_and_conditions']), 'object': z.enum(['terminal.onboarding_link']), @@ -14874,73 +21711,53 @@ export const TerminalOnboardingLink = z.object({ 'redirect_url': z.string() }); -export type TerminalOnboardingLinkModel = z.infer; - -export const TerminalReaderReaderResourceCustomText = z.object({ +export const TerminalReaderReaderResourceCustomText: z.ZodType = z.object({ 'description': z.string(), 'skip_button': z.string(), 'submit_button': z.string(), 'title': z.string() }); -export type TerminalReaderReaderResourceCustomTextModel = z.infer; - -export const TerminalReaderReaderResourceEmail = z.object({ +export const TerminalReaderReaderResourceEmail: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceEmailModel = z.infer; - -export const TerminalReaderReaderResourceNumeric = z.object({ +export const TerminalReaderReaderResourceNumeric: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceNumericModel = z.infer; - -export const TerminalReaderReaderResourcePhone = z.object({ +export const TerminalReaderReaderResourcePhone: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourcePhoneModel = z.infer; - -export const TerminalReaderReaderResourceChoice = z.object({ +export const TerminalReaderReaderResourceChoice: z.ZodType = z.object({ 'id': z.string(), 'style': z.enum(['primary', 'secondary']), 'text': z.string() }); -export type TerminalReaderReaderResourceChoiceModel = z.infer; - -export const TerminalReaderReaderResourceSelection = z.object({ +export const TerminalReaderReaderResourceSelection: z.ZodType = z.object({ 'choices': z.array(TerminalReaderReaderResourceChoice), 'id': z.string(), 'text': z.string() }); -export type TerminalReaderReaderResourceSelectionModel = z.infer; - -export const TerminalReaderReaderResourceSignature = z.object({ +export const TerminalReaderReaderResourceSignature: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceSignatureModel = z.infer; - -export const TerminalReaderReaderResourceText = z.object({ +export const TerminalReaderReaderResourceText: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceTextModel = z.infer; - -export const TerminalReaderReaderResourceToggle = z.object({ +export const TerminalReaderReaderResourceToggle: z.ZodType = z.object({ 'default_value': z.enum(['disabled', 'enabled']), 'description': z.string(), 'title': z.string(), 'value': z.enum(['disabled', 'enabled']) }); -export type TerminalReaderReaderResourceToggleModel = z.infer; - -export const TerminalReaderReaderResourceInput = z.object({ +export const TerminalReaderReaderResourceInput: z.ZodType = z.object({ 'custom_text': z.union([TerminalReaderReaderResourceCustomText]), 'email': TerminalReaderReaderResourceEmail.optional(), 'numeric': TerminalReaderReaderResourceNumeric.optional(), @@ -14954,87 +21771,63 @@ export const TerminalReaderReaderResourceInput = z.object({ 'type': z.enum(['email', 'numeric', 'phone', 'selection', 'signature', 'text']) }); -export type TerminalReaderReaderResourceInputModel = z.infer; - -export const TerminalReaderReaderResourceCollectInputsAction = z.object({ +export const TerminalReaderReaderResourceCollectInputsAction: z.ZodType = z.object({ 'inputs': z.array(TerminalReaderReaderResourceInput), 'metadata': z.record(z.string(), z.string()) }); -export type TerminalReaderReaderResourceCollectInputsActionModel = z.infer; - -export const TerminalReaderReaderResourceTippingConfig = z.object({ +export const TerminalReaderReaderResourceTippingConfig: z.ZodType = z.object({ 'amount_eligible': z.number().int().optional() }); -export type TerminalReaderReaderResourceTippingConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectConfig = z.object({ +export const TerminalReaderReaderResourceCollectConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceCollectConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectPaymentMethodAction = z.object({ +export const TerminalReaderReaderResourceCollectPaymentMethodAction: z.ZodType = z.object({ 'collect_config': TerminalReaderReaderResourceCollectConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'payment_method': z.lazy(() => PaymentMethod).optional() }); -export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = z.infer; - -export const TerminalReaderReaderResourceConfirmConfig = z.object({ +export const TerminalReaderReaderResourceConfirmConfig: z.ZodType = z.object({ 'return_url': z.string().optional() }); -export type TerminalReaderReaderResourceConfirmConfigModel = z.infer; - -export const TerminalReaderReaderResourceConfirmPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceConfirmPaymentIntentAction: z.ZodType = z.object({ 'confirm_config': TerminalReaderReaderResourceConfirmConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessConfig = z.object({ +export const TerminalReaderReaderResourceProcessConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'return_url': z.string().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceProcessConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessPaymentIntentAction: z.ZodType = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'process_config': TerminalReaderReaderResourceProcessConfig.optional() }); -export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupConfig = z.object({ +export const TerminalReaderReaderResourceProcessSetupConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceProcessSetupConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessSetupIntentAction: z.ZodType = z.object({ 'generated_card': z.string().optional(), 'process_config': TerminalReaderReaderResourceProcessSetupConfig.optional(), 'setup_intent': z.union([z.string(), z.lazy(() => SetupIntent)]) }); -export type TerminalReaderReaderResourceProcessSetupIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentConfig = z.object({ +export const TerminalReaderReaderResourceRefundPaymentConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentConfigModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ +export const TerminalReaderReaderResourceRefundPaymentAction: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'metadata': z.record(z.string(), z.string()).optional(), @@ -15046,33 +21839,25 @@ export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ 'reverse_transfer': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentActionModel = z.infer; - -export const TerminalReaderReaderResourceLineItem = z.object({ +export const TerminalReaderReaderResourceLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string(), 'quantity': z.number().int() }); -export type TerminalReaderReaderResourceLineItemModel = z.infer; - -export const TerminalReaderReaderResourceCart = z.object({ +export const TerminalReaderReaderResourceCart: z.ZodType = z.object({ 'currency': z.string(), 'line_items': z.array(TerminalReaderReaderResourceLineItem), 'tax': z.number().int(), 'total': z.number().int() }); -export type TerminalReaderReaderResourceCartModel = z.infer; - -export const TerminalReaderReaderResourceSetReaderDisplayAction = z.object({ +export const TerminalReaderReaderResourceSetReaderDisplayAction: z.ZodType = z.object({ 'cart': z.union([TerminalReaderReaderResourceCart]), 'type': z.enum(['cart']) }); -export type TerminalReaderReaderResourceSetReaderDisplayActionModel = z.infer; - -export const TerminalReaderReaderResourceReaderAction = z.object({ +export const TerminalReaderReaderResourceReaderAction: z.ZodType = z.object({ 'collect_inputs': TerminalReaderReaderResourceCollectInputsAction.optional(), 'collect_payment_method': TerminalReaderReaderResourceCollectPaymentMethodAction.optional(), 'confirm_payment_intent': TerminalReaderReaderResourceConfirmPaymentIntentAction.optional(), @@ -15086,9 +21871,7 @@ export const TerminalReaderReaderResourceReaderAction = z.object({ 'type': z.enum(['collect_inputs', 'collect_payment_method', 'confirm_payment_intent', 'process_payment_intent', 'process_setup_intent', 'refund_payment', 'set_reader_display']) }); -export type TerminalReaderReaderResourceReaderActionModel = z.infer; - -export const TerminalReader = z.object({ +export const TerminalReader: z.ZodType = z.object({ 'action': z.union([TerminalReaderReaderResourceReaderAction]), 'device_sw_version': z.string(), 'device_type': z.enum(['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'verifone_P400']), @@ -15104,57 +21887,39 @@ export const TerminalReader = z.object({ 'status': z.enum(['offline', 'online']) }); -export type TerminalReaderModel = z.infer; - -export const TerminalReaderActionFailed = z.object({ +export const TerminalReaderActionFailed: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionFailedModel = z.infer; - -export const TerminalReaderActionSucceeded = z.object({ +export const TerminalReaderActionSucceeded: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionSucceededModel = z.infer; - -export const TerminalReaderActionUpdated = z.object({ +export const TerminalReaderActionUpdated: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionUpdatedModel = z.infer; - -export const TestHelpersTestClockAdvancing = z.object({ +export const TestHelpersTestClockAdvancing: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockAdvancingModel = z.infer; - -export const TestHelpersTestClockCreated = z.object({ +export const TestHelpersTestClockCreated: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockCreatedModel = z.infer; - -export const TestHelpersTestClockDeleted = z.object({ +export const TestHelpersTestClockDeleted: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockDeletedModel = z.infer; - -export const TestHelpersTestClockInternalFailure = z.object({ +export const TestHelpersTestClockInternalFailure: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockInternalFailureModel = z.infer; - -export const TestHelpersTestClockReady = z.object({ +export const TestHelpersTestClockReady: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockReadyModel = z.infer; - -export const Token = z.object({ +export const Token: z.ZodType = z.object({ 'bank_account': z.lazy(() => BankAccount).optional(), 'card': z.lazy(() => Card).optional(), 'client_ip': z.string(), @@ -15166,82 +21931,56 @@ export const Token = z.object({ 'used': z.boolean() }); -export type TokenModel = z.infer; - -export const TopupCanceled = z.object({ +export const TopupCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupCanceledModel = z.infer; - -export const TopupCreated = z.object({ +export const TopupCreated: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupCreatedModel = z.infer; - -export const TopupFailed = z.object({ +export const TopupFailed: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupFailedModel = z.infer; - -export const TopupReversed = z.object({ +export const TopupReversed: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupReversedModel = z.infer; - -export const TopupSucceeded = z.object({ +export const TopupSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupSucceededModel = z.infer; - -export const TransferCreated = z.object({ +export const TransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferCreatedModel = z.infer; - -export const TransferReversed = z.object({ +export const TransferReversed: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferReversedModel = z.infer; - -export const TransferUpdated = z.object({ +export const TransferUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferUpdatedModel = z.infer; - -export const TreasuryReceivedCreditsResourceStatusTransitions = z.object({ +export const TreasuryReceivedCreditsResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int() }); -export type TreasuryReceivedCreditsResourceStatusTransitionsModel = z.infer; - -export const TreasuryTransactionsResourceBalanceImpact = z.object({ +export const TreasuryTransactionsResourceBalanceImpact: z.ZodType = z.object({ 'cash': z.number().int(), 'inbound_pending': z.number().int(), 'outbound_pending': z.number().int() }); -export type TreasuryTransactionsResourceBalanceImpactModel = z.infer; - -export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows: z.ZodType = z.object({ 'issuing_dispute': z.string() }); -export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceStatusTransitions = z.object({ +export const TreasuryReceivedDebitsResourceStatusTransitions: z.ZodType = z.object({ 'completed_at': z.number().int() }); -export type TreasuryReceivedDebitsResourceStatusTransitionsModel = z.infer; - export const TreasuryDebitReversal: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -15260,26 +21999,20 @@ export const TreasuryDebitReversal: z.ZodType = z.ob 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryInboundTransfersResourceFailureDetails = z.object({ +export const TreasuryInboundTransfersResourceFailureDetails: z.ZodType = z.object({ 'code': z.enum(['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']) }); -export type TreasuryInboundTransfersResourceFailureDetailsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows: z.ZodType = z.object({ 'received_debit': z.string() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'failed_at': z.number().int(), 'succeeded_at': z.number().int() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = z.infer; - export const TreasuryInboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -15303,49 +22036,39 @@ export const TreasuryInboundTransfer: z.ZodType = 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails: z.ZodType = z.object({ 'ip_address': z.string(), 'present': z.boolean() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = z.infer; - export const TreasuryOutboundPaymentsResourceReturnedStatus: z.ZodType = z.object({ 'code': z.enum(['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'declined', 'incorrect_account_holder_name', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']), 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'failed_at': z.number().int(), 'posted_at': z.number().int(), 'returned_at': z.number().int() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string(), 'imad': z.string(), 'omad': z.string() }); -export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundPaymentsResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundPayment: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -15376,37 +22099,29 @@ export const TreasuryOutboundTransfersResourceReturnedDetails: z.ZodType TreasuryTransaction)]) }); -export const TreasuryOutboundTransfersResourceStatusTransitions = z.object({ +export const TreasuryOutboundTransfersResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'failed_at': z.number().int(), 'posted_at': z.number().int(), 'returned_at': z.number().int() }); -export type TreasuryOutboundTransfersResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundTransfersResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string(), 'imad': z.string(), 'omad': z.string() }); -export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundTransfersResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -15430,15 +22145,13 @@ export const TreasuryOutboundTransfer: z.ZodType 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'bank_name': z.string(), 'last4': z.string(), 'routing_number': z.string() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails: z.ZodType = z.object({ 'balance': z.enum(['payments']).optional(), 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': ReceivedPaymentMethodDetailsFinancialAccount.optional(), @@ -15447,8 +22160,6 @@ export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPayme 'us_bank_account': TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount.optional() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = z.infer; - export const TreasuryReceivedCreditsResourceSourceFlowsDetails: z.ZodType = z.object({ 'credit_reversal': z.lazy(() => TreasuryCreditReversal).optional(), 'outbound_payment': z.lazy(() => TreasuryOutboundPayment).optional(), @@ -15466,13 +22177,11 @@ export const TreasuryReceivedCreditsResourceLinkedFlows: z.ZodType = z.object({ 'deadline': z.number().int(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']) }); -export type TreasuryReceivedCreditsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedCredit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -15492,7 +22201,7 @@ export const TreasuryReceivedCredit: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceLinkedFlows: z.ZodType = z.object({ 'debit_reversal': z.string(), 'inbound_transfer': z.string(), 'issuing_authorization': z.string(), @@ -15500,15 +22209,11 @@ export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ 'payout': z.string() }); -export type TreasuryReceivedDebitsResourceLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceReversalDetails = z.object({ +export const TreasuryReceivedDebitsResourceReversalDetails: z.ZodType = z.object({ 'deadline': z.number().int(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']) }); -export type TreasuryReceivedDebitsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedDebit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -15556,13 +22261,11 @@ export const TreasuryTransactionEntry: z.ZodType 'type': z.enum(['credit_reversal', 'credit_reversal_posting', 'debit_reversal', 'inbound_transfer', 'inbound_transfer_return', 'issuing_authorization_hold', 'issuing_authorization_release', 'other', 'outbound_payment', 'outbound_payment_cancellation', 'outbound_payment_failure', 'outbound_payment_posting', 'outbound_payment_return', 'outbound_transfer', 'outbound_transfer_cancellation', 'outbound_transfer_failure', 'outbound_transfer_posting', 'outbound_transfer_return', 'received_credit', 'received_debit']) }); -export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions = z.object({ +export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int(), 'void_at': z.number().int() }); -export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = z.infer; - export const TreasuryTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_impact': TreasuryTransactionsResourceBalanceImpact, @@ -15603,111 +22306,81 @@ export const TreasuryCreditReversal: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryCreditReversalCreated = z.object({ +export const TreasuryCreditReversalCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryCreditReversal) }); -export type TreasuryCreditReversalCreatedModel = z.infer; - -export const TreasuryCreditReversalPosted = z.object({ +export const TreasuryCreditReversalPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryCreditReversal) }); -export type TreasuryCreditReversalPostedModel = z.infer; - -export const TreasuryDebitReversalCompleted = z.object({ +export const TreasuryDebitReversalCompleted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalCompletedModel = z.infer; - -export const TreasuryDebitReversalCreated = z.object({ +export const TreasuryDebitReversalCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalCreatedModel = z.infer; - -export const TreasuryDebitReversalInitialCreditGranted = z.object({ +export const TreasuryDebitReversalInitialCreditGranted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalInitialCreditGrantedModel = z.infer; - -export const TreasuryFinancialAccountsResourceBalance = z.object({ +export const TreasuryFinancialAccountsResourceBalance: z.ZodType = z.object({ 'cash': z.record(z.string(), z.number().int()), 'inbound_pending': z.record(z.string(), z.number().int()), 'outbound_pending': z.record(z.string(), z.number().int()) }); -export type TreasuryFinancialAccountsResourceBalanceModel = z.infer; - -export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails: z.ZodType = z.object({ 'code': z.enum(['activating', 'capability_not_requested', 'financial_account_closed', 'rejected_other', 'rejected_unsupported_business', 'requirements_past_due', 'requirements_pending_verification', 'restricted_by_platform', 'restricted_other']), 'resolution': z.enum(['contact_stripe', 'provide_information', 'remove_restriction']), 'restriction': z.enum(['inbound_flows', 'outbound_flows']).optional() }); -export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceAbaToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceInboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceInboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceInboundAchToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceInboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundPayments = z.object({ +export const TreasuryFinancialAccountsResourceOutboundPayments: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceOutboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountFeatures = z.object({ +export const TreasuryFinancialAccountFeatures: z.ZodType = z.object({ 'card_issuing': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'deposit_insurance': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressesFeatures.optional(), @@ -15718,9 +22391,7 @@ export const TreasuryFinancialAccountFeatures = z.object({ 'outbound_transfers': TreasuryFinancialAccountsResourceOutboundTransfers.optional() }); -export type TreasuryFinancialAccountFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ +export const TreasuryFinancialAccountsResourceAbaRecord: z.ZodType = z.object({ 'account_holder_name': z.string(), 'account_number': z.string().optional(), 'account_number_last4': z.string(), @@ -15728,36 +22399,26 @@ export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ 'routing_number': z.string() }); -export type TreasuryFinancialAccountsResourceAbaRecordModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddress = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddress: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaRecord.optional(), 'supported_networks': z.array(z.enum(['ach', 'us_domestic_wire'])).optional(), 'type': z.enum(['aba']) }); -export type TreasuryFinancialAccountsResourceFinancialAddressModel = z.infer; - -export const TreasuryFinancialAccountsResourcePlatformRestrictions = z.object({ +export const TreasuryFinancialAccountsResourcePlatformRestrictions: z.ZodType = z.object({ 'inbound_flows': z.enum(['restricted', 'unrestricted']), 'outbound_flows': z.enum(['restricted', 'unrestricted']) }); -export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = z.infer; - -export const TreasuryFinancialAccountsResourceClosedStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceClosedStatusDetails: z.ZodType = z.object({ 'reasons': z.array(z.enum(['account_rejected', 'closed_by_platform', 'other'])) }); -export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceStatusDetails: z.ZodType = z.object({ 'closed': z.union([TreasuryFinancialAccountsResourceClosedStatusDetails]) }); -export type TreasuryFinancialAccountsResourceStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccount = z.object({ +export const TreasuryFinancialAccount: z.ZodType = z.object({ 'active_features': z.array(z.enum(['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'])).optional(), 'balance': TreasuryFinancialAccountsResourceBalance, 'country': z.string(), @@ -15778,159 +22439,107 @@ export const TreasuryFinancialAccount = z.object({ 'supported_currencies': z.array(z.string()) }); -export type TreasuryFinancialAccountModel = z.infer; - -export const TreasuryFinancialAccountClosed = z.object({ +export const TreasuryFinancialAccountClosed: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountClosedModel = z.infer; - -export const TreasuryFinancialAccountCreated = z.object({ +export const TreasuryFinancialAccountCreated: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountCreatedModel = z.infer; - -export const TreasuryFinancialAccountFeaturesStatusUpdated = z.object({ +export const TreasuryFinancialAccountFeaturesStatusUpdated: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountFeaturesStatusUpdatedModel = z.infer; - -export const TreasuryInboundTransferCanceled = z.object({ +export const TreasuryInboundTransferCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferCanceledModel = z.infer; - -export const TreasuryInboundTransferCreated = z.object({ +export const TreasuryInboundTransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferCreatedModel = z.infer; - -export const TreasuryInboundTransferFailed = z.object({ +export const TreasuryInboundTransferFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferFailedModel = z.infer; - -export const TreasuryInboundTransferSucceeded = z.object({ +export const TreasuryInboundTransferSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferSucceededModel = z.infer; - -export const TreasuryOutboundPaymentCanceled = z.object({ +export const TreasuryOutboundPaymentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentCanceledModel = z.infer; - -export const TreasuryOutboundPaymentCreated = z.object({ +export const TreasuryOutboundPaymentCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentCreatedModel = z.infer; - -export const TreasuryOutboundPaymentExpectedArrivalDateUpdated = z.object({ +export const TreasuryOutboundPaymentExpectedArrivalDateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedModel = z.infer; - -export const TreasuryOutboundPaymentFailed = z.object({ +export const TreasuryOutboundPaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentFailedModel = z.infer; - -export const TreasuryOutboundPaymentPosted = z.object({ +export const TreasuryOutboundPaymentPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentPostedModel = z.infer; - -export const TreasuryOutboundPaymentReturned = z.object({ +export const TreasuryOutboundPaymentReturned: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentReturnedModel = z.infer; - -export const TreasuryOutboundPaymentTrackingDetailsUpdated = z.object({ +export const TreasuryOutboundPaymentTrackingDetailsUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentTrackingDetailsUpdatedModel = z.infer; - -export const TreasuryOutboundTransferCanceled = z.object({ +export const TreasuryOutboundTransferCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferCanceledModel = z.infer; - -export const TreasuryOutboundTransferCreated = z.object({ +export const TreasuryOutboundTransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferCreatedModel = z.infer; - -export const TreasuryOutboundTransferExpectedArrivalDateUpdated = z.object({ +export const TreasuryOutboundTransferExpectedArrivalDateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferExpectedArrivalDateUpdatedModel = z.infer; - -export const TreasuryOutboundTransferFailed = z.object({ +export const TreasuryOutboundTransferFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferFailedModel = z.infer; - -export const TreasuryOutboundTransferPosted = z.object({ +export const TreasuryOutboundTransferPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferPostedModel = z.infer; - -export const TreasuryOutboundTransferReturned = z.object({ +export const TreasuryOutboundTransferReturned: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferReturnedModel = z.infer; - -export const TreasuryOutboundTransferTrackingDetailsUpdated = z.object({ +export const TreasuryOutboundTransferTrackingDetailsUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferTrackingDetailsUpdatedModel = z.infer; - -export const TreasuryReceivedCreditCreated = z.object({ +export const TreasuryReceivedCreditCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditCreatedModel = z.infer; - -export const TreasuryReceivedCreditFailed = z.object({ +export const TreasuryReceivedCreditFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditFailedModel = z.infer; - -export const TreasuryReceivedCreditSucceeded = z.object({ +export const TreasuryReceivedCreditSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditSucceededModel = z.infer; - -export const TreasuryReceivedDebitCreated = z.object({ +export const TreasuryReceivedDebitCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedDebit) }); -export type TreasuryReceivedDebitCreatedModel = z.infer; - -export const WebhookEndpoint = z.object({ +export const WebhookEndpoint: z.ZodType = z.object({ 'api_version': z.string(), 'application': z.string(), 'created': z.number().int(), @@ -15943,6 +22552,4 @@ export const WebhookEndpoint = z.object({ 'secret': z.string().optional(), 'status': z.string(), 'url': z.string() -}); - -export type WebhookEndpointModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_3/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_3/models.ts index 88f59f7..9dcb27a 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_3/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/stripe_3/models.ts @@ -1,6 +1,167 @@ import { z } from 'zod'; -// Helper types for recursive schemas +// Helper types for schemas + +export type AccountAnnualRevenueModel = { + 'amount': number; + 'currency': string; + 'fiscal_year_end': string; +}; + +export type AccountMonthlyEstimatedRevenueModel = { + 'amount': number; + 'currency': string; +}; + +export type AddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type AccountBusinessProfileModel = { + 'annual_revenue'?: AccountAnnualRevenueModel | undefined; + 'estimated_worker_count'?: number | undefined; + 'mcc': string; + 'minority_owned_business_designation': Array<'lgbtqi_owned_business' | 'minority_owned_business' | 'none_of_these_apply' | 'prefer_not_to_answer' | 'women_owned_business'>; + 'monthly_estimated_revenue'?: AccountMonthlyEstimatedRevenueModel | undefined; + 'name': string; + 'product_description'?: string | undefined; + 'specified_commercial_transactions_act_url'?: string | undefined; + 'support_address': AddressModel; + 'support_email': string; + 'support_phone': string; + 'support_url': string; + 'url': string; +}; + +export type AccountCapabilitiesModel = { + '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; + 'automatic_indirect_tax'?: 'active' | 'inactive' | 'pending' | undefined; + 'bacs_debit_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'bancontact_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'bank_transfer_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'billie_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; + 'crypto_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; + 'gopay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'grabpay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'id_bank_transfer_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'id_bank_transfer_payments_bca'?: '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; + 'mb_way_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; + 'nz_bank_account_becs_debit_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'oxxo_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'p24_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pay_by_bank_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'payco_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'paynow_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'paypal_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'paypay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'payto_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'pix_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'promptpay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'qris_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'rechnung_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'revolut_pay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'samsung_pay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'satispay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'sepa_bank_transfer_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'sepa_debit_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'shopeepay_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'sofort_payments'?: 'active' | 'inactive' | 'pending' | undefined; + 'stripe_balance_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; + 'treasury_evolve'?: 'active' | 'inactive' | 'pending' | undefined; + 'treasury_fifth_third'?: 'active' | 'inactive' | 'pending' | undefined; + 'treasury_goldman_sachs'?: '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 LegalEntityJapanAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; + 'town': string; +}; + +export type LegalEntityDirectorshipDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type LegalEntityUboDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type LegalEntityRegistrationDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type LegalEntityRepresentativeDeclarationModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type FileLinkModel = { + 'created': number; + 'expired': boolean; + 'expires_at': number; + 'file': string | FileModel; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'file_link'; + 'url': string; +}; export type FileModel = { 'created': number; @@ -21,20 +182,6 @@ export type FileModel = { 'url': string; }; -export type FileLinkModel = { - 'created': number; - 'expired': boolean; - 'expires_at': number; - 'file': string | FileModel; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'object': 'file_link'; - 'url': string; -}; - export type LegalEntityCompanyVerificationDocumentModel = { 'back': string | FileModel; 'details': string; @@ -71,65 +218,64 @@ export type LegalEntityCompanyModel = { 'verification'?: LegalEntityCompanyVerificationModel | undefined; }; -export type AccountModel = { - 'business_profile'?: AccountBusinessProfileModel | undefined; - 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; - 'capabilities'?: AccountCapabilitiesModel | undefined; - 'charges_enabled'?: boolean | undefined; - 'company'?: LegalEntityCompanyModel | undefined; - 'controller'?: AccountUnificationAccountControllerModel | undefined; - 'country'?: string | undefined; - 'created'?: number | undefined; - 'default_currency'?: string | undefined; - 'details_submitted'?: boolean | undefined; - 'email'?: string | undefined; - 'external_accounts'?: { - 'data': ExternalAccountModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'future_requirements'?: AccountFutureRequirementsModel | undefined; - 'groups'?: AccountGroupMembershipModel | undefined; - 'id': string; - 'individual'?: PersonModel | undefined; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'account'; - 'payouts_enabled'?: boolean | undefined; - 'requirements'?: AccountRequirementsModel | undefined; - 'risk_controls'?: ConnectRiskAccountRiskControlsModel | undefined; - 'settings'?: AccountSettingsModel | undefined; - 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; - 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +export type AccountUnificationAccountControllerApplicationModel = { + 'loss_liable': boolean; + 'onboarding_owner': boolean; + 'pricing_controls': boolean; }; -export type BankAccountModel = { - 'account'?: string | AccountModel | undefined; - 'account_holder_name': string; - 'account_holder_type': string; - 'account_type': string; - 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; - 'bank_name': string; - 'country': string; - 'currency': string; - 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; - 'default_for_currency'?: boolean | undefined; - 'fingerprint': string; - 'future_requirements'?: ExternalAccountRequirementsModel | undefined; +export type AccountUnificationAccountControllerDashboardModel = { + 'type': 'express' | 'full' | 'none'; +}; + +export type AccountUnificationAccountControllerFeesModel = { + 'payer': 'account' | 'application' | 'application_custom' | 'application_express' | 'application_unified_accounts_beta'; +}; + +export type AccountUnificationAccountControllerLossesModel = { + 'payments': 'application' | 'stripe'; +}; + +export type AccountUnificationAccountControllerStripeDashboardModel = { + 'type': 'express' | 'full' | 'none'; +}; + +export type AccountUnificationAccountControllerModel = { + 'application'?: AccountUnificationAccountControllerApplicationModel | undefined; + 'dashboard'?: AccountUnificationAccountControllerDashboardModel | undefined; + 'fees'?: AccountUnificationAccountControllerFeesModel | undefined; + 'is_controller'?: boolean | undefined; + 'losses'?: AccountUnificationAccountControllerLossesModel | undefined; + 'requirement_collection'?: 'application' | 'stripe' | undefined; + 'stripe_dashboard'?: AccountUnificationAccountControllerStripeDashboardModel | undefined; + 'type': 'account' | 'application'; +}; + +export type CustomerBalanceCustomerBalanceSettingsModel = { + 'reconciliation_mode': 'automatic' | 'manual'; + 'using_merchant_default': boolean; +}; + +export type CashBalanceModel = { + 'available': { + [key: string]: number; +}; + 'customer': string; + 'customer_account'?: string | undefined; + 'livemode': boolean; + 'object': 'cash_balance'; + 'settings': CustomerBalanceCustomerBalanceSettingsModel; +}; + +export type DeletedCustomerModel = { + 'deleted': boolean; 'id': string; - 'last4': string; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'object': 'bank_account'; - 'requirements'?: ExternalAccountRequirementsModel | undefined; - 'routing_number': string; - 'status': string; + 'object': 'customer'; }; -export type PaymentSourceModel = AccountModel | BankAccountModel | CardModel | SourceModel; +export type TokenCardNetworksModel = { + 'preferred': string; +}; export type CardModel = { 'account'?: string | AccountModel | undefined; @@ -171,1586 +317,12688 @@ export type CardModel = { 'tokenization_method': string; }; -export type CustomerModel = { - 'address'?: AddressModel | undefined; - 'balance'?: number | undefined; - 'business_name'?: string | undefined; - 'cash_balance'?: CashBalanceModel | undefined; - 'created': number; - 'currency'?: string | undefined; - 'customer_account'?: string | undefined; - 'default_source': string | PaymentSourceModel; - 'delinquent'?: boolean | undefined; - 'description': string; - 'discount'?: DiscountModel | undefined; - 'email': string; - 'id': string; - 'individual_name'?: string | undefined; - 'invoice_credit_balance'?: { - [key: string]: number; -} | undefined; - 'invoice_prefix'?: string | undefined; - 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; - 'livemode': boolean; - 'metadata'?: { - [key: string]: string; -} | undefined; - 'name'?: string | undefined; - 'next_invoice_sequence'?: number | undefined; - 'object': 'customer'; - 'phone'?: string | undefined; - 'preferred_locales'?: string[] | undefined; - 'shipping': ShippingModel; - 'sources'?: { - 'data': PaymentSourceModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'subscriptions'?: { - 'data': SubscriptionModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'tax'?: CustomerTaxModel | undefined; - 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; - 'tax_ids'?: { - 'data': TaxIdModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'test_clock'?: string | TestHelpersTestClockModel | undefined; +export type SourceTypeAchCreditTransferModel = { + 'account_number'?: string | undefined; + 'bank_name'?: string | undefined; + 'fingerprint'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_account_holder_type'?: string | undefined; + 'refund_routing_number'?: string | undefined; + 'routing_number'?: string | undefined; + 'swift_code'?: string | undefined; }; -export type DiscountModel = { - 'checkout_session': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'end': number; - 'id': string; - 'invoice': string; - 'invoice_item': string; - 'object': 'discount'; - 'promotion_code': string | PromotionCodeModel; - 'source': DiscountSourceModel; - 'start': number; - 'subscription': string; - 'subscription_item': string; +export type SourceTypeAchDebitModel = { + 'bank_name'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; + 'type'?: string | undefined; }; -export type PromotionCodeModel = { - 'active': boolean; - 'code': string; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'expires_at': number; - 'id': string; - 'livemode': boolean; - 'max_redemptions': number; - 'metadata': { - [key: string]: string; +export type SourceTypeAcssDebitModel = { + 'bank_address_city'?: string | undefined; + 'bank_address_line_1'?: string | undefined; + 'bank_address_line_2'?: string | undefined; + 'bank_address_postal_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'category'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; }; - 'object': 'promotion_code'; - 'promotion': PromotionCodesResourcePromotionModel; - 'restrictions': PromotionCodesResourceRestrictionsModel; - 'times_redeemed': number; + +export type SourceTypeAlipayModel = { + 'data_string'?: string | undefined; + 'native_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; }; -export type SetupAttemptModel = { - 'application': string | ApplicationModel; - 'attach_to_self'?: boolean | undefined; - 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'flow_directions': Array<'inbound' | 'outbound'>; - 'id': string; - 'livemode': boolean; - 'object': 'setup_attempt'; - 'on_behalf_of': string | AccountModel; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; - 'setup_error': ApiErrorsModel; - 'setup_intent': string | SetupIntentModel; - 'status': string; - 'usage': string; +export type SourceTypeAuBecsDebitModel = { + 'bsb_number'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; }; -export type PaymentMethodModel = { - 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; - 'affirm'?: PaymentMethodAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; - 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; - 'alma'?: PaymentMethodAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodBancontactModel | undefined; - 'billie'?: PaymentMethodBillieModel | undefined; - 'billing_details': BillingDetailsModel; - 'blik'?: PaymentMethodBlikModel | undefined; - 'boleto'?: PaymentMethodBoletoModel | undefined; - 'card'?: PaymentMethodCardModel | undefined; - 'card_present'?: PaymentMethodCardPresentModel | undefined; - 'cashapp'?: PaymentMethodCashappModel | undefined; +export type SourceTypeBancontactModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeCardModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'brand'?: string | undefined; + 'brand_product'?: string | undefined; + 'country'?: string | undefined; + 'cvc_check'?: string | undefined; + 'description'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; +}; + +export type SourceTypeCardPresentModel = { + 'application_cryptogram'?: string | undefined; + 'application_preferred_name'?: string | undefined; + 'authorization_code'?: string | undefined; + 'authorization_response_code'?: string | undefined; + 'brand'?: string | undefined; + 'brand_product'?: string | undefined; + 'country'?: string | undefined; + 'cvm_type'?: string | undefined; + 'data_type'?: string | undefined; + 'dedicated_file_name'?: string | undefined; + 'description'?: string | undefined; + 'emv_auth_data'?: string | undefined; + 'evidence_customer_signature'?: string | undefined; + 'evidence_transaction_certificate'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'pos_device_id'?: string | undefined; + 'pos_entry_mode'?: string | undefined; + 'read_method'?: string | undefined; + 'reader'?: string | undefined; + 'terminal_verification_results'?: string | undefined; + 'transaction_status_information'?: string | undefined; +}; + +export type SourceCodeVerificationFlowModel = { + 'attempts_remaining': number; + 'status': string; +}; + +export type SourceTypeEpsModel = { + 'reference'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeGiropayModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeIdealModel = { + 'bank'?: string | undefined; + 'bic'?: string | undefined; + 'iban_last4'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceTypeKlarnaModel = { + 'background_image_url'?: string | undefined; + 'client_token'?: string | 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 SourceTypeMultibancoModel = { + 'entity'?: string | undefined; + 'reference'?: string | undefined; + 'refund_account_holder_address_city'?: string | undefined; + 'refund_account_holder_address_country'?: string | undefined; + 'refund_account_holder_address_line1'?: string | undefined; + 'refund_account_holder_address_line2'?: string | undefined; + 'refund_account_holder_address_postal_code'?: string | undefined; + 'refund_account_holder_address_state'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_iban'?: string | undefined; +}; + +export type SourceOwnerModel = { + 'address': AddressModel; + 'email': string; + 'name': string; + 'phone': string; + 'verified_address': AddressModel; + 'verified_email': string; + 'verified_name': string; + 'verified_phone': string; +}; + +export type SourceTypeP24Model = { + 'reference'?: string | undefined; +}; + +export type SourceTypePaypalModel = { + 'billing_agreement'?: string | undefined; + 'fingerprint'?: string | undefined; + 'payer_id'?: string | undefined; + 'reference_id'?: string | undefined; + 'reference_transaction_amount'?: string | undefined; + 'reference_transaction_charged'?: boolean | undefined; + 'statement_descriptor'?: string | undefined; + 'transaction_id'?: string | undefined; + 'verified_email'?: string | undefined; +}; + +export type SourceReceiverFlowModel = { + 'address': string; + 'amount_charged': number; + 'amount_received': number; + 'amount_returned': number; + 'refund_attributes_method': string; + 'refund_attributes_status': string; +}; + +export type SourceRedirectFlowModel = { + 'failure_reason': string; + 'return_url': string; + 'status': string; + 'url': string; +}; + +export type SourceTypeSepaCreditTransferModel = { + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'iban'?: string | undefined; + 'refund_account_holder_address_city'?: string | undefined; + 'refund_account_holder_address_country'?: string | undefined; + 'refund_account_holder_address_line1'?: string | undefined; + 'refund_account_holder_address_line2'?: string | undefined; + 'refund_account_holder_address_postal_code'?: string | undefined; + 'refund_account_holder_address_state'?: string | undefined; + 'refund_account_holder_name'?: string | undefined; + 'refund_iban'?: string | undefined; +}; + +export type SourceTypeSepaDebitModel = { + 'bank_code'?: string | undefined; + 'branch_code'?: string | undefined; + 'country'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; + 'mandate_url'?: string | undefined; +}; + +export type SourceTypeSofortModel = { + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'bic'?: string | undefined; + 'country'?: string | undefined; + 'iban_last4'?: string | undefined; + 'preferred_language'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceOrderItemModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'parent': string; + 'quantity'?: number | undefined; + 'type': string; +}; + +export type ShippingModel = { + 'address'?: AddressModel | undefined; + 'carrier'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; + 'tracking_number'?: string | undefined; +}; + +export type SourceOrderModel = { + 'amount': number; + 'currency': string; + 'email'?: string | undefined; + 'items': SourceOrderItemModel[]; + 'shipping'?: ShippingModel | undefined; +}; + +export type SourceTypeThreeDSecureModel = { + 'address_line1_check'?: string | undefined; + 'address_zip_check'?: string | undefined; + 'authenticated'?: boolean | undefined; + 'brand'?: string | undefined; + 'brand_product'?: string | undefined; + 'card'?: string | undefined; + 'country'?: string | undefined; + 'customer'?: string | undefined; + 'cvc_check'?: string | undefined; + 'description'?: string | undefined; + 'dynamic_last4'?: string | undefined; + 'exp_month'?: number | undefined; + 'exp_year'?: number | undefined; + 'fingerprint'?: string | undefined; + 'funding'?: string | undefined; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4'?: string | undefined; + 'name'?: string | undefined; + 'three_d_secure'?: string | undefined; + 'tokenization_method'?: string | undefined; +}; + +export type SourceTypeWechatModel = { + 'prepay_id'?: string | undefined; + 'qr_code_url'?: string | undefined; + 'statement_descriptor'?: string | undefined; +}; + +export type SourceModel = { + 'ach_credit_transfer'?: SourceTypeAchCreditTransferModel | undefined; + 'ach_debit'?: SourceTypeAchDebitModel | undefined; + 'acss_debit'?: SourceTypeAcssDebitModel | undefined; + 'alipay'?: SourceTypeAlipayModel | undefined; + 'allow_redisplay': 'always' | 'limited' | 'unspecified'; + 'amount': number; + 'au_becs_debit'?: SourceTypeAuBecsDebitModel | undefined; + 'bancontact'?: SourceTypeBancontactModel | undefined; + 'card'?: SourceTypeCardModel | undefined; + 'card_present'?: SourceTypeCardPresentModel | undefined; + 'client_secret': string; + 'code_verification'?: SourceCodeVerificationFlowModel | undefined; 'created': number; - 'crypto'?: PaymentMethodCryptoModel | undefined; - 'custom'?: PaymentMethodCustomModel | undefined; - 'customer': string | CustomerModel; + 'currency': string; + 'customer'?: string | undefined; + 'eps'?: SourceTypeEpsModel | undefined; + 'flow': string; + 'giropay'?: SourceTypeGiropayModel | undefined; + 'id': string; + 'ideal'?: SourceTypeIdealModel | undefined; + 'klarna'?: SourceTypeKlarnaModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'multibanco'?: SourceTypeMultibancoModel | undefined; + 'object': 'source'; + 'owner': SourceOwnerModel; + 'p24'?: SourceTypeP24Model | undefined; + 'paypal'?: SourceTypePaypalModel | undefined; + 'receiver'?: SourceReceiverFlowModel | undefined; + 'redirect'?: SourceRedirectFlowModel | undefined; + 'sepa_credit_transfer'?: SourceTypeSepaCreditTransferModel | undefined; + 'sepa_debit'?: SourceTypeSepaDebitModel | undefined; + 'sofort'?: SourceTypeSofortModel | undefined; + 'source_order'?: SourceOrderModel | undefined; + 'statement_descriptor': string; + 'status': string; + 'three_d_secure'?: SourceTypeThreeDSecureModel | undefined; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'alipay' | 'au_becs_debit' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'paypal' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; + 'usage': string; + 'wechat'?: SourceTypeWechatModel | undefined; +}; + +export type PaymentSourceModel = AccountModel | BankAccountModel | CardModel | SourceModel; + +export type CouponAppliesToModel = { + 'products': string[]; +}; + +export type CouponCurrencyOptionModel = { + 'amount_off': number; +}; + +export type ScriptModel = { + 'configuration': {}; + 'display_name': string; + 'id': string; +}; + +export type CouponModel = { + 'amount_off': number; + 'applies_to'?: CouponAppliesToModel | undefined; + 'created': number; + 'currency': string; + 'currency_options'?: { + [key: string]: CouponCurrencyOptionModel; +} | undefined; + 'duration': 'forever' | 'once' | 'repeating'; + 'duration_in_months': number; + 'id': string; + 'livemode': boolean; + 'max_redemptions': number; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'coupon'; + 'percent_off': number; + 'redeem_by': number; + 'script'?: ScriptModel | undefined; + 'times_redeemed': number; + 'type'?: 'amount_off' | 'percent_off' | 'script' | undefined; + 'valid': boolean; +}; + +export type PromotionCodesResourcePromotionModel = { + 'coupon': string | CouponModel; + 'type': 'coupon'; +}; + +export type PromotionCodeCurrencyOptionModel = { + 'minimum_amount': number; +}; + +export type PromotionCodesResourceRestrictionsModel = { + 'currency_options'?: { + [key: string]: PromotionCodeCurrencyOptionModel; +} | undefined; + 'first_time_transaction': boolean; + 'minimum_amount': number; + 'minimum_amount_currency': string; +}; + +export type PromotionCodeModel = { + 'active': boolean; + 'code': string; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; 'customer_account'?: string | undefined; - 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodEpsModel | undefined; - 'fpx'?: PaymentMethodFpxModel | undefined; - 'giropay'?: PaymentMethodGiropayModel | undefined; - 'gopay'?: PaymentMethodGopayModel | undefined; - 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'max_redemptions': number; + 'metadata': { + [key: string]: string; +}; + 'object': 'promotion_code'; + 'promotion': PromotionCodesResourcePromotionModel; + 'restrictions': PromotionCodesResourceRestrictionsModel; + 'times_redeemed': number; +}; + +export type DiscountSourceModel = { + 'coupon': string | CouponModel; + 'type': 'coupon'; +}; + +export type DiscountModel = { + 'checkout_session': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'end': number; + 'id': string; + 'invoice': string; + 'invoice_item': string; + 'object': 'discount'; + 'promotion_code': string | PromotionCodeModel; + 'source': DiscountSourceModel; + 'start': number; + 'subscription': string; + 'subscription_item': string; +}; + +export type InvoiceSettingCustomFieldModel = { + 'name': string; + 'value': string; +}; + +export type PaymentMethodAcssDebitModel = { + 'account_number'?: string | undefined; + 'bank_name': string; + 'fingerprint': string; + 'institution_number': string; + 'last4': string; + 'transit_number': string; +}; + +export type PaymentMethodAffirmModel = { + +}; + +export type PaymentMethodAfterpayClearpayModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsAlipayModel = { + +}; + +export type PaymentMethodAlmaModel = { + +}; + +export type PaymentMethodAmazonPayModel = { + +}; + +export type PaymentMethodAuBecsDebitModel = { + 'bsb_number': string; + 'fingerprint': string; + 'last4': string; +}; + +export type PaymentMethodBacsDebitModel = { + 'fingerprint': string; + 'last4': string; + 'sort_code': string; +}; + +export type PaymentMethodBancontactModel = { + +}; + +export type PaymentMethodBillieModel = { + +}; + +export type BillingDetailsModel = { + 'address': AddressModel; + 'email': string; + 'name': string; + 'phone': string; + 'tax_id': string; +}; + +export type PaymentMethodBlikModel = { + +}; + +export type PaymentMethodBoletoModel = { + 'tax_id': string; +}; + +export type PaymentMethodCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; +}; + +export type PaymentMethodDetailsCardPresentOfflineModel = { + 'stored_at': number; + 'type': 'deferred'; +}; + +export type PaymentMethodDetailsCardPresentReceiptModel = { + 'account_type'?: 'checking' | 'credit' | 'prepaid' | 'unknown' | undefined; + 'application_cryptogram': string; + 'application_preferred_name': string; + 'authorization_code': string; + 'authorization_response_code': string; + 'cardholder_verification_method': string; + 'dedicated_file_name': string; + 'terminal_verification_results': string; + 'transaction_status_information': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = { + 'type': 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown'; +}; + +export type PaymentMethodDetailsCardPresentModel = { + 'amount_authorized': number; + 'brand': string; + 'brand_product': string; + 'capture_before'?: number | undefined; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'emv_auth_data': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'generated_card': string; + 'iin'?: string | undefined; + 'incremental_authorization_supported': boolean; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'network_transaction_id': string; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; + 'overcapture_supported': boolean; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'receipt': PaymentMethodDetailsCardPresentReceiptModel; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type CardGeneratedFromPaymentMethodDetailsModel = { + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'type': string; +}; + +export type ApplicationModel = { + 'id': string; + 'name': string; + 'object': 'application'; +}; + +export type SetupAttemptPaymentMethodDetailsAcssDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAmazonPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsBacsDebitModel = { + +}; + +export type OfflineAcceptanceModel = { + +}; + +export type OnlineAcceptanceModel = { + 'ip_address': string; + 'user_agent': string; +}; + +export type CustomerAcceptanceModel = { + 'accepted_at': number; + 'offline'?: OfflineAcceptanceModel | undefined; + 'online'?: OnlineAcceptanceModel | undefined; + 'type': 'offline' | 'online'; +}; + +export type MandateMultiUseModel = { + 'amount'?: number | undefined; + 'currency'?: string | undefined; +}; + +export type MandateAcssDebitModel = { + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type MandateAmazonPayModel = { + +}; + +export type MandateAuBecsDebitModel = { + 'url': string; +}; + +export type MandateBacsDebitModel = { + 'network_status': 'accepted' | 'pending' | 'refused' | 'revoked'; + 'reference': string; + 'revocation_reason': 'account_closed' | 'bank_account_restricted' | 'bank_ownership_changed' | 'could_not_process' | 'debit_not_authorized'; + 'url': string; +}; + +export type CardMandatePaymentMethodDetailsModel = { + +}; + +export type MandateCashappModel = { + +}; + +export type MandateKakaoPayModel = { + +}; + +export type MandateKlarnaModel = { + +}; + +export type MandateKrCardModel = { + +}; + +export type MandateLinkModel = { + +}; + +export type MandateNaverPayModel = { + +}; + +export type MandateNzBankAccountModel = { + +}; + +export type MandatePaypalModel = { + 'billing_agreement_id': string; + 'fingerprint'?: string | undefined; + 'payer_id': string; + 'verified_email'?: string | undefined; +}; + +export type MandatePaytoModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'end_date': string; + 'payment_schedule': 'adhoc' | 'annual' | 'daily' | 'fortnightly' | 'monthly' | 'quarterly' | 'semi_annual' | 'weekly'; + 'payments_per_period': number; + 'purpose': 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility'; + 'start_date': string; +}; + +export type MandatePixModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'amount_type'?: 'fixed' | 'maximum' | undefined; + 'end_date'?: string | undefined; + 'payment_schedule'?: 'halfyearly' | 'monthly' | 'quarterly' | 'weekly' | 'yearly' | undefined; + 'reference'?: string | undefined; + 'start_date'?: string | undefined; +}; + +export type MandateRevolutPayModel = { + +}; + +export type MandateSepaDebitModel = { + 'reference': string; + 'url': string; +}; + +export type MandateUsBankAccountModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type MandatePaymentMethodDetailsModel = { + 'acss_debit'?: MandateAcssDebitModel | undefined; + 'amazon_pay'?: MandateAmazonPayModel | undefined; + 'au_becs_debit'?: MandateAuBecsDebitModel | undefined; + 'bacs_debit'?: MandateBacsDebitModel | undefined; + 'card'?: CardMandatePaymentMethodDetailsModel | undefined; + 'cashapp'?: MandateCashappModel | undefined; + 'kakao_pay'?: MandateKakaoPayModel | undefined; + 'klarna'?: MandateKlarnaModel | undefined; + 'kr_card'?: MandateKrCardModel | undefined; + 'link'?: MandateLinkModel | undefined; + 'naver_pay'?: MandateNaverPayModel | undefined; + 'nz_bank_account'?: MandateNzBankAccountModel | undefined; + 'paypal'?: MandatePaypalModel | undefined; + 'payto'?: MandatePaytoModel | undefined; + 'pix'?: MandatePixModel | undefined; + 'revolut_pay'?: MandateRevolutPayModel | undefined; + 'sepa_debit'?: MandateSepaDebitModel | undefined; + 'type': string; + 'us_bank_account'?: MandateUsBankAccountModel | undefined; +}; + +export type MandateSingleUseModel = { + 'amount': number; + 'currency': string; +}; + +export type MandateModel = { + 'customer_acceptance': CustomerAcceptanceModel; + 'id': string; + 'livemode': boolean; + 'multi_use'?: MandateMultiUseModel | undefined; + 'object': 'mandate'; + 'on_behalf_of'?: string | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': MandatePaymentMethodDetailsModel; + 'single_use'?: MandateSingleUseModel | undefined; + 'status': 'active' | 'inactive' | 'pending'; + 'type': 'multi_use' | 'single_use'; +}; + +export type SetupAttemptPaymentMethodDetailsBancontactModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsBoletoModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; +}; + +export type ThreeDSecureDetailsModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'electronic_commerce_indicator': '01' | '02' | '05' | '06' | '07'; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'transaction_id': string; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentMethodDetailsCardWalletApplePayModel = { + +}; + +export type PaymentMethodDetailsCardWalletGooglePayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsCardWalletModel = { + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'type': 'apple_pay' | 'google_pay' | 'link'; +}; + +export type SetupAttemptPaymentMethodDetailsCardModel = { + 'brand': string; + 'checks': SetupAttemptPaymentMethodDetailsCardChecksModel; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'three_d_secure': ThreeDSecureDetailsModel; + 'wallet': SetupAttemptPaymentMethodDetailsCardWalletModel; +}; + +export type SetupAttemptPaymentMethodDetailsCardPresentModel = { + 'generated_card': string | PaymentMethodModel; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; +}; + +export type SetupAttemptPaymentMethodDetailsCashappModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsIdBankTransferModel = { + 'bank': 'bca' | 'bni' | 'bri' | 'cimb' | 'permata'; + 'bank_code': string; + 'bank_name': string; + 'display_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsKakaoPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKlarnaModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsKrCardModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsLinkModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsNaverPayModel = { + 'buyer_id'?: string | undefined; +}; + +export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsPaypalModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsPaytoModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsPixModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsRevolutPayModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSepaDebitModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsSofortModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type SetupAttemptPaymentMethodDetailsStripeBalanceModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = { + +}; + +export type SetupAttemptPaymentMethodDetailsModel = { + 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; + 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; + 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; + 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; + 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; + 'id_bank_transfer'?: SetupAttemptPaymentMethodDetailsIdBankTransferModel | undefined; + 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; + 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; + 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; + 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; + 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; + 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; + 'payto'?: SetupAttemptPaymentMethodDetailsPaytoModel | undefined; + 'pix'?: SetupAttemptPaymentMethodDetailsPixModel | undefined; + 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; + 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; + 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; + 'stripe_balance'?: SetupAttemptPaymentMethodDetailsStripeBalanceModel | undefined; + 'type': string; + 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'commodity_code': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = { + 'image_url': string; + 'product_url': string; + 'reference': string; + 'subscription_reference': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = { + 'category'?: 'digital_goods' | 'donation' | 'physical_goods' | undefined; + 'description'?: string | undefined; + 'sold_by'?: string | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = { + 'card'?: PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'card_present'?: PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'klarna'?: PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel | undefined; + 'paypal'?: PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel | undefined; +}; + +export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = { + 'total_tax_amount': number; +}; + +export type PaymentIntentAmountDetailsLineItemModel = { + 'discount_amount': number; + 'id': string; + 'object': 'payment_intent_amount_details_line_item'; + 'payment_method_options': PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel; + 'product_code': string; + 'product_name': string; + 'quantity': number; + 'tax': PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel; + 'unit_cost': number; + 'unit_of_measure': string; +}; + +export type PaymentFlowsAmountDetailsResourceShippingModel = { + 'amount': number; + 'from_postal_code': string; + 'to_postal_code': string; +}; + +export type PaymentFlowsAmountDetailsResourceTaxModel = { + 'total_tax_amount': number; +}; + +export type PaymentFlowsAmountDetailsClientResourceTipModel = { + 'amount'?: number | undefined; +}; + +export type PaymentFlowsAmountDetailsModel = { + 'discount_amount'?: number | undefined; + 'line_items'?: { + 'data': PaymentIntentAmountDetailsLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'shipping'?: PaymentFlowsAmountDetailsResourceShippingModel | undefined; + 'tax'?: PaymentFlowsAmountDetailsResourceTaxModel | undefined; + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled': boolean; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = { + 'calculation': string; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = { + 'tax'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel | undefined; +}; + +export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = { + 'inputs'?: PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel | undefined; +}; + +export type FeeModel = { + 'amount': number; + 'application': string; + 'currency': string; + 'description': string; + 'type': string; +}; + +export type ConnectCollectionTransferModel = { + 'amount': number; + 'currency': string; + 'destination': string | AccountModel; + 'id': string; + 'livemode': boolean; + 'object': 'connect_collection_transfer'; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { + 'balance_transaction': string | BalanceTransactionModel; + 'linked_transaction': string | CustomerCashBalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = { + 'bic': string; + 'iban_last4': string; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = { + 'account_number_last4': string; + 'sender_name': string; + 'sort_code': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = { + 'sender_bank': string; + 'sender_branch': string; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = { + 'network'?: 'ach' | 'domestic_wire_us' | 'swift' | undefined; + 'sender_name': string; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = { + 'eu_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel | undefined; + 'gb_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel | undefined; + 'jp_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel | undefined; + 'reference': string; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; + 'us_bank_transfer'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel | undefined; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = { + 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel; +}; + +export type DestinationDetailsUnimplementedModel = { + +}; + +export type RefundDestinationDetailsBlikModel = { + 'network_decline_code': string; + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsBrBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsCardModel = { + 'reference'?: string | undefined; + 'reference_status'?: string | undefined; + 'reference_type'?: string | undefined; + 'type': 'pending' | 'refund' | 'reversal'; +}; + +export type RefundDestinationDetailsCryptoModel = { + 'reference': string; +}; + +export type RefundDestinationDetailsEuBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsGbBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsIdBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsJpBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMbWayModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMultibancoModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsMxBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsP24Model = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsPaypalModel = { + 'network_decline_code': string; +}; + +export type RefundDestinationDetailsSwishModel = { + 'network_decline_code': string; + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsThBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsUsBankTransferModel = { + 'reference': string; + 'reference_status': string; +}; + +export type RefundDestinationDetailsModel = { + 'affirm'?: DestinationDetailsUnimplementedModel | undefined; + 'afterpay_clearpay'?: DestinationDetailsUnimplementedModel | undefined; + 'alipay'?: DestinationDetailsUnimplementedModel | undefined; + 'alma'?: DestinationDetailsUnimplementedModel | undefined; + 'amazon_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'au_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'blik'?: RefundDestinationDetailsBlikModel | undefined; + 'br_bank_transfer'?: RefundDestinationDetailsBrBankTransferModel | undefined; + 'card'?: RefundDestinationDetailsCardModel | undefined; + 'cashapp'?: DestinationDetailsUnimplementedModel | undefined; + 'crypto'?: RefundDestinationDetailsCryptoModel | undefined; + 'customer_cash_balance'?: DestinationDetailsUnimplementedModel | undefined; + 'eps'?: DestinationDetailsUnimplementedModel | undefined; + 'eu_bank_transfer'?: RefundDestinationDetailsEuBankTransferModel | undefined; + 'gb_bank_transfer'?: RefundDestinationDetailsGbBankTransferModel | undefined; + 'giropay'?: DestinationDetailsUnimplementedModel | undefined; + 'grabpay'?: DestinationDetailsUnimplementedModel | undefined; + 'id_bank_transfer'?: RefundDestinationDetailsIdBankTransferModel | undefined; + 'jp_bank_transfer'?: RefundDestinationDetailsJpBankTransferModel | undefined; + 'klarna'?: DestinationDetailsUnimplementedModel | undefined; + 'mb_way'?: RefundDestinationDetailsMbWayModel | undefined; + 'multibanco'?: RefundDestinationDetailsMultibancoModel | undefined; + 'mx_bank_transfer'?: RefundDestinationDetailsMxBankTransferModel | undefined; + 'nz_bank_transfer'?: DestinationDetailsUnimplementedModel | undefined; + 'p24'?: RefundDestinationDetailsP24Model | undefined; + 'paynow'?: DestinationDetailsUnimplementedModel | undefined; + 'paypal'?: RefundDestinationDetailsPaypalModel | undefined; + 'pix'?: DestinationDetailsUnimplementedModel | undefined; + 'revolut'?: DestinationDetailsUnimplementedModel | undefined; + 'sofort'?: DestinationDetailsUnimplementedModel | undefined; + 'swish'?: RefundDestinationDetailsSwishModel | undefined; + 'th_bank_transfer'?: RefundDestinationDetailsThBankTransferModel | undefined; + 'twint'?: DestinationDetailsUnimplementedModel | undefined; + 'type': string; + 'us_bank_transfer'?: RefundDestinationDetailsUsBankTransferModel | undefined; + 'wechat_pay'?: DestinationDetailsUnimplementedModel | undefined; + 'zip'?: DestinationDetailsUnimplementedModel | undefined; +}; + +export type EmailSentModel = { + 'email_sent_at': number; + 'email_sent_to': string; +}; + +export type RefundNextActionDisplayDetailsModel = { + 'email_sent': EmailSentModel; + 'expires_at': number; +}; + +export type RefundNextActionModel = { + 'display_details'?: RefundNextActionDisplayDetailsModel | undefined; + 'type': string; +}; + +export type PaymentFlowsPaymentIntentPresentmentDetailsModel = { + 'presentment_amount': number; + 'presentment_currency': string; +}; + +export type TransferModel = { + 'amount': number; + 'amount_reversed': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'destination': string | AccountModel; + 'destination_payment'?: string | ChargeModel | undefined; + 'fx_quote'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'transfer'; + 'reversals': { + 'data': TransferReversalModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'reversed': boolean; + 'source_transaction': string | ChargeModel; + 'source_type'?: string | undefined; + 'transfer_group': string; +}; + +export type TransferReversalModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'destination_payment_refund': string | RefundModel; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'transfer_reversal'; + 'source_refund': string | RefundModel; + 'transfer': string | TransferModel; +}; + +export type RefundModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'description'?: string | undefined; + 'destination_details'?: RefundDestinationDetailsModel | undefined; + 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; + 'failure_reason'?: string | undefined; + 'id': string; + 'instructions_email'?: string | undefined; + 'metadata': { + [key: string]: string; +}; + 'next_action'?: RefundNextActionModel | undefined; + 'object': 'refund'; + 'payment_intent': string | PaymentIntentModel; + 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'reason': 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer'; + 'receipt_number': string; + 'source_transfer_reversal': string | TransferReversalModel; + 'status': string; + 'transfer_reversal': string | TransferReversalModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { + 'refund': string | RefundModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { + 'balance_transaction': string | BalanceTransactionModel; +}; + +export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { + 'payment_intent': string | PaymentIntentModel; +}; + +export type CustomerCashBalanceTransactionModel = { + 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; + 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'ending_balance': number; + 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; + 'id': string; + 'livemode': boolean; + 'net_amount': number; + 'object': 'customer_cash_balance_transaction'; + 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; + 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; + 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; + 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; +}; + +export type DisputeTransactionShippingAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type DisputeVisaCompellingEvidence3DisputedTransactionModel = { + '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': DisputeTransactionShippingAddressModel; +}; + +export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = { + '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': DisputeTransactionShippingAddressModel; +}; + +export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = { + 'disputed_transaction': DisputeVisaCompellingEvidence3DisputedTransactionModel; + 'prior_undisputed_transactions': DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel[]; +}; + +export type DisputeEnhancedEvidenceVisaComplianceModel = { + 'fee_acknowledged': boolean; +}; + +export type DisputeEnhancedEvidenceModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEvidenceVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEvidenceVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceModel = { + 'access_activity_log': string; + 'billing_address': string; + 'cancellation_policy': string | FileModel; + 'cancellation_policy_disclosure': string; + 'cancellation_rebuttal': string; + 'customer_communication': string | FileModel; + 'customer_email_address': string; + 'customer_name': string; + 'customer_purchase_ip': string; + 'customer_signature': string | FileModel; + 'duplicate_charge_documentation': string | FileModel; + 'duplicate_charge_explanation': string; + 'duplicate_charge_id': string; + 'enhanced_evidence': DisputeEnhancedEvidenceModel; + 'product_description': string; + 'receipt': string | FileModel; + 'refund_policy': string | FileModel; + 'refund_policy_disclosure': string; + 'refund_refusal_explanation': string; + 'service_date': string; + 'service_documentation': string | FileModel; + 'shipping_address': string; + 'shipping_carrier': string; + 'shipping_date': string; + 'shipping_documentation': string | FileModel; + 'shipping_tracking_number': string; + 'uncategorized_file': string | FileModel; + 'uncategorized_text': string; +}; + +export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = { + 'required_actions': Array<'missing_customer_identifiers' | 'missing_disputed_transaction_description' | 'missing_merchandise_or_services' | 'missing_prior_undisputed_transaction_description' | 'missing_prior_undisputed_transactions'>; + 'status': 'not_qualified' | 'qualified' | 'requires_action'; +}; + +export type DisputeEnhancedEligibilityVisaComplianceModel = { + 'status': 'fee_acknowledged' | 'requires_fee_acknowledgement'; +}; + +export type DisputeEnhancedEligibilityModel = { + 'visa_compelling_evidence_3'?: DisputeEnhancedEligibilityVisaCompellingEvidence3Model | undefined; + 'visa_compliance'?: DisputeEnhancedEligibilityVisaComplianceModel | undefined; +}; + +export type DisputeEvidenceDetailsModel = { + 'due_by': number; + 'enhanced_eligibility': DisputeEnhancedEligibilityModel; + 'has_evidence': boolean; + 'past_due': boolean; + 'submission_count': number; + 'submission_method'?: 'manual' | 'not_submitted' | 'smart_disputes' | undefined; +}; + +export type DisputePaymentMethodDetailsAmazonPayModel = { + 'dispute_type': 'chargeback' | 'claim'; +}; + +export type DisputePaymentMethodDetailsCardModel = { + 'brand': string; + 'case_type': 'block' | 'chargeback' | 'compliance' | 'inquiry' | 'resolution'; + 'network_reason_code': string; +}; + +export type DisputePaymentMethodDetailsKlarnaModel = { + 'chargeback_loss_reason_code'?: string | undefined; + 'reason_code': string; +}; + +export type DisputePaymentMethodDetailsPaypalModel = { + 'case_id': string; + 'reason_code': string; +}; + +export type DisputePaymentMethodDetailsModel = { + 'amazon_pay'?: DisputePaymentMethodDetailsAmazonPayModel | undefined; + 'card'?: DisputePaymentMethodDetailsCardModel | undefined; + 'klarna'?: DisputePaymentMethodDetailsKlarnaModel | undefined; + 'paypal'?: DisputePaymentMethodDetailsPaypalModel | undefined; + 'type': 'amazon_pay' | 'card' | 'klarna' | 'paypal'; +}; + +export type DisputeSmartDisputesModel = { + 'recommended_evidence': string[][]; + 'status': 'available' | 'processing' | 'requires_evidence' | 'unavailable'; +}; + +export type DisputeModel = { + 'amount': number; + 'balance_transactions': BalanceTransactionModel[]; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; + 'evidence': DisputeEvidenceModel; + 'evidence_details': DisputeEvidenceDetailsModel; + 'id': string; + 'intended_submission_method'?: 'manual' | 'prefer_manual' | 'prefer_smart_disputes' | 'smart_disputes' | undefined; + 'is_charge_refundable': boolean; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'network_reason_code'?: string | undefined; + 'object': 'dispute'; + 'payment_intent': string | PaymentIntentModel; + 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; + 'reason': string; + 'smart_disputes'?: DisputeSmartDisputesModel | undefined; + 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; +}; + +export type FeeRefundModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'fee': string | ApplicationFeeModel; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'fee_refund'; +}; + +export type IssuingAuthorizationAmountDetailsModel = { + 'atm_fee': number; + 'cashback_amount': number; +}; + +export type IssuingCardholderAddressModel = { + 'address': AddressModel; +}; + +export type IssuingCardholderCompanyModel = { + 'tax_id_provided': boolean; +}; + +export type IssuingCardholderUserTermsAcceptanceModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type IssuingCardholderCardIssuingModel = { + 'user_terms_acceptance': IssuingCardholderUserTermsAcceptanceModel; +}; + +export type IssuingCardholderIndividualDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type IssuingCardholderIdDocumentModel = { + 'back': string | FileModel; + 'front': string | FileModel; +}; + +export type IssuingCardholderVerificationModel = { + 'document': IssuingCardholderIdDocumentModel; +}; + +export type IssuingCardholderIndividualModel = { + 'card_issuing'?: IssuingCardholderCardIssuingModel | undefined; + 'dob': IssuingCardholderIndividualDobModel; + 'first_name': string; + 'last_name': string; + 'verification': IssuingCardholderVerificationModel; +}; + +export type IssuingCardholderRequirementsModel = { + 'disabled_reason': 'listed' | 'rejected.listed' | 'requirements.past_due' | 'under_review'; + 'past_due': Array<'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'>; +}; + +export type IssuingCardholderSpendingLimitModel = { + 'amount': number; + 'categories': Array<'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'; +}; + +export type IssuingCardholderAuthorizationControlsModel = { + 'allowed_categories': Array<'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': Array<'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': IssuingCardholderSpendingLimitModel[]; + 'spending_limits_currency': string; +}; + +export type IssuingCardholderModel = { + 'billing': IssuingCardholderAddressModel; + 'company': IssuingCardholderCompanyModel; + 'created': number; + 'email': string; + 'id': string; + 'individual': IssuingCardholderIndividualModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'issuing.cardholder'; + 'phone_number': string; + 'preferred_locales': Array<'de' | 'en' | 'es' | 'fr' | 'it'>; + 'requirements': IssuingCardholderRequirementsModel; + 'spending_controls': IssuingCardholderAuthorizationControlsModel; + 'status': 'active' | 'blocked' | 'inactive'; + 'type': 'company' | 'individual'; +}; + +export type IssuingCardFraudWarningModel = { + 'started_at': number; + 'type': 'card_testing_exposure' | 'fraud_dispute_filed' | 'third_party_reported' | 'user_indicated_fraud'; +}; + +export type IssuingPersonalizationDesignCarrierTextModel = { + 'footer_body': string; + 'footer_title': string; + 'header_body': string; + 'header_title': string; +}; + +export type IssuingPhysicalBundleFeaturesModel = { + 'card_logo': 'optional' | 'required' | 'unsupported'; + 'carrier_text': 'optional' | 'required' | 'unsupported'; + 'second_line': 'optional' | 'required' | 'unsupported'; +}; + +export type IssuingPhysicalBundleModel = { + 'features': IssuingPhysicalBundleFeaturesModel; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'issuing.physical_bundle'; + 'status': 'active' | 'inactive' | 'review'; + 'type': 'custom' | 'standard'; +}; + +export type IssuingPersonalizationDesignPreferencesModel = { + 'is_default': boolean; + 'is_platform_default': boolean; +}; + +export type IssuingPersonalizationDesignRejectionReasonsModel = { + 'card_logo': Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_binary_image' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'>; + 'carrier_text': Array<'geographic_location' | 'inappropriate' | 'network_name' | 'non_fiat_currency' | 'other' | 'other_entity' | 'promotional_material'>; +}; + +export type IssuingPersonalizationDesignModel = { + 'card_logo': string | FileModel; + 'carrier_text': IssuingPersonalizationDesignCarrierTextModel; + 'created': number; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'issuing.personalization_design'; + 'physical_bundle': string | IssuingPhysicalBundleModel; + 'preferences': IssuingPersonalizationDesignPreferencesModel; + 'rejection_reasons': IssuingPersonalizationDesignRejectionReasonsModel; + 'status': 'active' | 'inactive' | 'rejected' | 'review'; +}; + +export type IssuingCardShippingAddressValidationModel = { + 'mode': 'disabled' | 'normalization_only' | 'validation_and_normalization'; + 'normalized_address': AddressModel; + 'result': 'indeterminate' | 'likely_deliverable' | 'likely_undeliverable'; +}; + +export type IssuingCardShippingCustomsModel = { + 'eori_number': string; +}; + +export type IssuingCardShippingModel = { + 'address': AddressModel; + 'address_validation': IssuingCardShippingAddressValidationModel; + 'carrier': 'dhl' | 'fedex' | 'royal_mail' | 'usps'; + 'customs': IssuingCardShippingCustomsModel; + 'eta': number; + 'name': string; + 'phone_number': string; + 'require_signature': boolean; + 'service': 'express' | 'priority' | 'standard'; + 'status': 'canceled' | 'delivered' | 'failure' | 'pending' | 'returned' | 'shipped' | 'submitted'; + 'tracking_number': string; + 'tracking_url': string; + 'type': 'bulk' | 'individual'; +}; + +export type IssuingCardSpendingLimitModel = { + 'amount': number; + 'categories': Array<'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'; +}; + +export type IssuingCardAuthorizationControlsModel = { + 'allowed_categories': Array<'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': Array<'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': IssuingCardSpendingLimitModel[]; + 'spending_limits_currency': string; +}; + +export type IssuingCardApplePayModel = { + 'eligible': boolean; + 'ineligible_reason': 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region'; +}; + +export type IssuingCardGooglePayModel = { + 'eligible': boolean; + 'ineligible_reason': 'missing_agreement' | 'missing_cardholder_contact' | 'unsupported_region'; +}; + +export type IssuingCardWalletsModel = { + 'apple_pay': IssuingCardApplePayModel; + 'google_pay': IssuingCardGooglePayModel; + 'primary_account_identifier': string; +}; + +export type IssuingCardModel = { + 'brand': string; + 'cancellation_reason': 'design_rejected' | 'lost' | 'stolen'; + 'cardholder': IssuingCardholderModel; + 'created': number; + 'currency': string; + 'cvc'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'financial_account'?: string | undefined; + 'id': string; + 'last4': string; + 'latest_fraud_warning': IssuingCardFraudWarningModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'number'?: string | undefined; + 'object': 'issuing.card'; + 'personalization_design': string | IssuingPersonalizationDesignModel; + 'replaced_by': string | IssuingCardModel; + 'replacement_for': string | IssuingCardModel; + 'replacement_reason': 'damaged' | 'expired' | 'lost' | 'stolen'; + 'second_line': string; + 'shipping': IssuingCardShippingModel; + 'spending_controls': IssuingCardAuthorizationControlsModel; + 'status': 'active' | 'canceled' | 'inactive'; + 'type': 'physical' | 'virtual'; + 'wallets': IssuingCardWalletsModel; +}; + +export type IssuingAuthorizationFleetCardholderPromptDataModel = { + 'alphanumeric_id': string; + 'driver_id': string; + 'odometer': number; + 'unspecified_id': string; + 'user_id': string; + 'vehicle_number': string; +}; + +export type IssuingAuthorizationFleetFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetNonFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetTaxDataModel = { + 'local_amount_decimal': string; + 'national_amount_decimal': string; +}; + +export type IssuingAuthorizationFleetReportedBreakdownModel = { + 'fuel': IssuingAuthorizationFleetFuelPriceDataModel; + 'non_fuel': IssuingAuthorizationFleetNonFuelPriceDataModel; + 'tax': IssuingAuthorizationFleetTaxDataModel; +}; + +export type IssuingAuthorizationFleetDataModel = { + 'cardholder_prompt_data': IssuingAuthorizationFleetCardholderPromptDataModel; + 'purchase_type': 'fuel_and_non_fuel_purchase' | 'fuel_purchase' | 'non_fuel_purchase'; + 'reported_breakdown': IssuingAuthorizationFleetReportedBreakdownModel; + 'service_type': 'full_service' | 'non_fuel_transaction' | 'self_service'; +}; + +export type IssuingAuthorizationFraudChallengeModel = { + 'channel': 'sms'; + 'status': 'expired' | 'pending' | 'rejected' | 'undeliverable' | 'verified'; + 'undeliverable_reason': 'no_phone_number' | 'unsupported_phone_number'; +}; + +export type IssuingAuthorizationFuelDataModel = { + '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; +}; + +export type IssuingAuthorizationMerchantDataModel = { + 'category': string; + 'category_code': string; + 'city': string; + 'country': string; + 'name': string; + 'network_id': string; + 'postal_code': string; + 'state': string; + 'tax_id': string; + 'terminal_id': string; + 'url': string; +}; + +export type IssuingAuthorizationNetworkDataModel = { + 'acquiring_institution_id': string; + 'system_trace_audit_number': string; + 'transaction_id': string; +}; + +export type IssuingAuthorizationPendingRequestModel = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'currency': string; + 'is_amount_controllable': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score': number; +}; + +export type IssuingAuthorizationRequest_1Model = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'approved': boolean; + 'authorization_code': string; + 'created': number; + 'currency': string; + 'merchant_amount': number; + 'merchant_currency': string; + 'network_risk_score': number; + 'reason': 'account_disabled' | 'card_active' | 'card_canceled' | 'card_expired' | 'card_inactive' | 'cardholder_blocked' | 'cardholder_inactive' | 'cardholder_verification_required' | 'insecure_authorization_method' | 'insufficient_funds' | 'network_fallback' | 'not_allowed' | 'pin_blocked' | 'spending_controls' | 'suspected_fraud' | 'verification_failed' | 'webhook_approved' | 'webhook_declined' | 'webhook_error' | 'webhook_timeout'; + 'reason_message': string; + 'requested_at': number; +}; + +export type IssuingNetworkTokenDeviceModel = { + '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 IssuingNetworkTokenMastercardModel = { + 'card_reference_id'?: string | undefined; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_requestor_name'?: string | undefined; +}; + +export type IssuingNetworkTokenVisaModel = { + 'card_reference_id': string; + 'token_reference_id': string; + 'token_requestor_id': string; + 'token_risk_score'?: string | undefined; +}; + +export type IssuingNetworkTokenAddressModel = { + 'line1': string; + 'postal_code': string; +}; + +export type IssuingNetworkTokenWalletProviderModel = { + 'account_id'?: string | undefined; + 'account_trust_score'?: number | undefined; + 'card_number_source'?: 'app' | 'manual' | 'on_file' | 'other' | undefined; + 'cardholder_address'?: IssuingNetworkTokenAddressModel | undefined; + 'cardholder_name'?: string | undefined; + 'device_trust_score'?: number | undefined; + 'hashed_account_email_address'?: string | undefined; + 'reason_codes'?: Array<'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 IssuingNetworkTokenNetworkDataModel = { + 'device'?: IssuingNetworkTokenDeviceModel | undefined; + 'mastercard'?: IssuingNetworkTokenMastercardModel | undefined; + 'type': 'mastercard' | 'visa'; + 'visa'?: IssuingNetworkTokenVisaModel | undefined; + 'wallet_provider'?: IssuingNetworkTokenWalletProviderModel | undefined; +}; + +export type IssuingTokenModel = { + 'card': string | IssuingCardModel; + 'created': number; + 'device_fingerprint': string; + 'id': string; + 'last4'?: string | undefined; + 'livemode': boolean; + 'network': 'mastercard' | 'visa'; + 'network_data'?: IssuingNetworkTokenNetworkDataModel | undefined; + 'network_updated_at': number; + 'object': 'issuing.token'; + 'status': 'active' | 'deleted' | 'requested' | 'suspended'; + 'wallet_provider'?: 'apple_pay' | 'google_pay' | 'samsung_pay' | undefined; +}; + +export type IssuingTransactionAmountDetailsModel = { + 'atm_fee': number; + 'cashback_amount': number; +}; + +export type IssuingDisputeCanceledEvidenceModel = { + 'additional_documentation': string | FileModel; + '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; +}; + +export type IssuingDisputeDuplicateEvidenceModel = { + 'additional_documentation': string | FileModel; + 'card_statement': string | FileModel; + 'cash_receipt': string | FileModel; + 'check_image': string | FileModel; + 'explanation': string; + 'original_transaction': string; +}; + +export type IssuingDisputeFraudulentEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; +}; + +export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; + 'received_at': number; + 'return_description': string; + 'return_status': 'merchant_rejected' | 'successful'; + 'returned_at': number; +}; + +export type IssuingDisputeNoValidAuthorizationEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; +}; + +export type IssuingDisputeNotReceivedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'expected_at': number; + 'explanation': string; + 'product_description': string; + 'product_type': 'merchandise' | 'service'; +}; + +export type IssuingDisputeOtherEvidenceModel = { + 'additional_documentation': string | FileModel; + 'explanation': string; + 'product_description': string; + 'product_type': 'merchandise' | 'service'; +}; + +export type IssuingDisputeServiceNotAsDescribedEvidenceModel = { + 'additional_documentation': string | FileModel; + 'canceled_at': number; + 'cancellation_reason': string; + 'explanation': string; + 'received_at': number; +}; + +export type IssuingDisputeEvidenceModel = { + 'canceled'?: IssuingDisputeCanceledEvidenceModel | undefined; + 'duplicate'?: IssuingDisputeDuplicateEvidenceModel | undefined; + 'fraudulent'?: IssuingDisputeFraudulentEvidenceModel | undefined; + 'merchandise_not_as_described'?: IssuingDisputeMerchandiseNotAsDescribedEvidenceModel | undefined; + 'no_valid_authorization'?: IssuingDisputeNoValidAuthorizationEvidenceModel | undefined; + 'not_received'?: IssuingDisputeNotReceivedEvidenceModel | undefined; + 'other'?: IssuingDisputeOtherEvidenceModel | undefined; + 'reason': 'canceled' | 'duplicate' | 'fraudulent' | 'merchandise_not_as_described' | 'no_valid_authorization' | 'not_received' | 'other' | 'service_not_as_described'; + 'service_not_as_described'?: IssuingDisputeServiceNotAsDescribedEvidenceModel | undefined; +}; + +export type IssuingDisputeTreasuryModel = { + 'debit_reversal': string; + 'received_debit': string; +}; + +export type IssuingDisputeModel = { + 'amount': number; + 'balance_transactions'?: BalanceTransactionModel[] | undefined; + 'created': number; + 'currency': string; + 'evidence': IssuingDisputeEvidenceModel; + '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' | undefined; + 'metadata': { + [key: string]: string; +}; + 'object': 'issuing.dispute'; + 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; + 'transaction': string | IssuingTransactionModel; + 'treasury'?: IssuingDisputeTreasuryModel | undefined; +}; + +export type IssuingTransactionNetworkDataModel = { + 'authorization_code': string; + 'processing_date': string; + 'transaction_id': string; +}; + +export type IssuingTransactionFleetCardholderPromptDataModel = { + 'driver_id': string; + 'odometer': number; + 'unspecified_id': string; + 'user_id': string; + 'vehicle_number': string; +}; + +export type IssuingTransactionFleetFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingTransactionFleetNonFuelPriceDataModel = { + 'gross_amount_decimal': string; +}; + +export type IssuingTransactionFleetTaxDataModel = { + 'local_amount_decimal': string; + 'national_amount_decimal': string; +}; + +export type IssuingTransactionFleetReportedBreakdownModel = { + 'fuel': IssuingTransactionFleetFuelPriceDataModel; + 'non_fuel': IssuingTransactionFleetNonFuelPriceDataModel; + 'tax': IssuingTransactionFleetTaxDataModel; +}; + +export type IssuingTransactionFleetDataModel = { + 'cardholder_prompt_data': IssuingTransactionFleetCardholderPromptDataModel; + 'purchase_type': string; + 'reported_breakdown': IssuingTransactionFleetReportedBreakdownModel; + 'service_type': string; +}; + +export type IssuingTransactionFlightDataLegModel = { + 'arrival_airport_code': string; + 'carrier': string; + 'departure_airport_code': string; + 'flight_number': string; + 'service_class': string; + 'stopover_allowed': boolean; +}; + +export type IssuingTransactionFlightDataModel = { + 'departure_at': number; + 'passenger_name': string; + 'refundable': boolean; + 'segments': IssuingTransactionFlightDataLegModel[]; + 'travel_agency': string; +}; + +export type IssuingTransactionFuelDataModel = { + 'industry_product_code': string; + 'quantity_decimal': string; + 'type': string; + 'unit': string; + 'unit_cost_decimal': string; +}; + +export type IssuingTransactionLodgingDataModel = { + 'check_in_at': number; + 'nights': number; +}; + +export type IssuingTransactionReceiptDataModel = { + 'description': string; + 'quantity': number; + 'total': number; + 'unit_cost': number; +}; + +export type IssuingTransactionPurchaseDetailsModel = { + 'fleet': IssuingTransactionFleetDataModel; + 'flight': IssuingTransactionFlightDataModel; + 'fuel': IssuingTransactionFuelDataModel; + 'lodging': IssuingTransactionLodgingDataModel; + 'receipt': IssuingTransactionReceiptDataModel[]; + 'reference': string; +}; + +export type IssuingSettlementModel = { + 'bin': string; + 'clearing_date': number; + 'created': number; + 'currency': string; + 'id': string; + 'interchange_fees_amount': number; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'net_total_amount': number; + 'network': 'maestro' | 'visa'; + 'network_fees_amount': number; + 'network_settlement_identifier': string; + 'object': 'issuing.settlement'; + 'other_fees_amount'?: number | undefined; + 'other_fees_count'?: number | undefined; + 'settlement_service': string; + 'status': 'complete' | 'pending'; + 'transaction_amount': number; + 'transaction_count': number; +}; + +export type IssuingTransactionTreasuryModel = { + 'received_credit': string; + 'received_debit': string; +}; + +export type IssuingTransactionModel = { + 'amount': number; + 'amount_details': IssuingTransactionAmountDetailsModel; + 'authorization': string | IssuingAuthorizationModel; + 'balance_transaction': string | BalanceTransactionModel; + 'card': string | IssuingCardModel; + 'cardholder': string | IssuingCardholderModel; + 'created': number; + 'currency': string; + 'dispute': string | IssuingDisputeModel; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; +}; + 'network_data': IssuingTransactionNetworkDataModel; + 'object': 'issuing.transaction'; + 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; + 'settlement'?: string | IssuingSettlementModel | undefined; + 'token'?: string | IssuingTokenModel | undefined; + 'treasury'?: IssuingTransactionTreasuryModel | undefined; + 'type': 'capture' | 'refund'; + 'wallet': 'apple_pay' | 'google_pay' | 'samsung_pay'; +}; + +export type IssuingAuthorizationTreasuryModel = { + 'received_credits': string[]; + 'received_debits': string[]; + 'transaction': string; +}; + +export type IssuingAuthorizationAuthenticationExemptionModel = { + 'claimed_by': 'acquirer' | 'issuer'; + 'type': 'low_value_transaction' | 'transaction_risk_analysis' | 'unknown'; +}; + +export type IssuingAuthorizationThreeDSecureModel = { + 'result': 'attempt_acknowledged' | 'authenticated' | 'failed' | 'required'; +}; + +export type IssuingAuthorizationVerificationDataModel = { + 'address_line1_check': 'match' | 'mismatch' | 'not_provided'; + 'address_postal_code_check': 'match' | 'mismatch' | 'not_provided'; + 'authentication_exemption': IssuingAuthorizationAuthenticationExemptionModel; + 'cvc_check': 'match' | 'mismatch' | 'not_provided'; + 'expiry_check': 'match' | 'mismatch' | 'not_provided'; + 'postal_code': string; + 'three_d_secure': IssuingAuthorizationThreeDSecureModel; +}; + +export type IssuingAuthorizationModel = { + 'amount': number; + 'amount_details': IssuingAuthorizationAmountDetailsModel; + 'approved': boolean; + 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; + 'balance_transactions': BalanceTransactionModel[]; + 'card': IssuingCardModel; + 'cardholder': string | IssuingCardholderModel; + 'created': number; + 'currency': string; + 'fleet': IssuingAuthorizationFleetDataModel; + 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; + 'fuel': IssuingAuthorizationFuelDataModel; + 'id': string; + 'livemode': boolean; + 'merchant_amount': number; + 'merchant_currency': string; + 'merchant_data': IssuingAuthorizationMerchantDataModel; + 'metadata': { + [key: string]: string; +}; + 'network_data': IssuingAuthorizationNetworkDataModel; + 'object': 'issuing.authorization'; + 'pending_request': IssuingAuthorizationPendingRequestModel; + 'request_history': IssuingAuthorizationRequest_1Model[]; + 'status': 'closed' | 'expired' | 'pending' | 'reversed'; + 'token'?: string | IssuingTokenModel | undefined; + 'transactions': IssuingTransactionModel[]; + 'treasury'?: IssuingAuthorizationTreasuryModel | undefined; + 'verification_data': IssuingAuthorizationVerificationDataModel; + 'verified_by_fraud_challenge': boolean; + 'wallet': string; +}; + +export type DeletedBankAccountModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'bank_account'; +}; + +export type DeletedCardModel = { + 'currency'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'object': 'card'; +}; + +export type DeletedExternalAccountModel = DeletedBankAccountModel | DeletedCardModel; + +export type PayoutsTraceIdModel = { + 'status': string; + 'value': string; +}; + +export type PayoutModel = { + 'amount': number; + 'application_fee': string | ApplicationFeeModel; + 'application_fee_amount': number; + 'arrival_date': number; + 'automatic': boolean; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'destination': string | ExternalAccountModel | DeletedExternalAccountModel; + 'failure_balance_transaction': string | BalanceTransactionModel; + 'failure_code': string; + 'failure_message': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'method': string; + 'object': 'payout'; + 'original_payout': string | PayoutModel; + 'payout_method': string; + 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; + 'reversed_by': string | PayoutModel; + 'source_type': string; + 'statement_descriptor': string; + 'status': string; + 'trace_id': PayoutsTraceIdModel; + 'type': 'bank_account' | 'card'; +}; + +export type ReserveTransactionModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'id': string; + 'object': 'reserve_transaction'; +}; + +export type TaxDeductedAtSourceModel = { + 'id': string; + 'object': 'tax_deducted_at_source'; + 'period_end': number; + 'period_start': number; + 'tax_deduction_account_number': string; +}; + +export type TopupModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'description': string; + 'expected_availability_date': number; + 'failure_code': string; + 'failure_message': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'topup'; + 'source': SourceModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; + 'transfer_group': string; +}; + +export type BalanceTransactionSourceModel = ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel; + +export type BalanceTransactionModel = { + 'amount': number; + 'available_on': number; + 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; + 'created': number; + 'currency': string; + 'description': string; + 'exchange_rate': number; + 'fee': number; + 'fee_details': FeeModel[]; + 'id': string; + 'net': number; + 'object': 'balance_transaction'; + 'reporting_category': string; + 'source': string | BalanceTransactionSourceModel; + 'status': string; + 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; +}; + +export type PlatformEarningFeeSourceModel = { + 'charge'?: string | undefined; + 'payout'?: string | undefined; + 'type': 'charge' | 'payout'; +}; + +export type ApplicationFeeModel = { + 'account': string | AccountModel; + 'amount': number; + 'amount_refunded': number; + 'application': string | ApplicationModel; + 'balance_transaction': string | BalanceTransactionModel; + 'charge': string | ChargeModel; + 'created': number; + 'currency': string; + 'fee_source': PlatformEarningFeeSourceModel; + 'id': string; + 'livemode': boolean; + 'object': 'application_fee'; + 'originating_transaction': string | ChargeModel; + 'refunded': boolean; + 'refunds': { + 'data': FeeRefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type ChargeFraudDetailsModel = { + 'stripe_report'?: string | undefined; + 'user_report'?: string | undefined; +}; + +export type Level3LineItemsModel = { + 'discount_amount': number; + 'product_code': string; + 'product_description': string; + 'quantity': number; + 'tax_amount': number; + 'unit_cost': number; +}; + +export type Level3Model = { + 'customer_reference'?: string | undefined; + 'line_items': Level3LineItemsModel[]; + 'merchant_reference': string; + 'shipping_address_zip'?: string | undefined; + 'shipping_amount'?: number | undefined; + 'shipping_from_zip'?: string | undefined; +}; + +export type RuleModel = { + 'action': string; + 'id': string; + 'predicate': string; +}; + +export type ChargeOutcomeModel = { + 'advice_code': 'confirm_card_data' | 'do_not_try_again' | 'try_again_later'; + 'network_advice_code': string; + 'network_decline_code': string; + 'network_status': string; + 'reason': string; + 'risk_level'?: string | undefined; + 'risk_score'?: number | undefined; + 'rule'?: string | RuleModel | undefined; + 'seller_message': string; + 'type': string; +}; + +export type PaymentMethodDetailsAchCreditTransferModel = { + 'account_number': string; + 'bank_name': string; + 'routing_number': string; + 'swift_code': string; +}; + +export type PaymentMethodDetailsAchDebitModel = { + 'account_holder_type': 'company' | 'individual'; + 'bank_name': string; + 'country': string; + 'fingerprint': string; + 'last4': string; + 'routing_number': string; +}; + +export type PaymentMethodDetailsAcssDebitModel = { + 'bank_name': string; + 'fingerprint': string; + 'institution_number': string; + 'last4': string; + 'mandate'?: string | undefined; + 'transit_number': string; +}; + +export type PaymentMethodDetailsAffirmModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsAfterpayClearpayModel = { + 'order_id': string; + 'reference': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = { + 'buyer_id'?: string | undefined; + 'fingerprint': string; + 'transaction_id': string; +}; + +export type AlmaInstallmentsModel = { + 'count': number; +}; + +export type PaymentMethodDetailsAlmaModel = { + 'installments'?: AlmaInstallmentsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsPassthroughCardModel = { + 'brand': string; + 'brand_product'?: string | undefined; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'funding': string; + 'last4': string; +}; + +export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type': 'card'; +}; + +export type PaymentMethodDetailsAmazonPayModel = { + 'funding'?: AmazonPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsAuBecsDebitModel = { + 'bsb_number': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | undefined; +}; + +export type PaymentMethodDetailsBacsDebitModel = { + 'fingerprint': string; + 'last4': string; + 'mandate': string; + 'sort_code': string; +}; + +export type PaymentMethodDetailsBancontactModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsBillieModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsBlikModel = { + 'buyer_id': string; +}; + +export type PaymentMethodDetailsBoletoModel = { + 'tax_id': string; +}; + +export type PaymentMethodDetailsCardChecksModel = { + 'address_line1_check': string; + 'address_postal_code_check': string; + 'cvc_check': string; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorizationModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = { + 'status': 'disabled' | 'enabled'; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardInstallmentsPlanModel = { + 'count': number; + 'interval': 'month'; + 'type': 'bonus' | 'fixed_count' | 'revolving'; +}; + +export type PaymentMethodDetailsCardInstallmentsModel = { + 'plan': PaymentMethodDetailsCardInstallmentsPlanModel; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = { + 'status': 'available' | 'unavailable'; +}; + +export type PaymentMethodDetailsCardNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = { + 'maximum_amount_capturable': number; + 'status': 'available' | 'unavailable'; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesPartialAuthorizationPartialAuthorizationModel = { + 'status': 'declined' | 'fully_authorized' | 'not_requested' | 'partially_authorized'; +}; + +export type ThreeDSecureDetailsChargeModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'electronic_commerce_indicator': '01' | '02' | '05' | '06' | '07'; + 'exemption_indicator': 'low_risk' | 'none'; + 'exemption_indicator_applied'?: boolean | undefined; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'transaction_id': string; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodDetailsCardWalletLinkModel = { + +}; + +export type PaymentMethodDetailsCardWalletMasterpassModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodDetailsCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodDetailsCardWalletVisaCheckoutModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodDetailsCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodDetailsCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodDetailsCardWalletApplePayModel | undefined; + 'dynamic_last4': string; + 'google_pay'?: PaymentMethodDetailsCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodDetailsCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodDetailsCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodDetailsCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodDetailsCardModel = { + 'amount_authorized': number; + 'amount_requested'?: number | undefined; + 'authorization_code': string; + 'brand': string; + 'capture_before'?: number | undefined; + 'checks': PaymentMethodDetailsCardChecksModel; + 'country': string; + 'decremental_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorizationModel | undefined; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'extended_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel | undefined; + 'fingerprint'?: string | undefined; + 'funding': string; + 'iin'?: string | undefined; + 'incremental_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel | undefined; + 'installments': PaymentMethodDetailsCardInstallmentsModel; + 'issuer'?: string | undefined; + 'last4': string; + 'mandate': string; + 'moto'?: boolean | undefined; + 'multicapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel | undefined; + 'network': string; + 'network_token'?: PaymentMethodDetailsCardNetworkTokenModel | undefined; + 'network_transaction_id': string; + 'overcapture'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel | undefined; + 'partial_authorization'?: PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesPartialAuthorizationPartialAuthorizationModel | undefined; + 'regulated_status': 'regulated' | 'unregulated'; + 'three_d_secure': ThreeDSecureDetailsChargeModel; + 'wallet': PaymentMethodDetailsCardWalletModel; +}; + +export type PaymentMethodDetailsCashappModel = { + 'buyer_id': string; + 'cashtag': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsCryptoModel = { + 'buyer_address'?: string | undefined; + 'network'?: 'base' | 'ethereum' | 'polygon' | 'solana' | undefined; + 'token_currency'?: 'usdc' | 'usdg' | 'usdp' | undefined; + 'transaction_hash'?: string | undefined; +}; + +export type PaymentMethodDetailsCustomerBalanceModel = { + +}; + +export type PaymentMethodDetailsEpsModel = { + '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'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsFpxModel = { + 'account_holder_type': 'company' | 'individual'; + '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'; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsGiropayModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsGopayModel = { + +}; + +export type PaymentMethodDetailsGrabpayModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsIdBankTransferModel = { + 'account_number': string; + 'bank': 'bca' | 'bni' | 'bri' | 'cimb' | 'permata'; + 'bank_code'?: string | undefined; + 'bank_name'?: string | undefined; + 'display_name'?: string | undefined; +}; + +export type PaymentMethodDetailsIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'transaction_id': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsInteracPresentReceiptModel = { + 'account_type'?: 'checking' | 'savings' | 'unknown' | undefined; + 'application_cryptogram': string; + 'application_preferred_name': string; + 'authorization_code': string; + 'authorization_response_code': string; + 'cardholder_verification_method': string; + 'dedicated_file_name': string; + 'terminal_verification_results': string; + 'transaction_status_information': string; +}; + +export type PaymentMethodDetailsInteracPresentModel = { + 'brand': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'emv_auth_data': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'generated_card': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'network': string; + 'network_transaction_id': string; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'receipt': PaymentMethodDetailsInteracPresentReceiptModel; +}; + +export type PaymentMethodDetailsKakaoPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type KlarnaAddressModel = { + 'country': string; +}; + +export type KlarnaPayerDetailsModel = { + 'address': KlarnaAddressModel; +}; + +export type PaymentMethodDetailsKlarnaModel = { + 'payer_details': KlarnaPayerDetailsModel; + 'payment_method_category': string; + 'preferred_locale': string; +}; + +export type PaymentMethodDetailsKonbiniStoreModel = { + 'chain': 'familymart' | 'lawson' | 'ministop' | 'seicomart'; +}; + +export type PaymentMethodDetailsKonbiniModel = { + 'store': PaymentMethodDetailsKonbiniStoreModel; +}; + +export type PaymentMethodDetailsKrCardModel = { + 'brand': 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori'; + 'buyer_id': string; + 'last4': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsLinkModel = { + 'country': string; +}; + +export type PaymentMethodDetailsMbWayModel = { + +}; + +export type InternalCardModel = { + 'brand': string; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'last4': string; +}; + +export type PaymentMethodDetailsMobilepayModel = { + 'card': InternalCardModel; +}; + +export type PaymentMethodDetailsMultibancoModel = { + 'entity': string; + 'reference': string; +}; + +export type PaymentMethodDetailsNaverPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsNzBankAccountModel = { + 'account_holder_name': string; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix': string; +}; + +export type PaymentMethodDetailsOxxoModel = { + 'number': string; +}; + +export type PaymentMethodDetailsP24Model = { + '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'; + 'reference': string; + 'verified_name': string; +}; + +export type PaymentMethodDetailsPayByBankModel = { + +}; + +export type PaymentMethodDetailsPaycoModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsPaynowModel = { + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'reference': string; +}; + +export type PaypalSellerProtectionModel = { + 'dispute_categories': Array<'fraudulent' | 'product_not_received'>; + 'status': 'eligible' | 'not_eligible' | 'partially_eligible'; +}; + +export type PaymentMethodDetailsPaypalModel = { + 'country': string; + 'payer_email': string; + 'payer_id': string; + 'payer_name': string; + 'seller_protection': PaypalSellerProtectionModel; + 'shipping'?: AddressModel | undefined; + 'transaction_id': string; + 'verified_address'?: AddressModel | undefined; + 'verified_email'?: string | undefined; + 'verified_name'?: string | undefined; +}; + +export type PaymentMethodDetailsPaypayModel = { + +}; + +export type PaymentMethodDetailsPaytoModel = { + 'bsb_number': string; + 'last4': string; + 'mandate'?: string | undefined; + 'pay_id': string; +}; + +export type PaymentMethodDetailsPixModel = { + 'bank_transaction_id'?: string | undefined; + 'mandate'?: string | undefined; +}; + +export type PaymentMethodDetailsPromptpayModel = { + 'reference': string; +}; + +export type PaymentMethodDetailsQrisModel = { + +}; + +export type PaymentMethodDetailsRechnungModel = { + 'payment_portal_url': string; +}; + +export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = { + 'card'?: PaymentMethodDetailsPassthroughCardModel | undefined; + 'type': 'card'; +}; + +export type PaymentMethodDetailsRevolutPayModel = { + 'funding'?: RevolutPayUnderlyingPaymentMethodFundingDetailsModel | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSamsungPayModel = { + 'buyer_id': string; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSatispayModel = { + 'transaction_id': string; +}; + +export type PaymentMethodDetailsSepaCreditTransferModel = { + 'bank_name': string; + 'bic': string; + 'iban': string; +}; + +export type PaymentMethodDetailsSepaDebitModel = { + 'bank_code': string; + 'branch_code': string; + 'country': string; + 'fingerprint': string; + 'last4': string; + 'mandate': string; +}; + +export type PaymentMethodDetailsShopeepayModel = { + +}; + +export type PaymentMethodDetailsSofortModel = { + 'bank_code': string; + 'bank_name': string; + 'bic': string; + 'country': string; + 'generated_sepa_debit': string | PaymentMethodModel; + 'generated_sepa_debit_mandate': string | MandateModel; + 'iban_last4': string; + 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; + 'verified_name': string; +}; + +export type PaymentMethodDetailsStripeAccountModel = { + +}; + +export type PaymentMethodDetailsStripeBalanceModel = { + 'account'?: string | undefined; + 'source_type': 'bank_account' | 'card' | 'fpx'; +}; + +export type PaymentMethodDetailsSwishModel = { + 'fingerprint': string; + 'payment_reference': string; + 'verified_phone_last4': string; +}; + +export type PaymentMethodDetailsTwintModel = { + +}; + +export type PaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference': string; + 'routing_number': string; +}; + +export type PaymentMethodDetailsWechatModel = { + +}; + +export type PaymentMethodDetailsWechatPayModel = { + 'fingerprint': string; + 'location'?: string | undefined; + 'reader'?: string | undefined; + 'transaction_id': string; +}; + +export type PaymentMethodDetailsZipModel = { + +}; + +export type PaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentMethodDetailsCardModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'gopay'?: PaymentMethodDetailsGopayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'id_bank_transfer'?: PaymentMethodDetailsIdBankTransferModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'paypay'?: PaymentMethodDetailsPaypayModel | undefined; + 'payto'?: PaymentMethodDetailsPaytoModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'qris'?: PaymentMethodDetailsQrisModel | undefined; + 'rechnung'?: PaymentMethodDetailsRechnungModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'shopeepay'?: PaymentMethodDetailsShopeepayModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'stripe_balance'?: PaymentMethodDetailsStripeBalanceModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type RadarRadarOptionsModel = { + 'session'?: string | undefined; +}; + +export type RadarReviewResourceLocationModel = { + 'city': string; + 'country': string; + 'latitude': number; + 'longitude': number; + 'region': string; +}; + +export type RadarReviewResourceSessionModel = { + 'browser': string; + 'device': string; + 'platform': string; + 'version': string; +}; + +export type ReviewModel = { + 'billing_zip': string; + 'charge': string | ChargeModel; + 'closed_reason': 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud'; + 'created': number; + 'id': string; + 'ip_address': string; + 'ip_address_location': RadarReviewResourceLocationModel; + 'livemode': boolean; + 'object': 'review'; + 'open': boolean; + 'opened_reason': 'manual' | 'rule'; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason': string; + 'session': RadarReviewResourceSessionModel; +}; + +export type ChargeTransferDataModel = { + 'amount': number; + 'destination': string | AccountModel; +}; + +export type ChargeModel = { + 'amount': number; + 'amount_captured': number; + 'amount_refunded': number; + 'application': string | ApplicationModel; + 'application_fee': string | ApplicationFeeModel; + 'application_fee_amount': number; + 'authorization_code'?: string | undefined; + 'balance_transaction': string | BalanceTransactionModel; + 'billing_details': BillingDetailsModel; + 'calculated_statement_descriptor': string; + 'captured': boolean; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'description': string; + 'disputed': boolean; + 'failure_balance_transaction': string | BalanceTransactionModel; + 'failure_code': string; + 'failure_message': string; + 'fraud_details': ChargeFraudDetailsModel; + 'id': string; + 'level3'?: Level3Model | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'charge'; + 'on_behalf_of': string | AccountModel; + 'outcome': ChargeOutcomeModel; + 'paid': boolean; + 'payment_intent': string | PaymentIntentModel; + 'payment_method': string; + 'payment_method_details': PaymentMethodDetailsModel; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'receipt_email': string; + 'receipt_number': string; + 'receipt_url': string; + 'refunded': boolean; + 'refunds'?: { + 'data': RefundModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'review': string | ReviewModel; + 'shipping': ShippingModel; + 'source': PaymentSourceModel; + 'source_transfer': string | TransferModel; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'status': 'failed' | 'pending' | 'succeeded'; + 'transfer'?: string | TransferModel | undefined; + 'transfer_data': ChargeTransferDataModel; + 'transfer_group': string; +}; + +export type PaymentIntentNextActionAlipayHandleRedirectModel = { + 'native_data': string; + 'native_url': string; + 'return_url': string; + 'url': string; +}; + +export type PaymentIntentNextActionBoletoModel = { + 'expires_at': number; + 'hosted_voucher_url': string; + 'number': string; + 'pdf': string; +}; + +export type PaymentIntentNextActionCardAwaitNotificationModel = { + 'charge_attempt_at': number; + 'customer_approval_required': boolean; +}; + +export type PaymentIntentNextActionCashappQrCodeModel = { + 'expires_at': number; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'mobile_auth_url': string; + 'qr_code': PaymentIntentNextActionCashappQrCodeModel; +}; + +export type FundingInstructionsBankTransferAbaRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'routing_number': string; +}; + +export type FundingInstructionsBankTransferIbanRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bic': string; + 'country': string; + 'iban': string; +}; + +export type FundingInstructionsBankTransferSortCodeRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'bank_address': AddressModel; + 'sort_code': string; +}; + +export type FundingInstructionsBankTransferSpeiRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'bank_address': AddressModel; + 'bank_code': string; + 'bank_name': string; + 'clabe': string; +}; + +export type FundingInstructionsBankTransferSwiftRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_name': string; + 'swift_code': string; +}; + +export type FundingInstructionsBankTransferZenginRecordModel = { + 'account_holder_address': AddressModel; + 'account_holder_name': string; + 'account_number': string; + 'account_type': string; + 'bank_address': AddressModel; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'branch_name': string; +}; + +export type FundingInstructionsBankTransferFinancialAddressModel = { + 'aba'?: FundingInstructionsBankTransferAbaRecordModel | undefined; + 'iban'?: FundingInstructionsBankTransferIbanRecordModel | undefined; + 'sort_code'?: FundingInstructionsBankTransferSortCodeRecordModel | undefined; + 'spei'?: FundingInstructionsBankTransferSpeiRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'bacs' | 'domestic_wire_us' | 'fps' | 'sepa' | 'spei' | 'swift' | 'zengin'> | undefined; + 'swift'?: FundingInstructionsBankTransferSwiftRecordModel | undefined; + 'type': 'aba' | 'iban' | 'sort_code' | 'spei' | 'swift' | 'zengin'; + 'zengin'?: FundingInstructionsBankTransferZenginRecordModel | undefined; +}; + +export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = { + 'amount_remaining': number; + 'currency': string; + 'financial_addresses'?: FundingInstructionsBankTransferFinancialAddressModel[] | undefined; + 'hosted_instructions_url': string; + 'reference': string; + 'type': 'eu_bank_transfer' | 'gb_bank_transfer' | 'jp_bank_transfer' | 'mx_bank_transfer' | 'us_bank_transfer'; +}; + +export type PaymentIntentNextActionKonbiniFamilymartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniLawsonModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniMinistopModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniSeicomartModel = { + 'confirmation_number'?: string | undefined; + 'payment_code': string; +}; + +export type PaymentIntentNextActionKonbiniStoresModel = { + 'familymart': PaymentIntentNextActionKonbiniFamilymartModel; + 'lawson': PaymentIntentNextActionKonbiniLawsonModel; + 'ministop': PaymentIntentNextActionKonbiniMinistopModel; + 'seicomart': PaymentIntentNextActionKonbiniSeicomartModel; +}; + +export type PaymentIntentNextActionKonbiniModel = { + 'expires_at': number; + 'hosted_voucher_url': string; + 'stores': PaymentIntentNextActionKonbiniStoresModel; +}; + +export type PaymentIntentNextActionDisplayMultibancoDetailsModel = { + 'entity': string; + 'expires_at': number; + 'hosted_voucher_url': string; + 'reference': string; +}; + +export type PaymentIntentNextActionDisplayOxxoDetailsModel = { + 'expires_after': number; + 'hosted_voucher_url': string; + 'number': string; +}; + +export type PaymentIntentNextActionPaynowDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionPixDisplayQrCodeModel = { + 'data'?: string | undefined; + 'expires_at'?: number | undefined; + 'hosted_instructions_url'?: string | undefined; + 'image_url_png'?: string | undefined; + 'image_url_svg'?: string | undefined; +}; + +export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionRedirectToUrlModel = { + 'return_url': string; + 'url': string; +}; + +export type PaymentIntentNextActionSwishQrCodeModel = { + 'data': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = { + 'hosted_instructions_url': string; + 'mobile_auth_url': string; + 'qr_code': PaymentIntentNextActionSwishQrCodeModel; +}; + +export type PaymentIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type': 'amounts' | 'descriptor_code'; +}; + +export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = { + 'data': string; + 'hosted_instructions_url': string; + 'image_data_url': string; + 'image_url_png': string; + 'image_url_svg': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = { + 'app_id': string; + 'nonce_str': string; + 'package': string; + 'partner_id': string; + 'prepay_id': string; + 'sign': string; + 'timestamp': string; +}; + +export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = { + 'native_url': string; +}; + +export type PaymentIntentNextActionModel = { + 'alipay_handle_redirect'?: PaymentIntentNextActionAlipayHandleRedirectModel | undefined; + 'boleto_display_details'?: PaymentIntentNextActionBoletoModel | undefined; + 'card_await_notification'?: PaymentIntentNextActionCardAwaitNotificationModel | undefined; + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'display_bank_transfer_instructions'?: PaymentIntentNextActionDisplayBankTransferInstructionsModel | undefined; + 'konbini_display_details'?: PaymentIntentNextActionKonbiniModel | undefined; + 'multibanco_display_details'?: PaymentIntentNextActionDisplayMultibancoDetailsModel | undefined; + 'oxxo_display_details'?: PaymentIntentNextActionDisplayOxxoDetailsModel | undefined; + 'paynow_display_qr_code'?: PaymentIntentNextActionPaynowDisplayQrCodeModel | undefined; + 'pix_display_qr_code'?: PaymentIntentNextActionPixDisplayQrCodeModel | undefined; + 'promptpay_display_qr_code'?: PaymentIntentNextActionPromptpayDisplayQrCodeModel | undefined; + 'redirect_to_url'?: PaymentIntentNextActionRedirectToUrlModel | undefined; + 'swish_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: PaymentIntentNextActionVerifyWithMicrodepositsModel | undefined; + 'wechat_pay_display_qr_code'?: PaymentIntentNextActionWechatPayDisplayQrCodeModel | undefined; + 'wechat_pay_redirect_to_android_app'?: PaymentIntentNextActionWechatPayRedirectToAndroidAppModel | undefined; + 'wechat_pay_redirect_to_ios_app'?: PaymentIntentNextActionWechatPayRedirectToIosAppModel | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceAffiliateModel = { + 'name'?: string | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceDeliveryRecipientModel = { + 'email'?: string | undefined; + 'name'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceDeliveryModel = { + 'mode'?: 'email' | 'phone' | 'pickup' | 'post' | undefined; + 'recipient'?: PaymentFlowsPaymentDetailsResourceDeliveryRecipientModel | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceCarRentalDistanceModel = { + 'amount'?: number | undefined; + 'unit'?: string | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceCarRentalDriverModel = { + 'driver_identification_number'?: string | undefined; + 'driver_tax_number'?: string | undefined; + 'name'?: string | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceCarRentalModel = { + 'affiliate'?: PaymentFlowsPaymentDetailsResourceAffiliateModel | undefined; + 'booking_number': string; + 'car_class_code'?: string | undefined; + 'car_make'?: string | undefined; + 'car_model'?: string | undefined; + 'company'?: string | undefined; + 'customer_service_phone_number'?: string | undefined; + 'days_rented': number; + 'delivery'?: PaymentFlowsPaymentDetailsResourceDeliveryModel | undefined; + 'distance'?: PaymentFlowsPaymentDetailsResourceCarRentalDistanceModel | undefined; + 'drivers'?: PaymentFlowsPaymentDetailsResourceCarRentalDriverModel[] | undefined; + 'extra_charges'?: Array<'extra_mileage' | 'gas' | 'late_return' | 'one_way_service' | 'parking_violation'> | undefined; + 'no_show'?: boolean | undefined; + 'pickup_address'?: AddressModel | undefined; + 'pickup_at': number; + 'pickup_location_name'?: string | undefined; + 'rate_amount'?: number | undefined; + 'rate_interval'?: 'day' | 'month' | 'week' | undefined; + 'renter_name'?: string | undefined; + 'return_address'?: AddressModel | undefined; + 'return_at': number; + 'return_location_name'?: string | undefined; + 'tax_exempt'?: boolean | undefined; + 'vehicle_identification_number'?: string | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceEventModel = { + 'access_controlled_venue'?: boolean | undefined; + 'address'?: AddressModel | undefined; + 'affiliate'?: PaymentFlowsPaymentDetailsResourceAffiliateModel | undefined; + 'company'?: string | undefined; + 'delivery'?: PaymentFlowsPaymentDetailsResourceDeliveryModel | undefined; + 'ends_at'?: number | undefined; + 'genre'?: string | undefined; + 'name'?: string | undefined; + 'starts_at'?: number | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceBillingIntervalModel = { + 'count'?: number | undefined; + 'interval'?: 'day' | 'month' | 'week' | 'year' | undefined; +}; + +export type PaymentFlowsPaymentDetailsResourceSubscriptionModel = { + 'affiliate'?: PaymentFlowsPaymentDetailsResourceAffiliateModel | undefined; + 'auto_renewal'?: boolean | undefined; + 'billing_interval'?: PaymentFlowsPaymentDetailsResourceBillingIntervalModel | undefined; + 'ends_at'?: number | undefined; + 'name'?: string | undefined; + 'starts_at'?: number | undefined; +}; + +export type PaymentFlowsPaymentDetailsModel = { + 'car_rental'?: PaymentFlowsPaymentDetailsResourceCarRentalModel | undefined; + 'customer_reference': string; + 'event_details'?: PaymentFlowsPaymentDetailsResourceEventModel | undefined; + 'order_reference': string; + 'subscription'?: PaymentFlowsPaymentDetailsResourceSubscriptionModel | undefined; +}; + +export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = { + 'id': string; + 'parent': string; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type PaymentIntentPaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsAffirmModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale'?: string | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAfterpayClearpayModel = { + 'capture_method'?: 'manual' | undefined; + 'reference': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsAlipayModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsAlmaModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsAmazonPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsBillieModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsBlikModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsBoletoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCardInstallmentsModel = { + 'available_plans': PaymentMethodDetailsCardInstallmentsPlanModel[]; + 'enabled': boolean; + 'plan': PaymentMethodDetailsCardInstallmentsPlanModel; +}; + +export type PaymentMethodOptionsCardMandateOptionsModel = { + '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'[]; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddressModel = { + 'city'?: string | undefined; + 'country'?: string | undefined; + 'line1'?: string | undefined; + 'line2'?: string | undefined; + 'postal_code'?: string | undefined; + 'state'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsModel = { + 'address'?: PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddressModel | undefined; + 'phone'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsCardModel = { + 'capture_method'?: 'manual' | undefined; + 'installments': PaymentMethodOptionsCardInstallmentsModel; + 'mandate_options': PaymentMethodOptionsCardMandateOptionsModel; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'request_decremental_authorization'?: 'if_available' | 'never' | 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_partial_authorization'?: 'if_available' | 'never' | undefined; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; + '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; + 'statement_details'?: PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsModel | undefined; +}; + +export type PaymentMethodOptionsCardPresentRoutingModel = { + 'requested_priority': 'domestic' | 'international'; +}; + +export type PaymentMethodOptionsCardPresentModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'request_extended_authorization': boolean; + 'request_incremental_authorization_support': boolean; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; +}; + +export type PaymentMethodOptionsCashappModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsCryptoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type PaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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'; +}; + +export type PaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: PaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type': 'bank_transfer'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsEpsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsFpxModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGiropayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsGopayModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsGrabpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsIdBankTransferModel = { + 'expires_after'?: number | undefined; + 'expires_at': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsIdealModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsInteracPresentModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsKlarnaModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale': string; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type PaymentMethodOptionsKonbiniModel = { + 'confirmation_number': string; + 'expires_after_days': number; + 'expires_at': number; + 'product_description': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsKrCardModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsLinkModel = { + 'capture_method'?: 'manual' | undefined; + 'persistent_token': string; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsMbWayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMobilepayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsMultibancoModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = { + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsOxxoModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsP24Model = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsPayByBankModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsPaynowModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsPaypalLineItemResourceTaxModel = { + 'amount': number; + 'behavior': 'exclusive' | 'inclusive'; +}; + +export type LineItemPaypalModel = { + 'category'?: 'digital_goods' | 'donation' | 'physical_goods' | undefined; + 'description'?: string | undefined; + 'name': string; + 'quantity': number; + 'sku'?: string | undefined; + 'sold_by'?: string | undefined; + 'tax'?: PaymentFlowsPrivatePaymentMethodsPaypalLineItemResourceTaxModel | undefined; + 'unit_amount': number; +}; + +export type PaymentMethodOptionsPaypalModel = { + 'capture_method'?: 'manual' | undefined; + 'line_items'?: LineItemPaypalModel[] | undefined; + 'preferred_locale': string; + 'reference': string; + 'reference_id'?: string | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; + 'subsellers'?: string[] | undefined; +}; + +export type PaymentMethodOptionsPaypayModel = { + +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsPaytoModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'end_date': string; + 'payment_schedule': 'adhoc' | 'annual' | 'daily' | 'fortnightly' | 'monthly' | 'quarterly' | 'semi_annual' | 'weekly'; + 'payments_per_period': number; + 'purpose': 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility'; +}; + +export type PaymentIntentPaymentMethodOptionsPaytoModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsPaytoModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsMandateOptionsPixModel = { + 'amount'?: number | undefined; + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'amount_type'?: 'fixed' | 'maximum' | undefined; + 'currency'?: string | undefined; + 'end_date'?: string | undefined; + 'payment_schedule'?: 'halfyearly' | 'monthly' | 'quarterly' | 'weekly' | 'yearly' | undefined; + 'reference'?: string | undefined; + 'start_date'?: string | undefined; +}; + +export type PaymentMethodOptionsPixModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds': number; + 'expires_at': number; + 'mandate_options'?: PaymentMethodOptionsMandateOptionsPixModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentMethodOptionsPromptpayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsQrisModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsRechnungModel = { + +}; + +export type PaymentMethodOptionsRevolutPayModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentMethodOptionsSatispayModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type PaymentMethodOptionsShopeepayModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsSofortModel = { + 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsStripeBalanceModel = { + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsSwishModel = { + 'reference': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsTwintModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; + 'institution'?: string | undefined; +}; + +export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntryModel = { + 'mode'?: 'automatic' | 'custom' | undefined; +}; + +export type LinkedAccountOptionsCommonModel = { + 'filters'?: PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel | undefined; + 'manual_entry'?: PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntryModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch': Array<'balances' | 'inferred_balances' | 'ownership' | 'transactions'>; + 'return_url'?: string | undefined; +}; + +export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = { + 'collection_method'?: 'paper' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'preferred_settlement_speed'?: 'fastest' | 'standard' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentMethodOptionsWechatPayModel = { + 'app_id': string; + 'client': 'android' | 'ios' | 'web'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentMethodOptionsZipModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type PaymentIntentPaymentMethodOptionsModel = { + 'acss_debit'?: PaymentIntentPaymentMethodOptionsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodOptionsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodOptionsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentMethodOptionsAlipayModel | undefined; + 'alma'?: PaymentMethodOptionsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodOptionsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentIntentPaymentMethodOptionsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentIntentPaymentMethodOptionsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodOptionsBancontactModel | undefined; + 'billie'?: PaymentMethodOptionsBillieModel | undefined; + 'blik'?: PaymentIntentPaymentMethodOptionsBlikModel | undefined; + 'boleto'?: PaymentMethodOptionsBoletoModel | undefined; + 'card'?: PaymentIntentPaymentMethodOptionsCardModel | undefined; + 'card_present'?: PaymentMethodOptionsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodOptionsCashappModel | undefined; + 'crypto'?: PaymentMethodOptionsCryptoModel | undefined; + 'customer_balance'?: PaymentMethodOptionsCustomerBalanceModel | undefined; + 'eps'?: PaymentIntentPaymentMethodOptionsEpsModel | undefined; + 'fpx'?: PaymentMethodOptionsFpxModel | undefined; + 'giropay'?: PaymentMethodOptionsGiropayModel | undefined; + 'gopay'?: PaymentMethodOptionsGopayModel | undefined; + 'grabpay'?: PaymentMethodOptionsGrabpayModel | undefined; + 'id_bank_transfer'?: PaymentMethodOptionsIdBankTransferModel | undefined; + 'ideal'?: PaymentMethodOptionsIdealModel | undefined; + 'interac_present'?: PaymentMethodOptionsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel | undefined; + 'klarna'?: PaymentMethodOptionsKlarnaModel | undefined; + 'konbini'?: PaymentMethodOptionsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodOptionsKrCardModel | undefined; + 'link'?: PaymentIntentPaymentMethodOptionsLinkModel | undefined; + 'mb_way'?: PaymentMethodOptionsMbWayModel | undefined; + 'mobilepay'?: PaymentIntentPaymentMethodOptionsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodOptionsMultibancoModel | undefined; + 'naver_pay'?: PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel | undefined; + 'nz_bank_account'?: PaymentIntentPaymentMethodOptionsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodOptionsOxxoModel | undefined; + 'p24'?: PaymentMethodOptionsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodOptionsPayByBankModel | undefined; + 'payco'?: PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel | undefined; + 'paynow'?: PaymentMethodOptionsPaynowModel | undefined; + 'paypal'?: PaymentMethodOptionsPaypalModel | undefined; + 'paypay'?: PaymentMethodOptionsPaypayModel | undefined; + 'payto'?: PaymentIntentPaymentMethodOptionsPaytoModel | undefined; + 'pix'?: PaymentMethodOptionsPixModel | undefined; + 'promptpay'?: PaymentMethodOptionsPromptpayModel | undefined; + 'qris'?: PaymentMethodOptionsQrisModel | undefined; + 'rechnung'?: PaymentIntentPaymentMethodOptionsRechnungModel | undefined; + 'revolut_pay'?: PaymentMethodOptionsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel | undefined; + 'satispay'?: PaymentMethodOptionsSatispayModel | undefined; + 'sepa_debit'?: PaymentIntentPaymentMethodOptionsSepaDebitModel | undefined; + 'shopeepay'?: PaymentMethodOptionsShopeepayModel | undefined; + 'sofort'?: PaymentMethodOptionsSofortModel | undefined; + 'stripe_balance'?: PaymentIntentPaymentMethodOptionsStripeBalanceModel | undefined; + 'swish'?: PaymentIntentPaymentMethodOptionsSwishModel | undefined; + 'twint'?: PaymentMethodOptionsTwintModel | undefined; + 'us_bank_account'?: PaymentIntentPaymentMethodOptionsUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodOptionsWechatPayModel | undefined; + 'zip'?: PaymentMethodOptionsZipModel | undefined; +}; + +export type PaymentIntentProcessingCustomerNotificationModel = { + 'approval_requested': boolean; + 'completes_at': number; +}; + +export type PaymentIntentCardProcessingModel = { + 'customer_notification'?: PaymentIntentProcessingCustomerNotificationModel | undefined; +}; + +export type PaymentIntentProcessing_1Model = { + 'card'?: PaymentIntentCardProcessingModel | undefined; + 'type': 'card'; +}; + +export type DeletedPaymentSourceModel = DeletedBankAccountModel | DeletedCardModel; + +export type TransferDataModel = { + 'amount'?: number | undefined; + 'destination': string | AccountModel; +}; + +export type PaymentIntentModel = { + 'amount': number; + 'amount_capturable': number; + 'amount_details'?: PaymentFlowsAmountDetailsModel | undefined; + 'amount_received': number; + 'application': string | ApplicationModel; + 'application_fee_amount': number; + 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel; + 'canceled_at': number; + 'cancellation_reason': 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice'; + 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'client_secret': string; + 'confirmation_method': 'automatic' | 'manual'; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'description': string; + 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'fx_quote'?: string | undefined; + 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'id': string; + 'last_payment_error': ApiErrorsModel; + 'latest_charge': string | ChargeModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_action': PaymentIntentNextActionModel; + 'object': 'payment_intent'; + 'on_behalf_of': string | AccountModel; + 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; + 'payment_method': string | PaymentMethodModel; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': PaymentIntentPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'processing': PaymentIntentProcessing_1Model; + 'receipt_email': string; + 'review': string | ReviewModel; + 'secret_key_confirmation'?: 'optional' | 'required' | undefined; + 'setup_future_usage': 'off_session' | 'on_session'; + 'shipping': ShippingModel; + 'source': string | PaymentSourceModel | DeletedPaymentSourceModel; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'transfer_data': TransferDataModel; + 'transfer_group': string; +}; + +export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = { + 'allow_redirects'?: 'always' | 'never' | undefined; + 'enabled': boolean; +}; + +export type SetupIntentNextActionPixDisplayQrCodeModel = { + 'data'?: string | undefined; + 'expires_at'?: number | undefined; + 'hosted_instructions_url'?: string | undefined; + 'image_url_png'?: string | undefined; + 'image_url_svg'?: string | undefined; +}; + +export type SetupIntentNextActionRedirectToUrlModel = { + 'return_url': string; + 'url': string; +}; + +export type SetupIntentNextActionVerifyWithMicrodepositsModel = { + 'arrival_date': number; + 'hosted_verification_url': string; + 'microdeposit_type': 'amounts' | 'descriptor_code'; +}; + +export type SetupIntentNextActionModel = { + 'cashapp_handle_redirect_or_display_qr_code'?: PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel | undefined; + 'pix_display_qr_code'?: SetupIntentNextActionPixDisplayQrCodeModel | undefined; + 'redirect_to_url'?: SetupIntentNextActionRedirectToUrlModel | undefined; + 'type': string; + 'use_stripe_sdk'?: {} | undefined; + 'verify_with_microdeposits'?: SetupIntentNextActionVerifyWithMicrodepositsModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type SetupIntentPaymentMethodOptionsAcssDebitModel = { + 'currency': 'cad' | 'usd'; + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsAmazonPayModel = { + +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsBacsDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = { + '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'[]; +}; + +export type SetupIntentPaymentMethodOptionsCardModel = { + 'mandate_options': SetupIntentPaymentMethodOptionsCardMandateOptionsModel; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type SetupIntentPaymentMethodOptionsCardPresentModel = { + +}; + +export type SetupIntentPaymentMethodOptionsKlarnaModel = { + 'currency': string; + 'preferred_locale': string; +}; + +export type SetupIntentPaymentMethodOptionsLinkModel = { + 'persistent_token': string; +}; + +export type SetupIntentPaymentMethodOptionsPaypalModel = { + 'billing_agreement_id': string; + 'currency'?: string | undefined; + 'subsellers'?: string[] | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsPaytoModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'end_date': string; + 'payment_schedule': 'adhoc' | 'annual' | 'daily' | 'fortnightly' | 'monthly' | 'quarterly' | 'semi_annual' | 'weekly'; + 'payments_per_period': number; + 'purpose': 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility'; + 'start_date': string; +}; + +export type SetupIntentPaymentMethodOptionsPaytoModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsPaytoModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsPixModel = { + 'mandate_options'?: PaymentMethodOptionsMandateOptionsPixModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type SetupIntentPaymentMethodOptionsSepaDebitModel = { + 'mandate_options'?: SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; +}; + +export type SetupIntentPaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'mandate_options'?: PaymentMethodOptionsUsBankAccountMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SetupIntentPaymentMethodOptionsModel = { + 'acss_debit'?: SetupIntentPaymentMethodOptionsAcssDebitModel | undefined; + 'amazon_pay'?: SetupIntentPaymentMethodOptionsAmazonPayModel | undefined; + 'bacs_debit'?: SetupIntentPaymentMethodOptionsBacsDebitModel | undefined; + 'card'?: SetupIntentPaymentMethodOptionsCardModel | undefined; + 'card_present'?: SetupIntentPaymentMethodOptionsCardPresentModel | undefined; + 'klarna'?: SetupIntentPaymentMethodOptionsKlarnaModel | undefined; + 'link'?: SetupIntentPaymentMethodOptionsLinkModel | undefined; + 'paypal'?: SetupIntentPaymentMethodOptionsPaypalModel | undefined; + 'payto'?: SetupIntentPaymentMethodOptionsPaytoModel | undefined; + 'pix'?: SetupIntentPaymentMethodOptionsPixModel | undefined; + 'sepa_debit'?: SetupIntentPaymentMethodOptionsSepaDebitModel | undefined; + 'us_bank_account'?: SetupIntentPaymentMethodOptionsUsBankAccountModel | undefined; +}; + +export type SetupIntentModel = { + 'application': string | ApplicationModel; + 'attach_to_self'?: boolean | undefined; + 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsSetupIntentModel; + 'cancellation_reason': 'abandoned' | 'duplicate' | 'requested_by_customer'; + 'client_secret': string; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'description': string; + 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; + 'id': string; + 'last_setup_error': ApiErrorsModel; + 'latest_attempt': string | SetupAttemptModel; + 'livemode': boolean; + 'mandate': string | MandateModel; + 'metadata': { + [key: string]: string; +}; + 'next_action': SetupIntentNextActionModel; + 'object': 'setup_intent'; + 'on_behalf_of': string | AccountModel; + 'payment_method': string | PaymentMethodModel; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': SetupIntentPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'single_use_mandate': string | MandateModel; + 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; + 'usage': string; +}; + +export type ApiErrorsModel = { + 'advice_code'?: string | undefined; + 'charge'?: string | undefined; + 'code'?: 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'acss_debit_session_incomplete' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration' | undefined; + 'decline_code'?: string | undefined; + 'doc_url'?: string | undefined; + 'message'?: string | undefined; + 'network_advice_code'?: string | undefined; + 'network_decline_code'?: string | undefined; + 'param'?: string | undefined; + 'payment_intent'?: PaymentIntentModel | undefined; + 'payment_method'?: PaymentMethodModel | undefined; + 'payment_method_type'?: string | undefined; + 'request_log_url'?: string | undefined; + 'setup_intent'?: SetupIntentModel | undefined; + 'source'?: PaymentSourceModel | undefined; + 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +}; + +export type SetupAttemptModel = { + 'application': string | ApplicationModel; + 'attach_to_self'?: boolean | undefined; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'flow_directions': Array<'inbound' | 'outbound'>; + 'id': string; + 'livemode': boolean; + 'object': 'setup_attempt'; + 'on_behalf_of': string | AccountModel; + 'payment_method': string | PaymentMethodModel; + 'payment_method_details': SetupAttemptPaymentMethodDetailsModel; + 'setup_error': ApiErrorsModel; + 'setup_intent': string | SetupIntentModel; + 'status': string; + 'usage': string; +}; + +export type PaymentMethodCardGeneratedCardModel = { + 'charge': string; + 'payment_method_details': CardGeneratedFromPaymentMethodDetailsModel; + 'setup_attempt': string | SetupAttemptModel; +}; + +export type NetworksModel = { + 'available': string[]; + 'preferred': string; +}; + +export type ThreeDSecureUsageModel = { + 'supported': boolean; +}; + +export type PaymentMethodCardWalletAmexExpressCheckoutModel = { + +}; + +export type PaymentMethodCardWalletApplePayModel = { + +}; + +export type PaymentMethodCardWalletGooglePayModel = { + +}; + +export type PaymentMethodCardWalletLinkModel = { + +}; + +export type PaymentMethodCardWalletMasterpassModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodCardWalletSamsungPayModel = { + +}; + +export type PaymentMethodCardWalletVisaCheckoutModel = { + 'billing_address': AddressModel; + 'email': string; + 'name': string; + 'shipping_address': AddressModel; +}; + +export type PaymentMethodCardWalletModel = { + 'amex_express_checkout'?: PaymentMethodCardWalletAmexExpressCheckoutModel | undefined; + 'apple_pay'?: PaymentMethodCardWalletApplePayModel | undefined; + 'dynamic_last4': string; + 'google_pay'?: PaymentMethodCardWalletGooglePayModel | undefined; + 'link'?: PaymentMethodCardWalletLinkModel | undefined; + 'masterpass'?: PaymentMethodCardWalletMasterpassModel | undefined; + 'samsung_pay'?: PaymentMethodCardWalletSamsungPayModel | undefined; + 'type': 'amex_express_checkout' | 'apple_pay' | 'google_pay' | 'link' | 'masterpass' | 'samsung_pay' | 'visa_checkout'; + 'visa_checkout'?: PaymentMethodCardWalletVisaCheckoutModel | undefined; +}; + +export type PaymentMethodCardModel = { + 'brand': string; + 'checks': PaymentMethodCardChecksModel; + 'country': string; + 'description'?: string | undefined; + 'display_brand': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': string; + 'generated_from': PaymentMethodCardGeneratedCardModel; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': NetworksModel; + 'regulated_status': 'regulated' | 'unregulated'; + 'three_d_secure_usage': ThreeDSecureUsageModel; + 'wallet': PaymentMethodCardWalletModel; +}; + +export type PaymentMethodCardPresentNetworksModel = { + 'available': string[]; + 'preferred': string; +}; + +export type PaymentMethodCardPresentModel = { + 'brand': string; + 'brand_product': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': PaymentMethodCardPresentNetworksModel; + 'offline': PaymentMethodDetailsCardPresentOfflineModel; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; + 'wallet'?: PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel | undefined; +}; + +export type PaymentMethodCashappModel = { + 'buyer_id': string; + 'cashtag': string; +}; + +export type PaymentMethodCryptoModel = { + +}; + +export type CustomLogoModel = { + 'content_type': string; + 'url': string; +}; + +export type PaymentMethodCustomModel = { + 'display_name': string; + 'logo': CustomLogoModel; + 'type': string; +}; + +export type PaymentMethodCustomerBalanceModel = { + +}; + +export type PaymentMethodEpsModel = { + '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'; +}; + +export type PaymentMethodFpxModel = { + 'account_holder_type': 'company' | 'individual'; + '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'; +}; + +export type PaymentMethodGiropayModel = { + +}; + +export type PaymentMethodGopayModel = { + +}; + +export type PaymentMethodGrabpayModel = { + +}; + +export type PaymentMethodIdBankTransferModel = { + 'bank': 'bca' | 'bni' | 'bri' | 'cimb' | 'permata'; + 'bank_code': string; + 'bank_name': string; + 'display_name': string; +}; + +export type PaymentMethodIdealModel = { + 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; + 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; +}; + +export type PaymentMethodInteracPresentModel = { + 'brand': string; + 'cardholder_name': string; + 'country': string; + 'description'?: string | undefined; + 'exp_month': number; + 'exp_year': number; + 'fingerprint': string; + 'funding': string; + 'iin'?: string | undefined; + 'issuer'?: string | undefined; + 'last4': string; + 'networks': PaymentMethodCardPresentNetworksModel; + 'preferred_locales': string[]; + 'read_method': 'contact_emv' | 'contactless_emv' | 'contactless_magstripe_mode' | 'magnetic_stripe_fallback' | 'magnetic_stripe_track2'; +}; + +export type PaymentMethodKakaoPayModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type PaymentMethodKlarnaModel = { + 'dob'?: PaymentFlowsPrivatePaymentMethodsKlarnaDobModel | undefined; +}; + +export type PaymentMethodKonbiniModel = { + +}; + +export type PaymentMethodKrCardModel = { + 'brand': 'bc' | 'citi' | 'hana' | 'hyundai' | 'jeju' | 'jeonbuk' | 'kakaobank' | 'kbank' | 'kdbbank' | 'kookmin' | 'kwangju' | 'lotte' | 'mg' | 'nh' | 'post' | 'samsung' | 'savingsbank' | 'shinhan' | 'shinhyup' | 'suhyup' | 'tossbank' | 'woori'; + 'last4': string; +}; + +export type PaymentMethodLinkModel = { + 'email': string; + 'persistent_token'?: string | undefined; +}; + +export type PaymentMethodMbWayModel = { + +}; + +export type PaymentMethodMobilepayModel = { + +}; + +export type PaymentMethodMultibancoModel = { + +}; + +export type PaymentMethodNaverPayModel = { + 'buyer_id': string; + 'funding': 'card' | 'points'; +}; + +export type PaymentMethodNzBankAccountModel = { + 'account_holder_name': string; + 'bank_code': string; + 'bank_name': string; + 'branch_code': string; + 'last4': string; + 'suffix': string; +}; + +export type PaymentMethodOxxoModel = { + +}; + +export type PaymentMethodP24Model = { + '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'; +}; + +export type PaymentMethodPayByBankModel = { + +}; + +export type PaymentMethodPaycoModel = { + +}; + +export type PaymentMethodPaynowModel = { + +}; + +export type PaymentMethodPaypalModel = { + 'country': string; + 'fingerprint'?: string | undefined; + 'payer_email': string; + 'payer_id': string; + 'verified_email'?: string | undefined; +}; + +export type PaymentMethodPaypayModel = { + +}; + +export type PaymentMethodPaytoModel = { + 'bsb_number': string; + 'last4': string; + 'pay_id': string; +}; + +export type PaymentMethodPixModel = { + +}; + +export type PaymentMethodPromptpayModel = { + +}; + +export type PaymentMethodQrisModel = { + +}; + +export type PaymentFlowsPrivatePaymentMethodsRechnungDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type PaymentMethodRechnungModel = { + 'dob'?: PaymentFlowsPrivatePaymentMethodsRechnungDobModel | undefined; +}; + +export type PaymentMethodRevolutPayModel = { + +}; + +export type PaymentMethodSamsungPayModel = { + +}; + +export type PaymentMethodSatispayModel = { + +}; + +export type SepaDebitGeneratedFromModel = { + 'charge': string | ChargeModel; + 'setup_attempt': string | SetupAttemptModel; +}; + +export type PaymentMethodSepaDebitModel = { + 'bank_code': string; + 'branch_code': string; + 'country': string; + 'fingerprint': string; + 'generated_from': SepaDebitGeneratedFromModel; + 'last4': string; +}; + +export type PaymentMethodShopeepayModel = { + +}; + +export type PaymentMethodSofortModel = { + 'country': string; +}; + +export type PaymentMethodStripeBalanceModel = { + 'account'?: string | undefined; + 'source_type': 'bank_account' | 'card' | 'fpx'; +}; + +export type PaymentMethodSwishModel = { + +}; + +export type PaymentMethodTwintModel = { + +}; + +export type UsBankAccountNetworksModel = { + 'preferred': string; + 'supported': Array<'ach' | 'us_domestic_wire'>; +}; + +export type PaymentMethodUsBankAccountBlockedModel = { + 'network_code': 'R02' | 'R03' | 'R04' | 'R05' | 'R07' | 'R08' | 'R10' | 'R11' | 'R16' | 'R20' | 'R29' | 'R31'; + 'reason': 'bank_account_closed' | 'bank_account_frozen' | 'bank_account_invalid_details' | 'bank_account_restricted' | 'bank_account_unusable' | 'debit_not_authorized' | 'tokenized_account_number_deactivated'; +}; + +export type PaymentMethodUsBankAccountStatusDetailsModel = { + 'blocked'?: PaymentMethodUsBankAccountBlockedModel | undefined; +}; + +export type PaymentMethodUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_number'?: string | undefined; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'financial_connections_account': string; + 'fingerprint': string; + 'last4': string; + 'networks': UsBankAccountNetworksModel; + 'routing_number': string; + 'status_details': PaymentMethodUsBankAccountStatusDetailsModel; +}; + +export type PaymentMethodWechatPayModel = { + +}; + +export type PaymentMethodZipModel = { + +}; + +export type PaymentMethodModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'created': number; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'custom'?: PaymentMethodCustomModel | undefined; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'gopay'?: PaymentMethodGopayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'id': string; + 'id_bank_transfer'?: PaymentMethodIdBankTransferModel | undefined; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'latest_active_mandate'?: MandateModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'metadata': { + [key: string]: string; +}; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'object': 'payment_method'; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'paypay'?: PaymentMethodPaypayModel | undefined; + 'payto'?: PaymentMethodPaytoModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'qris'?: PaymentMethodQrisModel | undefined; + 'radar_options'?: RadarRadarOptionsModel | undefined; + 'rechnung'?: PaymentMethodRechnungModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'shopeepay'?: PaymentMethodShopeepayModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'stripe_balance'?: PaymentMethodStripeBalanceModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type InvoiceSettingCustomerRenderingOptionsModel = { + 'amount_tax_display': string; + 'template': string; +}; + +export type InvoiceSettingCustomerSettingModel = { + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'default_payment_method': string | PaymentMethodModel; + 'footer': string; + 'rendering_options': InvoiceSettingCustomerRenderingOptionsModel; +}; + +export type DeletedApplicationModel = { + 'deleted': boolean; + 'id': string; + 'name': string; + 'object': 'application'; +}; + +export type ConnectAccountReferenceModel = { + 'account'?: string | AccountModel | undefined; + 'type': 'account' | 'self'; +}; + +export type SubscriptionAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type SubscriptionsResourceBillingCycleAnchorConfigModel = { + 'day_of_month': number; + 'hour': number; + 'minute': number; + 'month': number; + 'second': number; +}; + +export type SubscriptionsResourceBillingModeFlexibleModel = { + 'proration_discounts'?: 'included' | 'itemized' | undefined; +}; + +export type SubscriptionsResourceBillingModeModel = { + 'flexible': SubscriptionsResourceBillingModeFlexibleModel; + 'type': 'classic' | 'flexible'; + 'updated_at'?: number | undefined; +}; + +export type CustomUnitAmountModel = { + 'maximum': number; + 'minimum': number; + 'preset': number; +}; + +export type PriceTierModel = { + 'flat_amount': number; + 'flat_amount_decimal': string; + 'unit_amount': number; + 'unit_amount_decimal': string; + 'up_to': number; +}; + +export type CurrencyOptionModel = { + 'custom_unit_amount': CustomUnitAmountModel; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tiers'?: PriceTierModel[] | undefined; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type MigrateToModel = { + 'behavior': 'at_cycle_end'; + 'effective_after': number; + 'price': string; +}; + +export type ProductMarketingFeatureModel = { + 'name'?: string | undefined; +}; + +export type PackageDimensionsModel = { + 'height': number; + 'length': number; + 'weight': number; + 'width': number; +}; + +export type TaxCodeModel = { + 'description': string; + 'id': string; + 'name': string; + 'object': 'tax_code'; +}; + +export type ProductModel = { + 'active': boolean; + 'created': number; + 'default_price'?: string | PriceModel | undefined; + 'description': string; + 'id': string; + 'images': string[]; + 'livemode': boolean; + 'marketing_features': ProductMarketingFeatureModel[]; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'product'; + 'package_dimensions': PackageDimensionsModel; + 'shippable': boolean; + 'statement_descriptor'?: string | undefined; + 'tax_code': string | TaxCodeModel; + 'type': 'good' | 'service'; + 'unit_label'?: string | undefined; + 'updated': number; + 'url': string; +}; + +export type DeletedProductModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product'; +}; + +export type RecurringModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'meter': string; + 'trial_period_days': number; + 'usage_type': 'licensed' | 'metered'; +}; + +export type TransformQuantityModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PriceModel = { + 'active': boolean; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'currency_options'?: { + [key: string]: CurrencyOptionModel; +} | undefined; + 'custom_unit_amount': CustomUnitAmountModel; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'migrate_to'?: MigrateToModel | undefined; + 'nickname': string; + 'object': 'price'; + 'product': string | ProductModel | DeletedProductModel; + 'recurring': RecurringModel; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tiers'?: PriceTierModel[] | undefined; + 'tiers_mode': 'graduated' | 'volume'; + 'transform_quantity': TransformQuantityModel; + 'type': 'one_time' | 'recurring'; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type SubscriptionsResourceBillingSchedulesAppliesToModel = { + 'price': string | PriceModel; + 'type': 'price'; +}; + +export type SubscriptionsResourceBillingSchedulesBillUntilDurationModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; +}; + +export type SubscriptionsResourceBillingSchedulesBillUntilModel = { + 'computed_timestamp': number; + 'duration': SubscriptionsResourceBillingSchedulesBillUntilDurationModel; + 'timestamp': number; + 'type': 'duration' | 'timestamp'; +}; + +export type SubscriptionsResourceBillingSchedulesModel = { + 'applies_to': SubscriptionsResourceBillingSchedulesAppliesToModel[]; + 'bill_until': SubscriptionsResourceBillingSchedulesBillUntilModel; + 'key': string; +}; + +export type SubscriptionBillingThresholdsModel = { + 'amount_gte': number; + 'reset_billing_cycle_anchor': boolean; +}; + +export type CancellationDetailsModel = { + 'comment': string; + 'feedback': 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'; + 'reason': 'cancellation_requested' | 'payment_disputed' | 'payment_failed'; +}; + +export type TaxRateFlatAmountModel = { + 'amount': number; + 'currency': string; +}; + +export type TaxRateModel = { + 'active': boolean; + 'country': string; + 'created': number; + 'description': string; + 'display_name': string; + 'effective_percentage': number; + 'flat_amount': TaxRateFlatAmountModel; + 'id': string; + 'inclusive': boolean; + 'jurisdiction': string; + 'jurisdiction_level': 'city' | 'country' | 'county' | 'district' | 'multiple' | 'state'; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'tax_rate'; + 'percentage': number; + 'rate_type': 'flat_amount' | 'percentage'; + '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'; +}; + +export type TaxIDsOwnerModel = { + 'account'?: string | AccountModel | undefined; + 'application'?: string | ApplicationModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'customer_account'?: string | undefined; + 'type': 'account' | 'application' | 'customer' | 'self'; +}; + +export type TaxIdVerificationModel = { + 'status': 'pending' | 'unavailable' | 'unverified' | 'verified'; + 'verified_address': string; + 'verified_name': string; +}; + +export type TaxIdModel = { + 'country': string; + 'created': number; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'id': string; + 'livemode': boolean; + 'object': 'tax_id'; + 'owner': TaxIDsOwnerModel; + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; + 'verification': TaxIdVerificationModel; +}; + +export type DeletedTaxIdModel = { + 'deleted': boolean; + 'id': string; + 'object': 'tax_id'; +}; + +export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionItemBillingThresholdsModel = { + 'usage_gte': number; +}; + +export type PlanTierModel = { + 'flat_amount': number; + 'flat_amount_decimal': string; + 'unit_amount': number; + 'unit_amount_decimal': string; + 'up_to': number; +}; + +export type TransformUsageModel = { + 'divide_by': number; + 'round': 'down' | 'up'; +}; + +export type PlanModel = { + 'active': boolean; + 'amount': number; + 'amount_decimal': string; + 'billing_scheme': 'per_unit' | 'tiered'; + 'created': number; + 'currency': string; + 'id': string; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'meter': string; + 'nickname': string; + 'object': 'plan'; + 'product': string | ProductModel | DeletedProductModel; + 'tiers'?: PlanTierModel[] | undefined; + 'tiers_mode': 'graduated' | 'volume'; + 'transform_usage': TransformUsageModel; + 'trial_period_days': number; + 'usage_type': 'licensed' | 'metered'; +}; + +export type SubscriptionsTrialsResourceTrialModel = { + 'converts_to'?: string[] | undefined; + 'type': 'free' | 'paid'; +}; + +export type SubscriptionItemModel = { + 'billed_until'?: number | undefined; + 'billing_thresholds': SubscriptionItemBillingThresholdsModel; + 'created': number; + 'current_period_end': number; + 'current_period_start': number; + 'discounts': Array; + 'id': string; + 'metadata': { + [key: string]: string; +}; + 'object': 'subscription_item'; + 'plan': PlanModel; + 'price': PriceModel; + 'quantity'?: number | undefined; + 'subscription': string; + 'tax_rates': TaxRateModel[]; + 'trial'?: SubscriptionsTrialsResourceTrialModel | undefined; +}; + +export type SubscriptionsResourcePriceMigrationErrorFailedTransitionModel = { + 'source_price': string; + 'target_price': string; +}; + +export type SubscriptionsResourcePriceMigrationErrorModel = { + 'errored_at': number; + 'failed_transitions': SubscriptionsResourcePriceMigrationErrorFailedTransitionModel[]; + 'type': 'price_uniqueness_violation'; +}; + +export type PaymentPlanAmountModel = { + 'amount': number; + 'amount_paid': number; + 'amount_remaining': number; + 'days_until_due': number; + 'description': string; + 'due_date': number; + 'paid_at': number; + 'status': 'open' | 'paid' | 'past_due'; +}; + +export type AutomaticTaxModel = { + 'disabled_reason': 'finalization_requires_location_inputs' | 'finalization_system_error'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type InvoicesResourceConfirmationSecretModel = { + 'client_secret': string; + 'type': string; +}; + +export type InvoicesResourceInvoiceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type MarginModel = { + 'active': boolean; + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'margin'; + 'percent_off': number; + 'updated': number; +}; + +export type DeletedDiscountModel = { + 'checkout_session': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'deleted': boolean; + 'id': string; + 'invoice': string; + 'invoice_item': string; + 'object': 'discount'; + 'promotion_code': string | PromotionCodeModel; + 'source': DiscountSourceModel; + 'start': number; + 'subscription': string; + 'subscription_item': string; +}; + +export type InvoicesResourceFromInvoiceModel = { + 'action': string; + 'invoice': string | InvoiceModel; +}; + +export type DiscountsResourceDiscountAmountModel = { + 'amount': number; + 'discount': string | DiscountModel | DeletedDiscountModel; +}; + +export type MarginsResourceMarginAmountModel = { + 'amount': number; + 'margin': string | MarginModel; +}; + +export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = { + 'invoice': string; + 'invoice_line_items': string[]; +}; + +export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = { + 'credited_items': BillingBillResourceInvoicingLinesCommonCreditedItemsModel; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = { + 'invoice_item': string; + 'proration': boolean; + 'proration_details': BillingBillResourceInvoicingLinesCommonProrationDetailsModel; + 'subscription': string; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = { + 'invoice_item': string; + 'proration': boolean; + 'proration_details': BillingBillResourceInvoicingLinesCommonProrationDetailsModel; + 'subscription': string; + 'subscription_item': string; +}; + +export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = { + 'invoice_item_details': BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel; + 'subscription_item_details': BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel; + 'type': 'invoice_item_details' | 'subscription_item_details'; +}; + +export type InvoiceLineItemPeriodModel = { + 'end': number; + 'start': number; +}; + +export type BillingCreditGrantsResourceMonetaryAmountModel = { + 'currency': string; + 'value': number; +}; + +export type BillingCreditGrantsResourceAmountModel = { + 'monetary': BillingCreditGrantsResourceMonetaryAmountModel; + 'type': 'monetary'; +}; + +export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceCreditModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_application_invoice_voided': BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel; + 'type': 'credits_application_invoice_voided' | 'credits_granted'; +}; + +export type BillingCreditGrantsResourceApplicablePriceModel = { + 'id': string; +}; + +export type BillingCreditGrantsResourceScopeModel = { + 'price_type'?: 'metered' | undefined; + 'prices'?: BillingCreditGrantsResourceApplicablePriceModel[] | undefined; +}; + +export type BillingCreditGrantsResourceApplicabilityConfigModel = { + 'scope': BillingCreditGrantsResourceScopeModel; +}; + +export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = { + 'target_frozen_time': number; +}; + +export type BillingClocksResourceStatusDetailsStatusDetailsModel = { + 'advancing'?: BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel | undefined; +}; + +export type TestHelpersTestClockModel = { + 'created': number; + 'deletes_after': number; + 'frozen_time': number; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'test_helpers.test_clock'; + 'status': 'advancing' | 'internal_failure' | 'ready'; + 'status_details': BillingClocksResourceStatusDetailsStatusDetailsModel; +}; + +export type BillingCreditGrantModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; + 'category': 'paid' | 'promotional'; + 'created': number; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'effective_at': number; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'billing.credit_grant'; + 'priority'?: number | undefined; + 'test_clock': string | TestHelpersTestClockModel; + 'updated': number; + 'voided_at': number; +}; + +export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { + 'invoice': string | InvoiceModel; + 'invoice_line_item': string; +}; + +export type BillingCreditGrantsResourceBalanceDebitModel = { + 'amount': BillingCreditGrantsResourceAmountModel; + 'credits_applied': BillingCreditGrantsResourceBalanceCreditsAppliedModel; + 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +}; + +export type BillingCreditBalanceTransactionModel = { + 'created': number; + 'credit': BillingCreditGrantsResourceBalanceCreditModel; + 'credit_grant': string | BillingCreditGrantModel; + 'debit': BillingCreditGrantsResourceBalanceDebitModel; + 'effective_at': number; + 'id': string; + 'livemode': boolean; + 'object': 'billing.credit_balance_transaction'; + 'test_clock': string | TestHelpersTestClockModel; + 'type': 'credit' | 'debit'; +}; + +export type InvoicesResourcePretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'margin'?: string | MarginModel | undefined; + 'type': 'credit_balance_transaction' | 'discount' | 'margin'; +}; + +export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = { + 'price': string; + 'product': string; +}; + +export type BillingBillResourceInvoicingPricingPricingModel = { + 'price_details'?: BillingBillResourceInvoicingPricingPricingPriceDetailsModel | undefined; + 'type': 'price_details'; + 'unit_amount_decimal': string; +}; + +export type TaxProductIntegrationResourceTaxCalculationReferenceModel = { + 'calculation_id': string; + 'calculation_item_id': string; +}; + +export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = { + 'tax_rate': string; +}; + +export type BillingBillResourceInvoicingTaxesTaxModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_rate_details': BillingBillResourceInvoicingTaxesTaxRateDetailsModel; + 'taxability_reason': 'customer_exempt' | 'not_available' | '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'; + 'taxable_amount': number; + 'type': 'tax_rate_details'; +}; + +export type LineItemModel = { + 'amount': number; + 'currency': string; + 'description': string; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'discountable': boolean; + 'discounts': Array; + 'id': string; + 'invoice': string; + 'livemode': boolean; + 'margin_amounts'?: MarginsResourceMarginAmountModel[] | undefined; + 'margins'?: Array | undefined; + 'metadata': { + [key: string]: string; +}; + 'object': 'line_item'; + 'parent': BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel; + 'period': InvoiceLineItemPeriodModel; + 'pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; + 'pricing': BillingBillResourceInvoicingPricingPricingModel; + 'quantity': number; + 'subscription': string | SubscriptionModel; + 'tax_calculation_reference'?: TaxProductIntegrationResourceTaxCalculationReferenceModel | undefined; + 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; +}; + +export type BillingBillResourceInvoicingParentsInvoiceBillingCadenceParentModel = { + 'billing_cadence': string; +}; + +export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = { + 'quote': string; +}; + +export type BillingBillResourceInvoicingCommonInvoicePauseCollectionModel = { + 'behavior': 'keep_as_draft' | 'mark_uncollectible' | 'void'; + 'resumes_at': number; +}; + +export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { + 'metadata': { + [key: string]: string; +}; + 'pause_collection'?: BillingBillResourceInvoicingCommonInvoicePauseCollectionModel | undefined; + 'subscription': string | SubscriptionModel; + 'subscription_proration_date'?: number | undefined; +}; + +export type BillingBillResourceInvoicingParentsInvoiceParentModel = { + 'billing_cadence_details'?: BillingBillResourceInvoicingParentsInvoiceBillingCadenceParentModel | undefined; + 'quote_details': BillingBillResourceInvoicingParentsInvoiceQuoteParentModel; + 'subscription_details': BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel; + 'type': 'billing_cadence_details' | 'quote_details' | 'subscription_details'; +}; + +export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = { + 'transaction_type': 'business' | 'personal'; +}; + +export type InvoicePaymentMethodOptionsAcssDebitModel = { + 'mandate_options'?: InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicePaymentMethodOptionsBancontactModel = { + 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; +}; + +export type InvoiceInstallmentsCardModel = { + 'enabled': boolean; +}; + +export type InvoicePaymentMethodOptionsCardModel = { + 'installments'?: InvoiceInstallmentsCardModel | undefined; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = { + 'country': 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = { + 'eu_bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel | undefined; + 'type': string; +}; + +export type InvoicePaymentMethodOptionsCustomerBalanceModel = { + 'bank_transfer'?: InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel | undefined; + 'funding_type': 'bank_transfer'; +}; + +export type InvoicePaymentMethodOptionsIdBankTransferModel = { + +}; + +export type InvoicePaymentMethodOptionsKonbiniModel = { + +}; + +export type InvoicePaymentMethodOptionsPixModel = { + 'amount_includes_iof': 'always' | 'never'; +}; + +export type InvoicePaymentMethodOptionsSepaDebitModel = { + +}; + +export type InvoicePaymentMethodOptionsMandateOptionsUpiModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'description': string; + 'end_date': number; +}; + +export type InvoicePaymentMethodOptionsUpiModel = { + 'mandate_options'?: InvoicePaymentMethodOptionsMandateOptionsUpiModel | undefined; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = { + 'account_subcategories'?: Array<'checking' | 'savings'> | undefined; + 'institution'?: string | undefined; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = { + 'filters'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel | undefined; + 'permissions'?: Array<'balances' | 'ownership' | 'payment_method' | 'transactions'> | undefined; + 'prefetch': Array<'balances' | 'inferred_balances' | 'ownership' | 'transactions'>; +}; + +export type InvoicePaymentMethodOptionsUsBankAccountModel = { + 'financial_connections'?: InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type InvoicesPaymentMethodOptionsModel = { + 'acss_debit': InvoicePaymentMethodOptionsAcssDebitModel; + 'bancontact': InvoicePaymentMethodOptionsBancontactModel; + 'card': InvoicePaymentMethodOptionsCardModel; + 'customer_balance': InvoicePaymentMethodOptionsCustomerBalanceModel; + 'id_bank_transfer'?: InvoicePaymentMethodOptionsIdBankTransferModel | undefined; + 'konbini': InvoicePaymentMethodOptionsKonbiniModel; + 'pix'?: InvoicePaymentMethodOptionsPixModel | undefined; + 'sepa_debit': InvoicePaymentMethodOptionsSepaDebitModel; + 'upi'?: InvoicePaymentMethodOptionsUpiModel | undefined; + 'us_bank_account': InvoicePaymentMethodOptionsUsBankAccountModel; +}; + +export type InvoicesPaymentSettingsModel = { + 'default_mandate': string; + 'payment_method_options': InvoicesPaymentMethodOptionsModel; + 'payment_method_types': Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay'>; +}; + +export type DeletedInvoiceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoice'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = { + 'currency': string; + 'value': number; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = { + 'customer': string; + 'email': string; + 'name': string; + 'phone': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'email': string; + 'name': string; + 'phone': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = { + 'address_line1_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; + 'address_postal_code_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; + 'cvc_check': 'fail' | 'pass' | 'unavailable' | 'unchecked'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = { + 'used': boolean; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = { + 'authentication_flow': 'challenge' | 'frictionless'; + 'result': 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error'; + 'result_reason': 'abandoned' | 'bypassed' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected'; + 'version': '1.0.2' | '2.1.0' | '2.2.0'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = { + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = { + +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = { + 'apple_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel | undefined; + 'dynamic_last4'?: string | undefined; + 'google_pay'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel | undefined; + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = { + 'brand': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'capture_before'?: number | undefined; + 'checks': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel; + 'country': string; + 'exp_month': number; + 'exp_year': number; + 'fingerprint'?: string | undefined; + 'funding': 'credit' | 'debit' | 'prepaid' | 'unknown'; + 'last4': string; + 'moto'?: boolean | undefined; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'network_token'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel | undefined; + 'network_transaction_id': string; + 'three_d_secure': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel; + 'wallet': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = { + 'display_name': string; + 'type': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'payment_reference': string; + 'routing_number': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = { + 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; + 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; + 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; + 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; + 'alma'?: PaymentMethodDetailsAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; + 'billie'?: PaymentMethodDetailsBillieModel | undefined; + 'billing_details': PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel; + 'blik'?: PaymentMethodDetailsBlikModel | undefined; + 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; + 'card'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel | undefined; + 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; + 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; + 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; + 'custom'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel | undefined; + 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodDetailsEpsModel | undefined; + 'fpx'?: PaymentMethodDetailsFpxModel | undefined; + 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; + 'gopay'?: PaymentMethodDetailsGopayModel | undefined; + 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; + 'id_bank_transfer'?: PaymentMethodDetailsIdBankTransferModel | undefined; + 'ideal'?: PaymentMethodDetailsIdealModel | undefined; + 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; + 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; + 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; + 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; + 'link'?: PaymentMethodDetailsLinkModel | undefined; + 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; + 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; + 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; + 'p24'?: PaymentMethodDetailsP24Model | undefined; + 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; + 'payco'?: PaymentMethodDetailsPaycoModel | undefined; + 'payment_method': string; + 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; + 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; + 'paypay'?: PaymentMethodDetailsPaypayModel | undefined; + 'payto'?: PaymentMethodDetailsPaytoModel | undefined; + 'pix'?: PaymentMethodDetailsPixModel | undefined; + 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; + 'qris'?: PaymentMethodDetailsQrisModel | undefined; + 'rechnung'?: PaymentMethodDetailsRechnungModel | undefined; + 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; + 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; + 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; + 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; + 'shopeepay'?: PaymentMethodDetailsShopeepayModel | undefined; + 'sofort'?: PaymentMethodDetailsSofortModel | undefined; + 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; + 'stripe_balance'?: PaymentMethodDetailsStripeBalanceModel | undefined; + 'swish'?: PaymentMethodDetailsSwishModel | undefined; + 'twint'?: PaymentMethodDetailsTwintModel | undefined; + 'type': string; + 'us_bank_account'?: PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel | undefined; + 'wechat'?: PaymentMethodDetailsWechatModel | undefined; + 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; + 'zip'?: PaymentMethodDetailsZipModel | undefined; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = { + 'payment_reference': string; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = { + 'custom'?: PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel | undefined; + 'type': 'custom'; +}; + +export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = { + 'address': PaymentsPrimitivesPaymentRecordsResourceAddressModel; + 'name': string; + 'phone': string; +}; + +export type PaymentRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application': string; + 'created': number; + 'customer_details': PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel; + 'customer_presence': 'off_session' | 'on_session'; + 'description': string; + 'id': string; + 'latest_payment_attempt_record': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_record'; + 'payment_method_details': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'shipping_details': PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel; +}; + +export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = { + 'charge'?: string | ChargeModel | undefined; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'payment_record'?: string | PaymentRecordModel | undefined; + 'type': 'charge' | 'payment_intent' | 'payment_record'; +}; + +export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = { + 'canceled_at': number; + 'paid_at': number; +}; + +export type InvoicePaymentModel = { + 'amount_paid': number; + 'amount_requested': number; + 'created': number; + 'currency': string; + 'id': string; + 'invoice': string | InvoiceModel | DeletedInvoiceModel; + 'is_default': boolean; + 'livemode': boolean; + 'object': 'invoice_payment'; + 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; + 'status': string; + 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +}; + +export type InvoiceRenderingPdfModel = { + 'page_size': 'a4' | 'auto' | 'letter'; +}; + +export type InvoicesResourceInvoiceRenderingModel = { + 'amount_tax_display': string; + 'pdf': InvoiceRenderingPdfModel; + 'template': string; + 'template_version': number; +}; + +export type ShippingRateDeliveryEstimateBoundModel = { + 'unit': 'business_day' | 'day' | 'hour' | 'month' | 'week'; + 'value': number; +}; + +export type ShippingRateDeliveryEstimateModel = { + 'maximum': ShippingRateDeliveryEstimateBoundModel; + 'minimum': ShippingRateDeliveryEstimateBoundModel; +}; + +export type ShippingRateCurrencyOptionModel = { + 'amount': number; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; +}; + +export type ShippingRateFixedAmountModel = { + 'amount': number; + 'currency': string; + 'currency_options'?: { + [key: string]: ShippingRateCurrencyOptionModel; +} | undefined; +}; + +export type ShippingRateModel = { + 'active': boolean; + 'created': number; + 'delivery_estimate': ShippingRateDeliveryEstimateModel; + 'display_name': string; + 'fixed_amount'?: ShippingRateFixedAmountModel | undefined; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'shipping_rate'; + 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; + 'tax_code': string | TaxCodeModel; + 'type': 'fixed_amount'; +}; + +export type LineItemsTaxAmountModel = { + 'amount': number; + 'rate': TaxRateModel; + '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'; + 'taxable_amount': number; +}; + +export type InvoicesResourceShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate': string | ShippingRateModel; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type InvoicesResourceStatusTransitionsModel = { + 'finalized_at': number; + 'marked_uncollectible_at': number; + 'paid_at': number; + 'voided_at': number; +}; + +export type InvoiceItemThresholdReasonModel = { + 'line_item_ids': string[]; + 'usage_gte': number; +}; + +export type InvoiceThresholdReasonModel = { + 'amount_gte': number; + 'item_reasons': InvoiceItemThresholdReasonModel[]; +}; + +export type InvoiceModel = { + 'account_country': string; + 'account_name': string; + 'account_tax_ids': Array; + 'amount_due': number; + 'amount_overpaid': number; + 'amount_paid': number; + 'amount_remaining': number; + 'amount_shipping': number; + 'amounts_due'?: PaymentPlanAmountModel[] | undefined; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'attempt_count': number; + 'attempted': boolean; + 'auto_advance'?: boolean | undefined; + 'automatic_tax': AutomaticTaxModel; + 'automatically_finalizes_at': number; + 'billing_reason': 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming'; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; + 'created': number; + 'currency': string; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'customer_address': AddressModel; + 'customer_email': string; + 'customer_name': string; + 'customer_phone': string; + 'customer_shipping': ShippingModel; + 'customer_tax_exempt': 'exempt' | 'none' | 'reverse'; + 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; + 'default_margins'?: Array | undefined; + 'default_payment_method': string | PaymentMethodModel; + 'default_source': string | PaymentSourceModel; + 'default_tax_rates': TaxRateModel[]; + 'description': string; + 'discounts': Array; + 'due_date': number; + 'effective_at': number; + 'ending_balance': number; + 'footer': string; + 'from_invoice': InvoicesResourceFromInvoiceModel; + 'hosted_invoice_url'?: string | undefined; + 'id'?: string | undefined; + 'invoice_pdf'?: string | undefined; + 'issuer': ConnectAccountReferenceModel; + 'last_finalization_error': ApiErrorsModel; + 'latest_revision': string | InvoiceModel; + 'lines': { + 'data': LineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_payment_attempt': number; + 'number': string; + 'object': 'invoice'; + 'on_behalf_of': string | AccountModel; + 'parent': BillingBillResourceInvoicingParentsInvoiceParentModel; + 'payment_settings': InvoicesPaymentSettingsModel; + 'payments'?: { + 'data': InvoicePaymentModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'period_end': number; + 'period_start': number; + 'post_payment_credit_notes_amount': number; + 'pre_payment_credit_notes_amount': number; + 'receipt_number': string; + 'rendering': InvoicesResourceInvoiceRenderingModel; + 'shipping_cost': InvoicesResourceShippingCostModel; + 'shipping_details': ShippingModel; + 'starting_balance': number; + 'statement_descriptor': string; + 'status': 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'; + 'status_transitions': InvoicesResourceStatusTransitionsModel; + 'subscription'?: string | SubscriptionModel | undefined; + 'subtotal': number; + 'subtotal_excluding_tax': number; + 'test_clock': string | TestHelpersTestClockModel; + 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; + 'total': number; + 'total_discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'total_excluding_tax': number; + 'total_margin_amounts'?: MarginsResourceMarginAmountModel[] | undefined; + 'total_pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; + 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'webhooks_delivered_at': number; +}; + +export type SubscriptionsResourcePauseCollectionModel = { + 'behavior': 'keep_as_draft' | 'mark_uncollectible' | 'void'; + 'resumes_at': number; +}; + +export type InvoiceMandateOptionsCardModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'description': string; +}; + +export type SubscriptionPaymentMethodOptionsCardModel = { + 'mandate_options'?: InvoiceMandateOptionsCardModel | undefined; + 'network': 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'girocard' | 'interac' | 'jcb' | 'link' | 'mastercard' | 'unionpay' | 'unknown' | 'visa'; + 'request_three_d_secure': 'any' | 'automatic' | 'challenge'; +}; + +export type SubscriptionPaymentMethodOptionsMandateOptionsPixModel = { + 'amount': number; + 'amount_includes_iof': 'always' | 'never'; + 'end_date': string; + 'payment_schedule': 'halfyearly' | 'monthly' | 'quarterly' | 'weekly' | 'yearly'; +}; + +export type SubscriptionPaymentMethodOptionsPixModel = { + 'mandate_options'?: SubscriptionPaymentMethodOptionsMandateOptionsPixModel | undefined; +}; + +export type SubscriptionsResourcePaymentMethodOptionsModel = { + 'acss_debit': InvoicePaymentMethodOptionsAcssDebitModel; + 'bancontact': InvoicePaymentMethodOptionsBancontactModel; + 'card': SubscriptionPaymentMethodOptionsCardModel; + 'customer_balance': InvoicePaymentMethodOptionsCustomerBalanceModel; + 'id_bank_transfer'?: InvoicePaymentMethodOptionsIdBankTransferModel | undefined; + 'konbini': InvoicePaymentMethodOptionsKonbiniModel; + 'pix'?: SubscriptionPaymentMethodOptionsPixModel | undefined; + 'sepa_debit': InvoicePaymentMethodOptionsSepaDebitModel; + 'upi'?: InvoicePaymentMethodOptionsUpiModel | undefined; + 'us_bank_account': InvoicePaymentMethodOptionsUsBankAccountModel; +}; + +export type SubscriptionsResourcePaymentSettingsModel = { + 'payment_method_options': SubscriptionsResourcePaymentMethodOptionsModel; + 'payment_method_types': Array<'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay'>; + 'save_default_payment_method': 'off' | 'on_subscription'; +}; + +export type SubscriptionPendingInvoiceItemIntervalModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; +}; + +export type SubscriptionsResourcePendingUpdateModel = { + 'billing_cycle_anchor': number; + 'expires_at': number; + 'prebilling_iterations'?: number | undefined; + 'subscription_items': SubscriptionItemModel[]; + 'trial_end': number; + 'trial_from_plan': boolean; +}; + +export type SubscriptionPrebillingDataModel = { + 'invoice': string | InvoiceModel; + 'period_end': number; + 'period_start': number; + 'update_behavior'?: 'prebill' | 'reset' | undefined; +}; + +export type SubscriptionScheduleCurrentPhaseModel = { + 'end_date': number; + 'start_date': number; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type InvoiceSettingSubscriptionScheduleSettingModel = { + 'account_tax_ids': Array; + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type SubscriptionTransferDataModel = { + 'amount_percent': number; + 'destination': string | AccountModel; +}; + +export type SubscriptionSchedulesResourceDefaultSettingsModel = { + 'application_fee_percent': number; + 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; + 'billing_cycle_anchor': 'automatic' | 'phase_start'; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'default_payment_method': string | PaymentMethodModel; + 'description': string; + 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; + 'on_behalf_of': string | AccountModel; + 'transfer_data': SubscriptionTransferDataModel; +}; + +export type DiscountEndModel = { + 'timestamp': number; + 'type': 'timestamp'; +}; + +export type DiscountsResourceStackableDiscountModel = { + 'coupon': string | CouponModel; + 'discount': string | DiscountModel; + 'discount_end'?: DiscountEndModel | undefined; + 'promotion_code': string | PromotionCodeModel; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = { + 'timestamp'?: number | undefined; + 'type': 'min_item_period_end' | 'phase_end' | 'timestamp'; +}; + +export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = { + 'timestamp'?: number | undefined; + 'type': 'max_item_period_start' | 'phase_start' | 'timestamp'; +}; + +export type SubscriptionScheduleAddInvoiceItemPeriodModel = { + 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel; + 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel; +}; + +export type DeletedPriceModel = { + 'deleted': boolean; + 'id': string; + 'object': 'price'; +}; + +export type SubscriptionScheduleAddInvoiceItemModel = { + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata': { + [key: string]: string; +}; + 'period': SubscriptionScheduleAddInvoiceItemPeriodModel; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity': number; + 'tax_rates'?: TaxRateModel[] | undefined; +}; + +export type SchedulesPhaseAutomaticTaxModel = { + 'disabled_reason': 'requires_location_inputs'; + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = { + 'account_tax_ids': Array; + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type DeletedPlanModel = { + 'deleted': boolean; + 'id': string; + 'object': 'plan'; +}; + +export type SubscriptionScheduleConfigurationItemModel = { + 'billing_thresholds': SubscriptionItemBillingThresholdsModel; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata': { + [key: string]: string; +}; + 'plan': string | PlanModel | DeletedPlanModel; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity'?: number | undefined; + 'tax_rates'?: TaxRateModel[] | undefined; + 'trial'?: SubscriptionsTrialsResourceTrialModel | undefined; +}; + +export type SubscriptionSchedulesResourcePauseCollectionModel = { + 'behavior': 'keep_as_draft' | 'mark_uncollectible' | 'void'; +}; + +export type SubscriptionSchedulesResourceEndBehaviorModel = { + 'prorate_up_front': 'defer' | 'include'; +}; + +export type SubscriptionSchedulesResourceTrialSettingsModel = { + 'end_behavior': SubscriptionSchedulesResourceEndBehaviorModel; +}; + +export type SubscriptionSchedulePhaseConfigurationModel = { + 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; + 'application_fee_percent': number; + 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; + 'billing_cycle_anchor': 'automatic' | 'phase_start'; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'currency': string; + 'default_payment_method': string | PaymentMethodModel; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description': string; + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'end_date': number; + 'invoice_settings': InvoiceSettingSubscriptionSchedulePhaseSettingModel; + 'items': SubscriptionScheduleConfigurationItemModel[]; + 'metadata': { + [key: string]: string; +}; + 'on_behalf_of': string | AccountModel; + 'pause_collection'?: SubscriptionSchedulesResourcePauseCollectionModel | undefined; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'start_date': number; + 'transfer_data': SubscriptionTransferDataModel; + 'trial_continuation'?: 'continue' | 'none' | undefined; + 'trial_end': number; + 'trial_settings'?: SubscriptionSchedulesResourceTrialSettingsModel | undefined; +}; + +export type SubscriptionScheduleModel = { + 'application': string | ApplicationModel | DeletedApplicationModel; + 'billing_behavior'?: 'prorate_on_next_phase' | 'prorate_up_front' | undefined; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'canceled_at': number; + 'completed_at': number; + 'created': number; + 'current_phase': SubscriptionScheduleCurrentPhaseModel; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; + 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'id': string; + 'last_price_migration_error'?: SubscriptionsResourcePriceMigrationErrorModel | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'subscription_schedule'; + 'phases': SubscriptionSchedulePhaseConfigurationModel[]; + 'prebilling'?: SubscriptionPrebillingDataModel | undefined; + 'released_at': number; + 'released_subscription': string; + 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; + 'subscription': string | SubscriptionModel; + 'test_clock': string | TestHelpersTestClockModel; +}; + +export type SubscriptionsTrialsResourceEndBehaviorModel = { + 'missing_payment_method': 'cancel' | 'create_invoice' | 'pause'; +}; + +export type SubscriptionsTrialsResourceTrialSettingsModel = { + 'end_behavior': SubscriptionsTrialsResourceEndBehaviorModel; +}; + +export type SubscriptionModel = { + 'application': string | ApplicationModel | DeletedApplicationModel; + 'application_fee_percent': number; + 'automatic_tax': SubscriptionAutomaticTaxModel; + 'billing_cadence'?: string | undefined; + 'billing_cycle_anchor': number; + 'billing_cycle_anchor_config': SubscriptionsResourceBillingCycleAnchorConfigModel; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'billing_schedules'?: SubscriptionsResourceBillingSchedulesModel[] | undefined; + 'billing_thresholds': SubscriptionBillingThresholdsModel; + 'cancel_at': number; + 'cancel_at_period_end': boolean; + 'canceled_at': number; + 'cancellation_details': CancellationDetailsModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'days_until_due': number; + 'default_payment_method': string | PaymentMethodModel; + 'default_source': string | PaymentSourceModel; + 'default_tax_rates'?: TaxRateModel[] | undefined; + 'description': string; + 'discounts': Array; + 'ended_at': number; + 'id': string; + 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; + 'items': { + 'data': SubscriptionItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'last_price_migration_error'?: SubscriptionsResourcePriceMigrationErrorModel | undefined; + 'latest_invoice': string | InvoiceModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'next_pending_invoice_item_invoice': number; + 'object': 'subscription'; + 'on_behalf_of': string | AccountModel; + 'pause_collection': SubscriptionsResourcePauseCollectionModel; + 'payment_settings': SubscriptionsResourcePaymentSettingsModel; + 'pending_invoice_item_interval': SubscriptionPendingInvoiceItemIntervalModel; + 'pending_setup_intent': string | SetupIntentModel; + 'pending_update': SubscriptionsResourcePendingUpdateModel; + 'prebilling'?: SubscriptionPrebillingDataModel | undefined; + 'schedule': string | SubscriptionScheduleModel; + 'start_date': number; + 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; + 'test_clock': string | TestHelpersTestClockModel; + 'transfer_data': SubscriptionTransferDataModel; + 'trial_end': number; + 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; + 'trial_start': number; +}; + +export type CustomerTaxLocationModel = { + 'country': string; + 'source': 'billing_address' | 'ip_address' | 'payment_method' | 'shipping_destination'; + 'state': string; +}; + +export type CustomerTaxModel = { + 'automatic_tax': 'failed' | 'not_collecting' | 'supported' | 'unrecognized_location'; + 'ip_address': string; + 'location': CustomerTaxLocationModel; + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; +}; + +export type CustomerModel = { + 'address'?: AddressModel | undefined; + 'balance'?: number | undefined; + 'business_name'?: string | undefined; + 'cash_balance'?: CashBalanceModel | undefined; + 'created': number; + 'currency'?: string | undefined; + 'customer_account'?: string | undefined; + 'default_source': string | PaymentSourceModel; + 'delinquent'?: boolean | undefined; + 'description': string; + 'discount'?: DiscountModel | undefined; + 'email': string; + 'id': string; + 'individual_name'?: string | undefined; + 'invoice_credit_balance'?: { + [key: string]: number; +} | undefined; + 'invoice_prefix'?: string | undefined; + 'invoice_settings'?: InvoiceSettingCustomerSettingModel | undefined; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'name'?: string | undefined; + 'next_invoice_sequence'?: number | undefined; + 'object': 'customer'; + 'phone'?: string | undefined; + 'preferred_locales'?: string[] | undefined; + 'shipping': ShippingModel; + 'sources'?: { + 'data': PaymentSourceModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'subscriptions'?: { + 'data': SubscriptionModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'tax'?: CustomerTaxModel | undefined; + 'tax_exempt'?: 'exempt' | 'none' | 'reverse' | undefined; + 'tax_ids'?: { + 'data': TaxIdModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'test_clock'?: string | TestHelpersTestClockModel | undefined; +}; + +export type AccountRequirementsErrorModel = { + 'code': 'external_request' | 'information_missing' | 'invalid_address_city_state_postal_code' | 'invalid_address_highway_contract_box' | 'invalid_address_private_mailbox' | 'invalid_business_profile_name' | 'invalid_business_profile_name_denylisted' | 'invalid_company_name_denylisted' | 'invalid_dob_age_over_maximum' | 'invalid_dob_age_under_18' | 'invalid_dob_age_under_minimum' | 'invalid_product_description_length' | 'invalid_product_description_url_match' | 'invalid_representative_country' | 'invalid_signator' | 'invalid_statement_descriptor_business_mismatch' | 'invalid_statement_descriptor_denylisted' | 'invalid_statement_descriptor_length' | 'invalid_statement_descriptor_prefix_denylisted' | 'invalid_statement_descriptor_prefix_mismatch' | 'invalid_street_address' | 'invalid_tax_id' | 'invalid_tax_id_format' | 'invalid_tos_acceptance' | 'invalid_url_denylisted' | 'invalid_url_format' | 'invalid_url_length' | 'invalid_url_web_presence_detected' | 'invalid_url_website_business_information_mismatch' | 'invalid_url_website_empty' | 'invalid_url_website_inaccessible' | 'invalid_url_website_inaccessible_geoblocked' | 'invalid_url_website_inaccessible_password_protected' | 'invalid_url_website_incomplete' | 'invalid_url_website_incomplete_cancellation_policy' | 'invalid_url_website_incomplete_customer_service_details' | 'invalid_url_website_incomplete_legal_restrictions' | 'invalid_url_website_incomplete_refund_policy' | 'invalid_url_website_incomplete_return_policy' | 'invalid_url_website_incomplete_terms_and_conditions' | 'invalid_url_website_incomplete_under_construction' | 'invalid_url_website_other' | 'invalid_value_other' | 'unsupported_business_type' | 'verification_data_not_found' | 'verification_directors_mismatch' | 'verification_document_address_mismatch' | 'verification_document_address_missing' | 'verification_document_corrupt' | 'verification_document_country_not_supported' | 'verification_document_directors_mismatch' | 'verification_document_dob_mismatch' | 'verification_document_duplicate_type' | 'verification_document_expired' | 'verification_document_failed_copy' | 'verification_document_failed_greyscale' | 'verification_document_failed_other' | 'verification_document_failed_test_mode' | 'verification_document_fraudulent' | 'verification_document_id_number_mismatch' | 'verification_document_id_number_missing' | 'verification_document_incomplete' | 'verification_document_invalid' | 'verification_document_issue_or_expiry_date_missing' | 'verification_document_manipulated' | 'verification_document_missing_back' | 'verification_document_missing_front' | 'verification_document_name_mismatch' | 'verification_document_name_missing' | 'verification_document_nationality_mismatch' | 'verification_document_not_readable' | 'verification_document_not_signed' | 'verification_document_not_uploaded' | 'verification_document_photo_mismatch' | 'verification_document_too_large' | 'verification_document_type_not_supported' | 'verification_extraneous_directors' | 'verification_failed_address_match' | 'verification_failed_authorizer_authority' | 'verification_failed_business_iec_number' | 'verification_failed_document_match' | 'verification_failed_id_number_match' | 'verification_failed_keyed_identity' | 'verification_failed_keyed_match' | 'verification_failed_name_match' | 'verification_failed_other' | 'verification_failed_representative_authority' | 'verification_failed_residential_address' | 'verification_failed_tax_id_match' | 'verification_failed_tax_id_not_issued' | 'verification_legal_entity_structure_mismatch' | 'verification_missing_directors' | 'verification_missing_executives' | 'verification_missing_owners' | 'verification_rejected_ownership_exemption_reason' | 'verification_requires_additional_memorandum_of_associations' | 'verification_requires_additional_proof_of_registration' | 'verification_supportability'; + 'reason': string; + 'requirement': string; +}; + +export type ExternalAccountRequirementsModel = { + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type BankAccountModel = { + 'account'?: string | AccountModel | undefined; + 'account_holder_name': string; + 'account_holder_type': string; + 'account_type': string; + 'available_payout_methods'?: Array<'instant' | 'standard'> | undefined; + 'bank_name': string; + 'country': string; + 'currency': string; + 'customer'?: string | CustomerModel | DeletedCustomerModel | undefined; + 'default_for_currency'?: boolean | undefined; + 'fingerprint': string; + 'future_requirements'?: ExternalAccountRequirementsModel | undefined; + 'id': string; + 'last4': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'bank_account'; + 'requirements'?: ExternalAccountRequirementsModel | undefined; + 'routing_number': string; + 'status': string; +}; + +export type ExternalAccountModel = BankAccountModel | CardModel; + +export type AccountRequirementsAlternativeModel = { + 'alternative_fields_due': string[]; + 'original_fields_due': string[]; +}; + +export type AccountFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + 'currently_due': string[]; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountGroupMembershipModel = { + 'payments_pricing': string; +}; + +export type PersonAdditionalTosAcceptanceModel = { + 'date': number; + 'ip': string; + 'user_agent': string; +}; + +export type PersonAdditionalTosAcceptancesModel = { + 'account': PersonAdditionalTosAcceptanceModel; +}; + +export type LegalEntityDobModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type PersonFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonRelationshipModel = { + 'authorizer': boolean; + 'director': boolean; + 'executive': boolean; + 'legal_guardian': boolean; + 'owner': boolean; + 'percent_ownership': number; + 'representative': boolean; + 'title': string; +}; + +export type PersonRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'currently_due': string[]; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type PersonEthnicityDetailsModel = { + 'ethnicity': Array<'cuban' | 'hispanic_or_latino' | 'mexican' | 'not_hispanic_or_latino' | 'other_hispanic_or_latino' | 'prefer_not_to_answer' | 'puerto_rican'>; + 'ethnicity_other': string; +}; + +export type PersonRaceDetailsModel = { + 'race': Array<'african_american' | 'american_indian_or_alaska_native' | 'asian' | 'asian_indian' | 'black_or_african_american' | 'chinese' | 'ethiopian' | 'filipino' | 'guamanian_or_chamorro' | 'haitian' | 'jamaican' | 'japanese' | 'korean' | 'native_hawaiian' | 'native_hawaiian_or_other_pacific_islander' | 'nigerian' | 'other_asian' | 'other_black_or_african_american' | 'other_pacific_islander' | 'prefer_not_to_answer' | 'samoan' | 'somali' | 'vietnamese' | 'white'>; + 'race_other': string; +}; + +export type PersonUsCfpbDataModel = { + 'ethnicity_details': PersonEthnicityDetailsModel; + 'race_details': PersonRaceDetailsModel; + 'self_identified_gender': string; +}; + +export type LegalEntityPersonVerificationDocumentModel = { + 'back': string | FileModel; + 'details': string; + 'details_code': string; + 'front': string | FileModel; +}; + +export type LegalEntityPersonVerificationModel = { + 'additional_document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'details'?: string | undefined; + 'details_code'?: string | undefined; + 'document'?: LegalEntityPersonVerificationDocumentModel | undefined; + 'status': string; +}; + +export type PersonModel = { + 'account'?: string | undefined; + 'additional_tos_acceptances'?: PersonAdditionalTosAcceptancesModel | undefined; + 'address'?: AddressModel | undefined; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'created': number; + 'dob'?: LegalEntityDobModel | undefined; + 'email'?: string | undefined; + 'first_name'?: string | undefined; + 'first_name_kana'?: string | undefined; + 'first_name_kanji'?: string | undefined; + 'full_name_aliases'?: string[] | undefined; + 'future_requirements'?: PersonFutureRequirementsModel | undefined; + 'gender'?: string | undefined; + 'id': string; + 'id_number_provided'?: boolean | undefined; + 'id_number_secondary_provided'?: boolean | undefined; + 'last_name'?: string | undefined; + 'last_name_kana'?: string | undefined; + 'last_name_kanji'?: string | undefined; + 'maiden_name'?: string | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'nationality'?: string | undefined; + 'object': 'person'; + 'phone'?: string | undefined; + 'political_exposure'?: 'existing' | 'none' | undefined; + 'registered_address'?: AddressModel | undefined; + 'relationship'?: PersonRelationshipModel | undefined; + 'requirements'?: PersonRequirementsModel | undefined; + 'ssn_last_4_provided'?: boolean | undefined; + 'us_cfpb_data'?: PersonUsCfpbDataModel | undefined; + 'verification'?: LegalEntityPersonVerificationModel | undefined; +}; + +export type AccountRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + 'currently_due': string[]; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type ConnectRiskAccountRiskControlModel = { + 'pause_requested': boolean; +}; + +export type ConnectRiskAccountRiskControlsModel = { + 'charges': ConnectRiskAccountRiskControlModel; + 'payouts': ConnectRiskAccountRiskControlModel; + 'rejected_reason'?: 'credit' | 'fraud' | 'fraud_no_intent_to_fulfill' | 'fraud_other' | 'fraud_payment_method_casher' | 'fraud_payment_method_tester' | 'other' | 'terms_of_service' | undefined; +}; + +export type AccountBacsDebitPaymentsSettingsModel = { + 'display_name': string; + 'service_user_number': string; +}; + +export type AccountBankBcaOnboardingSettingsModel = { + 'account_holder_name'?: string | undefined; + 'business_account_number'?: string | undefined; +}; + +export type AccountBrandingSettingsModel = { + 'icon': string | FileModel; + 'logo': string | FileModel; + 'primary_color': string; + 'secondary_color': string; +}; + +export type AccountCapitalSettingsModel = { + 'payout_destination'?: { + [key: string]: string; +} | undefined; + 'payout_destination_selector'?: { + [key: string]: string[]; +} | undefined; +}; + +export type CardIssuingAccountTermsOfServiceModel = { + 'date': number; + 'ip': string; + 'user_agent'?: string | undefined; +}; + +export type AccountCardIssuingSettingsModel = { + 'tos_acceptance'?: CardIssuingAccountTermsOfServiceModel | undefined; +}; + +export type AccountDeclineChargeOnModel = { + 'avs_failure': boolean; + 'cvc_failure': boolean; +}; + +export type AccountCardPaymentsSettingsModel = { + 'decline_on'?: AccountDeclineChargeOnModel | undefined; + 'statement_descriptor_prefix': string; + 'statement_descriptor_prefix_kana': string; + 'statement_descriptor_prefix_kanji': string; +}; + +export type AccountDashboardSettingsModel = { + 'display_name': string; + 'timezone': string; +}; + +export type AccountInvoicesSettingsModel = { + 'default_account_tax_ids': Array; + 'hosted_payment_method_save': 'always' | 'never' | 'offer'; +}; + +export type AccountPaymentsSettingsModel = { + 'statement_descriptor': string; + 'statement_descriptor_kana': string; + 'statement_descriptor_kanji': string; + 'statement_descriptor_prefix_kana': string; + 'statement_descriptor_prefix_kanji': string; +}; + +export type TransferScheduleModel = { + 'delay_days': number; + 'interval': string; + 'monthly_anchor'?: number | undefined; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_anchor'?: string | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type AccountPayoutSettingsModel = { + 'debit_negative_balances': boolean; + 'schedule': TransferScheduleModel; + 'statement_descriptor': string; +}; + +export type AccountPaypayPaymentsSettingsModel = { + 'goods_type'?: 'digital_content' | 'other' | undefined; +}; + +export type AccountSepaDebitPaymentsSettingsModel = { + 'creditor_id'?: string | undefined; +}; + +export type TaxReportingAccountSettingsResourceTaxFormSettingsModel = { + 'consented_to_paperless_delivery': boolean; +}; + +export type AccountTermsOfServiceModel = { + 'date': number; + 'ip': string; + 'user_agent'?: string | undefined; +}; + +export type AccountTreasurySettingsModel = { + 'tos_acceptance'?: AccountTermsOfServiceModel | undefined; +}; + +export type AccountSettingsModel = { + 'bacs_debit_payments'?: AccountBacsDebitPaymentsSettingsModel | undefined; + 'bank_bca_onboarding'?: AccountBankBcaOnboardingSettingsModel | undefined; + 'branding': AccountBrandingSettingsModel; + 'capital'?: AccountCapitalSettingsModel | undefined; + 'card_issuing'?: AccountCardIssuingSettingsModel | undefined; + 'card_payments': AccountCardPaymentsSettingsModel; + 'dashboard': AccountDashboardSettingsModel; + 'invoices'?: AccountInvoicesSettingsModel | undefined; + 'payments': AccountPaymentsSettingsModel; + 'payouts'?: AccountPayoutSettingsModel | undefined; + 'paypay_payments'?: AccountPaypayPaymentsSettingsModel | undefined; + 'sepa_debit_payments'?: AccountSepaDebitPaymentsSettingsModel | undefined; + 'tax_forms'?: TaxReportingAccountSettingsResourceTaxFormSettingsModel | undefined; + 'treasury'?: AccountTreasurySettingsModel | undefined; +}; + +export type AccountTosAcceptanceModel = { + 'date'?: number | undefined; + 'ip'?: string | undefined; + 'service_agreement'?: string | undefined; + 'user_agent'?: string | undefined; +}; + +export type AccountModel = { + 'business_profile'?: AccountBusinessProfileModel | undefined; + 'business_type'?: 'company' | 'government_entity' | 'individual' | 'non_profit' | undefined; + 'capabilities'?: AccountCapabilitiesModel | undefined; + 'charges_enabled'?: boolean | undefined; + 'company'?: LegalEntityCompanyModel | undefined; + 'controller'?: AccountUnificationAccountControllerModel | undefined; + 'country'?: string | undefined; + 'created'?: number | undefined; + 'default_currency'?: string | undefined; + 'details_submitted'?: boolean | undefined; + 'email'?: string | undefined; + 'external_accounts'?: { + 'data': ExternalAccountModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'future_requirements'?: AccountFutureRequirementsModel | undefined; + 'groups'?: AccountGroupMembershipModel | undefined; + 'id': string; + 'individual'?: PersonModel | undefined; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'account'; + 'payouts_enabled'?: boolean | undefined; + 'requirements'?: AccountRequirementsModel | undefined; + 'risk_controls'?: ConnectRiskAccountRiskControlsModel | undefined; + 'settings'?: AccountSettingsModel | undefined; + 'tos_acceptance'?: AccountTosAcceptanceModel | undefined; + 'type'?: 'custom' | 'express' | 'none' | 'standard' | undefined; +}; + +export type AccountApplicationAuthorizedModel = { + 'object': ApplicationModel; +}; + +export type AccountApplicationDeauthorizedModel = { + 'object': ApplicationModel; +}; + +export type AccountExternalAccountCreatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountExternalAccountDeletedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountExternalAccountUpdatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type AccountUpdatedModel = { + 'object': AccountModel; +}; + +export type AccountCapabilityFutureRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountCapabilityRequirementsModel = { + 'alternatives': AccountRequirementsAlternativeModel[]; + 'current_deadline': number; + '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'; + 'errors': AccountRequirementsErrorModel[]; + 'eventually_due': string[]; + 'past_due': string[]; + 'pending_verification': string[]; +}; + +export type AccountLinkModel = { + 'created': number; + 'expires_at': number; + 'object': 'account_link'; + 'url': string; +}; + +export type IssuingComplianceNoticeEmailModel = { + 'plain_text': string; + 'recipient': string; + 'subject': string; +}; + +export type IssuingComplianceNoticeLinkedObjectsModel = { + 'capability': string; + 'issuing_credit_underwriting_record'?: string | undefined; + 'issuing_dispute': string; +}; + +export type AccountNoticeModel = { + 'created': number; + 'deadline': number; + 'email': IssuingComplianceNoticeEmailModel; + 'id': string; + 'linked_objects': IssuingComplianceNoticeLinkedObjectsModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'account_notice'; + 'reason': 'issuing.account_closed_for_inactivity' | 'issuing.account_closed_for_not_providing_business_model_clarification' | 'issuing.account_closed_for_not_providing_url_clarification' | 'issuing.account_closed_for_not_providing_use_case_clarification' | 'issuing.account_closed_for_terms_of_service_violation' | 'issuing.application_rejected_for_failure_to_verify' | 'issuing.credit_application_rejected' | 'issuing.credit_increase_application_rejected' | 'issuing.credit_limit_decreased' | 'issuing.credit_line_closed' | 'issuing.dispute_lost' | 'issuing.dispute_submitted' | 'issuing.dispute_won'; + 'sent_at': number; +}; + +export type AccountNoticeCreatedModel = { + 'object': AccountNoticeModel; +}; + +export type AccountNoticeUpdatedModel = { + 'object': AccountNoticeModel; +}; + +export type ConnectEmbeddedAccountFeaturesClaimModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; +}; + +export type ConnectEmbeddedAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedAccountFeaturesClaimModel; +}; + +export type ConnectEmbeddedPayoutsFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'edit_payout_schedule': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; + 'standard_payouts': boolean; +}; + +export type ConnectEmbeddedPayoutsConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPayoutsFeaturesModel; +}; + +export type ConnectEmbeddedBaseFeaturesModel = { + +}; + +export type ConnectEmbeddedBaseConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedBaseFeaturesModel; +}; + +export type ConnectEmbeddedDisputesListFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedDisputesListConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedDisputesListFeaturesModel; +}; + +export type ConnectEmbeddedBaseConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedBaseFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'send_money': boolean; + 'transfer_balance': boolean; +}; + +export type ConnectEmbeddedFinancialAccountConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountFeaturesModel; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = { + 'card_spend_dispute_management': boolean; +}; + +export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedFinancialAccountTransactionsFeaturesModel; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = { + 'disable_stripe_user_authentication': boolean; + 'external_account_collection': boolean; + 'instant_payouts': boolean; +}; + +export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedInstantPayoutsPromotionFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardFeaturesModel; +}; + +export type ConnectEmbeddedIssuingCardsListFeaturesModel = { + 'card_management': boolean; + 'card_spend_dispute_management': boolean; + 'cardholder_management': boolean; + 'disable_stripe_user_authentication': boolean; + 'spend_control_management': boolean; +}; + +export type ConnectEmbeddedIssuingCardsListConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedIssuingCardsListFeaturesModel; +}; + +export type ConnectEmbeddedPaymentsFeaturesModel = { + 'capture_payments': boolean; + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentsConfigClaimModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentsFeaturesModel; +}; + +export type ConnectEmbeddedPaymentDisputesFeaturesModel = { + 'destination_on_behalf_of_charge_management': boolean; + 'dispute_management': boolean; + 'refund_management': boolean; +}; + +export type ConnectEmbeddedPaymentDisputesConfigModel = { + 'enabled': boolean; + 'features': ConnectEmbeddedPaymentDisputesFeaturesModel; +}; + +export type ConnectEmbeddedAccountSessionCreateComponentsModel = { + 'account_management': ConnectEmbeddedAccountConfigClaimModel; + 'account_onboarding': ConnectEmbeddedAccountConfigClaimModel; + 'balances': ConnectEmbeddedPayoutsConfigModel; + 'capital_financing'?: ConnectEmbeddedBaseConfigModel | undefined; + 'capital_financing_application'?: ConnectEmbeddedBaseConfigModel | undefined; + 'capital_financing_promotion'?: ConnectEmbeddedBaseConfigModel | undefined; + 'disputes_list': ConnectEmbeddedDisputesListConfigModel; + 'documents': ConnectEmbeddedBaseConfigClaimModel; + 'financial_account': ConnectEmbeddedFinancialAccountConfigClaimModel; + 'financial_account_transactions': ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel; + 'instant_payouts_promotion': ConnectEmbeddedInstantPayoutsPromotionConfigModel; + 'issuing_card': ConnectEmbeddedIssuingCardConfigClaimModel; + 'issuing_cards_list': ConnectEmbeddedIssuingCardsListConfigClaimModel; + 'notification_banner': ConnectEmbeddedAccountConfigClaimModel; + 'payment_details': ConnectEmbeddedPaymentsConfigClaimModel; + 'payment_disputes': ConnectEmbeddedPaymentDisputesConfigModel; + 'payments': ConnectEmbeddedPaymentsConfigClaimModel; + 'payout_details': ConnectEmbeddedBaseConfigClaimModel; + 'payouts': ConnectEmbeddedPayoutsConfigModel; + 'payouts_list': ConnectEmbeddedBaseConfigClaimModel; + 'tax_registrations': ConnectEmbeddedBaseConfigClaimModel; + 'tax_settings': ConnectEmbeddedBaseConfigClaimModel; +}; + +export type AccountSessionModel = { + 'account': string; + 'client_secret': string; + 'components': ConnectEmbeddedAccountSessionCreateComponentsModel; + 'expires_at': number; + 'livemode': boolean; + 'object': 'account_session'; +}; + +export type ApplePayDomainModel = { + 'created': number; + 'domain_name': string; + 'id': string; + 'livemode': boolean; + 'object': 'apple_pay_domain'; +}; + +export type ApplicationFeeCreatedModel = { + 'object': ApplicationFeeModel; +}; + +export type ApplicationFeeRefundUpdatedModel = { + 'object': FeeRefundModel; +}; + +export type ApplicationFeeRefundedModel = { + 'object': ApplicationFeeModel; +}; + +export type SecretServiceResourceScopeModel = { + 'type': 'account' | 'user'; + 'user'?: string | undefined; +}; + +export type AppsSecretModel = { + 'created': number; + 'deleted'?: boolean | undefined; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'apps.secret'; + 'payload'?: string | undefined; + 'scope': SecretServiceResourceScopeModel; +}; + +export type BalanceAmountBySourceTypeModel = { + 'bank_account'?: number | undefined; + 'card'?: number | undefined; + 'fpx'?: number | undefined; +}; + +export type BalanceAmountModel = { + 'amount': number; + 'currency': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceNetAvailableModel = { + 'amount': number; + 'destination': string; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceAmountNetModel = { + 'amount': number; + 'currency': string; + 'net_available'?: BalanceNetAvailableModel[] | undefined; + 'source_types'?: BalanceAmountBySourceTypeModel | undefined; +}; + +export type BalanceDetailModel = { + 'available': BalanceAmountModel[]; +}; + +export type BalanceDetailUngatedModel = { + 'available': BalanceAmountModel[]; + 'pending': BalanceAmountModel[]; +}; + +export type BalanceModel = { + 'available': BalanceAmountModel[]; + 'connect_reserved'?: BalanceAmountModel[] | undefined; + 'instant_available'?: BalanceAmountNetModel[] | undefined; + 'issuing'?: BalanceDetailModel | undefined; + 'livemode': boolean; + 'object': 'balance'; + 'pending': BalanceAmountModel[]; + 'refund_and_dispute_prefunding'?: BalanceDetailUngatedModel | undefined; +}; + +export type BalanceAvailableModel = { + 'object': BalanceModel; +}; + +export type BalanceSettingsResourcePayoutScheduleModel = { + 'interval': 'daily' | 'manual' | 'monthly' | 'weekly'; + 'monthly_payout_days'?: number[] | undefined; + 'weekly_payout_days'?: Array<'friday' | 'monday' | 'thursday' | 'tuesday' | 'wednesday'> | undefined; +}; + +export type BalanceSettingsResourcePayoutsModel = { + 'minimum_balance_by_currency': { + [key: string]: number; +}; + 'schedule': BalanceSettingsResourcePayoutScheduleModel; + 'statement_descriptor': string; + 'status': 'disabled' | 'enabled'; +}; + +export type BalanceSettingsResourceSettlementTimingModel = { + 'delay_days': number; + 'delay_days_override'?: number | undefined; +}; + +export type BalanceSettingsResourcePaymentsModel = { + 'debit_negative_balances': boolean; + 'payouts': BalanceSettingsResourcePayoutsModel; + 'settlement_timing': BalanceSettingsResourceSettlementTimingModel; +}; + +export type BalanceSettingsModel = { + 'object': 'balance_settings'; + 'payments': BalanceSettingsResourcePaymentsModel; +}; + +export type BalanceSettingsUpdatedModel = { + 'object': BalanceSettingsModel; +}; + +export type BankConnectionsResourceAccountNumberDetailsModel = { + 'expected_expiry_date': number; + 'identifier_type': 'account_number' | 'tokenized_account_number'; + 'status': 'deactivated' | 'transactable'; + 'supported_networks': 'ach'[]; +}; + +export type BankConnectionsResourceAccountholderModel = { + 'account'?: string | AccountModel | undefined; + 'customer'?: string | CustomerModel | undefined; + 'customer_account'?: string | undefined; + 'type': 'account' | 'customer'; +}; + +export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = { + 'available': { + [key: string]: number; +}; +}; + +export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = { + 'used': { + [key: string]: number; +}; +}; + +export type BankConnectionsResourceBalanceModel = { + 'as_of': number; + 'cash'?: BankConnectionsResourceBalanceApiResourceCashBalanceModel | undefined; + 'credit'?: BankConnectionsResourceBalanceApiResourceCreditBalanceModel | undefined; + 'current': { + [key: string]: number; +}; + 'type': 'cash' | 'credit'; +}; + +export type BankConnectionsResourceBalanceRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceInferredBalancesRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceInstitutionSupportedFeatureModel = { + 'supported': boolean; +}; + +export type BankConnectionsResourceInstitutionFeatureSupportModel = { + 'balances': BankConnectionsResourceInstitutionSupportedFeatureModel; + 'ownership': BankConnectionsResourceInstitutionSupportedFeatureModel; + 'payment_method': BankConnectionsResourceInstitutionSupportedFeatureModel; + 'transactions': BankConnectionsResourceInstitutionSupportedFeatureModel; +}; + +export type BankConnectionsResourceLinkAccountSessionFiltersModel = { + 'account_subcategories': Array<'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'savings'>; + 'countries': string[]; + 'institution'?: string | undefined; +}; + +export type BankConnectionsResourceLinkAccountSessionLimitsModel = { + 'accounts': number; +}; + +export type BankConnectionsResourceLinkAccountSessionManualEntryModel = { + +}; + +export type BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetailsModel = { + 'reason': 'custom_manual_entry' | 'other'; +}; + +export type BankConnectionsResourceLinkAccountSessionStatusDetailsModel = { + 'cancelled'?: BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetailsModel | undefined; +}; + +export type BankConnectionsResourceOwnershipRefreshModel = { + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionRefreshModel = { + 'id': string; + 'last_attempted_at': number; + 'next_refresh_available_at': number; + 'status': 'failed' | 'pending' | 'succeeded'; +}; + +export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = { + 'posted_at': number; + 'void_at': number; +}; + +export type ThresholdsResourceUsageAlertFilterModel = { + 'customer': string | CustomerModel; + 'type': 'customer'; +}; + +export type BillingMeterResourceCustomerMappingSettingsModel = { + 'event_payload_key': string; + 'type': 'by_id'; +}; + +export type BillingMeterResourceAggregationSettingsModel = { + 'formula': 'count' | 'last' | 'sum'; +}; + +export type BillingMeterResourceBillingMeterStatusTransitionsModel = { + 'deactivated_at': number; +}; + +export type BillingMeterResourceBillingMeterValueModel = { + 'event_payload_key': string; +}; + +export type BillingMeterModel = { + 'created': number; + 'customer_mapping': BillingMeterResourceCustomerMappingSettingsModel; + 'default_aggregation': BillingMeterResourceAggregationSettingsModel; + 'display_name': string; + 'event_name': string; + 'event_time_window': 'day' | 'hour'; + 'id': string; + 'livemode': boolean; + 'object': 'billing.meter'; + 'status': 'active' | 'inactive'; + 'status_transitions': BillingMeterResourceBillingMeterStatusTransitionsModel; + 'updated': number; + 'value_settings': BillingMeterResourceBillingMeterValueModel; +}; + +export type ThresholdsResourceUsageThresholdConfigModel = { + 'filters': ThresholdsResourceUsageAlertFilterModel[]; + 'gte': number; + 'meter': string | BillingMeterModel; + 'recurrence': 'one_time'; +}; + +export type BillingAlertModel = { + 'alert_type': 'usage_threshold'; + 'id': string; + 'livemode': boolean; + 'object': 'billing.alert'; + 'status': 'active' | 'archived' | 'inactive'; + 'title': string; + 'usage_threshold': ThresholdsResourceUsageThresholdConfigModel; +}; + +export type BillingAlertTriggered_1Model = { + 'alert': BillingAlertModel; + 'created': number; + 'customer': string; + 'livemode': boolean; + 'object': 'billing.alert_triggered'; + 'value': string; +}; + +export type BillingAlertTriggeredModel = { + 'object': BillingAlertTriggered_1Model; +}; + +export type BillingAnalyticsMeterUsageRowModel = { + 'dimensions': { + [key: string]: string; +}; + 'ends_at': number; + 'id': string; + 'meter': string; + 'object': 'billing.analytics.meter_usage_row'; + 'starts_at': number; + 'value': number; +}; + +export type BillingOverviewResourcesMeterUsageRowsModel = { + 'data': BillingAnalyticsMeterUsageRowModel[]; + 'has_more': boolean; + 'total': number; + 'url': string; +}; + +export type BillingAnalyticsMeterUsageModel = { + 'livemode': boolean; + 'object': 'billing.analytics.meter_usage'; + 'refreshed_at': number; + 'rows': BillingOverviewResourcesMeterUsageRowsModel; +}; + +export type CreditBalanceModel = { + 'available_balance': BillingCreditGrantsResourceAmountModel; + 'ledger_balance': BillingCreditGrantsResourceAmountModel; +}; + +export type BillingCreditBalanceSummaryModel = { + 'balances': CreditBalanceModel[]; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'livemode': boolean; + 'object': 'billing.credit_balance_summary'; +}; + +export type BillingCreditBalanceTransactionCreatedModel = { + 'object': BillingCreditBalanceTransactionModel; +}; + +export type BillingCreditGrantCreatedModel = { + 'object': BillingCreditGrantModel; +}; + +export type BillingCreditGrantUpdatedModel = { + 'object': BillingCreditGrantModel; +}; + +export type BillingMeterCreatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterDeactivatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterReactivatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterUpdatedModel = { + 'object': BillingMeterModel; +}; + +export type BillingMeterEventModel = { + 'created': number; + 'event_name': string; + 'identifier': string; + 'livemode': boolean; + 'object': 'billing.meter_event'; + 'payload': { + [key: string]: string; +}; + 'timestamp': number; +}; + +export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = { + 'identifier': string; +}; + +export type BillingMeterEventAdjustmentModel = { + 'cancel': BillingMeterResourceBillingMeterEventAdjustmentCancelModel; + 'event_name': string; + 'livemode': boolean; + 'object': 'billing.meter_event_adjustment'; + 'status': 'complete' | 'pending'; + 'type': 'cancel'; +}; + +export type BillingMeterEventSummaryModel = { + 'aggregated_value': number; + 'end_time': number; + 'id': string; + 'livemode': boolean; + 'meter': string; + 'object': 'billing.meter_event_summary'; + 'start_time': number; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = { + 'subscription': string; + 'subscription_item'?: string | undefined; +}; + +export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = { + 'subscription_details': BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel; + 'type': 'subscription_details'; +}; + +export type PortalBusinessProfileModel = { + 'headline': string; + 'privacy_policy_url': string; + 'terms_of_service_url': string; +}; + +export type PortalCustomerUpdateModel = { + 'allowed_updates': Array<'address' | 'email' | 'name' | 'phone' | 'shipping' | 'tax_id'>; + 'enabled': boolean; +}; + +export type PortalInvoiceListModel = { + 'enabled': boolean; +}; + +export type PortalPaymentMethodUpdateModel = { + 'enabled': boolean; + 'payment_method_configuration': string; +}; + +export type PortalSubscriptionCancellationReasonModel = { + 'enabled': boolean; + 'options': Array<'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused'>; +}; + +export type PortalSubscriptionCancelModel = { + 'cancellation_reason': PortalSubscriptionCancellationReasonModel; + 'enabled': boolean; + 'mode': 'at_period_end' | 'immediately'; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; +}; + +export type PortalSubscriptionUpdateProductAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PortalSubscriptionUpdateProductModel = { + 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantityModel; + 'prices': string[]; + 'product': string; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = { + 'type': 'decreasing_item_amount' | 'shortening_interval'; +}; + +export type PortalResourceScheduleUpdateAtPeriodEndModel = { + 'conditions': PortalResourceScheduleUpdateAtPeriodEndConditionModel[]; +}; + +export type PortalSubscriptionUpdateModel = { + 'default_allowed_updates': Array<'price' | 'promotion_code' | 'quantity'>; + 'enabled': boolean; + 'products'?: PortalSubscriptionUpdateProductModel[] | undefined; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'schedule_at_period_end': PortalResourceScheduleUpdateAtPeriodEndModel; + 'trial_update_behavior': 'continue_trial' | 'end_trial'; +}; + +export type PortalFeaturesModel = { + 'customer_update': PortalCustomerUpdateModel; + 'invoice_history': PortalInvoiceListModel; + 'payment_method_update': PortalPaymentMethodUpdateModel; + 'subscription_cancel': PortalSubscriptionCancelModel; + 'subscription_update': PortalSubscriptionUpdateModel; +}; + +export type PortalLoginPageModel = { + 'enabled': boolean; + 'url': string; +}; + +export type BillingPortalConfigurationModel = { + 'active': boolean; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'business_profile': PortalBusinessProfileModel; + 'created': number; + 'default_return_url': string; + 'features': PortalFeaturesModel; + 'id': string; + 'is_default': boolean; + 'livemode': boolean; + 'login_page': PortalLoginPageModel; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'billing_portal.configuration'; + 'updated': number; +}; + +export type BillingPortalConfigurationCreatedModel = { + 'object': BillingPortalConfigurationModel; +}; + +export type BillingPortalConfigurationUpdatedModel = { + 'object': BillingPortalConfigurationModel; +}; + +export type PortalFlowsAfterCompletionHostedConfirmationModel = { + 'custom_message': string; +}; + +export type PortalFlowsAfterCompletionRedirectModel = { + 'return_url': string; +}; + +export type PortalFlowsFlowAfterCompletionModel = { + 'hosted_confirmation': PortalFlowsAfterCompletionHostedConfirmationModel; + 'redirect': PortalFlowsAfterCompletionRedirectModel; + 'type': 'hosted_confirmation' | 'portal_homepage' | 'redirect'; +}; + +export type PortalFlowsCouponOfferModel = { + 'coupon': string; +}; + +export type PortalFlowsRetentionModel = { + 'coupon_offer': PortalFlowsCouponOfferModel; + 'type': 'coupon_offer'; +}; + +export type PortalFlowsFlowSubscriptionCancelModel = { + 'retention': PortalFlowsRetentionModel; + 'subscription': string; +}; + +export type PortalFlowsFlowSubscriptionUpdateModel = { + 'subscription': string; +}; + +export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = { + 'coupon': string; + 'promotion_code': string; +}; + +export type PortalFlowsSubscriptionUpdateConfirmItemModel = { + 'id': string; + 'price': string; + 'quantity'?: number | undefined; +}; + +export type PortalFlowsFlowSubscriptionUpdateConfirmModel = { + 'discounts': PortalFlowsSubscriptionUpdateConfirmDiscountModel[]; + 'items': PortalFlowsSubscriptionUpdateConfirmItemModel[]; + 'subscription': string; +}; + +export type PortalFlowsFlowModel = { + 'after_completion': PortalFlowsFlowAfterCompletionModel; + 'subscription_cancel': PortalFlowsFlowSubscriptionCancelModel; + 'subscription_update': PortalFlowsFlowSubscriptionUpdateModel; + 'subscription_update_confirm': PortalFlowsFlowSubscriptionUpdateConfirmModel; + 'type': 'payment_method_update' | 'subscription_cancel' | 'subscription_update' | 'subscription_update_confirm'; +}; + +export type BillingPortalSessionModel = { + 'configuration': string | BillingPortalConfigurationModel; + 'created': number; + 'customer': string; + 'customer_account'?: string | undefined; + 'flow': PortalFlowsFlowModel; + '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'; + 'object': 'billing_portal.session'; + 'on_behalf_of': string; + 'return_url': string; + 'url': string; +}; + +export type BillingPortalSessionCreatedModel = { + 'object': BillingPortalSessionModel; +}; + +export type CapabilityModel = { + 'account': string | AccountModel; + 'future_requirements'?: AccountCapabilityFutureRequirementsModel | undefined; + 'id': string; + 'object': 'capability'; + 'requested': boolean; + 'requested_at': number; + 'requirements'?: AccountCapabilityRequirementsModel | undefined; + 'status': 'active' | 'inactive' | 'pending' | 'unrequested'; +}; + +export type CapabilityUpdatedModel = { + 'object': CapabilityModel; +}; + +export type CapitalConnectConnectFinancingAcceptedTermsModel = { + 'advance_amount': number; + 'currency': string; + 'fee_amount': number; + 'previous_financing_fee_discount_amount': number; + 'withhold_rate': number; +}; + +export type CapitalConnectConnectFinancingOfferedTermsModel = { + 'advance_amount': number; + 'campaign_type': 'newly_eligible_user' | 'previously_eligible_user' | 'repeat_user'; + 'currency': string; + 'fee_amount': number; + 'previous_financing_fee_discount_rate': number; + 'withhold_rate': number; +}; + +export type CapitalFinancingOfferModel = { + 'accepted_terms'?: CapitalConnectConnectFinancingAcceptedTermsModel | undefined; + 'account': string; + 'charged_off_at'?: number | undefined; + 'created': number; + 'expires_after': number; + 'financing_type'?: 'cash_advance' | 'flex_loan' | undefined; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'capital.financing_offer'; + 'offered_terms'?: CapitalConnectConnectFinancingOfferedTermsModel | undefined; + 'product_type'?: 'refill' | 'standard' | undefined; + 'replacement'?: string | undefined; + 'replacement_for'?: string | undefined; + 'status': 'accepted' | 'canceled' | 'completed' | 'delivered' | 'expired' | 'fully_repaid' | 'paid_out' | 'rejected' | 'replaced' | 'undelivered'; + 'type'?: 'cash_advance' | 'fixed_term_loan' | 'flex_loan' | undefined; +}; + +export type CapitalFinancingOfferAcceptedModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferCanceledModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferCreatedModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferExpiredModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferFullyRepaidModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferPaidOutModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferRejectedModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalFinancingOfferReplacementCreatedModel = { + 'object': CapitalFinancingOfferModel; +}; + +export type CapitalConnectFinancingSummaryCurrentRepaymentWindowModel = { + 'due_at': number; + 'paid_amount': number; + 'remaining_amount': number; +}; + +export type CapitalConnectFinancingSummaryDetailsModel = { + 'advance_amount': number; + 'advance_paid_out_at': number; + 'currency': string; + 'current_repayment_interval': CapitalConnectFinancingSummaryCurrentRepaymentWindowModel; + 'fee_amount': number; + 'paid_amount': number; + 'remaining_amount': number; + 'repayments_begin_at': number; + 'withhold_rate': number; +}; + +export type CapitalFinancingSummaryModel = { + 'details': CapitalConnectFinancingSummaryDetailsModel; + 'financing_offer': string; + 'object': 'capital.financing_summary'; + 'status': 'accepted' | 'delivered' | 'none'; +}; + +export type CapitalConnectFinancingTransactionDetailsTransactionModel = { + 'charge'?: string | undefined; + 'treasury_transaction'?: string | undefined; +}; + +export type CapitalConnectFinancingTransactionDetailsModel = { + 'advance_amount': number; + 'currency': string; + 'fee_amount': number; + 'linked_payment'?: string | undefined; + 'reason'?: 'automatic_withholding' | 'automatic_withholding_refund' | 'collection' | 'collection_failure' | 'financing_cancellation' | 'refill' | 'requested_by_user' | 'user_initiated' | undefined; + 'reversed_transaction'?: string | undefined; + 'total_amount': number; + 'transaction'?: CapitalConnectFinancingTransactionDetailsTransactionModel | undefined; +}; + +export type CapitalFinancingTransactionModel = { + 'account': string; + 'created_at': number; + 'details': CapitalConnectFinancingTransactionDetailsModel; + 'financing_offer': string; + 'id': string; + 'legacy_balance_transaction_source'?: string | undefined; + 'livemode': boolean; + 'object': 'capital.financing_transaction'; + 'type': 'payment' | 'payout' | 'reversal'; + 'user_facing_description': string; +}; + +export type CapitalFinancingTransactionCreatedModel = { + 'object': CapitalFinancingTransactionModel; +}; + +export type CashBalanceFundsAvailableModel = { + 'object': CashBalanceModel; +}; + +export type ChargeCapturedModel = { + 'object': ChargeModel; +}; + +export type ChargeDisputeClosedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeCreatedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeFundsReinstatedModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeFundsWithdrawnModel = { + 'object': DisputeModel; +}; + +export type ChargeDisputeUpdatedModel = { + 'object': DisputeModel; +}; + +export type ChargeExpiredModel = { + 'object': ChargeModel; +}; + +export type ChargeFailedModel = { + 'object': ChargeModel; +}; + +export type ChargePendingModel = { + 'object': ChargeModel; +}; + +export type ChargeRefundUpdatedModel = { + 'object': RefundModel; +}; + +export type ChargeRefundedModel = { + 'object': ChargeModel; +}; + +export type ChargeSucceededModel = { + 'object': ChargeModel; +}; + +export type ChargeUpdatedModel = { + 'object': ChargeModel; +}; + +export type PaymentPagesCheckoutSessionAdaptivePricingModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = { + 'allow_promotion_codes': boolean; + 'enabled': boolean; + 'expires_at': number; + 'url': string; +}; + +export type PaymentPagesCheckoutSessionAfterExpirationModel = { + 'recovery': PaymentPagesCheckoutSessionAfterExpirationRecoveryModel; +}; + +export type PaymentPagesCheckoutSessionAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = { + 'file'?: string | undefined; + 'type': 'file' | 'url'; + 'url'?: string | undefined; +}; + +export type PaymentPagesCheckoutSessionBrandingSettingsModel = { + 'background_color': string; + 'border_style': 'pill' | 'rectangular' | 'rounded'; + 'button_color': string; + 'display_name': string; + 'font_family': string; + 'icon': PaymentPagesCheckoutSessionBrandingSettingsIconModel; + 'logo': PaymentPagesCheckoutSessionBrandingSettingsLogoModel; +}; + +export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = { + 'address': AddressModel; + 'name': string; +}; + +export type PaymentPagesCheckoutSessionTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCollectedInformationModel = { + 'business_name': string; + 'email'?: string | undefined; + 'individual_name': string; + 'phone'?: string | undefined; + 'shipping_details': PaymentPagesCheckoutSessionCheckoutAddressDetailsModel; + 'tax_ids'?: PaymentPagesCheckoutSessionTaxIdModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionConsentModel = { + 'promotions': 'opt_in' | 'opt_out'; + 'terms_of_service': 'accepted'; +}; + +export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentPagesCheckoutSessionConsentCollectionModel = { + 'payment_method_reuse_agreement': PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel; + 'promotions': 'auto' | 'none'; + 'terms_of_service': 'none' | 'required'; +}; + +export type PaymentPagesCheckoutSessionCurrencyConversionModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'fx_rate': string; + 'source_currency': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = { + 'default_value': string; + 'options': PaymentPagesCheckoutSessionCustomFieldsOptionModel[]; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = { + 'custom': string; + 'type': 'custom'; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsTextModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; + 'value': string; +}; + +export type PaymentPagesCheckoutSessionCustomFieldsModel = { + 'dropdown'?: PaymentPagesCheckoutSessionCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentPagesCheckoutSessionCustomFieldsLabelModel; + 'numeric'?: PaymentPagesCheckoutSessionCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentPagesCheckoutSessionCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentPagesCheckoutSessionCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentPagesCheckoutSessionCustomTextModel = { + 'after_submit': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'shipping_address': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'submit': PaymentPagesCheckoutSessionCustomTextPositionModel; + 'terms_of_service_acceptance': PaymentPagesCheckoutSessionCustomTextPositionModel; +}; + +export type PaymentPagesCheckoutSessionCustomerDetailsModel = { + 'address': AddressModel; + 'business_name': string; + 'email': string; + 'individual_name': string; + 'name': string; + 'phone': string; + 'tax_exempt': 'exempt' | 'none' | 'reverse'; + 'tax_ids': PaymentPagesCheckoutSessionTaxIdModel[]; +}; + +export type PaymentPagesCheckoutSessionDiscountModel = { + 'coupon': string | CouponModel; + 'promotion_code': string | PromotionCodeModel; +}; + +export type InvoiceSettingCheckoutRenderingOptionsModel = { + 'amount_tax_display': string; + 'template': string; +}; + +export type PaymentPagesCheckoutSessionInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'description': string; + 'footer': string; + 'issuer': ConnectAccountReferenceModel; + 'metadata': { + [key: string]: string; +}; + 'rendering_options': InvoiceSettingCheckoutRenderingOptionsModel; +}; + +export type PaymentPagesCheckoutSessionInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettingsModel; +}; + +export type LineItemsAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type LineItemsDiscountAmountModel = { + 'amount': number; + 'discount': DiscountModel; +}; + +export type LineItemsDisplayModel = { + 'description': string; + 'images': string[]; + 'name': string; +}; + +export type ItemModel = { + 'adjustable_quantity'?: LineItemsAdjustableQuantityModel | undefined; + 'amount_discount': number; + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'currency': string; + 'description': string; + 'discounts'?: LineItemsDiscountAmountModel[] | undefined; + 'display'?: LineItemsDisplayModel | undefined; + 'id': string; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'item'; + 'price': PriceModel; + 'product'?: string | ProductModel | DeletedProductModel | undefined; + 'quantity': number; + 'tax_calculation_reference'?: TaxProductIntegrationResourceTaxCalculationReferenceModel | undefined; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentPagesCheckoutSessionNameCollectionModel = { + 'business'?: PaymentPagesCheckoutSessionBusinessNameModel | undefined; + 'individual'?: PaymentPagesCheckoutSessionIndividualNameModel | undefined; +}; + +export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PaymentPagesCheckoutSessionOptionalItemModel = { + 'adjustable_quantity': PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = { + 'custom_message': string; +}; + +export type PaymentLinksResourceCompletionBehaviorRedirectModel = { + 'url': string; +}; + +export type PaymentLinksResourceAfterCompletionModel = { + 'hosted_confirmation'?: PaymentLinksResourceCompletionBehaviorConfirmationPageModel | undefined; + 'redirect'?: PaymentLinksResourceCompletionBehaviorRedirectModel | undefined; + 'type': 'hosted_confirmation' | 'redirect'; +}; + +export type PaymentLinksResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; +}; + +export type PaymentLinksResourcePaymentMethodReuseAgreementModel = { + 'position': 'auto' | 'hidden'; +}; + +export type PaymentLinksResourceConsentCollectionModel = { + 'payment_method_reuse_agreement': PaymentLinksResourcePaymentMethodReuseAgreementModel; + 'promotions': 'auto' | 'none'; + 'terms_of_service': 'none' | 'required'; +}; + +export type PaymentLinksResourceCustomFieldsDropdownOptionModel = { + 'label': string; + 'value': string; +}; + +export type PaymentLinksResourceCustomFieldsDropdownModel = { + 'default_value': string; + 'options': PaymentLinksResourceCustomFieldsDropdownOptionModel[]; +}; + +export type PaymentLinksResourceCustomFieldsLabelModel = { + 'custom': string; + 'type': 'custom'; +}; + +export type PaymentLinksResourceCustomFieldsNumericModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; +}; + +export type PaymentLinksResourceCustomFieldsTextModel = { + 'default_value': string; + 'maximum_length': number; + 'minimum_length': number; +}; + +export type PaymentLinksResourceCustomFieldsModel = { + 'dropdown'?: PaymentLinksResourceCustomFieldsDropdownModel | undefined; + 'key': string; + 'label': PaymentLinksResourceCustomFieldsLabelModel; + 'numeric'?: PaymentLinksResourceCustomFieldsNumericModel | undefined; + 'optional': boolean; + 'text'?: PaymentLinksResourceCustomFieldsTextModel | undefined; + 'type': 'dropdown' | 'numeric' | 'text'; +}; + +export type PaymentLinksResourceCustomTextPositionModel = { + 'message': string; +}; + +export type PaymentLinksResourceCustomTextModel = { + 'after_submit': PaymentLinksResourceCustomTextPositionModel; + 'shipping_address': PaymentLinksResourceCustomTextPositionModel; + 'submit': PaymentLinksResourceCustomTextPositionModel; + 'terms_of_service_acceptance': PaymentLinksResourceCustomTextPositionModel; +}; + +export type PaymentLinksResourceInvoiceSettingsModel = { + 'account_tax_ids': Array; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'description': string; + 'footer': string; + 'issuer': ConnectAccountReferenceModel; + 'metadata': { + [key: string]: string; +}; + 'rendering_options': InvoiceSettingCheckoutRenderingOptionsModel; +}; + +export type PaymentLinksResourceInvoiceCreationModel = { + 'enabled': boolean; + 'invoice_data': PaymentLinksResourceInvoiceSettingsModel; +}; + +export type PaymentLinksResourceBusinessNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceIndividualNameModel = { + 'enabled': boolean; + 'optional': boolean; +}; + +export type PaymentLinksResourceNameCollectionModel = { + 'business'?: PaymentLinksResourceBusinessNameModel | undefined; + 'individual'?: PaymentLinksResourceIndividualNameModel | undefined; +}; + +export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = { + 'enabled': boolean; + 'maximum': number; + 'minimum': number; +}; + +export type PaymentLinksResourceOptionalItemModel = { + 'adjustable_quantity': PaymentLinksResourceOptionalItemAdjustableQuantityModel; + 'price': string; + 'quantity': number; +}; + +export type PaymentLinksResourcePaymentIntentDataModel = { + 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'description': string; + 'metadata': { + [key: string]: string; +}; + 'setup_future_usage': 'off_session' | 'on_session'; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'transfer_group': string; +}; + +export type PaymentLinksResourcePhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentLinksResourceCompletedSessionsModel = { + 'count': number; + 'limit': number; +}; + +export type PaymentLinksResourceRestrictionsModel = { + 'completed_sessions': PaymentLinksResourceCompletedSessionsModel; +}; + +export type PaymentLinksResourceShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentLinksResourceShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = { + 'issuer': ConnectAccountReferenceModel; +}; + +export type PaymentLinksResourceSubscriptionDataModel = { + 'description': string; + 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettingsModel; + 'metadata': { + [key: string]: string; +}; + 'trial_period_days': number; + 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; +}; + +export type PaymentLinksResourceTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentLinksResourceTransferDataModel = { + 'amount': number; + 'destination': string | AccountModel; +}; + +export type PaymentLinkModel = { + 'active': boolean; + 'after_completion': PaymentLinksResourceAfterCompletionModel; + 'allow_promotion_codes': boolean; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'application_fee_amount': number; + 'application_fee_percent': number; + 'automatic_tax': PaymentLinksResourceAutomaticTaxModel; + 'billing_address_collection': 'auto' | 'required'; + 'consent_collection': PaymentLinksResourceConsentCollectionModel; + 'currency': string; + 'custom_fields': PaymentLinksResourceCustomFieldsModel[]; + 'custom_text': PaymentLinksResourceCustomTextModel; + 'customer_creation': 'always' | 'if_required'; + 'id': string; + 'inactive_message': string; + 'invoice_creation': PaymentLinksResourceInvoiceCreationModel; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'name_collection'?: PaymentLinksResourceNameCollectionModel | undefined; + 'object': 'payment_link'; + 'on_behalf_of': string | AccountModel; + 'optional_items'?: PaymentLinksResourceOptionalItemModel[] | undefined; + 'payment_intent_data': PaymentLinksResourcePaymentIntentDataModel; + 'payment_method_collection': 'always' | 'if_required'; + 'payment_method_types': Array<'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'ideal' | 'klarna' | 'konbini' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'oxxo' | 'p24' | 'pay_by_bank' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; + 'phone_number_collection': PaymentLinksResourcePhoneNumberCollectionModel; + 'restrictions': PaymentLinksResourceRestrictionsModel; + 'shipping_address_collection': PaymentLinksResourceShippingAddressCollectionModel; + 'shipping_options': PaymentLinksResourceShippingOptionModel[]; + 'submit_type': 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + 'subscription_data': PaymentLinksResourceSubscriptionDataModel; + 'tax_id_collection': PaymentLinksResourceTaxIdCollectionModel; + 'transfer_data': PaymentLinksResourceTransferDataModel; + 'url': string; +}; + +export type CheckoutAcssDebitMandateOptionsModel = { + 'custom_mandate_url'?: string | undefined; + 'default_for'?: Array<'invoice' | 'subscription'> | undefined; + 'interval_description': string; + 'payment_schedule': 'combined' | 'interval' | 'sporadic'; + 'transaction_type': 'business' | 'personal'; +}; + +export type CheckoutAcssDebitPaymentMethodOptionsModel = { + 'currency'?: 'cad' | 'usd' | undefined; + 'mandate_options'?: CheckoutAcssDebitMandateOptionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type CheckoutAffirmPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlipayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutAlmaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutAmazonPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutAuBecsDebitPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutBacsDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutBancontactPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutBilliePaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutBoletoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutCardInstallmentsOptionsModel = { + 'enabled'?: boolean | undefined; +}; + +export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = { + 'brands_blocked'?: Array<'american_express' | 'discover_global_network' | 'mastercard' | 'visa'> | undefined; +}; + +export type CheckoutCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'installments'?: CheckoutCardInstallmentsOptionsModel | undefined; + 'request_decremental_authorization'?: 'if_available' | 'never' | 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'; + 'restrictions'?: PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'statement_descriptor_suffix_kana'?: string | undefined; + 'statement_descriptor_suffix_kanji'?: string | undefined; +}; + +export type CheckoutCashappPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = { + 'eu_bank_transfer'?: PaymentMethodOptionsCustomerBalanceEuBankAccountModel | undefined; + 'requested_address_types'?: Array<'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'; +}; + +export type CheckoutCustomerBalancePaymentMethodOptionsModel = { + 'bank_transfer'?: CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel | undefined; + 'funding_type': 'bank_transfer'; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutEpsPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutFpxPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGiropayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutGrabPayPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutIdealPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKakaoPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutKlarnaPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type CheckoutKonbiniPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutKrCardPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutLinkPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutMobilepayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutMultibancoPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutNaverPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutOxxoPaymentMethodOptionsModel = { + 'expires_after_days': number; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutP24PaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaycoPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaynowPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutPaypalPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'preferred_locale': string; + 'reference': string; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; + 'subsellers'?: string[] | undefined; +}; + +export type MandateOptionsPaytoModel = { + 'amount': number; + 'amount_type': 'fixed' | 'maximum'; + 'end_date': string; + 'payment_schedule': 'adhoc' | 'annual' | 'daily' | 'fortnightly' | 'monthly' | 'quarterly' | 'semi_annual' | 'weekly'; + 'payments_per_period': number; + 'purpose': 'dependant_support' | 'government' | 'loan' | 'mortgage' | 'other' | 'pension' | 'personal' | 'retail' | 'salary' | 'tax' | 'utility'; + 'start_date': string; +}; + +export type CheckoutPaytoPaymentMethodOptionsModel = { + 'mandate_options'?: MandateOptionsPaytoModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutPixPaymentMethodOptionsModel = { + 'amount_includes_iof'?: 'always' | 'never' | undefined; + 'expires_after_seconds': number; + 'mandate_options'?: PaymentMethodOptionsMandateOptionsPixModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutRevolutPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | undefined; +}; + +export type CheckoutSamsungPayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutSatispayPaymentMethodOptionsModel = { + 'capture_method'?: 'manual' | undefined; +}; + +export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = { + 'reference_prefix'?: string | undefined; +}; + +export type CheckoutSepaDebitPaymentMethodOptionsModel = { + 'mandate_options'?: CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; +}; + +export type CheckoutSofortPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutSwishPaymentMethodOptionsModel = { + 'reference': string; +}; + +export type CheckoutTwintPaymentMethodOptionsModel = { + 'setup_future_usage'?: 'none' | undefined; +}; + +export type CheckoutUsBankAccountPaymentMethodOptionsModel = { + 'financial_connections'?: LinkedAccountOptionsCommonModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'target_date'?: string | undefined; + 'verification_method'?: 'automatic' | 'instant' | undefined; +}; + +export type CheckoutSessionPaymentMethodOptionsModel = { + 'acss_debit'?: CheckoutAcssDebitPaymentMethodOptionsModel | undefined; + 'affirm'?: CheckoutAffirmPaymentMethodOptionsModel | undefined; + 'afterpay_clearpay'?: CheckoutAfterpayClearpayPaymentMethodOptionsModel | undefined; + 'alipay'?: CheckoutAlipayPaymentMethodOptionsModel | undefined; + 'alma'?: CheckoutAlmaPaymentMethodOptionsModel | undefined; + 'amazon_pay'?: CheckoutAmazonPayPaymentMethodOptionsModel | undefined; + 'au_becs_debit'?: CheckoutAuBecsDebitPaymentMethodOptionsModel | undefined; + 'bacs_debit'?: CheckoutBacsDebitPaymentMethodOptionsModel | undefined; + 'bancontact'?: CheckoutBancontactPaymentMethodOptionsModel | undefined; + 'billie'?: CheckoutBilliePaymentMethodOptionsModel | undefined; + 'boleto'?: CheckoutBoletoPaymentMethodOptionsModel | undefined; + 'card'?: CheckoutCardPaymentMethodOptionsModel | undefined; + 'cashapp'?: CheckoutCashappPaymentMethodOptionsModel | undefined; + 'customer_balance'?: CheckoutCustomerBalancePaymentMethodOptionsModel | undefined; + 'eps'?: CheckoutEpsPaymentMethodOptionsModel | undefined; + 'fpx'?: CheckoutFpxPaymentMethodOptionsModel | undefined; + 'giropay'?: CheckoutGiropayPaymentMethodOptionsModel | undefined; + 'grabpay'?: CheckoutGrabPayPaymentMethodOptionsModel | undefined; + 'ideal'?: CheckoutIdealPaymentMethodOptionsModel | undefined; + 'kakao_pay'?: CheckoutKakaoPayPaymentMethodOptionsModel | undefined; + 'klarna'?: CheckoutKlarnaPaymentMethodOptionsModel | undefined; + 'konbini'?: CheckoutKonbiniPaymentMethodOptionsModel | undefined; + 'kr_card'?: CheckoutKrCardPaymentMethodOptionsModel | undefined; + 'link'?: CheckoutLinkPaymentMethodOptionsModel | undefined; + 'mobilepay'?: CheckoutMobilepayPaymentMethodOptionsModel | undefined; + 'multibanco'?: CheckoutMultibancoPaymentMethodOptionsModel | undefined; + 'naver_pay'?: CheckoutNaverPayPaymentMethodOptionsModel | undefined; + 'oxxo'?: CheckoutOxxoPaymentMethodOptionsModel | undefined; + 'p24'?: CheckoutP24PaymentMethodOptionsModel | undefined; + 'payco'?: CheckoutPaycoPaymentMethodOptionsModel | undefined; + 'paynow'?: CheckoutPaynowPaymentMethodOptionsModel | undefined; + 'paypal'?: CheckoutPaypalPaymentMethodOptionsModel | undefined; + 'payto'?: CheckoutPaytoPaymentMethodOptionsModel | undefined; + 'pix'?: CheckoutPixPaymentMethodOptionsModel | undefined; + 'revolut_pay'?: CheckoutRevolutPayPaymentMethodOptionsModel | undefined; + 'samsung_pay'?: CheckoutSamsungPayPaymentMethodOptionsModel | undefined; + 'satispay'?: CheckoutSatispayPaymentMethodOptionsModel | undefined; + 'sepa_debit'?: CheckoutSepaDebitPaymentMethodOptionsModel | undefined; + 'sofort'?: CheckoutSofortPaymentMethodOptionsModel | undefined; + 'swish'?: CheckoutSwishPaymentMethodOptionsModel | undefined; + 'twint'?: CheckoutTwintPaymentMethodOptionsModel | undefined; + 'us_bank_account'?: CheckoutUsBankAccountPaymentMethodOptionsModel | undefined; +}; + +export type PaymentPagesCheckoutSessionUpdatePermissionModel = { + 'line_items'?: 'client_only' | 'server_only' | undefined; + 'shipping_details': 'client_only' | 'server_only'; +}; + +export type PaymentPagesCheckoutSessionPermissionsModel = { + 'update'?: PaymentPagesCheckoutSessionUpdatePermissionModel | undefined; + 'update_line_items'?: 'client_only' | 'server_only' | undefined; + 'update_shipping_details': 'client_only' | 'server_only'; +}; + +export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = { + 'enabled': boolean; +}; + +export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = { + 'allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_remove': 'disabled' | 'enabled'; + 'payment_method_save': 'disabled' | 'enabled'; +}; + +export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = { + 'allowed_countries': Array<'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' | 'SD' | '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'>; +}; + +export type PaymentPagesCheckoutSessionShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate': string | ShippingRateModel; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type PaymentPagesCheckoutSessionShippingOptionModel = { + 'shipping_amount': number; + 'shipping_rate': string | ShippingRateModel; +}; + +export type PaymentPagesCheckoutSessionTaxIdCollectionModel = { + 'enabled': boolean; + 'required': 'if_supported' | 'never'; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type PaymentPagesCheckoutSessionTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping': number; + 'amount_tax': number; + 'breakdown'?: PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel | undefined; +}; + +export type CheckoutLinkWalletOptionsModel = { + 'display'?: 'auto' | 'never' | undefined; +}; + +export type CheckoutSessionWalletOptionsModel = { + 'link'?: CheckoutLinkWalletOptionsModel | undefined; +}; + +export type CheckoutSessionModel = { + 'adaptive_pricing': PaymentPagesCheckoutSessionAdaptivePricingModel; + 'after_expiration': PaymentPagesCheckoutSessionAfterExpirationModel; + 'allow_promotion_codes': boolean; + 'amount_subtotal': number; + 'amount_total': number; + 'automatic_tax': PaymentPagesCheckoutSessionAutomaticTaxModel; + 'billing_address_collection': 'auto' | 'required'; + 'branding_settings'?: PaymentPagesCheckoutSessionBrandingSettingsModel | undefined; + 'cancel_url': string; + 'client_reference_id': string; + 'client_secret': string; + 'collected_information': PaymentPagesCheckoutSessionCollectedInformationModel; + 'consent': PaymentPagesCheckoutSessionConsentModel; + 'consent_collection': PaymentPagesCheckoutSessionConsentCollectionModel; + 'created': number; + 'currency': string; + 'currency_conversion': PaymentPagesCheckoutSessionCurrencyConversionModel; + 'custom_fields': PaymentPagesCheckoutSessionCustomFieldsModel[]; + 'custom_text': PaymentPagesCheckoutSessionCustomTextModel; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'customer_creation': 'always' | 'if_required'; + 'customer_details': PaymentPagesCheckoutSessionCustomerDetailsModel; + 'customer_email': string; + 'discounts': PaymentPagesCheckoutSessionDiscountModel[]; + 'excluded_payment_method_types'?: string[] | undefined; + 'expires_at': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'invoice_creation': PaymentPagesCheckoutSessionInvoiceCreationModel; + 'line_items'?: { + 'data': ItemModel[]; + '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'; + 'metadata': { + [key: string]: string; +}; + 'mode': 'payment' | 'setup' | 'subscription'; + 'name_collection'?: PaymentPagesCheckoutSessionNameCollectionModel | undefined; + 'object': 'checkout.session'; + 'optional_items'?: PaymentPagesCheckoutSessionOptionalItemModel[] | undefined; + 'origin_context': 'mobile_app' | 'web'; + 'payment_intent': string | PaymentIntentModel; + 'payment_link': string | PaymentLinkModel; + 'payment_method_collection': 'always' | 'if_required'; + 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; + 'payment_method_options': CheckoutSessionPaymentMethodOptionsModel; + 'payment_method_types': string[]; + 'payment_status': 'no_payment_required' | 'paid' | 'unpaid'; + 'permissions': PaymentPagesCheckoutSessionPermissionsModel; + 'phone_number_collection'?: PaymentPagesCheckoutSessionPhoneNumberCollectionModel | undefined; + 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; + 'recovered_from': string; + 'redirect_on_completion'?: 'always' | 'if_required' | 'never' | undefined; + 'return_url'?: string | undefined; + 'saved_payment_method_options': PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel; + 'setup_intent': string | SetupIntentModel; + 'shipping_address_collection': PaymentPagesCheckoutSessionShippingAddressCollectionModel; + 'shipping_cost': PaymentPagesCheckoutSessionShippingCostModel; + 'shipping_options': PaymentPagesCheckoutSessionShippingOptionModel[]; + 'status': 'complete' | 'expired' | 'open'; + 'submit_type': 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + 'subscription': string | SubscriptionModel; + 'success_url': string; + 'tax_id_collection'?: PaymentPagesCheckoutSessionTaxIdCollectionModel | undefined; + 'total_details': PaymentPagesCheckoutSessionTotalDetailsModel; + 'ui_mode': 'custom' | 'embedded' | 'hosted'; + 'url': string; + 'wallet_options': CheckoutSessionWalletOptionsModel; +}; + +export type CheckoutSessionAsyncPaymentFailedModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionAsyncPaymentSucceededModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionCompletedModel = { + 'object': CheckoutSessionModel; +}; + +export type CheckoutSessionExpiredModel = { + 'object': CheckoutSessionModel; +}; + +export type ClimateRemovalsBeneficiaryModel = { + 'public_name': string; +}; + +export type ClimateRemovalsLocationModel = { + 'city': string; + 'country': string; + 'latitude': number; + 'longitude': number; + 'region': string; +}; + +export type ClimateSupplierModel = { + 'id': string; + 'info_url': string; + 'livemode': boolean; + 'locations': ClimateRemovalsLocationModel[]; + 'name': string; + 'object': 'climate.supplier'; + 'removal_pathway': 'biomass_carbon_removal_and_storage' | 'direct_air_capture' | 'enhanced_weathering'; +}; + +export type ClimateRemovalsOrderDeliveriesModel = { + 'delivered_at': number; + 'location': ClimateRemovalsLocationModel; + 'metric_tons': string; + 'registry_url': string; + 'supplier': ClimateSupplierModel; +}; + +export type ClimateRemovalsProductsPriceModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; +}; + +export type ClimateProductModel = { + 'created': number; + 'current_prices_per_metric_ton': { + [key: string]: ClimateRemovalsProductsPriceModel; +}; + 'delivery_year': number; + 'id': string; + 'livemode': boolean; + 'metric_tons_available': string; + 'name': string; + 'object': 'climate.product'; + 'suppliers': ClimateSupplierModel[]; +}; + +export type ClimateOrderModel = { + 'amount_fees': number; + 'amount_subtotal': number; + 'amount_total': number; + 'beneficiary'?: ClimateRemovalsBeneficiaryModel | undefined; + 'canceled_at': number; + 'cancellation_reason': 'expired' | 'product_unavailable' | 'requested'; + 'certificate': string; + 'confirmed_at': number; + 'created': number; + 'currency': string; + 'delayed_at': number; + 'delivered_at': number; + 'delivery_details': ClimateRemovalsOrderDeliveriesModel[]; + 'expected_delivery_year': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'metric_tons': string; + 'object': 'climate.order'; + 'product': string | ClimateProductModel; + 'product_substituted_at': number; + 'status': 'awaiting_funds' | 'canceled' | 'confirmed' | 'delivered' | 'open'; +}; + +export type ClimateOrderCanceledModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderCreatedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderDelayedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderDeliveredModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateOrderProductSubstitutedModel = { + 'object': ClimateOrderModel; +}; + +export type ClimateProductCreatedModel = { + 'object': ClimateProductModel; +}; + +export type ClimateProductPricingUpdatedModel = { + 'object': ClimateProductModel; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = { + 'ip_address': string; + 'user_agent': string; +}; + +export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = { + 'online': ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel; + 'type': string; +}; + +export type ConfirmationTokensResourceMandateDataModel = { + 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = { + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = { + 'cvc_token': string; + 'installments'?: ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel | undefined; +}; + +export type ConfirmationTokensResourcePaymentMethodOptionsModel = { + 'card': ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel; +}; + +export type ConfirmationTokensResourcePaymentMethodPreviewModel = { + 'acss_debit'?: PaymentMethodAcssDebitModel | undefined; + 'affirm'?: PaymentMethodAffirmModel | undefined; + 'afterpay_clearpay'?: PaymentMethodAfterpayClearpayModel | undefined; + 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayModel | undefined; + 'allow_redisplay'?: 'always' | 'limited' | 'unspecified' | undefined; + 'alma'?: PaymentMethodAlmaModel | undefined; + 'amazon_pay'?: PaymentMethodAmazonPayModel | undefined; + 'au_becs_debit'?: PaymentMethodAuBecsDebitModel | undefined; + 'bacs_debit'?: PaymentMethodBacsDebitModel | undefined; + 'bancontact'?: PaymentMethodBancontactModel | undefined; + 'billie'?: PaymentMethodBillieModel | undefined; + 'billing_details': BillingDetailsModel; + 'blik'?: PaymentMethodBlikModel | undefined; + 'boleto'?: PaymentMethodBoletoModel | undefined; + 'card'?: PaymentMethodCardModel | undefined; + 'card_present'?: PaymentMethodCardPresentModel | undefined; + 'cashapp'?: PaymentMethodCashappModel | undefined; + 'crypto'?: PaymentMethodCryptoModel | undefined; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'customer_balance'?: PaymentMethodCustomerBalanceModel | undefined; + 'eps'?: PaymentMethodEpsModel | undefined; + 'fpx'?: PaymentMethodFpxModel | undefined; + 'giropay'?: PaymentMethodGiropayModel | undefined; + 'gopay'?: PaymentMethodGopayModel | undefined; + 'grabpay'?: PaymentMethodGrabpayModel | undefined; + 'id_bank_transfer'?: PaymentMethodIdBankTransferModel | undefined; + 'ideal'?: PaymentMethodIdealModel | undefined; + 'interac_present'?: PaymentMethodInteracPresentModel | undefined; + 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; + 'klarna'?: PaymentMethodKlarnaModel | undefined; + 'konbini'?: PaymentMethodKonbiniModel | undefined; + 'kr_card'?: PaymentMethodKrCardModel | undefined; + 'link'?: PaymentMethodLinkModel | undefined; + 'mb_way'?: PaymentMethodMbWayModel | undefined; + 'mobilepay'?: PaymentMethodMobilepayModel | undefined; + 'multibanco'?: PaymentMethodMultibancoModel | undefined; + 'naver_pay'?: PaymentMethodNaverPayModel | undefined; + 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; + 'oxxo'?: PaymentMethodOxxoModel | undefined; + 'p24'?: PaymentMethodP24Model | undefined; + 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; + 'payco'?: PaymentMethodPaycoModel | undefined; + 'paynow'?: PaymentMethodPaynowModel | undefined; + 'paypal'?: PaymentMethodPaypalModel | undefined; + 'paypay'?: PaymentMethodPaypayModel | undefined; + 'payto'?: PaymentMethodPaytoModel | undefined; + 'pix'?: PaymentMethodPixModel | undefined; + 'promptpay'?: PaymentMethodPromptpayModel | undefined; + 'qris'?: PaymentMethodQrisModel | undefined; + 'rechnung'?: PaymentMethodRechnungModel | undefined; + 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; + 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; + 'satispay'?: PaymentMethodSatispayModel | undefined; + 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; + 'shopeepay'?: PaymentMethodShopeepayModel | undefined; + 'sofort'?: PaymentMethodSofortModel | undefined; + 'stripe_balance'?: PaymentMethodStripeBalanceModel | undefined; + 'swish'?: PaymentMethodSwishModel | undefined; + 'twint'?: PaymentMethodTwintModel | undefined; + 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; + 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; + 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; + 'zip'?: PaymentMethodZipModel | undefined; +}; + +export type ConfirmationTokensResourceShippingModel = { + 'address': AddressModel; + 'name': string; + 'phone': string; +}; + +export type ConfirmationTokenModel = { + 'created': number; + 'expires_at': number; + 'id': string; + 'livemode': boolean; + 'mandate_data'?: ConfirmationTokensResourceMandateDataModel | undefined; + 'object': 'confirmation_token'; + 'payment_intent': string; + 'payment_method_options': ConfirmationTokensResourcePaymentMethodOptionsModel; + 'payment_method_preview': ConfirmationTokensResourcePaymentMethodPreviewModel; + 'return_url': string; + 'setup_future_usage': 'off_session' | 'on_session'; + 'setup_intent': string; + 'shipping': ConfirmationTokensResourceShippingModel; + 'use_stripe_sdk': boolean; +}; + +export type CountrySpecVerificationFieldDetailsModel = { + 'additional': string[]; + 'minimum': string[]; +}; + +export type CountrySpecVerificationFieldsModel = { + 'company': CountrySpecVerificationFieldDetailsModel; + 'individual': CountrySpecVerificationFieldDetailsModel; +}; + +export type CountrySpecModel = { + 'default_currency': string; + 'id': string; + 'object': 'country_spec'; + 'supported_bank_account_currencies': { + [key: string]: string[]; +}; + 'supported_payment_currencies': string[]; + 'supported_payment_methods': string[]; + 'supported_transfer_countries': string[]; + 'verification_fields': CountrySpecVerificationFieldsModel; +}; + +export type CouponCreatedModel = { + 'object': CouponModel; +}; + +export type CouponDeletedModel = { + 'object': CouponModel; +}; + +export type CouponUpdatedModel = { + 'object': CouponModel; +}; + +export type CustomerBalanceTransactionModel = { + 'amount': number; + 'checkout_session': string | CheckoutSessionModel; + 'created': number; + 'credit_note': string | CreditNoteModel; + 'currency': string; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'description': string; + 'ending_balance': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'customer_balance_transaction'; + 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; +}; + +export type CreditNotesPretaxCreditAmountModel = { + 'amount': number; + 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; + 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; + 'type': 'credit_balance_transaction' | 'discount'; +}; + +export type CreditNoteLineItemModel = { + 'amount': number; + 'description': string; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'id': string; + 'invoice_line_item'?: string | undefined; + 'livemode': boolean; + 'object': 'credit_note_line_item'; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'quantity': number; + 'tax_calculation_reference'?: TaxProductIntegrationResourceTaxCalculationReferenceModel | undefined; + 'tax_rates': TaxRateModel[]; + 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'type': 'custom_line_item' | 'invoice_line_item'; + 'unit_amount': number; + 'unit_amount_decimal': string; +}; + +export type CreditNotesPaymentRecordRefundModel = { + 'payment_record': string; + 'refund_group': string; +}; + +export type CreditNoteRefundModel = { + 'amount_refunded': number; + 'payment_record_refund': CreditNotesPaymentRecordRefundModel; + 'refund': string | RefundModel; + 'type': 'payment_record_refund' | 'refund'; +}; + +export type CreditNoteModel = { + 'amount': number; + 'amount_shipping': number; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'customer_balance_transaction': string | CustomerBalanceTransactionModel; + 'discount_amount': number; + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'effective_at': number; + 'id': string; + 'invoice': string | InvoiceModel; + 'lines': { + 'data': CreditNoteLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'memo': string; + 'metadata': { + [key: string]: string; +}; + 'number': string; + 'object': 'credit_note'; + 'out_of_band_amount': number; + 'pdf': string; + 'post_payment_amount': number; + 'pre_payment_amount': number; + 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; + 'reason': 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory'; + 'refunds': CreditNoteRefundModel[]; + 'shipping_cost': InvoicesResourceShippingCostModel; + 'status': 'issued' | 'void'; + 'subtotal': number; + 'subtotal_excluding_tax': number; + 'total': number; + 'total_excluding_tax': number; + 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'type': 'mixed' | 'post_payment' | 'pre_payment'; + 'voided_at': number; +}; + +export type CreditNoteCreatedModel = { + 'object': CreditNoteModel; +}; + +export type CreditNoteUpdatedModel = { + 'object': CreditNoteModel; +}; + +export type CreditNoteVoidedModel = { + 'object': CreditNoteModel; +}; + +export type CustomerCreatedModel = { + 'object': CustomerModel; +}; + +export type CustomerDeletedModel = { + 'object': CustomerModel; +}; + +export type CustomerDiscountCreatedModel = { + 'object': DiscountModel; +}; + +export type CustomerDiscountDeletedModel = { + 'object': DiscountModel; +}; + +export type CustomerDiscountUpdatedModel = { + 'object': DiscountModel; +}; + +export type CustomerSourceCreatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSourceDeletedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSourceExpiringModel = { + 'object': CardModel | SourceModel; +}; + +export type CustomerSourceUpdatedModel = { + 'object': BankAccountModel | CardModel | SourceModel; +}; + +export type CustomerSubscriptionCollectionPausedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionCollectionResumedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionCreatedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionCustomEventModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionDeletedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPausedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPendingUpdateAppliedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPendingUpdateExpiredModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionPriceMigrationFailedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionResumedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionTrialWillEndModel = { + 'object': SubscriptionModel; +}; + +export type CustomerSubscriptionUpdatedModel = { + 'object': SubscriptionModel; +}; + +export type CustomerTaxIdCreatedModel = { + 'object': TaxIdModel; +}; + +export type CustomerTaxIdDeletedModel = { + 'object': TaxIdModel; +}; + +export type CustomerTaxIdUpdatedModel = { + 'object': TaxIdModel; +}; + +export type CustomerUpdatedModel = { + 'object': CustomerModel; +}; + +export type CustomerCashBalanceTransactionCreatedModel = { + 'object': CustomerCashBalanceTransactionModel; +}; + +export type CustomerSessionResourceComponentsResourceBuyButtonModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_remove': 'disabled' | 'enabled'; +}; + +export type CustomerSessionResourceComponentsResourceCustomerSheetModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'always' | 'limited' | 'unspecified'>; + 'payment_method_redisplay': 'disabled' | 'enabled'; + 'payment_method_remove': 'disabled' | 'enabled'; + 'payment_method_save': 'disabled' | 'enabled'; + 'payment_method_save_allow_redisplay_override': 'always' | 'limited' | 'unspecified'; +}; + +export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = { + 'payment_method_allow_redisplay_filters': Array<'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'; +}; + +export type CustomerSessionResourceComponentsResourcePaymentElementModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsResourcePricingTableModel = { + 'enabled': boolean; +}; + +export type CustomerSessionResourceTaxIdElementResourceFeaturesModel = { + 'tax_id_redisplay': 'disabled' | 'enabled'; + 'tax_id_save': 'disabled' | 'enabled'; +}; + +export type CustomerSessionResourceTaxIdElementModel = { + 'enabled': boolean; + 'features': CustomerSessionResourceTaxIdElementResourceFeaturesModel; +}; + +export type CustomerSessionResourceComponentsModel = { + 'buy_button': CustomerSessionResourceComponentsResourceBuyButtonModel; + 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheetModel; + 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElementModel; + 'payment_element': CustomerSessionResourceComponentsResourcePaymentElementModel; + 'pricing_table': CustomerSessionResourceComponentsResourcePricingTableModel; + 'tax_id_element'?: CustomerSessionResourceTaxIdElementModel | undefined; +}; + +export type CustomerSessionModel = { + 'client_secret': string; + 'components'?: CustomerSessionResourceComponentsModel | undefined; + 'created': number; + 'customer': string | CustomerModel; + 'customer_account'?: string | undefined; + 'expires_at': number; + 'livemode': boolean; + 'object': 'customer_session'; +}; + +export type DeletedAccountModel = { + 'deleted': boolean; + 'id': string; + 'object': 'account'; +}; + +export type DeletedApplePayDomainModel = { + 'deleted': boolean; + 'id': string; + 'object': 'apple_pay_domain'; +}; + +export type DeletedCouponModel = { + 'deleted': boolean; + 'id': string; + 'object': 'coupon'; +}; + +export type DeletedInvoiceitemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'invoiceitem'; +}; + +export type DeletedPersonModel = { + 'deleted': boolean; + 'id': string; + 'object': 'person'; +}; + +export type DeletedProductFeatureModel = { + 'deleted': boolean; + 'id': string; + 'object': 'product_feature'; +}; + +export type DeletedRadarValueListModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list'; +}; + +export type DeletedRadarValueListItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'radar.value_list_item'; +}; + +export type DeletedSubscriptionItemModel = { + 'deleted': boolean; + 'id': string; + 'object': 'subscription_item'; +}; + +export type DeletedTerminalConfigurationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.configuration'; +}; + +export type DeletedTerminalLocationModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.location'; +}; + +export type DeletedTerminalReaderModel = { + 'deleted': boolean; + 'id': string; + 'object': 'terminal.reader'; +}; + +export type DeletedTestHelpersTestClockModel = { + 'deleted': boolean; + 'id': string; + 'object': 'test_helpers.test_clock'; +}; + +export type DeletedWebhookEndpointModel = { + 'deleted': boolean; + 'id': string; + 'object': 'webhook_endpoint'; +}; + +export type EntitlementsFeatureModel = { + 'active': boolean; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'metadata': { + [key: string]: string; +}; + 'name': string; + 'object': 'entitlements.feature'; +}; + +export type EntitlementsActiveEntitlementModel = { + 'feature': string | EntitlementsFeatureModel; + 'id': string; + 'livemode': boolean; + 'lookup_key': string; + 'object': 'entitlements.active_entitlement'; +}; + +export type EntitlementsActiveEntitlementSummaryModel = { + 'customer': string; + 'entitlements': { + 'data': EntitlementsActiveEntitlementModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; + 'object': 'entitlements.active_entitlement_summary'; +}; + +export type EntitlementsActiveEntitlementSummaryUpdatedModel = { + 'object': EntitlementsActiveEntitlementSummaryModel; +}; + +export type EphemeralKeyModel = { + 'created': number; + 'expires': number; + 'id': string; + 'livemode': boolean; + 'object': 'ephemeral_key'; + 'secret'?: string | undefined; +}; + +export type ErrorModel = { + 'error': ApiErrorsModel; +}; + +export type NotificationEventDataModel = { + 'object': {}; + 'previous_attributes'?: {} | undefined; +}; + +export type NotificationEventAutomationActionResourceSendWebhookCustomEventModel = { + 'custom_data': { + [key: string]: string; +}; +}; + +export type NotificationEventAutomationActionModel = { + 'stripe_send_webhook_custom_event'?: NotificationEventAutomationActionResourceSendWebhookCustomEventModel | undefined; + 'trigger': string; + 'type': 'stripe_send_webhook_custom_event'; +}; + +export type NotificationEventRequestModel = { + 'id': string; + 'idempotency_key': string; +}; + +export type NotificationEventReasonModel = { + 'automation_action'?: NotificationEventAutomationActionModel | undefined; + 'request'?: NotificationEventRequestModel | undefined; + 'type': 'automation_action' | 'request'; +}; + +export type EventModel = { + 'account'?: string | undefined; + 'api_version': string; + 'context'?: string | undefined; + 'created': number; + 'data': NotificationEventDataModel; + 'id': string; + 'livemode': boolean; + 'object': 'event'; + 'pending_webhooks': number; + 'reason'?: NotificationEventReasonModel | undefined; + 'request': NotificationEventRequestModel; + 'type': 'account.application.authorized' | 'account.application.deauthorized' | 'account.external_account.created' | 'account.external_account.deleted' | 'account.external_account.updated' | 'account.updated' | 'account_notice.created' | 'account_notice.updated' | 'application_fee.created' | 'application_fee.refund.updated' | 'application_fee.refunded' | 'balance.available' | 'balance_settings.updated' | 'billing.alert.triggered' | 'billing_portal.configuration.created' | 'billing_portal.configuration.updated' | 'billing_portal.session.created' | 'capability.updated' | 'capital.financing_offer.accepted' | 'capital.financing_offer.accepted_other_offer' | 'capital.financing_offer.canceled' | 'capital.financing_offer.created' | 'capital.financing_offer.expired' | 'capital.financing_offer.fully_repaid' | 'capital.financing_offer.paid_out' | 'capital.financing_offer.rejected' | 'capital.financing_offer.replacement_created' | 'capital.financing_transaction.created' | '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.collection_paused' | 'customer.subscription.collection_resumed' | 'customer.subscription.created' | 'customer.subscription.custom_event' | 'customer.subscription.deleted' | 'customer.subscription.paused' | 'customer.subscription.pending_update_applied' | 'customer.subscription.pending_update_expired' | 'customer.subscription.price_migration_failed' | '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.account_numbers_updated' | '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_inferred_balances' | 'financial_connections.account.refreshed_ownership' | 'financial_connections.account.refreshed_transactions' | 'financial_connections.account.upcoming_account_number_expiry' | 'financial_connections.session.updated' | 'fx_quote.expired' | '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.overpaid' | 'invoice.paid' | 'invoice.payment.overpaid' | 'invoice.payment_action_required' | 'invoice.payment_attempt_required' | 'invoice.payment_failed' | 'invoice.payment_succeeded' | 'invoice.sent' | 'invoice.upcoming' | 'invoice.updated' | 'invoice.voided' | 'invoice.will_be_due' | 'invoice_payment.paid' | '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_dispute_settlement_detail.created' | 'issuing_dispute_settlement_detail.updated' | 'issuing_fraud_liability_debit.created' | 'issuing_personalization_design.activated' | 'issuing_personalization_design.deactivated' | 'issuing_personalization_design.rejected' | 'issuing_personalization_design.updated' | 'issuing_settlement.created' | 'issuing_settlement.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' | 'privacy.redaction_job.canceled' | 'privacy.redaction_job.created' | 'privacy.redaction_job.ready' | 'privacy.redaction_job.succeeded' | 'privacy.redaction_job.validation_error' | 'product.created' | 'product.deleted' | 'product.updated' | 'promotion_code.created' | 'promotion_code.updated' | 'quote.accept_failed' | 'quote.accepted' | 'quote.accepting' | 'quote.canceled' | 'quote.created' | 'quote.draft' | 'quote.finalized' | 'quote.reestimate_failed' | 'quote.reestimated' | 'quote.stale' | '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.price_migration_failed' | 'subscription_schedule.released' | 'subscription_schedule.updated' | 'tax.form.updated' | 'tax.settings.updated' | 'tax_rate.created' | 'tax_rate.updated' | 'terminal.reader.action_failed' | 'terminal.reader.action_succeeded' | 'terminal.reader.action_updated' | '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'; +}; + +export type ExchangeRateModel = { + 'id': string; + 'object': 'exchange_rate'; + 'rates': { + [key: string]: number; +}; +}; + +export type FileCreatedModel = { + 'object': FileModel; +}; + +export type FinancialConnectionsInstitutionModel = { + 'countries': string[]; + 'features': BankConnectionsResourceInstitutionFeatureSupportModel; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'financial_connections.institution'; + 'routing_numbers': string[]; + 'status': 'active' | 'degraded' | 'inactive'; + 'url': string; +}; + +export type FinancialConnectionsAccountOwnerModel = { + 'email': string; + 'id': string; + 'name': string; + 'object': 'financial_connections.account_owner'; + 'ownership': string; + 'phone': string; + 'raw_address': string; + 'refreshed_at': number; +}; + +export type FinancialConnectionsAccountOwnershipModel = { + 'created': number; + 'id': string; + 'object': 'financial_connections.account_ownership'; + 'owners': { + 'data': FinancialConnectionsAccountOwnerModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; +}; + +export type FinancialConnectionsAccountModel = { + 'account_holder': BankConnectionsResourceAccountholderModel; + 'account_numbers': BankConnectionsResourceAccountNumberDetailsModel[]; + 'balance': BankConnectionsResourceBalanceModel; + 'balance_refresh': BankConnectionsResourceBalanceRefreshModel; + 'category': 'cash' | 'credit' | 'investment' | 'other'; + 'created': number; + 'display_name': string; + 'id': string; + 'inferred_balances_refresh'?: BankConnectionsResourceInferredBalancesRefreshModel | undefined; + 'institution'?: string | FinancialConnectionsInstitutionModel | undefined; + 'institution_name': string; + 'last4': string; + 'livemode': boolean; + 'object': 'financial_connections.account'; + 'ownership': string | FinancialConnectionsAccountOwnershipModel; + 'ownership_refresh': BankConnectionsResourceOwnershipRefreshModel; + 'permissions': Array<'balances' | 'ownership' | 'payment_method' | 'transactions'>; + 'status': 'active' | 'disconnected' | 'inactive'; + 'subcategory': 'checking' | 'credit_card' | 'line_of_credit' | 'mortgage' | 'other' | 'savings'; + 'subscriptions': Array<'balance' | 'inferred_balances' | 'transactions'>; + 'supported_payment_method_types': Array<'link' | 'us_bank_account'>; + 'transaction_refresh': BankConnectionsResourceTransactionRefreshModel; +}; + +export type FinancialConnectionsAccountAccountNumbersUpdatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountCreatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountDeactivatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountDisconnectedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountReactivatedModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedBalanceModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedInferredBalancesModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedOwnershipModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountRefreshedTransactionsModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountUpcomingAccountNumberExpiryModel = { + 'object': FinancialConnectionsAccountModel; +}; + +export type FinancialConnectionsAccountInferredBalanceModel = { + 'as_of': number; + 'current': { + [key: string]: number; +}; + 'id': string; + 'object': 'financial_connections.account_inferred_balance'; +}; + +export type FinancialConnectionsSessionModel = { + 'account_holder': BankConnectionsResourceAccountholderModel; + 'accounts': { + 'data': FinancialConnectionsAccountModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'client_secret': string; + 'filters'?: BankConnectionsResourceLinkAccountSessionFiltersModel | undefined; + 'id': string; + 'limits'?: BankConnectionsResourceLinkAccountSessionLimitsModel | undefined; + 'livemode': boolean; + 'manual_entry'?: BankConnectionsResourceLinkAccountSessionManualEntryModel | undefined; + 'object': 'financial_connections.session'; + 'permissions': Array<'balances' | 'ownership' | 'payment_method' | 'transactions'>; + 'prefetch': Array<'balances' | 'inferred_balances' | 'ownership' | 'transactions'>; + 'return_url'?: string | undefined; + 'status'?: 'cancelled' | 'failed' | 'pending' | 'succeeded' | undefined; + 'status_details'?: BankConnectionsResourceLinkAccountSessionStatusDetailsModel | undefined; +}; + +export type FinancialConnectionsSessionUpdatedModel = { + 'object': FinancialConnectionsSessionModel; +}; + +export type FinancialConnectionsTransactionModel = { + 'account': string; + 'amount': number; + 'currency': string; + 'description': string; + 'id': string; + 'livemode': boolean; + 'object': 'financial_connections.transaction'; + 'status': 'pending' | 'posted' | 'void'; + 'status_transitions': BankConnectionsResourceTransactionResourceStatusTransitionsModel; + 'transacted_at': number; + 'transaction_refresh': string; + 'updated': number; +}; + +export type FinancialReportingFinanceReportRunRunParametersModel = { + '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 ForwardedRequestContextModel = { + 'destination_duration': number; + 'destination_ip_address': string; +}; + +export type ForwardedRequestHeaderModel = { + 'name': string; + 'value': string; +}; + +export type ForwardedRequestDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'http_method': 'POST'; +}; + +export type ForwardedResponseDetailsModel = { + 'body': string; + 'headers': ForwardedRequestHeaderModel[]; + 'status': number; +}; + +export type ForwardingRequestModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata'?: { + [key: string]: string; +} | undefined; + 'object': 'forwarding.request'; + 'payment_method': string; + 'replacements': Array<'card_cvc' | 'card_expiry' | 'card_number' | 'cardholder_name' | 'request_signature'>; + 'request_context': ForwardedRequestContextModel; + 'request_details': ForwardedRequestDetailsModel; + 'response_details': ForwardedResponseDetailsModel; + 'url': string; +}; + +export type FundingInstructionsBankTransferModel = { + 'country': string; + 'financial_addresses': FundingInstructionsBankTransferFinancialAddressModel[]; + 'type': 'eu_bank_transfer' | 'jp_bank_transfer'; +}; + +export type FundingInstructionsModel = { + 'bank_transfer': FundingInstructionsBankTransferModel; + 'currency': string; + 'funding_type': 'bank_transfer'; + 'livemode': boolean; + 'object': 'funding_instructions'; +}; + +export type FxQuoteRateDetailsModel = { + 'base_rate': number; + 'duration_premium': number; + 'fx_fee_rate': number; + 'reference_rate': number; + 'reference_rate_provider': 'ecb'; +}; + +export type FxQuoteRateModel = { + 'exchange_rate': number; + 'rate_details': FxQuoteRateDetailsModel; +}; + +export type FxQuoteUsagePaymentModel = { + 'destination': string; + 'on_behalf_of': string; +}; + +export type FxQuoteUsageTransferModel = { + 'destination': string; +}; + +export type FxQuoteUsageModel = { + 'payment': FxQuoteUsagePaymentModel; + 'transfer': FxQuoteUsageTransferModel; + 'type': 'payment' | 'transfer'; +}; + +export type FxQuoteModel = { + 'created': number; + 'id': string; + 'lock_duration': 'day' | 'five_minutes' | 'hour' | 'none'; + 'lock_expires_at': number; + 'lock_status': 'active' | 'expired' | 'none'; + 'object': 'fx_quote'; + 'rates': { + [key: string]: FxQuoteRateModel; +}; + 'to_currency': string; + 'usage': FxQuoteUsageModel; +}; + +export type FxQuoteExpiredModel = { + 'object': FxQuoteModel; +}; + +export type GelatoDataDocumentReportDateOfBirthModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataDocumentReportExpirationDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataDocumentReportIssuedDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataIdNumberReportDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDataVerifiedOutputsDateModel = { + 'day': number; + 'month': number; + 'year': number; +}; + +export type GelatoDocumentReportErrorModel = { + 'code': 'document_expired' | 'document_type_not_supported' | 'document_unverified_other'; + 'reason': string; +}; + +export type GelatoDocumentReportModel = { + 'address': AddressModel; + 'dob'?: GelatoDataDocumentReportDateOfBirthModel | undefined; + 'error': GelatoDocumentReportErrorModel; + 'expiration_date'?: GelatoDataDocumentReportExpirationDateModel | undefined; + 'files': string[]; + 'first_name': string; + 'issued_date': GelatoDataDocumentReportIssuedDateModel; + 'issuing_country': string; + 'last_name': string; + 'number'?: string | undefined; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'status': 'unverified' | 'verified'; + 'type': 'driving_license' | 'id_card' | 'passport'; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type GelatoEmailReportErrorModel = { + 'code': 'email_unverified_other' | 'email_verification_declined'; + 'reason': string; +}; + +export type GelatoEmailReportModel = { + 'email': string; + 'error': GelatoEmailReportErrorModel; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoIdNumberReportErrorModel = { + 'code': 'id_number_insufficient_document_data' | 'id_number_mismatch' | 'id_number_unverified_other'; + 'reason': string; +}; + +export type GelatoIdNumberReportModel = { + 'dob'?: GelatoDataIdNumberReportDateModel | undefined; + 'error': GelatoIdNumberReportErrorModel; + 'first_name': string; + 'id_number'?: string | undefined; + 'id_number_type': 'br_cpf' | 'sg_nric' | 'us_ssn'; + 'last_name': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoPhoneReportErrorModel = { + 'code': 'phone_unverified_other' | 'phone_verification_declined'; + 'reason': string; +}; + +export type GelatoPhoneReportModel = { + 'error': GelatoPhoneReportErrorModel; + 'phone': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoProvidedDetailsModel = { + 'email'?: string | undefined; + 'phone'?: string | undefined; +}; + +export type GelatoRelatedPersonModel = { + 'account': string; + 'person': string; +}; + +export type GelatoReportDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoReportIdNumberOptionsModel = { + +}; + +export type GelatoSelfieReportErrorModel = { + 'code': 'selfie_document_missing_photo' | 'selfie_face_mismatch' | 'selfie_manipulated' | 'selfie_unverified_other'; + 'reason': string; +}; + +export type GelatoSelfieReportModel = { + 'document': string; + 'error': GelatoSelfieReportErrorModel; + 'selfie': string; + 'status': 'unverified' | 'verified'; +}; + +export type GelatoSessionDocumentOptionsModel = { + 'allowed_types'?: Array<'driving_license' | 'id_card' | 'passport'> | undefined; + 'require_id_number'?: boolean | undefined; + 'require_live_capture'?: boolean | undefined; + 'require_matching_selfie'?: boolean | undefined; +}; + +export type GelatoSessionEmailOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoSessionIdNumberOptionsModel = { + +}; + +export type GelatoSessionLastErrorModel = { + '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'; + 'reason': string; +}; + +export type GelatoSessionMatchingOptionsModel = { + 'dob'?: 'none' | 'similar' | undefined; + 'name'?: 'none' | 'similar' | undefined; +}; + +export type GelatoSessionPhoneOptionsModel = { + 'require_verification'?: boolean | undefined; +}; + +export type GelatoVerificationReportOptionsModel = { + 'document'?: GelatoReportDocumentOptionsModel | undefined; + 'id_number'?: GelatoReportIdNumberOptionsModel | undefined; +}; + +export type GelatoVerificationSessionOptionsModel = { + 'document'?: GelatoSessionDocumentOptionsModel | undefined; + 'email'?: GelatoSessionEmailOptionsModel | undefined; + 'id_number'?: GelatoSessionIdNumberOptionsModel | undefined; + 'matching'?: GelatoSessionMatchingOptionsModel | undefined; + 'phone'?: GelatoSessionPhoneOptionsModel | undefined; +}; + +export type GelatoVerifiedOutputsModel = { + 'address': AddressModel; + 'dob'?: GelatoDataVerifiedOutputsDateModel | undefined; + 'email': string; + 'first_name': string; + 'id_number'?: string | undefined; + 'id_number_type': 'br_cpf' | 'sg_nric' | 'us_ssn'; + 'last_name': string; + 'phone': string; + 'sex'?: '[redacted]' | 'female' | 'male' | 'unknown' | undefined; + 'unparsed_place_of_birth'?: string | undefined; + 'unparsed_sex'?: string | undefined; +}; + +export type IdentityVerificationReportModel = { + 'client_reference_id': string; + 'created': number; + 'document'?: GelatoDocumentReportModel | undefined; + 'email'?: GelatoEmailReportModel | undefined; + 'id': string; + 'id_number'?: GelatoIdNumberReportModel | undefined; + 'livemode': boolean; + 'object': 'identity.verification_report'; + 'options'?: GelatoVerificationReportOptionsModel | undefined; + 'phone'?: GelatoPhoneReportModel | undefined; + 'selfie'?: GelatoSelfieReportModel | undefined; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'verification_flow'?: string | undefined; + 'verification_session': string; +}; + +export type VerificationSessionRedactionModel = { + 'status': 'processing' | 'redacted'; +}; + +export type IdentityVerificationSessionModel = { + 'client_reference_id': string; + 'client_secret': string; + 'created': number; + 'id': string; + 'last_error': GelatoSessionLastErrorModel; + 'last_verification_report': string | IdentityVerificationReportModel; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'identity.verification_session'; + 'options': GelatoVerificationSessionOptionsModel; + 'provided_details'?: GelatoProvidedDetailsModel | undefined; + 'redaction': VerificationSessionRedactionModel; + 'related_customer': string; + 'related_customer_account'?: string | undefined; + 'related_person'?: GelatoRelatedPersonModel | undefined; + 'status': 'canceled' | 'processing' | 'requires_input' | 'verified'; + 'type': 'document' | 'id_number' | 'verification_flow'; + 'url': string; + 'verification_flow'?: string | undefined; + 'verified_outputs'?: GelatoVerifiedOutputsModel | undefined; +}; + +export type IdentityVerificationSessionCanceledModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionCreatedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionProcessingModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionRedactedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionRequiresInputModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type IdentityVerificationSessionVerifiedModel = { + 'object': IdentityVerificationSessionModel; +}; + +export type TreasurySharedResourceBillingDetailsModel = { + 'address': AddressModel; + 'email': string; + 'name': string; +}; + +export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach'; + 'routing_number': string; +}; + +export type InboundTransfersModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'type': 'us_bank_account'; + 'us_bank_account'?: InboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type InvoiceCreatedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceDeletedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceFinalizationFailedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceFinalizedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceMarkedUncollectibleModel = { + 'object': InvoiceModel; +}; + +export type InvoiceOverdueModel = { + 'object': InvoiceModel; +}; + +export type InvoiceOverpaidModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaidModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentOverpaidModel = { + 'object': InvoicePaymentModel; +}; + +export type InvoicePaymentActionRequiredModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentAttemptRequiredModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentFailedModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentSucceededModel = { + 'object': InvoiceModel; +}; + +export type InvoiceSentModel = { + 'object': InvoiceModel; +}; + +export type InvoiceUpcomingModel = { + 'object': InvoiceModel; +}; + +export type InvoiceUpdatedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceVoidedModel = { + 'object': InvoiceModel; +}; + +export type InvoiceWillBeDueModel = { + 'object': InvoiceModel; +}; + +export type InvoicePaymentPaidModel = { + 'object': InvoicePaymentModel; +}; + +export type InvoiceRenderingTemplateModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'nickname': string; + 'object': 'invoice_rendering_template'; + 'status': 'active' | 'archived'; + 'version': number; +}; + +export type InvoiceSettingQuoteSettingModel = { + 'days_until_due': number; + 'issuer': ConnectAccountReferenceModel; +}; + +export type ProrationDetailsModel = { + 'discount_amounts': DiscountsResourceDiscountAmountModel[]; +}; + +export type InvoiceitemModel = { + 'amount': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'date': number; + 'description': string; + 'discountable': boolean; + 'discounts': Array; + 'id': string; + 'invoice': string | InvoiceModel; + 'livemode': boolean; + 'margins'?: Array | undefined; + 'metadata': { + [key: string]: string; +}; + 'net_amount'?: number | undefined; + 'object': 'invoiceitem'; + 'parent': BillingBillResourceInvoiceItemParentsInvoiceItemParentModel; + 'period': InvoiceLineItemPeriodModel; + 'pricing': BillingBillResourceInvoicingPricingPricingModel; + 'proration': boolean; + 'proration_details'?: ProrationDetailsModel | undefined; + 'quantity': number; + 'tax_rates': TaxRateModel[]; + 'test_clock': string | TestHelpersTestClockModel; +}; + +export type InvoiceitemCreatedModel = { + 'object': InvoiceitemModel; +}; + +export type InvoiceitemDeletedModel = { + 'object': InvoiceitemModel; +}; + +export type IssuingComplianceCreditUnderwritingRecordApplicationModel = { + 'application_method': 'in_person' | 'mail' | 'online' | 'phone'; + 'purpose': 'credit_limit_increase' | 'credit_line_opening'; + 'submitted_at': number; +}; + +export type IssuingComplianceCreditUnderwritingRecordCreditUserModel = { + 'email': string; + 'name': string; +}; + +export type IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejectedModel = { + 'reason_other_explanation': string; + 'reasons': Array<'applicant_is_not_beneficial_owner' | 'applicant_too_young' | 'application_is_not_beneficial_owner' | 'bankruptcy' | 'business_size_too_small' | 'current_account_tier_ineligible' | 'customer_already_exists' | 'customer_requested_account_closure' | 'debt_to_cash_balance_ratio_too_high' | 'debt_to_equity_ratio_too_high' | 'delinquent_credit_obligations' | 'dispute_rate_too_high' | 'duration_of_residence' | 'excessive_income_or_revenue_obligations' | 'expenses_to_cash_balance_ratio_too_high' | 'foreclosure_or_repossession' | 'frozen_file_at_credit_bureau' | 'garnishment_or_attachment' | 'government_loan_program_criteria' | 'high_concentration_of_clients' | 'high_risk_industry' | 'incomplete_application' | 'inconsistent_monthly_revenues' | 'insufficient_account_history_with_platform' | 'insufficient_bank_account_history' | 'insufficient_cash_balance' | 'insufficient_cash_flow' | 'insufficient_collateral' | 'insufficient_credit_experience' | 'insufficient_deposits' | 'insufficient_income' | 'insufficient_margin_ratio' | 'insufficient_operating_profit' | 'insufficient_period_in_operation' | 'insufficient_reserves' | 'insufficient_revenue' | 'insufficient_social_media_performance' | 'insufficient_time_in_network' | 'insufficient_trade_credit_insurance' | 'invalid_business_license' | 'lacking_cash_account' | 'late_payment_history_reported_to_bureau' | 'lien_collection_action_or_judgement' | 'negative_public_information' | 'no_credit_file' | 'other' | 'outside_supported_country' | 'outside_supported_state' | 'poor_payment_history_with_platform' | 'prior_or_current_legal_action' | 'prohibited_industry' | 'rate_of_cash_balance_fluctuation_too_high' | 'recent_inquiries_on_business_credit_report' | 'removal_of_bank_account_connection' | 'revenue_discrepancy' | 'runway_too_short' | 'suspected_fraud' | 'too_many_non_sufficient_funds_or_overdrafts' | 'unable_to_verify_address' | 'unable_to_verify_identity' | 'unable_to_verify_income_or_revenue' | 'unprofitable' | 'unsupportable_business_type'>; +}; + +export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApprovedModel = { + 'amount': number; + 'currency': string; +}; + +export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreasedModel = { + 'amount': number; + 'currency': string; + 'reason_other_explanation': string; + 'reasons': Array<'applicant_is_not_beneficial_owner' | 'applicant_too_young' | 'application_is_not_beneficial_owner' | 'bankruptcy' | 'business_size_too_small' | 'change_in_financial_state' | 'change_in_utilization_of_credit_line' | 'current_account_tier_ineligible' | 'customer_already_exists' | 'customer_requested_account_closure' | 'debt_to_cash_balance_ratio_too_high' | 'debt_to_equity_ratio_too_high' | 'decrease_in_income_to_expense_ratio' | 'decrease_in_social_media_performance' | 'delinquent_credit_obligations' | 'dispute_rate_too_high' | 'duration_of_residence' | 'exceeds_acceptable_platform_exposure' | 'excessive_income_or_revenue_obligations' | 'expenses_to_cash_balance_ratio_too_high' | 'foreclosure_or_repossession' | 'frozen_file_at_credit_bureau' | 'garnishment_or_attachment' | 'government_loan_program_criteria' | 'has_recent_credit_limit_increase' | 'high_concentration_of_clients' | 'high_risk_industry' | 'incomplete_application' | 'inconsistent_monthly_revenues' | 'insufficient_account_history_with_platform' | 'insufficient_bank_account_history' | 'insufficient_cash_balance' | 'insufficient_cash_flow' | 'insufficient_collateral' | 'insufficient_credit_experience' | 'insufficient_credit_utilization' | 'insufficient_deposits' | 'insufficient_income' | 'insufficient_margin_ratio' | 'insufficient_operating_profit' | 'insufficient_period_in_operation' | 'insufficient_reserves' | 'insufficient_revenue' | 'insufficient_social_media_performance' | 'insufficient_time_in_network' | 'insufficient_trade_credit_insurance' | 'insufficient_usage_as_qualified_expenses' | 'invalid_business_license' | 'lacking_cash_account' | 'late_payment_history_reported_to_bureau' | 'lien_collection_action_or_judgement' | 'negative_public_information' | 'no_credit_file' | 'other' | 'outside_supported_country' | 'outside_supported_state' | 'poor_payment_history_with_platform' | 'prior_or_current_legal_action' | 'prohibited_industry' | 'rate_of_cash_balance_fluctuation_too_high' | 'recent_inquiries_on_business_credit_report' | 'removal_of_bank_account_connection' | 'revenue_discrepancy' | 'runway_too_short' | 'suspected_fraud' | 'too_many_non_sufficient_funds_or_overdrafts' | 'unable_to_verify_address' | 'unable_to_verify_identity' | 'unable_to_verify_income_or_revenue' | 'unprofitable' | 'unsupportable_business_type'>; +}; + +export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLineClosedModel = { + 'reason_other_explanation': string; + 'reasons': Array<'applicant_is_not_beneficial_owner' | 'applicant_too_young' | 'application_is_not_beneficial_owner' | 'bankruptcy' | 'business_size_too_small' | 'change_in_financial_state' | 'change_in_utilization_of_credit_line' | 'current_account_tier_ineligible' | 'customer_already_exists' | 'customer_requested_account_closure' | 'debt_to_cash_balance_ratio_too_high' | 'debt_to_equity_ratio_too_high' | 'decrease_in_income_to_expense_ratio' | 'decrease_in_social_media_performance' | 'delinquent_credit_obligations' | 'dispute_rate_too_high' | 'duration_of_residence' | 'exceeds_acceptable_platform_exposure' | 'excessive_income_or_revenue_obligations' | 'expenses_to_cash_balance_ratio_too_high' | 'foreclosure_or_repossession' | 'frozen_file_at_credit_bureau' | 'garnishment_or_attachment' | 'government_loan_program_criteria' | 'has_recent_credit_limit_increase' | 'high_concentration_of_clients' | 'high_risk_industry' | 'incomplete_application' | 'inconsistent_monthly_revenues' | 'insufficient_account_history_with_platform' | 'insufficient_bank_account_history' | 'insufficient_cash_balance' | 'insufficient_cash_flow' | 'insufficient_collateral' | 'insufficient_credit_experience' | 'insufficient_credit_utilization' | 'insufficient_deposits' | 'insufficient_income' | 'insufficient_margin_ratio' | 'insufficient_operating_profit' | 'insufficient_period_in_operation' | 'insufficient_reserves' | 'insufficient_revenue' | 'insufficient_social_media_performance' | 'insufficient_time_in_network' | 'insufficient_trade_credit_insurance' | 'insufficient_usage_as_qualified_expenses' | 'invalid_business_license' | 'lacking_cash_account' | 'late_payment_history_reported_to_bureau' | 'lien_collection_action_or_judgement' | 'negative_public_information' | 'no_credit_file' | 'other' | 'outside_supported_country' | 'outside_supported_state' | 'poor_payment_history_with_platform' | 'prior_or_current_legal_action' | 'prohibited_industry' | 'rate_of_cash_balance_fluctuation_too_high' | 'recent_inquiries_on_business_credit_report' | 'removal_of_bank_account_connection' | 'revenue_discrepancy' | 'runway_too_short' | 'suspected_fraud' | 'too_many_non_sufficient_funds_or_overdrafts' | 'unable_to_verify_address' | 'unable_to_verify_identity' | 'unable_to_verify_income_or_revenue' | 'unprofitable' | 'unsupportable_business_type'>; +}; + +export type IssuingComplianceCreditUnderwritingRecordDecisionModel = { + 'application_rejected': IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejectedModel; + 'credit_limit_approved': IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApprovedModel; + 'credit_limit_decreased': IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreasedModel; + 'credit_line_closed': IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLineClosedModel; + 'type': 'additional_information_requested' | 'application_rejected' | 'credit_limit_approved' | 'credit_limit_decreased' | 'credit_line_closed' | 'no_changes' | 'withdrawn_by_applicant'; +}; + +export type IssuingComplianceCreditUnderwritingRecordUnderwritingExceptionModel = { + 'explanation': string; + 'original_decision_type': 'additional_information_requested' | 'application_rejected' | 'credit_limit_approved' | 'credit_limit_decreased' | 'credit_line_closed' | 'no_changes' | 'withdrawn_by_applicant'; +}; + +export type IssuingCreditUnderwritingRecordModel = { + 'application': IssuingComplianceCreditUnderwritingRecordApplicationModel; + 'created': number; + 'created_from': 'application' | 'proactive_review'; + 'credit_user': IssuingComplianceCreditUnderwritingRecordCreditUserModel; + 'decided_at': number; + 'decision': IssuingComplianceCreditUnderwritingRecordDecisionModel; + 'decision_deadline': number; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'issuing.credit_underwriting_record'; + 'regulatory_reporting_file': string; + 'underwriting_exception': IssuingComplianceCreditUnderwritingRecordUnderwritingExceptionModel; +}; + +export type IssuingDisputeSettlementDetailNetworkDataModel = { + 'processing_date': string; +}; + +export type IssuingDisputeSettlementDetailModel = { + 'amount': number; + 'card': string; + 'created': number; + 'currency': string; + 'dispute': string; + 'event_type': 'filing' | 'loss' | 'representment' | 'win'; + 'id': string; + 'livemode': boolean; + 'network': 'maestro' | 'mastercard' | 'visa'; + 'network_data': IssuingDisputeSettlementDetailNetworkDataModel; + 'object': 'issuing.dispute_settlement_detail'; + 'settlement': string; +}; + +export type IssuingFraudLiabilityDebitModel = { + 'amount': number; + 'balance_transaction': string | BalanceTransactionModel; + 'created': number; + 'currency': string; + 'dispute': string; + 'id': string; + 'livemode': boolean; + 'object': 'issuing.fraud_liability_debit'; +}; + +export type IssuingAuthorizationCreatedModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingAuthorizationRequestModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingAuthorizationUpdatedModel = { + 'object': IssuingAuthorizationModel; +}; + +export type IssuingCardCreatedModel = { + 'object': IssuingCardModel; +}; + +export type IssuingCardUpdatedModel = { + 'object': IssuingCardModel; +}; + +export type IssuingCardholderCreatedModel = { + 'object': IssuingCardholderModel; +}; + +export type IssuingCardholderUpdatedModel = { + 'object': IssuingCardholderModel; +}; + +export type IssuingDisputeClosedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeCreatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeFundsReinstatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeFundsRescindedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeSubmittedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeUpdatedModel = { + 'object': IssuingDisputeModel; +}; + +export type IssuingDisputeSettlementDetailCreatedModel = { + 'object': IssuingDisputeSettlementDetailModel; +}; + +export type IssuingDisputeSettlementDetailUpdatedModel = { + 'object': IssuingDisputeSettlementDetailModel; +}; + +export type IssuingFraudLiabilityDebitCreatedModel = { + 'object': IssuingFraudLiabilityDebitModel; +}; + +export type IssuingPersonalizationDesignActivatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignDeactivatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignRejectedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingPersonalizationDesignUpdatedModel = { + 'object': IssuingPersonalizationDesignModel; +}; + +export type IssuingSettlementCreatedModel = { + 'object': IssuingSettlementModel; +}; + +export type IssuingSettlementUpdatedModel = { + 'object': IssuingSettlementModel; +}; + +export type IssuingTokenCreatedModel = { + 'object': IssuingTokenModel; +}; + +export type IssuingTokenUpdatedModel = { + 'object': IssuingTokenModel; +}; + +export type IssuingTransactionCreatedModel = { + 'object': IssuingTransactionModel; +}; + +export type IssuingTransactionPurchaseDetailsReceiptUpdatedModel = { + 'object': IssuingTransactionModel; +}; + +export type IssuingTransactionUpdatedModel = { + 'object': IssuingTransactionModel; +}; + +export type LoginLinkModel = { + 'created': number; + 'object': 'login_link'; + 'url': string; +}; + +export type MandateUpdatedModel = { + 'object': MandateModel; +}; + +export type OrdersV2ResourceAutomaticTaxModel = { + 'enabled': boolean; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type OrdersV2ResourceBillingDetailsModel = { + 'address': AddressModel; + 'email': string; + 'name': string; + 'phone': string; +}; + +export type OrdersV2ResourceAutomaticPaymentMethodsModel = { + 'enabled': boolean; +}; + +export type OrdersPaymentMethodOptionsAfterpayClearpayModel = { + 'capture_method'?: 'automatic' | 'automatic_async' | 'manual' | undefined; + 'reference': string; + 'setup_future_usage'?: 'none' | undefined; +}; + +export type OrdersV2ResourceCardPaymentMethodOptionsModel = { + 'capture_method': 'automatic' | 'automatic_async' | 'manual'; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; +}; + +export type OrdersV2ResourcePaymentMethodOptionsModel = { + 'acss_debit'?: PaymentIntentPaymentMethodOptionsAcssDebitModel | undefined; + 'afterpay_clearpay'?: OrdersPaymentMethodOptionsAfterpayClearpayModel | undefined; + 'alipay'?: PaymentMethodOptionsAlipayModel | undefined; + 'bancontact'?: PaymentMethodOptionsBancontactModel | undefined; + 'card'?: OrdersV2ResourceCardPaymentMethodOptionsModel | undefined; + 'customer_balance'?: PaymentMethodOptionsCustomerBalanceModel | undefined; + 'ideal'?: PaymentMethodOptionsIdealModel | undefined; + 'klarna'?: PaymentMethodOptionsKlarnaModel | undefined; + 'link'?: PaymentIntentPaymentMethodOptionsLinkModel | undefined; + 'oxxo'?: PaymentMethodOptionsOxxoModel | undefined; + 'p24'?: PaymentMethodOptionsP24Model | undefined; + 'paypal'?: PaymentMethodOptionsPaypalModel | undefined; + 'sepa_debit'?: PaymentIntentPaymentMethodOptionsSepaDebitModel | undefined; + 'sofort'?: PaymentMethodOptionsSofortModel | undefined; + 'wechat_pay'?: PaymentMethodOptionsWechatPayModel | undefined; +}; + +export type OrdersV2ResourceTransferDataModel = { + 'amount': number; + 'destination': string | AccountModel; +}; + +export type OrdersV2ResourcePaymentSettingsModel = { + 'application_fee_amount': number; + 'automatic_payment_methods': OrdersV2ResourceAutomaticPaymentMethodsModel; + 'payment_method_options': OrdersV2ResourcePaymentMethodOptionsModel; + 'payment_method_types': Array<'acss_debit' | 'afterpay_clearpay' | 'alipay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'card' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'klarna' | 'link' | 'oxxo' | 'p24' | 'paypal' | 'sepa_debit' | 'sofort' | 'wechat_pay'>; + 'return_url': string; + 'statement_descriptor': string; + 'statement_descriptor_suffix': string; + 'transfer_data': OrdersV2ResourceTransferDataModel; +}; + +export type OrdersV2ResourcePaymentModel = { + 'payment_intent': string | PaymentIntentModel; + 'settings': OrdersV2ResourcePaymentSettingsModel; + 'status': 'canceled' | 'complete' | 'not_required' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method'; +}; + +export type OrdersV2ResourceShippingCostModel = { + 'amount_subtotal': number; + 'amount_tax': number; + 'amount_total': number; + 'shipping_rate': string | ShippingRateModel; + 'taxes'?: LineItemsTaxAmountModel[] | undefined; +}; + +export type OrdersV2ResourceShippingDetailsModel = { + 'address': AddressModel; + 'name': string; + 'phone': string; +}; + +export type OrdersV2ResourceTaxDetailsResourceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type OrdersV2ResourceTaxDetailsModel = { + 'tax_exempt': 'exempt' | 'none' | 'reverse'; + 'tax_ids': OrdersV2ResourceTaxDetailsResourceTaxIdModel[]; +}; + +export type OrdersV2ResourceTotalDetailsApiResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type OrdersV2ResourceTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping': number; + 'amount_tax': number; + 'breakdown'?: OrdersV2ResourceTotalDetailsApiResourceBreakdownModel | undefined; +}; + +export type OrderModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'application': string | ApplicationModel; + 'automatic_tax'?: OrdersV2ResourceAutomaticTaxModel | undefined; + 'billing_details': OrdersV2ResourceBillingDetailsModel; + 'client_secret': string; + 'created': number; + 'currency': string; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'description': string; + 'discounts': Array; + 'id': string; + 'ip_address': string; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'order'; + 'payment': OrdersV2ResourcePaymentModel; + 'shipping_cost': OrdersV2ResourceShippingCostModel; + 'shipping_details': OrdersV2ResourceShippingDetailsModel; + 'status': 'canceled' | 'complete' | 'open' | 'processing' | 'submitted'; + 'tax_details'?: OrdersV2ResourceTaxDetailsModel | undefined; + 'total_details': OrdersV2ResourceTotalDetailsModel; +}; + +export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number': string; +}; + +export type OutboundPaymentsPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundPaymentsPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundPaymentsPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = { + 'id': string; + 'network': 'stripe'; +}; + +export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = { + 'account_holder_type': 'company' | 'individual'; + 'account_type': 'checking' | 'savings'; + 'bank_name': string; + 'fingerprint': string; + 'last4': string; + 'mandate'?: string | MandateModel | undefined; + 'network': 'ach' | 'us_domestic_wire'; + 'routing_number': string; +}; + +export type OutboundTransfersPaymentMethodDetailsModel = { + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: OutboundTransfersPaymentMethodDetailsFinancialAccountModel | undefined; + 'type': 'financial_account' | 'us_bank_account'; + 'us_bank_account'?: OutboundTransfersPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type PaymentAttemptRecordModel = { + 'amount': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_failed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_guaranteed': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_refunded': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'amount_requested': PaymentsPrimitivesPaymentRecordsResourceAmountModel; + 'application': string; + 'created': number; + 'customer_details': PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel; + 'customer_presence': 'off_session' | 'on_session'; + 'description': string; + 'id': string; + 'livemode': boolean; + 'metadata': { + [key: string]: string; +}; + 'object': 'payment_attempt_record'; + 'payment_method_details': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel; + 'payment_record': string; + 'processor_details': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel; + 'reported_by': 'self' | 'stripe'; + 'shipping_details': PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel; +}; + +export type PaymentFlowsAmountDetailsClientModel = { + 'tip'?: PaymentFlowsAmountDetailsClientResourceTipModel | undefined; +}; + +export type PaymentFlowsInstallmentOptionsModel = { + 'enabled': boolean; + 'plan'?: PaymentMethodDetailsCardInstallmentsPlanModel | undefined; +}; + +export type PaymentIntentAmountCapturableUpdatedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentCanceledModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentCreatedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentPartiallyFundedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentPaymentFailedModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentProcessingModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentRequiresActionModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentSucceededModel = { + 'object': PaymentIntentModel; +}; + +export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'capture_method'?: 'manual' | 'manual_preferred' | undefined; + 'installments'?: PaymentFlowsInstallmentOptionsModel | undefined; + 'request_incremental_authorization_support'?: boolean | undefined; + 'require_cvc_recollection'?: boolean | undefined; + 'routing'?: PaymentMethodOptionsCardPresentRoutingModel | undefined; + 'setup_future_usage'?: 'none' | 'off_session' | 'on_session' | undefined; + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type PaymentLinkCreatedModel = { + 'object': PaymentLinkModel; +}; + +export type PaymentLinkUpdatedModel = { + 'object': PaymentLinkModel; +}; + +export type PaymentMethodAttachedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodAutomaticallyUpdatedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodDetachedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodUpdatedModel = { + 'object': PaymentMethodModel; +}; + +export type PaymentMethodConfigResourceDisplayPreferenceModel = { + 'overridable': boolean; + 'preference': 'none' | 'off' | 'on'; + 'value': 'off' | 'on'; +}; + +export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = { + 'available': boolean; + 'display_preference': PaymentMethodConfigResourceDisplayPreferenceModel; +}; + +export type PaymentMethodConfigurationModel = { + 'acss_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'active': boolean; + 'affirm'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'afterpay_clearpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alipay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'alma'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'amazon_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'apple_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'application': string; + 'au_becs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bacs_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'bancontact'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'billie'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'blik'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'boleto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cartes_bancaires'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'cashapp'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'crypto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'customer_balance'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'eps'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'fpx'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'giropay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'google_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'gopay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'grabpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'id': string; + 'id_bank_transfer'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'ideal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'is_default': boolean; + 'jcb'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kakao_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'klarna'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'konbini'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'kr_card'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'link'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'livemode': boolean; + 'mb_way'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'mobilepay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'multibanco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'name': string; + 'naver_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'nz_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'object': 'payment_method_configuration'; + 'oxxo'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'p24'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'parent': string; + 'pay_by_bank'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'payco'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paynow'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paypal'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'paypay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'payto'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'pix'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'promptpay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'qris'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'revolut_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'samsung_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'satispay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sepa_debit'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'shopeepay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'sofort'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'swish'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'twint'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'us_bank_account'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'wechat_pay'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; + 'zip'?: PaymentMethodConfigResourcePaymentMethodPropertiesModel | undefined; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = { + 'error_message': string; +}; + +export type PaymentMethodDomainResourcePaymentMethodStatusModel = { + 'status': 'active' | 'inactive'; + 'status_details'?: PaymentMethodDomainResourcePaymentMethodStatusDetailsModel | undefined; +}; + +export type PaymentMethodDomainModel = { + 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'created': number; + 'domain_name': string; + 'enabled': boolean; + 'google_pay': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'id': string; + 'klarna': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'link': PaymentMethodDomainResourcePaymentMethodStatusModel; + 'livemode': boolean; + 'object': 'payment_method_domain'; + 'paypal': PaymentMethodDomainResourcePaymentMethodStatusModel; +}; + +export type PayoutCanceledModel = { + 'object': PayoutModel; +}; + +export type PayoutCreatedModel = { + 'object': PayoutModel; +}; + +export type PayoutFailedModel = { + 'object': PayoutModel; +}; + +export type PayoutPaidModel = { + 'object': PayoutModel; +}; + +export type PayoutReconciliationCompletedModel = { + 'object': PayoutModel; +}; + +export type PayoutUpdatedModel = { + 'object': PayoutModel; +}; + +export type PersonCreatedModel = { + 'object': PersonModel; +}; + +export type PersonDeletedModel = { + 'object': PersonModel; +}; + +export type PersonUpdatedModel = { + 'object': PersonModel; +}; + +export type PlanCreatedModel = { + 'object': PlanModel; +}; + +export type PlanDeletedModel = { + 'object': PlanModel; +}; + +export type PlanUpdatedModel = { + 'object': PlanModel; +}; + +export type PriceCreatedModel = { + 'object': PriceModel; +}; + +export type PriceDeletedModel = { + 'object': PriceModel; +}; + +export type PriceUpdatedModel = { + 'object': PriceModel; +}; + +export type RedactionResourceRootObjectsModel = { + 'charges': string[]; + 'checkout_sessions': string[]; + 'customers': string[]; + 'identity_verification_sessions': string[]; + 'invoices': string[]; + 'issuing_cardholders': string[]; + 'payment_intents': string[]; + 'radar_value_list_items': string[]; + 'setup_intents': string[]; +}; + +export type PrivacyRedactionJobModel = { + 'created': number; + 'id': string; + 'livemode': boolean; + 'object': 'privacy.redaction_job'; + 'objects'?: RedactionResourceRootObjectsModel | undefined; + 'status': 'canceled' | 'canceling' | 'created' | 'failed' | 'ready' | 'redacting' | 'succeeded' | 'validating'; + 'validation_behavior': 'error' | 'fix'; +}; + +export type PrivacyRedactionJobCanceledModel = { + 'object': PrivacyRedactionJobModel; +}; + +export type PrivacyRedactionJobCreatedModel = { + 'object': PrivacyRedactionJobModel; +}; + +export type PrivacyRedactionJobReadyModel = { + 'object': PrivacyRedactionJobModel; +}; + +export type PrivacyRedactionJobSucceededModel = { + 'object': PrivacyRedactionJobModel; +}; + +export type PrivacyRedactionJobValidationErrorModel = { + 'object': PrivacyRedactionJobModel; +}; + +export type RedactionResourceErroringObjectModel = { + 'id': string; + 'object_type': string; +}; + +export type PrivacyRedactionJobValidationError_1Model = { + 'code': 'invalid_cascading_source' | 'invalid_file_purpose' | 'invalid_state' | 'locked_by_other_job' | 'too_many_objects'; + 'erroring_object': RedactionResourceErroringObjectModel; + 'id': string; + 'message': string; + 'object': 'privacy.redaction_job_validation_error'; +}; + +export type ProductCreatedModel = { + 'object': ProductModel; +}; + +export type ProductDeletedModel = { + 'object': ProductModel; +}; + +export type ProductUpdatedModel = { + 'object': ProductModel; +}; + +export type ProductFeatureModel = { + 'entitlement_feature': EntitlementsFeatureModel; 'id': string; - 'id_bank_transfer'?: PaymentMethodIdBankTransferModel | undefined; - 'ideal'?: PaymentMethodIdealModel | undefined; - 'interac_present'?: PaymentMethodInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodKakaoPayModel | undefined; - 'klarna'?: PaymentMethodKlarnaModel | undefined; - 'konbini'?: PaymentMethodKonbiniModel | undefined; - 'kr_card'?: PaymentMethodKrCardModel | undefined; - 'latest_active_mandate'?: MandateModel | undefined; - 'link'?: PaymentMethodLinkModel | undefined; 'livemode': boolean; - 'mb_way'?: PaymentMethodMbWayModel | undefined; - 'metadata': { - [key: string]: string; + 'object': 'product_feature'; }; - 'mobilepay'?: PaymentMethodMobilepayModel | undefined; - 'multibanco'?: PaymentMethodMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodNzBankAccountModel | undefined; - 'object': 'payment_method'; - 'oxxo'?: PaymentMethodOxxoModel | undefined; - 'p24'?: PaymentMethodP24Model | undefined; - 'pay_by_bank'?: PaymentMethodPayByBankModel | undefined; - 'payco'?: PaymentMethodPaycoModel | undefined; - 'paynow'?: PaymentMethodPaynowModel | undefined; - 'paypal'?: PaymentMethodPaypalModel | undefined; - 'paypay'?: PaymentMethodPaypayModel | undefined; - 'payto'?: PaymentMethodPaytoModel | undefined; - 'pix'?: PaymentMethodPixModel | undefined; - 'promptpay'?: PaymentMethodPromptpayModel | undefined; - 'qris'?: PaymentMethodQrisModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'rechnung'?: PaymentMethodRechnungModel | undefined; - 'revolut_pay'?: PaymentMethodRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodSamsungPayModel | undefined; - 'satispay'?: PaymentMethodSatispayModel | undefined; - 'sepa_debit'?: PaymentMethodSepaDebitModel | undefined; - 'shopeepay'?: PaymentMethodShopeepayModel | undefined; - 'sofort'?: PaymentMethodSofortModel | undefined; - 'stripe_balance'?: PaymentMethodStripeBalanceModel | undefined; - 'swish'?: PaymentMethodSwishModel | undefined; - 'twint'?: PaymentMethodTwintModel | undefined; - 'type': 'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'card_present' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'interac_present' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'; - 'us_bank_account'?: PaymentMethodUsBankAccountModel | undefined; - 'wechat_pay'?: PaymentMethodWechatPayModel | undefined; - 'zip'?: PaymentMethodZipModel | undefined; + +export type PromotionCodeCreatedModel = { + 'object': PromotionCodeModel; }; -export type SetupAttemptPaymentMethodDetailsBancontactModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; - 'verified_name': string; +export type PromotionCodeUpdatedModel = { + 'object': PromotionCodeModel; }; -export type MandateModel = { - 'customer_acceptance': CustomerAcceptanceModel; +export type QuotesResourceAutomaticTaxModel = { + 'enabled': boolean; + 'liability': ConnectAccountReferenceModel; + 'provider': string; + 'status': 'complete' | 'failed' | 'requires_location_inputs'; +}; + +export type QuotesCoreApiResourceReestimateFailureModel = { + 'failure_code': string; + 'message': string; + 'reason': 'automation_failure' | 'internal_error'; +}; + +export type QuotesCoreApiResourceLastReestimateDetailsModel = { + 'failed': QuotesCoreApiResourceReestimateFailureModel; + 'status': 'failed' | 'in_progress' | 'succeeded'; +}; + +export type QuotesResourceTotalDetailsResourceBreakdownModel = { + 'discounts': LineItemsDiscountAmountModel[]; + 'taxes': LineItemsTaxAmountModel[]; +}; + +export type QuotesResourceTotalDetailsModel = { + 'amount_discount': number; + 'amount_shipping': number; + 'amount_tax': number; + 'breakdown'?: QuotesResourceTotalDetailsResourceBreakdownModel | undefined; +}; + +export type QuotesResourceRecurringModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceUpfrontModel = { + 'amount_subtotal': number; + 'amount_total': number; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'total_details': QuotesResourceTotalDetailsModel; +}; + +export type QuotesResourceComputedModel = { + 'last_reestimation_details'?: QuotesCoreApiResourceLastReestimateDetailsModel | undefined; + 'recurring': QuotesResourceRecurringModel; + 'updated_at'?: number | undefined; + 'upfront': QuotesResourceUpfrontModel; +}; + +export type QuotesResourceFromQuoteModel = { + 'is_revision': boolean; + 'quote': string | QuoteModel; +}; + +export type QuotesResourceStatusDetailsCanceledStatusDetailsModel = { + 'reason': 'canceled' | 'quote_accepted' | 'quote_expired' | 'quote_superseded' | 'subscription_canceled'; + 'transitioned_at': number; +}; + +export type QuotesResourceStatusDetailsLinesInvalidModel = { + 'invalid_at': number; + 'lines': string[]; +}; + +export type QuotesResourceStatusDetailsSubscriptionChangedModel = { + 'previous_subscription': SubscriptionModel; +}; + +export type QuotesResourceStatusDetailsSubscriptionScheduleChangedModel = { + 'previous_subscription_schedule': SubscriptionScheduleModel; +}; + +export type QuotesResourceStatusDetailsStaleReasonModel = { + 'line_invalid'?: string | undefined; + 'lines_invalid'?: QuotesResourceStatusDetailsLinesInvalidModel[] | undefined; + 'marked_stale'?: string | undefined; + 'subscription_canceled'?: string | undefined; + 'subscription_changed'?: QuotesResourceStatusDetailsSubscriptionChangedModel | undefined; + 'subscription_expired'?: string | undefined; + 'subscription_schedule_canceled'?: string | undefined; + 'subscription_schedule_changed'?: QuotesResourceStatusDetailsSubscriptionScheduleChangedModel | undefined; + 'subscription_schedule_released'?: string | undefined; + 'type': 'accept_failed_validations' | 'bill_on_acceptance_invalid' | 'line_invalid' | 'lines_invalid' | 'marked_stale' | 'subscription_canceled' | 'subscription_changed' | 'subscription_expired' | 'subscription_schedule_canceled' | 'subscription_schedule_changed' | 'subscription_schedule_released'; +}; + +export type QuotesResourceStatusDetailsStaleStatusDetailsModel = { + 'expires_at': number; + 'last_reason': QuotesResourceStatusDetailsStaleReasonModel; + 'last_updated_at': number; + 'transitioned_at': number; +}; + +export type QuotesResourceStatusDetailsStatusDetailsModel = { + 'canceled'?: QuotesResourceStatusDetailsCanceledStatusDetailsModel | undefined; + 'stale'?: QuotesResourceStatusDetailsStaleStatusDetailsModel | undefined; +}; + +export type QuotesResourceStatusTransitionsModel = { + 'accepted_at': number; + 'canceled_at': number; + 'finalized_at': number; +}; + +export type QuotesResourceQuoteLinesTimestampHelpersLineIdModel = { 'id': string; - 'livemode': boolean; - 'multi_use'?: MandateMultiUseModel | undefined; - 'object': 'mandate'; - 'on_behalf_of'?: string | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_details': MandatePaymentMethodDetailsModel; - 'single_use'?: MandateSingleUseModel | undefined; - 'status': 'active' | 'inactive' | 'pending'; - 'type': 'multi_use' | 'single_use'; }; -export type SetupAttemptPaymentMethodDetailsModel = { - 'acss_debit'?: SetupAttemptPaymentMethodDetailsAcssDebitModel | undefined; - 'amazon_pay'?: SetupAttemptPaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: SetupAttemptPaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: SetupAttemptPaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: SetupAttemptPaymentMethodDetailsBancontactModel | undefined; - 'boleto'?: SetupAttemptPaymentMethodDetailsBoletoModel | undefined; - 'card'?: SetupAttemptPaymentMethodDetailsCardModel | undefined; - 'card_present'?: SetupAttemptPaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: SetupAttemptPaymentMethodDetailsCashappModel | undefined; - 'id_bank_transfer'?: SetupAttemptPaymentMethodDetailsIdBankTransferModel | undefined; - 'ideal'?: SetupAttemptPaymentMethodDetailsIdealModel | undefined; - 'kakao_pay'?: SetupAttemptPaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: SetupAttemptPaymentMethodDetailsKlarnaModel | undefined; - 'kr_card'?: SetupAttemptPaymentMethodDetailsKrCardModel | undefined; - 'link'?: SetupAttemptPaymentMethodDetailsLinkModel | undefined; - 'naver_pay'?: SetupAttemptPaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: SetupAttemptPaymentMethodDetailsNzBankAccountModel | undefined; - 'paypal'?: SetupAttemptPaymentMethodDetailsPaypalModel | undefined; - 'payto'?: SetupAttemptPaymentMethodDetailsPaytoModel | undefined; - 'pix'?: SetupAttemptPaymentMethodDetailsPixModel | undefined; - 'revolut_pay'?: SetupAttemptPaymentMethodDetailsRevolutPayModel | undefined; - 'sepa_debit'?: SetupAttemptPaymentMethodDetailsSepaDebitModel | undefined; - 'sofort'?: SetupAttemptPaymentMethodDetailsSofortModel | undefined; - 'stripe_balance'?: SetupAttemptPaymentMethodDetailsStripeBalanceModel | undefined; - 'type': string; - 'us_bank_account'?: SetupAttemptPaymentMethodDetailsUsBankAccountModel | undefined; +export type QuotesResourceSubscriptionDataBillFromModel = { + 'computed': number; + 'line_starts_at': QuotesResourceQuoteLinesTimestampHelpersLineIdModel; + 'timestamp': number; + 'type': 'line_starts_at' | 'now' | 'pause_collection_start' | 'quote_acceptance_date' | 'timestamp'; }; -export type SetupAttemptPaymentMethodDetailsCardPresentModel = { - 'generated_card': string | PaymentMethodModel; - 'offline': PaymentMethodDetailsCardPresentOfflineModel; +export type QuotesResourceQuoteLinesTimestampHelpersDurationModel = { + 'interval': 'day' | 'month' | 'week' | 'year'; + 'interval_count': number; }; -export type SetupAttemptPaymentMethodDetailsIdealModel = { - 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; - 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'verified_name': string; +export type QuotesResourceSubscriptionDataBillUntilModel = { + 'computed': number; + 'duration': QuotesResourceQuoteLinesTimestampHelpersDurationModel; + 'line_ends_at': QuotesResourceQuoteLinesTimestampHelpersLineIdModel; + 'timestamp': number; + 'type': 'duration' | 'line_ends_at' | 'schedule_end' | 'timestamp' | 'upcoming_invoice'; }; -export type SetupAttemptPaymentMethodDetailsSofortModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; - 'verified_name': string; +export type QuotesResourceSubscriptionDataBillOnAcceptanceModel = { + 'bill_from': QuotesResourceSubscriptionDataBillFromModel; + 'bill_until': QuotesResourceSubscriptionDataBillUntilModel; }; -export type PaymentIntentModel = { +export type QuotesResourceSubscriptionDataBillingModeModel = { + 'flexible'?: SubscriptionsResourceBillingModeFlexibleModel | undefined; + 'type': 'classic' | 'flexible'; +}; + +export type QuotesResourcePrebillingModel = { + 'iterations': number; +}; + +export type QuotesResourceSubscriptionDataSubscriptionDataModel = { + 'bill_on_acceptance'?: QuotesResourceSubscriptionDataBillOnAcceptanceModel | undefined; + 'billing_behavior'?: 'prorate_on_next_phase' | 'prorate_up_front' | undefined; + 'billing_cycle_anchor'?: 'reset' | undefined; + 'billing_mode': QuotesResourceSubscriptionDataBillingModeModel; + 'description': string; + 'effective_date': number; + 'end_behavior'?: 'cancel' | 'release' | undefined; + 'from_subscription'?: string | SubscriptionModel | undefined; + 'metadata': { + [key: string]: string; +}; + 'prebilling'?: QuotesResourcePrebillingModel | undefined; + 'proration_behavior'?: 'always_invoice' | 'create_prorations' | 'none' | undefined; + 'trial_period_days': number; +}; + +export type QuotesResourceQuoteLinesAppliesToModel = { + 'new_reference': string; + 'subscription_schedule': string; + 'type': 'new_reference' | 'subscription_schedule'; +}; + +export type QuotesResourceSubscriptionDataSubscriptionDataOverridesModel = { + 'applies_to': QuotesResourceQuoteLinesAppliesToModel; + 'bill_on_acceptance'?: QuotesResourceSubscriptionDataBillOnAcceptanceModel | undefined; + 'billing_behavior'?: 'prorate_on_next_phase' | 'prorate_up_front' | undefined; + 'customer': string; + 'description': string; + 'end_behavior'?: 'cancel' | 'release' | undefined; + 'proration_behavior'?: 'always_invoice' | 'create_prorations' | 'none' | undefined; +}; + +export type QuotesResourceSubscriptionScheduleWithAppliesToModel = { + 'applies_to': QuotesResourceQuoteLinesAppliesToModel; + 'subscription_schedule': string; +}; + +export type QuotesResourceTransferDataModel = { 'amount': number; - 'amount_capturable': number; - 'amount_details'?: PaymentFlowsAmountDetailsModel | undefined; - 'amount_received': number; - 'application': string | ApplicationModel; + 'amount_percent': number; + 'destination': string | AccountModel; +}; + +export type QuoteModel = { + 'allow_backdated_lines'?: boolean | undefined; + 'amount_subtotal': number; + 'amount_total': number; + 'application': string | ApplicationModel | DeletedApplicationModel; 'application_fee_amount': number; - 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel; - 'canceled_at': number; - 'cancellation_reason': 'abandoned' | 'automatic' | 'duplicate' | 'expired' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice'; - 'capture_method': 'automatic' | 'automatic_async' | 'manual'; - 'client_secret': string; - 'confirmation_method': 'automatic' | 'manual'; + 'application_fee_percent': number; + 'automatic_tax': QuotesResourceAutomaticTaxModel; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'computed': QuotesResourceComputedModel; 'created': number; 'currency': string; 'customer': string | CustomerModel | DeletedCustomerModel; 'customer_account'?: string | undefined; + 'default_tax_rates'?: Array | undefined; 'description': string; - 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; - 'fx_quote'?: string | undefined; - 'hooks'?: PaymentFlowsPaymentIntentAsyncWorkflowsModel | undefined; + 'discounts': Array; + 'expires_at': number; + 'footer': string; + 'from_quote': QuotesResourceFromQuoteModel; + 'header': string; 'id': string; - 'last_payment_error': ApiErrorsModel; - 'latest_charge': string | ChargeModel; + 'invoice': string | InvoiceModel | DeletedInvoiceModel; + 'invoice_settings': InvoiceSettingQuoteSettingModel; + 'line_items'?: { + 'data': ItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; + 'lines'?: string[] | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'next_action': PaymentIntentNextActionModel; - 'object': 'payment_intent'; - 'on_behalf_of': string | AccountModel; - 'payment_details'?: PaymentFlowsPaymentDetailsModel | undefined; - 'payment_method': string | PaymentMethodModel; - 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; - 'payment_method_options': PaymentIntentPaymentMethodOptionsModel; - 'payment_method_types': string[]; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'processing': PaymentIntentProcessing_1Model; - 'receipt_email': string; - 'review': string | ReviewModel; - 'secret_key_confirmation'?: 'optional' | 'required' | undefined; - 'setup_future_usage': 'off_session' | 'on_session'; - 'shipping': ShippingModel; - 'source': string | PaymentSourceModel | DeletedPaymentSourceModel; - 'statement_descriptor': string; - 'statement_descriptor_suffix': string; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'transfer_data': TransferDataModel; - 'transfer_group': string; + 'number': string; + 'object': 'quote'; + 'on_behalf_of': string | AccountModel; + 'status': 'accepted' | 'accepting' | 'canceled' | 'draft' | 'open' | 'stale'; + 'status_details'?: QuotesResourceStatusDetailsStatusDetailsModel | undefined; + 'status_transitions': QuotesResourceStatusTransitionsModel; + 'subscription': string | SubscriptionModel; + 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; + 'subscription_data_overrides'?: QuotesResourceSubscriptionDataSubscriptionDataOverridesModel[] | undefined; + 'subscription_schedule': string | SubscriptionScheduleModel; + 'subscription_schedules'?: QuotesResourceSubscriptionScheduleWithAppliesToModel[] | undefined; + 'test_clock': string | TestHelpersTestClockModel; + 'total_details': QuotesResourceTotalDetailsModel; + 'transfer_data': QuotesResourceTransferDataModel; +}; + +export type QuoteAcceptFailedModel = { + 'object': QuoteModel; +}; + +export type QuoteAcceptedModel = { + 'object': QuoteModel; +}; + +export type QuoteAcceptingModel = { + 'object': QuoteModel; +}; + +export type QuoteCanceledModel = { + 'object': QuoteModel; +}; + +export type QuoteCreatedModel = { + 'object': QuoteModel; +}; + +export type QuoteDraftModel = { + 'object': QuoteModel; +}; + +export type QuoteFinalizedModel = { + 'object': QuoteModel; +}; + +export type QuoteReestimateFailedModel = { + 'object': QuoteModel; +}; + +export type QuoteReestimatedModel = { + 'object': QuoteModel; +}; + +export type QuoteStaleModel = { + 'object': QuoteModel; +}; + +export type QuoteLineDiscountEndModel = { + 'type': 'line_ends_at'; +}; + +export type StackableDiscountWithIndexAndDiscountEndModel = { + 'coupon': string | CouponModel; + 'discount': string | DiscountModel; + 'discount_end'?: QuoteLineDiscountEndModel | undefined; + 'index': number; + 'promotion_code': string | PromotionCodeModel; +}; + +export type QuotesResourceQuoteLinesTrialModel = { + 'converts_to'?: string[] | undefined; + 'type': 'free' | 'paid'; +}; + +export type QuotesResourceQuoteLinesActionsConfigurationItemModel = { + 'discounts': DiscountsResourceStackableDiscountModel[]; + 'metadata': { + [key: string]: string; +}; + 'price': string | PriceModel | DeletedPriceModel; + 'quantity'?: number | undefined; + 'tax_rates'?: TaxRateModel[] | undefined; + 'trial'?: QuotesResourceQuoteLinesTrialModel | undefined; }; -export type ApiErrorsModel = { - 'advice_code'?: string | undefined; - 'charge'?: string | undefined; - 'code'?: 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'acss_debit_session_incomplete' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'api_key_expired' | 'application_fees_not_allowed' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'sku_inactive' | 'state_unsupported' | 'status_transition_invalid' | 'stripe_tax_inactive' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration' | undefined; - 'decline_code'?: string | undefined; - 'doc_url'?: string | undefined; - 'message'?: string | undefined; - 'network_advice_code'?: string | undefined; - 'network_decline_code'?: string | undefined; - 'param'?: string | undefined; - 'payment_intent'?: PaymentIntentModel | undefined; - 'payment_method'?: PaymentMethodModel | undefined; - 'payment_method_type'?: string | undefined; - 'request_log_url'?: string | undefined; - 'setup_intent'?: SetupIntentModel | undefined; - 'source'?: PaymentSourceModel | undefined; - 'type': 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error'; +export type QuotesResourceQuoteLinesActionsRemoveItemModel = { + 'price': string | PriceModel | DeletedPriceModel; }; -export type ApplicationFeeModel = { - 'account': string | AccountModel; - 'amount': number; - 'amount_refunded': number; - 'application': string | ApplicationModel; - 'balance_transaction': string | BalanceTransactionModel; - 'charge': string | ChargeModel; - 'created': number; - 'currency': string; - 'fee_source': PlatformEarningFeeSourceModel; - 'id': string; - 'livemode': boolean; - 'object': 'application_fee'; - 'originating_transaction': string | ChargeModel; - 'refunded': boolean; - 'refunds': { - 'data': FeeRefundModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; +export type QuoteLineActionModel = { + 'add_discount': StackableDiscountWithIndexAndDiscountEndModel; + 'add_item': QuotesResourceQuoteLinesActionsConfigurationItemModel; + 'add_metadata': { + [key: string]: string; }; + 'remove_discount': DiscountsResourceStackableDiscountModel; + 'remove_item': QuotesResourceQuoteLinesActionsRemoveItemModel; + 'remove_metadata': string[]; + 'set_discounts': DiscountsResourceStackableDiscountModel[]; + 'set_items': QuotesResourceQuoteLinesActionsConfigurationItemModel[]; + 'set_metadata': { + [key: string]: string; +}; + 'type': 'add_discount' | 'add_item' | 'add_metadata' | 'clear_discounts' | 'clear_metadata' | 'remove_discount' | 'remove_item' | 'remove_metadata' | 'set_discounts' | 'set_items' | 'set_metadata'; }; -export type BalanceTransactionSourceModel = ApplicationFeeModel | ChargeModel | ConnectCollectionTransferModel | CustomerCashBalanceTransactionModel | DisputeModel | FeeRefundModel | IssuingAuthorizationModel | IssuingDisputeModel | IssuingTransactionModel | PayoutModel | RefundModel | ReserveTransactionModel | TaxDeductedAtSourceModel | TopupModel | TransferModel | TransferReversalModel; +export type QuotesResourceQuoteLinesCancelSubscriptionScheduleModel = { + 'cancel_at': 'line_starts_at'; + 'invoice_now': boolean; + 'prorate': boolean; +}; -export type ChargeModel = { - 'amount': number; - 'amount_captured': number; - 'amount_refunded': number; - 'application': string | ApplicationModel; - 'application_fee': string | ApplicationFeeModel; - 'application_fee_amount': number; - 'authorization_code'?: string | undefined; - 'balance_transaction': string | BalanceTransactionModel; - 'billing_details': BillingDetailsModel; - 'calculated_statement_descriptor': string; - 'captured': boolean; +export type QuotesResourceQuoteLinesTimestampHelpersDiscountEndModel = { + 'discount': string; +}; + +export type QuotesResourceQuoteLinesTimestampHelpersEndsAtModel = { + 'computed': number; + 'discount_end'?: QuotesResourceQuoteLinesTimestampHelpersDiscountEndModel | undefined; + 'duration': QuotesResourceQuoteLinesTimestampHelpersDurationModel; + 'timestamp': number; + 'type': 'billing_period_end' | 'discount_end' | 'duration' | 'quote_acceptance_date' | 'schedule_end' | 'timestamp' | 'upcoming_invoice'; +}; + +export type QuotesResourceQuoteLinesSetPauseCollectionModel = { + 'set'?: SubscriptionSchedulesResourcePauseCollectionModel | undefined; + 'type': 'remove' | 'set'; +}; + +export type QuotesResourceQuoteLinesTimestampHelpersStartsAtModel = { + 'computed': number; + 'discount_end'?: QuotesResourceQuoteLinesTimestampHelpersDiscountEndModel | undefined; + 'line_ends_at': QuotesResourceQuoteLinesTimestampHelpersLineIdModel; + 'timestamp': number; + 'type': 'discount_end' | 'line_ends_at' | 'now' | 'quote_acceptance_date' | 'schedule_end' | 'timestamp' | 'upcoming_invoice'; +}; + +export type QuotesResourceQuoteLinesEndBehaviorModel = { + 'prorate_up_front': 'defer' | 'include'; +}; + +export type QuotesResourceQuoteLinesTrialSettingsModel = { + 'end_behavior': QuotesResourceQuoteLinesEndBehaviorModel; +}; + +export type QuoteLineModel = { + 'actions'?: QuoteLineActionModel[] | undefined; + 'applies_to': QuotesResourceQuoteLinesAppliesToModel; + 'billing_cycle_anchor': 'automatic' | 'line_starts_at'; + 'cancel_subscription_schedule': QuotesResourceQuoteLinesCancelSubscriptionScheduleModel; + 'ends_at': QuotesResourceQuoteLinesTimestampHelpersEndsAtModel; + 'id': string; + 'object': 'quote_line'; + 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; + 'set_pause_collection'?: QuotesResourceQuoteLinesSetPauseCollectionModel | undefined; + 'set_schedule_end': 'line_ends_at' | 'line_starts_at'; + 'starts_at': QuotesResourceQuoteLinesTimestampHelpersStartsAtModel; + 'trial_settings'?: QuotesResourceQuoteLinesTrialSettingsModel | undefined; +}; + +export type QuotePreviewInvoiceModel = { + 'account_country': string; + 'account_name': string; + 'account_tax_ids': Array; + 'amount_due': number; + 'amount_overpaid': number; + 'amount_paid': number; + 'amount_remaining': number; + 'amount_shipping': number; + 'amounts_due'?: PaymentPlanAmountModel[] | undefined; + 'application': string | ApplicationModel | DeletedApplicationModel; + 'applies_to': QuotesResourceQuoteLinesAppliesToModel; + 'attempt_count': number; + 'attempted': boolean; + 'automatic_tax': AutomaticTaxModel; + 'automatically_finalizes_at': number; + 'billing_reason': 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming'; + 'collection_method': 'charge_automatically' | 'send_invoice'; + 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; 'created': number; 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; + 'custom_fields': InvoiceSettingCustomFieldModel[]; + 'customer_account'?: string | undefined; + 'customer_address': AddressModel; + 'customer_email': string; + 'customer_name': string; + 'customer_phone': string; + 'customer_shipping': ShippingModel; + 'customer_tax_exempt': 'exempt' | 'none' | 'reverse'; + 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; + 'default_margins'?: Array | undefined; + 'default_payment_method': string | PaymentMethodModel; + 'default_source': string | PaymentSourceModel; + 'default_tax_rates': TaxRateModel[]; 'description': string; - 'disputed': boolean; - 'failure_balance_transaction': string | BalanceTransactionModel; - 'failure_code': string; - 'failure_message': string; - 'fraud_details': ChargeFraudDetailsModel; + 'discounts': Array; + 'due_date': number; + 'effective_at': number; + 'ending_balance': number; + 'footer': string; + 'from_invoice': InvoicesResourceFromInvoiceModel; 'id': string; - 'level3'?: Level3Model | undefined; + 'issuer': ConnectAccountReferenceModel; + 'last_finalization_error': ApiErrorsModel; + 'latest_revision': string | InvoiceModel; + 'lines': { + 'data': LineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'charge'; + 'next_payment_attempt': number; + 'number': string; + 'object': 'quote_preview_invoice'; 'on_behalf_of': string | AccountModel; - 'outcome': ChargeOutcomeModel; - 'paid': boolean; - 'payment_intent': string | PaymentIntentModel; - 'payment_method': string; - 'payment_method_details': PaymentMethodDetailsModel; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'radar_options'?: RadarRadarOptionsModel | undefined; - 'receipt_email': string; - 'receipt_number': string; - 'receipt_url': string; - 'refunded': boolean; - 'refunds'?: { - 'data': RefundModel[]; + 'parent': BillingBillResourceInvoicingParentsInvoiceParentModel; + 'payment_settings': InvoicesPaymentSettingsModel; + 'payments'?: { + 'data': InvoicePaymentModel[]; 'has_more': boolean; 'object': 'list'; 'url': string; } | undefined; - 'review': string | ReviewModel; - 'shipping': ShippingModel; - 'source': PaymentSourceModel; - 'source_transfer': string | TransferModel; + 'period_end': number; + 'period_start': number; + 'post_payment_credit_notes_amount': number; + 'pre_payment_credit_notes_amount': number; + 'receipt_number': string; + 'rendering': InvoicesResourceInvoiceRenderingModel; + 'shipping_cost': InvoicesResourceShippingCostModel; + 'shipping_details': ShippingModel; + 'starting_balance': number; 'statement_descriptor': string; - 'statement_descriptor_suffix': string; - 'status': 'failed' | 'pending' | 'succeeded'; - 'transfer'?: string | TransferModel | undefined; - 'transfer_data': ChargeTransferDataModel; - 'transfer_group': string; + 'status': 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'; + 'status_transitions': InvoicesResourceStatusTransitionsModel; + 'subscription': string | SubscriptionModel; + 'subtotal': number; + 'subtotal_excluding_tax': number; + 'test_clock': string | TestHelpersTestClockModel; + 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; + 'total': number; + 'total_discount_amounts': DiscountsResourceDiscountAmountModel[]; + 'total_excluding_tax': number; + 'total_margin_amounts'?: MarginsResourceMarginAmountModel[] | undefined; + 'total_pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; + 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'webhooks_delivered_at': number; }; -export type ConnectCollectionTransferModel = { - 'amount': number; - 'currency': string; - 'destination': string | AccountModel; +export type QuotePreviewSubscriptionScheduleModel = { + 'application': string | ApplicationModel | DeletedApplicationModel; + 'applies_to': QuotesResourceQuoteLinesAppliesToModel; + 'billing_behavior'?: 'prorate_on_next_phase' | 'prorate_up_front' | undefined; + 'billing_mode': SubscriptionsResourceBillingModeModel; + 'canceled_at': number; + 'completed_at': number; + 'created': number; + 'current_phase': SubscriptionScheduleCurrentPhaseModel; + 'customer': string | CustomerModel | DeletedCustomerModel; + 'customer_account'?: string | undefined; + 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; + 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; 'id': string; + 'last_price_migration_error'?: SubscriptionsResourcePriceMigrationErrorModel | undefined; 'livemode': boolean; - 'object': 'connect_collection_transfer'; + 'metadata': { + [key: string]: string; +}; + 'object': 'quote_preview_subscription_schedule'; + 'phases': SubscriptionSchedulePhaseConfigurationModel[]; + 'prebilling'?: SubscriptionPrebillingDataModel | undefined; + 'released_at': number; + 'released_subscription': string; + 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; + 'subscription': string | SubscriptionModel; + 'test_clock': string | TestHelpersTestClockModel; }; -export type BalanceTransactionModel = { - 'amount': number; - 'available_on': number; - 'balance_type'?: 'issuing' | 'payments' | 'refund_and_dispute_prefunding' | undefined; +export type RadarEarlyFraudWarningModel = { + 'actionable': boolean; + 'charge': string | ChargeModel; 'created': number; - 'currency': string; - 'description': string; - 'exchange_rate': number; - 'fee': number; - 'fee_details': FeeModel[]; + 'fraud_type': string; 'id': string; - 'net': number; - 'object': 'balance_transaction'; - 'reporting_category': string; - 'source': string | BalanceTransactionSourceModel; - 'status': string; - 'type': 'adjustment' | 'advance' | 'advance_funding' | 'anticipation_repayment' | 'application_fee' | 'application_fee_refund' | 'charge' | 'climate_order_purchase' | 'climate_order_refund' | 'connect_collection_transfer' | 'contribution' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'issuing_dispute' | 'issuing_transaction' | 'obligation_outbound' | 'obligation_reversal_inbound' | 'payment' | 'payment_failure_refund' | 'payment_network_reserve_hold' | 'payment_network_reserve_release' | 'payment_refund' | 'payment_reversal' | 'payment_unreconciled' | 'payout' | 'payout_cancel' | 'payout_failure' | 'payout_minimum_balance_hold' | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' | 'reserved_funds' | 'stripe_balance_payment_debit' | 'stripe_balance_payment_debit_reversal' | 'stripe_fee' | 'stripe_fx_fee' | 'tax_fee' | 'topup' | 'topup_reversal' | 'transfer' | 'transfer_cancel' | 'transfer_failure' | 'transfer_refund'; + 'livemode': boolean; + 'object': 'radar.early_fraud_warning'; + 'payment_intent'?: string | PaymentIntentModel | undefined; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel = { - 'balance_transaction': string | BalanceTransactionModel; - 'linked_transaction': string | CustomerCashBalanceTransactionModel; +export type RadarEarlyFraudWarningCreatedModel = { + 'object': RadarEarlyFraudWarningModel; }; -export type CustomerCashBalanceTransactionModel = { - 'adjusted_for_overdraft'?: CustomerBalanceResourceCashBalanceTransactionResourceAdjustedForOverdraftModel | undefined; - 'applied_to_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel | undefined; +export type RadarEarlyFraudWarningUpdatedModel = { + 'object': RadarEarlyFraudWarningModel; +}; + +export type RadarValueListItemModel = { 'created': number; - 'currency': string; - 'customer': string | CustomerModel; - 'customer_account'?: string | undefined; - 'ending_balance': number; - 'funded'?: CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel | undefined; + 'created_by': string; 'id': string; 'livemode': boolean; - 'net_amount': number; - 'object': 'customer_cash_balance_transaction'; - 'refunded_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel | undefined; - 'transferred_to_balance'?: CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel | undefined; - 'type': 'adjusted_for_overdraft' | 'applied_to_payment' | 'funded' | 'funding_reversed' | 'refunded_from_payment' | 'return_canceled' | 'return_initiated' | 'transferred_to_balance' | 'unapplied_from_payment'; - 'unapplied_from_payment'?: CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel | undefined; -}; - -export type CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; + 'object': 'radar.value_list_item'; + 'value': string; + 'value_list': string; }; -export type RefundModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'charge': string | ChargeModel; +export type RadarValueListModel = { + 'alias': string; 'created': number; - 'currency': string; - 'description'?: string | undefined; - 'destination_details'?: RefundDestinationDetailsModel | undefined; - 'failure_balance_transaction'?: string | BalanceTransactionModel | undefined; - 'failure_reason'?: string | undefined; + 'created_by': string; 'id': string; - 'instructions_email'?: 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'; + 'list_items': { + 'data': RadarValueListItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +}; + 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'next_action'?: RefundNextActionModel | undefined; - 'object': 'refund'; - 'payment_intent': string | PaymentIntentModel; - 'pending_reason'?: 'charge_pending' | 'insufficient_funds' | 'processing' | undefined; - 'presentment_details'?: PaymentFlowsPaymentIntentPresentmentDetailsModel | undefined; - 'reason': 'duplicate' | 'expired_uncaptured_charge' | 'fraudulent' | 'requested_by_customer'; - 'receipt_number': string; - 'source_transfer_reversal': string | TransferReversalModel; - 'status': string; - 'transfer_reversal': string | TransferReversalModel; + 'name': string; + 'object': 'radar.value_list'; }; -export type TransferReversalModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; - 'created': number; - 'currency': string; - 'destination_payment_refund': string | RefundModel; +export type ReceivedPaymentMethodDetailsFinancialAccountModel = { 'id': string; - 'metadata': { - [key: string]: string; + 'network': 'stripe'; }; - 'object': 'transfer_reversal'; - 'source_refund': string | RefundModel; - 'transfer': string | TransferModel; + +export type RefundCreatedModel = { + 'object': RefundModel; }; -export type TransferModel = { - 'amount': number; - 'amount_reversed': number; - 'balance_transaction': string | BalanceTransactionModel; +export type RefundFailedModel = { + 'object': RefundModel; +}; + +export type RefundUpdatedModel = { + 'object': RefundModel; +}; + +export type ReportingReportRunModel = { 'created': number; - 'currency': string; - 'description': string; - 'destination': string | AccountModel; - 'destination_payment'?: string | ChargeModel | undefined; - 'fx_quote'?: string | undefined; + 'error': string; 'id': string; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'reporting.report_run'; + 'parameters': FinancialReportingFinanceReportRunRunParametersModel; + 'report_type': string; + 'result': FileModel; + 'status': string; + 'succeeded_at': number; }; - 'object': 'transfer'; - 'reversals': { - 'data': TransferReversalModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + +export type ReportingReportRunFailedModel = { + 'object': ReportingReportRunModel; }; - 'reversed': boolean; - 'source_transaction': string | ChargeModel; - 'source_type'?: string | undefined; - 'transfer_group': string; + +export type ReportingReportRunSucceededModel = { + 'object': ReportingReportRunModel; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceRefundedFromPaymentTransactionModel = { - 'refund': string | RefundModel; +export type ReportingReportTypeModel = { + 'data_available_end': number; + 'data_available_start': number; + 'default_columns': string[]; + 'id': string; + 'livemode': boolean; + 'name': string; + 'object': 'reporting.report_type'; + 'updated': number; + 'version': number; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceTransferredToBalanceModel = { - 'balance_transaction': string | BalanceTransactionModel; +export type ReportingReportTypeUpdatedModel = { + 'object': ReportingReportTypeModel; }; -export type CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransactionModel = { - 'payment_intent': string | PaymentIntentModel; +export type ReviewClosedModel = { + 'object': ReviewModel; }; -export type DisputeModel = { - 'amount': number; - 'balance_transactions': BalanceTransactionModel[]; - 'charge': string | ChargeModel; +export type ReviewOpenedModel = { + 'object': ReviewModel; +}; + +export type SigmaScheduledQueryRunErrorModel = { + 'message': string; +}; + +export type ScheduledQueryRunModel = { 'created': number; - 'currency': string; - 'enhanced_eligibility_types': Array<'visa_compelling_evidence_3' | 'visa_compliance'>; - 'evidence': DisputeEvidenceModel; - 'evidence_details': DisputeEvidenceDetailsModel; + 'data_load_time': number; + 'error'?: SigmaScheduledQueryRunErrorModel | undefined; + 'file': FileModel; 'id': string; - 'intended_submission_method'?: 'manual' | 'prefer_manual' | 'prefer_smart_disputes' | 'smart_disputes' | undefined; - 'is_charge_refundable': boolean; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'scheduled_query_run'; + 'result_available_until': number; + 'sql': string; + 'status': string; + 'title': string; }; - 'network_reason_code'?: string | undefined; - 'object': 'dispute'; - 'payment_intent': string | PaymentIntentModel; - 'payment_method_details'?: DisputePaymentMethodDetailsModel | undefined; - 'reason': string; - 'smart_disputes'?: DisputeSmartDisputesModel | undefined; - 'status': 'lost' | 'needs_response' | 'prevented' | 'under_review' | 'warning_closed' | 'warning_needs_response' | 'warning_under_review' | 'won'; + +export type SetupIntentCanceledModel = { + 'object': SetupIntentModel; }; -export type FeeRefundModel = { +export type SetupIntentCreatedModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentRequiresActionModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentSetupFailedModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentSucceededModel = { + 'object': SetupIntentModel; +}; + +export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = { + 'verification_method'?: 'automatic' | 'instant' | 'microdeposits' | undefined; +}; + +export type SigmaScheduledQueryRunCreatedModel = { + 'object': ScheduledQueryRunModel; +}; + +export type SourceCanceledModel = { + 'object': SourceModel; +}; + +export type SourceChargeableModel = { + 'object': SourceModel; +}; + +export type SourceFailedModel = { + 'object': SourceModel; +}; + +export type SourceMandateNotificationAcssDebitDataModel = { + 'statement_descriptor'?: string | undefined; +}; + +export type SourceMandateNotificationBacsDebitDataModel = { + 'last4'?: string | undefined; +}; + +export type SourceMandateNotificationSepaDebitDataModel = { + 'creditor_identifier'?: string | undefined; + 'last4'?: string | undefined; + 'mandate_reference'?: string | undefined; +}; + +export type SourceMandateNotification_1Model = { + 'acss_debit'?: SourceMandateNotificationAcssDebitDataModel | undefined; 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; + 'bacs_debit'?: SourceMandateNotificationBacsDebitDataModel | undefined; 'created': number; - 'currency': string; - 'fee': string | ApplicationFeeModel; 'id': string; - 'metadata': { - [key: string]: string; + 'livemode': boolean; + 'object': 'source_mandate_notification'; + 'reason': string; + 'sepa_debit'?: SourceMandateNotificationSepaDebitDataModel | undefined; + 'source': SourceModel; + 'status': string; + 'type': string; }; - 'object': 'fee_refund'; + +export type SourceMandateNotificationModel = { + 'object': SourceMandateNotification_1Model; }; -export type IssuingAuthorizationModel = { +export type SourceRefundAttributesRequiredModel = { + 'object': SourceModel; +}; + +export type SourceTransactionAchCreditTransferDataModel = { + 'customer_data'?: string | undefined; + 'fingerprint'?: string | undefined; + 'last4'?: string | undefined; + 'routing_number'?: string | undefined; +}; + +export type SourceTransactionChfCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_address_country'?: string | undefined; + 'sender_address_line1'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionGbpCreditTransferDataModel = { + '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 SourceTransactionPaperCheckDataModel = { + 'available_at'?: string | undefined; + 'invoices'?: string | undefined; +}; + +export type SourceTransactionSepaCreditTransferDataModel = { + 'reference'?: string | undefined; + 'sender_iban'?: string | undefined; + 'sender_name'?: string | undefined; +}; + +export type SourceTransactionModel = { + 'ach_credit_transfer'?: SourceTransactionAchCreditTransferDataModel | undefined; 'amount': number; - 'amount_details': IssuingAuthorizationAmountDetailsModel; - 'approved': boolean; - 'authorization_method': 'chip' | 'contactless' | 'keyed_in' | 'online' | 'swipe'; - 'balance_transactions': BalanceTransactionModel[]; - 'card': IssuingCardModel; - 'cardholder': string | IssuingCardholderModel; + 'chf_credit_transfer'?: SourceTransactionChfCreditTransferDataModel | undefined; 'created': number; 'currency': string; - 'fleet': IssuingAuthorizationFleetDataModel; - 'fraud_challenges'?: IssuingAuthorizationFraudChallengeModel[] | undefined; - 'fuel': IssuingAuthorizationFuelDataModel; + 'gbp_credit_transfer'?: SourceTransactionGbpCreditTransferDataModel | undefined; 'id': string; 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; - 'metadata': { - [key: string]: string; + 'object': 'source_transaction'; + 'paper_check'?: SourceTransactionPaperCheckDataModel | undefined; + 'sepa_credit_transfer'?: SourceTransactionSepaCreditTransferDataModel | undefined; + 'source': string; + 'status': string; + 'type': 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat'; }; - 'network_data': IssuingAuthorizationNetworkDataModel; - 'object': 'issuing.authorization'; - 'pending_request': IssuingAuthorizationPendingRequestModel; - 'request_history': IssuingAuthorizationRequest_1Model[]; - 'status': 'closed' | 'expired' | 'pending' | 'reversed'; - 'token'?: string | IssuingTokenModel | undefined; - 'transactions': IssuingTransactionModel[]; - 'treasury'?: IssuingAuthorizationTreasuryModel | undefined; - 'verification_data': IssuingAuthorizationVerificationDataModel; - 'verified_by_fraud_challenge': boolean; - 'wallet': string; + +export type SourceTransactionCreatedModel = { + 'object': SourceTransactionModel; }; -export type IssuingCardModel = { - 'brand': string; - 'cancellation_reason': 'design_rejected' | 'lost' | 'stolen'; - 'cardholder': IssuingCardholderModel; - 'created': number; - 'currency': string; - 'cvc'?: string | undefined; - 'exp_month': number; - 'exp_year': number; - 'financial_account'?: string | undefined; +export type SourceTransactionUpdatedModel = { + 'object': SourceTransactionModel; +}; + +export type SubscriptionScheduleAbortedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCanceledModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCompletedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleCreatedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleExpiringModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionSchedulePriceMigrationFailedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleReleasedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type SubscriptionScheduleUpdatedModel = { + 'object': SubscriptionScheduleModel; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = { + 'transaction': string; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = { + 'reason': 'another_payment_associated_with_calculation' | 'calculation_expired' | 'currency_mismatch' | 'original_transaction_voided' | 'unique_reference_violation'; +}; + +export type TaxProductResourceTaxAssociationTransactionAttemptsModel = { + 'committed'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel | undefined; + 'errored'?: TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel | undefined; + 'source': string; + 'status': string; +}; + +export type TaxAssociationModel = { + 'calculation': string; 'id': string; - 'last4': string; - 'latest_fraud_warning': IssuingCardFraudWarningModel; - 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'tax.association'; + 'payment_intent': string; + 'tax_transaction_attempts': TaxProductResourceTaxAssociationTransactionAttemptsModel[]; +}; + +export type TaxProductResourcePostalAddressModel = { + 'city': string; + 'country': string; + 'line1': string; + 'line2': string; + 'postal_code': string; + 'state': string; +}; + +export type TaxProductResourceCustomerDetailsResourceTaxIdModel = { + 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; + 'value': string; +}; + +export type TaxProductResourceCustomerDetailsModel = { + 'address': TaxProductResourcePostalAddressModel; + 'address_source': 'billing' | 'shipping'; + 'ip_address': string; + 'tax_ids': TaxProductResourceCustomerDetailsResourceTaxIdModel[]; + 'taxability_override': 'customer_exempt' | 'none' | 'reverse_charge'; +}; + +export type TaxProductResourceJurisdictionModel = { + 'country': string; + 'display_name': string; + 'level': 'city' | 'country' | 'county' | 'district' | 'state'; + 'state': string; }; - 'number'?: string | undefined; - 'object': 'issuing.card'; - 'personalization_design': string | IssuingPersonalizationDesignModel; - 'replaced_by': string | IssuingCardModel; - 'replacement_for': string | IssuingCardModel; - 'replacement_reason': 'damaged' | 'expired' | 'lost' | 'stolen'; - 'second_line': string; - 'shipping': IssuingCardShippingModel; - 'spending_controls': IssuingCardAuthorizationControlsModel; - 'status': 'active' | 'canceled' | 'inactive'; - 'type': 'physical' | 'virtual'; - 'wallets': IssuingCardWalletsModel; + +export type TaxProductResourceLineItemTaxRateDetailsModel = { + 'display_name': string; + 'percentage_decimal': string; + 'tax_type': 'amusement_tax' | 'communications_tax' | 'gst' | 'hst' | 'igst' | 'jct' | 'lease_tax' | 'pst' | 'qst' | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'service_tax' | 'vat'; }; -export type IssuingTransactionModel = { +export type TaxProductResourceLineItemTaxBreakdownModel = { 'amount': number; - 'amount_details': IssuingTransactionAmountDetailsModel; - 'authorization': string | IssuingAuthorizationModel; - 'balance_transaction': string | BalanceTransactionModel; - 'card': string | IssuingCardModel; - 'cardholder': string | IssuingCardholderModel; - 'created': number; - 'currency': string; - 'dispute': string | IssuingDisputeModel; + 'jurisdiction': TaxProductResourceJurisdictionModel; + 'sourcing': 'destination' | 'origin'; + 'tax_rate_details': TaxProductResourceLineItemTaxRateDetailsModel; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; 'livemode': boolean; - 'merchant_amount': number; - 'merchant_currency': string; - 'merchant_data': IssuingAuthorizationMerchantDataModel; 'metadata': { [key: string]: string; }; - 'network_data': IssuingTransactionNetworkDataModel; - 'object': 'issuing.transaction'; - 'purchase_details'?: IssuingTransactionPurchaseDetailsModel | undefined; - 'settlement'?: string | IssuingSettlementModel | undefined; - 'token'?: string | IssuingTokenModel | undefined; - 'treasury'?: IssuingTransactionTreasuryModel | undefined; - 'type': 'capture' | 'refund'; - 'wallet': 'apple_pay' | 'google_pay' | 'samsung_pay'; + 'object': 'tax.calculation_line_item'; + 'product': string; + 'quantity': number; + 'reference': string; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; }; -export type IssuingDisputeModel = { +export type TaxProductResourceShipFromDetailsModel = { + 'address': TaxProductResourcePostalAddressModel; +}; + +export type TaxProductResourceTaxCalculationShippingCostModel = { 'amount': number; - 'balance_transactions'?: BalanceTransactionModel[] | undefined; - 'created': number; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; +}; + +export type TaxProductResourceTaxRateDetailsModel = { + 'country': string; + 'flat_amount': TaxRateFlatAmountModel; + 'percentage_decimal': string; + 'rate_type': 'flat_amount' | 'percentage'; + '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'; +}; + +export type TaxProductResourceTaxBreakdownModel = { + 'amount': number; + 'inclusive': boolean; + 'tax_rate_details': TaxProductResourceTaxRateDetailsModel; + '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'; + 'taxable_amount': number; +}; + +export type TaxCalculationModel = { + 'amount_total': number; 'currency': string; - 'evidence': IssuingDisputeEvidenceModel; + 'customer': string; + 'customer_details': TaxProductResourceCustomerDetailsModel; + 'expires_at': number; 'id': string; + 'line_items'?: { + 'data': TaxCalculationLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; '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' | undefined; - 'metadata': { - [key: string]: string; + 'object': 'tax.calculation'; + 'ship_from_details': TaxProductResourceShipFromDetailsModel; + 'shipping_cost': TaxProductResourceTaxCalculationShippingCostModel; + 'tax_amount_exclusive': number; + 'tax_amount_inclusive': number; + 'tax_breakdown': TaxProductResourceTaxBreakdownModel[]; + 'tax_date': number; }; - 'object': 'issuing.dispute'; - 'status': 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; - 'transaction': string | IssuingTransactionModel; - 'treasury'?: IssuingDisputeTreasuryModel | undefined; + +export type TaxReportingResourceTaxFormAuSerrModel = { + 'reporting_period_end_date': string; + 'reporting_period_start_date': string; }; -export type PayoutModel = { - 'amount': number; - 'application_fee': string | ApplicationFeeModel; - 'application_fee_amount': number; - 'arrival_date': number; - 'automatic': boolean; - 'balance_transaction': string | BalanceTransactionModel; +export type TaxReportingResourceTaxFormCaMrdpModel = { + 'reporting_period_end_date': string; + 'reporting_period_start_date': string; +}; + +export type TaxReportingResourceTaxFormEuDac7Model = { + 'reporting_period_end_date': string; + 'reporting_period_start_date': string; +}; + +export type TaxReportingResourceTaxFormFilingStatusResourceJurisdictionModel = { + 'country': string; + 'level': 'country' | 'state'; + 'state': string; +}; + +export type TaxReportingResourceTaxFormFilingStatusModel = { + 'effective_at': number; + 'jurisdiction': TaxReportingResourceTaxFormFilingStatusResourceJurisdictionModel; + 'value': 'accepted' | 'filed' | 'rejected'; +}; + +export type TaxReportingResourceTaxFormGbMrdpModel = { + 'reporting_period_end_date': string; + 'reporting_period_start_date': string; +}; + +export type TaxReportingResourceTaxFormNzMrdpModel = { + 'reporting_period_end_date': string; + 'reporting_period_start_date': string; +}; + +export type TaxReportingResourceTaxFormPayeeModel = { + 'account': string | AccountModel; + 'external_reference': string; + 'type': 'account' | 'external_reference'; +}; + +export type TaxReportingResourceTaxFormUs1099KModel = { + 'reporting_year': number; +}; + +export type TaxReportingResourceTaxFormUs1099MiscModel = { + 'reporting_year': number; +}; + +export type TaxReportingResourceTaxFormUs1099NecModel = { + 'reporting_year': number; +}; + +export type TaxFormModel = { + 'au_serr'?: TaxReportingResourceTaxFormAuSerrModel | undefined; + 'ca_mrdp'?: TaxReportingResourceTaxFormCaMrdpModel | undefined; + 'corrected_by': string | TaxFormModel; 'created': number; - 'currency': string; - 'description': string; - 'destination': string | ExternalAccountModel | DeletedExternalAccountModel; - 'failure_balance_transaction': string | BalanceTransactionModel; - 'failure_code': string; - 'failure_message': string; + 'eu_dac7'?: TaxReportingResourceTaxFormEuDac7Model | undefined; + 'filing_statuses': TaxReportingResourceTaxFormFilingStatusModel[]; + 'gb_mrdp'?: TaxReportingResourceTaxFormGbMrdpModel | undefined; 'id': string; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'nz_mrdp'?: TaxReportingResourceTaxFormNzMrdpModel | undefined; + 'object': 'tax.form'; + 'payee': TaxReportingResourceTaxFormPayeeModel; + 'type': 'au_serr' | 'ca_mrdp' | 'eu_dac7' | 'gb_mrdp' | 'nz_mrdp' | 'us_1099_k' | 'us_1099_misc' | 'us_1099_nec'; + 'us_1099_k'?: TaxReportingResourceTaxFormUs1099KModel | undefined; + 'us_1099_misc'?: TaxReportingResourceTaxFormUs1099MiscModel | undefined; + 'us_1099_nec'?: TaxReportingResourceTaxFormUs1099NecModel | undefined; }; - 'method': string; - 'object': 'payout'; - 'original_payout': string | PayoutModel; - 'payout_method': string; - 'reconciliation_status': 'completed' | 'in_progress' | 'not_applicable'; - 'reversed_by': string | PayoutModel; - 'source_type': string; - 'statement_descriptor': string; - 'status': string; - 'trace_id': PayoutsTraceIdModel; - 'type': 'bank_account' | 'card'; + +export type TaxFormUpdatedModel = { + 'object': TaxFormModel; }; -export type ExternalAccountModel = BankAccountModel | CardModel; +export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'standard'; +}; -export type TopupModel = { - 'amount': number; - 'balance_transaction': string | BalanceTransactionModel; +export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel | undefined; + 'type': 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = { + 'type': 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = { + 'type': 'simplified'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = { + 'place_of_supply_scheme': 'inbound_goods' | 'small_seller' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = { + 'standard'?: TaxProductRegistrationsResourceCountryOptionsEuStandardModel | undefined; + 'type': 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = { + 'province': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = { + 'province_standard'?: TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel | undefined; + 'type': 'province_standard' | 'simplified' | 'standard'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsThailandModel = { + 'type': 'simplified'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = { + 'jurisdiction': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = { + 'jurisdiction': string; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = { + 'jurisdiction'?: string | undefined; + 'type': 'local_use_tax' | 'simplified_sellers_use_tax' | 'single_local_use_tax'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = { + 'elections'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel[] | undefined; +}; + +export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = { + 'local_amusement_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel | undefined; + 'local_lease_tax'?: TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel | undefined; + 'state': string; + 'state_sales_tax'?: TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel | undefined; + 'type': 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' | 'state_retail_delivery_fee' | 'state_sales_tax'; +}; + +export type TaxProductRegistrationsResourceCountryOptionsModel = { + 'ae'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'al'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'am'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ao'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'at'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'au'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'aw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'az'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ba'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bb'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'be'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bf'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bg'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'bh'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'bj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'bs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'by'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ca'?: TaxProductRegistrationsResourceCountryOptionsCanadaModel | undefined; + 'cd'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ch'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'cl'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'co'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cv'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'cy'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'cz'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'de'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'dk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ec'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ee'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'eg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'es'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'et'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'fi'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'fr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'gb'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ge'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'gn'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'gr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hr'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'hu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'id'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ie'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'in'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'is'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'it'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'jp'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'ke'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kg'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kh'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'kz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'la'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'lt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lu'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'lv'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ma'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'md'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'me'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mk'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'mt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'mx'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'my'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ng'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'no'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'np'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'nz'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'om'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'pe'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ph'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'pl'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'pt'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'ro'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'rs'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'ru'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sa'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'se'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sg'?: TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel | undefined; + 'si'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sk'?: TaxProductRegistrationsResourceCountryOptionsEuropeModel | undefined; + 'sn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'sr'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'th'?: TaxProductRegistrationsResourceCountryOptionsThailandModel | undefined; + 'tj'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tr'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tw'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'tz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ua'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'ug'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'us'?: TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel | undefined; + 'uy'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'uz'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'vn'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'za'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; + 'zm'?: TaxProductRegistrationsResourceCountryOptionsSimplifiedModel | undefined; + 'zw'?: TaxProductRegistrationsResourceCountryOptionsDefaultModel | undefined; +}; + +export type TaxRegistrationModel = { + 'active_from': number; + 'country': string; + 'country_options': TaxProductRegistrationsResourceCountryOptionsModel; 'created': number; - 'currency': string; - 'description': string; - 'expected_availability_date': number; - 'failure_code': string; - 'failure_message': string; + 'expires_at': number; 'id': string; 'livemode': boolean; - 'metadata': { - [key: string]: string; + 'object': 'tax.registration'; + 'status': 'active' | 'expired' | 'scheduled'; }; - 'object': 'topup'; - 'source': SourceModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'pending' | 'reversed' | 'succeeded'; - 'transfer_group': string; + +export type TaxProductResourceTaxSettingsDefaultsModel = { + 'provider': 'anrok' | 'avalara' | 'sphere' | 'stripe'; + 'tax_behavior': 'exclusive' | 'inclusive' | 'inferred_by_currency'; + 'tax_code': string; }; -export type PaymentMethodDetailsBancontactModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'fr' | 'nl'; - 'verified_name': string; +export type TaxProductResourceTaxSettingsHeadOfficeModel = { + 'address': AddressModel; }; -export type PaymentMethodDetailsModel = { - 'ach_credit_transfer'?: PaymentMethodDetailsAchCreditTransferModel | undefined; - 'ach_debit'?: PaymentMethodDetailsAchDebitModel | undefined; - 'acss_debit'?: PaymentMethodDetailsAcssDebitModel | undefined; - 'affirm'?: PaymentMethodDetailsAffirmModel | undefined; - 'afterpay_clearpay'?: PaymentMethodDetailsAfterpayClearpayModel | undefined; - 'alipay'?: PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel | undefined; - 'alma'?: PaymentMethodDetailsAlmaModel | undefined; - 'amazon_pay'?: PaymentMethodDetailsAmazonPayModel | undefined; - 'au_becs_debit'?: PaymentMethodDetailsAuBecsDebitModel | undefined; - 'bacs_debit'?: PaymentMethodDetailsBacsDebitModel | undefined; - 'bancontact'?: PaymentMethodDetailsBancontactModel | undefined; - 'billie'?: PaymentMethodDetailsBillieModel | undefined; - 'blik'?: PaymentMethodDetailsBlikModel | undefined; - 'boleto'?: PaymentMethodDetailsBoletoModel | undefined; - 'card'?: PaymentMethodDetailsCardModel | undefined; - 'card_present'?: PaymentMethodDetailsCardPresentModel | undefined; - 'cashapp'?: PaymentMethodDetailsCashappModel | undefined; - 'crypto'?: PaymentMethodDetailsCryptoModel | undefined; - 'customer_balance'?: PaymentMethodDetailsCustomerBalanceModel | undefined; - 'eps'?: PaymentMethodDetailsEpsModel | undefined; - 'fpx'?: PaymentMethodDetailsFpxModel | undefined; - 'giropay'?: PaymentMethodDetailsGiropayModel | undefined; - 'gopay'?: PaymentMethodDetailsGopayModel | undefined; - 'grabpay'?: PaymentMethodDetailsGrabpayModel | undefined; - 'id_bank_transfer'?: PaymentMethodDetailsIdBankTransferModel | undefined; - 'ideal'?: PaymentMethodDetailsIdealModel | undefined; - 'interac_present'?: PaymentMethodDetailsInteracPresentModel | undefined; - 'kakao_pay'?: PaymentMethodDetailsKakaoPayModel | undefined; - 'klarna'?: PaymentMethodDetailsKlarnaModel | undefined; - 'konbini'?: PaymentMethodDetailsKonbiniModel | undefined; - 'kr_card'?: PaymentMethodDetailsKrCardModel | undefined; - 'link'?: PaymentMethodDetailsLinkModel | undefined; - 'mb_way'?: PaymentMethodDetailsMbWayModel | undefined; - 'mobilepay'?: PaymentMethodDetailsMobilepayModel | undefined; - 'multibanco'?: PaymentMethodDetailsMultibancoModel | undefined; - 'naver_pay'?: PaymentMethodDetailsNaverPayModel | undefined; - 'nz_bank_account'?: PaymentMethodDetailsNzBankAccountModel | undefined; - 'oxxo'?: PaymentMethodDetailsOxxoModel | undefined; - 'p24'?: PaymentMethodDetailsP24Model | undefined; - 'pay_by_bank'?: PaymentMethodDetailsPayByBankModel | undefined; - 'payco'?: PaymentMethodDetailsPaycoModel | undefined; - 'paynow'?: PaymentMethodDetailsPaynowModel | undefined; - 'paypal'?: PaymentMethodDetailsPaypalModel | undefined; - 'paypay'?: PaymentMethodDetailsPaypayModel | undefined; - 'payto'?: PaymentMethodDetailsPaytoModel | undefined; - 'pix'?: PaymentMethodDetailsPixModel | undefined; - 'promptpay'?: PaymentMethodDetailsPromptpayModel | undefined; - 'qris'?: PaymentMethodDetailsQrisModel | undefined; - 'rechnung'?: PaymentMethodDetailsRechnungModel | undefined; - 'revolut_pay'?: PaymentMethodDetailsRevolutPayModel | undefined; - 'samsung_pay'?: PaymentMethodDetailsSamsungPayModel | undefined; - 'satispay'?: PaymentMethodDetailsSatispayModel | undefined; - 'sepa_credit_transfer'?: PaymentMethodDetailsSepaCreditTransferModel | undefined; - 'sepa_debit'?: PaymentMethodDetailsSepaDebitModel | undefined; - 'shopeepay'?: PaymentMethodDetailsShopeepayModel | undefined; - 'sofort'?: PaymentMethodDetailsSofortModel | undefined; - 'stripe_account'?: PaymentMethodDetailsStripeAccountModel | undefined; - 'stripe_balance'?: PaymentMethodDetailsStripeBalanceModel | undefined; - 'swish'?: PaymentMethodDetailsSwishModel | undefined; - 'twint'?: PaymentMethodDetailsTwintModel | undefined; - 'type': string; - 'us_bank_account'?: PaymentMethodDetailsUsBankAccountModel | undefined; - 'wechat'?: PaymentMethodDetailsWechatModel | undefined; - 'wechat_pay'?: PaymentMethodDetailsWechatPayModel | undefined; - 'zip'?: PaymentMethodDetailsZipModel | undefined; +export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = { + +}; + +export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = { + 'missing_fields': string[]; }; -export type PaymentMethodDetailsIdealModel = { - 'bank': 'abn_amro' | 'asn_bank' | 'bunq' | 'buut' | 'finom' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe'; - 'bic': 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'BUUTNL2A' | 'FNOMNL22' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U'; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'transaction_id': string; - 'verified_name': string; +export type TaxProductResourceTaxSettingsStatusDetailsModel = { + 'active'?: TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel | undefined; + 'pending'?: TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel | undefined; }; -export type PaymentMethodDetailsSofortModel = { - 'bank_code': string; - 'bank_name': string; - 'bic': string; - 'country': string; - 'generated_sepa_debit': string | PaymentMethodModel; - 'generated_sepa_debit_mandate': string | MandateModel; - 'iban_last4': string; - 'preferred_language': 'de' | 'en' | 'es' | 'fr' | 'it' | 'nl' | 'pl'; - 'verified_name': string; +export type TaxSettingsModel = { + 'defaults': TaxProductResourceTaxSettingsDefaultsModel; + 'head_office': TaxProductResourceTaxSettingsHeadOfficeModel; + 'livemode': boolean; + 'object': 'tax.settings'; + 'status': 'active' | 'pending'; + 'status_details': TaxProductResourceTaxSettingsStatusDetailsModel; }; -export type ReviewModel = { - 'billing_zip': string; - 'charge': string | ChargeModel; - 'closed_reason': 'acknowledged' | 'approved' | 'canceled' | 'disputed' | 'payment_never_settled' | 'redacted' | 'refunded' | 'refunded_as_fraud'; - 'created': number; +export type TaxSettingsUpdatedModel = { + 'object': TaxSettingsModel; +}; + +export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = { + 'original_line_item': string; +}; + +export type TaxTransactionLineItemModel = { + 'amount': number; + 'amount_tax': number; 'id': string; - 'ip_address': string; - 'ip_address_location': RadarReviewResourceLocationModel; 'livemode': boolean; - 'object': 'review'; - 'open': boolean; - 'opened_reason': 'manual' | 'rule'; - 'payment_intent'?: string | PaymentIntentModel | undefined; - 'reason': string; - 'session': RadarReviewResourceSessionModel; + 'metadata': { + [key: string]: string; +}; + 'object': 'tax.transaction_line_item'; + 'product': string; + 'quantity': number; + 'reference': string; + 'reversal': TaxProductResourceTaxTransactionLineItemResourceReversalModel; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_code': string; + 'type': 'reversal' | 'transaction'; }; -export type ChargeTransferDataModel = { - 'amount': number; - 'destination': string | AccountModel; +export type TaxProductResourceTaxTransactionResourceReversalModel = { + 'original_transaction': string; }; -export type TransferDataModel = { - 'amount'?: number | undefined; - 'destination': string | AccountModel; +export type TaxProductResourceTaxTransactionShippingCostModel = { + 'amount': number; + 'amount_tax': number; + 'shipping_rate'?: string | undefined; + 'tax_behavior': 'exclusive' | 'inclusive'; + 'tax_breakdown'?: TaxProductResourceLineItemTaxBreakdownModel[] | undefined; + 'tax_code': string; }; -export type SetupIntentModel = { - 'application': string | ApplicationModel; - 'attach_to_self'?: boolean | undefined; - 'automatic_payment_methods': PaymentFlowsAutomaticPaymentMethodsSetupIntentModel; - 'cancellation_reason': 'abandoned' | 'duplicate' | 'requested_by_customer'; - 'client_secret': string; +export type TaxTransactionModel = { 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'description': string; - 'excluded_payment_method_types': Array<'acss_debit' | 'affirm' | 'afterpay_clearpay' | 'alipay' | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'gopay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'mb_way' | 'mobilepay' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'oxxo' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'qris' | 'rechnung' | 'revolut_pay' | 'samsung_pay' | 'satispay' | 'sepa_debit' | 'shopeepay' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'us_bank_account' | 'wechat_pay' | 'zip'>; - 'flow_directions'?: Array<'inbound' | 'outbound'> | undefined; + 'currency': string; + 'customer': string; + 'customer_details': TaxProductResourceCustomerDetailsModel; 'id': string; - 'last_setup_error': ApiErrorsModel; - 'latest_attempt': string | SetupAttemptModel; + 'line_items'?: { + 'data': TaxTransactionLineItemModel[]; + 'has_more': boolean; + 'object': 'list'; + 'url': string; +} | undefined; 'livemode': boolean; - 'mandate': string | MandateModel; 'metadata': { [key: string]: string; }; - 'next_action': SetupIntentNextActionModel; - 'object': 'setup_intent'; - 'on_behalf_of': string | AccountModel; - 'payment_method': string | PaymentMethodModel; - 'payment_method_configuration_details': PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel; - 'payment_method_options': SetupIntentPaymentMethodOptionsModel; - 'payment_method_types': string[]; - 'single_use_mandate': string | MandateModel; - 'status': 'canceled' | 'processing' | 'requires_action' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded'; - 'usage': string; + 'object': 'tax.transaction'; + 'posted_at': number; + 'reference': string; + 'reversal': TaxProductResourceTaxTransactionResourceReversalModel; + 'ship_from_details': TaxProductResourceShipFromDetailsModel; + 'shipping_cost': TaxProductResourceTaxTransactionShippingCostModel; + 'tax_date': number; + 'type': 'reversal' | 'transaction'; }; -export type PaymentMethodCardGeneratedCardModel = { - 'charge': string; - 'payment_method_details': CardGeneratedFromPaymentMethodDetailsModel; - 'setup_attempt': string | SetupAttemptModel; +export type TaxRateCreatedModel = { + 'object': TaxRateModel; }; -export type PaymentMethodCardModel = { - 'brand': string; - 'checks': PaymentMethodCardChecksModel; - 'country': string; - 'description'?: string | undefined; - 'display_brand': string; - 'exp_month': number; - 'exp_year': number; - 'fingerprint'?: string | undefined; - 'funding': string; - 'generated_from': PaymentMethodCardGeneratedCardModel; - 'iin'?: string | undefined; - 'issuer'?: string | undefined; - 'last4': string; - 'networks': NetworksModel; - 'regulated_status': 'regulated' | 'unregulated'; - 'three_d_secure_usage': ThreeDSecureUsageModel; - 'wallet': PaymentMethodCardWalletModel; +export type TaxRateUpdatedModel = { + 'object': TaxRateModel; }; -export type InvoiceSettingCustomerSettingModel = { - 'custom_fields': InvoiceSettingCustomFieldModel[]; - 'default_payment_method': string | PaymentMethodModel; - 'footer': string; - 'rendering_options': InvoiceSettingCustomerRenderingOptionsModel; +export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = { + 'splashscreen'?: string | FileModel | undefined; }; -export type ConnectAccountReferenceModel = { - 'account'?: string | AccountModel | undefined; - 'type': 'account' | 'self'; +export type TerminalConfigurationConfigurationResourceOfflineConfigModel = { + 'enabled': boolean; }; -export type SubscriptionAutomaticTaxModel = { - 'disabled_reason': 'requires_location_inputs'; - 'enabled': boolean; - 'liability': ConnectAccountReferenceModel; +export type TerminalConfigurationConfigurationResourceReaderSecurityConfigModel = { + 'admin_menu_passcode': string; }; -export type SubscriptionModel = { - 'application': string | ApplicationModel | DeletedApplicationModel; - 'application_fee_percent': number; - 'automatic_tax': SubscriptionAutomaticTaxModel; - 'billing_cadence'?: string | undefined; - 'billing_cycle_anchor': number; - 'billing_cycle_anchor_config': SubscriptionsResourceBillingCycleAnchorConfigModel; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'billing_schedules'?: SubscriptionsResourceBillingSchedulesModel[] | undefined; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'cancel_at': number; - 'cancel_at_period_end': boolean; - 'canceled_at': number; - 'cancellation_details': CancellationDetailsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'days_until_due': number; - 'default_payment_method': string | PaymentMethodModel; - 'default_source': string | PaymentSourceModel; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description': string; - 'discounts': Array; - 'ended_at': number; +export type TerminalConfigurationConfigurationResourceRebootWindowModel = { + 'end_hour': number; + 'start_hour': number; +}; + +export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = { + 'fixed_amounts'?: number[] | undefined; + 'percentages'?: number[] | undefined; + 'smart_tip_threshold'?: number | undefined; +}; + +export type TerminalConfigurationConfigurationResourceTippingModel = { + 'aed'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'aud'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'bgn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'cad'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'chf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'czk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'dkk'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'eur'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gbp'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'gip'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'hkd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'huf'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'jpy'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'mxn'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'myr'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nok'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'nzd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'pln'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'ron'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sek'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'sgd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; + 'usd'?: TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel | undefined; +}; + +export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'password': string; + 'ssid': string; + 'username': string; +}; + +export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = { + 'ca_certificate_file'?: string | undefined; + 'client_certificate_file': string; + 'private_key_file': string; + 'private_key_file_password'?: string | undefined; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = { + 'password': string; + 'ssid': string; +}; + +export type TerminalConfigurationConfigurationResourceWifiConfigModel = { + 'enterprise_eap_peap'?: TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel | undefined; + 'enterprise_eap_tls'?: TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel | undefined; + 'personal_psk'?: TerminalConfigurationConfigurationResourcePersonalPskWifiModel | undefined; + 'type': 'enterprise_eap_peap' | 'enterprise_eap_tls' | 'personal_psk'; +}; + +export type TerminalConfigurationModel = { + 'bbpos_wisepad3'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'bbpos_wisepos_e'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; 'id': string; - 'invoice_settings': SubscriptionsResourceSubscriptionInvoiceSettingsModel; - 'items': { - 'data': SubscriptionItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; + 'is_account_default': boolean; + 'livemode': boolean; + 'name': string; + 'object': 'terminal.configuration'; + 'offline'?: TerminalConfigurationConfigurationResourceOfflineConfigModel | undefined; + 'reader_security'?: TerminalConfigurationConfigurationResourceReaderSecurityConfigModel | undefined; + 'reboot_window'?: TerminalConfigurationConfigurationResourceRebootWindowModel | undefined; + 'stripe_s700'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'tipping'?: TerminalConfigurationConfigurationResourceTippingModel | undefined; + 'verifone_p400'?: TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel | undefined; + 'wifi'?: TerminalConfigurationConfigurationResourceWifiConfigModel | undefined; }; - 'last_price_migration_error'?: SubscriptionsResourcePriceMigrationErrorModel | undefined; - 'latest_invoice': string | InvoiceModel; + +export type TerminalConnectionTokenModel = { + 'location'?: string | undefined; + 'object': 'terminal.connection_token'; + 'secret': string; +}; + +export type TerminalLocationModel = { + 'address': AddressModel; + 'address_kana'?: LegalEntityJapanAddressModel | undefined; + 'address_kanji'?: LegalEntityJapanAddressModel | undefined; + 'configuration_overrides'?: string | undefined; + 'display_name': string; + 'display_name_kana'?: string | undefined; + 'display_name_kanji'?: string | undefined; + 'id': string; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'next_pending_invoice_item_invoice': number; - 'object': 'subscription'; - 'on_behalf_of': string | AccountModel; - 'pause_collection': SubscriptionsResourcePauseCollectionModel; - 'payment_settings': SubscriptionsResourcePaymentSettingsModel; - 'pending_invoice_item_interval': SubscriptionPendingInvoiceItemIntervalModel; - 'pending_setup_intent': string | SetupIntentModel; - 'pending_update': SubscriptionsResourcePendingUpdateModel; - 'prebilling'?: SubscriptionPrebillingDataModel | undefined; - 'schedule': string | SubscriptionScheduleModel; - 'start_date': number; - 'status': 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid'; - 'test_clock': string | TestHelpersTestClockModel; - 'transfer_data': SubscriptionTransferDataModel; - 'trial_end': number; - 'trial_settings': SubscriptionsTrialsResourceTrialSettingsModel; - 'trial_start': number; + 'object': 'terminal.location'; + 'phone'?: string | undefined; +}; + +export type TerminalOnboardingLinkAppleTermsAndConditionsModel = { + 'allow_relinking': boolean; + 'merchant_display_name': string; +}; + +export type TerminalOnboardingLinkLinkOptionsModel = { + 'apple_terms_and_conditions': TerminalOnboardingLinkAppleTermsAndConditionsModel; +}; + +export type TerminalOnboardingLinkModel = { + 'link_options': TerminalOnboardingLinkLinkOptionsModel; + 'link_type': 'apple_terms_and_conditions'; + 'object': 'terminal.onboarding_link'; + 'on_behalf_of': string; + 'redirect_url': string; +}; + +export type TerminalReaderReaderResourceCustomTextModel = { + 'description': string; + 'skip_button': string; + 'submit_button': string; + 'title': string; +}; + +export type TerminalReaderReaderResourceEmailModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceNumericModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourcePhoneModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceChoiceModel = { + 'id': string; + 'style': 'primary' | 'secondary'; + 'text': string; +}; + +export type TerminalReaderReaderResourceSelectionModel = { + 'choices': TerminalReaderReaderResourceChoiceModel[]; + 'id': string; + 'text': string; +}; + +export type TerminalReaderReaderResourceSignatureModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceTextModel = { + 'value': string; +}; + +export type TerminalReaderReaderResourceToggleModel = { + 'default_value': 'disabled' | 'enabled'; + 'description': string; + 'title': string; + 'value': 'disabled' | 'enabled'; +}; + +export type TerminalReaderReaderResourceInputModel = { + 'custom_text': TerminalReaderReaderResourceCustomTextModel; + 'email'?: TerminalReaderReaderResourceEmailModel | undefined; + 'numeric'?: TerminalReaderReaderResourceNumericModel | undefined; + 'phone'?: TerminalReaderReaderResourcePhoneModel | undefined; + 'required': boolean; + 'selection'?: TerminalReaderReaderResourceSelectionModel | undefined; + 'signature'?: TerminalReaderReaderResourceSignatureModel | undefined; + 'skipped'?: boolean | undefined; + 'text'?: TerminalReaderReaderResourceTextModel | undefined; + 'toggles': TerminalReaderReaderResourceToggleModel[]; + 'type': 'email' | 'numeric' | 'phone' | 'selection' | 'signature' | 'text'; +}; + +export type TerminalReaderReaderResourceCollectInputsActionModel = { + 'inputs': TerminalReaderReaderResourceInputModel[]; + 'metadata': { + [key: string]: string; +}; +}; + +export type TerminalReaderReaderResourceTippingConfigModel = { + 'amount_eligible'?: number | undefined; +}; + +export type TerminalReaderReaderResourceCollectConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; +}; + +export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = { + 'account'?: string | undefined; + 'collect_config'?: TerminalReaderReaderResourceCollectConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; + 'payment_method'?: PaymentMethodModel | undefined; +}; + +export type TerminalReaderReaderResourceConfirmConfigModel = { + 'return_url'?: string | undefined; +}; + +export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = { + 'account'?: string | undefined; + 'confirm_config'?: TerminalReaderReaderResourceConfirmConfigModel | undefined; + 'payment_intent': string | PaymentIntentModel; +}; + +export type TerminalReaderReaderResourceProcessConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; + 'return_url'?: string | undefined; + 'skip_tipping'?: boolean | undefined; + 'tipping'?: TerminalReaderReaderResourceTippingConfigModel | undefined; +}; + +export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = { + 'account'?: string | undefined; + 'payment_intent': string | PaymentIntentModel; + 'process_config'?: TerminalReaderReaderResourceProcessConfigModel | undefined; +}; + +export type TerminalReaderReaderResourceProcessSetupConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; +}; + +export type TerminalReaderReaderResourceProcessSetupIntentActionModel = { + 'generated_card'?: string | undefined; + 'process_config'?: TerminalReaderReaderResourceProcessSetupConfigModel | undefined; + 'setup_intent': string | SetupIntentModel; +}; + +export type TerminalReaderReaderResourceRefundPaymentConfigModel = { + 'enable_customer_cancellation'?: boolean | undefined; }; -export type PriceModel = { - 'active': boolean; - 'billing_scheme': 'per_unit' | 'tiered'; - 'created': number; - 'currency': string; - 'currency_options'?: { - [key: string]: CurrencyOptionModel; +export type TerminalReaderReaderResourceRefundPaymentActionModel = { + 'account'?: string | undefined; + 'amount'?: number | undefined; + 'charge'?: string | ChargeModel | undefined; + 'metadata'?: { + [key: string]: string; } | undefined; - 'custom_unit_amount': CustomUnitAmountModel; + 'payment_intent'?: string | PaymentIntentModel | undefined; + 'reason'?: 'duplicate' | 'fraudulent' | 'requested_by_customer' | undefined; + 'refund'?: string | RefundModel | undefined; + 'refund_application_fee'?: boolean | undefined; + 'refund_payment_config'?: TerminalReaderReaderResourceRefundPaymentConfigModel | undefined; + 'reverse_transfer'?: boolean | undefined; +}; + +export type TerminalReaderReaderResourceLineItemModel = { + 'amount': number; + 'description': string; + 'quantity': number; +}; + +export type TerminalReaderReaderResourceCartModel = { + 'currency': string; + 'line_items': TerminalReaderReaderResourceLineItemModel[]; + 'tax': number; + 'total': number; +}; + +export type TerminalReaderReaderResourceSetReaderDisplayActionModel = { + 'cart': TerminalReaderReaderResourceCartModel; + 'type': 'cart'; +}; + +export type TerminalReaderReaderResourceReaderActionModel = { + 'collect_inputs'?: TerminalReaderReaderResourceCollectInputsActionModel | undefined; + 'collect_payment_method'?: TerminalReaderReaderResourceCollectPaymentMethodActionModel | undefined; + 'confirm_payment_intent'?: TerminalReaderReaderResourceConfirmPaymentIntentActionModel | undefined; + 'failure_code': string; + 'failure_message': string; + 'process_payment_intent'?: TerminalReaderReaderResourceProcessPaymentIntentActionModel | undefined; + 'process_setup_intent'?: TerminalReaderReaderResourceProcessSetupIntentActionModel | undefined; + 'refund_payment'?: TerminalReaderReaderResourceRefundPaymentActionModel | undefined; + 'set_reader_display'?: TerminalReaderReaderResourceSetReaderDisplayActionModel | undefined; + 'status': 'failed' | 'in_progress' | 'succeeded'; + 'type': 'collect_inputs' | 'collect_payment_method' | 'confirm_payment_intent' | 'process_payment_intent' | 'process_setup_intent' | 'refund_payment' | 'set_reader_display'; +}; + +export type TerminalReaderModel = { + 'action': TerminalReaderReaderResourceReaderActionModel; + 'device_sw_version': string; + 'device_type': 'bbpos_chipper2x' | 'bbpos_wisepad3' | 'bbpos_wisepos_e' | 'mobile_phone_reader' | 'simulated_stripe_s700' | 'simulated_wisepos_e' | 'stripe_m2' | 'stripe_s700' | 'verifone_P400'; 'id': string; + 'ip_address': string; + 'label': string; + 'last_seen_at': number; 'livemode': boolean; - 'lookup_key': string; + 'location': string | TerminalLocationModel; 'metadata': { [key: string]: string; }; - 'migrate_to'?: MigrateToModel | undefined; - 'nickname': string; - 'object': 'price'; - 'product': string | ProductModel | DeletedProductModel; - 'recurring': RecurringModel; - 'tax_behavior': 'exclusive' | 'inclusive' | 'unspecified'; - 'tiers'?: PriceTierModel[] | undefined; - 'tiers_mode': 'graduated' | 'volume'; - 'transform_quantity': TransformQuantityModel; - 'type': 'one_time' | 'recurring'; - 'unit_amount': number; - 'unit_amount_decimal': string; + 'object': 'terminal.reader'; + 'serial_number': string; + 'status': 'offline' | 'online'; }; -export type ProductModel = { - 'active': boolean; +export type TerminalReaderActionFailedModel = { + 'object': TerminalReaderModel; +}; + +export type TerminalReaderActionSucceededModel = { + 'object': TerminalReaderModel; +}; + +export type TerminalReaderActionUpdatedModel = { + 'object': TerminalReaderModel; +}; + +export type TerminalReaderCollectedDataResourceMagstripeDataModel = { + 'data': string; +}; + +export type TerminalReaderCollectedDataModel = { 'created': number; - 'default_price'?: string | PriceModel | undefined; - 'description': string; 'id': string; - 'images': string[]; 'livemode': boolean; - 'marketing_features': ProductMarketingFeatureModel[]; - 'metadata': { - [key: string]: string; + 'magstripe': TerminalReaderCollectedDataResourceMagstripeDataModel; + 'object': 'terminal.reader_collected_data'; + 'type': 'magstripe'; }; - 'name': string; - 'object': 'product'; - 'package_dimensions': PackageDimensionsModel; - 'shippable': boolean; - 'statement_descriptor'?: string | undefined; - 'tax_code': string | TaxCodeModel; - 'type': 'good' | 'service'; - 'unit_label'?: string | undefined; - 'updated': number; - 'url': string; + +export type TestHelpersTestClockAdvancingModel = { + 'object': TestHelpersTestClockModel; }; -export type SubscriptionsResourceBillingSchedulesAppliesToModel = { - 'price': string | PriceModel; - 'type': 'price'; +export type TestHelpersTestClockCreatedModel = { + 'object': TestHelpersTestClockModel; }; -export type SubscriptionsResourceBillingSchedulesModel = { - 'applies_to': SubscriptionsResourceBillingSchedulesAppliesToModel[]; - 'bill_until': SubscriptionsResourceBillingSchedulesBillUntilModel; - 'key': string; +export type TestHelpersTestClockDeletedModel = { + 'object': TestHelpersTestClockModel; }; -export type TaxIdModel = { - 'country': string; +export type TestHelpersTestClockInternalFailureModel = { + 'object': TestHelpersTestClockModel; +}; + +export type TestHelpersTestClockReadyModel = { + 'object': TestHelpersTestClockModel; +}; + +export type TokenModel = { + 'bank_account'?: BankAccountModel | undefined; + 'card'?: CardModel | undefined; + 'client_ip': string; 'created': number; - 'customer': string | CustomerModel; - 'customer_account'?: string | undefined; 'id': string; 'livemode': boolean; - 'object': 'tax_id'; - 'owner': TaxIDsOwnerModel; - 'type': 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin'; - 'value': string; - 'verification': TaxIdVerificationModel; + 'object': 'token'; + 'type': string; + 'used': boolean; }; -export type TaxIDsOwnerModel = { - 'account'?: string | AccountModel | undefined; - 'application'?: string | ApplicationModel | undefined; - 'customer'?: string | CustomerModel | undefined; - 'customer_account'?: string | undefined; - 'type': 'account' | 'application' | 'customer' | 'self'; +export type TopupCanceledModel = { + 'object': TopupModel; }; -export type SubscriptionsResourceSubscriptionInvoiceSettingsModel = { - 'account_tax_ids': Array; - 'issuer': ConnectAccountReferenceModel; +export type TopupCreatedModel = { + 'object': TopupModel; }; -export type InvoiceModel = { - 'account_country': string; - 'account_name': string; - 'account_tax_ids': Array; - 'amount_due': number; - 'amount_overpaid': number; - 'amount_paid': number; - 'amount_remaining': number; - 'amount_shipping': number; - 'amounts_due'?: PaymentPlanAmountModel[] | undefined; - 'application': string | ApplicationModel | DeletedApplicationModel; - 'attempt_count': number; - 'attempted': boolean; - 'auto_advance'?: boolean | undefined; - 'automatic_tax': AutomaticTaxModel; - 'automatically_finalizes_at': number; - 'billing_reason': 'automatic_pending_invoice_item_invoice' | 'manual' | 'quote_accept' | 'subscription' | 'subscription_create' | 'subscription_cycle' | 'subscription_threshold' | 'subscription_update' | 'upcoming'; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'confirmation_secret'?: InvoicesResourceConfirmationSecretModel | undefined; - 'created': number; - 'currency': string; - 'custom_fields': InvoiceSettingCustomFieldModel[]; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'customer_address': AddressModel; - 'customer_email': string; - 'customer_name': string; - 'customer_phone': string; - 'customer_shipping': ShippingModel; - 'customer_tax_exempt': 'exempt' | 'none' | 'reverse'; - 'customer_tax_ids'?: InvoicesResourceInvoiceTaxIdModel[] | undefined; - 'default_margins'?: Array | undefined; - 'default_payment_method': string | PaymentMethodModel; - 'default_source': string | PaymentSourceModel; - 'default_tax_rates': TaxRateModel[]; - 'description': string; - 'discounts': Array; - 'due_date': number; - 'effective_at': number; - 'ending_balance': number; - 'footer': string; - 'from_invoice': InvoicesResourceFromInvoiceModel; - 'hosted_invoice_url'?: string | undefined; - 'id'?: string | undefined; - 'invoice_pdf'?: string | undefined; - 'issuer': ConnectAccountReferenceModel; - 'last_finalization_error': ApiErrorsModel; - 'latest_revision': string | InvoiceModel; - 'lines': { - 'data': LineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; +export type TopupFailedModel = { + 'object': TopupModel; }; - 'livemode': boolean; - 'metadata': { - [key: string]: string; + +export type TopupReversedModel = { + 'object': TopupModel; }; - 'next_payment_attempt': number; - 'number': string; - 'object': 'invoice'; - 'on_behalf_of': string | AccountModel; - 'parent': BillingBillResourceInvoicingParentsInvoiceParentModel; - 'payment_settings': InvoicesPaymentSettingsModel; - 'payments'?: { - 'data': InvoicePaymentModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'period_end': number; - 'period_start': number; - 'post_payment_credit_notes_amount': number; - 'pre_payment_credit_notes_amount': number; - 'receipt_number': string; - 'rendering': InvoicesResourceInvoiceRenderingModel; - 'shipping_cost': InvoicesResourceShippingCostModel; - 'shipping_details': ShippingModel; - 'starting_balance': number; - 'statement_descriptor': string; - 'status': 'draft' | 'open' | 'paid' | 'uncollectible' | 'void'; - 'status_transitions': InvoicesResourceStatusTransitionsModel; - 'subscription'?: string | SubscriptionModel | undefined; - 'subtotal': number; - 'subtotal_excluding_tax': number; - 'test_clock': string | TestHelpersTestClockModel; - 'threshold_reason'?: InvoiceThresholdReasonModel | undefined; - 'total': number; - 'total_discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'total_excluding_tax': number; - 'total_margin_amounts'?: MarginsResourceMarginAmountModel[] | undefined; - 'total_pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; - 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; - 'webhooks_delivered_at': number; + +export type TopupSucceededModel = { + 'object': TopupModel; }; -export type DeletedDiscountModel = { - 'checkout_session': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'deleted': boolean; - 'id': string; - 'invoice': string; - 'invoice_item': string; - 'object': 'discount'; - 'promotion_code': string | PromotionCodeModel; - 'source': DiscountSourceModel; - 'start': number; - 'subscription': string; - 'subscription_item': string; +export type TransferCreatedModel = { + 'object': TransferModel; }; -export type InvoicesResourceFromInvoiceModel = { - 'action': string; - 'invoice': string | InvoiceModel; +export type TransferReversedModel = { + 'object': TransferModel; }; -export type BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TransferUpdatedModel = { + 'object': TransferModel; }; -export type BillingCreditGrantsResourceBalanceCreditModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_application_invoice_voided': BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoidedModel; - 'type': 'credits_application_invoice_voided' | 'credits_granted'; +export type TreasuryReceivedCreditsResourceStatusTransitionsModel = { + 'posted_at': number; }; -export type BillingCreditBalanceTransactionModel = { - 'created': number; - 'credit': BillingCreditGrantsResourceBalanceCreditModel; - 'credit_grant': string | BillingCreditGrantModel; - 'debit': BillingCreditGrantsResourceBalanceDebitModel; - 'effective_at': number; - 'id': string; - 'livemode': boolean; - 'object': 'billing.credit_balance_transaction'; - 'test_clock': string | TestHelpersTestClockModel; - 'type': 'credit' | 'debit'; +export type TreasuryTransactionsResourceBalanceImpactModel = { + 'cash': number; + 'inbound_pending': number; + 'outbound_pending': number; }; -export type BillingCreditGrantModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'applicability_config': BillingCreditGrantsResourceApplicabilityConfigModel; - 'category': 'paid' | 'promotional'; +export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = { + 'issuing_dispute': string; +}; + +export type TreasuryReceivedDebitsResourceStatusTransitionsModel = { + 'completed_at': number; +}; + +export type TreasuryDebitReversalModel = { + 'amount': number; 'created': number; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'effective_at': number; - 'expires_at': number; + 'currency': string; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; + 'linked_flows': TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel; 'livemode': boolean; 'metadata': { - [key: string]: string; -}; - 'name': string; - 'object': 'billing.credit_grant'; - 'priority'?: number | undefined; - 'test_clock': string | TestHelpersTestClockModel; - 'updated': number; - 'voided_at': number; + [key: string]: string; +}; + 'network': 'ach' | 'card'; + 'object': 'treasury.debit_reversal'; + 'received_debit': string; + 'status': 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingCreditGrantsResourceBalanceCreditsAppliedModel = { - 'invoice': string | InvoiceModel; - 'invoice_line_item': string; +export type TreasuryInboundTransfersResourceFailureDetailsModel = { + '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'; }; -export type BillingCreditGrantsResourceBalanceDebitModel = { - 'amount': BillingCreditGrantsResourceAmountModel; - 'credits_applied': BillingCreditGrantsResourceBalanceCreditsAppliedModel; - 'type': 'credits_applied' | 'credits_expired' | 'credits_voided'; +export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = { + 'received_debit': string; }; -export type InvoicesResourcePretaxCreditAmountModel = { - 'amount': number; - 'credit_balance_transaction'?: string | BillingCreditBalanceTransactionModel | undefined; - 'discount'?: string | DiscountModel | DeletedDiscountModel | undefined; - 'margin'?: string | MarginModel | undefined; - 'type': 'credit_balance_transaction' | 'discount' | 'margin'; +export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = { + 'canceled_at'?: number | undefined; + 'failed_at': number; + 'succeeded_at': number; }; -export type LineItemModel = { +export type TreasuryInboundTransferModel = { 'amount': number; + 'cancelable': boolean; + 'created': number; 'currency': string; 'description': string; - 'discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'discountable': boolean; - 'discounts': Array; + 'failure_details': TreasuryInboundTransfersResourceFailureDetailsModel; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string; + 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; 'livemode': boolean; - 'margin_amounts'?: MarginsResourceMarginAmountModel[] | undefined; - 'margins'?: Array | undefined; 'metadata': { [key: string]: string; }; - 'object': 'line_item'; - 'parent': BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel; - 'period': InvoiceLineItemPeriodModel; - 'pretax_credit_amounts': InvoicesResourcePretaxCreditAmountModel[]; - 'pricing': BillingBillResourceInvoicingPricingPricingModel; - 'quantity': number; - 'subscription': string | SubscriptionModel; - 'tax_calculation_reference'?: TaxProductIntegrationResourceTaxCalculationReferenceModel | undefined; - 'taxes': BillingBillResourceInvoicingTaxesTaxModel[]; + 'object': 'treasury.inbound_transfer'; + 'origin_payment_method': string; + 'origin_payment_method_details': InboundTransfersModel; + 'returned': boolean; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; + 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel = { - 'metadata': { - [key: string]: string; +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = { + 'ip_address': string; + 'present': boolean; }; - 'pause_collection'?: BillingBillResourceInvoicingCommonInvoicePauseCollectionModel | undefined; - 'subscription': string | SubscriptionModel; - 'subscription_proration_date'?: number | undefined; + +export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; }; -export type BillingBillResourceInvoicingParentsInvoiceParentModel = { - 'billing_cadence_details'?: BillingBillResourceInvoicingParentsInvoiceBillingCadenceParentModel | undefined; - 'quote_details': BillingBillResourceInvoicingParentsInvoiceQuoteParentModel; - 'subscription_details': BillingBillResourceInvoicingParentsInvoiceSubscriptionParentModel; - 'type': 'billing_cadence_details' | 'quote_details' | 'subscription_details'; +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = { + 'canceled_at': number; + 'failed_at': number; + 'posted_at': number; + 'returned_at': number; }; -export type InvoicePaymentModel = { - 'amount_paid': number; - 'amount_requested': number; - 'created': number; - 'currency': string; - 'id': string; - 'invoice': string | InvoiceModel | DeletedInvoiceModel; - 'is_default': boolean; - 'livemode': boolean; - 'object': 'invoice_payment'; - 'payment': InvoicesPaymentsInvoicePaymentAssociatedPaymentModel; - 'status': string; - 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitionsModel; +export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = { + 'trace_id': string; }; -export type SubscriptionScheduleModel = { - 'application': string | ApplicationModel | DeletedApplicationModel; - 'billing_behavior'?: 'prorate_on_next_phase' | 'prorate_up_front' | undefined; - 'billing_mode': SubscriptionsResourceBillingModeModel; - 'canceled_at': number; - 'completed_at': number; +export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = { + 'chips': string; + 'imad': string; + 'omad': string; +}; + +export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundPaymentsResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel | undefined; +}; + +export type TreasuryOutboundPaymentModel = { + 'amount': number; + 'cancelable': boolean; 'created': number; - 'current_phase': SubscriptionScheduleCurrentPhaseModel; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'default_settings': SubscriptionSchedulesResourceDefaultSettingsModel; - 'end_behavior': 'cancel' | 'none' | 'release' | 'renew'; + 'currency': string; + 'customer': string; + 'description': string; + 'destination_payment_method': string; + 'destination_payment_method_details': OutboundPaymentsPaymentMethodDetailsModel; + 'end_user_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'last_price_migration_error'?: SubscriptionsResourcePriceMigrationErrorModel | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'subscription_schedule'; - 'phases': SubscriptionSchedulePhaseConfigurationModel[]; - 'prebilling'?: SubscriptionPrebillingDataModel | undefined; - 'released_at': number; - 'released_subscription': string; - 'status': 'active' | 'canceled' | 'completed' | 'not_started' | 'released'; - 'subscription': string | SubscriptionModel; - 'test_clock': string | TestHelpersTestClockModel; + 'object': 'treasury.outbound_payment'; + 'returned_details': TreasuryOutboundPaymentsResourceReturnedStatusModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; + 'tracking_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel; + 'transaction': string | TreasuryTransactionModel; }; -export type SubscriptionSchedulesResourceDefaultSettingsModel = { - 'application_fee_percent': number; - 'automatic_tax'?: SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel | undefined; - 'billing_cycle_anchor': 'automatic' | 'phase_start'; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'default_payment_method': string | PaymentMethodModel; - 'description': string; - 'invoice_settings': InvoiceSettingSubscriptionScheduleSettingModel; - 'on_behalf_of': string | AccountModel; - 'transfer_data': SubscriptionTransferDataModel; +export type TreasuryOutboundTransfersResourceAchNetworkDetailsModel = { + 'addenda': string; }; -export type SubscriptionTransferDataModel = { - 'amount_percent': number; - 'destination': string | AccountModel; +export type TreasuryOutboundTransfersResourceNetworkDetailsModel = { + 'ach'?: TreasuryOutboundTransfersResourceAchNetworkDetailsModel | undefined; + 'type': 'ach'; }; -export type SubscriptionSchedulePhaseConfigurationModel = { - 'add_invoice_items': SubscriptionScheduleAddInvoiceItemModel[]; - 'application_fee_percent': number; - 'automatic_tax'?: SchedulesPhaseAutomaticTaxModel | undefined; - 'billing_cycle_anchor': 'automatic' | 'phase_start'; - 'billing_thresholds': SubscriptionBillingThresholdsModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'currency': string; - 'default_payment_method': string | PaymentMethodModel; - 'default_tax_rates'?: TaxRateModel[] | undefined; - 'description': string; - 'discounts': DiscountsResourceStackableDiscountModel[]; - 'end_date': number; - 'invoice_settings': InvoiceSettingSubscriptionSchedulePhaseSettingModel; - 'items': SubscriptionScheduleConfigurationItemModel[]; - 'metadata': { - [key: string]: string; +export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { + 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; + 'transaction': string | TreasuryTransactionModel; }; - 'on_behalf_of': string | AccountModel; - 'pause_collection'?: SubscriptionSchedulesResourcePauseCollectionModel | undefined; - 'proration_behavior': 'always_invoice' | 'create_prorations' | 'none'; - 'start_date': number; - 'transfer_data': SubscriptionTransferDataModel; - 'trial_continuation'?: 'continue' | 'none' | undefined; - 'trial_end': number; - 'trial_settings'?: SubscriptionSchedulesResourceTrialSettingsModel | undefined; + +export type TreasuryOutboundTransfersResourceStatusTransitionsModel = { + 'canceled_at': number; + 'failed_at': number; + 'posted_at': number; + 'returned_at': number; }; -export type CreditNoteModel = { +export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = { + 'trace_id': string; +}; + +export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = { + 'chips': string; + 'imad': string; + 'omad': string; +}; + +export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = { + 'ach'?: TreasuryOutboundTransfersResourceAchTrackingDetailsModel | undefined; + 'type': 'ach' | 'us_domestic_wire'; + 'us_domestic_wire'?: TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel | undefined; +}; + +export type TreasuryOutboundTransferModel = { 'amount': number; - 'amount_shipping': number; + 'cancelable': boolean; 'created': number; 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'customer_balance_transaction': string | CustomerBalanceTransactionModel; - 'discount_amount': number; - 'discount_amounts': DiscountsResourceDiscountAmountModel[]; - 'effective_at': number; + 'description': string; + 'destination_payment_method': string; + 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; + 'expected_arrival_date': number; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string | InvoiceModel; - 'lines': { - 'data': CreditNoteLineItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -}; 'livemode': boolean; - 'memo': string; 'metadata': { [key: string]: string; }; - 'number': string; - 'object': 'credit_note'; - 'out_of_band_amount': number; - 'pdf': string; - 'post_payment_amount': number; - 'pre_payment_amount': number; - 'pretax_credit_amounts': CreditNotesPretaxCreditAmountModel[]; - 'reason': 'duplicate' | 'fraudulent' | 'order_change' | 'product_unsatisfactory'; - 'refunds': CreditNoteRefundModel[]; - 'shipping_cost': InvoicesResourceShippingCostModel; - 'status': 'issued' | 'void'; - 'subtotal': number; - 'subtotal_excluding_tax': number; - 'total': number; - 'total_excluding_tax': number; - 'total_taxes': BillingBillResourceInvoicingTaxesTaxModel[]; - 'type': 'mixed' | 'post_payment' | 'pre_payment'; - 'voided_at': number; + 'network_details'?: TreasuryOutboundTransfersResourceNetworkDetailsModel | undefined; + 'object': 'treasury.outbound_transfer'; + 'returned_details': TreasuryOutboundTransfersResourceReturnedDetailsModel; + 'statement_descriptor': string; + 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; + 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; + 'tracking_details': TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel; + 'transaction': string | TreasuryTransactionModel; +}; + +export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = { + 'bank_name': string; + 'last4': string; + 'routing_number': string; +}; + +export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = { + 'balance'?: 'payments' | undefined; + 'billing_details': TreasurySharedResourceBillingDetailsModel; + 'financial_account'?: ReceivedPaymentMethodDetailsFinancialAccountModel | undefined; + 'issuing_card'?: string | undefined; + 'type': 'balance' | 'financial_account' | 'issuing_card' | 'stripe' | 'us_bank_account'; + 'us_bank_account'?: TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel | undefined; +}; + +export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { + 'credit_reversal'?: TreasuryCreditReversalModel | undefined; + 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; + 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; + 'payout'?: PayoutModel | undefined; + 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +}; + +export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { + 'credit_reversal': string; + 'issuing_authorization': string; + 'issuing_transaction': string; + 'source_flow': string; + 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; + 'source_flow_type': string; +}; + +export type TreasuryReceivedCreditsResourceAchNetworkDetailsModel = { + 'addenda': string; +}; + +export type TreasuryReceivedCreditsResourceNetworkDetailsModel = { + 'ach'?: TreasuryReceivedCreditsResourceAchNetworkDetailsModel | undefined; + 'type': 'ach'; +}; + +export type TreasuryReceivedCreditsResourceReversalDetailsModel = { + 'deadline': number; + 'restricted_reason': 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted'; }; -export type CustomerBalanceTransactionModel = { +export type TreasuryReceivedCreditModel = { 'amount': number; - 'checkout_session': string | CheckoutSessionModel; 'created': number; - 'credit_note': string | CreditNoteModel; 'currency': string; - 'customer': string | CustomerModel; - 'customer_account'?: string | undefined; 'description': string; - 'ending_balance': number; + 'failure_code': 'account_closed' | 'account_frozen' | 'international_transaction' | 'other'; + 'financial_account': string; + 'hosted_regulatory_receipt_url': string; 'id': string; - 'invoice': string | InvoiceModel; + 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; + 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'object': 'customer_balance_transaction'; - 'type': 'adjustment' | 'applied_to_invoice' | 'checkout_session_subscription_payment' | 'checkout_session_subscription_payment_canceled' | 'credit_note' | 'initial' | 'invoice_overpaid' | 'invoice_too_large' | 'invoice_too_small' | 'migration' | 'unapplied_from_invoice' | 'unspent_receiver_credit'; + 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; + 'network_details'?: TreasuryReceivedCreditsResourceNetworkDetailsModel | undefined; + 'object': 'treasury.received_credit'; + 'reversal_details': TreasuryReceivedCreditsResourceReversalDetailsModel; + 'status': 'failed' | 'succeeded'; + 'transaction': string | TreasuryTransactionModel; }; -export type QuoteModel = { - 'allow_backdated_lines'?: boolean | undefined; - 'amount_subtotal': number; - 'amount_total': number; - 'application': string | ApplicationModel | DeletedApplicationModel; - 'application_fee_amount': number; - 'application_fee_percent': number; - 'automatic_tax': QuotesResourceAutomaticTaxModel; - 'collection_method': 'charge_automatically' | 'send_invoice'; - 'computed': QuotesResourceComputedModel; - 'created': number; - 'currency': string; - 'customer': string | CustomerModel | DeletedCustomerModel; - 'customer_account'?: string | undefined; - 'default_tax_rates'?: Array | undefined; - 'description': string; - 'discounts': Array; - 'expires_at': number; - 'footer': string; - 'from_quote': QuotesResourceFromQuoteModel; - 'header': string; - 'id': string; - 'invoice': string | InvoiceModel | DeletedInvoiceModel; - 'invoice_settings': InvoiceSettingQuoteSettingModel; - 'line_items'?: { - 'data': ItemModel[]; - 'has_more': boolean; - 'object': 'list'; - 'url': string; -} | undefined; - 'lines'?: string[] | undefined; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryReceivedDebitsResourceLinkedFlowsModel = { + 'debit_reversal': string; + 'inbound_transfer': string; + 'issuing_authorization': string; + 'issuing_transaction': string; + 'payout': string; + 'received_credit_capital_withholding'?: string | undefined; }; - 'number': string; - 'object': 'quote'; - 'on_behalf_of': string | AccountModel; - 'status': 'accepted' | 'accepting' | 'canceled' | 'draft' | 'open' | 'stale'; - 'status_details'?: QuotesResourceStatusDetailsStatusDetailsModel | undefined; - 'status_transitions': QuotesResourceStatusTransitionsModel; - 'subscription': string | SubscriptionModel; - 'subscription_data': QuotesResourceSubscriptionDataSubscriptionDataModel; - 'subscription_data_overrides'?: QuotesResourceSubscriptionDataSubscriptionDataOverridesModel[] | undefined; - 'subscription_schedule': string | SubscriptionScheduleModel; - 'subscription_schedules'?: QuotesResourceSubscriptionScheduleWithAppliesToModel[] | undefined; - 'test_clock': string | TestHelpersTestClockModel; - 'total_details': QuotesResourceTotalDetailsModel; - 'transfer_data': QuotesResourceTransferDataModel; + +export type TreasuryReceivedDebitsResourceAchNetworkDetailsModel = { + 'addenda': string; }; -export type QuotesResourceFromQuoteModel = { - 'is_revision': boolean; - 'quote': string | QuoteModel; +export type TreasuryReceivedDebitsResourceNetworkDetailsModel = { + 'ach'?: TreasuryReceivedDebitsResourceAchNetworkDetailsModel | undefined; + 'type': 'ach'; }; -export type TaxFormModel = { - 'au_serr'?: TaxReportingResourceTaxFormAuSerrModel | undefined; - 'ca_mrdp'?: TaxReportingResourceTaxFormCaMrdpModel | undefined; - 'corrected_by': string | TaxFormModel; - 'created': number; - 'eu_dac7'?: TaxReportingResourceTaxFormEuDac7Model | undefined; - 'filing_statuses': TaxReportingResourceTaxFormFilingStatusModel[]; - 'gb_mrdp'?: TaxReportingResourceTaxFormGbMrdpModel | undefined; - 'id': string; - 'livemode': boolean; - 'nz_mrdp'?: TaxReportingResourceTaxFormNzMrdpModel | undefined; - 'object': 'tax.form'; - 'payee': TaxReportingResourceTaxFormPayeeModel; - 'type': 'au_serr' | 'ca_mrdp' | 'eu_dac7' | 'gb_mrdp' | 'nz_mrdp' | 'us_1099_k' | 'us_1099_misc' | 'us_1099_nec'; - 'us_1099_k'?: TaxReportingResourceTaxFormUs1099KModel | undefined; - 'us_1099_misc'?: TaxReportingResourceTaxFormUs1099MiscModel | undefined; - 'us_1099_nec'?: TaxReportingResourceTaxFormUs1099NecModel | undefined; +export type TreasuryReceivedDebitsResourceReversalDetailsModel = { + 'deadline': number; + 'restricted_reason': 'already_reversed' | 'deadline_passed' | 'network_restricted' | 'other' | 'source_flow_restricted'; }; -export type TreasuryCreditReversalModel = { +export type TreasuryReceivedDebitModel = { 'amount': number; 'created': number; 'currency': string; + 'description': string; + 'failure_code': 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other'; 'financial_account': string; 'hosted_regulatory_receipt_url': string; 'id': string; + 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; + 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; 'livemode': boolean; - 'metadata': { - [key: string]: string; -}; - 'network': 'ach' | 'stripe'; - 'object': 'treasury.credit_reversal'; - 'received_credit': string; - 'status': 'canceled' | 'posted' | 'processing'; - 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; + 'network': 'ach' | 'card' | 'stripe'; + 'network_details'?: TreasuryReceivedDebitsResourceNetworkDetailsModel | undefined; + 'object': 'treasury.received_debit'; + 'reversal_details': TreasuryReceivedDebitsResourceReversalDetailsModel; + 'status': 'failed' | 'succeeded'; 'transaction': string | TreasuryTransactionModel; }; @@ -1766,6 +13014,27 @@ export type TreasuryTransactionsResourceFlowDetailsModel = { 'type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; }; +export type TreasuryTransactionEntryModel = { + 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; + 'created': number; + 'currency': string; + 'effective_at': number; + 'financial_account': string; + 'flow': string; + 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; + 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'id': string; + 'livemode': boolean; + 'object': 'treasury.transaction_entry'; + 'transaction': string | TreasuryTransactionModel; + 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; +}; + +export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = { + 'posted_at': number; + 'void_at': number; +}; + export type TreasuryTransactionModel = { 'amount': number; 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; @@ -1789,205 +13058,299 @@ export type TreasuryTransactionModel = { 'status_transitions': TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel; }; -export type TreasuryDebitReversalModel = { +export type TreasuryCreditReversalModel = { 'amount': number; 'created': number; 'currency': string; 'financial_account': string; 'hosted_regulatory_receipt_url': string; 'id': string; - 'linked_flows': TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'network': 'ach' | 'card'; - 'object': 'treasury.debit_reversal'; - 'received_debit': string; - 'status': 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryReceivedDebitsResourceStatusTransitionsModel; + 'network': 'ach' | 'stripe'; + 'object': 'treasury.credit_reversal'; + 'received_credit': string; + 'status': 'canceled' | 'posted' | 'processing'; + 'status_transitions': TreasuryReceivedCreditsResourceStatusTransitionsModel; 'transaction': string | TreasuryTransactionModel; }; -export type TreasuryInboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description': string; - 'failure_details': TreasuryInboundTransfersResourceFailureDetailsModel; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'linked_flows': TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryCreditReversalCreatedModel = { + 'object': TreasuryCreditReversalModel; }; - 'object': 'treasury.inbound_transfer'; - 'origin_payment_method': string; - 'origin_payment_method_details': InboundTransfersModel; - 'returned': boolean; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'processing' | 'succeeded'; - 'status_transitions': TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryCreditReversalPostedModel = { + 'object': TreasuryCreditReversalModel; }; -export type TreasuryOutboundPaymentsResourceReturnedStatusModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryDebitReversalCompletedModel = { + 'object': TreasuryDebitReversalModel; }; -export type TreasuryOutboundPaymentModel = { - 'amount': number; - 'cancelable': boolean; +export type TreasuryDebitReversalCreatedModel = { + 'object': TreasuryDebitReversalModel; +}; + +export type TreasuryDebitReversalInitialCreditGrantedModel = { + 'object': TreasuryDebitReversalModel; +}; + +export type TreasuryFinancialAccountsResourceBalanceModel = { + 'cash': { + [key: string]: number; +}; + 'inbound_pending': { + [key: string]: number; +}; + 'outbound_pending': { + [key: string]: number; +}; +}; + +export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = { + 'code': 'activating' | 'capability_not_requested' | 'financial_account_closed' | 'rejected_other' | 'rejected_unsupported_business' | 'requirements_past_due' | 'requirements_pending_verification' | 'restricted_by_platform' | 'restricted_other'; + 'resolution': 'contact_stripe' | 'provide_information' | 'remove_restriction'; + 'restriction'?: 'inbound_flows' | 'outbound_flows' | undefined; +}; + +export type TreasuryFinancialAccountsResourceToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = { + 'bank'?: 'evolve' | 'fifth_third' | 'goldman_sachs' | undefined; + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceInboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = { + 'requested': boolean; + 'status': 'active' | 'pending' | 'restricted'; + 'status_details': TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel[]; +}; + +export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceOutboundTransfersModel = { + 'ach'?: TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel | undefined; + 'us_domestic_wire'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; +}; + +export type TreasuryFinancialAccountFeaturesModel = { + 'card_issuing'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'deposit_insurance'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'financial_addresses'?: TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel | undefined; + 'inbound_transfers'?: TreasuryFinancialAccountsResourceInboundTransfersModel | undefined; + 'intra_stripe_flows'?: TreasuryFinancialAccountsResourceToggleSettingsModel | undefined; + 'object': 'treasury.financial_account_features'; + 'outbound_payments'?: TreasuryFinancialAccountsResourceOutboundPaymentsModel | undefined; + 'outbound_transfers'?: TreasuryFinancialAccountsResourceOutboundTransfersModel | undefined; +}; + +export type TreasuryFinancialAccountsResourceAbaRecordModel = { + 'account_holder_name': string; + 'account_number'?: string | undefined; + 'account_number_last4': string; + 'bank_name': string; + 'routing_number': string; +}; + +export type TreasuryFinancialAccountsResourceFinancialAddressModel = { + 'aba'?: TreasuryFinancialAccountsResourceAbaRecordModel | undefined; + 'supported_networks'?: Array<'ach' | 'us_domestic_wire'> | undefined; + 'type': 'aba'; +}; + +export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = { + 'inbound_flows': 'restricted' | 'unrestricted'; + 'outbound_flows': 'restricted' | 'unrestricted'; +}; + +export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = { + 'reasons': Array<'account_rejected' | 'closed_by_platform' | 'other'>; +}; + +export type TreasuryFinancialAccountsResourceStatusDetailsModel = { + 'closed': TreasuryFinancialAccountsResourceClosedStatusDetailsModel; +}; + +export type TreasuryFinancialAccountModel = { + 'active_features'?: Array<'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': TreasuryFinancialAccountsResourceBalanceModel; + 'country': string; 'created': number; - 'currency': string; - 'customer': string; - 'description': string; - 'destination_payment_method': string; - 'destination_payment_method_details': OutboundPaymentsPaymentMethodDetailsModel; - 'end_user_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; + 'display_name'?: string | undefined; + 'features'?: TreasuryFinancialAccountFeaturesModel | undefined; + 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressModel[]; 'id': string; + 'is_default'?: boolean | undefined; 'livemode': boolean; 'metadata': { [key: string]: string; }; - 'object': 'treasury.outbound_payment'; - 'returned_details': TreasuryOutboundPaymentsResourceReturnedStatusModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel; - 'tracking_details': TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel; - 'transaction': string | TreasuryTransactionModel; + 'nickname'?: string | undefined; + 'object': 'treasury.financial_account'; + 'pending_features'?: Array<'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'?: TreasuryFinancialAccountsResourcePlatformRestrictionsModel | undefined; + 'restricted_features'?: Array<'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': TreasuryFinancialAccountsResourceStatusDetailsModel; + 'supported_currencies': string[]; +}; + +export type TreasuryFinancialAccountClosedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryFinancialAccountCreatedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryFinancialAccountFeaturesStatusUpdatedModel = { + 'object': TreasuryFinancialAccountModel; +}; + +export type TreasuryInboundTransferCanceledModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferCreatedModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferFailedModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryInboundTransferSucceededModel = { + 'object': TreasuryInboundTransferModel; +}; + +export type TreasuryOutboundPaymentCanceledModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentCreatedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentFailedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentPostedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentReturnedModel = { + 'object': TreasuryOutboundPaymentModel; +}; + +export type TreasuryOutboundPaymentTrackingDetailsUpdatedModel = { + 'object': TreasuryOutboundPaymentModel; }; -export type TreasuryOutboundTransfersResourceReturnedDetailsModel = { - 'code': 'account_closed' | 'account_frozen' | 'bank_account_restricted' | 'bank_ownership_changed' | 'declined' | 'incorrect_account_holder_name' | 'invalid_account_number' | 'invalid_currency' | 'no_account' | 'other'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundTransferCanceledModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryOutboundTransferModel = { - 'amount': number; - 'cancelable': boolean; - 'created': number; - 'currency': string; - 'description': string; - 'destination_payment_method': string; - 'destination_payment_method_details': OutboundTransfersPaymentMethodDetailsModel; - 'expected_arrival_date': number; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'livemode': boolean; - 'metadata': { - [key: string]: string; +export type TreasuryOutboundTransferCreatedModel = { + 'object': TreasuryOutboundTransferModel; }; - 'network_details'?: TreasuryOutboundTransfersResourceNetworkDetailsModel | undefined; - 'object': 'treasury.outbound_transfer'; - 'returned_details': TreasuryOutboundTransfersResourceReturnedDetailsModel; - 'statement_descriptor': string; - 'status': 'canceled' | 'failed' | 'posted' | 'processing' | 'returned'; - 'status_transitions': TreasuryOutboundTransfersResourceStatusTransitionsModel; - 'tracking_details': TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel; - 'transaction': string | TreasuryTransactionModel; + +export type TreasuryOutboundTransferExpectedArrivalDateUpdatedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditsResourceSourceFlowsDetailsModel = { - 'credit_reversal'?: TreasuryCreditReversalModel | undefined; - 'outbound_payment'?: TreasuryOutboundPaymentModel | undefined; - 'outbound_transfer'?: TreasuryOutboundTransferModel | undefined; - 'payout'?: PayoutModel | undefined; - 'type': 'credit_reversal' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'payout'; +export type TreasuryOutboundTransferFailedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditsResourceLinkedFlowsModel = { - 'credit_reversal': string; - 'issuing_authorization': string; - 'issuing_transaction': string; - 'source_flow': string; - 'source_flow_details'?: TreasuryReceivedCreditsResourceSourceFlowsDetailsModel | undefined; - 'source_flow_type': string; +export type TreasuryOutboundTransferPostedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedCreditModel = { - 'amount': number; - 'created': number; - 'currency': string; - 'description': string; - 'failure_code': 'account_closed' | 'account_frozen' | 'international_transaction' | 'other'; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'initiating_payment_method_details': TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel; - 'linked_flows': TreasuryReceivedCreditsResourceLinkedFlowsModel; - 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; - 'network_details'?: TreasuryReceivedCreditsResourceNetworkDetailsModel | undefined; - 'object': 'treasury.received_credit'; - 'reversal_details': TreasuryReceivedCreditsResourceReversalDetailsModel; - 'status': 'failed' | 'succeeded'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundTransferReturnedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryReceivedDebitModel = { - 'amount': number; - 'created': number; - 'currency': string; - 'description': string; - 'failure_code': 'account_closed' | 'account_frozen' | 'insufficient_funds' | 'international_transaction' | 'other'; - 'financial_account': string; - 'hosted_regulatory_receipt_url': string; - 'id': string; - 'initiating_payment_method_details'?: TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel | undefined; - 'linked_flows': TreasuryReceivedDebitsResourceLinkedFlowsModel; - 'livemode': boolean; - 'network': 'ach' | 'card' | 'stripe'; - 'network_details'?: TreasuryReceivedDebitsResourceNetworkDetailsModel | undefined; - 'object': 'treasury.received_debit'; - 'reversal_details': TreasuryReceivedDebitsResourceReversalDetailsModel; - 'status': 'failed' | 'succeeded'; - 'transaction': string | TreasuryTransactionModel; +export type TreasuryOutboundTransferTrackingDetailsUpdatedModel = { + 'object': TreasuryOutboundTransferModel; }; -export type TreasuryTransactionEntryModel = { - 'balance_impact': TreasuryTransactionsResourceBalanceImpactModel; +export type TreasuryReceivedCreditCreatedModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedCreditFailedModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedCreditSucceededModel = { + 'object': TreasuryReceivedCreditModel; +}; + +export type TreasuryReceivedDebitCreatedModel = { + 'object': TreasuryReceivedDebitModel; +}; + +export type WebhookEndpointModel = { + 'api_version': string; + 'application': string; 'created': number; - 'currency': string; - 'effective_at': number; - 'financial_account': string; - 'flow': string; - 'flow_details'?: TreasuryTransactionsResourceFlowDetailsModel | undefined; - 'flow_type': 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' | 'issuing_authorization' | 'other' | 'outbound_payment' | 'outbound_transfer' | 'received_credit' | 'received_debit'; + 'description': string; + 'enabled_events': string[]; 'id': string; 'livemode': boolean; - 'object': 'treasury.transaction_entry'; - 'transaction': string | TreasuryTransactionModel; - 'type': 'credit_reversal' | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' | 'inbound_transfer_return' | 'issuing_authorization_hold' | 'issuing_authorization_release' | 'other' | 'outbound_payment' | 'outbound_payment_cancellation' | 'outbound_payment_failure' | 'outbound_payment_posting' | 'outbound_payment_return' | 'outbound_transfer' | 'outbound_transfer_cancellation' | 'outbound_transfer_failure' | 'outbound_transfer_posting' | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; + 'metadata': { + [key: string]: string; +}; + 'object': 'webhook_endpoint'; + 'secret'?: string | undefined; + 'status': string; + 'url': string; }; -export const AccountAnnualRevenue = z.object({ +export const AccountAnnualRevenue: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'fiscal_year_end': z.string() }); -export type AccountAnnualRevenueModel = z.infer; - -export const AccountMonthlyEstimatedRevenue = z.object({ +export const AccountMonthlyEstimatedRevenue: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type AccountMonthlyEstimatedRevenueModel = z.infer; - -export const Address = z.object({ +export const Address: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -1996,9 +13359,7 @@ export const Address = z.object({ 'state': z.string() }); -export type AddressModel = z.infer; - -export const AccountBusinessProfile = z.object({ +export const AccountBusinessProfile: z.ZodType = z.object({ 'annual_revenue': z.union([AccountAnnualRevenue]).optional(), 'estimated_worker_count': z.number().int().optional(), 'mcc': z.string(), @@ -2014,9 +13375,7 @@ export const AccountBusinessProfile = z.object({ 'url': z.string() }); -export type AccountBusinessProfileModel = z.infer; - -export const AccountCapabilities = z.object({ +export const AccountCapabilities: z.ZodType = z.object({ 'acss_debit_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'affirm_payments': z.enum(['active', 'inactive', 'pending']).optional(), 'afterpay_clearpay_payments': z.enum(['active', 'inactive', 'pending']).optional(), @@ -2093,9 +13452,7 @@ export const AccountCapabilities = z.object({ 'zip_payments': z.enum(['active', 'inactive', 'pending']).optional() }); -export type AccountCapabilitiesModel = z.infer; - -export const LegalEntityJapanAddress = z.object({ +export const LegalEntityJapanAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -2105,40 +13462,30 @@ export const LegalEntityJapanAddress = z.object({ 'town': z.string() }); -export type LegalEntityJapanAddressModel = z.infer; - -export const LegalEntityDirectorshipDeclaration = z.object({ +export const LegalEntityDirectorshipDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityDirectorshipDeclarationModel = z.infer; - -export const LegalEntityUboDeclaration = z.object({ +export const LegalEntityUboDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityUboDeclarationModel = z.infer; - -export const LegalEntityRegistrationDate = z.object({ +export const LegalEntityRegistrationDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type LegalEntityRegistrationDateModel = z.infer; - -export const LegalEntityRepresentativeDeclaration = z.object({ +export const LegalEntityRepresentativeDeclaration: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type LegalEntityRepresentativeDeclarationModel = z.infer; - export const FileLink: z.ZodType = z.object({ 'created': z.number().int(), 'expired': z.boolean(), @@ -2206,39 +13553,29 @@ export const LegalEntityCompany: z.ZodType = z.object({ 'verification': z.union([z.lazy(() => LegalEntityCompanyVerification)]).optional() }); -export const AccountUnificationAccountControllerApplication = z.object({ +export const AccountUnificationAccountControllerApplication: z.ZodType = z.object({ 'loss_liable': z.boolean(), 'onboarding_owner': z.boolean(), 'pricing_controls': z.boolean() }); -export type AccountUnificationAccountControllerApplicationModel = z.infer; - -export const AccountUnificationAccountControllerDashboard = z.object({ +export const AccountUnificationAccountControllerDashboard: z.ZodType = z.object({ 'type': z.enum(['express', 'full', 'none']) }); -export type AccountUnificationAccountControllerDashboardModel = z.infer; - -export const AccountUnificationAccountControllerFees = z.object({ +export const AccountUnificationAccountControllerFees: z.ZodType = z.object({ 'payer': z.enum(['account', 'application', 'application_custom', 'application_express', 'application_unified_accounts_beta']) }); -export type AccountUnificationAccountControllerFeesModel = z.infer; - -export const AccountUnificationAccountControllerLosses = z.object({ +export const AccountUnificationAccountControllerLosses: z.ZodType = z.object({ 'payments': z.enum(['application', 'stripe']) }); -export type AccountUnificationAccountControllerLossesModel = z.infer; - -export const AccountUnificationAccountControllerStripeDashboard = z.object({ +export const AccountUnificationAccountControllerStripeDashboard: z.ZodType = z.object({ 'type': z.enum(['express', 'full', 'none']) }); -export type AccountUnificationAccountControllerStripeDashboardModel = z.infer; - -export const AccountUnificationAccountController = z.object({ +export const AccountUnificationAccountController: z.ZodType = z.object({ 'application': AccountUnificationAccountControllerApplication.optional(), 'dashboard': AccountUnificationAccountControllerDashboard.optional(), 'fees': AccountUnificationAccountControllerFees.optional(), @@ -2249,16 +13586,12 @@ export const AccountUnificationAccountController = z.object({ 'type': z.enum(['account', 'application']) }); -export type AccountUnificationAccountControllerModel = z.infer; - -export const CustomerBalanceCustomerBalanceSettings = z.object({ +export const CustomerBalanceCustomerBalanceSettings: z.ZodType = z.object({ 'reconciliation_mode': z.enum(['automatic', 'manual']), 'using_merchant_default': z.boolean() }); -export type CustomerBalanceCustomerBalanceSettingsModel = z.infer; - -export const CashBalance = z.object({ +export const CashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()), 'customer': z.string(), 'customer_account': z.string().optional(), @@ -2267,22 +13600,16 @@ export const CashBalance = z.object({ 'settings': CustomerBalanceCustomerBalanceSettings }); -export type CashBalanceModel = z.infer; - -export const DeletedCustomer = z.object({ +export const DeletedCustomer: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['customer']) }); -export type DeletedCustomerModel = z.infer; - -export const TokenCardNetworks = z.object({ +export const TokenCardNetworks: z.ZodType = z.object({ 'preferred': z.string() }); -export type TokenCardNetworksModel = z.infer; - export const Card: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'address_city': z.string(), @@ -2321,7 +13648,7 @@ export const Card: z.ZodType = z.object({ 'tokenization_method': z.string() }); -export const SourceTypeAchCreditTransfer = z.object({ +export const SourceTypeAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string().optional(), 'bank_name': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2332,9 +13659,7 @@ export const SourceTypeAchCreditTransfer = z.object({ 'swift_code': z.string().optional() }); -export type SourceTypeAchCreditTransferModel = z.infer; - -export const SourceTypeAchDebit = z.object({ +export const SourceTypeAchDebit: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'country': z.string().optional(), 'fingerprint': z.string().optional(), @@ -2343,9 +13668,7 @@ export const SourceTypeAchDebit = z.object({ 'type': z.string().optional() }); -export type SourceTypeAchDebitModel = z.infer; - -export const SourceTypeAcssDebit = z.object({ +export const SourceTypeAcssDebit: z.ZodType = z.object({ 'bank_address_city': z.string().optional(), 'bank_address_line_1': z.string().optional(), 'bank_address_line_2': z.string().optional(), @@ -2358,25 +13681,19 @@ export const SourceTypeAcssDebit = z.object({ 'routing_number': z.string().optional() }); -export type SourceTypeAcssDebitModel = z.infer; - -export const SourceTypeAlipay = z.object({ +export const SourceTypeAlipay: z.ZodType = z.object({ 'data_string': z.string().optional(), 'native_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeAlipayModel = z.infer; - -export const SourceTypeAuBecsDebit = z.object({ +export const SourceTypeAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional() }); -export type SourceTypeAuBecsDebitModel = z.infer; - -export const SourceTypeBancontact = z.object({ +export const SourceTypeBancontact: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2385,9 +13702,7 @@ export const SourceTypeBancontact = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeBancontactModel = z.infer; - -export const SourceTypeCard = z.object({ +export const SourceTypeCard: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'brand': z.string().optional(), @@ -2408,9 +13723,7 @@ export const SourceTypeCard = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeCardModel = z.infer; - -export const SourceTypeCardPresent = z.object({ +export const SourceTypeCardPresent: z.ZodType = z.object({ 'application_cryptogram': z.string().optional(), 'application_preferred_name': z.string().optional(), 'authorization_code': z.string().optional(), @@ -2440,41 +13753,31 @@ export const SourceTypeCardPresent = z.object({ 'transaction_status_information': z.string().optional() }); -export type SourceTypeCardPresentModel = z.infer; - -export const SourceCodeVerificationFlow = z.object({ +export const SourceCodeVerificationFlow: z.ZodType = z.object({ 'attempts_remaining': z.number().int(), 'status': z.string() }); -export type SourceCodeVerificationFlowModel = z.infer; - -export const SourceTypeEps = z.object({ +export const SourceTypeEps: z.ZodType = z.object({ 'reference': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeEpsModel = z.infer; - -export const SourceTypeGiropay = z.object({ +export const SourceTypeGiropay: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeGiropayModel = z.infer; - -export const SourceTypeIdeal = z.object({ +export const SourceTypeIdeal: z.ZodType = z.object({ 'bank': z.string().optional(), 'bic': z.string().optional(), 'iban_last4': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeIdealModel = z.infer; - -export const SourceTypeKlarna = z.object({ +export const SourceTypeKlarna: z.ZodType = z.object({ 'background_image_url': z.string().optional(), 'client_token': z.string().optional(), 'first_name': z.string().optional(), @@ -2503,9 +13806,7 @@ export const SourceTypeKlarna = z.object({ 'shipping_last_name': z.string().optional() }); -export type SourceTypeKlarnaModel = z.infer; - -export const SourceTypeMultibanco = z.object({ +export const SourceTypeMultibanco: z.ZodType = z.object({ 'entity': z.string().optional(), 'reference': z.string().optional(), 'refund_account_holder_address_city': z.string().optional(), @@ -2518,9 +13819,7 @@ export const SourceTypeMultibanco = z.object({ 'refund_iban': z.string().optional() }); -export type SourceTypeMultibancoModel = z.infer; - -export const SourceOwner = z.object({ +export const SourceOwner: z.ZodType = z.object({ 'address': z.union([Address]), 'email': z.string(), 'name': z.string(), @@ -2531,15 +13830,11 @@ export const SourceOwner = z.object({ 'verified_phone': z.string() }); -export type SourceOwnerModel = z.infer; - -export const SourceTypeP24 = z.object({ +export const SourceTypeP24: z.ZodType = z.object({ 'reference': z.string().optional() }); -export type SourceTypeP24Model = z.infer; - -export const SourceTypePaypal = z.object({ +export const SourceTypePaypal: z.ZodType = z.object({ 'billing_agreement': z.string().optional(), 'fingerprint': z.string().optional(), 'payer_id': z.string().optional(), @@ -2551,9 +13846,7 @@ export const SourceTypePaypal = z.object({ 'verified_email': z.string().optional() }); -export type SourceTypePaypalModel = z.infer; - -export const SourceReceiverFlow = z.object({ +export const SourceReceiverFlow: z.ZodType = z.object({ 'address': z.string(), 'amount_charged': z.number().int(), 'amount_received': z.number().int(), @@ -2562,18 +13855,14 @@ export const SourceReceiverFlow = z.object({ 'refund_attributes_status': z.string() }); -export type SourceReceiverFlowModel = z.infer; - -export const SourceRedirectFlow = z.object({ +export const SourceRedirectFlow: z.ZodType = z.object({ 'failure_reason': z.string(), 'return_url': z.string(), 'status': z.string(), 'url': z.string() }); -export type SourceRedirectFlowModel = z.infer; - -export const SourceTypeSepaCreditTransfer = z.object({ +export const SourceTypeSepaCreditTransfer: z.ZodType = z.object({ 'bank_name': z.string().optional(), 'bic': z.string().optional(), 'iban': z.string().optional(), @@ -2587,9 +13876,7 @@ export const SourceTypeSepaCreditTransfer = z.object({ 'refund_iban': z.string().optional() }); -export type SourceTypeSepaCreditTransferModel = z.infer; - -export const SourceTypeSepaDebit = z.object({ +export const SourceTypeSepaDebit: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'branch_code': z.string().optional(), 'country': z.string().optional(), @@ -2599,9 +13886,7 @@ export const SourceTypeSepaDebit = z.object({ 'mandate_url': z.string().optional() }); -export type SourceTypeSepaDebitModel = z.infer; - -export const SourceTypeSofort = z.object({ +export const SourceTypeSofort: z.ZodType = z.object({ 'bank_code': z.string().optional(), 'bank_name': z.string().optional(), 'bic': z.string().optional(), @@ -2611,9 +13896,7 @@ export const SourceTypeSofort = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceTypeSofortModel = z.infer; - -export const SourceOrderItem = z.object({ +export const SourceOrderItem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'description': z.string(), @@ -2622,9 +13905,7 @@ export const SourceOrderItem = z.object({ 'type': z.string() }); -export type SourceOrderItemModel = z.infer; - -export const Shipping = z.object({ +export const Shipping: z.ZodType = z.object({ 'address': Address.optional(), 'carrier': z.string().optional(), 'name': z.string().optional(), @@ -2632,9 +13913,7 @@ export const Shipping = z.object({ 'tracking_number': z.string().optional() }); -export type ShippingModel = z.infer; - -export const SourceOrder = z.object({ +export const SourceOrder: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'email': z.string().optional(), @@ -2642,9 +13921,7 @@ export const SourceOrder = z.object({ 'shipping': Shipping.optional() }); -export type SourceOrderModel = z.infer; - -export const SourceTypeThreeDSecure = z.object({ +export const SourceTypeThreeDSecure: z.ZodType = z.object({ 'address_line1_check': z.string().optional(), 'address_zip_check': z.string().optional(), 'authenticated': z.boolean().optional(), @@ -2668,17 +13945,13 @@ export const SourceTypeThreeDSecure = z.object({ 'tokenization_method': z.string().optional() }); -export type SourceTypeThreeDSecureModel = z.infer; - -export const SourceTypeWechat = z.object({ +export const SourceTypeWechat: z.ZodType = z.object({ 'prepay_id': z.string().optional(), 'qr_code_url': z.string().optional(), 'statement_descriptor': z.string().optional() }); -export type SourceTypeWechatModel = z.infer; - -export const Source = z.object({ +export const Source: z.ZodType = z.object({ 'ach_credit_transfer': SourceTypeAchCreditTransfer.optional(), 'ach_debit': SourceTypeAchDebit.optional(), 'acss_debit': SourceTypeAcssDebit.optional(), @@ -2721,31 +13994,23 @@ export const Source = z.object({ 'wechat': SourceTypeWechat.optional() }); -export type SourceModel = z.infer; - export const PaymentSource: z.ZodType = z.union([z.lazy(() => Account), z.lazy(() => BankAccount), z.lazy(() => Card), Source]); -export const CouponAppliesTo = z.object({ +export const CouponAppliesTo: z.ZodType = z.object({ 'products': z.array(z.string()) }); -export type CouponAppliesToModel = z.infer; - -export const CouponCurrencyOption = z.object({ +export const CouponCurrencyOption: z.ZodType = z.object({ 'amount_off': z.number().int() }); -export type CouponCurrencyOptionModel = z.infer; - -export const Script = z.object({ +export const Script: z.ZodType = z.object({ 'configuration': z.object({}), 'display_name': z.string(), 'id': z.string() }); -export type ScriptModel = z.infer; - -export const Coupon = z.object({ +export const Coupon: z.ZodType = z.object({ 'amount_off': z.number().int(), 'applies_to': CouponAppliesTo.optional(), 'created': z.number().int(), @@ -2767,30 +14032,22 @@ export const Coupon = z.object({ 'valid': z.boolean() }); -export type CouponModel = z.infer; - -export const PromotionCodesResourcePromotion = z.object({ +export const PromotionCodesResourcePromotion: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'type': z.enum(['coupon']) }); -export type PromotionCodesResourcePromotionModel = z.infer; - -export const PromotionCodeCurrencyOption = z.object({ +export const PromotionCodeCurrencyOption: z.ZodType = z.object({ 'minimum_amount': z.number().int() }); -export type PromotionCodeCurrencyOptionModel = z.infer; - -export const PromotionCodesResourceRestrictions = z.object({ +export const PromotionCodesResourceRestrictions: z.ZodType = z.object({ 'currency_options': z.record(z.string(), PromotionCodeCurrencyOption).optional(), 'first_time_transaction': z.boolean(), 'minimum_amount': z.number().int(), 'minimum_amount_currency': z.string() }); -export type PromotionCodesResourceRestrictionsModel = z.infer; - export const PromotionCode: z.ZodType = z.object({ 'active': z.boolean(), 'code': z.string(), @@ -2808,13 +14065,11 @@ export const PromotionCode: z.ZodType = z.object({ 'times_redeemed': z.number().int() }); -export const DiscountSource = z.object({ +export const DiscountSource: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'type': z.enum(['coupon']) }); -export type DiscountSourceModel = z.infer; - export const Discount: z.ZodType = z.object({ 'checkout_session': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -2831,14 +14086,12 @@ export const Discount: z.ZodType = z.object({ 'subscription_item': z.string() }); -export const InvoiceSettingCustomField = z.object({ +export const InvoiceSettingCustomField: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type InvoiceSettingCustomFieldModel = z.infer; - -export const PaymentMethodAcssDebit = z.object({ +export const PaymentMethodAcssDebit: z.ZodType = z.object({ 'account_number': z.string().optional(), 'bank_name': z.string(), 'fingerprint': z.string(), @@ -2847,67 +14100,47 @@ export const PaymentMethodAcssDebit = z.object({ 'transit_number': z.string() }); -export type PaymentMethodAcssDebitModel = z.infer; - -export const PaymentMethodAffirm = z.object({ +export const PaymentMethodAffirm: z.ZodType = z.object({ }); -export type PaymentMethodAffirmModel = z.infer; - -export const PaymentMethodAfterpayClearpay = z.object({ +export const PaymentMethodAfterpayClearpay: z.ZodType = z.object({ }); -export type PaymentMethodAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipay = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipay: z.ZodType = z.object({ }); -export type PaymentFlowsPrivatePaymentMethodsAlipayModel = z.infer; - -export const PaymentMethodAlma = z.object({ +export const PaymentMethodAlma: z.ZodType = z.object({ }); -export type PaymentMethodAlmaModel = z.infer; - -export const PaymentMethodAmazonPay = z.object({ +export const PaymentMethodAmazonPay: z.ZodType = z.object({ }); -export type PaymentMethodAmazonPayModel = z.infer; - -export const PaymentMethodAuBecsDebit = z.object({ +export const PaymentMethodAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string(), 'fingerprint': z.string(), 'last4': z.string() }); -export type PaymentMethodAuBecsDebitModel = z.infer; - -export const PaymentMethodBacsDebit = z.object({ +export const PaymentMethodBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string(), 'last4': z.string(), 'sort_code': z.string() }); -export type PaymentMethodBacsDebitModel = z.infer; - -export const PaymentMethodBancontact = z.object({ +export const PaymentMethodBancontact: z.ZodType = z.object({ }); -export type PaymentMethodBancontactModel = z.infer; - -export const PaymentMethodBillie = z.object({ +export const PaymentMethodBillie: z.ZodType = z.object({ }); -export type PaymentMethodBillieModel = z.infer; - -export const BillingDetails = z.object({ +export const BillingDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'email': z.string(), 'name': z.string(), @@ -2915,36 +14148,26 @@ export const BillingDetails = z.object({ 'tax_id': z.string() }); -export type BillingDetailsModel = z.infer; - -export const PaymentMethodBlik = z.object({ +export const PaymentMethodBlik: z.ZodType = z.object({ }); -export type PaymentMethodBlikModel = z.infer; - -export const PaymentMethodBoleto = z.object({ +export const PaymentMethodBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodBoletoModel = z.infer; - -export const PaymentMethodCardChecks = z.object({ +export const PaymentMethodCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type PaymentMethodCardChecksModel = z.infer; - -export const PaymentMethodDetailsCardPresentOffline = z.object({ +export const PaymentMethodDetailsCardPresentOffline: z.ZodType = z.object({ 'stored_at': z.number().int(), 'type': z.enum(['deferred']) }); -export type PaymentMethodDetailsCardPresentOfflineModel = z.infer; - -export const PaymentMethodDetailsCardPresentReceipt = z.object({ +export const PaymentMethodDetailsCardPresentReceipt: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'credit', 'prepaid', 'unknown']).optional(), 'application_cryptogram': z.string(), 'application_preferred_name': z.string(), @@ -2956,15 +14179,11 @@ export const PaymentMethodDetailsCardPresentReceipt = z.object({ 'transaction_status_information': z.string() }); -export type PaymentMethodDetailsCardPresentReceiptModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet: z.ZodType = z.object({ 'type': z.enum(['apple_pay', 'google_pay', 'samsung_pay', 'unknown']) }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletModel = z.infer; - -export const PaymentMethodDetailsCardPresent = z.object({ +export const PaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'amount_authorized': z.number().int(), 'brand': z.string(), 'brand_product': z.string(), @@ -2992,164 +14211,116 @@ export const PaymentMethodDetailsCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodDetailsCardPresentModel = z.infer; - -export const CardGeneratedFromPaymentMethodDetails = z.object({ +export const CardGeneratedFromPaymentMethodDetails: z.ZodType = z.object({ 'card_present': PaymentMethodDetailsCardPresent.optional(), 'type': z.string() }); -export type CardGeneratedFromPaymentMethodDetailsModel = z.infer; - -export const Application = z.object({ +export const Application: z.ZodType = z.object({ 'id': z.string(), 'name': z.string(), 'object': z.enum(['application']) }); -export type ApplicationModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAcssDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAcssDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAcssDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAmazonPay = z.object({ +export const SetupAttemptPaymentMethodDetailsAmazonPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAmazonPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsAuBecsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsBacsDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsBacsDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBacsDebitModel = z.infer; - -export const OfflineAcceptance = z.object({ +export const OfflineAcceptance: z.ZodType = z.object({ }); -export type OfflineAcceptanceModel = z.infer; - -export const OnlineAcceptance = z.object({ +export const OnlineAcceptance: z.ZodType = z.object({ 'ip_address': z.string(), 'user_agent': z.string() }); -export type OnlineAcceptanceModel = z.infer; - -export const CustomerAcceptance = z.object({ +export const CustomerAcceptance: z.ZodType = z.object({ 'accepted_at': z.number().int(), 'offline': OfflineAcceptance.optional(), 'online': OnlineAcceptance.optional(), 'type': z.enum(['offline', 'online']) }); -export type CustomerAcceptanceModel = z.infer; - -export const MandateMultiUse = z.object({ +export const MandateMultiUse: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'currency': z.string().optional() }); -export type MandateMultiUseModel = z.infer; - -export const MandateAcssDebit = z.object({ +export const MandateAcssDebit: z.ZodType = z.object({ 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']), 'transaction_type': z.enum(['business', 'personal']) }); -export type MandateAcssDebitModel = z.infer; - -export const MandateAmazonPay = z.object({ +export const MandateAmazonPay: z.ZodType = z.object({ }); -export type MandateAmazonPayModel = z.infer; - -export const MandateAuBecsDebit = z.object({ +export const MandateAuBecsDebit: z.ZodType = z.object({ 'url': z.string() }); -export type MandateAuBecsDebitModel = z.infer; - -export const MandateBacsDebit = z.object({ +export const MandateBacsDebit: z.ZodType = z.object({ 'network_status': z.enum(['accepted', 'pending', 'refused', 'revoked']), 'reference': z.string(), 'revocation_reason': z.enum(['account_closed', 'bank_account_restricted', 'bank_ownership_changed', 'could_not_process', 'debit_not_authorized']), 'url': z.string() }); -export type MandateBacsDebitModel = z.infer; - -export const CardMandatePaymentMethodDetails = z.object({ +export const CardMandatePaymentMethodDetails: z.ZodType = z.object({ }); -export type CardMandatePaymentMethodDetailsModel = z.infer; - -export const MandateCashapp = z.object({ +export const MandateCashapp: z.ZodType = z.object({ }); -export type MandateCashappModel = z.infer; - -export const MandateKakaoPay = z.object({ +export const MandateKakaoPay: z.ZodType = z.object({ }); -export type MandateKakaoPayModel = z.infer; - -export const MandateKlarna = z.object({ +export const MandateKlarna: z.ZodType = z.object({ }); -export type MandateKlarnaModel = z.infer; - -export const MandateKrCard = z.object({ +export const MandateKrCard: z.ZodType = z.object({ }); -export type MandateKrCardModel = z.infer; - -export const MandateLink = z.object({ +export const MandateLink: z.ZodType = z.object({ }); -export type MandateLinkModel = z.infer; - -export const MandateNaverPay = z.object({ +export const MandateNaverPay: z.ZodType = z.object({ }); -export type MandateNaverPayModel = z.infer; - -export const MandateNzBankAccount = z.object({ +export const MandateNzBankAccount: z.ZodType = z.object({ }); -export type MandateNzBankAccountModel = z.infer; - -export const MandatePaypal = z.object({ +export const MandatePaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string(), 'fingerprint': z.string().optional(), 'payer_id': z.string(), 'verified_email': z.string().optional() }); -export type MandatePaypalModel = z.infer; - -export const MandatePayto = z.object({ +export const MandatePayto: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'end_date': z.string(), @@ -3159,9 +14330,7 @@ export const MandatePayto = z.object({ 'start_date': z.string() }); -export type MandatePaytoModel = z.infer; - -export const MandatePix = z.object({ +export const MandatePix: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'amount_type': z.enum(['fixed', 'maximum']).optional(), 'end_date': z.string().optional(), @@ -3170,28 +14339,20 @@ export const MandatePix = z.object({ 'start_date': z.string().optional() }); -export type MandatePixModel = z.infer; - -export const MandateRevolutPay = z.object({ +export const MandateRevolutPay: z.ZodType = z.object({ }); -export type MandateRevolutPayModel = z.infer; - -export const MandateSepaDebit = z.object({ +export const MandateSepaDebit: z.ZodType = z.object({ 'reference': z.string(), 'url': z.string() }); -export type MandateSepaDebitModel = z.infer; - -export const MandateUsBankAccount = z.object({ +export const MandateUsBankAccount: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type MandateUsBankAccountModel = z.infer; - -export const MandatePaymentMethodDetails = z.object({ +export const MandatePaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': MandateAcssDebit.optional(), 'amazon_pay': MandateAmazonPay.optional(), 'au_becs_debit': MandateAuBecsDebit.optional(), @@ -3213,15 +14374,11 @@ export const MandatePaymentMethodDetails = z.object({ 'us_bank_account': MandateUsBankAccount.optional() }); -export type MandatePaymentMethodDetailsModel = z.infer; - -export const MandateSingleUse = z.object({ +export const MandateSingleUse: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type MandateSingleUseModel = z.infer; - export const Mandate: z.ZodType = z.object({ 'customer_acceptance': CustomerAcceptance, 'id': z.string(), @@ -3247,21 +14404,17 @@ export const SetupAttemptPaymentMethodDetailsBancontact: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsBoletoModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardChecks = z.object({ +export const SetupAttemptPaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type SetupAttemptPaymentMethodDetailsCardChecksModel = z.infer; - -export const ThreeDSecureDetails = z.object({ +export const ThreeDSecureDetails: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']), @@ -3270,29 +14423,21 @@ export const ThreeDSecureDetails = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type ThreeDSecureDetailsModel = z.infer; - -export const PaymentMethodDetailsCardWalletApplePay = z.object({ +export const PaymentMethodDetailsCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletApplePayModel = z.infer; - -export const PaymentMethodDetailsCardWalletGooglePay = z.object({ +export const PaymentMethodDetailsCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletGooglePayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCardWallet = z.object({ +export const SetupAttemptPaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'google_pay': PaymentMethodDetailsCardWalletGooglePay.optional(), 'type': z.enum(['apple_pay', 'google_pay', 'link']) }); -export type SetupAttemptPaymentMethodDetailsCardWalletModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsCard = z.object({ +export const SetupAttemptPaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string(), 'checks': z.union([SetupAttemptPaymentMethodDetailsCardChecks]), 'country': z.string(), @@ -3309,28 +14454,22 @@ export const SetupAttemptPaymentMethodDetailsCard = z.object({ 'wallet': z.union([SetupAttemptPaymentMethodDetailsCardWallet]) }); -export type SetupAttemptPaymentMethodDetailsCardModel = z.infer; - export const SetupAttemptPaymentMethodDetailsCardPresent: z.ZodType = z.object({ 'generated_card': z.union([z.string(), z.lazy(() => PaymentMethod)]), 'offline': z.union([PaymentMethodDetailsCardPresentOffline]) }); -export const SetupAttemptPaymentMethodDetailsCashapp = z.object({ +export const SetupAttemptPaymentMethodDetailsCashapp: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsCashappModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsIdBankTransfer = z.object({ +export const SetupAttemptPaymentMethodDetailsIdBankTransfer: z.ZodType = z.object({ 'bank': z.enum(['bca', 'bni', 'bri', 'cimb', 'permata']), 'bank_code': z.string(), 'bank_name': z.string(), 'display_name': z.string() }); -export type SetupAttemptPaymentMethodDetailsIdBankTransferModel = z.infer; - export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']), @@ -3340,72 +14479,50 @@ export const SetupAttemptPaymentMethodDetailsIdeal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKakaoPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKlarna = z.object({ +export const SetupAttemptPaymentMethodDetailsKlarna: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKlarnaModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsKrCard = z.object({ +export const SetupAttemptPaymentMethodDetailsKrCard: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsKrCardModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsLink = z.object({ +export const SetupAttemptPaymentMethodDetailsLink: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsLinkModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNaverPay = z.object({ +export const SetupAttemptPaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string().optional() }); -export type SetupAttemptPaymentMethodDetailsNaverPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsNzBankAccount = z.object({ +export const SetupAttemptPaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsNzBankAccountModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsPaypal = z.object({ +export const SetupAttemptPaymentMethodDetailsPaypal: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsPaypalModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsPayto = z.object({ +export const SetupAttemptPaymentMethodDetailsPayto: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsPaytoModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsPix = z.object({ +export const SetupAttemptPaymentMethodDetailsPix: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsPixModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsRevolutPay = z.object({ +export const SetupAttemptPaymentMethodDetailsRevolutPay: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsRevolutPayModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsSepaDebit = z.object({ +export const SetupAttemptPaymentMethodDetailsSepaDebit: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsSepaDebitModel = z.infer; - export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -3417,18 +14534,14 @@ export const SetupAttemptPaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsStripeBalanceModel = z.infer; - -export const SetupAttemptPaymentMethodDetailsUsBankAccount = z.object({ +export const SetupAttemptPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ }); -export type SetupAttemptPaymentMethodDetailsUsBankAccountModel = z.infer; - export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'acss_debit': SetupAttemptPaymentMethodDetailsAcssDebit.optional(), 'amazon_pay': SetupAttemptPaymentMethodDetailsAmazonPay.optional(), @@ -3458,51 +14571,39 @@ export const SetupAttemptPaymentMethodDetails: z.ZodType = z.object({ 'commodity_code': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'commodity_code': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'image_url': z.string(), 'product_url': z.string(), 'reference': z.string(), 'subscription_reference': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions: z.ZodType = z.object({ 'category': z.enum(['digital_goods', 'donation', 'physical_goods']).optional(), 'description': z.string().optional(), 'sold_by': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': PaymentFlowsPrivatePaymentMethodsCardPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'card_present': PaymentFlowsPrivatePaymentMethodsCardPresentAmountDetailsLineItemPaymentMethodOptions.optional(), 'klarna': PaymentFlowsPrivatePaymentMethodsKlarnaPaymentIntentAmountDetailsLineItemPaymentMethodOptions.optional(), 'paypal': PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptions.optional() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourcePaymentMethodOptionsModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int() }); -export type PaymentFlowsAmountDetailsResourceLineItemsListResourceLineItemResourceTaxModel = z.infer; - -export const PaymentIntentAmountDetailsLineItem = z.object({ +export const PaymentIntentAmountDetailsLineItem: z.ZodType = z.object({ 'discount_amount': z.number().int(), 'id': z.string(), 'object': z.enum(['payment_intent_amount_details_line_item']), @@ -3515,29 +14616,21 @@ export const PaymentIntentAmountDetailsLineItem = z.object({ 'unit_of_measure': z.string() }); -export type PaymentIntentAmountDetailsLineItemModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceShipping = z.object({ +export const PaymentFlowsAmountDetailsResourceShipping: z.ZodType = z.object({ 'amount': z.number().int(), 'from_postal_code': z.string(), 'to_postal_code': z.string() }); -export type PaymentFlowsAmountDetailsResourceShippingModel = z.infer; - -export const PaymentFlowsAmountDetailsResourceTax = z.object({ +export const PaymentFlowsAmountDetailsResourceTax: z.ZodType = z.object({ 'total_tax_amount': z.number().int() }); -export type PaymentFlowsAmountDetailsResourceTaxModel = z.infer; - -export const PaymentFlowsAmountDetailsClientResourceTip = z.object({ +export const PaymentFlowsAmountDetailsClientResourceTip: z.ZodType = z.object({ 'amount': z.number().int().optional() }); -export type PaymentFlowsAmountDetailsClientResourceTipModel = z.infer; - -export const PaymentFlowsAmountDetails = z.object({ +export const PaymentFlowsAmountDetails: z.ZodType = z.object({ 'discount_amount': z.number().int().optional(), 'line_items': z.object({ 'data': z.array(PaymentIntentAmountDetailsLineItem), @@ -3550,34 +14643,24 @@ export const PaymentFlowsAmountDetails = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsModel = z.infer; - -export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsPaymentIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean() }); -export type PaymentFlowsAutomaticPaymentMethodsPaymentIntentModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax: z.ZodType = z.object({ 'calculation': z.string() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTaxModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs: z.ZodType = z.object({ 'tax': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsResourceTax.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputsModel = z.infer; - -export const PaymentFlowsPaymentIntentAsyncWorkflows = z.object({ +export const PaymentFlowsPaymentIntentAsyncWorkflows: z.ZodType = z.object({ 'inputs': PaymentFlowsPaymentIntentAsyncWorkflowsResourceInputs.optional() }); -export type PaymentFlowsPaymentIntentAsyncWorkflowsModel = z.infer; - -export const Fee = z.object({ +export const Fee: z.ZodType = z.object({ 'amount': z.number().int(), 'application': z.string(), 'currency': z.string(), @@ -3585,8 +14668,6 @@ export const Fee = z.object({ 'type': z.string() }); -export type FeeModel = z.infer; - export const ConnectCollectionTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -3605,38 +14686,30 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceAppliedToPayme 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer: z.ZodType = z.object({ 'bic': z.string(), 'iban_last4': z.string(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer: z.ZodType = z.object({ 'account_number_last4': z.string(), 'sender_name': z.string(), 'sort_code': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer: z.ZodType = z.object({ 'sender_bank': z.string(), 'sender_branch': z.string(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer: z.ZodType = z.object({ 'network': z.enum(['ach', 'domestic_wire_us', 'swift']).optional(), 'sender_name': z.string() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceEuBankTransfer.optional(), 'gb_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceGbBankTransfer.optional(), 'jp_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceJpBankTransfer.optional(), @@ -3645,135 +14718,97 @@ export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransact 'us_bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransfer.optional() }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferModel = z.infer; - -export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction = z.object({ +export const CustomerBalanceResourceCashBalanceTransactionResourceFundedTransaction: z.ZodType = z.object({ 'bank_transfer': CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransfer }); -export type CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionModel = z.infer; - -export const DestinationDetailsUnimplemented = z.object({ +export const DestinationDetailsUnimplemented: z.ZodType = z.object({ }); -export type DestinationDetailsUnimplementedModel = z.infer; - -export const RefundDestinationDetailsBlik = z.object({ +export const RefundDestinationDetailsBlik: z.ZodType = z.object({ 'network_decline_code': z.string(), 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsBlikModel = z.infer; - -export const RefundDestinationDetailsBrBankTransfer = z.object({ +export const RefundDestinationDetailsBrBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsBrBankTransferModel = z.infer; - -export const RefundDestinationDetailsCard = z.object({ +export const RefundDestinationDetailsCard: z.ZodType = z.object({ 'reference': z.string().optional(), 'reference_status': z.string().optional(), 'reference_type': z.string().optional(), 'type': z.enum(['pending', 'refund', 'reversal']) }); -export type RefundDestinationDetailsCardModel = z.infer; - -export const RefundDestinationDetailsCrypto = z.object({ +export const RefundDestinationDetailsCrypto: z.ZodType = z.object({ 'reference': z.string() }); -export type RefundDestinationDetailsCryptoModel = z.infer; - -export const RefundDestinationDetailsEuBankTransfer = z.object({ +export const RefundDestinationDetailsEuBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsEuBankTransferModel = z.infer; - -export const RefundDestinationDetailsGbBankTransfer = z.object({ +export const RefundDestinationDetailsGbBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsGbBankTransferModel = z.infer; - -export const RefundDestinationDetailsIdBankTransfer = z.object({ +export const RefundDestinationDetailsIdBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsIdBankTransferModel = z.infer; - -export const RefundDestinationDetailsJpBankTransfer = z.object({ +export const RefundDestinationDetailsJpBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsJpBankTransferModel = z.infer; - -export const RefundDestinationDetailsMbWay = z.object({ +export const RefundDestinationDetailsMbWay: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMbWayModel = z.infer; - -export const RefundDestinationDetailsMultibanco = z.object({ +export const RefundDestinationDetailsMultibanco: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMultibancoModel = z.infer; - -export const RefundDestinationDetailsMxBankTransfer = z.object({ +export const RefundDestinationDetailsMxBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsMxBankTransferModel = z.infer; - -export const RefundDestinationDetailsP24 = z.object({ +export const RefundDestinationDetailsP24: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsP24Model = z.infer; - -export const RefundDestinationDetailsPaypal = z.object({ +export const RefundDestinationDetailsPaypal: z.ZodType = z.object({ 'network_decline_code': z.string() }); -export type RefundDestinationDetailsPaypalModel = z.infer; - -export const RefundDestinationDetailsSwish = z.object({ +export const RefundDestinationDetailsSwish: z.ZodType = z.object({ 'network_decline_code': z.string(), 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsSwishModel = z.infer; - -export const RefundDestinationDetailsThBankTransfer = z.object({ +export const RefundDestinationDetailsThBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsThBankTransferModel = z.infer; - -export const RefundDestinationDetailsUsBankTransfer = z.object({ +export const RefundDestinationDetailsUsBankTransfer: z.ZodType = z.object({ 'reference': z.string(), 'reference_status': z.string() }); -export type RefundDestinationDetailsUsBankTransferModel = z.infer; - -export const RefundDestinationDetails = z.object({ +export const RefundDestinationDetails: z.ZodType = z.object({ 'affirm': DestinationDetailsUnimplemented.optional(), 'afterpay_clearpay': DestinationDetailsUnimplemented.optional(), 'alipay': DestinationDetailsUnimplemented.optional(), @@ -3813,36 +14848,26 @@ export const RefundDestinationDetails = z.object({ 'zip': DestinationDetailsUnimplemented.optional() }); -export type RefundDestinationDetailsModel = z.infer; - -export const EmailSent = z.object({ +export const EmailSent: z.ZodType = z.object({ 'email_sent_at': z.number().int(), 'email_sent_to': z.string() }); -export type EmailSentModel = z.infer; - -export const RefundNextActionDisplayDetails = z.object({ +export const RefundNextActionDisplayDetails: z.ZodType = z.object({ 'email_sent': EmailSent, 'expires_at': z.number().int() }); -export type RefundNextActionDisplayDetailsModel = z.infer; - -export const RefundNextAction = z.object({ +export const RefundNextAction: z.ZodType = z.object({ 'display_details': RefundNextActionDisplayDetails.optional(), 'type': z.string() }); -export type RefundNextActionModel = z.infer; - -export const PaymentFlowsPaymentIntentPresentmentDetails = z.object({ +export const PaymentFlowsPaymentIntentPresentmentDetails: z.ZodType = z.object({ 'presentment_amount': z.number().int(), 'presentment_currency': z.string() }); -export type PaymentFlowsPaymentIntentPresentmentDetailsModel = z.infer; - export const Transfer: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_reversed': z.number().int(), @@ -3938,7 +14963,7 @@ export const CustomerCashBalanceTransaction: z.ZodType CustomerBalanceResourceCashBalanceTransactionResourceUnappliedFromPaymentTransaction).optional() }); -export const DisputeTransactionShippingAddress = z.object({ +export const DisputeTransactionShippingAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -3947,9 +14972,7 @@ export const DisputeTransactionShippingAddress = z.object({ 'state': z.string() }); -export type DisputeTransactionShippingAddressModel = z.infer; - -export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3DisputedTransaction: z.ZodType = z.object({ 'customer_account_id': z.string(), 'customer_device_fingerprint': z.string(), 'customer_device_id': z.string(), @@ -3960,9 +14983,7 @@ export const DisputeVisaCompellingEvidence3DisputedTransaction = z.object({ 'shipping_address': z.union([DisputeTransactionShippingAddress]) }); -export type DisputeVisaCompellingEvidence3DisputedTransactionModel = z.infer; - -export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object({ +export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction: z.ZodType = z.object({ 'charge': z.string(), 'customer_account_id': z.string(), 'customer_device_fingerprint': z.string(), @@ -3973,29 +14994,21 @@ export const DisputeVisaCompellingEvidence3PriorUndisputedTransaction = z.object 'shipping_address': z.union([DisputeTransactionShippingAddress]) }); -export type DisputeVisaCompellingEvidence3PriorUndisputedTransactionModel = z.infer; - -export const DisputeEnhancedEvidenceVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEvidenceVisaCompellingEvidence3: z.ZodType = z.object({ 'disputed_transaction': z.union([DisputeVisaCompellingEvidence3DisputedTransaction]), 'prior_undisputed_transactions': z.array(DisputeVisaCompellingEvidence3PriorUndisputedTransaction) }); -export type DisputeEnhancedEvidenceVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEvidenceVisaCompliance = z.object({ +export const DisputeEnhancedEvidenceVisaCompliance: z.ZodType = z.object({ 'fee_acknowledged': z.boolean() }); -export type DisputeEnhancedEvidenceVisaComplianceModel = z.infer; - -export const DisputeEnhancedEvidence = z.object({ +export const DisputeEnhancedEvidence: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEvidenceVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEvidenceVisaCompliance.optional() }); -export type DisputeEnhancedEvidenceModel = z.infer; - -export const DisputeEvidence = z.object({ +export const DisputeEvidence: z.ZodType = z.object({ 'access_activity_log': z.string(), 'billing_address': z.string(), 'cancellation_policy': z.union([z.string(), z.lazy(() => File)]), @@ -4026,29 +15039,21 @@ export const DisputeEvidence = z.object({ 'uncategorized_text': z.string() }); -export type DisputeEvidenceModel = z.infer; - -export const DisputeEnhancedEligibilityVisaCompellingEvidence3 = z.object({ +export const DisputeEnhancedEligibilityVisaCompellingEvidence3: z.ZodType = z.object({ 'required_actions': z.array(z.enum(['missing_customer_identifiers', 'missing_disputed_transaction_description', 'missing_merchandise_or_services', 'missing_prior_undisputed_transaction_description', 'missing_prior_undisputed_transactions'])), 'status': z.enum(['not_qualified', 'qualified', 'requires_action']) }); -export type DisputeEnhancedEligibilityVisaCompellingEvidence3Model = z.infer; - -export const DisputeEnhancedEligibilityVisaCompliance = z.object({ +export const DisputeEnhancedEligibilityVisaCompliance: z.ZodType = z.object({ 'status': z.enum(['fee_acknowledged', 'requires_fee_acknowledgement']) }); -export type DisputeEnhancedEligibilityVisaComplianceModel = z.infer; - -export const DisputeEnhancedEligibility = z.object({ +export const DisputeEnhancedEligibility: z.ZodType = z.object({ 'visa_compelling_evidence_3': DisputeEnhancedEligibilityVisaCompellingEvidence3.optional(), 'visa_compliance': DisputeEnhancedEligibilityVisaCompliance.optional() }); -export type DisputeEnhancedEligibilityModel = z.infer; - -export const DisputeEvidenceDetails = z.object({ +export const DisputeEvidenceDetails: z.ZodType = z.object({ 'due_by': z.number().int(), 'enhanced_eligibility': DisputeEnhancedEligibility, 'has_evidence': z.boolean(), @@ -4057,37 +15062,27 @@ export const DisputeEvidenceDetails = z.object({ 'submission_method': z.enum(['manual', 'not_submitted', 'smart_disputes']).optional() }); -export type DisputeEvidenceDetailsModel = z.infer; - -export const DisputePaymentMethodDetailsAmazonPay = z.object({ +export const DisputePaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'dispute_type': z.enum(['chargeback', 'claim']) }); -export type DisputePaymentMethodDetailsAmazonPayModel = z.infer; - -export const DisputePaymentMethodDetailsCard = z.object({ +export const DisputePaymentMethodDetailsCard: z.ZodType = z.object({ 'brand': z.string(), 'case_type': z.enum(['block', 'chargeback', 'compliance', 'inquiry', 'resolution']), 'network_reason_code': z.string() }); -export type DisputePaymentMethodDetailsCardModel = z.infer; - -export const DisputePaymentMethodDetailsKlarna = z.object({ +export const DisputePaymentMethodDetailsKlarna: z.ZodType = z.object({ 'chargeback_loss_reason_code': z.string().optional(), 'reason_code': z.string() }); -export type DisputePaymentMethodDetailsKlarnaModel = z.infer; - -export const DisputePaymentMethodDetailsPaypal = z.object({ +export const DisputePaymentMethodDetailsPaypal: z.ZodType = z.object({ 'case_id': z.string(), 'reason_code': z.string() }); -export type DisputePaymentMethodDetailsPaypalModel = z.infer; - -export const DisputePaymentMethodDetails = z.object({ +export const DisputePaymentMethodDetails: z.ZodType = z.object({ 'amazon_pay': DisputePaymentMethodDetailsAmazonPay.optional(), 'card': DisputePaymentMethodDetailsCard.optional(), 'klarna': DisputePaymentMethodDetailsKlarna.optional(), @@ -4095,15 +15090,11 @@ export const DisputePaymentMethodDetails = z.object({ 'type': z.enum(['amazon_pay', 'card', 'klarna', 'paypal']) }); -export type DisputePaymentMethodDetailsModel = z.infer; - -export const DisputeSmartDisputes = z.object({ +export const DisputeSmartDisputes: z.ZodType = z.object({ 'recommended_evidence': z.array(z.array(z.string())), 'status': z.enum(['available', 'processing', 'requires_evidence', 'unavailable']) }); -export type DisputeSmartDisputesModel = z.infer; - export const Dispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)), @@ -4138,61 +15129,45 @@ export const FeeRefund: z.ZodType = z.object({ 'object': z.enum(['fee_refund']) }); -export const IssuingAuthorizationAmountDetails = z.object({ +export const IssuingAuthorizationAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int(), 'cashback_amount': z.number().int() }); -export type IssuingAuthorizationAmountDetailsModel = z.infer; - -export const IssuingCardholderAddress = z.object({ +export const IssuingCardholderAddress: z.ZodType = z.object({ 'address': Address }); -export type IssuingCardholderAddressModel = z.infer; - -export const IssuingCardholderCompany = z.object({ +export const IssuingCardholderCompany: z.ZodType = z.object({ 'tax_id_provided': z.boolean() }); -export type IssuingCardholderCompanyModel = z.infer; - -export const IssuingCardholderUserTermsAcceptance = z.object({ +export const IssuingCardholderUserTermsAcceptance: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type IssuingCardholderUserTermsAcceptanceModel = z.infer; - -export const IssuingCardholderCardIssuing = z.object({ +export const IssuingCardholderCardIssuing: z.ZodType = z.object({ 'user_terms_acceptance': z.union([IssuingCardholderUserTermsAcceptance]) }); -export type IssuingCardholderCardIssuingModel = z.infer; - -export const IssuingCardholderIndividualDob = z.object({ +export const IssuingCardholderIndividualDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type IssuingCardholderIndividualDobModel = z.infer; - -export const IssuingCardholderIdDocument = z.object({ +export const IssuingCardholderIdDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]), 'front': z.union([z.string(), z.lazy(() => File)]) }); -export type IssuingCardholderIdDocumentModel = z.infer; - -export const IssuingCardholderVerification = z.object({ +export const IssuingCardholderVerification: z.ZodType = z.object({ 'document': z.union([IssuingCardholderIdDocument]) }); -export type IssuingCardholderVerificationModel = z.infer; - -export const IssuingCardholderIndividual = z.object({ +export const IssuingCardholderIndividual: z.ZodType = z.object({ 'card_issuing': z.union([IssuingCardholderCardIssuing]).optional(), 'dob': z.union([IssuingCardholderIndividualDob]), 'first_name': z.string(), @@ -4200,24 +15175,18 @@ export const IssuingCardholderIndividual = z.object({ 'verification': z.union([IssuingCardholderVerification]) }); -export type IssuingCardholderIndividualModel = z.infer; - -export const IssuingCardholderRequirements = z.object({ +export const IssuingCardholderRequirements: z.ZodType = z.object({ 'disabled_reason': z.enum(['listed', 'rejected.listed', 'requirements.past_due', 'under_review']), 'past_due': z.array(z.enum(['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'])) }); -export type IssuingCardholderRequirementsModel = z.infer; - -export const IssuingCardholderSpendingLimit = z.object({ +export const IssuingCardholderSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardholderSpendingLimitModel = z.infer; - -export const IssuingCardholderAuthorizationControls = z.object({ +export const IssuingCardholderAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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': z.array(z.string()), 'blocked_categories': z.array(z.enum(['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'])), @@ -4226,9 +15195,7 @@ export const IssuingCardholderAuthorizationControls = z.object({ 'spending_limits_currency': z.string() }); -export type IssuingCardholderAuthorizationControlsModel = z.infer; - -export const IssuingCardholder = z.object({ +export const IssuingCardholder: z.ZodType = z.object({ 'billing': IssuingCardholderAddress, 'company': z.union([IssuingCardholderCompany]), 'created': z.number().int(), @@ -4247,33 +15214,25 @@ export const IssuingCardholder = z.object({ 'type': z.enum(['company', 'individual']) }); -export type IssuingCardholderModel = z.infer; - -export const IssuingCardFraudWarning = z.object({ +export const IssuingCardFraudWarning: z.ZodType = z.object({ 'started_at': z.number().int(), 'type': z.enum(['card_testing_exposure', 'fraud_dispute_filed', 'third_party_reported', 'user_indicated_fraud']) }); -export type IssuingCardFraudWarningModel = z.infer; - -export const IssuingPersonalizationDesignCarrierText = z.object({ +export const IssuingPersonalizationDesignCarrierText: z.ZodType = z.object({ 'footer_body': z.string(), 'footer_title': z.string(), 'header_body': z.string(), 'header_title': z.string() }); -export type IssuingPersonalizationDesignCarrierTextModel = z.infer; - -export const IssuingPhysicalBundleFeatures = z.object({ +export const IssuingPhysicalBundleFeatures: z.ZodType = z.object({ 'card_logo': z.enum(['optional', 'required', 'unsupported']), 'carrier_text': z.enum(['optional', 'required', 'unsupported']), 'second_line': z.enum(['optional', 'required', 'unsupported']) }); -export type IssuingPhysicalBundleFeaturesModel = z.infer; - -export const IssuingPhysicalBundle = z.object({ +export const IssuingPhysicalBundle: z.ZodType = z.object({ 'features': IssuingPhysicalBundleFeatures, 'id': z.string(), 'livemode': z.boolean(), @@ -4283,23 +15242,17 @@ export const IssuingPhysicalBundle = z.object({ 'type': z.enum(['custom', 'standard']) }); -export type IssuingPhysicalBundleModel = z.infer; - -export const IssuingPersonalizationDesignPreferences = z.object({ +export const IssuingPersonalizationDesignPreferences: z.ZodType = z.object({ 'is_default': z.boolean(), 'is_platform_default': z.boolean() }); -export type IssuingPersonalizationDesignPreferencesModel = z.infer; - -export const IssuingPersonalizationDesignRejectionReasons = z.object({ +export const IssuingPersonalizationDesignRejectionReasons: z.ZodType = z.object({ 'card_logo': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_binary_image', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])), 'carrier_text': z.array(z.enum(['geographic_location', 'inappropriate', 'network_name', 'non_fiat_currency', 'other', 'other_entity', 'promotional_material'])) }); -export type IssuingPersonalizationDesignRejectionReasonsModel = z.infer; - -export const IssuingPersonalizationDesign = z.object({ +export const IssuingPersonalizationDesign: z.ZodType = z.object({ 'card_logo': z.union([z.string(), z.lazy(() => File)]), 'carrier_text': z.union([IssuingPersonalizationDesignCarrierText]), 'created': z.number().int(), @@ -4315,23 +15268,17 @@ export const IssuingPersonalizationDesign = z.object({ 'status': z.enum(['active', 'inactive', 'rejected', 'review']) }); -export type IssuingPersonalizationDesignModel = z.infer; - -export const IssuingCardShippingAddressValidation = z.object({ +export const IssuingCardShippingAddressValidation: z.ZodType = z.object({ 'mode': z.enum(['disabled', 'normalization_only', 'validation_and_normalization']), 'normalized_address': z.union([Address]), 'result': z.enum(['indeterminate', 'likely_deliverable', 'likely_undeliverable']) }); -export type IssuingCardShippingAddressValidationModel = z.infer; - -export const IssuingCardShippingCustoms = z.object({ +export const IssuingCardShippingCustoms: z.ZodType = z.object({ 'eori_number': z.string() }); -export type IssuingCardShippingCustomsModel = z.infer; - -export const IssuingCardShipping = z.object({ +export const IssuingCardShipping: z.ZodType = z.object({ 'address': Address, 'address_validation': z.union([IssuingCardShippingAddressValidation]), 'carrier': z.enum(['dhl', 'fedex', 'royal_mail', 'usps']), @@ -4347,17 +15294,13 @@ export const IssuingCardShipping = z.object({ 'type': z.enum(['bulk', 'individual']) }); -export type IssuingCardShippingModel = z.infer; - -export const IssuingCardSpendingLimit = z.object({ +export const IssuingCardSpendingLimit: z.ZodType = z.object({ 'amount': z.number().int(), 'categories': z.array(z.enum(['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': z.enum(['all_time', 'daily', 'monthly', 'per_authorization', 'weekly', 'yearly']) }); -export type IssuingCardSpendingLimitModel = z.infer; - -export const IssuingCardAuthorizationControls = z.object({ +export const IssuingCardAuthorizationControls: z.ZodType = z.object({ 'allowed_categories': z.array(z.enum(['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': z.array(z.string()), 'blocked_categories': z.array(z.enum(['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'])), @@ -4366,30 +15309,22 @@ export const IssuingCardAuthorizationControls = z.object({ 'spending_limits_currency': z.string() }); -export type IssuingCardAuthorizationControlsModel = z.infer; - -export const IssuingCardApplePay = z.object({ +export const IssuingCardApplePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']) }); -export type IssuingCardApplePayModel = z.infer; - -export const IssuingCardGooglePay = z.object({ +export const IssuingCardGooglePay: z.ZodType = z.object({ 'eligible': z.boolean(), 'ineligible_reason': z.enum(['missing_agreement', 'missing_cardholder_contact', 'unsupported_region']) }); -export type IssuingCardGooglePayModel = z.infer; - -export const IssuingCardWallets = z.object({ +export const IssuingCardWallets: z.ZodType = z.object({ 'apple_pay': IssuingCardApplePay, 'google_pay': IssuingCardGooglePay, 'primary_account_identifier': z.string() }); -export type IssuingCardWalletsModel = z.infer; - export const IssuingCard: z.ZodType = z.object({ 'brand': z.string(), 'cancellation_reason': z.enum(['design_rejected', 'lost', 'stolen']), @@ -4419,7 +15354,7 @@ export const IssuingCard: z.ZodType = z.object({ 'wallets': z.union([IssuingCardWallets]) }); -export const IssuingAuthorizationFleetCardholderPromptData = z.object({ +export const IssuingAuthorizationFleetCardholderPromptData: z.ZodType = z.object({ 'alphanumeric_id': z.string(), 'driver_id': z.string(), 'odometer': z.number().int(), @@ -4428,53 +15363,39 @@ export const IssuingAuthorizationFleetCardholderPromptData = z.object({ 'vehicle_number': z.string() }); -export type IssuingAuthorizationFleetCardholderPromptDataModel = z.infer; - -export const IssuingAuthorizationFleetFuelPriceData = z.object({ +export const IssuingAuthorizationFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetNonFuelPriceData = z.object({ +export const IssuingAuthorizationFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetNonFuelPriceDataModel = z.infer; - -export const IssuingAuthorizationFleetTaxData = z.object({ +export const IssuingAuthorizationFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string(), 'national_amount_decimal': z.string() }); -export type IssuingAuthorizationFleetTaxDataModel = z.infer; - -export const IssuingAuthorizationFleetReportedBreakdown = z.object({ +export const IssuingAuthorizationFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingAuthorizationFleetFuelPriceData]), 'non_fuel': z.union([IssuingAuthorizationFleetNonFuelPriceData]), 'tax': z.union([IssuingAuthorizationFleetTaxData]) }); -export type IssuingAuthorizationFleetReportedBreakdownModel = z.infer; - -export const IssuingAuthorizationFleetData = z.object({ +export const IssuingAuthorizationFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingAuthorizationFleetCardholderPromptData]), 'purchase_type': z.enum(['fuel_and_non_fuel_purchase', 'fuel_purchase', 'non_fuel_purchase']), 'reported_breakdown': z.union([IssuingAuthorizationFleetReportedBreakdown]), 'service_type': z.enum(['full_service', 'non_fuel_transaction', 'self_service']) }); -export type IssuingAuthorizationFleetDataModel = z.infer; - -export const IssuingAuthorizationFraudChallenge = z.object({ +export const IssuingAuthorizationFraudChallenge: z.ZodType = z.object({ 'channel': z.enum(['sms']), 'status': z.enum(['expired', 'pending', 'rejected', 'undeliverable', 'verified']), 'undeliverable_reason': z.enum(['no_phone_number', 'unsupported_phone_number']) }); -export type IssuingAuthorizationFraudChallengeModel = z.infer; - -export const IssuingAuthorizationFuelData = z.object({ +export const IssuingAuthorizationFuelData: z.ZodType = z.object({ 'industry_product_code': z.string(), 'quantity_decimal': z.string(), 'type': z.enum(['diesel', 'other', 'unleaded_plus', 'unleaded_regular', 'unleaded_super']), @@ -4482,9 +15403,7 @@ export const IssuingAuthorizationFuelData = z.object({ 'unit_cost_decimal': z.string() }); -export type IssuingAuthorizationFuelDataModel = z.infer; - -export const IssuingAuthorizationMerchantData = z.object({ +export const IssuingAuthorizationMerchantData: z.ZodType = z.object({ 'category': z.string(), 'category_code': z.string(), 'city': z.string(), @@ -4498,17 +15417,13 @@ export const IssuingAuthorizationMerchantData = z.object({ 'url': z.string() }); -export type IssuingAuthorizationMerchantDataModel = z.infer; - -export const IssuingAuthorizationNetworkData = z.object({ +export const IssuingAuthorizationNetworkData: z.ZodType = z.object({ 'acquiring_institution_id': z.string(), 'system_trace_audit_number': z.string(), 'transaction_id': z.string() }); -export type IssuingAuthorizationNetworkDataModel = z.infer; - -export const IssuingAuthorizationPendingRequest = z.object({ +export const IssuingAuthorizationPendingRequest: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), 'currency': z.string(), @@ -4518,9 +15433,7 @@ export const IssuingAuthorizationPendingRequest = z.object({ 'network_risk_score': z.number().int() }); -export type IssuingAuthorizationPendingRequestModel = z.infer; - -export const IssuingAuthorizationRequest_1 = z.object({ +export const IssuingAuthorizationRequest_1: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), 'approved': z.boolean(), @@ -4535,9 +15448,7 @@ export const IssuingAuthorizationRequest_1 = z.object({ 'requested_at': z.number().int() }); -export type IssuingAuthorizationRequest_1Model = z.infer; - -export const IssuingNetworkTokenDevice = z.object({ +export const IssuingNetworkTokenDevice: z.ZodType = z.object({ 'device_fingerprint': z.string().optional(), 'ip_address': z.string().optional(), 'location': z.string().optional(), @@ -4546,34 +15457,26 @@ export const IssuingNetworkTokenDevice = z.object({ 'type': z.enum(['other', 'phone', 'watch']).optional() }); -export type IssuingNetworkTokenDeviceModel = z.infer; - -export const IssuingNetworkTokenMastercard = z.object({ +export const IssuingNetworkTokenMastercard: z.ZodType = z.object({ 'card_reference_id': z.string().optional(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_requestor_name': z.string().optional() }); -export type IssuingNetworkTokenMastercardModel = z.infer; - -export const IssuingNetworkTokenVisa = z.object({ +export const IssuingNetworkTokenVisa: z.ZodType = z.object({ 'card_reference_id': z.string(), 'token_reference_id': z.string(), 'token_requestor_id': z.string(), 'token_risk_score': z.string().optional() }); -export type IssuingNetworkTokenVisaModel = z.infer; - -export const IssuingNetworkTokenAddress = z.object({ +export const IssuingNetworkTokenAddress: z.ZodType = z.object({ 'line1': z.string(), 'postal_code': z.string() }); -export type IssuingNetworkTokenAddressModel = z.infer; - -export const IssuingNetworkTokenWalletProvider = z.object({ +export const IssuingNetworkTokenWalletProvider: z.ZodType = z.object({ 'account_id': z.string().optional(), 'account_trust_score': z.number().int().optional(), 'card_number_source': z.enum(['app', 'manual', 'on_file', 'other']).optional(), @@ -4586,9 +15489,7 @@ export const IssuingNetworkTokenWalletProvider = z.object({ 'suggested_decision_version': z.string().optional() }); -export type IssuingNetworkTokenWalletProviderModel = z.infer; - -export const IssuingNetworkTokenNetworkData = z.object({ +export const IssuingNetworkTokenNetworkData: z.ZodType = z.object({ 'device': IssuingNetworkTokenDevice.optional(), 'mastercard': IssuingNetworkTokenMastercard.optional(), 'type': z.enum(['mastercard', 'visa']), @@ -4596,9 +15497,7 @@ export const IssuingNetworkTokenNetworkData = z.object({ 'wallet_provider': IssuingNetworkTokenWalletProvider.optional() }); -export type IssuingNetworkTokenNetworkDataModel = z.infer; - -export const IssuingToken = z.object({ +export const IssuingToken: z.ZodType = z.object({ 'card': z.union([z.string(), z.lazy(() => IssuingCard)]), 'created': z.number().int(), 'device_fingerprint': z.string(), @@ -4613,16 +15512,12 @@ export const IssuingToken = z.object({ 'wallet_provider': z.enum(['apple_pay', 'google_pay', 'samsung_pay']).optional() }); -export type IssuingTokenModel = z.infer; - -export const IssuingTransactionAmountDetails = z.object({ +export const IssuingTransactionAmountDetails: z.ZodType = z.object({ 'atm_fee': z.number().int(), 'cashback_amount': z.number().int() }); -export type IssuingTransactionAmountDetailsModel = z.infer; - -export const IssuingDisputeCanceledEvidence = z.object({ +export const IssuingDisputeCanceledEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'canceled_at': z.number().int(), 'cancellation_policy_provided': z.boolean(), @@ -4635,9 +15530,7 @@ export const IssuingDisputeCanceledEvidence = z.object({ 'returned_at': z.number().int() }); -export type IssuingDisputeCanceledEvidenceModel = z.infer; - -export const IssuingDisputeDuplicateEvidence = z.object({ +export const IssuingDisputeDuplicateEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'card_statement': z.union([z.string(), z.lazy(() => File)]), 'cash_receipt': z.union([z.string(), z.lazy(() => File)]), @@ -4646,16 +15539,12 @@ export const IssuingDisputeDuplicateEvidence = z.object({ 'original_transaction': z.string() }); -export type IssuingDisputeDuplicateEvidenceModel = z.infer; - -export const IssuingDisputeFraudulentEvidence = z.object({ +export const IssuingDisputeFraudulentEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string() }); -export type IssuingDisputeFraudulentEvidenceModel = z.infer; - -export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ +export const IssuingDisputeMerchandiseNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string(), 'received_at': z.number().int(), @@ -4664,16 +15553,12 @@ export const IssuingDisputeMerchandiseNotAsDescribedEvidence = z.object({ 'returned_at': z.number().int() }); -export type IssuingDisputeMerchandiseNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeNoValidAuthorizationEvidence = z.object({ +export const IssuingDisputeNoValidAuthorizationEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string() }); -export type IssuingDisputeNoValidAuthorizationEvidenceModel = z.infer; - -export const IssuingDisputeNotReceivedEvidence = z.object({ +export const IssuingDisputeNotReceivedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'expected_at': z.number().int(), 'explanation': z.string(), @@ -4681,18 +15566,14 @@ export const IssuingDisputeNotReceivedEvidence = z.object({ 'product_type': z.enum(['merchandise', 'service']) }); -export type IssuingDisputeNotReceivedEvidenceModel = z.infer; - -export const IssuingDisputeOtherEvidence = z.object({ +export const IssuingDisputeOtherEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'explanation': z.string(), 'product_description': z.string(), 'product_type': z.enum(['merchandise', 'service']) }); -export type IssuingDisputeOtherEvidenceModel = z.infer; - -export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ +export const IssuingDisputeServiceNotAsDescribedEvidence: z.ZodType = z.object({ 'additional_documentation': z.union([z.string(), z.lazy(() => File)]), 'canceled_at': z.number().int(), 'cancellation_reason': z.string(), @@ -4700,9 +15581,7 @@ export const IssuingDisputeServiceNotAsDescribedEvidence = z.object({ 'received_at': z.number().int() }); -export type IssuingDisputeServiceNotAsDescribedEvidenceModel = z.infer; - -export const IssuingDisputeEvidence = z.object({ +export const IssuingDisputeEvidence: z.ZodType = z.object({ 'canceled': IssuingDisputeCanceledEvidence.optional(), 'duplicate': IssuingDisputeDuplicateEvidence.optional(), 'fraudulent': IssuingDisputeFraudulentEvidence.optional(), @@ -4714,15 +15593,11 @@ export const IssuingDisputeEvidence = z.object({ 'service_not_as_described': IssuingDisputeServiceNotAsDescribedEvidence.optional() }); -export type IssuingDisputeEvidenceModel = z.infer; - -export const IssuingDisputeTreasury = z.object({ +export const IssuingDisputeTreasury: z.ZodType = z.object({ 'debit_reversal': z.string(), 'received_debit': z.string() }); -export type IssuingDisputeTreasuryModel = z.infer; - export const IssuingDispute: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transactions': z.array(z.lazy(() => BalanceTransaction)).optional(), @@ -4739,15 +15614,13 @@ export const IssuingDispute: z.ZodType = z.object({ 'treasury': z.union([IssuingDisputeTreasury]).optional() }); -export const IssuingTransactionNetworkData = z.object({ +export const IssuingTransactionNetworkData: z.ZodType = z.object({ 'authorization_code': z.string(), 'processing_date': z.string(), 'transaction_id': z.string() }); -export type IssuingTransactionNetworkDataModel = z.infer; - -export const IssuingTransactionFleetCardholderPromptData = z.object({ +export const IssuingTransactionFleetCardholderPromptData: z.ZodType = z.object({ 'driver_id': z.string(), 'odometer': z.number().int(), 'unspecified_id': z.string(), @@ -4755,45 +15628,33 @@ export const IssuingTransactionFleetCardholderPromptData = z.object({ 'vehicle_number': z.string() }); -export type IssuingTransactionFleetCardholderPromptDataModel = z.infer; - -export const IssuingTransactionFleetFuelPriceData = z.object({ +export const IssuingTransactionFleetFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingTransactionFleetFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetNonFuelPriceData = z.object({ +export const IssuingTransactionFleetNonFuelPriceData: z.ZodType = z.object({ 'gross_amount_decimal': z.string() }); -export type IssuingTransactionFleetNonFuelPriceDataModel = z.infer; - -export const IssuingTransactionFleetTaxData = z.object({ +export const IssuingTransactionFleetTaxData: z.ZodType = z.object({ 'local_amount_decimal': z.string(), 'national_amount_decimal': z.string() }); -export type IssuingTransactionFleetTaxDataModel = z.infer; - -export const IssuingTransactionFleetReportedBreakdown = z.object({ +export const IssuingTransactionFleetReportedBreakdown: z.ZodType = z.object({ 'fuel': z.union([IssuingTransactionFleetFuelPriceData]), 'non_fuel': z.union([IssuingTransactionFleetNonFuelPriceData]), 'tax': z.union([IssuingTransactionFleetTaxData]) }); -export type IssuingTransactionFleetReportedBreakdownModel = z.infer; - -export const IssuingTransactionFleetData = z.object({ +export const IssuingTransactionFleetData: z.ZodType = z.object({ 'cardholder_prompt_data': z.union([IssuingTransactionFleetCardholderPromptData]), 'purchase_type': z.string(), 'reported_breakdown': z.union([IssuingTransactionFleetReportedBreakdown]), 'service_type': z.string() }); -export type IssuingTransactionFleetDataModel = z.infer; - -export const IssuingTransactionFlightDataLeg = z.object({ +export const IssuingTransactionFlightDataLeg: z.ZodType = z.object({ 'arrival_airport_code': z.string(), 'carrier': z.string(), 'departure_airport_code': z.string(), @@ -4802,9 +15663,7 @@ export const IssuingTransactionFlightDataLeg = z.object({ 'stopover_allowed': z.boolean() }); -export type IssuingTransactionFlightDataLegModel = z.infer; - -export const IssuingTransactionFlightData = z.object({ +export const IssuingTransactionFlightData: z.ZodType = z.object({ 'departure_at': z.number().int(), 'passenger_name': z.string(), 'refundable': z.boolean(), @@ -4812,9 +15671,7 @@ export const IssuingTransactionFlightData = z.object({ 'travel_agency': z.string() }); -export type IssuingTransactionFlightDataModel = z.infer; - -export const IssuingTransactionFuelData = z.object({ +export const IssuingTransactionFuelData: z.ZodType = z.object({ 'industry_product_code': z.string(), 'quantity_decimal': z.string(), 'type': z.string(), @@ -4822,25 +15679,19 @@ export const IssuingTransactionFuelData = z.object({ 'unit_cost_decimal': z.string() }); -export type IssuingTransactionFuelDataModel = z.infer; - -export const IssuingTransactionLodgingData = z.object({ +export const IssuingTransactionLodgingData: z.ZodType = z.object({ 'check_in_at': z.number().int(), 'nights': z.number().int() }); -export type IssuingTransactionLodgingDataModel = z.infer; - -export const IssuingTransactionReceiptData = z.object({ +export const IssuingTransactionReceiptData: z.ZodType = z.object({ 'description': z.string(), 'quantity': z.number(), 'total': z.number().int(), 'unit_cost': z.number().int() }); -export type IssuingTransactionReceiptDataModel = z.infer; - -export const IssuingTransactionPurchaseDetails = z.object({ +export const IssuingTransactionPurchaseDetails: z.ZodType = z.object({ 'fleet': z.union([IssuingTransactionFleetData]), 'flight': z.union([IssuingTransactionFlightData]), 'fuel': z.union([IssuingTransactionFuelData]), @@ -4849,9 +15700,7 @@ export const IssuingTransactionPurchaseDetails = z.object({ 'reference': z.string() }); -export type IssuingTransactionPurchaseDetailsModel = z.infer; - -export const IssuingSettlement = z.object({ +export const IssuingSettlement: z.ZodType = z.object({ 'bin': z.string(), 'clearing_date': z.number().int(), 'created': z.number().int(), @@ -4873,15 +15722,11 @@ export const IssuingSettlement = z.object({ 'transaction_count': z.number().int() }); -export type IssuingSettlementModel = z.infer; - -export const IssuingTransactionTreasury = z.object({ +export const IssuingTransactionTreasury: z.ZodType = z.object({ 'received_credit': z.string(), 'received_debit': z.string() }); -export type IssuingTransactionTreasuryModel = z.infer; - export const IssuingTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingTransactionAmountDetails]), @@ -4908,28 +15753,22 @@ export const IssuingTransaction: z.ZodType = z.object({ 'wallet': z.enum(['apple_pay', 'google_pay', 'samsung_pay']) }); -export const IssuingAuthorizationTreasury = z.object({ +export const IssuingAuthorizationTreasury: z.ZodType = z.object({ 'received_credits': z.array(z.string()), 'received_debits': z.array(z.string()), 'transaction': z.string() }); -export type IssuingAuthorizationTreasuryModel = z.infer; - -export const IssuingAuthorizationAuthenticationExemption = z.object({ +export const IssuingAuthorizationAuthenticationExemption: z.ZodType = z.object({ 'claimed_by': z.enum(['acquirer', 'issuer']), 'type': z.enum(['low_value_transaction', 'transaction_risk_analysis', 'unknown']) }); -export type IssuingAuthorizationAuthenticationExemptionModel = z.infer; - -export const IssuingAuthorizationThreeDSecure = z.object({ +export const IssuingAuthorizationThreeDSecure: z.ZodType = z.object({ 'result': z.enum(['attempt_acknowledged', 'authenticated', 'failed', 'required']) }); -export type IssuingAuthorizationThreeDSecureModel = z.infer; - -export const IssuingAuthorizationVerificationData = z.object({ +export const IssuingAuthorizationVerificationData: z.ZodType = z.object({ 'address_line1_check': z.enum(['match', 'mismatch', 'not_provided']), 'address_postal_code_check': z.enum(['match', 'mismatch', 'not_provided']), 'authentication_exemption': z.union([IssuingAuthorizationAuthenticationExemption]), @@ -4939,8 +15778,6 @@ export const IssuingAuthorizationVerificationData = z.object({ 'three_d_secure': z.union([IssuingAuthorizationThreeDSecure]) }); -export type IssuingAuthorizationVerificationDataModel = z.infer; - export const IssuingAuthorization: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_details': z.union([IssuingAuthorizationAmountDetails]), @@ -4973,35 +15810,27 @@ export const IssuingAuthorization: z.ZodType = z.obje 'wallet': z.string() }); -export const DeletedBankAccount = z.object({ +export const DeletedBankAccount: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['bank_account']) }); -export type DeletedBankAccountModel = z.infer; - -export const DeletedCard = z.object({ +export const DeletedCard: z.ZodType = z.object({ 'currency': z.string().optional(), 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['card']) }); -export type DeletedCardModel = z.infer; - -export const DeletedExternalAccount = z.union([DeletedBankAccount, DeletedCard]); +export const DeletedExternalAccount: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); -export type DeletedExternalAccountModel = z.infer; - -export const PayoutsTraceId = z.object({ +export const PayoutsTraceId: z.ZodType = z.object({ 'status': z.string(), 'value': z.string() }); -export type PayoutsTraceIdModel = z.infer; - export const Payout: z.ZodType = z.object({ 'amount': z.number().int(), 'application_fee': z.union([z.string(), z.lazy(() => ApplicationFee)]), @@ -5032,7 +15861,7 @@ export const Payout: z.ZodType = z.object({ 'type': z.enum(['bank_account', 'card']) }); -export const ReserveTransaction = z.object({ +export const ReserveTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'description': z.string(), @@ -5040,9 +15869,7 @@ export const ReserveTransaction = z.object({ 'object': z.enum(['reserve_transaction']) }); -export type ReserveTransactionModel = z.infer; - -export const TaxDeductedAtSource = z.object({ +export const TaxDeductedAtSource: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['tax_deducted_at_source']), 'period_end': z.number().int(), @@ -5050,8 +15877,6 @@ export const TaxDeductedAtSource = z.object({ 'tax_deduction_account_number': z.string() }); -export type TaxDeductedAtSourceModel = z.infer; - export const Topup: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transaction': z.union([z.string(), z.lazy(() => BalanceTransaction)]), @@ -5092,14 +15917,12 @@ export const BalanceTransaction: z.ZodType = z.object({ 'type': z.enum(['adjustment', 'advance', 'advance_funding', 'anticipation_repayment', 'application_fee', 'application_fee_refund', 'charge', 'climate_order_purchase', 'climate_order_refund', 'connect_collection_transfer', 'contribution', 'issuing_authorization_hold', 'issuing_authorization_release', 'issuing_dispute', 'issuing_transaction', 'obligation_outbound', 'obligation_reversal_inbound', 'payment', 'payment_failure_refund', 'payment_network_reserve_hold', 'payment_network_reserve_release', 'payment_refund', 'payment_reversal', 'payment_unreconciled', 'payout', 'payout_cancel', 'payout_failure', 'payout_minimum_balance_hold', 'payout_minimum_balance_release', 'refund', 'refund_failure', 'reserve_transaction', 'reserved_funds', 'stripe_balance_payment_debit', 'stripe_balance_payment_debit_reversal', 'stripe_fee', 'stripe_fx_fee', 'tax_fee', 'topup', 'topup_reversal', 'transfer', 'transfer_cancel', 'transfer_failure', 'transfer_refund']) }); -export const PlatformEarningFeeSource = z.object({ +export const PlatformEarningFeeSource: z.ZodType = z.object({ 'charge': z.string().optional(), 'payout': z.string().optional(), 'type': z.enum(['charge', 'payout']) }); -export type PlatformEarningFeeSourceModel = z.infer; - export const ApplicationFee: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'amount': z.number().int(), @@ -5123,14 +15946,12 @@ export const ApplicationFee: z.ZodType = z.object({ }) }); -export const ChargeFraudDetails = z.object({ +export const ChargeFraudDetails: z.ZodType = z.object({ 'stripe_report': z.string().optional(), 'user_report': z.string().optional() }); -export type ChargeFraudDetailsModel = z.infer; - -export const Level3LineItems = z.object({ +export const Level3LineItems: z.ZodType = z.object({ 'discount_amount': z.number().int(), 'product_code': z.string(), 'product_description': z.string(), @@ -5139,9 +15960,7 @@ export const Level3LineItems = z.object({ 'unit_cost': z.number().int() }); -export type Level3LineItemsModel = z.infer; - -export const Level3 = z.object({ +export const Level3: z.ZodType = z.object({ 'customer_reference': z.string().optional(), 'line_items': z.array(Level3LineItems), 'merchant_reference': z.string(), @@ -5150,17 +15969,13 @@ export const Level3 = z.object({ 'shipping_from_zip': z.string().optional() }); -export type Level3Model = z.infer; - -export const Rule = z.object({ +export const Rule: z.ZodType = z.object({ 'action': z.string(), 'id': z.string(), 'predicate': z.string() }); -export type RuleModel = z.infer; - -export const ChargeOutcome = z.object({ +export const ChargeOutcome: z.ZodType = z.object({ 'advice_code': z.enum(['confirm_card_data', 'do_not_try_again', 'try_again_later']), 'network_advice_code': z.string(), 'network_decline_code': z.string(), @@ -5173,18 +15988,14 @@ export const ChargeOutcome = z.object({ 'type': z.string() }); -export type ChargeOutcomeModel = z.infer; - -export const PaymentMethodDetailsAchCreditTransfer = z.object({ +export const PaymentMethodDetailsAchCreditTransfer: z.ZodType = z.object({ 'account_number': z.string(), 'bank_name': z.string(), 'routing_number': z.string(), 'swift_code': z.string() }); -export type PaymentMethodDetailsAchCreditTransferModel = z.infer; - -export const PaymentMethodDetailsAchDebit = z.object({ +export const PaymentMethodDetailsAchDebit: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank_name': z.string(), 'country': z.string(), @@ -5193,9 +16004,7 @@ export const PaymentMethodDetailsAchDebit = z.object({ 'routing_number': z.string() }); -export type PaymentMethodDetailsAchDebitModel = z.infer; - -export const PaymentMethodDetailsAcssDebit = z.object({ +export const PaymentMethodDetailsAcssDebit: z.ZodType = z.object({ 'bank_name': z.string(), 'fingerprint': z.string(), 'institution_number': z.string(), @@ -5204,45 +16013,33 @@ export const PaymentMethodDetailsAcssDebit = z.object({ 'transit_number': z.string() }); -export type PaymentMethodDetailsAcssDebitModel = z.infer; - -export const PaymentMethodDetailsAffirm = z.object({ +export const PaymentMethodDetailsAffirm: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAffirmModel = z.infer; - -export const PaymentMethodDetailsAfterpayClearpay = z.object({ +export const PaymentMethodDetailsAfterpayClearpay: z.ZodType = z.object({ 'order_id': z.string(), 'reference': z.string() }); -export type PaymentMethodDetailsAfterpayClearpayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsAlipayDetails = z.object({ +export const PaymentFlowsPrivatePaymentMethodsAlipayDetails: z.ZodType = z.object({ 'buyer_id': z.string().optional(), 'fingerprint': z.string(), 'transaction_id': z.string() }); -export type PaymentFlowsPrivatePaymentMethodsAlipayDetailsModel = z.infer; - -export const AlmaInstallments = z.object({ +export const AlmaInstallments: z.ZodType = z.object({ 'count': z.number().int() }); -export type AlmaInstallmentsModel = z.infer; - -export const PaymentMethodDetailsAlma = z.object({ +export const PaymentMethodDetailsAlma: z.ZodType = z.object({ 'installments': AlmaInstallments.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAlmaModel = z.infer; - -export const PaymentMethodDetailsPassthroughCard = z.object({ +export const PaymentMethodDetailsPassthroughCard: z.ZodType = z.object({ 'brand': z.string(), 'brand_product': z.string().optional(), 'country': z.string(), @@ -5252,40 +16049,30 @@ export const PaymentMethodDetailsPassthroughCard = z.object({ 'last4': z.string() }); -export type PaymentMethodDetailsPassthroughCardModel = z.infer; - -export const AmazonPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const AmazonPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']) }); -export type AmazonPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsAmazonPay = z.object({ +export const PaymentMethodDetailsAmazonPay: z.ZodType = z.object({ 'funding': AmazonPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsAmazonPayModel = z.infer; - -export const PaymentMethodDetailsAuBecsDebit = z.object({ +export const PaymentMethodDetailsAuBecsDebit: z.ZodType = z.object({ 'bsb_number': z.string(), 'fingerprint': z.string(), 'last4': z.string(), 'mandate': z.string().optional() }); -export type PaymentMethodDetailsAuBecsDebitModel = z.infer; - -export const PaymentMethodDetailsBacsDebit = z.object({ +export const PaymentMethodDetailsBacsDebit: z.ZodType = z.object({ 'fingerprint': z.string(), 'last4': z.string(), 'mandate': z.string(), 'sort_code': z.string() }); -export type PaymentMethodDetailsBacsDebitModel = z.infer; - export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -5297,90 +16084,64 @@ export const PaymentMethodDetailsBancontact: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsBillieModel = z.infer; - -export const PaymentMethodDetailsBlik = z.object({ +export const PaymentMethodDetailsBlik: z.ZodType = z.object({ 'buyer_id': z.string() }); -export type PaymentMethodDetailsBlikModel = z.infer; - -export const PaymentMethodDetailsBoleto = z.object({ +export const PaymentMethodDetailsBoleto: z.ZodType = z.object({ 'tax_id': z.string() }); -export type PaymentMethodDetailsBoletoModel = z.infer; - -export const PaymentMethodDetailsCardChecks = z.object({ +export const PaymentMethodDetailsCardChecks: z.ZodType = z.object({ 'address_line1_check': z.string(), 'address_postal_code_check': z.string(), 'cvc_check': z.string() }); -export type PaymentMethodDetailsCardChecksModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorization: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesDecrementalAuthorizationDecrementalAuthorizationModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorization: z.ZodType = z.object({ 'status': z.enum(['disabled', 'enabled']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesExtendedAuthorizationExtendedAuthorizationModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorization: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationModel = z.infer; - -export const PaymentMethodDetailsCardInstallmentsPlan = z.object({ +export const PaymentMethodDetailsCardInstallmentsPlan: z.ZodType = z.object({ 'count': z.number().int(), 'interval': z.enum(['month']), 'type': z.enum(['bonus', 'fixed_count', 'revolving']) }); -export type PaymentMethodDetailsCardInstallmentsPlanModel = z.infer; - -export const PaymentMethodDetailsCardInstallments = z.object({ +export const PaymentMethodDetailsCardInstallments: z.ZodType = z.object({ 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]) }); -export type PaymentMethodDetailsCardInstallmentsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticapture: z.ZodType = z.object({ 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceMulticaptureModel = z.infer; - -export const PaymentMethodDetailsCardNetworkToken = z.object({ +export const PaymentMethodDetailsCardNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentMethodDetailsCardNetworkTokenModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercapture: z.ZodType = z.object({ 'maximum_amount_capturable': z.number().int(), 'status': z.enum(['available', 'unavailable']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesOvercaptureOvercaptureModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesPartialAuthorizationPartialAuthorization = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesPartialAuthorizationPartialAuthorization: z.ZodType = z.object({ 'status': z.enum(['declined', 'fully_authorized', 'not_requested', 'partially_authorized']) }); -export type PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesPartialAuthorizationPartialAuthorizationModel = z.infer; - -export const ThreeDSecureDetailsCharge = z.object({ +export const ThreeDSecureDetailsCharge: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'electronic_commerce_indicator': z.enum(['01', '02', '05', '06', '07']), 'exemption_indicator': z.enum(['low_risk', 'none']), @@ -5391,45 +16152,33 @@ export const ThreeDSecureDetailsCharge = z.object({ 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type ThreeDSecureDetailsChargeModel = z.infer; - -export const PaymentMethodDetailsCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodDetailsCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWalletLink = z.object({ +export const PaymentMethodDetailsCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletLinkModel = z.infer; - -export const PaymentMethodDetailsCardWalletMasterpass = z.object({ +export const PaymentMethodDetailsCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodDetailsCardWalletMasterpassModel = z.infer; - -export const PaymentMethodDetailsCardWalletSamsungPay = z.object({ +export const PaymentMethodDetailsCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodDetailsCardWalletVisaCheckout = z.object({ +export const PaymentMethodDetailsCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodDetailsCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodDetailsCardWallet = z.object({ +export const PaymentMethodDetailsCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodDetailsCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodDetailsCardWalletApplePay.optional(), 'dynamic_last4': z.string(), @@ -5441,9 +16190,7 @@ export const PaymentMethodDetailsCardWallet = z.object({ 'visa_checkout': PaymentMethodDetailsCardWalletVisaCheckout.optional() }); -export type PaymentMethodDetailsCardWalletModel = z.infer; - -export const PaymentMethodDetailsCard = z.object({ +export const PaymentMethodDetailsCard: z.ZodType = z.object({ 'amount_authorized': z.number().int(), 'amount_requested': z.number().int().optional(), 'authorization_code': z.string(), @@ -5476,68 +16223,50 @@ export const PaymentMethodDetailsCard = z.object({ 'wallet': z.union([PaymentMethodDetailsCardWallet]) }); -export type PaymentMethodDetailsCardModel = z.infer; - -export const PaymentMethodDetailsCashapp = z.object({ +export const PaymentMethodDetailsCashapp: z.ZodType = z.object({ 'buyer_id': z.string(), 'cashtag': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsCashappModel = z.infer; - -export const PaymentMethodDetailsCrypto = z.object({ +export const PaymentMethodDetailsCrypto: z.ZodType = z.object({ 'buyer_address': z.string().optional(), 'network': z.enum(['base', 'ethereum', 'polygon', 'solana']).optional(), 'token_currency': z.enum(['usdc', 'usdg', 'usdp']).optional(), 'transaction_hash': z.string().optional() }); -export type PaymentMethodDetailsCryptoModel = z.infer; - -export const PaymentMethodDetailsCustomerBalance = z.object({ +export const PaymentMethodDetailsCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodDetailsCustomerBalanceModel = z.infer; - -export const PaymentMethodDetailsEps = z.object({ +export const PaymentMethodDetailsEps: z.ZodType = z.object({ 'bank': z.enum(['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']), 'verified_name': z.string() }); -export type PaymentMethodDetailsEpsModel = z.infer; - -export const PaymentMethodDetailsFpx = z.object({ +export const PaymentMethodDetailsFpx: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank': z.enum(['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']), 'transaction_id': z.string() }); -export type PaymentMethodDetailsFpxModel = z.infer; - -export const PaymentMethodDetailsGiropay = z.object({ +export const PaymentMethodDetailsGiropay: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), 'bic': z.string(), 'verified_name': z.string() }); -export type PaymentMethodDetailsGiropayModel = z.infer; - -export const PaymentMethodDetailsGopay = z.object({ +export const PaymentMethodDetailsGopay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsGopayModel = z.infer; - -export const PaymentMethodDetailsGrabpay = z.object({ +export const PaymentMethodDetailsGrabpay: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsGrabpayModel = z.infer; - -export const PaymentMethodDetailsIdBankTransfer = z.object({ +export const PaymentMethodDetailsIdBankTransfer: z.ZodType = z.object({ 'account_number': z.string(), 'bank': z.enum(['bca', 'bni', 'bri', 'cimb', 'permata']), 'bank_code': z.string().optional(), @@ -5545,8 +16274,6 @@ export const PaymentMethodDetailsIdBankTransfer = z.object({ 'display_name': z.string().optional() }); -export type PaymentMethodDetailsIdBankTransferModel = z.infer; - export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']), @@ -5557,7 +16284,7 @@ export const PaymentMethodDetailsIdeal: z.ZodType = z.object({ 'account_type': z.enum(['checking', 'savings', 'unknown']).optional(), 'application_cryptogram': z.string(), 'application_preferred_name': z.string(), @@ -5569,9 +16296,7 @@ export const PaymentMethodDetailsInteracPresentReceipt = z.object({ 'transaction_status_information': z.string() }); -export type PaymentMethodDetailsInteracPresentReceiptModel = z.infer; - -export const PaymentMethodDetailsInteracPresent = z.object({ +export const PaymentMethodDetailsInteracPresent: z.ZodType = z.object({ 'brand': z.string(), 'cardholder_name': z.string(), 'country': z.string(), @@ -5592,69 +16317,49 @@ export const PaymentMethodDetailsInteracPresent = z.object({ 'receipt': z.union([PaymentMethodDetailsInteracPresentReceipt]) }); -export type PaymentMethodDetailsInteracPresentModel = z.infer; - -export const PaymentMethodDetailsKakaoPay = z.object({ +export const PaymentMethodDetailsKakaoPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsKakaoPayModel = z.infer; - -export const KlarnaAddress = z.object({ +export const KlarnaAddress: z.ZodType = z.object({ 'country': z.string() }); -export type KlarnaAddressModel = z.infer; - -export const KlarnaPayerDetails = z.object({ +export const KlarnaPayerDetails: z.ZodType = z.object({ 'address': z.union([KlarnaAddress]) }); -export type KlarnaPayerDetailsModel = z.infer; - -export const PaymentMethodDetailsKlarna = z.object({ +export const PaymentMethodDetailsKlarna: z.ZodType = z.object({ 'payer_details': z.union([KlarnaPayerDetails]), 'payment_method_category': z.string(), 'preferred_locale': z.string() }); -export type PaymentMethodDetailsKlarnaModel = z.infer; - -export const PaymentMethodDetailsKonbiniStore = z.object({ +export const PaymentMethodDetailsKonbiniStore: z.ZodType = z.object({ 'chain': z.enum(['familymart', 'lawson', 'ministop', 'seicomart']) }); -export type PaymentMethodDetailsKonbiniStoreModel = z.infer; - -export const PaymentMethodDetailsKonbini = z.object({ +export const PaymentMethodDetailsKonbini: z.ZodType = z.object({ 'store': z.union([PaymentMethodDetailsKonbiniStore]) }); -export type PaymentMethodDetailsKonbiniModel = z.infer; - -export const PaymentMethodDetailsKrCard = z.object({ +export const PaymentMethodDetailsKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']), 'buyer_id': z.string(), 'last4': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsKrCardModel = z.infer; - -export const PaymentMethodDetailsLink = z.object({ +export const PaymentMethodDetailsLink: z.ZodType = z.object({ 'country': z.string() }); -export type PaymentMethodDetailsLinkModel = z.infer; - -export const PaymentMethodDetailsMbWay = z.object({ +export const PaymentMethodDetailsMbWay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsMbWayModel = z.infer; - -export const InternalCard = z.object({ +export const InternalCard: z.ZodType = z.object({ 'brand': z.string(), 'country': z.string(), 'exp_month': z.number().int(), @@ -5662,29 +16367,21 @@ export const InternalCard = z.object({ 'last4': z.string() }); -export type InternalCardModel = z.infer; - -export const PaymentMethodDetailsMobilepay = z.object({ +export const PaymentMethodDetailsMobilepay: z.ZodType = z.object({ 'card': z.union([InternalCard]) }); -export type PaymentMethodDetailsMobilepayModel = z.infer; - -export const PaymentMethodDetailsMultibanco = z.object({ +export const PaymentMethodDetailsMultibanco: z.ZodType = z.object({ 'entity': z.string(), 'reference': z.string() }); -export type PaymentMethodDetailsMultibancoModel = z.infer; - -export const PaymentMethodDetailsNaverPay = z.object({ +export const PaymentMethodDetailsNaverPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsNaverPayModel = z.infer; - -export const PaymentMethodDetailsNzBankAccount = z.object({ +export const PaymentMethodDetailsNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -5693,51 +16390,37 @@ export const PaymentMethodDetailsNzBankAccount = z.object({ 'suffix': z.string() }); -export type PaymentMethodDetailsNzBankAccountModel = z.infer; - -export const PaymentMethodDetailsOxxo = z.object({ +export const PaymentMethodDetailsOxxo: z.ZodType = z.object({ 'number': z.string() }); -export type PaymentMethodDetailsOxxoModel = z.infer; - -export const PaymentMethodDetailsP24 = z.object({ +export const PaymentMethodDetailsP24: z.ZodType = z.object({ 'bank': z.enum(['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']), 'reference': z.string(), 'verified_name': z.string() }); -export type PaymentMethodDetailsP24Model = z.infer; - -export const PaymentMethodDetailsPayByBank = z.object({ +export const PaymentMethodDetailsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodDetailsPayByBankModel = z.infer; - -export const PaymentMethodDetailsPayco = z.object({ +export const PaymentMethodDetailsPayco: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsPaycoModel = z.infer; - -export const PaymentMethodDetailsPaynow = z.object({ +export const PaymentMethodDetailsPaynow: z.ZodType = z.object({ 'location': z.string().optional(), 'reader': z.string().optional(), 'reference': z.string() }); -export type PaymentMethodDetailsPaynowModel = z.infer; - -export const PaypalSellerProtection = z.object({ +export const PaypalSellerProtection: z.ZodType = z.object({ 'dispute_categories': z.array(z.enum(['fraudulent', 'product_not_received'])), 'status': z.enum(['eligible', 'not_eligible', 'partially_eligible']) }); -export type PaypalSellerProtectionModel = z.infer; - -export const PaymentMethodDetailsPaypal = z.object({ +export const PaymentMethodDetailsPaypal: z.ZodType = z.object({ 'country': z.string(), 'payer_email': z.string(), 'payer_id': z.string(), @@ -5750,84 +16433,60 @@ export const PaymentMethodDetailsPaypal = z.object({ 'verified_name': z.string().optional() }); -export type PaymentMethodDetailsPaypalModel = z.infer; - -export const PaymentMethodDetailsPaypay = z.object({ +export const PaymentMethodDetailsPaypay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsPaypayModel = z.infer; - -export const PaymentMethodDetailsPayto = z.object({ +export const PaymentMethodDetailsPayto: z.ZodType = z.object({ 'bsb_number': z.string(), 'last4': z.string(), 'mandate': z.string().optional(), 'pay_id': z.string() }); -export type PaymentMethodDetailsPaytoModel = z.infer; - -export const PaymentMethodDetailsPix = z.object({ +export const PaymentMethodDetailsPix: z.ZodType = z.object({ 'bank_transaction_id': z.string().optional(), 'mandate': z.string().optional() }); -export type PaymentMethodDetailsPixModel = z.infer; - -export const PaymentMethodDetailsPromptpay = z.object({ +export const PaymentMethodDetailsPromptpay: z.ZodType = z.object({ 'reference': z.string() }); -export type PaymentMethodDetailsPromptpayModel = z.infer; - -export const PaymentMethodDetailsQris = z.object({ +export const PaymentMethodDetailsQris: z.ZodType = z.object({ }); -export type PaymentMethodDetailsQrisModel = z.infer; - -export const PaymentMethodDetailsRechnung = z.object({ +export const PaymentMethodDetailsRechnung: z.ZodType = z.object({ 'payment_portal_url': z.string() }); -export type PaymentMethodDetailsRechnungModel = z.infer; - -export const RevolutPayUnderlyingPaymentMethodFundingDetails = z.object({ +export const RevolutPayUnderlyingPaymentMethodFundingDetails: z.ZodType = z.object({ 'card': PaymentMethodDetailsPassthroughCard.optional(), 'type': z.enum(['card']) }); -export type RevolutPayUnderlyingPaymentMethodFundingDetailsModel = z.infer; - -export const PaymentMethodDetailsRevolutPay = z.object({ +export const PaymentMethodDetailsRevolutPay: z.ZodType = z.object({ 'funding': RevolutPayUnderlyingPaymentMethodFundingDetails.optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsRevolutPayModel = z.infer; - -export const PaymentMethodDetailsSamsungPay = z.object({ +export const PaymentMethodDetailsSamsungPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsSamsungPayModel = z.infer; - -export const PaymentMethodDetailsSatispay = z.object({ +export const PaymentMethodDetailsSatispay: z.ZodType = z.object({ 'transaction_id': z.string() }); -export type PaymentMethodDetailsSatispayModel = z.infer; - -export const PaymentMethodDetailsSepaCreditTransfer = z.object({ +export const PaymentMethodDetailsSepaCreditTransfer: z.ZodType = z.object({ 'bank_name': z.string(), 'bic': z.string(), 'iban': z.string() }); -export type PaymentMethodDetailsSepaCreditTransferModel = z.infer; - -export const PaymentMethodDetailsSepaDebit = z.object({ +export const PaymentMethodDetailsSepaDebit: z.ZodType = z.object({ 'bank_code': z.string(), 'branch_code': z.string(), 'country': z.string(), @@ -5836,14 +16495,10 @@ export const PaymentMethodDetailsSepaDebit = z.object({ 'mandate': z.string() }); -export type PaymentMethodDetailsSepaDebitModel = z.infer; - -export const PaymentMethodDetailsShopeepay = z.object({ +export const PaymentMethodDetailsShopeepay: z.ZodType = z.object({ }); -export type PaymentMethodDetailsShopeepayModel = z.infer; - export const PaymentMethodDetailsSofort: z.ZodType = z.object({ 'bank_code': z.string(), 'bank_name': z.string(), @@ -5856,34 +16511,26 @@ export const PaymentMethodDetailsSofort: z.ZodType = z.object({ }); -export type PaymentMethodDetailsStripeAccountModel = z.infer; - -export const PaymentMethodDetailsStripeBalance = z.object({ +export const PaymentMethodDetailsStripeBalance: z.ZodType = z.object({ 'account': z.string().optional(), 'source_type': z.enum(['bank_account', 'card', 'fpx']) }); -export type PaymentMethodDetailsStripeBalanceModel = z.infer; - -export const PaymentMethodDetailsSwish = z.object({ +export const PaymentMethodDetailsSwish: z.ZodType = z.object({ 'fingerprint': z.string(), 'payment_reference': z.string(), 'verified_phone_last4': z.string() }); -export type PaymentMethodDetailsSwishModel = z.infer; - -export const PaymentMethodDetailsTwint = z.object({ +export const PaymentMethodDetailsTwint: z.ZodType = z.object({ }); -export type PaymentMethodDetailsTwintModel = z.infer; - -export const PaymentMethodDetailsUsBankAccount = z.object({ +export const PaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -5894,29 +16541,21 @@ export const PaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type PaymentMethodDetailsUsBankAccountModel = z.infer; - -export const PaymentMethodDetailsWechat = z.object({ +export const PaymentMethodDetailsWechat: z.ZodType = z.object({ }); -export type PaymentMethodDetailsWechatModel = z.infer; - -export const PaymentMethodDetailsWechatPay = z.object({ +export const PaymentMethodDetailsWechatPay: z.ZodType = z.object({ 'fingerprint': z.string(), 'location': z.string().optional(), 'reader': z.string().optional(), 'transaction_id': z.string() }); -export type PaymentMethodDetailsWechatPayModel = z.infer; - -export const PaymentMethodDetailsZip = z.object({ +export const PaymentMethodDetailsZip: z.ZodType = z.object({ }); -export type PaymentMethodDetailsZipModel = z.infer; - export const PaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), @@ -5985,13 +16624,11 @@ export const PaymentMethodDetails: z.ZodType = z.obje 'zip': PaymentMethodDetailsZip.optional() }); -export const RadarRadarOptions = z.object({ +export const RadarRadarOptions: z.ZodType = z.object({ 'session': z.string().optional() }); -export type RadarRadarOptionsModel = z.infer; - -export const RadarReviewResourceLocation = z.object({ +export const RadarReviewResourceLocation: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'latitude': z.number(), @@ -5999,17 +16636,13 @@ export const RadarReviewResourceLocation = z.object({ 'region': z.string() }); -export type RadarReviewResourceLocationModel = z.infer; - -export const RadarReviewResourceSession = z.object({ +export const RadarReviewResourceSession: z.ZodType = z.object({ 'browser': z.string(), 'device': z.string(), 'platform': z.string(), 'version': z.string() }); -export type RadarReviewResourceSessionModel = z.infer; - export const Review: z.ZodType = z.object({ 'billing_zip': z.string(), 'charge': z.union([z.string(), z.lazy(() => Charge)]), @@ -6088,48 +16721,38 @@ export const Charge: z.ZodType = z.object({ 'transfer_group': z.string() }); -export const PaymentIntentNextActionAlipayHandleRedirect = z.object({ +export const PaymentIntentNextActionAlipayHandleRedirect: z.ZodType = z.object({ 'native_data': z.string(), 'native_url': z.string(), 'return_url': z.string(), 'url': z.string() }); -export type PaymentIntentNextActionAlipayHandleRedirectModel = z.infer; - -export const PaymentIntentNextActionBoleto = z.object({ +export const PaymentIntentNextActionBoleto: z.ZodType = z.object({ 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'number': z.string(), 'pdf': z.string() }); -export type PaymentIntentNextActionBoletoModel = z.infer; - -export const PaymentIntentNextActionCardAwaitNotification = z.object({ +export const PaymentIntentNextActionCardAwaitNotification: z.ZodType = z.object({ 'charge_attempt_at': z.number().int(), 'customer_approval_required': z.boolean() }); -export type PaymentIntentNextActionCardAwaitNotificationModel = z.infer; - -export const PaymentIntentNextActionCashappQrCode = z.object({ +export const PaymentIntentNextActionCashappQrCode: z.ZodType = z.object({ 'expires_at': z.number().int(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionCashappQrCodeModel = z.infer; - -export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'mobile_auth_url': z.string(), 'qr_code': PaymentIntentNextActionCashappQrCode }); -export type PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const FundingInstructionsBankTransferAbaRecord = z.object({ +export const FundingInstructionsBankTransferAbaRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -6139,9 +16762,7 @@ export const FundingInstructionsBankTransferAbaRecord = z.object({ 'routing_number': z.string() }); -export type FundingInstructionsBankTransferAbaRecordModel = z.infer; - -export const FundingInstructionsBankTransferIbanRecord = z.object({ +export const FundingInstructionsBankTransferIbanRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -6150,9 +16771,7 @@ export const FundingInstructionsBankTransferIbanRecord = z.object({ 'iban': z.string() }); -export type FundingInstructionsBankTransferIbanRecordModel = z.infer; - -export const FundingInstructionsBankTransferSortCodeRecord = z.object({ +export const FundingInstructionsBankTransferSortCodeRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -6160,9 +16779,7 @@ export const FundingInstructionsBankTransferSortCodeRecord = z.object({ 'sort_code': z.string() }); -export type FundingInstructionsBankTransferSortCodeRecordModel = z.infer; - -export const FundingInstructionsBankTransferSpeiRecord = z.object({ +export const FundingInstructionsBankTransferSpeiRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'bank_address': Address, @@ -6171,9 +16788,7 @@ export const FundingInstructionsBankTransferSpeiRecord = z.object({ 'clabe': z.string() }); -export type FundingInstructionsBankTransferSpeiRecordModel = z.infer; - -export const FundingInstructionsBankTransferSwiftRecord = z.object({ +export const FundingInstructionsBankTransferSwiftRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -6183,9 +16798,7 @@ export const FundingInstructionsBankTransferSwiftRecord = z.object({ 'swift_code': z.string() }); -export type FundingInstructionsBankTransferSwiftRecordModel = z.infer; - -export const FundingInstructionsBankTransferZenginRecord = z.object({ +export const FundingInstructionsBankTransferZenginRecord: z.ZodType = z.object({ 'account_holder_address': Address, 'account_holder_name': z.string(), 'account_number': z.string(), @@ -6197,9 +16810,7 @@ export const FundingInstructionsBankTransferZenginRecord = z.object({ 'branch_name': z.string() }); -export type FundingInstructionsBankTransferZenginRecordModel = z.infer; - -export const FundingInstructionsBankTransferFinancialAddress = z.object({ +export const FundingInstructionsBankTransferFinancialAddress: z.ZodType = z.object({ 'aba': FundingInstructionsBankTransferAbaRecord.optional(), 'iban': FundingInstructionsBankTransferIbanRecord.optional(), 'sort_code': FundingInstructionsBankTransferSortCodeRecord.optional(), @@ -6210,9 +16821,7 @@ export const FundingInstructionsBankTransferFinancialAddress = z.object({ 'zengin': FundingInstructionsBankTransferZenginRecord.optional() }); -export type FundingInstructionsBankTransferFinancialAddressModel = z.infer; - -export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ +export const PaymentIntentNextActionDisplayBankTransferInstructions: z.ZodType = z.object({ 'amount_remaining': z.number().int(), 'currency': z.string(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress).optional(), @@ -6221,80 +16830,60 @@ export const PaymentIntentNextActionDisplayBankTransferInstructions = z.object({ 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type PaymentIntentNextActionDisplayBankTransferInstructionsModel = z.infer; - -export const PaymentIntentNextActionKonbiniFamilymart = z.object({ +export const PaymentIntentNextActionKonbiniFamilymart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniFamilymartModel = z.infer; - -export const PaymentIntentNextActionKonbiniLawson = z.object({ +export const PaymentIntentNextActionKonbiniLawson: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniLawsonModel = z.infer; - -export const PaymentIntentNextActionKonbiniMinistop = z.object({ +export const PaymentIntentNextActionKonbiniMinistop: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniMinistopModel = z.infer; - -export const PaymentIntentNextActionKonbiniSeicomart = z.object({ +export const PaymentIntentNextActionKonbiniSeicomart: z.ZodType = z.object({ 'confirmation_number': z.string().optional(), 'payment_code': z.string() }); -export type PaymentIntentNextActionKonbiniSeicomartModel = z.infer; - -export const PaymentIntentNextActionKonbiniStores = z.object({ +export const PaymentIntentNextActionKonbiniStores: z.ZodType = z.object({ 'familymart': z.union([PaymentIntentNextActionKonbiniFamilymart]), 'lawson': z.union([PaymentIntentNextActionKonbiniLawson]), 'ministop': z.union([PaymentIntentNextActionKonbiniMinistop]), 'seicomart': z.union([PaymentIntentNextActionKonbiniSeicomart]) }); -export type PaymentIntentNextActionKonbiniStoresModel = z.infer; - -export const PaymentIntentNextActionKonbini = z.object({ +export const PaymentIntentNextActionKonbini: z.ZodType = z.object({ 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'stores': PaymentIntentNextActionKonbiniStores }); -export type PaymentIntentNextActionKonbiniModel = z.infer; - -export const PaymentIntentNextActionDisplayMultibancoDetails = z.object({ +export const PaymentIntentNextActionDisplayMultibancoDetails: z.ZodType = z.object({ 'entity': z.string(), 'expires_at': z.number().int(), 'hosted_voucher_url': z.string(), 'reference': z.string() }); -export type PaymentIntentNextActionDisplayMultibancoDetailsModel = z.infer; - -export const PaymentIntentNextActionDisplayOxxoDetails = z.object({ +export const PaymentIntentNextActionDisplayOxxoDetails: z.ZodType = z.object({ 'expires_after': z.number().int(), 'hosted_voucher_url': z.string(), 'number': z.string() }); -export type PaymentIntentNextActionDisplayOxxoDetailsModel = z.infer; - -export const PaymentIntentNextActionPaynowDisplayQrCode = z.object({ +export const PaymentIntentNextActionPaynowDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPaynowDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPixDisplayQrCode = z.object({ +export const PaymentIntentNextActionPixDisplayQrCode: z.ZodType = z.object({ 'data': z.string().optional(), 'expires_at': z.number().int().optional(), 'hosted_instructions_url': z.string().optional(), @@ -6302,49 +16891,37 @@ export const PaymentIntentNextActionPixDisplayQrCode = z.object({ 'image_url_svg': z.string().optional() }); -export type PaymentIntentNextActionPixDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionPromptpayDisplayQrCode = z.object({ +export const PaymentIntentNextActionPromptpayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionPromptpayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionRedirectToUrl = z.object({ +export const PaymentIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string(), 'url': z.string() }); -export type PaymentIntentNextActionRedirectToUrlModel = z.infer; - -export const PaymentIntentNextActionSwishQrCode = z.object({ +export const PaymentIntentNextActionSwishQrCode: z.ZodType = z.object({ 'data': z.string(), 'image_url_png': z.string(), 'image_url_svg': z.string() }); -export type PaymentIntentNextActionSwishQrCodeModel = z.infer; - -export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode = z.object({ +export const PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCode: z.ZodType = z.object({ 'hosted_instructions_url': z.string(), 'mobile_auth_url': z.string(), 'qr_code': PaymentIntentNextActionSwishQrCode }); -export type PaymentIntentNextActionSwishHandleRedirectOrDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionVerifyWithMicrodeposits = z.object({ +export const PaymentIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']) }); -export type PaymentIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ +export const PaymentIntentNextActionWechatPayDisplayQrCode: z.ZodType = z.object({ 'data': z.string(), 'hosted_instructions_url': z.string(), 'image_data_url': z.string(), @@ -6352,9 +16929,7 @@ export const PaymentIntentNextActionWechatPayDisplayQrCode = z.object({ 'image_url_svg': z.string() }); -export type PaymentIntentNextActionWechatPayDisplayQrCodeModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToAndroidApp: z.ZodType = z.object({ 'app_id': z.string(), 'nonce_str': z.string(), 'package': z.string(), @@ -6364,15 +16939,11 @@ export const PaymentIntentNextActionWechatPayRedirectToAndroidApp = z.object({ 'timestamp': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToAndroidAppModel = z.infer; - -export const PaymentIntentNextActionWechatPayRedirectToIosApp = z.object({ +export const PaymentIntentNextActionWechatPayRedirectToIosApp: z.ZodType = z.object({ 'native_url': z.string() }); -export type PaymentIntentNextActionWechatPayRedirectToIosAppModel = z.infer; - -export const PaymentIntentNextAction = z.object({ +export const PaymentIntentNextAction: z.ZodType = z.object({ 'alipay_handle_redirect': PaymentIntentNextActionAlipayHandleRedirect.optional(), 'boleto_display_details': PaymentIntentNextActionBoleto.optional(), 'card_await_notification': PaymentIntentNextActionCardAwaitNotification.optional(), @@ -6394,45 +16965,33 @@ export const PaymentIntentNextAction = z.object({ 'wechat_pay_redirect_to_ios_app': PaymentIntentNextActionWechatPayRedirectToIosApp.optional() }); -export type PaymentIntentNextActionModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceAffiliate = z.object({ +export const PaymentFlowsPaymentDetailsResourceAffiliate: z.ZodType = z.object({ 'name': z.string().optional() }); -export type PaymentFlowsPaymentDetailsResourceAffiliateModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceDeliveryRecipient = z.object({ +export const PaymentFlowsPaymentDetailsResourceDeliveryRecipient: z.ZodType = z.object({ 'email': z.string().optional(), 'name': z.string().optional(), 'phone': z.string().optional() }); -export type PaymentFlowsPaymentDetailsResourceDeliveryRecipientModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceDelivery = z.object({ +export const PaymentFlowsPaymentDetailsResourceDelivery: z.ZodType = z.object({ 'mode': z.enum(['email', 'phone', 'pickup', 'post']).optional(), 'recipient': PaymentFlowsPaymentDetailsResourceDeliveryRecipient.optional() }); -export type PaymentFlowsPaymentDetailsResourceDeliveryModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceCarRentalDistance = z.object({ +export const PaymentFlowsPaymentDetailsResourceCarRentalDistance: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'unit': z.string().optional() }); -export type PaymentFlowsPaymentDetailsResourceCarRentalDistanceModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceCarRentalDriver = z.object({ +export const PaymentFlowsPaymentDetailsResourceCarRentalDriver: z.ZodType = z.object({ 'driver_identification_number': z.string().optional(), 'driver_tax_number': z.string().optional(), 'name': z.string().optional() }); -export type PaymentFlowsPaymentDetailsResourceCarRentalDriverModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceCarRental = z.object({ +export const PaymentFlowsPaymentDetailsResourceCarRental: z.ZodType = z.object({ 'affiliate': PaymentFlowsPaymentDetailsResourceAffiliate.optional(), 'booking_number': z.string(), 'car_class_code': z.string().optional(), @@ -6459,9 +17018,7 @@ export const PaymentFlowsPaymentDetailsResourceCarRental = z.object({ 'vehicle_identification_number': z.string().optional() }); -export type PaymentFlowsPaymentDetailsResourceCarRentalModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceEvent = z.object({ +export const PaymentFlowsPaymentDetailsResourceEvent: z.ZodType = z.object({ 'access_controlled_venue': z.boolean().optional(), 'address': Address.optional(), 'affiliate': PaymentFlowsPaymentDetailsResourceAffiliate.optional(), @@ -6473,16 +17030,12 @@ export const PaymentFlowsPaymentDetailsResourceEvent = z.object({ 'starts_at': z.number().int().optional() }); -export type PaymentFlowsPaymentDetailsResourceEventModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceBillingInterval = z.object({ +export const PaymentFlowsPaymentDetailsResourceBillingInterval: z.ZodType = z.object({ 'count': z.number().int().optional(), 'interval': z.enum(['day', 'month', 'week', 'year']).optional() }); -export type PaymentFlowsPaymentDetailsResourceBillingIntervalModel = z.infer; - -export const PaymentFlowsPaymentDetailsResourceSubscription = z.object({ +export const PaymentFlowsPaymentDetailsResourceSubscription: z.ZodType = z.object({ 'affiliate': PaymentFlowsPaymentDetailsResourceAffiliate.optional(), 'auto_renewal': z.boolean().optional(), 'billing_interval': PaymentFlowsPaymentDetailsResourceBillingInterval.optional(), @@ -6491,9 +17044,7 @@ export const PaymentFlowsPaymentDetailsResourceSubscription = z.object({ 'starts_at': z.number().int().optional() }); -export type PaymentFlowsPaymentDetailsResourceSubscriptionModel = z.infer; - -export const PaymentFlowsPaymentDetails = z.object({ +export const PaymentFlowsPaymentDetails: z.ZodType = z.object({ 'car_rental': PaymentFlowsPaymentDetailsResourceCarRental.optional(), 'customer_reference': z.string(), 'event_details': PaymentFlowsPaymentDetailsResourceEvent.optional(), @@ -6501,124 +17052,90 @@ export const PaymentFlowsPaymentDetails = z.object({ 'subscription': PaymentFlowsPaymentDetailsResourceSubscription.optional() }); -export type PaymentFlowsPaymentDetailsModel = z.infer; - -export const PaymentMethodConfigBizPaymentMethodConfigurationDetails = z.object({ +export const PaymentMethodConfigBizPaymentMethodConfigurationDetails: z.ZodType = z.object({ 'id': z.string(), 'parent': z.string() }); -export type PaymentMethodConfigBizPaymentMethodConfigurationDetailsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'interval_description': z.string(), 'payment_schedule': z.enum(['combined', 'interval', 'sporadic']), 'transaction_type': z.enum(['business', 'personal']) }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAcssDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const PaymentMethodOptionsAffirm = z.object({ +export const PaymentMethodOptionsAffirm: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string().optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAffirmModel = z.infer; - -export const PaymentMethodOptionsAfterpayClearpay = z.object({ +export const PaymentMethodOptionsAfterpayClearpay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'reference': z.string(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsAfterpayClearpayModel = z.infer; - -export const PaymentMethodOptionsAlipay = z.object({ +export const PaymentMethodOptionsAlipay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAlipayModel = z.infer; - -export const PaymentMethodOptionsAlma = z.object({ +export const PaymentMethodOptionsAlma: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsAlmaModel = z.infer; - -export const PaymentMethodOptionsAmazonPay = z.object({ +export const PaymentMethodOptionsAmazonPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsAmazonPayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsAuBecsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsAuBecsDebit: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsAuBecsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBacsDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const PaymentMethodOptionsBancontact = z.object({ +export const PaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsBancontactModel = z.infer; - -export const PaymentMethodOptionsBillie = z.object({ +export const PaymentMethodOptionsBillie: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsBillieModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsBlik = z.object({ +export const PaymentIntentPaymentMethodOptionsBlik: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsBlikModel = z.infer; - -export const PaymentMethodOptionsBoleto = z.object({ +export const PaymentMethodOptionsBoleto: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsBoletoModel = z.infer; - -export const PaymentMethodOptionsCardInstallments = z.object({ +export const PaymentMethodOptionsCardInstallments: z.ZodType = z.object({ 'available_plans': z.array(PaymentMethodDetailsCardInstallmentsPlan), 'enabled': z.boolean(), 'plan': z.union([PaymentMethodDetailsCardInstallmentsPlan]) }); -export type PaymentMethodOptionsCardInstallmentsModel = z.infer; - -export const PaymentMethodOptionsCardMandateOptions = z.object({ +export const PaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string(), @@ -6630,9 +17147,7 @@ export const PaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])) }); -export type PaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddress = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddress: z.ZodType = z.object({ 'city': z.string().optional(), 'country': z.string().optional(), 'line1': z.string().optional(), @@ -6641,16 +17156,12 @@ export const PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourc 'state': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddressModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetails = z.object({ +export const PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetails: z.ZodType = z.object({ 'address': PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsResourceAddress.optional(), 'phone': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetailsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsCard = z.object({ +export const PaymentIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': z.union([PaymentMethodOptionsCardInstallments]), 'mandate_options': z.union([PaymentMethodOptionsCardMandateOptions]), @@ -6669,124 +17180,88 @@ export const PaymentIntentPaymentMethodOptionsCard = z.object({ 'statement_details': PaymentFlowsPrivatePaymentMethodsCardOptionsStatementDetails.optional() }); -export type PaymentIntentPaymentMethodOptionsCardModel = z.infer; - -export const PaymentMethodOptionsCardPresentRouting = z.object({ +export const PaymentMethodOptionsCardPresentRouting: z.ZodType = z.object({ 'requested_priority': z.enum(['domestic', 'international']) }); -export type PaymentMethodOptionsCardPresentRoutingModel = z.infer; - -export const PaymentMethodOptionsCardPresent = z.object({ +export const PaymentMethodOptionsCardPresent: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'request_extended_authorization': z.boolean(), 'request_incremental_authorization_support': z.boolean(), 'routing': PaymentMethodOptionsCardPresentRouting.optional() }); -export type PaymentMethodOptionsCardPresentModel = z.infer; - -export const PaymentMethodOptionsCashapp = z.object({ +export const PaymentMethodOptionsCashapp: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsCashappModel = z.infer; - -export const PaymentMethodOptionsCrypto = z.object({ +export const PaymentMethodOptionsCrypto: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCryptoModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceEuBankAccount = z.object({ +export const PaymentMethodOptionsCustomerBalanceEuBankAccount: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type PaymentMethodOptionsCustomerBalanceEuBankAccountModel = z.infer; - -export const PaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const PaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type PaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const PaymentMethodOptionsCustomerBalance = z.object({ +export const PaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': PaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsEps = z.object({ +export const PaymentIntentPaymentMethodOptionsEps: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsEpsModel = z.infer; - -export const PaymentMethodOptionsFpx = z.object({ +export const PaymentMethodOptionsFpx: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsFpxModel = z.infer; - -export const PaymentMethodOptionsGiropay = z.object({ +export const PaymentMethodOptionsGiropay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGiropayModel = z.infer; - -export const PaymentMethodOptionsGopay = z.object({ +export const PaymentMethodOptionsGopay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsGopayModel = z.infer; - -export const PaymentMethodOptionsGrabpay = z.object({ +export const PaymentMethodOptionsGrabpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsGrabpayModel = z.infer; - -export const PaymentMethodOptionsIdBankTransfer = z.object({ +export const PaymentMethodOptionsIdBankTransfer: z.ZodType = z.object({ 'expires_after': z.number().int().optional(), 'expires_at': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsIdBankTransferModel = z.infer; - -export const PaymentMethodOptionsIdeal = z.object({ +export const PaymentMethodOptionsIdeal: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsIdealModel = z.infer; - -export const PaymentMethodOptionsInteracPresent = z.object({ +export const PaymentMethodOptionsInteracPresent: z.ZodType = z.object({ }); -export type PaymentMethodOptionsInteracPresentModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsKakaoPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsKlarna = z.object({ +export const PaymentMethodOptionsKlarna: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type PaymentMethodOptionsKlarnaModel = z.infer; - -export const PaymentMethodOptionsKonbini = z.object({ +export const PaymentMethodOptionsKonbini: z.ZodType = z.object({ 'confirmation_number': z.string(), 'expires_after_days': z.number().int(), 'expires_at': z.number().int(), @@ -6794,95 +17269,67 @@ export const PaymentMethodOptionsKonbini = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsKonbiniModel = z.infer; - -export const PaymentMethodOptionsKrCard = z.object({ +export const PaymentMethodOptionsKrCard: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsKrCardModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsLink = z.object({ +export const PaymentIntentPaymentMethodOptionsLink: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'persistent_token': z.string(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentIntentPaymentMethodOptionsLinkModel = z.infer; - -export const PaymentMethodOptionsMbWay = z.object({ +export const PaymentMethodOptionsMbWay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMbWayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMobilepay = z.object({ +export const PaymentIntentPaymentMethodOptionsMobilepay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsMobilepayModel = z.infer; - -export const PaymentMethodOptionsMultibanco = z.object({ +export const PaymentMethodOptionsMultibanco: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsMultibancoModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsNaverPayPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsNzBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsNzBankAccount: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsNzBankAccountModel = z.infer; - -export const PaymentMethodOptionsOxxo = z.object({ +export const PaymentMethodOptionsOxxo: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsOxxoModel = z.infer; - -export const PaymentMethodOptionsP24 = z.object({ +export const PaymentMethodOptionsP24: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsP24Model = z.infer; - -export const PaymentMethodOptionsPayByBank = z.object({ +export const PaymentMethodOptionsPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodOptionsPayByBankModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsPaycoPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsPaynow = z.object({ +export const PaymentMethodOptionsPaynow: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPaynowModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsPaypalLineItemResourceTax = z.object({ +export const PaymentFlowsPrivatePaymentMethodsPaypalLineItemResourceTax: z.ZodType = z.object({ 'amount': z.number().int(), 'behavior': z.enum(['exclusive', 'inclusive']) }); -export type PaymentFlowsPrivatePaymentMethodsPaypalLineItemResourceTaxModel = z.infer; - -export const LineItemPaypal = z.object({ +export const LineItemPaypal: z.ZodType = z.object({ 'category': z.enum(['digital_goods', 'donation', 'physical_goods']).optional(), 'description': z.string().optional(), 'name': z.string(), @@ -6893,9 +17340,7 @@ export const LineItemPaypal = z.object({ 'unit_amount': z.number().int() }); -export type LineItemPaypalModel = z.infer; - -export const PaymentMethodOptionsPaypal = z.object({ +export const PaymentMethodOptionsPaypal: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'line_items': z.array(LineItemPaypal).optional(), 'preferred_locale': z.string(), @@ -6905,15 +17350,11 @@ export const PaymentMethodOptionsPaypal = z.object({ 'subsellers': z.array(z.string()).optional() }); -export type PaymentMethodOptionsPaypalModel = z.infer; - -export const PaymentMethodOptionsPaypay = z.object({ +export const PaymentMethodOptionsPaypay: z.ZodType = z.object({ }); -export type PaymentMethodOptionsPaypayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsPayto = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsPayto: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'end_date': z.string(), @@ -6922,16 +17363,12 @@ export const PaymentIntentPaymentMethodOptionsMandateOptionsPayto = z.object({ 'purpose': z.enum(['dependant_support', 'government', 'loan', 'mortgage', 'other', 'pension', 'personal', 'retail', 'salary', 'tax', 'utility']) }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsPaytoModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsPayto = z.object({ +export const PaymentIntentPaymentMethodOptionsPayto: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsPayto.optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentIntentPaymentMethodOptionsPaytoModel = z.infer; - -export const PaymentMethodOptionsMandateOptionsPix = z.object({ +export const PaymentMethodOptionsMandateOptionsPix: z.ZodType = z.object({ 'amount': z.number().int().optional(), 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'amount_type': z.enum(['fixed', 'maximum']).optional(), @@ -6942,9 +17379,7 @@ export const PaymentMethodOptionsMandateOptionsPix = z.object({ 'start_date': z.string().optional() }); -export type PaymentMethodOptionsMandateOptionsPixModel = z.infer; - -export const PaymentMethodOptionsPix = z.object({ +export const PaymentMethodOptionsPix: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int(), 'expires_at': z.number().int(), @@ -6952,105 +17387,73 @@ export const PaymentMethodOptionsPix = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsPixModel = z.infer; - -export const PaymentMethodOptionsPromptpay = z.object({ +export const PaymentMethodOptionsPromptpay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsPromptpayModel = z.infer; - -export const PaymentMethodOptionsQris = z.object({ +export const PaymentMethodOptionsQris: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsQrisModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsRechnung = z.object({ +export const PaymentIntentPaymentMethodOptionsRechnung: z.ZodType = z.object({ }); -export type PaymentIntentPaymentMethodOptionsRechnungModel = z.infer; - -export const PaymentMethodOptionsRevolutPay = z.object({ +export const PaymentMethodOptionsRevolutPay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsRevolutPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions = z.object({ +export const PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsSamsungPayPaymentMethodOptionsModel = z.infer; - -export const PaymentMethodOptionsSatispay = z.object({ +export const PaymentMethodOptionsSatispay: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type PaymentMethodOptionsSatispayModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSepaDebit = z.object({ +export const PaymentIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': PaymentIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type PaymentIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const PaymentMethodOptionsShopeepay = z.object({ +export const PaymentMethodOptionsShopeepay: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsShopeepayModel = z.infer; - -export const PaymentMethodOptionsSofort = z.object({ +export const PaymentMethodOptionsSofort: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'es', 'fr', 'it', 'nl', 'pl']), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentMethodOptionsSofortModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsStripeBalance = z.object({ +export const PaymentIntentPaymentMethodOptionsStripeBalance: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type PaymentIntentPaymentMethodOptionsStripeBalanceModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsSwish = z.object({ +export const PaymentIntentPaymentMethodOptionsSwish: z.ZodType = z.object({ 'reference': z.string(), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentIntentPaymentMethodOptionsSwishModel = z.infer; - -export const PaymentMethodOptionsTwint = z.object({ +export const PaymentMethodOptionsTwint: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsTwintModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters = z.object({ +export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional(), 'institution': z.string().optional() }); -export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFiltersModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntry = z.object({ +export const PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntry: z.ZodType = z.object({ 'mode': z.enum(['automatic', 'custom']).optional() }); -export type PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntryModel = z.infer; - -export const LinkedAccountOptionsCommon = z.object({ +export const LinkedAccountOptionsCommon: z.ZodType = z.object({ 'filters': PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters.optional(), 'manual_entry': PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsManualEntry.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), @@ -7058,15 +17461,11 @@ export const LinkedAccountOptionsCommon = z.object({ 'return_url': z.string().optional() }); -export type LinkedAccountOptionsCommonModel = z.infer; - -export const PaymentMethodOptionsUsBankAccountMandateOptions = z.object({ +export const PaymentMethodOptionsUsBankAccountMandateOptions: z.ZodType = z.object({ 'collection_method': z.enum(['paper']).optional() }); -export type PaymentMethodOptionsUsBankAccountMandateOptionsModel = z.infer; - -export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const PaymentIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'preferred_settlement_speed': z.enum(['fastest', 'standard']).optional(), @@ -7075,23 +17474,17 @@ export const PaymentIntentPaymentMethodOptionsUsBankAccount = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const PaymentMethodOptionsWechatPay = z.object({ +export const PaymentMethodOptionsWechatPay: z.ZodType = z.object({ 'app_id': z.string(), 'client': z.enum(['android', 'ios', 'web']), 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsWechatPayModel = z.infer; - -export const PaymentMethodOptionsZip = z.object({ +export const PaymentMethodOptionsZip: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type PaymentMethodOptionsZipModel = z.infer; - -export const PaymentIntentPaymentMethodOptions = z.object({ +export const PaymentIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': PaymentIntentPaymentMethodOptionsAcssDebit.optional(), 'affirm': PaymentMethodOptionsAffirm.optional(), 'afterpay_clearpay': PaymentMethodOptionsAfterpayClearpay.optional(), @@ -7153,31 +17546,21 @@ export const PaymentIntentPaymentMethodOptions = z.object({ 'zip': PaymentMethodOptionsZip.optional() }); -export type PaymentIntentPaymentMethodOptionsModel = z.infer; - -export const PaymentIntentProcessingCustomerNotification = z.object({ +export const PaymentIntentProcessingCustomerNotification: z.ZodType = z.object({ 'approval_requested': z.boolean(), 'completes_at': z.number().int() }); -export type PaymentIntentProcessingCustomerNotificationModel = z.infer; - -export const PaymentIntentCardProcessing = z.object({ +export const PaymentIntentCardProcessing: z.ZodType = z.object({ 'customer_notification': PaymentIntentProcessingCustomerNotification.optional() }); -export type PaymentIntentCardProcessingModel = z.infer; - -export const PaymentIntentProcessing_1 = z.object({ +export const PaymentIntentProcessing_1: z.ZodType = z.object({ 'card': PaymentIntentCardProcessing.optional(), 'type': z.enum(['card']) }); -export type PaymentIntentProcessing_1Model = z.infer; - -export const DeletedPaymentSource = z.union([DeletedBankAccount, DeletedCard]); - -export type DeletedPaymentSourceModel = z.infer; +export const DeletedPaymentSource: z.ZodType = z.union([DeletedBankAccount, DeletedCard]); export const TransferData: z.ZodType = z.object({ 'amount': z.number().int().optional(), @@ -7233,14 +17616,12 @@ export const PaymentIntent: z.ZodType = z.object({ 'transfer_group': z.string() }); -export const PaymentFlowsAutomaticPaymentMethodsSetupIntent = z.object({ +export const PaymentFlowsAutomaticPaymentMethodsSetupIntent: z.ZodType = z.object({ 'allow_redirects': z.enum(['always', 'never']).optional(), 'enabled': z.boolean() }); -export type PaymentFlowsAutomaticPaymentMethodsSetupIntentModel = z.infer; - -export const SetupIntentNextActionPixDisplayQrCode = z.object({ +export const SetupIntentNextActionPixDisplayQrCode: z.ZodType = z.object({ 'data': z.string().optional(), 'expires_at': z.number().int().optional(), 'hosted_instructions_url': z.string().optional(), @@ -7248,24 +17629,18 @@ export const SetupIntentNextActionPixDisplayQrCode = z.object({ 'image_url_svg': z.string().optional() }); -export type SetupIntentNextActionPixDisplayQrCodeModel = z.infer; - -export const SetupIntentNextActionRedirectToUrl = z.object({ +export const SetupIntentNextActionRedirectToUrl: z.ZodType = z.object({ 'return_url': z.string(), 'url': z.string() }); -export type SetupIntentNextActionRedirectToUrlModel = z.infer; - -export const SetupIntentNextActionVerifyWithMicrodeposits = z.object({ +export const SetupIntentNextActionVerifyWithMicrodeposits: z.ZodType = z.object({ 'arrival_date': z.number().int(), 'hosted_verification_url': z.string(), 'microdeposit_type': z.enum(['amounts', 'descriptor_code']) }); -export type SetupIntentNextActionVerifyWithMicrodepositsModel = z.infer; - -export const SetupIntentNextAction = z.object({ +export const SetupIntentNextAction: z.ZodType = z.object({ 'cashapp_handle_redirect_or_display_qr_code': PaymentIntentNextActionCashappHandleRedirectOrDisplayQrCode.optional(), 'pix_display_qr_code': SetupIntentNextActionPixDisplayQrCode.optional(), 'redirect_to_url': SetupIntentNextActionRedirectToUrl.optional(), @@ -7274,9 +17649,7 @@ export const SetupIntentNextAction = z.object({ 'verify_with_microdeposits': SetupIntentNextActionVerifyWithMicrodeposits.optional() }); -export type SetupIntentNextActionModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), @@ -7284,35 +17657,25 @@ export const SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type SetupIntentPaymentMethodOptionsMandateOptionsAcssDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAcssDebit = z.object({ +export const SetupIntentPaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']), 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsAcssDebit.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsAcssDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsAmazonPay = z.object({ +export const SetupIntentPaymentMethodOptionsAmazonPay: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsAmazonPayModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsBacsDebit = z.object({ +export const SetupIntentPaymentMethodOptionsBacsDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsBacsDebit.optional() }); -export type SetupIntentPaymentMethodOptionsBacsDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ +export const SetupIntentPaymentMethodOptionsCardMandateOptions: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'currency': z.string(), @@ -7325,44 +17688,32 @@ export const SetupIntentPaymentMethodOptionsCardMandateOptions = z.object({ 'supported_types': z.array(z.enum(['india'])) }); -export type SetupIntentPaymentMethodOptionsCardMandateOptionsModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCard = z.object({ +export const SetupIntentPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': z.union([SetupIntentPaymentMethodOptionsCardMandateOptions]), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type SetupIntentPaymentMethodOptionsCardModel = z.infer; - -export const SetupIntentPaymentMethodOptionsCardPresent = z.object({ +export const SetupIntentPaymentMethodOptionsCardPresent: z.ZodType = z.object({ }); -export type SetupIntentPaymentMethodOptionsCardPresentModel = z.infer; - -export const SetupIntentPaymentMethodOptionsKlarna = z.object({ +export const SetupIntentPaymentMethodOptionsKlarna: z.ZodType = z.object({ 'currency': z.string(), 'preferred_locale': z.string() }); -export type SetupIntentPaymentMethodOptionsKlarnaModel = z.infer; - -export const SetupIntentPaymentMethodOptionsLink = z.object({ +export const SetupIntentPaymentMethodOptionsLink: z.ZodType = z.object({ 'persistent_token': z.string() }); -export type SetupIntentPaymentMethodOptionsLinkModel = z.infer; - -export const SetupIntentPaymentMethodOptionsPaypal = z.object({ +export const SetupIntentPaymentMethodOptionsPaypal: z.ZodType = z.object({ 'billing_agreement_id': z.string(), 'currency': z.string().optional(), 'subsellers': z.array(z.string()).optional() }); -export type SetupIntentPaymentMethodOptionsPaypalModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsPayto = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsPayto: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'end_date': z.string(), @@ -7372,41 +17723,29 @@ export const SetupIntentPaymentMethodOptionsMandateOptionsPayto = z.object({ 'start_date': z.string() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsPaytoModel = z.infer; - -export const SetupIntentPaymentMethodOptionsPayto = z.object({ +export const SetupIntentPaymentMethodOptionsPayto: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsPayto.optional() }); -export type SetupIntentPaymentMethodOptionsPaytoModel = z.infer; - -export const SetupIntentPaymentMethodOptionsPix = z.object({ +export const SetupIntentPaymentMethodOptionsPix: z.ZodType = z.object({ 'mandate_options': PaymentMethodOptionsMandateOptionsPix.optional() }); -export type SetupIntentPaymentMethodOptionsPixModel = z.infer; - -export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type SetupIntentPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsSepaDebit = z.object({ +export const SetupIntentPaymentMethodOptionsSepaDebit: z.ZodType = z.object({ 'mandate_options': SetupIntentPaymentMethodOptionsMandateOptionsSepaDebit.optional() }); -export type SetupIntentPaymentMethodOptionsSepaDebitModel = z.infer; - -export const SetupIntentPaymentMethodOptionsUsBankAccount = z.object({ +export const SetupIntentPaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'mandate_options': PaymentMethodOptionsUsBankAccountMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentPaymentMethodOptionsUsBankAccountModel = z.infer; - -export const SetupIntentPaymentMethodOptions = z.object({ +export const SetupIntentPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': SetupIntentPaymentMethodOptionsAcssDebit.optional(), 'amazon_pay': SetupIntentPaymentMethodOptionsAmazonPay.optional(), 'bacs_debit': SetupIntentPaymentMethodOptionsBacsDebit.optional(), @@ -7421,8 +17760,6 @@ export const SetupIntentPaymentMethodOptions = z.object({ 'us_bank_account': SetupIntentPaymentMethodOptionsUsBankAccount.optional() }); -export type SetupIntentPaymentMethodOptionsModel = z.infer; - export const SetupIntent: z.ZodType = z.object({ 'application': z.union([z.string(), Application]), 'attach_to_self': z.boolean().optional(), @@ -7497,68 +17834,50 @@ export const PaymentMethodCardGeneratedCard: z.ZodType SetupAttempt)]) }); -export const Networks = z.object({ +export const Networks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string() }); -export type NetworksModel = z.infer; - -export const ThreeDSecureUsage = z.object({ +export const ThreeDSecureUsage: z.ZodType = z.object({ 'supported': z.boolean() }); -export type ThreeDSecureUsageModel = z.infer; - -export const PaymentMethodCardWalletAmexExpressCheckout = z.object({ +export const PaymentMethodCardWalletAmexExpressCheckout: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletAmexExpressCheckoutModel = z.infer; - -export const PaymentMethodCardWalletApplePay = z.object({ +export const PaymentMethodCardWalletApplePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletApplePayModel = z.infer; - -export const PaymentMethodCardWalletGooglePay = z.object({ +export const PaymentMethodCardWalletGooglePay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletGooglePayModel = z.infer; - -export const PaymentMethodCardWalletLink = z.object({ +export const PaymentMethodCardWalletLink: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletLinkModel = z.infer; - -export const PaymentMethodCardWalletMasterpass = z.object({ +export const PaymentMethodCardWalletMasterpass: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodCardWalletMasterpassModel = z.infer; - -export const PaymentMethodCardWalletSamsungPay = z.object({ +export const PaymentMethodCardWalletSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodCardWalletSamsungPayModel = z.infer; - -export const PaymentMethodCardWalletVisaCheckout = z.object({ +export const PaymentMethodCardWalletVisaCheckout: z.ZodType = z.object({ 'billing_address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'shipping_address': z.union([Address]) }); -export type PaymentMethodCardWalletVisaCheckoutModel = z.infer; - -export const PaymentMethodCardWallet = z.object({ +export const PaymentMethodCardWallet: z.ZodType = z.object({ 'amex_express_checkout': PaymentMethodCardWalletAmexExpressCheckout.optional(), 'apple_pay': PaymentMethodCardWalletApplePay.optional(), 'dynamic_last4': z.string(), @@ -7570,8 +17889,6 @@ export const PaymentMethodCardWallet = z.object({ 'visa_checkout': PaymentMethodCardWalletVisaCheckout.optional() }); -export type PaymentMethodCardWalletModel = z.infer; - export const PaymentMethodCard: z.ZodType = z.object({ 'brand': z.string(), 'checks': z.union([PaymentMethodCardChecks]), @@ -7592,14 +17909,12 @@ export const PaymentMethodCard: z.ZodType = z.object({ 'wallet': z.union([PaymentMethodCardWallet]) }); -export const PaymentMethodCardPresentNetworks = z.object({ +export const PaymentMethodCardPresentNetworks: z.ZodType = z.object({ 'available': z.array(z.string()), 'preferred': z.string() }); -export type PaymentMethodCardPresentNetworksModel = z.infer; - -export const PaymentMethodCardPresent = z.object({ +export const PaymentMethodCardPresent: z.ZodType = z.object({ 'brand': z.string(), 'brand_product': z.string(), 'cardholder_name': z.string(), @@ -7619,90 +17934,64 @@ export const PaymentMethodCardPresent = z.object({ 'wallet': PaymentFlowsPrivatePaymentMethodsCardPresentCommonWallet.optional() }); -export type PaymentMethodCardPresentModel = z.infer; - -export const PaymentMethodCashapp = z.object({ +export const PaymentMethodCashapp: z.ZodType = z.object({ 'buyer_id': z.string(), 'cashtag': z.string() }); -export type PaymentMethodCashappModel = z.infer; - -export const PaymentMethodCrypto = z.object({ +export const PaymentMethodCrypto: z.ZodType = z.object({ }); -export type PaymentMethodCryptoModel = z.infer; - -export const CustomLogo = z.object({ +export const CustomLogo: z.ZodType = z.object({ 'content_type': z.string(), 'url': z.string() }); -export type CustomLogoModel = z.infer; - -export const PaymentMethodCustom = z.object({ +export const PaymentMethodCustom: z.ZodType = z.object({ 'display_name': z.string(), 'logo': z.union([CustomLogo]), 'type': z.string() }); -export type PaymentMethodCustomModel = z.infer; - -export const PaymentMethodCustomerBalance = z.object({ +export const PaymentMethodCustomerBalance: z.ZodType = z.object({ }); -export type PaymentMethodCustomerBalanceModel = z.infer; - -export const PaymentMethodEps = z.object({ +export const PaymentMethodEps: z.ZodType = z.object({ 'bank': z.enum(['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']) }); -export type PaymentMethodEpsModel = z.infer; - -export const PaymentMethodFpx = z.object({ +export const PaymentMethodFpx: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'bank': z.enum(['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']) }); -export type PaymentMethodFpxModel = z.infer; - -export const PaymentMethodGiropay = z.object({ +export const PaymentMethodGiropay: z.ZodType = z.object({ }); -export type PaymentMethodGiropayModel = z.infer; - -export const PaymentMethodGopay = z.object({ +export const PaymentMethodGopay: z.ZodType = z.object({ }); -export type PaymentMethodGopayModel = z.infer; - -export const PaymentMethodGrabpay = z.object({ +export const PaymentMethodGrabpay: z.ZodType = z.object({ }); -export type PaymentMethodGrabpayModel = z.infer; - -export const PaymentMethodIdBankTransfer = z.object({ +export const PaymentMethodIdBankTransfer: z.ZodType = z.object({ 'bank': z.enum(['bca', 'bni', 'bri', 'cimb', 'permata']), 'bank_code': z.string(), 'bank_name': z.string(), 'display_name': z.string() }); -export type PaymentMethodIdBankTransferModel = z.infer; - -export const PaymentMethodIdeal = z.object({ +export const PaymentMethodIdeal: z.ZodType = z.object({ 'bank': z.enum(['abn_amro', 'asn_bank', 'bunq', 'buut', 'finom', 'handelsbanken', 'ing', 'knab', 'moneyou', 'n26', 'nn', 'rabobank', 'regiobank', 'revolut', 'sns_bank', 'triodos_bank', 'van_lanschot', 'yoursafe']), 'bic': z.enum(['ABNANL2A', 'ASNBNL21', 'BITSNL2A', 'BUNQNL2A', 'BUUTNL2A', 'FNOMNL22', 'FVLBNL22', 'HANDNL2A', 'INGBNL2A', 'KNABNL2H', 'MOYONL21', 'NNBANL2G', 'NTSBDEB1', 'RABONL2U', 'RBRBNL21', 'REVOIE23', 'REVOLT21', 'SNSBNL2A', 'TRIONL2U']) }); -export type PaymentMethodIdealModel = z.infer; - -export const PaymentMethodInteracPresent = z.object({ +export const PaymentMethodInteracPresent: z.ZodType = z.object({ 'brand': z.string(), 'cardholder_name': z.string(), 'country': z.string(), @@ -7719,74 +18008,52 @@ export const PaymentMethodInteracPresent = z.object({ 'read_method': z.enum(['contact_emv', 'contactless_emv', 'contactless_magstripe_mode', 'magnetic_stripe_fallback', 'magnetic_stripe_track2']) }); -export type PaymentMethodInteracPresentModel = z.infer; - -export const PaymentMethodKakaoPay = z.object({ +export const PaymentMethodKakaoPay: z.ZodType = z.object({ }); -export type PaymentMethodKakaoPayModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsKlarnaDob = z.object({ +export const PaymentFlowsPrivatePaymentMethodsKlarnaDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type PaymentFlowsPrivatePaymentMethodsKlarnaDobModel = z.infer; - -export const PaymentMethodKlarna = z.object({ +export const PaymentMethodKlarna: z.ZodType = z.object({ 'dob': z.union([PaymentFlowsPrivatePaymentMethodsKlarnaDob]).optional() }); -export type PaymentMethodKlarnaModel = z.infer; - -export const PaymentMethodKonbini = z.object({ +export const PaymentMethodKonbini: z.ZodType = z.object({ }); -export type PaymentMethodKonbiniModel = z.infer; - -export const PaymentMethodKrCard = z.object({ +export const PaymentMethodKrCard: z.ZodType = z.object({ 'brand': z.enum(['bc', 'citi', 'hana', 'hyundai', 'jeju', 'jeonbuk', 'kakaobank', 'kbank', 'kdbbank', 'kookmin', 'kwangju', 'lotte', 'mg', 'nh', 'post', 'samsung', 'savingsbank', 'shinhan', 'shinhyup', 'suhyup', 'tossbank', 'woori']), 'last4': z.string() }); -export type PaymentMethodKrCardModel = z.infer; - -export const PaymentMethodLink = z.object({ +export const PaymentMethodLink: z.ZodType = z.object({ 'email': z.string(), 'persistent_token': z.string().optional() }); -export type PaymentMethodLinkModel = z.infer; - -export const PaymentMethodMbWay = z.object({ +export const PaymentMethodMbWay: z.ZodType = z.object({ }); -export type PaymentMethodMbWayModel = z.infer; - -export const PaymentMethodMobilepay = z.object({ +export const PaymentMethodMobilepay: z.ZodType = z.object({ }); -export type PaymentMethodMobilepayModel = z.infer; - -export const PaymentMethodMultibanco = z.object({ +export const PaymentMethodMultibanco: z.ZodType = z.object({ }); -export type PaymentMethodMultibancoModel = z.infer; - -export const PaymentMethodNaverPay = z.object({ +export const PaymentMethodNaverPay: z.ZodType = z.object({ 'buyer_id': z.string(), 'funding': z.enum(['card', 'points']) }); -export type PaymentMethodNaverPayModel = z.infer; - -export const PaymentMethodNzBankAccount = z.object({ +export const PaymentMethodNzBankAccount: z.ZodType = z.object({ 'account_holder_name': z.string(), 'bank_code': z.string(), 'bank_name': z.string(), @@ -7795,39 +18062,27 @@ export const PaymentMethodNzBankAccount = z.object({ 'suffix': z.string() }); -export type PaymentMethodNzBankAccountModel = z.infer; - -export const PaymentMethodOxxo = z.object({ +export const PaymentMethodOxxo: z.ZodType = z.object({ }); -export type PaymentMethodOxxoModel = z.infer; - -export const PaymentMethodP24 = z.object({ +export const PaymentMethodP24: z.ZodType = z.object({ 'bank': z.enum(['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']) }); -export type PaymentMethodP24Model = z.infer; - -export const PaymentMethodPayByBank = z.object({ +export const PaymentMethodPayByBank: z.ZodType = z.object({ }); -export type PaymentMethodPayByBankModel = z.infer; - -export const PaymentMethodPayco = z.object({ +export const PaymentMethodPayco: z.ZodType = z.object({ }); -export type PaymentMethodPaycoModel = z.infer; - -export const PaymentMethodPaynow = z.object({ +export const PaymentMethodPaynow: z.ZodType = z.object({ }); -export type PaymentMethodPaynowModel = z.infer; - -export const PaymentMethodPaypal = z.object({ +export const PaymentMethodPaypal: z.ZodType = z.object({ 'country': z.string(), 'fingerprint': z.string().optional(), 'payer_email': z.string(), @@ -7835,80 +18090,56 @@ export const PaymentMethodPaypal = z.object({ 'verified_email': z.string().optional() }); -export type PaymentMethodPaypalModel = z.infer; - -export const PaymentMethodPaypay = z.object({ +export const PaymentMethodPaypay: z.ZodType = z.object({ }); -export type PaymentMethodPaypayModel = z.infer; - -export const PaymentMethodPayto = z.object({ +export const PaymentMethodPayto: z.ZodType = z.object({ 'bsb_number': z.string(), 'last4': z.string(), 'pay_id': z.string() }); -export type PaymentMethodPaytoModel = z.infer; - -export const PaymentMethodPix = z.object({ +export const PaymentMethodPix: z.ZodType = z.object({ }); -export type PaymentMethodPixModel = z.infer; - -export const PaymentMethodPromptpay = z.object({ +export const PaymentMethodPromptpay: z.ZodType = z.object({ }); -export type PaymentMethodPromptpayModel = z.infer; - -export const PaymentMethodQris = z.object({ +export const PaymentMethodQris: z.ZodType = z.object({ }); -export type PaymentMethodQrisModel = z.infer; - -export const PaymentFlowsPrivatePaymentMethodsRechnungDob = z.object({ +export const PaymentFlowsPrivatePaymentMethodsRechnungDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type PaymentFlowsPrivatePaymentMethodsRechnungDobModel = z.infer; - -export const PaymentMethodRechnung = z.object({ +export const PaymentMethodRechnung: z.ZodType = z.object({ 'dob': PaymentFlowsPrivatePaymentMethodsRechnungDob.optional() }); -export type PaymentMethodRechnungModel = z.infer; - -export const PaymentMethodRevolutPay = z.object({ +export const PaymentMethodRevolutPay: z.ZodType = z.object({ }); -export type PaymentMethodRevolutPayModel = z.infer; - -export const PaymentMethodSamsungPay = z.object({ +export const PaymentMethodSamsungPay: z.ZodType = z.object({ }); -export type PaymentMethodSamsungPayModel = z.infer; - -export const PaymentMethodSatispay = z.object({ +export const PaymentMethodSatispay: z.ZodType = z.object({ }); -export type PaymentMethodSatispayModel = z.infer; - -export const SepaDebitGeneratedFrom = z.object({ +export const SepaDebitGeneratedFrom: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]), 'setup_attempt': z.union([z.string(), z.lazy(() => SetupAttempt)]) }); -export type SepaDebitGeneratedFromModel = z.infer; - -export const PaymentMethodSepaDebit = z.object({ +export const PaymentMethodSepaDebit: z.ZodType = z.object({ 'bank_code': z.string(), 'branch_code': z.string(), 'country': z.string(), @@ -7917,60 +18148,42 @@ export const PaymentMethodSepaDebit = z.object({ 'last4': z.string() }); -export type PaymentMethodSepaDebitModel = z.infer; - -export const PaymentMethodShopeepay = z.object({ +export const PaymentMethodShopeepay: z.ZodType = z.object({ }); -export type PaymentMethodShopeepayModel = z.infer; - -export const PaymentMethodSofort = z.object({ +export const PaymentMethodSofort: z.ZodType = z.object({ 'country': z.string() }); -export type PaymentMethodSofortModel = z.infer; - -export const PaymentMethodStripeBalance = z.object({ +export const PaymentMethodStripeBalance: z.ZodType = z.object({ 'account': z.string().optional(), 'source_type': z.enum(['bank_account', 'card', 'fpx']) }); -export type PaymentMethodStripeBalanceModel = z.infer; - -export const PaymentMethodSwish = z.object({ +export const PaymentMethodSwish: z.ZodType = z.object({ }); -export type PaymentMethodSwishModel = z.infer; - -export const PaymentMethodTwint = z.object({ +export const PaymentMethodTwint: z.ZodType = z.object({ }); -export type PaymentMethodTwintModel = z.infer; - -export const UsBankAccountNetworks = z.object({ +export const UsBankAccountNetworks: z.ZodType = z.object({ 'preferred': z.string(), 'supported': z.array(z.enum(['ach', 'us_domestic_wire'])) }); -export type UsBankAccountNetworksModel = z.infer; - -export const PaymentMethodUsBankAccountBlocked = z.object({ +export const PaymentMethodUsBankAccountBlocked: z.ZodType = z.object({ 'network_code': z.enum(['R02', 'R03', 'R04', 'R05', 'R07', 'R08', 'R10', 'R11', 'R16', 'R20', 'R29', 'R31']), 'reason': z.enum(['bank_account_closed', 'bank_account_frozen', 'bank_account_invalid_details', 'bank_account_restricted', 'bank_account_unusable', 'debit_not_authorized', 'tokenized_account_number_deactivated']) }); -export type PaymentMethodUsBankAccountBlockedModel = z.infer; - -export const PaymentMethodUsBankAccountStatusDetails = z.object({ +export const PaymentMethodUsBankAccountStatusDetails: z.ZodType = z.object({ 'blocked': PaymentMethodUsBankAccountBlocked.optional() }); -export type PaymentMethodUsBankAccountStatusDetailsModel = z.infer; - -export const PaymentMethodUsBankAccount = z.object({ +export const PaymentMethodUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_number': z.string().optional(), 'account_type': z.enum(['checking', 'savings']), @@ -7983,20 +18196,14 @@ export const PaymentMethodUsBankAccount = z.object({ 'status_details': z.union([PaymentMethodUsBankAccountStatusDetails]) }); -export type PaymentMethodUsBankAccountModel = z.infer; - -export const PaymentMethodWechatPay = z.object({ +export const PaymentMethodWechatPay: z.ZodType = z.object({ }); -export type PaymentMethodWechatPayModel = z.infer; - -export const PaymentMethodZip = z.object({ +export const PaymentMethodZip: z.ZodType = z.object({ }); -export type PaymentMethodZipModel = z.infer; - export const PaymentMethod: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), @@ -8072,13 +18279,11 @@ export const PaymentMethod: z.ZodType = z.object({ 'zip': PaymentMethodZip.optional() }); -export const InvoiceSettingCustomerRenderingOptions = z.object({ +export const InvoiceSettingCustomerRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'template': z.string() }); -export type InvoiceSettingCustomerRenderingOptionsModel = z.infer; - export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'custom_fields': z.array(InvoiceSettingCustomField), 'default_payment_method': z.union([z.string(), z.lazy(() => PaymentMethod)]), @@ -8086,15 +18291,13 @@ export const InvoiceSettingCustomerSetting: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'name': z.string(), 'object': z.enum(['application']) }); -export type DeletedApplicationModel = z.infer; - export const ConnectAccountReference: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'type': z.enum(['account', 'self']) @@ -8106,7 +18309,7 @@ export const SubscriptionAutomaticTax: z.ZodType 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ +export const SubscriptionsResourceBillingCycleAnchorConfig: z.ZodType = z.object({ 'day_of_month': z.number().int(), 'hour': z.number().int(), 'minute': z.number().int(), @@ -8114,31 +18317,23 @@ export const SubscriptionsResourceBillingCycleAnchorConfig = z.object({ 'second': z.number().int() }); -export type SubscriptionsResourceBillingCycleAnchorConfigModel = z.infer; - -export const SubscriptionsResourceBillingModeFlexible = z.object({ +export const SubscriptionsResourceBillingModeFlexible: z.ZodType = z.object({ 'proration_discounts': z.enum(['included', 'itemized']).optional() }); -export type SubscriptionsResourceBillingModeFlexibleModel = z.infer; - -export const SubscriptionsResourceBillingMode = z.object({ +export const SubscriptionsResourceBillingMode: z.ZodType = z.object({ 'flexible': z.union([SubscriptionsResourceBillingModeFlexible]), 'type': z.enum(['classic', 'flexible']), 'updated_at': z.number().int().optional() }); -export type SubscriptionsResourceBillingModeModel = z.infer; - -export const CustomUnitAmount = z.object({ +export const CustomUnitAmount: z.ZodType = z.object({ 'maximum': z.number().int(), 'minimum': z.number().int(), 'preset': z.number().int() }); -export type CustomUnitAmountModel = z.infer; - -export const PriceTier = z.object({ +export const PriceTier: z.ZodType = z.object({ 'flat_amount': z.number().int(), 'flat_amount_decimal': z.string(), 'unit_amount': z.number().int(), @@ -8146,9 +18341,7 @@ export const PriceTier = z.object({ 'up_to': z.number().int() }); -export type PriceTierModel = z.infer; - -export const CurrencyOption = z.object({ +export const CurrencyOption: z.ZodType = z.object({ 'custom_unit_amount': z.union([CustomUnitAmount]), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']), 'tiers': z.array(PriceTier).optional(), @@ -8156,40 +18349,30 @@ export const CurrencyOption = z.object({ 'unit_amount_decimal': z.string() }); -export type CurrencyOptionModel = z.infer; - -export const MigrateTo = z.object({ +export const MigrateTo: z.ZodType = z.object({ 'behavior': z.enum(['at_cycle_end']), 'effective_after': z.number().int(), 'price': z.string() }); -export type MigrateToModel = z.infer; - -export const ProductMarketingFeature = z.object({ +export const ProductMarketingFeature: z.ZodType = z.object({ 'name': z.string().optional() }); -export type ProductMarketingFeatureModel = z.infer; - -export const PackageDimensions = z.object({ +export const PackageDimensions: z.ZodType = z.object({ 'height': z.number(), 'length': z.number(), 'weight': z.number(), 'width': z.number() }); -export type PackageDimensionsModel = z.infer; - -export const TaxCode = z.object({ +export const TaxCode: z.ZodType = z.object({ 'description': z.string(), 'id': z.string(), 'name': z.string(), 'object': z.enum(['tax_code']) }); -export type TaxCodeModel = z.infer; - export const Product: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), @@ -8212,15 +18395,13 @@ export const Product: z.ZodType = z.object({ 'url': z.string() }); -export const DeletedProduct = z.object({ +export const DeletedProduct: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product']) }); -export type DeletedProductModel = z.infer; - -export const Recurring = z.object({ +export const Recurring: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int(), 'meter': z.string(), @@ -8228,15 +18409,11 @@ export const Recurring = z.object({ 'usage_type': z.enum(['licensed', 'metered']) }); -export type RecurringModel = z.infer; - -export const TransformQuantity = z.object({ +export const TransformQuantity: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformQuantityModel = z.infer; - export const Price: z.ZodType = z.object({ 'active': z.boolean(), 'billing_scheme': z.enum(['per_unit', 'tiered']), @@ -8267,51 +18444,41 @@ export const SubscriptionsResourceBillingSchedulesAppliesTo: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int() }); -export type SubscriptionsResourceBillingSchedulesBillUntilDurationModel = z.infer; - -export const SubscriptionsResourceBillingSchedulesBillUntil = z.object({ +export const SubscriptionsResourceBillingSchedulesBillUntil: z.ZodType = z.object({ 'computed_timestamp': z.number().int(), 'duration': z.union([SubscriptionsResourceBillingSchedulesBillUntilDuration]), 'timestamp': z.number().int(), 'type': z.enum(['duration', 'timestamp']) }); -export type SubscriptionsResourceBillingSchedulesBillUntilModel = z.infer; - export const SubscriptionsResourceBillingSchedules: z.ZodType = z.object({ 'applies_to': z.array(z.lazy(() => SubscriptionsResourceBillingSchedulesAppliesTo)), 'bill_until': SubscriptionsResourceBillingSchedulesBillUntil, 'key': z.string() }); -export const SubscriptionBillingThresholds = z.object({ +export const SubscriptionBillingThresholds: z.ZodType = z.object({ 'amount_gte': z.number().int(), 'reset_billing_cycle_anchor': z.boolean() }); -export type SubscriptionBillingThresholdsModel = z.infer; - -export const CancellationDetails = z.object({ +export const CancellationDetails: z.ZodType = z.object({ 'comment': z.string(), 'feedback': z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused']), 'reason': z.enum(['cancellation_requested', 'payment_disputed', 'payment_failed']) }); -export type CancellationDetailsModel = z.infer; - -export const TaxRateFlatAmount = z.object({ +export const TaxRateFlatAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type TaxRateFlatAmountModel = z.infer; - -export const TaxRate = z.object({ +export const TaxRate: z.ZodType = z.object({ 'active': z.boolean(), 'country': z.string(), 'created': z.number().int(), @@ -8332,8 +18499,6 @@ export const TaxRate = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxRateModel = z.infer; - export const TaxIDsOwner: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'application': z.union([z.string(), Application]).optional(), @@ -8342,14 +18507,12 @@ export const TaxIDsOwner: z.ZodType = z.object({ 'type': z.enum(['account', 'application', 'customer', 'self']) }); -export const TaxIdVerification = z.object({ +export const TaxIdVerification: z.ZodType = z.object({ 'status': z.enum(['pending', 'unavailable', 'unverified', 'verified']), 'verified_address': z.string(), 'verified_name': z.string() }); -export type TaxIdVerificationModel = z.infer; - export const TaxId: z.ZodType = z.object({ 'country': z.string(), 'created': z.number().int(), @@ -8364,26 +18527,22 @@ export const TaxId: z.ZodType = z.object({ 'verification': z.union([TaxIdVerification]) }); -export const DeletedTaxId = z.object({ +export const DeletedTaxId: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['tax_id']) }); -export type DeletedTaxIdModel = z.infer; - export const SubscriptionsResourceSubscriptionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'issuer': z.lazy(() => ConnectAccountReference) }); -export const SubscriptionItemBillingThresholds = z.object({ +export const SubscriptionItemBillingThresholds: z.ZodType = z.object({ 'usage_gte': z.number().int() }); -export type SubscriptionItemBillingThresholdsModel = z.infer; - -export const PlanTier = z.object({ +export const PlanTier: z.ZodType = z.object({ 'flat_amount': z.number().int(), 'flat_amount_decimal': z.string(), 'unit_amount': z.number().int(), @@ -8391,16 +18550,12 @@ export const PlanTier = z.object({ 'up_to': z.number().int() }); -export type PlanTierModel = z.infer; - -export const TransformUsage = z.object({ +export const TransformUsage: z.ZodType = z.object({ 'divide_by': z.number().int(), 'round': z.enum(['down', 'up']) }); -export type TransformUsageModel = z.infer; - -export const Plan = z.object({ +export const Plan: z.ZodType = z.object({ 'active': z.boolean(), 'amount': z.number().int(), 'amount_decimal': z.string(), @@ -8423,16 +18578,12 @@ export const Plan = z.object({ 'usage_type': z.enum(['licensed', 'metered']) }); -export type PlanModel = z.infer; - -export const SubscriptionsTrialsResourceTrial = z.object({ +export const SubscriptionsTrialsResourceTrial: z.ZodType = z.object({ 'converts_to': z.array(z.string()).optional(), 'type': z.enum(['free', 'paid']) }); -export type SubscriptionsTrialsResourceTrialModel = z.infer; - -export const SubscriptionItem = z.object({ +export const SubscriptionItem: z.ZodType = z.object({ 'billed_until': z.number().int().optional(), 'billing_thresholds': z.union([SubscriptionItemBillingThresholds]), 'created': z.number().int(), @@ -8450,24 +18601,18 @@ export const SubscriptionItem = z.object({ 'trial': z.union([SubscriptionsTrialsResourceTrial]).optional() }); -export type SubscriptionItemModel = z.infer; - -export const SubscriptionsResourcePriceMigrationErrorFailedTransition = z.object({ +export const SubscriptionsResourcePriceMigrationErrorFailedTransition: z.ZodType = z.object({ 'source_price': z.string(), 'target_price': z.string() }); -export type SubscriptionsResourcePriceMigrationErrorFailedTransitionModel = z.infer; - -export const SubscriptionsResourcePriceMigrationError = z.object({ +export const SubscriptionsResourcePriceMigrationError: z.ZodType = z.object({ 'errored_at': z.number().int(), 'failed_transitions': z.array(SubscriptionsResourcePriceMigrationErrorFailedTransition), 'type': z.enum(['price_uniqueness_violation']) }); -export type SubscriptionsResourcePriceMigrationErrorModel = z.infer; - -export const PaymentPlanAmount = z.object({ +export const PaymentPlanAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_paid': z.number().int(), 'amount_remaining': z.number().int(), @@ -8478,9 +18623,7 @@ export const PaymentPlanAmount = z.object({ 'status': z.enum(['open', 'paid', 'past_due']) }); -export type PaymentPlanAmountModel = z.infer; - -export const AutomaticTax = z.object({ +export const AutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['finalization_requires_location_inputs', 'finalization_system_error']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), @@ -8488,23 +18631,17 @@ export const AutomaticTax = z.object({ 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type AutomaticTaxModel = z.infer; - -export const InvoicesResourceConfirmationSecret = z.object({ +export const InvoicesResourceConfirmationSecret: z.ZodType = z.object({ 'client_secret': z.string(), 'type': z.string() }); -export type InvoicesResourceConfirmationSecretModel = z.infer; - -export const InvoicesResourceInvoiceTaxId = z.object({ +export const InvoicesResourceInvoiceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type InvoicesResourceInvoiceTaxIdModel = z.infer; - -export const Margin = z.object({ +export const Margin: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), 'id': z.string(), @@ -8516,8 +18653,6 @@ export const Margin = z.object({ 'updated': z.number().int() }); -export type MarginModel = z.infer; - export const DeletedDiscount: z.ZodType = z.object({ 'checkout_session': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -8539,43 +18674,33 @@ export const InvoicesResourceFromInvoice: z.ZodType Invoice)]) }); -export const DiscountsResourceDiscountAmount = z.object({ +export const DiscountsResourceDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]) }); -export type DiscountsResourceDiscountAmountModel = z.infer; - -export const MarginsResourceMarginAmount = z.object({ +export const MarginsResourceMarginAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'margin': z.union([z.string(), Margin]) }); -export type MarginsResourceMarginAmountModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonCreditedItems = z.object({ +export const BillingBillResourceInvoicingLinesCommonCreditedItems: z.ZodType = z.object({ 'invoice': z.string(), 'invoice_line_items': z.array(z.string()) }); -export type BillingBillResourceInvoicingLinesCommonCreditedItemsModel = z.infer; - -export const BillingBillResourceInvoicingLinesCommonProrationDetails = z.object({ +export const BillingBillResourceInvoicingLinesCommonProrationDetails: z.ZodType = z.object({ 'credited_items': z.union([BillingBillResourceInvoicingLinesCommonCreditedItems]) }); -export type BillingBillResourceInvoicingLinesCommonProrationDetailsModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent: z.ZodType = z.object({ 'invoice_item': z.string(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]), 'subscription': z.string() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent: z.ZodType = z.object({ 'invoice_item': z.string(), 'proration': z.boolean(), 'proration_details': z.union([BillingBillResourceInvoicingLinesCommonProrationDetails]), @@ -8583,37 +18708,27 @@ export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscription 'subscription_item': z.string() }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParentModel = z.infer; - -export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent = z.object({ +export const BillingBillResourceInvoicingLinesParentsInvoiceLineItemParent: z.ZodType = z.object({ 'invoice_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemInvoiceItemParent]), 'subscription_item_details': z.union([BillingBillResourceInvoicingLinesParentsInvoiceLineItemSubscriptionItemParent]), 'type': z.enum(['invoice_item_details', 'subscription_item_details']) }); -export type BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentModel = z.infer; - -export const InvoiceLineItemPeriod = z.object({ +export const InvoiceLineItemPeriod: z.ZodType = z.object({ 'end': z.number().int(), 'start': z.number().int() }); -export type InvoiceLineItemPeriodModel = z.infer; - -export const BillingCreditGrantsResourceMonetaryAmount = z.object({ +export const BillingCreditGrantsResourceMonetaryAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type BillingCreditGrantsResourceMonetaryAmountModel = z.infer; - -export const BillingCreditGrantsResourceAmount = z.object({ +export const BillingCreditGrantsResourceAmount: z.ZodType = z.object({ 'monetary': z.union([BillingCreditGrantsResourceMonetaryAmount]), 'type': z.enum(['monetary']) }); -export type BillingCreditGrantsResourceAmountModel = z.infer; - export const BillingCreditGrantsResourceBalanceCreditsApplicationInvoiceVoided: z.ZodType = z.object({ 'invoice': z.union([z.string(), z.lazy(() => Invoice)]), 'invoice_line_item': z.string() @@ -8625,38 +18740,28 @@ export const BillingCreditGrantsResourceBalanceCredit: z.ZodType = z.object({ 'id': z.string() }); -export type BillingCreditGrantsResourceApplicablePriceModel = z.infer; - -export const BillingCreditGrantsResourceScope = z.object({ +export const BillingCreditGrantsResourceScope: z.ZodType = z.object({ 'price_type': z.enum(['metered']).optional(), 'prices': z.array(BillingCreditGrantsResourceApplicablePrice).optional() }); -export type BillingCreditGrantsResourceScopeModel = z.infer; - -export const BillingCreditGrantsResourceApplicabilityConfig = z.object({ +export const BillingCreditGrantsResourceApplicabilityConfig: z.ZodType = z.object({ 'scope': BillingCreditGrantsResourceScope }); -export type BillingCreditGrantsResourceApplicabilityConfigModel = z.infer; - -export const BillingClocksResourceStatusDetailsAdvancingStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsAdvancingStatusDetails: z.ZodType = z.object({ 'target_frozen_time': z.number().int() }); -export type BillingClocksResourceStatusDetailsAdvancingStatusDetailsModel = z.infer; - -export const BillingClocksResourceStatusDetailsStatusDetails = z.object({ +export const BillingClocksResourceStatusDetailsStatusDetails: z.ZodType = z.object({ 'advancing': BillingClocksResourceStatusDetailsAdvancingStatusDetails.optional() }); -export type BillingClocksResourceStatusDetailsStatusDetailsModel = z.infer; - -export const TestHelpersTestClock = z.object({ +export const TestHelpersTestClock: z.ZodType = z.object({ 'created': z.number().int(), 'deletes_after': z.number().int(), 'frozen_time': z.number().int(), @@ -8668,8 +18773,6 @@ export const TestHelpersTestClock = z.object({ 'status_details': BillingClocksResourceStatusDetailsStatusDetails }); -export type TestHelpersTestClockModel = z.infer; - export const BillingCreditGrant: z.ZodType = z.object({ 'amount': BillingCreditGrantsResourceAmount, 'applicability_config': BillingCreditGrantsResourceApplicabilityConfig, @@ -8722,35 +18825,27 @@ export const InvoicesResourcePretaxCreditAmount: z.ZodType = z.object({ 'price': z.string(), 'product': z.string() }); -export type BillingBillResourceInvoicingPricingPricingPriceDetailsModel = z.infer; - -export const BillingBillResourceInvoicingPricingPricing = z.object({ +export const BillingBillResourceInvoicingPricingPricing: z.ZodType = z.object({ 'price_details': BillingBillResourceInvoicingPricingPricingPriceDetails.optional(), 'type': z.enum(['price_details']), 'unit_amount_decimal': z.string() }); -export type BillingBillResourceInvoicingPricingPricingModel = z.infer; - -export const TaxProductIntegrationResourceTaxCalculationReference = z.object({ +export const TaxProductIntegrationResourceTaxCalculationReference: z.ZodType = z.object({ 'calculation_id': z.string(), 'calculation_item_id': z.string() }); -export type TaxProductIntegrationResourceTaxCalculationReferenceModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTaxRateDetails = z.object({ +export const BillingBillResourceInvoicingTaxesTaxRateDetails: z.ZodType = z.object({ 'tax_rate': z.string() }); -export type BillingBillResourceInvoicingTaxesTaxRateDetailsModel = z.infer; - -export const BillingBillResourceInvoicingTaxesTax = z.object({ +export const BillingBillResourceInvoicingTaxesTax: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive']), 'tax_rate_details': z.union([BillingBillResourceInvoicingTaxesTaxRateDetails]), @@ -8759,8 +18854,6 @@ export const BillingBillResourceInvoicingTaxesTax = z.object({ 'type': z.enum(['tax_rate_details']) }); -export type BillingBillResourceInvoicingTaxesTaxModel = z.infer; - export const LineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), @@ -8785,25 +18878,19 @@ export const LineItem: z.ZodType = z.object({ 'taxes': z.array(BillingBillResourceInvoicingTaxesTax) }); -export const BillingBillResourceInvoicingParentsInvoiceBillingCadenceParent = z.object({ +export const BillingBillResourceInvoicingParentsInvoiceBillingCadenceParent: z.ZodType = z.object({ 'billing_cadence': z.string() }); -export type BillingBillResourceInvoicingParentsInvoiceBillingCadenceParentModel = z.infer; - -export const BillingBillResourceInvoicingParentsInvoiceQuoteParent = z.object({ +export const BillingBillResourceInvoicingParentsInvoiceQuoteParent: z.ZodType = z.object({ 'quote': z.string() }); -export type BillingBillResourceInvoicingParentsInvoiceQuoteParentModel = z.infer; - -export const BillingBillResourceInvoicingCommonInvoicePauseCollection = z.object({ +export const BillingBillResourceInvoicingCommonInvoicePauseCollection: z.ZodType = z.object({ 'behavior': z.enum(['keep_as_draft', 'mark_uncollectible', 'void']), 'resumes_at': z.number().int() }); -export type BillingBillResourceInvoicingCommonInvoicePauseCollectionModel = z.infer; - export const BillingBillResourceInvoicingParentsInvoiceSubscriptionParent: z.ZodType = z.object({ 'metadata': z.record(z.string(), z.string()), 'pause_collection': z.union([BillingBillResourceInvoicingCommonInvoicePauseCollection]).optional(), @@ -8818,120 +18905,86 @@ export const BillingBillResourceInvoicingParentsInvoiceParent: z.ZodType = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type InvoicePaymentMethodOptionsAcssDebitMandateOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsAcssDebit = z.object({ +export const InvoicePaymentMethodOptionsAcssDebit: z.ZodType = z.object({ 'mandate_options': InvoicePaymentMethodOptionsAcssDebitMandateOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsAcssDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsBancontact = z.object({ +export const InvoicePaymentMethodOptionsBancontact: z.ZodType = z.object({ 'preferred_language': z.enum(['de', 'en', 'fr', 'nl']) }); -export type InvoicePaymentMethodOptionsBancontactModel = z.infer; - -export const InvoiceInstallmentsCard = z.object({ +export const InvoiceInstallmentsCard: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type InvoiceInstallmentsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCard = z.object({ +export const InvoicePaymentMethodOptionsCard: z.ZodType = z.object({ 'installments': InvoiceInstallmentsCard.optional(), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type InvoicePaymentMethodOptionsCardModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer: z.ZodType = z.object({ 'country': z.enum(['BE', 'DE', 'ES', 'FR', 'IE', 'NL']) }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalanceBankTransfer: z.ZodType = z.object({ 'eu_bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.optional(), 'type': z.string() }); -export type InvoicePaymentMethodOptionsCustomerBalanceBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsCustomerBalance = z.object({ +export const InvoicePaymentMethodOptionsCustomerBalance: z.ZodType = z.object({ 'bank_transfer': InvoicePaymentMethodOptionsCustomerBalanceBankTransfer.optional(), 'funding_type': z.enum(['bank_transfer']) }); -export type InvoicePaymentMethodOptionsCustomerBalanceModel = z.infer; - -export const InvoicePaymentMethodOptionsIdBankTransfer = z.object({ +export const InvoicePaymentMethodOptionsIdBankTransfer: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsIdBankTransferModel = z.infer; - -export const InvoicePaymentMethodOptionsKonbini = z.object({ +export const InvoicePaymentMethodOptionsKonbini: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsKonbiniModel = z.infer; - -export const InvoicePaymentMethodOptionsPix = z.object({ +export const InvoicePaymentMethodOptionsPix: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']) }); -export type InvoicePaymentMethodOptionsPixModel = z.infer; - -export const InvoicePaymentMethodOptionsSepaDebit = z.object({ +export const InvoicePaymentMethodOptionsSepaDebit: z.ZodType = z.object({ }); -export type InvoicePaymentMethodOptionsSepaDebitModel = z.infer; - -export const InvoicePaymentMethodOptionsMandateOptionsUpi = z.object({ +export const InvoicePaymentMethodOptionsMandateOptionsUpi: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string(), 'end_date': z.number().int() }); -export type InvoicePaymentMethodOptionsMandateOptionsUpiModel = z.infer; - -export const InvoicePaymentMethodOptionsUpi = z.object({ +export const InvoicePaymentMethodOptionsUpi: z.ZodType = z.object({ 'mandate_options': InvoicePaymentMethodOptionsMandateOptionsUpi.optional() }); -export type InvoicePaymentMethodOptionsUpiModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'savings'])).optional(), 'institution': z.string().optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFiltersModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions: z.ZodType = z.object({ 'filters': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsFilters.optional(), 'permissions': z.array(z.enum(['balances', 'ownership', 'payment_method', 'transactions'])).optional(), 'prefetch': z.array(z.enum(['balances', 'inferred_balances', 'ownership', 'transactions'])) }); -export type InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptionsModel = z.infer; - -export const InvoicePaymentMethodOptionsUsBankAccount = z.object({ +export const InvoicePaymentMethodOptionsUsBankAccount: z.ZodType = z.object({ 'financial_connections': InvoicePaymentMethodOptionsUsBankAccountLinkedAccountOptions.optional(), 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type InvoicePaymentMethodOptionsUsBankAccountModel = z.infer; - -export const InvoicesPaymentMethodOptions = z.object({ +export const InvoicesPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]), 'card': z.union([InvoicePaymentMethodOptionsCard]), @@ -8944,41 +18997,31 @@ export const InvoicesPaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]) }); -export type InvoicesPaymentMethodOptionsModel = z.infer; - -export const InvoicesPaymentSettings = z.object({ +export const InvoicesPaymentSettings: z.ZodType = z.object({ 'default_mandate': z.string(), 'payment_method_options': z.union([InvoicesPaymentMethodOptions]), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay'])) }); -export type InvoicesPaymentSettingsModel = z.infer; - -export const DeletedInvoice = z.object({ +export const DeletedInvoice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoice']) }); -export type DeletedInvoiceModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAmount = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAmount: z.ZodType = z.object({ 'currency': z.string(), 'value': z.number().int() }); -export type PaymentsPrimitivesPaymentRecordsResourceAmountModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceCustomerDetails: z.ZodType = z.object({ 'customer': z.string(), 'email': z.string(), 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceCustomerDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -8987,62 +19030,46 @@ export const PaymentsPrimitivesPaymentRecordsResourceAddress = z.object({ 'state': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceAddressModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceBillingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'email': z.string(), 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceBillingDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks: z.ZodType = z.object({ 'address_line1_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']), 'address_postal_code_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']), 'cvc_check': z.enum(['fail', 'pass', 'unavailable', 'unchecked']) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecksModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkToken: z.ZodType = z.object({ 'used': z.boolean() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceNetworkTokenModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecure: z.ZodType = z.object({ 'authentication_flow': z.enum(['challenge', 'frictionless']), 'result': z.enum(['attempt_acknowledged', 'authenticated', 'exempted', 'failed', 'not_supported', 'processing_error']), 'result_reason': z.enum(['abandoned', 'bypassed', 'canceled', 'card_not_enrolled', 'network_not_supported', 'protocol_error', 'rejected']), 'version': z.enum(['1.0.2', '2.1.0', '2.2.0']) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay: z.ZodType = z.object({ 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay: z.ZodType = z.object({ }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePayModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet: z.ZodType = z.object({ 'apple_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceApplePay.optional(), 'dynamic_last4': z.string().optional(), 'google_pay': PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletResourceGooglePay.optional(), 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWalletModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails: z.ZodType = z.object({ 'brand': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'capture_before': z.number().int().optional(), 'checks': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceChecks]), @@ -9060,16 +19087,12 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetails = 'wallet': z.union([PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceWallet]) }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails: z.ZodType = z.object({ 'display_name': z.string(), 'type': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetails: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -9080,9 +19103,7 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountD 'routing_number': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodUsBankAccountDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails: z.ZodType = z.object({ 'ach_credit_transfer': PaymentMethodDetailsAchCreditTransfer.optional(), 'ach_debit': PaymentMethodDetailsAchDebit.optional(), 'acss_debit': PaymentMethodDetailsAcssDebit.optional(), @@ -9153,30 +19174,22 @@ export const PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetails = z.ob 'zip': PaymentMethodDetailsZip.optional() }); -export type PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails: z.ZodType = z.object({ 'payment_reference': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceProcessorDetails: z.ZodType = z.object({ 'custom': PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsResourceCustomDetails.optional(), 'type': z.enum(['custom']) }); -export type PaymentsPrimitivesPaymentRecordsResourceProcessorDetailsModel = z.infer; - -export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails = z.object({ +export const PaymentsPrimitivesPaymentRecordsResourceShippingDetails: z.ZodType = z.object({ 'address': PaymentsPrimitivesPaymentRecordsResourceAddress, 'name': z.string(), 'phone': z.string() }); -export type PaymentsPrimitivesPaymentRecordsResourceShippingDetailsModel = z.infer; - -export const PaymentRecord = z.object({ +export const PaymentRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -9199,24 +19212,18 @@ export const PaymentRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]) }); -export type PaymentRecordModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentAssociatedPayment = z.object({ +export const InvoicesPaymentsInvoicePaymentAssociatedPayment: z.ZodType = z.object({ 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional(), 'payment_record': z.union([z.string(), PaymentRecord]).optional(), 'type': z.enum(['charge', 'payment_intent', 'payment_record']) }); -export type InvoicesPaymentsInvoicePaymentAssociatedPaymentModel = z.infer; - -export const InvoicesPaymentsInvoicePaymentStatusTransitions = z.object({ +export const InvoicesPaymentsInvoicePaymentStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'paid_at': z.number().int() }); -export type InvoicesPaymentsInvoicePaymentStatusTransitionsModel = z.infer; - export const InvoicePayment: z.ZodType = z.object({ 'amount_paid': z.number().int(), 'amount_requested': z.number().int(), @@ -9232,51 +19239,39 @@ export const InvoicePayment: z.ZodType = z.object({ 'status_transitions': InvoicesPaymentsInvoicePaymentStatusTransitions }); -export const InvoiceRenderingPdf = z.object({ +export const InvoiceRenderingPdf: z.ZodType = z.object({ 'page_size': z.enum(['a4', 'auto', 'letter']) }); -export type InvoiceRenderingPdfModel = z.infer; - -export const InvoicesResourceInvoiceRendering = z.object({ +export const InvoicesResourceInvoiceRendering: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'pdf': z.union([InvoiceRenderingPdf]), 'template': z.string(), 'template_version': z.number().int() }); -export type InvoicesResourceInvoiceRenderingModel = z.infer; - -export const ShippingRateDeliveryEstimateBound = z.object({ +export const ShippingRateDeliveryEstimateBound: z.ZodType = z.object({ 'unit': z.enum(['business_day', 'day', 'hour', 'month', 'week']), 'value': z.number().int() }); -export type ShippingRateDeliveryEstimateBoundModel = z.infer; - -export const ShippingRateDeliveryEstimate = z.object({ +export const ShippingRateDeliveryEstimate: z.ZodType = z.object({ 'maximum': z.union([ShippingRateDeliveryEstimateBound]), 'minimum': z.union([ShippingRateDeliveryEstimateBound]) }); -export type ShippingRateDeliveryEstimateModel = z.infer; - -export const ShippingRateCurrencyOption = z.object({ +export const ShippingRateCurrencyOption: z.ZodType = z.object({ 'amount': z.number().int(), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'unspecified']) }); -export type ShippingRateCurrencyOptionModel = z.infer; - -export const ShippingRateFixedAmount = z.object({ +export const ShippingRateFixedAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'currency_options': z.record(z.string(), ShippingRateCurrencyOption).optional() }); -export type ShippingRateFixedAmountModel = z.infer; - -export const ShippingRate = z.object({ +export const ShippingRate: z.ZodType = z.object({ 'active': z.boolean(), 'created': z.number().int(), 'delivery_estimate': z.union([ShippingRateDeliveryEstimate]), @@ -9291,18 +19286,14 @@ export const ShippingRate = z.object({ 'type': z.enum(['fixed_amount']) }); -export type ShippingRateModel = z.infer; - -export const LineItemsTaxAmount = z.object({ +export const LineItemsTaxAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'rate': TaxRate, 'taxability_reason': z.enum(['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']), 'taxable_amount': z.number().int() }); -export type LineItemsTaxAmountModel = z.infer; - -export const InvoicesResourceShippingCost = z.object({ +export const InvoicesResourceShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -9310,31 +19301,23 @@ export const InvoicesResourceShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type InvoicesResourceShippingCostModel = z.infer; - -export const InvoicesResourceStatusTransitions = z.object({ +export const InvoicesResourceStatusTransitions: z.ZodType = z.object({ 'finalized_at': z.number().int(), 'marked_uncollectible_at': z.number().int(), 'paid_at': z.number().int(), 'voided_at': z.number().int() }); -export type InvoicesResourceStatusTransitionsModel = z.infer; - -export const InvoiceItemThresholdReason = z.object({ +export const InvoiceItemThresholdReason: z.ZodType = z.object({ 'line_item_ids': z.array(z.string()), 'usage_gte': z.number().int() }); -export type InvoiceItemThresholdReasonModel = z.infer; - -export const InvoiceThresholdReason = z.object({ +export const InvoiceThresholdReason: z.ZodType = z.object({ 'amount_gte': z.number().int(), 'item_reasons': z.array(InvoiceItemThresholdReason) }); -export type InvoiceThresholdReasonModel = z.infer; - export const Invoice: z.ZodType = z.object({ 'account_country': z.string(), 'account_name': z.string(), @@ -9429,45 +19412,35 @@ export const Invoice: z.ZodType = z.object({ 'webhooks_delivered_at': z.number().int() }); -export const SubscriptionsResourcePauseCollection = z.object({ +export const SubscriptionsResourcePauseCollection: z.ZodType = z.object({ 'behavior': z.enum(['keep_as_draft', 'mark_uncollectible', 'void']), 'resumes_at': z.number().int() }); -export type SubscriptionsResourcePauseCollectionModel = z.infer; - -export const InvoiceMandateOptionsCard = z.object({ +export const InvoiceMandateOptionsCard: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'description': z.string() }); -export type InvoiceMandateOptionsCardModel = z.infer; - -export const SubscriptionPaymentMethodOptionsCard = z.object({ +export const SubscriptionPaymentMethodOptionsCard: z.ZodType = z.object({ 'mandate_options': InvoiceMandateOptionsCard.optional(), 'network': z.enum(['amex', 'cartes_bancaires', 'diners', 'discover', 'eftpos_au', 'girocard', 'interac', 'jcb', 'link', 'mastercard', 'unionpay', 'unknown', 'visa']), 'request_three_d_secure': z.enum(['any', 'automatic', 'challenge']) }); -export type SubscriptionPaymentMethodOptionsCardModel = z.infer; - -export const SubscriptionPaymentMethodOptionsMandateOptionsPix = z.object({ +export const SubscriptionPaymentMethodOptionsMandateOptionsPix: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_includes_iof': z.enum(['always', 'never']), 'end_date': z.string(), 'payment_schedule': z.enum(['halfyearly', 'monthly', 'quarterly', 'weekly', 'yearly']) }); -export type SubscriptionPaymentMethodOptionsMandateOptionsPixModel = z.infer; - -export const SubscriptionPaymentMethodOptionsPix = z.object({ +export const SubscriptionPaymentMethodOptionsPix: z.ZodType = z.object({ 'mandate_options': SubscriptionPaymentMethodOptionsMandateOptionsPix.optional() }); -export type SubscriptionPaymentMethodOptionsPixModel = z.infer; - -export const SubscriptionsResourcePaymentMethodOptions = z.object({ +export const SubscriptionsResourcePaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': z.union([InvoicePaymentMethodOptionsAcssDebit]), 'bancontact': z.union([InvoicePaymentMethodOptionsBancontact]), 'card': z.union([SubscriptionPaymentMethodOptionsCard]), @@ -9480,24 +19453,18 @@ export const SubscriptionsResourcePaymentMethodOptions = z.object({ 'us_bank_account': z.union([InvoicePaymentMethodOptionsUsBankAccount]) }); -export type SubscriptionsResourcePaymentMethodOptionsModel = z.infer; - -export const SubscriptionsResourcePaymentSettings = z.object({ +export const SubscriptionsResourcePaymentSettings: z.ZodType = z.object({ 'payment_method_options': z.union([SubscriptionsResourcePaymentMethodOptions]), 'payment_method_types': z.array(z.enum(['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'id_bank_transfer', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'payco', 'paynow', 'paypal', 'pix', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'stripe_balance', 'swish', 'upi', 'us_bank_account', 'wechat_pay'])), 'save_default_payment_method': z.enum(['off', 'on_subscription']) }); -export type SubscriptionsResourcePaymentSettingsModel = z.infer; - -export const SubscriptionPendingInvoiceItemInterval = z.object({ +export const SubscriptionPendingInvoiceItemInterval: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int() }); -export type SubscriptionPendingInvoiceItemIntervalModel = z.infer; - -export const SubscriptionsResourcePendingUpdate = z.object({ +export const SubscriptionsResourcePendingUpdate: z.ZodType = z.object({ 'billing_cycle_anchor': z.number().int(), 'expires_at': z.number().int(), 'prebilling_iterations': z.number().int().optional(), @@ -9506,40 +19473,30 @@ export const SubscriptionsResourcePendingUpdate = z.object({ 'trial_from_plan': z.boolean() }); -export type SubscriptionsResourcePendingUpdateModel = z.infer; - -export const SubscriptionPrebillingData = z.object({ +export const SubscriptionPrebillingData: z.ZodType = z.object({ 'invoice': z.union([z.string(), z.lazy(() => Invoice)]), 'period_end': z.number().int(), 'period_start': z.number().int(), 'update_behavior': z.enum(['prebill', 'reset']).optional() }); -export type SubscriptionPrebillingDataModel = z.infer; - -export const SubscriptionScheduleCurrentPhase = z.object({ +export const SubscriptionScheduleCurrentPhase: z.ZodType = z.object({ 'end_date': z.number().int(), 'start_date': z.number().int() }); -export type SubscriptionScheduleCurrentPhaseModel = z.infer; - -export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax = z.object({ +export const SubscriptionSchedulesResourceDefaultSettingsAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type SubscriptionSchedulesResourceDefaultSettingsAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionScheduleSetting = z.object({ +export const InvoiceSettingSubscriptionScheduleSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'days_until_due': z.number().int(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingSubscriptionScheduleSettingModel = z.infer; - export const SubscriptionTransferData: z.ZodType = z.object({ 'amount_percent': z.number(), 'destination': z.union([z.string(), z.lazy(() => Account)]) @@ -9558,52 +19515,40 @@ export const SubscriptionSchedulesResourceDefaultSettings: z.ZodType SubscriptionTransferData)]) }); -export const DiscountEnd = z.object({ +export const DiscountEnd: z.ZodType = z.object({ 'timestamp': z.number().int(), 'type': z.enum(['timestamp']) }); -export type DiscountEndModel = z.infer; - -export const DiscountsResourceStackableDiscount = z.object({ +export const DiscountsResourceStackableDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'discount': z.union([z.string(), z.lazy(() => Discount)]), 'discount_end': z.union([DiscountEnd]).optional(), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]) }); -export type DiscountsResourceStackableDiscountModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['min_item_period_end', 'phase_end', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndModel = z.infer; - -export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart = z.object({ +export const SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart: z.ZodType = z.object({ 'timestamp': z.number().int().optional(), 'type': z.enum(['max_item_period_start', 'phase_start', 'timestamp']) }); -export type SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItemPeriod = z.object({ +export const SubscriptionScheduleAddInvoiceItemPeriod: z.ZodType = z.object({ 'end': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEnd, 'start': SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStart }); -export type SubscriptionScheduleAddInvoiceItemPeriodModel = z.infer; - -export const DeletedPrice = z.object({ +export const DeletedPrice: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['price']) }); -export type DeletedPriceModel = z.infer; - -export const SubscriptionScheduleAddInvoiceItem = z.object({ +export const SubscriptionScheduleAddInvoiceItem: z.ZodType = z.object({ 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()), 'period': SubscriptionScheduleAddInvoiceItemPeriod, @@ -9612,33 +19557,25 @@ export const SubscriptionScheduleAddInvoiceItem = z.object({ 'tax_rates': z.array(TaxRate).optional() }); -export type SubscriptionScheduleAddInvoiceItemModel = z.infer; - -export const SchedulesPhaseAutomaticTax = z.object({ +export const SchedulesPhaseAutomaticTax: z.ZodType = z.object({ 'disabled_reason': z.enum(['requires_location_inputs']), 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type SchedulesPhaseAutomaticTaxModel = z.infer; - -export const InvoiceSettingSubscriptionSchedulePhaseSetting = z.object({ +export const InvoiceSettingSubscriptionSchedulePhaseSetting: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'days_until_due': z.number().int(), 'issuer': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type InvoiceSettingSubscriptionSchedulePhaseSettingModel = z.infer; - -export const DeletedPlan = z.object({ +export const DeletedPlan: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['plan']) }); -export type DeletedPlanModel = z.infer; - -export const SubscriptionScheduleConfigurationItem = z.object({ +export const SubscriptionScheduleConfigurationItem: z.ZodType = z.object({ 'billing_thresholds': z.union([SubscriptionItemBillingThresholds]), 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()), @@ -9649,26 +19586,18 @@ export const SubscriptionScheduleConfigurationItem = z.object({ 'trial': z.union([SubscriptionsTrialsResourceTrial]).optional() }); -export type SubscriptionScheduleConfigurationItemModel = z.infer; - -export const SubscriptionSchedulesResourcePauseCollection = z.object({ +export const SubscriptionSchedulesResourcePauseCollection: z.ZodType = z.object({ 'behavior': z.enum(['keep_as_draft', 'mark_uncollectible', 'void']) }); -export type SubscriptionSchedulesResourcePauseCollectionModel = z.infer; - -export const SubscriptionSchedulesResourceEndBehavior = z.object({ +export const SubscriptionSchedulesResourceEndBehavior: z.ZodType = z.object({ 'prorate_up_front': z.enum(['defer', 'include']) }); -export type SubscriptionSchedulesResourceEndBehaviorModel = z.infer; - -export const SubscriptionSchedulesResourceTrialSettings = z.object({ +export const SubscriptionSchedulesResourceTrialSettings: z.ZodType = z.object({ 'end_behavior': z.union([SubscriptionSchedulesResourceEndBehavior]) }); -export type SubscriptionSchedulesResourceTrialSettingsModel = z.infer; - export const SubscriptionSchedulePhaseConfiguration: z.ZodType = z.object({ 'add_invoice_items': z.array(SubscriptionScheduleAddInvoiceItem), 'application_fee_percent': z.number(), @@ -9721,18 +19650,14 @@ export const SubscriptionSchedule: z.ZodType = z.obje 'test_clock': z.union([z.string(), TestHelpersTestClock]) }); -export const SubscriptionsTrialsResourceEndBehavior = z.object({ +export const SubscriptionsTrialsResourceEndBehavior: z.ZodType = z.object({ 'missing_payment_method': z.enum(['cancel', 'create_invoice', 'pause']) }); -export type SubscriptionsTrialsResourceEndBehaviorModel = z.infer; - -export const SubscriptionsTrialsResourceTrialSettings = z.object({ +export const SubscriptionsTrialsResourceTrialSettings: z.ZodType = z.object({ 'end_behavior': SubscriptionsTrialsResourceEndBehavior }); -export type SubscriptionsTrialsResourceTrialSettingsModel = z.infer; - export const Subscription: z.ZodType = z.object({ 'application': z.union([z.string(), Application, DeletedApplication]), 'application_fee_percent': z.number(), @@ -9790,23 +19715,19 @@ export const Subscription: z.ZodType = z.object({ 'trial_start': z.number().int() }); -export const CustomerTaxLocation = z.object({ +export const CustomerTaxLocation: z.ZodType = z.object({ 'country': z.string(), 'source': z.enum(['billing_address', 'ip_address', 'payment_method', 'shipping_destination']), 'state': z.string() }); -export type CustomerTaxLocationModel = z.infer; - -export const CustomerTax = z.object({ +export const CustomerTax: z.ZodType = z.object({ 'automatic_tax': z.enum(['failed', 'not_collecting', 'supported', 'unrecognized_location']), 'ip_address': z.string(), 'location': z.union([CustomerTaxLocation]), 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']) }); -export type CustomerTaxModel = z.infer; - export const Customer: z.ZodType = z.object({ 'address': z.union([Address]).optional(), 'balance': z.number().int().optional(), @@ -9856,23 +19777,19 @@ export const Customer: z.ZodType = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]).optional() }); -export const AccountRequirementsError = z.object({ +export const AccountRequirementsError: z.ZodType = z.object({ 'code': z.enum(['external_request', 'information_missing', 'invalid_address_city_state_postal_code', 'invalid_address_highway_contract_box', 'invalid_address_private_mailbox', 'invalid_business_profile_name', 'invalid_business_profile_name_denylisted', 'invalid_company_name_denylisted', 'invalid_dob_age_over_maximum', 'invalid_dob_age_under_18', 'invalid_dob_age_under_minimum', 'invalid_product_description_length', 'invalid_product_description_url_match', 'invalid_representative_country', 'invalid_signator', 'invalid_statement_descriptor_business_mismatch', 'invalid_statement_descriptor_denylisted', 'invalid_statement_descriptor_length', 'invalid_statement_descriptor_prefix_denylisted', 'invalid_statement_descriptor_prefix_mismatch', 'invalid_street_address', 'invalid_tax_id', 'invalid_tax_id_format', 'invalid_tos_acceptance', 'invalid_url_denylisted', 'invalid_url_format', 'invalid_url_length', 'invalid_url_web_presence_detected', 'invalid_url_website_business_information_mismatch', 'invalid_url_website_empty', 'invalid_url_website_inaccessible', 'invalid_url_website_inaccessible_geoblocked', 'invalid_url_website_inaccessible_password_protected', 'invalid_url_website_incomplete', 'invalid_url_website_incomplete_cancellation_policy', 'invalid_url_website_incomplete_customer_service_details', 'invalid_url_website_incomplete_legal_restrictions', 'invalid_url_website_incomplete_refund_policy', 'invalid_url_website_incomplete_return_policy', 'invalid_url_website_incomplete_terms_and_conditions', 'invalid_url_website_incomplete_under_construction', 'invalid_url_website_other', 'invalid_value_other', 'unsupported_business_type', 'verification_data_not_found', 'verification_directors_mismatch', 'verification_document_address_mismatch', 'verification_document_address_missing', 'verification_document_corrupt', 'verification_document_country_not_supported', 'verification_document_directors_mismatch', 'verification_document_dob_mismatch', 'verification_document_duplicate_type', 'verification_document_expired', 'verification_document_failed_copy', 'verification_document_failed_greyscale', 'verification_document_failed_other', 'verification_document_failed_test_mode', 'verification_document_fraudulent', 'verification_document_id_number_mismatch', 'verification_document_id_number_missing', 'verification_document_incomplete', 'verification_document_invalid', 'verification_document_issue_or_expiry_date_missing', 'verification_document_manipulated', 'verification_document_missing_back', 'verification_document_missing_front', 'verification_document_name_mismatch', 'verification_document_name_missing', 'verification_document_nationality_mismatch', 'verification_document_not_readable', 'verification_document_not_signed', 'verification_document_not_uploaded', 'verification_document_photo_mismatch', 'verification_document_too_large', 'verification_document_type_not_supported', 'verification_extraneous_directors', 'verification_failed_address_match', 'verification_failed_authorizer_authority', 'verification_failed_business_iec_number', 'verification_failed_document_match', 'verification_failed_id_number_match', 'verification_failed_keyed_identity', 'verification_failed_keyed_match', 'verification_failed_name_match', 'verification_failed_other', 'verification_failed_representative_authority', 'verification_failed_residential_address', 'verification_failed_tax_id_match', 'verification_failed_tax_id_not_issued', 'verification_legal_entity_structure_mismatch', 'verification_missing_directors', 'verification_missing_executives', 'verification_missing_owners', 'verification_rejected_ownership_exemption_reason', 'verification_requires_additional_memorandum_of_associations', 'verification_requires_additional_proof_of_registration', 'verification_supportability']), 'reason': z.string(), 'requirement': z.string() }); -export type AccountRequirementsErrorModel = z.infer; - -export const ExternalAccountRequirements = z.object({ +export const ExternalAccountRequirements: z.ZodType = z.object({ 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), 'past_due': z.array(z.string()), 'pending_verification': z.array(z.string()) }); -export type ExternalAccountRequirementsModel = z.infer; - export const BankAccount: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'account_holder_name': z.string(), @@ -9897,14 +19814,12 @@ export const BankAccount: z.ZodType = z.object({ export const ExternalAccount: z.ZodType = z.union([z.lazy(() => BankAccount), z.lazy(() => Card)]); -export const AccountRequirementsAlternative = z.object({ +export const AccountRequirementsAlternative: z.ZodType = z.object({ 'alternative_fields_due': z.array(z.string()), 'original_fields_due': z.array(z.string()) }); -export type AccountRequirementsAlternativeModel = z.infer; - -export const AccountFutureRequirements = z.object({ +export const AccountFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -9915,37 +19830,27 @@ export const AccountFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountFutureRequirementsModel = z.infer; - -export const AccountGroupMembership = z.object({ +export const AccountGroupMembership: z.ZodType = z.object({ 'payments_pricing': z.string() }); -export type AccountGroupMembershipModel = z.infer; - -export const PersonAdditionalTosAcceptance = z.object({ +export const PersonAdditionalTosAcceptance: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string() }); -export type PersonAdditionalTosAcceptanceModel = z.infer; - -export const PersonAdditionalTosAcceptances = z.object({ +export const PersonAdditionalTosAcceptances: z.ZodType = z.object({ 'account': z.union([PersonAdditionalTosAcceptance]) }); -export type PersonAdditionalTosAcceptancesModel = z.infer; - -export const LegalEntityDob = z.object({ +export const LegalEntityDob: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type LegalEntityDobModel = z.infer; - -export const PersonFutureRequirements = z.object({ +export const PersonFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -9954,9 +19859,7 @@ export const PersonFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonFutureRequirementsModel = z.infer; - -export const PersonRelationship = z.object({ +export const PersonRelationship: z.ZodType = z.object({ 'authorizer': z.boolean(), 'director': z.boolean(), 'executive': z.boolean(), @@ -9967,9 +19870,7 @@ export const PersonRelationship = z.object({ 'title': z.string() }); -export type PersonRelationshipModel = z.infer; - -export const PersonRequirements = z.object({ +export const PersonRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'currently_due': z.array(z.string()), 'errors': z.array(AccountRequirementsError), @@ -9978,40 +19879,30 @@ export const PersonRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type PersonRequirementsModel = z.infer; - -export const PersonEthnicityDetails = z.object({ +export const PersonEthnicityDetails: z.ZodType = z.object({ 'ethnicity': z.array(z.enum(['cuban', 'hispanic_or_latino', 'mexican', 'not_hispanic_or_latino', 'other_hispanic_or_latino', 'prefer_not_to_answer', 'puerto_rican'])), 'ethnicity_other': z.string() }); -export type PersonEthnicityDetailsModel = z.infer; - -export const PersonRaceDetails = z.object({ +export const PersonRaceDetails: z.ZodType = z.object({ 'race': z.array(z.enum(['african_american', 'american_indian_or_alaska_native', 'asian', 'asian_indian', 'black_or_african_american', 'chinese', 'ethiopian', 'filipino', 'guamanian_or_chamorro', 'haitian', 'jamaican', 'japanese', 'korean', 'native_hawaiian', 'native_hawaiian_or_other_pacific_islander', 'nigerian', 'other_asian', 'other_black_or_african_american', 'other_pacific_islander', 'prefer_not_to_answer', 'samoan', 'somali', 'vietnamese', 'white'])), 'race_other': z.string() }); -export type PersonRaceDetailsModel = z.infer; - -export const PersonUsCfpbData = z.object({ +export const PersonUsCfpbData: z.ZodType = z.object({ 'ethnicity_details': z.union([PersonEthnicityDetails]), 'race_details': z.union([PersonRaceDetails]), 'self_identified_gender': z.string() }); -export type PersonUsCfpbDataModel = z.infer; - -export const LegalEntityPersonVerificationDocument = z.object({ +export const LegalEntityPersonVerificationDocument: z.ZodType = z.object({ 'back': z.union([z.string(), z.lazy(() => File)]), 'details': z.string(), 'details_code': z.string(), 'front': z.union([z.string(), z.lazy(() => File)]) }); -export type LegalEntityPersonVerificationDocumentModel = z.infer; - -export const LegalEntityPersonVerification = z.object({ +export const LegalEntityPersonVerification: z.ZodType = z.object({ 'additional_document': z.union([LegalEntityPersonVerificationDocument]).optional(), 'details': z.string().optional(), 'details_code': z.string().optional(), @@ -10019,9 +19910,7 @@ export const LegalEntityPersonVerification = z.object({ 'status': z.string() }); -export type LegalEntityPersonVerificationModel = z.infer; - -export const Person = z.object({ +export const Person: z.ZodType = z.object({ 'account': z.string().optional(), 'additional_tos_acceptances': PersonAdditionalTosAcceptances.optional(), 'address': Address.optional(), @@ -10056,9 +19945,7 @@ export const Person = z.object({ 'verification': LegalEntityPersonVerification.optional() }); -export type PersonModel = z.infer; - -export const AccountRequirements = z.object({ +export const AccountRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -10069,97 +19956,71 @@ export const AccountRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountRequirementsModel = z.infer; - -export const ConnectRiskAccountRiskControl = z.object({ +export const ConnectRiskAccountRiskControl: z.ZodType = z.object({ 'pause_requested': z.boolean() }); -export type ConnectRiskAccountRiskControlModel = z.infer; - -export const ConnectRiskAccountRiskControls = z.object({ +export const ConnectRiskAccountRiskControls: z.ZodType = z.object({ 'charges': ConnectRiskAccountRiskControl, 'payouts': ConnectRiskAccountRiskControl, 'rejected_reason': z.enum(['credit', 'fraud', 'fraud_no_intent_to_fulfill', 'fraud_other', 'fraud_payment_method_casher', 'fraud_payment_method_tester', 'other', 'terms_of_service']).optional() }); -export type ConnectRiskAccountRiskControlsModel = z.infer; - -export const AccountBacsDebitPaymentsSettings = z.object({ +export const AccountBacsDebitPaymentsSettings: z.ZodType = z.object({ 'display_name': z.string(), 'service_user_number': z.string() }); -export type AccountBacsDebitPaymentsSettingsModel = z.infer; - -export const AccountBankBcaOnboardingSettings = z.object({ +export const AccountBankBcaOnboardingSettings: z.ZodType = z.object({ 'account_holder_name': z.string().optional(), 'business_account_number': z.string().optional() }); -export type AccountBankBcaOnboardingSettingsModel = z.infer; - -export const AccountBrandingSettings = z.object({ +export const AccountBrandingSettings: z.ZodType = z.object({ 'icon': z.union([z.string(), z.lazy(() => File)]), 'logo': z.union([z.string(), z.lazy(() => File)]), 'primary_color': z.string(), 'secondary_color': z.string() }); -export type AccountBrandingSettingsModel = z.infer; - -export const AccountCapitalSettings = z.object({ +export const AccountCapitalSettings: z.ZodType = z.object({ 'payout_destination': z.record(z.string(), z.string()).optional(), 'payout_destination_selector': z.record(z.string(), z.array(z.string())).optional() }); -export type AccountCapitalSettingsModel = z.infer; - -export const CardIssuingAccountTermsOfService = z.object({ +export const CardIssuingAccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string().optional() }); -export type CardIssuingAccountTermsOfServiceModel = z.infer; - -export const AccountCardIssuingSettings = z.object({ +export const AccountCardIssuingSettings: z.ZodType = z.object({ 'tos_acceptance': CardIssuingAccountTermsOfService.optional() }); -export type AccountCardIssuingSettingsModel = z.infer; - -export const AccountDeclineChargeOn = z.object({ +export const AccountDeclineChargeOn: z.ZodType = z.object({ 'avs_failure': z.boolean(), 'cvc_failure': z.boolean() }); -export type AccountDeclineChargeOnModel = z.infer; - -export const AccountCardPaymentsSettings = z.object({ +export const AccountCardPaymentsSettings: z.ZodType = z.object({ 'decline_on': AccountDeclineChargeOn.optional(), 'statement_descriptor_prefix': z.string(), 'statement_descriptor_prefix_kana': z.string(), 'statement_descriptor_prefix_kanji': z.string() }); -export type AccountCardPaymentsSettingsModel = z.infer; - -export const AccountDashboardSettings = z.object({ +export const AccountDashboardSettings: z.ZodType = z.object({ 'display_name': z.string(), 'timezone': z.string() }); -export type AccountDashboardSettingsModel = z.infer; - -export const AccountInvoicesSettings = z.object({ +export const AccountInvoicesSettings: z.ZodType = z.object({ 'default_account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId)])), 'hosted_payment_method_save': z.enum(['always', 'never', 'offer']) }); -export type AccountInvoicesSettingsModel = z.infer; - -export const AccountPaymentsSettings = z.object({ +export const AccountPaymentsSettings: z.ZodType = z.object({ 'statement_descriptor': z.string(), 'statement_descriptor_kana': z.string(), 'statement_descriptor_kanji': z.string(), @@ -10167,9 +20028,7 @@ export const AccountPaymentsSettings = z.object({ 'statement_descriptor_prefix_kanji': z.string() }); -export type AccountPaymentsSettingsModel = z.infer; - -export const TransferSchedule = z.object({ +export const TransferSchedule: z.ZodType = z.object({ 'delay_days': z.number().int(), 'interval': z.string(), 'monthly_anchor': z.number().int().optional(), @@ -10178,49 +20037,35 @@ export const TransferSchedule = z.object({ 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type TransferScheduleModel = z.infer; - -export const AccountPayoutSettings = z.object({ +export const AccountPayoutSettings: z.ZodType = z.object({ 'debit_negative_balances': z.boolean(), 'schedule': TransferSchedule, 'statement_descriptor': z.string() }); -export type AccountPayoutSettingsModel = z.infer; - -export const AccountPaypayPaymentsSettings = z.object({ +export const AccountPaypayPaymentsSettings: z.ZodType = z.object({ 'goods_type': z.enum(['digital_content', 'other']).optional() }); -export type AccountPaypayPaymentsSettingsModel = z.infer; - -export const AccountSepaDebitPaymentsSettings = z.object({ +export const AccountSepaDebitPaymentsSettings: z.ZodType = z.object({ 'creditor_id': z.string().optional() }); -export type AccountSepaDebitPaymentsSettingsModel = z.infer; - -export const TaxReportingAccountSettingsResourceTaxFormSettings = z.object({ +export const TaxReportingAccountSettingsResourceTaxFormSettings: z.ZodType = z.object({ 'consented_to_paperless_delivery': z.boolean() }); -export type TaxReportingAccountSettingsResourceTaxFormSettingsModel = z.infer; - -export const AccountTermsOfService = z.object({ +export const AccountTermsOfService: z.ZodType = z.object({ 'date': z.number().int(), 'ip': z.string(), 'user_agent': z.string().optional() }); -export type AccountTermsOfServiceModel = z.infer; - -export const AccountTreasurySettings = z.object({ +export const AccountTreasurySettings: z.ZodType = z.object({ 'tos_acceptance': AccountTermsOfService.optional() }); -export type AccountTreasurySettingsModel = z.infer; - -export const AccountSettings = z.object({ +export const AccountSettings: z.ZodType = z.object({ 'bacs_debit_payments': AccountBacsDebitPaymentsSettings.optional(), 'bank_bca_onboarding': AccountBankBcaOnboardingSettings.optional(), 'branding': AccountBrandingSettings, @@ -10237,17 +20082,13 @@ export const AccountSettings = z.object({ 'treasury': AccountTreasurySettings.optional() }); -export type AccountSettingsModel = z.infer; - -export const AccountTosAcceptance = z.object({ +export const AccountTosAcceptance: z.ZodType = z.object({ 'date': z.number().int().optional(), 'ip': z.string().optional(), 'service_agreement': z.string().optional(), 'user_agent': z.string().optional() }); -export type AccountTosAcceptanceModel = z.infer; - export const Account: z.ZodType = z.object({ 'business_profile': z.union([AccountBusinessProfile]).optional(), 'business_type': z.enum(['company', 'government_entity', 'individual', 'non_profit']).optional(), @@ -10280,43 +20121,31 @@ export const Account: z.ZodType = z.object({ 'type': z.enum(['custom', 'express', 'none', 'standard']).optional() }); -export const AccountApplicationAuthorized = z.object({ +export const AccountApplicationAuthorized: z.ZodType = z.object({ 'object': Application }); -export type AccountApplicationAuthorizedModel = z.infer; - -export const AccountApplicationDeauthorized = z.object({ +export const AccountApplicationDeauthorized: z.ZodType = z.object({ 'object': Application }); -export type AccountApplicationDeauthorizedModel = z.infer; - -export const AccountExternalAccountCreated = z.object({ +export const AccountExternalAccountCreated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountCreatedModel = z.infer; - -export const AccountExternalAccountDeleted = z.object({ +export const AccountExternalAccountDeleted: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountDeletedModel = z.infer; - -export const AccountExternalAccountUpdated = z.object({ +export const AccountExternalAccountUpdated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type AccountExternalAccountUpdatedModel = z.infer; - -export const AccountUpdated = z.object({ +export const AccountUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Account) }); -export type AccountUpdatedModel = z.infer; - -export const AccountCapabilityFutureRequirements = z.object({ +export const AccountCapabilityFutureRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -10327,9 +20156,7 @@ export const AccountCapabilityFutureRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityFutureRequirementsModel = z.infer; - -export const AccountCapabilityRequirements = z.object({ +export const AccountCapabilityRequirements: z.ZodType = z.object({ 'alternatives': z.array(AccountRequirementsAlternative), 'current_deadline': z.number().int(), 'currently_due': z.array(z.string()), @@ -10340,34 +20167,26 @@ export const AccountCapabilityRequirements = z.object({ 'pending_verification': z.array(z.string()) }); -export type AccountCapabilityRequirementsModel = z.infer; - -export const AccountLink = z.object({ +export const AccountLink: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int(), 'object': z.enum(['account_link']), 'url': z.string() }); -export type AccountLinkModel = z.infer; - -export const IssuingComplianceNoticeEmail = z.object({ +export const IssuingComplianceNoticeEmail: z.ZodType = z.object({ 'plain_text': z.string(), 'recipient': z.string(), 'subject': z.string() }); -export type IssuingComplianceNoticeEmailModel = z.infer; - -export const IssuingComplianceNoticeLinkedObjects = z.object({ +export const IssuingComplianceNoticeLinkedObjects: z.ZodType = z.object({ 'capability': z.string(), 'issuing_credit_underwriting_record': z.string().optional(), 'issuing_dispute': z.string() }); -export type IssuingComplianceNoticeLinkedObjectsModel = z.infer; - -export const AccountNotice = z.object({ +export const AccountNotice: z.ZodType = z.object({ 'created': z.number().int(), 'deadline': z.number().int(), 'email': z.union([IssuingComplianceNoticeEmail]), @@ -10380,35 +20199,25 @@ export const AccountNotice = z.object({ 'sent_at': z.number().int() }); -export type AccountNoticeModel = z.infer; - -export const AccountNoticeCreated = z.object({ +export const AccountNoticeCreated: z.ZodType = z.object({ 'object': AccountNotice }); -export type AccountNoticeCreatedModel = z.infer; - -export const AccountNoticeUpdated = z.object({ +export const AccountNoticeUpdated: z.ZodType = z.object({ 'object': AccountNotice }); -export type AccountNoticeUpdatedModel = z.infer; - -export const ConnectEmbeddedAccountFeaturesClaim = z.object({ +export const ConnectEmbeddedAccountFeaturesClaim: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean() }); -export type ConnectEmbeddedAccountFeaturesClaimModel = z.infer; - -export const ConnectEmbeddedAccountConfigClaim = z.object({ +export const ConnectEmbeddedAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedAccountFeaturesClaim }); -export type ConnectEmbeddedAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedPayoutsFeatures = z.object({ +export const ConnectEmbeddedPayoutsFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'edit_payout_schedule': z.boolean(), 'external_account_collection': z.boolean(), @@ -10416,112 +20225,82 @@ export const ConnectEmbeddedPayoutsFeatures = z.object({ 'standard_payouts': z.boolean() }); -export type ConnectEmbeddedPayoutsFeaturesModel = z.infer; - -export const ConnectEmbeddedPayoutsConfig = z.object({ +export const ConnectEmbeddedPayoutsConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPayoutsFeatures }); -export type ConnectEmbeddedPayoutsConfigModel = z.infer; - -export const ConnectEmbeddedBaseFeatures = z.object({ +export const ConnectEmbeddedBaseFeatures: z.ZodType = z.object({ }); -export type ConnectEmbeddedBaseFeaturesModel = z.infer; - -export const ConnectEmbeddedBaseConfig = z.object({ +export const ConnectEmbeddedBaseConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedBaseFeatures }); -export type ConnectEmbeddedBaseConfigModel = z.infer; - -export const ConnectEmbeddedDisputesListFeatures = z.object({ +export const ConnectEmbeddedDisputesListFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedDisputesListFeaturesModel = z.infer; - -export const ConnectEmbeddedDisputesListConfig = z.object({ +export const ConnectEmbeddedDisputesListConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedDisputesListFeatures }); -export type ConnectEmbeddedDisputesListConfigModel = z.infer; - -export const ConnectEmbeddedBaseConfigClaim = z.object({ +export const ConnectEmbeddedBaseConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedBaseFeatures }); -export type ConnectEmbeddedBaseConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'send_money': z.boolean(), 'transfer_balance': z.boolean() }); -export type ConnectEmbeddedFinancialAccountFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountFeatures }); -export type ConnectEmbeddedFinancialAccountConfigClaimModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsFeatures = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsFeatures: z.ZodType = z.object({ 'card_spend_dispute_management': z.boolean() }); -export type ConnectEmbeddedFinancialAccountTransactionsFeaturesModel = z.infer; - -export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim = z.object({ +export const ConnectEmbeddedFinancialAccountTransactionsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedFinancialAccountTransactionsFeatures }); -export type ConnectEmbeddedFinancialAccountTransactionsConfigClaimModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionFeatures = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionFeatures: z.ZodType = z.object({ 'disable_stripe_user_authentication': z.boolean(), 'external_account_collection': z.boolean(), 'instant_payouts': z.boolean() }); -export type ConnectEmbeddedInstantPayoutsPromotionFeaturesModel = z.infer; - -export const ConnectEmbeddedInstantPayoutsPromotionConfig = z.object({ +export const ConnectEmbeddedInstantPayoutsPromotionConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedInstantPayoutsPromotionFeatures }); -export type ConnectEmbeddedInstantPayoutsPromotionConfigModel = z.infer; - -export const ConnectEmbeddedIssuingCardFeatures = z.object({ +export const ConnectEmbeddedIssuingCardFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardFeatures }); -export type ConnectEmbeddedIssuingCardConfigClaimModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ +export const ConnectEmbeddedIssuingCardsListFeatures: z.ZodType = z.object({ 'card_management': z.boolean(), 'card_spend_dispute_management': z.boolean(), 'cardholder_management': z.boolean(), @@ -10529,47 +20308,35 @@ export const ConnectEmbeddedIssuingCardsListFeatures = z.object({ 'spend_control_management': z.boolean() }); -export type ConnectEmbeddedIssuingCardsListFeaturesModel = z.infer; - -export const ConnectEmbeddedIssuingCardsListConfigClaim = z.object({ +export const ConnectEmbeddedIssuingCardsListConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedIssuingCardsListFeatures }); -export type ConnectEmbeddedIssuingCardsListConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentsFeatures = z.object({ +export const ConnectEmbeddedPaymentsFeatures: z.ZodType = z.object({ 'capture_payments': z.boolean(), 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentsFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentsConfigClaim = z.object({ +export const ConnectEmbeddedPaymentsConfigClaim: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentsFeatures }); -export type ConnectEmbeddedPaymentsConfigClaimModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesFeatures = z.object({ +export const ConnectEmbeddedPaymentDisputesFeatures: z.ZodType = z.object({ 'destination_on_behalf_of_charge_management': z.boolean(), 'dispute_management': z.boolean(), 'refund_management': z.boolean() }); -export type ConnectEmbeddedPaymentDisputesFeaturesModel = z.infer; - -export const ConnectEmbeddedPaymentDisputesConfig = z.object({ +export const ConnectEmbeddedPaymentDisputesConfig: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': ConnectEmbeddedPaymentDisputesFeatures }); -export type ConnectEmbeddedPaymentDisputesConfigModel = z.infer; - -export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ +export const ConnectEmbeddedAccountSessionCreateComponents: z.ZodType = z.object({ 'account_management': ConnectEmbeddedAccountConfigClaim, 'account_onboarding': ConnectEmbeddedAccountConfigClaim, 'balances': ConnectEmbeddedPayoutsConfig, @@ -10594,9 +20361,7 @@ export const ConnectEmbeddedAccountSessionCreateComponents = z.object({ 'tax_settings': ConnectEmbeddedBaseConfigClaim }); -export type ConnectEmbeddedAccountSessionCreateComponentsModel = z.infer; - -export const AccountSession = z.object({ +export const AccountSession: z.ZodType = z.object({ 'account': z.string(), 'client_secret': z.string(), 'components': ConnectEmbeddedAccountSessionCreateComponents, @@ -10605,9 +20370,7 @@ export const AccountSession = z.object({ 'object': z.enum(['account_session']) }); -export type AccountSessionModel = z.infer; - -export const ApplePayDomain = z.object({ +export const ApplePayDomain: z.ZodType = z.object({ 'created': z.number().int(), 'domain_name': z.string(), 'id': z.string(), @@ -10615,34 +20378,24 @@ export const ApplePayDomain = z.object({ 'object': z.enum(['apple_pay_domain']) }); -export type ApplePayDomainModel = z.infer; - -export const ApplicationFeeCreated = z.object({ +export const ApplicationFeeCreated: z.ZodType = z.object({ 'object': z.lazy(() => ApplicationFee) }); -export type ApplicationFeeCreatedModel = z.infer; - -export const ApplicationFeeRefundUpdated = z.object({ +export const ApplicationFeeRefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => FeeRefund) }); -export type ApplicationFeeRefundUpdatedModel = z.infer; - -export const ApplicationFeeRefunded = z.object({ +export const ApplicationFeeRefunded: z.ZodType = z.object({ 'object': z.lazy(() => ApplicationFee) }); -export type ApplicationFeeRefundedModel = z.infer; - -export const SecretServiceResourceScope = z.object({ +export const SecretServiceResourceScope: z.ZodType = z.object({ 'type': z.enum(['account', 'user']), 'user': z.string().optional() }); -export type SecretServiceResourceScopeModel = z.infer; - -export const AppsSecret = z.object({ +export const AppsSecret: z.ZodType = z.object({ 'created': z.number().int(), 'deleted': z.boolean().optional(), 'expires_at': z.number().int(), @@ -10654,55 +20407,41 @@ export const AppsSecret = z.object({ 'scope': SecretServiceResourceScope }); -export type AppsSecretModel = z.infer; - -export const BalanceAmountBySourceType = z.object({ +export const BalanceAmountBySourceType: z.ZodType = z.object({ 'bank_account': z.number().int().optional(), 'card': z.number().int().optional(), 'fpx': z.number().int().optional() }); -export type BalanceAmountBySourceTypeModel = z.infer; - -export const BalanceAmount = z.object({ +export const BalanceAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountModel = z.infer; - -export const BalanceNetAvailable = z.object({ +export const BalanceNetAvailable: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.string(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceNetAvailableModel = z.infer; - -export const BalanceAmountNet = z.object({ +export const BalanceAmountNet: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'net_available': z.array(BalanceNetAvailable).optional(), 'source_types': BalanceAmountBySourceType.optional() }); -export type BalanceAmountNetModel = z.infer; - -export const BalanceDetail = z.object({ +export const BalanceDetail: z.ZodType = z.object({ 'available': z.array(BalanceAmount) }); -export type BalanceDetailModel = z.infer; - -export const BalanceDetailUngated = z.object({ +export const BalanceDetailUngated: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'pending': z.array(BalanceAmount) }); -export type BalanceDetailUngatedModel = z.infer; - -export const Balance = z.object({ +export const Balance: z.ZodType = z.object({ 'available': z.array(BalanceAmount), 'connect_reserved': z.array(BalanceAmount).optional(), 'instant_available': z.array(BalanceAmountNet).optional(), @@ -10713,90 +20452,66 @@ export const Balance = z.object({ 'refund_and_dispute_prefunding': BalanceDetailUngated.optional() }); -export type BalanceModel = z.infer; - -export const BalanceAvailable = z.object({ +export const BalanceAvailable: z.ZodType = z.object({ 'object': Balance }); -export type BalanceAvailableModel = z.infer; - -export const BalanceSettingsResourcePayoutSchedule = z.object({ +export const BalanceSettingsResourcePayoutSchedule: z.ZodType = z.object({ 'interval': z.enum(['daily', 'manual', 'monthly', 'weekly']), 'monthly_payout_days': z.array(z.number().int()).optional(), 'weekly_payout_days': z.array(z.enum(['friday', 'monday', 'thursday', 'tuesday', 'wednesday'])).optional() }); -export type BalanceSettingsResourcePayoutScheduleModel = z.infer; - -export const BalanceSettingsResourcePayouts = z.object({ +export const BalanceSettingsResourcePayouts: z.ZodType = z.object({ 'minimum_balance_by_currency': z.record(z.string(), z.number().int()), 'schedule': z.union([BalanceSettingsResourcePayoutSchedule]), 'statement_descriptor': z.string(), 'status': z.enum(['disabled', 'enabled']) }); -export type BalanceSettingsResourcePayoutsModel = z.infer; - -export const BalanceSettingsResourceSettlementTiming = z.object({ +export const BalanceSettingsResourceSettlementTiming: z.ZodType = z.object({ 'delay_days': z.number().int(), 'delay_days_override': z.number().int().optional() }); -export type BalanceSettingsResourceSettlementTimingModel = z.infer; - -export const BalanceSettingsResourcePayments = z.object({ +export const BalanceSettingsResourcePayments: z.ZodType = z.object({ 'debit_negative_balances': z.boolean(), 'payouts': z.union([BalanceSettingsResourcePayouts]), 'settlement_timing': BalanceSettingsResourceSettlementTiming }); -export type BalanceSettingsResourcePaymentsModel = z.infer; - -export const BalanceSettings = z.object({ +export const BalanceSettings: z.ZodType = z.object({ 'object': z.enum(['balance_settings']), 'payments': BalanceSettingsResourcePayments }); -export type BalanceSettingsModel = z.infer; - -export const BalanceSettingsUpdated = z.object({ +export const BalanceSettingsUpdated: z.ZodType = z.object({ 'object': BalanceSettings }); -export type BalanceSettingsUpdatedModel = z.infer; - -export const BankConnectionsResourceAccountNumberDetails = z.object({ +export const BankConnectionsResourceAccountNumberDetails: z.ZodType = z.object({ 'expected_expiry_date': z.number().int(), 'identifier_type': z.enum(['account_number', 'tokenized_account_number']), 'status': z.enum(['deactivated', 'transactable']), 'supported_networks': z.array(z.enum(['ach'])) }); -export type BankConnectionsResourceAccountNumberDetailsModel = z.infer; - -export const BankConnectionsResourceAccountholder = z.object({ +export const BankConnectionsResourceAccountholder: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]).optional(), 'customer': z.union([z.string(), z.lazy(() => Customer)]).optional(), 'customer_account': z.string().optional(), 'type': z.enum(['account', 'customer']) }); -export type BankConnectionsResourceAccountholderModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCashBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCashBalance: z.ZodType = z.object({ 'available': z.record(z.string(), z.number().int()) }); -export type BankConnectionsResourceBalanceApiResourceCashBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceApiResourceCreditBalance = z.object({ +export const BankConnectionsResourceBalanceApiResourceCreditBalance: z.ZodType = z.object({ 'used': z.record(z.string(), z.number().int()) }); -export type BankConnectionsResourceBalanceApiResourceCreditBalanceModel = z.infer; - -export const BankConnectionsResourceBalance = z.object({ +export const BankConnectionsResourceBalance: z.ZodType = z.object({ 'as_of': z.number().int(), 'cash': BankConnectionsResourceBalanceApiResourceCashBalance.optional(), 'credit': BankConnectionsResourceBalanceApiResourceCreditBalance.optional(), @@ -10804,128 +20519,92 @@ export const BankConnectionsResourceBalance = z.object({ 'type': z.enum(['cash', 'credit']) }); -export type BankConnectionsResourceBalanceModel = z.infer; - -export const BankConnectionsResourceBalanceRefresh = z.object({ +export const BankConnectionsResourceBalanceRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceBalanceRefreshModel = z.infer; - -export const BankConnectionsResourceInferredBalancesRefresh = z.object({ +export const BankConnectionsResourceInferredBalancesRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceInferredBalancesRefreshModel = z.infer; - -export const BankConnectionsResourceInstitutionSupportedFeature = z.object({ +export const BankConnectionsResourceInstitutionSupportedFeature: z.ZodType = z.object({ 'supported': z.boolean() }); -export type BankConnectionsResourceInstitutionSupportedFeatureModel = z.infer; - -export const BankConnectionsResourceInstitutionFeatureSupport = z.object({ +export const BankConnectionsResourceInstitutionFeatureSupport: z.ZodType = z.object({ 'balances': BankConnectionsResourceInstitutionSupportedFeature, 'ownership': BankConnectionsResourceInstitutionSupportedFeature, 'payment_method': BankConnectionsResourceInstitutionSupportedFeature, 'transactions': BankConnectionsResourceInstitutionSupportedFeature }); -export type BankConnectionsResourceInstitutionFeatureSupportModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionFilters = z.object({ +export const BankConnectionsResourceLinkAccountSessionFilters: z.ZodType = z.object({ 'account_subcategories': z.array(z.enum(['checking', 'credit_card', 'line_of_credit', 'mortgage', 'savings'])), 'countries': z.array(z.string()), 'institution': z.string().optional() }); -export type BankConnectionsResourceLinkAccountSessionFiltersModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionLimits = z.object({ +export const BankConnectionsResourceLinkAccountSessionLimits: z.ZodType = z.object({ 'accounts': z.number().int() }); -export type BankConnectionsResourceLinkAccountSessionLimitsModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionManualEntry = z.object({ +export const BankConnectionsResourceLinkAccountSessionManualEntry: z.ZodType = z.object({ }); -export type BankConnectionsResourceLinkAccountSessionManualEntryModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetails = z.object({ +export const BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetails: z.ZodType = z.object({ 'reason': z.enum(['custom_manual_entry', 'other']) }); -export type BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetailsModel = z.infer; - -export const BankConnectionsResourceLinkAccountSessionStatusDetails = z.object({ +export const BankConnectionsResourceLinkAccountSessionStatusDetails: z.ZodType = z.object({ 'cancelled': BankConnectionsResourceLinkAccountSessionStatusDetailsResourceCancelledStatusDetails.optional() }); -export type BankConnectionsResourceLinkAccountSessionStatusDetailsModel = z.infer; - -export const BankConnectionsResourceOwnershipRefresh = z.object({ +export const BankConnectionsResourceOwnershipRefresh: z.ZodType = z.object({ 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceOwnershipRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionRefresh = z.object({ +export const BankConnectionsResourceTransactionRefresh: z.ZodType = z.object({ 'id': z.string(), 'last_attempted_at': z.number().int(), 'next_refresh_available_at': z.number().int(), 'status': z.enum(['failed', 'pending', 'succeeded']) }); -export type BankConnectionsResourceTransactionRefreshModel = z.infer; - -export const BankConnectionsResourceTransactionResourceStatusTransitions = z.object({ +export const BankConnectionsResourceTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int(), 'void_at': z.number().int() }); -export type BankConnectionsResourceTransactionResourceStatusTransitionsModel = z.infer; - -export const ThresholdsResourceUsageAlertFilter = z.object({ +export const ThresholdsResourceUsageAlertFilter: z.ZodType = z.object({ 'customer': z.union([z.string(), z.lazy(() => Customer)]), 'type': z.enum(['customer']) }); -export type ThresholdsResourceUsageAlertFilterModel = z.infer; - -export const BillingMeterResourceCustomerMappingSettings = z.object({ +export const BillingMeterResourceCustomerMappingSettings: z.ZodType = z.object({ 'event_payload_key': z.string(), 'type': z.enum(['by_id']) }); -export type BillingMeterResourceCustomerMappingSettingsModel = z.infer; - -export const BillingMeterResourceAggregationSettings = z.object({ +export const BillingMeterResourceAggregationSettings: z.ZodType = z.object({ 'formula': z.enum(['count', 'last', 'sum']) }); -export type BillingMeterResourceAggregationSettingsModel = z.infer; - -export const BillingMeterResourceBillingMeterStatusTransitions = z.object({ +export const BillingMeterResourceBillingMeterStatusTransitions: z.ZodType = z.object({ 'deactivated_at': z.number().int() }); -export type BillingMeterResourceBillingMeterStatusTransitionsModel = z.infer; - -export const BillingMeterResourceBillingMeterValue = z.object({ +export const BillingMeterResourceBillingMeterValue: z.ZodType = z.object({ 'event_payload_key': z.string() }); -export type BillingMeterResourceBillingMeterValueModel = z.infer; - -export const BillingMeter = z.object({ +export const BillingMeter: z.ZodType = z.object({ 'created': z.number().int(), 'customer_mapping': BillingMeterResourceCustomerMappingSettings, 'default_aggregation': BillingMeterResourceAggregationSettings, @@ -10941,18 +20620,14 @@ export const BillingMeter = z.object({ 'value_settings': BillingMeterResourceBillingMeterValue }); -export type BillingMeterModel = z.infer; - -export const ThresholdsResourceUsageThresholdConfig = z.object({ +export const ThresholdsResourceUsageThresholdConfig: z.ZodType = z.object({ 'filters': z.array(ThresholdsResourceUsageAlertFilter), 'gte': z.number().int(), 'meter': z.union([z.string(), BillingMeter]), 'recurrence': z.enum(['one_time']) }); -export type ThresholdsResourceUsageThresholdConfigModel = z.infer; - -export const BillingAlert = z.object({ +export const BillingAlert: z.ZodType = z.object({ 'alert_type': z.enum(['usage_threshold']), 'id': z.string(), 'livemode': z.boolean(), @@ -10962,9 +20637,7 @@ export const BillingAlert = z.object({ 'usage_threshold': z.union([ThresholdsResourceUsageThresholdConfig]) }); -export type BillingAlertModel = z.infer; - -export const BillingAlertTriggered_1 = z.object({ +export const BillingAlertTriggered_1: z.ZodType = z.object({ 'alert': BillingAlert, 'created': z.number().int(), 'customer': z.string(), @@ -10973,15 +20646,11 @@ export const BillingAlertTriggered_1 = z.object({ 'value': z.string() }); -export type BillingAlertTriggered_1Model = z.infer; - -export const BillingAlertTriggered = z.object({ +export const BillingAlertTriggered: z.ZodType = z.object({ 'object': BillingAlertTriggered_1 }); -export type BillingAlertTriggeredModel = z.infer; - -export const BillingAnalyticsMeterUsageRow = z.object({ +export const BillingAnalyticsMeterUsageRow: z.ZodType = z.object({ 'dimensions': z.record(z.string(), z.string()), 'ends_at': z.number().int(), 'id': z.string(), @@ -10991,34 +20660,26 @@ export const BillingAnalyticsMeterUsageRow = z.object({ 'value': z.number() }); -export type BillingAnalyticsMeterUsageRowModel = z.infer; - -export const BillingOverviewResourcesMeterUsageRows = z.object({ +export const BillingOverviewResourcesMeterUsageRows: z.ZodType = z.object({ 'data': z.array(BillingAnalyticsMeterUsageRow), 'has_more': z.boolean(), 'total': z.number().int(), 'url': z.string() }); -export type BillingOverviewResourcesMeterUsageRowsModel = z.infer; - -export const BillingAnalyticsMeterUsage = z.object({ +export const BillingAnalyticsMeterUsage: z.ZodType = z.object({ 'livemode': z.boolean(), 'object': z.enum(['billing.analytics.meter_usage']), 'refreshed_at': z.number().int(), 'rows': BillingOverviewResourcesMeterUsageRows }); -export type BillingAnalyticsMeterUsageModel = z.infer; - -export const CreditBalance = z.object({ +export const CreditBalance: z.ZodType = z.object({ 'available_balance': BillingCreditGrantsResourceAmount, 'ledger_balance': BillingCreditGrantsResourceAmount }); -export type CreditBalanceModel = z.infer; - -export const BillingCreditBalanceSummary = z.object({ +export const BillingCreditBalanceSummary: z.ZodType = z.object({ 'balances': z.array(CreditBalance), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), 'customer_account': z.string().optional(), @@ -11026,51 +20687,35 @@ export const BillingCreditBalanceSummary = z.object({ 'object': z.enum(['billing.credit_balance_summary']) }); -export type BillingCreditBalanceSummaryModel = z.infer; - -export const BillingCreditBalanceTransactionCreated = z.object({ +export const BillingCreditBalanceTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditBalanceTransaction) }); -export type BillingCreditBalanceTransactionCreatedModel = z.infer; - -export const BillingCreditGrantCreated = z.object({ +export const BillingCreditGrantCreated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditGrant) }); -export type BillingCreditGrantCreatedModel = z.infer; - -export const BillingCreditGrantUpdated = z.object({ +export const BillingCreditGrantUpdated: z.ZodType = z.object({ 'object': z.lazy(() => BillingCreditGrant) }); -export type BillingCreditGrantUpdatedModel = z.infer; - -export const BillingMeterCreated = z.object({ +export const BillingMeterCreated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterCreatedModel = z.infer; - -export const BillingMeterDeactivated = z.object({ +export const BillingMeterDeactivated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterDeactivatedModel = z.infer; - -export const BillingMeterReactivated = z.object({ +export const BillingMeterReactivated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterReactivatedModel = z.infer; - -export const BillingMeterUpdated = z.object({ +export const BillingMeterUpdated: z.ZodType = z.object({ 'object': BillingMeter }); -export type BillingMeterUpdatedModel = z.infer; - -export const BillingMeterEvent = z.object({ +export const BillingMeterEvent: z.ZodType = z.object({ 'created': z.number().int(), 'event_name': z.string(), 'identifier': z.string(), @@ -11080,15 +20725,11 @@ export const BillingMeterEvent = z.object({ 'timestamp': z.number().int() }); -export type BillingMeterEventModel = z.infer; - -export const BillingMeterResourceBillingMeterEventAdjustmentCancel = z.object({ +export const BillingMeterResourceBillingMeterEventAdjustmentCancel: z.ZodType = z.object({ 'identifier': z.string() }); -export type BillingMeterResourceBillingMeterEventAdjustmentCancelModel = z.infer; - -export const BillingMeterEventAdjustment = z.object({ +export const BillingMeterEventAdjustment: z.ZodType = z.object({ 'cancel': z.union([BillingMeterResourceBillingMeterEventAdjustmentCancel]), 'event_name': z.string(), 'livemode': z.boolean(), @@ -11097,9 +20738,7 @@ export const BillingMeterEventAdjustment = z.object({ 'type': z.enum(['cancel']) }); -export type BillingMeterEventAdjustmentModel = z.infer; - -export const BillingMeterEventSummary = z.object({ +export const BillingMeterEventSummary: z.ZodType = z.object({ 'aggregated_value': z.number(), 'end_time': z.number().int(), 'id': z.string(), @@ -11109,95 +20748,69 @@ export const BillingMeterEventSummary = z.object({ 'start_time': z.number().int() }); -export type BillingMeterEventSummaryModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent: z.ZodType = z.object({ 'subscription': z.string(), 'subscription_item': z.string().optional() }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParentModel = z.infer; - -export const BillingBillResourceInvoiceItemParentsInvoiceItemParent = z.object({ +export const BillingBillResourceInvoiceItemParentsInvoiceItemParent: z.ZodType = z.object({ 'subscription_details': z.union([BillingBillResourceInvoiceItemParentsInvoiceItemSubscriptionParent]), 'type': z.enum(['subscription_details']) }); -export type BillingBillResourceInvoiceItemParentsInvoiceItemParentModel = z.infer; - -export const PortalBusinessProfile = z.object({ +export const PortalBusinessProfile: z.ZodType = z.object({ 'headline': z.string(), 'privacy_policy_url': z.string(), 'terms_of_service_url': z.string() }); -export type PortalBusinessProfileModel = z.infer; - -export const PortalCustomerUpdate = z.object({ +export const PortalCustomerUpdate: z.ZodType = z.object({ 'allowed_updates': z.array(z.enum(['address', 'email', 'name', 'phone', 'shipping', 'tax_id'])), 'enabled': z.boolean() }); -export type PortalCustomerUpdateModel = z.infer; - -export const PortalInvoiceList = z.object({ +export const PortalInvoiceList: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PortalInvoiceListModel = z.infer; - -export const PortalPaymentMethodUpdate = z.object({ +export const PortalPaymentMethodUpdate: z.ZodType = z.object({ 'enabled': z.boolean(), 'payment_method_configuration': z.string() }); -export type PortalPaymentMethodUpdateModel = z.infer; - -export const PortalSubscriptionCancellationReason = z.object({ +export const PortalSubscriptionCancellationReason: z.ZodType = z.object({ 'enabled': z.boolean(), 'options': z.array(z.enum(['customer_service', 'low_quality', 'missing_features', 'other', 'switched_service', 'too_complex', 'too_expensive', 'unused'])) }); -export type PortalSubscriptionCancellationReasonModel = z.infer; - -export const PortalSubscriptionCancel = z.object({ +export const PortalSubscriptionCancel: z.ZodType = z.object({ 'cancellation_reason': PortalSubscriptionCancellationReason, 'enabled': z.boolean(), 'mode': z.enum(['at_period_end', 'immediately']), 'proration_behavior': z.enum(['always_invoice', 'create_prorations', 'none']) }); -export type PortalSubscriptionCancelModel = z.infer; - -export const PortalSubscriptionUpdateProductAdjustableQuantity = z.object({ +export const PortalSubscriptionUpdateProductAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PortalSubscriptionUpdateProductAdjustableQuantityModel = z.infer; - -export const PortalSubscriptionUpdateProduct = z.object({ +export const PortalSubscriptionUpdateProduct: z.ZodType = z.object({ 'adjustable_quantity': PortalSubscriptionUpdateProductAdjustableQuantity, 'prices': z.array(z.string()), 'product': z.string() }); -export type PortalSubscriptionUpdateProductModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEndCondition = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEndCondition: z.ZodType = z.object({ 'type': z.enum(['decreasing_item_amount', 'shortening_interval']) }); -export type PortalResourceScheduleUpdateAtPeriodEndConditionModel = z.infer; - -export const PortalResourceScheduleUpdateAtPeriodEnd = z.object({ +export const PortalResourceScheduleUpdateAtPeriodEnd: z.ZodType = z.object({ 'conditions': z.array(PortalResourceScheduleUpdateAtPeriodEndCondition) }); -export type PortalResourceScheduleUpdateAtPeriodEndModel = z.infer; - -export const PortalSubscriptionUpdate = z.object({ +export const PortalSubscriptionUpdate: z.ZodType = z.object({ 'default_allowed_updates': z.array(z.enum(['price', 'promotion_code', 'quantity'])), 'enabled': z.boolean(), 'products': z.array(PortalSubscriptionUpdateProduct).optional(), @@ -11206,9 +20819,7 @@ export const PortalSubscriptionUpdate = z.object({ 'trial_update_behavior': z.enum(['continue_trial', 'end_trial']) }); -export type PortalSubscriptionUpdateModel = z.infer; - -export const PortalFeatures = z.object({ +export const PortalFeatures: z.ZodType = z.object({ 'customer_update': PortalCustomerUpdate, 'invoice_history': PortalInvoiceList, 'payment_method_update': PortalPaymentMethodUpdate, @@ -11216,16 +20827,12 @@ export const PortalFeatures = z.object({ 'subscription_update': PortalSubscriptionUpdate }); -export type PortalFeaturesModel = z.infer; - -export const PortalLoginPage = z.object({ +export const PortalLoginPage: z.ZodType = z.object({ 'enabled': z.boolean(), 'url': z.string() }); -export type PortalLoginPageModel = z.infer; - -export const BillingPortalConfiguration = z.object({ +export const BillingPortalConfiguration: z.ZodType = z.object({ 'active': z.boolean(), 'application': z.union([z.string(), Application, DeletedApplication]), 'business_profile': PortalBusinessProfile, @@ -11242,90 +20849,64 @@ export const BillingPortalConfiguration = z.object({ 'updated': z.number().int() }); -export type BillingPortalConfigurationModel = z.infer; - -export const BillingPortalConfigurationCreated = z.object({ +export const BillingPortalConfigurationCreated: z.ZodType = z.object({ 'object': BillingPortalConfiguration }); -export type BillingPortalConfigurationCreatedModel = z.infer; - -export const BillingPortalConfigurationUpdated = z.object({ +export const BillingPortalConfigurationUpdated: z.ZodType = z.object({ 'object': BillingPortalConfiguration }); -export type BillingPortalConfigurationUpdatedModel = z.infer; - -export const PortalFlowsAfterCompletionHostedConfirmation = z.object({ +export const PortalFlowsAfterCompletionHostedConfirmation: z.ZodType = z.object({ 'custom_message': z.string() }); -export type PortalFlowsAfterCompletionHostedConfirmationModel = z.infer; - -export const PortalFlowsAfterCompletionRedirect = z.object({ +export const PortalFlowsAfterCompletionRedirect: z.ZodType = z.object({ 'return_url': z.string() }); -export type PortalFlowsAfterCompletionRedirectModel = z.infer; - -export const PortalFlowsFlowAfterCompletion = z.object({ +export const PortalFlowsFlowAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': z.union([PortalFlowsAfterCompletionHostedConfirmation]), 'redirect': z.union([PortalFlowsAfterCompletionRedirect]), 'type': z.enum(['hosted_confirmation', 'portal_homepage', 'redirect']) }); -export type PortalFlowsFlowAfterCompletionModel = z.infer; - -export const PortalFlowsCouponOffer = z.object({ +export const PortalFlowsCouponOffer: z.ZodType = z.object({ 'coupon': z.string() }); -export type PortalFlowsCouponOfferModel = z.infer; - -export const PortalFlowsRetention = z.object({ +export const PortalFlowsRetention: z.ZodType = z.object({ 'coupon_offer': z.union([PortalFlowsCouponOffer]), 'type': z.enum(['coupon_offer']) }); -export type PortalFlowsRetentionModel = z.infer; - -export const PortalFlowsFlowSubscriptionCancel = z.object({ +export const PortalFlowsFlowSubscriptionCancel: z.ZodType = z.object({ 'retention': z.union([PortalFlowsRetention]), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionCancelModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdate = z.object({ +export const PortalFlowsFlowSubscriptionUpdate: z.ZodType = z.object({ 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmDiscount = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmDiscount: z.ZodType = z.object({ 'coupon': z.string(), 'promotion_code': z.string() }); -export type PortalFlowsSubscriptionUpdateConfirmDiscountModel = z.infer; - -export const PortalFlowsSubscriptionUpdateConfirmItem = z.object({ +export const PortalFlowsSubscriptionUpdateConfirmItem: z.ZodType = z.object({ 'id': z.string(), 'price': z.string(), 'quantity': z.number().int().optional() }); -export type PortalFlowsSubscriptionUpdateConfirmItemModel = z.infer; - -export const PortalFlowsFlowSubscriptionUpdateConfirm = z.object({ +export const PortalFlowsFlowSubscriptionUpdateConfirm: z.ZodType = z.object({ 'discounts': z.array(PortalFlowsSubscriptionUpdateConfirmDiscount), 'items': z.array(PortalFlowsSubscriptionUpdateConfirmItem), 'subscription': z.string() }); -export type PortalFlowsFlowSubscriptionUpdateConfirmModel = z.infer; - -export const PortalFlowsFlow = z.object({ +export const PortalFlowsFlow: z.ZodType = z.object({ 'after_completion': PortalFlowsFlowAfterCompletion, 'subscription_cancel': z.union([PortalFlowsFlowSubscriptionCancel]), 'subscription_update': z.union([PortalFlowsFlowSubscriptionUpdate]), @@ -11333,9 +20914,7 @@ export const PortalFlowsFlow = z.object({ 'type': z.enum(['payment_method_update', 'subscription_cancel', 'subscription_update', 'subscription_update_confirm']) }); -export type PortalFlowsFlowModel = z.infer; - -export const BillingPortalSession = z.object({ +export const BillingPortalSession: z.ZodType = z.object({ 'configuration': z.union([z.string(), BillingPortalConfiguration]), 'created': z.number().int(), 'customer': z.string(), @@ -11350,15 +20929,11 @@ export const BillingPortalSession = z.object({ 'url': z.string() }); -export type BillingPortalSessionModel = z.infer; - -export const BillingPortalSessionCreated = z.object({ +export const BillingPortalSessionCreated: z.ZodType = z.object({ 'object': BillingPortalSession }); -export type BillingPortalSessionCreatedModel = z.infer; - -export const Capability = z.object({ +export const Capability: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'future_requirements': AccountCapabilityFutureRequirements.optional(), 'id': z.string(), @@ -11369,15 +20944,11 @@ export const Capability = z.object({ 'status': z.enum(['active', 'inactive', 'pending', 'unrequested']) }); -export type CapabilityModel = z.infer; - -export const CapabilityUpdated = z.object({ +export const CapabilityUpdated: z.ZodType = z.object({ 'object': Capability }); -export type CapabilityUpdatedModel = z.infer; - -export const CapitalConnectConnectFinancingAcceptedTerms = z.object({ +export const CapitalConnectConnectFinancingAcceptedTerms: z.ZodType = z.object({ 'advance_amount': z.number().int(), 'currency': z.string(), 'fee_amount': z.number().int(), @@ -11385,9 +20956,7 @@ export const CapitalConnectConnectFinancingAcceptedTerms = z.object({ 'withhold_rate': z.number() }); -export type CapitalConnectConnectFinancingAcceptedTermsModel = z.infer; - -export const CapitalConnectConnectFinancingOfferedTerms = z.object({ +export const CapitalConnectConnectFinancingOfferedTerms: z.ZodType = z.object({ 'advance_amount': z.number().int(), 'campaign_type': z.enum(['newly_eligible_user', 'previously_eligible_user', 'repeat_user']), 'currency': z.string(), @@ -11396,9 +20965,7 @@ export const CapitalConnectConnectFinancingOfferedTerms = z.object({ 'withhold_rate': z.number() }); -export type CapitalConnectConnectFinancingOfferedTermsModel = z.infer; - -export const CapitalFinancingOffer = z.object({ +export const CapitalFinancingOffer: z.ZodType = z.object({ 'accepted_terms': CapitalConnectConnectFinancingAcceptedTerms.optional(), 'account': z.string(), 'charged_off_at': z.number().int().optional(), @@ -11417,65 +20984,45 @@ export const CapitalFinancingOffer = z.object({ 'type': z.enum(['cash_advance', 'fixed_term_loan', 'flex_loan']).optional() }); -export type CapitalFinancingOfferModel = z.infer; - -export const CapitalFinancingOfferAccepted = z.object({ +export const CapitalFinancingOfferAccepted: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferAcceptedModel = z.infer; - -export const CapitalFinancingOfferCanceled = z.object({ +export const CapitalFinancingOfferCanceled: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferCanceledModel = z.infer; - -export const CapitalFinancingOfferCreated = z.object({ +export const CapitalFinancingOfferCreated: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferCreatedModel = z.infer; - -export const CapitalFinancingOfferExpired = z.object({ +export const CapitalFinancingOfferExpired: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferExpiredModel = z.infer; - -export const CapitalFinancingOfferFullyRepaid = z.object({ +export const CapitalFinancingOfferFullyRepaid: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferFullyRepaidModel = z.infer; - -export const CapitalFinancingOfferPaidOut = z.object({ +export const CapitalFinancingOfferPaidOut: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferPaidOutModel = z.infer; - -export const CapitalFinancingOfferRejected = z.object({ +export const CapitalFinancingOfferRejected: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferRejectedModel = z.infer; - -export const CapitalFinancingOfferReplacementCreated = z.object({ +export const CapitalFinancingOfferReplacementCreated: z.ZodType = z.object({ 'object': CapitalFinancingOffer }); -export type CapitalFinancingOfferReplacementCreatedModel = z.infer; - -export const CapitalConnectFinancingSummaryCurrentRepaymentWindow = z.object({ +export const CapitalConnectFinancingSummaryCurrentRepaymentWindow: z.ZodType = z.object({ 'due_at': z.number(), 'paid_amount': z.number().int(), 'remaining_amount': z.number().int() }); -export type CapitalConnectFinancingSummaryCurrentRepaymentWindowModel = z.infer; - -export const CapitalConnectFinancingSummaryDetails = z.object({ +export const CapitalConnectFinancingSummaryDetails: z.ZodType = z.object({ 'advance_amount': z.number().int(), 'advance_paid_out_at': z.number(), 'currency': z.string(), @@ -11487,25 +21034,19 @@ export const CapitalConnectFinancingSummaryDetails = z.object({ 'withhold_rate': z.number() }); -export type CapitalConnectFinancingSummaryDetailsModel = z.infer; - -export const CapitalFinancingSummary = z.object({ +export const CapitalFinancingSummary: z.ZodType = z.object({ 'details': z.union([CapitalConnectFinancingSummaryDetails]), 'financing_offer': z.string(), 'object': z.enum(['capital.financing_summary']), 'status': z.enum(['accepted', 'delivered', 'none']) }); -export type CapitalFinancingSummaryModel = z.infer; - -export const CapitalConnectFinancingTransactionDetailsTransaction = z.object({ +export const CapitalConnectFinancingTransactionDetailsTransaction: z.ZodType = z.object({ 'charge': z.string().optional(), 'treasury_transaction': z.string().optional() }); -export type CapitalConnectFinancingTransactionDetailsTransactionModel = z.infer; - -export const CapitalConnectFinancingTransactionDetails = z.object({ +export const CapitalConnectFinancingTransactionDetails: z.ZodType = z.object({ 'advance_amount': z.number().int(), 'currency': z.string(), 'fee_amount': z.number().int(), @@ -11516,9 +21057,7 @@ export const CapitalConnectFinancingTransactionDetails = z.object({ 'transaction': CapitalConnectFinancingTransactionDetailsTransaction.optional() }); -export type CapitalConnectFinancingTransactionDetailsModel = z.infer; - -export const CapitalFinancingTransaction = z.object({ +export const CapitalFinancingTransaction: z.ZodType = z.object({ 'account': z.string(), 'created_at': z.number().int(), 'details': CapitalConnectFinancingTransactionDetails, @@ -11531,145 +21070,101 @@ export const CapitalFinancingTransaction = z.object({ 'user_facing_description': z.string() }); -export type CapitalFinancingTransactionModel = z.infer; - -export const CapitalFinancingTransactionCreated = z.object({ +export const CapitalFinancingTransactionCreated: z.ZodType = z.object({ 'object': CapitalFinancingTransaction }); -export type CapitalFinancingTransactionCreatedModel = z.infer; - -export const CashBalanceFundsAvailable = z.object({ +export const CashBalanceFundsAvailable: z.ZodType = z.object({ 'object': CashBalance }); -export type CashBalanceFundsAvailableModel = z.infer; - -export const ChargeCaptured = z.object({ +export const ChargeCaptured: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeCapturedModel = z.infer; - -export const ChargeDisputeClosed = z.object({ +export const ChargeDisputeClosed: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeClosedModel = z.infer; - -export const ChargeDisputeCreated = z.object({ +export const ChargeDisputeCreated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeCreatedModel = z.infer; - -export const ChargeDisputeFundsReinstated = z.object({ +export const ChargeDisputeFundsReinstated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeFundsReinstatedModel = z.infer; - -export const ChargeDisputeFundsWithdrawn = z.object({ +export const ChargeDisputeFundsWithdrawn: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeFundsWithdrawnModel = z.infer; - -export const ChargeDisputeUpdated = z.object({ +export const ChargeDisputeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Dispute) }); -export type ChargeDisputeUpdatedModel = z.infer; - -export const ChargeExpired = z.object({ +export const ChargeExpired: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeExpiredModel = z.infer; - -export const ChargeFailed = z.object({ +export const ChargeFailed: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeFailedModel = z.infer; - -export const ChargePending = z.object({ +export const ChargePending: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargePendingModel = z.infer; - -export const ChargeRefundUpdated = z.object({ +export const ChargeRefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type ChargeRefundUpdatedModel = z.infer; - -export const ChargeRefunded = z.object({ +export const ChargeRefunded: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeRefundedModel = z.infer; - -export const ChargeSucceeded = z.object({ +export const ChargeSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeSucceededModel = z.infer; - -export const ChargeUpdated = z.object({ +export const ChargeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Charge) }); -export type ChargeUpdatedModel = z.infer; - -export const PaymentPagesCheckoutSessionAdaptivePricing = z.object({ +export const PaymentPagesCheckoutSessionAdaptivePricing: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionAdaptivePricingModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpirationRecovery = z.object({ +export const PaymentPagesCheckoutSessionAfterExpirationRecovery: z.ZodType = z.object({ 'allow_promotion_codes': z.boolean(), 'enabled': z.boolean(), 'expires_at': z.number().int(), 'url': z.string() }); -export type PaymentPagesCheckoutSessionAfterExpirationRecoveryModel = z.infer; - -export const PaymentPagesCheckoutSessionAfterExpiration = z.object({ +export const PaymentPagesCheckoutSessionAfterExpiration: z.ZodType = z.object({ 'recovery': z.union([PaymentPagesCheckoutSessionAfterExpirationRecovery]) }); -export type PaymentPagesCheckoutSessionAfterExpirationModel = z.infer; - -export const PaymentPagesCheckoutSessionAutomaticTax = z.object({ +export const PaymentPagesCheckoutSessionAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), 'provider': z.string(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type PaymentPagesCheckoutSessionAutomaticTaxModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsIcon = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsIcon: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsIconModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettingsLogo = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettingsLogo: z.ZodType = z.object({ 'file': z.string().optional(), 'type': z.enum(['file', 'url']), 'url': z.string().optional() }); -export type PaymentPagesCheckoutSessionBrandingSettingsLogoModel = z.infer; - -export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ +export const PaymentPagesCheckoutSessionBrandingSettings: z.ZodType = z.object({ 'background_color': z.string(), 'border_style': z.enum(['pill', 'rectangular', 'rounded']), 'button_color': z.string(), @@ -11679,23 +21174,17 @@ export const PaymentPagesCheckoutSessionBrandingSettings = z.object({ 'logo': z.union([PaymentPagesCheckoutSessionBrandingSettingsLogo]) }); -export type PaymentPagesCheckoutSessionBrandingSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionCheckoutAddressDetails = z.object({ +export const PaymentPagesCheckoutSessionCheckoutAddressDetails: z.ZodType = z.object({ 'address': Address, 'name': z.string() }); -export type PaymentPagesCheckoutSessionCheckoutAddressDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxId = z.object({ +export const PaymentPagesCheckoutSessionTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type PaymentPagesCheckoutSessionTaxIdModel = z.infer; - -export const PaymentPagesCheckoutSessionCollectedInformation = z.object({ +export const PaymentPagesCheckoutSessionCollectedInformation: z.ZodType = z.object({ 'business_name': z.string(), 'email': z.string().optional(), 'individual_name': z.string(), @@ -11704,79 +21193,59 @@ export const PaymentPagesCheckoutSessionCollectedInformation = z.object({ 'tax_ids': z.array(PaymentPagesCheckoutSessionTaxId).optional() }); -export type PaymentPagesCheckoutSessionCollectedInformationModel = z.infer; - -export const PaymentPagesCheckoutSessionConsent = z.object({ +export const PaymentPagesCheckoutSessionConsent: z.ZodType = z.object({ 'promotions': z.enum(['opt_in', 'opt_out']), 'terms_of_service': z.enum(['accepted']) }); -export type PaymentPagesCheckoutSessionConsentModel = z.infer; - -export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement = z.object({ +export const PaymentPagesCheckoutSessionPaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentPagesCheckoutSessionPaymentMethodReuseAgreementModel = z.infer; - -export const PaymentPagesCheckoutSessionConsentCollection = z.object({ +export const PaymentPagesCheckoutSessionConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentPagesCheckoutSessionPaymentMethodReuseAgreement]), 'promotions': z.enum(['auto', 'none']), 'terms_of_service': z.enum(['none', 'required']) }); -export type PaymentPagesCheckoutSessionConsentCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionCurrencyConversion = z.object({ +export const PaymentPagesCheckoutSessionCurrencyConversion: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'fx_rate': z.string(), 'source_currency': z.string() }); -export type PaymentPagesCheckoutSessionCurrencyConversionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsOption = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsDropdown = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string(), 'options': z.array(PaymentPagesCheckoutSessionCustomFieldsOption), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsDropdownModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsLabel = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string(), 'type': z.enum(['custom']) }); -export type PaymentPagesCheckoutSessionCustomFieldsLabelModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsNumeric = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsNumericModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFieldsText = z.object({ +export const PaymentPagesCheckoutSessionCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int(), 'value': z.string() }); -export type PaymentPagesCheckoutSessionCustomFieldsTextModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomFields = z.object({ +export const PaymentPagesCheckoutSessionCustomFields: z.ZodType = z.object({ 'dropdown': PaymentPagesCheckoutSessionCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentPagesCheckoutSessionCustomFieldsLabel, @@ -11786,24 +21255,18 @@ export const PaymentPagesCheckoutSessionCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentPagesCheckoutSessionCustomFieldsModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomTextPosition = z.object({ +export const PaymentPagesCheckoutSessionCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentPagesCheckoutSessionCustomTextPositionModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomText = z.object({ +export const PaymentPagesCheckoutSessionCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'shipping_address': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'submit': z.union([PaymentPagesCheckoutSessionCustomTextPosition]), 'terms_of_service_acceptance': z.union([PaymentPagesCheckoutSessionCustomTextPosition]) }); -export type PaymentPagesCheckoutSessionCustomTextModel = z.infer; - -export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ +export const PaymentPagesCheckoutSessionCustomerDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'business_name': z.string(), 'email': z.string(), @@ -11814,23 +21277,17 @@ export const PaymentPagesCheckoutSessionCustomerDetails = z.object({ 'tax_ids': z.array(PaymentPagesCheckoutSessionTaxId) }); -export type PaymentPagesCheckoutSessionCustomerDetailsModel = z.infer; - -export const PaymentPagesCheckoutSessionDiscount = z.object({ +export const PaymentPagesCheckoutSessionDiscount: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]) }); -export type PaymentPagesCheckoutSessionDiscountModel = z.infer; - -export const InvoiceSettingCheckoutRenderingOptions = z.object({ +export const InvoiceSettingCheckoutRenderingOptions: z.ZodType = z.object({ 'amount_tax_display': z.string(), 'template': z.string() }); -export type InvoiceSettingCheckoutRenderingOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ +export const PaymentPagesCheckoutSessionInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'custom_fields': z.array(InvoiceSettingCustomField), 'description': z.string(), @@ -11840,39 +21297,29 @@ export const PaymentPagesCheckoutSessionInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]) }); -export type PaymentPagesCheckoutSessionInvoiceSettingsModel = z.infer; - -export const PaymentPagesCheckoutSessionInvoiceCreation = z.object({ +export const PaymentPagesCheckoutSessionInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': PaymentPagesCheckoutSessionInvoiceSettings }); -export type PaymentPagesCheckoutSessionInvoiceCreationModel = z.infer; - -export const LineItemsAdjustableQuantity = z.object({ +export const LineItemsAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type LineItemsAdjustableQuantityModel = z.infer; - -export const LineItemsDiscountAmount = z.object({ +export const LineItemsDiscountAmount: z.ZodType = z.object({ 'amount': z.number().int(), 'discount': z.lazy(() => Discount) }); -export type LineItemsDiscountAmountModel = z.infer; - -export const LineItemsDisplay = z.object({ +export const LineItemsDisplay: z.ZodType = z.object({ 'description': z.string(), 'images': z.array(z.string()), 'name': z.string() }); -export type LineItemsDisplayModel = z.infer; - -export const Item = z.object({ +export const Item: z.ZodType = z.object({ 'adjustable_quantity': z.union([LineItemsAdjustableQuantity]).optional(), 'amount_discount': z.number().int(), 'amount_subtotal': z.number().int(), @@ -11892,124 +21339,90 @@ export const Item = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type ItemModel = z.infer; - -export const PaymentPagesCheckoutSessionBusinessName = z.object({ +export const PaymentPagesCheckoutSessionBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionBusinessNameModel = z.infer; - -export const PaymentPagesCheckoutSessionIndividualName = z.object({ +export const PaymentPagesCheckoutSessionIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentPagesCheckoutSessionIndividualNameModel = z.infer; - -export const PaymentPagesCheckoutSessionNameCollection = z.object({ +export const PaymentPagesCheckoutSessionNameCollection: z.ZodType = z.object({ 'business': PaymentPagesCheckoutSessionBusinessName.optional(), 'individual': PaymentPagesCheckoutSessionIndividualName.optional() }); -export type PaymentPagesCheckoutSessionNameCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity = z.object({ +export const PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PaymentPagesCheckoutSessionOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentPagesCheckoutSessionOptionalItem = z.object({ +export const PaymentPagesCheckoutSessionOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentPagesCheckoutSessionOptionalItemAdjustableQuantity]), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentPagesCheckoutSessionOptionalItemModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorConfirmationPage = z.object({ +export const PaymentLinksResourceCompletionBehaviorConfirmationPage: z.ZodType = z.object({ 'custom_message': z.string() }); -export type PaymentLinksResourceCompletionBehaviorConfirmationPageModel = z.infer; - -export const PaymentLinksResourceCompletionBehaviorRedirect = z.object({ +export const PaymentLinksResourceCompletionBehaviorRedirect: z.ZodType = z.object({ 'url': z.string() }); -export type PaymentLinksResourceCompletionBehaviorRedirectModel = z.infer; - -export const PaymentLinksResourceAfterCompletion = z.object({ +export const PaymentLinksResourceAfterCompletion: z.ZodType = z.object({ 'hosted_confirmation': PaymentLinksResourceCompletionBehaviorConfirmationPage.optional(), 'redirect': PaymentLinksResourceCompletionBehaviorRedirect.optional(), 'type': z.enum(['hosted_confirmation', 'redirect']) }); -export type PaymentLinksResourceAfterCompletionModel = z.infer; - -export const PaymentLinksResourceAutomaticTax = z.object({ +export const PaymentLinksResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]) }); -export type PaymentLinksResourceAutomaticTaxModel = z.infer; - -export const PaymentLinksResourcePaymentMethodReuseAgreement = z.object({ +export const PaymentLinksResourcePaymentMethodReuseAgreement: z.ZodType = z.object({ 'position': z.enum(['auto', 'hidden']) }); -export type PaymentLinksResourcePaymentMethodReuseAgreementModel = z.infer; - -export const PaymentLinksResourceConsentCollection = z.object({ +export const PaymentLinksResourceConsentCollection: z.ZodType = z.object({ 'payment_method_reuse_agreement': z.union([PaymentLinksResourcePaymentMethodReuseAgreement]), 'promotions': z.enum(['auto', 'none']), 'terms_of_service': z.enum(['none', 'required']) }); -export type PaymentLinksResourceConsentCollectionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdownOption = z.object({ +export const PaymentLinksResourceCustomFieldsDropdownOption: z.ZodType = z.object({ 'label': z.string(), 'value': z.string() }); -export type PaymentLinksResourceCustomFieldsDropdownOptionModel = z.infer; - -export const PaymentLinksResourceCustomFieldsDropdown = z.object({ +export const PaymentLinksResourceCustomFieldsDropdown: z.ZodType = z.object({ 'default_value': z.string(), 'options': z.array(PaymentLinksResourceCustomFieldsDropdownOption) }); -export type PaymentLinksResourceCustomFieldsDropdownModel = z.infer; - -export const PaymentLinksResourceCustomFieldsLabel = z.object({ +export const PaymentLinksResourceCustomFieldsLabel: z.ZodType = z.object({ 'custom': z.string(), 'type': z.enum(['custom']) }); -export type PaymentLinksResourceCustomFieldsLabelModel = z.infer; - -export const PaymentLinksResourceCustomFieldsNumeric = z.object({ +export const PaymentLinksResourceCustomFieldsNumeric: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int() }); -export type PaymentLinksResourceCustomFieldsNumericModel = z.infer; - -export const PaymentLinksResourceCustomFieldsText = z.object({ +export const PaymentLinksResourceCustomFieldsText: z.ZodType = z.object({ 'default_value': z.string(), 'maximum_length': z.number().int(), 'minimum_length': z.number().int() }); -export type PaymentLinksResourceCustomFieldsTextModel = z.infer; - -export const PaymentLinksResourceCustomFields = z.object({ +export const PaymentLinksResourceCustomFields: z.ZodType = z.object({ 'dropdown': PaymentLinksResourceCustomFieldsDropdown.optional(), 'key': z.string(), 'label': PaymentLinksResourceCustomFieldsLabel, @@ -12019,24 +21432,18 @@ export const PaymentLinksResourceCustomFields = z.object({ 'type': z.enum(['dropdown', 'numeric', 'text']) }); -export type PaymentLinksResourceCustomFieldsModel = z.infer; - -export const PaymentLinksResourceCustomTextPosition = z.object({ +export const PaymentLinksResourceCustomTextPosition: z.ZodType = z.object({ 'message': z.string() }); -export type PaymentLinksResourceCustomTextPositionModel = z.infer; - -export const PaymentLinksResourceCustomText = z.object({ +export const PaymentLinksResourceCustomText: z.ZodType = z.object({ 'after_submit': z.union([PaymentLinksResourceCustomTextPosition]), 'shipping_address': z.union([PaymentLinksResourceCustomTextPosition]), 'submit': z.union([PaymentLinksResourceCustomTextPosition]), 'terms_of_service_acceptance': z.union([PaymentLinksResourceCustomTextPosition]) }); -export type PaymentLinksResourceCustomTextModel = z.infer; - -export const PaymentLinksResourceInvoiceSettings = z.object({ +export const PaymentLinksResourceInvoiceSettings: z.ZodType = z.object({ 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), 'custom_fields': z.array(InvoiceSettingCustomField), 'description': z.string(), @@ -12046,53 +21453,39 @@ export const PaymentLinksResourceInvoiceSettings = z.object({ 'rendering_options': z.union([InvoiceSettingCheckoutRenderingOptions]) }); -export type PaymentLinksResourceInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceInvoiceCreation = z.object({ +export const PaymentLinksResourceInvoiceCreation: z.ZodType = z.object({ 'enabled': z.boolean(), 'invoice_data': z.union([PaymentLinksResourceInvoiceSettings]) }); -export type PaymentLinksResourceInvoiceCreationModel = z.infer; - -export const PaymentLinksResourceBusinessName = z.object({ +export const PaymentLinksResourceBusinessName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceBusinessNameModel = z.infer; - -export const PaymentLinksResourceIndividualName = z.object({ +export const PaymentLinksResourceIndividualName: z.ZodType = z.object({ 'enabled': z.boolean(), 'optional': z.boolean() }); -export type PaymentLinksResourceIndividualNameModel = z.infer; - -export const PaymentLinksResourceNameCollection = z.object({ +export const PaymentLinksResourceNameCollection: z.ZodType = z.object({ 'business': PaymentLinksResourceBusinessName.optional(), 'individual': PaymentLinksResourceIndividualName.optional() }); -export type PaymentLinksResourceNameCollectionModel = z.infer; - -export const PaymentLinksResourceOptionalItemAdjustableQuantity = z.object({ +export const PaymentLinksResourceOptionalItemAdjustableQuantity: z.ZodType = z.object({ 'enabled': z.boolean(), 'maximum': z.number().int(), 'minimum': z.number().int() }); -export type PaymentLinksResourceOptionalItemAdjustableQuantityModel = z.infer; - -export const PaymentLinksResourceOptionalItem = z.object({ +export const PaymentLinksResourceOptionalItem: z.ZodType = z.object({ 'adjustable_quantity': z.union([PaymentLinksResourceOptionalItemAdjustableQuantity]), 'price': z.string(), 'quantity': z.number().int() }); -export type PaymentLinksResourceOptionalItemModel = z.infer; - -export const PaymentLinksResourcePaymentIntentData = z.object({ +export const PaymentLinksResourcePaymentIntentData: z.ZodType = z.object({ 'capture_method': z.enum(['automatic', 'automatic_async', 'manual']), 'description': z.string(), 'metadata': z.record(z.string(), z.string()), @@ -12102,47 +21495,33 @@ export const PaymentLinksResourcePaymentIntentData = z.object({ 'transfer_group': z.string() }); -export type PaymentLinksResourcePaymentIntentDataModel = z.infer; - -export const PaymentLinksResourcePhoneNumberCollection = z.object({ +export const PaymentLinksResourcePhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentLinksResourcePhoneNumberCollectionModel = z.infer; - -export const PaymentLinksResourceCompletedSessions = z.object({ +export const PaymentLinksResourceCompletedSessions: z.ZodType = z.object({ 'count': z.number().int(), 'limit': z.number().int() }); -export type PaymentLinksResourceCompletedSessionsModel = z.infer; - -export const PaymentLinksResourceRestrictions = z.object({ +export const PaymentLinksResourceRestrictions: z.ZodType = z.object({ 'completed_sessions': PaymentLinksResourceCompletedSessions }); -export type PaymentLinksResourceRestrictionsModel = z.infer; - -export const PaymentLinksResourceShippingAddressCollection = z.object({ +export const PaymentLinksResourceShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentLinksResourceShippingAddressCollectionModel = z.infer; - -export const PaymentLinksResourceShippingOption = z.object({ +export const PaymentLinksResourceShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentLinksResourceShippingOptionModel = z.infer; - -export const PaymentLinksResourceSubscriptionDataInvoiceSettings = z.object({ +export const PaymentLinksResourceSubscriptionDataInvoiceSettings: z.ZodType = z.object({ 'issuer': z.lazy(() => ConnectAccountReference) }); -export type PaymentLinksResourceSubscriptionDataInvoiceSettingsModel = z.infer; - -export const PaymentLinksResourceSubscriptionData = z.object({ +export const PaymentLinksResourceSubscriptionData: z.ZodType = z.object({ 'description': z.string(), 'invoice_settings': PaymentLinksResourceSubscriptionDataInvoiceSettings, 'metadata': z.record(z.string(), z.string()), @@ -12150,23 +21529,17 @@ export const PaymentLinksResourceSubscriptionData = z.object({ 'trial_settings': z.union([SubscriptionsTrialsResourceTrialSettings]) }); -export type PaymentLinksResourceSubscriptionDataModel = z.infer; - -export const PaymentLinksResourceTaxIdCollection = z.object({ +export const PaymentLinksResourceTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentLinksResourceTaxIdCollectionModel = z.infer; - -export const PaymentLinksResourceTransferData = z.object({ +export const PaymentLinksResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type PaymentLinksResourceTransferDataModel = z.infer; - -export const PaymentLink = z.object({ +export const PaymentLink: z.ZodType = z.object({ 'active': z.boolean(), 'after_completion': PaymentLinksResourceAfterCompletion, 'allow_promotion_codes': z.boolean(), @@ -12209,9 +21582,7 @@ export const PaymentLink = z.object({ 'url': z.string() }); -export type PaymentLinkModel = z.infer; - -export const CheckoutAcssDebitMandateOptions = z.object({ +export const CheckoutAcssDebitMandateOptions: z.ZodType = z.object({ 'custom_mandate_url': z.string().optional(), 'default_for': z.array(z.enum(['invoice', 'subscription'])).optional(), 'interval_description': z.string(), @@ -12219,9 +21590,7 @@ export const CheckoutAcssDebitMandateOptions = z.object({ 'transaction_type': z.enum(['business', 'personal']) }); -export type CheckoutAcssDebitMandateOptionsModel = z.infer; - -export const CheckoutAcssDebitPaymentMethodOptions = z.object({ +export const CheckoutAcssDebitPaymentMethodOptions: z.ZodType = z.object({ 'currency': z.enum(['cad', 'usd']).optional(), 'mandate_options': CheckoutAcssDebitMandateOptions.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), @@ -12229,94 +21598,66 @@ export const CheckoutAcssDebitPaymentMethodOptions = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type CheckoutAcssDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutAffirmPaymentMethodOptions = z.object({ +export const CheckoutAffirmPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAffirmPaymentMethodOptionsModel = z.infer; - -export const CheckoutAfterpayClearpayPaymentMethodOptions = z.object({ +export const CheckoutAfterpayClearpayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAfterpayClearpayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlipayPaymentMethodOptions = z.object({ +export const CheckoutAlipayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutAlipayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAlmaPaymentMethodOptions = z.object({ +export const CheckoutAlmaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutAlmaPaymentMethodOptionsModel = z.infer; - -export const CheckoutAmazonPayPaymentMethodOptions = z.object({ +export const CheckoutAmazonPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutAmazonPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutAuBecsDebitPaymentMethodOptions = z.object({ +export const CheckoutAuBecsDebitPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional(), 'target_date': z.string().optional() }); -export type CheckoutAuBecsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsBacsDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsBacsDebitModel = z.infer; - -export const CheckoutBacsDebitPaymentMethodOptions = z.object({ +export const CheckoutBacsDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsBacsDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutBacsDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutBancontactPaymentMethodOptions = z.object({ +export const CheckoutBancontactPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutBancontactPaymentMethodOptionsModel = z.infer; - -export const CheckoutBilliePaymentMethodOptions = z.object({ +export const CheckoutBilliePaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutBilliePaymentMethodOptionsModel = z.infer; - -export const CheckoutBoletoPaymentMethodOptions = z.object({ +export const CheckoutBoletoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutBoletoPaymentMethodOptionsModel = z.infer; - -export const CheckoutCardInstallmentsOptions = z.object({ +export const CheckoutCardInstallmentsOptions: z.ZodType = z.object({ 'enabled': z.boolean().optional() }); -export type CheckoutCardInstallmentsOptionsModel = z.infer; - -export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions = z.object({ +export const PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictions: z.ZodType = z.object({ 'brands_blocked': z.array(z.enum(['american_express', 'discover_global_network', 'mastercard', 'visa'])).optional() }); -export type PaymentPagesPrivateCardPaymentMethodOptionsResourceRestrictionsModel = z.infer; - -export const CheckoutCardPaymentMethodOptions = z.object({ +export const CheckoutCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'installments': CheckoutCardInstallmentsOptions.optional(), 'request_decremental_authorization': z.enum(['if_available', 'never']).optional(), @@ -12331,142 +21672,100 @@ export const CheckoutCardPaymentMethodOptions = z.object({ 'statement_descriptor_suffix_kanji': z.string().optional() }); -export type CheckoutCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutCashappPaymentMethodOptions = z.object({ +export const CheckoutCashappPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCashappPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions = z.object({ +export const CheckoutCustomerBalanceBankTransferPaymentMethodOptions: z.ZodType = z.object({ 'eu_bank_transfer': PaymentMethodOptionsCustomerBalanceEuBankAccount.optional(), 'requested_address_types': z.array(z.enum(['aba', 'iban', 'sepa', 'sort_code', 'spei', 'swift', 'zengin'])).optional(), 'type': z.enum(['eu_bank_transfer', 'gb_bank_transfer', 'jp_bank_transfer', 'mx_bank_transfer', 'us_bank_transfer']) }); -export type CheckoutCustomerBalanceBankTransferPaymentMethodOptionsModel = z.infer; - -export const CheckoutCustomerBalancePaymentMethodOptions = z.object({ +export const CheckoutCustomerBalancePaymentMethodOptions: z.ZodType = z.object({ 'bank_transfer': CheckoutCustomerBalanceBankTransferPaymentMethodOptions.optional(), 'funding_type': z.enum(['bank_transfer']), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutCustomerBalancePaymentMethodOptionsModel = z.infer; - -export const CheckoutEpsPaymentMethodOptions = z.object({ +export const CheckoutEpsPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutEpsPaymentMethodOptionsModel = z.infer; - -export const CheckoutFpxPaymentMethodOptions = z.object({ +export const CheckoutFpxPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutFpxPaymentMethodOptionsModel = z.infer; - -export const CheckoutGiropayPaymentMethodOptions = z.object({ +export const CheckoutGiropayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGiropayPaymentMethodOptionsModel = z.infer; - -export const CheckoutGrabPayPaymentMethodOptions = z.object({ +export const CheckoutGrabPayPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutGrabPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutIdealPaymentMethodOptions = z.object({ +export const CheckoutIdealPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutIdealPaymentMethodOptionsModel = z.infer; - -export const CheckoutKakaoPayPaymentMethodOptions = z.object({ +export const CheckoutKakaoPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKakaoPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutKlarnaPaymentMethodOptions = z.object({ +export const CheckoutKlarnaPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type CheckoutKlarnaPaymentMethodOptionsModel = z.infer; - -export const CheckoutKonbiniPaymentMethodOptions = z.object({ +export const CheckoutKonbiniPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutKonbiniPaymentMethodOptionsModel = z.infer; - -export const CheckoutKrCardPaymentMethodOptions = z.object({ +export const CheckoutKrCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutKrCardPaymentMethodOptionsModel = z.infer; - -export const CheckoutLinkPaymentMethodOptions = z.object({ +export const CheckoutLinkPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutLinkPaymentMethodOptionsModel = z.infer; - -export const CheckoutMobilepayPaymentMethodOptions = z.object({ +export const CheckoutMobilepayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMobilepayPaymentMethodOptionsModel = z.infer; - -export const CheckoutMultibancoPaymentMethodOptions = z.object({ +export const CheckoutMultibancoPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutMultibancoPaymentMethodOptionsModel = z.infer; - -export const CheckoutNaverPayPaymentMethodOptions = z.object({ +export const CheckoutNaverPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutNaverPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutOxxoPaymentMethodOptions = z.object({ +export const CheckoutOxxoPaymentMethodOptions: z.ZodType = z.object({ 'expires_after_days': z.number().int(), 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutOxxoPaymentMethodOptionsModel = z.infer; - -export const CheckoutP24PaymentMethodOptions = z.object({ +export const CheckoutP24PaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutP24PaymentMethodOptionsModel = z.infer; - -export const CheckoutPaycoPaymentMethodOptions = z.object({ +export const CheckoutPaycoPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutPaycoPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaynowPaymentMethodOptions = z.object({ +export const CheckoutPaynowPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutPaynowPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaypalPaymentMethodOptions = z.object({ +export const CheckoutPaypalPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'preferred_locale': z.string(), 'reference': z.string(), @@ -12474,9 +21773,7 @@ export const CheckoutPaypalPaymentMethodOptions = z.object({ 'subsellers': z.array(z.string()).optional() }); -export type CheckoutPaypalPaymentMethodOptionsModel = z.infer; - -export const MandateOptionsPayto = z.object({ +export const MandateOptionsPayto: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_type': z.enum(['fixed', 'maximum']), 'end_date': z.string(), @@ -12486,85 +21783,61 @@ export const MandateOptionsPayto = z.object({ 'start_date': z.string() }); -export type MandateOptionsPaytoModel = z.infer; - -export const CheckoutPaytoPaymentMethodOptions = z.object({ +export const CheckoutPaytoPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': MandateOptionsPayto.optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutPaytoPaymentMethodOptionsModel = z.infer; - -export const CheckoutPixPaymentMethodOptions = z.object({ +export const CheckoutPixPaymentMethodOptions: z.ZodType = z.object({ 'amount_includes_iof': z.enum(['always', 'never']).optional(), 'expires_after_seconds': z.number().int(), 'mandate_options': PaymentMethodOptionsMandateOptionsPix.optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutPixPaymentMethodOptionsModel = z.infer; - -export const CheckoutRevolutPayPaymentMethodOptions = z.object({ +export const CheckoutRevolutPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional(), 'setup_future_usage': z.enum(['none', 'off_session']).optional() }); -export type CheckoutRevolutPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSamsungPayPaymentMethodOptions = z.object({ +export const CheckoutSamsungPayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSamsungPayPaymentMethodOptionsModel = z.infer; - -export const CheckoutSatispayPaymentMethodOptions = z.object({ +export const CheckoutSatispayPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['manual']).optional() }); -export type CheckoutSatispayPaymentMethodOptionsModel = z.infer; - -export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit = z.object({ +export const CheckoutPaymentMethodOptionsMandateOptionsSepaDebit: z.ZodType = z.object({ 'reference_prefix': z.string().optional() }); -export type CheckoutPaymentMethodOptionsMandateOptionsSepaDebitModel = z.infer; - -export const CheckoutSepaDebitPaymentMethodOptions = z.object({ +export const CheckoutSepaDebitPaymentMethodOptions: z.ZodType = z.object({ 'mandate_options': CheckoutPaymentMethodOptionsMandateOptionsSepaDebit.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional() }); -export type CheckoutSepaDebitPaymentMethodOptionsModel = z.infer; - -export const CheckoutSofortPaymentMethodOptions = z.object({ +export const CheckoutSofortPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutSofortPaymentMethodOptionsModel = z.infer; - -export const CheckoutSwishPaymentMethodOptions = z.object({ +export const CheckoutSwishPaymentMethodOptions: z.ZodType = z.object({ 'reference': z.string() }); -export type CheckoutSwishPaymentMethodOptionsModel = z.infer; - -export const CheckoutTwintPaymentMethodOptions = z.object({ +export const CheckoutTwintPaymentMethodOptions: z.ZodType = z.object({ 'setup_future_usage': z.enum(['none']).optional() }); -export type CheckoutTwintPaymentMethodOptionsModel = z.infer; - -export const CheckoutUsBankAccountPaymentMethodOptions = z.object({ +export const CheckoutUsBankAccountPaymentMethodOptions: z.ZodType = z.object({ 'financial_connections': LinkedAccountOptionsCommon.optional(), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional(), 'target_date': z.string().optional(), 'verification_method': z.enum(['automatic', 'instant']).optional() }); -export type CheckoutUsBankAccountPaymentMethodOptionsModel = z.infer; - -export const CheckoutSessionPaymentMethodOptions = z.object({ +export const CheckoutSessionPaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': CheckoutAcssDebitPaymentMethodOptions.optional(), 'affirm': CheckoutAffirmPaymentMethodOptions.optional(), 'afterpay_clearpay': CheckoutAfterpayClearpayPaymentMethodOptions.optional(), @@ -12609,44 +21882,32 @@ export const CheckoutSessionPaymentMethodOptions = z.object({ 'us_bank_account': CheckoutUsBankAccountPaymentMethodOptions.optional() }); -export type CheckoutSessionPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionUpdatePermission = z.object({ +export const PaymentPagesCheckoutSessionUpdatePermission: z.ZodType = z.object({ 'line_items': z.enum(['client_only', 'server_only']).optional(), 'shipping_details': z.enum(['client_only', 'server_only']) }); -export type PaymentPagesCheckoutSessionUpdatePermissionModel = z.infer; - -export const PaymentPagesCheckoutSessionPermissions = z.object({ +export const PaymentPagesCheckoutSessionPermissions: z.ZodType = z.object({ 'update': z.union([PaymentPagesCheckoutSessionUpdatePermission]).optional(), 'update_line_items': z.enum(['client_only', 'server_only']).optional(), 'update_shipping_details': z.enum(['client_only', 'server_only']) }); -export type PaymentPagesCheckoutSessionPermissionsModel = z.infer; - -export const PaymentPagesCheckoutSessionPhoneNumberCollection = z.object({ +export const PaymentPagesCheckoutSessionPhoneNumberCollection: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type PaymentPagesCheckoutSessionPhoneNumberCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions = z.object({ +export const PaymentPagesCheckoutSessionSavedPaymentMethodOptions: z.ZodType = z.object({ 'allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_remove': z.enum(['disabled', 'enabled']), 'payment_method_save': z.enum(['disabled', 'enabled']) }); -export type PaymentPagesCheckoutSessionSavedPaymentMethodOptionsModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingAddressCollection = z.object({ +export const PaymentPagesCheckoutSessionShippingAddressCollection: z.ZodType = z.object({ 'allowed_countries': z.array(z.enum(['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', 'SD', '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'])) }); -export type PaymentPagesCheckoutSessionShippingAddressCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingCost = z.object({ +export const PaymentPagesCheckoutSessionShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -12654,51 +21915,37 @@ export const PaymentPagesCheckoutSessionShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type PaymentPagesCheckoutSessionShippingCostModel = z.infer; - -export const PaymentPagesCheckoutSessionShippingOption = z.object({ +export const PaymentPagesCheckoutSessionShippingOption: z.ZodType = z.object({ 'shipping_amount': z.number().int(), 'shipping_rate': z.union([z.string(), ShippingRate]) }); -export type PaymentPagesCheckoutSessionShippingOptionModel = z.infer; - -export const PaymentPagesCheckoutSessionTaxIdCollection = z.object({ +export const PaymentPagesCheckoutSessionTaxIdCollection: z.ZodType = z.object({ 'enabled': z.boolean(), 'required': z.enum(['if_supported', 'never']) }); -export type PaymentPagesCheckoutSessionTaxIdCollectionModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown = z.object({ +export const PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type PaymentPagesCheckoutSessionTotalDetailsResourceBreakdownModel = z.infer; - -export const PaymentPagesCheckoutSessionTotalDetails = z.object({ +export const PaymentPagesCheckoutSessionTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int(), 'amount_tax': z.number().int(), 'breakdown': PaymentPagesCheckoutSessionTotalDetailsResourceBreakdown.optional() }); -export type PaymentPagesCheckoutSessionTotalDetailsModel = z.infer; - -export const CheckoutLinkWalletOptions = z.object({ +export const CheckoutLinkWalletOptions: z.ZodType = z.object({ 'display': z.enum(['auto', 'never']).optional() }); -export type CheckoutLinkWalletOptionsModel = z.infer; - -export const CheckoutSessionWalletOptions = z.object({ +export const CheckoutSessionWalletOptions: z.ZodType = z.object({ 'link': CheckoutLinkWalletOptions.optional() }); -export type CheckoutSessionWalletOptionsModel = z.infer; - -export const CheckoutSession = z.object({ +export const CheckoutSession: z.ZodType = z.object({ 'adaptive_pricing': z.union([PaymentPagesCheckoutSessionAdaptivePricing]), 'after_expiration': z.union([PaymentPagesCheckoutSessionAfterExpiration]), 'allow_promotion_codes': z.boolean(), @@ -12772,39 +22019,27 @@ export const CheckoutSession = z.object({ 'wallet_options': z.union([CheckoutSessionWalletOptions]) }); -export type CheckoutSessionModel = z.infer; - -export const CheckoutSessionAsyncPaymentFailed = z.object({ +export const CheckoutSessionAsyncPaymentFailed: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionAsyncPaymentFailedModel = z.infer; - -export const CheckoutSessionAsyncPaymentSucceeded = z.object({ +export const CheckoutSessionAsyncPaymentSucceeded: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionAsyncPaymentSucceededModel = z.infer; - -export const CheckoutSessionCompleted = z.object({ +export const CheckoutSessionCompleted: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionCompletedModel = z.infer; - -export const CheckoutSessionExpired = z.object({ +export const CheckoutSessionExpired: z.ZodType = z.object({ 'object': CheckoutSession }); -export type CheckoutSessionExpiredModel = z.infer; - -export const ClimateRemovalsBeneficiary = z.object({ +export const ClimateRemovalsBeneficiary: z.ZodType = z.object({ 'public_name': z.string() }); -export type ClimateRemovalsBeneficiaryModel = z.infer; - -export const ClimateRemovalsLocation = z.object({ +export const ClimateRemovalsLocation: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'latitude': z.number(), @@ -12812,9 +22047,7 @@ export const ClimateRemovalsLocation = z.object({ 'region': z.string() }); -export type ClimateRemovalsLocationModel = z.infer; - -export const ClimateSupplier = z.object({ +export const ClimateSupplier: z.ZodType = z.object({ 'id': z.string(), 'info_url': z.string(), 'livemode': z.boolean(), @@ -12824,9 +22057,7 @@ export const ClimateSupplier = z.object({ 'removal_pathway': z.enum(['biomass_carbon_removal_and_storage', 'direct_air_capture', 'enhanced_weathering']) }); -export type ClimateSupplierModel = z.infer; - -export const ClimateRemovalsOrderDeliveries = z.object({ +export const ClimateRemovalsOrderDeliveries: z.ZodType = z.object({ 'delivered_at': z.number().int(), 'location': z.union([ClimateRemovalsLocation]), 'metric_tons': z.string(), @@ -12834,17 +22065,13 @@ export const ClimateRemovalsOrderDeliveries = z.object({ 'supplier': ClimateSupplier }); -export type ClimateRemovalsOrderDeliveriesModel = z.infer; - -export const ClimateRemovalsProductsPrice = z.object({ +export const ClimateRemovalsProductsPrice: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int() }); -export type ClimateRemovalsProductsPriceModel = z.infer; - -export const ClimateProduct = z.object({ +export const ClimateProduct: z.ZodType = z.object({ 'created': z.number().int(), 'current_prices_per_metric_ton': z.record(z.string(), ClimateRemovalsProductsPrice), 'delivery_year': z.number().int(), @@ -12856,9 +22083,7 @@ export const ClimateProduct = z.object({ 'suppliers': z.array(ClimateSupplier) }); -export type ClimateProductModel = z.infer; - -export const ClimateOrder = z.object({ +export const ClimateOrder: z.ZodType = z.object({ 'amount_fees': z.number().int(), 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), @@ -12883,90 +22108,62 @@ export const ClimateOrder = z.object({ 'status': z.enum(['awaiting_funds', 'canceled', 'confirmed', 'delivered', 'open']) }); -export type ClimateOrderModel = z.infer; - -export const ClimateOrderCanceled = z.object({ +export const ClimateOrderCanceled: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderCanceledModel = z.infer; - -export const ClimateOrderCreated = z.object({ +export const ClimateOrderCreated: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderCreatedModel = z.infer; - -export const ClimateOrderDelayed = z.object({ +export const ClimateOrderDelayed: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderDelayedModel = z.infer; - -export const ClimateOrderDelivered = z.object({ +export const ClimateOrderDelivered: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderDeliveredModel = z.infer; - -export const ClimateOrderProductSubstituted = z.object({ +export const ClimateOrderProductSubstituted: z.ZodType = z.object({ 'object': ClimateOrder }); -export type ClimateOrderProductSubstitutedModel = z.infer; - -export const ClimateProductCreated = z.object({ +export const ClimateProductCreated: z.ZodType = z.object({ 'object': ClimateProduct }); -export type ClimateProductCreatedModel = z.infer; - -export const ClimateProductPricingUpdated = z.object({ +export const ClimateProductPricingUpdated: z.ZodType = z.object({ 'object': ClimateProduct }); -export type ClimateProductPricingUpdatedModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline: z.ZodType = z.object({ 'ip_address': z.string(), 'user_agent': z.string() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnlineModel = z.infer; - -export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance = z.object({ +export const ConfirmationTokensResourceMandateDataResourceCustomerAcceptance: z.ZodType = z.object({ 'online': z.union([ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceResourceOnline]), 'type': z.string() }); -export type ConfirmationTokensResourceMandateDataResourceCustomerAcceptanceModel = z.infer; - -export const ConfirmationTokensResourceMandateData = z.object({ +export const ConfirmationTokensResourceMandateData: z.ZodType = z.object({ 'customer_acceptance': ConfirmationTokensResourceMandateDataResourceCustomerAcceptance }); -export type ConfirmationTokensResourceMandateDataModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment: z.ZodType = z.object({ 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallmentModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptionsResourceCard: z.ZodType = z.object({ 'cvc_token': z.string(), 'installments': ConfirmationTokensResourcePaymentMethodOptionsResourceCardResourceInstallment.optional() }); -export type ConfirmationTokensResourcePaymentMethodOptionsResourceCardModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodOptions = z.object({ +export const ConfirmationTokensResourcePaymentMethodOptions: z.ZodType = z.object({ 'card': z.union([ConfirmationTokensResourcePaymentMethodOptionsResourceCard]) }); -export type ConfirmationTokensResourcePaymentMethodOptionsModel = z.infer; - -export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ +export const ConfirmationTokensResourcePaymentMethodPreview: z.ZodType = z.object({ 'acss_debit': PaymentMethodAcssDebit.optional(), 'affirm': PaymentMethodAffirm.optional(), 'afterpay_clearpay': PaymentMethodAfterpayClearpay.optional(), @@ -13033,17 +22230,13 @@ export const ConfirmationTokensResourcePaymentMethodPreview = z.object({ 'zip': PaymentMethodZip.optional() }); -export type ConfirmationTokensResourcePaymentMethodPreviewModel = z.infer; - -export const ConfirmationTokensResourceShipping = z.object({ +export const ConfirmationTokensResourceShipping: z.ZodType = z.object({ 'address': Address, 'name': z.string(), 'phone': z.string() }); -export type ConfirmationTokensResourceShippingModel = z.infer; - -export const ConfirmationToken = z.object({ +export const ConfirmationToken: z.ZodType = z.object({ 'created': z.number().int(), 'expires_at': z.number().int(), 'id': z.string(), @@ -13060,23 +22253,17 @@ export const ConfirmationToken = z.object({ 'use_stripe_sdk': z.boolean() }); -export type ConfirmationTokenModel = z.infer; - -export const CountrySpecVerificationFieldDetails = z.object({ +export const CountrySpecVerificationFieldDetails: z.ZodType = z.object({ 'additional': z.array(z.string()), 'minimum': z.array(z.string()) }); -export type CountrySpecVerificationFieldDetailsModel = z.infer; - -export const CountrySpecVerificationFields = z.object({ +export const CountrySpecVerificationFields: z.ZodType = z.object({ 'company': CountrySpecVerificationFieldDetails, 'individual': CountrySpecVerificationFieldDetails }); -export type CountrySpecVerificationFieldsModel = z.infer; - -export const CountrySpec = z.object({ +export const CountrySpec: z.ZodType = z.object({ 'default_currency': z.string(), 'id': z.string(), 'object': z.enum(['country_spec']), @@ -13087,26 +22274,18 @@ export const CountrySpec = z.object({ 'verification_fields': CountrySpecVerificationFields }); -export type CountrySpecModel = z.infer; - -export const CouponCreated = z.object({ +export const CouponCreated: z.ZodType = z.object({ 'object': Coupon }); -export type CouponCreatedModel = z.infer; - -export const CouponDeleted = z.object({ +export const CouponDeleted: z.ZodType = z.object({ 'object': Coupon }); -export type CouponDeletedModel = z.infer; - -export const CouponUpdated = z.object({ +export const CouponUpdated: z.ZodType = z.object({ 'object': Coupon }); -export type CouponUpdatedModel = z.infer; - export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'checkout_session': z.union([z.string(), CheckoutSession]), @@ -13125,16 +22304,14 @@ export const CustomerBalanceTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'credit_balance_transaction': z.union([z.string(), z.lazy(() => BillingCreditBalanceTransaction)]).optional(), 'discount': z.union([z.string(), z.lazy(() => Discount), z.lazy(() => DeletedDiscount)]).optional(), 'type': z.enum(['credit_balance_transaction', 'discount']) }); -export type CreditNotesPretaxCreditAmountModel = z.infer; - -export const CreditNoteLineItem = z.object({ +export const CreditNoteLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string(), 'discount_amount': z.number().int(), @@ -13153,24 +22330,18 @@ export const CreditNoteLineItem = z.object({ 'unit_amount_decimal': z.string() }); -export type CreditNoteLineItemModel = z.infer; - -export const CreditNotesPaymentRecordRefund = z.object({ +export const CreditNotesPaymentRecordRefund: z.ZodType = z.object({ 'payment_record': z.string(), 'refund_group': z.string() }); -export type CreditNotesPaymentRecordRefundModel = z.infer; - -export const CreditNoteRefund = z.object({ +export const CreditNoteRefund: z.ZodType = z.object({ 'amount_refunded': z.number().int(), 'payment_record_refund': z.union([CreditNotesPaymentRecordRefund]), 'refund': z.union([z.string(), z.lazy(() => Refund)]), 'type': z.enum(['payment_record_refund', 'refund']) }); -export type CreditNoteRefundModel = z.infer; - export const CreditNote: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_shipping': z.number().int(), @@ -13213,201 +22384,137 @@ export const CreditNote: z.ZodType = z.object({ 'voided_at': z.number().int() }); -export const CreditNoteCreated = z.object({ +export const CreditNoteCreated: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteCreatedModel = z.infer; - -export const CreditNoteUpdated = z.object({ +export const CreditNoteUpdated: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteUpdatedModel = z.infer; - -export const CreditNoteVoided = z.object({ +export const CreditNoteVoided: z.ZodType = z.object({ 'object': z.lazy(() => CreditNote) }); -export type CreditNoteVoidedModel = z.infer; - -export const CustomerCreated = z.object({ +export const CustomerCreated: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerCreatedModel = z.infer; - -export const CustomerDeleted = z.object({ +export const CustomerDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerDeletedModel = z.infer; - -export const CustomerDiscountCreated = z.object({ +export const CustomerDiscountCreated: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountCreatedModel = z.infer; - -export const CustomerDiscountDeleted = z.object({ +export const CustomerDiscountDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountDeletedModel = z.infer; - -export const CustomerDiscountUpdated = z.object({ +export const CustomerDiscountUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Discount) }); -export type CustomerDiscountUpdatedModel = z.infer; - -export const CustomerSourceCreated = z.object({ +export const CustomerSourceCreated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceCreatedModel = z.infer; - -export const CustomerSourceDeleted = z.object({ +export const CustomerSourceDeleted: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceDeletedModel = z.infer; - -export const CustomerSourceExpiring = z.object({ +export const CustomerSourceExpiring: z.ZodType = z.object({ 'object': z.union([z.lazy(() => Card), Source]) }); -export type CustomerSourceExpiringModel = z.infer; - -export const CustomerSourceUpdated = z.object({ +export const CustomerSourceUpdated: z.ZodType = z.object({ 'object': z.union([z.lazy(() => BankAccount), z.lazy(() => Card), Source]) }); -export type CustomerSourceUpdatedModel = z.infer; - -export const CustomerSubscriptionCollectionPaused = z.object({ +export const CustomerSubscriptionCollectionPaused: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionCollectionPausedModel = z.infer; - -export const CustomerSubscriptionCollectionResumed = z.object({ +export const CustomerSubscriptionCollectionResumed: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionCollectionResumedModel = z.infer; - -export const CustomerSubscriptionCreated = z.object({ +export const CustomerSubscriptionCreated: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionCreatedModel = z.infer; - -export const CustomerSubscriptionCustomEvent = z.object({ +export const CustomerSubscriptionCustomEvent: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionCustomEventModel = z.infer; - -export const CustomerSubscriptionDeleted = z.object({ +export const CustomerSubscriptionDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionDeletedModel = z.infer; - -export const CustomerSubscriptionPaused = z.object({ +export const CustomerSubscriptionPaused: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPausedModel = z.infer; - -export const CustomerSubscriptionPendingUpdateApplied = z.object({ +export const CustomerSubscriptionPendingUpdateApplied: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPendingUpdateAppliedModel = z.infer; - -export const CustomerSubscriptionPendingUpdateExpired = z.object({ +export const CustomerSubscriptionPendingUpdateExpired: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPendingUpdateExpiredModel = z.infer; - -export const CustomerSubscriptionPriceMigrationFailed = z.object({ +export const CustomerSubscriptionPriceMigrationFailed: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionPriceMigrationFailedModel = z.infer; - -export const CustomerSubscriptionResumed = z.object({ +export const CustomerSubscriptionResumed: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionResumedModel = z.infer; - -export const CustomerSubscriptionTrialWillEnd = z.object({ +export const CustomerSubscriptionTrialWillEnd: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionTrialWillEndModel = z.infer; - -export const CustomerSubscriptionUpdated = z.object({ +export const CustomerSubscriptionUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Subscription) }); -export type CustomerSubscriptionUpdatedModel = z.infer; - -export const CustomerTaxIdCreated = z.object({ +export const CustomerTaxIdCreated: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdCreatedModel = z.infer; - -export const CustomerTaxIdDeleted = z.object({ +export const CustomerTaxIdDeleted: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdDeletedModel = z.infer; - -export const CustomerTaxIdUpdated = z.object({ +export const CustomerTaxIdUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TaxId) }); -export type CustomerTaxIdUpdatedModel = z.infer; - -export const CustomerUpdated = z.object({ +export const CustomerUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Customer) }); -export type CustomerUpdatedModel = z.infer; - -export const CustomerCashBalanceTransactionCreated = z.object({ +export const CustomerCashBalanceTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => CustomerCashBalanceTransaction) }); -export type CustomerCashBalanceTransactionCreatedModel = z.infer; - -export const CustomerSessionResourceComponentsResourceBuyButton = z.object({ +export const CustomerSessionResourceComponentsResourceBuyButton: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourceBuyButtonModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_remove': z.enum(['disabled', 'enabled']) }); -export type CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceCustomerSheet = z.object({ +export const CustomerSessionResourceComponentsResourceCustomerSheet: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourceCustomerSheetModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_redisplay': z.enum(['disabled', 'enabled']), 'payment_method_remove': z.enum(['disabled', 'enabled']), @@ -13415,16 +22522,12 @@ export const CustomerSessionResourceComponentsResourceMobilePaymentElementResour 'payment_method_save_allow_redisplay_override': z.enum(['always', 'limited', 'unspecified']) }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourceMobilePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourceMobilePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourceMobilePaymentElementResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourceMobilePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures: z.ZodType = z.object({ 'payment_method_allow_redisplay_filters': z.array(z.enum(['always', 'limited', 'unspecified'])), 'payment_method_redisplay': z.enum(['disabled', 'enabled']), 'payment_method_redisplay_limit': z.number().int(), @@ -13433,36 +22536,26 @@ export const CustomerSessionResourceComponentsResourcePaymentElementResourceFeat 'payment_method_save_usage': z.enum(['off_session', 'on_session']) }); -export type CustomerSessionResourceComponentsResourcePaymentElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePaymentElement = z.object({ +export const CustomerSessionResourceComponentsResourcePaymentElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures]) }); -export type CustomerSessionResourceComponentsResourcePaymentElementModel = z.infer; - -export const CustomerSessionResourceComponentsResourcePricingTable = z.object({ +export const CustomerSessionResourceComponentsResourcePricingTable: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type CustomerSessionResourceComponentsResourcePricingTableModel = z.infer; - -export const CustomerSessionResourceTaxIdElementResourceFeatures = z.object({ +export const CustomerSessionResourceTaxIdElementResourceFeatures: z.ZodType = z.object({ 'tax_id_redisplay': z.enum(['disabled', 'enabled']), 'tax_id_save': z.enum(['disabled', 'enabled']) }); -export type CustomerSessionResourceTaxIdElementResourceFeaturesModel = z.infer; - -export const CustomerSessionResourceTaxIdElement = z.object({ +export const CustomerSessionResourceTaxIdElement: z.ZodType = z.object({ 'enabled': z.boolean(), 'features': z.union([CustomerSessionResourceTaxIdElementResourceFeatures]) }); -export type CustomerSessionResourceTaxIdElementModel = z.infer; - -export const CustomerSessionResourceComponents = z.object({ +export const CustomerSessionResourceComponents: z.ZodType = z.object({ 'buy_button': CustomerSessionResourceComponentsResourceBuyButton, 'customer_sheet': CustomerSessionResourceComponentsResourceCustomerSheet, 'mobile_payment_element': CustomerSessionResourceComponentsResourceMobilePaymentElement, @@ -13471,9 +22564,7 @@ export const CustomerSessionResourceComponents = z.object({ 'tax_id_element': CustomerSessionResourceTaxIdElement.optional() }); -export type CustomerSessionResourceComponentsModel = z.infer; - -export const CustomerSession = z.object({ +export const CustomerSession: z.ZodType = z.object({ 'client_secret': z.string(), 'components': CustomerSessionResourceComponents.optional(), 'created': z.number().int(), @@ -13484,121 +22575,91 @@ export const CustomerSession = z.object({ 'object': z.enum(['customer_session']) }); -export type CustomerSessionModel = z.infer; - -export const DeletedAccount = z.object({ +export const DeletedAccount: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['account']) }); -export type DeletedAccountModel = z.infer; - -export const DeletedApplePayDomain = z.object({ +export const DeletedApplePayDomain: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['apple_pay_domain']) }); -export type DeletedApplePayDomainModel = z.infer; - -export const DeletedCoupon = z.object({ +export const DeletedCoupon: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['coupon']) }); -export type DeletedCouponModel = z.infer; - -export const DeletedInvoiceitem = z.object({ +export const DeletedInvoiceitem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['invoiceitem']) }); -export type DeletedInvoiceitemModel = z.infer; - -export const DeletedPerson = z.object({ +export const DeletedPerson: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['person']) }); -export type DeletedPersonModel = z.infer; - -export const DeletedProductFeature = z.object({ +export const DeletedProductFeature: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['product_feature']) }); -export type DeletedProductFeatureModel = z.infer; - -export const DeletedRadarValueList = z.object({ +export const DeletedRadarValueList: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list']) }); -export type DeletedRadarValueListModel = z.infer; - -export const DeletedRadarValueListItem = z.object({ +export const DeletedRadarValueListItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['radar.value_list_item']) }); -export type DeletedRadarValueListItemModel = z.infer; - -export const DeletedSubscriptionItem = z.object({ +export const DeletedSubscriptionItem: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['subscription_item']) }); -export type DeletedSubscriptionItemModel = z.infer; - -export const DeletedTerminalConfiguration = z.object({ +export const DeletedTerminalConfiguration: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.configuration']) }); -export type DeletedTerminalConfigurationModel = z.infer; - -export const DeletedTerminalLocation = z.object({ +export const DeletedTerminalLocation: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.location']) }); -export type DeletedTerminalLocationModel = z.infer; - -export const DeletedTerminalReader = z.object({ +export const DeletedTerminalReader: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['terminal.reader']) }); -export type DeletedTerminalReaderModel = z.infer; - -export const DeletedTestHelpersTestClock = z.object({ +export const DeletedTestHelpersTestClock: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['test_helpers.test_clock']) }); -export type DeletedTestHelpersTestClockModel = z.infer; - -export const DeletedWebhookEndpoint = z.object({ +export const DeletedWebhookEndpoint: z.ZodType = z.object({ 'deleted': z.boolean(), 'id': z.string(), 'object': z.enum(['webhook_endpoint']) }); -export type DeletedWebhookEndpointModel = z.infer; - -export const EntitlementsFeature = z.object({ +export const EntitlementsFeature: z.ZodType = z.object({ 'active': z.boolean(), 'id': z.string(), 'livemode': z.boolean(), @@ -13608,9 +22669,7 @@ export const EntitlementsFeature = z.object({ 'object': z.enum(['entitlements.feature']) }); -export type EntitlementsFeatureModel = z.infer; - -export const EntitlementsActiveEntitlement = z.object({ +export const EntitlementsActiveEntitlement: z.ZodType = z.object({ 'feature': z.union([z.string(), EntitlementsFeature]), 'id': z.string(), 'livemode': z.boolean(), @@ -13618,9 +22677,7 @@ export const EntitlementsActiveEntitlement = z.object({ 'object': z.enum(['entitlements.active_entitlement']) }); -export type EntitlementsActiveEntitlementModel = z.infer; - -export const EntitlementsActiveEntitlementSummary = z.object({ +export const EntitlementsActiveEntitlementSummary: z.ZodType = z.object({ 'customer': z.string(), 'entitlements': z.object({ 'data': z.array(EntitlementsActiveEntitlement), @@ -13632,15 +22689,11 @@ export const EntitlementsActiveEntitlementSummary = z.object({ 'object': z.enum(['entitlements.active_entitlement_summary']) }); -export type EntitlementsActiveEntitlementSummaryModel = z.infer; - -export const EntitlementsActiveEntitlementSummaryUpdated = z.object({ +export const EntitlementsActiveEntitlementSummaryUpdated: z.ZodType = z.object({ 'object': EntitlementsActiveEntitlementSummary }); -export type EntitlementsActiveEntitlementSummaryUpdatedModel = z.infer; - -export const EphemeralKey = z.object({ +export const EphemeralKey: z.ZodType = z.object({ 'created': z.number().int(), 'expires': z.number().int(), 'id': z.string(), @@ -13649,51 +22702,37 @@ export const EphemeralKey = z.object({ 'secret': z.string().optional() }); -export type EphemeralKeyModel = z.infer; - -export const Error = z.object({ +export const Error: z.ZodType = z.object({ 'error': z.lazy(() => ApiErrors) }); -export type ErrorModel = z.infer; - -export const NotificationEventData = z.object({ +export const NotificationEventData: z.ZodType = z.object({ 'object': z.object({}), 'previous_attributes': z.object({}).optional() }); -export type NotificationEventDataModel = z.infer; - -export const NotificationEventAutomationActionResourceSendWebhookCustomEvent = z.object({ +export const NotificationEventAutomationActionResourceSendWebhookCustomEvent: z.ZodType = z.object({ 'custom_data': z.record(z.string(), z.string()) }); -export type NotificationEventAutomationActionResourceSendWebhookCustomEventModel = z.infer; - -export const NotificationEventAutomationAction = z.object({ +export const NotificationEventAutomationAction: z.ZodType = z.object({ 'stripe_send_webhook_custom_event': NotificationEventAutomationActionResourceSendWebhookCustomEvent.optional(), 'trigger': z.string(), 'type': z.enum(['stripe_send_webhook_custom_event']) }); -export type NotificationEventAutomationActionModel = z.infer; - -export const NotificationEventRequest = z.object({ +export const NotificationEventRequest: z.ZodType = z.object({ 'id': z.string(), 'idempotency_key': z.string() }); -export type NotificationEventRequestModel = z.infer; - -export const NotificationEventReason = z.object({ +export const NotificationEventReason: z.ZodType = z.object({ 'automation_action': NotificationEventAutomationAction.optional(), 'request': NotificationEventRequest.optional(), 'type': z.enum(['automation_action', 'request']) }); -export type NotificationEventReasonModel = z.infer; - -export const Event = z.object({ +export const Event: z.ZodType = z.object({ 'account': z.string().optional(), 'api_version': z.string(), 'context': z.string().optional(), @@ -13708,23 +22747,17 @@ export const Event = z.object({ 'type': z.enum(['account.application.authorized', 'account.application.deauthorized', 'account.external_account.created', 'account.external_account.deleted', 'account.external_account.updated', 'account.updated', 'account_notice.created', 'account_notice.updated', 'application_fee.created', 'application_fee.refund.updated', 'application_fee.refunded', 'balance.available', 'balance_settings.updated', 'billing.alert.triggered', 'billing_portal.configuration.created', 'billing_portal.configuration.updated', 'billing_portal.session.created', 'capability.updated', 'capital.financing_offer.accepted', 'capital.financing_offer.accepted_other_offer', 'capital.financing_offer.canceled', 'capital.financing_offer.created', 'capital.financing_offer.expired', 'capital.financing_offer.fully_repaid', 'capital.financing_offer.paid_out', 'capital.financing_offer.rejected', 'capital.financing_offer.replacement_created', 'capital.financing_transaction.created', '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.collection_paused', 'customer.subscription.collection_resumed', 'customer.subscription.created', 'customer.subscription.custom_event', 'customer.subscription.deleted', 'customer.subscription.paused', 'customer.subscription.pending_update_applied', 'customer.subscription.pending_update_expired', 'customer.subscription.price_migration_failed', '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.account_numbers_updated', '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_inferred_balances', 'financial_connections.account.refreshed_ownership', 'financial_connections.account.refreshed_transactions', 'financial_connections.account.upcoming_account_number_expiry', 'financial_connections.session.updated', 'fx_quote.expired', '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.overpaid', 'invoice.paid', 'invoice.payment.overpaid', 'invoice.payment_action_required', 'invoice.payment_attempt_required', 'invoice.payment_failed', 'invoice.payment_succeeded', 'invoice.sent', 'invoice.upcoming', 'invoice.updated', 'invoice.voided', 'invoice.will_be_due', 'invoice_payment.paid', '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_dispute_settlement_detail.created', 'issuing_dispute_settlement_detail.updated', 'issuing_fraud_liability_debit.created', 'issuing_personalization_design.activated', 'issuing_personalization_design.deactivated', 'issuing_personalization_design.rejected', 'issuing_personalization_design.updated', 'issuing_settlement.created', 'issuing_settlement.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', 'privacy.redaction_job.canceled', 'privacy.redaction_job.created', 'privacy.redaction_job.ready', 'privacy.redaction_job.succeeded', 'privacy.redaction_job.validation_error', 'product.created', 'product.deleted', 'product.updated', 'promotion_code.created', 'promotion_code.updated', 'quote.accept_failed', 'quote.accepted', 'quote.accepting', 'quote.canceled', 'quote.created', 'quote.draft', 'quote.finalized', 'quote.reestimate_failed', 'quote.reestimated', 'quote.stale', '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.price_migration_failed', 'subscription_schedule.released', 'subscription_schedule.updated', 'tax.form.updated', 'tax.settings.updated', 'tax_rate.created', 'tax_rate.updated', 'terminal.reader.action_failed', 'terminal.reader.action_succeeded', 'terminal.reader.action_updated', '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']) }); -export type EventModel = z.infer; - -export const ExchangeRate = z.object({ +export const ExchangeRate: z.ZodType = z.object({ 'id': z.string(), 'object': z.enum(['exchange_rate']), 'rates': z.record(z.string(), z.number()) }); -export type ExchangeRateModel = z.infer; - -export const FileCreated = z.object({ +export const FileCreated: z.ZodType = z.object({ 'object': z.lazy(() => File) }); -export type FileCreatedModel = z.infer; - -export const FinancialConnectionsInstitution = z.object({ +export const FinancialConnectionsInstitution: z.ZodType = z.object({ 'countries': z.array(z.string()), 'features': BankConnectionsResourceInstitutionFeatureSupport, 'id': z.string(), @@ -13736,9 +22769,7 @@ export const FinancialConnectionsInstitution = z.object({ 'url': z.string() }); -export type FinancialConnectionsInstitutionModel = z.infer; - -export const FinancialConnectionsAccountOwner = z.object({ +export const FinancialConnectionsAccountOwner: z.ZodType = z.object({ 'email': z.string(), 'id': z.string(), 'name': z.string(), @@ -13749,9 +22780,7 @@ export const FinancialConnectionsAccountOwner = z.object({ 'refreshed_at': z.number().int() }); -export type FinancialConnectionsAccountOwnerModel = z.infer; - -export const FinancialConnectionsAccountOwnership = z.object({ +export const FinancialConnectionsAccountOwnership: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'object': z.enum(['financial_connections.account_ownership']), @@ -13763,9 +22792,7 @@ export const FinancialConnectionsAccountOwnership = z.object({ }) }); -export type FinancialConnectionsAccountOwnershipModel = z.infer; - -export const FinancialConnectionsAccount = z.object({ +export const FinancialConnectionsAccount: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]), 'account_numbers': z.array(BankConnectionsResourceAccountNumberDetails), 'balance': z.union([BankConnectionsResourceBalance]), @@ -13790,78 +22817,54 @@ export const FinancialConnectionsAccount = z.object({ 'transaction_refresh': z.union([BankConnectionsResourceTransactionRefresh]) }); -export type FinancialConnectionsAccountModel = z.infer; - -export const FinancialConnectionsAccountAccountNumbersUpdated = z.object({ +export const FinancialConnectionsAccountAccountNumbersUpdated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountAccountNumbersUpdatedModel = z.infer; - -export const FinancialConnectionsAccountCreated = z.object({ +export const FinancialConnectionsAccountCreated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountCreatedModel = z.infer; - -export const FinancialConnectionsAccountDeactivated = z.object({ +export const FinancialConnectionsAccountDeactivated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountDeactivatedModel = z.infer; - -export const FinancialConnectionsAccountDisconnected = z.object({ +export const FinancialConnectionsAccountDisconnected: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountDisconnectedModel = z.infer; - -export const FinancialConnectionsAccountReactivated = z.object({ +export const FinancialConnectionsAccountReactivated: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountReactivatedModel = z.infer; - -export const FinancialConnectionsAccountRefreshedBalance = z.object({ +export const FinancialConnectionsAccountRefreshedBalance: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedBalanceModel = z.infer; - -export const FinancialConnectionsAccountRefreshedInferredBalances = z.object({ +export const FinancialConnectionsAccountRefreshedInferredBalances: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedInferredBalancesModel = z.infer; - -export const FinancialConnectionsAccountRefreshedOwnership = z.object({ +export const FinancialConnectionsAccountRefreshedOwnership: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedOwnershipModel = z.infer; - -export const FinancialConnectionsAccountRefreshedTransactions = z.object({ +export const FinancialConnectionsAccountRefreshedTransactions: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountRefreshedTransactionsModel = z.infer; - -export const FinancialConnectionsAccountUpcomingAccountNumberExpiry = z.object({ +export const FinancialConnectionsAccountUpcomingAccountNumberExpiry: z.ZodType = z.object({ 'object': FinancialConnectionsAccount }); -export type FinancialConnectionsAccountUpcomingAccountNumberExpiryModel = z.infer; - -export const FinancialConnectionsAccountInferredBalance = z.object({ +export const FinancialConnectionsAccountInferredBalance: z.ZodType = z.object({ 'as_of': z.number().int(), 'current': z.record(z.string(), z.number().int()), 'id': z.string(), 'object': z.enum(['financial_connections.account_inferred_balance']) }); -export type FinancialConnectionsAccountInferredBalanceModel = z.infer; - -export const FinancialConnectionsSession = z.object({ +export const FinancialConnectionsSession: z.ZodType = z.object({ 'account_holder': z.union([BankConnectionsResourceAccountholder]), 'accounts': z.object({ 'data': z.array(FinancialConnectionsAccount), @@ -13883,15 +22886,11 @@ export const FinancialConnectionsSession = z.object({ 'status_details': BankConnectionsResourceLinkAccountSessionStatusDetails.optional() }); -export type FinancialConnectionsSessionModel = z.infer; - -export const FinancialConnectionsSessionUpdated = z.object({ +export const FinancialConnectionsSessionUpdated: z.ZodType = z.object({ 'object': FinancialConnectionsSession }); -export type FinancialConnectionsSessionUpdatedModel = z.infer; - -export const FinancialConnectionsTransaction = z.object({ +export const FinancialConnectionsTransaction: z.ZodType = z.object({ 'account': z.string(), 'amount': z.number().int(), 'currency': z.string(), @@ -13906,9 +22905,7 @@ export const FinancialConnectionsTransaction = z.object({ 'updated': z.number().int() }); -export type FinancialConnectionsTransactionModel = z.infer; - -export const FinancialReportingFinanceReportRunRunParameters = z.object({ +export const FinancialReportingFinanceReportRunRunParameters: z.ZodType = z.object({ 'columns': z.array(z.string()).optional(), 'connected_account': z.string().optional(), 'currency': z.string().optional(), @@ -13919,39 +22916,29 @@ export const FinancialReportingFinanceReportRunRunParameters = z.object({ 'timezone': z.string().optional() }); -export type FinancialReportingFinanceReportRunRunParametersModel = z.infer; - -export const ForwardedRequestContext = z.object({ +export const ForwardedRequestContext: z.ZodType = z.object({ 'destination_duration': z.number().int(), 'destination_ip_address': z.string() }); -export type ForwardedRequestContextModel = z.infer; - -export const ForwardedRequestHeader = z.object({ +export const ForwardedRequestHeader: z.ZodType = z.object({ 'name': z.string(), 'value': z.string() }); -export type ForwardedRequestHeaderModel = z.infer; - -export const ForwardedRequestDetails = z.object({ +export const ForwardedRequestDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'http_method': z.enum(['POST']) }); -export type ForwardedRequestDetailsModel = z.infer; - -export const ForwardedResponseDetails = z.object({ +export const ForwardedResponseDetails: z.ZodType = z.object({ 'body': z.string(), 'headers': z.array(ForwardedRequestHeader), 'status': z.number().int() }); -export type ForwardedResponseDetailsModel = z.infer; - -export const ForwardingRequest = z.object({ +export const ForwardingRequest: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -13965,17 +22952,13 @@ export const ForwardingRequest = z.object({ 'url': z.string() }); -export type ForwardingRequestModel = z.infer; - -export const FundingInstructionsBankTransfer = z.object({ +export const FundingInstructionsBankTransfer: z.ZodType = z.object({ 'country': z.string(), 'financial_addresses': z.array(FundingInstructionsBankTransferFinancialAddress), 'type': z.enum(['eu_bank_transfer', 'jp_bank_transfer']) }); -export type FundingInstructionsBankTransferModel = z.infer; - -export const FundingInstructions = z.object({ +export const FundingInstructions: z.ZodType = z.object({ 'bank_transfer': FundingInstructionsBankTransfer, 'currency': z.string(), 'funding_type': z.enum(['bank_transfer']), @@ -13983,9 +22966,7 @@ export const FundingInstructions = z.object({ 'object': z.enum(['funding_instructions']) }); -export type FundingInstructionsModel = z.infer; - -export const FxQuoteRateDetails = z.object({ +export const FxQuoteRateDetails: z.ZodType = z.object({ 'base_rate': z.number(), 'duration_premium': z.number(), 'fx_fee_rate': z.number(), @@ -13993,37 +22974,27 @@ export const FxQuoteRateDetails = z.object({ 'reference_rate_provider': z.enum(['ecb']) }); -export type FxQuoteRateDetailsModel = z.infer; - -export const FxQuoteRate = z.object({ +export const FxQuoteRate: z.ZodType = z.object({ 'exchange_rate': z.number(), 'rate_details': FxQuoteRateDetails }); -export type FxQuoteRateModel = z.infer; - -export const FxQuoteUsagePayment = z.object({ +export const FxQuoteUsagePayment: z.ZodType = z.object({ 'destination': z.string(), 'on_behalf_of': z.string() }); -export type FxQuoteUsagePaymentModel = z.infer; - -export const FxQuoteUsageTransfer = z.object({ +export const FxQuoteUsageTransfer: z.ZodType = z.object({ 'destination': z.string() }); -export type FxQuoteUsageTransferModel = z.infer; - -export const FxQuoteUsage = z.object({ +export const FxQuoteUsage: z.ZodType = z.object({ 'payment': z.union([FxQuoteUsagePayment]), 'transfer': z.union([FxQuoteUsageTransfer]), 'type': z.enum(['payment', 'transfer']) }); -export type FxQuoteUsageModel = z.infer; - -export const FxQuote = z.object({ +export const FxQuote: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'lock_duration': z.enum(['day', 'five_minutes', 'hour', 'none']), @@ -14035,62 +23006,46 @@ export const FxQuote = z.object({ 'usage': FxQuoteUsage }); -export type FxQuoteModel = z.infer; - -export const FxQuoteExpired = z.object({ +export const FxQuoteExpired: z.ZodType = z.object({ 'object': FxQuote }); -export type FxQuoteExpiredModel = z.infer; - -export const GelatoDataDocumentReportDateOfBirth = z.object({ +export const GelatoDataDocumentReportDateOfBirth: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportDateOfBirthModel = z.infer; - -export const GelatoDataDocumentReportExpirationDate = z.object({ +export const GelatoDataDocumentReportExpirationDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportExpirationDateModel = z.infer; - -export const GelatoDataDocumentReportIssuedDate = z.object({ +export const GelatoDataDocumentReportIssuedDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataDocumentReportIssuedDateModel = z.infer; - -export const GelatoDataIdNumberReportDate = z.object({ +export const GelatoDataIdNumberReportDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataIdNumberReportDateModel = z.infer; - -export const GelatoDataVerifiedOutputsDate = z.object({ +export const GelatoDataVerifiedOutputsDate: z.ZodType = z.object({ 'day': z.number().int(), 'month': z.number().int(), 'year': z.number().int() }); -export type GelatoDataVerifiedOutputsDateModel = z.infer; - -export const GelatoDocumentReportError = z.object({ +export const GelatoDocumentReportError: z.ZodType = z.object({ 'code': z.enum(['document_expired', 'document_type_not_supported', 'document_unverified_other']), 'reason': z.string() }); -export type GelatoDocumentReportErrorModel = z.infer; - -export const GelatoDocumentReport = z.object({ +export const GelatoDocumentReport: z.ZodType = z.object({ 'address': z.union([Address]), 'dob': z.union([GelatoDataDocumentReportDateOfBirth]).optional(), 'error': z.union([GelatoDocumentReportError]), @@ -14108,31 +23063,23 @@ export const GelatoDocumentReport = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoDocumentReportModel = z.infer; - -export const GelatoEmailReportError = z.object({ +export const GelatoEmailReportError: z.ZodType = z.object({ 'code': z.enum(['email_unverified_other', 'email_verification_declined']), 'reason': z.string() }); -export type GelatoEmailReportErrorModel = z.infer; - -export const GelatoEmailReport = z.object({ +export const GelatoEmailReport: z.ZodType = z.object({ 'email': z.string(), 'error': z.union([GelatoEmailReportError]), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoEmailReportModel = z.infer; - -export const GelatoIdNumberReportError = z.object({ +export const GelatoIdNumberReportError: z.ZodType = z.object({ 'code': z.enum(['id_number_insufficient_document_data', 'id_number_mismatch', 'id_number_unverified_other']), 'reason': z.string() }); -export type GelatoIdNumberReportErrorModel = z.infer; - -export const GelatoIdNumberReport = z.object({ +export const GelatoIdNumberReport: z.ZodType = z.object({ 'dob': z.union([GelatoDataIdNumberReportDate]).optional(), 'error': z.union([GelatoIdNumberReportError]), 'first_name': z.string(), @@ -14142,117 +23089,85 @@ export const GelatoIdNumberReport = z.object({ 'status': z.enum(['unverified', 'verified']) }); -export type GelatoIdNumberReportModel = z.infer; - -export const GelatoPhoneReportError = z.object({ +export const GelatoPhoneReportError: z.ZodType = z.object({ 'code': z.enum(['phone_unverified_other', 'phone_verification_declined']), 'reason': z.string() }); -export type GelatoPhoneReportErrorModel = z.infer; - -export const GelatoPhoneReport = z.object({ +export const GelatoPhoneReport: z.ZodType = z.object({ 'error': z.union([GelatoPhoneReportError]), 'phone': z.string(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoPhoneReportModel = z.infer; - -export const GelatoProvidedDetails = z.object({ +export const GelatoProvidedDetails: z.ZodType = z.object({ 'email': z.string().optional(), 'phone': z.string().optional() }); -export type GelatoProvidedDetailsModel = z.infer; - -export const GelatoRelatedPerson = z.object({ +export const GelatoRelatedPerson: z.ZodType = z.object({ 'account': z.string(), 'person': z.string() }); -export type GelatoRelatedPersonModel = z.infer; - -export const GelatoReportDocumentOptions = z.object({ +export const GelatoReportDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoReportDocumentOptionsModel = z.infer; - -export const GelatoReportIdNumberOptions = z.object({ +export const GelatoReportIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoReportIdNumberOptionsModel = z.infer; - -export const GelatoSelfieReportError = z.object({ +export const GelatoSelfieReportError: z.ZodType = z.object({ 'code': z.enum(['selfie_document_missing_photo', 'selfie_face_mismatch', 'selfie_manipulated', 'selfie_unverified_other']), 'reason': z.string() }); -export type GelatoSelfieReportErrorModel = z.infer; - -export const GelatoSelfieReport = z.object({ +export const GelatoSelfieReport: z.ZodType = z.object({ 'document': z.string(), 'error': z.union([GelatoSelfieReportError]), 'selfie': z.string(), 'status': z.enum(['unverified', 'verified']) }); -export type GelatoSelfieReportModel = z.infer; - -export const GelatoSessionDocumentOptions = z.object({ +export const GelatoSessionDocumentOptions: z.ZodType = z.object({ 'allowed_types': z.array(z.enum(['driving_license', 'id_card', 'passport'])).optional(), 'require_id_number': z.boolean().optional(), 'require_live_capture': z.boolean().optional(), 'require_matching_selfie': z.boolean().optional() }); -export type GelatoSessionDocumentOptionsModel = z.infer; - -export const GelatoSessionEmailOptions = z.object({ +export const GelatoSessionEmailOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionEmailOptionsModel = z.infer; - -export const GelatoSessionIdNumberOptions = z.object({ +export const GelatoSessionIdNumberOptions: z.ZodType = z.object({ }); -export type GelatoSessionIdNumberOptionsModel = z.infer; - -export const GelatoSessionLastError = z.object({ +export const GelatoSessionLastError: z.ZodType = z.object({ 'code': z.enum(['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']), 'reason': z.string() }); -export type GelatoSessionLastErrorModel = z.infer; - -export const GelatoSessionMatchingOptions = z.object({ +export const GelatoSessionMatchingOptions: z.ZodType = z.object({ 'dob': z.enum(['none', 'similar']).optional(), 'name': z.enum(['none', 'similar']).optional() }); -export type GelatoSessionMatchingOptionsModel = z.infer; - -export const GelatoSessionPhoneOptions = z.object({ +export const GelatoSessionPhoneOptions: z.ZodType = z.object({ 'require_verification': z.boolean().optional() }); -export type GelatoSessionPhoneOptionsModel = z.infer; - -export const GelatoVerificationReportOptions = z.object({ +export const GelatoVerificationReportOptions: z.ZodType = z.object({ 'document': GelatoReportDocumentOptions.optional(), 'id_number': GelatoReportIdNumberOptions.optional() }); -export type GelatoVerificationReportOptionsModel = z.infer; - -export const GelatoVerificationSessionOptions = z.object({ +export const GelatoVerificationSessionOptions: z.ZodType = z.object({ 'document': GelatoSessionDocumentOptions.optional(), 'email': GelatoSessionEmailOptions.optional(), 'id_number': GelatoSessionIdNumberOptions.optional(), @@ -14260,9 +23175,7 @@ export const GelatoVerificationSessionOptions = z.object({ 'phone': GelatoSessionPhoneOptions.optional() }); -export type GelatoVerificationSessionOptionsModel = z.infer; - -export const GelatoVerifiedOutputs = z.object({ +export const GelatoVerifiedOutputs: z.ZodType = z.object({ 'address': z.union([Address]), 'dob': z.union([GelatoDataVerifiedOutputsDate]).optional(), 'email': z.string(), @@ -14276,9 +23189,7 @@ export const GelatoVerifiedOutputs = z.object({ 'unparsed_sex': z.string().optional() }); -export type GelatoVerifiedOutputsModel = z.infer; - -export const IdentityVerificationReport = z.object({ +export const IdentityVerificationReport: z.ZodType = z.object({ 'client_reference_id': z.string(), 'created': z.number().int(), 'document': GelatoDocumentReport.optional(), @@ -14295,15 +23206,11 @@ export const IdentityVerificationReport = z.object({ 'verification_session': z.string() }); -export type IdentityVerificationReportModel = z.infer; - -export const VerificationSessionRedaction = z.object({ +export const VerificationSessionRedaction: z.ZodType = z.object({ 'status': z.enum(['processing', 'redacted']) }); -export type VerificationSessionRedactionModel = z.infer; - -export const IdentityVerificationSession = z.object({ +export const IdentityVerificationSession: z.ZodType = z.object({ 'client_reference_id': z.string(), 'client_secret': z.string(), 'created': z.number().int(), @@ -14326,53 +23233,37 @@ export const IdentityVerificationSession = z.object({ 'verified_outputs': z.union([GelatoVerifiedOutputs]).optional() }); -export type IdentityVerificationSessionModel = z.infer; - -export const IdentityVerificationSessionCanceled = z.object({ +export const IdentityVerificationSessionCanceled: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionCanceledModel = z.infer; - -export const IdentityVerificationSessionCreated = z.object({ +export const IdentityVerificationSessionCreated: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionCreatedModel = z.infer; - -export const IdentityVerificationSessionProcessing = z.object({ +export const IdentityVerificationSessionProcessing: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionProcessingModel = z.infer; - -export const IdentityVerificationSessionRedacted = z.object({ +export const IdentityVerificationSessionRedacted: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionRedactedModel = z.infer; - -export const IdentityVerificationSessionRequiresInput = z.object({ +export const IdentityVerificationSessionRequiresInput: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionRequiresInputModel = z.infer; - -export const IdentityVerificationSessionVerified = z.object({ +export const IdentityVerificationSessionVerified: z.ZodType = z.object({ 'object': IdentityVerificationSession }); -export type IdentityVerificationSessionVerifiedModel = z.infer; - -export const TreasurySharedResourceBillingDetails = z.object({ +export const TreasurySharedResourceBillingDetails: z.ZodType = z.object({ 'address': Address, 'email': z.string(), 'name': z.string() }); -export type TreasurySharedResourceBillingDetailsModel = z.infer; - -export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const InboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -14383,131 +23274,89 @@ export const InboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type InboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const InboundTransfers = z.object({ +export const InboundTransfers: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'type': z.enum(['us_bank_account']), 'us_bank_account': InboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type InboundTransfersModel = z.infer; - -export const InvoiceCreated = z.object({ +export const InvoiceCreated: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceCreatedModel = z.infer; - -export const InvoiceDeleted = z.object({ +export const InvoiceDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceDeletedModel = z.infer; - -export const InvoiceFinalizationFailed = z.object({ +export const InvoiceFinalizationFailed: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceFinalizationFailedModel = z.infer; - -export const InvoiceFinalized = z.object({ +export const InvoiceFinalized: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceFinalizedModel = z.infer; - -export const InvoiceMarkedUncollectible = z.object({ +export const InvoiceMarkedUncollectible: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceMarkedUncollectibleModel = z.infer; - -export const InvoiceOverdue = z.object({ +export const InvoiceOverdue: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceOverdueModel = z.infer; - -export const InvoiceOverpaid = z.object({ +export const InvoiceOverpaid: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceOverpaidModel = z.infer; - -export const InvoicePaid = z.object({ +export const InvoicePaid: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaidModel = z.infer; - -export const InvoicePaymentOverpaid = z.object({ +export const InvoicePaymentOverpaid: z.ZodType = z.object({ 'object': z.lazy(() => InvoicePayment) }); -export type InvoicePaymentOverpaidModel = z.infer; - -export const InvoicePaymentActionRequired = z.object({ +export const InvoicePaymentActionRequired: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentActionRequiredModel = z.infer; - -export const InvoicePaymentAttemptRequired = z.object({ +export const InvoicePaymentAttemptRequired: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentAttemptRequiredModel = z.infer; - -export const InvoicePaymentFailed = z.object({ +export const InvoicePaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentFailedModel = z.infer; - -export const InvoicePaymentSucceeded = z.object({ +export const InvoicePaymentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoicePaymentSucceededModel = z.infer; - -export const InvoiceSent = z.object({ +export const InvoiceSent: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceSentModel = z.infer; - -export const InvoiceUpcoming = z.object({ +export const InvoiceUpcoming: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceUpcomingModel = z.infer; - -export const InvoiceUpdated = z.object({ +export const InvoiceUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceUpdatedModel = z.infer; - -export const InvoiceVoided = z.object({ +export const InvoiceVoided: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceVoidedModel = z.infer; - -export const InvoiceWillBeDue = z.object({ +export const InvoiceWillBeDue: z.ZodType = z.object({ 'object': z.lazy(() => Invoice) }); -export type InvoiceWillBeDueModel = z.infer; - -export const InvoicePaymentPaid = z.object({ +export const InvoicePaymentPaid: z.ZodType = z.object({ 'object': z.lazy(() => InvoicePayment) }); -export type InvoicePaymentPaidModel = z.infer; - -export const InvoiceRenderingTemplate = z.object({ +export const InvoiceRenderingTemplate: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -14518,22 +23367,16 @@ export const InvoiceRenderingTemplate = z.object({ 'version': z.number().int() }); -export type InvoiceRenderingTemplateModel = z.infer; - -export const InvoiceSettingQuoteSetting = z.object({ +export const InvoiceSettingQuoteSetting: z.ZodType = z.object({ 'days_until_due': z.number().int(), 'issuer': z.lazy(() => ConnectAccountReference) }); -export type InvoiceSettingQuoteSettingModel = z.infer; - -export const ProrationDetails = z.object({ +export const ProrationDetails: z.ZodType = z.object({ 'discount_amounts': z.array(DiscountsResourceDiscountAmount) }); -export type ProrationDetailsModel = z.infer; - -export const Invoiceitem = z.object({ +export const Invoiceitem: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'customer': z.union([z.string(), z.lazy(() => Customer), DeletedCustomer]), @@ -14559,66 +23402,48 @@ export const Invoiceitem = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]) }); -export type InvoiceitemModel = z.infer; - -export const InvoiceitemCreated = z.object({ +export const InvoiceitemCreated: z.ZodType = z.object({ 'object': Invoiceitem }); -export type InvoiceitemCreatedModel = z.infer; - -export const InvoiceitemDeleted = z.object({ +export const InvoiceitemDeleted: z.ZodType = z.object({ 'object': Invoiceitem }); -export type InvoiceitemDeletedModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordApplication = z.object({ +export const IssuingComplianceCreditUnderwritingRecordApplication: z.ZodType = z.object({ 'application_method': z.enum(['in_person', 'mail', 'online', 'phone']), 'purpose': z.enum(['credit_limit_increase', 'credit_line_opening']), 'submitted_at': z.number().int() }); -export type IssuingComplianceCreditUnderwritingRecordApplicationModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordCreditUser = z.object({ +export const IssuingComplianceCreditUnderwritingRecordCreditUser: z.ZodType = z.object({ 'email': z.string(), 'name': z.string() }); -export type IssuingComplianceCreditUnderwritingRecordCreditUserModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejected = z.object({ +export const IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejected: z.ZodType = z.object({ 'reason_other_explanation': z.string(), 'reasons': z.array(z.enum(['applicant_is_not_beneficial_owner', 'applicant_too_young', 'application_is_not_beneficial_owner', 'bankruptcy', 'business_size_too_small', 'current_account_tier_ineligible', 'customer_already_exists', 'customer_requested_account_closure', 'debt_to_cash_balance_ratio_too_high', 'debt_to_equity_ratio_too_high', 'delinquent_credit_obligations', 'dispute_rate_too_high', 'duration_of_residence', 'excessive_income_or_revenue_obligations', 'expenses_to_cash_balance_ratio_too_high', 'foreclosure_or_repossession', 'frozen_file_at_credit_bureau', 'garnishment_or_attachment', 'government_loan_program_criteria', 'high_concentration_of_clients', 'high_risk_industry', 'incomplete_application', 'inconsistent_monthly_revenues', 'insufficient_account_history_with_platform', 'insufficient_bank_account_history', 'insufficient_cash_balance', 'insufficient_cash_flow', 'insufficient_collateral', 'insufficient_credit_experience', 'insufficient_deposits', 'insufficient_income', 'insufficient_margin_ratio', 'insufficient_operating_profit', 'insufficient_period_in_operation', 'insufficient_reserves', 'insufficient_revenue', 'insufficient_social_media_performance', 'insufficient_time_in_network', 'insufficient_trade_credit_insurance', 'invalid_business_license', 'lacking_cash_account', 'late_payment_history_reported_to_bureau', 'lien_collection_action_or_judgement', 'negative_public_information', 'no_credit_file', 'other', 'outside_supported_country', 'outside_supported_state', 'poor_payment_history_with_platform', 'prior_or_current_legal_action', 'prohibited_industry', 'rate_of_cash_balance_fluctuation_too_high', 'recent_inquiries_on_business_credit_report', 'removal_of_bank_account_connection', 'revenue_discrepancy', 'runway_too_short', 'suspected_fraud', 'too_many_non_sufficient_funds_or_overdrafts', 'unable_to_verify_address', 'unable_to_verify_identity', 'unable_to_verify_income_or_revenue', 'unprofitable', 'unsupportable_business_type'])) }); -export type IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejectedModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApproved = z.object({ +export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApproved: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string() }); -export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApprovedModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreased = z.object({ +export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreased: z.ZodType = z.object({ 'amount': z.number().int(), 'currency': z.string(), 'reason_other_explanation': z.string(), 'reasons': z.array(z.enum(['applicant_is_not_beneficial_owner', 'applicant_too_young', 'application_is_not_beneficial_owner', 'bankruptcy', 'business_size_too_small', 'change_in_financial_state', 'change_in_utilization_of_credit_line', 'current_account_tier_ineligible', 'customer_already_exists', 'customer_requested_account_closure', 'debt_to_cash_balance_ratio_too_high', 'debt_to_equity_ratio_too_high', 'decrease_in_income_to_expense_ratio', 'decrease_in_social_media_performance', 'delinquent_credit_obligations', 'dispute_rate_too_high', 'duration_of_residence', 'exceeds_acceptable_platform_exposure', 'excessive_income_or_revenue_obligations', 'expenses_to_cash_balance_ratio_too_high', 'foreclosure_or_repossession', 'frozen_file_at_credit_bureau', 'garnishment_or_attachment', 'government_loan_program_criteria', 'has_recent_credit_limit_increase', 'high_concentration_of_clients', 'high_risk_industry', 'incomplete_application', 'inconsistent_monthly_revenues', 'insufficient_account_history_with_platform', 'insufficient_bank_account_history', 'insufficient_cash_balance', 'insufficient_cash_flow', 'insufficient_collateral', 'insufficient_credit_experience', 'insufficient_credit_utilization', 'insufficient_deposits', 'insufficient_income', 'insufficient_margin_ratio', 'insufficient_operating_profit', 'insufficient_period_in_operation', 'insufficient_reserves', 'insufficient_revenue', 'insufficient_social_media_performance', 'insufficient_time_in_network', 'insufficient_trade_credit_insurance', 'insufficient_usage_as_qualified_expenses', 'invalid_business_license', 'lacking_cash_account', 'late_payment_history_reported_to_bureau', 'lien_collection_action_or_judgement', 'negative_public_information', 'no_credit_file', 'other', 'outside_supported_country', 'outside_supported_state', 'poor_payment_history_with_platform', 'prior_or_current_legal_action', 'prohibited_industry', 'rate_of_cash_balance_fluctuation_too_high', 'recent_inquiries_on_business_credit_report', 'removal_of_bank_account_connection', 'revenue_discrepancy', 'runway_too_short', 'suspected_fraud', 'too_many_non_sufficient_funds_or_overdrafts', 'unable_to_verify_address', 'unable_to_verify_identity', 'unable_to_verify_income_or_revenue', 'unprofitable', 'unsupportable_business_type'])) }); -export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreasedModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLineClosed = z.object({ +export const IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLineClosed: z.ZodType = z.object({ 'reason_other_explanation': z.string(), 'reasons': z.array(z.enum(['applicant_is_not_beneficial_owner', 'applicant_too_young', 'application_is_not_beneficial_owner', 'bankruptcy', 'business_size_too_small', 'change_in_financial_state', 'change_in_utilization_of_credit_line', 'current_account_tier_ineligible', 'customer_already_exists', 'customer_requested_account_closure', 'debt_to_cash_balance_ratio_too_high', 'debt_to_equity_ratio_too_high', 'decrease_in_income_to_expense_ratio', 'decrease_in_social_media_performance', 'delinquent_credit_obligations', 'dispute_rate_too_high', 'duration_of_residence', 'exceeds_acceptable_platform_exposure', 'excessive_income_or_revenue_obligations', 'expenses_to_cash_balance_ratio_too_high', 'foreclosure_or_repossession', 'frozen_file_at_credit_bureau', 'garnishment_or_attachment', 'government_loan_program_criteria', 'has_recent_credit_limit_increase', 'high_concentration_of_clients', 'high_risk_industry', 'incomplete_application', 'inconsistent_monthly_revenues', 'insufficient_account_history_with_platform', 'insufficient_bank_account_history', 'insufficient_cash_balance', 'insufficient_cash_flow', 'insufficient_collateral', 'insufficient_credit_experience', 'insufficient_credit_utilization', 'insufficient_deposits', 'insufficient_income', 'insufficient_margin_ratio', 'insufficient_operating_profit', 'insufficient_period_in_operation', 'insufficient_reserves', 'insufficient_revenue', 'insufficient_social_media_performance', 'insufficient_time_in_network', 'insufficient_trade_credit_insurance', 'insufficient_usage_as_qualified_expenses', 'invalid_business_license', 'lacking_cash_account', 'late_payment_history_reported_to_bureau', 'lien_collection_action_or_judgement', 'negative_public_information', 'no_credit_file', 'other', 'outside_supported_country', 'outside_supported_state', 'poor_payment_history_with_platform', 'prior_or_current_legal_action', 'prohibited_industry', 'rate_of_cash_balance_fluctuation_too_high', 'recent_inquiries_on_business_credit_report', 'removal_of_bank_account_connection', 'revenue_discrepancy', 'runway_too_short', 'suspected_fraud', 'too_many_non_sufficient_funds_or_overdrafts', 'unable_to_verify_address', 'unable_to_verify_identity', 'unable_to_verify_income_or_revenue', 'unprofitable', 'unsupportable_business_type'])) }); -export type IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLineClosedModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordDecision = z.object({ +export const IssuingComplianceCreditUnderwritingRecordDecision: z.ZodType = z.object({ 'application_rejected': z.union([IssuingComplianceCreditUnderwritingRecordDecisionTypeApplicationRejected]), 'credit_limit_approved': z.union([IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitApproved]), 'credit_limit_decreased': z.union([IssuingComplianceCreditUnderwritingRecordDecisionTypeCreditLimitDecreased]), @@ -14626,16 +23451,12 @@ export const IssuingComplianceCreditUnderwritingRecordDecision = z.object({ 'type': z.enum(['additional_information_requested', 'application_rejected', 'credit_limit_approved', 'credit_limit_decreased', 'credit_line_closed', 'no_changes', 'withdrawn_by_applicant']) }); -export type IssuingComplianceCreditUnderwritingRecordDecisionModel = z.infer; - -export const IssuingComplianceCreditUnderwritingRecordUnderwritingException = z.object({ +export const IssuingComplianceCreditUnderwritingRecordUnderwritingException: z.ZodType = z.object({ 'explanation': z.string(), 'original_decision_type': z.enum(['additional_information_requested', 'application_rejected', 'credit_limit_approved', 'credit_limit_decreased', 'credit_line_closed', 'no_changes', 'withdrawn_by_applicant']) }); -export type IssuingComplianceCreditUnderwritingRecordUnderwritingExceptionModel = z.infer; - -export const IssuingCreditUnderwritingRecord = z.object({ +export const IssuingCreditUnderwritingRecord: z.ZodType = z.object({ 'application': z.union([IssuingComplianceCreditUnderwritingRecordApplication]), 'created': z.number().int(), 'created_from': z.enum(['application', 'proactive_review']), @@ -14651,15 +23472,11 @@ export const IssuingCreditUnderwritingRecord = z.object({ 'underwriting_exception': z.union([IssuingComplianceCreditUnderwritingRecordUnderwritingException]) }); -export type IssuingCreditUnderwritingRecordModel = z.infer; - -export const IssuingDisputeSettlementDetailNetworkData = z.object({ +export const IssuingDisputeSettlementDetailNetworkData: z.ZodType = z.object({ 'processing_date': z.string() }); -export type IssuingDisputeSettlementDetailNetworkDataModel = z.infer; - -export const IssuingDisputeSettlementDetail = z.object({ +export const IssuingDisputeSettlementDetail: z.ZodType = z.object({ 'amount': z.number().int(), 'card': z.string(), 'created': z.number().int(), @@ -14674,9 +23491,7 @@ export const IssuingDisputeSettlementDetail = z.object({ 'settlement': z.string() }); -export type IssuingDisputeSettlementDetailModel = z.infer; - -export const IssuingFraudLiabilityDebit = z.object({ +export const IssuingFraudLiabilityDebit: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_transaction': z.union([z.string(), z.lazy(() => BalanceTransaction)]), 'created': z.number().int(), @@ -14687,222 +23502,152 @@ export const IssuingFraudLiabilityDebit = z.object({ 'object': z.enum(['issuing.fraud_liability_debit']) }); -export type IssuingFraudLiabilityDebitModel = z.infer; - -export const IssuingAuthorizationCreated = z.object({ +export const IssuingAuthorizationCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationCreatedModel = z.infer; - -export const IssuingAuthorizationRequest = z.object({ +export const IssuingAuthorizationRequest: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationRequestModel = z.infer; - -export const IssuingAuthorizationUpdated = z.object({ +export const IssuingAuthorizationUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingAuthorization) }); -export type IssuingAuthorizationUpdatedModel = z.infer; - -export const IssuingCardCreated = z.object({ +export const IssuingCardCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingCard) }); -export type IssuingCardCreatedModel = z.infer; - -export const IssuingCardUpdated = z.object({ +export const IssuingCardUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingCard) }); -export type IssuingCardUpdatedModel = z.infer; - -export const IssuingCardholderCreated = z.object({ +export const IssuingCardholderCreated: z.ZodType = z.object({ 'object': IssuingCardholder }); -export type IssuingCardholderCreatedModel = z.infer; - -export const IssuingCardholderUpdated = z.object({ +export const IssuingCardholderUpdated: z.ZodType = z.object({ 'object': IssuingCardholder }); -export type IssuingCardholderUpdatedModel = z.infer; - -export const IssuingDisputeClosed = z.object({ +export const IssuingDisputeClosed: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeClosedModel = z.infer; - -export const IssuingDisputeCreated = z.object({ +export const IssuingDisputeCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeCreatedModel = z.infer; - -export const IssuingDisputeFundsReinstated = z.object({ +export const IssuingDisputeFundsReinstated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeFundsReinstatedModel = z.infer; - -export const IssuingDisputeFundsRescinded = z.object({ +export const IssuingDisputeFundsRescinded: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeFundsRescindedModel = z.infer; - -export const IssuingDisputeSubmitted = z.object({ +export const IssuingDisputeSubmitted: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeSubmittedModel = z.infer; - -export const IssuingDisputeUpdated = z.object({ +export const IssuingDisputeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingDispute) }); -export type IssuingDisputeUpdatedModel = z.infer; - -export const IssuingDisputeSettlementDetailCreated = z.object({ +export const IssuingDisputeSettlementDetailCreated: z.ZodType = z.object({ 'object': IssuingDisputeSettlementDetail }); -export type IssuingDisputeSettlementDetailCreatedModel = z.infer; - -export const IssuingDisputeSettlementDetailUpdated = z.object({ +export const IssuingDisputeSettlementDetailUpdated: z.ZodType = z.object({ 'object': IssuingDisputeSettlementDetail }); -export type IssuingDisputeSettlementDetailUpdatedModel = z.infer; - -export const IssuingFraudLiabilityDebitCreated = z.object({ +export const IssuingFraudLiabilityDebitCreated: z.ZodType = z.object({ 'object': IssuingFraudLiabilityDebit }); -export type IssuingFraudLiabilityDebitCreatedModel = z.infer; - -export const IssuingPersonalizationDesignActivated = z.object({ +export const IssuingPersonalizationDesignActivated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignActivatedModel = z.infer; - -export const IssuingPersonalizationDesignDeactivated = z.object({ +export const IssuingPersonalizationDesignDeactivated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignDeactivatedModel = z.infer; - -export const IssuingPersonalizationDesignRejected = z.object({ +export const IssuingPersonalizationDesignRejected: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignRejectedModel = z.infer; - -export const IssuingPersonalizationDesignUpdated = z.object({ +export const IssuingPersonalizationDesignUpdated: z.ZodType = z.object({ 'object': IssuingPersonalizationDesign }); -export type IssuingPersonalizationDesignUpdatedModel = z.infer; - -export const IssuingSettlementCreated = z.object({ +export const IssuingSettlementCreated: z.ZodType = z.object({ 'object': IssuingSettlement }); -export type IssuingSettlementCreatedModel = z.infer; - -export const IssuingSettlementUpdated = z.object({ +export const IssuingSettlementUpdated: z.ZodType = z.object({ 'object': IssuingSettlement }); -export type IssuingSettlementUpdatedModel = z.infer; - -export const IssuingTokenCreated = z.object({ +export const IssuingTokenCreated: z.ZodType = z.object({ 'object': IssuingToken }); -export type IssuingTokenCreatedModel = z.infer; - -export const IssuingTokenUpdated = z.object({ +export const IssuingTokenUpdated: z.ZodType = z.object({ 'object': IssuingToken }); -export type IssuingTokenUpdatedModel = z.infer; - -export const IssuingTransactionCreated = z.object({ +export const IssuingTransactionCreated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionCreatedModel = z.infer; - -export const IssuingTransactionPurchaseDetailsReceiptUpdated = z.object({ +export const IssuingTransactionPurchaseDetailsReceiptUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionPurchaseDetailsReceiptUpdatedModel = z.infer; - -export const IssuingTransactionUpdated = z.object({ +export const IssuingTransactionUpdated: z.ZodType = z.object({ 'object': z.lazy(() => IssuingTransaction) }); -export type IssuingTransactionUpdatedModel = z.infer; - -export const LoginLink = z.object({ +export const LoginLink: z.ZodType = z.object({ 'created': z.number().int(), 'object': z.enum(['login_link']), 'url': z.string() }); -export type LoginLinkModel = z.infer; - -export const MandateUpdated = z.object({ +export const MandateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Mandate) }); -export type MandateUpdatedModel = z.infer; - -export const OrdersV2ResourceAutomaticTax = z.object({ +export const OrdersV2ResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type OrdersV2ResourceAutomaticTaxModel = z.infer; - -export const OrdersV2ResourceBillingDetails = z.object({ +export const OrdersV2ResourceBillingDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'email': z.string(), 'name': z.string(), 'phone': z.string() }); -export type OrdersV2ResourceBillingDetailsModel = z.infer; - -export const OrdersV2ResourceAutomaticPaymentMethods = z.object({ +export const OrdersV2ResourceAutomaticPaymentMethods: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type OrdersV2ResourceAutomaticPaymentMethodsModel = z.infer; - -export const OrdersPaymentMethodOptionsAfterpayClearpay = z.object({ +export const OrdersPaymentMethodOptionsAfterpayClearpay: z.ZodType = z.object({ 'capture_method': z.enum(['automatic', 'automatic_async', 'manual']).optional(), 'reference': z.string(), 'setup_future_usage': z.enum(['none']).optional() }); -export type OrdersPaymentMethodOptionsAfterpayClearpayModel = z.infer; - -export const OrdersV2ResourceCardPaymentMethodOptions = z.object({ +export const OrdersV2ResourceCardPaymentMethodOptions: z.ZodType = z.object({ 'capture_method': z.enum(['automatic', 'automatic_async', 'manual']), 'setup_future_usage': z.enum(['none', 'off_session', 'on_session']).optional() }); -export type OrdersV2ResourceCardPaymentMethodOptionsModel = z.infer; - -export const OrdersV2ResourcePaymentMethodOptions = z.object({ +export const OrdersV2ResourcePaymentMethodOptions: z.ZodType = z.object({ 'acss_debit': PaymentIntentPaymentMethodOptionsAcssDebit.optional(), 'afterpay_clearpay': OrdersPaymentMethodOptionsAfterpayClearpay.optional(), 'alipay': PaymentMethodOptionsAlipay.optional(), @@ -14920,16 +23665,12 @@ export const OrdersV2ResourcePaymentMethodOptions = z.object({ 'wechat_pay': PaymentMethodOptionsWechatPay.optional() }); -export type OrdersV2ResourcePaymentMethodOptionsModel = z.infer; - -export const OrdersV2ResourceTransferData = z.object({ +export const OrdersV2ResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type OrdersV2ResourceTransferDataModel = z.infer; - -export const OrdersV2ResourcePaymentSettings = z.object({ +export const OrdersV2ResourcePaymentSettings: z.ZodType = z.object({ 'application_fee_amount': z.number().int(), 'automatic_payment_methods': z.union([OrdersV2ResourceAutomaticPaymentMethods]), 'payment_method_options': z.union([OrdersV2ResourcePaymentMethodOptions]), @@ -14940,17 +23681,13 @@ export const OrdersV2ResourcePaymentSettings = z.object({ 'transfer_data': z.union([OrdersV2ResourceTransferData]) }); -export type OrdersV2ResourcePaymentSettingsModel = z.infer; - -export const OrdersV2ResourcePayment = z.object({ +export const OrdersV2ResourcePayment: z.ZodType = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'settings': z.union([OrdersV2ResourcePaymentSettings]), 'status': z.enum(['canceled', 'complete', 'not_required', 'processing', 'requires_action', 'requires_capture', 'requires_confirmation', 'requires_payment_method']) }); -export type OrdersV2ResourcePaymentModel = z.infer; - -export const OrdersV2ResourceShippingCost = z.object({ +export const OrdersV2ResourceShippingCost: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_tax': z.number().int(), 'amount_total': z.number().int(), @@ -14958,47 +23695,35 @@ export const OrdersV2ResourceShippingCost = z.object({ 'taxes': z.array(LineItemsTaxAmount).optional() }); -export type OrdersV2ResourceShippingCostModel = z.infer; - -export const OrdersV2ResourceShippingDetails = z.object({ +export const OrdersV2ResourceShippingDetails: z.ZodType = z.object({ 'address': z.union([Address]), 'name': z.string(), 'phone': z.string() }); -export type OrdersV2ResourceShippingDetailsModel = z.infer; - -export const OrdersV2ResourceTaxDetailsResourceTaxId = z.object({ +export const OrdersV2ResourceTaxDetailsResourceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type OrdersV2ResourceTaxDetailsResourceTaxIdModel = z.infer; - -export const OrdersV2ResourceTaxDetails = z.object({ +export const OrdersV2ResourceTaxDetails: z.ZodType = z.object({ 'tax_exempt': z.enum(['exempt', 'none', 'reverse']), 'tax_ids': z.array(OrdersV2ResourceTaxDetailsResourceTaxId) }); -export type OrdersV2ResourceTaxDetailsModel = z.infer; - -export const OrdersV2ResourceTotalDetailsApiResourceBreakdown = z.object({ +export const OrdersV2ResourceTotalDetailsApiResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type OrdersV2ResourceTotalDetailsApiResourceBreakdownModel = z.infer; - -export const OrdersV2ResourceTotalDetails = z.object({ +export const OrdersV2ResourceTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int(), 'amount_tax': z.number().int(), 'breakdown': OrdersV2ResourceTotalDetailsApiResourceBreakdown.optional() }); -export type OrdersV2ResourceTotalDetailsModel = z.infer; - -export const Order = z.object({ +export const Order: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'application': z.union([z.string(), Application]), @@ -15029,16 +23754,12 @@ export const Order = z.object({ 'total_details': OrdersV2ResourceTotalDetails }); -export type OrderModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundPaymentsPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundPaymentsPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -15049,25 +23770,19 @@ export const OutboundPaymentsPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type OutboundPaymentsPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundPaymentsPaymentMethodDetails = z.object({ +export const OutboundPaymentsPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundPaymentsPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundPaymentsPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundPaymentsPaymentMethodDetailsModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsFinancialAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type OutboundTransfersPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ +export const OutboundTransfersPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'account_holder_type': z.enum(['company', 'individual']), 'account_type': z.enum(['checking', 'savings']), 'bank_name': z.string(), @@ -15078,18 +23793,14 @@ export const OutboundTransfersPaymentMethodDetailsUsBankAccount = z.object({ 'routing_number': z.string() }); -export type OutboundTransfersPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const OutboundTransfersPaymentMethodDetails = z.object({ +export const OutboundTransfersPaymentMethodDetails: z.ZodType = z.object({ 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': OutboundTransfersPaymentMethodDetailsFinancialAccount.optional(), 'type': z.enum(['financial_account', 'us_bank_account']), 'us_bank_account': OutboundTransfersPaymentMethodDetailsUsBankAccount.optional() }); -export type OutboundTransfersPaymentMethodDetailsModel = z.infer; - -export const PaymentAttemptRecord = z.object({ +export const PaymentAttemptRecord: z.ZodType = z.object({ 'amount': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_authorized': PaymentsPrimitivesPaymentRecordsResourceAmount, 'amount_canceled': PaymentsPrimitivesPaymentRecordsResourceAmount, @@ -15113,70 +23824,48 @@ export const PaymentAttemptRecord = z.object({ 'shipping_details': z.union([PaymentsPrimitivesPaymentRecordsResourceShippingDetails]) }); -export type PaymentAttemptRecordModel = z.infer; - -export const PaymentFlowsAmountDetailsClient = z.object({ +export const PaymentFlowsAmountDetailsClient: z.ZodType = z.object({ 'tip': PaymentFlowsAmountDetailsClientResourceTip.optional() }); -export type PaymentFlowsAmountDetailsClientModel = z.infer; - -export const PaymentFlowsInstallmentOptions = z.object({ +export const PaymentFlowsInstallmentOptions: z.ZodType = z.object({ 'enabled': z.boolean(), 'plan': PaymentMethodDetailsCardInstallmentsPlan.optional() }); -export type PaymentFlowsInstallmentOptionsModel = z.infer; - -export const PaymentIntentAmountCapturableUpdated = z.object({ +export const PaymentIntentAmountCapturableUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentAmountCapturableUpdatedModel = z.infer; - -export const PaymentIntentCanceled = z.object({ +export const PaymentIntentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentCanceledModel = z.infer; - -export const PaymentIntentCreated = z.object({ +export const PaymentIntentCreated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentCreatedModel = z.infer; - -export const PaymentIntentPartiallyFunded = z.object({ +export const PaymentIntentPartiallyFunded: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentPartiallyFundedModel = z.infer; - -export const PaymentIntentPaymentFailed = z.object({ +export const PaymentIntentPaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentPaymentFailedModel = z.infer; - -export const PaymentIntentProcessing = z.object({ +export const PaymentIntentProcessing: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentProcessingModel = z.infer; - -export const PaymentIntentRequiresAction = z.object({ +export const PaymentIntentRequiresAction: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentRequiresActionModel = z.infer; - -export const PaymentIntentSucceeded = z.object({ +export const PaymentIntentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => PaymentIntent) }); -export type PaymentIntentSucceededModel = z.infer; - -export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const PaymentIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'capture_method': z.enum(['manual', 'manual_preferred']).optional(), 'installments': PaymentFlowsInstallmentOptions.optional(), 'request_incremental_authorization_support': z.boolean().optional(), @@ -15186,60 +23875,42 @@ export const PaymentIntentTypeSpecificPaymentMethodOptionsClient = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type PaymentIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const PaymentLinkCreated = z.object({ +export const PaymentLinkCreated: z.ZodType = z.object({ 'object': PaymentLink }); -export type PaymentLinkCreatedModel = z.infer; - -export const PaymentLinkUpdated = z.object({ +export const PaymentLinkUpdated: z.ZodType = z.object({ 'object': PaymentLink }); -export type PaymentLinkUpdatedModel = z.infer; - -export const PaymentMethodAttached = z.object({ +export const PaymentMethodAttached: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodAttachedModel = z.infer; - -export const PaymentMethodAutomaticallyUpdated = z.object({ +export const PaymentMethodAutomaticallyUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodAutomaticallyUpdatedModel = z.infer; - -export const PaymentMethodDetached = z.object({ +export const PaymentMethodDetached: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodDetachedModel = z.infer; - -export const PaymentMethodUpdated = z.object({ +export const PaymentMethodUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PaymentMethod) }); -export type PaymentMethodUpdatedModel = z.infer; - -export const PaymentMethodConfigResourceDisplayPreference = z.object({ +export const PaymentMethodConfigResourceDisplayPreference: z.ZodType = z.object({ 'overridable': z.boolean(), 'preference': z.enum(['none', 'off', 'on']), 'value': z.enum(['off', 'on']) }); -export type PaymentMethodConfigResourceDisplayPreferenceModel = z.infer; - -export const PaymentMethodConfigResourcePaymentMethodProperties = z.object({ +export const PaymentMethodConfigResourcePaymentMethodProperties: z.ZodType = z.object({ 'available': z.boolean(), 'display_preference': PaymentMethodConfigResourceDisplayPreference }); -export type PaymentMethodConfigResourcePaymentMethodPropertiesModel = z.infer; - -export const PaymentMethodConfiguration = z.object({ +export const PaymentMethodConfiguration: z.ZodType = z.object({ 'acss_debit': PaymentMethodConfigResourcePaymentMethodProperties.optional(), 'active': z.boolean(), 'affirm': PaymentMethodConfigResourcePaymentMethodProperties.optional(), @@ -15309,22 +23980,16 @@ export const PaymentMethodConfiguration = z.object({ 'zip': PaymentMethodConfigResourcePaymentMethodProperties.optional() }); -export type PaymentMethodConfigurationModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatusDetails = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatusDetails: z.ZodType = z.object({ 'error_message': z.string() }); -export type PaymentMethodDomainResourcePaymentMethodStatusDetailsModel = z.infer; - -export const PaymentMethodDomainResourcePaymentMethodStatus = z.object({ +export const PaymentMethodDomainResourcePaymentMethodStatus: z.ZodType = z.object({ 'status': z.enum(['active', 'inactive']), 'status_details': PaymentMethodDomainResourcePaymentMethodStatusDetails.optional() }); -export type PaymentMethodDomainResourcePaymentMethodStatusModel = z.infer; - -export const PaymentMethodDomain = z.object({ +export const PaymentMethodDomain: z.ZodType = z.object({ 'amazon_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'apple_pay': PaymentMethodDomainResourcePaymentMethodStatus, 'created': z.number().int(), @@ -15339,99 +24004,67 @@ export const PaymentMethodDomain = z.object({ 'paypal': PaymentMethodDomainResourcePaymentMethodStatus }); -export type PaymentMethodDomainModel = z.infer; - -export const PayoutCanceled = z.object({ +export const PayoutCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutCanceledModel = z.infer; - -export const PayoutCreated = z.object({ +export const PayoutCreated: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutCreatedModel = z.infer; - -export const PayoutFailed = z.object({ +export const PayoutFailed: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutFailedModel = z.infer; - -export const PayoutPaid = z.object({ +export const PayoutPaid: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutPaidModel = z.infer; - -export const PayoutReconciliationCompleted = z.object({ +export const PayoutReconciliationCompleted: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutReconciliationCompletedModel = z.infer; - -export const PayoutUpdated = z.object({ +export const PayoutUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Payout) }); -export type PayoutUpdatedModel = z.infer; - -export const PersonCreated = z.object({ +export const PersonCreated: z.ZodType = z.object({ 'object': Person }); -export type PersonCreatedModel = z.infer; - -export const PersonDeleted = z.object({ +export const PersonDeleted: z.ZodType = z.object({ 'object': Person }); -export type PersonDeletedModel = z.infer; - -export const PersonUpdated = z.object({ +export const PersonUpdated: z.ZodType = z.object({ 'object': Person }); -export type PersonUpdatedModel = z.infer; - -export const PlanCreated = z.object({ +export const PlanCreated: z.ZodType = z.object({ 'object': Plan }); -export type PlanCreatedModel = z.infer; - -export const PlanDeleted = z.object({ +export const PlanDeleted: z.ZodType = z.object({ 'object': Plan }); -export type PlanDeletedModel = z.infer; - -export const PlanUpdated = z.object({ +export const PlanUpdated: z.ZodType = z.object({ 'object': Plan }); -export type PlanUpdatedModel = z.infer; - -export const PriceCreated = z.object({ +export const PriceCreated: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceCreatedModel = z.infer; - -export const PriceDeleted = z.object({ +export const PriceDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceDeletedModel = z.infer; - -export const PriceUpdated = z.object({ +export const PriceUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Price) }); -export type PriceUpdatedModel = z.infer; - -export const RedactionResourceRootObjects = z.object({ +export const RedactionResourceRootObjects: z.ZodType = z.object({ 'charges': z.array(z.string()), 'checkout_sessions': z.array(z.string()), 'customers': z.array(z.string()), @@ -15443,9 +24076,7 @@ export const RedactionResourceRootObjects = z.object({ 'setup_intents': z.array(z.string()) }); -export type RedactionResourceRootObjectsModel = z.infer; - -export const PrivacyRedactionJob = z.object({ +export const PrivacyRedactionJob: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -15455,46 +24086,32 @@ export const PrivacyRedactionJob = z.object({ 'validation_behavior': z.enum(['error', 'fix']) }); -export type PrivacyRedactionJobModel = z.infer; - -export const PrivacyRedactionJobCanceled = z.object({ +export const PrivacyRedactionJobCanceled: z.ZodType = z.object({ 'object': PrivacyRedactionJob }); -export type PrivacyRedactionJobCanceledModel = z.infer; - -export const PrivacyRedactionJobCreated = z.object({ +export const PrivacyRedactionJobCreated: z.ZodType = z.object({ 'object': PrivacyRedactionJob }); -export type PrivacyRedactionJobCreatedModel = z.infer; - -export const PrivacyRedactionJobReady = z.object({ +export const PrivacyRedactionJobReady: z.ZodType = z.object({ 'object': PrivacyRedactionJob }); -export type PrivacyRedactionJobReadyModel = z.infer; - -export const PrivacyRedactionJobSucceeded = z.object({ +export const PrivacyRedactionJobSucceeded: z.ZodType = z.object({ 'object': PrivacyRedactionJob }); -export type PrivacyRedactionJobSucceededModel = z.infer; - -export const PrivacyRedactionJobValidationError = z.object({ +export const PrivacyRedactionJobValidationError: z.ZodType = z.object({ 'object': PrivacyRedactionJob }); -export type PrivacyRedactionJobValidationErrorModel = z.infer; - -export const RedactionResourceErroringObject = z.object({ +export const RedactionResourceErroringObject: z.ZodType = z.object({ 'id': z.string(), 'object_type': z.string() }); -export type RedactionResourceErroringObjectModel = z.infer; - -export const PrivacyRedactionJobValidationError_1 = z.object({ +export const PrivacyRedactionJobValidationError_1: z.ZodType = z.object({ 'code': z.enum(['invalid_cascading_source', 'invalid_file_purpose', 'invalid_state', 'locked_by_other_job', 'too_many_objects']), 'erroring_object': z.union([RedactionResourceErroringObject]), 'id': z.string(), @@ -15502,88 +24119,64 @@ export const PrivacyRedactionJobValidationError_1 = z.object({ 'object': z.enum(['privacy.redaction_job_validation_error']) }); -export type PrivacyRedactionJobValidationError_1Model = z.infer; - -export const ProductCreated = z.object({ +export const ProductCreated: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductCreatedModel = z.infer; - -export const ProductDeleted = z.object({ +export const ProductDeleted: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductDeletedModel = z.infer; - -export const ProductUpdated = z.object({ +export const ProductUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Product) }); -export type ProductUpdatedModel = z.infer; - -export const ProductFeature = z.object({ +export const ProductFeature: z.ZodType = z.object({ 'entitlement_feature': EntitlementsFeature, 'id': z.string(), 'livemode': z.boolean(), 'object': z.enum(['product_feature']) }); -export type ProductFeatureModel = z.infer; - -export const PromotionCodeCreated = z.object({ +export const PromotionCodeCreated: z.ZodType = z.object({ 'object': z.lazy(() => PromotionCode) }); -export type PromotionCodeCreatedModel = z.infer; - -export const PromotionCodeUpdated = z.object({ +export const PromotionCodeUpdated: z.ZodType = z.object({ 'object': z.lazy(() => PromotionCode) }); -export type PromotionCodeUpdatedModel = z.infer; - -export const QuotesResourceAutomaticTax = z.object({ +export const QuotesResourceAutomaticTax: z.ZodType = z.object({ 'enabled': z.boolean(), 'liability': z.union([z.lazy(() => ConnectAccountReference)]), 'provider': z.string(), 'status': z.enum(['complete', 'failed', 'requires_location_inputs']) }); -export type QuotesResourceAutomaticTaxModel = z.infer; - -export const QuotesCoreApiResourceReestimateFailure = z.object({ +export const QuotesCoreApiResourceReestimateFailure: z.ZodType = z.object({ 'failure_code': z.string(), 'message': z.string(), 'reason': z.enum(['automation_failure', 'internal_error']) }); -export type QuotesCoreApiResourceReestimateFailureModel = z.infer; - -export const QuotesCoreApiResourceLastReestimateDetails = z.object({ +export const QuotesCoreApiResourceLastReestimateDetails: z.ZodType = z.object({ 'failed': z.union([QuotesCoreApiResourceReestimateFailure]), 'status': z.enum(['failed', 'in_progress', 'succeeded']) }); -export type QuotesCoreApiResourceLastReestimateDetailsModel = z.infer; - -export const QuotesResourceTotalDetailsResourceBreakdown = z.object({ +export const QuotesResourceTotalDetailsResourceBreakdown: z.ZodType = z.object({ 'discounts': z.array(LineItemsDiscountAmount), 'taxes': z.array(LineItemsTaxAmount) }); -export type QuotesResourceTotalDetailsResourceBreakdownModel = z.infer; - -export const QuotesResourceTotalDetails = z.object({ +export const QuotesResourceTotalDetails: z.ZodType = z.object({ 'amount_discount': z.number().int(), 'amount_shipping': z.number().int(), 'amount_tax': z.number().int(), 'breakdown': QuotesResourceTotalDetailsResourceBreakdown.optional() }); -export type QuotesResourceTotalDetailsModel = z.infer; - -export const QuotesResourceRecurring = z.object({ +export const QuotesResourceRecurring: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'interval': z.enum(['day', 'month', 'week', 'year']), @@ -15591,9 +24184,7 @@ export const QuotesResourceRecurring = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceRecurringModel = z.infer; - -export const QuotesResourceUpfront = z.object({ +export const QuotesResourceUpfront: z.ZodType = z.object({ 'amount_subtotal': z.number().int(), 'amount_total': z.number().int(), 'line_items': z.object({ @@ -15605,49 +24196,37 @@ export const QuotesResourceUpfront = z.object({ 'total_details': QuotesResourceTotalDetails }); -export type QuotesResourceUpfrontModel = z.infer; - -export const QuotesResourceComputed = z.object({ +export const QuotesResourceComputed: z.ZodType = z.object({ 'last_reestimation_details': z.union([QuotesCoreApiResourceLastReestimateDetails]).optional(), 'recurring': z.union([QuotesResourceRecurring]), 'updated_at': z.number().int().optional(), 'upfront': QuotesResourceUpfront }); -export type QuotesResourceComputedModel = z.infer; - export const QuotesResourceFromQuote: z.ZodType = z.object({ 'is_revision': z.boolean(), 'quote': z.union([z.string(), z.lazy(() => Quote)]) }); -export const QuotesResourceStatusDetailsCanceledStatusDetails = z.object({ +export const QuotesResourceStatusDetailsCanceledStatusDetails: z.ZodType = z.object({ 'reason': z.enum(['canceled', 'quote_accepted', 'quote_expired', 'quote_superseded', 'subscription_canceled']), 'transitioned_at': z.number().int() }); -export type QuotesResourceStatusDetailsCanceledStatusDetailsModel = z.infer; - -export const QuotesResourceStatusDetailsLinesInvalid = z.object({ +export const QuotesResourceStatusDetailsLinesInvalid: z.ZodType = z.object({ 'invalid_at': z.number().int(), 'lines': z.array(z.string()) }); -export type QuotesResourceStatusDetailsLinesInvalidModel = z.infer; - -export const QuotesResourceStatusDetailsSubscriptionChanged = z.object({ +export const QuotesResourceStatusDetailsSubscriptionChanged: z.ZodType = z.object({ 'previous_subscription': z.union([z.lazy(() => Subscription)]) }); -export type QuotesResourceStatusDetailsSubscriptionChangedModel = z.infer; - -export const QuotesResourceStatusDetailsSubscriptionScheduleChanged = z.object({ +export const QuotesResourceStatusDetailsSubscriptionScheduleChanged: z.ZodType = z.object({ 'previous_subscription_schedule': z.union([z.lazy(() => SubscriptionSchedule)]) }); -export type QuotesResourceStatusDetailsSubscriptionScheduleChangedModel = z.infer; - -export const QuotesResourceStatusDetailsStaleReason = z.object({ +export const QuotesResourceStatusDetailsStaleReason: z.ZodType = z.object({ 'line_invalid': z.string().optional(), 'lines_invalid': z.array(QuotesResourceStatusDetailsLinesInvalid).optional(), 'marked_stale': z.string().optional(), @@ -15660,55 +24239,41 @@ export const QuotesResourceStatusDetailsStaleReason = z.object({ 'type': z.enum(['accept_failed_validations', 'bill_on_acceptance_invalid', 'line_invalid', 'lines_invalid', 'marked_stale', 'subscription_canceled', 'subscription_changed', 'subscription_expired', 'subscription_schedule_canceled', 'subscription_schedule_changed', 'subscription_schedule_released']) }); -export type QuotesResourceStatusDetailsStaleReasonModel = z.infer; - -export const QuotesResourceStatusDetailsStaleStatusDetails = z.object({ +export const QuotesResourceStatusDetailsStaleStatusDetails: z.ZodType = z.object({ 'expires_at': z.number().int(), 'last_reason': z.union([QuotesResourceStatusDetailsStaleReason]), 'last_updated_at': z.number().int(), 'transitioned_at': z.number().int() }); -export type QuotesResourceStatusDetailsStaleStatusDetailsModel = z.infer; - -export const QuotesResourceStatusDetailsStatusDetails = z.object({ +export const QuotesResourceStatusDetailsStatusDetails: z.ZodType = z.object({ 'canceled': QuotesResourceStatusDetailsCanceledStatusDetails.optional(), 'stale': QuotesResourceStatusDetailsStaleStatusDetails.optional() }); -export type QuotesResourceStatusDetailsStatusDetailsModel = z.infer; - -export const QuotesResourceStatusTransitions = z.object({ +export const QuotesResourceStatusTransitions: z.ZodType = z.object({ 'accepted_at': z.number().int(), 'canceled_at': z.number().int(), 'finalized_at': z.number().int() }); -export type QuotesResourceStatusTransitionsModel = z.infer; - -export const QuotesResourceQuoteLinesTimestampHelpersLineId = z.object({ +export const QuotesResourceQuoteLinesTimestampHelpersLineId: z.ZodType = z.object({ 'id': z.string() }); -export type QuotesResourceQuoteLinesTimestampHelpersLineIdModel = z.infer; - -export const QuotesResourceSubscriptionDataBillFrom = z.object({ +export const QuotesResourceSubscriptionDataBillFrom: z.ZodType = z.object({ 'computed': z.number().int(), 'line_starts_at': z.union([QuotesResourceQuoteLinesTimestampHelpersLineId]), 'timestamp': z.number().int(), 'type': z.enum(['line_starts_at', 'now', 'pause_collection_start', 'quote_acceptance_date', 'timestamp']) }); -export type QuotesResourceSubscriptionDataBillFromModel = z.infer; - -export const QuotesResourceQuoteLinesTimestampHelpersDuration = z.object({ +export const QuotesResourceQuoteLinesTimestampHelpersDuration: z.ZodType = z.object({ 'interval': z.enum(['day', 'month', 'week', 'year']), 'interval_count': z.number().int() }); -export type QuotesResourceQuoteLinesTimestampHelpersDurationModel = z.infer; - -export const QuotesResourceSubscriptionDataBillUntil = z.object({ +export const QuotesResourceSubscriptionDataBillUntil: z.ZodType = z.object({ 'computed': z.number().int(), 'duration': z.union([QuotesResourceQuoteLinesTimestampHelpersDuration]), 'line_ends_at': z.union([QuotesResourceQuoteLinesTimestampHelpersLineId]), @@ -15716,29 +24281,21 @@ export const QuotesResourceSubscriptionDataBillUntil = z.object({ 'type': z.enum(['duration', 'line_ends_at', 'schedule_end', 'timestamp', 'upcoming_invoice']) }); -export type QuotesResourceSubscriptionDataBillUntilModel = z.infer; - -export const QuotesResourceSubscriptionDataBillOnAcceptance = z.object({ +export const QuotesResourceSubscriptionDataBillOnAcceptance: z.ZodType = z.object({ 'bill_from': z.union([QuotesResourceSubscriptionDataBillFrom]), 'bill_until': z.union([QuotesResourceSubscriptionDataBillUntil]) }); -export type QuotesResourceSubscriptionDataBillOnAcceptanceModel = z.infer; - -export const QuotesResourceSubscriptionDataBillingMode = z.object({ +export const QuotesResourceSubscriptionDataBillingMode: z.ZodType = z.object({ 'flexible': SubscriptionsResourceBillingModeFlexible.optional(), 'type': z.enum(['classic', 'flexible']) }); -export type QuotesResourceSubscriptionDataBillingModeModel = z.infer; - -export const QuotesResourcePrebilling = z.object({ +export const QuotesResourcePrebilling: z.ZodType = z.object({ 'iterations': z.number().int() }); -export type QuotesResourcePrebillingModel = z.infer; - -export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ +export const QuotesResourceSubscriptionDataSubscriptionData: z.ZodType = z.object({ 'bill_on_acceptance': z.union([QuotesResourceSubscriptionDataBillOnAcceptance]).optional(), 'billing_behavior': z.enum(['prorate_on_next_phase', 'prorate_up_front']).optional(), 'billing_cycle_anchor': z.enum(['reset']).optional(), @@ -15753,17 +24310,13 @@ export const QuotesResourceSubscriptionDataSubscriptionData = z.object({ 'trial_period_days': z.number().int() }); -export type QuotesResourceSubscriptionDataSubscriptionDataModel = z.infer; - -export const QuotesResourceQuoteLinesAppliesTo = z.object({ +export const QuotesResourceQuoteLinesAppliesTo: z.ZodType = z.object({ 'new_reference': z.string(), 'subscription_schedule': z.string(), 'type': z.enum(['new_reference', 'subscription_schedule']) }); -export type QuotesResourceQuoteLinesAppliesToModel = z.infer; - -export const QuotesResourceSubscriptionDataSubscriptionDataOverrides = z.object({ +export const QuotesResourceSubscriptionDataSubscriptionDataOverrides: z.ZodType = z.object({ 'applies_to': QuotesResourceQuoteLinesAppliesTo, 'bill_on_acceptance': z.union([QuotesResourceSubscriptionDataBillOnAcceptance]).optional(), 'billing_behavior': z.enum(['prorate_on_next_phase', 'prorate_up_front']).optional(), @@ -15773,23 +24326,17 @@ export const QuotesResourceSubscriptionDataSubscriptionDataOverrides = z.object( 'proration_behavior': z.enum(['always_invoice', 'create_prorations', 'none']).optional() }); -export type QuotesResourceSubscriptionDataSubscriptionDataOverridesModel = z.infer; - -export const QuotesResourceSubscriptionScheduleWithAppliesTo = z.object({ +export const QuotesResourceSubscriptionScheduleWithAppliesTo: z.ZodType = z.object({ 'applies_to': QuotesResourceQuoteLinesAppliesTo, 'subscription_schedule': z.string() }); -export type QuotesResourceSubscriptionScheduleWithAppliesToModel = z.infer; - -export const QuotesResourceTransferData = z.object({ +export const QuotesResourceTransferData: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_percent': z.number(), 'destination': z.union([z.string(), z.lazy(() => Account)]) }); -export type QuotesResourceTransferDataModel = z.infer; - export const Quote: z.ZodType = z.object({ 'allow_backdated_lines': z.boolean().optional(), 'amount_subtotal': z.number().int(), @@ -15839,73 +24386,51 @@ export const Quote: z.ZodType = z.object({ 'transfer_data': z.union([QuotesResourceTransferData]) }); -export const QuoteAcceptFailed = z.object({ +export const QuoteAcceptFailed: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteAcceptFailedModel = z.infer; - -export const QuoteAccepted = z.object({ +export const QuoteAccepted: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteAcceptedModel = z.infer; - -export const QuoteAccepting = z.object({ +export const QuoteAccepting: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteAcceptingModel = z.infer; - -export const QuoteCanceled = z.object({ +export const QuoteCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteCanceledModel = z.infer; - -export const QuoteCreated = z.object({ +export const QuoteCreated: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteCreatedModel = z.infer; - -export const QuoteDraft = z.object({ +export const QuoteDraft: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteDraftModel = z.infer; - -export const QuoteFinalized = z.object({ +export const QuoteFinalized: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteFinalizedModel = z.infer; - -export const QuoteReestimateFailed = z.object({ +export const QuoteReestimateFailed: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteReestimateFailedModel = z.infer; - -export const QuoteReestimated = z.object({ +export const QuoteReestimated: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteReestimatedModel = z.infer; - -export const QuoteStale = z.object({ +export const QuoteStale: z.ZodType = z.object({ 'object': z.lazy(() => Quote) }); -export type QuoteStaleModel = z.infer; - -export const QuoteLineDiscountEnd = z.object({ +export const QuoteLineDiscountEnd: z.ZodType = z.object({ 'type': z.enum(['line_ends_at']) }); -export type QuoteLineDiscountEndModel = z.infer; - -export const StackableDiscountWithIndexAndDiscountEnd = z.object({ +export const StackableDiscountWithIndexAndDiscountEnd: z.ZodType = z.object({ 'coupon': z.union([z.string(), Coupon]), 'discount': z.union([z.string(), z.lazy(() => Discount)]), 'discount_end': z.union([QuoteLineDiscountEnd]).optional(), @@ -15913,16 +24438,12 @@ export const StackableDiscountWithIndexAndDiscountEnd = z.object({ 'promotion_code': z.union([z.string(), z.lazy(() => PromotionCode)]) }); -export type StackableDiscountWithIndexAndDiscountEndModel = z.infer; - -export const QuotesResourceQuoteLinesTrial = z.object({ +export const QuotesResourceQuoteLinesTrial: z.ZodType = z.object({ 'converts_to': z.array(z.string()).optional(), 'type': z.enum(['free', 'paid']) }); -export type QuotesResourceQuoteLinesTrialModel = z.infer; - -export const QuotesResourceQuoteLinesActionsConfigurationItem = z.object({ +export const QuotesResourceQuoteLinesActionsConfigurationItem: z.ZodType = z.object({ 'discounts': z.array(DiscountsResourceStackableDiscount), 'metadata': z.record(z.string(), z.string()), 'price': z.union([z.string(), z.lazy(() => Price), DeletedPrice]), @@ -15931,15 +24452,11 @@ export const QuotesResourceQuoteLinesActionsConfigurationItem = z.object({ 'trial': z.union([QuotesResourceQuoteLinesTrial]).optional() }); -export type QuotesResourceQuoteLinesActionsConfigurationItemModel = z.infer; - -export const QuotesResourceQuoteLinesActionsRemoveItem = z.object({ +export const QuotesResourceQuoteLinesActionsRemoveItem: z.ZodType = z.object({ 'price': z.union([z.string(), z.lazy(() => Price), DeletedPrice]) }); -export type QuotesResourceQuoteLinesActionsRemoveItemModel = z.infer; - -export const QuoteLineAction = z.object({ +export const QuoteLineAction: z.ZodType = z.object({ 'add_discount': z.union([StackableDiscountWithIndexAndDiscountEnd]), 'add_item': z.union([QuotesResourceQuoteLinesActionsConfigurationItem]), 'add_metadata': z.record(z.string(), z.string()), @@ -15952,23 +24469,17 @@ export const QuoteLineAction = z.object({ 'type': z.enum(['add_discount', 'add_item', 'add_metadata', 'clear_discounts', 'clear_metadata', 'remove_discount', 'remove_item', 'remove_metadata', 'set_discounts', 'set_items', 'set_metadata']) }); -export type QuoteLineActionModel = z.infer; - -export const QuotesResourceQuoteLinesCancelSubscriptionSchedule = z.object({ +export const QuotesResourceQuoteLinesCancelSubscriptionSchedule: z.ZodType = z.object({ 'cancel_at': z.enum(['line_starts_at']), 'invoice_now': z.boolean(), 'prorate': z.boolean() }); -export type QuotesResourceQuoteLinesCancelSubscriptionScheduleModel = z.infer; - -export const QuotesResourceQuoteLinesTimestampHelpersDiscountEnd = z.object({ +export const QuotesResourceQuoteLinesTimestampHelpersDiscountEnd: z.ZodType = z.object({ 'discount': z.string() }); -export type QuotesResourceQuoteLinesTimestampHelpersDiscountEndModel = z.infer; - -export const QuotesResourceQuoteLinesTimestampHelpersEndsAt = z.object({ +export const QuotesResourceQuoteLinesTimestampHelpersEndsAt: z.ZodType = z.object({ 'computed': z.number().int(), 'discount_end': z.union([QuotesResourceQuoteLinesTimestampHelpersDiscountEnd]).optional(), 'duration': z.union([QuotesResourceQuoteLinesTimestampHelpersDuration]), @@ -15976,16 +24487,12 @@ export const QuotesResourceQuoteLinesTimestampHelpersEndsAt = z.object({ 'type': z.enum(['billing_period_end', 'discount_end', 'duration', 'quote_acceptance_date', 'schedule_end', 'timestamp', 'upcoming_invoice']) }); -export type QuotesResourceQuoteLinesTimestampHelpersEndsAtModel = z.infer; - -export const QuotesResourceQuoteLinesSetPauseCollection = z.object({ +export const QuotesResourceQuoteLinesSetPauseCollection: z.ZodType = z.object({ 'set': z.union([SubscriptionSchedulesResourcePauseCollection]).optional(), 'type': z.enum(['remove', 'set']) }); -export type QuotesResourceQuoteLinesSetPauseCollectionModel = z.infer; - -export const QuotesResourceQuoteLinesTimestampHelpersStartsAt = z.object({ +export const QuotesResourceQuoteLinesTimestampHelpersStartsAt: z.ZodType = z.object({ 'computed': z.number().int(), 'discount_end': z.union([QuotesResourceQuoteLinesTimestampHelpersDiscountEnd]).optional(), 'line_ends_at': z.union([QuotesResourceQuoteLinesTimestampHelpersLineId]), @@ -15993,21 +24500,15 @@ export const QuotesResourceQuoteLinesTimestampHelpersStartsAt = z.object({ 'type': z.enum(['discount_end', 'line_ends_at', 'now', 'quote_acceptance_date', 'schedule_end', 'timestamp', 'upcoming_invoice']) }); -export type QuotesResourceQuoteLinesTimestampHelpersStartsAtModel = z.infer; - -export const QuotesResourceQuoteLinesEndBehavior = z.object({ +export const QuotesResourceQuoteLinesEndBehavior: z.ZodType = z.object({ 'prorate_up_front': z.enum(['defer', 'include']) }); -export type QuotesResourceQuoteLinesEndBehaviorModel = z.infer; - -export const QuotesResourceQuoteLinesTrialSettings = z.object({ +export const QuotesResourceQuoteLinesTrialSettings: z.ZodType = z.object({ 'end_behavior': z.union([QuotesResourceQuoteLinesEndBehavior]) }); -export type QuotesResourceQuoteLinesTrialSettingsModel = z.infer; - -export const QuoteLine = z.object({ +export const QuoteLine: z.ZodType = z.object({ 'actions': z.array(QuoteLineAction).optional(), 'applies_to': z.union([QuotesResourceQuoteLinesAppliesTo]), 'billing_cycle_anchor': z.enum(['automatic', 'line_starts_at']), @@ -16022,9 +24523,7 @@ export const QuoteLine = z.object({ 'trial_settings': z.union([QuotesResourceQuoteLinesTrialSettings]).optional() }); -export type QuoteLineModel = z.infer; - -export const QuotePreviewInvoice = z.object({ +export const QuotePreviewInvoice: z.ZodType = z.object({ 'account_country': z.string(), 'account_name': z.string(), 'account_tax_ids': z.array(z.union([z.string(), z.lazy(() => TaxId), DeletedTaxId])), @@ -16115,9 +24614,7 @@ export const QuotePreviewInvoice = z.object({ 'webhooks_delivered_at': z.number().int() }); -export type QuotePreviewInvoiceModel = z.infer; - -export const QuotePreviewSubscriptionSchedule = z.object({ +export const QuotePreviewSubscriptionSchedule: z.ZodType = z.object({ 'application': z.union([z.string(), Application, DeletedApplication]), 'applies_to': QuotesResourceQuoteLinesAppliesTo, 'billing_behavior': z.enum(['prorate_on_next_phase', 'prorate_up_front']).optional(), @@ -16144,9 +24641,7 @@ export const QuotePreviewSubscriptionSchedule = z.object({ 'test_clock': z.union([z.string(), TestHelpersTestClock]) }); -export type QuotePreviewSubscriptionScheduleModel = z.infer; - -export const RadarEarlyFraudWarning = z.object({ +export const RadarEarlyFraudWarning: z.ZodType = z.object({ 'actionable': z.boolean(), 'charge': z.union([z.string(), z.lazy(() => Charge)]), 'created': z.number().int(), @@ -16157,21 +24652,15 @@ export const RadarEarlyFraudWarning = z.object({ 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]).optional() }); -export type RadarEarlyFraudWarningModel = z.infer; - -export const RadarEarlyFraudWarningCreated = z.object({ +export const RadarEarlyFraudWarningCreated: z.ZodType = z.object({ 'object': RadarEarlyFraudWarning }); -export type RadarEarlyFraudWarningCreatedModel = z.infer; - -export const RadarEarlyFraudWarningUpdated = z.object({ +export const RadarEarlyFraudWarningUpdated: z.ZodType = z.object({ 'object': RadarEarlyFraudWarning }); -export type RadarEarlyFraudWarningUpdatedModel = z.infer; - -export const RadarValueListItem = z.object({ +export const RadarValueListItem: z.ZodType = z.object({ 'created': z.number().int(), 'created_by': z.string(), 'id': z.string(), @@ -16181,9 +24670,7 @@ export const RadarValueListItem = z.object({ 'value_list': z.string() }); -export type RadarValueListItemModel = z.infer; - -export const RadarValueList = z.object({ +export const RadarValueList: z.ZodType = z.object({ 'alias': z.string(), 'created': z.number().int(), 'created_by': z.string(), @@ -16201,34 +24688,24 @@ export const RadarValueList = z.object({ 'object': z.enum(['radar.value_list']) }); -export type RadarValueListModel = z.infer; - -export const ReceivedPaymentMethodDetailsFinancialAccount = z.object({ +export const ReceivedPaymentMethodDetailsFinancialAccount: z.ZodType = z.object({ 'id': z.string(), 'network': z.enum(['stripe']) }); -export type ReceivedPaymentMethodDetailsFinancialAccountModel = z.infer; - -export const RefundCreated = z.object({ +export const RefundCreated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundCreatedModel = z.infer; - -export const RefundFailed = z.object({ +export const RefundFailed: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundFailedModel = z.infer; - -export const RefundUpdated = z.object({ +export const RefundUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Refund) }); -export type RefundUpdatedModel = z.infer; - -export const ReportingReportRun = z.object({ +export const ReportingReportRun: z.ZodType = z.object({ 'created': z.number().int(), 'error': z.string(), 'id': z.string(), @@ -16241,21 +24718,15 @@ export const ReportingReportRun = z.object({ 'succeeded_at': z.number().int() }); -export type ReportingReportRunModel = z.infer; - -export const ReportingReportRunFailed = z.object({ +export const ReportingReportRunFailed: z.ZodType = z.object({ 'object': ReportingReportRun }); -export type ReportingReportRunFailedModel = z.infer; - -export const ReportingReportRunSucceeded = z.object({ +export const ReportingReportRunSucceeded: z.ZodType = z.object({ 'object': ReportingReportRun }); -export type ReportingReportRunSucceededModel = z.infer; - -export const ReportingReportType = z.object({ +export const ReportingReportType: z.ZodType = z.object({ 'data_available_end': z.number().int(), 'data_available_start': z.number().int(), 'default_columns': z.array(z.string()), @@ -16267,33 +24738,23 @@ export const ReportingReportType = z.object({ 'version': z.number().int() }); -export type ReportingReportTypeModel = z.infer; - -export const ReportingReportTypeUpdated = z.object({ +export const ReportingReportTypeUpdated: z.ZodType = z.object({ 'object': ReportingReportType }); -export type ReportingReportTypeUpdatedModel = z.infer; - -export const ReviewClosed = z.object({ +export const ReviewClosed: z.ZodType = z.object({ 'object': z.lazy(() => Review) }); -export type ReviewClosedModel = z.infer; - -export const ReviewOpened = z.object({ +export const ReviewOpened: z.ZodType = z.object({ 'object': z.lazy(() => Review) }); -export type ReviewOpenedModel = z.infer; - -export const SigmaScheduledQueryRunError = z.object({ +export const SigmaScheduledQueryRunError: z.ZodType = z.object({ 'message': z.string() }); -export type SigmaScheduledQueryRunErrorModel = z.infer; - -export const ScheduledQueryRun = z.object({ +export const ScheduledQueryRun: z.ZodType = z.object({ 'created': z.number().int(), 'data_load_time': z.number().int(), 'error': SigmaScheduledQueryRunError.optional(), @@ -16307,89 +24768,61 @@ export const ScheduledQueryRun = z.object({ 'title': z.string() }); -export type ScheduledQueryRunModel = z.infer; - -export const SetupIntentCanceled = z.object({ +export const SetupIntentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentCanceledModel = z.infer; - -export const SetupIntentCreated = z.object({ +export const SetupIntentCreated: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentCreatedModel = z.infer; - -export const SetupIntentRequiresAction = z.object({ +export const SetupIntentRequiresAction: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentRequiresActionModel = z.infer; - -export const SetupIntentSetupFailed = z.object({ +export const SetupIntentSetupFailed: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentSetupFailedModel = z.infer; - -export const SetupIntentSucceeded = z.object({ +export const SetupIntentSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => SetupIntent) }); -export type SetupIntentSucceededModel = z.infer; - -export const SetupIntentTypeSpecificPaymentMethodOptionsClient = z.object({ +export const SetupIntentTypeSpecificPaymentMethodOptionsClient: z.ZodType = z.object({ 'verification_method': z.enum(['automatic', 'instant', 'microdeposits']).optional() }); -export type SetupIntentTypeSpecificPaymentMethodOptionsClientModel = z.infer; - -export const SigmaScheduledQueryRunCreated = z.object({ +export const SigmaScheduledQueryRunCreated: z.ZodType = z.object({ 'object': ScheduledQueryRun }); -export type SigmaScheduledQueryRunCreatedModel = z.infer; - -export const SourceCanceled = z.object({ +export const SourceCanceled: z.ZodType = z.object({ 'object': Source }); -export type SourceCanceledModel = z.infer; - -export const SourceChargeable = z.object({ +export const SourceChargeable: z.ZodType = z.object({ 'object': Source }); -export type SourceChargeableModel = z.infer; - -export const SourceFailed = z.object({ +export const SourceFailed: z.ZodType = z.object({ 'object': Source }); -export type SourceFailedModel = z.infer; - -export const SourceMandateNotificationAcssDebitData = z.object({ +export const SourceMandateNotificationAcssDebitData: z.ZodType = z.object({ 'statement_descriptor': z.string().optional() }); -export type SourceMandateNotificationAcssDebitDataModel = z.infer; - -export const SourceMandateNotificationBacsDebitData = z.object({ +export const SourceMandateNotificationBacsDebitData: z.ZodType = z.object({ 'last4': z.string().optional() }); -export type SourceMandateNotificationBacsDebitDataModel = z.infer; - -export const SourceMandateNotificationSepaDebitData = z.object({ +export const SourceMandateNotificationSepaDebitData: z.ZodType = z.object({ 'creditor_identifier': z.string().optional(), 'last4': z.string().optional(), 'mandate_reference': z.string().optional() }); -export type SourceMandateNotificationSepaDebitDataModel = z.infer; - -export const SourceMandateNotification_1 = z.object({ +export const SourceMandateNotification_1: z.ZodType = z.object({ 'acss_debit': SourceMandateNotificationAcssDebitData.optional(), 'amount': z.number().int(), 'bacs_debit': SourceMandateNotificationBacsDebitData.optional(), @@ -16404,30 +24837,22 @@ export const SourceMandateNotification_1 = z.object({ 'type': z.string() }); -export type SourceMandateNotification_1Model = z.infer; - -export const SourceMandateNotification = z.object({ +export const SourceMandateNotification: z.ZodType = z.object({ 'object': SourceMandateNotification_1 }); -export type SourceMandateNotificationModel = z.infer; - -export const SourceRefundAttributesRequired = z.object({ +export const SourceRefundAttributesRequired: z.ZodType = z.object({ 'object': Source }); -export type SourceRefundAttributesRequiredModel = z.infer; - -export const SourceTransactionAchCreditTransferData = z.object({ +export const SourceTransactionAchCreditTransferData: z.ZodType = z.object({ 'customer_data': z.string().optional(), 'fingerprint': z.string().optional(), 'last4': z.string().optional(), 'routing_number': z.string().optional() }); -export type SourceTransactionAchCreditTransferDataModel = z.infer; - -export const SourceTransactionChfCreditTransferData = z.object({ +export const SourceTransactionChfCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_address_country': z.string().optional(), 'sender_address_line1': z.string().optional(), @@ -16435,9 +24860,7 @@ export const SourceTransactionChfCreditTransferData = z.object({ 'sender_name': z.string().optional() }); -export type SourceTransactionChfCreditTransferDataModel = z.infer; - -export const SourceTransactionGbpCreditTransferData = z.object({ +export const SourceTransactionGbpCreditTransferData: z.ZodType = z.object({ 'fingerprint': z.string().optional(), 'funding_method': z.string().optional(), 'last4': z.string().optional(), @@ -16447,24 +24870,18 @@ export const SourceTransactionGbpCreditTransferData = z.object({ 'sender_sort_code': z.string().optional() }); -export type SourceTransactionGbpCreditTransferDataModel = z.infer; - -export const SourceTransactionPaperCheckData = z.object({ +export const SourceTransactionPaperCheckData: z.ZodType = z.object({ 'available_at': z.string().optional(), 'invoices': z.string().optional() }); -export type SourceTransactionPaperCheckDataModel = z.infer; - -export const SourceTransactionSepaCreditTransferData = z.object({ +export const SourceTransactionSepaCreditTransferData: z.ZodType = z.object({ 'reference': z.string().optional(), 'sender_iban': z.string().optional(), 'sender_name': z.string().optional() }); -export type SourceTransactionSepaCreditTransferDataModel = z.infer; - -export const SourceTransaction = z.object({ +export const SourceTransaction: z.ZodType = z.object({ 'ach_credit_transfer': SourceTransactionAchCreditTransferData.optional(), 'amount': z.number().int(), 'chf_credit_transfer': SourceTransactionChfCreditTransferData.optional(), @@ -16481,90 +24898,62 @@ export const SourceTransaction = z.object({ 'type': z.enum(['ach_credit_transfer', 'ach_debit', 'alipay', 'bancontact', 'card', 'card_present', 'eps', 'giropay', 'ideal', 'klarna', 'multibanco', 'p24', 'sepa_debit', 'sofort', 'three_d_secure', 'wechat']) }); -export type SourceTransactionModel = z.infer; - -export const SourceTransactionCreated = z.object({ +export const SourceTransactionCreated: z.ZodType = z.object({ 'object': SourceTransaction }); -export type SourceTransactionCreatedModel = z.infer; - -export const SourceTransactionUpdated = z.object({ +export const SourceTransactionUpdated: z.ZodType = z.object({ 'object': SourceTransaction }); -export type SourceTransactionUpdatedModel = z.infer; - -export const SubscriptionScheduleAborted = z.object({ +export const SubscriptionScheduleAborted: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleAbortedModel = z.infer; - -export const SubscriptionScheduleCanceled = z.object({ +export const SubscriptionScheduleCanceled: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCanceledModel = z.infer; - -export const SubscriptionScheduleCompleted = z.object({ +export const SubscriptionScheduleCompleted: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCompletedModel = z.infer; - -export const SubscriptionScheduleCreated = z.object({ +export const SubscriptionScheduleCreated: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleCreatedModel = z.infer; - -export const SubscriptionScheduleExpiring = z.object({ +export const SubscriptionScheduleExpiring: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleExpiringModel = z.infer; - -export const SubscriptionSchedulePriceMigrationFailed = z.object({ +export const SubscriptionSchedulePriceMigrationFailed: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionSchedulePriceMigrationFailedModel = z.infer; - -export const SubscriptionScheduleReleased = z.object({ +export const SubscriptionScheduleReleased: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleReleasedModel = z.infer; - -export const SubscriptionScheduleUpdated = z.object({ +export const SubscriptionScheduleUpdated: z.ZodType = z.object({ 'object': z.lazy(() => SubscriptionSchedule) }); -export type SubscriptionScheduleUpdatedModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted: z.ZodType = z.object({ 'transaction': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceCommittedModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored: z.ZodType = z.object({ 'reason': z.enum(['another_payment_associated_with_calculation', 'calculation_expired', 'currency_mismatch', 'original_transaction_voided', 'unique_reference_violation']) }); -export type TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredModel = z.infer; - -export const TaxProductResourceTaxAssociationTransactionAttempts = z.object({ +export const TaxProductResourceTaxAssociationTransactionAttempts: z.ZodType = z.object({ 'committed': TaxProductResourceTaxAssociationTransactionAttemptsResourceCommitted.optional(), 'errored': TaxProductResourceTaxAssociationTransactionAttemptsResourceErrored.optional(), 'source': z.string(), 'status': z.string() }); -export type TaxProductResourceTaxAssociationTransactionAttemptsModel = z.infer; - -export const TaxAssociation = z.object({ +export const TaxAssociation: z.ZodType = z.object({ 'calculation': z.string(), 'id': z.string(), 'object': z.enum(['tax.association']), @@ -16572,9 +24961,7 @@ export const TaxAssociation = z.object({ 'tax_transaction_attempts': z.array(TaxProductResourceTaxAssociationTransactionAttempts) }); -export type TaxAssociationModel = z.infer; - -export const TaxProductResourcePostalAddress = z.object({ +export const TaxProductResourcePostalAddress: z.ZodType = z.object({ 'city': z.string(), 'country': z.string(), 'line1': z.string(), @@ -16583,16 +24970,12 @@ export const TaxProductResourcePostalAddress = z.object({ 'state': z.string() }); -export type TaxProductResourcePostalAddressModel = z.infer; - -export const TaxProductResourceCustomerDetailsResourceTaxId = z.object({ +export const TaxProductResourceCustomerDetailsResourceTaxId: z.ZodType = z.object({ 'type': z.enum(['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'aw_tin', 'az_tin', 'ba_tin', 'bb_tin', 'bd_bin', 'bf_ifu', 'bg_uic', 'bh_vat', 'bj_ifu', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cm_niu', 'cn_tin', 'co_nit', 'cr_tin', 'cv_nif', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'et_tin', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kg_tin', 'kh_tin', 'kr_brn', 'kz_bin', 'la_tin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'unknown', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'za_vat', 'zm_tin', 'zw_tin']), 'value': z.string() }); -export type TaxProductResourceCustomerDetailsResourceTaxIdModel = z.infer; - -export const TaxProductResourceCustomerDetails = z.object({ +export const TaxProductResourceCustomerDetails: z.ZodType = z.object({ 'address': z.union([TaxProductResourcePostalAddress]), 'address_source': z.enum(['billing', 'shipping']), 'ip_address': z.string(), @@ -16600,26 +24983,20 @@ export const TaxProductResourceCustomerDetails = z.object({ 'taxability_override': z.enum(['customer_exempt', 'none', 'reverse_charge']) }); -export type TaxProductResourceCustomerDetailsModel = z.infer; - -export const TaxProductResourceJurisdiction = z.object({ +export const TaxProductResourceJurisdiction: z.ZodType = z.object({ 'country': z.string(), 'display_name': z.string(), 'level': z.enum(['city', 'country', 'county', 'district', 'state']), 'state': z.string() }); -export type TaxProductResourceJurisdictionModel = z.infer; - -export const TaxProductResourceLineItemTaxRateDetails = z.object({ +export const TaxProductResourceLineItemTaxRateDetails: z.ZodType = z.object({ 'display_name': z.string(), 'percentage_decimal': z.string(), 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxProductResourceLineItemTaxRateDetailsModel = z.infer; - -export const TaxProductResourceLineItemTaxBreakdown = z.object({ +export const TaxProductResourceLineItemTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'jurisdiction': TaxProductResourceJurisdiction, 'sourcing': z.enum(['destination', 'origin']), @@ -16628,9 +25005,7 @@ export const TaxProductResourceLineItemTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceLineItemTaxBreakdownModel = z.infer; - -export const TaxCalculationLineItem = z.object({ +export const TaxCalculationLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -16645,15 +25020,11 @@ export const TaxCalculationLineItem = z.object({ 'tax_code': z.string() }); -export type TaxCalculationLineItemModel = z.infer; - -export const TaxProductResourceShipFromDetails = z.object({ +export const TaxProductResourceShipFromDetails: z.ZodType = z.object({ 'address': TaxProductResourcePostalAddress }); -export type TaxProductResourceShipFromDetailsModel = z.infer; - -export const TaxProductResourceTaxCalculationShippingCost = z.object({ +export const TaxProductResourceTaxCalculationShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -16662,9 +25033,7 @@ export const TaxProductResourceTaxCalculationShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxCalculationShippingCostModel = z.infer; - -export const TaxProductResourceTaxRateDetails = z.object({ +export const TaxProductResourceTaxRateDetails: z.ZodType = z.object({ 'country': z.string(), 'flat_amount': z.union([TaxRateFlatAmount]), 'percentage_decimal': z.string(), @@ -16673,9 +25042,7 @@ export const TaxProductResourceTaxRateDetails = z.object({ 'tax_type': z.enum(['amusement_tax', 'communications_tax', 'gst', 'hst', 'igst', 'jct', 'lease_tax', 'pst', 'qst', 'retail_delivery_fee', 'rst', 'sales_tax', 'service_tax', 'vat']) }); -export type TaxProductResourceTaxRateDetailsModel = z.infer; - -export const TaxProductResourceTaxBreakdown = z.object({ +export const TaxProductResourceTaxBreakdown: z.ZodType = z.object({ 'amount': z.number().int(), 'inclusive': z.boolean(), 'tax_rate_details': TaxProductResourceTaxRateDetails, @@ -16683,9 +25050,7 @@ export const TaxProductResourceTaxBreakdown = z.object({ 'taxable_amount': z.number().int() }); -export type TaxProductResourceTaxBreakdownModel = z.infer; - -export const TaxCalculation = z.object({ +export const TaxCalculation: z.ZodType = z.object({ 'amount_total': z.number().int(), 'currency': z.string(), 'customer': z.string(), @@ -16708,85 +25073,61 @@ export const TaxCalculation = z.object({ 'tax_date': z.number().int() }); -export type TaxCalculationModel = z.infer; - -export const TaxReportingResourceTaxFormAuSerr = z.object({ +export const TaxReportingResourceTaxFormAuSerr: z.ZodType = z.object({ 'reporting_period_end_date': z.string(), 'reporting_period_start_date': z.string() }); -export type TaxReportingResourceTaxFormAuSerrModel = z.infer; - -export const TaxReportingResourceTaxFormCaMrdp = z.object({ +export const TaxReportingResourceTaxFormCaMrdp: z.ZodType = z.object({ 'reporting_period_end_date': z.string(), 'reporting_period_start_date': z.string() }); -export type TaxReportingResourceTaxFormCaMrdpModel = z.infer; - -export const TaxReportingResourceTaxFormEuDac7 = z.object({ +export const TaxReportingResourceTaxFormEuDac7: z.ZodType = z.object({ 'reporting_period_end_date': z.string(), 'reporting_period_start_date': z.string() }); -export type TaxReportingResourceTaxFormEuDac7Model = z.infer; - -export const TaxReportingResourceTaxFormFilingStatusResourceJurisdiction = z.object({ +export const TaxReportingResourceTaxFormFilingStatusResourceJurisdiction: z.ZodType = z.object({ 'country': z.string(), 'level': z.enum(['country', 'state']), 'state': z.string() }); -export type TaxReportingResourceTaxFormFilingStatusResourceJurisdictionModel = z.infer; - -export const TaxReportingResourceTaxFormFilingStatus = z.object({ +export const TaxReportingResourceTaxFormFilingStatus: z.ZodType = z.object({ 'effective_at': z.number().int(), 'jurisdiction': TaxReportingResourceTaxFormFilingStatusResourceJurisdiction, 'value': z.enum(['accepted', 'filed', 'rejected']) }); -export type TaxReportingResourceTaxFormFilingStatusModel = z.infer; - -export const TaxReportingResourceTaxFormGbMrdp = z.object({ +export const TaxReportingResourceTaxFormGbMrdp: z.ZodType = z.object({ 'reporting_period_end_date': z.string(), 'reporting_period_start_date': z.string() }); -export type TaxReportingResourceTaxFormGbMrdpModel = z.infer; - -export const TaxReportingResourceTaxFormNzMrdp = z.object({ +export const TaxReportingResourceTaxFormNzMrdp: z.ZodType = z.object({ 'reporting_period_end_date': z.string(), 'reporting_period_start_date': z.string() }); -export type TaxReportingResourceTaxFormNzMrdpModel = z.infer; - -export const TaxReportingResourceTaxFormPayee = z.object({ +export const TaxReportingResourceTaxFormPayee: z.ZodType = z.object({ 'account': z.union([z.string(), z.lazy(() => Account)]), 'external_reference': z.string(), 'type': z.enum(['account', 'external_reference']) }); -export type TaxReportingResourceTaxFormPayeeModel = z.infer; - -export const TaxReportingResourceTaxFormUs1099K = z.object({ +export const TaxReportingResourceTaxFormUs1099K: z.ZodType = z.object({ 'reporting_year': z.number().int() }); -export type TaxReportingResourceTaxFormUs1099KModel = z.infer; - -export const TaxReportingResourceTaxFormUs1099Misc = z.object({ +export const TaxReportingResourceTaxFormUs1099Misc: z.ZodType = z.object({ 'reporting_year': z.number().int() }); -export type TaxReportingResourceTaxFormUs1099MiscModel = z.infer; - -export const TaxReportingResourceTaxFormUs1099Nec = z.object({ +export const TaxReportingResourceTaxFormUs1099Nec: z.ZodType = z.object({ 'reporting_year': z.number().int() }); -export type TaxReportingResourceTaxFormUs1099NecModel = z.infer; - export const TaxForm: z.ZodType = z.object({ 'au_serr': TaxReportingResourceTaxFormAuSerr.optional(), 'ca_mrdp': TaxReportingResourceTaxFormCaMrdp.optional(), @@ -16806,95 +25147,67 @@ export const TaxForm: z.ZodType = z.object({ 'us_1099_nec': TaxReportingResourceTaxFormUs1099Nec.optional() }); -export const TaxFormUpdated = z.object({ +export const TaxFormUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TaxForm) }); -export type TaxFormUpdatedModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsDefaultStandard.optional(), 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoodsModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsDefault = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsDefault: z.ZodType = z.object({ 'type': z.enum(['standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsDefaultModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsSimplified = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsSimplified: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsSimplifiedModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEuStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEuStandard: z.ZodType = z.object({ 'place_of_supply_scheme': z.enum(['inbound_goods', 'small_seller', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsEurope = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsEurope: z.ZodType = z.object({ 'standard': TaxProductRegistrationsResourceCountryOptionsEuStandard.optional(), 'type': z.enum(['ioss', 'oss_non_union', 'oss_union', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsEuropeModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard: z.ZodType = z.object({ 'province': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsCaProvinceStandardModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsCanada = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsCanada: z.ZodType = z.object({ 'province_standard': TaxProductRegistrationsResourceCountryOptionsCaProvinceStandard.optional(), 'type': z.enum(['province_standard', 'simplified', 'standard']) }); -export type TaxProductRegistrationsResourceCountryOptionsCanadaModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsThailand = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsThailand: z.ZodType = z.object({ 'type': z.enum(['simplified']) }); -export type TaxProductRegistrationsResourceCountryOptionsThailandModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax: z.ZodType = z.object({ 'jurisdiction': z.string() }); -export type TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection: z.ZodType = z.object({ 'jurisdiction': z.string().optional(), 'type': z.enum(['local_use_tax', 'simplified_sellers_use_tax', 'single_local_use_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUsStateSalesTax: z.ZodType = z.object({ 'elections': z.array(TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection).optional() }); -export type TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.object({ +export const TaxProductRegistrationsResourceCountryOptionsUnitedStates: z.ZodType = z.object({ 'local_amusement_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalAmusementTax.optional(), 'local_lease_tax': TaxProductRegistrationsResourceCountryOptionsUsLocalLeaseTax.optional(), 'state': z.string(), @@ -16902,9 +25215,7 @@ export const TaxProductRegistrationsResourceCountryOptionsUnitedStates = z.objec 'type': z.enum(['local_amusement_tax', 'local_lease_tax', 'state_communications_tax', 'state_retail_delivery_fee', 'state_sales_tax']) }); -export type TaxProductRegistrationsResourceCountryOptionsUnitedStatesModel = z.infer; - -export const TaxProductRegistrationsResourceCountryOptions = z.object({ +export const TaxProductRegistrationsResourceCountryOptions: z.ZodType = z.object({ 'ae': TaxProductRegistrationsResourceCountryOptionsDefaultInboundGoods.optional(), 'al': TaxProductRegistrationsResourceCountryOptionsDefault.optional(), 'am': TaxProductRegistrationsResourceCountryOptionsSimplified.optional(), @@ -17007,9 +25318,7 @@ export const TaxProductRegistrationsResourceCountryOptions = z.object({ 'zw': TaxProductRegistrationsResourceCountryOptionsDefault.optional() }); -export type TaxProductRegistrationsResourceCountryOptionsModel = z.infer; - -export const TaxRegistration = z.object({ +export const TaxRegistration: z.ZodType = z.object({ 'active_from': z.number().int(), 'country': z.string(), 'country_options': TaxProductRegistrationsResourceCountryOptions, @@ -17021,42 +25330,30 @@ export const TaxRegistration = z.object({ 'status': z.enum(['active', 'expired', 'scheduled']) }); -export type TaxRegistrationModel = z.infer; - -export const TaxProductResourceTaxSettingsDefaults = z.object({ +export const TaxProductResourceTaxSettingsDefaults: z.ZodType = z.object({ 'provider': z.enum(['anrok', 'avalara', 'sphere', 'stripe']), 'tax_behavior': z.enum(['exclusive', 'inclusive', 'inferred_by_currency']), 'tax_code': z.string() }); -export type TaxProductResourceTaxSettingsDefaultsModel = z.infer; - -export const TaxProductResourceTaxSettingsHeadOffice = z.object({ +export const TaxProductResourceTaxSettingsHeadOffice: z.ZodType = z.object({ 'address': Address }); -export type TaxProductResourceTaxSettingsHeadOfficeModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourceActive = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourceActive: z.ZodType = z.object({ }); -export type TaxProductResourceTaxSettingsStatusDetailsResourceActiveModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetailsResourcePending = z.object({ +export const TaxProductResourceTaxSettingsStatusDetailsResourcePending: z.ZodType = z.object({ 'missing_fields': z.array(z.string()) }); -export type TaxProductResourceTaxSettingsStatusDetailsResourcePendingModel = z.infer; - -export const TaxProductResourceTaxSettingsStatusDetails = z.object({ +export const TaxProductResourceTaxSettingsStatusDetails: z.ZodType = z.object({ 'active': TaxProductResourceTaxSettingsStatusDetailsResourceActive.optional(), 'pending': TaxProductResourceTaxSettingsStatusDetailsResourcePending.optional() }); -export type TaxProductResourceTaxSettingsStatusDetailsModel = z.infer; - -export const TaxSettings = z.object({ +export const TaxSettings: z.ZodType = z.object({ 'defaults': TaxProductResourceTaxSettingsDefaults, 'head_office': z.union([TaxProductResourceTaxSettingsHeadOffice]), 'livemode': z.boolean(), @@ -17065,21 +25362,15 @@ export const TaxSettings = z.object({ 'status_details': TaxProductResourceTaxSettingsStatusDetails }); -export type TaxSettingsModel = z.infer; - -export const TaxSettingsUpdated = z.object({ +export const TaxSettingsUpdated: z.ZodType = z.object({ 'object': TaxSettings }); -export type TaxSettingsUpdatedModel = z.infer; - -export const TaxProductResourceTaxTransactionLineItemResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionLineItemResourceReversal: z.ZodType = z.object({ 'original_line_item': z.string() }); -export type TaxProductResourceTaxTransactionLineItemResourceReversalModel = z.infer; - -export const TaxTransactionLineItem = z.object({ +export const TaxTransactionLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'id': z.string(), @@ -17095,15 +25386,11 @@ export const TaxTransactionLineItem = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionLineItemModel = z.infer; - -export const TaxProductResourceTaxTransactionResourceReversal = z.object({ +export const TaxProductResourceTaxTransactionResourceReversal: z.ZodType = z.object({ 'original_transaction': z.string() }); -export type TaxProductResourceTaxTransactionResourceReversalModel = z.infer; - -export const TaxProductResourceTaxTransactionShippingCost = z.object({ +export const TaxProductResourceTaxTransactionShippingCost: z.ZodType = z.object({ 'amount': z.number().int(), 'amount_tax': z.number().int(), 'shipping_rate': z.string().optional(), @@ -17112,9 +25399,7 @@ export const TaxProductResourceTaxTransactionShippingCost = z.object({ 'tax_code': z.string() }); -export type TaxProductResourceTaxTransactionShippingCostModel = z.infer; - -export const TaxTransaction = z.object({ +export const TaxTransaction: z.ZodType = z.object({ 'created': z.number().int(), 'currency': z.string(), 'customer': z.string(), @@ -17138,54 +25423,38 @@ export const TaxTransaction = z.object({ 'type': z.enum(['reversal', 'transaction']) }); -export type TaxTransactionModel = z.infer; - -export const TaxRateCreated = z.object({ +export const TaxRateCreated: z.ZodType = z.object({ 'object': TaxRate }); -export type TaxRateCreatedModel = z.infer; - -export const TaxRateUpdated = z.object({ +export const TaxRateUpdated: z.ZodType = z.object({ 'object': TaxRate }); -export type TaxRateUpdatedModel = z.infer; - -export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig: z.ZodType = z.object({ 'splashscreen': z.union([z.string(), z.lazy(() => File)]).optional() }); -export type TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceOfflineConfig = z.object({ +export const TerminalConfigurationConfigurationResourceOfflineConfig: z.ZodType = z.object({ 'enabled': z.boolean() }); -export type TerminalConfigurationConfigurationResourceOfflineConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceReaderSecurityConfig = z.object({ +export const TerminalConfigurationConfigurationResourceReaderSecurityConfig: z.ZodType = z.object({ 'admin_menu_passcode': z.string() }); -export type TerminalConfigurationConfigurationResourceReaderSecurityConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceRebootWindow = z.object({ +export const TerminalConfigurationConfigurationResourceRebootWindow: z.ZodType = z.object({ 'end_hour': z.number().int(), 'start_hour': z.number().int() }); -export type TerminalConfigurationConfigurationResourceRebootWindowModel = z.infer; - -export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig = z.object({ +export const TerminalConfigurationConfigurationResourceCurrencySpecificConfig: z.ZodType = z.object({ 'fixed_amounts': z.array(z.number().int()).optional(), 'percentages': z.array(z.number().int()).optional(), 'smart_tip_threshold': z.number().int().optional() }); -export type TerminalConfigurationConfigurationResourceCurrencySpecificConfigModel = z.infer; - -export const TerminalConfigurationConfigurationResourceTipping = z.object({ +export const TerminalConfigurationConfigurationResourceTipping: z.ZodType = z.object({ 'aed': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'aud': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), 'bgn': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional(), @@ -17210,18 +25479,14 @@ export const TerminalConfigurationConfigurationResourceTipping = z.object({ 'usd': TerminalConfigurationConfigurationResourceCurrencySpecificConfig.optional() }); -export type TerminalConfigurationConfigurationResourceTippingModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterprisePeapWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'password': z.string(), 'ssid': z.string(), 'username': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterprisePeapWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.object({ +export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi: z.ZodType = z.object({ 'ca_certificate_file': z.string().optional(), 'client_certificate_file': z.string(), 'private_key_file': z.string(), @@ -17229,25 +25494,19 @@ export const TerminalConfigurationConfigurationResourceEnterpriseTlsWifi = z.obj 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourceEnterpriseTlsWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourcePersonalPskWifi = z.object({ +export const TerminalConfigurationConfigurationResourcePersonalPskWifi: z.ZodType = z.object({ 'password': z.string(), 'ssid': z.string() }); -export type TerminalConfigurationConfigurationResourcePersonalPskWifiModel = z.infer; - -export const TerminalConfigurationConfigurationResourceWifiConfig = z.object({ +export const TerminalConfigurationConfigurationResourceWifiConfig: z.ZodType = z.object({ 'enterprise_eap_peap': TerminalConfigurationConfigurationResourceEnterprisePeapWifi.optional(), 'enterprise_eap_tls': TerminalConfigurationConfigurationResourceEnterpriseTlsWifi.optional(), 'personal_psk': TerminalConfigurationConfigurationResourcePersonalPskWifi.optional(), 'type': z.enum(['enterprise_eap_peap', 'enterprise_eap_tls', 'personal_psk']) }); -export type TerminalConfigurationConfigurationResourceWifiConfigModel = z.infer; - -export const TerminalConfiguration = z.object({ +export const TerminalConfiguration: z.ZodType = z.object({ 'bbpos_wisepad3': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'bbpos_wisepos_e': TerminalConfigurationConfigurationResourceDeviceTypeSpecificConfig.optional(), 'id': z.string(), @@ -17264,17 +25523,13 @@ export const TerminalConfiguration = z.object({ 'wifi': TerminalConfigurationConfigurationResourceWifiConfig.optional() }); -export type TerminalConfigurationModel = z.infer; - -export const TerminalConnectionToken = z.object({ +export const TerminalConnectionToken: z.ZodType = z.object({ 'location': z.string().optional(), 'object': z.enum(['terminal.connection_token']), 'secret': z.string() }); -export type TerminalConnectionTokenModel = z.infer; - -export const TerminalLocation = z.object({ +export const TerminalLocation: z.ZodType = z.object({ 'address': Address, 'address_kana': LegalEntityJapanAddress.optional(), 'address_kanji': LegalEntityJapanAddress.optional(), @@ -17289,22 +25544,16 @@ export const TerminalLocation = z.object({ 'phone': z.string().optional() }); -export type TerminalLocationModel = z.infer; - -export const TerminalOnboardingLinkAppleTermsAndConditions = z.object({ +export const TerminalOnboardingLinkAppleTermsAndConditions: z.ZodType = z.object({ 'allow_relinking': z.boolean(), 'merchant_display_name': z.string() }); -export type TerminalOnboardingLinkAppleTermsAndConditionsModel = z.infer; - -export const TerminalOnboardingLinkLinkOptions = z.object({ +export const TerminalOnboardingLinkLinkOptions: z.ZodType = z.object({ 'apple_terms_and_conditions': z.union([TerminalOnboardingLinkAppleTermsAndConditions]) }); -export type TerminalOnboardingLinkLinkOptionsModel = z.infer; - -export const TerminalOnboardingLink = z.object({ +export const TerminalOnboardingLink: z.ZodType = z.object({ 'link_options': TerminalOnboardingLinkLinkOptions, 'link_type': z.enum(['apple_terms_and_conditions']), 'object': z.enum(['terminal.onboarding_link']), @@ -17312,73 +25561,53 @@ export const TerminalOnboardingLink = z.object({ 'redirect_url': z.string() }); -export type TerminalOnboardingLinkModel = z.infer; - -export const TerminalReaderReaderResourceCustomText = z.object({ +export const TerminalReaderReaderResourceCustomText: z.ZodType = z.object({ 'description': z.string(), 'skip_button': z.string(), 'submit_button': z.string(), 'title': z.string() }); -export type TerminalReaderReaderResourceCustomTextModel = z.infer; - -export const TerminalReaderReaderResourceEmail = z.object({ +export const TerminalReaderReaderResourceEmail: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceEmailModel = z.infer; - -export const TerminalReaderReaderResourceNumeric = z.object({ +export const TerminalReaderReaderResourceNumeric: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceNumericModel = z.infer; - -export const TerminalReaderReaderResourcePhone = z.object({ +export const TerminalReaderReaderResourcePhone: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourcePhoneModel = z.infer; - -export const TerminalReaderReaderResourceChoice = z.object({ +export const TerminalReaderReaderResourceChoice: z.ZodType = z.object({ 'id': z.string(), 'style': z.enum(['primary', 'secondary']), 'text': z.string() }); -export type TerminalReaderReaderResourceChoiceModel = z.infer; - -export const TerminalReaderReaderResourceSelection = z.object({ +export const TerminalReaderReaderResourceSelection: z.ZodType = z.object({ 'choices': z.array(TerminalReaderReaderResourceChoice), 'id': z.string(), 'text': z.string() }); -export type TerminalReaderReaderResourceSelectionModel = z.infer; - -export const TerminalReaderReaderResourceSignature = z.object({ +export const TerminalReaderReaderResourceSignature: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceSignatureModel = z.infer; - -export const TerminalReaderReaderResourceText = z.object({ +export const TerminalReaderReaderResourceText: z.ZodType = z.object({ 'value': z.string() }); -export type TerminalReaderReaderResourceTextModel = z.infer; - -export const TerminalReaderReaderResourceToggle = z.object({ +export const TerminalReaderReaderResourceToggle: z.ZodType = z.object({ 'default_value': z.enum(['disabled', 'enabled']), 'description': z.string(), 'title': z.string(), 'value': z.enum(['disabled', 'enabled']) }); -export type TerminalReaderReaderResourceToggleModel = z.infer; - -export const TerminalReaderReaderResourceInput = z.object({ +export const TerminalReaderReaderResourceInput: z.ZodType = z.object({ 'custom_text': z.union([TerminalReaderReaderResourceCustomText]), 'email': TerminalReaderReaderResourceEmail.optional(), 'numeric': TerminalReaderReaderResourceNumeric.optional(), @@ -17392,90 +25621,66 @@ export const TerminalReaderReaderResourceInput = z.object({ 'type': z.enum(['email', 'numeric', 'phone', 'selection', 'signature', 'text']) }); -export type TerminalReaderReaderResourceInputModel = z.infer; - -export const TerminalReaderReaderResourceCollectInputsAction = z.object({ +export const TerminalReaderReaderResourceCollectInputsAction: z.ZodType = z.object({ 'inputs': z.array(TerminalReaderReaderResourceInput), 'metadata': z.record(z.string(), z.string()) }); -export type TerminalReaderReaderResourceCollectInputsActionModel = z.infer; - -export const TerminalReaderReaderResourceTippingConfig = z.object({ +export const TerminalReaderReaderResourceTippingConfig: z.ZodType = z.object({ 'amount_eligible': z.number().int().optional() }); -export type TerminalReaderReaderResourceTippingConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectConfig = z.object({ +export const TerminalReaderReaderResourceCollectConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceCollectConfigModel = z.infer; - -export const TerminalReaderReaderResourceCollectPaymentMethodAction = z.object({ +export const TerminalReaderReaderResourceCollectPaymentMethodAction: z.ZodType = z.object({ 'account': z.string().optional(), 'collect_config': TerminalReaderReaderResourceCollectConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'payment_method': z.lazy(() => PaymentMethod).optional() }); -export type TerminalReaderReaderResourceCollectPaymentMethodActionModel = z.infer; - -export const TerminalReaderReaderResourceConfirmConfig = z.object({ +export const TerminalReaderReaderResourceConfirmConfig: z.ZodType = z.object({ 'return_url': z.string().optional() }); -export type TerminalReaderReaderResourceConfirmConfigModel = z.infer; - -export const TerminalReaderReaderResourceConfirmPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceConfirmPaymentIntentAction: z.ZodType = z.object({ 'account': z.string().optional(), 'confirm_config': TerminalReaderReaderResourceConfirmConfig.optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]) }); -export type TerminalReaderReaderResourceConfirmPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessConfig = z.object({ +export const TerminalReaderReaderResourceProcessConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional(), 'return_url': z.string().optional(), 'skip_tipping': z.boolean().optional(), 'tipping': TerminalReaderReaderResourceTippingConfig.optional() }); -export type TerminalReaderReaderResourceProcessConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessPaymentIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessPaymentIntentAction: z.ZodType = z.object({ 'account': z.string().optional(), 'payment_intent': z.union([z.string(), z.lazy(() => PaymentIntent)]), 'process_config': TerminalReaderReaderResourceProcessConfig.optional() }); -export type TerminalReaderReaderResourceProcessPaymentIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupConfig = z.object({ +export const TerminalReaderReaderResourceProcessSetupConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceProcessSetupConfigModel = z.infer; - -export const TerminalReaderReaderResourceProcessSetupIntentAction = z.object({ +export const TerminalReaderReaderResourceProcessSetupIntentAction: z.ZodType = z.object({ 'generated_card': z.string().optional(), 'process_config': TerminalReaderReaderResourceProcessSetupConfig.optional(), 'setup_intent': z.union([z.string(), z.lazy(() => SetupIntent)]) }); -export type TerminalReaderReaderResourceProcessSetupIntentActionModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentConfig = z.object({ +export const TerminalReaderReaderResourceRefundPaymentConfig: z.ZodType = z.object({ 'enable_customer_cancellation': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentConfigModel = z.infer; - -export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ +export const TerminalReaderReaderResourceRefundPaymentAction: z.ZodType = z.object({ 'account': z.string().optional(), 'amount': z.number().int().optional(), 'charge': z.union([z.string(), z.lazy(() => Charge)]).optional(), @@ -17488,33 +25693,25 @@ export const TerminalReaderReaderResourceRefundPaymentAction = z.object({ 'reverse_transfer': z.boolean().optional() }); -export type TerminalReaderReaderResourceRefundPaymentActionModel = z.infer; - -export const TerminalReaderReaderResourceLineItem = z.object({ +export const TerminalReaderReaderResourceLineItem: z.ZodType = z.object({ 'amount': z.number().int(), 'description': z.string(), 'quantity': z.number().int() }); -export type TerminalReaderReaderResourceLineItemModel = z.infer; - -export const TerminalReaderReaderResourceCart = z.object({ +export const TerminalReaderReaderResourceCart: z.ZodType = z.object({ 'currency': z.string(), 'line_items': z.array(TerminalReaderReaderResourceLineItem), 'tax': z.number().int(), 'total': z.number().int() }); -export type TerminalReaderReaderResourceCartModel = z.infer; - -export const TerminalReaderReaderResourceSetReaderDisplayAction = z.object({ +export const TerminalReaderReaderResourceSetReaderDisplayAction: z.ZodType = z.object({ 'cart': z.union([TerminalReaderReaderResourceCart]), 'type': z.enum(['cart']) }); -export type TerminalReaderReaderResourceSetReaderDisplayActionModel = z.infer; - -export const TerminalReaderReaderResourceReaderAction = z.object({ +export const TerminalReaderReaderResourceReaderAction: z.ZodType = z.object({ 'collect_inputs': TerminalReaderReaderResourceCollectInputsAction.optional(), 'collect_payment_method': TerminalReaderReaderResourceCollectPaymentMethodAction.optional(), 'confirm_payment_intent': TerminalReaderReaderResourceConfirmPaymentIntentAction.optional(), @@ -17528,9 +25725,7 @@ export const TerminalReaderReaderResourceReaderAction = z.object({ 'type': z.enum(['collect_inputs', 'collect_payment_method', 'confirm_payment_intent', 'process_payment_intent', 'process_setup_intent', 'refund_payment', 'set_reader_display']) }); -export type TerminalReaderReaderResourceReaderActionModel = z.infer; - -export const TerminalReader = z.object({ +export const TerminalReader: z.ZodType = z.object({ 'action': z.union([TerminalReaderReaderResourceReaderAction]), 'device_sw_version': z.string(), 'device_type': z.enum(['bbpos_chipper2x', 'bbpos_wisepad3', 'bbpos_wisepos_e', 'mobile_phone_reader', 'simulated_stripe_s700', 'simulated_wisepos_e', 'stripe_m2', 'stripe_s700', 'verifone_P400']), @@ -17546,33 +25741,23 @@ export const TerminalReader = z.object({ 'status': z.enum(['offline', 'online']) }); -export type TerminalReaderModel = z.infer; - -export const TerminalReaderActionFailed = z.object({ +export const TerminalReaderActionFailed: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionFailedModel = z.infer; - -export const TerminalReaderActionSucceeded = z.object({ +export const TerminalReaderActionSucceeded: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionSucceededModel = z.infer; - -export const TerminalReaderActionUpdated = z.object({ +export const TerminalReaderActionUpdated: z.ZodType = z.object({ 'object': TerminalReader }); -export type TerminalReaderActionUpdatedModel = z.infer; - -export const TerminalReaderCollectedDataResourceMagstripeData = z.object({ +export const TerminalReaderCollectedDataResourceMagstripeData: z.ZodType = z.object({ 'data': z.string() }); -export type TerminalReaderCollectedDataResourceMagstripeDataModel = z.infer; - -export const TerminalReaderCollectedData = z.object({ +export const TerminalReaderCollectedData: z.ZodType = z.object({ 'created': z.number().int(), 'id': z.string(), 'livemode': z.boolean(), @@ -17581,39 +25766,27 @@ export const TerminalReaderCollectedData = z.object({ 'type': z.enum(['magstripe']) }); -export type TerminalReaderCollectedDataModel = z.infer; - -export const TestHelpersTestClockAdvancing = z.object({ +export const TestHelpersTestClockAdvancing: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockAdvancingModel = z.infer; - -export const TestHelpersTestClockCreated = z.object({ +export const TestHelpersTestClockCreated: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockCreatedModel = z.infer; - -export const TestHelpersTestClockDeleted = z.object({ +export const TestHelpersTestClockDeleted: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockDeletedModel = z.infer; - -export const TestHelpersTestClockInternalFailure = z.object({ +export const TestHelpersTestClockInternalFailure: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockInternalFailureModel = z.infer; - -export const TestHelpersTestClockReady = z.object({ +export const TestHelpersTestClockReady: z.ZodType = z.object({ 'object': TestHelpersTestClock }); -export type TestHelpersTestClockReadyModel = z.infer; - -export const Token = z.object({ +export const Token: z.ZodType = z.object({ 'bank_account': z.lazy(() => BankAccount).optional(), 'card': z.lazy(() => Card).optional(), 'client_ip': z.string(), @@ -17625,82 +25798,56 @@ export const Token = z.object({ 'used': z.boolean() }); -export type TokenModel = z.infer; - -export const TopupCanceled = z.object({ +export const TopupCanceled: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupCanceledModel = z.infer; - -export const TopupCreated = z.object({ +export const TopupCreated: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupCreatedModel = z.infer; - -export const TopupFailed = z.object({ +export const TopupFailed: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupFailedModel = z.infer; - -export const TopupReversed = z.object({ +export const TopupReversed: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupReversedModel = z.infer; - -export const TopupSucceeded = z.object({ +export const TopupSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => Topup) }); -export type TopupSucceededModel = z.infer; - -export const TransferCreated = z.object({ +export const TransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferCreatedModel = z.infer; - -export const TransferReversed = z.object({ +export const TransferReversed: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferReversedModel = z.infer; - -export const TransferUpdated = z.object({ +export const TransferUpdated: z.ZodType = z.object({ 'object': z.lazy(() => Transfer) }); -export type TransferUpdatedModel = z.infer; - -export const TreasuryReceivedCreditsResourceStatusTransitions = z.object({ +export const TreasuryReceivedCreditsResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int() }); -export type TreasuryReceivedCreditsResourceStatusTransitionsModel = z.infer; - -export const TreasuryTransactionsResourceBalanceImpact = z.object({ +export const TreasuryTransactionsResourceBalanceImpact: z.ZodType = z.object({ 'cash': z.number().int(), 'inbound_pending': z.number().int(), 'outbound_pending': z.number().int() }); -export type TreasuryTransactionsResourceBalanceImpactModel = z.infer; - -export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceDebitReversalLinkedFlows: z.ZodType = z.object({ 'issuing_dispute': z.string() }); -export type TreasuryReceivedDebitsResourceDebitReversalLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceStatusTransitions = z.object({ +export const TreasuryReceivedDebitsResourceStatusTransitions: z.ZodType = z.object({ 'completed_at': z.number().int() }); -export type TreasuryReceivedDebitsResourceStatusTransitionsModel = z.infer; - export const TreasuryDebitReversal: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -17719,26 +25866,20 @@ export const TreasuryDebitReversal: z.ZodType = z.ob 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryInboundTransfersResourceFailureDetails = z.object({ +export const TreasuryInboundTransfersResourceFailureDetails: z.ZodType = z.object({ 'code': z.enum(['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']) }); -export type TreasuryInboundTransfersResourceFailureDetailsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlows: z.ZodType = z.object({ 'received_debit': z.string() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceLinkedFlowsModel = z.infer; - -export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions = z.object({ +export const TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int().optional(), 'failed_at': z.number().int(), 'succeeded_at': z.number().int() }); -export type TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitionsModel = z.infer; - export const TreasuryInboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -17762,49 +25903,39 @@ export const TreasuryInboundTransfer: z.ZodType = 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetails: z.ZodType = z.object({ 'ip_address': z.string(), 'present': z.boolean() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceEndUserDetailsModel = z.infer; - export const TreasuryOutboundPaymentsResourceReturnedStatus: z.ZodType = z.object({ 'code': z.enum(['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'declined', 'incorrect_account_holder_name', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']), 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'failed_at': z.number().int(), 'posted_at': z.number().int(), 'returned_at': z.number().int() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundPaymentsResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string(), 'imad': z.string(), 'omad': z.string() }); -export type TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails = z.object({ +export const TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundPaymentsResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundPaymentsResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundPayment: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -17830,55 +25961,43 @@ export const TreasuryOutboundPayment: z.ZodType = 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundTransfersResourceAchNetworkDetails = z.object({ +export const TreasuryOutboundTransfersResourceAchNetworkDetails: z.ZodType = z.object({ 'addenda': z.string() }); -export type TreasuryOutboundTransfersResourceAchNetworkDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceNetworkDetails = z.object({ +export const TreasuryOutboundTransfersResourceNetworkDetails: z.ZodType = z.object({ 'ach': z.union([TreasuryOutboundTransfersResourceAchNetworkDetails]).optional(), 'type': z.enum(['ach']) }); -export type TreasuryOutboundTransfersResourceNetworkDetailsModel = z.infer; - export const TreasuryOutboundTransfersResourceReturnedDetails: z.ZodType = z.object({ 'code': z.enum(['account_closed', 'account_frozen', 'bank_account_restricted', 'bank_ownership_changed', 'declined', 'incorrect_account_holder_name', 'invalid_account_number', 'invalid_currency', 'no_account', 'other']), 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryOutboundTransfersResourceStatusTransitions = z.object({ +export const TreasuryOutboundTransfersResourceStatusTransitions: z.ZodType = z.object({ 'canceled_at': z.number().int(), 'failed_at': z.number().int(), 'posted_at': z.number().int(), 'returned_at': z.number().int() }); -export type TreasuryOutboundTransfersResourceStatusTransitionsModel = z.infer; - -export const TreasuryOutboundTransfersResourceAchTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceAchTrackingDetails: z.ZodType = z.object({ 'trace_id': z.string() }); -export type TreasuryOutboundTransfersResourceAchTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails: z.ZodType = z.object({ 'chips': z.string(), 'imad': z.string(), 'omad': z.string() }); -export type TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetailsModel = z.infer; - -export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails = z.object({ +export const TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetails: z.ZodType = z.object({ 'ach': TreasuryOutboundTransfersResourceAchTrackingDetails.optional(), 'type': z.enum(['ach', 'us_domestic_wire']), 'us_domestic_wire': TreasuryOutboundTransfersResourceUsDomesticWireTrackingDetails.optional() }); -export type TreasuryOutboundTransfersResourceOutboundTransferResourceTrackingDetailsModel = z.infer; - export const TreasuryOutboundTransfer: z.ZodType = z.object({ 'amount': z.number().int(), 'cancelable': z.boolean(), @@ -17903,15 +26022,13 @@ export const TreasuryOutboundTransfer: z.ZodType 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount: z.ZodType = z.object({ 'bank_name': z.string(), 'last4': z.string(), 'routing_number': z.string() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccountModel = z.infer; - -export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails = z.object({ +export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetails: z.ZodType = z.object({ 'balance': z.enum(['payments']).optional(), 'billing_details': TreasurySharedResourceBillingDetails, 'financial_account': ReceivedPaymentMethodDetailsFinancialAccount.optional(), @@ -17920,8 +26037,6 @@ export const TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPayme 'us_bank_account': TreasurySharedResourceInitiatingPaymentMethodDetailsUsBankAccount.optional() }); -export type TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsModel = z.infer; - export const TreasuryReceivedCreditsResourceSourceFlowsDetails: z.ZodType = z.object({ 'credit_reversal': z.lazy(() => TreasuryCreditReversal).optional(), 'outbound_payment': z.lazy(() => TreasuryOutboundPayment).optional(), @@ -17939,26 +26054,20 @@ export const TreasuryReceivedCreditsResourceLinkedFlows: z.ZodType = z.object({ 'addenda': z.string() }); -export type TreasuryReceivedCreditsResourceAchNetworkDetailsModel = z.infer; - -export const TreasuryReceivedCreditsResourceNetworkDetails = z.object({ +export const TreasuryReceivedCreditsResourceNetworkDetails: z.ZodType = z.object({ 'ach': z.union([TreasuryReceivedCreditsResourceAchNetworkDetails]).optional(), 'type': z.enum(['ach']) }); -export type TreasuryReceivedCreditsResourceNetworkDetailsModel = z.infer; - -export const TreasuryReceivedCreditsResourceReversalDetails = z.object({ +export const TreasuryReceivedCreditsResourceReversalDetails: z.ZodType = z.object({ 'deadline': z.number().int(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']) }); -export type TreasuryReceivedCreditsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedCredit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -17979,7 +26088,7 @@ export const TreasuryReceivedCredit: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ +export const TreasuryReceivedDebitsResourceLinkedFlows: z.ZodType = z.object({ 'debit_reversal': z.string(), 'inbound_transfer': z.string(), 'issuing_authorization': z.string(), @@ -17988,28 +26097,20 @@ export const TreasuryReceivedDebitsResourceLinkedFlows = z.object({ 'received_credit_capital_withholding': z.string().optional() }); -export type TreasuryReceivedDebitsResourceLinkedFlowsModel = z.infer; - -export const TreasuryReceivedDebitsResourceAchNetworkDetails = z.object({ +export const TreasuryReceivedDebitsResourceAchNetworkDetails: z.ZodType = z.object({ 'addenda': z.string() }); -export type TreasuryReceivedDebitsResourceAchNetworkDetailsModel = z.infer; - -export const TreasuryReceivedDebitsResourceNetworkDetails = z.object({ +export const TreasuryReceivedDebitsResourceNetworkDetails: z.ZodType = z.object({ 'ach': z.union([TreasuryReceivedDebitsResourceAchNetworkDetails]).optional(), 'type': z.enum(['ach']) }); -export type TreasuryReceivedDebitsResourceNetworkDetailsModel = z.infer; - -export const TreasuryReceivedDebitsResourceReversalDetails = z.object({ +export const TreasuryReceivedDebitsResourceReversalDetails: z.ZodType = z.object({ 'deadline': z.number().int(), 'restricted_reason': z.enum(['already_reversed', 'deadline_passed', 'network_restricted', 'other', 'source_flow_restricted']) }); -export type TreasuryReceivedDebitsResourceReversalDetailsModel = z.infer; - export const TreasuryReceivedDebit: z.ZodType = z.object({ 'amount': z.number().int(), 'created': z.number().int(), @@ -18058,13 +26159,11 @@ export const TreasuryTransactionEntry: z.ZodType 'type': z.enum(['credit_reversal', 'credit_reversal_posting', 'debit_reversal', 'inbound_transfer', 'inbound_transfer_return', 'issuing_authorization_hold', 'issuing_authorization_release', 'other', 'outbound_payment', 'outbound_payment_cancellation', 'outbound_payment_failure', 'outbound_payment_posting', 'outbound_payment_return', 'outbound_transfer', 'outbound_transfer_cancellation', 'outbound_transfer_failure', 'outbound_transfer_posting', 'outbound_transfer_return', 'received_credit', 'received_debit']) }); -export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions = z.object({ +export const TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions: z.ZodType = z.object({ 'posted_at': z.number().int(), 'void_at': z.number().int() }); -export type TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitionsModel = z.infer; - export const TreasuryTransaction: z.ZodType = z.object({ 'amount': z.number().int(), 'balance_impact': TreasuryTransactionsResourceBalanceImpact, @@ -18105,112 +26204,82 @@ export const TreasuryCreditReversal: z.ZodType = z. 'transaction': z.union([z.string(), z.lazy(() => TreasuryTransaction)]) }); -export const TreasuryCreditReversalCreated = z.object({ +export const TreasuryCreditReversalCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryCreditReversal) }); -export type TreasuryCreditReversalCreatedModel = z.infer; - -export const TreasuryCreditReversalPosted = z.object({ +export const TreasuryCreditReversalPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryCreditReversal) }); -export type TreasuryCreditReversalPostedModel = z.infer; - -export const TreasuryDebitReversalCompleted = z.object({ +export const TreasuryDebitReversalCompleted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalCompletedModel = z.infer; - -export const TreasuryDebitReversalCreated = z.object({ +export const TreasuryDebitReversalCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalCreatedModel = z.infer; - -export const TreasuryDebitReversalInitialCreditGranted = z.object({ +export const TreasuryDebitReversalInitialCreditGranted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryDebitReversal) }); -export type TreasuryDebitReversalInitialCreditGrantedModel = z.infer; - -export const TreasuryFinancialAccountsResourceBalance = z.object({ +export const TreasuryFinancialAccountsResourceBalance: z.ZodType = z.object({ 'cash': z.record(z.string(), z.number().int()), 'inbound_pending': z.record(z.string(), z.number().int()), 'outbound_pending': z.record(z.string(), z.number().int()) }); -export type TreasuryFinancialAccountsResourceBalanceModel = z.infer; - -export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceTogglesSettingStatusDetails: z.ZodType = z.object({ 'code': z.enum(['activating', 'capability_not_requested', 'financial_account_closed', 'rejected_other', 'rejected_unsupported_business', 'requirements_past_due', 'requirements_pending_verification', 'restricted_by_platform', 'restricted_other']), 'resolution': z.enum(['contact_stripe', 'provide_information', 'remove_restriction']), 'restriction': z.enum(['inbound_flows', 'outbound_flows']).optional() }); -export type TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceAbaToggleSettings: z.ZodType = z.object({ 'bank': z.enum(['evolve', 'fifth_third', 'goldman_sachs']).optional(), 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceAbaToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddressesFeatures: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceFinancialAddressesFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceInboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceInboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceInboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceInboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceInboundAchToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceInboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings = z.object({ +export const TreasuryFinancialAccountsResourceOutboundAchToggleSettings: z.ZodType = z.object({ 'requested': z.boolean(), 'status': z.enum(['active', 'pending', 'restricted']), 'status_details': z.array(TreasuryFinancialAccountsResourceTogglesSettingStatusDetails) }); -export type TreasuryFinancialAccountsResourceOutboundAchToggleSettingsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundPayments = z.object({ +export const TreasuryFinancialAccountsResourceOutboundPayments: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundPaymentsModel = z.infer; - -export const TreasuryFinancialAccountsResourceOutboundTransfers = z.object({ +export const TreasuryFinancialAccountsResourceOutboundTransfers: z.ZodType = z.object({ 'ach': TreasuryFinancialAccountsResourceOutboundAchToggleSettings.optional(), 'us_domestic_wire': TreasuryFinancialAccountsResourceToggleSettings.optional() }); -export type TreasuryFinancialAccountsResourceOutboundTransfersModel = z.infer; - -export const TreasuryFinancialAccountFeatures = z.object({ +export const TreasuryFinancialAccountFeatures: z.ZodType = z.object({ 'card_issuing': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'deposit_insurance': TreasuryFinancialAccountsResourceToggleSettings.optional(), 'financial_addresses': TreasuryFinancialAccountsResourceFinancialAddressesFeatures.optional(), @@ -18221,9 +26290,7 @@ export const TreasuryFinancialAccountFeatures = z.object({ 'outbound_transfers': TreasuryFinancialAccountsResourceOutboundTransfers.optional() }); -export type TreasuryFinancialAccountFeaturesModel = z.infer; - -export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ +export const TreasuryFinancialAccountsResourceAbaRecord: z.ZodType = z.object({ 'account_holder_name': z.string(), 'account_number': z.string().optional(), 'account_number_last4': z.string(), @@ -18231,36 +26298,26 @@ export const TreasuryFinancialAccountsResourceAbaRecord = z.object({ 'routing_number': z.string() }); -export type TreasuryFinancialAccountsResourceAbaRecordModel = z.infer; - -export const TreasuryFinancialAccountsResourceFinancialAddress = z.object({ +export const TreasuryFinancialAccountsResourceFinancialAddress: z.ZodType = z.object({ 'aba': TreasuryFinancialAccountsResourceAbaRecord.optional(), 'supported_networks': z.array(z.enum(['ach', 'us_domestic_wire'])).optional(), 'type': z.enum(['aba']) }); -export type TreasuryFinancialAccountsResourceFinancialAddressModel = z.infer; - -export const TreasuryFinancialAccountsResourcePlatformRestrictions = z.object({ +export const TreasuryFinancialAccountsResourcePlatformRestrictions: z.ZodType = z.object({ 'inbound_flows': z.enum(['restricted', 'unrestricted']), 'outbound_flows': z.enum(['restricted', 'unrestricted']) }); -export type TreasuryFinancialAccountsResourcePlatformRestrictionsModel = z.infer; - -export const TreasuryFinancialAccountsResourceClosedStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceClosedStatusDetails: z.ZodType = z.object({ 'reasons': z.array(z.enum(['account_rejected', 'closed_by_platform', 'other'])) }); -export type TreasuryFinancialAccountsResourceClosedStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccountsResourceStatusDetails = z.object({ +export const TreasuryFinancialAccountsResourceStatusDetails: z.ZodType = z.object({ 'closed': z.union([TreasuryFinancialAccountsResourceClosedStatusDetails]) }); -export type TreasuryFinancialAccountsResourceStatusDetailsModel = z.infer; - -export const TreasuryFinancialAccount = z.object({ +export const TreasuryFinancialAccount: z.ZodType = z.object({ 'active_features': z.array(z.enum(['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'])).optional(), 'balance': TreasuryFinancialAccountsResourceBalance, 'country': z.string(), @@ -18282,159 +26339,107 @@ export const TreasuryFinancialAccount = z.object({ 'supported_currencies': z.array(z.string()) }); -export type TreasuryFinancialAccountModel = z.infer; - -export const TreasuryFinancialAccountClosed = z.object({ +export const TreasuryFinancialAccountClosed: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountClosedModel = z.infer; - -export const TreasuryFinancialAccountCreated = z.object({ +export const TreasuryFinancialAccountCreated: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountCreatedModel = z.infer; - -export const TreasuryFinancialAccountFeaturesStatusUpdated = z.object({ +export const TreasuryFinancialAccountFeaturesStatusUpdated: z.ZodType = z.object({ 'object': TreasuryFinancialAccount }); -export type TreasuryFinancialAccountFeaturesStatusUpdatedModel = z.infer; - -export const TreasuryInboundTransferCanceled = z.object({ +export const TreasuryInboundTransferCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferCanceledModel = z.infer; - -export const TreasuryInboundTransferCreated = z.object({ +export const TreasuryInboundTransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferCreatedModel = z.infer; - -export const TreasuryInboundTransferFailed = z.object({ +export const TreasuryInboundTransferFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferFailedModel = z.infer; - -export const TreasuryInboundTransferSucceeded = z.object({ +export const TreasuryInboundTransferSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryInboundTransfer) }); -export type TreasuryInboundTransferSucceededModel = z.infer; - -export const TreasuryOutboundPaymentCanceled = z.object({ +export const TreasuryOutboundPaymentCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentCanceledModel = z.infer; - -export const TreasuryOutboundPaymentCreated = z.object({ +export const TreasuryOutboundPaymentCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentCreatedModel = z.infer; - -export const TreasuryOutboundPaymentExpectedArrivalDateUpdated = z.object({ +export const TreasuryOutboundPaymentExpectedArrivalDateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedModel = z.infer; - -export const TreasuryOutboundPaymentFailed = z.object({ +export const TreasuryOutboundPaymentFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentFailedModel = z.infer; - -export const TreasuryOutboundPaymentPosted = z.object({ +export const TreasuryOutboundPaymentPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentPostedModel = z.infer; - -export const TreasuryOutboundPaymentReturned = z.object({ +export const TreasuryOutboundPaymentReturned: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentReturnedModel = z.infer; - -export const TreasuryOutboundPaymentTrackingDetailsUpdated = z.object({ +export const TreasuryOutboundPaymentTrackingDetailsUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundPayment) }); -export type TreasuryOutboundPaymentTrackingDetailsUpdatedModel = z.infer; - -export const TreasuryOutboundTransferCanceled = z.object({ +export const TreasuryOutboundTransferCanceled: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferCanceledModel = z.infer; - -export const TreasuryOutboundTransferCreated = z.object({ +export const TreasuryOutboundTransferCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferCreatedModel = z.infer; - -export const TreasuryOutboundTransferExpectedArrivalDateUpdated = z.object({ +export const TreasuryOutboundTransferExpectedArrivalDateUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferExpectedArrivalDateUpdatedModel = z.infer; - -export const TreasuryOutboundTransferFailed = z.object({ +export const TreasuryOutboundTransferFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferFailedModel = z.infer; - -export const TreasuryOutboundTransferPosted = z.object({ +export const TreasuryOutboundTransferPosted: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferPostedModel = z.infer; - -export const TreasuryOutboundTransferReturned = z.object({ +export const TreasuryOutboundTransferReturned: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferReturnedModel = z.infer; - -export const TreasuryOutboundTransferTrackingDetailsUpdated = z.object({ +export const TreasuryOutboundTransferTrackingDetailsUpdated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryOutboundTransfer) }); -export type TreasuryOutboundTransferTrackingDetailsUpdatedModel = z.infer; - -export const TreasuryReceivedCreditCreated = z.object({ +export const TreasuryReceivedCreditCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditCreatedModel = z.infer; - -export const TreasuryReceivedCreditFailed = z.object({ +export const TreasuryReceivedCreditFailed: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditFailedModel = z.infer; - -export const TreasuryReceivedCreditSucceeded = z.object({ +export const TreasuryReceivedCreditSucceeded: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedCredit) }); -export type TreasuryReceivedCreditSucceededModel = z.infer; - -export const TreasuryReceivedDebitCreated = z.object({ +export const TreasuryReceivedDebitCreated: z.ZodType = z.object({ 'object': z.lazy(() => TreasuryReceivedDebit) }); -export type TreasuryReceivedDebitCreatedModel = z.infer; - -export const WebhookEndpoint = z.object({ +export const WebhookEndpoint: z.ZodType = z.object({ 'api_version': z.string(), 'application': z.string(), 'created': z.number().int(), @@ -18447,6 +26452,4 @@ export const WebhookEndpoint = z.object({ 'secret': z.string().optional(), 'status': z.string(), 'url': z.string() -}); - -export type WebhookEndpointModel = z.infer; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/twilo/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/twilo/models.ts index c68a95a..9167141 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/twilo/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/twilo/models.ts @@ -1,6 +1,163 @@ import { z } from 'zod'; -export const EventWebhookRequest = z.object({ +// Helper types for schemas + +export type EventWebhookRequestModel = { + 'enabled'?: boolean | undefined; + 'url': string; + 'group_resubscribe'?: boolean | undefined; + 'delivered'?: boolean | undefined; + 'group_unsubscribe'?: boolean | undefined; + 'spam_report'?: boolean | undefined; + 'bounce'?: boolean | undefined; + 'deferred'?: boolean | undefined; + 'unsubscribe'?: boolean | undefined; + 'processed'?: boolean | undefined; + 'open'?: boolean | undefined; + 'click'?: boolean | undefined; + 'dropped'?: boolean | undefined; + 'friendly_name'?: string | undefined; + 'oauth_client_id'?: string | undefined; + 'oauth_client_secret'?: string | undefined; + 'oauth_token_url'?: string | undefined; +}; + +export type EventWebhookTestRequestModel = { + 'id'?: string | undefined; + 'url': string; + 'oauth_client_id'?: string | undefined; + 'oauth_client_secret'?: string | undefined; + 'oauth_token_url'?: string | undefined; +}; + +export type EventWebhookBaseResponsePropsModel = { + 'enabled'?: boolean | undefined; + 'url'?: string | undefined; + 'account_status_change'?: boolean | undefined; + 'group_resubscribe'?: boolean | undefined; + 'delivered'?: boolean | undefined; + 'group_unsubscribe'?: boolean | undefined; + 'spam_report'?: boolean | undefined; + 'bounce'?: boolean | undefined; + 'deferred'?: boolean | undefined; + 'unsubscribe'?: boolean | undefined; + 'processed'?: boolean | undefined; + 'open'?: boolean | undefined; + 'click'?: boolean | undefined; + 'dropped'?: boolean | undefined; + 'friendly_name'?: string | undefined; + 'id'?: string | undefined; +}; + +export type EventWebhookDateResponsePropsModel = { + 'created_date'?: string | undefined; + 'updated_date'?: string | undefined; +}; + +export type EventWebhookOauthResponsePropsModel = { + 'oauth_client_id'?: string | undefined; + 'oauth_token_url'?: string | undefined; +}; + +export type EventWebhookSignedResponsePropModel = { + 'public_key'?: string | undefined; +}; + +export type EventWebhookUnsignedResponseModel = { + 'enabled'?: boolean | undefined; + 'url'?: string | undefined; + 'account_status_change'?: boolean | undefined; + 'group_resubscribe'?: boolean | undefined; + 'delivered'?: boolean | undefined; + 'group_unsubscribe'?: boolean | undefined; + 'spam_report'?: boolean | undefined; + 'bounce'?: boolean | undefined; + 'deferred'?: boolean | undefined; + 'unsubscribe'?: boolean | undefined; + 'processed'?: boolean | undefined; + 'open'?: boolean | undefined; + 'click'?: boolean | undefined; + 'dropped'?: boolean | undefined; + 'friendly_name'?: string | undefined; + 'id'?: string | undefined; + 'created_date'?: string | undefined; + 'updated_date'?: string | undefined; + 'oauth_client_id'?: string | undefined; + 'oauth_token_url'?: string | undefined; +}; + +export type EventWebhookSignedResponseModel = { + 'enabled'?: boolean | undefined; + 'url'?: string | undefined; + 'account_status_change'?: boolean | undefined; + 'group_resubscribe'?: boolean | undefined; + 'delivered'?: boolean | undefined; + 'group_unsubscribe'?: boolean | undefined; + 'spam_report'?: boolean | undefined; + 'bounce'?: boolean | undefined; + 'deferred'?: boolean | undefined; + 'unsubscribe'?: boolean | undefined; + 'processed'?: boolean | undefined; + 'open'?: boolean | undefined; + 'click'?: boolean | undefined; + 'dropped'?: boolean | undefined; + 'friendly_name'?: string | undefined; + 'id'?: string | undefined; + 'created_date'?: string | undefined; + 'updated_date'?: string | undefined; + 'oauth_client_id'?: string | undefined; + 'oauth_token_url'?: string | undefined; + 'public_key'?: string | undefined; +}; + +export type EventWebhookNoDatesResponseModel = { + 'enabled'?: boolean | undefined; + 'url'?: string | undefined; + 'account_status_change'?: boolean | undefined; + 'group_resubscribe'?: boolean | undefined; + 'delivered'?: boolean | undefined; + 'group_unsubscribe'?: boolean | undefined; + 'spam_report'?: boolean | undefined; + 'bounce'?: boolean | undefined; + 'deferred'?: boolean | undefined; + 'unsubscribe'?: boolean | undefined; + 'processed'?: boolean | undefined; + 'open'?: boolean | undefined; + 'click'?: boolean | undefined; + 'dropped'?: boolean | undefined; + 'friendly_name'?: string | undefined; + 'id'?: string | undefined; + 'oauth_client_id'?: string | undefined; + 'oauth_token_url'?: string | undefined; + 'public_key'?: string | undefined; +}; + +export type EventWebhookAllResponseModel = { + 'max_allowed'?: number | undefined; + 'webhooks'?: EventWebhookSignedResponseModel[] | undefined; +}; + +export type ParseSettingModel = { + 'url'?: string | undefined; + 'hostname'?: string | undefined; + 'spam_check'?: boolean | undefined; + 'send_raw'?: boolean | undefined; +}; + +export type ErrorResponseModel = { + 'errors'?: Array<{ + 'message'?: string | undefined; + 'field'?: string | undefined; + 'help'?: {} | undefined; +}> | undefined; + 'id'?: string | undefined; +}; + +export type AggregatedByModel = 'day' | 'week' | 'month'; + + + +export const EventWebhookRequest: z.ZodType = z.object({ 'enabled': z.boolean().optional(), 'url': z.string(), 'group_resubscribe': z.boolean().optional(), @@ -20,9 +177,7 @@ export const EventWebhookRequest = z.object({ 'oauth_token_url': z.string().optional() }); -export type EventWebhookRequestModel = z.infer; - -export const EventWebhookTestRequest = z.object({ +export const EventWebhookTestRequest: z.ZodType = z.object({ 'id': z.string().optional(), 'url': z.string(), 'oauth_client_id': z.string().optional(), @@ -30,9 +185,7 @@ export const EventWebhookTestRequest = z.object({ 'oauth_token_url': z.string().optional() }); -export type EventWebhookTestRequestModel = z.infer; - -export const EventWebhookBaseResponseProps = z.object({ +export const EventWebhookBaseResponseProps: z.ZodType = z.object({ 'enabled': z.boolean().optional(), 'url': z.string().optional(), 'account_status_change': z.boolean().optional(), @@ -51,29 +204,21 @@ export const EventWebhookBaseResponseProps = z.object({ 'id': z.string().optional() }); -export type EventWebhookBaseResponsePropsModel = z.infer; - -export const EventWebhookDateResponseProps = z.object({ +export const EventWebhookDateResponseProps: z.ZodType = z.object({ 'created_date': z.iso.datetime().optional(), 'updated_date': z.iso.datetime().optional() }); -export type EventWebhookDateResponsePropsModel = z.infer; - -export const EventWebhookOauthResponseProps = z.object({ +export const EventWebhookOauthResponseProps: z.ZodType = z.object({ 'oauth_client_id': z.string().optional(), 'oauth_token_url': z.string().optional() }); -export type EventWebhookOauthResponsePropsModel = z.infer; - -export const EventWebhookSignedResponseProp = z.object({ +export const EventWebhookSignedResponseProp: z.ZodType = z.object({ 'public_key': z.string().optional() }); -export type EventWebhookSignedResponsePropModel = z.infer; - -export const EventWebhookUnsignedResponse = z.object({ +export const EventWebhookUnsignedResponse: z.ZodType = z.object({ 'enabled': z.boolean().optional(), 'url': z.string().optional(), 'account_status_change': z.boolean().optional(), @@ -96,9 +241,7 @@ export const EventWebhookUnsignedResponse = z.object({ 'oauth_token_url': z.string().optional() }); -export type EventWebhookUnsignedResponseModel = z.infer; - -export const EventWebhookSignedResponse = z.object({ +export const EventWebhookSignedResponse: z.ZodType = z.object({ 'enabled': z.boolean().optional(), 'url': z.string().optional(), 'account_status_change': z.boolean().optional(), @@ -122,9 +265,7 @@ export const EventWebhookSignedResponse = z.object({ 'public_key': z.string().optional() }); -export type EventWebhookSignedResponseModel = z.infer; - -export const EventWebhookNoDatesResponse = z.object({ +export const EventWebhookNoDatesResponse: z.ZodType = z.object({ 'enabled': z.boolean().optional(), 'url': z.string().optional(), 'account_status_change': z.boolean().optional(), @@ -146,25 +287,19 @@ export const EventWebhookNoDatesResponse = z.object({ 'public_key': z.string().optional() }); -export type EventWebhookNoDatesResponseModel = z.infer; - -export const EventWebhookAllResponse = z.object({ +export const EventWebhookAllResponse: z.ZodType = z.object({ 'max_allowed': z.number().optional(), 'webhooks': z.array(EventWebhookSignedResponse).optional() }); -export type EventWebhookAllResponseModel = z.infer; - -export const ParseSetting = z.object({ +export const ParseSetting: z.ZodType = z.object({ 'url': z.string().optional(), 'hostname': z.string().optional(), 'spam_check': z.boolean().optional(), 'send_raw': z.boolean().optional() }); -export type ParseSettingModel = z.infer; - -export const ErrorResponse = z.object({ +export const ErrorResponse: z.ZodType = z.object({ 'errors': z.array(z.object({ 'message': z.string().optional(), 'field': z.string().optional(), @@ -173,8 +308,4 @@ export const ErrorResponse = z.object({ 'id': z.string().optional() }); -export type ErrorResponseModel = z.infer; - -export const AggregatedBy = z.enum(['day', 'week', 'month']); - -export type AggregatedByModel = z.infer; \ No newline at end of file +export const AggregatedBy: z.ZodType = z.enum(['day', 'week', 'month']); \ No newline at end of file diff --git a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/youtube/models.ts b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/youtube/models.ts index 3adbd0c..61a1806 100644 --- a/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/youtube/models.ts +++ b/packages/create_freestyle_fetch/src/__tests__/__mocks__/.gen/youtube/models.ts @@ -1,21 +1,127 @@ import { z } from 'zod'; -export const PageInfo = z.object({ +// Helper types for schemas + +export type PageInfoModel = { + 'totalResults'?: number | undefined; + 'resultsPerPage'?: number | undefined; +}; + +export type ThumbnailModel = { + 'url'?: string | undefined; + 'width'?: number | undefined; + 'height'?: number | undefined; +}; + +export type ThumbnailDetailsModel = { + 'default'?: ThumbnailModel | undefined; + 'medium'?: ThumbnailModel | undefined; + 'high'?: ThumbnailModel | undefined; + 'standard'?: ThumbnailModel | undefined; + 'maxres'?: ThumbnailModel | undefined; +}; + +export type VideoLocalizationModel = { + 'title'?: string | undefined; + 'description'?: string | undefined; +}; + +export type VideoSnippetModel = { + 'publishedAt'?: string | undefined; + 'channelId'?: string | undefined; + 'title'?: string | undefined; + 'description'?: string | undefined; + 'thumbnails'?: ThumbnailDetailsModel | undefined; + 'channelTitle'?: string | undefined; + 'tags'?: string[] | undefined; + 'categoryId'?: string | undefined; + 'liveBroadcastContent'?: 'none' | 'upcoming' | 'live' | 'completed' | undefined; + 'localized'?: VideoLocalizationModel | undefined; +}; + +export type VideoContentDetailsModel = { + 'duration'?: string | undefined; + 'dimension'?: string | undefined; + 'definition'?: 'hd' | 'sd' | undefined; + 'caption'?: 'false' | 'true' | undefined; + 'licensedContent'?: boolean | undefined; + 'regionRestriction'?: { + 'allowed'?: string[] | undefined; + 'blocked'?: string[] | undefined; +} | undefined; +}; + +export type VideoStatusModel = { + 'uploadStatus'?: 'deleted' | 'failed' | 'processed' | 'rejected' | 'uploaded' | undefined; + 'failureReason'?: 'codec' | 'conversion' | 'emptyFile' | 'invalidFile' | 'tooSmall' | 'uploadAborted' | undefined; + 'rejectionReason'?: 'claim' | 'copyright' | 'duplicate' | 'inappropriate' | 'legal' | 'length' | 'termsOfUse' | 'trademark' | 'uploaderAccountClosed' | 'uploaderAccountSuspended' | undefined; + 'privacyStatus'?: 'private' | 'public' | 'unlisted' | undefined; + 'license'?: 'creativeCommon' | 'youtube' | undefined; + 'embeddable'?: boolean | undefined; + 'publicStatsViewable'?: boolean | undefined; + 'madeForKids'?: boolean | undefined; +}; + +export type VideoStatisticsModel = { + 'viewCount'?: string | undefined; + 'likeCount'?: string | undefined; + 'dislikeCount'?: string | undefined; + 'favoriteCount'?: string | undefined; + 'commentCount'?: string | undefined; +}; + +export type VideoPlayerModel = { + 'embedHtml'?: string | undefined; + 'embedHeight'?: number | undefined; + 'embedWidth'?: number | undefined; +}; + +export type VideoModel = { + 'kind'?: string | undefined; + 'etag'?: string | undefined; + 'id'?: string | undefined; + 'snippet'?: VideoSnippetModel | undefined; + 'contentDetails'?: VideoContentDetailsModel | undefined; + 'status'?: VideoStatusModel | undefined; + 'statistics'?: VideoStatisticsModel | undefined; + 'player'?: VideoPlayerModel | undefined; +}; + +export type VideoListResponseModel = { + 'kind'?: string | undefined; + 'etag'?: string | undefined; + 'nextPageToken'?: string | undefined; + 'prevPageToken'?: string | undefined; + 'pageInfo'?: PageInfoModel | undefined; + 'items'?: VideoModel[] | undefined; +}; + +export type ErrorResponseModel = { + 'error'?: { + 'code'?: number | undefined; + 'message'?: string | undefined; + 'errors'?: Array<{ + 'domain'?: string | undefined; + 'reason'?: string | undefined; + 'message'?: string | undefined; +}> | undefined; +} | undefined; +}; + + + +export const PageInfo: z.ZodType = z.object({ 'totalResults': z.number().int().optional(), 'resultsPerPage': z.number().int().optional() }); -export type PageInfoModel = z.infer; - -export const Thumbnail = z.object({ +export const Thumbnail: z.ZodType = z.object({ 'url': z.string().optional(), 'width': z.number().int().optional(), 'height': z.number().int().optional() }); -export type ThumbnailModel = z.infer; - -export const ThumbnailDetails = z.object({ +export const ThumbnailDetails: z.ZodType = z.object({ 'default': Thumbnail.optional(), 'medium': Thumbnail.optional(), 'high': Thumbnail.optional(), @@ -23,16 +129,12 @@ export const ThumbnailDetails = z.object({ 'maxres': Thumbnail.optional() }); -export type ThumbnailDetailsModel = z.infer; - -export const VideoLocalization = z.object({ +export const VideoLocalization: z.ZodType = z.object({ 'title': z.string().optional(), 'description': z.string().optional() }); -export type VideoLocalizationModel = z.infer; - -export const VideoSnippet = z.object({ +export const VideoSnippet: z.ZodType = z.object({ 'publishedAt': z.iso.datetime().optional(), 'channelId': z.string().optional(), 'title': z.string().optional(), @@ -45,9 +147,7 @@ export const VideoSnippet = z.object({ 'localized': VideoLocalization.optional() }); -export type VideoSnippetModel = z.infer; - -export const VideoContentDetails = z.object({ +export const VideoContentDetails: z.ZodType = z.object({ 'duration': z.string().regex(/^PT[0-9]+[M|H|S]$/).optional(), 'dimension': z.string().optional(), 'definition': z.enum(['hd', 'sd']).optional(), @@ -59,9 +159,7 @@ export const VideoContentDetails = z.object({ }).optional() }); -export type VideoContentDetailsModel = z.infer; - -export const VideoStatus = z.object({ +export const VideoStatus: z.ZodType = z.object({ 'uploadStatus': z.enum(['deleted', 'failed', 'processed', 'rejected', 'uploaded']).optional(), 'failureReason': z.enum(['codec', 'conversion', 'emptyFile', 'invalidFile', 'tooSmall', 'uploadAborted']).optional(), 'rejectionReason': z.enum(['claim', 'copyright', 'duplicate', 'inappropriate', 'legal', 'length', 'termsOfUse', 'trademark', 'uploaderAccountClosed', 'uploaderAccountSuspended']).optional(), @@ -72,9 +170,7 @@ export const VideoStatus = z.object({ 'madeForKids': z.boolean().optional() }); -export type VideoStatusModel = z.infer; - -export const VideoStatistics = z.object({ +export const VideoStatistics: z.ZodType = z.object({ 'viewCount': z.string().optional(), 'likeCount': z.string().optional(), 'dislikeCount': z.string().optional(), @@ -82,17 +178,13 @@ export const VideoStatistics = z.object({ 'commentCount': z.string().optional() }); -export type VideoStatisticsModel = z.infer; - -export const VideoPlayer = z.object({ +export const VideoPlayer: z.ZodType = z.object({ 'embedHtml': z.string().optional(), 'embedHeight': z.number().int().optional(), 'embedWidth': z.number().int().optional() }); -export type VideoPlayerModel = z.infer; - -export const Video = z.object({ +export const Video: z.ZodType = z.object({ 'kind': z.string().optional(), 'etag': z.string().optional(), 'id': z.string().optional(), @@ -103,9 +195,7 @@ export const Video = z.object({ 'player': VideoPlayer.optional() }); -export type VideoModel = z.infer; - -export const VideoListResponse = z.object({ +export const VideoListResponse: z.ZodType = z.object({ 'kind': z.string().optional(), 'etag': z.string().optional(), 'nextPageToken': z.string().optional(), @@ -114,9 +204,7 @@ export const VideoListResponse = z.object({ 'items': z.array(Video).optional() }); -export type VideoListResponseModel = z.infer; - -export const ErrorResponse = z.object({ +export const ErrorResponse: z.ZodType = z.object({ 'error': z.object({ 'code': z.number().int().optional(), 'message': z.string().optional(), @@ -126,6 +214,4 @@ export const ErrorResponse = z.object({ 'message': z.string().optional() })).optional() }).optional() -}); - -export type ErrorResponseModel = z.infer; \ No newline at end of file +}); \ No newline at end of file