@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.
Files changed (116) hide show
  1. package/dist/commonjs/funcs/testClocksAdvance.d.ts +1 -1
  2. package/dist/commonjs/funcs/testClocksAdvance.js +1 -1
  3. package/dist/commonjs/lib/config.d.ts +2 -2
  4. package/dist/commonjs/lib/config.js +2 -2
  5. package/dist/commonjs/models/errors/deletecustomer.d.ts +8 -0
  6. package/dist/commonjs/models/errors/deletecustomer.d.ts.map +1 -1
  7. package/dist/commonjs/models/errors/deletecustomer.js +3 -0
  8. package/dist/commonjs/models/errors/deletecustomer.js.map +1 -1
  9. package/dist/commonjs/models/errors/deletefee.d.ts +8 -0
  10. package/dist/commonjs/models/errors/deletefee.d.ts.map +1 -1
  11. package/dist/commonjs/models/errors/deletefee.js +3 -0
  12. package/dist/commonjs/models/errors/deletefee.js.map +1 -1
  13. package/dist/commonjs/models/errors/deleteprice.d.ts +8 -0
  14. package/dist/commonjs/models/errors/deleteprice.d.ts.map +1 -1
  15. package/dist/commonjs/models/errors/deleteprice.js +3 -0
  16. package/dist/commonjs/models/errors/deleteprice.js.map +1 -1
  17. package/dist/commonjs/models/errors/error.d.ts +8 -0
  18. package/dist/commonjs/models/errors/error.d.ts.map +1 -1
  19. package/dist/commonjs/models/errors/error.js +3 -0
  20. package/dist/commonjs/models/errors/error.js.map +1 -1
  21. package/dist/commonjs/models/errors/recordinvoicepayment.d.ts +8 -0
  22. package/dist/commonjs/models/errors/recordinvoicepayment.d.ts.map +1 -1
  23. package/dist/commonjs/models/errors/recordinvoicepayment.js +3 -0
  24. package/dist/commonjs/models/errors/recordinvoicepayment.js.map +1 -1
  25. package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts +8 -0
  26. package/dist/commonjs/models/errors/retrypaymentresponseerror.d.ts.map +1 -1
  27. package/dist/commonjs/models/errors/retrypaymentresponseerror.js +3 -0
  28. package/dist/commonjs/models/errors/retrypaymentresponseerror.js.map +1 -1
  29. package/dist/commonjs/models/errors/updateprice.d.ts +8 -0
  30. package/dist/commonjs/models/errors/updateprice.d.ts.map +1 -1
  31. package/dist/commonjs/models/errors/updateprice.js +3 -0
  32. package/dist/commonjs/models/errors/updateprice.js.map +1 -1
  33. package/dist/commonjs/models/errors/validationerror.d.ts +8 -0
  34. package/dist/commonjs/models/errors/validationerror.d.ts.map +1 -1
  35. package/dist/commonjs/models/errors/validationerror.js +3 -0
  36. package/dist/commonjs/models/errors/validationerror.js.map +1 -1
  37. package/dist/commonjs/models/operations/getbillablemetricmeter.d.ts +1 -1
  38. package/dist/commonjs/models/operations/getcostsummary.d.ts +1 -1
  39. package/dist/commonjs/models/operations/listbillablemetricevents.d.ts +1 -1
  40. package/dist/commonjs/models/permission.d.ts +1 -0
  41. package/dist/commonjs/models/permission.d.ts.map +1 -1
  42. package/dist/commonjs/models/permission.js +1 -0
  43. package/dist/commonjs/models/permission.js.map +1 -1
  44. package/dist/commonjs/models/retrypaymentresponse.d.ts +4 -0
  45. package/dist/commonjs/models/retrypaymentresponse.d.ts.map +1 -1
  46. package/dist/commonjs/models/retrypaymentresponse.js +1 -0
  47. package/dist/commonjs/models/retrypaymentresponse.js.map +1 -1
  48. package/dist/commonjs/sdk/testclocks.d.ts +1 -1
  49. package/dist/commonjs/sdk/testclocks.js +1 -1
  50. package/dist/esm/funcs/testClocksAdvance.d.ts +1 -1
  51. package/dist/esm/funcs/testClocksAdvance.js +1 -1
  52. package/dist/esm/lib/config.d.ts +2 -2
  53. package/dist/esm/lib/config.js +2 -2
  54. package/dist/esm/models/errors/deletecustomer.d.ts +8 -0
  55. package/dist/esm/models/errors/deletecustomer.d.ts.map +1 -1
  56. package/dist/esm/models/errors/deletecustomer.js +3 -0
  57. package/dist/esm/models/errors/deletecustomer.js.map +1 -1
  58. package/dist/esm/models/errors/deletefee.d.ts +8 -0
  59. package/dist/esm/models/errors/deletefee.d.ts.map +1 -1
  60. package/dist/esm/models/errors/deletefee.js +3 -0
  61. package/dist/esm/models/errors/deletefee.js.map +1 -1
  62. package/dist/esm/models/errors/deleteprice.d.ts +8 -0
  63. package/dist/esm/models/errors/deleteprice.d.ts.map +1 -1
  64. package/dist/esm/models/errors/deleteprice.js +3 -0
  65. package/dist/esm/models/errors/deleteprice.js.map +1 -1
  66. package/dist/esm/models/errors/error.d.ts +8 -0
  67. package/dist/esm/models/errors/error.d.ts.map +1 -1
  68. package/dist/esm/models/errors/error.js +3 -0
  69. package/dist/esm/models/errors/error.js.map +1 -1
  70. package/dist/esm/models/errors/recordinvoicepayment.d.ts +8 -0
  71. package/dist/esm/models/errors/recordinvoicepayment.d.ts.map +1 -1
  72. package/dist/esm/models/errors/recordinvoicepayment.js +3 -0
  73. package/dist/esm/models/errors/recordinvoicepayment.js.map +1 -1
  74. package/dist/esm/models/errors/retrypaymentresponseerror.d.ts +8 -0
  75. package/dist/esm/models/errors/retrypaymentresponseerror.d.ts.map +1 -1
  76. package/dist/esm/models/errors/retrypaymentresponseerror.js +3 -0
  77. package/dist/esm/models/errors/retrypaymentresponseerror.js.map +1 -1
  78. package/dist/esm/models/errors/updateprice.d.ts +8 -0
  79. package/dist/esm/models/errors/updateprice.d.ts.map +1 -1
  80. package/dist/esm/models/errors/updateprice.js +3 -0
  81. package/dist/esm/models/errors/updateprice.js.map +1 -1
  82. package/dist/esm/models/errors/validationerror.d.ts +8 -0
  83. package/dist/esm/models/errors/validationerror.d.ts.map +1 -1
  84. package/dist/esm/models/errors/validationerror.js +3 -0
  85. package/dist/esm/models/errors/validationerror.js.map +1 -1
  86. package/dist/esm/models/operations/getbillablemetricmeter.d.ts +1 -1
  87. package/dist/esm/models/operations/getcostsummary.d.ts +1 -1
  88. package/dist/esm/models/operations/listbillablemetricevents.d.ts +1 -1
  89. package/dist/esm/models/permission.d.ts +1 -0
  90. package/dist/esm/models/permission.d.ts.map +1 -1
  91. package/dist/esm/models/permission.js +1 -0
  92. package/dist/esm/models/permission.js.map +1 -1
  93. package/dist/esm/models/retrypaymentresponse.d.ts +4 -0
  94. package/dist/esm/models/retrypaymentresponse.d.ts.map +1 -1
  95. package/dist/esm/models/retrypaymentresponse.js +1 -0
  96. package/dist/esm/models/retrypaymentresponse.js.map +1 -1
  97. package/dist/esm/sdk/testclocks.d.ts +1 -1
  98. package/dist/esm/sdk/testclocks.js +1 -1
  99. package/jsr.json +1 -1
  100. package/package.json +1 -1
  101. package/src/funcs/testClocksAdvance.ts +1 -1
  102. package/src/lib/config.ts +2 -2
  103. package/src/models/errors/deletecustomer.ts +10 -0
  104. package/src/models/errors/deletefee.ts +10 -0
  105. package/src/models/errors/deleteprice.ts +10 -0
  106. package/src/models/errors/error.ts +10 -0
  107. package/src/models/errors/recordinvoicepayment.ts +10 -0
  108. package/src/models/errors/retrypaymentresponseerror.ts +10 -0
  109. package/src/models/errors/updateprice.ts +10 -0
  110. package/src/models/errors/validationerror.ts +10 -0
  111. package/src/models/operations/getbillablemetricmeter.ts +1 -1
  112. package/src/models/operations/getcostsummary.ts +1 -1
  113. package/src/models/operations/listbillablemetricevents.ts +1 -1
  114. package/src/models/permission.ts +1 -0
  115. package/src/models/retrypaymentresponse.ts +5 -0
  116. 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGb,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"}
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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?: 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;CACvC,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,CAOP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
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;AAkCX,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;CAClD,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"}
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@paygentic/sdk",
5
- "version": "0.10.5",
5
+ "version": "0.10.6",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paygentic/sdk",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "author": "Speakeasy",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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.5",
68
+ sdkVersion: "0.10.6",
69
69
  genVersion: "2.879.13",
70
- userAgent: "speakeasy-sdk/typescript 0.10.5 2.879.13 0.1.0 @paygentic/sdk",
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(),
@@ -28,7 +28,7 @@ export type GetBillableMetricMeterRequest = {
28
28
  */
29
29
  from: Date;
30
30
  /**
31
- * End of query window (ISO 8601)
31
+ * End of query window (ISO 8601). At most 403 days after `from`.
32
32
  */
33
33
  to: Date;
34
34
  /**
@@ -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
  /**
@@ -11,7 +11,7 @@ export type ListBillableMetricEventsRequest = {
11
11
  */
12
12
  from: Date;
13
13
  /**
14
- * End of query window (ISO 8601)
14
+ * End of query window (ISO 8601). At most 403 days after `from`.
15
15
  */
16
16
  to: Date;
17
17
  /**
@@ -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(
@@ -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,