mollie-api-typescript 0.2.5 → 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 +58 -56
- 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 +43 -45
- package/dist/commonjs/models/entitysettlement.d.ts.map +1 -1
- package/dist/commonjs/models/entitysettlement.js +43 -42
- 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 +43 -45
- package/dist/esm/models/entitysettlement.d.ts.map +1 -1
- package/dist/esm/models/entitysettlement.js +43 -42
- 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 +90 -87
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/listsettlements.ts +16 -16
|
@@ -45,7 +45,7 @@ export type ListSettlementsEmbedded = {
|
|
|
45
45
|
* @remarks
|
|
46
46
|
* of the settlement object, refer to the [Get settlement endpoint](get-settlement) documentation.
|
|
47
47
|
*/
|
|
48
|
-
settlements
|
|
48
|
+
settlements: Array<models.EntitySettlement>;
|
|
49
49
|
};
|
|
50
50
|
/**
|
|
51
51
|
* A list of settlement objects. For a complete reference of the settlement
|
|
@@ -63,12 +63,12 @@ export type ListSettlementsResponse = {
|
|
|
63
63
|
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
64
64
|
* limit is 50 items.
|
|
65
65
|
*/
|
|
66
|
-
count
|
|
67
|
-
embedded
|
|
66
|
+
count: number;
|
|
67
|
+
embedded: ListSettlementsEmbedded;
|
|
68
68
|
/**
|
|
69
69
|
* Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
|
|
70
70
|
*/
|
|
71
|
-
links
|
|
71
|
+
links: models.ListLinks;
|
|
72
72
|
};
|
|
73
73
|
/** @internal */
|
|
74
74
|
export declare const ListSettlementsRequest$inboundSchema: z.ZodType<ListSettlementsRequest, z.ZodTypeDef, unknown>;
|
|
@@ -102,7 +102,7 @@ export declare function listSettlementsRequestFromJSON(jsonString: string): Safe
|
|
|
102
102
|
export declare const ListSettlementsEmbedded$inboundSchema: z.ZodType<ListSettlementsEmbedded, z.ZodTypeDef, unknown>;
|
|
103
103
|
/** @internal */
|
|
104
104
|
export type ListSettlementsEmbedded$Outbound = {
|
|
105
|
-
settlements
|
|
105
|
+
settlements: Array<models.EntitySettlement$Outbound>;
|
|
106
106
|
};
|
|
107
107
|
/** @internal */
|
|
108
108
|
export declare const ListSettlementsEmbedded$outboundSchema: z.ZodType<ListSettlementsEmbedded$Outbound, z.ZodTypeDef, ListSettlementsEmbedded>;
|
|
@@ -124,9 +124,9 @@ export declare function listSettlementsEmbeddedFromJSON(jsonString: string): Saf
|
|
|
124
124
|
export declare const ListSettlementsResponse$inboundSchema: z.ZodType<ListSettlementsResponse, z.ZodTypeDef, unknown>;
|
|
125
125
|
/** @internal */
|
|
126
126
|
export type ListSettlementsResponse$Outbound = {
|
|
127
|
-
count
|
|
128
|
-
_embedded
|
|
129
|
-
_links
|
|
127
|
+
count: number;
|
|
128
|
+
_embedded: ListSettlementsEmbedded$Outbound;
|
|
129
|
+
_links: models.ListLinks$Outbound;
|
|
130
130
|
};
|
|
131
131
|
/** @internal */
|
|
132
132
|
export declare const ListSettlementsResponse$outboundSchema: z.ZodType<ListSettlementsResponse$Outbound, z.ZodTypeDef, ListSettlementsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listsettlements.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listsettlements.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;OAKG;IACH,WAAW,
|
|
1
|
+
{"version":3,"file":"listsettlements.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listsettlements.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,UAAU,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;;;OAKG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;;GAKG;AACH,MAAM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AAC;IACxC,uEAAuE;IAChE,MAAM,aAAa,2DAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc,oFAAyC,CAAC;IACrE,kEAAkE;IAClE,KAAY,QAAQ,GAAG,gCAAgC,CAAC;CACzD;AAED,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -52,11 +52,11 @@ export function listSettlementsRequestFromJSON(jsonString) {
|
|
|
52
52
|
}
|
|
53
53
|
/** @internal */
|
|
54
54
|
export const ListSettlementsEmbedded$inboundSchema = z.object({
|
|
55
|
-
settlements: z.array(models.EntitySettlement$inboundSchema)
|
|
55
|
+
settlements: z.array(models.EntitySettlement$inboundSchema),
|
|
56
56
|
});
|
|
57
57
|
/** @internal */
|
|
58
58
|
export const ListSettlementsEmbedded$outboundSchema = z.object({
|
|
59
|
-
settlements: z.array(models.EntitySettlement$outboundSchema)
|
|
59
|
+
settlements: z.array(models.EntitySettlement$outboundSchema),
|
|
60
60
|
});
|
|
61
61
|
/**
|
|
62
62
|
* @internal
|
|
@@ -77,9 +77,9 @@ export function listSettlementsEmbeddedFromJSON(jsonString) {
|
|
|
77
77
|
}
|
|
78
78
|
/** @internal */
|
|
79
79
|
export const ListSettlementsResponse$inboundSchema = z.object({
|
|
80
|
-
count: z.number().int()
|
|
81
|
-
_embedded: z.lazy(() => ListSettlementsEmbedded$inboundSchema)
|
|
82
|
-
_links: models.ListLinks$inboundSchema
|
|
80
|
+
count: z.number().int(),
|
|
81
|
+
_embedded: z.lazy(() => ListSettlementsEmbedded$inboundSchema),
|
|
82
|
+
_links: models.ListLinks$inboundSchema,
|
|
83
83
|
}).transform((v) => {
|
|
84
84
|
return remap$(v, {
|
|
85
85
|
"_embedded": "embedded",
|
|
@@ -88,9 +88,9 @@ export const ListSettlementsResponse$inboundSchema = z.object({
|
|
|
88
88
|
});
|
|
89
89
|
/** @internal */
|
|
90
90
|
export const ListSettlementsResponse$outboundSchema = z.object({
|
|
91
|
-
count: z.number().int()
|
|
92
|
-
embedded: z.lazy(() => ListSettlementsEmbedded$outboundSchema)
|
|
93
|
-
links: models.ListLinks$outboundSchema
|
|
91
|
+
count: z.number().int(),
|
|
92
|
+
embedded: z.lazy(() => ListSettlementsEmbedded$outboundSchema),
|
|
93
|
+
links: models.ListLinks$outboundSchema,
|
|
94
94
|
}).transform((v) => {
|
|
95
95
|
return remap$(v, {
|
|
96
96
|
embedded: "_embedded",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listsettlements.js","sourceRoot":"","sources":["../../../../src/models/operations/listsettlements.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAyEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QA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AG,qCAAqC,CAAC;IACnE,wEAAwE;IAC3D,uCAAc,GAAG,sCAAsC,CAAC;AAGvE,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC;AAED,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,8 +62,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
62
62
|
export const SDK_METADATA = {
|
|
63
63
|
language: "typescript",
|
|
64
64
|
openapiDocVersion: "1.0.0",
|
|
65
|
-
sdkVersion: "0.2.
|
|
66
|
-
genVersion: "2.
|
|
65
|
+
sdkVersion: "0.2.6",
|
|
66
|
+
genVersion: "2.709.0",
|
|
67
67
|
userAgent:
|
|
68
|
-
"speakeasy-sdk/typescript 0.2.
|
|
68
|
+
"speakeasy-sdk/typescript 0.2.6 2.709.0 1.0.0 mollie-api-typescript",
|
|
69
69
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
Amount$Outbound,
|
|
13
13
|
Amount$outboundSchema,
|
|
14
14
|
} from "./amount.js";
|
|
15
|
+
import {
|
|
16
|
+
AmountNullable,
|
|
17
|
+
AmountNullable$inboundSchema,
|
|
18
|
+
AmountNullable$Outbound,
|
|
19
|
+
AmountNullable$outboundSchema,
|
|
20
|
+
} from "./amountnullable.js";
|
|
15
21
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
16
22
|
import {
|
|
17
23
|
PaymentMethod,
|
|
@@ -44,68 +50,65 @@ export type Rate = {
|
|
|
44
50
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
45
51
|
*/
|
|
46
52
|
fixed?: Amount | undefined;
|
|
47
|
-
|
|
48
|
-
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
49
|
-
*/
|
|
50
|
-
percentage?: Amount | undefined;
|
|
53
|
+
percentage?: string | undefined;
|
|
51
54
|
};
|
|
52
55
|
|
|
53
56
|
export type Cost = {
|
|
54
57
|
/**
|
|
55
58
|
* A description of the cost subtotal
|
|
56
59
|
*/
|
|
57
|
-
description
|
|
60
|
+
description: string;
|
|
58
61
|
/**
|
|
59
62
|
* The payment method, if applicable
|
|
60
63
|
*/
|
|
61
|
-
method
|
|
64
|
+
method: PaymentMethod | null;
|
|
62
65
|
/**
|
|
63
66
|
* The number of fees
|
|
64
67
|
*/
|
|
65
|
-
count
|
|
68
|
+
count: number;
|
|
66
69
|
/**
|
|
67
70
|
* The service rates, further divided into `fixed` and `percentage` costs.
|
|
68
71
|
*/
|
|
69
|
-
rate
|
|
72
|
+
rate: Rate;
|
|
70
73
|
/**
|
|
71
74
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
72
75
|
*/
|
|
73
|
-
amountNet
|
|
76
|
+
amountNet: Amount;
|
|
74
77
|
/**
|
|
75
78
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
76
79
|
*/
|
|
77
|
-
amountVat
|
|
80
|
+
amountVat: Amount;
|
|
78
81
|
/**
|
|
79
82
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
80
83
|
*/
|
|
81
|
-
amountGross
|
|
84
|
+
amountGross: Amount;
|
|
82
85
|
};
|
|
83
86
|
|
|
84
87
|
export type Revenue = {
|
|
85
88
|
/**
|
|
86
89
|
* A description of the revenue subtotal
|
|
87
90
|
*/
|
|
88
|
-
description
|
|
91
|
+
description: string;
|
|
89
92
|
/**
|
|
90
93
|
* The payment method, if applicable
|
|
91
94
|
*/
|
|
92
|
-
method
|
|
95
|
+
method: PaymentMethod | null;
|
|
93
96
|
/**
|
|
94
97
|
* The number of payments
|
|
95
98
|
*/
|
|
96
|
-
count
|
|
99
|
+
count: number;
|
|
97
100
|
/**
|
|
98
101
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
99
102
|
*/
|
|
100
|
-
amountNet
|
|
103
|
+
amountNet: Amount;
|
|
101
104
|
/**
|
|
102
105
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
103
106
|
*/
|
|
104
|
-
amountVat
|
|
107
|
+
amountVat: AmountNullable | null;
|
|
105
108
|
/**
|
|
106
109
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
107
110
|
*/
|
|
108
|
-
amountGross
|
|
111
|
+
amountGross: Amount;
|
|
109
112
|
};
|
|
110
113
|
|
|
111
114
|
export type Periods = {
|
|
@@ -131,7 +134,7 @@ export type EntitySettlementLinks = {
|
|
|
131
134
|
/**
|
|
132
135
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
133
136
|
*/
|
|
134
|
-
self
|
|
137
|
+
self: Url;
|
|
135
138
|
/**
|
|
136
139
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
137
140
|
*/
|
|
@@ -165,8 +168,8 @@ export type EntitySettlement = {
|
|
|
165
168
|
* @remarks
|
|
166
169
|
* endpoint.
|
|
167
170
|
*/
|
|
168
|
-
resource
|
|
169
|
-
id
|
|
171
|
+
resource: string;
|
|
172
|
+
id: string;
|
|
170
173
|
/**
|
|
171
174
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
172
175
|
*/
|
|
@@ -187,12 +190,12 @@ export type EntitySettlement = {
|
|
|
187
190
|
/**
|
|
188
191
|
* The status of the settlement.
|
|
189
192
|
*/
|
|
190
|
-
status
|
|
193
|
+
status: SettlementStatus;
|
|
191
194
|
/**
|
|
192
195
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
193
196
|
*/
|
|
194
|
-
amount
|
|
195
|
-
balanceId
|
|
197
|
+
amount: Amount;
|
|
198
|
+
balanceId: string;
|
|
196
199
|
invoiceId?: string | undefined;
|
|
197
200
|
/**
|
|
198
201
|
* For bookkeeping purposes, the settlement includes an overview of transactions included in the settlement. These
|
|
@@ -212,27 +215,27 @@ export type EntitySettlement = {
|
|
|
212
215
|
/**
|
|
213
216
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
214
217
|
*/
|
|
215
|
-
links
|
|
218
|
+
links: EntitySettlementLinks;
|
|
216
219
|
};
|
|
217
220
|
|
|
218
221
|
/** @internal */
|
|
219
222
|
export const Rate$inboundSchema: z.ZodType<Rate, z.ZodTypeDef, unknown> = z
|
|
220
223
|
.object({
|
|
221
224
|
fixed: Amount$inboundSchema.optional(),
|
|
222
|
-
percentage:
|
|
225
|
+
percentage: z.string().optional(),
|
|
223
226
|
});
|
|
224
227
|
|
|
225
228
|
/** @internal */
|
|
226
229
|
export type Rate$Outbound = {
|
|
227
230
|
fixed?: Amount$Outbound | undefined;
|
|
228
|
-
percentage?:
|
|
231
|
+
percentage?: string | undefined;
|
|
229
232
|
};
|
|
230
233
|
|
|
231
234
|
/** @internal */
|
|
232
235
|
export const Rate$outboundSchema: z.ZodType<Rate$Outbound, z.ZodTypeDef, Rate> =
|
|
233
236
|
z.object({
|
|
234
237
|
fixed: Amount$outboundSchema.optional(),
|
|
235
|
-
percentage:
|
|
238
|
+
percentage: z.string().optional(),
|
|
236
239
|
});
|
|
237
240
|
|
|
238
241
|
/**
|
|
@@ -265,36 +268,36 @@ export function rateFromJSON(
|
|
|
265
268
|
/** @internal */
|
|
266
269
|
export const Cost$inboundSchema: z.ZodType<Cost, z.ZodTypeDef, unknown> = z
|
|
267
270
|
.object({
|
|
268
|
-
description: z.string()
|
|
269
|
-
method: z.nullable(PaymentMethod$inboundSchema)
|
|
270
|
-
count: z.number().int()
|
|
271
|
-
rate: z.lazy(() => Rate$inboundSchema)
|
|
272
|
-
amountNet: Amount$inboundSchema
|
|
273
|
-
amountVat: Amount$inboundSchema
|
|
274
|
-
amountGross: Amount$inboundSchema
|
|
271
|
+
description: z.string(),
|
|
272
|
+
method: z.nullable(PaymentMethod$inboundSchema),
|
|
273
|
+
count: z.number().int(),
|
|
274
|
+
rate: z.lazy(() => Rate$inboundSchema),
|
|
275
|
+
amountNet: Amount$inboundSchema,
|
|
276
|
+
amountVat: Amount$inboundSchema,
|
|
277
|
+
amountGross: Amount$inboundSchema,
|
|
275
278
|
});
|
|
276
279
|
|
|
277
280
|
/** @internal */
|
|
278
281
|
export type Cost$Outbound = {
|
|
279
|
-
description
|
|
280
|
-
method
|
|
281
|
-
count
|
|
282
|
-
rate
|
|
283
|
-
amountNet
|
|
284
|
-
amountVat
|
|
285
|
-
amountGross
|
|
282
|
+
description: string;
|
|
283
|
+
method: string | null;
|
|
284
|
+
count: number;
|
|
285
|
+
rate: Rate$Outbound;
|
|
286
|
+
amountNet: Amount$Outbound;
|
|
287
|
+
amountVat: Amount$Outbound;
|
|
288
|
+
amountGross: Amount$Outbound;
|
|
286
289
|
};
|
|
287
290
|
|
|
288
291
|
/** @internal */
|
|
289
292
|
export const Cost$outboundSchema: z.ZodType<Cost$Outbound, z.ZodTypeDef, Cost> =
|
|
290
293
|
z.object({
|
|
291
|
-
description: z.string()
|
|
292
|
-
method: z.nullable(PaymentMethod$outboundSchema)
|
|
293
|
-
count: z.number().int()
|
|
294
|
-
rate: z.lazy(() => Rate$outboundSchema)
|
|
295
|
-
amountNet: Amount$outboundSchema
|
|
296
|
-
amountVat: Amount$outboundSchema
|
|
297
|
-
amountGross: Amount$outboundSchema
|
|
294
|
+
description: z.string(),
|
|
295
|
+
method: z.nullable(PaymentMethod$outboundSchema),
|
|
296
|
+
count: z.number().int(),
|
|
297
|
+
rate: z.lazy(() => Rate$outboundSchema),
|
|
298
|
+
amountNet: Amount$outboundSchema,
|
|
299
|
+
amountVat: Amount$outboundSchema,
|
|
300
|
+
amountGross: Amount$outboundSchema,
|
|
298
301
|
});
|
|
299
302
|
|
|
300
303
|
/**
|
|
@@ -327,22 +330,22 @@ export function costFromJSON(
|
|
|
327
330
|
/** @internal */
|
|
328
331
|
export const Revenue$inboundSchema: z.ZodType<Revenue, z.ZodTypeDef, unknown> =
|
|
329
332
|
z.object({
|
|
330
|
-
description: z.string()
|
|
331
|
-
method: z.nullable(PaymentMethod$inboundSchema)
|
|
332
|
-
count: z.number().int()
|
|
333
|
-
amountNet: Amount$inboundSchema
|
|
334
|
-
amountVat:
|
|
335
|
-
amountGross: Amount$inboundSchema
|
|
333
|
+
description: z.string(),
|
|
334
|
+
method: z.nullable(PaymentMethod$inboundSchema),
|
|
335
|
+
count: z.number().int(),
|
|
336
|
+
amountNet: Amount$inboundSchema,
|
|
337
|
+
amountVat: z.nullable(AmountNullable$inboundSchema),
|
|
338
|
+
amountGross: Amount$inboundSchema,
|
|
336
339
|
});
|
|
337
340
|
|
|
338
341
|
/** @internal */
|
|
339
342
|
export type Revenue$Outbound = {
|
|
340
|
-
description
|
|
341
|
-
method
|
|
342
|
-
count
|
|
343
|
-
amountNet
|
|
344
|
-
amountVat
|
|
345
|
-
amountGross
|
|
343
|
+
description: string;
|
|
344
|
+
method: string | null;
|
|
345
|
+
count: number;
|
|
346
|
+
amountNet: Amount$Outbound;
|
|
347
|
+
amountVat: AmountNullable$Outbound | null;
|
|
348
|
+
amountGross: Amount$Outbound;
|
|
346
349
|
};
|
|
347
350
|
|
|
348
351
|
/** @internal */
|
|
@@ -351,12 +354,12 @@ export const Revenue$outboundSchema: z.ZodType<
|
|
|
351
354
|
z.ZodTypeDef,
|
|
352
355
|
Revenue
|
|
353
356
|
> = z.object({
|
|
354
|
-
description: z.string()
|
|
355
|
-
method: z.nullable(PaymentMethod$outboundSchema)
|
|
356
|
-
count: z.number().int()
|
|
357
|
-
amountNet: Amount$outboundSchema
|
|
358
|
-
amountVat:
|
|
359
|
-
amountGross: Amount$outboundSchema
|
|
357
|
+
description: z.string(),
|
|
358
|
+
method: z.nullable(PaymentMethod$outboundSchema),
|
|
359
|
+
count: z.number().int(),
|
|
360
|
+
amountNet: Amount$outboundSchema,
|
|
361
|
+
amountVat: z.nullable(AmountNullable$outboundSchema),
|
|
362
|
+
amountGross: Amount$outboundSchema,
|
|
360
363
|
});
|
|
361
364
|
|
|
362
365
|
/**
|
|
@@ -448,7 +451,7 @@ export const EntitySettlementLinks$inboundSchema: z.ZodType<
|
|
|
448
451
|
z.ZodTypeDef,
|
|
449
452
|
unknown
|
|
450
453
|
> = z.object({
|
|
451
|
-
self: Url$inboundSchema
|
|
454
|
+
self: Url$inboundSchema,
|
|
452
455
|
payments: Url$inboundSchema.optional(),
|
|
453
456
|
captures: Url$inboundSchema.optional(),
|
|
454
457
|
refunds: Url$inboundSchema.optional(),
|
|
@@ -459,7 +462,7 @@ export const EntitySettlementLinks$inboundSchema: z.ZodType<
|
|
|
459
462
|
|
|
460
463
|
/** @internal */
|
|
461
464
|
export type EntitySettlementLinks$Outbound = {
|
|
462
|
-
self
|
|
465
|
+
self: Url$Outbound;
|
|
463
466
|
payments?: Url$Outbound | undefined;
|
|
464
467
|
captures?: Url$Outbound | undefined;
|
|
465
468
|
refunds?: Url$Outbound | undefined;
|
|
@@ -474,7 +477,7 @@ export const EntitySettlementLinks$outboundSchema: z.ZodType<
|
|
|
474
477
|
z.ZodTypeDef,
|
|
475
478
|
EntitySettlementLinks
|
|
476
479
|
> = z.object({
|
|
477
|
-
self: Url$outboundSchema
|
|
480
|
+
self: Url$outboundSchema,
|
|
478
481
|
payments: Url$outboundSchema.optional(),
|
|
479
482
|
captures: Url$outboundSchema.optional(),
|
|
480
483
|
refunds: Url$outboundSchema.optional(),
|
|
@@ -520,17 +523,17 @@ export const EntitySettlement$inboundSchema: z.ZodType<
|
|
|
520
523
|
z.ZodTypeDef,
|
|
521
524
|
unknown
|
|
522
525
|
> = z.object({
|
|
523
|
-
resource: z.string()
|
|
524
|
-
id: z.string()
|
|
526
|
+
resource: z.string(),
|
|
527
|
+
id: z.string(),
|
|
525
528
|
createdAt: z.string().optional(),
|
|
526
529
|
reference: z.nullable(z.string()).optional(),
|
|
527
530
|
settledAt: z.nullable(z.string()).optional(),
|
|
528
|
-
status: SettlementStatus$inboundSchema
|
|
529
|
-
amount: Amount$inboundSchema
|
|
530
|
-
balanceId: z.string()
|
|
531
|
+
status: SettlementStatus$inboundSchema,
|
|
532
|
+
amount: Amount$inboundSchema,
|
|
533
|
+
balanceId: z.string(),
|
|
531
534
|
invoiceId: z.string().optional(),
|
|
532
535
|
periods: z.record(z.record(z.lazy(() => Periods$inboundSchema))).optional(),
|
|
533
|
-
_links: z.lazy(() => EntitySettlementLinks$inboundSchema)
|
|
536
|
+
_links: z.lazy(() => EntitySettlementLinks$inboundSchema),
|
|
534
537
|
}).transform((v) => {
|
|
535
538
|
return remap$(v, {
|
|
536
539
|
"_links": "links",
|
|
@@ -539,17 +542,17 @@ export const EntitySettlement$inboundSchema: z.ZodType<
|
|
|
539
542
|
|
|
540
543
|
/** @internal */
|
|
541
544
|
export type EntitySettlement$Outbound = {
|
|
542
|
-
resource
|
|
543
|
-
id
|
|
545
|
+
resource: string;
|
|
546
|
+
id: string;
|
|
544
547
|
createdAt?: string | undefined;
|
|
545
548
|
reference?: string | null | undefined;
|
|
546
549
|
settledAt?: string | null | undefined;
|
|
547
|
-
status
|
|
548
|
-
amount
|
|
549
|
-
balanceId
|
|
550
|
+
status: string;
|
|
551
|
+
amount: Amount$Outbound;
|
|
552
|
+
balanceId: string;
|
|
550
553
|
invoiceId?: string | undefined;
|
|
551
554
|
periods?: { [k: string]: { [k: string]: Periods$Outbound } } | undefined;
|
|
552
|
-
_links
|
|
555
|
+
_links: EntitySettlementLinks$Outbound;
|
|
553
556
|
};
|
|
554
557
|
|
|
555
558
|
/** @internal */
|
|
@@ -558,17 +561,17 @@ export const EntitySettlement$outboundSchema: z.ZodType<
|
|
|
558
561
|
z.ZodTypeDef,
|
|
559
562
|
EntitySettlement
|
|
560
563
|
> = z.object({
|
|
561
|
-
resource: z.string()
|
|
562
|
-
id: z.string()
|
|
564
|
+
resource: z.string(),
|
|
565
|
+
id: z.string(),
|
|
563
566
|
createdAt: z.string().optional(),
|
|
564
567
|
reference: z.nullable(z.string()).optional(),
|
|
565
568
|
settledAt: z.nullable(z.string()).optional(),
|
|
566
|
-
status: SettlementStatus$outboundSchema
|
|
567
|
-
amount: Amount$outboundSchema
|
|
568
|
-
balanceId: z.string()
|
|
569
|
+
status: SettlementStatus$outboundSchema,
|
|
570
|
+
amount: Amount$outboundSchema,
|
|
571
|
+
balanceId: z.string(),
|
|
569
572
|
invoiceId: z.string().optional(),
|
|
570
573
|
periods: z.record(z.record(z.lazy(() => Periods$outboundSchema))).optional(),
|
|
571
|
-
links: z.lazy(() => EntitySettlementLinks$outboundSchema)
|
|
574
|
+
links: z.lazy(() => EntitySettlementLinks$outboundSchema),
|
|
572
575
|
}).transform((v) => {
|
|
573
576
|
return remap$(v, {
|
|
574
577
|
links: "_links",
|
|
@@ -53,7 +53,7 @@ export type ListSettlementsEmbedded = {
|
|
|
53
53
|
* @remarks
|
|
54
54
|
* of the settlement object, refer to the [Get settlement endpoint](get-settlement) documentation.
|
|
55
55
|
*/
|
|
56
|
-
settlements
|
|
56
|
+
settlements: Array<models.EntitySettlement>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -72,12 +72,12 @@ export type ListSettlementsResponse = {
|
|
|
72
72
|
* The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
|
|
73
73
|
* limit is 50 items.
|
|
74
74
|
*/
|
|
75
|
-
count
|
|
76
|
-
embedded
|
|
75
|
+
count: number;
|
|
76
|
+
embedded: ListSettlementsEmbedded;
|
|
77
77
|
/**
|
|
78
78
|
* Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
|
|
79
79
|
*/
|
|
80
|
-
links
|
|
80
|
+
links: models.ListLinks;
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
/** @internal */
|
|
@@ -166,12 +166,12 @@ export const ListSettlementsEmbedded$inboundSchema: z.ZodType<
|
|
|
166
166
|
z.ZodTypeDef,
|
|
167
167
|
unknown
|
|
168
168
|
> = z.object({
|
|
169
|
-
settlements: z.array(models.EntitySettlement$inboundSchema)
|
|
169
|
+
settlements: z.array(models.EntitySettlement$inboundSchema),
|
|
170
170
|
});
|
|
171
171
|
|
|
172
172
|
/** @internal */
|
|
173
173
|
export type ListSettlementsEmbedded$Outbound = {
|
|
174
|
-
settlements
|
|
174
|
+
settlements: Array<models.EntitySettlement$Outbound>;
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
/** @internal */
|
|
@@ -180,7 +180,7 @@ export const ListSettlementsEmbedded$outboundSchema: z.ZodType<
|
|
|
180
180
|
z.ZodTypeDef,
|
|
181
181
|
ListSettlementsEmbedded
|
|
182
182
|
> = z.object({
|
|
183
|
-
settlements: z.array(models.EntitySettlement$outboundSchema)
|
|
183
|
+
settlements: z.array(models.EntitySettlement$outboundSchema),
|
|
184
184
|
});
|
|
185
185
|
|
|
186
186
|
/**
|
|
@@ -220,9 +220,9 @@ export const ListSettlementsResponse$inboundSchema: z.ZodType<
|
|
|
220
220
|
z.ZodTypeDef,
|
|
221
221
|
unknown
|
|
222
222
|
> = z.object({
|
|
223
|
-
count: z.number().int()
|
|
224
|
-
_embedded: z.lazy(() => ListSettlementsEmbedded$inboundSchema)
|
|
225
|
-
_links: models.ListLinks$inboundSchema
|
|
223
|
+
count: z.number().int(),
|
|
224
|
+
_embedded: z.lazy(() => ListSettlementsEmbedded$inboundSchema),
|
|
225
|
+
_links: models.ListLinks$inboundSchema,
|
|
226
226
|
}).transform((v) => {
|
|
227
227
|
return remap$(v, {
|
|
228
228
|
"_embedded": "embedded",
|
|
@@ -232,9 +232,9 @@ export const ListSettlementsResponse$inboundSchema: z.ZodType<
|
|
|
232
232
|
|
|
233
233
|
/** @internal */
|
|
234
234
|
export type ListSettlementsResponse$Outbound = {
|
|
235
|
-
count
|
|
236
|
-
_embedded
|
|
237
|
-
_links
|
|
235
|
+
count: number;
|
|
236
|
+
_embedded: ListSettlementsEmbedded$Outbound;
|
|
237
|
+
_links: models.ListLinks$Outbound;
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
/** @internal */
|
|
@@ -243,9 +243,9 @@ export const ListSettlementsResponse$outboundSchema: z.ZodType<
|
|
|
243
243
|
z.ZodTypeDef,
|
|
244
244
|
ListSettlementsResponse
|
|
245
245
|
> = z.object({
|
|
246
|
-
count: z.number().int()
|
|
247
|
-
embedded: z.lazy(() => ListSettlementsEmbedded$outboundSchema)
|
|
248
|
-
links: models.ListLinks$outboundSchema
|
|
246
|
+
count: z.number().int(),
|
|
247
|
+
embedded: z.lazy(() => ListSettlementsEmbedded$outboundSchema),
|
|
248
|
+
links: models.ListLinks$outboundSchema,
|
|
249
249
|
}).transform((v) => {
|
|
250
250
|
return remap$(v, {
|
|
251
251
|
embedded: "_embedded",
|