mollie-api-typescript 0.9.4 → 0.9.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/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +26812 -8535
- package/bin/mcp-server.js.map +201 -35
- 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/prompts.d.ts +3 -3
- package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/prompts.js.map +1 -1
- package/dist/commonjs/mcp-server/resources.d.ts +3 -3
- package/dist/commonjs/mcp-server/resources.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/resources.js.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools.d.ts +3 -3
- package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/tools.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/listentitymethodall.d.ts +0 -5
- package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -1
- package/dist/commonjs/models/listentitymethodall.js +0 -2
- package/dist/commonjs/models/listentitymethodall.js.map +1 -1
- package/dist/commonjs/models/{listentityrefundresponse.d.ts → listentityrefund.d.ts} +52 -52
- package/dist/commonjs/models/listentityrefund.d.ts.map +1 -0
- package/dist/commonjs/models/listentityrefund.js +202 -0
- package/dist/commonjs/models/listentityrefund.js.map +1 -0
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js +2 -2
- package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listallchargebacks.d.ts +2 -2
- package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallchargebacks.js +2 -2
- package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +2 -2
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +2 -2
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +4 -2
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.d.ts +2 -2
- package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcaptures.js +2 -2
- package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
- package/dist/commonjs/models/operations/listchargebacks.d.ts +2 -2
- package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listchargebacks.js +2 -2
- package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomerpayments.js +2 -2
- package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpayments.js +2 -2
- package/dist/commonjs/models/operations/listpayments.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +2 -2
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +2 -2
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +2 -2
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +2 -2
- package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptionpayments.js +2 -2
- package/dist/commonjs/models/operations/listsubscriptionpayments.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/prompts.d.ts +3 -3
- package/dist/esm/mcp-server/prompts.d.ts.map +1 -1
- package/dist/esm/mcp-server/prompts.js.map +1 -1
- package/dist/esm/mcp-server/resources.d.ts +3 -3
- package/dist/esm/mcp-server/resources.d.ts.map +1 -1
- package/dist/esm/mcp-server/resources.js.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools.d.ts +3 -3
- package/dist/esm/mcp-server/tools.d.ts.map +1 -1
- package/dist/esm/mcp-server/tools.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/listentitymethodall.d.ts +0 -5
- package/dist/esm/models/listentitymethodall.d.ts.map +1 -1
- package/dist/esm/models/listentitymethodall.js +0 -2
- package/dist/esm/models/listentitymethodall.js.map +1 -1
- package/dist/esm/models/{listentityrefundresponse.d.ts → listentityrefund.d.ts} +52 -52
- package/dist/esm/models/listentityrefund.d.ts.map +1 -0
- package/dist/esm/models/listentityrefund.js +154 -0
- package/dist/esm/models/listentityrefund.js.map +1 -0
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +2 -2
- package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -2
- package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
- package/dist/esm/models/operations/listallchargebacks.d.ts +2 -2
- package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listallchargebacks.js +2 -2
- package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +2 -2
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +2 -2
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +4 -2
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcaptures.d.ts +2 -2
- package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
- package/dist/esm/models/operations/listcaptures.js +2 -2
- package/dist/esm/models/operations/listcaptures.js.map +1 -1
- package/dist/esm/models/operations/listchargebacks.d.ts +2 -2
- package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
- package/dist/esm/models/operations/listchargebacks.js +2 -2
- package/dist/esm/models/operations/listchargebacks.js.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.d.ts +2 -2
- package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomerpayments.js +2 -2
- package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
- package/dist/esm/models/operations/listpayments.d.ts +2 -2
- package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listpayments.js +2 -2
- package/dist/esm/models/operations/listpayments.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +2 -2
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +2 -2
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +2 -2
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts +2 -2
- package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptionpayments.js +2 -2
- package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +7 -3
- package/src/mcp-server/resources.ts +7 -3
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools.ts +7 -3
- package/src/models/index.ts +1 -1
- package/src/models/listentitymethodall.ts +0 -7
- package/src/models/{listentityrefundresponse.ts → listentityrefund.ts} +123 -164
- package/src/models/operations/getpaymentlinkpayments.ts +4 -4
- package/src/models/operations/listallchargebacks.ts +4 -4
- package/src/models/operations/listallrefunds.ts +4 -4
- package/src/models/operations/listallsubscriptions.ts +6 -4
- package/src/models/operations/listcaptures.ts +4 -4
- package/src/models/operations/listchargebacks.ts +4 -4
- package/src/models/operations/listcustomerpayments.ts +4 -4
- package/src/models/operations/listpayments.ts +4 -4
- package/src/models/operations/listrefunds.ts +4 -4
- package/src/models/operations/listsettlementrefunds.ts +4 -4
- package/src/models/operations/listsubscriptionpayments.ts +4 -4
- package/dist/commonjs/models/listentityrefundresponse.d.ts.map +0 -1
- package/dist/commonjs/models/listentityrefundresponse.js +0 -203
- package/dist/commonjs/models/listentityrefundresponse.js.map +0 -1
- package/dist/esm/models/listentityrefundresponse.d.ts.map +0 -1
- package/dist/esm/models/listentityrefundresponse.js +0 -155
- package/dist/esm/models/listentityrefundresponse.js.map +0 -1
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
* To retrieve accurate settlement amounts we recommend using the
|
|
58
58
|
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
59
59
|
*/
|
|
60
|
-
export type
|
|
60
|
+
export type ListEntityRefundSettlementAmount = {
|
|
61
61
|
/**
|
|
62
62
|
* A three-character ISO 4217 currency code.
|
|
63
63
|
*/
|
|
@@ -68,7 +68,7 @@ export type ListEntityRefundResponseSettlementAmount = {
|
|
|
68
68
|
value: string;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
export const
|
|
71
|
+
export const ListEntityRefundStatus = {
|
|
72
72
|
Queued: "queued",
|
|
73
73
|
Pending: "pending",
|
|
74
74
|
Processing: "processing",
|
|
@@ -76,11 +76,9 @@ export const ListEntityRefundResponseStatus = {
|
|
|
76
76
|
Failed: "failed",
|
|
77
77
|
Canceled: "canceled",
|
|
78
78
|
} as const;
|
|
79
|
-
export type
|
|
80
|
-
typeof ListEntityRefundResponseStatus
|
|
81
|
-
>;
|
|
79
|
+
export type ListEntityRefundStatus = OpenEnum<typeof ListEntityRefundStatus>;
|
|
82
80
|
|
|
83
|
-
export type
|
|
81
|
+
export type ListEntityRefundExternalReference = {
|
|
84
82
|
/**
|
|
85
83
|
* Specifies the reference type
|
|
86
84
|
*/
|
|
@@ -94,11 +92,11 @@ export type ListEntityRefundResponseExternalReference = {
|
|
|
94
92
|
/**
|
|
95
93
|
* Where the funds will be pulled back from.
|
|
96
94
|
*/
|
|
97
|
-
export type
|
|
95
|
+
export type ListEntityRefundSource = {
|
|
98
96
|
organizationId?: string | undefined;
|
|
99
97
|
};
|
|
100
98
|
|
|
101
|
-
export type
|
|
99
|
+
export type ListEntityRefundRoutingReversal = {
|
|
102
100
|
/**
|
|
103
101
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
104
102
|
*/
|
|
@@ -106,13 +104,13 @@ export type ListEntityRefundResponseRoutingReversal = {
|
|
|
106
104
|
/**
|
|
107
105
|
* Where the funds will be pulled back from.
|
|
108
106
|
*/
|
|
109
|
-
source?:
|
|
107
|
+
source?: ListEntityRefundSource | undefined;
|
|
110
108
|
};
|
|
111
109
|
|
|
112
110
|
/**
|
|
113
111
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
114
112
|
*/
|
|
115
|
-
export type
|
|
113
|
+
export type ListEntityRefundLinks = {
|
|
116
114
|
/**
|
|
117
115
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
118
116
|
*/
|
|
@@ -127,7 +125,7 @@ export type ListEntityRefundResponseLinks = {
|
|
|
127
125
|
settlement?: UrlNullable | null | undefined;
|
|
128
126
|
};
|
|
129
127
|
|
|
130
|
-
export type
|
|
128
|
+
export type ListEntityRefund = {
|
|
131
129
|
/**
|
|
132
130
|
* Indicates the response contains a refund object. Will always contain the string `refund` for this endpoint.
|
|
133
131
|
*/
|
|
@@ -168,10 +166,7 @@ export type ListEntityRefundResponse = {
|
|
|
168
166
|
* To retrieve accurate settlement amounts we recommend using the
|
|
169
167
|
* [List balance transactions endpoint](list-balance-transactions) instead.
|
|
170
168
|
*/
|
|
171
|
-
settlementAmount?:
|
|
172
|
-
| ListEntityRefundResponseSettlementAmount
|
|
173
|
-
| null
|
|
174
|
-
| undefined;
|
|
169
|
+
settlementAmount?: ListEntityRefundSettlementAmount | null | undefined;
|
|
175
170
|
/**
|
|
176
171
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
177
172
|
*
|
|
@@ -190,12 +185,12 @@ export type ListEntityRefundResponse = {
|
|
|
190
185
|
* The identifier referring to the settlement this refund was settled with. This field is omitted if the refund is not settled (yet).
|
|
191
186
|
*/
|
|
192
187
|
settlementId?: string | null | undefined;
|
|
193
|
-
status:
|
|
188
|
+
status: ListEntityRefundStatus;
|
|
194
189
|
/**
|
|
195
190
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
196
191
|
*/
|
|
197
192
|
createdAt: string;
|
|
198
|
-
externalReference?:
|
|
193
|
+
externalReference?: ListEntityRefundExternalReference | undefined;
|
|
199
194
|
/**
|
|
200
195
|
* *This feature is only available to marketplace operators.*
|
|
201
196
|
*
|
|
@@ -208,19 +203,16 @@ export type ListEntityRefundResponse = {
|
|
|
208
203
|
*
|
|
209
204
|
* If you simply want to fully reverse the routed funds, you can also use the `reverseRouting` parameter instead.
|
|
210
205
|
*/
|
|
211
|
-
routingReversals?:
|
|
212
|
-
| Array<ListEntityRefundResponseRoutingReversal>
|
|
213
|
-
| null
|
|
214
|
-
| undefined;
|
|
206
|
+
routingReversals?: Array<ListEntityRefundRoutingReversal> | null | undefined;
|
|
215
207
|
/**
|
|
216
208
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
217
209
|
*/
|
|
218
|
-
links:
|
|
210
|
+
links: ListEntityRefundLinks;
|
|
219
211
|
};
|
|
220
212
|
|
|
221
213
|
/** @internal */
|
|
222
|
-
export const
|
|
223
|
-
|
|
214
|
+
export const ListEntityRefundSettlementAmount$inboundSchema: z.ZodType<
|
|
215
|
+
ListEntityRefundSettlementAmount,
|
|
224
216
|
z.ZodTypeDef,
|
|
225
217
|
unknown
|
|
226
218
|
> = z.object({
|
|
@@ -228,63 +220,56 @@ export const ListEntityRefundResponseSettlementAmount$inboundSchema: z.ZodType<
|
|
|
228
220
|
value: z.string(),
|
|
229
221
|
});
|
|
230
222
|
/** @internal */
|
|
231
|
-
export type
|
|
223
|
+
export type ListEntityRefundSettlementAmount$Outbound = {
|
|
232
224
|
currency: string;
|
|
233
225
|
value: string;
|
|
234
226
|
};
|
|
235
227
|
|
|
236
228
|
/** @internal */
|
|
237
|
-
export const
|
|
238
|
-
|
|
229
|
+
export const ListEntityRefundSettlementAmount$outboundSchema: z.ZodType<
|
|
230
|
+
ListEntityRefundSettlementAmount$Outbound,
|
|
239
231
|
z.ZodTypeDef,
|
|
240
|
-
|
|
232
|
+
ListEntityRefundSettlementAmount
|
|
241
233
|
> = z.object({
|
|
242
234
|
currency: z.string(),
|
|
243
235
|
value: z.string(),
|
|
244
236
|
});
|
|
245
237
|
|
|
246
|
-
export function
|
|
247
|
-
|
|
248
|
-
ListEntityRefundResponseSettlementAmount,
|
|
238
|
+
export function listEntityRefundSettlementAmountToJSON(
|
|
239
|
+
listEntityRefundSettlementAmount: ListEntityRefundSettlementAmount,
|
|
249
240
|
): string {
|
|
250
241
|
return JSON.stringify(
|
|
251
|
-
|
|
252
|
-
|
|
242
|
+
ListEntityRefundSettlementAmount$outboundSchema.parse(
|
|
243
|
+
listEntityRefundSettlementAmount,
|
|
253
244
|
),
|
|
254
245
|
);
|
|
255
246
|
}
|
|
256
|
-
export function
|
|
247
|
+
export function listEntityRefundSettlementAmountFromJSON(
|
|
257
248
|
jsonString: string,
|
|
258
|
-
): SafeParseResult<
|
|
259
|
-
ListEntityRefundResponseSettlementAmount,
|
|
260
|
-
SDKValidationError
|
|
261
|
-
> {
|
|
249
|
+
): SafeParseResult<ListEntityRefundSettlementAmount, SDKValidationError> {
|
|
262
250
|
return safeParse(
|
|
263
251
|
jsonString,
|
|
264
|
-
(x) =>
|
|
265
|
-
|
|
266
|
-
JSON.parse(x),
|
|
267
|
-
),
|
|
268
|
-
`Failed to parse 'ListEntityRefundResponseSettlementAmount' from JSON`,
|
|
252
|
+
(x) => ListEntityRefundSettlementAmount$inboundSchema.parse(JSON.parse(x)),
|
|
253
|
+
`Failed to parse 'ListEntityRefundSettlementAmount' from JSON`,
|
|
269
254
|
);
|
|
270
255
|
}
|
|
271
256
|
|
|
272
257
|
/** @internal */
|
|
273
|
-
export const
|
|
274
|
-
|
|
258
|
+
export const ListEntityRefundStatus$inboundSchema: z.ZodType<
|
|
259
|
+
ListEntityRefundStatus,
|
|
275
260
|
z.ZodTypeDef,
|
|
276
261
|
unknown
|
|
277
|
-
> = openEnums.inboundSchema(
|
|
262
|
+
> = openEnums.inboundSchema(ListEntityRefundStatus);
|
|
278
263
|
/** @internal */
|
|
279
|
-
export const
|
|
264
|
+
export const ListEntityRefundStatus$outboundSchema: z.ZodType<
|
|
280
265
|
string,
|
|
281
266
|
z.ZodTypeDef,
|
|
282
|
-
|
|
283
|
-
> = openEnums.outboundSchema(
|
|
267
|
+
ListEntityRefundStatus
|
|
268
|
+
> = openEnums.outboundSchema(ListEntityRefundStatus);
|
|
284
269
|
|
|
285
270
|
/** @internal */
|
|
286
|
-
export const
|
|
287
|
-
|
|
271
|
+
export const ListEntityRefundExternalReference$inboundSchema: z.ZodType<
|
|
272
|
+
ListEntityRefundExternalReference,
|
|
288
273
|
z.ZodTypeDef,
|
|
289
274
|
unknown
|
|
290
275
|
> = z.object({
|
|
@@ -292,144 +277,126 @@ export const ListEntityRefundResponseExternalReference$inboundSchema: z.ZodType<
|
|
|
292
277
|
id: z.string().optional(),
|
|
293
278
|
});
|
|
294
279
|
/** @internal */
|
|
295
|
-
export type
|
|
280
|
+
export type ListEntityRefundExternalReference$Outbound = {
|
|
296
281
|
type?: string | undefined;
|
|
297
282
|
id?: string | undefined;
|
|
298
283
|
};
|
|
299
284
|
|
|
300
285
|
/** @internal */
|
|
301
|
-
export const
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
});
|
|
286
|
+
export const ListEntityRefundExternalReference$outboundSchema: z.ZodType<
|
|
287
|
+
ListEntityRefundExternalReference$Outbound,
|
|
288
|
+
z.ZodTypeDef,
|
|
289
|
+
ListEntityRefundExternalReference
|
|
290
|
+
> = z.object({
|
|
291
|
+
type: RefundExternalReferenceTypeResponse$outboundSchema.optional(),
|
|
292
|
+
id: z.string().optional(),
|
|
293
|
+
});
|
|
310
294
|
|
|
311
|
-
export function
|
|
312
|
-
|
|
313
|
-
ListEntityRefundResponseExternalReference,
|
|
295
|
+
export function listEntityRefundExternalReferenceToJSON(
|
|
296
|
+
listEntityRefundExternalReference: ListEntityRefundExternalReference,
|
|
314
297
|
): string {
|
|
315
298
|
return JSON.stringify(
|
|
316
|
-
|
|
317
|
-
|
|
299
|
+
ListEntityRefundExternalReference$outboundSchema.parse(
|
|
300
|
+
listEntityRefundExternalReference,
|
|
318
301
|
),
|
|
319
302
|
);
|
|
320
303
|
}
|
|
321
|
-
export function
|
|
304
|
+
export function listEntityRefundExternalReferenceFromJSON(
|
|
322
305
|
jsonString: string,
|
|
323
|
-
): SafeParseResult<
|
|
324
|
-
ListEntityRefundResponseExternalReference,
|
|
325
|
-
SDKValidationError
|
|
326
|
-
> {
|
|
306
|
+
): SafeParseResult<ListEntityRefundExternalReference, SDKValidationError> {
|
|
327
307
|
return safeParse(
|
|
328
308
|
jsonString,
|
|
329
|
-
(x) =>
|
|
330
|
-
|
|
331
|
-
JSON.parse(x),
|
|
332
|
-
),
|
|
333
|
-
`Failed to parse 'ListEntityRefundResponseExternalReference' from JSON`,
|
|
309
|
+
(x) => ListEntityRefundExternalReference$inboundSchema.parse(JSON.parse(x)),
|
|
310
|
+
`Failed to parse 'ListEntityRefundExternalReference' from JSON`,
|
|
334
311
|
);
|
|
335
312
|
}
|
|
336
313
|
|
|
337
314
|
/** @internal */
|
|
338
|
-
export const
|
|
339
|
-
|
|
315
|
+
export const ListEntityRefundSource$inboundSchema: z.ZodType<
|
|
316
|
+
ListEntityRefundSource,
|
|
340
317
|
z.ZodTypeDef,
|
|
341
318
|
unknown
|
|
342
319
|
> = z.object({
|
|
343
320
|
organizationId: z.string().optional(),
|
|
344
321
|
});
|
|
345
322
|
/** @internal */
|
|
346
|
-
export type
|
|
323
|
+
export type ListEntityRefundSource$Outbound = {
|
|
347
324
|
organizationId?: string | undefined;
|
|
348
325
|
};
|
|
349
326
|
|
|
350
327
|
/** @internal */
|
|
351
|
-
export const
|
|
352
|
-
|
|
328
|
+
export const ListEntityRefundSource$outboundSchema: z.ZodType<
|
|
329
|
+
ListEntityRefundSource$Outbound,
|
|
353
330
|
z.ZodTypeDef,
|
|
354
|
-
|
|
331
|
+
ListEntityRefundSource
|
|
355
332
|
> = z.object({
|
|
356
333
|
organizationId: z.string().optional(),
|
|
357
334
|
});
|
|
358
335
|
|
|
359
|
-
export function
|
|
360
|
-
|
|
336
|
+
export function listEntityRefundSourceToJSON(
|
|
337
|
+
listEntityRefundSource: ListEntityRefundSource,
|
|
361
338
|
): string {
|
|
362
339
|
return JSON.stringify(
|
|
363
|
-
|
|
364
|
-
listEntityRefundResponseSource,
|
|
365
|
-
),
|
|
340
|
+
ListEntityRefundSource$outboundSchema.parse(listEntityRefundSource),
|
|
366
341
|
);
|
|
367
342
|
}
|
|
368
|
-
export function
|
|
343
|
+
export function listEntityRefundSourceFromJSON(
|
|
369
344
|
jsonString: string,
|
|
370
|
-
): SafeParseResult<
|
|
345
|
+
): SafeParseResult<ListEntityRefundSource, SDKValidationError> {
|
|
371
346
|
return safeParse(
|
|
372
347
|
jsonString,
|
|
373
|
-
(x) =>
|
|
374
|
-
`Failed to parse '
|
|
348
|
+
(x) => ListEntityRefundSource$inboundSchema.parse(JSON.parse(x)),
|
|
349
|
+
`Failed to parse 'ListEntityRefundSource' from JSON`,
|
|
375
350
|
);
|
|
376
351
|
}
|
|
377
352
|
|
|
378
353
|
/** @internal */
|
|
379
|
-
export const
|
|
380
|
-
|
|
354
|
+
export const ListEntityRefundRoutingReversal$inboundSchema: z.ZodType<
|
|
355
|
+
ListEntityRefundRoutingReversal,
|
|
381
356
|
z.ZodTypeDef,
|
|
382
357
|
unknown
|
|
383
358
|
> = z.object({
|
|
384
359
|
amount: Amount$inboundSchema.optional(),
|
|
385
|
-
source: z.lazy(() =>
|
|
360
|
+
source: z.lazy(() => ListEntityRefundSource$inboundSchema).optional(),
|
|
386
361
|
});
|
|
387
362
|
/** @internal */
|
|
388
|
-
export type
|
|
363
|
+
export type ListEntityRefundRoutingReversal$Outbound = {
|
|
389
364
|
amount?: Amount$Outbound | undefined;
|
|
390
|
-
source?:
|
|
365
|
+
source?: ListEntityRefundSource$Outbound | undefined;
|
|
391
366
|
};
|
|
392
367
|
|
|
393
368
|
/** @internal */
|
|
394
|
-
export const
|
|
395
|
-
|
|
369
|
+
export const ListEntityRefundRoutingReversal$outboundSchema: z.ZodType<
|
|
370
|
+
ListEntityRefundRoutingReversal$Outbound,
|
|
396
371
|
z.ZodTypeDef,
|
|
397
|
-
|
|
372
|
+
ListEntityRefundRoutingReversal
|
|
398
373
|
> = z.object({
|
|
399
374
|
amount: Amount$outboundSchema.optional(),
|
|
400
|
-
source: z.lazy(() =>
|
|
401
|
-
.optional(),
|
|
375
|
+
source: z.lazy(() => ListEntityRefundSource$outboundSchema).optional(),
|
|
402
376
|
});
|
|
403
377
|
|
|
404
|
-
export function
|
|
405
|
-
|
|
406
|
-
ListEntityRefundResponseRoutingReversal,
|
|
378
|
+
export function listEntityRefundRoutingReversalToJSON(
|
|
379
|
+
listEntityRefundRoutingReversal: ListEntityRefundRoutingReversal,
|
|
407
380
|
): string {
|
|
408
381
|
return JSON.stringify(
|
|
409
|
-
|
|
410
|
-
|
|
382
|
+
ListEntityRefundRoutingReversal$outboundSchema.parse(
|
|
383
|
+
listEntityRefundRoutingReversal,
|
|
411
384
|
),
|
|
412
385
|
);
|
|
413
386
|
}
|
|
414
|
-
export function
|
|
387
|
+
export function listEntityRefundRoutingReversalFromJSON(
|
|
415
388
|
jsonString: string,
|
|
416
|
-
): SafeParseResult<
|
|
417
|
-
ListEntityRefundResponseRoutingReversal,
|
|
418
|
-
SDKValidationError
|
|
419
|
-
> {
|
|
389
|
+
): SafeParseResult<ListEntityRefundRoutingReversal, SDKValidationError> {
|
|
420
390
|
return safeParse(
|
|
421
391
|
jsonString,
|
|
422
|
-
(x) =>
|
|
423
|
-
|
|
424
|
-
JSON.parse(x),
|
|
425
|
-
),
|
|
426
|
-
`Failed to parse 'ListEntityRefundResponseRoutingReversal' from JSON`,
|
|
392
|
+
(x) => ListEntityRefundRoutingReversal$inboundSchema.parse(JSON.parse(x)),
|
|
393
|
+
`Failed to parse 'ListEntityRefundRoutingReversal' from JSON`,
|
|
427
394
|
);
|
|
428
395
|
}
|
|
429
396
|
|
|
430
397
|
/** @internal */
|
|
431
|
-
export const
|
|
432
|
-
|
|
398
|
+
export const ListEntityRefundLinks$inboundSchema: z.ZodType<
|
|
399
|
+
ListEntityRefundLinks,
|
|
433
400
|
z.ZodTypeDef,
|
|
434
401
|
unknown
|
|
435
402
|
> = z.object({
|
|
@@ -438,45 +405,43 @@ export const ListEntityRefundResponseLinks$inboundSchema: z.ZodType<
|
|
|
438
405
|
settlement: z.nullable(UrlNullable$inboundSchema).optional(),
|
|
439
406
|
});
|
|
440
407
|
/** @internal */
|
|
441
|
-
export type
|
|
408
|
+
export type ListEntityRefundLinks$Outbound = {
|
|
442
409
|
self: Url$Outbound;
|
|
443
410
|
payment: Url$Outbound;
|
|
444
411
|
settlement?: UrlNullable$Outbound | null | undefined;
|
|
445
412
|
};
|
|
446
413
|
|
|
447
414
|
/** @internal */
|
|
448
|
-
export const
|
|
449
|
-
|
|
415
|
+
export const ListEntityRefundLinks$outboundSchema: z.ZodType<
|
|
416
|
+
ListEntityRefundLinks$Outbound,
|
|
450
417
|
z.ZodTypeDef,
|
|
451
|
-
|
|
418
|
+
ListEntityRefundLinks
|
|
452
419
|
> = z.object({
|
|
453
420
|
self: Url$outboundSchema,
|
|
454
421
|
payment: Url$outboundSchema,
|
|
455
422
|
settlement: z.nullable(UrlNullable$outboundSchema).optional(),
|
|
456
423
|
});
|
|
457
424
|
|
|
458
|
-
export function
|
|
459
|
-
|
|
425
|
+
export function listEntityRefundLinksToJSON(
|
|
426
|
+
listEntityRefundLinks: ListEntityRefundLinks,
|
|
460
427
|
): string {
|
|
461
428
|
return JSON.stringify(
|
|
462
|
-
|
|
463
|
-
listEntityRefundResponseLinks,
|
|
464
|
-
),
|
|
429
|
+
ListEntityRefundLinks$outboundSchema.parse(listEntityRefundLinks),
|
|
465
430
|
);
|
|
466
431
|
}
|
|
467
|
-
export function
|
|
432
|
+
export function listEntityRefundLinksFromJSON(
|
|
468
433
|
jsonString: string,
|
|
469
|
-
): SafeParseResult<
|
|
434
|
+
): SafeParseResult<ListEntityRefundLinks, SDKValidationError> {
|
|
470
435
|
return safeParse(
|
|
471
436
|
jsonString,
|
|
472
|
-
(x) =>
|
|
473
|
-
`Failed to parse '
|
|
437
|
+
(x) => ListEntityRefundLinks$inboundSchema.parse(JSON.parse(x)),
|
|
438
|
+
`Failed to parse 'ListEntityRefundLinks' from JSON`,
|
|
474
439
|
);
|
|
475
440
|
}
|
|
476
441
|
|
|
477
442
|
/** @internal */
|
|
478
|
-
export const
|
|
479
|
-
|
|
443
|
+
export const ListEntityRefund$inboundSchema: z.ZodType<
|
|
444
|
+
ListEntityRefund,
|
|
480
445
|
z.ZodTypeDef,
|
|
481
446
|
unknown
|
|
482
447
|
> = z.object({
|
|
@@ -486,36 +451,34 @@ export const ListEntityRefundResponse$inboundSchema: z.ZodType<
|
|
|
486
451
|
description: z.string(),
|
|
487
452
|
amount: Amount$inboundSchema,
|
|
488
453
|
settlementAmount: z.nullable(
|
|
489
|
-
z.lazy(() =>
|
|
454
|
+
z.lazy(() => ListEntityRefundSettlementAmount$inboundSchema),
|
|
490
455
|
).optional(),
|
|
491
456
|
metadata: z.nullable(Metadata$inboundSchema),
|
|
492
457
|
paymentId: z.string().optional(),
|
|
493
458
|
settlementId: z.nullable(z.string()).optional(),
|
|
494
|
-
status:
|
|
459
|
+
status: ListEntityRefundStatus$inboundSchema,
|
|
495
460
|
createdAt: z.string(),
|
|
496
461
|
externalReference: z.lazy(() =>
|
|
497
|
-
|
|
462
|
+
ListEntityRefundExternalReference$inboundSchema
|
|
498
463
|
).optional(),
|
|
499
464
|
routingReversals: z.nullable(
|
|
500
|
-
z.array(
|
|
501
|
-
z.lazy(() => ListEntityRefundResponseRoutingReversal$inboundSchema),
|
|
502
|
-
),
|
|
465
|
+
z.array(z.lazy(() => ListEntityRefundRoutingReversal$inboundSchema)),
|
|
503
466
|
).optional(),
|
|
504
|
-
_links: z.lazy(() =>
|
|
467
|
+
_links: z.lazy(() => ListEntityRefundLinks$inboundSchema),
|
|
505
468
|
}).transform((v) => {
|
|
506
469
|
return remap$(v, {
|
|
507
470
|
"_links": "links",
|
|
508
471
|
});
|
|
509
472
|
});
|
|
510
473
|
/** @internal */
|
|
511
|
-
export type
|
|
474
|
+
export type ListEntityRefund$Outbound = {
|
|
512
475
|
resource: string;
|
|
513
476
|
id: string;
|
|
514
477
|
mode: string;
|
|
515
478
|
description: string;
|
|
516
479
|
amount: Amount$Outbound;
|
|
517
480
|
settlementAmount?:
|
|
518
|
-
|
|
|
481
|
+
| ListEntityRefundSettlementAmount$Outbound
|
|
519
482
|
| null
|
|
520
483
|
| undefined;
|
|
521
484
|
metadata: Metadata$Outbound | null;
|
|
@@ -523,21 +486,19 @@ export type ListEntityRefundResponse$Outbound = {
|
|
|
523
486
|
settlementId?: string | null | undefined;
|
|
524
487
|
status: string;
|
|
525
488
|
createdAt: string;
|
|
526
|
-
externalReference?:
|
|
527
|
-
| ListEntityRefundResponseExternalReference$Outbound
|
|
528
|
-
| undefined;
|
|
489
|
+
externalReference?: ListEntityRefundExternalReference$Outbound | undefined;
|
|
529
490
|
routingReversals?:
|
|
530
|
-
| Array<
|
|
491
|
+
| Array<ListEntityRefundRoutingReversal$Outbound>
|
|
531
492
|
| null
|
|
532
493
|
| undefined;
|
|
533
|
-
_links:
|
|
494
|
+
_links: ListEntityRefundLinks$Outbound;
|
|
534
495
|
};
|
|
535
496
|
|
|
536
497
|
/** @internal */
|
|
537
|
-
export const
|
|
538
|
-
|
|
498
|
+
export const ListEntityRefund$outboundSchema: z.ZodType<
|
|
499
|
+
ListEntityRefund$Outbound,
|
|
539
500
|
z.ZodTypeDef,
|
|
540
|
-
|
|
501
|
+
ListEntityRefund
|
|
541
502
|
> = z.object({
|
|
542
503
|
resource: z.string(),
|
|
543
504
|
id: z.string(),
|
|
@@ -545,41 +506,39 @@ export const ListEntityRefundResponse$outboundSchema: z.ZodType<
|
|
|
545
506
|
description: z.string(),
|
|
546
507
|
amount: Amount$outboundSchema,
|
|
547
508
|
settlementAmount: z.nullable(
|
|
548
|
-
z.lazy(() =>
|
|
509
|
+
z.lazy(() => ListEntityRefundSettlementAmount$outboundSchema),
|
|
549
510
|
).optional(),
|
|
550
511
|
metadata: z.nullable(Metadata$outboundSchema),
|
|
551
512
|
paymentId: z.string().optional(),
|
|
552
513
|
settlementId: z.nullable(z.string()).optional(),
|
|
553
|
-
status:
|
|
514
|
+
status: ListEntityRefundStatus$outboundSchema,
|
|
554
515
|
createdAt: z.string(),
|
|
555
516
|
externalReference: z.lazy(() =>
|
|
556
|
-
|
|
517
|
+
ListEntityRefundExternalReference$outboundSchema
|
|
557
518
|
).optional(),
|
|
558
519
|
routingReversals: z.nullable(
|
|
559
|
-
z.array(
|
|
560
|
-
z.lazy(() => ListEntityRefundResponseRoutingReversal$outboundSchema),
|
|
561
|
-
),
|
|
520
|
+
z.array(z.lazy(() => ListEntityRefundRoutingReversal$outboundSchema)),
|
|
562
521
|
).optional(),
|
|
563
|
-
links: z.lazy(() =>
|
|
522
|
+
links: z.lazy(() => ListEntityRefundLinks$outboundSchema),
|
|
564
523
|
}).transform((v) => {
|
|
565
524
|
return remap$(v, {
|
|
566
525
|
links: "_links",
|
|
567
526
|
});
|
|
568
527
|
});
|
|
569
528
|
|
|
570
|
-
export function
|
|
571
|
-
|
|
529
|
+
export function listEntityRefundToJSON(
|
|
530
|
+
listEntityRefund: ListEntityRefund,
|
|
572
531
|
): string {
|
|
573
532
|
return JSON.stringify(
|
|
574
|
-
|
|
533
|
+
ListEntityRefund$outboundSchema.parse(listEntityRefund),
|
|
575
534
|
);
|
|
576
535
|
}
|
|
577
|
-
export function
|
|
536
|
+
export function listEntityRefundFromJSON(
|
|
578
537
|
jsonString: string,
|
|
579
|
-
): SafeParseResult<
|
|
538
|
+
): SafeParseResult<ListEntityRefund, SDKValidationError> {
|
|
580
539
|
return safeParse(
|
|
581
540
|
jsonString,
|
|
582
|
-
(x) =>
|
|
583
|
-
`Failed to parse '
|
|
541
|
+
(x) => ListEntityRefund$inboundSchema.parse(JSON.parse(x)),
|
|
542
|
+
`Failed to parse 'ListEntityRefund' from JSON`,
|
|
584
543
|
);
|
|
585
544
|
}
|
|
@@ -65,7 +65,7 @@ export type GetPaymentLinkPaymentsEmbedded = {
|
|
|
65
65
|
/**
|
|
66
66
|
* An array of payment objects.
|
|
67
67
|
*/
|
|
68
|
-
payments?: Array<models.
|
|
68
|
+
payments?: Array<models.ListPaymentResponse> | undefined;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -200,11 +200,11 @@ export const GetPaymentLinkPaymentsEmbedded$inboundSchema: z.ZodType<
|
|
|
200
200
|
z.ZodTypeDef,
|
|
201
201
|
unknown
|
|
202
202
|
> = z.object({
|
|
203
|
-
payments: z.array(models.
|
|
203
|
+
payments: z.array(models.ListPaymentResponse$inboundSchema).optional(),
|
|
204
204
|
});
|
|
205
205
|
/** @internal */
|
|
206
206
|
export type GetPaymentLinkPaymentsEmbedded$Outbound = {
|
|
207
|
-
payments?: Array<models.
|
|
207
|
+
payments?: Array<models.ListPaymentResponse$Outbound> | undefined;
|
|
208
208
|
};
|
|
209
209
|
|
|
210
210
|
/** @internal */
|
|
@@ -213,7 +213,7 @@ export const GetPaymentLinkPaymentsEmbedded$outboundSchema: z.ZodType<
|
|
|
213
213
|
z.ZodTypeDef,
|
|
214
214
|
GetPaymentLinkPaymentsEmbedded
|
|
215
215
|
> = z.object({
|
|
216
|
-
payments: z.array(models.
|
|
216
|
+
payments: z.array(models.ListPaymentResponse$outboundSchema).optional(),
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
export function getPaymentLinkPaymentsEmbeddedToJSON(
|
|
@@ -91,7 +91,7 @@ export type ListAllChargebacksEmbedded = {
|
|
|
91
91
|
/**
|
|
92
92
|
* A list of chargeback objects.
|
|
93
93
|
*/
|
|
94
|
-
chargebacks: Array<models.
|
|
94
|
+
chargebacks: Array<models.ListEntityChargeback>;
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -228,11 +228,11 @@ export const ListAllChargebacksEmbedded$inboundSchema: z.ZodType<
|
|
|
228
228
|
z.ZodTypeDef,
|
|
229
229
|
unknown
|
|
230
230
|
> = z.object({
|
|
231
|
-
chargebacks: z.array(models.
|
|
231
|
+
chargebacks: z.array(models.ListEntityChargeback$inboundSchema),
|
|
232
232
|
});
|
|
233
233
|
/** @internal */
|
|
234
234
|
export type ListAllChargebacksEmbedded$Outbound = {
|
|
235
|
-
chargebacks: Array<models.
|
|
235
|
+
chargebacks: Array<models.ListEntityChargeback$Outbound>;
|
|
236
236
|
};
|
|
237
237
|
|
|
238
238
|
/** @internal */
|
|
@@ -241,7 +241,7 @@ export const ListAllChargebacksEmbedded$outboundSchema: z.ZodType<
|
|
|
241
241
|
z.ZodTypeDef,
|
|
242
242
|
ListAllChargebacksEmbedded
|
|
243
243
|
> = z.object({
|
|
244
|
-
chargebacks: z.array(models.
|
|
244
|
+
chargebacks: z.array(models.ListEntityChargeback$outboundSchema),
|
|
245
245
|
});
|
|
246
246
|
|
|
247
247
|
export function listAllChargebacksEmbeddedToJSON(
|
|
@@ -88,7 +88,7 @@ export type ListAllRefundsEmbedded = {
|
|
|
88
88
|
/**
|
|
89
89
|
* An array of refund objects.
|
|
90
90
|
*/
|
|
91
|
-
refunds: Array<models.
|
|
91
|
+
refunds: Array<models.ListEntityRefund>;
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
/**
|
|
@@ -225,11 +225,11 @@ export const ListAllRefundsEmbedded$inboundSchema: z.ZodType<
|
|
|
225
225
|
z.ZodTypeDef,
|
|
226
226
|
unknown
|
|
227
227
|
> = z.object({
|
|
228
|
-
refunds: z.array(models.
|
|
228
|
+
refunds: z.array(models.ListEntityRefund$inboundSchema),
|
|
229
229
|
});
|
|
230
230
|
/** @internal */
|
|
231
231
|
export type ListAllRefundsEmbedded$Outbound = {
|
|
232
|
-
refunds: Array<models.
|
|
232
|
+
refunds: Array<models.ListEntityRefund$Outbound>;
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
/** @internal */
|
|
@@ -238,7 +238,7 @@ export const ListAllRefundsEmbedded$outboundSchema: z.ZodType<
|
|
|
238
238
|
z.ZodTypeDef,
|
|
239
239
|
ListAllRefundsEmbedded
|
|
240
240
|
> = z.object({
|
|
241
|
-
refunds: z.array(models.
|
|
241
|
+
refunds: z.array(models.ListEntityRefund$outboundSchema),
|
|
242
242
|
});
|
|
243
243
|
|
|
244
244
|
export function listAllRefundsEmbeddedToJSON(
|