@gr4vy/sdk 2.3.10 → 2.3.11
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/funcs/payoutsList.d.ts +1 -1
- package/funcs/payoutsList.d.ts.map +1 -1
- package/funcs/payoutsList.js +15 -10
- package/funcs/payoutsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/payoutstatus.d.ts +2 -0
- package/models/components/payoutstatus.d.ts.map +1 -1
- package/models/components/payoutstatus.js +3 -1
- package/models/components/payoutstatus.js.map +1 -1
- package/models/operations/listpayouts.d.ts +35 -0
- package/models/operations/listpayouts.d.ts.map +1 -1
- package/models/operations/listpayouts.js +17 -0
- package/models/operations/listpayouts.js.map +1 -1
- package/package.json +1 -1
- package/sdk/payouts.d.ts +1 -1
- package/sdk/payouts.d.ts.map +1 -1
- package/sdk/payouts.js +2 -2
- package/sdk/payouts.js.map +1 -1
- package/src/funcs/payoutsList.ts +15 -19
- package/src/lib/config.ts +3 -3
- package/src/models/components/payoutstatus.ts +6 -0
- package/src/models/operations/listpayouts.ts +52 -0
- package/src/sdk/payouts.ts +2 -6
package/funcs/payoutsList.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import { PageIterator } from "../types/operations.js";
|
|
|
15
15
|
* @remarks
|
|
16
16
|
* Returns a list of payouts made.
|
|
17
17
|
*/
|
|
18
|
-
export declare function payoutsList(client: Gr4vyCore,
|
|
18
|
+
export declare function payoutsList(client: Gr4vyCore, request?: operations.ListPayoutsRequest | undefined, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListPayoutsResponse, errors.Error400 | errors.Error401 | errors.Error403 | errors.Error404 | errors.Error405 | errors.Error409 | errors.HTTPValidationError | errors.Error425 | errors.Error429 | errors.Error500 | errors.Error502 | errors.Error504 | Gr4vyError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
|
|
19
19
|
cursor: string;
|
|
20
20
|
}>>;
|
|
21
21
|
//# sourceMappingURL=payoutsList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutsList.d.ts","sourceRoot":"","sources":["../src/funcs/payoutsList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAMvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,
|
|
1
|
+
{"version":3,"file":"payoutsList.d.ts","sourceRoot":"","sources":["../src/funcs/payoutsList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAMvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,mBAAmB,EAC5B,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,UAAU,GACV,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,EACD;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CACnB,CACF,CAMA"}
|
package/funcs/payoutsList.js
CHANGED
|
@@ -54,16 +54,11 @@ const operations_js_1 = require("../types/operations.js");
|
|
|
54
54
|
* @remarks
|
|
55
55
|
* Returns a list of payouts made.
|
|
56
56
|
*/
|
|
57
|
-
function payoutsList(client,
|
|
58
|
-
return new async_js_1.APIPromise($do(client,
|
|
57
|
+
function payoutsList(client, request, options) {
|
|
58
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
59
59
|
}
|
|
60
|
-
async function $do(client,
|
|
61
|
-
const
|
|
62
|
-
cursor: cursor,
|
|
63
|
-
limit: limit,
|
|
64
|
-
merchantAccountId: merchantAccountId,
|
|
65
|
-
};
|
|
66
|
-
const parsed = (0, schemas_js_1.safeParse)(input, (value) => operations.ListPayoutsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
60
|
+
async function $do(client, request, options) {
|
|
61
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListPayoutsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
67
62
|
if (!parsed.ok) {
|
|
68
63
|
return [(0, operations_js_1.haltIterator)(parsed), { status: "invalid" }];
|
|
69
64
|
}
|
|
@@ -71,8 +66,15 @@ async function $do(client, cursor, limit, merchantAccountId, options) {
|
|
|
71
66
|
const body = null;
|
|
72
67
|
const path = (0, url_js_1.pathToFunc)("/payouts")();
|
|
73
68
|
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
69
|
+
"created_at_gte": payload?.created_at_gte,
|
|
70
|
+
"created_at_lte": payload?.created_at_lte,
|
|
74
71
|
"cursor": payload?.cursor,
|
|
72
|
+
"external_identifier": payload?.external_identifier,
|
|
75
73
|
"limit": payload?.limit,
|
|
74
|
+
"payment_service_payout_id": payload?.payment_service_payout_id,
|
|
75
|
+
"status": payload?.status,
|
|
76
|
+
"updated_at_gte": payload?.updated_at_gte,
|
|
77
|
+
"updated_at_lte": payload?.updated_at_lte,
|
|
76
78
|
});
|
|
77
79
|
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
78
80
|
Accept: "application/json",
|
|
@@ -149,7 +151,10 @@ async function $do(client, cursor, limit, merchantAccountId, options) {
|
|
|
149
151
|
if (nextCursor.trim() === "") {
|
|
150
152
|
return { next: () => null };
|
|
151
153
|
}
|
|
152
|
-
const nextVal = () => payoutsList(client,
|
|
154
|
+
const nextVal = () => payoutsList(client, {
|
|
155
|
+
...request,
|
|
156
|
+
cursor: nextCursor,
|
|
157
|
+
}, options);
|
|
153
158
|
return { next: nextVal, "~next": { cursor: nextCursor } };
|
|
154
159
|
};
|
|
155
160
|
const page = { ...result, ...nextFunc(raw) };
|
package/funcs/payoutsList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutsList.js","sourceRoot":"","sources":["../src/funcs/payoutsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,
|
|
1
|
+
{"version":3,"file":"payoutsList.js","sourceRoot":"","sources":["../src/funcs/payoutsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,kCAqCC;AAxED,sDAAoE;AACpE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAExD,0DAKgC;AAEhC;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,MAAiB,EACjB,OAAmD,EACnD,OAAwB;IA6BxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAiB,EACjB,OAAmD,EACnD,OAAwB;IAgCxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,iCAAiC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACtE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,IAAA,4BAAY,EAAC,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,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ACR,CAAC;QAEJ,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5D,CAAC,CAAC;IAEF,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,IAAA,kCAAkB,EAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC9D,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,GAAG;YACZ,QAAQ;SACT,CAAC,CAAC;AACL,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -44,8 +44,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
44
44
|
export declare const SDK_METADATA: {
|
|
45
45
|
readonly language: "typescript";
|
|
46
46
|
readonly openapiDocVersion: "1.0.0";
|
|
47
|
-
readonly sdkVersion: "2.3.
|
|
48
|
-
readonly genVersion: "2.
|
|
49
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.3.
|
|
47
|
+
readonly sdkVersion: "2.3.11";
|
|
48
|
+
readonly genVersion: "2.912.1";
|
|
49
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.3.11 2.912.1 1.0.0 @gr4vy/sdk";
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -37,8 +37,8 @@ function serverURLFromOptions(options) {
|
|
|
37
37
|
exports.SDK_METADATA = {
|
|
38
38
|
language: "typescript",
|
|
39
39
|
openapiDocVersion: "1.0.0",
|
|
40
|
-
sdkVersion: "2.3.
|
|
41
|
-
genVersion: "2.
|
|
42
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
40
|
+
sdkVersion: "2.3.11",
|
|
41
|
+
genVersion: "2.912.1",
|
|
42
|
+
userAgent: "speakeasy-sdk/typescript 2.3.11 2.912.1 1.0.0 @gr4vy/sdk",
|
|
43
43
|
};
|
|
44
44
|
//# sourceMappingURL=config.js.map
|
|
@@ -9,4 +9,6 @@ export declare const PayoutStatus: {
|
|
|
9
9
|
export type PayoutStatus = OpenEnum<typeof PayoutStatus>;
|
|
10
10
|
/** @internal */
|
|
11
11
|
export declare const PayoutStatus$inboundSchema: z.ZodType<PayoutStatus, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const PayoutStatus$outboundSchema: z.ZodType<string, z.ZodTypeDef, PayoutStatus>;
|
|
12
14
|
//# sourceMappingURL=payoutstatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/payoutstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CACgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"payoutstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/payoutstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CACgC,CAAC;AAC1C,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,MAAM,EACN,CAAC,CAAC,UAAU,EACZ,YAAY,CAC4B,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PayoutStatus$inboundSchema = exports.PayoutStatus = void 0;
|
|
39
|
+
exports.PayoutStatus$outboundSchema = exports.PayoutStatus$inboundSchema = exports.PayoutStatus = void 0;
|
|
40
40
|
const openEnums = __importStar(require("../../types/enums.js"));
|
|
41
41
|
exports.PayoutStatus = {
|
|
42
42
|
Declined: "declined",
|
|
@@ -46,4 +46,6 @@ exports.PayoutStatus = {
|
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
48
48
|
exports.PayoutStatus$inboundSchema = openEnums.inboundSchema(exports.PayoutStatus);
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.PayoutStatus$outboundSchema = openEnums.outboundSchema(exports.PayoutStatus);
|
|
49
51
|
//# sourceMappingURL=payoutstatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payoutstatus.js","sourceRoot":"","sources":["../../src/models/components/payoutstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,gEAAkD;AAGrC,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAGX,gBAAgB;AACH,QAAA,0BAA0B,GAInC,SAAS,CAAC,aAAa,CAAC,oBAAY,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"payoutstatus.js","sourceRoot":"","sources":["../../src/models/components/payoutstatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,gEAAkD;AAGrC,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;CACd,CAAC;AAGX,gBAAgB;AACH,QAAA,0BAA0B,GAInC,SAAS,CAAC,aAAa,CAAC,oBAAY,CAAC,CAAC;AAC1C,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,SAAS,CAAC,cAAc,CAAC,oBAAY,CAAC,CAAC"}
|
|
@@ -14,6 +14,34 @@ export type ListPayoutsRequest = {
|
|
|
14
14
|
* The maximum number of items that are at returned.
|
|
15
15
|
*/
|
|
16
16
|
limit?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Filters the results to only payouts created before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
19
|
+
*/
|
|
20
|
+
createdAtLte?: Date | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Filters the results to only payouts created after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
23
|
+
*/
|
|
24
|
+
createdAtGte?: Date | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filters the results to only payouts updated before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
27
|
+
*/
|
|
28
|
+
updatedAtLte?: Date | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filters the results to only payouts updated after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
31
|
+
*/
|
|
32
|
+
updatedAtGte?: Date | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filters the results to only the payouts that have an `external_identifier` that exactly matches this value.
|
|
35
|
+
*/
|
|
36
|
+
externalIdentifier?: string | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Filters the results to only the payouts that have a `payment_service_payout_id` that exactly matches this value.
|
|
39
|
+
*/
|
|
40
|
+
paymentServicePayoutId?: string | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Filters the results to only the payouts that have a `status` that matches with any of the provided status values.
|
|
43
|
+
*/
|
|
44
|
+
status?: Array<components.PayoutStatus> | null | undefined;
|
|
17
45
|
/**
|
|
18
46
|
* The ID of the merchant account to use for this request.
|
|
19
47
|
*/
|
|
@@ -26,6 +54,13 @@ export type ListPayoutsResponse = {
|
|
|
26
54
|
export type ListPayoutsRequest$Outbound = {
|
|
27
55
|
cursor?: string | null | undefined;
|
|
28
56
|
limit: number;
|
|
57
|
+
created_at_lte?: string | null | undefined;
|
|
58
|
+
created_at_gte?: string | null | undefined;
|
|
59
|
+
updated_at_lte?: string | null | undefined;
|
|
60
|
+
updated_at_gte?: string | null | undefined;
|
|
61
|
+
external_identifier?: string | null | undefined;
|
|
62
|
+
payment_service_payout_id?: string | null | undefined;
|
|
63
|
+
status?: Array<string> | null | undefined;
|
|
29
64
|
merchantAccountId?: string | null | undefined;
|
|
30
65
|
};
|
|
31
66
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listpayouts.d.ts","sourceRoot":"","sources":["../../src/models/operations/listpayouts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,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AAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtD,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAsBlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -47,7 +47,24 @@ const components = __importStar(require("../components/index.js"));
|
|
|
47
47
|
exports.ListPayoutsRequest$outboundSchema = z.object({
|
|
48
48
|
cursor: z.nullable(z.string()).optional(),
|
|
49
49
|
limit: z.number().int().default(20),
|
|
50
|
+
createdAtLte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
51
|
+
createdAtGte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
52
|
+
updatedAtLte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
53
|
+
updatedAtGte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
54
|
+
externalIdentifier: z.nullable(z.string()).optional(),
|
|
55
|
+
paymentServicePayoutId: z.nullable(z.string()).optional(),
|
|
56
|
+
status: z.nullable(z.array(components.PayoutStatus$outboundSchema))
|
|
57
|
+
.optional(),
|
|
50
58
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
createdAtLte: "created_at_lte",
|
|
62
|
+
createdAtGte: "created_at_gte",
|
|
63
|
+
updatedAtLte: "updated_at_lte",
|
|
64
|
+
updatedAtGte: "updated_at_gte",
|
|
65
|
+
externalIdentifier: "external_identifier",
|
|
66
|
+
paymentServicePayoutId: "payment_service_payout_id",
|
|
67
|
+
});
|
|
51
68
|
});
|
|
52
69
|
function listPayoutsRequestToJSON(listPayoutsRequest) {
|
|
53
70
|
return JSON.stringify(exports.ListPayoutsRequest$outboundSchema.parse(listPayoutsRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listpayouts.js","sourceRoot":"","sources":["../../src/models/operations/listpayouts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"listpayouts.js","sourceRoot":"","sources":["../../src/models/operations/listpayouts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsGH,4DAMC;AAeD,kEAQC;AAjID,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAoErD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IACnC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,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B;KACpD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,UAAU,CAAC,6BAA6B;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/sdk/payouts.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class Payouts extends ClientSDK {
|
|
|
9
9
|
* @remarks
|
|
10
10
|
* Returns a list of payouts made.
|
|
11
11
|
*/
|
|
12
|
-
list(
|
|
12
|
+
list(request?: operations.ListPayoutsRequest | undefined, options?: RequestOptions): Promise<PageIterator<operations.ListPayoutsResponse, {
|
|
13
13
|
cursor: string;
|
|
14
14
|
}>>;
|
|
15
15
|
/**
|
package/sdk/payouts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payouts.d.ts","sourceRoot":"","sources":["../src/sdk/payouts.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACR,
|
|
1
|
+
{"version":3,"file":"payouts.d.ts","sourceRoot":"","sources":["../src/sdk/payouts.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,mBAAmB,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQ5E;;;;;OAKG;IACG,MAAM,CACV,YAAY,EAAE,UAAU,CAAC,YAAY,EACrC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;IASpC;;;;;OAKG;IACG,GAAG,CACP,QAAQ,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;CAQrC"}
|
package/sdk/payouts.js
CHANGED
|
@@ -17,8 +17,8 @@ class Payouts extends sdks_js_1.ClientSDK {
|
|
|
17
17
|
* @remarks
|
|
18
18
|
* Returns a list of payouts made.
|
|
19
19
|
*/
|
|
20
|
-
async list(
|
|
21
|
-
return (0, operations_js_1.unwrapResultIterator)((0, payoutsList_js_1.payoutsList)(this,
|
|
20
|
+
async list(request, options) {
|
|
21
|
+
return (0, operations_js_1.unwrapResultIterator)((0, payoutsList_js_1.payoutsList)(this, request, options));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Create a payout
|
package/sdk/payouts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payouts.js","sourceRoot":"","sources":["../src/sdk/payouts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAC1D,0DAAoD;AACpD,4DAAsD;AACtD,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,
|
|
1
|
+
{"version":3,"file":"payouts.js","sourceRoot":"","sources":["../src/sdk/payouts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gEAA0D;AAC1D,0DAAoD;AACpD,4DAAsD;AACtD,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAE5E,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,oCAAoB,EAAC,IAAA,4BAAW,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,YAAqC,EACrC,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,YAAY,EACZ,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,QAAgB,EAChB,iBAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAC3B,IAAI,EACJ,QAAQ,EACR,iBAAiB,EACjB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvDD,0BAuDC"}
|
package/src/funcs/payoutsList.ts
CHANGED
|
@@ -40,9 +40,7 @@ import {
|
|
|
40
40
|
*/
|
|
41
41
|
export function payoutsList(
|
|
42
42
|
client: Gr4vyCore,
|
|
43
|
-
|
|
44
|
-
limit?: number | undefined,
|
|
45
|
-
merchantAccountId?: string | null | undefined,
|
|
43
|
+
request?: operations.ListPayoutsRequest | undefined,
|
|
46
44
|
options?: RequestOptions,
|
|
47
45
|
): APIPromise<
|
|
48
46
|
PageIterator<
|
|
@@ -74,18 +72,14 @@ export function payoutsList(
|
|
|
74
72
|
> {
|
|
75
73
|
return new APIPromise($do(
|
|
76
74
|
client,
|
|
77
|
-
|
|
78
|
-
limit,
|
|
79
|
-
merchantAccountId,
|
|
75
|
+
request,
|
|
80
76
|
options,
|
|
81
77
|
));
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
async function $do(
|
|
85
81
|
client: Gr4vyCore,
|
|
86
|
-
|
|
87
|
-
limit?: number | undefined,
|
|
88
|
-
merchantAccountId?: string | null | undefined,
|
|
82
|
+
request?: operations.ListPayoutsRequest | undefined,
|
|
89
83
|
options?: RequestOptions,
|
|
90
84
|
): Promise<
|
|
91
85
|
[
|
|
@@ -118,14 +112,8 @@ async function $do(
|
|
|
118
112
|
APICall,
|
|
119
113
|
]
|
|
120
114
|
> {
|
|
121
|
-
const input: operations.ListPayoutsRequest | undefined = {
|
|
122
|
-
cursor: cursor,
|
|
123
|
-
limit: limit,
|
|
124
|
-
merchantAccountId: merchantAccountId,
|
|
125
|
-
};
|
|
126
|
-
|
|
127
115
|
const parsed = safeParse(
|
|
128
|
-
|
|
116
|
+
request,
|
|
129
117
|
(value) =>
|
|
130
118
|
operations.ListPayoutsRequest$outboundSchema.optional().parse(value),
|
|
131
119
|
"Input validation failed",
|
|
@@ -139,8 +127,15 @@ async function $do(
|
|
|
139
127
|
const path = pathToFunc("/payouts")();
|
|
140
128
|
|
|
141
129
|
const query = encodeFormQuery({
|
|
130
|
+
"created_at_gte": payload?.created_at_gte,
|
|
131
|
+
"created_at_lte": payload?.created_at_lte,
|
|
142
132
|
"cursor": payload?.cursor,
|
|
133
|
+
"external_identifier": payload?.external_identifier,
|
|
143
134
|
"limit": payload?.limit,
|
|
135
|
+
"payment_service_payout_id": payload?.payment_service_payout_id,
|
|
136
|
+
"status": payload?.status,
|
|
137
|
+
"updated_at_gte": payload?.updated_at_gte,
|
|
138
|
+
"updated_at_lte": payload?.updated_at_lte,
|
|
144
139
|
});
|
|
145
140
|
|
|
146
141
|
const headers = new Headers(compactMap({
|
|
@@ -304,9 +299,10 @@ async function $do(
|
|
|
304
299
|
const nextVal = () =>
|
|
305
300
|
payoutsList(
|
|
306
301
|
client,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
302
|
+
{
|
|
303
|
+
...request!,
|
|
304
|
+
cursor: nextCursor,
|
|
305
|
+
},
|
|
310
306
|
options,
|
|
311
307
|
);
|
|
312
308
|
|
package/src/lib/config.ts
CHANGED
|
@@ -77,7 +77,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
77
77
|
export const SDK_METADATA = {
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "1.0.0",
|
|
80
|
-
sdkVersion: "2.3.
|
|
81
|
-
genVersion: "2.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 2.3.
|
|
80
|
+
sdkVersion: "2.3.11",
|
|
81
|
+
genVersion: "2.912.1",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 2.3.11 2.912.1 1.0.0 @gr4vy/sdk",
|
|
83
83
|
} as const;
|
|
@@ -20,3 +20,9 @@ export const PayoutStatus$inboundSchema: z.ZodType<
|
|
|
20
20
|
z.ZodTypeDef,
|
|
21
21
|
unknown
|
|
22
22
|
> = openEnums.inboundSchema(PayoutStatus);
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const PayoutStatus$outboundSchema: z.ZodType<
|
|
25
|
+
string,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
PayoutStatus
|
|
28
|
+
> = openEnums.outboundSchema(PayoutStatus);
|
|
@@ -22,6 +22,34 @@ export type ListPayoutsRequest = {
|
|
|
22
22
|
* The maximum number of items that are at returned.
|
|
23
23
|
*/
|
|
24
24
|
limit?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Filters the results to only payouts created before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
27
|
+
*/
|
|
28
|
+
createdAtLte?: Date | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Filters the results to only payouts created after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
31
|
+
*/
|
|
32
|
+
createdAtGte?: Date | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Filters the results to only payouts updated before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
35
|
+
*/
|
|
36
|
+
updatedAtLte?: Date | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Filters the results to only payouts updated after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`.
|
|
39
|
+
*/
|
|
40
|
+
updatedAtGte?: Date | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Filters the results to only the payouts that have an `external_identifier` that exactly matches this value.
|
|
43
|
+
*/
|
|
44
|
+
externalIdentifier?: string | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Filters the results to only the payouts that have a `payment_service_payout_id` that exactly matches this value.
|
|
47
|
+
*/
|
|
48
|
+
paymentServicePayoutId?: string | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Filters the results to only the payouts that have a `status` that matches with any of the provided status values.
|
|
51
|
+
*/
|
|
52
|
+
status?: Array<components.PayoutStatus> | null | undefined;
|
|
25
53
|
/**
|
|
26
54
|
* The ID of the merchant account to use for this request.
|
|
27
55
|
*/
|
|
@@ -36,6 +64,13 @@ export type ListPayoutsResponse = {
|
|
|
36
64
|
export type ListPayoutsRequest$Outbound = {
|
|
37
65
|
cursor?: string | null | undefined;
|
|
38
66
|
limit: number;
|
|
67
|
+
created_at_lte?: string | null | undefined;
|
|
68
|
+
created_at_gte?: string | null | undefined;
|
|
69
|
+
updated_at_lte?: string | null | undefined;
|
|
70
|
+
updated_at_gte?: string | null | undefined;
|
|
71
|
+
external_identifier?: string | null | undefined;
|
|
72
|
+
payment_service_payout_id?: string | null | undefined;
|
|
73
|
+
status?: Array<string> | null | undefined;
|
|
39
74
|
merchantAccountId?: string | null | undefined;
|
|
40
75
|
};
|
|
41
76
|
|
|
@@ -47,7 +82,24 @@ export const ListPayoutsRequest$outboundSchema: z.ZodType<
|
|
|
47
82
|
> = z.object({
|
|
48
83
|
cursor: z.nullable(z.string()).optional(),
|
|
49
84
|
limit: z.number().int().default(20),
|
|
85
|
+
createdAtLte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
86
|
+
createdAtGte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
87
|
+
updatedAtLte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
88
|
+
updatedAtGte: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
89
|
+
externalIdentifier: z.nullable(z.string()).optional(),
|
|
90
|
+
paymentServicePayoutId: z.nullable(z.string()).optional(),
|
|
91
|
+
status: z.nullable(z.array(components.PayoutStatus$outboundSchema))
|
|
92
|
+
.optional(),
|
|
50
93
|
merchantAccountId: z.nullable(z.string()).optional(),
|
|
94
|
+
}).transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
createdAtLte: "created_at_lte",
|
|
97
|
+
createdAtGte: "created_at_gte",
|
|
98
|
+
updatedAtLte: "updated_at_lte",
|
|
99
|
+
updatedAtGte: "updated_at_gte",
|
|
100
|
+
externalIdentifier: "external_identifier",
|
|
101
|
+
paymentServicePayoutId: "payment_service_payout_id",
|
|
102
|
+
});
|
|
51
103
|
});
|
|
52
104
|
|
|
53
105
|
export function listPayoutsRequestToJSON(
|
package/src/sdk/payouts.ts
CHANGED
|
@@ -19,16 +19,12 @@ export class Payouts extends ClientSDK {
|
|
|
19
19
|
* Returns a list of payouts made.
|
|
20
20
|
*/
|
|
21
21
|
async list(
|
|
22
|
-
|
|
23
|
-
limit?: number | undefined,
|
|
24
|
-
merchantAccountId?: string | null | undefined,
|
|
22
|
+
request?: operations.ListPayoutsRequest | undefined,
|
|
25
23
|
options?: RequestOptions,
|
|
26
24
|
): Promise<PageIterator<operations.ListPayoutsResponse, { cursor: string }>> {
|
|
27
25
|
return unwrapResultIterator(payoutsList(
|
|
28
26
|
this,
|
|
29
|
-
|
|
30
|
-
limit,
|
|
31
|
-
merchantAccountId,
|
|
27
|
+
request,
|
|
32
28
|
options,
|
|
33
29
|
));
|
|
34
30
|
}
|