@paygentic/sdk 0.10.5 → 0.10.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/dist/commonjs/funcs/testClocksAdvance.d.ts +1 -1
- package/dist/commonjs/funcs/testClocksAdvance.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/errors/deletecustomer.d.ts +8 -0
- package/dist/commonjs/models/errors/deletecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/errors/deletecustomer.js +3 -0
- package/dist/commonjs/models/errors/deletecustomer.js.map +1 -1
- package/dist/commonjs/models/errors/deletefee.d.ts +8 -0
- package/dist/commonjs/models/errors/deletefee.d.ts.map +1 -1
- package/dist/commonjs/models/errors/deletefee.js +3 -0
- package/dist/commonjs/models/errors/deletefee.js.map +1 -1
- package/dist/commonjs/models/errors/deleteprice.d.ts +8 -0
- package/dist/commonjs/models/errors/deleteprice.d.ts.map +1 -1
- package/dist/commonjs/models/errors/deleteprice.js +3 -0
- package/dist/commonjs/models/errors/deleteprice.js.map +1 -1
- package/dist/commonjs/models/errors/error.d.ts +8 -0
- package/dist/commonjs/models/errors/error.d.ts.map +1 -1
- package/dist/commonjs/models/errors/error.js +3 -0
- package/dist/commonjs/models/errors/error.js.map +1 -1
- package/dist/commonjs/models/errors/recordinvoicepayment.d.ts +8 -0
- package/dist/commonjs/models/errors/recordinvoicepayment.d.ts.map +1 -1
- package/dist/commonjs/models/errors/recordinvoicepayment.js +3 -0
- package/dist/commonjs/models/errors/recordinvoicepayment.js.map +1 -1
- package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts +8 -0
- package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/retrypaymentresponseerror.js +3 -0
- package/dist/commonjs/models/errors/retrypaymentresponseerror.js.map +1 -1
- package/dist/commonjs/models/errors/updateprice.d.ts +8 -0
- package/dist/commonjs/models/errors/updateprice.d.ts.map +1 -1
- package/dist/commonjs/models/errors/updateprice.js +3 -0
- package/dist/commonjs/models/errors/updateprice.js.map +1 -1
- package/dist/commonjs/models/errors/validationerror.d.ts +8 -0
- package/dist/commonjs/models/errors/validationerror.d.ts.map +1 -1
- package/dist/commonjs/models/errors/validationerror.js +3 -0
- package/dist/commonjs/models/errors/validationerror.js.map +1 -1
- package/dist/commonjs/models/operations/getbillablemetricmeter.d.ts +1 -1
- package/dist/commonjs/models/operations/getcostsummary.d.ts +1 -1
- package/dist/commonjs/models/operations/listbillablemetricevents.d.ts +1 -1
- package/dist/commonjs/models/permission.d.ts +1 -0
- package/dist/commonjs/models/permission.d.ts.map +1 -1
- package/dist/commonjs/models/permission.js +1 -0
- package/dist/commonjs/models/permission.js.map +1 -1
- package/dist/commonjs/models/retrypaymentresponse.d.ts +4 -0
- package/dist/commonjs/models/retrypaymentresponse.d.ts.map +1 -1
- package/dist/commonjs/models/retrypaymentresponse.js +1 -0
- package/dist/commonjs/models/retrypaymentresponse.js.map +1 -1
- package/dist/commonjs/sdk/testclocks.d.ts +1 -1
- package/dist/commonjs/sdk/testclocks.js +1 -1
- package/dist/esm/funcs/testClocksAdvance.d.ts +1 -1
- package/dist/esm/funcs/testClocksAdvance.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/errors/deletecustomer.d.ts +8 -0
- package/dist/esm/models/errors/deletecustomer.d.ts.map +1 -1
- package/dist/esm/models/errors/deletecustomer.js +3 -0
- package/dist/esm/models/errors/deletecustomer.js.map +1 -1
- package/dist/esm/models/errors/deletefee.d.ts +8 -0
- package/dist/esm/models/errors/deletefee.d.ts.map +1 -1
- package/dist/esm/models/errors/deletefee.js +3 -0
- package/dist/esm/models/errors/deletefee.js.map +1 -1
- package/dist/esm/models/errors/deleteprice.d.ts +8 -0
- package/dist/esm/models/errors/deleteprice.d.ts.map +1 -1
- package/dist/esm/models/errors/deleteprice.js +3 -0
- package/dist/esm/models/errors/deleteprice.js.map +1 -1
- package/dist/esm/models/errors/error.d.ts +8 -0
- package/dist/esm/models/errors/error.d.ts.map +1 -1
- package/dist/esm/models/errors/error.js +3 -0
- package/dist/esm/models/errors/error.js.map +1 -1
- package/dist/esm/models/errors/recordinvoicepayment.d.ts +8 -0
- package/dist/esm/models/errors/recordinvoicepayment.d.ts.map +1 -1
- package/dist/esm/models/errors/recordinvoicepayment.js +3 -0
- package/dist/esm/models/errors/recordinvoicepayment.js.map +1 -1
- package/dist/esm/models/errors/retrypaymentresponseerror.d.ts +8 -0
- package/dist/esm/models/errors/retrypaymentresponseerror.d.ts.map +1 -1
- package/dist/esm/models/errors/retrypaymentresponseerror.js +3 -0
- package/dist/esm/models/errors/retrypaymentresponseerror.js.map +1 -1
- package/dist/esm/models/errors/updateprice.d.ts +8 -0
- package/dist/esm/models/errors/updateprice.d.ts.map +1 -1
- package/dist/esm/models/errors/updateprice.js +3 -0
- package/dist/esm/models/errors/updateprice.js.map +1 -1
- package/dist/esm/models/errors/validationerror.d.ts +8 -0
- package/dist/esm/models/errors/validationerror.d.ts.map +1 -1
- package/dist/esm/models/errors/validationerror.js +3 -0
- package/dist/esm/models/errors/validationerror.js.map +1 -1
- package/dist/esm/models/operations/getbillablemetricmeter.d.ts +1 -1
- package/dist/esm/models/operations/getcostsummary.d.ts +1 -1
- package/dist/esm/models/operations/listbillablemetricevents.d.ts +1 -1
- package/dist/esm/models/permission.d.ts +1 -0
- package/dist/esm/models/permission.d.ts.map +1 -1
- package/dist/esm/models/permission.js +1 -0
- package/dist/esm/models/permission.js.map +1 -1
- package/dist/esm/models/retrypaymentresponse.d.ts +4 -0
- package/dist/esm/models/retrypaymentresponse.d.ts.map +1 -1
- package/dist/esm/models/retrypaymentresponse.js +1 -0
- package/dist/esm/models/retrypaymentresponse.js.map +1 -1
- package/dist/esm/sdk/testclocks.d.ts +1 -1
- package/dist/esm/sdk/testclocks.js +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/testClocksAdvance.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/errors/deletecustomer.ts +10 -0
- package/src/models/errors/deletefee.ts +10 -0
- package/src/models/errors/deleteprice.ts +10 -0
- package/src/models/errors/error.ts +10 -0
- package/src/models/errors/recordinvoicepayment.ts +10 -0
- package/src/models/errors/retrypaymentresponseerror.ts +10 -0
- package/src/models/errors/updateprice.ts +10 -0
- package/src/models/errors/validationerror.ts +10 -0
- package/src/models/operations/getbillablemetricmeter.ts +1 -1
- package/src/models/operations/getcostsummary.ts +1 -1
- package/src/models/operations/listbillablemetricevents.ts +1 -1
- package/src/models/permission.ts +1 -0
- package/src/models/retrypaymentresponse.ts +5 -0
- package/src/sdk/testclocks.ts +1 -1
|
@@ -96,6 +96,7 @@ export declare const Permission: {
|
|
|
96
96
|
readonly EventsWrite: "events:write";
|
|
97
97
|
readonly InvoicesIssue: "invoices:issue";
|
|
98
98
|
readonly InvoicesVoid: "invoices:void";
|
|
99
|
+
readonly InvoicesTransition: "invoices:transition";
|
|
99
100
|
readonly PaymentsRefund: "payments:refund";
|
|
100
101
|
readonly OrganizationDelete: "organization:delete";
|
|
101
102
|
readonly OwnershipTransfer: "ownership:transfer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"permission.d.ts","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyGb,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,UAAU,CAC/C,CAAC"}
|
|
@@ -98,6 +98,7 @@ export const Permission = {
|
|
|
98
98
|
EventsWrite: "events:write",
|
|
99
99
|
InvoicesIssue: "invoices:issue",
|
|
100
100
|
InvoicesVoid: "invoices:void",
|
|
101
|
+
InvoicesTransition: "invoices:transition",
|
|
101
102
|
PaymentsRefund: "payments:refund",
|
|
102
103
|
OrganizationDelete: "organization:delete",
|
|
103
104
|
OwnershipTransfer: "ownership:transfer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.js","sourceRoot":"","sources":["../../../src/models/permission.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,aAAa;IACzB,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,QAAQ,EAAE,WAAW;IACrB,mBAAmB,EAAE,sBAAsB;IAC3C,SAAS,EAAE,YAAY;IACvB,gBAAgB,EAAE,mBAAmB;IACrC,iBAAiB,EAAE,oBAAoB;IACvC,2BAA2B,EAAE,8BAA8B;IAC3D,aA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AAuB,EAAE,0BAA0B;IACnD,yBAAyB,EAAE,4BAA4B;IACvD,aAAa,EAAE,gBAAgB;IAC/B,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,YAAY,EAAE,eAAe;IAC7B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE,eAAe;IAC7B,kBAAkB,EAAE,qBAAqB;IACzC,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,iBAAiB,EAAE,oBAAoB;IACvC,sBAAsB,EAAE,yBAAyB;IACjD,gCAAgC,EAAE,mCAAmC;IACrE,sBAAsB,EAAE,yBAAyB;IACjD,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,sBAAsB,EAAE,yBAAyB;IACjD,wBAAwB,EAAE,2BAA2B;IACrD,qBAAqB,EAAE,wBAAwB;CACvC,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -37,6 +37,10 @@ export type RetryPaymentResponse = {
|
|
|
37
37
|
* Why a payment retry did not collect the money.
|
|
38
38
|
*/
|
|
39
39
|
error?: RetryPaymentError | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
42
|
+
*/
|
|
43
|
+
requestId?: string | undefined;
|
|
40
44
|
};
|
|
41
45
|
/** @internal */
|
|
42
46
|
export declare const RetryPaymentResponseObject$inboundSchema: z.ZodNativeEnum<typeof RetryPaymentResponseObject>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrypaymentresponse.d.ts","sourceRoot":"","sources":["../../../src/models/retrypaymentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"retrypaymentresponse.d.ts","sourceRoot":"","sources":["../../../src/models/retrypaymentresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,0BAA0B,CACS,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -19,6 +19,7 @@ export const RetryPaymentResponse$inboundSchema = z.object({
|
|
|
19
19
|
invoiceId: z.string(),
|
|
20
20
|
paymentIntentId: z.string().optional(),
|
|
21
21
|
error: RetryPaymentError$inboundSchema.optional(),
|
|
22
|
+
requestId: z.string().optional(),
|
|
22
23
|
});
|
|
23
24
|
export function retryPaymentResponseFromJSON(jsonString) {
|
|
24
25
|
return safeParse(jsonString, (x) => RetryPaymentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetryPaymentResponse' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retrypaymentresponse.js","sourceRoot":"","sources":["../../../src/models/retrypaymentresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,kBAAkB,EAAE,sBAAsB;CAClC,CAAC;
|
|
1
|
+
{"version":3,"file":"retrypaymentresponse.js","sourceRoot":"","sources":["../../../src/models/retrypaymentresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAI9C,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,kBAAkB,EAAE,sBAAsB;CAClC,CAAC;AAsCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAEjD,CAAC,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;AAE7C,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,wCAAwC;IAChD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,KAAK,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -27,7 +27,7 @@ export declare class TestClocks extends ClientSDK {
|
|
|
27
27
|
* Advance
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration.
|
|
30
|
+
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration. A clock moves forward only, and at most 1 year per call: a time earlier than the clock's current time, or more than 1 year after it, returns 400. To move further, advance more than once.
|
|
31
31
|
*/
|
|
32
32
|
advance(request: operations.AdvanceTestClockRequest, options?: RequestOptions): Promise<models.TestClock>;
|
|
33
33
|
/**
|
|
@@ -40,7 +40,7 @@ export class TestClocks extends ClientSDK {
|
|
|
40
40
|
* Advance
|
|
41
41
|
*
|
|
42
42
|
* @remarks
|
|
43
|
-
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration.
|
|
43
|
+
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration. A clock moves forward only, and at most 1 year per call: a time earlier than the clock's current time, or more than 1 year after it, returns 400. To move further, advance more than once.
|
|
44
44
|
*/
|
|
45
45
|
async advance(request, options) {
|
|
46
46
|
return unwrapAsync(testClocksAdvance(this, request, options));
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Advance
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration.
|
|
33
|
+
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration. A clock moves forward only, and at most 1 year per call: a time earlier than the clock's current time, or more than 1 year after it, returns 400. To move further, advance more than once.
|
|
34
34
|
*/
|
|
35
35
|
export function testClocksAdvance(
|
|
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.6",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.10.6 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
|
@@ -10,6 +10,10 @@ import { PaygenticError } from "./paygenticerror.js";
|
|
|
10
10
|
* Customer cannot be deleted due to active dependencies
|
|
11
11
|
*/
|
|
12
12
|
export type DeleteCustomerConflictErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
15
|
+
*/
|
|
16
|
+
requestId?: string | undefined;
|
|
13
17
|
error?: operations.ErrorT | undefined;
|
|
14
18
|
message?: string | undefined;
|
|
15
19
|
details?: operations.DeleteCustomerDetails | undefined;
|
|
@@ -19,6 +23,10 @@ export type DeleteCustomerConflictErrorData = {
|
|
|
19
23
|
* Customer cannot be deleted due to active dependencies
|
|
20
24
|
*/
|
|
21
25
|
export class DeleteCustomerConflictError extends PaygenticError {
|
|
26
|
+
/**
|
|
27
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
28
|
+
*/
|
|
29
|
+
requestId?: string | undefined;
|
|
22
30
|
error?: operations.ErrorT | undefined;
|
|
23
31
|
details?: operations.DeleteCustomerDetails | undefined;
|
|
24
32
|
|
|
@@ -32,6 +40,7 @@ export class DeleteCustomerConflictError extends PaygenticError {
|
|
|
32
40
|
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
33
41
|
super(message, httpMeta);
|
|
34
42
|
this.data$ = err;
|
|
43
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
35
44
|
if (err.error != null) this.error = err.error;
|
|
36
45
|
if (err.details != null) this.details = err.details;
|
|
37
46
|
|
|
@@ -45,6 +54,7 @@ export const DeleteCustomerConflictError$inboundSchema: z.ZodType<
|
|
|
45
54
|
z.ZodTypeDef,
|
|
46
55
|
unknown
|
|
47
56
|
> = z.object({
|
|
57
|
+
requestId: z.string().optional(),
|
|
48
58
|
error: operations.ErrorT$inboundSchema.optional(),
|
|
49
59
|
message: z.string().optional(),
|
|
50
60
|
details: z.lazy(() => operations.DeleteCustomerDetails$inboundSchema)
|
|
@@ -10,6 +10,10 @@ import { PaygenticError } from "./paygenticerror.js";
|
|
|
10
10
|
* Fee cannot be deleted because it has associated prices
|
|
11
11
|
*/
|
|
12
12
|
export type DeleteFeeConflictErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
15
|
+
*/
|
|
16
|
+
requestId?: string | undefined;
|
|
13
17
|
error?: string | undefined;
|
|
14
18
|
message?: string | undefined;
|
|
15
19
|
details?: operations.DeleteFeeDetails | undefined;
|
|
@@ -19,6 +23,10 @@ export type DeleteFeeConflictErrorData = {
|
|
|
19
23
|
* Fee cannot be deleted because it has associated prices
|
|
20
24
|
*/
|
|
21
25
|
export class DeleteFeeConflictError extends PaygenticError {
|
|
26
|
+
/**
|
|
27
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
28
|
+
*/
|
|
29
|
+
requestId?: string | undefined;
|
|
22
30
|
error?: string | undefined;
|
|
23
31
|
details?: operations.DeleteFeeDetails | undefined;
|
|
24
32
|
|
|
@@ -32,6 +40,7 @@ export class DeleteFeeConflictError extends PaygenticError {
|
|
|
32
40
|
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
33
41
|
super(message, httpMeta);
|
|
34
42
|
this.data$ = err;
|
|
43
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
35
44
|
if (err.error != null) this.error = err.error;
|
|
36
45
|
if (err.details != null) this.details = err.details;
|
|
37
46
|
|
|
@@ -45,6 +54,7 @@ export const DeleteFeeConflictError$inboundSchema: z.ZodType<
|
|
|
45
54
|
z.ZodTypeDef,
|
|
46
55
|
unknown
|
|
47
56
|
> = z.object({
|
|
57
|
+
requestId: z.string().optional(),
|
|
48
58
|
error: z.string().optional(),
|
|
49
59
|
message: z.string().optional(),
|
|
50
60
|
details: z.lazy(() => operations.DeleteFeeDetails$inboundSchema).optional(),
|
|
@@ -10,6 +10,10 @@ import { PaygenticError } from "./paygenticerror.js";
|
|
|
10
10
|
* Price cannot be deleted because a live plan still references it
|
|
11
11
|
*/
|
|
12
12
|
export type DeletePriceConflictErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
15
|
+
*/
|
|
16
|
+
requestId?: string | undefined;
|
|
13
17
|
error?: string | undefined;
|
|
14
18
|
message?: string | undefined;
|
|
15
19
|
details?: operations.DeletePriceDetails | undefined;
|
|
@@ -19,6 +23,10 @@ export type DeletePriceConflictErrorData = {
|
|
|
19
23
|
* Price cannot be deleted because a live plan still references it
|
|
20
24
|
*/
|
|
21
25
|
export class DeletePriceConflictError extends PaygenticError {
|
|
26
|
+
/**
|
|
27
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
28
|
+
*/
|
|
29
|
+
requestId?: string | undefined;
|
|
22
30
|
error?: string | undefined;
|
|
23
31
|
details?: operations.DeletePriceDetails | undefined;
|
|
24
32
|
|
|
@@ -32,6 +40,7 @@ export class DeletePriceConflictError extends PaygenticError {
|
|
|
32
40
|
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
33
41
|
super(message, httpMeta);
|
|
34
42
|
this.data$ = err;
|
|
43
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
35
44
|
if (err.error != null) this.error = err.error;
|
|
36
45
|
if (err.details != null) this.details = err.details;
|
|
37
46
|
|
|
@@ -45,6 +54,7 @@ export const DeletePriceConflictError$inboundSchema: z.ZodType<
|
|
|
45
54
|
z.ZodTypeDef,
|
|
46
55
|
unknown
|
|
47
56
|
> = z.object({
|
|
57
|
+
requestId: z.string().optional(),
|
|
48
58
|
error: z.string().optional(),
|
|
49
59
|
message: z.string().optional(),
|
|
50
60
|
details: z.lazy(() => operations.DeletePriceDetails$inboundSchema).optional(),
|
|
@@ -34,6 +34,10 @@ export type ErrorTData = {
|
|
|
34
34
|
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
35
35
|
*/
|
|
36
36
|
requiredPermissions?: Array<string> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
39
|
+
*/
|
|
40
|
+
requestId?: string | undefined;
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
/**
|
|
@@ -60,6 +64,10 @@ export class ErrorT extends PaygenticError {
|
|
|
60
64
|
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
61
65
|
*/
|
|
62
66
|
requiredPermissions?: Array<string> | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
69
|
+
*/
|
|
70
|
+
requestId?: string | undefined;
|
|
63
71
|
|
|
64
72
|
/** The original data that was passed to this error instance. */
|
|
65
73
|
data$: ErrorTData;
|
|
@@ -78,6 +86,7 @@ export class ErrorT extends PaygenticError {
|
|
|
78
86
|
if (err.requiredPermissions != null) {
|
|
79
87
|
this.requiredPermissions = err.requiredPermissions;
|
|
80
88
|
}
|
|
89
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
81
90
|
|
|
82
91
|
this.name = "ErrorT";
|
|
83
92
|
}
|
|
@@ -92,6 +101,7 @@ export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
|
|
|
92
101
|
details: z.record(z.any()).optional(),
|
|
93
102
|
reason: models.AuthorizationDenialReason$inboundSchema.optional(),
|
|
94
103
|
requiredPermissions: z.array(z.string()).optional(),
|
|
104
|
+
requestId: z.string().optional(),
|
|
95
105
|
request$: z.instanceof(Request),
|
|
96
106
|
response$: z.instanceof(Response),
|
|
97
107
|
body$: z.string(),
|
|
@@ -34,6 +34,10 @@ export type UnprocessableEntityErrorData = {
|
|
|
34
34
|
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
35
35
|
*/
|
|
36
36
|
requiredPermissions?: Array<string> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
39
|
+
*/
|
|
40
|
+
requestId?: string | undefined;
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
/**
|
|
@@ -60,6 +64,10 @@ export class UnprocessableEntityError extends PaygenticError {
|
|
|
60
64
|
* Present on a 403 from the authorization check. The permissions the caller needs for this request.
|
|
61
65
|
*/
|
|
62
66
|
requiredPermissions?: Array<string> | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
69
|
+
*/
|
|
70
|
+
requestId?: string | undefined;
|
|
63
71
|
|
|
64
72
|
/** The original data that was passed to this error instance. */
|
|
65
73
|
data$: UnprocessableEntityErrorData;
|
|
@@ -78,6 +86,7 @@ export class UnprocessableEntityError extends PaygenticError {
|
|
|
78
86
|
if (err.requiredPermissions != null) {
|
|
79
87
|
this.requiredPermissions = err.requiredPermissions;
|
|
80
88
|
}
|
|
89
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
81
90
|
|
|
82
91
|
this.name = "UnprocessableEntityError";
|
|
83
92
|
}
|
|
@@ -95,6 +104,7 @@ export const UnprocessableEntityError$inboundSchema: z.ZodType<
|
|
|
95
104
|
details: z.record(z.any()).optional(),
|
|
96
105
|
reason: models.AuthorizationDenialReason$inboundSchema.optional(),
|
|
97
106
|
requiredPermissions: z.array(z.string()).optional(),
|
|
107
|
+
requestId: z.string().optional(),
|
|
98
108
|
request$: z.instanceof(Request),
|
|
99
109
|
response$: z.instanceof(Response),
|
|
100
110
|
body$: z.string(),
|
|
@@ -30,6 +30,10 @@ export type RetryPaymentResponseErrorData = {
|
|
|
30
30
|
* Why a payment retry did not collect the money.
|
|
31
31
|
*/
|
|
32
32
|
error?: models.RetryPaymentError | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
35
|
+
*/
|
|
36
|
+
requestId?: string | undefined;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
/**
|
|
@@ -56,6 +60,10 @@ export class RetryPaymentResponseError extends PaygenticError {
|
|
|
56
60
|
* Why a payment retry did not collect the money.
|
|
57
61
|
*/
|
|
58
62
|
error?: models.RetryPaymentError | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
65
|
+
*/
|
|
66
|
+
requestId?: string | undefined;
|
|
59
67
|
|
|
60
68
|
/** The original data that was passed to this error instance. */
|
|
61
69
|
data$: RetryPaymentResponseErrorData;
|
|
@@ -73,6 +81,7 @@ export class RetryPaymentResponseError extends PaygenticError {
|
|
|
73
81
|
this.invoiceId = err.invoiceId;
|
|
74
82
|
if (err.paymentIntentId != null) this.paymentIntentId = err.paymentIntentId;
|
|
75
83
|
if (err.error != null) this.error = err.error;
|
|
84
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
76
85
|
|
|
77
86
|
this.name = "RetryPaymentResponseError";
|
|
78
87
|
}
|
|
@@ -89,6 +98,7 @@ export const RetryPaymentResponseError$inboundSchema: z.ZodType<
|
|
|
89
98
|
invoiceId: z.string(),
|
|
90
99
|
paymentIntentId: z.string().optional(),
|
|
91
100
|
error: models.RetryPaymentError$inboundSchema.optional(),
|
|
101
|
+
requestId: z.string().optional(),
|
|
92
102
|
request$: z.instanceof(Request),
|
|
93
103
|
response$: z.instanceof(Response),
|
|
94
104
|
body$: z.string(),
|
|
@@ -10,6 +10,10 @@ import { PaygenticError } from "./paygenticerror.js";
|
|
|
10
10
|
* Price cannot be restructured because a subscription still bills it directly
|
|
11
11
|
*/
|
|
12
12
|
export type UpdatePriceConflictErrorData = {
|
|
13
|
+
/**
|
|
14
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
15
|
+
*/
|
|
16
|
+
requestId?: string | undefined;
|
|
13
17
|
error?: string | undefined;
|
|
14
18
|
message: string;
|
|
15
19
|
/**
|
|
@@ -23,6 +27,10 @@ export type UpdatePriceConflictErrorData = {
|
|
|
23
27
|
* Price cannot be restructured because a subscription still bills it directly
|
|
24
28
|
*/
|
|
25
29
|
export class UpdatePriceConflictError extends PaygenticError {
|
|
30
|
+
/**
|
|
31
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
32
|
+
*/
|
|
33
|
+
requestId?: string | undefined;
|
|
26
34
|
error?: string | undefined;
|
|
27
35
|
/**
|
|
28
36
|
* Machine-readable conflict code. Open set: a new code may appear, so branch on the ones you handle and treat anything else as an unhandled conflict.
|
|
@@ -40,6 +48,7 @@ export class UpdatePriceConflictError extends PaygenticError {
|
|
|
40
48
|
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
41
49
|
super(message, httpMeta);
|
|
42
50
|
this.data$ = err;
|
|
51
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
43
52
|
if (err.error != null) this.error = err.error;
|
|
44
53
|
this.code = err.code;
|
|
45
54
|
if (err.details != null) this.details = err.details;
|
|
@@ -54,6 +63,7 @@ export const UpdatePriceConflictError$inboundSchema: z.ZodType<
|
|
|
54
63
|
z.ZodTypeDef,
|
|
55
64
|
unknown
|
|
56
65
|
> = z.object({
|
|
66
|
+
requestId: z.string().optional(),
|
|
57
67
|
error: z.string().optional(),
|
|
58
68
|
message: z.string(),
|
|
59
69
|
code: z.string(),
|
|
@@ -19,6 +19,10 @@ export type ValidationErrorData = {
|
|
|
19
19
|
* Array of field-specific validation errors
|
|
20
20
|
*/
|
|
21
21
|
errors: Array<models.ErrorT>;
|
|
22
|
+
/**
|
|
23
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
24
|
+
*/
|
|
25
|
+
requestId?: string | undefined;
|
|
22
26
|
};
|
|
23
27
|
|
|
24
28
|
export class ValidationError extends PaygenticError {
|
|
@@ -30,6 +34,10 @@ export class ValidationError extends PaygenticError {
|
|
|
30
34
|
* Array of field-specific validation errors
|
|
31
35
|
*/
|
|
32
36
|
errors: Array<models.ErrorT>;
|
|
37
|
+
/**
|
|
38
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
39
|
+
*/
|
|
40
|
+
requestId?: string | undefined;
|
|
33
41
|
|
|
34
42
|
/** The original data that was passed to this error instance. */
|
|
35
43
|
data$: ValidationErrorData;
|
|
@@ -43,6 +51,7 @@ export class ValidationError extends PaygenticError {
|
|
|
43
51
|
this.data$ = err;
|
|
44
52
|
if (err.error != null) this.error = err.error;
|
|
45
53
|
this.errors = err.errors;
|
|
54
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
46
55
|
|
|
47
56
|
this.name = "ValidationError";
|
|
48
57
|
}
|
|
@@ -57,6 +66,7 @@ export const ValidationError$inboundSchema: z.ZodType<
|
|
|
57
66
|
error: models.ErrorEnum$inboundSchema.default("validation_error"),
|
|
58
67
|
message: z.string(),
|
|
59
68
|
errors: z.array(z.lazy(() => models.ErrorT$inboundSchema)),
|
|
69
|
+
requestId: z.string().optional(),
|
|
60
70
|
request$: z.instanceof(Request),
|
|
61
71
|
response$: z.instanceof(Response),
|
|
62
72
|
body$: z.string(),
|
|
@@ -32,7 +32,7 @@ export type GetCostSummaryRequest = {
|
|
|
32
32
|
*/
|
|
33
33
|
from: Date;
|
|
34
34
|
/**
|
|
35
|
-
* End of the query window, excluded: the read counts from <= t < to (ISO 8601). Required together with 'from'.
|
|
35
|
+
* End of the query window, excluded: the read counts from <= t < to (ISO 8601). Required together with 'from'. At most 403 days after `from`.
|
|
36
36
|
*/
|
|
37
37
|
to: Date;
|
|
38
38
|
/**
|
package/src/models/permission.ts
CHANGED
|
@@ -101,6 +101,7 @@ export const Permission = {
|
|
|
101
101
|
EventsWrite: "events:write",
|
|
102
102
|
InvoicesIssue: "invoices:issue",
|
|
103
103
|
InvoicesVoid: "invoices:void",
|
|
104
|
+
InvoicesTransition: "invoices:transition",
|
|
104
105
|
PaymentsRefund: "payments:refund",
|
|
105
106
|
OrganizationDelete: "organization:delete",
|
|
106
107
|
OwnershipTransfer: "ownership:transfer",
|
|
@@ -49,6 +49,10 @@ export type RetryPaymentResponse = {
|
|
|
49
49
|
* Why a payment retry did not collect the money.
|
|
50
50
|
*/
|
|
51
51
|
error?: RetryPaymentError | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Identifies this request in our logs. Include it when you contact support. Also sent in the `request-id` response header.
|
|
54
|
+
*/
|
|
55
|
+
requestId?: string | undefined;
|
|
52
56
|
};
|
|
53
57
|
|
|
54
58
|
/** @internal */
|
|
@@ -67,6 +71,7 @@ export const RetryPaymentResponse$inboundSchema: z.ZodType<
|
|
|
67
71
|
invoiceId: z.string(),
|
|
68
72
|
paymentIntentId: z.string().optional(),
|
|
69
73
|
error: RetryPaymentError$inboundSchema.optional(),
|
|
74
|
+
requestId: z.string().optional(),
|
|
70
75
|
});
|
|
71
76
|
|
|
72
77
|
export function retryPaymentResponseFromJSON(
|
package/src/sdk/testclocks.ts
CHANGED
|
@@ -68,7 +68,7 @@ export class TestClocks extends ClientSDK {
|
|
|
68
68
|
* Advance
|
|
69
69
|
*
|
|
70
70
|
* @remarks
|
|
71
|
-
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration.
|
|
71
|
+
* Advances the test clock's current time. You can either specify a new absolute time or advance by a duration. A clock moves forward only, and at most 1 year per call: a time earlier than the clock's current time, or more than 1 year after it, returns 400. To move further, advance more than once.
|
|
72
72
|
*/
|
|
73
73
|
async advance(
|
|
74
74
|
request: operations.AdvanceTestClockRequest,
|