{"version":3,"sources":["../../src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetTaxDocumentRequest = z.object({\n  taxDocumentId: z\n    .string()\n    .describe('ID of the tax document to retrieve.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n});\nexport const GetTaxDocumentResponse = z.object({\n  _id: z\n    .string()\n    .describe('Tax document ID.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    )\n    .optional()\n    .nullable(),\n  _createdDate: z\n    .date()\n    .describe('Date and time the tax document was created.')\n    .optional()\n    .nullable(),\n  _updatedDate: z\n    .date()\n    .describe('Date and time the tax document was last updated.')\n    .optional()\n    .nullable(),\n  revision: z\n    .string()\n    .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n    .describe(\n      'Revision number, which increments by 1 each time the tax document is updated.'\n    )\n    .optional(),\n  accountId: z\n    .string()\n    .describe('ID of the Wix Payments account the tax document belongs to.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    )\n    .optional(),\n  type: z.enum(['FORM_1099_K']).describe('Type of tax document.').optional(),\n  period: z\n    .intersection(\n      z.object({}),\n      z.xor([\n        z.object({ yearPeriod: z.never().optional() }),\n        z.object({\n          yearPeriod: z\n            .object({\n              year: z\n                .number()\n                .int()\n                .describe(\n                  'Calendar year the tax document covers. For example, `2024`.'\n                )\n                .optional(),\n            })\n            .describe('The tax document covers a full calendar year.'),\n        }),\n      ])\n    )\n    .describe('Period the tax document covers.')\n    .optional(),\n  downloadable: z\n    .boolean()\n    .describe(\n      'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n    )\n    .optional(),\n  problematic: z\n    .boolean()\n    .describe(\n      \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n    )\n    .optional(),\n  sourceType: z\n    .enum(['PAYMENT', 'PAYOUT'])\n    .describe(\"How the tax document's amounts are aggregated.\")\n    .optional(),\n  displayName: z\n    .string()\n    .describe(\"Human-readable name for the tax document's file.\")\n    .min(1)\n    .max(1000)\n    .optional()\n    .nullable(),\n});\nexport const ListTaxDocumentsRequest = z.object({\n  accountId: z\n    .string()\n    .describe(\n      'ID of the Wix Payments account whose tax documents are retrieved.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n  options: z\n    .object({\n      paging: z\n        .object({\n          limit: z\n            .number()\n            .int()\n            .describe('Number of items to load.')\n            .min(0)\n            .max(100)\n            .optional()\n            .nullable(),\n          cursor: z\n            .string()\n            .describe(\n              \"Pointer to the next or previous page in the list of results.\\n\\nYou can get the relevant cursor token\\nfrom the `pagingMetadata` object in the previous call's response.\\nNot relevant for the first request.\"\n            )\n            .max(16000)\n            .optional()\n            .nullable(),\n        })\n        .describe('Cursor paging options.')\n        .optional(),\n      type: z.enum(['FORM_1099_K']).optional(),\n    })\n    .optional(),\n});\nexport const ListTaxDocumentsResponse = z.object({\n  taxDocuments: z\n    .array(\n      z.object({\n        _id: z\n          .string()\n          .describe('Tax document ID.')\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional()\n          .nullable(),\n        _createdDate: z\n          .date()\n          .describe('Date and time the tax document was created.')\n          .optional()\n          .nullable(),\n        _updatedDate: z\n          .date()\n          .describe('Date and time the tax document was last updated.')\n          .optional()\n          .nullable(),\n        revision: z\n          .string()\n          .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n          .describe(\n            'Revision number, which increments by 1 each time the tax document is updated.'\n          )\n          .optional(),\n        accountId: z\n          .string()\n          .describe(\n            'ID of the Wix Payments account the tax document belongs to.'\n          )\n          .regex(\n            /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n            'Must be a valid GUID'\n          )\n          .optional(),\n        type: z\n          .enum(['FORM_1099_K'])\n          .describe('Type of tax document.')\n          .optional(),\n        period: z\n          .intersection(\n            z.object({}),\n            z.xor([\n              z.object({ yearPeriod: z.never().optional() }),\n              z.object({\n                yearPeriod: z\n                  .object({\n                    year: z\n                      .number()\n                      .int()\n                      .describe(\n                        'Calendar year the tax document covers. For example, `2024`.'\n                      )\n                      .optional(),\n                  })\n                  .describe('The tax document covers a full calendar year.'),\n              }),\n            ])\n          )\n          .describe('Period the tax document covers.')\n          .optional(),\n        downloadable: z\n          .boolean()\n          .describe(\n            'Whether a file is available to download for the tax document. When `false`, calling Generate File Download Info returns an error.\\n\\nAt least one of `downloadable` and `problematic` is always `true`.'\n          )\n          .optional(),\n        problematic: z\n          .boolean()\n          .describe(\n            \"Whether a problem was found with the tax document's file, for example incorrect data that's being corrected.\\n\\nAt least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.\"\n          )\n          .optional(),\n        sourceType: z\n          .enum(['PAYMENT', 'PAYOUT'])\n          .describe(\"How the tax document's amounts are aggregated.\")\n          .optional(),\n        displayName: z\n          .string()\n          .describe(\"Human-readable name for the tax document's file.\")\n          .min(1)\n          .max(1000)\n          .optional()\n          .nullable(),\n      })\n    )\n    .optional(),\n  pagingMetadata: z\n    .object({\n      count: z\n        .number()\n        .int()\n        .describe('Number of items returned in the response.')\n        .optional()\n        .nullable(),\n      offset: z\n        .number()\n        .int()\n        .describe('Offset that was requested.')\n        .optional()\n        .nullable(),\n      total: z\n        .number()\n        .int()\n        .describe(\n          'Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set.'\n        )\n        .optional()\n        .nullable(),\n      tooManyToCount: z\n        .boolean()\n        .describe(\n          'Flag that indicates the server failed to calculate the `total` field.'\n        )\n        .optional()\n        .nullable(),\n      cursors: z\n        .object({\n          next: z\n            .string()\n            .describe('Cursor pointing to next page in the list of results.')\n            .max(16000)\n            .optional()\n            .nullable(),\n          prev: z\n            .string()\n            .describe(\n              'Cursor pointing to previous page in the list of results.'\n            )\n            .max(16000)\n            .optional()\n            .nullable(),\n        })\n        .describe(\n          'Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used.'\n        )\n        .optional(),\n    })\n    .describe('Paging metadata.')\n    .optional(),\n});\nexport const GenerateFileDownloadInfoRequest = z.object({\n  taxDocumentId: z\n    .string()\n    .describe('ID of the tax document to download a file for.')\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n});\nexport const GenerateFileDownloadInfoResponse = z.object({\n  downloadInfo: z\n    .string()\n    .describe(\"Information for downloading the tax document's file.\")\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,eACG,SAAO,EACP,SAAS,qCAAqC,EAC9C;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,KACG,SAAO,EACP,SAAS,kBAAkB,EAC3B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,6CAA6C,EACtD,SAAS,EACT,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