mollie-api-typescript 0.0.5 → 0.0.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 +3 -2
- package/bin/mcp-server.js +676 -1258
- package/bin/mcp-server.js.map +28 -28
- package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
- package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
- package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +22 -24
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createmandate.js +26 -28
- package/dist/commonjs/models/operations/createmandate.js.map +1 -1
- package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
- package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createrefund.js +8 -10
- package/dist/commonjs/models/operations/createrefund.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +44 -53
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +28 -30
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmandate.js +26 -27
- package/dist/commonjs/models/operations/getmandate.js.map +1 -1
- package/dist/commonjs/models/operations/getrefund.d.ts +7 -7
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +8 -8
- package/dist/commonjs/models/operations/getrefund.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +40 -48
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +8 -10
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +22 -22
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
- package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmandates.js +26 -26
- package/dist/commonjs/models/operations/listmandates.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +7 -7
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +8 -10
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -8
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
- package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
- package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +22 -24
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +40 -50
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js +5 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +2 -5
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
- package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/errors/listallsubscriptions.js +77 -12
- package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +40 -48
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +22 -22
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +22 -24
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createmandate.d.ts +26 -26
- package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/createmandate.js +26 -28
- package/dist/esm/models/operations/createmandate.js.map +1 -1
- package/dist/esm/models/operations/createrefund.d.ts +7 -7
- package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/createrefund.js +8 -10
- package/dist/esm/models/operations/createrefund.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +44 -44
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +44 -53
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +28 -28
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +28 -30
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getmandate.d.ts +26 -26
- package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/getmandate.js +26 -27
- package/dist/esm/models/operations/getmandate.js.map +1 -1
- package/dist/esm/models/operations/getrefund.d.ts +7 -7
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +8 -8
- package/dist/esm/models/operations/getrefund.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +40 -40
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +40 -48
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +8 -10
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +22 -22
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +22 -22
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listmandates.d.ts +26 -26
- package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
- package/dist/esm/models/operations/listmandates.js +26 -26
- package/dist/esm/models/operations/listmandates.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +7 -7
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +8 -10
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +8 -8
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +83 -89
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.js +2 -0
- package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.js +2 -0
- package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +22 -24
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +40 -50
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/docs/sdks/delayedrouting/README.md +4 -0
- package/docs/sdks/subscriptions/README.md +5 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/delayedRoutingList.ts +6 -1
- package/src/funcs/subscriptionsAll.ts +17 -8
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/listallsubscriptions.ts +173 -23
- package/src/models/operations/cancelsubscription.ts +80 -98
- package/src/models/operations/createcustomer.ts +45 -53
- package/src/models/operations/createmandate.ts +52 -54
- package/src/models/operations/createrefund.ts +15 -17
- package/src/models/operations/createsubscription.ts +89 -104
- package/src/models/operations/getcustomer.ts +56 -63
- package/src/models/operations/getmandate.ts +52 -53
- package/src/models/operations/getrefund.ts +15 -15
- package/src/models/operations/getsubscription.ts +80 -98
- package/src/models/operations/listallrefunds.ts +17 -25
- package/src/models/operations/listallsubscriptions.ts +894 -4395
- package/src/models/operations/listcustomers.ts +44 -49
- package/src/models/operations/listmandates.ts +52 -52
- package/src/models/operations/listrefunds.ts +15 -17
- package/src/models/operations/listsettlementrefunds.ts +15 -15
- package/src/models/operations/listsubscriptions.ts +181 -176
- package/src/models/operations/paymentcreateroute.ts +13 -0
- package/src/models/operations/paymentlistroutes.ts +13 -0
- package/src/models/operations/updatecustomer.ts +45 -53
- package/src/models/operations/updatesubscription.ts +81 -97
|
@@ -284,15 +284,15 @@ export type CreateMandateLinks = {
|
|
|
284
284
|
/**
|
|
285
285
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
286
286
|
*/
|
|
287
|
-
self
|
|
287
|
+
self: CreateMandateSelf;
|
|
288
288
|
/**
|
|
289
289
|
* The API resource URL of the [customer](get-customer) that this mandate belongs to.
|
|
290
290
|
*/
|
|
291
|
-
customer
|
|
291
|
+
customer: CreateMandateCustomer;
|
|
292
292
|
/**
|
|
293
293
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
294
294
|
*/
|
|
295
|
-
documentation
|
|
295
|
+
documentation: CreateMandateDocumentation;
|
|
296
296
|
};
|
|
297
297
|
|
|
298
298
|
/**
|
|
@@ -306,11 +306,11 @@ export type CreateMandateResponse = {
|
|
|
306
306
|
/**
|
|
307
307
|
* The identifier uniquely referring to this mandate. Example: `mdt_pWUnw6pkBN`.
|
|
308
308
|
*/
|
|
309
|
-
id
|
|
309
|
+
id: string;
|
|
310
310
|
/**
|
|
311
311
|
* Whether this entity was created in live mode or in test mode.
|
|
312
312
|
*/
|
|
313
|
-
mode
|
|
313
|
+
mode: CreateMandateMode;
|
|
314
314
|
/**
|
|
315
315
|
* Payment method of the mandate.
|
|
316
316
|
*
|
|
@@ -318,38 +318,38 @@ export type CreateMandateResponse = {
|
|
|
318
318
|
*
|
|
319
319
|
* SEPA Direct Debit and PayPal mandates can be created directly.
|
|
320
320
|
*/
|
|
321
|
-
method
|
|
322
|
-
details
|
|
321
|
+
method: CreateMandateMethodResponse;
|
|
322
|
+
details: CreateMandateDetails;
|
|
323
323
|
/**
|
|
324
324
|
* The date when the mandate was signed in `YYYY-MM-DD` format.
|
|
325
325
|
*/
|
|
326
|
-
signatureDate
|
|
326
|
+
signatureDate: string | null;
|
|
327
327
|
/**
|
|
328
328
|
* A custom mandate reference. For SEPA Direct Debit, it is vital to provide a unique reference. Some banks will
|
|
329
329
|
*
|
|
330
330
|
* @remarks
|
|
331
331
|
* decline Direct Debit payments if the mandate reference is not unique.
|
|
332
332
|
*/
|
|
333
|
-
mandateReference
|
|
333
|
+
mandateReference: string | null;
|
|
334
334
|
/**
|
|
335
335
|
* The status of the mandate. A status can be `pending` for mandates when the first payment is not yet finalized, or
|
|
336
336
|
*
|
|
337
337
|
* @remarks
|
|
338
338
|
* when we did not received the IBAN yet from the first payment.
|
|
339
339
|
*/
|
|
340
|
-
status
|
|
340
|
+
status: CreateMandateStatus;
|
|
341
341
|
/**
|
|
342
342
|
* The identifier referring to the [customer](get-customer) this mandate was linked to.
|
|
343
343
|
*/
|
|
344
|
-
customerId
|
|
344
|
+
customerId: string;
|
|
345
345
|
/**
|
|
346
346
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
347
347
|
*/
|
|
348
|
-
createdAt
|
|
348
|
+
createdAt: string;
|
|
349
349
|
/**
|
|
350
350
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
351
351
|
*/
|
|
352
|
-
links
|
|
352
|
+
links: CreateMandateLinks;
|
|
353
353
|
};
|
|
354
354
|
|
|
355
355
|
/** @internal */
|
|
@@ -975,17 +975,16 @@ export const CreateMandateLinks$inboundSchema: z.ZodType<
|
|
|
975
975
|
z.ZodTypeDef,
|
|
976
976
|
unknown
|
|
977
977
|
> = z.object({
|
|
978
|
-
self: z.lazy(() => CreateMandateSelf$inboundSchema)
|
|
979
|
-
customer: z.lazy(() => CreateMandateCustomer$inboundSchema)
|
|
980
|
-
documentation: z.lazy(() => CreateMandateDocumentation$inboundSchema)
|
|
981
|
-
.optional(),
|
|
978
|
+
self: z.lazy(() => CreateMandateSelf$inboundSchema),
|
|
979
|
+
customer: z.lazy(() => CreateMandateCustomer$inboundSchema),
|
|
980
|
+
documentation: z.lazy(() => CreateMandateDocumentation$inboundSchema),
|
|
982
981
|
});
|
|
983
982
|
|
|
984
983
|
/** @internal */
|
|
985
984
|
export type CreateMandateLinks$Outbound = {
|
|
986
|
-
self
|
|
987
|
-
customer
|
|
988
|
-
documentation
|
|
985
|
+
self: CreateMandateSelf$Outbound;
|
|
986
|
+
customer: CreateMandateCustomer$Outbound;
|
|
987
|
+
documentation: CreateMandateDocumentation$Outbound;
|
|
989
988
|
};
|
|
990
989
|
|
|
991
990
|
/** @internal */
|
|
@@ -994,10 +993,9 @@ export const CreateMandateLinks$outboundSchema: z.ZodType<
|
|
|
994
993
|
z.ZodTypeDef,
|
|
995
994
|
CreateMandateLinks
|
|
996
995
|
> = z.object({
|
|
997
|
-
self: z.lazy(() => CreateMandateSelf$outboundSchema)
|
|
998
|
-
customer: z.lazy(() => CreateMandateCustomer$outboundSchema)
|
|
999
|
-
documentation: z.lazy(() => CreateMandateDocumentation$outboundSchema)
|
|
1000
|
-
.optional(),
|
|
996
|
+
self: z.lazy(() => CreateMandateSelf$outboundSchema),
|
|
997
|
+
customer: z.lazy(() => CreateMandateCustomer$outboundSchema),
|
|
998
|
+
documentation: z.lazy(() => CreateMandateDocumentation$outboundSchema),
|
|
1001
999
|
});
|
|
1002
1000
|
|
|
1003
1001
|
/**
|
|
@@ -1038,16 +1036,16 @@ export const CreateMandateResponse$inboundSchema: z.ZodType<
|
|
|
1038
1036
|
unknown
|
|
1039
1037
|
> = z.object({
|
|
1040
1038
|
resource: z.string().default("mandate"),
|
|
1041
|
-
id: z.string()
|
|
1042
|
-
mode: CreateMandateMode$inboundSchema
|
|
1043
|
-
method: CreateMandateMethodResponse$inboundSchema
|
|
1044
|
-
details: z.lazy(() => CreateMandateDetails$inboundSchema)
|
|
1045
|
-
signatureDate: z.nullable(z.string())
|
|
1046
|
-
mandateReference: z.nullable(z.string())
|
|
1047
|
-
status: CreateMandateStatus$inboundSchema
|
|
1048
|
-
customerId: z.string()
|
|
1049
|
-
createdAt: z.string()
|
|
1050
|
-
_links: z.lazy(() => CreateMandateLinks$inboundSchema)
|
|
1039
|
+
id: z.string(),
|
|
1040
|
+
mode: CreateMandateMode$inboundSchema,
|
|
1041
|
+
method: CreateMandateMethodResponse$inboundSchema,
|
|
1042
|
+
details: z.lazy(() => CreateMandateDetails$inboundSchema),
|
|
1043
|
+
signatureDate: z.nullable(z.string()),
|
|
1044
|
+
mandateReference: z.nullable(z.string()),
|
|
1045
|
+
status: CreateMandateStatus$inboundSchema,
|
|
1046
|
+
customerId: z.string(),
|
|
1047
|
+
createdAt: z.string(),
|
|
1048
|
+
_links: z.lazy(() => CreateMandateLinks$inboundSchema),
|
|
1051
1049
|
}).transform((v) => {
|
|
1052
1050
|
return remap$(v, {
|
|
1053
1051
|
"_links": "links",
|
|
@@ -1057,16 +1055,16 @@ export const CreateMandateResponse$inboundSchema: z.ZodType<
|
|
|
1057
1055
|
/** @internal */
|
|
1058
1056
|
export type CreateMandateResponse$Outbound = {
|
|
1059
1057
|
resource: string;
|
|
1060
|
-
id
|
|
1061
|
-
mode
|
|
1062
|
-
method
|
|
1063
|
-
details
|
|
1064
|
-
signatureDate
|
|
1065
|
-
mandateReference
|
|
1066
|
-
status
|
|
1067
|
-
customerId
|
|
1068
|
-
createdAt
|
|
1069
|
-
_links
|
|
1058
|
+
id: string;
|
|
1059
|
+
mode: string;
|
|
1060
|
+
method: string;
|
|
1061
|
+
details: CreateMandateDetails$Outbound;
|
|
1062
|
+
signatureDate: string | null;
|
|
1063
|
+
mandateReference: string | null;
|
|
1064
|
+
status: string;
|
|
1065
|
+
customerId: string;
|
|
1066
|
+
createdAt: string;
|
|
1067
|
+
_links: CreateMandateLinks$Outbound;
|
|
1070
1068
|
};
|
|
1071
1069
|
|
|
1072
1070
|
/** @internal */
|
|
@@ -1076,16 +1074,16 @@ export const CreateMandateResponse$outboundSchema: z.ZodType<
|
|
|
1076
1074
|
CreateMandateResponse
|
|
1077
1075
|
> = z.object({
|
|
1078
1076
|
resource: z.string().default("mandate"),
|
|
1079
|
-
id: z.string()
|
|
1080
|
-
mode: CreateMandateMode$outboundSchema
|
|
1081
|
-
method: CreateMandateMethodResponse$outboundSchema
|
|
1082
|
-
details: z.lazy(() => CreateMandateDetails$outboundSchema)
|
|
1083
|
-
signatureDate: z.nullable(z.string())
|
|
1084
|
-
mandateReference: z.nullable(z.string())
|
|
1085
|
-
status: CreateMandateStatus$outboundSchema
|
|
1086
|
-
customerId: z.string()
|
|
1087
|
-
createdAt: z.string()
|
|
1088
|
-
links: z.lazy(() => CreateMandateLinks$outboundSchema)
|
|
1077
|
+
id: z.string(),
|
|
1078
|
+
mode: CreateMandateMode$outboundSchema,
|
|
1079
|
+
method: CreateMandateMethodResponse$outboundSchema,
|
|
1080
|
+
details: z.lazy(() => CreateMandateDetails$outboundSchema),
|
|
1081
|
+
signatureDate: z.nullable(z.string()),
|
|
1082
|
+
mandateReference: z.nullable(z.string()),
|
|
1083
|
+
status: CreateMandateStatus$outboundSchema,
|
|
1084
|
+
customerId: z.string(),
|
|
1085
|
+
createdAt: z.string(),
|
|
1086
|
+
links: z.lazy(() => CreateMandateLinks$outboundSchema),
|
|
1089
1087
|
}).transform((v) => {
|
|
1090
1088
|
return remap$(v, {
|
|
1091
1089
|
links: "_links",
|
|
@@ -449,11 +449,11 @@ export type CreateRefundLinks = {
|
|
|
449
449
|
/**
|
|
450
450
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
451
451
|
*/
|
|
452
|
-
self
|
|
452
|
+
self: CreateRefundSelf;
|
|
453
453
|
/**
|
|
454
454
|
* The API resource URL of the [payment](get-payment) that this refund belongs to.
|
|
455
455
|
*/
|
|
456
|
-
payment
|
|
456
|
+
payment: CreateRefundPayment;
|
|
457
457
|
/**
|
|
458
458
|
* The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
|
|
459
459
|
*
|
|
@@ -464,7 +464,7 @@ export type CreateRefundLinks = {
|
|
|
464
464
|
/**
|
|
465
465
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
466
466
|
*/
|
|
467
|
-
documentation
|
|
467
|
+
documentation: CreateRefundDocumentation;
|
|
468
468
|
};
|
|
469
469
|
|
|
470
470
|
/**
|
|
@@ -2297,20 +2297,19 @@ export const CreateRefundLinks$inboundSchema: z.ZodType<
|
|
|
2297
2297
|
z.ZodTypeDef,
|
|
2298
2298
|
unknown
|
|
2299
2299
|
> = z.object({
|
|
2300
|
-
self: z.lazy(() => CreateRefundSelf$inboundSchema)
|
|
2301
|
-
payment: z.lazy(() => CreateRefundPayment$inboundSchema)
|
|
2300
|
+
self: z.lazy(() => CreateRefundSelf$inboundSchema),
|
|
2301
|
+
payment: z.lazy(() => CreateRefundPayment$inboundSchema),
|
|
2302
2302
|
settlement: z.nullable(z.lazy(() => CreateRefundSettlement$inboundSchema))
|
|
2303
2303
|
.optional(),
|
|
2304
|
-
documentation: z.lazy(() => CreateRefundDocumentation$inboundSchema)
|
|
2305
|
-
.optional(),
|
|
2304
|
+
documentation: z.lazy(() => CreateRefundDocumentation$inboundSchema),
|
|
2306
2305
|
});
|
|
2307
2306
|
|
|
2308
2307
|
/** @internal */
|
|
2309
2308
|
export type CreateRefundLinks$Outbound = {
|
|
2310
|
-
self
|
|
2311
|
-
payment
|
|
2309
|
+
self: CreateRefundSelf$Outbound;
|
|
2310
|
+
payment: CreateRefundPayment$Outbound;
|
|
2312
2311
|
settlement?: CreateRefundSettlement$Outbound | null | undefined;
|
|
2313
|
-
documentation
|
|
2312
|
+
documentation: CreateRefundDocumentation$Outbound;
|
|
2314
2313
|
};
|
|
2315
2314
|
|
|
2316
2315
|
/** @internal */
|
|
@@ -2319,12 +2318,11 @@ export const CreateRefundLinks$outboundSchema: z.ZodType<
|
|
|
2319
2318
|
z.ZodTypeDef,
|
|
2320
2319
|
CreateRefundLinks
|
|
2321
2320
|
> = z.object({
|
|
2322
|
-
self: z.lazy(() => CreateRefundSelf$outboundSchema)
|
|
2323
|
-
payment: z.lazy(() => CreateRefundPayment$outboundSchema)
|
|
2321
|
+
self: z.lazy(() => CreateRefundSelf$outboundSchema),
|
|
2322
|
+
payment: z.lazy(() => CreateRefundPayment$outboundSchema),
|
|
2324
2323
|
settlement: z.nullable(z.lazy(() => CreateRefundSettlement$outboundSchema))
|
|
2325
2324
|
.optional(),
|
|
2326
|
-
documentation: z.lazy(() => CreateRefundDocumentation$outboundSchema)
|
|
2327
|
-
.optional(),
|
|
2325
|
+
documentation: z.lazy(() => CreateRefundDocumentation$outboundSchema),
|
|
2328
2326
|
});
|
|
2329
2327
|
|
|
2330
2328
|
/**
|
|
@@ -2364,7 +2362,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
|
|
|
2364
2362
|
z.ZodTypeDef,
|
|
2365
2363
|
unknown
|
|
2366
2364
|
> = z.object({
|
|
2367
|
-
resource: z.string().
|
|
2365
|
+
resource: z.string().optional(),
|
|
2368
2366
|
id: z.string().optional(),
|
|
2369
2367
|
mode: CreateRefundMode$inboundSchema.optional(),
|
|
2370
2368
|
description: z.string().optional(),
|
|
@@ -2398,7 +2396,7 @@ export const CreateRefundResponse$inboundSchema: z.ZodType<
|
|
|
2398
2396
|
|
|
2399
2397
|
/** @internal */
|
|
2400
2398
|
export type CreateRefundResponse$Outbound = {
|
|
2401
|
-
resource
|
|
2399
|
+
resource?: string | undefined;
|
|
2402
2400
|
id?: string | undefined;
|
|
2403
2401
|
mode?: string | undefined;
|
|
2404
2402
|
description?: string | undefined;
|
|
@@ -2430,7 +2428,7 @@ export const CreateRefundResponse$outboundSchema: z.ZodType<
|
|
|
2430
2428
|
z.ZodTypeDef,
|
|
2431
2429
|
CreateRefundResponse
|
|
2432
2430
|
> = z.object({
|
|
2433
|
-
resource: z.string().
|
|
2431
|
+
resource: z.string().optional(),
|
|
2434
2432
|
id: z.string().optional(),
|
|
2435
2433
|
mode: CreateRefundMode$outboundSchema.optional(),
|
|
2436
2434
|
description: z.string().optional(),
|