@paygentic/sdk 0.10.0 → 0.10.2
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/dist/commonjs/funcs/billableMetricsCreate.js +2 -2
- package/dist/commonjs/funcs/billableMetricsCreate.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsListEvents.js +2 -2
- package/dist/commonjs/funcs/billableMetricsListEvents.js.map +1 -1
- package/dist/commonjs/funcs/billableMetricsMeter.js +2 -2
- package/dist/commonjs/funcs/billableMetricsMeter.js.map +1 -1
- package/dist/commonjs/funcs/costsCreateCost.js +2 -2
- package/dist/commonjs/funcs/costsCreateCost.js.map +1 -1
- package/dist/commonjs/funcs/entitlementsList.js +2 -2
- package/dist/commonjs/funcs/entitlementsList.js.map +1 -1
- package/dist/commonjs/funcs/eventsIngest.js +2 -2
- package/dist/commonjs/funcs/eventsIngest.js.map +1 -1
- package/dist/commonjs/funcs/feesCreate.js +2 -2
- package/dist/commonjs/funcs/feesCreate.js.map +1 -1
- package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.d.ts +1 -1
- package/dist/commonjs/funcs/invoicesV2RecordInvoicePayment.js +1 -1
- package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.d.ts +1 -1
- package/dist/commonjs/funcs/invoicesV2RetryInvoicePayment.js +1 -1
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.js +2 -2
- package/dist/commonjs/funcs/merchantIntegrationsUpsertMerchantIntegration.js.map +1 -1
- package/dist/commonjs/funcs/merchantsReset.js +2 -2
- package/dist/commonjs/funcs/merchantsReset.js.map +1 -1
- package/dist/commonjs/funcs/paymentsCreate.js +2 -2
- package/dist/commonjs/funcs/paymentsCreate.js.map +1 -1
- package/dist/commonjs/funcs/plansCreate.js +2 -2
- package/dist/commonjs/funcs/plansCreate.js.map +1 -1
- package/dist/commonjs/funcs/productsCreate.js +2 -2
- package/dist/commonjs/funcs/productsCreate.js.map +1 -1
- package/dist/commonjs/funcs/testClocksCreate.js +2 -2
- package/dist/commonjs/funcs/testClocksCreate.js.map +1 -1
- package/dist/commonjs/funcs/webhooksEnable.js +2 -2
- package/dist/commonjs/funcs/webhooksEnable.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGetPortal.d.ts +1 -1
- package/dist/commonjs/funcs/webhooksGetPortal.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/operations/ingestevent.d.ts +4 -4
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +5 -2
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/sdk/invoicesv2.d.ts +2 -2
- package/dist/commonjs/sdk/invoicesv2.js +2 -2
- package/dist/commonjs/sdk/webhooks.d.ts +1 -1
- package/dist/commonjs/sdk/webhooks.js +1 -1
- package/dist/esm/funcs/billableMetricsCreate.js +2 -2
- package/dist/esm/funcs/billableMetricsCreate.js.map +1 -1
- package/dist/esm/funcs/billableMetricsListEvents.js +2 -2
- package/dist/esm/funcs/billableMetricsListEvents.js.map +1 -1
- package/dist/esm/funcs/billableMetricsMeter.js +2 -2
- package/dist/esm/funcs/billableMetricsMeter.js.map +1 -1
- package/dist/esm/funcs/costsCreateCost.js +2 -2
- package/dist/esm/funcs/costsCreateCost.js.map +1 -1
- package/dist/esm/funcs/entitlementsList.js +2 -2
- package/dist/esm/funcs/entitlementsList.js.map +1 -1
- package/dist/esm/funcs/eventsIngest.js +2 -2
- package/dist/esm/funcs/eventsIngest.js.map +1 -1
- package/dist/esm/funcs/feesCreate.js +2 -2
- package/dist/esm/funcs/feesCreate.js.map +1 -1
- package/dist/esm/funcs/invoicesV2RecordInvoicePayment.d.ts +1 -1
- package/dist/esm/funcs/invoicesV2RecordInvoicePayment.js +1 -1
- package/dist/esm/funcs/invoicesV2RetryInvoicePayment.d.ts +1 -1
- package/dist/esm/funcs/invoicesV2RetryInvoicePayment.js +1 -1
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.js +2 -2
- package/dist/esm/funcs/merchantIntegrationsUpsertMerchantIntegration.js.map +1 -1
- package/dist/esm/funcs/merchantsReset.js +2 -2
- package/dist/esm/funcs/merchantsReset.js.map +1 -1
- package/dist/esm/funcs/paymentsCreate.js +2 -2
- package/dist/esm/funcs/paymentsCreate.js.map +1 -1
- package/dist/esm/funcs/plansCreate.js +2 -2
- package/dist/esm/funcs/plansCreate.js.map +1 -1
- package/dist/esm/funcs/productsCreate.js +2 -2
- package/dist/esm/funcs/productsCreate.js.map +1 -1
- package/dist/esm/funcs/testClocksCreate.js +2 -2
- package/dist/esm/funcs/testClocksCreate.js.map +1 -1
- package/dist/esm/funcs/webhooksEnable.js +2 -2
- package/dist/esm/funcs/webhooksEnable.js.map +1 -1
- package/dist/esm/funcs/webhooksGetPortal.d.ts +1 -1
- package/dist/esm/funcs/webhooksGetPortal.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/operations/ingestevent.d.ts +4 -4
- package/dist/esm/models/operations/listsubscriptions.d.ts +5 -2
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +1 -1
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/sdk/invoicesv2.d.ts +2 -2
- package/dist/esm/sdk/invoicesv2.js +2 -2
- package/dist/esm/sdk/webhooks.d.ts +1 -1
- package/dist/esm/sdk/webhooks.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/billableMetricsCreate.ts +2 -2
- package/src/funcs/billableMetricsListEvents.ts +2 -2
- package/src/funcs/billableMetricsMeter.ts +2 -2
- package/src/funcs/costsCreateCost.ts +2 -2
- package/src/funcs/entitlementsList.ts +2 -2
- package/src/funcs/eventsIngest.ts +2 -2
- package/src/funcs/feesCreate.ts +2 -2
- package/src/funcs/invoicesV2RecordInvoicePayment.ts +1 -1
- package/src/funcs/invoicesV2RetryInvoicePayment.ts +1 -1
- package/src/funcs/merchantIntegrationsUpsertMerchantIntegration.ts +2 -2
- package/src/funcs/merchantsReset.ts +2 -2
- package/src/funcs/paymentsCreate.ts +2 -2
- package/src/funcs/plansCreate.ts +2 -2
- package/src/funcs/productsCreate.ts +2 -2
- package/src/funcs/testClocksCreate.ts +2 -2
- package/src/funcs/webhooksEnable.ts +2 -2
- package/src/funcs/webhooksGetPortal.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/ingestevent.ts +4 -4
- package/src/models/operations/listsubscriptions.ts +6 -3
- package/src/sdk/invoicesv2.ts +2 -2
- package/src/sdk/webhooks.ts +1 -1
|
@@ -135,7 +135,7 @@ async function $do(
|
|
|
135
135
|
|
|
136
136
|
const doResult = await client._do(req, {
|
|
137
137
|
context,
|
|
138
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
138
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
139
139
|
retryConfig: context.retryConfig,
|
|
140
140
|
retryCodes: context.retryCodes,
|
|
141
141
|
});
|
|
@@ -163,7 +163,7 @@ async function $do(
|
|
|
163
163
|
>(
|
|
164
164
|
M.json(200, models.MerchantIntegration$inboundSchema),
|
|
165
165
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
166
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
166
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
167
167
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
168
168
|
M.fail("4XX"),
|
|
169
169
|
M.fail("5XX"),
|
|
@@ -144,7 +144,7 @@ async function $do(
|
|
|
144
144
|
|
|
145
145
|
const doResult = await client._do(req, {
|
|
146
146
|
context,
|
|
147
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "502", "5XX"],
|
|
147
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "502", "5XX"],
|
|
148
148
|
retryConfig: context.retryConfig,
|
|
149
149
|
retryCodes: context.retryCodes,
|
|
150
150
|
});
|
|
@@ -172,7 +172,7 @@ async function $do(
|
|
|
172
172
|
>(
|
|
173
173
|
M.nil(204, z.void()),
|
|
174
174
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
175
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
175
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
176
176
|
M.jsonErr([500, 502], errors.ErrorT$inboundSchema),
|
|
177
177
|
M.fail("4XX"),
|
|
178
178
|
M.fail("5XX"),
|
|
@@ -134,7 +134,7 @@ async function $do(
|
|
|
134
134
|
|
|
135
135
|
const doResult = await client._do(req, {
|
|
136
136
|
context,
|
|
137
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
137
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
138
138
|
retryConfig: context.retryConfig,
|
|
139
139
|
retryCodes: context.retryCodes,
|
|
140
140
|
});
|
|
@@ -162,7 +162,7 @@ async function $do(
|
|
|
162
162
|
>(
|
|
163
163
|
M.json([200, 201], models.Payment$inboundSchema),
|
|
164
164
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
165
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
165
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
166
166
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
167
167
|
M.fail("4XX"),
|
|
168
168
|
M.fail("5XX"),
|
package/src/funcs/plansCreate.ts
CHANGED
|
@@ -131,7 +131,7 @@ async function $do(
|
|
|
131
131
|
|
|
132
132
|
const doResult = await client._do(req, {
|
|
133
133
|
context,
|
|
134
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
134
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
135
135
|
retryConfig: context.retryConfig,
|
|
136
136
|
retryCodes: context.retryCodes,
|
|
137
137
|
});
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
>(
|
|
160
160
|
M.json(201, models.Plan$inboundSchema),
|
|
161
161
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
162
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
162
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
163
163
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
@@ -131,7 +131,7 @@ async function $do(
|
|
|
131
131
|
|
|
132
132
|
const doResult = await client._do(req, {
|
|
133
133
|
context,
|
|
134
|
-
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
134
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "500", "5XX"],
|
|
135
135
|
retryConfig: context.retryConfig,
|
|
136
136
|
retryCodes: context.retryCodes,
|
|
137
137
|
});
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
>(
|
|
160
160
|
M.json(201, models.Product$inboundSchema),
|
|
161
161
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
162
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
162
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
163
163
|
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
|
|
133
133
|
const doResult = await client._do(req, {
|
|
134
134
|
context,
|
|
135
|
-
errorCodes: ["400", "401", "403", "4XX", "5XX"],
|
|
135
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
136
136
|
retryConfig: context.retryConfig,
|
|
137
137
|
retryCodes: context.retryCodes,
|
|
138
138
|
});
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
| SDKValidationError
|
|
159
159
|
>(
|
|
160
160
|
M.json(201, models.TestClock$inboundSchema),
|
|
161
|
-
M.jsonErr([400, 401, 403], errors.ErrorT$inboundSchema),
|
|
161
|
+
M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema),
|
|
162
162
|
M.fail("4XX"),
|
|
163
163
|
M.fail("5XX"),
|
|
164
164
|
)(response, req, { extraFields: responseFields });
|
|
@@ -139,7 +139,7 @@ async function $do(
|
|
|
139
139
|
|
|
140
140
|
const doResult = await client._do(req, {
|
|
141
141
|
context,
|
|
142
|
-
errorCodes: ["400", "401", "403", "4XX", "5XX"],
|
|
142
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
143
143
|
retryConfig: context.retryConfig,
|
|
144
144
|
retryCodes: context.retryCodes,
|
|
145
145
|
});
|
|
@@ -167,7 +167,7 @@ async function $do(
|
|
|
167
167
|
>(
|
|
168
168
|
M.json(201, models.Webhooks$inboundSchema),
|
|
169
169
|
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
170
|
-
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
170
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
172
172
|
M.fail("5XX"),
|
|
173
173
|
)(response, req, { extraFields: responseFields });
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Get Portal Access
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Returns a link to the webhook portal, where you add endpoints, choose event types, read the signing secret and inspect deliveries. The link opens without a login and expires one hour after it is issued, at `expiresAt`. Treat it as a secret. Returns 404 unless webhooks are enabled.
|
|
33
|
+
* Returns a link to the webhook portal, where you add endpoints, choose event types, read the signing secret and inspect deliveries. The link opens without a login and expires one hour after it is issued, at `expiresAt`. Treat it as a secret. The link is read-only unless the caller holds `webhooks:write`: a read-only portal shows endpoints and deliveries but does not let you add or change endpoints, read the signing secret or replay messages. Returns 404 unless webhooks are enabled.
|
|
34
34
|
*/
|
|
35
35
|
export function webhooksGetPortal(
|
|
36
36
|
client: PaygenticCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.10.
|
|
68
|
+
sdkVersion: "0.10.2",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.10.2 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
|
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
|
|
|
6
6
|
|
|
7
7
|
export type IngestEventRequestBody2 = {
|
|
8
8
|
/**
|
|
9
|
-
* CloudEvents type. Must match an eventType configured on a BillableMetric.
|
|
9
|
+
* CloudEvents type. Must match an eventType configured on a BillableMetric. Must not contain control characters.
|
|
10
10
|
*/
|
|
11
11
|
type: string;
|
|
12
12
|
/**
|
|
@@ -18,7 +18,7 @@ export type IngestEventRequestBody2 = {
|
|
|
18
18
|
*/
|
|
19
19
|
subject?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Your own customer identifier, matched against the customer's externalId. Fallback for when the Paygentic customer ID is not known — prefer subject when it is. Events reported before the customer exists are linked retroactively once a customer with this externalId is created. Resolution is eventually consistent: after an externalId is removed or reassigned, events may resolve to the previous customer for up to one hour. If subject is also provided, subject takes precedence and externalSubject is recorded but not used for resolution.
|
|
21
|
+
* Your own customer identifier, matched against the customer's externalId. Fallback for when the Paygentic customer ID is not known — prefer subject when it is. Events reported before the customer exists are linked retroactively once a customer with this externalId is created. Resolution is eventually consistent: after an externalId is removed or reassigned, or its customer is deleted, events may resolve to the previous customer for up to one hour, and for up to 48 hours if Paygentic's database is unavailable. If subject is also provided, subject takes precedence and externalSubject is recorded but not used for resolution.
|
|
22
22
|
*/
|
|
23
23
|
externalSubject: string;
|
|
24
24
|
/**
|
|
@@ -45,7 +45,7 @@ export type IngestEventRequestBody2 = {
|
|
|
45
45
|
|
|
46
46
|
export type IngestEventRequestBody1 = {
|
|
47
47
|
/**
|
|
48
|
-
* CloudEvents type. Must match an eventType configured on a BillableMetric.
|
|
48
|
+
* CloudEvents type. Must match an eventType configured on a BillableMetric. Must not contain control characters.
|
|
49
49
|
*/
|
|
50
50
|
type: string;
|
|
51
51
|
/**
|
|
@@ -57,7 +57,7 @@ export type IngestEventRequestBody1 = {
|
|
|
57
57
|
*/
|
|
58
58
|
subject: string;
|
|
59
59
|
/**
|
|
60
|
-
* Your own customer identifier, matched against the customer's externalId. Fallback for when the Paygentic customer ID is not known — prefer subject when it is. Events reported before the customer exists are linked retroactively once a customer with this externalId is created. Resolution is eventually consistent: after an externalId is removed or reassigned, events may resolve to the previous customer for up to one hour. If subject is also provided, subject takes precedence and externalSubject is recorded but not used for resolution.
|
|
60
|
+
* Your own customer identifier, matched against the customer's externalId. Fallback for when the Paygentic customer ID is not known — prefer subject when it is. Events reported before the customer exists are linked retroactively once a customer with this externalId is created. Resolution is eventually consistent: after an externalId is removed or reassigned, or its customer is deleted, events may resolve to the previous customer for up to one hour, and for up to 48 hours if Paygentic's database is unavailable. If subject is also provided, subject takes precedence and externalSubject is recorded but not used for resolution.
|
|
61
61
|
*/
|
|
62
62
|
externalSubject?: string | undefined;
|
|
63
63
|
/**
|
|
@@ -50,7 +50,10 @@ export type ListSubscriptionsRequest = {
|
|
|
50
50
|
* Number of subscriptions to skip
|
|
51
51
|
*/
|
|
52
52
|
offset?: string | undefined;
|
|
53
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Return subscriptions in any of these statuses. Repeat the parameter to pass several, e.g. `?status=active&status=pending_payment`. Omit it to return every status. An SDK leaves an empty list out of the request, so an empty list also returns every status: check for one before calling if it should match nothing.
|
|
55
|
+
*/
|
|
56
|
+
status?: Array<ListSubscriptionsStatus> | undefined;
|
|
54
57
|
/**
|
|
55
58
|
* Filter subscriptions started at or before this ISO 8601 date-time
|
|
56
59
|
*/
|
|
@@ -88,7 +91,7 @@ export type ListSubscriptionsRequest$Outbound = {
|
|
|
88
91
|
limit: string;
|
|
89
92
|
merchantId?: string | undefined;
|
|
90
93
|
offset: string;
|
|
91
|
-
status?: string | undefined;
|
|
94
|
+
status?: Array<string> | undefined;
|
|
92
95
|
startedBefore?: string | undefined;
|
|
93
96
|
include?: string | undefined;
|
|
94
97
|
};
|
|
@@ -104,7 +107,7 @@ export const ListSubscriptionsRequest$outboundSchema: z.ZodType<
|
|
|
104
107
|
limit: z.string().default("10"),
|
|
105
108
|
merchantId: z.string().optional(),
|
|
106
109
|
offset: z.string().default("0"),
|
|
107
|
-
status: ListSubscriptionsStatus$outboundSchema.optional(),
|
|
110
|
+
status: z.array(ListSubscriptionsStatus$outboundSchema).optional(),
|
|
108
111
|
startedBefore: z.date().transform(v => v.toISOString()).optional(),
|
|
109
112
|
include: Include$outboundSchema.optional(),
|
|
110
113
|
});
|
package/src/sdk/invoicesv2.ts
CHANGED
|
@@ -148,7 +148,7 @@ export class InvoicesV2 extends ClientSDK {
|
|
|
148
148
|
* - `hosted_link`: create a new hosted payment link and email it to the customer. The invoice stays unpaid until the customer pays on the link. Each call replaces the previous link. A payment link expires after 30 days; to collect an invoice whose link has expired, call this method again.
|
|
149
149
|
* - `out_of_band`: record a payment that you collected outside Paygentic. The invoice changes to `PAID` immediately. A second call returns 409.
|
|
150
150
|
*
|
|
151
|
-
* For `hosted_link`, an invoice that does not exist returns
|
|
151
|
+
* For `hosted_link`, an invoice that does not exist returns 404, the same as an invoice of another merchant.
|
|
152
152
|
*
|
|
153
153
|
* Paygentic selects the payment provider from your connected payment account. The response reports the provider.
|
|
154
154
|
*
|
|
@@ -239,7 +239,7 @@ export class InvoicesV2 extends ClientSDK {
|
|
|
239
239
|
*
|
|
240
240
|
* A 500 response has the standard error body, not `retry_payment_result`. It is an internal error, and a retry does not fix it.
|
|
241
241
|
*
|
|
242
|
-
* An invoice that does not exist returns
|
|
242
|
+
* An invoice that does not exist returns 404, the same as an invoice of another merchant.
|
|
243
243
|
*
|
|
244
244
|
* This operation is rate limited to one call each minute for each invoice.
|
|
245
245
|
*/
|
package/src/sdk/webhooks.ts
CHANGED
|
@@ -85,7 +85,7 @@ export class Webhooks extends ClientSDK {
|
|
|
85
85
|
* Get Portal Access
|
|
86
86
|
*
|
|
87
87
|
* @remarks
|
|
88
|
-
* Returns a link to the webhook portal, where you add endpoints, choose event types, read the signing secret and inspect deliveries. The link opens without a login and expires one hour after it is issued, at `expiresAt`. Treat it as a secret. Returns 404 unless webhooks are enabled.
|
|
88
|
+
* Returns a link to the webhook portal, where you add endpoints, choose event types, read the signing secret and inspect deliveries. The link opens without a login and expires one hour after it is issued, at `expiresAt`. Treat it as a secret. The link is read-only unless the caller holds `webhooks:write`: a read-only portal shows endpoints and deliveries but does not let you add or change endpoints, read the signing secret or replay messages. Returns 404 unless webhooks are enabled.
|
|
89
89
|
*/
|
|
90
90
|
async getPortal(
|
|
91
91
|
request?: operations.GetWebhookPortalRequest | undefined,
|