@usehercules/sdk 1.7.0 → 1.8.0

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 (201) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +17 -16
  3. package/package.json +1 -1
  4. package/resources/beta/beta.d.mts +4 -4
  5. package/resources/beta/beta.d.mts.map +1 -1
  6. package/resources/beta/beta.d.ts +4 -4
  7. package/resources/beta/beta.d.ts.map +1 -1
  8. package/resources/beta/beta.js +4 -4
  9. package/resources/beta/beta.js.map +1 -1
  10. package/resources/beta/beta.mjs +4 -4
  11. package/resources/beta/beta.mjs.map +1 -1
  12. package/resources/beta/commerce/commerce.d.mts +201 -0
  13. package/resources/beta/commerce/commerce.d.mts.map +1 -0
  14. package/resources/beta/commerce/commerce.d.ts +201 -0
  15. package/resources/beta/commerce/commerce.d.ts.map +1 -0
  16. package/resources/beta/{pay/pay.js → commerce/commerce.js} +10 -14
  17. package/resources/beta/commerce/commerce.js.map +1 -0
  18. package/resources/beta/{pay/pay.mjs → commerce/commerce.mjs} +8 -12
  19. package/resources/beta/commerce/commerce.mjs.map +1 -0
  20. package/resources/beta/commerce/coupons.d.mts +333 -0
  21. package/resources/beta/commerce/coupons.d.mts.map +1 -0
  22. package/resources/beta/commerce/coupons.d.ts +333 -0
  23. package/resources/beta/commerce/coupons.d.ts.map +1 -0
  24. package/resources/beta/{pay → commerce}/coupons.js +8 -5
  25. package/resources/beta/commerce/coupons.js.map +1 -0
  26. package/resources/beta/{pay → commerce}/coupons.mjs +8 -5
  27. package/resources/beta/commerce/coupons.mjs.map +1 -0
  28. package/resources/beta/commerce/customers.d.mts +407 -0
  29. package/resources/beta/commerce/customers.d.mts.map +1 -0
  30. package/resources/beta/commerce/customers.d.ts +407 -0
  31. package/resources/beta/commerce/customers.d.ts.map +1 -0
  32. package/resources/beta/{pay → commerce}/customers.js +9 -6
  33. package/resources/beta/commerce/customers.js.map +1 -0
  34. package/resources/beta/{pay → commerce}/customers.mjs +9 -6
  35. package/resources/beta/commerce/customers.mjs.map +1 -0
  36. package/resources/beta/commerce/index.d.mts +5 -0
  37. package/resources/beta/commerce/index.d.mts.map +1 -0
  38. package/resources/beta/commerce/index.d.ts +5 -0
  39. package/resources/beta/commerce/index.d.ts.map +1 -0
  40. package/resources/beta/{pay → commerce}/index.js +3 -5
  41. package/resources/beta/commerce/index.js.map +1 -0
  42. package/resources/beta/{pay → commerce}/index.mjs +1 -2
  43. package/resources/beta/commerce/index.mjs.map +1 -0
  44. package/resources/beta/commerce/products/index.d.mts +4 -0
  45. package/resources/beta/commerce/products/index.d.mts.map +1 -0
  46. package/resources/beta/commerce/products/index.d.ts +4 -0
  47. package/resources/beta/commerce/products/index.d.ts.map +1 -0
  48. package/resources/beta/{pay → commerce}/products/index.js +3 -3
  49. package/resources/beta/commerce/products/index.js.map +1 -0
  50. package/resources/beta/{pay → commerce}/products/index.mjs +1 -1
  51. package/resources/beta/commerce/products/index.mjs.map +1 -0
  52. package/resources/beta/commerce/products/products.d.mts +967 -0
  53. package/resources/beta/commerce/products/products.d.mts.map +1 -0
  54. package/resources/beta/commerce/products/products.d.ts +967 -0
  55. package/resources/beta/commerce/products/products.d.ts.map +1 -0
  56. package/resources/beta/{pay → commerce}/products/products.js +16 -12
  57. package/resources/beta/commerce/products/products.js.map +1 -0
  58. package/resources/beta/{pay → commerce}/products/products.mjs +16 -12
  59. package/resources/beta/commerce/products/products.mjs.map +1 -0
  60. package/resources/beta/commerce/products/resources.d.mts +160 -0
  61. package/resources/beta/commerce/products/resources.d.mts.map +1 -0
  62. package/resources/beta/commerce/products/resources.d.ts +160 -0
  63. package/resources/beta/commerce/products/resources.d.ts.map +1 -0
  64. package/resources/beta/commerce/products/resources.js +41 -0
  65. package/resources/beta/commerce/products/resources.js.map +1 -0
  66. package/resources/beta/commerce/products/resources.mjs +37 -0
  67. package/resources/beta/commerce/products/resources.mjs.map +1 -0
  68. package/resources/beta/commerce/products/variants.d.mts +798 -0
  69. package/resources/beta/commerce/products/variants.d.mts.map +1 -0
  70. package/resources/beta/commerce/products/variants.d.ts +798 -0
  71. package/resources/beta/commerce/products/variants.d.ts.map +1 -0
  72. package/resources/beta/{pay → commerce}/products/variants.js +5 -8
  73. package/resources/beta/commerce/products/variants.js.map +1 -0
  74. package/resources/beta/{pay → commerce}/products/variants.mjs +5 -8
  75. package/resources/beta/commerce/products/variants.mjs.map +1 -0
  76. package/resources/beta/commerce/products.d.mts.map +1 -0
  77. package/resources/beta/commerce/products.d.ts.map +1 -0
  78. package/resources/beta/commerce/products.js.map +1 -0
  79. package/resources/beta/commerce/products.mjs.map +1 -0
  80. package/resources/beta/commerce.d.mts +2 -0
  81. package/resources/beta/commerce.d.mts.map +1 -0
  82. package/resources/beta/commerce.d.ts +2 -0
  83. package/resources/beta/commerce.d.ts.map +1 -0
  84. package/resources/beta/{pay.js → commerce.js} +2 -2
  85. package/resources/beta/commerce.js.map +1 -0
  86. package/resources/beta/{pay.mjs → commerce.mjs} +2 -2
  87. package/resources/beta/commerce.mjs.map +1 -0
  88. package/resources/beta/index.d.mts +1 -1
  89. package/resources/beta/index.d.mts.map +1 -1
  90. package/resources/beta/index.d.ts +1 -1
  91. package/resources/beta/index.d.ts.map +1 -1
  92. package/resources/beta/index.js +3 -3
  93. package/resources/beta/index.js.map +1 -1
  94. package/resources/beta/index.mjs +1 -1
  95. package/resources/beta/index.mjs.map +1 -1
  96. package/resources/push-notifications/push-notifications.d.mts +8 -9
  97. package/resources/push-notifications/push-notifications.d.mts.map +1 -1
  98. package/resources/push-notifications/push-notifications.d.ts +8 -9
  99. package/resources/push-notifications/push-notifications.d.ts.map +1 -1
  100. package/resources/push-notifications/push-notifications.js +5 -6
  101. package/resources/push-notifications/push-notifications.js.map +1 -1
  102. package/resources/push-notifications/push-notifications.mjs +5 -6
  103. package/resources/push-notifications/push-notifications.mjs.map +1 -1
  104. package/src/resources/beta/beta.ts +18 -18
  105. package/src/resources/beta/{pay/pay.ts → commerce/commerce.ts} +82 -85
  106. package/src/resources/beta/commerce/coupons.ts +440 -0
  107. package/src/resources/beta/commerce/customers.ts +532 -0
  108. package/src/resources/beta/commerce/index.ts +47 -0
  109. package/src/resources/beta/commerce/products/index.ts +37 -0
  110. package/src/resources/beta/commerce/products/products.ts +1199 -0
  111. package/src/resources/beta/commerce/products/resources.ts +213 -0
  112. package/src/resources/beta/commerce/products/variants.ts +984 -0
  113. package/src/resources/beta/{pay.ts → commerce.ts} +1 -1
  114. package/src/resources/beta/index.ts +8 -8
  115. package/src/resources/push-notifications/push-notifications.ts +8 -9
  116. package/src/version.ts +1 -1
  117. package/version.d.mts +1 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/version.mjs +1 -1
  121. package/resources/beta/pay/coupons.d.mts +0 -156
  122. package/resources/beta/pay/coupons.d.mts.map +0 -1
  123. package/resources/beta/pay/coupons.d.ts +0 -156
  124. package/resources/beta/pay/coupons.d.ts.map +0 -1
  125. package/resources/beta/pay/coupons.js.map +0 -1
  126. package/resources/beta/pay/coupons.mjs.map +0 -1
  127. package/resources/beta/pay/customers.d.mts +0 -160
  128. package/resources/beta/pay/customers.d.mts.map +0 -1
  129. package/resources/beta/pay/customers.d.ts +0 -160
  130. package/resources/beta/pay/customers.d.ts.map +0 -1
  131. package/resources/beta/pay/customers.js.map +0 -1
  132. package/resources/beta/pay/customers.mjs.map +0 -1
  133. package/resources/beta/pay/entitlements.d.mts +0 -76
  134. package/resources/beta/pay/entitlements.d.mts.map +0 -1
  135. package/resources/beta/pay/entitlements.d.ts +0 -76
  136. package/resources/beta/pay/entitlements.d.ts.map +0 -1
  137. package/resources/beta/pay/entitlements.js +0 -41
  138. package/resources/beta/pay/entitlements.js.map +0 -1
  139. package/resources/beta/pay/entitlements.mjs +0 -37
  140. package/resources/beta/pay/entitlements.mjs.map +0 -1
  141. package/resources/beta/pay/index.d.mts +0 -6
  142. package/resources/beta/pay/index.d.mts.map +0 -1
  143. package/resources/beta/pay/index.d.ts +0 -6
  144. package/resources/beta/pay/index.d.ts.map +0 -1
  145. package/resources/beta/pay/index.js.map +0 -1
  146. package/resources/beta/pay/index.mjs.map +0 -1
  147. package/resources/beta/pay/pay.d.mts +0 -206
  148. package/resources/beta/pay/pay.d.mts.map +0 -1
  149. package/resources/beta/pay/pay.d.ts +0 -206
  150. package/resources/beta/pay/pay.d.ts.map +0 -1
  151. package/resources/beta/pay/pay.js.map +0 -1
  152. package/resources/beta/pay/pay.mjs.map +0 -1
  153. package/resources/beta/pay/products/entitlements.d.mts +0 -53
  154. package/resources/beta/pay/products/entitlements.d.mts.map +0 -1
  155. package/resources/beta/pay/products/entitlements.d.ts +0 -53
  156. package/resources/beta/pay/products/entitlements.d.ts.map +0 -1
  157. package/resources/beta/pay/products/entitlements.js +0 -38
  158. package/resources/beta/pay/products/entitlements.js.map +0 -1
  159. package/resources/beta/pay/products/entitlements.mjs +0 -34
  160. package/resources/beta/pay/products/entitlements.mjs.map +0 -1
  161. package/resources/beta/pay/products/index.d.mts +0 -4
  162. package/resources/beta/pay/products/index.d.mts.map +0 -1
  163. package/resources/beta/pay/products/index.d.ts +0 -4
  164. package/resources/beta/pay/products/index.d.ts.map +0 -1
  165. package/resources/beta/pay/products/index.js.map +0 -1
  166. package/resources/beta/pay/products/index.mjs.map +0 -1
  167. package/resources/beta/pay/products/products.d.mts +0 -183
  168. package/resources/beta/pay/products/products.d.mts.map +0 -1
  169. package/resources/beta/pay/products/products.d.ts +0 -183
  170. package/resources/beta/pay/products/products.d.ts.map +0 -1
  171. package/resources/beta/pay/products/products.js.map +0 -1
  172. package/resources/beta/pay/products/products.mjs.map +0 -1
  173. package/resources/beta/pay/products/variants.d.mts +0 -206
  174. package/resources/beta/pay/products/variants.d.mts.map +0 -1
  175. package/resources/beta/pay/products/variants.d.ts +0 -206
  176. package/resources/beta/pay/products/variants.d.ts.map +0 -1
  177. package/resources/beta/pay/products/variants.js.map +0 -1
  178. package/resources/beta/pay/products/variants.mjs.map +0 -1
  179. package/resources/beta/pay/products.d.mts.map +0 -1
  180. package/resources/beta/pay/products.d.ts.map +0 -1
  181. package/resources/beta/pay/products.js.map +0 -1
  182. package/resources/beta/pay/products.mjs.map +0 -1
  183. package/resources/beta/pay.d.mts +0 -2
  184. package/resources/beta/pay.d.mts.map +0 -1
  185. package/resources/beta/pay.d.ts +0 -2
  186. package/resources/beta/pay.d.ts.map +0 -1
  187. package/resources/beta/pay.js.map +0 -1
  188. package/resources/beta/pay.mjs.map +0 -1
  189. package/src/resources/beta/pay/coupons.ts +0 -218
  190. package/src/resources/beta/pay/customers.ts +0 -229
  191. package/src/resources/beta/pay/entitlements.ts +0 -113
  192. package/src/resources/beta/pay/index.ts +0 -46
  193. package/src/resources/beta/pay/products/entitlements.ts +0 -93
  194. package/src/resources/beta/pay/products/index.ts +0 -28
  195. package/src/resources/beta/pay/products/products.ts +0 -280
  196. package/src/resources/beta/pay/products/variants.ts +0 -279
  197. /package/resources/beta/{pay → commerce}/products.d.mts +0 -0
  198. /package/resources/beta/{pay → commerce}/products.d.ts +0 -0
  199. /package/resources/beta/{pay → commerce}/products.js +0 -0
  200. /package/resources/beta/{pay → commerce}/products.mjs +0 -0
  201. /package/src/resources/beta/{pay → commerce}/products.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/commerce/commerce.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,+BAA+B,EAC/B,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,EACR;OACM,KAAK,YAAY;OACjB,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,iCAAiC,EACjC,oBAAoB,EACpB,sBAAsB,EACt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iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,23 +1,20 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Pay = void 0;
4
+ exports.Commerce = void 0;
5
5
  const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
7
  const CouponsAPI = tslib_1.__importStar(require("./coupons.js"));
8
8
  const coupons_1 = require("./coupons.js");
9
9
  const CustomersAPI = tslib_1.__importStar(require("./customers.js"));
10
10
  const customers_1 = require("./customers.js");
11
- const EntitlementsAPI = tslib_1.__importStar(require("./entitlements.js"));
12
- const entitlements_1 = require("./entitlements.js");
13
11
  const ProductsAPI = tslib_1.__importStar(require("./products/products.js"));
14
12
  const products_1 = require("./products/products.js");
15
- class Pay extends resource_1.APIResource {
13
+ class Commerce extends resource_1.APIResource {
16
14
  constructor() {
17
15
  super(...arguments);
18
16
  this.customers = new CustomersAPI.Customers(this._client);
19
17
  this.products = new ProductsAPI.Products(this._client);
20
- this.entitlements = new EntitlementsAPI.Entitlements(this._client);
21
18
  this.coupons = new CouponsAPI.Coupons(this._client);
22
19
  }
23
20
  /**
@@ -26,7 +23,7 @@ class Pay extends resource_1.APIResource {
26
23
  * 'immediate' to cancel immediately.
27
24
  */
28
25
  cancel(body, options) {
29
- return this._client.post('/v1/pay/cancel', { body, ...options });
26
+ return this._client.post('/v1/commerce/cancel', { body, ...options });
30
27
  }
31
28
  /**
32
29
  * Verifies if a customer has access to a specific feature. Use this to gate
@@ -35,7 +32,7 @@ class Pay extends resource_1.APIResource {
35
32
  * allowing access to premium features.
36
33
  */
37
34
  check(body, options) {
38
- return this._client.post('/v1/pay/check', { body, ...options });
35
+ return this._client.post('/v1/commerce/check', { body, ...options });
39
36
  }
40
37
  /**
41
38
  * Creates a checkout session for a customer to subscribe to a product. Returns a
@@ -43,12 +40,11 @@ class Pay extends resource_1.APIResource {
43
40
  * customer is subscribed to the product and gains access to its entitlements.
44
41
  */
45
42
  checkout(body, options) {
46
- return this._client.post('/v1/pay/checkout', { body, ...options });
43
+ return this._client.post('/v1/commerce/checkout', { body, ...options });
47
44
  }
48
45
  }
49
- exports.Pay = Pay;
50
- Pay.Customers = customers_1.Customers;
51
- Pay.Products = products_1.Products;
52
- Pay.Entitlements = entitlements_1.Entitlements;
53
- Pay.Coupons = coupons_1.Coupons;
54
- //# sourceMappingURL=pay.js.map
46
+ exports.Commerce = Commerce;
47
+ Commerce.Customers = customers_1.Customers;
48
+ Commerce.Products = products_1.Products;
49
+ Commerce.Coupons = coupons_1.Coupons;
50
+ //# sourceMappingURL=commerce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce.js","sourceRoot":"","sources":["../../../src/resources/beta/commerce/commerce.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,iEAAwC;AACxC,0CAUmB;AACnB,qEAA4C;AAC5C,8CAYqB;AACrB,4EAAmD;AACnD,qDAW6B;AAI7B,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6BrE,CAAC;IA3BC;;;;OAIG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAhCD,4BAgCC;AAiMD,QAAQ,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC/B,QAAQ,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC7B,QAAQ,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -4,16 +4,13 @@ import * as CouponsAPI from "./coupons.mjs";
4
4
  import { Coupons, } from "./coupons.mjs";
5
5
  import * as CustomersAPI from "./customers.mjs";
6
6
  import { Customers, } from "./customers.mjs";
7
- import * as EntitlementsAPI from "./entitlements.mjs";
8
- import { Entitlements, } from "./entitlements.mjs";
9
7
  import * as ProductsAPI from "./products/products.mjs";
10
8
  import { Products, } from "./products/products.mjs";
11
- export class Pay extends APIResource {
9
+ export class Commerce extends APIResource {
12
10
  constructor() {
13
11
  super(...arguments);
14
12
  this.customers = new CustomersAPI.Customers(this._client);
15
13
  this.products = new ProductsAPI.Products(this._client);
16
- this.entitlements = new EntitlementsAPI.Entitlements(this._client);
17
14
  this.coupons = new CouponsAPI.Coupons(this._client);
18
15
  }
19
16
  /**
@@ -22,7 +19,7 @@ export class Pay extends APIResource {
22
19
  * 'immediate' to cancel immediately.
23
20
  */
24
21
  cancel(body, options) {
25
- return this._client.post('/v1/pay/cancel', { body, ...options });
22
+ return this._client.post('/v1/commerce/cancel', { body, ...options });
26
23
  }
27
24
  /**
28
25
  * Verifies if a customer has access to a specific feature. Use this to gate
@@ -31,7 +28,7 @@ export class Pay extends APIResource {
31
28
  * allowing access to premium features.
32
29
  */
33
30
  check(body, options) {
34
- return this._client.post('/v1/pay/check', { body, ...options });
31
+ return this._client.post('/v1/commerce/check', { body, ...options });
35
32
  }
36
33
  /**
37
34
  * Creates a checkout session for a customer to subscribe to a product. Returns a
@@ -39,11 +36,10 @@ export class Pay extends APIResource {
39
36
  * customer is subscribed to the product and gains access to its entitlements.
40
37
  */
41
38
  checkout(body, options) {
42
- return this._client.post('/v1/pay/checkout', { body, ...options });
39
+ return this._client.post('/v1/commerce/checkout', { body, ...options });
43
40
  }
44
41
  }
45
- Pay.Customers = Customers;
46
- Pay.Products = Products;
47
- Pay.Entitlements = Entitlements;
48
- Pay.Coupons = Coupons;
49
- //# sourceMappingURL=pay.mjs.map
42
+ Commerce.Customers = Customers;
43
+ Commerce.Products = Products;
44
+ Commerce.Coupons = Coupons;
45
+ //# sourceMappingURL=commerce.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commerce.mjs","sourceRoot":"","sources":["../../../src/resources/beta/commerce/commerce.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EASL,OAAO,GACR;OACM,KAAK,YAAY;OACjB,EAWL,SAAS,GACV;OACM,KAAK,WAAW;OAChB,EAUL,QAAQ,GACT;AAID,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6BrE,CAAC;IA3BC;;;;OAIG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAiMD,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -0,0 +1,333 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
+ export declare class Coupons extends APIResource {
6
+ /**
7
+ * Creates a discount coupon with a promo code. Coupons can offer percentage or
8
+ * fixed-amount discounts and can be limited by redemption count or expiration
9
+ * date. Customers can apply coupons during checkout.
10
+ */
11
+ create(body: CouponCreateParams, options?: RequestOptions): APIPromise<CouponCreateResponse>;
12
+ /**
13
+ * Updates an existing coupon. Use this to modify the display name or deactivate
14
+ * the coupon. Discount amounts and codes cannot be changed after creation.
15
+ */
16
+ update(couponID: string, body?: CouponUpdateParams | null | undefined, options?: RequestOptions): APIPromise<CouponUpdateResponse>;
17
+ /**
18
+ * Retrieves a paginated list of all coupons. Coupons provide discounts that
19
+ * customers can apply during checkout using a promo code.
20
+ */
21
+ list(query?: CouponListParams | null | undefined, options?: RequestOptions): PagePromise<CouponListResponsesCursorIDPage, CouponListResponse>;
22
+ /**
23
+ * Permanently deletes a coupon. The promo code can no longer be used. Existing
24
+ * discounts applied to active subscriptions are not affected.
25
+ */
26
+ delete(couponID: string, options?: RequestOptions): APIPromise<void>;
27
+ /**
28
+ * Retrieves a coupon by ID. Returns the coupon object including discount details
29
+ * and redemption statistics.
30
+ */
31
+ get(couponID: string, options?: RequestOptions): APIPromise<CouponGetResponse>;
32
+ }
33
+ export type CouponListResponsesCursorIDPage = CursorIDPage<CouponListResponse>;
34
+ /**
35
+ * A discount coupon that customers can apply during checkout using a promo code
36
+ */
37
+ export interface CouponCreateResponse {
38
+ /**
39
+ * Unique identifier for the topic subscription
40
+ */
41
+ id: string;
42
+ /**
43
+ * Whether the coupon is currently active and can be redeemed
44
+ */
45
+ active: boolean;
46
+ /**
47
+ * The promo code customers enter to apply the discount
48
+ */
49
+ code: string;
50
+ /**
51
+ * Timestamp when the coupon was created
52
+ */
53
+ created: string;
54
+ /**
55
+ * How long the discount applies: once (first payment only), repeating (for
56
+ * duration_in_months), or forever
57
+ */
58
+ duration: 'once' | 'repeating' | 'forever';
59
+ /**
60
+ * Number of times this coupon has been successfully redeemed
61
+ */
62
+ times_redeemed: number;
63
+ /**
64
+ * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
65
+ * exclusive with percent_off.
66
+ */
67
+ amount_off?: number | null;
68
+ /**
69
+ * Three-letter ISO currency code for amount_off discounts
70
+ */
71
+ currency?: string | null;
72
+ /**
73
+ * Number of months the discount applies when duration is 'repeating'
74
+ */
75
+ duration_in_months?: number | null;
76
+ /**
77
+ * Maximum number of times this coupon can be redeemed across all customers
78
+ */
79
+ max_redemptions?: number | null;
80
+ /**
81
+ * Display name for the coupon (shown to customers)
82
+ */
83
+ name?: string | null;
84
+ /**
85
+ * Percentage discount (1-100). Mutually exclusive with amount_off.
86
+ */
87
+ percent_off?: number | null;
88
+ /**
89
+ * Expiration date after which the coupon can no longer be redeemed
90
+ */
91
+ redeem_by?: string | null;
92
+ }
93
+ /**
94
+ * A discount coupon that customers can apply during checkout using a promo code
95
+ */
96
+ export interface CouponUpdateResponse {
97
+ /**
98
+ * Unique identifier for the topic subscription
99
+ */
100
+ id: string;
101
+ /**
102
+ * Whether the coupon is currently active and can be redeemed
103
+ */
104
+ active: boolean;
105
+ /**
106
+ * The promo code customers enter to apply the discount
107
+ */
108
+ code: string;
109
+ /**
110
+ * Timestamp when the coupon was created
111
+ */
112
+ created: string;
113
+ /**
114
+ * How long the discount applies: once (first payment only), repeating (for
115
+ * duration_in_months), or forever
116
+ */
117
+ duration: 'once' | 'repeating' | 'forever';
118
+ /**
119
+ * Number of times this coupon has been successfully redeemed
120
+ */
121
+ times_redeemed: number;
122
+ /**
123
+ * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
124
+ * exclusive with percent_off.
125
+ */
126
+ amount_off?: number | null;
127
+ /**
128
+ * Three-letter ISO currency code for amount_off discounts
129
+ */
130
+ currency?: string | null;
131
+ /**
132
+ * Number of months the discount applies when duration is 'repeating'
133
+ */
134
+ duration_in_months?: number | null;
135
+ /**
136
+ * Maximum number of times this coupon can be redeemed across all customers
137
+ */
138
+ max_redemptions?: number | null;
139
+ /**
140
+ * Display name for the coupon (shown to customers)
141
+ */
142
+ name?: string | null;
143
+ /**
144
+ * Percentage discount (1-100). Mutually exclusive with amount_off.
145
+ */
146
+ percent_off?: number | null;
147
+ /**
148
+ * Expiration date after which the coupon can no longer be redeemed
149
+ */
150
+ redeem_by?: string | null;
151
+ }
152
+ /**
153
+ * A discount coupon that customers can apply during checkout using a promo code
154
+ */
155
+ export interface CouponListResponse {
156
+ /**
157
+ * Unique identifier for the topic subscription
158
+ */
159
+ id: string;
160
+ /**
161
+ * Whether the coupon is currently active and can be redeemed
162
+ */
163
+ active: boolean;
164
+ /**
165
+ * The promo code customers enter to apply the discount
166
+ */
167
+ code: string;
168
+ /**
169
+ * Timestamp when the coupon was created
170
+ */
171
+ created: string;
172
+ /**
173
+ * How long the discount applies: once (first payment only), repeating (for
174
+ * duration_in_months), or forever
175
+ */
176
+ duration: 'once' | 'repeating' | 'forever';
177
+ /**
178
+ * Number of times this coupon has been successfully redeemed
179
+ */
180
+ times_redeemed: number;
181
+ /**
182
+ * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
183
+ * exclusive with percent_off.
184
+ */
185
+ amount_off?: number | null;
186
+ /**
187
+ * Three-letter ISO currency code for amount_off discounts
188
+ */
189
+ currency?: string | null;
190
+ /**
191
+ * Number of months the discount applies when duration is 'repeating'
192
+ */
193
+ duration_in_months?: number | null;
194
+ /**
195
+ * Maximum number of times this coupon can be redeemed across all customers
196
+ */
197
+ max_redemptions?: number | null;
198
+ /**
199
+ * Display name for the coupon (shown to customers)
200
+ */
201
+ name?: string | null;
202
+ /**
203
+ * Percentage discount (1-100). Mutually exclusive with amount_off.
204
+ */
205
+ percent_off?: number | null;
206
+ /**
207
+ * Expiration date after which the coupon can no longer be redeemed
208
+ */
209
+ redeem_by?: string | null;
210
+ }
211
+ /**
212
+ * A discount coupon that customers can apply during checkout using a promo code
213
+ */
214
+ export interface CouponGetResponse {
215
+ /**
216
+ * Unique identifier for the topic subscription
217
+ */
218
+ id: string;
219
+ /**
220
+ * Whether the coupon is currently active and can be redeemed
221
+ */
222
+ active: boolean;
223
+ /**
224
+ * The promo code customers enter to apply the discount
225
+ */
226
+ code: string;
227
+ /**
228
+ * Timestamp when the coupon was created
229
+ */
230
+ created: string;
231
+ /**
232
+ * How long the discount applies: once (first payment only), repeating (for
233
+ * duration_in_months), or forever
234
+ */
235
+ duration: 'once' | 'repeating' | 'forever';
236
+ /**
237
+ * Number of times this coupon has been successfully redeemed
238
+ */
239
+ times_redeemed: number;
240
+ /**
241
+ * Fixed discount amount in the smallest currency unit (e.g., cents). Mutually
242
+ * exclusive with percent_off.
243
+ */
244
+ amount_off?: number | null;
245
+ /**
246
+ * Three-letter ISO currency code for amount_off discounts
247
+ */
248
+ currency?: string | null;
249
+ /**
250
+ * Number of months the discount applies when duration is 'repeating'
251
+ */
252
+ duration_in_months?: number | null;
253
+ /**
254
+ * Maximum number of times this coupon can be redeemed across all customers
255
+ */
256
+ max_redemptions?: number | null;
257
+ /**
258
+ * Display name for the coupon (shown to customers)
259
+ */
260
+ name?: string | null;
261
+ /**
262
+ * Percentage discount (1-100). Mutually exclusive with amount_off.
263
+ */
264
+ percent_off?: number | null;
265
+ /**
266
+ * Expiration date after which the coupon can no longer be redeemed
267
+ */
268
+ redeem_by?: string | null;
269
+ }
270
+ export interface CouponCreateParams {
271
+ /**
272
+ * The promo code customers will enter to apply the discount
273
+ */
274
+ code: string;
275
+ /**
276
+ * Optional custom ID for the coupon. If not provided, one will be generated.
277
+ */
278
+ id?: string;
279
+ /**
280
+ * Fixed discount in the smallest currency unit (e.g., cents). Mutually exclusive
281
+ * with percent_off.
282
+ */
283
+ amount_off?: number;
284
+ /**
285
+ * Three-letter ISO currency code for amount_off discounts
286
+ */
287
+ currency?: string;
288
+ /**
289
+ * How long the discount applies: once (first payment only), repeating (for
290
+ * duration_in_months), or forever
291
+ */
292
+ duration?: 'once' | 'repeating' | 'forever';
293
+ /**
294
+ * Number of months the discount applies when duration is 'repeating'
295
+ */
296
+ duration_in_months?: number;
297
+ /**
298
+ * Maximum number of times this coupon can be redeemed
299
+ */
300
+ max_redemptions?: number;
301
+ /**
302
+ * Display name for the coupon (shown to customers)
303
+ */
304
+ name?: string;
305
+ /**
306
+ * Percentage discount (1-100). Mutually exclusive with amount_off.
307
+ */
308
+ percent_off?: number;
309
+ /**
310
+ * Expiration date after which the coupon can no longer be redeemed
311
+ */
312
+ redeem_by?: string;
313
+ }
314
+ export interface CouponUpdateParams {
315
+ /**
316
+ * Whether the coupon is active and can be redeemed
317
+ */
318
+ active?: boolean;
319
+ /**
320
+ * Display name for the coupon
321
+ */
322
+ name?: string;
323
+ }
324
+ export interface CouponListParams extends CursorIDPageParams {
325
+ /**
326
+ * Filter by active status
327
+ */
328
+ active?: boolean;
329
+ }
330
+ export declare namespace Coupons {
331
+ export { type CouponCreateResponse as CouponCreateResponse, type CouponUpdateResponse as CouponUpdateResponse, type CouponListResponse as CouponListResponse, type CouponGetResponse as CouponGetResponse, type CouponListResponsesCursorIDPage as CouponListResponsesCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponUpdateParams as CouponUpdateParams, type CouponListParams as CouponListParams, };
332
+ }
333
+ //# sourceMappingURL=coupons.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coupons.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/commerce/coupons.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;;OAGG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAOnE;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,M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