@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
@@ -1,206 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as CouponsAPI from "./coupons.mjs";
3
- import { Coupon, CouponCreateParams, CouponListParams, CouponUpdateParams, Coupons, CouponsCursorIDPage } from "./coupons.mjs";
4
- import * as CustomersAPI from "./customers.mjs";
5
- import { Customer, CustomerAddress, CustomerBillingPortalParams, CustomerBillingPortalResponse, CustomerCreateParams, CustomerListParams, CustomerUpdateParams, Customers, CustomersCursorIDPage } from "./customers.mjs";
6
- import * as EntitlementsAPI from "./entitlements.mjs";
7
- import { Entitlement, EntitlementCreateParams, EntitlementListParams, EntitlementUpdateParams, Entitlements, EntitlementsCursorIDPage } from "./entitlements.mjs";
8
- import * as ProductsAPI from "./products/products.mjs";
9
- import { Product, ProductCreateParams, ProductListParams, ProductUpdateParams, Products, ProductsCursorIDPage } from "./products/products.mjs";
10
- import { APIPromise } from "../../../core/api-promise.mjs";
11
- import { RequestOptions } from "../../../internal/request-options.mjs";
12
- export declare class Pay extends APIResource {
13
- customers: CustomersAPI.Customers;
14
- products: ProductsAPI.Products;
15
- entitlements: EntitlementsAPI.Entitlements;
16
- coupons: CouponsAPI.Coupons;
17
- /**
18
- * Cancels a customer's subscription. By default, the subscription remains active
19
- * until the end of the current billing period. Set cancellation_timing to
20
- * 'immediate' to cancel immediately.
21
- */
22
- cancel(body: PayCancelParams, options?: RequestOptions): APIPromise<PayCancelResponse>;
23
- /**
24
- * Verifies if a customer has access to a specific feature. Use this to gate
25
- * features in your app based on the customer's active subscription and the
26
- * entitlements attached to their product. Hercules recommends calling this before
27
- * allowing access to premium features.
28
- */
29
- check(body: PayCheckParams, options?: RequestOptions): APIPromise<PayCheckResponse>;
30
- /**
31
- * Creates a checkout session for a customer to subscribe to a product. Returns a
32
- * URL to redirect the customer to for payment. After successful payment, the
33
- * customer is subscribed to the product and gains access to its entitlements.
34
- */
35
- checkout(body: PayCheckoutParams, options?: RequestOptions): APIPromise<PayCheckoutResponse>;
36
- }
37
- /**
38
- * Cancel subscription response
39
- */
40
- export interface PayCancelResponse {
41
- /**
42
- * The subscription ID
43
- */
44
- id: string;
45
- /**
46
- * When the cancellation takes effect
47
- */
48
- cancellation_timing: 'immediate' | 'at_billing_period_end';
49
- /**
50
- * The subscription status
51
- */
52
- status: string;
53
- /**
54
- * When the subscription was canceled
55
- */
56
- canceled_at?: string | null;
57
- }
58
- /**
59
- * Check entitlement response
60
- */
61
- export interface PayCheckResponse {
62
- /**
63
- * The entitlement ID that was checked
64
- */
65
- entitlement_id: string;
66
- /**
67
- * Whether the customer has the entitlement
68
- */
69
- has_entitlement: boolean;
70
- }
71
- /**
72
- * Checkout response. For new customers, returns a checkout URL. For existing
73
- * subscribers, returns the updated subscription.
74
- */
75
- export interface PayCheckoutResponse {
76
- /**
77
- * The checkout session ID (for checkout action) or subscription ID (for update
78
- * action)
79
- */
80
- id: string;
81
- /**
82
- * The action taken: 'checkout' for new subscriptions (redirect to URL), 'update'
83
- * for subscription changes (already applied)
84
- */
85
- action: 'checkout' | 'update';
86
- /**
87
- * The checkout mode: subscription for recurring prices, payment for one-time
88
- * prices. Only present for 'checkout' action.
89
- */
90
- mode?: 'subscription' | 'payment' | null;
91
- /**
92
- * The updated subscription details. Only present for 'update' action.
93
- */
94
- subscription?: PayCheckoutResponse.Subscription | null;
95
- /**
96
- * The checkout URL to redirect the customer to. Only present for 'checkout'
97
- * action.
98
- */
99
- url?: string | null;
100
- }
101
- export declare namespace PayCheckoutResponse {
102
- /**
103
- * The updated subscription details. Only present for 'update' action.
104
- */
105
- interface Subscription {
106
- /**
107
- * The subscription ID
108
- */
109
- id: string;
110
- /**
111
- * The product ID
112
- */
113
- product_id: string;
114
- /**
115
- * The subscription status
116
- */
117
- status: string;
118
- /**
119
- * The variant ID if applicable
120
- */
121
- variant_id?: string | null;
122
- }
123
- }
124
- export interface PayCancelParams {
125
- /**
126
- * The customer ID
127
- */
128
- customer_id: string;
129
- /**
130
- * The subscription ID to cancel
131
- */
132
- subscription_id: string;
133
- /**
134
- * When to cancel the subscription. Defaults to 'at_billing_period_end' to allow
135
- * customers to use remaining time.
136
- */
137
- cancellation_timing?: 'immediate' | 'at_billing_period_end';
138
- }
139
- export interface PayCheckParams {
140
- /**
141
- * The customer ID
142
- */
143
- customer_id: string;
144
- /**
145
- * The entitlement ID to check for access
146
- */
147
- entitlement_id: string;
148
- }
149
- export interface PayCheckoutParams {
150
- /**
151
- * The customer ID
152
- */
153
- customer_id: string;
154
- /**
155
- * The product ID to purchase
156
- */
157
- product_id: string;
158
- /**
159
- * Optional custom ID for the subscription or payment. If not provided, one will be
160
- * generated.
161
- */
162
- id?: string;
163
- /**
164
- * Override billing cycle anchor behavior for subscription updates. 'now' resets to
165
- * current time, 'unchanged' keeps original anchor. If not provided, uses the
166
- * price's configured default.
167
- */
168
- billing_cycle_anchor?: 'now' | 'unchanged';
169
- /**
170
- * URL to redirect on cancel
171
- */
172
- cancel_url?: string;
173
- /**
174
- * Promotion code to apply
175
- */
176
- promotion_code?: string;
177
- /**
178
- * Override proration behavior for subscription updates. 'default' creates
179
- * prorations, 'none' disables them. If not provided, uses the price's configured
180
- * default.
181
- */
182
- proration_behavior?: 'default' | 'none';
183
- /**
184
- * Override proration date calculation for subscription updates. 'now' uses current
185
- * time, 'start_of_period' uses billing period start. If not provided, uses the
186
- * price's configured default.
187
- */
188
- proration_date?: 'now' | 'start_of_period';
189
- /**
190
- * URL to redirect on success
191
- */
192
- success_url?: string;
193
- /**
194
- * Optional variant ID to specify a particular pricing tier. If not provided, the
195
- * product's default price is used.
196
- */
197
- variant_id?: string;
198
- }
199
- export declare namespace Pay {
200
- export { type PayCancelResponse as PayCancelResponse, type PayCheckResponse as PayCheckResponse, type PayCheckoutResponse as PayCheckoutResponse, type PayCancelParams as PayCancelParams, type PayCheckParams as PayCheckParams, type PayCheckoutParams as PayCheckoutParams, };
201
- export { Customers as Customers, type Customer as Customer, type CustomerAddress as CustomerAddress, type CustomerBillingPortalResponse as CustomerBillingPortalResponse, type CustomersCursorIDPage as CustomersCursorIDPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerBillingPortalParams as CustomerBillingPortalParams, };
202
- export { Products as Products, type Product as Product, type ProductsCursorIDPage as ProductsCursorIDPage, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, };
203
- export { Entitlements as Entitlements, type Entitlement as Entitlement, type EntitlementsCursorIDPage as EntitlementsCursorIDPage, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementListParams as EntitlementListParams, };
204
- export { Coupons as Coupons, type Coupon as Coupon, type CouponsCursorIDPage as CouponsCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponUpdateParams as CouponUpdateParams, type CouponListParams as CouponListParams, };
205
- }
206
- //# sourceMappingURL=pay.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pay.d.mts","sourceRoot":"","sources":["../../../src/resources/beta/pay/pay.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,YAAY;OACjB,EACL,QAAQ,EACR,eAAe,EACf,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,qBAAqB,EACtB;OACM,KAAK,eAAe;OACpB,EACL,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,wBAAwB,EACzB;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;;;OAIG;IACH,QAAQ,CA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AAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -1,206 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as CouponsAPI from "./coupons.js";
3
- import { Coupon, CouponCreateParams, CouponListParams, CouponUpdateParams, Coupons, CouponsCursorIDPage } from "./coupons.js";
4
- import * as CustomersAPI from "./customers.js";
5
- import { Customer, CustomerAddress, CustomerBillingPortalParams, CustomerBillingPortalResponse, CustomerCreateParams, CustomerListParams, CustomerUpdateParams, Customers, CustomersCursorIDPage } from "./customers.js";
6
- import * as EntitlementsAPI from "./entitlements.js";
7
- import { Entitlement, EntitlementCreateParams, EntitlementListParams, EntitlementUpdateParams, Entitlements, EntitlementsCursorIDPage } from "./entitlements.js";
8
- import * as ProductsAPI from "./products/products.js";
9
- import { Product, ProductCreateParams, ProductListParams, ProductUpdateParams, Products, ProductsCursorIDPage } from "./products/products.js";
10
- import { APIPromise } from "../../../core/api-promise.js";
11
- import { RequestOptions } from "../../../internal/request-options.js";
12
- export declare class Pay extends APIResource {
13
- customers: CustomersAPI.Customers;
14
- products: ProductsAPI.Products;
15
- entitlements: EntitlementsAPI.Entitlements;
16
- coupons: CouponsAPI.Coupons;
17
- /**
18
- * Cancels a customer's subscription. By default, the subscription remains active
19
- * until the end of the current billing period. Set cancellation_timing to
20
- * 'immediate' to cancel immediately.
21
- */
22
- cancel(body: PayCancelParams, options?: RequestOptions): APIPromise<PayCancelResponse>;
23
- /**
24
- * Verifies if a customer has access to a specific feature. Use this to gate
25
- * features in your app based on the customer's active subscription and the
26
- * entitlements attached to their product. Hercules recommends calling this before
27
- * allowing access to premium features.
28
- */
29
- check(body: PayCheckParams, options?: RequestOptions): APIPromise<PayCheckResponse>;
30
- /**
31
- * Creates a checkout session for a customer to subscribe to a product. Returns a
32
- * URL to redirect the customer to for payment. After successful payment, the
33
- * customer is subscribed to the product and gains access to its entitlements.
34
- */
35
- checkout(body: PayCheckoutParams, options?: RequestOptions): APIPromise<PayCheckoutResponse>;
36
- }
37
- /**
38
- * Cancel subscription response
39
- */
40
- export interface PayCancelResponse {
41
- /**
42
- * The subscription ID
43
- */
44
- id: string;
45
- /**
46
- * When the cancellation takes effect
47
- */
48
- cancellation_timing: 'immediate' | 'at_billing_period_end';
49
- /**
50
- * The subscription status
51
- */
52
- status: string;
53
- /**
54
- * When the subscription was canceled
55
- */
56
- canceled_at?: string | null;
57
- }
58
- /**
59
- * Check entitlement response
60
- */
61
- export interface PayCheckResponse {
62
- /**
63
- * The entitlement ID that was checked
64
- */
65
- entitlement_id: string;
66
- /**
67
- * Whether the customer has the entitlement
68
- */
69
- has_entitlement: boolean;
70
- }
71
- /**
72
- * Checkout response. For new customers, returns a checkout URL. For existing
73
- * subscribers, returns the updated subscription.
74
- */
75
- export interface PayCheckoutResponse {
76
- /**
77
- * The checkout session ID (for checkout action) or subscription ID (for update
78
- * action)
79
- */
80
- id: string;
81
- /**
82
- * The action taken: 'checkout' for new subscriptions (redirect to URL), 'update'
83
- * for subscription changes (already applied)
84
- */
85
- action: 'checkout' | 'update';
86
- /**
87
- * The checkout mode: subscription for recurring prices, payment for one-time
88
- * prices. Only present for 'checkout' action.
89
- */
90
- mode?: 'subscription' | 'payment' | null;
91
- /**
92
- * The updated subscription details. Only present for 'update' action.
93
- */
94
- subscription?: PayCheckoutResponse.Subscription | null;
95
- /**
96
- * The checkout URL to redirect the customer to. Only present for 'checkout'
97
- * action.
98
- */
99
- url?: string | null;
100
- }
101
- export declare namespace PayCheckoutResponse {
102
- /**
103
- * The updated subscription details. Only present for 'update' action.
104
- */
105
- interface Subscription {
106
- /**
107
- * The subscription ID
108
- */
109
- id: string;
110
- /**
111
- * The product ID
112
- */
113
- product_id: string;
114
- /**
115
- * The subscription status
116
- */
117
- status: string;
118
- /**
119
- * The variant ID if applicable
120
- */
121
- variant_id?: string | null;
122
- }
123
- }
124
- export interface PayCancelParams {
125
- /**
126
- * The customer ID
127
- */
128
- customer_id: string;
129
- /**
130
- * The subscription ID to cancel
131
- */
132
- subscription_id: string;
133
- /**
134
- * When to cancel the subscription. Defaults to 'at_billing_period_end' to allow
135
- * customers to use remaining time.
136
- */
137
- cancellation_timing?: 'immediate' | 'at_billing_period_end';
138
- }
139
- export interface PayCheckParams {
140
- /**
141
- * The customer ID
142
- */
143
- customer_id: string;
144
- /**
145
- * The entitlement ID to check for access
146
- */
147
- entitlement_id: string;
148
- }
149
- export interface PayCheckoutParams {
150
- /**
151
- * The customer ID
152
- */
153
- customer_id: string;
154
- /**
155
- * The product ID to purchase
156
- */
157
- product_id: string;
158
- /**
159
- * Optional custom ID for the subscription or payment. If not provided, one will be
160
- * generated.
161
- */
162
- id?: string;
163
- /**
164
- * Override billing cycle anchor behavior for subscription updates. 'now' resets to
165
- * current time, 'unchanged' keeps original anchor. If not provided, uses the
166
- * price's configured default.
167
- */
168
- billing_cycle_anchor?: 'now' | 'unchanged';
169
- /**
170
- * URL to redirect on cancel
171
- */
172
- cancel_url?: string;
173
- /**
174
- * Promotion code to apply
175
- */
176
- promotion_code?: string;
177
- /**
178
- * Override proration behavior for subscription updates. 'default' creates
179
- * prorations, 'none' disables them. If not provided, uses the price's configured
180
- * default.
181
- */
182
- proration_behavior?: 'default' | 'none';
183
- /**
184
- * Override proration date calculation for subscription updates. 'now' uses current
185
- * time, 'start_of_period' uses billing period start. If not provided, uses the
186
- * price's configured default.
187
- */
188
- proration_date?: 'now' | 'start_of_period';
189
- /**
190
- * URL to redirect on success
191
- */
192
- success_url?: string;
193
- /**
194
- * Optional variant ID to specify a particular pricing tier. If not provided, the
195
- * product's default price is used.
196
- */
197
- variant_id?: string;
198
- }
199
- export declare namespace Pay {
200
- export { type PayCancelResponse as PayCancelResponse, type PayCheckResponse as PayCheckResponse, type PayCheckoutResponse as PayCheckoutResponse, type PayCancelParams as PayCancelParams, type PayCheckParams as PayCheckParams, type PayCheckoutParams as PayCheckoutParams, };
201
- export { Customers as Customers, type Customer as Customer, type CustomerAddress as CustomerAddress, type CustomerBillingPortalResponse as CustomerBillingPortalResponse, type CustomersCursorIDPage as CustomersCursorIDPage, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, type CustomerBillingPortalParams as CustomerBillingPortalParams, };
202
- export { Products as Products, type Product as Product, type ProductsCursorIDPage as ProductsCursorIDPage, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, };
203
- export { Entitlements as Entitlements, type Entitlement as Entitlement, type EntitlementsCursorIDPage as EntitlementsCursorIDPage, type EntitlementCreateParams as EntitlementCreateParams, type EntitlementUpdateParams as EntitlementUpdateParams, type EntitlementListParams as EntitlementListParams, };
204
- export { Coupons as Coupons, type Coupon as Coupon, type CouponsCursorIDPage as CouponsCursorIDPage, type CouponCreateParams as CouponCreateParams, type CouponUpdateParams as CouponUpdateParams, type CouponListParams as CouponListParams, };
205
- }
206
- //# sourceMappingURL=pay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pay.d.ts","sourceRoot":"","sources":["../../../src/resources/beta/pay/pay.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EACL,MAAM,EACN,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,OAAO,EACP,mBAAmB,EACpB;OACM,KAAK,YAAY;OACjB,EACL,QAAQ,EACR,eAAe,EACf,2BAA2B,EAC3B,6BAA6B,EAC7B,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,qBAAqB,EACtB;OACM,KAAK,eAAe;OACpB,EACL,WAAW,EACX,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,wBAAwB,EACzB;OACM,KAAK,WAAW;OAChB,EACL,OAAO,EACP,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;IAItF;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAInF;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,U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GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA6BrE,CAAC;IA3BC;;;;OAIG;IACH,MAAM,CAAC,IAAqB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAoB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,IAAuB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;CACF;AAkMD,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC;AAC1B,GAAG,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACxB,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC;AAChC,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -1,53 +0,0 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
2
- import * as EntitlementsAPI from "../entitlements.mjs";
3
- import { APIPromise } from "../../../../core/api-promise.mjs";
4
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../../core/pagination.mjs";
5
- import { RequestOptions } from "../../../../internal/request-options.mjs";
6
- export declare class Entitlements extends APIResource {
7
- /**
8
- * Retrieves all entitlements attached to a product. These entitlements define the
9
- * features that customers subscribed to this product can access.
10
- */
11
- list(productID: string, query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<ProductEntitlementsCursorIDPage, ProductEntitlement>;
12
- /**
13
- * Attaches an entitlement to a product. All customers subscribed to this product
14
- * will gain access to the attached feature. Hercules recommends attaching
15
- * entitlements when creating or updating products to keep feature access in sync.
16
- */
17
- attach(productID: string, body: EntitlementAttachParams, options?: RequestOptions): APIPromise<ProductEntitlement>;
18
- /**
19
- * Removes an entitlement from a product. Customers subscribed to this product will
20
- * lose access to the feature. Existing subscriptions are affected immediately.
21
- */
22
- remove(featureID: string, params: EntitlementRemoveParams, options?: RequestOptions): APIPromise<void>;
23
- }
24
- export type ProductEntitlementsCursorIDPage = CursorIDPage<ProductEntitlement>;
25
- /**
26
- * An entitlement attached to a product. All customers subscribed to the product
27
- * gain access to this entitlement.
28
- */
29
- export interface ProductEntitlement {
30
- /**
31
- * Unique identifier for the topic subscription
32
- */
33
- id: string;
34
- /**
35
- * The entitlement attached to the product
36
- */
37
- entitlement: EntitlementsAPI.Entitlement;
38
- }
39
- export interface EntitlementListParams extends CursorIDPageParams {
40
- }
41
- export interface EntitlementAttachParams {
42
- /**
43
- * The ID of the entitlement to attach to the product
44
- */
45
- entitlement: string;
46
- }
47
- export interface EntitlementRemoveParams {
48
- product_id: string;
49
- }
50
- export declare namespace Entitlements {
51
- export { type ProductEntitlement as ProductEntitlement, type ProductEntitlementsCursorIDPage as ProductEntitlementsCursorIDPage, type EntitlementListParams as EntitlementListParams, type EntitlementAttachParams as EntitlementAttachParams, type EntitlementRemoveParams as EntitlementRemoveParams, };
52
- }
53
- //# sourceMappingURL=entitlements.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entitlements.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/pay/products/entitlements.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK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.js";
2
- import * as EntitlementsAPI from "../entitlements.js";
3
- import { APIPromise } from "../../../../core/api-promise.js";
4
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../../core/pagination.js";
5
- import { RequestOptions } from "../../../../internal/request-options.js";
6
- export declare class Entitlements extends APIResource {
7
- /**
8
- * Retrieves all entitlements attached to a product. These entitlements define the
9
- * features that customers subscribed to this product can access.
10
- */
11
- list(productID: string, query?: EntitlementListParams | null | undefined, options?: RequestOptions): PagePromise<ProductEntitlementsCursorIDPage, ProductEntitlement>;
12
- /**
13
- * Attaches an entitlement to a product. All customers subscribed to this product
14
- * will gain access to the attached feature. Hercules recommends attaching
15
- * entitlements when creating or updating products to keep feature access in sync.
16
- */
17
- attach(productID: string, body: EntitlementAttachParams, options?: RequestOptions): APIPromise<ProductEntitlement>;
18
- /**
19
- * Removes an entitlement from a product. Customers subscribed to this product will
20
- * lose access to the feature. Existing subscriptions are affected immediately.
21
- */
22
- remove(featureID: string, params: EntitlementRemoveParams, options?: RequestOptions): APIPromise<void>;
23
- }
24
- export type ProductEntitlementsCursorIDPage = CursorIDPage<ProductEntitlement>;
25
- /**
26
- * An entitlement attached to a product. All customers subscribed to the product
27
- * gain access to this entitlement.
28
- */
29
- export interface ProductEntitlement {
30
- /**
31
- * Unique identifier for the topic subscription
32
- */
33
- id: string;
34
- /**
35
- * The entitlement attached to the product
36
- */
37
- entitlement: EntitlementsAPI.Entitlement;
38
- }
39
- export interface EntitlementListParams extends CursorIDPageParams {
40
- }
41
- export interface EntitlementAttachParams {
42
- /**
43
- * The ID of the entitlement to attach to the product
44
- */
45
- entitlement: string;
46
- }
47
- export interface EntitlementRemoveParams {
48
- product_id: string;
49
- }
50
- export declare namespace Entitlements {
51
- export { type ProductEntitlement as ProductEntitlement, type ProductEntitlementsCursorIDPage as ProductEntitlementsCursorIDPage, type EntitlementListParams as EntitlementListParams, type EntitlementAttachParams as EntitlementAttachParams, type EntitlementRemoveParams as EntitlementRemoveParams, };
52
- }
53
- //# sourceMappingURL=entitlements.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/pay/products/entitlements.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,kBAAkB,CAAC;IAQnE;;;;OAIG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOvG;AAED,MAAM,MAAM,+BAA+B,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC;AAE/E;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC,WAAW,CAAC;CAC1C;AAED,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;CAAG;AAEpE,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -1,38 +0,0 @@
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.Entitlements = void 0;
5
- const resource_1 = require("../../../../core/resource.js");
6
- const pagination_1 = require("../../../../core/pagination.js");
7
- const headers_1 = require("../../../../internal/headers.js");
8
- const path_1 = require("../../../../internal/utils/path.js");
9
- class Entitlements extends resource_1.APIResource {
10
- /**
11
- * Retrieves all entitlements attached to a product. These entitlements define the
12
- * features that customers subscribed to this product can access.
13
- */
14
- list(productID, query = {}, options) {
15
- return this._client.getAPIList((0, path_1.path) `/v1/pay/products/${productID}/entitlements`, (pagination_1.CursorIDPage), { query, ...options });
16
- }
17
- /**
18
- * Attaches an entitlement to a product. All customers subscribed to this product
19
- * will gain access to the attached feature. Hercules recommends attaching
20
- * entitlements when creating or updating products to keep feature access in sync.
21
- */
22
- attach(productID, body, options) {
23
- return this._client.post((0, path_1.path) `/v1/pay/products/${productID}/entitlements`, { body, ...options });
24
- }
25
- /**
26
- * Removes an entitlement from a product. Customers subscribed to this product will
27
- * lose access to the feature. Existing subscriptions are affected immediately.
28
- */
29
- remove(featureID, params, options) {
30
- const { product_id } = params;
31
- return this._client.delete((0, path_1.path) `/v1/pay/products/${product_id}/entitlements/${featureID}`, {
32
- ...options,
33
- headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
34
- });
35
- }
36
- }
37
- exports.Entitlements = Entitlements;
38
- //# sourceMappingURL=entitlements.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../../../src/resources/beta/pay/products/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAGxD,+DAAiG;AACjG,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;OAGG;IACH,IAAI,CACF,SAAiB,EACjB,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,SAAS,eAAe,EAChD,CAAA,yBAAgC,CAAA,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,MAA+B,EAAE,OAAwB;QACjF,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,UAAU,iBAAiB,SAAS,EAAE,EAAE;YACzF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,oCAyCC"}
@@ -1,34 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../../core/resource.mjs";
3
- import { CursorIDPage } from "../../../../core/pagination.mjs";
4
- import { buildHeaders } from "../../../../internal/headers.mjs";
5
- import { path } from "../../../../internal/utils/path.mjs";
6
- export class Entitlements extends APIResource {
7
- /**
8
- * Retrieves all entitlements attached to a product. These entitlements define the
9
- * features that customers subscribed to this product can access.
10
- */
11
- list(productID, query = {}, options) {
12
- return this._client.getAPIList(path `/v1/pay/products/${productID}/entitlements`, (CursorIDPage), { query, ...options });
13
- }
14
- /**
15
- * Attaches an entitlement to a product. All customers subscribed to this product
16
- * will gain access to the attached feature. Hercules recommends attaching
17
- * entitlements when creating or updating products to keep feature access in sync.
18
- */
19
- attach(productID, body, options) {
20
- return this._client.post(path `/v1/pay/products/${productID}/entitlements`, { body, ...options });
21
- }
22
- /**
23
- * Removes an entitlement from a product. Customers subscribed to this product will
24
- * lose access to the feature. Existing subscriptions are affected immediately.
25
- */
26
- remove(featureID, params, options) {
27
- const { product_id } = params;
28
- return this._client.delete(path `/v1/pay/products/${product_id}/entitlements/${featureID}`, {
29
- ...options,
30
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
31
- });
32
- }
33
- }
34
- //# sourceMappingURL=entitlements.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/pay/products/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAwC;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,IAAI,CACF,SAAiB,EACjB,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,oBAAoB,SAAS,eAAe,EAChD,CAAA,YAAgC,CAAA,EAChC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,MAAM,CACJ,SAAiB,EACjB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,SAAS,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,MAA+B,EAAE,OAAwB;QACjF,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,UAAU,iBAAiB,SAAS,EAAE,EAAE;YACzF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- export { Entitlements, type ProductEntitlement, type EntitlementListParams, type EntitlementAttachParams, type EntitlementRemoveParams, type ProductEntitlementsCursorIDPage, } from "./entitlements.mjs";
2
- export { Products, type Product, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductsCursorIDPage, } from "./products.mjs";
3
- export { Variants, type Variant, type VariantCreateParams, type VariantUpdateParams, type VariantListParams, type VariantArchiveParams, type VariantGetParams, type VariantsCursorIDPage, } from "./variants.mjs";
4
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/pay/products/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,GACrC;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B"}