@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
|
@@ -34,6 +34,13 @@ interface TaxDocument {
|
|
|
34
34
|
* @immutable
|
|
35
35
|
*/
|
|
36
36
|
accountId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the Wix Payments account profile the tax document belongs to. A profile is a sub-account of a Wix Payments account. Most accounts have a single profile.
|
|
39
|
+
* @internal
|
|
40
|
+
* @format GUID
|
|
41
|
+
* @immutable
|
|
42
|
+
*/
|
|
43
|
+
accountProfileId?: string;
|
|
37
44
|
/**
|
|
38
45
|
* Type of tax document.
|
|
39
46
|
* @immutable
|
|
@@ -56,6 +63,12 @@ interface TaxDocument {
|
|
|
56
63
|
* At least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.
|
|
57
64
|
*/
|
|
58
65
|
problematic?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the tax document is shown to the merchant in their Wix dashboard. A hidden tax document (`false`) is in an internal state and typically shouldn't be surfaced to the merchant.
|
|
68
|
+
* @internal
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
visible?: boolean;
|
|
59
72
|
/**
|
|
60
73
|
* How the tax document's amounts are aggregated.
|
|
61
74
|
* @readonly
|
|
@@ -68,6 +81,20 @@ interface TaxDocument {
|
|
|
68
81
|
* @maxLength 1000
|
|
69
82
|
*/
|
|
70
83
|
displayName?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the tax document's file has been replaced at least once since it was first created.
|
|
86
|
+
* @internal
|
|
87
|
+
* @readonly
|
|
88
|
+
*/
|
|
89
|
+
fileEdited?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* [Internal] Reference to Adyen legal entity. Cant be removed any time
|
|
92
|
+
* @internal
|
|
93
|
+
* @readonly
|
|
94
|
+
* @minLength 1
|
|
95
|
+
* @maxLength 100
|
|
96
|
+
*/
|
|
97
|
+
kycReference?: string | null;
|
|
71
98
|
}
|
|
72
99
|
/** Type of tax document. */
|
|
73
100
|
declare enum TaxDocumentType {
|
|
@@ -176,6 +203,11 @@ interface Document {
|
|
|
176
203
|
interface UpdateTaxDocumentRequest {
|
|
177
204
|
/** Tax document to update. */
|
|
178
205
|
taxDocument?: TaxDocument;
|
|
206
|
+
/**
|
|
207
|
+
* Field mask.
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
fieldMask?: string[];
|
|
179
211
|
}
|
|
180
212
|
interface UpdateTaxDocumentResponse {
|
|
181
213
|
/** Updated tax document. */
|
|
@@ -272,8 +304,18 @@ interface DomainEventBodyOneOf {
|
|
|
272
304
|
}
|
|
273
305
|
interface EntityCreatedEvent {
|
|
274
306
|
entityAsJson?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
triggeredByUndelete?: boolean | null;
|
|
275
312
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
276
313
|
restoreInfo?: RestoreInfo;
|
|
314
|
+
/**
|
|
315
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
316
|
+
* @internal
|
|
317
|
+
*/
|
|
318
|
+
additionalMetadataAsJson?: string | null;
|
|
277
319
|
}
|
|
278
320
|
interface RestoreInfo {
|
|
279
321
|
deletedDate?: Date | null;
|
|
@@ -285,10 +327,42 @@ interface EntityUpdatedEvent {
|
|
|
285
327
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
286
328
|
*/
|
|
287
329
|
currentEntityAsJson?: string;
|
|
330
|
+
/**
|
|
331
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
332
|
+
* wont populate it / have any reference to it in the API.
|
|
333
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
334
|
+
* the developer should send only the new (current) entity.
|
|
335
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
336
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
337
|
+
* @internal
|
|
338
|
+
* @deprecated
|
|
339
|
+
*/
|
|
340
|
+
previousEntityAsJson?: string | null;
|
|
341
|
+
/**
|
|
342
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
343
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
344
|
+
* @internal
|
|
345
|
+
*/
|
|
346
|
+
modifiedFields?: Record<string, any>;
|
|
347
|
+
/**
|
|
348
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
additionalMetadataAsJson?: string | null;
|
|
288
352
|
}
|
|
289
353
|
interface EntityDeletedEvent {
|
|
354
|
+
/**
|
|
355
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
356
|
+
* @internal
|
|
357
|
+
*/
|
|
358
|
+
movedToTrash?: boolean | null;
|
|
290
359
|
/** Entity that was deleted. */
|
|
291
360
|
deletedEntityAsJson?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
365
|
+
additionalMetadataAsJson?: string | null;
|
|
292
366
|
}
|
|
293
367
|
interface ActionEvent {
|
|
294
368
|
bodyAsJson?: string;
|
|
@@ -405,6 +479,11 @@ interface ListTaxDocumentsRequest {
|
|
|
405
479
|
paging?: CursorPaging;
|
|
406
480
|
/** Filters the retrieved tax documents by type. When omitted, tax documents of all types are returned. */
|
|
407
481
|
type?: TaxDocumentTypeWithLiterals;
|
|
482
|
+
/**
|
|
483
|
+
* Filters the retrieved tax documents by whether they're visible to the merchant. When omitted, both visible and hidden tax documents are returned.
|
|
484
|
+
* @internal
|
|
485
|
+
*/
|
|
486
|
+
visible?: boolean | null;
|
|
408
487
|
}
|
|
409
488
|
interface CursorPaging {
|
|
410
489
|
/**
|
|
@@ -439,6 +518,13 @@ interface PagingMetadataV2 {
|
|
|
439
518
|
tooManyToCount?: boolean | null;
|
|
440
519
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
441
520
|
cursors?: Cursors;
|
|
521
|
+
/**
|
|
522
|
+
* Indicates if there are more results after the current page.
|
|
523
|
+
* If `true`, another page of results can be retrieved.
|
|
524
|
+
* If `false`, this is the last page.
|
|
525
|
+
* @internal
|
|
526
|
+
*/
|
|
527
|
+
hasNext?: boolean | null;
|
|
442
528
|
}
|
|
443
529
|
interface Cursors {
|
|
444
530
|
/**
|
|
@@ -33,6 +33,13 @@ interface TaxDocument {
|
|
|
33
33
|
* @immutable
|
|
34
34
|
*/
|
|
35
35
|
accountId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* ID of the Wix Payments account profile the tax document belongs to. A profile is a sub-account of a Wix Payments account. Most accounts have a single profile.
|
|
38
|
+
* @internal
|
|
39
|
+
* @format GUID
|
|
40
|
+
* @immutable
|
|
41
|
+
*/
|
|
42
|
+
accountProfileId?: string;
|
|
36
43
|
/**
|
|
37
44
|
* Type of tax document.
|
|
38
45
|
* @immutable
|
|
@@ -55,6 +62,12 @@ interface TaxDocument {
|
|
|
55
62
|
* At least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.
|
|
56
63
|
*/
|
|
57
64
|
problematic?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the tax document is shown to the merchant in their Wix dashboard. A hidden tax document (`false`) is in an internal state and typically shouldn't be surfaced to the merchant.
|
|
67
|
+
* @internal
|
|
68
|
+
* @readonly
|
|
69
|
+
*/
|
|
70
|
+
visible?: boolean;
|
|
58
71
|
/**
|
|
59
72
|
* How the tax document's amounts are aggregated.
|
|
60
73
|
* @readonly
|
|
@@ -67,6 +80,20 @@ interface TaxDocument {
|
|
|
67
80
|
* @maxLength 1000
|
|
68
81
|
*/
|
|
69
82
|
displayName?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the tax document's file has been replaced at least once since it was first created.
|
|
85
|
+
* @internal
|
|
86
|
+
* @readonly
|
|
87
|
+
*/
|
|
88
|
+
fileEdited?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* [Internal] Reference to Adyen legal entity. Cant be removed any time
|
|
91
|
+
* @internal
|
|
92
|
+
* @readonly
|
|
93
|
+
* @minLength 1
|
|
94
|
+
* @maxLength 100
|
|
95
|
+
*/
|
|
96
|
+
kycReference?: string | null;
|
|
70
97
|
}
|
|
71
98
|
/** Type of tax document. */
|
|
72
99
|
declare enum TaxDocumentType {
|
|
@@ -154,6 +181,11 @@ interface GenerateHistoryFileDownloadInfoResponse {
|
|
|
154
181
|
interface UpdateTaxDocumentRequest {
|
|
155
182
|
/** Tax document to update. */
|
|
156
183
|
taxDocument?: TaxDocument;
|
|
184
|
+
/**
|
|
185
|
+
* Field mask.
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
fieldMask?: string[];
|
|
157
189
|
}
|
|
158
190
|
interface UpdateTaxDocumentResponse {
|
|
159
191
|
/** Updated tax document. */
|
|
@@ -381,6 +413,11 @@ interface ListTaxDocumentsRequest {
|
|
|
381
413
|
paging?: CursorPaging;
|
|
382
414
|
/** Filters the retrieved tax documents by type. When omitted, tax documents of all types are returned. */
|
|
383
415
|
type?: TaxDocumentTypeWithLiterals;
|
|
416
|
+
/**
|
|
417
|
+
* Filters the retrieved tax documents by whether they're visible to the merchant. When omitted, both visible and hidden tax documents are returned.
|
|
418
|
+
* @internal
|
|
419
|
+
*/
|
|
420
|
+
visible?: boolean | null;
|
|
384
421
|
}
|
|
385
422
|
interface CursorPaging {
|
|
386
423
|
/**
|
|
@@ -415,6 +452,13 @@ interface PagingMetadataV2 {
|
|
|
415
452
|
tooManyToCount?: boolean | null;
|
|
416
453
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
417
454
|
cursors?: Cursors;
|
|
455
|
+
/**
|
|
456
|
+
* Indicates if there are more results after the current page.
|
|
457
|
+
* If `true`, another page of results can be retrieved.
|
|
458
|
+
* If `false`, this is the last page.
|
|
459
|
+
* @internal
|
|
460
|
+
*/
|
|
461
|
+
hasNext?: boolean | null;
|
|
418
462
|
}
|
|
419
463
|
interface Cursors {
|
|
420
464
|
/**
|
|
@@ -34,6 +34,13 @@ interface TaxDocument {
|
|
|
34
34
|
* @immutable
|
|
35
35
|
*/
|
|
36
36
|
accountId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the Wix Payments account profile the tax document belongs to. A profile is a sub-account of a Wix Payments account. Most accounts have a single profile.
|
|
39
|
+
* @internal
|
|
40
|
+
* @format GUID
|
|
41
|
+
* @immutable
|
|
42
|
+
*/
|
|
43
|
+
accountProfileId?: string;
|
|
37
44
|
/**
|
|
38
45
|
* Type of tax document.
|
|
39
46
|
* @immutable
|
|
@@ -56,6 +63,12 @@ interface TaxDocument {
|
|
|
56
63
|
* At least one of `downloadable` and `problematic` is always `true`, and both can be `true` at the same time.
|
|
57
64
|
*/
|
|
58
65
|
problematic?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the tax document is shown to the merchant in their Wix dashboard. A hidden tax document (`false`) is in an internal state and typically shouldn't be surfaced to the merchant.
|
|
68
|
+
* @internal
|
|
69
|
+
* @readonly
|
|
70
|
+
*/
|
|
71
|
+
visible?: boolean;
|
|
59
72
|
/**
|
|
60
73
|
* How the tax document's amounts are aggregated.
|
|
61
74
|
* @readonly
|
|
@@ -68,6 +81,20 @@ interface TaxDocument {
|
|
|
68
81
|
* @maxLength 1000
|
|
69
82
|
*/
|
|
70
83
|
displayName?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the tax document's file has been replaced at least once since it was first created.
|
|
86
|
+
* @internal
|
|
87
|
+
* @readonly
|
|
88
|
+
*/
|
|
89
|
+
fileEdited?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* [Internal] Reference to Adyen legal entity. Cant be removed any time
|
|
92
|
+
* @internal
|
|
93
|
+
* @readonly
|
|
94
|
+
* @minLength 1
|
|
95
|
+
* @maxLength 100
|
|
96
|
+
*/
|
|
97
|
+
kycReference?: string | null;
|
|
71
98
|
}
|
|
72
99
|
/** Type of tax document. */
|
|
73
100
|
declare enum TaxDocumentType {
|
|
@@ -176,6 +203,11 @@ interface Document {
|
|
|
176
203
|
interface UpdateTaxDocumentRequest {
|
|
177
204
|
/** Tax document to update. */
|
|
178
205
|
taxDocument?: TaxDocument;
|
|
206
|
+
/**
|
|
207
|
+
* Field mask.
|
|
208
|
+
* @internal
|
|
209
|
+
*/
|
|
210
|
+
fieldMask?: string[];
|
|
179
211
|
}
|
|
180
212
|
interface UpdateTaxDocumentResponse {
|
|
181
213
|
/** Updated tax document. */
|
|
@@ -272,8 +304,18 @@ interface DomainEventBodyOneOf {
|
|
|
272
304
|
}
|
|
273
305
|
interface EntityCreatedEvent {
|
|
274
306
|
entityAsJson?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
triggeredByUndelete?: boolean | null;
|
|
275
312
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
276
313
|
restoreInfo?: RestoreInfo;
|
|
314
|
+
/**
|
|
315
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
316
|
+
* @internal
|
|
317
|
+
*/
|
|
318
|
+
additionalMetadataAsJson?: string | null;
|
|
277
319
|
}
|
|
278
320
|
interface RestoreInfo {
|
|
279
321
|
deletedDate?: Date | null;
|
|
@@ -285,10 +327,42 @@ interface EntityUpdatedEvent {
|
|
|
285
327
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
286
328
|
*/
|
|
287
329
|
currentEntityAsJson?: string;
|
|
330
|
+
/**
|
|
331
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
332
|
+
* wont populate it / have any reference to it in the API.
|
|
333
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
334
|
+
* the developer should send only the new (current) entity.
|
|
335
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
336
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
337
|
+
* @internal
|
|
338
|
+
* @deprecated
|
|
339
|
+
*/
|
|
340
|
+
previousEntityAsJson?: string | null;
|
|
341
|
+
/**
|
|
342
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
343
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
344
|
+
* @internal
|
|
345
|
+
*/
|
|
346
|
+
modifiedFields?: Record<string, any>;
|
|
347
|
+
/**
|
|
348
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
additionalMetadataAsJson?: string | null;
|
|
288
352
|
}
|
|
289
353
|
interface EntityDeletedEvent {
|
|
354
|
+
/**
|
|
355
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
356
|
+
* @internal
|
|
357
|
+
*/
|
|
358
|
+
movedToTrash?: boolean | null;
|
|
290
359
|
/** Entity that was deleted. */
|
|
291
360
|
deletedEntityAsJson?: string | null;
|
|
361
|
+
/**
|
|
362
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
365
|
+
additionalMetadataAsJson?: string | null;
|
|
292
366
|
}
|
|
293
367
|
interface ActionEvent {
|
|
294
368
|
bodyAsJson?: string;
|
|
@@ -405,6 +479,11 @@ interface ListTaxDocumentsRequest {
|
|
|
405
479
|
paging?: CursorPaging;
|
|
406
480
|
/** Filters the retrieved tax documents by type. When omitted, tax documents of all types are returned. */
|
|
407
481
|
type?: TaxDocumentTypeWithLiterals;
|
|
482
|
+
/**
|
|
483
|
+
* Filters the retrieved tax documents by whether they're visible to the merchant. When omitted, both visible and hidden tax documents are returned.
|
|
484
|
+
* @internal
|
|
485
|
+
*/
|
|
486
|
+
visible?: boolean | null;
|
|
408
487
|
}
|
|
409
488
|
interface CursorPaging {
|
|
410
489
|
/**
|
|
@@ -439,6 +518,13 @@ interface PagingMetadataV2 {
|
|
|
439
518
|
tooManyToCount?: boolean | null;
|
|
440
519
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
441
520
|
cursors?: Cursors;
|
|
521
|
+
/**
|
|
522
|
+
* Indicates if there are more results after the current page.
|
|
523
|
+
* If `true`, another page of results can be retrieved.
|
|
524
|
+
* If `false`, this is the last page.
|
|
525
|
+
* @internal
|
|
526
|
+
*/
|
|
527
|
+
hasNext?: boolean | null;
|
|
442
528
|
}
|
|
443
529
|
interface Cursors {
|
|
444
530
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_payments_tax-documents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
-
},
|
|
25
|
-
"./schemas": {
|
|
26
|
-
"import": "./build/es/schemas.mjs",
|
|
27
|
-
"require": "./build/cjs/schemas.js",
|
|
28
|
-
"types": "./build/es/schemas.d.mts"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
40
|
-
"zod": "^4.3.6"
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.payments.tax_documents.v1.tax_document"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "742d205de4c7b3e07bc675813a29774983a5d4895df9485681c91a92"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
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/cjs/schemas.js
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// schemas.ts
|
|
31
|
-
var schemas_exports = {};
|
|
32
|
-
__export(schemas_exports, {
|
|
33
|
-
GenerateFileDownloadInfoRequest: () => GenerateFileDownloadInfoRequest,
|
|
34
|
-
GenerateFileDownloadInfoResponse: () => GenerateFileDownloadInfoResponse,
|
|
35
|
-
GetTaxDocumentRequest: () => GetTaxDocumentRequest,
|
|
36
|
-
GetTaxDocumentResponse: () => GetTaxDocumentResponse,
|
|
37
|
-
ListTaxDocumentsRequest: () => ListTaxDocumentsRequest,
|
|
38
|
-
ListTaxDocumentsResponse: () => ListTaxDocumentsResponse
|
|
39
|
-
});
|
|
40
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
-
|
|
42
|
-
// src/payments-tax-documents-v1-tax-document-tax-documents.schemas.ts
|
|
43
|
-
var z = __toESM(require("zod"));
|
|
44
|
-
var GetTaxDocumentRequest = z.object({
|
|
45
|
-
taxDocumentId: z.string().describe("ID of the tax document to retrieve.").regex(
|
|
46
|
-
/^[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}$/,
|
|
47
|
-
"Must be a valid GUID"
|
|
48
|
-
)
|
|
49
|
-
});
|
|
50
|
-
var GetTaxDocumentResponse = z.object({
|
|
51
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
52
|
-
/^[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}$/,
|
|
53
|
-
"Must be a valid GUID"
|
|
54
|
-
).optional().nullable(),
|
|
55
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
56
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
57
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
58
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
59
|
-
).optional(),
|
|
60
|
-
accountId: z.string().describe("ID of the Wix Payments account the tax document belongs to.").regex(
|
|
61
|
-
/^[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}$/,
|
|
62
|
-
"Must be a valid GUID"
|
|
63
|
-
).optional(),
|
|
64
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
65
|
-
period: z.intersection(
|
|
66
|
-
z.object({}),
|
|
67
|
-
z.xor([
|
|
68
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
69
|
-
z.object({
|
|
70
|
-
yearPeriod: z.object({
|
|
71
|
-
year: z.number().int().describe(
|
|
72
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
73
|
-
).optional()
|
|
74
|
-
}).describe("The tax document covers a full calendar year.")
|
|
75
|
-
})
|
|
76
|
-
])
|
|
77
|
-
).describe("Period the tax document covers.").optional(),
|
|
78
|
-
downloadable: z.boolean().describe(
|
|
79
|
-
"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`."
|
|
80
|
-
).optional(),
|
|
81
|
-
problematic: z.boolean().describe(
|
|
82
|
-
"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."
|
|
83
|
-
).optional(),
|
|
84
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
85
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
86
|
-
});
|
|
87
|
-
var ListTaxDocumentsRequest = z.object({
|
|
88
|
-
accountId: z.string().describe(
|
|
89
|
-
"ID of the Wix Payments account whose tax documents are retrieved."
|
|
90
|
-
).regex(
|
|
91
|
-
/^[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}$/,
|
|
92
|
-
"Must be a valid GUID"
|
|
93
|
-
),
|
|
94
|
-
options: z.object({
|
|
95
|
-
paging: z.object({
|
|
96
|
-
limit: z.number().int().describe("Number of items to load.").min(0).max(100).optional().nullable(),
|
|
97
|
-
cursor: z.string().describe(
|
|
98
|
-
"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."
|
|
99
|
-
).max(16e3).optional().nullable()
|
|
100
|
-
}).describe("Cursor paging options.").optional(),
|
|
101
|
-
type: z.enum(["FORM_1099_K"]).optional()
|
|
102
|
-
}).optional()
|
|
103
|
-
});
|
|
104
|
-
var ListTaxDocumentsResponse = z.object({
|
|
105
|
-
taxDocuments: z.array(
|
|
106
|
-
z.object({
|
|
107
|
-
_id: z.string().describe("Tax document ID.").regex(
|
|
108
|
-
/^[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}$/,
|
|
109
|
-
"Must be a valid GUID"
|
|
110
|
-
).optional().nullable(),
|
|
111
|
-
_createdDate: z.date().describe("Date and time the tax document was created.").optional().nullable(),
|
|
112
|
-
_updatedDate: z.date().describe("Date and time the tax document was last updated.").optional().nullable(),
|
|
113
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
114
|
-
"Revision number, which increments by 1 each time the tax document is updated."
|
|
115
|
-
).optional(),
|
|
116
|
-
accountId: z.string().describe(
|
|
117
|
-
"ID of the Wix Payments account the tax document belongs to."
|
|
118
|
-
).regex(
|
|
119
|
-
/^[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}$/,
|
|
120
|
-
"Must be a valid GUID"
|
|
121
|
-
).optional(),
|
|
122
|
-
type: z.enum(["FORM_1099_K"]).describe("Type of tax document.").optional(),
|
|
123
|
-
period: z.intersection(
|
|
124
|
-
z.object({}),
|
|
125
|
-
z.xor([
|
|
126
|
-
z.object({ yearPeriod: z.never().optional() }),
|
|
127
|
-
z.object({
|
|
128
|
-
yearPeriod: z.object({
|
|
129
|
-
year: z.number().int().describe(
|
|
130
|
-
"Calendar year the tax document covers. For example, `2024`."
|
|
131
|
-
).optional()
|
|
132
|
-
}).describe("The tax document covers a full calendar year.")
|
|
133
|
-
})
|
|
134
|
-
])
|
|
135
|
-
).describe("Period the tax document covers.").optional(),
|
|
136
|
-
downloadable: z.boolean().describe(
|
|
137
|
-
"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`."
|
|
138
|
-
).optional(),
|
|
139
|
-
problematic: z.boolean().describe(
|
|
140
|
-
"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."
|
|
141
|
-
).optional(),
|
|
142
|
-
sourceType: z.enum(["PAYMENT", "PAYOUT"]).describe("How the tax document's amounts are aggregated.").optional(),
|
|
143
|
-
displayName: z.string().describe("Human-readable name for the tax document's file.").min(1).max(1e3).optional().nullable()
|
|
144
|
-
})
|
|
145
|
-
).optional(),
|
|
146
|
-
pagingMetadata: z.object({
|
|
147
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
148
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
149
|
-
total: z.number().int().describe(
|
|
150
|
-
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
151
|
-
).optional().nullable(),
|
|
152
|
-
tooManyToCount: z.boolean().describe(
|
|
153
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
154
|
-
).optional().nullable(),
|
|
155
|
-
cursors: z.object({
|
|
156
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(16e3).optional().nullable(),
|
|
157
|
-
prev: z.string().describe(
|
|
158
|
-
"Cursor pointing to previous page in the list of results."
|
|
159
|
-
).max(16e3).optional().nullable()
|
|
160
|
-
}).describe(
|
|
161
|
-
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
162
|
-
).optional()
|
|
163
|
-
}).describe("Paging metadata.").optional()
|
|
164
|
-
});
|
|
165
|
-
var GenerateFileDownloadInfoRequest = z.object({
|
|
166
|
-
taxDocumentId: z.string().describe("ID of the tax document to download a file for.").regex(
|
|
167
|
-
/^[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}$/,
|
|
168
|
-
"Must be a valid GUID"
|
|
169
|
-
)
|
|
170
|
-
});
|
|
171
|
-
var GenerateFileDownloadInfoResponse = z.object({
|
|
172
|
-
downloadInfo: z.string().describe("Information for downloading the tax document's file.").optional()
|
|
173
|
-
});
|
|
174
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
175
|
-
0 && (module.exports = {
|
|
176
|
-
GenerateFileDownloadInfoRequest,
|
|
177
|
-
GenerateFileDownloadInfoResponse,
|
|
178
|
-
GetTaxDocumentRequest,
|
|
179
|
-
GetTaxDocumentResponse,
|
|
180
|
-
ListTaxDocumentsRequest,
|
|
181
|
-
ListTaxDocumentsResponse
|
|
182
|
-
});
|
|
183
|
-
//# sourceMappingURL=schemas.js.map
|