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
|
@@ -72,6 +72,16 @@ export type PaymentCreateRouteRequestBody = {
|
|
|
72
72
|
* The destination of the route.
|
|
73
73
|
*/
|
|
74
74
|
destination?: PaymentCreateRouteDestinationRequest | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to create the entity in test mode or live mode.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
*
|
|
80
|
+
* Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
|
|
81
|
+
* omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
|
|
82
|
+
* `testmode` to `true`.
|
|
83
|
+
*/
|
|
84
|
+
testmode?: boolean | null | undefined;
|
|
75
85
|
};
|
|
76
86
|
|
|
77
87
|
export type PaymentCreateRouteRequest = {
|
|
@@ -382,6 +392,7 @@ export const PaymentCreateRouteRequestBody$inboundSchema: z.ZodType<
|
|
|
382
392
|
description: z.string().optional(),
|
|
383
393
|
destination: z.lazy(() => PaymentCreateRouteDestinationRequest$inboundSchema)
|
|
384
394
|
.optional(),
|
|
395
|
+
testmode: z.nullable(z.boolean()).optional(),
|
|
385
396
|
});
|
|
386
397
|
|
|
387
398
|
/** @internal */
|
|
@@ -389,6 +400,7 @@ export type PaymentCreateRouteRequestBody$Outbound = {
|
|
|
389
400
|
amount?: PaymentCreateRouteAmountRequest$Outbound | undefined;
|
|
390
401
|
description?: string | undefined;
|
|
391
402
|
destination?: PaymentCreateRouteDestinationRequest$Outbound | undefined;
|
|
403
|
+
testmode?: boolean | null | undefined;
|
|
392
404
|
};
|
|
393
405
|
|
|
394
406
|
/** @internal */
|
|
@@ -402,6 +414,7 @@ export const PaymentCreateRouteRequestBody$outboundSchema: z.ZodType<
|
|
|
402
414
|
description: z.string().optional(),
|
|
403
415
|
destination: z.lazy(() => PaymentCreateRouteDestinationRequest$outboundSchema)
|
|
404
416
|
.optional(),
|
|
417
|
+
testmode: z.nullable(z.boolean()).optional(),
|
|
405
418
|
});
|
|
406
419
|
|
|
407
420
|
/**
|
|
@@ -14,6 +14,16 @@ export type PaymentListRoutesRequest = {
|
|
|
14
14
|
* Provide the ID of the related payment.
|
|
15
15
|
*/
|
|
16
16
|
paymentId: string;
|
|
17
|
+
/**
|
|
18
|
+
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
|
|
22
|
+
* setting the `testmode` query parameter to `true`.
|
|
23
|
+
*
|
|
24
|
+
* Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
|
|
25
|
+
*/
|
|
26
|
+
testmode?: boolean | null | undefined;
|
|
17
27
|
};
|
|
18
28
|
|
|
19
29
|
/**
|
|
@@ -239,11 +249,13 @@ export const PaymentListRoutesRequest$inboundSchema: z.ZodType<
|
|
|
239
249
|
unknown
|
|
240
250
|
> = z.object({
|
|
241
251
|
paymentId: z.string(),
|
|
252
|
+
testmode: z.nullable(z.boolean()).optional(),
|
|
242
253
|
});
|
|
243
254
|
|
|
244
255
|
/** @internal */
|
|
245
256
|
export type PaymentListRoutesRequest$Outbound = {
|
|
246
257
|
paymentId: string;
|
|
258
|
+
testmode?: boolean | null | undefined;
|
|
247
259
|
};
|
|
248
260
|
|
|
249
261
|
/** @internal */
|
|
@@ -253,6 +265,7 @@ export const PaymentListRoutesRequest$outboundSchema: z.ZodType<
|
|
|
253
265
|
PaymentListRoutesRequest
|
|
254
266
|
> = z.object({
|
|
255
267
|
paymentId: z.string(),
|
|
268
|
+
testmode: z.nullable(z.boolean()).optional(),
|
|
256
269
|
});
|
|
257
270
|
|
|
258
271
|
/**
|
|
@@ -290,11 +290,11 @@ export type UpdateCustomerLinks = {
|
|
|
290
290
|
/**
|
|
291
291
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
292
292
|
*/
|
|
293
|
-
self
|
|
293
|
+
self: UpdateCustomerSelf;
|
|
294
294
|
/**
|
|
295
295
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
296
296
|
*/
|
|
297
|
-
dashboard
|
|
297
|
+
dashboard: UpdateCustomerDashboard;
|
|
298
298
|
/**
|
|
299
299
|
* The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
|
|
300
300
|
*
|
|
@@ -319,7 +319,7 @@ export type UpdateCustomerLinks = {
|
|
|
319
319
|
/**
|
|
320
320
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
321
321
|
*/
|
|
322
|
-
documentation
|
|
322
|
+
documentation: UpdateCustomerDocumentation;
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
/**
|
|
@@ -333,46 +333,41 @@ export type UpdateCustomerResponse = {
|
|
|
333
333
|
/**
|
|
334
334
|
* The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
|
|
335
335
|
*/
|
|
336
|
-
id
|
|
336
|
+
id: string;
|
|
337
337
|
/**
|
|
338
338
|
* Whether this entity was created in live mode or in test mode.
|
|
339
339
|
*/
|
|
340
|
-
mode
|
|
340
|
+
mode: UpdateCustomerMode;
|
|
341
341
|
/**
|
|
342
342
|
* The full name of the customer.
|
|
343
343
|
*/
|
|
344
|
-
name
|
|
344
|
+
name: string | null;
|
|
345
345
|
/**
|
|
346
346
|
* The email address of the customer.
|
|
347
347
|
*/
|
|
348
|
-
email
|
|
348
|
+
email: string | null;
|
|
349
349
|
/**
|
|
350
350
|
* Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
|
|
351
351
|
*
|
|
352
352
|
* @remarks
|
|
353
353
|
* absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
|
|
354
354
|
*/
|
|
355
|
-
locale
|
|
355
|
+
locale: UpdateCustomerLocaleResponse | null;
|
|
356
356
|
/**
|
|
357
357
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
358
358
|
*
|
|
359
359
|
* @remarks
|
|
360
360
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
361
361
|
*/
|
|
362
|
-
metadata
|
|
363
|
-
| UpdateCustomerMetadataResponse
|
|
364
|
-
| string
|
|
365
|
-
| Array<string>
|
|
366
|
-
| null
|
|
367
|
-
| undefined;
|
|
362
|
+
metadata: UpdateCustomerMetadataResponse | string | Array<string> | null;
|
|
368
363
|
/**
|
|
369
364
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
370
365
|
*/
|
|
371
|
-
createdAt
|
|
366
|
+
createdAt: string;
|
|
372
367
|
/**
|
|
373
368
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
374
369
|
*/
|
|
375
|
-
links
|
|
370
|
+
links: UpdateCustomerLinks;
|
|
376
371
|
};
|
|
377
372
|
|
|
378
373
|
/** @internal */
|
|
@@ -1288,8 +1283,8 @@ export const UpdateCustomerLinks$inboundSchema: z.ZodType<
|
|
|
1288
1283
|
z.ZodTypeDef,
|
|
1289
1284
|
unknown
|
|
1290
1285
|
> = z.object({
|
|
1291
|
-
self: z.lazy(() => UpdateCustomerSelf$inboundSchema)
|
|
1292
|
-
dashboard: z.lazy(() => UpdateCustomerDashboard$inboundSchema)
|
|
1286
|
+
self: z.lazy(() => UpdateCustomerSelf$inboundSchema),
|
|
1287
|
+
dashboard: z.lazy(() => UpdateCustomerDashboard$inboundSchema),
|
|
1293
1288
|
payments: z.nullable(z.lazy(() => UpdateCustomerPayments$inboundSchema))
|
|
1294
1289
|
.optional(),
|
|
1295
1290
|
mandates: z.nullable(z.lazy(() => UpdateCustomerMandates$inboundSchema))
|
|
@@ -1297,18 +1292,17 @@ export const UpdateCustomerLinks$inboundSchema: z.ZodType<
|
|
|
1297
1292
|
subscriptions: z.nullable(
|
|
1298
1293
|
z.lazy(() => UpdateCustomerSubscriptions$inboundSchema),
|
|
1299
1294
|
).optional(),
|
|
1300
|
-
documentation: z.lazy(() => UpdateCustomerDocumentation$inboundSchema)
|
|
1301
|
-
.optional(),
|
|
1295
|
+
documentation: z.lazy(() => UpdateCustomerDocumentation$inboundSchema),
|
|
1302
1296
|
});
|
|
1303
1297
|
|
|
1304
1298
|
/** @internal */
|
|
1305
1299
|
export type UpdateCustomerLinks$Outbound = {
|
|
1306
|
-
self
|
|
1307
|
-
dashboard
|
|
1300
|
+
self: UpdateCustomerSelf$Outbound;
|
|
1301
|
+
dashboard: UpdateCustomerDashboard$Outbound;
|
|
1308
1302
|
payments?: UpdateCustomerPayments$Outbound | null | undefined;
|
|
1309
1303
|
mandates?: UpdateCustomerMandates$Outbound | null | undefined;
|
|
1310
1304
|
subscriptions?: UpdateCustomerSubscriptions$Outbound | null | undefined;
|
|
1311
|
-
documentation
|
|
1305
|
+
documentation: UpdateCustomerDocumentation$Outbound;
|
|
1312
1306
|
};
|
|
1313
1307
|
|
|
1314
1308
|
/** @internal */
|
|
@@ -1317,8 +1311,8 @@ export const UpdateCustomerLinks$outboundSchema: z.ZodType<
|
|
|
1317
1311
|
z.ZodTypeDef,
|
|
1318
1312
|
UpdateCustomerLinks
|
|
1319
1313
|
> = z.object({
|
|
1320
|
-
self: z.lazy(() => UpdateCustomerSelf$outboundSchema)
|
|
1321
|
-
dashboard: z.lazy(() => UpdateCustomerDashboard$outboundSchema)
|
|
1314
|
+
self: z.lazy(() => UpdateCustomerSelf$outboundSchema),
|
|
1315
|
+
dashboard: z.lazy(() => UpdateCustomerDashboard$outboundSchema),
|
|
1322
1316
|
payments: z.nullable(z.lazy(() => UpdateCustomerPayments$outboundSchema))
|
|
1323
1317
|
.optional(),
|
|
1324
1318
|
mandates: z.nullable(z.lazy(() => UpdateCustomerMandates$outboundSchema))
|
|
@@ -1326,8 +1320,7 @@ export const UpdateCustomerLinks$outboundSchema: z.ZodType<
|
|
|
1326
1320
|
subscriptions: z.nullable(
|
|
1327
1321
|
z.lazy(() => UpdateCustomerSubscriptions$outboundSchema),
|
|
1328
1322
|
).optional(),
|
|
1329
|
-
documentation: z.lazy(() => UpdateCustomerDocumentation$outboundSchema)
|
|
1330
|
-
.optional(),
|
|
1323
|
+
documentation: z.lazy(() => UpdateCustomerDocumentation$outboundSchema),
|
|
1331
1324
|
});
|
|
1332
1325
|
|
|
1333
1326
|
/**
|
|
@@ -1368,20 +1361,20 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1368
1361
|
unknown
|
|
1369
1362
|
> = z.object({
|
|
1370
1363
|
resource: z.string().default("customer"),
|
|
1371
|
-
id: z.string()
|
|
1372
|
-
mode: UpdateCustomerMode$inboundSchema
|
|
1373
|
-
name: z.nullable(z.string())
|
|
1374
|
-
email: z.nullable(z.string())
|
|
1375
|
-
locale: z.nullable(UpdateCustomerLocaleResponse$inboundSchema)
|
|
1364
|
+
id: z.string(),
|
|
1365
|
+
mode: UpdateCustomerMode$inboundSchema,
|
|
1366
|
+
name: z.nullable(z.string()),
|
|
1367
|
+
email: z.nullable(z.string()),
|
|
1368
|
+
locale: z.nullable(UpdateCustomerLocaleResponse$inboundSchema),
|
|
1376
1369
|
metadata: z.nullable(
|
|
1377
1370
|
z.union([
|
|
1378
1371
|
z.lazy(() => UpdateCustomerMetadataResponse$inboundSchema),
|
|
1379
1372
|
z.string(),
|
|
1380
1373
|
z.array(z.string()),
|
|
1381
1374
|
]),
|
|
1382
|
-
)
|
|
1383
|
-
createdAt: z.string()
|
|
1384
|
-
_links: z.lazy(() => UpdateCustomerLinks$inboundSchema)
|
|
1375
|
+
),
|
|
1376
|
+
createdAt: z.string(),
|
|
1377
|
+
_links: z.lazy(() => UpdateCustomerLinks$inboundSchema),
|
|
1385
1378
|
}).transform((v) => {
|
|
1386
1379
|
return remap$(v, {
|
|
1387
1380
|
"_links": "links",
|
|
@@ -1391,19 +1384,18 @@ export const UpdateCustomerResponse$inboundSchema: z.ZodType<
|
|
|
1391
1384
|
/** @internal */
|
|
1392
1385
|
export type UpdateCustomerResponse$Outbound = {
|
|
1393
1386
|
resource: string;
|
|
1394
|
-
id
|
|
1395
|
-
mode
|
|
1396
|
-
name
|
|
1397
|
-
email
|
|
1398
|
-
locale
|
|
1399
|
-
metadata
|
|
1387
|
+
id: string;
|
|
1388
|
+
mode: string;
|
|
1389
|
+
name: string | null;
|
|
1390
|
+
email: string | null;
|
|
1391
|
+
locale: string | null;
|
|
1392
|
+
metadata:
|
|
1400
1393
|
| UpdateCustomerMetadataResponse$Outbound
|
|
1401
1394
|
| string
|
|
1402
1395
|
| Array<string>
|
|
1403
|
-
| null
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
_links?: UpdateCustomerLinks$Outbound | undefined;
|
|
1396
|
+
| null;
|
|
1397
|
+
createdAt: string;
|
|
1398
|
+
_links: UpdateCustomerLinks$Outbound;
|
|
1407
1399
|
};
|
|
1408
1400
|
|
|
1409
1401
|
/** @internal */
|
|
@@ -1413,20 +1405,20 @@ export const UpdateCustomerResponse$outboundSchema: z.ZodType<
|
|
|
1413
1405
|
UpdateCustomerResponse
|
|
1414
1406
|
> = z.object({
|
|
1415
1407
|
resource: z.string().default("customer"),
|
|
1416
|
-
id: z.string()
|
|
1417
|
-
mode: UpdateCustomerMode$outboundSchema
|
|
1418
|
-
name: z.nullable(z.string())
|
|
1419
|
-
email: z.nullable(z.string())
|
|
1420
|
-
locale: z.nullable(UpdateCustomerLocaleResponse$outboundSchema)
|
|
1408
|
+
id: z.string(),
|
|
1409
|
+
mode: UpdateCustomerMode$outboundSchema,
|
|
1410
|
+
name: z.nullable(z.string()),
|
|
1411
|
+
email: z.nullable(z.string()),
|
|
1412
|
+
locale: z.nullable(UpdateCustomerLocaleResponse$outboundSchema),
|
|
1421
1413
|
metadata: z.nullable(
|
|
1422
1414
|
z.union([
|
|
1423
1415
|
z.lazy(() => UpdateCustomerMetadataResponse$outboundSchema),
|
|
1424
1416
|
z.string(),
|
|
1425
1417
|
z.array(z.string()),
|
|
1426
1418
|
]),
|
|
1427
|
-
)
|
|
1428
|
-
createdAt: z.string()
|
|
1429
|
-
links: z.lazy(() => UpdateCustomerLinks$outboundSchema)
|
|
1419
|
+
),
|
|
1420
|
+
createdAt: z.string(),
|
|
1421
|
+
links: z.lazy(() => UpdateCustomerLinks$outboundSchema),
|
|
1430
1422
|
}).transform((v) => {
|
|
1431
1423
|
return remap$(v, {
|
|
1432
1424
|
links: "_links",
|
|
@@ -282,8 +282,8 @@ export type UpdateSubscriptionApplicationFee = {
|
|
|
282
282
|
/**
|
|
283
283
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
284
284
|
*/
|
|
285
|
-
amount
|
|
286
|
-
description
|
|
285
|
+
amount: UpdateSubscriptionApplicationFeeAmount;
|
|
286
|
+
description: string;
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
export type UpdateSubscriptionMetadataResponse = {};
|
|
@@ -396,11 +396,11 @@ export type UpdateSubscriptionLinks = {
|
|
|
396
396
|
/**
|
|
397
397
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
398
398
|
*/
|
|
399
|
-
self
|
|
399
|
+
self: UpdateSubscriptionSelf;
|
|
400
400
|
/**
|
|
401
401
|
* The API resource URL of the [customer](get-customer) this subscription was created for.
|
|
402
402
|
*/
|
|
403
|
-
customer
|
|
403
|
+
customer: UpdateSubscriptionCustomer | null;
|
|
404
404
|
/**
|
|
405
405
|
* The API resource URL of the [mandate](get-mandate) this subscription was created for.
|
|
406
406
|
*/
|
|
@@ -408,7 +408,7 @@ export type UpdateSubscriptionLinks = {
|
|
|
408
408
|
/**
|
|
409
409
|
* The API resource URL of the [profile](get-profile) this subscription was created for.
|
|
410
410
|
*/
|
|
411
|
-
profile
|
|
411
|
+
profile: UpdateSubscriptionProfile | null;
|
|
412
412
|
/**
|
|
413
413
|
* The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
|
|
414
414
|
*
|
|
@@ -419,7 +419,7 @@ export type UpdateSubscriptionLinks = {
|
|
|
419
419
|
/**
|
|
420
420
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
421
421
|
*/
|
|
422
|
-
documentation
|
|
422
|
+
documentation: UpdateSubscriptionDocumentation;
|
|
423
423
|
};
|
|
424
424
|
|
|
425
425
|
/**
|
|
@@ -436,25 +436,25 @@ export type UpdateSubscriptionResponse = {
|
|
|
436
436
|
/**
|
|
437
437
|
* The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
|
|
438
438
|
*/
|
|
439
|
-
id
|
|
439
|
+
id: string;
|
|
440
440
|
/**
|
|
441
441
|
* Whether this entity was created in live mode or in test mode.
|
|
442
442
|
*/
|
|
443
|
-
mode
|
|
443
|
+
mode: UpdateSubscriptionMode;
|
|
444
444
|
/**
|
|
445
445
|
* The subscription's current status is directly related to the status of the underlying customer or mandate that is
|
|
446
446
|
*
|
|
447
447
|
* @remarks
|
|
448
448
|
* enabling the subscription.
|
|
449
449
|
*/
|
|
450
|
-
status
|
|
450
|
+
status: UpdateSubscriptionStatus;
|
|
451
451
|
/**
|
|
452
452
|
* The amount for each individual payment that is charged with this subscription. For example, for a monthly
|
|
453
453
|
*
|
|
454
454
|
* @remarks
|
|
455
455
|
* subscription of €10, the subscription amount should be set to €10.
|
|
456
456
|
*/
|
|
457
|
-
amount
|
|
457
|
+
amount: UpdateSubscriptionAmountResponse;
|
|
458
458
|
/**
|
|
459
459
|
* Total number of payments for the subscription. Once this number of payments is reached, the subscription is
|
|
460
460
|
*
|
|
@@ -463,11 +463,11 @@ export type UpdateSubscriptionResponse = {
|
|
|
463
463
|
*
|
|
464
464
|
* Test mode subscriptions will get canceled automatically after 10 payments.
|
|
465
465
|
*/
|
|
466
|
-
times
|
|
466
|
+
times: number | null;
|
|
467
467
|
/**
|
|
468
468
|
* Number of payments left for the subscription.
|
|
469
469
|
*/
|
|
470
|
-
timesRemaining
|
|
470
|
+
timesRemaining: number;
|
|
471
471
|
/**
|
|
472
472
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
473
473
|
*
|
|
@@ -475,11 +475,11 @@ export type UpdateSubscriptionResponse = {
|
|
|
475
475
|
*
|
|
476
476
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
477
477
|
*/
|
|
478
|
-
interval
|
|
478
|
+
interval: UpdateSubscriptionIntervalResponse;
|
|
479
479
|
/**
|
|
480
480
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
481
481
|
*/
|
|
482
|
-
startDate
|
|
482
|
+
startDate: string;
|
|
483
483
|
/**
|
|
484
484
|
* The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
|
|
485
485
|
*
|
|
@@ -495,11 +495,11 @@ export type UpdateSubscriptionResponse = {
|
|
|
495
495
|
*
|
|
496
496
|
* **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
|
|
497
497
|
*/
|
|
498
|
-
description
|
|
498
|
+
description: string;
|
|
499
499
|
/**
|
|
500
500
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
501
501
|
*/
|
|
502
|
-
method
|
|
502
|
+
method: UpdateSubscriptionMethod | null;
|
|
503
503
|
/**
|
|
504
504
|
* With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
|
|
505
505
|
*
|
|
@@ -521,12 +521,7 @@ export type UpdateSubscriptionResponse = {
|
|
|
521
521
|
*
|
|
522
522
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
523
523
|
*/
|
|
524
|
-
metadata
|
|
525
|
-
| UpdateSubscriptionMetadataResponse
|
|
526
|
-
| string
|
|
527
|
-
| Array<string>
|
|
528
|
-
| null
|
|
529
|
-
| undefined;
|
|
524
|
+
metadata: UpdateSubscriptionMetadataResponse | string | Array<string> | null;
|
|
530
525
|
/**
|
|
531
526
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
532
527
|
*
|
|
@@ -535,11 +530,11 @@ export type UpdateSubscriptionResponse = {
|
|
|
535
530
|
* This webhook will receive **all** events for the subscription's payments. This may include payment failures as
|
|
536
531
|
* well. Be sure to verify the payment's subscription ID and its status.
|
|
537
532
|
*/
|
|
538
|
-
webhookUrl
|
|
533
|
+
webhookUrl: string;
|
|
539
534
|
/**
|
|
540
535
|
* The customer this subscription belongs to.
|
|
541
536
|
*/
|
|
542
|
-
customerId
|
|
537
|
+
customerId: string;
|
|
543
538
|
/**
|
|
544
539
|
* The mandate used for this subscription, if any.
|
|
545
540
|
*/
|
|
@@ -547,7 +542,7 @@ export type UpdateSubscriptionResponse = {
|
|
|
547
542
|
/**
|
|
548
543
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
549
544
|
*/
|
|
550
|
-
createdAt
|
|
545
|
+
createdAt: string;
|
|
551
546
|
/**
|
|
552
547
|
* The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
|
|
553
548
|
*
|
|
@@ -1268,15 +1263,14 @@ export const UpdateSubscriptionApplicationFee$inboundSchema: z.ZodType<
|
|
|
1268
1263
|
z.ZodTypeDef,
|
|
1269
1264
|
unknown
|
|
1270
1265
|
> = z.object({
|
|
1271
|
-
amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$inboundSchema)
|
|
1272
|
-
|
|
1273
|
-
description: z.string().optional(),
|
|
1266
|
+
amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$inboundSchema),
|
|
1267
|
+
description: z.string(),
|
|
1274
1268
|
});
|
|
1275
1269
|
|
|
1276
1270
|
/** @internal */
|
|
1277
1271
|
export type UpdateSubscriptionApplicationFee$Outbound = {
|
|
1278
|
-
amount
|
|
1279
|
-
description
|
|
1272
|
+
amount: UpdateSubscriptionApplicationFeeAmount$Outbound;
|
|
1273
|
+
description: string;
|
|
1280
1274
|
};
|
|
1281
1275
|
|
|
1282
1276
|
/** @internal */
|
|
@@ -1285,9 +1279,8 @@ export const UpdateSubscriptionApplicationFee$outboundSchema: z.ZodType<
|
|
|
1285
1279
|
z.ZodTypeDef,
|
|
1286
1280
|
UpdateSubscriptionApplicationFee
|
|
1287
1281
|
> = z.object({
|
|
1288
|
-
amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$outboundSchema)
|
|
1289
|
-
|
|
1290
|
-
description: z.string().optional(),
|
|
1282
|
+
amount: z.lazy(() => UpdateSubscriptionApplicationFeeAmount$outboundSchema),
|
|
1283
|
+
description: z.string(),
|
|
1291
1284
|
});
|
|
1292
1285
|
|
|
1293
1286
|
/**
|
|
@@ -1795,27 +1788,24 @@ export const UpdateSubscriptionLinks$inboundSchema: z.ZodType<
|
|
|
1795
1788
|
z.ZodTypeDef,
|
|
1796
1789
|
unknown
|
|
1797
1790
|
> = z.object({
|
|
1798
|
-
self: z.lazy(() => UpdateSubscriptionSelf$inboundSchema)
|
|
1799
|
-
customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$inboundSchema))
|
|
1800
|
-
.optional(),
|
|
1791
|
+
self: z.lazy(() => UpdateSubscriptionSelf$inboundSchema),
|
|
1792
|
+
customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$inboundSchema)),
|
|
1801
1793
|
mandate: z.nullable(z.lazy(() => UpdateSubscriptionMandate$inboundSchema))
|
|
1802
1794
|
.optional(),
|
|
1803
|
-
profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$inboundSchema))
|
|
1804
|
-
.optional(),
|
|
1795
|
+
profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$inboundSchema)),
|
|
1805
1796
|
payments: z.nullable(z.lazy(() => UpdateSubscriptionPayments$inboundSchema))
|
|
1806
1797
|
.optional(),
|
|
1807
|
-
documentation: z.lazy(() => UpdateSubscriptionDocumentation$inboundSchema)
|
|
1808
|
-
.optional(),
|
|
1798
|
+
documentation: z.lazy(() => UpdateSubscriptionDocumentation$inboundSchema),
|
|
1809
1799
|
});
|
|
1810
1800
|
|
|
1811
1801
|
/** @internal */
|
|
1812
1802
|
export type UpdateSubscriptionLinks$Outbound = {
|
|
1813
|
-
self
|
|
1814
|
-
customer
|
|
1803
|
+
self: UpdateSubscriptionSelf$Outbound;
|
|
1804
|
+
customer: UpdateSubscriptionCustomer$Outbound | null;
|
|
1815
1805
|
mandate?: UpdateSubscriptionMandate$Outbound | null | undefined;
|
|
1816
|
-
profile
|
|
1806
|
+
profile: UpdateSubscriptionProfile$Outbound | null;
|
|
1817
1807
|
payments?: UpdateSubscriptionPayments$Outbound | null | undefined;
|
|
1818
|
-
documentation
|
|
1808
|
+
documentation: UpdateSubscriptionDocumentation$Outbound;
|
|
1819
1809
|
};
|
|
1820
1810
|
|
|
1821
1811
|
/** @internal */
|
|
@@ -1824,17 +1814,14 @@ export const UpdateSubscriptionLinks$outboundSchema: z.ZodType<
|
|
|
1824
1814
|
z.ZodTypeDef,
|
|
1825
1815
|
UpdateSubscriptionLinks
|
|
1826
1816
|
> = z.object({
|
|
1827
|
-
self: z.lazy(() => UpdateSubscriptionSelf$outboundSchema)
|
|
1828
|
-
customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$outboundSchema))
|
|
1829
|
-
.optional(),
|
|
1817
|
+
self: z.lazy(() => UpdateSubscriptionSelf$outboundSchema),
|
|
1818
|
+
customer: z.nullable(z.lazy(() => UpdateSubscriptionCustomer$outboundSchema)),
|
|
1830
1819
|
mandate: z.nullable(z.lazy(() => UpdateSubscriptionMandate$outboundSchema))
|
|
1831
1820
|
.optional(),
|
|
1832
|
-
profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$outboundSchema))
|
|
1833
|
-
.optional(),
|
|
1821
|
+
profile: z.nullable(z.lazy(() => UpdateSubscriptionProfile$outboundSchema)),
|
|
1834
1822
|
payments: z.nullable(z.lazy(() => UpdateSubscriptionPayments$outboundSchema))
|
|
1835
1823
|
.optional(),
|
|
1836
|
-
documentation: z.lazy(() => UpdateSubscriptionDocumentation$outboundSchema)
|
|
1837
|
-
.optional(),
|
|
1824
|
+
documentation: z.lazy(() => UpdateSubscriptionDocumentation$outboundSchema),
|
|
1838
1825
|
});
|
|
1839
1826
|
|
|
1840
1827
|
/**
|
|
@@ -1875,18 +1862,17 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1875
1862
|
unknown
|
|
1876
1863
|
> = z.object({
|
|
1877
1864
|
resource: z.string().default("subscription"),
|
|
1878
|
-
id: z.string()
|
|
1879
|
-
mode: UpdateSubscriptionMode$inboundSchema
|
|
1880
|
-
status: UpdateSubscriptionStatus$inboundSchema
|
|
1881
|
-
amount: z.lazy(() => UpdateSubscriptionAmountResponse$inboundSchema)
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
startDate: z.string().optional(),
|
|
1865
|
+
id: z.string(),
|
|
1866
|
+
mode: UpdateSubscriptionMode$inboundSchema,
|
|
1867
|
+
status: UpdateSubscriptionStatus$inboundSchema,
|
|
1868
|
+
amount: z.lazy(() => UpdateSubscriptionAmountResponse$inboundSchema),
|
|
1869
|
+
times: z.nullable(z.number().int()),
|
|
1870
|
+
timesRemaining: z.number().int(),
|
|
1871
|
+
interval: UpdateSubscriptionIntervalResponse$inboundSchema,
|
|
1872
|
+
startDate: z.string(),
|
|
1887
1873
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1888
|
-
description: z.string()
|
|
1889
|
-
method: z.nullable(UpdateSubscriptionMethod$inboundSchema)
|
|
1874
|
+
description: z.string(),
|
|
1875
|
+
method: z.nullable(UpdateSubscriptionMethod$inboundSchema),
|
|
1890
1876
|
applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$inboundSchema)
|
|
1891
1877
|
.optional(),
|
|
1892
1878
|
metadata: z.nullable(
|
|
@@ -1895,11 +1881,11 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1895
1881
|
z.string(),
|
|
1896
1882
|
z.array(z.string()),
|
|
1897
1883
|
]),
|
|
1898
|
-
)
|
|
1899
|
-
webhookUrl: z.string()
|
|
1900
|
-
customerId: z.string()
|
|
1884
|
+
),
|
|
1885
|
+
webhookUrl: z.string(),
|
|
1886
|
+
customerId: z.string(),
|
|
1901
1887
|
mandateId: z.nullable(z.string()).optional(),
|
|
1902
|
-
createdAt: z.string()
|
|
1888
|
+
createdAt: z.string(),
|
|
1903
1889
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1904
1890
|
_links: z.lazy(() => UpdateSubscriptionLinks$inboundSchema).optional(),
|
|
1905
1891
|
}).transform((v) => {
|
|
@@ -1911,28 +1897,27 @@ export const UpdateSubscriptionResponse$inboundSchema: z.ZodType<
|
|
|
1911
1897
|
/** @internal */
|
|
1912
1898
|
export type UpdateSubscriptionResponse$Outbound = {
|
|
1913
1899
|
resource: string;
|
|
1914
|
-
id
|
|
1915
|
-
mode
|
|
1916
|
-
status
|
|
1917
|
-
amount
|
|
1918
|
-
times
|
|
1919
|
-
timesRemaining
|
|
1920
|
-
interval
|
|
1921
|
-
startDate
|
|
1900
|
+
id: string;
|
|
1901
|
+
mode: string;
|
|
1902
|
+
status: string;
|
|
1903
|
+
amount: UpdateSubscriptionAmountResponse$Outbound;
|
|
1904
|
+
times: number | null;
|
|
1905
|
+
timesRemaining: number;
|
|
1906
|
+
interval: string;
|
|
1907
|
+
startDate: string;
|
|
1922
1908
|
nextPaymentDate?: string | null | undefined;
|
|
1923
|
-
description
|
|
1924
|
-
method
|
|
1909
|
+
description: string;
|
|
1910
|
+
method: string | null;
|
|
1925
1911
|
applicationFee?: UpdateSubscriptionApplicationFee$Outbound | undefined;
|
|
1926
|
-
metadata
|
|
1912
|
+
metadata:
|
|
1927
1913
|
| UpdateSubscriptionMetadataResponse$Outbound
|
|
1928
1914
|
| string
|
|
1929
1915
|
| Array<string>
|
|
1930
|
-
| null
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
customerId?: string | undefined;
|
|
1916
|
+
| null;
|
|
1917
|
+
webhookUrl: string;
|
|
1918
|
+
customerId: string;
|
|
1934
1919
|
mandateId?: string | null | undefined;
|
|
1935
|
-
createdAt
|
|
1920
|
+
createdAt: string;
|
|
1936
1921
|
canceledAt?: string | null | undefined;
|
|
1937
1922
|
_links?: UpdateSubscriptionLinks$Outbound | undefined;
|
|
1938
1923
|
};
|
|
@@ -1944,18 +1929,17 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
1944
1929
|
UpdateSubscriptionResponse
|
|
1945
1930
|
> = z.object({
|
|
1946
1931
|
resource: z.string().default("subscription"),
|
|
1947
|
-
id: z.string()
|
|
1948
|
-
mode: UpdateSubscriptionMode$outboundSchema
|
|
1949
|
-
status: UpdateSubscriptionStatus$outboundSchema
|
|
1950
|
-
amount: z.lazy(() => UpdateSubscriptionAmountResponse$outboundSchema)
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
startDate: z.string().optional(),
|
|
1932
|
+
id: z.string(),
|
|
1933
|
+
mode: UpdateSubscriptionMode$outboundSchema,
|
|
1934
|
+
status: UpdateSubscriptionStatus$outboundSchema,
|
|
1935
|
+
amount: z.lazy(() => UpdateSubscriptionAmountResponse$outboundSchema),
|
|
1936
|
+
times: z.nullable(z.number().int()),
|
|
1937
|
+
timesRemaining: z.number().int(),
|
|
1938
|
+
interval: UpdateSubscriptionIntervalResponse$outboundSchema,
|
|
1939
|
+
startDate: z.string(),
|
|
1956
1940
|
nextPaymentDate: z.nullable(z.string()).optional(),
|
|
1957
|
-
description: z.string()
|
|
1958
|
-
method: z.nullable(UpdateSubscriptionMethod$outboundSchema)
|
|
1941
|
+
description: z.string(),
|
|
1942
|
+
method: z.nullable(UpdateSubscriptionMethod$outboundSchema),
|
|
1959
1943
|
applicationFee: z.lazy(() => UpdateSubscriptionApplicationFee$outboundSchema)
|
|
1960
1944
|
.optional(),
|
|
1961
1945
|
metadata: z.nullable(
|
|
@@ -1964,11 +1948,11 @@ export const UpdateSubscriptionResponse$outboundSchema: z.ZodType<
|
|
|
1964
1948
|
z.string(),
|
|
1965
1949
|
z.array(z.string()),
|
|
1966
1950
|
]),
|
|
1967
|
-
)
|
|
1968
|
-
webhookUrl: z.string()
|
|
1969
|
-
customerId: z.string()
|
|
1951
|
+
),
|
|
1952
|
+
webhookUrl: z.string(),
|
|
1953
|
+
customerId: z.string(),
|
|
1970
1954
|
mandateId: z.nullable(z.string()).optional(),
|
|
1971
|
-
createdAt: z.string()
|
|
1955
|
+
createdAt: z.string(),
|
|
1972
1956
|
canceledAt: z.nullable(z.string()).optional(),
|
|
1973
1957
|
links: z.lazy(() => UpdateSubscriptionLinks$outboundSchema).optional(),
|
|
1974
1958
|
}).transform((v) => {
|