@wix/auto_sdk_payments_payouts 1.0.4 → 1.0.6
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 +28 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +20 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +20 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +28 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +20 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +20 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +21 -0
- package/build/internal/cjs/meta.d.ts +63 -0
- package/build/internal/es/index.typings.d.mts +21 -0
- package/build/internal/es/meta.d.mts +63 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -115
- package/build/cjs/schemas.js +0 -243
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -115
- package/build/es/schemas.mjs +0 -203
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -405
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -339
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -310
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -115
- package/build/internal/cjs/schemas.js +0 -243
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -374
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -310
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -278
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -115
- package/build/internal/es/schemas.mjs +0 -203
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -246,6 +246,20 @@ interface Sorting {
|
|
|
246
246
|
fieldName?: string;
|
|
247
247
|
/** Sort order. */
|
|
248
248
|
order?: SortOrderWithLiterals;
|
|
249
|
+
/**
|
|
250
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
251
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
252
|
+
*
|
|
253
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
254
|
+
*
|
|
255
|
+
* Example:
|
|
256
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
257
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
258
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
259
|
+
* @internal
|
|
260
|
+
* @maxSize 10
|
|
261
|
+
*/
|
|
262
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
249
263
|
/**
|
|
250
264
|
* Origin point for geo-distance sorting on a GEO field
|
|
251
265
|
* results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
|
|
@@ -285,6 +299,13 @@ interface PagingMetadata {
|
|
|
285
299
|
total?: number | null;
|
|
286
300
|
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
287
301
|
tooManyToCount?: boolean | null;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates if there are more results after the current page.
|
|
304
|
+
* If `true`, another page of results can be retrieved.
|
|
305
|
+
* If `false`, this is the last page.
|
|
306
|
+
* @internal
|
|
307
|
+
*/
|
|
308
|
+
hasNext?: boolean | null;
|
|
288
309
|
}
|
|
289
310
|
interface CreatePayoutRequest {
|
|
290
311
|
/** Payout to create. */
|
|
@@ -443,8 +464,18 @@ interface DomainEventBodyOneOf {
|
|
|
443
464
|
}
|
|
444
465
|
interface EntityCreatedEvent {
|
|
445
466
|
entityAsJson?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
469
|
+
* @internal
|
|
470
|
+
*/
|
|
471
|
+
triggeredByUndelete?: boolean | null;
|
|
446
472
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
447
473
|
restoreInfo?: RestoreInfo;
|
|
474
|
+
/**
|
|
475
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
476
|
+
* @internal
|
|
477
|
+
*/
|
|
478
|
+
additionalMetadataAsJson?: string | null;
|
|
448
479
|
}
|
|
449
480
|
interface RestoreInfo {
|
|
450
481
|
deletedDate?: Date | null;
|
|
@@ -456,10 +487,42 @@ interface EntityUpdatedEvent {
|
|
|
456
487
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
457
488
|
*/
|
|
458
489
|
currentEntityAsJson?: string;
|
|
490
|
+
/**
|
|
491
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
492
|
+
* wont populate it / have any reference to it in the API.
|
|
493
|
+
* 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,
|
|
494
|
+
* the developer should send only the new (current) entity.
|
|
495
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
496
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
497
|
+
* @internal
|
|
498
|
+
* @deprecated
|
|
499
|
+
*/
|
|
500
|
+
previousEntityAsJson?: string | null;
|
|
501
|
+
/**
|
|
502
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
503
|
+
* 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)
|
|
504
|
+
* @internal
|
|
505
|
+
*/
|
|
506
|
+
modifiedFields?: Record<string, any>;
|
|
507
|
+
/**
|
|
508
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
509
|
+
* @internal
|
|
510
|
+
*/
|
|
511
|
+
additionalMetadataAsJson?: string | null;
|
|
459
512
|
}
|
|
460
513
|
interface EntityDeletedEvent {
|
|
514
|
+
/**
|
|
515
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
516
|
+
* @internal
|
|
517
|
+
*/
|
|
518
|
+
movedToTrash?: boolean | null;
|
|
461
519
|
/** Entity that was deleted. */
|
|
462
520
|
deletedEntityAsJson?: string | null;
|
|
521
|
+
/**
|
|
522
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
523
|
+
* @internal
|
|
524
|
+
*/
|
|
525
|
+
additionalMetadataAsJson?: string | null;
|
|
463
526
|
}
|
|
464
527
|
interface ActionEvent {
|
|
465
528
|
bodyAsJson?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_payments_payouts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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.payouts.v4.payout"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "6885f6e2053d632dab9a60e87fe76c61a35200fe6222a2cfde444519"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ListPayoutsRequest: z.ZodObject<{
|
|
4
|
-
accountId: z.ZodString;
|
|
5
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
accountProfileId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
createdBefore: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
8
|
-
createdAfter: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
-
sort: z.ZodOptional<z.ZodObject<{
|
|
10
|
-
fieldName: z.ZodOptional<z.ZodString>;
|
|
11
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
ASC: "ASC";
|
|
13
|
-
DESC: "DESC";
|
|
14
|
-
}>>;
|
|
15
|
-
origin: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
-
longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
paging: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
declare const ListPayoutsResponse: z.ZodObject<{
|
|
27
|
-
payouts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
29
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
30
|
-
accountProfileId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
32
|
-
amount: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
value: z.ZodOptional<z.ZodString>;
|
|
34
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
35
|
-
formattedValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
UNKNOWN: "UNKNOWN";
|
|
39
|
-
SENT: "SENT";
|
|
40
|
-
FAILED: "FAILED";
|
|
41
|
-
}>>;
|
|
42
|
-
estimatedArrivalDateV2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
-
failureReason: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
code: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
GENERIC_PAYOUT_FAILURE: "GENERIC_PAYOUT_FAILURE";
|
|
46
|
-
ACCOUNT_CLOSED: "ACCOUNT_CLOSED";
|
|
47
|
-
ACCOUNT_FROZEN: "ACCOUNT_FROZEN";
|
|
48
|
-
BANK_ACCOUNT_RESTRICTED: "BANK_ACCOUNT_RESTRICTED";
|
|
49
|
-
BANK_OWNERSHIP_CHANGED: "BANK_OWNERSHIP_CHANGED";
|
|
50
|
-
COULD_NOT_PROCESS: "COULD_NOT_PROCESS";
|
|
51
|
-
DEBIT_NOT_AUTHORIZED: "DEBIT_NOT_AUTHORIZED";
|
|
52
|
-
INCORRECT_ACCOUNT_HOLDER_NAME: "INCORRECT_ACCOUNT_HOLDER_NAME";
|
|
53
|
-
INVALID_ACCOUNT_DETAILS_CITY: "INVALID_ACCOUNT_DETAILS_CITY";
|
|
54
|
-
INVALID_ACCOUNT_NUMBER: "INVALID_ACCOUNT_NUMBER";
|
|
55
|
-
INVALID_CURRENCY: "INVALID_CURRENCY";
|
|
56
|
-
INVALID_ROUTING_NUMBER: "INVALID_ROUTING_NUMBER";
|
|
57
|
-
INVALID_SORT_CODE: "INVALID_SORT_CODE";
|
|
58
|
-
NO_ACCOUNT: "NO_ACCOUNT";
|
|
59
|
-
TECHNICAL_ERROR: "TECHNICAL_ERROR";
|
|
60
|
-
}>>;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
|
-
bankTransferReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
63
|
-
cashAdvanceIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
}, z.core.$strip>>>;
|
|
65
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
66
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
-
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
70
|
-
}, z.core.$strip>>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
declare const GetPayoutRequest: z.ZodObject<{
|
|
73
|
-
payoutId: z.ZodString;
|
|
74
|
-
accountId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
declare const GetPayoutResponse: z.ZodObject<{
|
|
77
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
78
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
79
|
-
accountProfileId: z.ZodOptional<z.ZodString>;
|
|
80
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
81
|
-
amount: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
value: z.ZodOptional<z.ZodString>;
|
|
83
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
84
|
-
formattedValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
87
|
-
UNKNOWN: "UNKNOWN";
|
|
88
|
-
SENT: "SENT";
|
|
89
|
-
FAILED: "FAILED";
|
|
90
|
-
}>>;
|
|
91
|
-
estimatedArrivalDateV2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
-
failureReason: z.ZodOptional<z.ZodObject<{
|
|
93
|
-
code: z.ZodOptional<z.ZodEnum<{
|
|
94
|
-
GENERIC_PAYOUT_FAILURE: "GENERIC_PAYOUT_FAILURE";
|
|
95
|
-
ACCOUNT_CLOSED: "ACCOUNT_CLOSED";
|
|
96
|
-
ACCOUNT_FROZEN: "ACCOUNT_FROZEN";
|
|
97
|
-
BANK_ACCOUNT_RESTRICTED: "BANK_ACCOUNT_RESTRICTED";
|
|
98
|
-
BANK_OWNERSHIP_CHANGED: "BANK_OWNERSHIP_CHANGED";
|
|
99
|
-
COULD_NOT_PROCESS: "COULD_NOT_PROCESS";
|
|
100
|
-
DEBIT_NOT_AUTHORIZED: "DEBIT_NOT_AUTHORIZED";
|
|
101
|
-
INCORRECT_ACCOUNT_HOLDER_NAME: "INCORRECT_ACCOUNT_HOLDER_NAME";
|
|
102
|
-
INVALID_ACCOUNT_DETAILS_CITY: "INVALID_ACCOUNT_DETAILS_CITY";
|
|
103
|
-
INVALID_ACCOUNT_NUMBER: "INVALID_ACCOUNT_NUMBER";
|
|
104
|
-
INVALID_CURRENCY: "INVALID_CURRENCY";
|
|
105
|
-
INVALID_ROUTING_NUMBER: "INVALID_ROUTING_NUMBER";
|
|
106
|
-
INVALID_SORT_CODE: "INVALID_SORT_CODE";
|
|
107
|
-
NO_ACCOUNT: "NO_ACCOUNT";
|
|
108
|
-
TECHNICAL_ERROR: "TECHNICAL_ERROR";
|
|
109
|
-
}>>;
|
|
110
|
-
}, z.core.$strip>>;
|
|
111
|
-
bankTransferReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
-
cashAdvanceIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
|
|
115
|
-
export { GetPayoutRequest, GetPayoutResponse, ListPayoutsRequest, ListPayoutsResponse };
|
package/build/cjs/schemas.js
DELETED
|
@@ -1,243 +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
|
-
GetPayoutRequest: () => GetPayoutRequest,
|
|
34
|
-
GetPayoutResponse: () => GetPayoutResponse,
|
|
35
|
-
ListPayoutsRequest: () => ListPayoutsRequest,
|
|
36
|
-
ListPayoutsResponse: () => ListPayoutsResponse
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
-
|
|
40
|
-
// src/payments-payouts-v4-payout-payouts.schemas.ts
|
|
41
|
-
var z = __toESM(require("zod"));
|
|
42
|
-
var ListPayoutsRequest = z.object({
|
|
43
|
-
accountId: z.string().describe(
|
|
44
|
-
"ID of the Wix Payments account whose payouts to list. Retrieve account\nIDs from the Accounts API."
|
|
45
|
-
).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
|
-
options: z.object({
|
|
50
|
-
accountProfileId: z.string().describe(
|
|
51
|
-
"ID of the Wix Payments account profile to filter by.\n\nWhen omitted, payouts across all profiles of the account are returned.\nRetrieve profile IDs from the Accounts API."
|
|
52
|
-
).regex(
|
|
53
|
-
/^[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}$/,
|
|
54
|
-
"Must be a valid GUID"
|
|
55
|
-
).optional().nullable(),
|
|
56
|
-
createdBefore: z.date().describe(
|
|
57
|
-
"Returns only payouts created before this date and time. The date and time\nitself is excluded."
|
|
58
|
-
).optional().nullable(),
|
|
59
|
-
createdAfter: z.date().describe(
|
|
60
|
-
"Returns only payouts created on or after this date and time. The date and\ntime itself is included."
|
|
61
|
-
).optional().nullable(),
|
|
62
|
-
sort: z.object({
|
|
63
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
64
|
-
order: z.enum(["ASC", "DESC"]).optional(),
|
|
65
|
-
origin: z.object({
|
|
66
|
-
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
67
|
-
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
68
|
-
}).describe(
|
|
69
|
-
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
70
|
-
).optional()
|
|
71
|
-
}).describe(
|
|
72
|
-
"Sort order for the result list.\n\nSupported `fieldName` values: `created_date` (snake_case, not auto-converted). At most 1 sort field is allowed."
|
|
73
|
-
).optional(),
|
|
74
|
-
paging: z.object({
|
|
75
|
-
limit: z.number().int().describe("Number of items to load.").min(0).optional().nullable(),
|
|
76
|
-
offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
77
|
-
}).describe(
|
|
78
|
-
"Offset-based paging. `limit` supports values from `1` to `20`.\n\nDefault: `limit` is `20`, `offset` is `0`."
|
|
79
|
-
).optional()
|
|
80
|
-
}).optional()
|
|
81
|
-
});
|
|
82
|
-
var ListPayoutsResponse = z.object({
|
|
83
|
-
payouts: z.array(
|
|
84
|
-
z.object({
|
|
85
|
-
_id: z.string().describe("Payout ID.").regex(
|
|
86
|
-
/^[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}$/,
|
|
87
|
-
"Must be a valid GUID"
|
|
88
|
-
).optional(),
|
|
89
|
-
accountId: z.string().describe(
|
|
90
|
-
"ID of the Wix Payments account that owns the payout. Retrieve account IDs\nfrom the Accounts API."
|
|
91
|
-
).regex(
|
|
92
|
-
/^[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}$/,
|
|
93
|
-
"Must be a valid GUID"
|
|
94
|
-
).optional(),
|
|
95
|
-
accountProfileId: z.string().describe(
|
|
96
|
-
"ID of the Wix Payments account profile that owns the payout.\n\nA Wix Payments account has 1 or more profiles. Each profile has its own\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\nprofile IDs from the Accounts API."
|
|
97
|
-
).regex(
|
|
98
|
-
/^[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}$/,
|
|
99
|
-
"Must be a valid GUID"
|
|
100
|
-
).optional(),
|
|
101
|
-
_createdDate: z.date().describe(
|
|
102
|
-
"Date and time the payout was created.\n\nThe payout is created before the underlying transfer is initiated at the\nbank. Once initiated, the funds typically reach the merchant's bank account\nwithin 3 to 5 business days, depending on the receiving bank."
|
|
103
|
-
).optional().nullable(),
|
|
104
|
-
amount: z.object({
|
|
105
|
-
value: z.string().describe(
|
|
106
|
-
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
107
|
-
).optional(),
|
|
108
|
-
currency: z.string().describe(
|
|
109
|
-
"Currency code. Must be valid ISO 4217 currency code (e.g., USD)."
|
|
110
|
-
).optional(),
|
|
111
|
-
formattedValue: z.string().describe(
|
|
112
|
-
"Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative."
|
|
113
|
-
).optional().nullable()
|
|
114
|
-
}).describe("Amount of the transfer to the merchant's bank account.").optional(),
|
|
115
|
-
status: z.enum(["UNKNOWN", "SENT", "FAILED"]).describe(
|
|
116
|
-
"Lifecycle status of the payout.\n\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\nthe receiving bank rejected the transfer.\n\nA `SENT` status doesn't guarantee that the funds were delivered to the\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\npayout in `SENT` can later transition to `FAILED` if the receiving bank\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\ndetails."
|
|
117
|
-
).optional(),
|
|
118
|
-
estimatedArrivalDateV2: z.string().describe(
|
|
119
|
-
"Estimated date for when the funds should arrive at the merchant's bank\naccount, in `YYYY-MM-DD` format.\n\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\ndepends on the receiving bank's processing and may be later."
|
|
120
|
-
).optional().nullable(),
|
|
121
|
-
failureReason: z.object({
|
|
122
|
-
code: z.enum([
|
|
123
|
-
"GENERIC_PAYOUT_FAILURE",
|
|
124
|
-
"ACCOUNT_CLOSED",
|
|
125
|
-
"ACCOUNT_FROZEN",
|
|
126
|
-
"BANK_ACCOUNT_RESTRICTED",
|
|
127
|
-
"BANK_OWNERSHIP_CHANGED",
|
|
128
|
-
"COULD_NOT_PROCESS",
|
|
129
|
-
"DEBIT_NOT_AUTHORIZED",
|
|
130
|
-
"INCORRECT_ACCOUNT_HOLDER_NAME",
|
|
131
|
-
"INVALID_ACCOUNT_DETAILS_CITY",
|
|
132
|
-
"INVALID_ACCOUNT_NUMBER",
|
|
133
|
-
"INVALID_CURRENCY",
|
|
134
|
-
"INVALID_ROUTING_NUMBER",
|
|
135
|
-
"INVALID_SORT_CODE",
|
|
136
|
-
"NO_ACCOUNT",
|
|
137
|
-
"TECHNICAL_ERROR"
|
|
138
|
-
]).describe("Why the bank rail rejected the transfer.").optional()
|
|
139
|
-
}).describe(
|
|
140
|
-
"Reason the bank rail rejected the transfer.\n\nReturned only when `status` is `FAILED`."
|
|
141
|
-
).optional(),
|
|
142
|
-
bankTransferReference: z.string().describe(
|
|
143
|
-
"Reference returned by the bank rail once the transfer is initiated. For\nexample, an ACH trace number or a SEPA reference. Use this value to\nreconcile against the merchant's bank statement.\n\nEmpty until the bank rail returns a reference."
|
|
144
|
-
).max(500).optional().nullable(),
|
|
145
|
-
cashAdvanceIncluded: z.boolean().describe(
|
|
146
|
-
"Whether the payout `amount` includes funds from a Wix Capital cash advance\ntaken out by the merchant. If `false`, the amount comes only from the\nmerchant's sales proceeds."
|
|
147
|
-
).optional()
|
|
148
|
-
})
|
|
149
|
-
).optional(),
|
|
150
|
-
metadata: z.object({
|
|
151
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
152
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
153
|
-
total: z.number().int().describe("Total number of items that match the query.").optional().nullable(),
|
|
154
|
-
tooManyToCount: z.boolean().describe(
|
|
155
|
-
"Flag that indicates the server failed to calculate the `total` field."
|
|
156
|
-
).optional().nullable()
|
|
157
|
-
}).describe("Paging metadata.").optional()
|
|
158
|
-
});
|
|
159
|
-
var GetPayoutRequest = z.object({
|
|
160
|
-
payoutId: z.string().describe("ID of the payout to retrieve.").regex(
|
|
161
|
-
/^[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}$/,
|
|
162
|
-
"Must be a valid GUID"
|
|
163
|
-
),
|
|
164
|
-
accountId: z.string().describe(
|
|
165
|
-
"ID of the Wix Payments account that owns the payout. The payout must\nbelong to this account. Retrieve account IDs from the Accounts API."
|
|
166
|
-
).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 GetPayoutResponse = z.object({
|
|
172
|
-
_id: z.string().describe("Payout ID.").regex(
|
|
173
|
-
/^[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}$/,
|
|
174
|
-
"Must be a valid GUID"
|
|
175
|
-
).optional(),
|
|
176
|
-
accountId: z.string().describe(
|
|
177
|
-
"ID of the Wix Payments account that owns the payout. Retrieve account IDs\nfrom the Accounts API."
|
|
178
|
-
).regex(
|
|
179
|
-
/^[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}$/,
|
|
180
|
-
"Must be a valid GUID"
|
|
181
|
-
).optional(),
|
|
182
|
-
accountProfileId: z.string().describe(
|
|
183
|
-
"ID of the Wix Payments account profile that owns the payout.\n\nA Wix Payments account has 1 or more profiles. Each profile has its own\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\nprofile IDs from the Accounts API."
|
|
184
|
-
).regex(
|
|
185
|
-
/^[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}$/,
|
|
186
|
-
"Must be a valid GUID"
|
|
187
|
-
).optional(),
|
|
188
|
-
_createdDate: z.date().describe(
|
|
189
|
-
"Date and time the payout was created.\n\nThe payout is created before the underlying transfer is initiated at the\nbank. Once initiated, the funds typically reach the merchant's bank account\nwithin 3 to 5 business days, depending on the receiving bank."
|
|
190
|
-
).optional().nullable(),
|
|
191
|
-
amount: z.object({
|
|
192
|
-
value: z.string().describe(
|
|
193
|
-
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
194
|
-
).optional(),
|
|
195
|
-
currency: z.string().describe(
|
|
196
|
-
"Currency code. Must be valid ISO 4217 currency code (e.g., USD)."
|
|
197
|
-
).optional(),
|
|
198
|
-
formattedValue: z.string().describe(
|
|
199
|
-
"Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative."
|
|
200
|
-
).optional().nullable()
|
|
201
|
-
}).describe("Amount of the transfer to the merchant's bank account.").optional(),
|
|
202
|
-
status: z.enum(["UNKNOWN", "SENT", "FAILED"]).describe(
|
|
203
|
-
"Lifecycle status of the payout.\n\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\nthe receiving bank rejected the transfer.\n\nA `SENT` status doesn't guarantee that the funds were delivered to the\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\npayout in `SENT` can later transition to `FAILED` if the receiving bank\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\ndetails."
|
|
204
|
-
).optional(),
|
|
205
|
-
estimatedArrivalDateV2: z.string().describe(
|
|
206
|
-
"Estimated date for when the funds should arrive at the merchant's bank\naccount, in `YYYY-MM-DD` format.\n\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\ndepends on the receiving bank's processing and may be later."
|
|
207
|
-
).optional().nullable(),
|
|
208
|
-
failureReason: z.object({
|
|
209
|
-
code: z.enum([
|
|
210
|
-
"GENERIC_PAYOUT_FAILURE",
|
|
211
|
-
"ACCOUNT_CLOSED",
|
|
212
|
-
"ACCOUNT_FROZEN",
|
|
213
|
-
"BANK_ACCOUNT_RESTRICTED",
|
|
214
|
-
"BANK_OWNERSHIP_CHANGED",
|
|
215
|
-
"COULD_NOT_PROCESS",
|
|
216
|
-
"DEBIT_NOT_AUTHORIZED",
|
|
217
|
-
"INCORRECT_ACCOUNT_HOLDER_NAME",
|
|
218
|
-
"INVALID_ACCOUNT_DETAILS_CITY",
|
|
219
|
-
"INVALID_ACCOUNT_NUMBER",
|
|
220
|
-
"INVALID_CURRENCY",
|
|
221
|
-
"INVALID_ROUTING_NUMBER",
|
|
222
|
-
"INVALID_SORT_CODE",
|
|
223
|
-
"NO_ACCOUNT",
|
|
224
|
-
"TECHNICAL_ERROR"
|
|
225
|
-
]).describe("Why the bank rail rejected the transfer.").optional()
|
|
226
|
-
}).describe(
|
|
227
|
-
"Reason the bank rail rejected the transfer.\n\nReturned only when `status` is `FAILED`."
|
|
228
|
-
).optional(),
|
|
229
|
-
bankTransferReference: z.string().describe(
|
|
230
|
-
"Reference returned by the bank rail once the transfer is initiated. For\nexample, an ACH trace number or a SEPA reference. Use this value to\nreconcile against the merchant's bank statement.\n\nEmpty until the bank rail returns a reference."
|
|
231
|
-
).max(500).optional().nullable(),
|
|
232
|
-
cashAdvanceIncluded: z.boolean().describe(
|
|
233
|
-
"Whether the payout `amount` includes funds from a Wix Capital cash advance\ntaken out by the merchant. If `false`, the amount comes only from the\nmerchant's sales proceeds."
|
|
234
|
-
).optional()
|
|
235
|
-
});
|
|
236
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
237
|
-
0 && (module.exports = {
|
|
238
|
-
GetPayoutRequest,
|
|
239
|
-
GetPayoutResponse,
|
|
240
|
-
ListPayoutsRequest,
|
|
241
|
-
ListPayoutsResponse
|
|
242
|
-
});
|
|
243
|
-
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/payments-payouts-v4-payout-payouts.schemas.ts"],"sourcesContent":["export * from './src/payments-payouts-v4-payout-payouts.schemas.js';\n","import * as z from 'zod';\n\nexport const ListPayoutsRequest = z.object({\n accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account whose payouts to list. Retrieve account\\nIDs from the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile to filter by.\\n\\nWhen omitted, payouts across all profiles of the account are returned.\\nRetrieve profile IDs from the Accounts API.'\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 .nullable(),\n createdBefore: z\n .date()\n .describe(\n 'Returns only payouts created before this date and time. The date and time\\nitself is excluded.'\n )\n .optional()\n .nullable(),\n createdAfter: z\n .date()\n .describe(\n 'Returns only payouts created on or after this date and time. The date and\\ntime itself is included.'\n )\n .optional()\n .nullable(),\n sort: z\n .object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n origin: z\n .object({\n latitude: z\n .number()\n .describe('Address latitude.')\n .optional()\n .nullable(),\n longitude: z\n .number()\n .describe('Address longitude.')\n .optional()\n .nullable(),\n })\n .describe(\n 'Origin point for geo-distance sorting on a GEO field\\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first).'\n )\n .optional(),\n })\n .describe(\n 'Sort order for the result list.\\n\\nSupported `fieldName` values: `created_date` (snake_case, not auto-converted). At most 1 sort field is allowed.'\n )\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Number of items to load.')\n .min(0)\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe('Number of items to skip in the current sort order.')\n .min(0)\n .optional()\n .nullable(),\n })\n .describe(\n 'Offset-based paging. `limit` supports values from `1` to `20`.\\n\\nDefault: `limit` is `20`, `offset` is `0`.'\n )\n .optional(),\n })\n .optional(),\n});\nexport const ListPayoutsResponse = z.object({\n payouts: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n })\n )\n .optional(),\n metadata: 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('Total number of items that match the query.')\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 })\n .describe('Paging metadata.')\n .optional(),\n});\nexport const GetPayoutRequest = z.object({\n payoutId: z\n .string()\n .describe('ID of the payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. The payout must\\nbelong to this account. Retrieve account IDs from the Accounts API.'\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});\nexport const GetPayoutResponse = z.object({\n _id: z\n .string()\n .describe('Payout 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 accountId: z\n .string()\n .describe(\n 'ID of the Wix Payments account that owns the payout. Retrieve account IDs\\nfrom the Accounts API.'\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 accountProfileId: z\n .string()\n .describe(\n 'ID of the Wix Payments account profile that owns the payout.\\n\\nA Wix Payments account has 1 or more profiles. Each profile has its own\\nbalance and its own payouts. Most merchants have 1 profile. Retrieve\\nprofile IDs from the Accounts API.'\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 _createdDate: z\n .date()\n .describe(\n \"Date and time the payout was created.\\n\\nThe payout is created before the underlying transfer is initiated at the\\nbank. Once initiated, the funds typically reach the merchant's bank account\\nwithin 3 to 5 business days, depending on the receiving bank.\"\n )\n .optional()\n .nullable(),\n amount: z\n .object({\n value: z\n .string()\n .describe(\n 'Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional(),\n currency: z\n .string()\n .describe(\n 'Currency code. Must be valid ISO 4217 currency code (e.g., USD).'\n )\n .optional(),\n formattedValue: z\n .string()\n .describe(\n 'Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative.'\n )\n .optional()\n .nullable(),\n })\n .describe(\"Amount of the transfer to the merchant's bank account.\")\n .optional(),\n status: z\n .enum(['UNKNOWN', 'SENT', 'FAILED'])\n .describe(\n \"Lifecycle status of the payout.\\n\\n`SENT` means the bank rail accepted the transfer for delivery. `FAILED` means\\nthe receiving bank rejected the transfer.\\n\\nA `SENT` status doesn't guarantee that the funds were delivered to the\\nmerchant. The bank rail doesn't provide a delivery acknowledgement, and a\\npayout in `SENT` can later transition to `FAILED` if the receiving bank\\nrejects the transfer. See the per-value documentation on `PayoutStatus` for\\ndetails.\"\n )\n .optional(),\n estimatedArrivalDateV2: z\n .string()\n .describe(\n \"Estimated date for when the funds should arrive at the merchant's bank\\naccount, in `YYYY-MM-DD` format.\\n\\nThe estimated arrival date is a prediction, not a guarantee. Actual arrival\\ndepends on the receiving bank's processing and may be later.\"\n )\n .optional()\n .nullable(),\n failureReason: z\n .object({\n code: z\n .enum([\n 'GENERIC_PAYOUT_FAILURE',\n 'ACCOUNT_CLOSED',\n 'ACCOUNT_FROZEN',\n 'BANK_ACCOUNT_RESTRICTED',\n 'BANK_OWNERSHIP_CHANGED',\n 'COULD_NOT_PROCESS',\n 'DEBIT_NOT_AUTHORIZED',\n 'INCORRECT_ACCOUNT_HOLDER_NAME',\n 'INVALID_ACCOUNT_DETAILS_CITY',\n 'INVALID_ACCOUNT_NUMBER',\n 'INVALID_CURRENCY',\n 'INVALID_ROUTING_NUMBER',\n 'INVALID_SORT_CODE',\n 'NO_ACCOUNT',\n 'TECHNICAL_ERROR',\n ])\n .describe('Why the bank rail rejected the transfer.')\n .optional(),\n })\n .describe(\n 'Reason the bank rail rejected the transfer.\\n\\nReturned only when `status` is `FAILED`.'\n )\n .optional(),\n bankTransferReference: z\n .string()\n .describe(\n \"Reference returned by the bank rail once the transfer is initiated. For\\nexample, an ACH trace number or a SEPA reference. Use this value to\\nreconcile against the merchant's bank statement.\\n\\nEmpty until the bank rail returns a reference.\"\n )\n .max(500)\n .optional()\n .nullable(),\n cashAdvanceIncluded: z\n .boolean()\n .describe(\n \"Whether the payout `amount` includes funds from a Wix Capital cash advance\\ntaken out by the merchant. If `false`, the amount comes only from the\\nmerchant's sales proceeds.\"\n )\n .optional(),\n});\n"],"mappings":"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","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const ListPayoutsRequest: z.ZodObject<{
|
|
4
|
-
accountId: z.ZodString;
|
|
5
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
accountProfileId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
createdBefore: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
8
|
-
createdAfter: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
9
|
-
sort: z.ZodOptional<z.ZodObject<{
|
|
10
|
-
fieldName: z.ZodOptional<z.ZodString>;
|
|
11
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
12
|
-
ASC: "ASC";
|
|
13
|
-
DESC: "DESC";
|
|
14
|
-
}>>;
|
|
15
|
-
origin: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17
|
-
longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
18
|
-
}, z.core.$strip>>;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
paging: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
limit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
22
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
23
|
-
}, z.core.$strip>>;
|
|
24
|
-
}, z.core.$strip>>;
|
|
25
|
-
}, z.core.$strip>;
|
|
26
|
-
declare const ListPayoutsResponse: z.ZodObject<{
|
|
27
|
-
payouts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
29
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
30
|
-
accountProfileId: z.ZodOptional<z.ZodString>;
|
|
31
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
32
|
-
amount: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
value: z.ZodOptional<z.ZodString>;
|
|
34
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
35
|
-
formattedValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
36
|
-
}, z.core.$strip>>;
|
|
37
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
38
|
-
UNKNOWN: "UNKNOWN";
|
|
39
|
-
SENT: "SENT";
|
|
40
|
-
FAILED: "FAILED";
|
|
41
|
-
}>>;
|
|
42
|
-
estimatedArrivalDateV2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
-
failureReason: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
code: z.ZodOptional<z.ZodEnum<{
|
|
45
|
-
GENERIC_PAYOUT_FAILURE: "GENERIC_PAYOUT_FAILURE";
|
|
46
|
-
ACCOUNT_CLOSED: "ACCOUNT_CLOSED";
|
|
47
|
-
ACCOUNT_FROZEN: "ACCOUNT_FROZEN";
|
|
48
|
-
BANK_ACCOUNT_RESTRICTED: "BANK_ACCOUNT_RESTRICTED";
|
|
49
|
-
BANK_OWNERSHIP_CHANGED: "BANK_OWNERSHIP_CHANGED";
|
|
50
|
-
COULD_NOT_PROCESS: "COULD_NOT_PROCESS";
|
|
51
|
-
DEBIT_NOT_AUTHORIZED: "DEBIT_NOT_AUTHORIZED";
|
|
52
|
-
INCORRECT_ACCOUNT_HOLDER_NAME: "INCORRECT_ACCOUNT_HOLDER_NAME";
|
|
53
|
-
INVALID_ACCOUNT_DETAILS_CITY: "INVALID_ACCOUNT_DETAILS_CITY";
|
|
54
|
-
INVALID_ACCOUNT_NUMBER: "INVALID_ACCOUNT_NUMBER";
|
|
55
|
-
INVALID_CURRENCY: "INVALID_CURRENCY";
|
|
56
|
-
INVALID_ROUTING_NUMBER: "INVALID_ROUTING_NUMBER";
|
|
57
|
-
INVALID_SORT_CODE: "INVALID_SORT_CODE";
|
|
58
|
-
NO_ACCOUNT: "NO_ACCOUNT";
|
|
59
|
-
TECHNICAL_ERROR: "TECHNICAL_ERROR";
|
|
60
|
-
}>>;
|
|
61
|
-
}, z.core.$strip>>;
|
|
62
|
-
bankTransferReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
63
|
-
cashAdvanceIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
}, z.core.$strip>>>;
|
|
65
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
66
|
-
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
|
-
offset: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
-
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
tooManyToCount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
70
|
-
}, z.core.$strip>>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
declare const GetPayoutRequest: z.ZodObject<{
|
|
73
|
-
payoutId: z.ZodString;
|
|
74
|
-
accountId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
declare const GetPayoutResponse: z.ZodObject<{
|
|
77
|
-
_id: z.ZodOptional<z.ZodString>;
|
|
78
|
-
accountId: z.ZodOptional<z.ZodString>;
|
|
79
|
-
accountProfileId: z.ZodOptional<z.ZodString>;
|
|
80
|
-
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
81
|
-
amount: z.ZodOptional<z.ZodObject<{
|
|
82
|
-
value: z.ZodOptional<z.ZodString>;
|
|
83
|
-
currency: z.ZodOptional<z.ZodString>;
|
|
84
|
-
formattedValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
85
|
-
}, z.core.$strip>>;
|
|
86
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
87
|
-
UNKNOWN: "UNKNOWN";
|
|
88
|
-
SENT: "SENT";
|
|
89
|
-
FAILED: "FAILED";
|
|
90
|
-
}>>;
|
|
91
|
-
estimatedArrivalDateV2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
92
|
-
failureReason: z.ZodOptional<z.ZodObject<{
|
|
93
|
-
code: z.ZodOptional<z.ZodEnum<{
|
|
94
|
-
GENERIC_PAYOUT_FAILURE: "GENERIC_PAYOUT_FAILURE";
|
|
95
|
-
ACCOUNT_CLOSED: "ACCOUNT_CLOSED";
|
|
96
|
-
ACCOUNT_FROZEN: "ACCOUNT_FROZEN";
|
|
97
|
-
BANK_ACCOUNT_RESTRICTED: "BANK_ACCOUNT_RESTRICTED";
|
|
98
|
-
BANK_OWNERSHIP_CHANGED: "BANK_OWNERSHIP_CHANGED";
|
|
99
|
-
COULD_NOT_PROCESS: "COULD_NOT_PROCESS";
|
|
100
|
-
DEBIT_NOT_AUTHORIZED: "DEBIT_NOT_AUTHORIZED";
|
|
101
|
-
INCORRECT_ACCOUNT_HOLDER_NAME: "INCORRECT_ACCOUNT_HOLDER_NAME";
|
|
102
|
-
INVALID_ACCOUNT_DETAILS_CITY: "INVALID_ACCOUNT_DETAILS_CITY";
|
|
103
|
-
INVALID_ACCOUNT_NUMBER: "INVALID_ACCOUNT_NUMBER";
|
|
104
|
-
INVALID_CURRENCY: "INVALID_CURRENCY";
|
|
105
|
-
INVALID_ROUTING_NUMBER: "INVALID_ROUTING_NUMBER";
|
|
106
|
-
INVALID_SORT_CODE: "INVALID_SORT_CODE";
|
|
107
|
-
NO_ACCOUNT: "NO_ACCOUNT";
|
|
108
|
-
TECHNICAL_ERROR: "TECHNICAL_ERROR";
|
|
109
|
-
}>>;
|
|
110
|
-
}, z.core.$strip>>;
|
|
111
|
-
bankTransferReference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
112
|
-
cashAdvanceIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
|
|
115
|
-
export { GetPayoutRequest, GetPayoutResponse, ListPayoutsRequest, ListPayoutsResponse };
|