@wix/auto_sdk_payments_tax-documents 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +44 -0
- package/build/internal/cjs/meta.d.ts +86 -0
- package/build/internal/es/index.typings.d.mts +44 -0
- package/build/internal/es/meta.d.mts +86 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -85
- package/build/cjs/schemas.js +0 -183
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -85
- package/build/es/schemas.mjs +0 -141
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -342
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -312
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -274
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -85
- package/build/internal/cjs/schemas.js +0 -183
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -313
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -283
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -242
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -85
- package/build/internal/es/schemas.mjs +0 -141
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts"],"sourcesContent":["export * from './src/payments-tax-documents-v1-tax-document-tax-documents.schemas.js';\n","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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;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,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,EACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,WACG,SAAO,EACP,SAAS,6DAA6D,EACtE;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAA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AAA,EACH,EACC,SAAS;AAAA,EACZ,gBACG,SAAO;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,2CAA2C,EACpD,SAAS,EACT,SAAS;AAAA,IACZ,QACG,SAAO,EACP,IAAI,EACJ,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACZ,OACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,kCAAoC,SAAO;AAAA,EACtD,eACG,SAAO,EACP,SAAS,gDAAgD,EACzD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,cACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS;AACd,CAAC;","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetTaxDocumentRequest: z.ZodObject<{
|
|
4
|
-
taxDocumentId: z.ZodString;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
declare const GetTaxDocumentResponse: z.ZodObject<{
|
|
7
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
10
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
11
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
12
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
13
|
-
FORM_1099_K: "FORM_1099_K";
|
|
14
|
-
}>>;
|
|
15
|
-
period: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
16
|
-
yearPeriod: z.ZodOptional<z.ZodNever>;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
yearPeriod: z.ZodObject<{
|
|
19
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
}, z.core.$strip>]>>>;
|
|
22
|
-
downloadable: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
problematic: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
25
|
-
PAYMENT: "PAYMENT";
|
|
26
|
-
PAYOUT: "PAYOUT";
|
|
27
|
-
}>>;
|
|
28
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
29
|
-
}, z.core.$strip>;
|
|
30
|
-
declare const ListTaxDocumentsRequest: z.ZodObject<{
|
|
31
|
-
accountId: z.ZodString;
|
|
32
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
paging: z.ZodOptional<z.ZodObject<{
|
|
34
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
-
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
FORM_1099_K: "FORM_1099_K";
|
|
39
|
-
}>>;
|
|
40
|
-
}, z.core.$strip>>;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
declare const ListTaxDocumentsResponse: z.ZodObject<{
|
|
43
|
-
taxDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
-
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
45
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
46
|
-
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
47
|
-
revision: z.ZodOptional<z.ZodString>;
|
|
48
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
49
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
50
|
-
FORM_1099_K: "FORM_1099_K";
|
|
51
|
-
}>>;
|
|
52
|
-
period: z.ZodOptional<z.ZodIntersection<z.ZodObject<{}, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
|
|
53
|
-
yearPeriod: z.ZodOptional<z.ZodNever>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
yearPeriod: z.ZodObject<{
|
|
56
|
-
year: z.ZodOptional<z.ZodNumber>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
}, z.core.$strip>]>>>;
|
|
59
|
-
downloadable: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
-
problematic: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
sourceType: z.ZodOptional<z.ZodEnum<{
|
|
62
|
-
PAYMENT: "PAYMENT";
|
|
63
|
-
PAYOUT: "PAYOUT";
|
|
64
|
-
}>>;
|
|
65
|
-
displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
|
-
}, z.core.$strip>>>;
|
|
67
|
-
pagingMetadata: z.ZodOptional<z.ZodObject<{
|
|
68
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
70
|
-
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
71
|
-
tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
72
|
-
cursors: z.ZodOptional<z.ZodObject<{
|
|
73
|
-
next: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
74
|
-
prev: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
-
}, z.core.$strip>>;
|
|
76
|
-
}, z.core.$strip>>;
|
|
77
|
-
}, z.core.$strip>;
|
|
78
|
-
declare const GenerateFileDownloadInfoRequest: z.ZodObject<{
|
|
79
|
-
taxDocumentId: z.ZodString;
|
|
80
|
-
}, z.core.$strip>;
|
|
81
|
-
declare const GenerateFileDownloadInfoResponse: z.ZodObject<{
|
|
82
|
-
downloadInfo: z.ZodOptional<z.ZodString>;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
|
|
85
|
-
export { GenerateFileDownloadInfoRequest, GenerateFileDownloadInfoResponse, GetTaxDocumentRequest, GetTaxDocumentResponse, ListTaxDocumentsRequest, ListTaxDocumentsResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var GetTaxDocumentRequest = z.object({
|
|
4
|
-
taxDocumentId: z.string().describe("ID of the tax document to retrieve.").regex(
|
|
5
|
-
/^[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}$/,
|
|
6
|
-
"Must be a valid GUID"
|
|
7
|
-
)
|
|
8
|
-
});
|
|
9
|
-
var GetTaxDocumentResponse = z.object({
|
|
10
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
11
|
-
/^[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}$/,
|
|
12
|
-
"Must be a valid GUID"
|
|
13
|
-
).optional().nullable(),
|
|
14
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
15
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
16
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
17
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
18
|
-
).optional(),
|
|
19
|
-
accountId: z.string().describe("ID of the Wix Payments account the tax document belongs to.").regex(
|
|
20
|
-
/^[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}$/,
|
|
21
|
-
"Must be a valid GUID"
|
|
22
|
-
).optional(),
|
|
23
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
24
|
-
period: z.intersection(
|
|
25
|
-
z.object({}),
|
|
26
|
-
z.xor([
|
|
27
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
28
|
-
z.object({
|
|
29
|
-
yearPeriod: z.object({
|
|
30
|
-
year: z.number().int().describe(
|
|
31
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
32
|
-
).optional()
|
|
33
|
-
}).describe("The tax document covers a full calendar year.")
|
|
34
|
-
})
|
|
35
|
-
])
|
|
36
|
-
).describe("Period the tax document covers.").optional(),
|
|
37
|
-
downloadable: z.boolean().describe(
|
|
38
|
-
"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`."
|
|
39
|
-
).optional(),
|
|
40
|
-
problematic: z.boolean().describe(
|
|
41
|
-
"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."
|
|
42
|
-
).optional(),
|
|
43
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
44
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
45
|
-
});
|
|
46
|
-
var ListTaxDocumentsRequest = z.object({
|
|
47
|
-
accountId: z.string().describe(
|
|
48
|
-
"ID of the Wix Payments account whose tax documents are retrieved."
|
|
49
|
-
).regex(
|
|
50
|
-
/^[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}$/,
|
|
51
|
-
"Must be a valid GUID"
|
|
52
|
-
),
|
|
53
|
-
options: z.object({
|
|
54
|
-
paging: z.object({
|
|
55
|
-
limit: z.number().int().describe("Number of items to load.").min(0).max(100).optional().nullable(),
|
|
56
|
-
cursor: z.string().describe(
|
|
57
|
-
"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."
|
|
58
|
-
).max(16e3).optional().nullable()
|
|
59
|
-
}).describe("Cursor paging options.").optional(),
|
|
60
|
-
type: z.enum(["FORM_1099_K"]).optional()
|
|
61
|
-
}).optional()
|
|
62
|
-
});
|
|
63
|
-
var ListTaxDocumentsResponse = z.object({
|
|
64
|
-
taxDocuments: z.array(
|
|
65
|
-
z.object({
|
|
66
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
67
|
-
/^[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}$/,
|
|
68
|
-
"Must be a valid GUID"
|
|
69
|
-
).optional().nullable(),
|
|
70
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
71
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
72
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
73
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
74
|
-
).optional(),
|
|
75
|
-
accountId: z.string().describe(
|
|
76
|
-
"ID of the Wix Payments account the tax document belongs to."
|
|
77
|
-
).regex(
|
|
78
|
-
/^[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}$/,
|
|
79
|
-
"Must be a valid GUID"
|
|
80
|
-
).optional(),
|
|
81
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
82
|
-
period: z.intersection(
|
|
83
|
-
z.object({}),
|
|
84
|
-
z.xor([
|
|
85
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
86
|
-
z.object({
|
|
87
|
-
yearPeriod: z.object({
|
|
88
|
-
year: z.number().int().describe(
|
|
89
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
90
|
-
).optional()
|
|
91
|
-
}).describe("The tax document covers a full calendar year.")
|
|
92
|
-
})
|
|
93
|
-
])
|
|
94
|
-
).describe("Period the tax document covers.").optional(),
|
|
95
|
-
downloadable: z.boolean().describe(
|
|
96
|
-
"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`."
|
|
97
|
-
).optional(),
|
|
98
|
-
problematic: z.boolean().describe(
|
|
99
|
-
"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."
|
|
100
|
-
).optional(),
|
|
101
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
102
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
103
|
-
})
|
|
104
|
-
).optional(),
|
|
105
|
-
pagingMetadata: z.object({
|
|
106
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
107
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
108
|
-
total: z.number().int().describe(
|
|
109
|
-
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
110
|
-
).optional().nullable(),
|
|
111
|
-
tooManyToCount: z.boolean().describe(
|
|
112
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
113
|
-
).optional().nullable(),
|
|
114
|
-
cursors: z.object({
|
|
115
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(16e3).optional().nullable(),
|
|
116
|
-
prev: z.string().describe(
|
|
117
|
-
"Cursor pointing to previous page in the list of results."
|
|
118
|
-
).max(16e3).optional().nullable()
|
|
119
|
-
}).describe(
|
|
120
|
-
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
121
|
-
).optional()
|
|
122
|
-
}).describe("Paging metadata.").optional()
|
|
123
|
-
});
|
|
124
|
-
var GenerateFileDownloadInfoRequest = z.object({
|
|
125
|
-
taxDocumentId: z.string().describe("ID of the tax document to download a file for.").regex(
|
|
126
|
-
/^[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}$/,
|
|
127
|
-
"Must be a valid GUID"
|
|
128
|
-
)
|
|
129
|
-
});
|
|
130
|
-
var GenerateFileDownloadInfoResponse = z.object({
|
|
131
|
-
downloadInfo: z.string().describe("Information for downloading the tax document's file.").optional()
|
|
132
|
-
});
|
|
133
|
-
export {
|
|
134
|
-
GenerateFileDownloadInfoRequest,
|
|
135
|
-
GenerateFileDownloadInfoResponse,
|
|
136
|
-
GetTaxDocumentRequest,
|
|
137
|
-
GetTaxDocumentResponse,
|
|
138
|
-
ListTaxDocumentsRequest,
|
|
139
|
-
ListTaxDocumentsResponse
|
|
140
|
-
};
|
|
141
|
-
//# sourceMappingURL=schemas.mjs.map
|
package/build/es/schemas.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"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,SAAS;AAAA,EACZ,cACG,OAAK,EACL,SAAS,kDAAkD,EAC3D,SAAS,EACT,SAAS;AAAA,EACZ,UACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,IACC;AAAA,EACF,EACC,SAAS;AAAA,EACZ,WACG,SAAO,EACP,SAAS,6DAA6D,EACtE;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AAAA,EACZ,MAAQ,OAAK,CAAC,aAAa,CAAC,EAAE,SAAS,uBAAuB,EAAE,SAAS;AAAA,EACzE,QACG;AAAA,IACG,SAAO,CAAC,CAAC;AAAA,IACT,MAAI;AAAA,MACF,SAAO,EAAE,YAAc,QAAM,EAAE,SAAS,EAAE,CAAC;AAAA,MAC3C,SAAO;AAAA,QACP,YACG,SAAO;AAAA,UAC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AAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,gBACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,SACG,SAAO;AAAA,MACN,MACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,MACZ,MACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,IAAK,EACT,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,kCAAoC,SAAO;AAAA,EACtD,eACG,SAAO,EACP,SAAS,gDAAgD,EACzD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,cACG,SAAO,EACP,SAAS,sDAAsD,EAC/D,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -1,342 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
SourceType: () => SourceType,
|
|
24
|
-
TaxDocumentType: () => TaxDocumentType,
|
|
25
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
26
|
-
generateFileDownloadInfo: () => generateFileDownloadInfo4,
|
|
27
|
-
getTaxDocument: () => getTaxDocument4,
|
|
28
|
-
listTaxDocuments: () => listTaxDocuments4
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(index_exports);
|
|
31
|
-
|
|
32
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.universal.ts
|
|
33
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
34
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
35
|
-
|
|
36
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.http.ts
|
|
37
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
38
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
39
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
40
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
41
|
-
function resolveWixPaymentsTaxDocumentsV1TaxDocumentsServiceUrl(opts) {
|
|
42
|
-
const domainToMappings = {
|
|
43
|
-
"manage._base_domain_": [
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/_api/tax-document-service/v1/tax-documents",
|
|
46
|
-
destPath: "/v1/tax-documents"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
srcPath: "/_api/finance/wix-payments/v1/tax-documents",
|
|
50
|
-
destPath: "/v1/tax-documents"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"bo._base_domain_": [
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/_api/tax-document-service/v1/tax-documents",
|
|
56
|
-
destPath: "/v1/tax-documents"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"wixbo.ai": [
|
|
60
|
-
{
|
|
61
|
-
srcPath: "/_api/tax-document-service/v1/tax-documents",
|
|
62
|
-
destPath: "/v1/tax-documents"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"wix-bo.com": [
|
|
66
|
-
{
|
|
67
|
-
srcPath: "/_api/tax-document-service/v1/tax-documents",
|
|
68
|
-
destPath: "/v1/tax-documents"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"manage.base44.com": [
|
|
72
|
-
{
|
|
73
|
-
srcPath: "/_api/tax-document-service",
|
|
74
|
-
destPath: ""
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
"payments.base44.com": [
|
|
78
|
-
{
|
|
79
|
-
srcPath: "/_api/tax-document-service",
|
|
80
|
-
destPath: ""
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"www.wixapis.com": [
|
|
84
|
-
{
|
|
85
|
-
srcPath: "/payments/platform/v1/tax-documents",
|
|
86
|
-
destPath: "/v1/tax-documents"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
_: [
|
|
90
|
-
{
|
|
91
|
-
srcPath: "/payments/platform/v1/tax-documents",
|
|
92
|
-
destPath: "/v1/tax-documents"
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"*.dev.wix-code.com": [
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/payments/platform/v1/tax-documents",
|
|
98
|
-
destPath: "/v1/tax-documents"
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
};
|
|
102
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
103
|
-
}
|
|
104
|
-
var PACKAGE_NAME = "@wix/auto_sdk_payments_tax-documents";
|
|
105
|
-
function getTaxDocument(payload) {
|
|
106
|
-
function __getTaxDocument({ host }) {
|
|
107
|
-
const metadata = {
|
|
108
|
-
entityFqdn: "wix.payments.tax_documents.v1.tax_document",
|
|
109
|
-
method: "GET",
|
|
110
|
-
methodFqn: "wix.payments.tax_documents.v1.TaxDocumentsService.GetTaxDocument",
|
|
111
|
-
packageName: PACKAGE_NAME,
|
|
112
|
-
migrationOptions: {
|
|
113
|
-
optInTransformResponse: true
|
|
114
|
-
},
|
|
115
|
-
url: resolveWixPaymentsTaxDocumentsV1TaxDocumentsServiceUrl({
|
|
116
|
-
protoPath: "/v1/tax-documents/{taxDocumentId}",
|
|
117
|
-
data: payload,
|
|
118
|
-
host
|
|
119
|
-
}),
|
|
120
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
121
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
122
|
-
{
|
|
123
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
124
|
-
paths: [
|
|
125
|
-
{ path: "taxDocument.createdDate" },
|
|
126
|
-
{ path: "taxDocument.updatedDate" }
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
])
|
|
130
|
-
};
|
|
131
|
-
return metadata;
|
|
132
|
-
}
|
|
133
|
-
return __getTaxDocument;
|
|
134
|
-
}
|
|
135
|
-
function listTaxDocuments(payload) {
|
|
136
|
-
function __listTaxDocuments({ host }) {
|
|
137
|
-
const metadata = {
|
|
138
|
-
entityFqdn: "wix.payments.tax_documents.v1.tax_document",
|
|
139
|
-
method: "GET",
|
|
140
|
-
methodFqn: "wix.payments.tax_documents.v1.TaxDocumentsService.ListTaxDocuments",
|
|
141
|
-
packageName: PACKAGE_NAME,
|
|
142
|
-
migrationOptions: {
|
|
143
|
-
optInTransformResponse: true
|
|
144
|
-
},
|
|
145
|
-
url: resolveWixPaymentsTaxDocumentsV1TaxDocumentsServiceUrl({
|
|
146
|
-
protoPath: "/v1/tax-documents",
|
|
147
|
-
data: payload,
|
|
148
|
-
host
|
|
149
|
-
}),
|
|
150
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
151
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
152
|
-
{
|
|
153
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
154
|
-
paths: [
|
|
155
|
-
{ path: "taxDocuments.createdDate" },
|
|
156
|
-
{ path: "taxDocuments.updatedDate" }
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
])
|
|
160
|
-
};
|
|
161
|
-
return metadata;
|
|
162
|
-
}
|
|
163
|
-
return __listTaxDocuments;
|
|
164
|
-
}
|
|
165
|
-
function generateFileDownloadInfo(payload) {
|
|
166
|
-
function __generateFileDownloadInfo({ host }) {
|
|
167
|
-
const metadata = {
|
|
168
|
-
entityFqdn: "wix.payments.tax_documents.v1.tax_document",
|
|
169
|
-
method: "GET",
|
|
170
|
-
methodFqn: "wix.payments.tax_documents.v1.TaxDocumentsService.GenerateFileDownloadInfo",
|
|
171
|
-
packageName: PACKAGE_NAME,
|
|
172
|
-
migrationOptions: {
|
|
173
|
-
optInTransformResponse: true
|
|
174
|
-
},
|
|
175
|
-
url: resolveWixPaymentsTaxDocumentsV1TaxDocumentsServiceUrl({
|
|
176
|
-
protoPath: "/v1/tax-documents/{taxDocumentId}/generate-file-download-info",
|
|
177
|
-
data: payload,
|
|
178
|
-
host
|
|
179
|
-
}),
|
|
180
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
181
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
182
|
-
{
|
|
183
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
184
|
-
paths: [{ path: "downloadInfo.urlExpirationDate" }]
|
|
185
|
-
}
|
|
186
|
-
])
|
|
187
|
-
};
|
|
188
|
-
return metadata;
|
|
189
|
-
}
|
|
190
|
-
return __generateFileDownloadInfo;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.universal.ts
|
|
194
|
-
var import_document = require("@wix/sdk-runtime/transformations/document");
|
|
195
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
196
|
-
var TaxDocumentType = /* @__PURE__ */ ((TaxDocumentType2) => {
|
|
197
|
-
TaxDocumentType2["FORM_1099_K"] = "FORM_1099_K";
|
|
198
|
-
return TaxDocumentType2;
|
|
199
|
-
})(TaxDocumentType || {});
|
|
200
|
-
var SourceType = /* @__PURE__ */ ((SourceType2) => {
|
|
201
|
-
SourceType2["PAYMENT"] = "PAYMENT";
|
|
202
|
-
SourceType2["PAYOUT"] = "PAYOUT";
|
|
203
|
-
return SourceType2;
|
|
204
|
-
})(SourceType || {});
|
|
205
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
206
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
207
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
208
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
209
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
210
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
211
|
-
return WebhookIdentityType2;
|
|
212
|
-
})(WebhookIdentityType || {});
|
|
213
|
-
async function getTaxDocument2(taxDocumentId) {
|
|
214
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
215
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
216
|
-
taxDocumentId
|
|
217
|
-
});
|
|
218
|
-
const reqOpts = getTaxDocument(payload);
|
|
219
|
-
sideEffects?.onSiteCall?.();
|
|
220
|
-
try {
|
|
221
|
-
const result = await httpClient.request(reqOpts);
|
|
222
|
-
sideEffects?.onSuccess?.(result);
|
|
223
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.taxDocument;
|
|
224
|
-
} catch (err) {
|
|
225
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
226
|
-
err,
|
|
227
|
-
{
|
|
228
|
-
spreadPathsToArguments: {},
|
|
229
|
-
explicitPathsToArguments: { taxDocumentId: "$[0]" },
|
|
230
|
-
singleArgumentUnchanged: false
|
|
231
|
-
},
|
|
232
|
-
["taxDocumentId"]
|
|
233
|
-
);
|
|
234
|
-
sideEffects?.onError?.(err);
|
|
235
|
-
throw transformedError;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
async function listTaxDocuments2(accountId, options) {
|
|
239
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
240
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
241
|
-
accountId,
|
|
242
|
-
paging: options?.paging,
|
|
243
|
-
type: options?.type
|
|
244
|
-
});
|
|
245
|
-
const reqOpts = listTaxDocuments(payload);
|
|
246
|
-
sideEffects?.onSiteCall?.();
|
|
247
|
-
try {
|
|
248
|
-
const result = await httpClient.request(reqOpts);
|
|
249
|
-
sideEffects?.onSuccess?.(result);
|
|
250
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
251
|
-
} catch (err) {
|
|
252
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
253
|
-
err,
|
|
254
|
-
{
|
|
255
|
-
spreadPathsToArguments: {},
|
|
256
|
-
explicitPathsToArguments: {
|
|
257
|
-
accountId: "$[0]",
|
|
258
|
-
paging: "$[1].paging",
|
|
259
|
-
type: "$[1].type"
|
|
260
|
-
},
|
|
261
|
-
singleArgumentUnchanged: false
|
|
262
|
-
},
|
|
263
|
-
["accountId", "options"]
|
|
264
|
-
);
|
|
265
|
-
sideEffects?.onError?.(err);
|
|
266
|
-
throw transformedError;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
async function generateFileDownloadInfo2(taxDocumentId) {
|
|
270
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
271
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
272
|
-
taxDocumentId
|
|
273
|
-
});
|
|
274
|
-
const reqOpts = generateFileDownloadInfo(
|
|
275
|
-
payload
|
|
276
|
-
);
|
|
277
|
-
sideEffects?.onSiteCall?.();
|
|
278
|
-
try {
|
|
279
|
-
const result = await httpClient.request(reqOpts);
|
|
280
|
-
sideEffects?.onSuccess?.(result);
|
|
281
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
282
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
283
|
-
{
|
|
284
|
-
transformFn: import_document.transformRESTDocumentToSDKDocument,
|
|
285
|
-
paths: [{ path: "downloadInfo" }]
|
|
286
|
-
}
|
|
287
|
-
])
|
|
288
|
-
);
|
|
289
|
-
} catch (err) {
|
|
290
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
291
|
-
err,
|
|
292
|
-
{
|
|
293
|
-
spreadPathsToArguments: {},
|
|
294
|
-
explicitPathsToArguments: { taxDocumentId: "$[0]" },
|
|
295
|
-
singleArgumentUnchanged: false
|
|
296
|
-
},
|
|
297
|
-
["taxDocumentId"]
|
|
298
|
-
);
|
|
299
|
-
sideEffects?.onError?.(err);
|
|
300
|
-
throw transformedError;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.public.ts
|
|
305
|
-
function getTaxDocument3(httpClient) {
|
|
306
|
-
return (taxDocumentId) => getTaxDocument2(
|
|
307
|
-
taxDocumentId,
|
|
308
|
-
// @ts-ignore
|
|
309
|
-
{ httpClient }
|
|
310
|
-
);
|
|
311
|
-
}
|
|
312
|
-
function listTaxDocuments3(httpClient) {
|
|
313
|
-
return (accountId, options) => listTaxDocuments2(
|
|
314
|
-
accountId,
|
|
315
|
-
options,
|
|
316
|
-
// @ts-ignore
|
|
317
|
-
{ httpClient }
|
|
318
|
-
);
|
|
319
|
-
}
|
|
320
|
-
function generateFileDownloadInfo3(httpClient) {
|
|
321
|
-
return (taxDocumentId) => generateFileDownloadInfo2(
|
|
322
|
-
taxDocumentId,
|
|
323
|
-
// @ts-ignore
|
|
324
|
-
{ httpClient }
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.context.ts
|
|
329
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
330
|
-
var getTaxDocument4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getTaxDocument3);
|
|
331
|
-
var listTaxDocuments4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listTaxDocuments3);
|
|
332
|
-
var generateFileDownloadInfo4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generateFileDownloadInfo3);
|
|
333
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
334
|
-
0 && (module.exports = {
|
|
335
|
-
SourceType,
|
|
336
|
-
TaxDocumentType,
|
|
337
|
-
WebhookIdentityType,
|
|
338
|
-
generateFileDownloadInfo,
|
|
339
|
-
getTaxDocument,
|
|
340
|
-
listTaxDocuments
|
|
341
|
-
});
|
|
342
|
-
//# sourceMappingURL=index.js.map
|