@unified-api/typescript-sdk 2.9.14 → 2.9.15
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 +12 -0
- package/docs/sdks/payment/README.md +494 -0
- package/docs/sdks/subscription/README.md +501 -0
- package/funcs/paymentCreatePaymentSubscription.d.ts +13 -0
- package/funcs/paymentCreatePaymentSubscription.d.ts.map +1 -0
- package/funcs/paymentCreatePaymentSubscription.js +105 -0
- package/funcs/paymentCreatePaymentSubscription.js.map +1 -0
- package/funcs/paymentGetPaymentSubscription.d.ts +13 -0
- package/funcs/paymentGetPaymentSubscription.d.ts.map +1 -0
- package/funcs/paymentGetPaymentSubscription.js +106 -0
- package/funcs/paymentGetPaymentSubscription.js.map +1 -0
- package/funcs/paymentListPaymentSubscriptions.d.ts +13 -0
- package/funcs/paymentListPaymentSubscriptions.d.ts.map +1 -0
- package/funcs/paymentListPaymentSubscriptions.js +110 -0
- package/funcs/paymentListPaymentSubscriptions.js.map +1 -0
- package/funcs/paymentPatchPaymentSubscription.d.ts +13 -0
- package/funcs/paymentPatchPaymentSubscription.d.ts.map +1 -0
- package/funcs/paymentPatchPaymentSubscription.js +109 -0
- package/funcs/paymentPatchPaymentSubscription.js.map +1 -0
- package/funcs/paymentRemovePaymentSubscription.d.ts +12 -0
- package/funcs/paymentRemovePaymentSubscription.d.ts.map +1 -0
- package/funcs/paymentRemovePaymentSubscription.js +104 -0
- package/funcs/paymentRemovePaymentSubscription.js.map +1 -0
- package/funcs/paymentUpdatePaymentSubscription.d.ts +13 -0
- package/funcs/paymentUpdatePaymentSubscription.d.ts.map +1 -0
- package/funcs/paymentUpdatePaymentSubscription.js +109 -0
- package/funcs/paymentUpdatePaymentSubscription.js.map +1 -0
- package/funcs/subscriptionCreatePaymentSubscription.d.ts +13 -0
- package/funcs/subscriptionCreatePaymentSubscription.d.ts.map +1 -0
- package/funcs/subscriptionCreatePaymentSubscription.js +105 -0
- package/funcs/subscriptionCreatePaymentSubscription.js.map +1 -0
- package/funcs/subscriptionGetPaymentSubscription.d.ts +13 -0
- package/funcs/subscriptionGetPaymentSubscription.d.ts.map +1 -0
- package/funcs/subscriptionGetPaymentSubscription.js +106 -0
- package/funcs/subscriptionGetPaymentSubscription.js.map +1 -0
- package/funcs/subscriptionListPaymentSubscriptions.d.ts +13 -0
- package/funcs/subscriptionListPaymentSubscriptions.d.ts.map +1 -0
- package/funcs/subscriptionListPaymentSubscriptions.js +110 -0
- package/funcs/subscriptionListPaymentSubscriptions.js.map +1 -0
- package/funcs/subscriptionPatchPaymentSubscription.d.ts +13 -0
- package/funcs/subscriptionPatchPaymentSubscription.d.ts.map +1 -0
- package/funcs/subscriptionPatchPaymentSubscription.js +109 -0
- package/funcs/subscriptionPatchPaymentSubscription.js.map +1 -0
- package/funcs/subscriptionRemovePaymentSubscription.d.ts +12 -0
- package/funcs/subscriptionRemovePaymentSubscription.d.ts.map +1 -0
- package/funcs/subscriptionRemovePaymentSubscription.js +104 -0
- package/funcs/subscriptionRemovePaymentSubscription.js.map +1 -0
- package/funcs/subscriptionUpdatePaymentSubscription.d.ts +13 -0
- package/funcs/subscriptionUpdatePaymentSubscription.d.ts.map +1 -0
- package/funcs/subscriptionUpdatePaymentSubscription.js +109 -0
- package/funcs/subscriptionUpdatePaymentSubscription.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/models/operations/createpaymentsubscription.d.ts +40 -0
- package/sdk/models/operations/createpaymentsubscription.d.ts.map +1 -0
- package/sdk/models/operations/createpaymentsubscription.js +75 -0
- package/sdk/models/operations/createpaymentsubscription.js.map +1 -0
- package/sdk/models/operations/getpaymentsubscription.d.ts +42 -0
- package/sdk/models/operations/getpaymentsubscription.d.ts.map +1 -0
- package/sdk/models/operations/getpaymentsubscription.js +72 -0
- package/sdk/models/operations/getpaymentsubscription.js.map +1 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listpaymentsubscriptions.d.ts +57 -0
- package/sdk/models/operations/listpaymentsubscriptions.d.ts.map +1 -0
- package/sdk/models/operations/listpaymentsubscriptions.js +89 -0
- package/sdk/models/operations/listpaymentsubscriptions.js.map +1 -0
- package/sdk/models/operations/patchpaymentsubscription.d.ts +45 -0
- package/sdk/models/operations/patchpaymentsubscription.d.ts.map +1 -0
- package/sdk/models/operations/patchpaymentsubscription.js +77 -0
- package/sdk/models/operations/patchpaymentsubscription.js.map +1 -0
- package/sdk/models/operations/removepaymentsubscription.d.ts +66 -0
- package/sdk/models/operations/removepaymentsubscription.d.ts.map +1 -0
- package/sdk/models/operations/removepaymentsubscription.js +105 -0
- package/sdk/models/operations/removepaymentsubscription.js.map +1 -0
- package/sdk/models/operations/updatepaymentsubscription.d.ts +45 -0
- package/sdk/models/operations/updatepaymentsubscription.d.ts.map +1 -0
- package/sdk/models/operations/updatepaymentsubscription.js +77 -0
- package/sdk/models/operations/updatepaymentsubscription.js.map +1 -0
- package/sdk/models/shared/accountingjournal.d.ts +2 -2
- package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournal.js +6 -4
- package/sdk/models/shared/accountingjournal.js.map +1 -1
- package/sdk/models/shared/index.d.ts +2 -1
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +2 -1
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/{paymentlinklineitem.d.ts → paymentlineitem.d.ts} +14 -14
- package/sdk/models/shared/paymentlineitem.d.ts.map +1 -0
- package/sdk/models/shared/{paymentlinklineitem.js → paymentlineitem.js} +17 -17
- package/sdk/models/shared/paymentlineitem.js.map +1 -0
- package/sdk/models/shared/paymentlink.d.ts +3 -3
- package/sdk/models/shared/paymentlink.d.ts.map +1 -1
- package/sdk/models/shared/paymentlink.js +3 -3
- package/sdk/models/shared/paymentlink.js.map +1 -1
- package/sdk/models/shared/paymentrefund.d.ts +2 -2
- package/sdk/models/shared/paymentrefund.d.ts.map +1 -1
- package/sdk/models/shared/paymentrefund.js +6 -4
- package/sdk/models/shared/paymentrefund.js.map +1 -1
- package/sdk/models/shared/paymentsubscription.d.ts +135 -0
- package/sdk/models/shared/paymentsubscription.d.ts.map +1 -0
- package/sdk/models/shared/paymentsubscription.js +176 -0
- package/sdk/models/shared/paymentsubscription.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/propertycrmeventemail.d.ts +2 -2
- package/sdk/models/shared/repoorganization.d.ts +4 -4
- package/sdk/models/shared/repoorganization.d.ts.map +1 -1
- package/sdk/models/shared/repoorganization.js +8 -6
- package/sdk/models/shared/repoorganization.js.map +1 -1
- package/sdk/models/shared/ticketingnote.d.ts +1 -1
- package/sdk/models/shared/ticketingnote.d.ts.map +1 -1
- package/sdk/models/shared/ticketingnote.js +3 -2
- package/sdk/models/shared/ticketingnote.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/payment.d.ts +24 -0
- package/sdk/payment.d.ts.map +1 -1
- package/sdk/payment.js +42 -0
- package/sdk/payment.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscription.d.ts +30 -0
- package/sdk/subscription.d.ts.map +1 -0
- package/sdk/subscription.js +54 -0
- package/sdk/subscription.js.map +1 -0
- package/src/funcs/paymentCreatePaymentSubscription.ts +136 -0
- package/src/funcs/paymentGetPaymentSubscription.ts +139 -0
- package/src/funcs/paymentListPaymentSubscriptions.ts +141 -0
- package/src/funcs/paymentPatchPaymentSubscription.ts +142 -0
- package/src/funcs/paymentRemovePaymentSubscription.ts +145 -0
- package/src/funcs/paymentUpdatePaymentSubscription.ts +142 -0
- package/src/funcs/subscriptionCreatePaymentSubscription.ts +136 -0
- package/src/funcs/subscriptionGetPaymentSubscription.ts +139 -0
- package/src/funcs/subscriptionListPaymentSubscriptions.ts +141 -0
- package/src/funcs/subscriptionPatchPaymentSubscription.ts +142 -0
- package/src/funcs/subscriptionRemovePaymentSubscription.ts +145 -0
- package/src/funcs/subscriptionUpdatePaymentSubscription.ts +142 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/createpaymentsubscription.ts +94 -0
- package/src/sdk/models/operations/getpaymentsubscription.ts +94 -0
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listpaymentsubscriptions.ts +126 -0
- package/src/sdk/models/operations/patchpaymentsubscription.ts +101 -0
- package/src/sdk/models/operations/removepaymentsubscription.ts +156 -0
- package/src/sdk/models/operations/updatepaymentsubscription.ts +101 -0
- package/src/sdk/models/shared/accountingjournal.ts +8 -6
- package/src/sdk/models/shared/index.ts +2 -1
- package/src/sdk/models/shared/{paymentlinklineitem.ts → paymentlineitem.ts} +21 -23
- package/src/sdk/models/shared/paymentlink.ts +9 -9
- package/src/sdk/models/shared/paymentrefund.ts +8 -6
- package/src/sdk/models/shared/paymentsubscription.ts +247 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/propertycrmeventemail.ts +2 -2
- package/src/sdk/models/shared/repoorganization.ts +12 -10
- package/src/sdk/models/shared/ticketingnote.ts +4 -3
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/payment.ts +90 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/subscription.ts +100 -0
- package/sdk/models/shared/paymentlinklineitem.d.ts.map +0 -1
- package/sdk/models/shared/paymentlinklineitem.js.map +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
19
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
20
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
21
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
22
|
+
import { Result } from "../sdk/types/fp.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Remove a subscription
|
|
26
|
+
*/
|
|
27
|
+
export async function subscriptionRemovePaymentSubscription(
|
|
28
|
+
client: UnifiedToCore,
|
|
29
|
+
request: operations.RemovePaymentSubscriptionRequest,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): Promise<
|
|
32
|
+
Result<
|
|
33
|
+
operations.RemovePaymentSubscriptionResponse | undefined,
|
|
34
|
+
| SDKError
|
|
35
|
+
| SDKValidationError
|
|
36
|
+
| UnexpectedClientError
|
|
37
|
+
| InvalidRequestError
|
|
38
|
+
| RequestAbortedError
|
|
39
|
+
| RequestTimeoutError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
>
|
|
42
|
+
> {
|
|
43
|
+
const parsed = safeParse(
|
|
44
|
+
request,
|
|
45
|
+
(value) =>
|
|
46
|
+
operations.RemovePaymentSubscriptionRequest$outboundSchema.parse(value),
|
|
47
|
+
"Input validation failed",
|
|
48
|
+
);
|
|
49
|
+
if (!parsed.ok) {
|
|
50
|
+
return parsed;
|
|
51
|
+
}
|
|
52
|
+
const payload = parsed.value;
|
|
53
|
+
const body = null;
|
|
54
|
+
|
|
55
|
+
const pathParams = {
|
|
56
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
57
|
+
explode: false,
|
|
58
|
+
charEncoding: "percent",
|
|
59
|
+
}),
|
|
60
|
+
id: encodeSimple("id", payload.id, {
|
|
61
|
+
explode: false,
|
|
62
|
+
charEncoding: "percent",
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const path = pathToFunc("/payment/{connection_id}/subscription/{id}")(
|
|
67
|
+
pathParams,
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
const headers = new Headers({
|
|
71
|
+
Accept: "*/*",
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
75
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
76
|
+
|
|
77
|
+
const context = {
|
|
78
|
+
operationID: "removePaymentSubscription",
|
|
79
|
+
oAuth2Scopes: [],
|
|
80
|
+
|
|
81
|
+
resolvedSecurity: requestSecurity,
|
|
82
|
+
|
|
83
|
+
securitySource: client._options.security,
|
|
84
|
+
retryConfig: options?.retries
|
|
85
|
+
|| client._options.retryConfig
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
98
|
+
}, options);
|
|
99
|
+
if (!requestRes.ok) {
|
|
100
|
+
return requestRes;
|
|
101
|
+
}
|
|
102
|
+
const req = requestRes.value;
|
|
103
|
+
|
|
104
|
+
const doResult = await client._do(req, {
|
|
105
|
+
context,
|
|
106
|
+
errorCodes: ["4XX", "5XX"],
|
|
107
|
+
retryConfig: context.retryConfig,
|
|
108
|
+
retryCodes: context.retryCodes,
|
|
109
|
+
});
|
|
110
|
+
if (!doResult.ok) {
|
|
111
|
+
return doResult;
|
|
112
|
+
}
|
|
113
|
+
const response = doResult.value;
|
|
114
|
+
|
|
115
|
+
const responseFields = {
|
|
116
|
+
HttpMeta: { Response: response, Request: req },
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const [result] = await M.match<
|
|
120
|
+
operations.RemovePaymentSubscriptionResponse | undefined,
|
|
121
|
+
| SDKError
|
|
122
|
+
| SDKValidationError
|
|
123
|
+
| UnexpectedClientError
|
|
124
|
+
| InvalidRequestError
|
|
125
|
+
| RequestAbortedError
|
|
126
|
+
| RequestTimeoutError
|
|
127
|
+
| ConnectionError
|
|
128
|
+
>(
|
|
129
|
+
M.nil(
|
|
130
|
+
200,
|
|
131
|
+
operations.RemovePaymentSubscriptionResponse$inboundSchema.optional(),
|
|
132
|
+
),
|
|
133
|
+
M.fail(["4XX", "5XX"]),
|
|
134
|
+
M.nil(
|
|
135
|
+
"default",
|
|
136
|
+
operations.RemovePaymentSubscriptionResponse$inboundSchema.optional(),
|
|
137
|
+
{ hdrs: true },
|
|
138
|
+
),
|
|
139
|
+
)(response, { extraFields: responseFields });
|
|
140
|
+
if (!result.ok) {
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return result;
|
|
145
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { UnifiedToCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../sdk/models/errors/httpclienterrors.js";
|
|
19
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
20
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
21
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
22
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
23
|
+
import { Result } from "../sdk/types/fp.js";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Update a subscription
|
|
27
|
+
*/
|
|
28
|
+
export async function subscriptionUpdatePaymentSubscription(
|
|
29
|
+
client: UnifiedToCore,
|
|
30
|
+
request: operations.UpdatePaymentSubscriptionRequest,
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): Promise<
|
|
33
|
+
Result<
|
|
34
|
+
shared.PaymentSubscription,
|
|
35
|
+
| SDKError
|
|
36
|
+
| SDKValidationError
|
|
37
|
+
| UnexpectedClientError
|
|
38
|
+
| InvalidRequestError
|
|
39
|
+
| RequestAbortedError
|
|
40
|
+
| RequestTimeoutError
|
|
41
|
+
| ConnectionError
|
|
42
|
+
>
|
|
43
|
+
> {
|
|
44
|
+
const parsed = safeParse(
|
|
45
|
+
request,
|
|
46
|
+
(value) =>
|
|
47
|
+
operations.UpdatePaymentSubscriptionRequest$outboundSchema.parse(value),
|
|
48
|
+
"Input validation failed",
|
|
49
|
+
);
|
|
50
|
+
if (!parsed.ok) {
|
|
51
|
+
return parsed;
|
|
52
|
+
}
|
|
53
|
+
const payload = parsed.value;
|
|
54
|
+
const body = encodeJSON("body", payload.PaymentSubscription, {
|
|
55
|
+
explode: true,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const pathParams = {
|
|
59
|
+
connection_id: encodeSimple("connection_id", payload.connection_id, {
|
|
60
|
+
explode: false,
|
|
61
|
+
charEncoding: "percent",
|
|
62
|
+
}),
|
|
63
|
+
id: encodeSimple("id", payload.id, {
|
|
64
|
+
explode: false,
|
|
65
|
+
charEncoding: "percent",
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const path = pathToFunc("/payment/{connection_id}/subscription/{id}")(
|
|
70
|
+
pathParams,
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const query = encodeFormQuery({
|
|
74
|
+
"fields": payload.fields,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const headers = new Headers({
|
|
78
|
+
"Content-Type": "application/json",
|
|
79
|
+
Accept: "application/json",
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
83
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
84
|
+
|
|
85
|
+
const context = {
|
|
86
|
+
operationID: "updatePaymentSubscription",
|
|
87
|
+
oAuth2Scopes: [],
|
|
88
|
+
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
|
|
91
|
+
securitySource: client._options.security,
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const requestRes = client._createRequest(context, {
|
|
99
|
+
security: requestSecurity,
|
|
100
|
+
method: "PUT",
|
|
101
|
+
baseURL: options?.serverURL,
|
|
102
|
+
path: path,
|
|
103
|
+
headers: headers,
|
|
104
|
+
query: query,
|
|
105
|
+
body: body,
|
|
106
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
107
|
+
}, options);
|
|
108
|
+
if (!requestRes.ok) {
|
|
109
|
+
return requestRes;
|
|
110
|
+
}
|
|
111
|
+
const req = requestRes.value;
|
|
112
|
+
|
|
113
|
+
const doResult = await client._do(req, {
|
|
114
|
+
context,
|
|
115
|
+
errorCodes: ["4XX", "5XX"],
|
|
116
|
+
retryConfig: context.retryConfig,
|
|
117
|
+
retryCodes: context.retryCodes,
|
|
118
|
+
});
|
|
119
|
+
if (!doResult.ok) {
|
|
120
|
+
return doResult;
|
|
121
|
+
}
|
|
122
|
+
const response = doResult.value;
|
|
123
|
+
|
|
124
|
+
const [result] = await M.match<
|
|
125
|
+
shared.PaymentSubscription,
|
|
126
|
+
| SDKError
|
|
127
|
+
| SDKValidationError
|
|
128
|
+
| UnexpectedClientError
|
|
129
|
+
| InvalidRequestError
|
|
130
|
+
| RequestAbortedError
|
|
131
|
+
| RequestTimeoutError
|
|
132
|
+
| ConnectionError
|
|
133
|
+
>(
|
|
134
|
+
M.json(200, shared.PaymentSubscription$inboundSchema),
|
|
135
|
+
M.fail(["4XX", "5XX"]),
|
|
136
|
+
)(response);
|
|
137
|
+
if (!result.ok) {
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return result;
|
|
142
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.9.
|
|
68
|
+
sdkVersion: "2.9.15",
|
|
69
69
|
genVersion: "2.484.0",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 2.9.
|
|
71
|
+
"speakeasy-sdk/typescript 2.9.15 2.484.0 1.0 @unified-api/typescript-sdk",
|
|
72
72
|
} as const;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type CreatePaymentSubscriptionRequest = {
|
|
13
|
+
paymentSubscription?: shared.PaymentSubscription | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const CreatePaymentSubscriptionRequest$inboundSchema: z.ZodType<
|
|
26
|
+
CreatePaymentSubscriptionRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
PaymentSubscription: shared.PaymentSubscription$inboundSchema.optional(),
|
|
31
|
+
connection_id: z.string(),
|
|
32
|
+
fields: z.array(z.string()).optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"PaymentSubscription": "paymentSubscription",
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type CreatePaymentSubscriptionRequest$Outbound = {
|
|
42
|
+
PaymentSubscription?: shared.PaymentSubscription$Outbound | undefined;
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CreatePaymentSubscriptionRequest$outboundSchema: z.ZodType<
|
|
49
|
+
CreatePaymentSubscriptionRequest$Outbound,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
CreatePaymentSubscriptionRequest
|
|
52
|
+
> = z.object({
|
|
53
|
+
paymentSubscription: shared.PaymentSubscription$outboundSchema.optional(),
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
paymentSubscription: "PaymentSubscription",
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace CreatePaymentSubscriptionRequest$ {
|
|
68
|
+
/** @deprecated use `CreatePaymentSubscriptionRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = CreatePaymentSubscriptionRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `CreatePaymentSubscriptionRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = CreatePaymentSubscriptionRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `CreatePaymentSubscriptionRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = CreatePaymentSubscriptionRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function createPaymentSubscriptionRequestToJSON(
|
|
77
|
+
createPaymentSubscriptionRequest: CreatePaymentSubscriptionRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreatePaymentSubscriptionRequest$outboundSchema.parse(
|
|
81
|
+
createPaymentSubscriptionRequest,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function createPaymentSubscriptionRequestFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<CreatePaymentSubscriptionRequest, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => CreatePaymentSubscriptionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'CreatePaymentSubscriptionRequest' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetPaymentSubscriptionRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the Subscription
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const GetPaymentSubscriptionRequest$inboundSchema: z.ZodType<
|
|
28
|
+
GetPaymentSubscriptionRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
fields: z.array(z.string()).optional(),
|
|
34
|
+
id: z.string(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"connection_id": "connectionId",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type GetPaymentSubscriptionRequest$Outbound = {
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GetPaymentSubscriptionRequest$outboundSchema: z.ZodType<
|
|
50
|
+
GetPaymentSubscriptionRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
GetPaymentSubscriptionRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
id: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace GetPaymentSubscriptionRequest$ {
|
|
68
|
+
/** @deprecated use `GetPaymentSubscriptionRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = GetPaymentSubscriptionRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `GetPaymentSubscriptionRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = GetPaymentSubscriptionRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `GetPaymentSubscriptionRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = GetPaymentSubscriptionRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function getPaymentSubscriptionRequestToJSON(
|
|
77
|
+
getPaymentSubscriptionRequest: GetPaymentSubscriptionRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
GetPaymentSubscriptionRequest$outboundSchema.parse(
|
|
81
|
+
getPaymentSubscriptionRequest,
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function getPaymentSubscriptionRequestFromJSON(
|
|
87
|
+
jsonString: string,
|
|
88
|
+
): SafeParseResult<GetPaymentSubscriptionRequest, SDKValidationError> {
|
|
89
|
+
return safeParse(
|
|
90
|
+
jsonString,
|
|
91
|
+
(x) => GetPaymentSubscriptionRequest$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
+
`Failed to parse 'GetPaymentSubscriptionRequest' from JSON`,
|
|
93
|
+
);
|
|
94
|
+
}
|
|
@@ -32,6 +32,8 @@ export const Scopes = {
|
|
|
32
32
|
PaymentRefundRead: "payment_refund_read",
|
|
33
33
|
PaymentLinkRead: "payment_link_read",
|
|
34
34
|
PaymentLinkWrite: "payment_link_write",
|
|
35
|
+
PaymentSubscriptionRead: "payment_subscription_read",
|
|
36
|
+
PaymentSubscriptionWrite: "payment_subscription_write",
|
|
35
37
|
CommerceItemRead: "commerce_item_read",
|
|
36
38
|
CommerceItemWrite: "commerce_item_write",
|
|
37
39
|
CommerceCollectionRead: "commerce_collection_read",
|
|
@@ -45,6 +45,7 @@ export * from "./createpassthroughjson.js";
|
|
|
45
45
|
export * from "./createpassthroughraw.js";
|
|
46
46
|
export * from "./createpaymentlink.js";
|
|
47
47
|
export * from "./createpaymentpayment.js";
|
|
48
|
+
export * from "./createpaymentsubscription.js";
|
|
48
49
|
export * from "./createrepobranch.js";
|
|
49
50
|
export * from "./createrepocommit.js";
|
|
50
51
|
export * from "./createrepoorganization.js";
|
|
@@ -107,6 +108,7 @@ export * from "./getpaymentlink.js";
|
|
|
107
108
|
export * from "./getpaymentpayment.js";
|
|
108
109
|
export * from "./getpaymentpayout.js";
|
|
109
110
|
export * from "./getpaymentrefund.js";
|
|
111
|
+
export * from "./getpaymentsubscription.js";
|
|
110
112
|
export * from "./getrepobranch.js";
|
|
111
113
|
export * from "./getrepocommit.js";
|
|
112
114
|
export * from "./getrepoorganization.js";
|
|
@@ -178,6 +180,7 @@ export * from "./listpaymentlinks.js";
|
|
|
178
180
|
export * from "./listpaymentpayments.js";
|
|
179
181
|
export * from "./listpaymentpayouts.js";
|
|
180
182
|
export * from "./listpaymentrefunds.js";
|
|
183
|
+
export * from "./listpaymentsubscriptions.js";
|
|
181
184
|
export * from "./listrepobranches.js";
|
|
182
185
|
export * from "./listrepocommits.js";
|
|
183
186
|
export * from "./listrepoorganizations.js";
|
|
@@ -241,6 +244,7 @@ export * from "./patchpassthroughjson.js";
|
|
|
241
244
|
export * from "./patchpassthroughraw.js";
|
|
242
245
|
export * from "./patchpaymentlink.js";
|
|
243
246
|
export * from "./patchpaymentpayment.js";
|
|
247
|
+
export * from "./patchpaymentsubscription.js";
|
|
244
248
|
export * from "./patchrepobranch.js";
|
|
245
249
|
export * from "./patchrepocommit.js";
|
|
246
250
|
export * from "./patchrepoorganization.js";
|
|
@@ -299,6 +303,7 @@ export * from "./removemetadatametadata.js";
|
|
|
299
303
|
export * from "./removepassthrough.js";
|
|
300
304
|
export * from "./removepaymentlink.js";
|
|
301
305
|
export * from "./removepaymentpayment.js";
|
|
306
|
+
export * from "./removepaymentsubscription.js";
|
|
302
307
|
export * from "./removerepobranch.js";
|
|
303
308
|
export * from "./removerepocommit.js";
|
|
304
309
|
export * from "./removerepoorganization.js";
|
|
@@ -357,6 +362,7 @@ export * from "./updatepassthroughjson.js";
|
|
|
357
362
|
export * from "./updatepassthroughraw.js";
|
|
358
363
|
export * from "./updatepaymentlink.js";
|
|
359
364
|
export * from "./updatepaymentpayment.js";
|
|
365
|
+
export * from "./updatepaymentsubscription.js";
|
|
360
366
|
export * from "./updaterepobranch.js";
|
|
361
367
|
export * from "./updaterepocommit.js";
|
|
362
368
|
export * from "./updaterepoorganization.js";
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ListPaymentSubscriptionsRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
contactId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Comma-delimited fields to return
|
|
19
|
+
*/
|
|
20
|
+
fields?: Array<string> | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
order?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Query string to search. eg. email address or name
|
|
26
|
+
*/
|
|
27
|
+
query?: string | undefined;
|
|
28
|
+
sort?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Return only results whose updated date is equal or greater to this value
|
|
31
|
+
*/
|
|
32
|
+
updatedGte?: Date | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ListPaymentSubscriptionsRequest$inboundSchema: z.ZodType<
|
|
37
|
+
ListPaymentSubscriptionsRequest,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
connection_id: z.string(),
|
|
42
|
+
contact_id: z.string().optional(),
|
|
43
|
+
fields: z.array(z.string()).optional(),
|
|
44
|
+
limit: z.number().optional(),
|
|
45
|
+
offset: z.number().optional(),
|
|
46
|
+
order: z.string().optional(),
|
|
47
|
+
query: z.string().optional(),
|
|
48
|
+
sort: z.string().optional(),
|
|
49
|
+
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
|
+
.optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"connection_id": "connectionId",
|
|
54
|
+
"contact_id": "contactId",
|
|
55
|
+
"updated_gte": "updatedGte",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type ListPaymentSubscriptionsRequest$Outbound = {
|
|
61
|
+
connection_id: string;
|
|
62
|
+
contact_id?: string | undefined;
|
|
63
|
+
fields?: Array<string> | undefined;
|
|
64
|
+
limit?: number | undefined;
|
|
65
|
+
offset?: number | undefined;
|
|
66
|
+
order?: string | undefined;
|
|
67
|
+
query?: string | undefined;
|
|
68
|
+
sort?: string | undefined;
|
|
69
|
+
updated_gte?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ListPaymentSubscriptionsRequest$outboundSchema: z.ZodType<
|
|
74
|
+
ListPaymentSubscriptionsRequest$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
ListPaymentSubscriptionsRequest
|
|
77
|
+
> = z.object({
|
|
78
|
+
connectionId: z.string(),
|
|
79
|
+
contactId: z.string().optional(),
|
|
80
|
+
fields: z.array(z.string()).optional(),
|
|
81
|
+
limit: z.number().optional(),
|
|
82
|
+
offset: z.number().optional(),
|
|
83
|
+
order: z.string().optional(),
|
|
84
|
+
query: z.string().optional(),
|
|
85
|
+
sort: z.string().optional(),
|
|
86
|
+
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
connectionId: "connection_id",
|
|
90
|
+
contactId: "contact_id",
|
|
91
|
+
updatedGte: "updated_gte",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace ListPaymentSubscriptionsRequest$ {
|
|
100
|
+
/** @deprecated use `ListPaymentSubscriptionsRequest$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = ListPaymentSubscriptionsRequest$inboundSchema;
|
|
102
|
+
/** @deprecated use `ListPaymentSubscriptionsRequest$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = ListPaymentSubscriptionsRequest$outboundSchema;
|
|
104
|
+
/** @deprecated use `ListPaymentSubscriptionsRequest$Outbound` instead. */
|
|
105
|
+
export type Outbound = ListPaymentSubscriptionsRequest$Outbound;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function listPaymentSubscriptionsRequestToJSON(
|
|
109
|
+
listPaymentSubscriptionsRequest: ListPaymentSubscriptionsRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
ListPaymentSubscriptionsRequest$outboundSchema.parse(
|
|
113
|
+
listPaymentSubscriptionsRequest,
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function listPaymentSubscriptionsRequestFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<ListPaymentSubscriptionsRequest, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => ListPaymentSubscriptionsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'ListPaymentSubscriptionsRequest' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|