@stigg/typescript 0.1.0-alpha.3 → 0.1.0-alpha.7

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 (204) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +9 -0
  3. package/client.d.mts +6 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +6 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +16 -21
  8. package/client.js.map +1 -1
  9. package/client.mjs +17 -22
  10. package/client.mjs.map +1 -1
  11. package/internal/parse.d.mts.map +1 -1
  12. package/internal/parse.d.ts.map +1 -1
  13. package/internal/parse.js +5 -0
  14. package/internal/parse.js.map +1 -1
  15. package/internal/parse.mjs +5 -0
  16. package/internal/parse.mjs.map +1 -1
  17. package/internal/qs/formats.d.mts +7 -0
  18. package/internal/qs/formats.d.mts.map +1 -0
  19. package/internal/qs/formats.d.ts +7 -0
  20. package/internal/qs/formats.d.ts.map +1 -0
  21. package/internal/qs/formats.js +13 -0
  22. package/internal/qs/formats.js.map +1 -0
  23. package/internal/qs/formats.mjs +9 -0
  24. package/internal/qs/formats.mjs.map +1 -0
  25. package/internal/qs/index.d.mts +10 -0
  26. package/internal/qs/index.d.mts.map +1 -0
  27. package/internal/qs/index.d.ts +10 -0
  28. package/internal/qs/index.d.ts.map +1 -0
  29. package/internal/qs/index.js +14 -0
  30. package/internal/qs/index.js.map +1 -0
  31. package/internal/qs/index.mjs +10 -0
  32. package/internal/qs/index.mjs.map +1 -0
  33. package/internal/qs/stringify.d.mts +3 -0
  34. package/internal/qs/stringify.d.mts.map +1 -0
  35. package/internal/qs/stringify.d.ts +3 -0
  36. package/internal/qs/stringify.d.ts.map +1 -0
  37. package/internal/qs/stringify.js +277 -0
  38. package/internal/qs/stringify.js.map +1 -0
  39. package/internal/qs/stringify.mjs +274 -0
  40. package/internal/qs/stringify.mjs.map +1 -0
  41. package/internal/qs/types.d.mts +57 -0
  42. package/internal/qs/types.d.mts.map +1 -0
  43. package/internal/qs/types.d.ts +57 -0
  44. package/internal/qs/types.d.ts.map +1 -0
  45. package/internal/qs/types.js +3 -0
  46. package/internal/qs/types.js.map +1 -0
  47. package/internal/qs/types.mjs +2 -0
  48. package/internal/qs/types.mjs.map +1 -0
  49. package/internal/qs/utils.d.mts +15 -0
  50. package/internal/qs/utils.d.mts.map +1 -0
  51. package/internal/qs/utils.d.ts +15 -0
  52. package/internal/qs/utils.d.ts.map +1 -0
  53. package/internal/qs/utils.js +230 -0
  54. package/internal/qs/utils.js.map +1 -0
  55. package/internal/qs/utils.mjs +217 -0
  56. package/internal/qs/utils.mjs.map +1 -0
  57. package/package.json +1 -1
  58. package/resources/index.d.mts +1 -1
  59. package/resources/index.d.mts.map +1 -1
  60. package/resources/index.d.ts +1 -1
  61. package/resources/index.d.ts.map +1 -1
  62. package/resources/index.js.map +1 -1
  63. package/resources/index.mjs +1 -1
  64. package/resources/index.mjs.map +1 -1
  65. package/resources/v1/coupons.d.mts +55 -96
  66. package/resources/v1/coupons.d.mts.map +1 -1
  67. package/resources/v1/coupons.d.ts +55 -96
  68. package/resources/v1/coupons.d.ts.map +1 -1
  69. package/resources/v1/coupons.js +4 -3
  70. package/resources/v1/coupons.js.map +1 -1
  71. package/resources/v1/coupons.mjs +4 -3
  72. package/resources/v1/coupons.mjs.map +1 -1
  73. package/resources/v1/customers/customers.d.mts +170 -46
  74. package/resources/v1/customers/customers.d.mts.map +1 -1
  75. package/resources/v1/customers/customers.d.ts +170 -46
  76. package/resources/v1/customers/customers.d.ts.map +1 -1
  77. package/resources/v1/customers/customers.js +32 -15
  78. package/resources/v1/customers/customers.js.map +1 -1
  79. package/resources/v1/customers/customers.mjs +32 -15
  80. package/resources/v1/customers/customers.mjs.map +1 -1
  81. package/resources/v1/customers/index.d.mts +2 -2
  82. package/resources/v1/customers/index.d.mts.map +1 -1
  83. package/resources/v1/customers/index.d.ts +2 -2
  84. package/resources/v1/customers/index.d.ts.map +1 -1
  85. package/resources/v1/customers/index.js +3 -3
  86. package/resources/v1/customers/index.js.map +1 -1
  87. package/resources/v1/customers/index.mjs +1 -1
  88. package/resources/v1/customers/index.mjs.map +1 -1
  89. package/resources/v1/customers/payment-method.d.mts +4 -2
  90. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  91. package/resources/v1/customers/payment-method.d.ts +4 -2
  92. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  93. package/resources/v1/customers/payment-method.js +4 -2
  94. package/resources/v1/customers/payment-method.js.map +1 -1
  95. package/resources/v1/customers/payment-method.mjs +4 -2
  96. package/resources/v1/customers/payment-method.mjs.map +1 -1
  97. package/resources/v1/customers/promotional-entitlements.d.mts +352 -0
  98. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
  99. package/resources/v1/customers/promotional-entitlements.d.ts +352 -0
  100. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
  101. package/resources/v1/customers/promotional-entitlements.js +25 -0
  102. package/resources/v1/customers/promotional-entitlements.js.map +1 -0
  103. package/resources/v1/customers/promotional-entitlements.mjs +21 -0
  104. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
  105. package/resources/v1/events.d.mts +63 -0
  106. package/resources/v1/events.d.mts.map +1 -0
  107. package/resources/v1/events.d.ts +63 -0
  108. package/resources/v1/events.d.ts.map +1 -0
  109. package/resources/v1/events.js +16 -0
  110. package/resources/v1/events.js.map +1 -0
  111. package/resources/v1/events.mjs +12 -0
  112. package/resources/v1/events.mjs.map +1 -0
  113. package/resources/v1/index.d.mts +7 -4
  114. package/resources/v1/index.d.mts.map +1 -1
  115. package/resources/v1/index.d.ts +7 -4
  116. package/resources/v1/index.d.ts.map +1 -1
  117. package/resources/v1/index.js +7 -1
  118. package/resources/v1/index.js.map +1 -1
  119. package/resources/v1/index.mjs +4 -1
  120. package/resources/v1/index.mjs.map +1 -1
  121. package/resources/v1/products.d.mts +126 -0
  122. package/resources/v1/products.d.mts.map +1 -0
  123. package/resources/v1/products.d.ts +126 -0
  124. package/resources/v1/products.d.ts.map +1 -0
  125. package/resources/v1/products.js +19 -0
  126. package/resources/v1/products.js.map +1 -0
  127. package/resources/v1/products.mjs +15 -0
  128. package/resources/v1/products.mjs.map +1 -0
  129. package/resources/v1/subscriptions/future-update.d.mts +9 -22
  130. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  131. package/resources/v1/subscriptions/future-update.d.ts +9 -22
  132. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  133. package/resources/v1/subscriptions/future-update.js +3 -2
  134. package/resources/v1/subscriptions/future-update.js.map +1 -1
  135. package/resources/v1/subscriptions/future-update.mjs +3 -2
  136. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  137. package/resources/v1/subscriptions/index.d.mts +2 -2
  138. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  139. package/resources/v1/subscriptions/index.d.ts +2 -2
  140. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  141. package/resources/v1/subscriptions/index.js.map +1 -1
  142. package/resources/v1/subscriptions/index.mjs +1 -1
  143. package/resources/v1/subscriptions/index.mjs.map +1 -1
  144. package/resources/v1/subscriptions/subscriptions.d.mts +987 -949
  145. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  146. package/resources/v1/subscriptions/subscriptions.d.ts +987 -949
  147. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  148. package/resources/v1/subscriptions/subscriptions.js +39 -11
  149. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  150. package/resources/v1/subscriptions/subscriptions.mjs +40 -12
  151. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  152. package/resources/v1/usage.d.mts +230 -0
  153. package/resources/v1/usage.d.mts.map +1 -0
  154. package/resources/v1/usage.d.ts +230 -0
  155. package/resources/v1/usage.d.ts.map +1 -0
  156. package/resources/v1/usage.js +24 -0
  157. package/resources/v1/usage.js.map +1 -0
  158. package/resources/v1/usage.mjs +20 -0
  159. package/resources/v1/usage.mjs.map +1 -0
  160. package/resources/v1/v1.d.mts +18 -172
  161. package/resources/v1/v1.d.mts.map +1 -1
  162. package/resources/v1/v1.d.ts +18 -172
  163. package/resources/v1/v1.d.ts.map +1 -1
  164. package/resources/v1/v1.js +12 -12
  165. package/resources/v1/v1.js.map +1 -1
  166. package/resources/v1/v1.mjs +12 -12
  167. package/resources/v1/v1.mjs.map +1 -1
  168. package/src/client.ts +25 -40
  169. package/src/internal/parse.ts +6 -0
  170. package/src/internal/qs/LICENSE.md +13 -0
  171. package/src/internal/qs/README.md +3 -0
  172. package/src/internal/qs/formats.ts +10 -0
  173. package/src/internal/qs/index.ts +13 -0
  174. package/src/internal/qs/stringify.ts +385 -0
  175. package/src/internal/qs/types.ts +71 -0
  176. package/src/internal/qs/utils.ts +265 -0
  177. package/src/resources/index.ts +1 -7
  178. package/src/resources/v1/coupons.ts +63 -231
  179. package/src/resources/v1/customers/customers.ts +234 -60
  180. package/src/resources/v1/customers/index.ts +13 -2
  181. package/src/resources/v1/customers/payment-method.ts +4 -2
  182. package/src/resources/v1/customers/promotional-entitlements.ts +468 -0
  183. package/src/resources/v1/events.ts +74 -0
  184. package/src/resources/v1/index.ts +28 -15
  185. package/src/resources/v1/products.ts +162 -0
  186. package/src/resources/v1/subscriptions/future-update.ts +9 -30
  187. package/src/resources/v1/subscriptions/index.ts +8 -11
  188. package/src/resources/v1/subscriptions/subscriptions.ts +2699 -2280
  189. package/src/resources/v1/usage.ts +284 -0
  190. package/src/resources/v1/v1.ts +72 -220
  191. package/src/version.ts +1 -1
  192. package/version.d.mts +1 -1
  193. package/version.d.ts +1 -1
  194. package/version.js +1 -1
  195. package/version.mjs +1 -1
  196. package/resources/v1/customers/usage.d.mts +0 -4
  197. package/resources/v1/customers/usage.d.mts.map +0 -1
  198. package/resources/v1/customers/usage.d.ts +0 -4
  199. package/resources/v1/customers/usage.d.ts.map +0 -1
  200. package/resources/v1/customers/usage.js +0 -9
  201. package/resources/v1/customers/usage.js.map +0 -1
  202. package/resources/v1/customers/usage.mjs +0 -5
  203. package/resources/v1/customers/usage.mjs.map +0 -1
  204. package/src/resources/v1/customers/usage.ts +0 -5
@@ -1,13 +1,19 @@
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.V1 = exports.Subscriptions = exports.Customers = exports.Coupons = void 0;
4
+ exports.V1 = exports.Usage = exports.Subscriptions = exports.Products = exports.Events = exports.Customers = exports.Coupons = void 0;
5
5
  var coupons_1 = require("./coupons.js");
6
6
  Object.defineProperty(exports, "Coupons", { enumerable: true, get: function () { return coupons_1.Coupons; } });
7
7
  var index_1 = require("./customers/index.js");
8
8
  Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_1.Customers; } });
9
+ var events_1 = require("./events.js");
10
+ Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
11
+ var products_1 = require("./products.js");
12
+ Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
9
13
  var index_2 = require("./subscriptions/index.js");
10
14
  Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return index_2.Subscriptions; } });
15
+ var usage_1 = require("./usage.js");
16
+ Object.defineProperty(exports, "Usage", { enumerable: true, get: function () { return usage_1.Usage; } });
11
17
  var v1_1 = require("./v1.js");
12
18
  Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
13
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,8CAQ2B;AAPzB,kGAAA,SAAS,OAAA;AAQX,kDAgB+B;AAf7B,sGAAA,aAAa,OAAA;AAgBf,8BAMc;AALZ,wFAAA,EAAE,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,8CAa2B;AAZzB,kGAAA,SAAS,OAAA;AAaX,sCAAoF;AAA3E,gGAAA,MAAM,OAAA;AACf,0CAKoB;AAJlB,oGAAA,QAAQ,OAAA;AAKV,kDAiB+B;AAhB7B,sGAAA,aAAa,OAAA;AAiBf,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -1,6 +1,9 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  export { Coupons, } from "./coupons.mjs";
3
3
  export { Customers, } from "./customers/index.mjs";
4
+ export { Events } from "./events.mjs";
5
+ export { Products, } from "./products.mjs";
4
6
  export { Subscriptions, } from "./subscriptions/index.mjs";
5
- export { V1, } from "./v1.mjs";
7
+ export { Usage, } from "./usage.mjs";
8
+ export { V1 } from "./v1.mjs";
6
9
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAOR;OACM,EACL,SAAS,GAOV;OACM,EACL,aAAa,GAed;OACM,EACL,EAAE,GAKH"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAMR;OACM,EACL,SAAS,GAYV;OACM,EAAE,MAAM,EAAoD;OAC5D,EACL,QAAQ,GAIT;OACM,EACL,aAAa,GAgBd;OACM,EACL,KAAK,GAKN;OACM,EAAE,EAAE,EAAE"}
@@ -0,0 +1,126 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
9
+ }
10
+ export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
11
+ /**
12
+ * Product configuration object
13
+ */
14
+ export interface ProductListProductsResponse {
15
+ /**
16
+ * The unique identifier for the entity
17
+ */
18
+ id: string;
19
+ /**
20
+ * Timestamp of when the record was created
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Description of the product
25
+ */
26
+ description: string | null;
27
+ /**
28
+ * Display name of the product
29
+ */
30
+ displayName: string;
31
+ /**
32
+ * Metadata associated with the entity
33
+ */
34
+ metadata: {
35
+ [key: string]: string;
36
+ };
37
+ /**
38
+ * Indicates if multiple subscriptions to this product are allowed
39
+ */
40
+ multipleSubscriptions: boolean;
41
+ /**
42
+ * The status of the product
43
+ */
44
+ status: 'PUBLISHED' | 'ARCHIVED';
45
+ /**
46
+ * Timestamp of when the record was last updated
47
+ */
48
+ updatedAt: string;
49
+ /**
50
+ * Product behavior settings for subscription lifecycle management.
51
+ */
52
+ productSettings?: ProductListProductsResponse.ProductSettings;
53
+ }
54
+ export declare namespace ProductListProductsResponse {
55
+ /**
56
+ * Product behavior settings for subscription lifecycle management.
57
+ */
58
+ interface ProductSettings {
59
+ /**
60
+ * Time when the subscription will be cancelled
61
+ */
62
+ subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
63
+ /**
64
+ * Setup for the end of the subscription
65
+ */
66
+ subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
67
+ /**
68
+ * Setup for the start of the subscription
69
+ */
70
+ subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
71
+ /**
72
+ * ID of the plan to downgrade to at the end of the billing period
73
+ */
74
+ downgradePlanId?: string | null;
75
+ /**
76
+ * Indicates if the subscription should be prorated at the end of the billing
77
+ * period
78
+ */
79
+ prorateAtEndOfBillingPeriod?: boolean | null;
80
+ /**
81
+ * ID of the plan to start the subscription with
82
+ */
83
+ subscriptionStartPlanId?: string | null;
84
+ }
85
+ }
86
+ export interface ProductListProductsParams extends MyCursorIDPageParams {
87
+ /**
88
+ * Filter by entity ID
89
+ */
90
+ id?: string;
91
+ /**
92
+ * Filter by creation date using range operators: gt, gte, lt, lte
93
+ */
94
+ createdAt?: ProductListProductsParams.CreatedAt;
95
+ /**
96
+ * Filter by product status. Supports comma-separated values for multiple statuses
97
+ */
98
+ status?: string;
99
+ }
100
+ export declare namespace ProductListProductsParams {
101
+ /**
102
+ * Filter by creation date using range operators: gt, gte, lt, lte
103
+ */
104
+ interface CreatedAt {
105
+ /**
106
+ * Greater than the specified createdAt value
107
+ */
108
+ gt?: string;
109
+ /**
110
+ * Greater than or equal to the specified createdAt value
111
+ */
112
+ gte?: string;
113
+ /**
114
+ * Less than the specified createdAt value
115
+ */
116
+ lt?: string;
117
+ /**
118
+ * Less than or equal to the specified createdAt value
119
+ */
120
+ lte?: string;
121
+ }
122
+ }
123
+ export declare namespace Products {
124
+ export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
125
+ }
126
+ //# sourceMappingURL=products.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;CAMxF;AAED,MAAM,MAAM,0CAA0C,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,126 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../core/pagination.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query?: ProductListProductsParams | null | undefined, options?: RequestOptions): PagePromise<ProductListProductsResponsesMyCursorIDPage, ProductListProductsResponse>;
9
+ }
10
+ export type ProductListProductsResponsesMyCursorIDPage = MyCursorIDPage<ProductListProductsResponse>;
11
+ /**
12
+ * Product configuration object
13
+ */
14
+ export interface ProductListProductsResponse {
15
+ /**
16
+ * The unique identifier for the entity
17
+ */
18
+ id: string;
19
+ /**
20
+ * Timestamp of when the record was created
21
+ */
22
+ createdAt: string;
23
+ /**
24
+ * Description of the product
25
+ */
26
+ description: string | null;
27
+ /**
28
+ * Display name of the product
29
+ */
30
+ displayName: string;
31
+ /**
32
+ * Metadata associated with the entity
33
+ */
34
+ metadata: {
35
+ [key: string]: string;
36
+ };
37
+ /**
38
+ * Indicates if multiple subscriptions to this product are allowed
39
+ */
40
+ multipleSubscriptions: boolean;
41
+ /**
42
+ * The status of the product
43
+ */
44
+ status: 'PUBLISHED' | 'ARCHIVED';
45
+ /**
46
+ * Timestamp of when the record was last updated
47
+ */
48
+ updatedAt: string;
49
+ /**
50
+ * Product behavior settings for subscription lifecycle management.
51
+ */
52
+ productSettings?: ProductListProductsResponse.ProductSettings;
53
+ }
54
+ export declare namespace ProductListProductsResponse {
55
+ /**
56
+ * Product behavior settings for subscription lifecycle management.
57
+ */
58
+ interface ProductSettings {
59
+ /**
60
+ * Time when the subscription will be cancelled
61
+ */
62
+ subscriptionCancellationTime: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
63
+ /**
64
+ * Setup for the end of the subscription
65
+ */
66
+ subscriptionEndSetup: 'DOWNGRADE_TO_FREE' | 'CANCEL_SUBSCRIPTION';
67
+ /**
68
+ * Setup for the start of the subscription
69
+ */
70
+ subscriptionStartSetup: 'PLAN_SELECTION' | 'TRIAL_PERIOD' | 'FREE_PLAN';
71
+ /**
72
+ * ID of the plan to downgrade to at the end of the billing period
73
+ */
74
+ downgradePlanId?: string | null;
75
+ /**
76
+ * Indicates if the subscription should be prorated at the end of the billing
77
+ * period
78
+ */
79
+ prorateAtEndOfBillingPeriod?: boolean | null;
80
+ /**
81
+ * ID of the plan to start the subscription with
82
+ */
83
+ subscriptionStartPlanId?: string | null;
84
+ }
85
+ }
86
+ export interface ProductListProductsParams extends MyCursorIDPageParams {
87
+ /**
88
+ * Filter by entity ID
89
+ */
90
+ id?: string;
91
+ /**
92
+ * Filter by creation date using range operators: gt, gte, lt, lte
93
+ */
94
+ createdAt?: ProductListProductsParams.CreatedAt;
95
+ /**
96
+ * Filter by product status. Supports comma-separated values for multiple statuses
97
+ */
98
+ status?: string;
99
+ }
100
+ export declare namespace ProductListProductsParams {
101
+ /**
102
+ * Filter by creation date using range operators: gt, gte, lt, lte
103
+ */
104
+ interface CreatedAt {
105
+ /**
106
+ * Greater than the specified createdAt value
107
+ */
108
+ gt?: string;
109
+ /**
110
+ * Greater than or equal to the specified createdAt value
111
+ */
112
+ gte?: string;
113
+ /**
114
+ * Less than the specified createdAt value
115
+ */
116
+ lt?: string;
117
+ /**
118
+ * Less than or equal to the specified createdAt value
119
+ */
120
+ lte?: string;
121
+ }
122
+ }
123
+ export declare namespace Products {
124
+ export { type ProductListProductsResponse as ProductListProductsResponse, type ProductListProductsResponsesMyCursorIDPage as ProductListProductsResponsesMyCursorIDPage, type ProductListProductsParams as ProductListProductsParams, };
125
+ }
126
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,2BAA2B,CAAC;CAMxF;AAED,MAAM,MAAM,0CAA0C,GAAG,cAAc,CAAC,2BAA2B,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAEpC;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IAEjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,CAAC,EAAE,2BAA2B,CAAC,eAAe,CAAC;CAC/D;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,eAAe;QAC9B;;WAEG;QACH,4BAA4B,EAAE,uBAAuB,GAAG,WAAW,GAAG,eAAe,CAAC;QAEtF;;WAEG;QACH,oBAAoB,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;QAElE;;WAEG;QACH,sBAAsB,EAAE,gBAAgB,GAAG,cAAc,GAAG,WAAW,CAAC;QAExE;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC;;;WAGG;QACH,2BAA2B,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE7C;;WAEG;QACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACzC;CACF;AAED,MAAM,WAAW,yBAA0B,SAAQ,oBAAoB;IACrE;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Products = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
7
+ class Products extends resource_1.APIResource {
8
+ /**
9
+ * Retrieves a paginated list of products in the environment.
10
+ */
11
+ listProducts(query = {}, options) {
12
+ return this._client.getAPIList('/api/v1/products', (pagination_1.MyCursorIDPage), {
13
+ query,
14
+ ...options,
15
+ });
16
+ }
17
+ }
18
+ exports.Products = Products;
19
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAClD,yDAA+F;AAG/F,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,2BAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAbD,4BAaC"}
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { MyCursorIDPage } from "../../core/pagination.mjs";
4
+ export class Products extends APIResource {
5
+ /**
6
+ * Retrieves a paginated list of products in the environment.
7
+ */
8
+ listProducts(query = {}, options) {
9
+ return this._client.getAPIList('/api/v1/products', (MyCursorIDPage), {
10
+ query,
11
+ ...options,
12
+ });
13
+ }
14
+ }
15
+ //# sourceMappingURL=products.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/v1/products.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,YAAY,CACV,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,cAA2C,CAAA,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -3,35 +3,22 @@ import { APIPromise } from "../../../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../../../internal/request-options.mjs";
4
4
  export declare class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
- cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelPendingPaymentResponse>;
8
+ cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
9
9
  /**
10
- * Cancel scheduled update
10
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
11
+ * change.
11
12
  */
12
- cancelSchedule(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelScheduleResponse>;
13
+ cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
13
14
  }
14
15
  /**
15
16
  * Response object
16
17
  */
17
- export interface FutureUpdateCancelPendingPaymentResponse {
18
- data: FutureUpdateCancelPendingPaymentResponse.Data;
18
+ export interface CancelSubscription {
19
+ data: CancelSubscription.Data;
19
20
  }
20
- export declare namespace FutureUpdateCancelPendingPaymentResponse {
21
- interface Data {
22
- /**
23
- * Subscription ID
24
- */
25
- id: string;
26
- }
27
- }
28
- /**
29
- * Response object
30
- */
31
- export interface FutureUpdateCancelScheduleResponse {
32
- data: FutureUpdateCancelScheduleResponse.Data;
33
- }
34
- export declare namespace FutureUpdateCancelScheduleResponse {
21
+ export declare namespace CancelSubscription {
35
22
  interface Data {
36
23
  /**
37
24
  * Subscription ID
@@ -40,6 +27,6 @@ export declare namespace FutureUpdateCancelScheduleResponse {
40
27
  }
41
28
  }
42
29
  export declare namespace FutureUpdate {
43
- export { type FutureUpdateCancelPendingPaymentResponse as FutureUpdateCancelPendingPaymentResponse, type FutureUpdateCancelScheduleResponse as FutureUpdateCancelScheduleResponse, };
30
+ export { type CancelSubscription as CancelSubscription };
44
31
  }
45
32
  //# sourceMappingURL=future-update.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAClB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;IAIvD;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,IAAI,EAAE,wCAAwC,CAAC,IAAI,CAAC;CACrD;AAED,yBAAiB,wCAAwC,CAAC;IACxD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,kCAAkC,CAAC,IAAI,CAAC;CAC/C;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
1
+ {"version":3,"file":"future-update.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
@@ -3,35 +3,22 @@ import { APIPromise } from "../../../core/api-promise.js";
3
3
  import { RequestOptions } from "../../../internal/request-options.js";
4
4
  export declare class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
- cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelPendingPaymentResponse>;
8
+ cancelPendingPayment(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
9
9
  /**
10
- * Cancel scheduled update
10
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
11
+ * change.
11
12
  */
12
- cancelSchedule(id: string, options?: RequestOptions): APIPromise<FutureUpdateCancelScheduleResponse>;
13
+ cancelSchedule(id: string, options?: RequestOptions): APIPromise<CancelSubscription>;
13
14
  }
14
15
  /**
15
16
  * Response object
16
17
  */
17
- export interface FutureUpdateCancelPendingPaymentResponse {
18
- data: FutureUpdateCancelPendingPaymentResponse.Data;
18
+ export interface CancelSubscription {
19
+ data: CancelSubscription.Data;
19
20
  }
20
- export declare namespace FutureUpdateCancelPendingPaymentResponse {
21
- interface Data {
22
- /**
23
- * Subscription ID
24
- */
25
- id: string;
26
- }
27
- }
28
- /**
29
- * Response object
30
- */
31
- export interface FutureUpdateCancelScheduleResponse {
32
- data: FutureUpdateCancelScheduleResponse.Data;
33
- }
34
- export declare namespace FutureUpdateCancelScheduleResponse {
21
+ export declare namespace CancelSubscription {
35
22
  interface Data {
36
23
  /**
37
24
  * Subscription ID
@@ -40,6 +27,6 @@ export declare namespace FutureUpdateCancelScheduleResponse {
40
27
  }
41
28
  }
42
29
  export declare namespace FutureUpdate {
43
- export { type FutureUpdateCancelPendingPaymentResponse as FutureUpdateCancelPendingPaymentResponse, type FutureUpdateCancelScheduleResponse as FutureUpdateCancelScheduleResponse, };
30
+ export { type CancelSubscription as CancelSubscription };
44
31
  }
45
32
  //# sourceMappingURL=future-update.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAClB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;IAIvD;;OAEG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;CAGrG;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,IAAI,EAAE,wCAAwC,CAAC,IAAI,CAAC;CACrD;AAED,yBAAiB,wCAAwC,CAAC;IACxD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,kCAAkC,CAAC,IAAI,CAAC;CAC/C;AAED,yBAAiB,kCAAkC,CAAC;IAClD,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,kCAAkC,IAAI,kCAAkC,GAC9E,CAAC;CACH"}
1
+ {"version":3,"file":"future-update.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAI1F;;;OAGG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;CAGrF;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,kBAAkB,CAAC,IAAI,CAAC;CAC/B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC1D"}
@@ -6,13 +6,14 @@ const resource_1 = require("../../../core/resource.js");
6
6
  const path_1 = require("../../../internal/utils/path.js");
7
7
  class FutureUpdate extends resource_1.APIResource {
8
8
  /**
9
- * Cancel pending payment update
9
+ * Cancels a subscription update that is pending payment completion.
10
10
  */
11
11
  cancelPendingPayment(id, options) {
12
12
  return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
13
13
  }
14
14
  /**
15
- * Cancel scheduled update
15
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
16
+ * change.
16
17
  */
17
18
  cancelSchedule(id, options) {
18
19
  return this._client.delete((0, path_1.path) `/api/v1/subscriptions/${id}/future-update/schedule`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAClB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAjBD,oCAiBC"}
1
+ {"version":3,"file":"future-update.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AAfD,oCAeC"}
@@ -3,13 +3,14 @@ import { APIResource } from "../../../core/resource.mjs";
3
3
  import { path } from "../../../internal/utils/path.mjs";
4
4
  export class FutureUpdate extends APIResource {
5
5
  /**
6
- * Cancel pending payment update
6
+ * Cancels a subscription update that is pending payment completion.
7
7
  */
8
8
  cancelPendingPayment(id, options) {
9
9
  return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/pending-payment`, options);
10
10
  }
11
11
  /**
12
- * Cancel scheduled update
12
+ * Cancels a scheduled subscription update, such as a future downgrade or plan
13
+ * change.
13
14
  */
14
15
  cancelSchedule(id, options) {
15
16
  return this._client.delete(path `/api/v1/subscriptions/${id}/future-update/schedule`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAClB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
1
+ {"version":3,"file":"future-update.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/future-update.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,oBAAoB,CAAC,EAAU,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,gCAAgC,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;OAGG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
- export { FutureUpdate, type FutureUpdateCancelPendingPaymentResponse, type FutureUpdateCancelScheduleResponse, } from "./future-update.mjs";
2
- export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.mjs";
1
+ export { FutureUpdate, type CancelSubscription } from "./future-update.mjs";
2
+ export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,wCAAwC,EAC7C,KAAK,kCAAkC,GACxC;OACM,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OACzC,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
@@ -1,3 +1,3 @@
1
- export { FutureUpdate, type FutureUpdateCancelPendingPaymentResponse, type FutureUpdateCancelScheduleResponse, } from "./future-update.js";
2
- export { Subscriptions, type SubscriptionCreateResponse, type SubscriptionRetrieveResponse, type SubscriptionListResponse, type SubscriptionDelegateResponse, type SubscriptionMigrateResponse, type SubscriptionPreviewResponse, type SubscriptionTransferResponse, type SubscriptionCreateParams, type SubscriptionListParams, type SubscriptionDelegateParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.js";
1
+ export { FutureUpdate, type CancelSubscription } from "./future-update.js";
2
+ export { Subscriptions, type Subscription, type SubscriptionListResponse, type SubscriptionImportResponse, type SubscriptionPreviewResponse, type SubscriptionProvisionResponse, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionCancelParams, type SubscriptionDelegateParams, type SubscriptionImportParams, type SubscriptionMigrateParams, type SubscriptionPreviewParams, type SubscriptionProvisionParams, type SubscriptionTransferParams, type SubscriptionListResponsesMyCursorIDPage, } from "./subscriptions.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,wCAAwC,EAC7C,KAAK,kCAAkC,GACxC;OACM,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"OAEO,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE;OACzC,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAC/B,KAAK,uCAAuC,GAC7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,oDAgByB;AAfvB,8GAAA,aAAa,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAwE;AAA/D,6GAAA,YAAY,OAAA;AACrB,oDAiByB;AAhBvB,8GAAA,aAAa,OAAA"}
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { FutureUpdate, } from "./future-update.mjs";
2
+ export { FutureUpdate } from "./future-update.mjs";
3
3
  export { Subscriptions, } from "./subscriptions.mjs";
4
4
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAGb;OACM,EACL,aAAa,GAed"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/subscriptions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,YAAY,EAA2B;OACzC,EACL,aAAa,GAgBd"}