mollie-api-typescript 0.2.4 → 0.2.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/README.md +1 -1
- package/bin/mcp-server.js +104 -31
- package/bin/mcp-server.js.map +8 -8
- 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.js +1 -1
- package/dist/commonjs/models/entitysettlement.d.ts +206 -16
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js +159 -17
- package/dist/commonjs/models/entitysettlement.js.map +1 -1
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.d.ts +8 -8
- package/dist/commonjs/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlements.js +8 -8
- package/dist/commonjs/models/operations/listsettlements.js.map +1 -1
- 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.js +1 -1
- package/dist/esm/models/entitysettlement.d.ts +206 -16
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js +150 -16
- package/dist/esm/models/entitysettlement.js.map +1 -1
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/listsettlements.d.ts +8 -8
- package/dist/esm/models/operations/listsettlements.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlements.js +8 -8
- package/dist/esm/models/operations/listsettlements.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/entitysettlement.ts +355 -32
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/listsettlements.ts +16 -16
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0.0";
|
|
38
|
-
readonly sdkVersion: "0.2.
|
|
39
|
-
readonly genVersion: "2.
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
38
|
+
readonly sdkVersion: "0.2.6";
|
|
39
|
+
readonly genVersion: "2.709.0";
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.6 2.709.0 1.0.0 mollie-api-typescript";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "1.0.0",
|
|
31
|
-
sdkVersion: "0.2.
|
|
32
|
-
genVersion: "2.
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
31
|
+
sdkVersion: "0.2.6",
|
|
32
|
+
genVersion: "2.709.0",
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.2.6 2.709.0 1.0.0 mollie-api-typescript",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.2.
|
|
25
|
+
currentVersion: "0.2.6",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -105,7 +105,7 @@ const webhooksUpdate_js_1 = require("./tools/webhooksUpdate.js");
|
|
|
105
105
|
function createMCPServer(deps) {
|
|
106
106
|
const server = new mcp_js_1.McpServer({
|
|
107
107
|
name: "Client",
|
|
108
|
-
version: "0.2.
|
|
108
|
+
version: "0.2.6",
|
|
109
109
|
});
|
|
110
110
|
const client = new core_js_1.ClientCore({
|
|
111
111
|
security: deps.security,
|
|
@@ -1,10 +1,93 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { Amount, Amount$Outbound } from "./amount.js";
|
|
4
|
+
import { AmountNullable, AmountNullable$Outbound } from "./amountnullable.js";
|
|
4
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
|
+
import { PaymentMethod } from "./paymentmethod.js";
|
|
5
7
|
import { SettlementStatus } from "./settlementstatus.js";
|
|
6
8
|
import { Url, Url$Outbound } from "./url.js";
|
|
7
9
|
import { UrlNullable, UrlNullable$Outbound } from "./urlnullable.js";
|
|
10
|
+
/**
|
|
11
|
+
* The service rates, further divided into `fixed` and `percentage` costs.
|
|
12
|
+
*/
|
|
13
|
+
export type Rate = {
|
|
14
|
+
/**
|
|
15
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
16
|
+
*/
|
|
17
|
+
fixed?: Amount | undefined;
|
|
18
|
+
percentage?: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type Cost = {
|
|
21
|
+
/**
|
|
22
|
+
* A description of the cost subtotal
|
|
23
|
+
*/
|
|
24
|
+
description: string;
|
|
25
|
+
/**
|
|
26
|
+
* The payment method, if applicable
|
|
27
|
+
*/
|
|
28
|
+
method: PaymentMethod | null;
|
|
29
|
+
/**
|
|
30
|
+
* The number of fees
|
|
31
|
+
*/
|
|
32
|
+
count: number;
|
|
33
|
+
/**
|
|
34
|
+
* The service rates, further divided into `fixed` and `percentage` costs.
|
|
35
|
+
*/
|
|
36
|
+
rate: Rate;
|
|
37
|
+
/**
|
|
38
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
39
|
+
*/
|
|
40
|
+
amountNet: Amount;
|
|
41
|
+
/**
|
|
42
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
43
|
+
*/
|
|
44
|
+
amountVat: Amount;
|
|
45
|
+
/**
|
|
46
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
47
|
+
*/
|
|
48
|
+
amountGross: Amount;
|
|
49
|
+
};
|
|
50
|
+
export type Revenue = {
|
|
51
|
+
/**
|
|
52
|
+
* A description of the revenue subtotal
|
|
53
|
+
*/
|
|
54
|
+
description: string;
|
|
55
|
+
/**
|
|
56
|
+
* The payment method, if applicable
|
|
57
|
+
*/
|
|
58
|
+
method: PaymentMethod | null;
|
|
59
|
+
/**
|
|
60
|
+
* The number of payments
|
|
61
|
+
*/
|
|
62
|
+
count: number;
|
|
63
|
+
/**
|
|
64
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
65
|
+
*/
|
|
66
|
+
amountNet: Amount;
|
|
67
|
+
/**
|
|
68
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
69
|
+
*/
|
|
70
|
+
amountVat: AmountNullable | null;
|
|
71
|
+
/**
|
|
72
|
+
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
73
|
+
*/
|
|
74
|
+
amountGross: Amount;
|
|
75
|
+
};
|
|
76
|
+
export type Periods = {
|
|
77
|
+
/**
|
|
78
|
+
* An array of cost objects, describing the fees withheld for each payment method during this period.
|
|
79
|
+
*/
|
|
80
|
+
costs?: Array<Cost> | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* An array of revenue objects containing the total revenue for each payment method during this period.
|
|
83
|
+
*/
|
|
84
|
+
revenue?: Array<Revenue> | undefined;
|
|
85
|
+
invoiceId?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* The invoice reference, if the invoice has been created already.
|
|
88
|
+
*/
|
|
89
|
+
invoiceReference?: string | null | undefined;
|
|
90
|
+
};
|
|
8
91
|
/**
|
|
9
92
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
10
93
|
*/
|
|
@@ -12,7 +95,7 @@ export type EntitySettlementLinks = {
|
|
|
12
95
|
/**
|
|
13
96
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
14
97
|
*/
|
|
15
|
-
self
|
|
98
|
+
self: Url;
|
|
16
99
|
/**
|
|
17
100
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
18
101
|
*/
|
|
@@ -45,8 +128,8 @@ export type EntitySettlement = {
|
|
|
45
128
|
* @remarks
|
|
46
129
|
* endpoint.
|
|
47
130
|
*/
|
|
48
|
-
resource
|
|
49
|
-
id
|
|
131
|
+
resource: string;
|
|
132
|
+
id: string;
|
|
50
133
|
/**
|
|
51
134
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
52
135
|
*/
|
|
@@ -67,12 +150,12 @@ export type EntitySettlement = {
|
|
|
67
150
|
/**
|
|
68
151
|
* The status of the settlement.
|
|
69
152
|
*/
|
|
70
|
-
status
|
|
153
|
+
status: SettlementStatus;
|
|
71
154
|
/**
|
|
72
155
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
73
156
|
*/
|
|
74
|
-
amount
|
|
75
|
-
balanceId
|
|
157
|
+
amount: Amount;
|
|
158
|
+
balanceId: string;
|
|
76
159
|
invoiceId?: string | undefined;
|
|
77
160
|
/**
|
|
78
161
|
* For bookkeeping purposes, the settlement includes an overview of transactions included in the settlement. These
|
|
@@ -89,18 +172,123 @@ export type EntitySettlement = {
|
|
|
89
172
|
* The example response should give a good idea of what this looks like in practise.
|
|
90
173
|
*/
|
|
91
174
|
periods?: {
|
|
92
|
-
[k: string]:
|
|
175
|
+
[k: string]: {
|
|
176
|
+
[k: string]: Periods;
|
|
177
|
+
};
|
|
93
178
|
} | undefined;
|
|
94
179
|
/**
|
|
95
180
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
96
181
|
*/
|
|
97
|
-
links
|
|
182
|
+
links: EntitySettlementLinks;
|
|
183
|
+
};
|
|
184
|
+
/** @internal */
|
|
185
|
+
export declare const Rate$inboundSchema: z.ZodType<Rate, z.ZodTypeDef, unknown>;
|
|
186
|
+
/** @internal */
|
|
187
|
+
export type Rate$Outbound = {
|
|
188
|
+
fixed?: Amount$Outbound | undefined;
|
|
189
|
+
percentage?: string | undefined;
|
|
190
|
+
};
|
|
191
|
+
/** @internal */
|
|
192
|
+
export declare const Rate$outboundSchema: z.ZodType<Rate$Outbound, z.ZodTypeDef, Rate>;
|
|
193
|
+
/**
|
|
194
|
+
* @internal
|
|
195
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
196
|
+
*/
|
|
197
|
+
export declare namespace Rate$ {
|
|
198
|
+
/** @deprecated use `Rate$inboundSchema` instead. */
|
|
199
|
+
const inboundSchema: z.ZodType<Rate, z.ZodTypeDef, unknown>;
|
|
200
|
+
/** @deprecated use `Rate$outboundSchema` instead. */
|
|
201
|
+
const outboundSchema: z.ZodType<Rate$Outbound, z.ZodTypeDef, Rate>;
|
|
202
|
+
/** @deprecated use `Rate$Outbound` instead. */
|
|
203
|
+
type Outbound = Rate$Outbound;
|
|
204
|
+
}
|
|
205
|
+
export declare function rateToJSON(rate: Rate): string;
|
|
206
|
+
export declare function rateFromJSON(jsonString: string): SafeParseResult<Rate, SDKValidationError>;
|
|
207
|
+
/** @internal */
|
|
208
|
+
export declare const Cost$inboundSchema: z.ZodType<Cost, z.ZodTypeDef, unknown>;
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type Cost$Outbound = {
|
|
211
|
+
description: string;
|
|
212
|
+
method: string | null;
|
|
213
|
+
count: number;
|
|
214
|
+
rate: Rate$Outbound;
|
|
215
|
+
amountNet: Amount$Outbound;
|
|
216
|
+
amountVat: Amount$Outbound;
|
|
217
|
+
amountGross: Amount$Outbound;
|
|
218
|
+
};
|
|
219
|
+
/** @internal */
|
|
220
|
+
export declare const Cost$outboundSchema: z.ZodType<Cost$Outbound, z.ZodTypeDef, Cost>;
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export declare namespace Cost$ {
|
|
226
|
+
/** @deprecated use `Cost$inboundSchema` instead. */
|
|
227
|
+
const inboundSchema: z.ZodType<Cost, z.ZodTypeDef, unknown>;
|
|
228
|
+
/** @deprecated use `Cost$outboundSchema` instead. */
|
|
229
|
+
const outboundSchema: z.ZodType<Cost$Outbound, z.ZodTypeDef, Cost>;
|
|
230
|
+
/** @deprecated use `Cost$Outbound` instead. */
|
|
231
|
+
type Outbound = Cost$Outbound;
|
|
232
|
+
}
|
|
233
|
+
export declare function costToJSON(cost: Cost): string;
|
|
234
|
+
export declare function costFromJSON(jsonString: string): SafeParseResult<Cost, SDKValidationError>;
|
|
235
|
+
/** @internal */
|
|
236
|
+
export declare const Revenue$inboundSchema: z.ZodType<Revenue, z.ZodTypeDef, unknown>;
|
|
237
|
+
/** @internal */
|
|
238
|
+
export type Revenue$Outbound = {
|
|
239
|
+
description: string;
|
|
240
|
+
method: string | null;
|
|
241
|
+
count: number;
|
|
242
|
+
amountNet: Amount$Outbound;
|
|
243
|
+
amountVat: AmountNullable$Outbound | null;
|
|
244
|
+
amountGross: Amount$Outbound;
|
|
98
245
|
};
|
|
99
246
|
/** @internal */
|
|
247
|
+
export declare const Revenue$outboundSchema: z.ZodType<Revenue$Outbound, z.ZodTypeDef, Revenue>;
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
251
|
+
*/
|
|
252
|
+
export declare namespace Revenue$ {
|
|
253
|
+
/** @deprecated use `Revenue$inboundSchema` instead. */
|
|
254
|
+
const inboundSchema: z.ZodType<Revenue, z.ZodTypeDef, unknown>;
|
|
255
|
+
/** @deprecated use `Revenue$outboundSchema` instead. */
|
|
256
|
+
const outboundSchema: z.ZodType<Revenue$Outbound, z.ZodTypeDef, Revenue>;
|
|
257
|
+
/** @deprecated use `Revenue$Outbound` instead. */
|
|
258
|
+
type Outbound = Revenue$Outbound;
|
|
259
|
+
}
|
|
260
|
+
export declare function revenueToJSON(revenue: Revenue): string;
|
|
261
|
+
export declare function revenueFromJSON(jsonString: string): SafeParseResult<Revenue, SDKValidationError>;
|
|
262
|
+
/** @internal */
|
|
263
|
+
export declare const Periods$inboundSchema: z.ZodType<Periods, z.ZodTypeDef, unknown>;
|
|
264
|
+
/** @internal */
|
|
265
|
+
export type Periods$Outbound = {
|
|
266
|
+
costs?: Array<Cost$Outbound> | undefined;
|
|
267
|
+
revenue?: Array<Revenue$Outbound> | undefined;
|
|
268
|
+
invoiceId?: string | undefined;
|
|
269
|
+
invoiceReference?: string | null | undefined;
|
|
270
|
+
};
|
|
271
|
+
/** @internal */
|
|
272
|
+
export declare const Periods$outboundSchema: z.ZodType<Periods$Outbound, z.ZodTypeDef, Periods>;
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
276
|
+
*/
|
|
277
|
+
export declare namespace Periods$ {
|
|
278
|
+
/** @deprecated use `Periods$inboundSchema` instead. */
|
|
279
|
+
const inboundSchema: z.ZodType<Periods, z.ZodTypeDef, unknown>;
|
|
280
|
+
/** @deprecated use `Periods$outboundSchema` instead. */
|
|
281
|
+
const outboundSchema: z.ZodType<Periods$Outbound, z.ZodTypeDef, Periods>;
|
|
282
|
+
/** @deprecated use `Periods$Outbound` instead. */
|
|
283
|
+
type Outbound = Periods$Outbound;
|
|
284
|
+
}
|
|
285
|
+
export declare function periodsToJSON(periods: Periods): string;
|
|
286
|
+
export declare function periodsFromJSON(jsonString: string): SafeParseResult<Periods, SDKValidationError>;
|
|
287
|
+
/** @internal */
|
|
100
288
|
export declare const EntitySettlementLinks$inboundSchema: z.ZodType<EntitySettlementLinks, z.ZodTypeDef, unknown>;
|
|
101
289
|
/** @internal */
|
|
102
290
|
export type EntitySettlementLinks$Outbound = {
|
|
103
|
-
self
|
|
291
|
+
self: Url$Outbound;
|
|
104
292
|
payments?: Url$Outbound | undefined;
|
|
105
293
|
captures?: Url$Outbound | undefined;
|
|
106
294
|
refunds?: Url$Outbound | undefined;
|
|
@@ -128,19 +316,21 @@ export declare function entitySettlementLinksFromJSON(jsonString: string): SafeP
|
|
|
128
316
|
export declare const EntitySettlement$inboundSchema: z.ZodType<EntitySettlement, z.ZodTypeDef, unknown>;
|
|
129
317
|
/** @internal */
|
|
130
318
|
export type EntitySettlement$Outbound = {
|
|
131
|
-
resource
|
|
132
|
-
id
|
|
319
|
+
resource: string;
|
|
320
|
+
id: string;
|
|
133
321
|
createdAt?: string | undefined;
|
|
134
322
|
reference?: string | null | undefined;
|
|
135
323
|
settledAt?: string | null | undefined;
|
|
136
|
-
status
|
|
137
|
-
amount
|
|
138
|
-
balanceId
|
|
324
|
+
status: string;
|
|
325
|
+
amount: Amount$Outbound;
|
|
326
|
+
balanceId: string;
|
|
139
327
|
invoiceId?: string | undefined;
|
|
140
328
|
periods?: {
|
|
141
|
-
[k: string]:
|
|
329
|
+
[k: string]: {
|
|
330
|
+
[k: string]: Periods$Outbound;
|
|
331
|
+
};
|
|
142
332
|
} | undefined;
|
|
143
|
-
_links
|
|
333
|
+
_links: EntitySettlementLinks$Outbound;
|
|
144
334
|
};
|
|
145
335
|
/** @internal */
|
|
146
336
|
export declare const EntitySettlement$outboundSchema: z.ZodType<EntitySettlement$Outbound, z.ZodTypeDef, EntitySettlement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitysettlement.d.ts","sourceRoot":"","sources":["../../../src/models/entitysettlement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,GAAG,EAEH,YAAY,EAEb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"entitysettlement.d.ts","sourceRoot":"","sources":["../../../src/models/entitysettlement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,GAAG,EAEH,YAAY,EAEb,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1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AE,MAAM,GAAG;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAA;SAAE,CAAA;KAAE,GAAG,SAAS,CAAC;IACzE,MAAM,EAAE,8BAA8B,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAiBhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -36,7 +36,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.EntitySettlement$ = exports.EntitySettlement$outboundSchema = exports.EntitySettlement$inboundSchema = exports.EntitySettlementLinks$ = exports.EntitySettlementLinks$outboundSchema = exports.EntitySettlementLinks$inboundSchema = void 0;
|
|
39
|
+
exports.EntitySettlement$ = exports.EntitySettlement$outboundSchema = exports.EntitySettlement$inboundSchema = exports.EntitySettlementLinks$ = exports.EntitySettlementLinks$outboundSchema = exports.EntitySettlementLinks$inboundSchema = exports.Periods$ = exports.Periods$outboundSchema = exports.Periods$inboundSchema = exports.Revenue$ = exports.Revenue$outboundSchema = exports.Revenue$inboundSchema = exports.Cost$ = exports.Cost$outboundSchema = exports.Cost$inboundSchema = exports.Rate$ = exports.Rate$outboundSchema = exports.Rate$inboundSchema = void 0;
|
|
40
|
+
exports.rateToJSON = rateToJSON;
|
|
41
|
+
exports.rateFromJSON = rateFromJSON;
|
|
42
|
+
exports.costToJSON = costToJSON;
|
|
43
|
+
exports.costFromJSON = costFromJSON;
|
|
44
|
+
exports.revenueToJSON = revenueToJSON;
|
|
45
|
+
exports.revenueFromJSON = revenueFromJSON;
|
|
46
|
+
exports.periodsToJSON = periodsToJSON;
|
|
47
|
+
exports.periodsFromJSON = periodsFromJSON;
|
|
40
48
|
exports.entitySettlementLinksToJSON = entitySettlementLinksToJSON;
|
|
41
49
|
exports.entitySettlementLinksFromJSON = entitySettlementLinksFromJSON;
|
|
42
50
|
exports.entitySettlementToJSON = entitySettlementToJSON;
|
|
@@ -45,12 +53,146 @@ const z = __importStar(require("zod"));
|
|
|
45
53
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
46
54
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
47
55
|
const amount_js_1 = require("./amount.js");
|
|
56
|
+
const amountnullable_js_1 = require("./amountnullable.js");
|
|
57
|
+
const paymentmethod_js_1 = require("./paymentmethod.js");
|
|
48
58
|
const settlementstatus_js_1 = require("./settlementstatus.js");
|
|
49
59
|
const url_js_1 = require("./url.js");
|
|
50
60
|
const urlnullable_js_1 = require("./urlnullable.js");
|
|
51
61
|
/** @internal */
|
|
62
|
+
exports.Rate$inboundSchema = z
|
|
63
|
+
.object({
|
|
64
|
+
fixed: amount_js_1.Amount$inboundSchema.optional(),
|
|
65
|
+
percentage: z.string().optional(),
|
|
66
|
+
});
|
|
67
|
+
/** @internal */
|
|
68
|
+
exports.Rate$outboundSchema = z.object({
|
|
69
|
+
fixed: amount_js_1.Amount$outboundSchema.optional(),
|
|
70
|
+
percentage: z.string().optional(),
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
var Rate$;
|
|
77
|
+
(function (Rate$) {
|
|
78
|
+
/** @deprecated use `Rate$inboundSchema` instead. */
|
|
79
|
+
Rate$.inboundSchema = exports.Rate$inboundSchema;
|
|
80
|
+
/** @deprecated use `Rate$outboundSchema` instead. */
|
|
81
|
+
Rate$.outboundSchema = exports.Rate$outboundSchema;
|
|
82
|
+
})(Rate$ || (exports.Rate$ = Rate$ = {}));
|
|
83
|
+
function rateToJSON(rate) {
|
|
84
|
+
return JSON.stringify(exports.Rate$outboundSchema.parse(rate));
|
|
85
|
+
}
|
|
86
|
+
function rateFromJSON(jsonString) {
|
|
87
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Rate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Rate' from JSON`);
|
|
88
|
+
}
|
|
89
|
+
/** @internal */
|
|
90
|
+
exports.Cost$inboundSchema = z
|
|
91
|
+
.object({
|
|
92
|
+
description: z.string(),
|
|
93
|
+
method: z.nullable(paymentmethod_js_1.PaymentMethod$inboundSchema),
|
|
94
|
+
count: z.number().int(),
|
|
95
|
+
rate: z.lazy(() => exports.Rate$inboundSchema),
|
|
96
|
+
amountNet: amount_js_1.Amount$inboundSchema,
|
|
97
|
+
amountVat: amount_js_1.Amount$inboundSchema,
|
|
98
|
+
amountGross: amount_js_1.Amount$inboundSchema,
|
|
99
|
+
});
|
|
100
|
+
/** @internal */
|
|
101
|
+
exports.Cost$outboundSchema = z.object({
|
|
102
|
+
description: z.string(),
|
|
103
|
+
method: z.nullable(paymentmethod_js_1.PaymentMethod$outboundSchema),
|
|
104
|
+
count: z.number().int(),
|
|
105
|
+
rate: z.lazy(() => exports.Rate$outboundSchema),
|
|
106
|
+
amountNet: amount_js_1.Amount$outboundSchema,
|
|
107
|
+
amountVat: amount_js_1.Amount$outboundSchema,
|
|
108
|
+
amountGross: amount_js_1.Amount$outboundSchema,
|
|
109
|
+
});
|
|
110
|
+
/**
|
|
111
|
+
* @internal
|
|
112
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
+
*/
|
|
114
|
+
var Cost$;
|
|
115
|
+
(function (Cost$) {
|
|
116
|
+
/** @deprecated use `Cost$inboundSchema` instead. */
|
|
117
|
+
Cost$.inboundSchema = exports.Cost$inboundSchema;
|
|
118
|
+
/** @deprecated use `Cost$outboundSchema` instead. */
|
|
119
|
+
Cost$.outboundSchema = exports.Cost$outboundSchema;
|
|
120
|
+
})(Cost$ || (exports.Cost$ = Cost$ = {}));
|
|
121
|
+
function costToJSON(cost) {
|
|
122
|
+
return JSON.stringify(exports.Cost$outboundSchema.parse(cost));
|
|
123
|
+
}
|
|
124
|
+
function costFromJSON(jsonString) {
|
|
125
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Cost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Cost' from JSON`);
|
|
126
|
+
}
|
|
127
|
+
/** @internal */
|
|
128
|
+
exports.Revenue$inboundSchema = z.object({
|
|
129
|
+
description: z.string(),
|
|
130
|
+
method: z.nullable(paymentmethod_js_1.PaymentMethod$inboundSchema),
|
|
131
|
+
count: z.number().int(),
|
|
132
|
+
amountNet: amount_js_1.Amount$inboundSchema,
|
|
133
|
+
amountVat: z.nullable(amountnullable_js_1.AmountNullable$inboundSchema),
|
|
134
|
+
amountGross: amount_js_1.Amount$inboundSchema,
|
|
135
|
+
});
|
|
136
|
+
/** @internal */
|
|
137
|
+
exports.Revenue$outboundSchema = z.object({
|
|
138
|
+
description: z.string(),
|
|
139
|
+
method: z.nullable(paymentmethod_js_1.PaymentMethod$outboundSchema),
|
|
140
|
+
count: z.number().int(),
|
|
141
|
+
amountNet: amount_js_1.Amount$outboundSchema,
|
|
142
|
+
amountVat: z.nullable(amountnullable_js_1.AmountNullable$outboundSchema),
|
|
143
|
+
amountGross: amount_js_1.Amount$outboundSchema,
|
|
144
|
+
});
|
|
145
|
+
/**
|
|
146
|
+
* @internal
|
|
147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
148
|
+
*/
|
|
149
|
+
var Revenue$;
|
|
150
|
+
(function (Revenue$) {
|
|
151
|
+
/** @deprecated use `Revenue$inboundSchema` instead. */
|
|
152
|
+
Revenue$.inboundSchema = exports.Revenue$inboundSchema;
|
|
153
|
+
/** @deprecated use `Revenue$outboundSchema` instead. */
|
|
154
|
+
Revenue$.outboundSchema = exports.Revenue$outboundSchema;
|
|
155
|
+
})(Revenue$ || (exports.Revenue$ = Revenue$ = {}));
|
|
156
|
+
function revenueToJSON(revenue) {
|
|
157
|
+
return JSON.stringify(exports.Revenue$outboundSchema.parse(revenue));
|
|
158
|
+
}
|
|
159
|
+
function revenueFromJSON(jsonString) {
|
|
160
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Revenue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Revenue' from JSON`);
|
|
161
|
+
}
|
|
162
|
+
/** @internal */
|
|
163
|
+
exports.Periods$inboundSchema = z.object({
|
|
164
|
+
costs: z.array(z.lazy(() => exports.Cost$inboundSchema)).optional(),
|
|
165
|
+
revenue: z.array(z.lazy(() => exports.Revenue$inboundSchema)).optional(),
|
|
166
|
+
invoiceId: z.string().optional(),
|
|
167
|
+
invoiceReference: z.nullable(z.string()).optional(),
|
|
168
|
+
});
|
|
169
|
+
/** @internal */
|
|
170
|
+
exports.Periods$outboundSchema = z.object({
|
|
171
|
+
costs: z.array(z.lazy(() => exports.Cost$outboundSchema)).optional(),
|
|
172
|
+
revenue: z.array(z.lazy(() => exports.Revenue$outboundSchema)).optional(),
|
|
173
|
+
invoiceId: z.string().optional(),
|
|
174
|
+
invoiceReference: z.nullable(z.string()).optional(),
|
|
175
|
+
});
|
|
176
|
+
/**
|
|
177
|
+
* @internal
|
|
178
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
179
|
+
*/
|
|
180
|
+
var Periods$;
|
|
181
|
+
(function (Periods$) {
|
|
182
|
+
/** @deprecated use `Periods$inboundSchema` instead. */
|
|
183
|
+
Periods$.inboundSchema = exports.Periods$inboundSchema;
|
|
184
|
+
/** @deprecated use `Periods$outboundSchema` instead. */
|
|
185
|
+
Periods$.outboundSchema = exports.Periods$outboundSchema;
|
|
186
|
+
})(Periods$ || (exports.Periods$ = Periods$ = {}));
|
|
187
|
+
function periodsToJSON(periods) {
|
|
188
|
+
return JSON.stringify(exports.Periods$outboundSchema.parse(periods));
|
|
189
|
+
}
|
|
190
|
+
function periodsFromJSON(jsonString) {
|
|
191
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Periods$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Periods' from JSON`);
|
|
192
|
+
}
|
|
193
|
+
/** @internal */
|
|
52
194
|
exports.EntitySettlementLinks$inboundSchema = z.object({
|
|
53
|
-
self: url_js_1.Url$inboundSchema
|
|
195
|
+
self: url_js_1.Url$inboundSchema,
|
|
54
196
|
payments: url_js_1.Url$inboundSchema.optional(),
|
|
55
197
|
captures: url_js_1.Url$inboundSchema.optional(),
|
|
56
198
|
refunds: url_js_1.Url$inboundSchema.optional(),
|
|
@@ -60,7 +202,7 @@ exports.EntitySettlementLinks$inboundSchema = z.object({
|
|
|
60
202
|
});
|
|
61
203
|
/** @internal */
|
|
62
204
|
exports.EntitySettlementLinks$outboundSchema = z.object({
|
|
63
|
-
self: url_js_1.Url$outboundSchema
|
|
205
|
+
self: url_js_1.Url$outboundSchema,
|
|
64
206
|
payments: url_js_1.Url$outboundSchema.optional(),
|
|
65
207
|
captures: url_js_1.Url$outboundSchema.optional(),
|
|
66
208
|
refunds: url_js_1.Url$outboundSchema.optional(),
|
|
@@ -87,17 +229,17 @@ function entitySettlementLinksFromJSON(jsonString) {
|
|
|
87
229
|
}
|
|
88
230
|
/** @internal */
|
|
89
231
|
exports.EntitySettlement$inboundSchema = z.object({
|
|
90
|
-
resource: z.string()
|
|
91
|
-
id: z.string()
|
|
232
|
+
resource: z.string(),
|
|
233
|
+
id: z.string(),
|
|
92
234
|
createdAt: z.string().optional(),
|
|
93
235
|
reference: z.nullable(z.string()).optional(),
|
|
94
236
|
settledAt: z.nullable(z.string()).optional(),
|
|
95
|
-
status: settlementstatus_js_1.SettlementStatus$inboundSchema
|
|
96
|
-
amount: amount_js_1.Amount$inboundSchema
|
|
97
|
-
balanceId: z.string()
|
|
237
|
+
status: settlementstatus_js_1.SettlementStatus$inboundSchema,
|
|
238
|
+
amount: amount_js_1.Amount$inboundSchema,
|
|
239
|
+
balanceId: z.string(),
|
|
98
240
|
invoiceId: z.string().optional(),
|
|
99
|
-
periods: z.record(z.
|
|
100
|
-
_links: z.lazy(() => exports.EntitySettlementLinks$inboundSchema)
|
|
241
|
+
periods: z.record(z.record(z.lazy(() => exports.Periods$inboundSchema))).optional(),
|
|
242
|
+
_links: z.lazy(() => exports.EntitySettlementLinks$inboundSchema),
|
|
101
243
|
}).transform((v) => {
|
|
102
244
|
return (0, primitives_js_1.remap)(v, {
|
|
103
245
|
"_links": "links",
|
|
@@ -105,17 +247,17 @@ exports.EntitySettlement$inboundSchema = z.object({
|
|
|
105
247
|
});
|
|
106
248
|
/** @internal */
|
|
107
249
|
exports.EntitySettlement$outboundSchema = z.object({
|
|
108
|
-
resource: z.string()
|
|
109
|
-
id: z.string()
|
|
250
|
+
resource: z.string(),
|
|
251
|
+
id: z.string(),
|
|
110
252
|
createdAt: z.string().optional(),
|
|
111
253
|
reference: z.nullable(z.string()).optional(),
|
|
112
254
|
settledAt: z.nullable(z.string()).optional(),
|
|
113
|
-
status: settlementstatus_js_1.SettlementStatus$outboundSchema
|
|
114
|
-
amount: amount_js_1.Amount$outboundSchema
|
|
115
|
-
balanceId: z.string()
|
|
255
|
+
status: settlementstatus_js_1.SettlementStatus$outboundSchema,
|
|
256
|
+
amount: amount_js_1.Amount$outboundSchema,
|
|
257
|
+
balanceId: z.string(),
|
|
116
258
|
invoiceId: z.string().optional(),
|
|
117
|
-
periods: z.record(z.
|
|
118
|
-
links: z.lazy(() => exports.EntitySettlementLinks$outboundSchema)
|
|
259
|
+
periods: z.record(z.record(z.lazy(() => exports.Periods$outboundSchema))).optional(),
|
|
260
|
+
links: z.lazy(() => exports.EntitySettlementLinks$outboundSchema),
|
|
119
261
|
}).transform((v) => {
|
|
120
262
|
return (0, primitives_js_1.remap)(v, {
|
|
121
263
|
links: "_links",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitysettlement.js","sourceRoot":"","sources":["../../../src/models/entitysettlement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"entitysettlement.js","sourceRoot":"","sources":["../../../src/models/entitysettlement.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2PH,gCAEC;AAED,oCAQC;AAkDD,gCAEC;AAED,oCAQC;AAkDD,sCAEC;AAED,0CAQC;AA4CD,sCAEC;AAED,0CAQC;AAwDD,kEAMC;AAED,sEAQC;AA4ED,wDAMC;AAED,4DAQC;AA7lBD,uCAAyB;AACzB,wDAAuD;AACvD,kDAA8C;AAE9C,2CAKqB;AACrB,2DAK6B;AAE7B,yDAI4B;AAC5B,+DAI+B;AAC/B,qCAKkB;AAClB,qDAK0B;AAkL1B,gBAAgB;AACH,QAAA,kBAAkB,GAA2C,CAAC;KACxE,MAAM,CAAC;IACN,KAAK,EAAE,gCAAoB,CAAC,QAAQ,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,iCAAqB,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,KAAK,CAOrB;AAPD,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AoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC"}
|
|
@@ -18,6 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./clientdefaulterror.js"), exports);
|
|
21
|
+
__exportStar(require("./clienterror.js"), exports);
|
|
21
22
|
__exportStar(require("./errorresponse.js"), exports);
|
|
22
23
|
__exportStar(require("./httpclienterrors.js"), exports);
|
|
23
24
|
__exportStar(require("./responsevalidationerror.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,0DAAwC;AACxC,qDAAmC;AACnC,wDAAsC;AACtC,+DAA6C;AAC7C,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,0DAAwC;AACxC,mDAAiC;AACjC,qDAAmC;AACnC,wDAAsC;AACtC,+DAA6C;AAC7C,0DAAwC"}
|