mollie-api-typescript 1.3.7 → 1.3.8
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/README.md +11 -0
- package/bin/mcp-server.js +1206 -233
- package/bin/mcp-server.js.map +26 -9
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js +140 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts +29 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js +179 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js +141 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js +140 -0
- package/dist/commonjs/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js +72 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js +69 -0
- package/dist/commonjs/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts +214 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.js +204 -0
- package/dist/commonjs/models/entityunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/errorresponse.d.ts +8 -8
- package/dist/commonjs/models/errorresponse.d.ts.map +1 -1
- package/dist/commonjs/models/errorresponse.js +11 -11
- package/dist/commonjs/models/errorresponse.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +5 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts +191 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.js +185 -0
- package/dist/commonjs/models/listentityunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts +25 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.js +70 -0
- package/dist/commonjs/models/operations/getunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts +95 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.js +151 -0
- package/dist/commonjs/models/operations/listunmatchedcredittransfers.js.map +1 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js +77 -0
- package/dist/commonjs/models/operations/matchunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js +70 -0
- package/dist/commonjs/models/operations/returnunmatchedcredittransfer.js.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts +164 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.js +175 -0
- package/dist/commonjs/models/unmatchedcredittransferactionresponse.js.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js +59 -0
- package/dist/commonjs/models/unmatchedcredittransfermatchrequest.js.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts +14 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.d.ts.map +1 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.js +52 -0
- package/dist/commonjs/models/unmatchedcredittransferstatus.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts +55 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.d.ts.map +1 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.js +72 -0
- package/dist/commonjs/sdk/unmatchedcredittransfers.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js +104 -0
- package/dist/esm/funcs/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts +29 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.js +143 -0
- package/dist/esm/funcs/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js +105 -0
- package/dist/esm/funcs/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts +23 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js +104 -0
- package/dist/esm/funcs/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersGet.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js +36 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersList.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersMatch.js.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts +8 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js +33 -0
- package/dist/esm/mcp-server/tools/unmatchedCreditTransfersReturn.js.map +1 -0
- package/dist/esm/models/entityunmatchedcredittransfer.d.ts +214 -0
- package/dist/esm/models/entityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/entityunmatchedcredittransfer.js +154 -0
- package/dist/esm/models/entityunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/errorresponse.d.ts +8 -8
- package/dist/esm/models/errorresponse.d.ts.map +1 -1
- package/dist/esm/models/errorresponse.js +8 -8
- package/dist/esm/models/errorresponse.js.map +1 -1
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listentityunmatchedcredittransfer.d.ts +191 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.js +137 -0
- package/dist/esm/models/listentityunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts +25 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.js +32 -0
- package/dist/esm/models/operations/getunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts +95 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.d.ts.map +1 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.js +107 -0
- package/dist/esm/models/operations/listunmatchedcredittransfers.js.map +1 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts +28 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.js +39 -0
- package/dist/esm/models/operations/matchunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts +25 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.d.ts.map +1 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.js +32 -0
- package/dist/esm/models/operations/returnunmatchedcredittransfer.js.map +1 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts +164 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.js +129 -0
- package/dist/esm/models/unmatchedcredittransferactionresponse.js.map +1 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts +20 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.js +21 -0
- package/dist/esm/models/unmatchedcredittransfermatchrequest.js.map +1 -0
- package/dist/esm/models/unmatchedcredittransferstatus.d.ts +14 -0
- package/dist/esm/models/unmatchedcredittransferstatus.d.ts.map +1 -0
- package/dist/esm/models/unmatchedcredittransferstatus.js +16 -0
- package/dist/esm/models/unmatchedcredittransferstatus.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/unmatchedcredittransfers.d.ts +55 -0
- package/dist/esm/sdk/unmatchedcredittransfers.d.ts.map +1 -0
- package/dist/esm/sdk/unmatchedcredittransfers.js +68 -0
- package/dist/esm/sdk/unmatchedcredittransfers.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/unmatchedCreditTransfersGet.ts +202 -0
- package/src/funcs/unmatchedCreditTransfersList.ts +274 -0
- package/src/funcs/unmatchedCreditTransfersMatch.ts +209 -0
- package/src/funcs/unmatchedCreditTransfersReturn.ts +204 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/unmatchedCreditTransfersGet.ts +42 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersList.ts +45 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersMatch.ts +42 -0
- package/src/mcp-server/tools/unmatchedCreditTransfersReturn.ts +43 -0
- package/src/models/entityunmatchedcredittransfer.ts +538 -0
- package/src/models/errorresponse.ts +21 -17
- package/src/models/index.ts +5 -0
- package/src/models/listentityunmatchedcredittransfer.ts +476 -0
- package/src/models/operations/getunmatchedcredittransfer.ts +73 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listunmatchedcredittransfers.ts +287 -0
- package/src/models/operations/matchunmatchedcredittransfer.ts +89 -0
- package/src/models/operations/returnunmatchedcredittransfer.ts +74 -0
- package/src/models/unmatchedcredittransferactionresponse.ts +426 -0
- package/src/models/unmatchedcredittransfermatchrequest.ts +58 -0
- package/src/models/unmatchedcredittransferstatus.ts +31 -0
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/unmatchedcredittransfers.ts +107 -0
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 70f9c8054155
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import * as openEnums from "../types/enums.js";
|
|
10
|
+
import { OpenEnum } from "../types/enums.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The action performed on the unmatched credit transfer.
|
|
16
|
+
*/
|
|
17
|
+
export const Action = {
|
|
18
|
+
Match: "match",
|
|
19
|
+
Return: "return",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* The action performed on the unmatched credit transfer.
|
|
23
|
+
*/
|
|
24
|
+
export type Action = OpenEnum<typeof Action>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The current status of the action.
|
|
28
|
+
*/
|
|
29
|
+
export const UnmatchedCreditTransferActionResponseStatus = {
|
|
30
|
+
Pending: "pending",
|
|
31
|
+
} as const;
|
|
32
|
+
/**
|
|
33
|
+
* The current status of the action.
|
|
34
|
+
*/
|
|
35
|
+
export type UnmatchedCreditTransferActionResponseStatus = OpenEnum<
|
|
36
|
+
typeof UnmatchedCreditTransferActionResponseStatus
|
|
37
|
+
>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Additional details about the action.
|
|
41
|
+
*/
|
|
42
|
+
export type UnmatchedCreditTransferActionResponseDetails = {
|
|
43
|
+
/**
|
|
44
|
+
* The IDs of the payments matched to the unmatched credit transfer.
|
|
45
|
+
*/
|
|
46
|
+
paymentIds?: Array<string> | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The URL to this action.
|
|
51
|
+
*/
|
|
52
|
+
export type UnmatchedCreditTransferActionResponseSelf = {
|
|
53
|
+
href?: string | undefined;
|
|
54
|
+
type?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The URL to the documentation of this endpoint.
|
|
59
|
+
*/
|
|
60
|
+
export type UnmatchedCreditTransferActionResponseDocumentation = {
|
|
61
|
+
href?: string | undefined;
|
|
62
|
+
type?: string | undefined;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Links to related resources.
|
|
67
|
+
*/
|
|
68
|
+
export type UnmatchedCreditTransferActionResponseLinks = {
|
|
69
|
+
/**
|
|
70
|
+
* The URL to this action.
|
|
71
|
+
*/
|
|
72
|
+
self?: UnmatchedCreditTransferActionResponseSelf | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The URL to the documentation of this endpoint.
|
|
75
|
+
*/
|
|
76
|
+
documentation?:
|
|
77
|
+
| UnmatchedCreditTransferActionResponseDocumentation
|
|
78
|
+
| undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type UnmatchedCreditTransferActionResponse = {
|
|
82
|
+
/**
|
|
83
|
+
* The resource type of the object.
|
|
84
|
+
*/
|
|
85
|
+
resource: string;
|
|
86
|
+
/**
|
|
87
|
+
* The identifier uniquely referring to this unmatched credit transfer action.
|
|
88
|
+
*/
|
|
89
|
+
id: string;
|
|
90
|
+
/**
|
|
91
|
+
* The identifier of the unmatched credit transfer this action belongs to.
|
|
92
|
+
*/
|
|
93
|
+
unmatchedCreditTransferId: string;
|
|
94
|
+
/**
|
|
95
|
+
* The action performed on the unmatched credit transfer.
|
|
96
|
+
*/
|
|
97
|
+
action: Action;
|
|
98
|
+
/**
|
|
99
|
+
* The current status of the action.
|
|
100
|
+
*/
|
|
101
|
+
status: UnmatchedCreditTransferActionResponseStatus;
|
|
102
|
+
/**
|
|
103
|
+
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
104
|
+
*/
|
|
105
|
+
createdAt: string;
|
|
106
|
+
/**
|
|
107
|
+
* Additional details about the action.
|
|
108
|
+
*/
|
|
109
|
+
details?: UnmatchedCreditTransferActionResponseDetails | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Links to related resources.
|
|
112
|
+
*/
|
|
113
|
+
links: UnmatchedCreditTransferActionResponseLinks;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const Action$inboundSchema: z.ZodType<Action, z.ZodTypeDef, unknown> =
|
|
118
|
+
openEnums.inboundSchema(Action);
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const Action$outboundSchema: z.ZodType<string, z.ZodTypeDef, Action> =
|
|
121
|
+
openEnums.outboundSchema(Action);
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const UnmatchedCreditTransferActionResponseStatus$inboundSchema:
|
|
125
|
+
z.ZodType<
|
|
126
|
+
UnmatchedCreditTransferActionResponseStatus,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = openEnums.inboundSchema(UnmatchedCreditTransferActionResponseStatus);
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const UnmatchedCreditTransferActionResponseStatus$outboundSchema:
|
|
132
|
+
z.ZodType<string, z.ZodTypeDef, UnmatchedCreditTransferActionResponseStatus> =
|
|
133
|
+
openEnums.outboundSchema(UnmatchedCreditTransferActionResponseStatus);
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export const UnmatchedCreditTransferActionResponseDetails$inboundSchema:
|
|
137
|
+
z.ZodType<
|
|
138
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.object({
|
|
142
|
+
paymentIds: z.array(z.string()).optional(),
|
|
143
|
+
});
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type UnmatchedCreditTransferActionResponseDetails$Outbound = {
|
|
146
|
+
paymentIds?: Array<string> | undefined;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
/** @internal */
|
|
150
|
+
export const UnmatchedCreditTransferActionResponseDetails$outboundSchema:
|
|
151
|
+
z.ZodType<
|
|
152
|
+
UnmatchedCreditTransferActionResponseDetails$Outbound,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
UnmatchedCreditTransferActionResponseDetails
|
|
155
|
+
> = z.object({
|
|
156
|
+
paymentIds: z.array(z.string()).optional(),
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
export function unmatchedCreditTransferActionResponseDetailsToJSON(
|
|
160
|
+
unmatchedCreditTransferActionResponseDetails:
|
|
161
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
UnmatchedCreditTransferActionResponseDetails$outboundSchema.parse(
|
|
165
|
+
unmatchedCreditTransferActionResponseDetails,
|
|
166
|
+
),
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
export function unmatchedCreditTransferActionResponseDetailsFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<
|
|
172
|
+
UnmatchedCreditTransferActionResponseDetails,
|
|
173
|
+
SDKValidationError
|
|
174
|
+
> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) =>
|
|
178
|
+
UnmatchedCreditTransferActionResponseDetails$inboundSchema.parse(
|
|
179
|
+
JSON.parse(x),
|
|
180
|
+
),
|
|
181
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseDetails' from JSON`,
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export const UnmatchedCreditTransferActionResponseSelf$inboundSchema: z.ZodType<
|
|
187
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
188
|
+
z.ZodTypeDef,
|
|
189
|
+
unknown
|
|
190
|
+
> = z.object({
|
|
191
|
+
href: z.string().optional(),
|
|
192
|
+
type: z.string().optional(),
|
|
193
|
+
});
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type UnmatchedCreditTransferActionResponseSelf$Outbound = {
|
|
196
|
+
href?: string | undefined;
|
|
197
|
+
type?: string | undefined;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const UnmatchedCreditTransferActionResponseSelf$outboundSchema:
|
|
202
|
+
z.ZodType<
|
|
203
|
+
UnmatchedCreditTransferActionResponseSelf$Outbound,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
UnmatchedCreditTransferActionResponseSelf
|
|
206
|
+
> = z.object({
|
|
207
|
+
href: z.string().optional(),
|
|
208
|
+
type: z.string().optional(),
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
export function unmatchedCreditTransferActionResponseSelfToJSON(
|
|
212
|
+
unmatchedCreditTransferActionResponseSelf:
|
|
213
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
214
|
+
): string {
|
|
215
|
+
return JSON.stringify(
|
|
216
|
+
UnmatchedCreditTransferActionResponseSelf$outboundSchema.parse(
|
|
217
|
+
unmatchedCreditTransferActionResponseSelf,
|
|
218
|
+
),
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
export function unmatchedCreditTransferActionResponseSelfFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<
|
|
224
|
+
UnmatchedCreditTransferActionResponseSelf,
|
|
225
|
+
SDKValidationError
|
|
226
|
+
> {
|
|
227
|
+
return safeParse(
|
|
228
|
+
jsonString,
|
|
229
|
+
(x) =>
|
|
230
|
+
UnmatchedCreditTransferActionResponseSelf$inboundSchema.parse(
|
|
231
|
+
JSON.parse(x),
|
|
232
|
+
),
|
|
233
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseSelf' from JSON`,
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const UnmatchedCreditTransferActionResponseDocumentation$inboundSchema:
|
|
239
|
+
z.ZodType<
|
|
240
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
241
|
+
z.ZodTypeDef,
|
|
242
|
+
unknown
|
|
243
|
+
> = z.object({
|
|
244
|
+
href: z.string().optional(),
|
|
245
|
+
type: z.string().optional(),
|
|
246
|
+
});
|
|
247
|
+
/** @internal */
|
|
248
|
+
export type UnmatchedCreditTransferActionResponseDocumentation$Outbound = {
|
|
249
|
+
href?: string | undefined;
|
|
250
|
+
type?: string | undefined;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
/** @internal */
|
|
254
|
+
export const UnmatchedCreditTransferActionResponseDocumentation$outboundSchema:
|
|
255
|
+
z.ZodType<
|
|
256
|
+
UnmatchedCreditTransferActionResponseDocumentation$Outbound,
|
|
257
|
+
z.ZodTypeDef,
|
|
258
|
+
UnmatchedCreditTransferActionResponseDocumentation
|
|
259
|
+
> = z.object({
|
|
260
|
+
href: z.string().optional(),
|
|
261
|
+
type: z.string().optional(),
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
export function unmatchedCreditTransferActionResponseDocumentationToJSON(
|
|
265
|
+
unmatchedCreditTransferActionResponseDocumentation:
|
|
266
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
267
|
+
): string {
|
|
268
|
+
return JSON.stringify(
|
|
269
|
+
UnmatchedCreditTransferActionResponseDocumentation$outboundSchema.parse(
|
|
270
|
+
unmatchedCreditTransferActionResponseDocumentation,
|
|
271
|
+
),
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
export function unmatchedCreditTransferActionResponseDocumentationFromJSON(
|
|
275
|
+
jsonString: string,
|
|
276
|
+
): SafeParseResult<
|
|
277
|
+
UnmatchedCreditTransferActionResponseDocumentation,
|
|
278
|
+
SDKValidationError
|
|
279
|
+
> {
|
|
280
|
+
return safeParse(
|
|
281
|
+
jsonString,
|
|
282
|
+
(x) =>
|
|
283
|
+
UnmatchedCreditTransferActionResponseDocumentation$inboundSchema.parse(
|
|
284
|
+
JSON.parse(x),
|
|
285
|
+
),
|
|
286
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseDocumentation' from JSON`,
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/** @internal */
|
|
291
|
+
export const UnmatchedCreditTransferActionResponseLinks$inboundSchema:
|
|
292
|
+
z.ZodType<UnmatchedCreditTransferActionResponseLinks, z.ZodTypeDef, unknown> =
|
|
293
|
+
z.object({
|
|
294
|
+
self: z.lazy(() =>
|
|
295
|
+
UnmatchedCreditTransferActionResponseSelf$inboundSchema
|
|
296
|
+
).optional(),
|
|
297
|
+
documentation: z.lazy(() =>
|
|
298
|
+
UnmatchedCreditTransferActionResponseDocumentation$inboundSchema
|
|
299
|
+
).optional(),
|
|
300
|
+
});
|
|
301
|
+
/** @internal */
|
|
302
|
+
export type UnmatchedCreditTransferActionResponseLinks$Outbound = {
|
|
303
|
+
self?: UnmatchedCreditTransferActionResponseSelf$Outbound | undefined;
|
|
304
|
+
documentation?:
|
|
305
|
+
| UnmatchedCreditTransferActionResponseDocumentation$Outbound
|
|
306
|
+
| undefined;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
/** @internal */
|
|
310
|
+
export const UnmatchedCreditTransferActionResponseLinks$outboundSchema:
|
|
311
|
+
z.ZodType<
|
|
312
|
+
UnmatchedCreditTransferActionResponseLinks$Outbound,
|
|
313
|
+
z.ZodTypeDef,
|
|
314
|
+
UnmatchedCreditTransferActionResponseLinks
|
|
315
|
+
> = z.object({
|
|
316
|
+
self: z.lazy(() => UnmatchedCreditTransferActionResponseSelf$outboundSchema)
|
|
317
|
+
.optional(),
|
|
318
|
+
documentation: z.lazy(() =>
|
|
319
|
+
UnmatchedCreditTransferActionResponseDocumentation$outboundSchema
|
|
320
|
+
).optional(),
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export function unmatchedCreditTransferActionResponseLinksToJSON(
|
|
324
|
+
unmatchedCreditTransferActionResponseLinks:
|
|
325
|
+
UnmatchedCreditTransferActionResponseLinks,
|
|
326
|
+
): string {
|
|
327
|
+
return JSON.stringify(
|
|
328
|
+
UnmatchedCreditTransferActionResponseLinks$outboundSchema.parse(
|
|
329
|
+
unmatchedCreditTransferActionResponseLinks,
|
|
330
|
+
),
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
export function unmatchedCreditTransferActionResponseLinksFromJSON(
|
|
334
|
+
jsonString: string,
|
|
335
|
+
): SafeParseResult<
|
|
336
|
+
UnmatchedCreditTransferActionResponseLinks,
|
|
337
|
+
SDKValidationError
|
|
338
|
+
> {
|
|
339
|
+
return safeParse(
|
|
340
|
+
jsonString,
|
|
341
|
+
(x) =>
|
|
342
|
+
UnmatchedCreditTransferActionResponseLinks$inboundSchema.parse(
|
|
343
|
+
JSON.parse(x),
|
|
344
|
+
),
|
|
345
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponseLinks' from JSON`,
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/** @internal */
|
|
350
|
+
export const UnmatchedCreditTransferActionResponse$inboundSchema: z.ZodType<
|
|
351
|
+
UnmatchedCreditTransferActionResponse,
|
|
352
|
+
z.ZodTypeDef,
|
|
353
|
+
unknown
|
|
354
|
+
> = z.object({
|
|
355
|
+
resource: z.string(),
|
|
356
|
+
id: z.string(),
|
|
357
|
+
unmatchedCreditTransferId: z.string(),
|
|
358
|
+
action: Action$inboundSchema,
|
|
359
|
+
status: UnmatchedCreditTransferActionResponseStatus$inboundSchema,
|
|
360
|
+
createdAt: z.string(),
|
|
361
|
+
details: z.lazy(() =>
|
|
362
|
+
UnmatchedCreditTransferActionResponseDetails$inboundSchema
|
|
363
|
+
).optional(),
|
|
364
|
+
_links: z.lazy(() =>
|
|
365
|
+
UnmatchedCreditTransferActionResponseLinks$inboundSchema
|
|
366
|
+
),
|
|
367
|
+
}).transform((v) => {
|
|
368
|
+
return remap$(v, {
|
|
369
|
+
"_links": "links",
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
/** @internal */
|
|
373
|
+
export type UnmatchedCreditTransferActionResponse$Outbound = {
|
|
374
|
+
resource: string;
|
|
375
|
+
id: string;
|
|
376
|
+
unmatchedCreditTransferId: string;
|
|
377
|
+
action: string;
|
|
378
|
+
status: string;
|
|
379
|
+
createdAt: string;
|
|
380
|
+
details?: UnmatchedCreditTransferActionResponseDetails$Outbound | undefined;
|
|
381
|
+
_links: UnmatchedCreditTransferActionResponseLinks$Outbound;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
/** @internal */
|
|
385
|
+
export const UnmatchedCreditTransferActionResponse$outboundSchema: z.ZodType<
|
|
386
|
+
UnmatchedCreditTransferActionResponse$Outbound,
|
|
387
|
+
z.ZodTypeDef,
|
|
388
|
+
UnmatchedCreditTransferActionResponse
|
|
389
|
+
> = z.object({
|
|
390
|
+
resource: z.string(),
|
|
391
|
+
id: z.string(),
|
|
392
|
+
unmatchedCreditTransferId: z.string(),
|
|
393
|
+
action: Action$outboundSchema,
|
|
394
|
+
status: UnmatchedCreditTransferActionResponseStatus$outboundSchema,
|
|
395
|
+
createdAt: z.string(),
|
|
396
|
+
details: z.lazy(() =>
|
|
397
|
+
UnmatchedCreditTransferActionResponseDetails$outboundSchema
|
|
398
|
+
).optional(),
|
|
399
|
+
links: z.lazy(() =>
|
|
400
|
+
UnmatchedCreditTransferActionResponseLinks$outboundSchema
|
|
401
|
+
),
|
|
402
|
+
}).transform((v) => {
|
|
403
|
+
return remap$(v, {
|
|
404
|
+
links: "_links",
|
|
405
|
+
});
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
export function unmatchedCreditTransferActionResponseToJSON(
|
|
409
|
+
unmatchedCreditTransferActionResponse: UnmatchedCreditTransferActionResponse,
|
|
410
|
+
): string {
|
|
411
|
+
return JSON.stringify(
|
|
412
|
+
UnmatchedCreditTransferActionResponse$outboundSchema.parse(
|
|
413
|
+
unmatchedCreditTransferActionResponse,
|
|
414
|
+
),
|
|
415
|
+
);
|
|
416
|
+
}
|
|
417
|
+
export function unmatchedCreditTransferActionResponseFromJSON(
|
|
418
|
+
jsonString: string,
|
|
419
|
+
): SafeParseResult<UnmatchedCreditTransferActionResponse, SDKValidationError> {
|
|
420
|
+
return safeParse(
|
|
421
|
+
jsonString,
|
|
422
|
+
(x) =>
|
|
423
|
+
UnmatchedCreditTransferActionResponse$inboundSchema.parse(JSON.parse(x)),
|
|
424
|
+
`Failed to parse 'UnmatchedCreditTransferActionResponse' from JSON`,
|
|
425
|
+
);
|
|
426
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 62d67e484ffd
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type UnmatchedCreditTransferMatchRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* The IDs of the payments to match against the unmatched credit transfer.
|
|
14
|
+
*/
|
|
15
|
+
paymentIds: Array<string>;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const UnmatchedCreditTransferMatchRequest$inboundSchema: z.ZodType<
|
|
20
|
+
UnmatchedCreditTransferMatchRequest,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
paymentIds: z.array(z.string()),
|
|
25
|
+
});
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type UnmatchedCreditTransferMatchRequest$Outbound = {
|
|
28
|
+
paymentIds: Array<string>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const UnmatchedCreditTransferMatchRequest$outboundSchema: z.ZodType<
|
|
33
|
+
UnmatchedCreditTransferMatchRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
UnmatchedCreditTransferMatchRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
paymentIds: z.array(z.string()),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export function unmatchedCreditTransferMatchRequestToJSON(
|
|
41
|
+
unmatchedCreditTransferMatchRequest: UnmatchedCreditTransferMatchRequest,
|
|
42
|
+
): string {
|
|
43
|
+
return JSON.stringify(
|
|
44
|
+
UnmatchedCreditTransferMatchRequest$outboundSchema.parse(
|
|
45
|
+
unmatchedCreditTransferMatchRequest,
|
|
46
|
+
),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
export function unmatchedCreditTransferMatchRequestFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<UnmatchedCreditTransferMatchRequest, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) =>
|
|
55
|
+
UnmatchedCreditTransferMatchRequest$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'UnmatchedCreditTransferMatchRequest' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e2b8ffb2feac
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import * as openEnums from "../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../types/enums.js";
|
|
9
|
+
|
|
10
|
+
export const UnmatchedCreditTransferStatus = {
|
|
11
|
+
Received: "received",
|
|
12
|
+
Matched: "matched",
|
|
13
|
+
Returned: "returned",
|
|
14
|
+
Expired: "expired",
|
|
15
|
+
} as const;
|
|
16
|
+
export type UnmatchedCreditTransferStatus = OpenEnum<
|
|
17
|
+
typeof UnmatchedCreditTransferStatus
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const UnmatchedCreditTransferStatus$inboundSchema: z.ZodType<
|
|
22
|
+
UnmatchedCreditTransferStatus,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = openEnums.inboundSchema(UnmatchedCreditTransferStatus);
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const UnmatchedCreditTransferStatus$outboundSchema: z.ZodType<
|
|
28
|
+
string,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
UnmatchedCreditTransferStatus
|
|
31
|
+
> = openEnums.outboundSchema(UnmatchedCreditTransferStatus);
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -30,6 +30,7 @@ import { Settlements } from "./settlements.js";
|
|
|
30
30
|
import { Subscriptions } from "./subscriptions.js";
|
|
31
31
|
import { Terminals } from "./terminals.js";
|
|
32
32
|
import { Transfers } from "./transfers.js";
|
|
33
|
+
import { UnmatchedCreditTransfers } from "./unmatchedcredittransfers.js";
|
|
33
34
|
import { VerifyPayees } from "./verifypayees.js";
|
|
34
35
|
import { Wallets } from "./wallets.js";
|
|
35
36
|
import { WebhookEvents } from "./webhookevents.js";
|
|
@@ -106,6 +107,13 @@ export class Client extends ClientSDK {
|
|
|
106
107
|
return (this._payments ??= new Payments(this._options));
|
|
107
108
|
}
|
|
108
109
|
|
|
110
|
+
private _unmatchedCreditTransfers?: UnmatchedCreditTransfers;
|
|
111
|
+
get unmatchedCreditTransfers(): UnmatchedCreditTransfers {
|
|
112
|
+
return (this._unmatchedCreditTransfers ??= new UnmatchedCreditTransfers(
|
|
113
|
+
this._options,
|
|
114
|
+
));
|
|
115
|
+
}
|
|
116
|
+
|
|
109
117
|
private _sessions?: Sessions;
|
|
110
118
|
get sessions(): Sessions {
|
|
111
119
|
return (this._sessions ??= new Sessions(this._options));
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d83796b1e949
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { unmatchedCreditTransfersGet } from "../funcs/unmatchedCreditTransfersGet.js";
|
|
7
|
+
import { unmatchedCreditTransfersList } from "../funcs/unmatchedCreditTransfersList.js";
|
|
8
|
+
import { unmatchedCreditTransfersMatch } from "../funcs/unmatchedCreditTransfersMatch.js";
|
|
9
|
+
import { unmatchedCreditTransfersReturn } from "../funcs/unmatchedCreditTransfersReturn.js";
|
|
10
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import * as models from "../models/index.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
15
|
+
|
|
16
|
+
export class UnmatchedCreditTransfers extends ClientSDK {
|
|
17
|
+
/**
|
|
18
|
+
* List unmatched credit transfers
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* > 🚧 Beta feature
|
|
22
|
+
* >
|
|
23
|
+
* > This feature is currently in private beta, and the final specification may still change.
|
|
24
|
+
*
|
|
25
|
+
* Retrieves a list of unmatched credit transfers for the profile.
|
|
26
|
+
*
|
|
27
|
+
* The results are paginated.
|
|
28
|
+
*/
|
|
29
|
+
async list(
|
|
30
|
+
request?: operations.ListUnmatchedCreditTransfersRequest | undefined,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): Promise<
|
|
33
|
+
PageIterator<
|
|
34
|
+
operations.ListUnmatchedCreditTransfersResponse,
|
|
35
|
+
{ url: string }
|
|
36
|
+
>
|
|
37
|
+
> {
|
|
38
|
+
return unwrapResultIterator(unmatchedCreditTransfersList(
|
|
39
|
+
this,
|
|
40
|
+
request,
|
|
41
|
+
options,
|
|
42
|
+
));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Get unmatched credit transfer
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* > 🚧 Beta feature
|
|
50
|
+
* >
|
|
51
|
+
* > This feature is currently in private beta, and the final specification may still change.
|
|
52
|
+
*
|
|
53
|
+
* Retrieves a single unmatched credit transfer by its identifier.
|
|
54
|
+
*/
|
|
55
|
+
async get(
|
|
56
|
+
request: operations.GetUnmatchedCreditTransferRequest,
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): Promise<models.EntityUnmatchedCreditTransfer> {
|
|
59
|
+
return unwrapAsync(unmatchedCreditTransfersGet(
|
|
60
|
+
this,
|
|
61
|
+
request,
|
|
62
|
+
options,
|
|
63
|
+
));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Match unmatched credit transfer
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* > 🚧 Beta feature
|
|
71
|
+
* >
|
|
72
|
+
* > This feature is currently in private beta, and the final specification may still change.
|
|
73
|
+
*
|
|
74
|
+
* Matches an unmatched credit transfer to one or more payments, settling the funds accordingly.
|
|
75
|
+
*/
|
|
76
|
+
async match(
|
|
77
|
+
request: operations.MatchUnmatchedCreditTransferRequest,
|
|
78
|
+
options?: RequestOptions,
|
|
79
|
+
): Promise<models.UnmatchedCreditTransferActionResponse> {
|
|
80
|
+
return unwrapAsync(unmatchedCreditTransfersMatch(
|
|
81
|
+
this,
|
|
82
|
+
request,
|
|
83
|
+
options,
|
|
84
|
+
));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Return unmatched credit transfer
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* > 🚧 Beta feature
|
|
92
|
+
* >
|
|
93
|
+
* > This feature is currently in private beta, and the final specification may still change.
|
|
94
|
+
*
|
|
95
|
+
* Returns an unmatched credit transfer, sending the funds back to the original sender.
|
|
96
|
+
*/
|
|
97
|
+
async return(
|
|
98
|
+
request: operations.ReturnUnmatchedCreditTransferRequest,
|
|
99
|
+
options?: RequestOptions,
|
|
100
|
+
): Promise<models.UnmatchedCreditTransferActionResponse> {
|
|
101
|
+
return unwrapAsync(unmatchedCreditTransfersReturn(
|
|
102
|
+
this,
|
|
103
|
+
request,
|
|
104
|
+
options,
|
|
105
|
+
));
|
|
106
|
+
}
|
|
107
|
+
}
|