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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionsAll.d.ts","sourceRoot":"","sources":["../../../src/funcs/subscriptionsAll.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAw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A4B,EACrC,MAAM,CAAC,0CAA0C,GACjD,MAAM,CAAC,wCAAwC,GAC/C,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -33,7 +33,6 @@ async function $do(client, request, options) {
|
|
|
33
33
|
"from": payload?.from,
|
|
34
34
|
"limit": payload?.limit,
|
|
35
35
|
"profileId": payload?.profileId,
|
|
36
|
-
"sort": payload?.sort,
|
|
37
36
|
"testmode": payload?.testmode,
|
|
38
37
|
});
|
|
39
38
|
const headers = new Headers(compactMap({
|
|
@@ -80,7 +79,7 @@ async function $do(client, request, options) {
|
|
|
80
79
|
const req = requestRes.value;
|
|
81
80
|
const doResult = await client._do(req, {
|
|
82
81
|
context,
|
|
83
|
-
errorCodes: ["400", "4XX", "5XX"],
|
|
82
|
+
errorCodes: ["400", "404", "4XX", "5XX"],
|
|
84
83
|
retryConfig: context.retryConfig,
|
|
85
84
|
retryCodes: context.retryCodes,
|
|
86
85
|
});
|
|
@@ -93,9 +92,7 @@ async function $do(client, request, options) {
|
|
|
93
92
|
};
|
|
94
93
|
const [result] = await M.match(M.json(200, operations.ListAllSubscriptionsResponse$inboundSchema, {
|
|
95
94
|
ctype: "application/hal+json",
|
|
96
|
-
}), M.jsonErr(400, errors.
|
|
97
|
-
ctype: "application/hal+json",
|
|
98
|
-
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
95
|
+
}), M.jsonErr(400, errors.ListAllSubscriptionsBadRequestHalJSONError$inboundSchema, { ctype: "application/hal+json" }), M.jsonErr(404, errors.ListAllSubscriptionsNotFoundHalJSONError$inboundSchema, { ctype: "application/hal+json" }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
99
96
|
if (!result.ok) {
|
|
100
97
|
return [result, { status: "complete", request: req, response }];
|
|
101
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionsAll.js","sourceRoot":"","sources":["../../../src/funcs/subscriptionsAll.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAC9B,MAAkB,EAClB,OAA4D,EAC5D,OAAwB;
|
|
1
|
+
{"version":3,"file":"subscriptionsAll.js","sourceRoot":"","sources":["../../../src/funcs/subscriptionsAll.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AAGpD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;;;GAOG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AE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
35
35
|
export declare const SDK_METADATA: {
|
|
36
36
|
readonly language: "typescript";
|
|
37
37
|
readonly openapiDocVersion: "1.0.0";
|
|
38
|
-
readonly sdkVersion: "0.0.
|
|
38
|
+
readonly sdkVersion: "0.0.6";
|
|
39
39
|
readonly genVersion: "2.672.0";
|
|
40
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
40
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.6 2.672.0 1.0.0 mollie-api-typescript";
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -24,8 +24,8 @@ export function serverURLFromOptions(options) {
|
|
|
24
24
|
export const SDK_METADATA = {
|
|
25
25
|
language: "typescript",
|
|
26
26
|
openapiDocVersion: "1.0.0",
|
|
27
|
-
sdkVersion: "0.0.
|
|
27
|
+
sdkVersion: "0.0.6",
|
|
28
28
|
genVersion: "2.672.0",
|
|
29
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
29
|
+
userAgent: "speakeasy-sdk/typescript 0.0.6 2.672.0 1.0.0 mollie-api-typescript",
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=config.js.map
|
|
@@ -102,7 +102,7 @@ import { tool$webhooksUpdate } from "./tools/webhooksUpdate.js";
|
|
|
102
102
|
export function createMCPServer(deps) {
|
|
103
103
|
const server = new McpServer({
|
|
104
104
|
name: "Client",
|
|
105
|
-
version: "0.0.
|
|
105
|
+
version: "0.0.6",
|
|
106
106
|
});
|
|
107
107
|
const client = new ClientCore({
|
|
108
108
|
security: deps.security,
|
|
@@ -4,7 +4,64 @@ import { ClientError } from "./clienterror.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* An error response object.
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type ListAllSubscriptionsNotFoundHalJSONErrorData = {
|
|
8
|
+
/**
|
|
9
|
+
* The status code of the error message. This is always the same code as the status code of the HTTP message itself.
|
|
10
|
+
*/
|
|
11
|
+
status: number;
|
|
12
|
+
/**
|
|
13
|
+
* The HTTP reason phrase of the error. For example, for a `404` error, the `title` will be `Not Found`.
|
|
14
|
+
*/
|
|
15
|
+
title: string;
|
|
16
|
+
/**
|
|
17
|
+
* A detailed human-readable description of the error that occurred.
|
|
18
|
+
*/
|
|
19
|
+
detail: string;
|
|
20
|
+
/**
|
|
21
|
+
* If the error was caused by a value provided by you in a specific field, the `field` property will contain the name
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* of the field that caused the issue.
|
|
25
|
+
*/
|
|
26
|
+
field?: string | undefined;
|
|
27
|
+
links: operations.ListAllSubscriptionsNotFoundLinks;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* An error response object.
|
|
31
|
+
*/
|
|
32
|
+
export declare class ListAllSubscriptionsNotFoundHalJSONError extends ClientError {
|
|
33
|
+
/**
|
|
34
|
+
* The status code of the error message. This is always the same code as the status code of the HTTP message itself.
|
|
35
|
+
*/
|
|
36
|
+
status: number;
|
|
37
|
+
/**
|
|
38
|
+
* The HTTP reason phrase of the error. For example, for a `404` error, the `title` will be `Not Found`.
|
|
39
|
+
*/
|
|
40
|
+
title: string;
|
|
41
|
+
/**
|
|
42
|
+
* A detailed human-readable description of the error that occurred.
|
|
43
|
+
*/
|
|
44
|
+
detail: string;
|
|
45
|
+
/**
|
|
46
|
+
* If the error was caused by a value provided by you in a specific field, the `field` property will contain the name
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* of the field that caused the issue.
|
|
50
|
+
*/
|
|
51
|
+
field?: string | undefined;
|
|
52
|
+
links: operations.ListAllSubscriptionsNotFoundLinks;
|
|
53
|
+
/** The original data that was passed to this error instance. */
|
|
54
|
+
data$: ListAllSubscriptionsNotFoundHalJSONErrorData;
|
|
55
|
+
constructor(err: ListAllSubscriptionsNotFoundHalJSONErrorData, httpMeta: {
|
|
56
|
+
response: Response;
|
|
57
|
+
request: Request;
|
|
58
|
+
body: string;
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* An error response object.
|
|
63
|
+
*/
|
|
64
|
+
export type ListAllSubscriptionsBadRequestHalJSONErrorData = {
|
|
8
65
|
/**
|
|
9
66
|
* The status code of the error message. This is always the same code as the status code of the HTTP message itself.
|
|
10
67
|
*/
|
|
@@ -29,7 +86,7 @@ export type ListAllSubscriptionsHalJSONErrorData = {
|
|
|
29
86
|
/**
|
|
30
87
|
* An error response object.
|
|
31
88
|
*/
|
|
32
|
-
export declare class
|
|
89
|
+
export declare class ListAllSubscriptionsBadRequestHalJSONError extends ClientError {
|
|
33
90
|
/**
|
|
34
91
|
* The status code of the error message. This is always the same code as the status code of the HTTP message itself.
|
|
35
92
|
*/
|
|
@@ -51,17 +108,41 @@ export declare class ListAllSubscriptionsHalJSONError extends ClientError {
|
|
|
51
108
|
field?: string | undefined;
|
|
52
109
|
links: operations.ListAllSubscriptionsBadRequestLinks;
|
|
53
110
|
/** The original data that was passed to this error instance. */
|
|
54
|
-
data$:
|
|
55
|
-
constructor(err:
|
|
111
|
+
data$: ListAllSubscriptionsBadRequestHalJSONErrorData;
|
|
112
|
+
constructor(err: ListAllSubscriptionsBadRequestHalJSONErrorData, httpMeta: {
|
|
56
113
|
response: Response;
|
|
57
114
|
request: Request;
|
|
58
115
|
body: string;
|
|
59
116
|
});
|
|
60
117
|
}
|
|
61
118
|
/** @internal */
|
|
62
|
-
export declare const
|
|
119
|
+
export declare const ListAllSubscriptionsNotFoundHalJSONError$inboundSchema: z.ZodType<ListAllSubscriptionsNotFoundHalJSONError, z.ZodTypeDef, unknown>;
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type ListAllSubscriptionsNotFoundHalJSONError$Outbound = {
|
|
122
|
+
status: number;
|
|
123
|
+
title: string;
|
|
124
|
+
detail: string;
|
|
125
|
+
field?: string | undefined;
|
|
126
|
+
_links: operations.ListAllSubscriptionsNotFoundLinks$Outbound;
|
|
127
|
+
};
|
|
128
|
+
/** @internal */
|
|
129
|
+
export declare const ListAllSubscriptionsNotFoundHalJSONError$outboundSchema: z.ZodType<ListAllSubscriptionsNotFoundHalJSONError$Outbound, z.ZodTypeDef, ListAllSubscriptionsNotFoundHalJSONError>;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
133
|
+
*/
|
|
134
|
+
export declare namespace ListAllSubscriptionsNotFoundHalJSONError$ {
|
|
135
|
+
/** @deprecated use `ListAllSubscriptionsNotFoundHalJSONError$inboundSchema` instead. */
|
|
136
|
+
const inboundSchema: z.ZodType<ListAllSubscriptionsNotFoundHalJSONError, z.ZodTypeDef, unknown>;
|
|
137
|
+
/** @deprecated use `ListAllSubscriptionsNotFoundHalJSONError$outboundSchema` instead. */
|
|
138
|
+
const outboundSchema: z.ZodType<ListAllSubscriptionsNotFoundHalJSONError$Outbound, z.ZodTypeDef, ListAllSubscriptionsNotFoundHalJSONError>;
|
|
139
|
+
/** @deprecated use `ListAllSubscriptionsNotFoundHalJSONError$Outbound` instead. */
|
|
140
|
+
type Outbound = ListAllSubscriptionsNotFoundHalJSONError$Outbound;
|
|
141
|
+
}
|
|
142
|
+
/** @internal */
|
|
143
|
+
export declare const ListAllSubscriptionsBadRequestHalJSONError$inboundSchema: z.ZodType<ListAllSubscriptionsBadRequestHalJSONError, z.ZodTypeDef, unknown>;
|
|
63
144
|
/** @internal */
|
|
64
|
-
export type
|
|
145
|
+
export type ListAllSubscriptionsBadRequestHalJSONError$Outbound = {
|
|
65
146
|
status: number;
|
|
66
147
|
title: string;
|
|
67
148
|
detail: string;
|
|
@@ -69,17 +150,17 @@ export type ListAllSubscriptionsHalJSONError$Outbound = {
|
|
|
69
150
|
_links: operations.ListAllSubscriptionsBadRequestLinks$Outbound;
|
|
70
151
|
};
|
|
71
152
|
/** @internal */
|
|
72
|
-
export declare const
|
|
153
|
+
export declare const ListAllSubscriptionsBadRequestHalJSONError$outboundSchema: z.ZodType<ListAllSubscriptionsBadRequestHalJSONError$Outbound, z.ZodTypeDef, ListAllSubscriptionsBadRequestHalJSONError>;
|
|
73
154
|
/**
|
|
74
155
|
* @internal
|
|
75
156
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
157
|
*/
|
|
77
|
-
export declare namespace
|
|
78
|
-
/** @deprecated use `
|
|
79
|
-
const inboundSchema: z.ZodType<
|
|
80
|
-
/** @deprecated use `
|
|
81
|
-
const outboundSchema: z.ZodType<
|
|
82
|
-
/** @deprecated use `
|
|
83
|
-
type Outbound =
|
|
158
|
+
export declare namespace ListAllSubscriptionsBadRequestHalJSONError$ {
|
|
159
|
+
/** @deprecated use `ListAllSubscriptionsBadRequestHalJSONError$inboundSchema` instead. */
|
|
160
|
+
const inboundSchema: z.ZodType<ListAllSubscriptionsBadRequestHalJSONError, z.ZodTypeDef, unknown>;
|
|
161
|
+
/** @deprecated use `ListAllSubscriptionsBadRequestHalJSONError$outboundSchema` instead. */
|
|
162
|
+
const outboundSchema: z.ZodType<ListAllSubscriptionsBadRequestHalJSONError$Outbound, z.ZodTypeDef, ListAllSubscriptionsBadRequestHalJSONError>;
|
|
163
|
+
/** @deprecated use `ListAllSubscriptionsBadRequestHalJSONError$Outbound` instead. */
|
|
164
|
+
type Outbound = ListAllSubscriptionsBadRequestHalJSONError$Outbound;
|
|
84
165
|
}
|
|
85
166
|
//# sourceMappingURL=listallsubscriptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listallsubscriptions.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/listallsubscriptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"listallsubscriptions.d.ts","sourceRoot":"","sources":["../../../../src/models/errors/listallsubscriptions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,UAAU,CAAC,iCAAiC,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,qBAAa,wCAAyC,SAAQ,WAAW;IACvE;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,UAAU,CAAC,iCAAiC,CAAC;IAEpD,gEAAgE;IAChE,KAAK,EAAE,4CAA4C,CAAC;gBAGlD,GAAG,EAAE,4CAA4C,EACjD,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAenE;AAED;;GAEG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D;;OAEG;IACH,MAAM,EAAE,M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C,CAAC;IACzD,wFAAwF;IACjF,MAAM,aAAa,4EAC8B,CAAC;IACzD,yFAAyF;IAClF,MAAM,cAAc,sHAC8B,CAAC;IAC1D,mFAAmF;IACnF,KAAY,QAAQ,GAAG,iDAAiD,CAAC;CAC1E;AAED,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,OAAO,CAAC,0CAA0C,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAuBrE,CAAC;AAET,gBAAgB;AAChB,MAAM,MAAM,mDAAmD,GAAG;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC,4CAA4C,CAAC;CACjE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,OAAO,CACP,mDAAmD,EACnD,CAAC,CAAC,UAAU,EACZ,0CAA0C,CAiBzC,CAAC;AAEN;;;GAGG;AACH,yBAAiB,2CAA2C,CAAC;IAC3D,0FAA0F;IACnF,MAAM,aAAa,8EACgC,CAAC;IAC3D,2FAA2F;IACpF,MAAM,cAAc,0HACgC,CAAC;IAC5D,qFAAqF;IACrF,KAAY,QAAQ,GAAG,mDAAmD,CAAC;CAC5E"}
|
|
@@ -8,7 +8,7 @@ import { ClientError } from "./clienterror.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* An error response object.
|
|
10
10
|
*/
|
|
11
|
-
export class
|
|
11
|
+
export class ListAllSubscriptionsNotFoundHalJSONError extends ClientError {
|
|
12
12
|
constructor(err, httpMeta) {
|
|
13
13
|
const message = "message" in err && typeof err.message === "string"
|
|
14
14
|
? err.message
|
|
@@ -21,11 +21,76 @@ export class ListAllSubscriptionsHalJSONError extends ClientError {
|
|
|
21
21
|
if (err.field != null)
|
|
22
22
|
this.field = err.field;
|
|
23
23
|
this.links = err.links;
|
|
24
|
-
this.name = "
|
|
24
|
+
this.name = "ListAllSubscriptionsNotFoundHalJSONError";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* An error response object.
|
|
29
|
+
*/
|
|
30
|
+
export class ListAllSubscriptionsBadRequestHalJSONError extends ClientError {
|
|
31
|
+
constructor(err, httpMeta) {
|
|
32
|
+
const message = "message" in err && typeof err.message === "string"
|
|
33
|
+
? err.message
|
|
34
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
35
|
+
super(message, httpMeta);
|
|
36
|
+
this.data$ = err;
|
|
37
|
+
this.status = err.status;
|
|
38
|
+
this.title = err.title;
|
|
39
|
+
this.detail = err.detail;
|
|
40
|
+
if (err.field != null)
|
|
41
|
+
this.field = err.field;
|
|
42
|
+
this.links = err.links;
|
|
43
|
+
this.name = "ListAllSubscriptionsBadRequestHalJSONError";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ListAllSubscriptionsNotFoundHalJSONError$inboundSchema = z.object({
|
|
48
|
+
status: z.number().int(),
|
|
49
|
+
title: z.string(),
|
|
50
|
+
detail: z.string(),
|
|
51
|
+
field: z.string().optional(),
|
|
52
|
+
_links: z.lazy(() => operations.ListAllSubscriptionsNotFoundLinks$inboundSchema),
|
|
53
|
+
request$: z.instanceof(Request),
|
|
54
|
+
response$: z.instanceof(Response),
|
|
55
|
+
body$: z.string(),
|
|
56
|
+
})
|
|
57
|
+
.transform((v) => {
|
|
58
|
+
const remapped = remap$(v, {
|
|
59
|
+
"_links": "links",
|
|
60
|
+
});
|
|
61
|
+
return new ListAllSubscriptionsNotFoundHalJSONError(remapped, {
|
|
62
|
+
request: v.request$,
|
|
63
|
+
response: v.response$,
|
|
64
|
+
body: v.body$,
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ListAllSubscriptionsNotFoundHalJSONError$outboundSchema = z.instanceof(ListAllSubscriptionsNotFoundHalJSONError)
|
|
69
|
+
.transform(v => v.data$)
|
|
70
|
+
.pipe(z.object({
|
|
71
|
+
status: z.number().int(),
|
|
72
|
+
title: z.string(),
|
|
73
|
+
detail: z.string(),
|
|
74
|
+
field: z.string().optional(),
|
|
75
|
+
links: z.lazy(() => operations.ListAllSubscriptionsNotFoundLinks$outboundSchema),
|
|
76
|
+
}).transform((v) => {
|
|
77
|
+
return remap$(v, {
|
|
78
|
+
links: "_links",
|
|
79
|
+
});
|
|
80
|
+
}));
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export var ListAllSubscriptionsNotFoundHalJSONError$;
|
|
86
|
+
(function (ListAllSubscriptionsNotFoundHalJSONError$) {
|
|
87
|
+
/** @deprecated use `ListAllSubscriptionsNotFoundHalJSONError$inboundSchema` instead. */
|
|
88
|
+
ListAllSubscriptionsNotFoundHalJSONError$.inboundSchema = ListAllSubscriptionsNotFoundHalJSONError$inboundSchema;
|
|
89
|
+
/** @deprecated use `ListAllSubscriptionsNotFoundHalJSONError$outboundSchema` instead. */
|
|
90
|
+
ListAllSubscriptionsNotFoundHalJSONError$.outboundSchema = ListAllSubscriptionsNotFoundHalJSONError$outboundSchema;
|
|
91
|
+
})(ListAllSubscriptionsNotFoundHalJSONError$ || (ListAllSubscriptionsNotFoundHalJSONError$ = {}));
|
|
27
92
|
/** @internal */
|
|
28
|
-
export const
|
|
93
|
+
export const ListAllSubscriptionsBadRequestHalJSONError$inboundSchema = z.object({
|
|
29
94
|
status: z.number().int(),
|
|
30
95
|
title: z.string(),
|
|
31
96
|
detail: z.string(),
|
|
@@ -39,14 +104,14 @@ export const ListAllSubscriptionsHalJSONError$inboundSchema = z.object({
|
|
|
39
104
|
const remapped = remap$(v, {
|
|
40
105
|
"_links": "links",
|
|
41
106
|
});
|
|
42
|
-
return new
|
|
107
|
+
return new ListAllSubscriptionsBadRequestHalJSONError(remapped, {
|
|
43
108
|
request: v.request$,
|
|
44
109
|
response: v.response$,
|
|
45
110
|
body: v.body$,
|
|
46
111
|
});
|
|
47
112
|
});
|
|
48
113
|
/** @internal */
|
|
49
|
-
export const
|
|
114
|
+
export const ListAllSubscriptionsBadRequestHalJSONError$outboundSchema = z.instanceof(ListAllSubscriptionsBadRequestHalJSONError)
|
|
50
115
|
.transform(v => v.data$)
|
|
51
116
|
.pipe(z.object({
|
|
52
117
|
status: z.number().int(),
|
|
@@ -63,11 +128,11 @@ export const ListAllSubscriptionsHalJSONError$outboundSchema = z.instanceof(List
|
|
|
63
128
|
* @internal
|
|
64
129
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
130
|
*/
|
|
66
|
-
export var
|
|
67
|
-
(function (
|
|
68
|
-
/** @deprecated use `
|
|
69
|
-
|
|
70
|
-
/** @deprecated use `
|
|
71
|
-
|
|
72
|
-
})(
|
|
131
|
+
export var ListAllSubscriptionsBadRequestHalJSONError$;
|
|
132
|
+
(function (ListAllSubscriptionsBadRequestHalJSONError$) {
|
|
133
|
+
/** @deprecated use `ListAllSubscriptionsBadRequestHalJSONError$inboundSchema` instead. */
|
|
134
|
+
ListAllSubscriptionsBadRequestHalJSONError$.inboundSchema = ListAllSubscriptionsBadRequestHalJSONError$inboundSchema;
|
|
135
|
+
/** @deprecated use `ListAllSubscriptionsBadRequestHalJSONError$outboundSchema` instead. */
|
|
136
|
+
ListAllSubscriptionsBadRequestHalJSONError$.outboundSchema = ListAllSubscriptionsBadRequestHalJSONError$outboundSchema;
|
|
137
|
+
})(ListAllSubscriptionsBadRequestHalJSONError$ || (ListAllSubscriptionsBadRequestHalJSONError$ = {}));
|
|
73
138
|
//# sourceMappingURL=listallsubscriptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listallsubscriptions.js","sourceRoot":"","sources":["../../../../src/models/errors/listallsubscriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA4B/C;;GAEG;AACH,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"listallsubscriptions.js","sourceRoot":"","sources":["../../../../src/models/errors/listallsubscriptions.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA4B/C;;GAEG;AACH,MAAM,OAAO,wCAAyC,SAAQ,WAAW;IAyBvE,YACE,GAAiD,EACjD,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,GAAG,CAAC,KAAK,IAAI,IAAI;YAAE,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QAC9C,IAAI,CAAC,KAAK,GAAG,G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xB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACjB,UAAU,CAAC,kDAAkD,CAC9D;CACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEN;;;GAGG;AACH,MAAM,KAAW,2CAA2C,CAS3D;AATD,WAAiB,2CAA2C;IAC1D,0FAA0F;IAC7E,yDAAa,GACxB,wDAAwD,CAAC;IAC3D,2FAA2F;IAC9E,0DAAc,GACzB,yDAAyD,CAAC;AAG9D,CAAC,EATgB,2CAA2C,KAA3C,2CAA2C,QAS3D"}
|
|
@@ -144,8 +144,8 @@ export type CancelSubscriptionApplicationFee = {
|
|
|
144
144
|
/**
|
|
145
145
|
* In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
|
|
146
146
|
*/
|
|
147
|
-
amount
|
|
148
|
-
description
|
|
147
|
+
amount: CancelSubscriptionApplicationFeeAmount;
|
|
148
|
+
description: string;
|
|
149
149
|
};
|
|
150
150
|
export type CancelSubscriptionMetadata = {};
|
|
151
151
|
/**
|
|
@@ -246,11 +246,11 @@ export type CancelSubscriptionLinks = {
|
|
|
246
246
|
/**
|
|
247
247
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
248
248
|
*/
|
|
249
|
-
self
|
|
249
|
+
self: CancelSubscriptionSelf;
|
|
250
250
|
/**
|
|
251
251
|
* The API resource URL of the [customer](get-customer) this subscription was created for.
|
|
252
252
|
*/
|
|
253
|
-
customer
|
|
253
|
+
customer: CancelSubscriptionCustomer | null;
|
|
254
254
|
/**
|
|
255
255
|
* The API resource URL of the [mandate](get-mandate) this subscription was created for.
|
|
256
256
|
*/
|
|
@@ -258,7 +258,7 @@ export type CancelSubscriptionLinks = {
|
|
|
258
258
|
/**
|
|
259
259
|
* The API resource URL of the [profile](get-profile) this subscription was created for.
|
|
260
260
|
*/
|
|
261
|
-
profile
|
|
261
|
+
profile: CancelSubscriptionProfile | null;
|
|
262
262
|
/**
|
|
263
263
|
* The API resource URL of the [payments](list-payments) created for this subscription. Omitted if no such
|
|
264
264
|
*
|
|
@@ -269,7 +269,7 @@ export type CancelSubscriptionLinks = {
|
|
|
269
269
|
/**
|
|
270
270
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
271
271
|
*/
|
|
272
|
-
documentation
|
|
272
|
+
documentation: CancelSubscriptionDocumentation;
|
|
273
273
|
};
|
|
274
274
|
/**
|
|
275
275
|
* The updated subscription object with status `canceled`. For a complete reference of the subscription object,
|
|
@@ -288,25 +288,25 @@ export type CancelSubscriptionResponse = {
|
|
|
288
288
|
/**
|
|
289
289
|
* The identifier uniquely referring to this subscription. Example: `sub_rVKGtNd6s3`.
|
|
290
290
|
*/
|
|
291
|
-
id
|
|
291
|
+
id: string;
|
|
292
292
|
/**
|
|
293
293
|
* Whether this entity was created in live mode or in test mode.
|
|
294
294
|
*/
|
|
295
|
-
mode
|
|
295
|
+
mode: CancelSubscriptionMode;
|
|
296
296
|
/**
|
|
297
297
|
* The subscription's current status is directly related to the status of the underlying customer or mandate that is
|
|
298
298
|
*
|
|
299
299
|
* @remarks
|
|
300
300
|
* enabling the subscription.
|
|
301
301
|
*/
|
|
302
|
-
status
|
|
302
|
+
status: CancelSubscriptionStatus;
|
|
303
303
|
/**
|
|
304
304
|
* The amount for each individual payment that is charged with this subscription. For example, for a monthly
|
|
305
305
|
*
|
|
306
306
|
* @remarks
|
|
307
307
|
* subscription of €10, the subscription amount should be set to €10.
|
|
308
308
|
*/
|
|
309
|
-
amount
|
|
309
|
+
amount: CancelSubscriptionAmount;
|
|
310
310
|
/**
|
|
311
311
|
* Total number of payments for the subscription. Once this number of payments is reached, the subscription is
|
|
312
312
|
*
|
|
@@ -315,11 +315,11 @@ export type CancelSubscriptionResponse = {
|
|
|
315
315
|
*
|
|
316
316
|
* Test mode subscriptions will get canceled automatically after 10 payments.
|
|
317
317
|
*/
|
|
318
|
-
times
|
|
318
|
+
times: number | null;
|
|
319
319
|
/**
|
|
320
320
|
* Number of payments left for the subscription.
|
|
321
321
|
*/
|
|
322
|
-
timesRemaining
|
|
322
|
+
timesRemaining: number;
|
|
323
323
|
/**
|
|
324
324
|
* Interval to wait between payments, for example `1 month` or `14 days`.
|
|
325
325
|
*
|
|
@@ -327,11 +327,11 @@ export type CancelSubscriptionResponse = {
|
|
|
327
327
|
*
|
|
328
328
|
* The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
|
|
329
329
|
*/
|
|
330
|
-
interval
|
|
330
|
+
interval: CancelSubscriptionInterval;
|
|
331
331
|
/**
|
|
332
332
|
* The start date of the subscription in `YYYY-MM-DD` format.
|
|
333
333
|
*/
|
|
334
|
-
startDate
|
|
334
|
+
startDate: string;
|
|
335
335
|
/**
|
|
336
336
|
* The date of the next scheduled payment in `YYYY-MM-DD` format. If the subscription has been completed or canceled,
|
|
337
337
|
*
|
|
@@ -347,11 +347,11 @@ export type CancelSubscriptionResponse = {
|
|
|
347
347
|
*
|
|
348
348
|
* **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
|
|
349
349
|
*/
|
|
350
|
-
description
|
|
350
|
+
description: string;
|
|
351
351
|
/**
|
|
352
352
|
* The payment method used for this subscription. If omitted, any of the customer's valid mandates may be used.
|
|
353
353
|
*/
|
|
354
|
-
method
|
|
354
|
+
method: CancelSubscriptionMethod | null;
|
|
355
355
|
/**
|
|
356
356
|
* With Mollie Connect you can charge fees on payments that your app is processing on behalf of other Mollie
|
|
357
357
|
*
|
|
@@ -373,7 +373,7 @@ export type CancelSubscriptionResponse = {
|
|
|
373
373
|
*
|
|
374
374
|
* Any metadata added to the subscription will be automatically forwarded to the payments generated for it.
|
|
375
375
|
*/
|
|
376
|
-
metadata
|
|
376
|
+
metadata: CancelSubscriptionMetadata | string | Array<string> | null;
|
|
377
377
|
/**
|
|
378
378
|
* We will call this URL for any payment status changes of payments resulting from this subscription.
|
|
379
379
|
*
|
|
@@ -382,11 +382,11 @@ export type CancelSubscriptionResponse = {
|
|
|
382
382
|
* This webhook will receive **all** events for the subscription's payments. This may include payment failures as
|
|
383
383
|
* well. Be sure to verify the payment's subscription ID and its status.
|
|
384
384
|
*/
|
|
385
|
-
webhookUrl
|
|
385
|
+
webhookUrl: string;
|
|
386
386
|
/**
|
|
387
387
|
* The customer this subscription belongs to.
|
|
388
388
|
*/
|
|
389
|
-
customerId
|
|
389
|
+
customerId: string;
|
|
390
390
|
/**
|
|
391
391
|
* The mandate used for this subscription, if any.
|
|
392
392
|
*/
|
|
@@ -394,7 +394,7 @@ export type CancelSubscriptionResponse = {
|
|
|
394
394
|
/**
|
|
395
395
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
396
396
|
*/
|
|
397
|
-
createdAt
|
|
397
|
+
createdAt: string;
|
|
398
398
|
/**
|
|
399
399
|
* The subscription's date and time of cancellation, in ISO 8601 format. This parameter is omitted if the
|
|
400
400
|
*
|
|
@@ -638,8 +638,8 @@ export declare function cancelSubscriptionApplicationFeeAmountFromJSON(jsonStrin
|
|
|
638
638
|
export declare const CancelSubscriptionApplicationFee$inboundSchema: z.ZodType<CancelSubscriptionApplicationFee, z.ZodTypeDef, unknown>;
|
|
639
639
|
/** @internal */
|
|
640
640
|
export type CancelSubscriptionApplicationFee$Outbound = {
|
|
641
|
-
amount
|
|
642
|
-
description
|
|
641
|
+
amount: CancelSubscriptionApplicationFeeAmount$Outbound;
|
|
642
|
+
description: string;
|
|
643
643
|
};
|
|
644
644
|
/** @internal */
|
|
645
645
|
export declare const CancelSubscriptionApplicationFee$outboundSchema: z.ZodType<CancelSubscriptionApplicationFee$Outbound, z.ZodTypeDef, CancelSubscriptionApplicationFee>;
|
|
@@ -839,12 +839,12 @@ export declare function cancelSubscriptionDocumentationFromJSON(jsonString: stri
|
|
|
839
839
|
export declare const CancelSubscriptionLinks$inboundSchema: z.ZodType<CancelSubscriptionLinks, z.ZodTypeDef, unknown>;
|
|
840
840
|
/** @internal */
|
|
841
841
|
export type CancelSubscriptionLinks$Outbound = {
|
|
842
|
-
self
|
|
843
|
-
customer
|
|
842
|
+
self: CancelSubscriptionSelf$Outbound;
|
|
843
|
+
customer: CancelSubscriptionCustomer$Outbound | null;
|
|
844
844
|
mandate?: CancelSubscriptionMandate$Outbound | null | undefined;
|
|
845
|
-
profile
|
|
845
|
+
profile: CancelSubscriptionProfile$Outbound | null;
|
|
846
846
|
payments?: CancelSubscriptionPayments$Outbound | null | undefined;
|
|
847
|
-
documentation
|
|
847
|
+
documentation: CancelSubscriptionDocumentation$Outbound;
|
|
848
848
|
};
|
|
849
849
|
/** @internal */
|
|
850
850
|
export declare const CancelSubscriptionLinks$outboundSchema: z.ZodType<CancelSubscriptionLinks$Outbound, z.ZodTypeDef, CancelSubscriptionLinks>;
|
|
@@ -867,23 +867,23 @@ export declare const CancelSubscriptionResponse$inboundSchema: z.ZodType<CancelS
|
|
|
867
867
|
/** @internal */
|
|
868
868
|
export type CancelSubscriptionResponse$Outbound = {
|
|
869
869
|
resource: string;
|
|
870
|
-
id
|
|
871
|
-
mode
|
|
872
|
-
status
|
|
873
|
-
amount
|
|
874
|
-
times
|
|
875
|
-
timesRemaining
|
|
876
|
-
interval
|
|
877
|
-
startDate
|
|
870
|
+
id: string;
|
|
871
|
+
mode: string;
|
|
872
|
+
status: string;
|
|
873
|
+
amount: CancelSubscriptionAmount$Outbound;
|
|
874
|
+
times: number | null;
|
|
875
|
+
timesRemaining: number;
|
|
876
|
+
interval: string;
|
|
877
|
+
startDate: string;
|
|
878
878
|
nextPaymentDate?: string | null | undefined;
|
|
879
|
-
description
|
|
880
|
-
method
|
|
879
|
+
description: string;
|
|
880
|
+
method: string | null;
|
|
881
881
|
applicationFee?: CancelSubscriptionApplicationFee$Outbound | undefined;
|
|
882
|
-
metadata
|
|
883
|
-
webhookUrl
|
|
884
|
-
customerId
|
|
882
|
+
metadata: CancelSubscriptionMetadata$Outbound | string | Array<string> | null;
|
|
883
|
+
webhookUrl: string;
|
|
884
|
+
customerId: string;
|
|
885
885
|
mandateId?: string | null | undefined;
|
|
886
|
-
createdAt
|
|
886
|
+
createdAt: string;
|
|
887
887
|
canceledAt?: string | null | undefined;
|
|
888
888
|
_links?: CancelSubscriptionLinks$Outbound | undefined;
|
|
889
889
|
};
|