@polar-sh/sdk 1.0.0-alpha.12 → 1.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/2026-04/index.d.cts +36 -36
- package/dist/2026-04/index.d.mts +36 -36
- package/dist/2026-04/services/benefit_grants.cjs +3 -3
- package/dist/2026-04/services/benefit_grants.cjs.map +1 -1
- package/dist/2026-04/services/benefit_grants.d.cts +3 -3
- package/dist/2026-04/services/benefit_grants.d.mts +3 -3
- package/dist/2026-04/services/benefit_grants.mjs +3 -3
- package/dist/2026-04/services/benefit_grants.mjs.map +1 -1
- package/dist/2026-04/services/benefits.cjs +6 -6
- package/dist/2026-04/services/benefits.cjs.map +1 -1
- package/dist/2026-04/services/benefits.d.cts +5 -5
- package/dist/2026-04/services/benefits.d.mts +5 -5
- package/dist/2026-04/services/benefits.mjs +5 -5
- package/dist/2026-04/services/benefits.mjs.map +1 -1
- package/dist/2026-04/services/checkout_links.cjs +3 -3
- package/dist/2026-04/services/checkout_links.cjs.map +1 -1
- package/dist/2026-04/services/checkout_links.d.cts +3 -3
- package/dist/2026-04/services/checkout_links.d.mts +3 -3
- package/dist/2026-04/services/checkout_links.mjs +3 -3
- package/dist/2026-04/services/checkout_links.mjs.map +1 -1
- package/dist/2026-04/services/checkouts.cjs +3 -3
- package/dist/2026-04/services/checkouts.cjs.map +1 -1
- package/dist/2026-04/services/checkouts.d.cts +3 -3
- package/dist/2026-04/services/checkouts.d.mts +3 -3
- package/dist/2026-04/services/checkouts.mjs +3 -3
- package/dist/2026-04/services/checkouts.mjs.map +1 -1
- package/dist/2026-04/services/custom_fields.cjs +3 -3
- package/dist/2026-04/services/custom_fields.cjs.map +1 -1
- package/dist/2026-04/services/custom_fields.d.cts +3 -3
- package/dist/2026-04/services/custom_fields.d.mts +3 -3
- package/dist/2026-04/services/custom_fields.mjs +3 -3
- package/dist/2026-04/services/custom_fields.mjs.map +1 -1
- package/dist/2026-04/services/customer_meters.cjs +3 -3
- package/dist/2026-04/services/customer_meters.cjs.map +1 -1
- package/dist/2026-04/services/customer_meters.d.cts +3 -3
- package/dist/2026-04/services/customer_meters.d.mts +3 -3
- package/dist/2026-04/services/customer_meters.mjs +3 -3
- package/dist/2026-04/services/customer_meters.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.cjs +3 -3
- package/dist/2026-04/services/customer_portal/benefit_grants.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/benefit_grants.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/benefit_grants.mjs +3 -3
- package/dist/2026-04/services/customer_portal/benefit_grants.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.cjs +3 -3
- package/dist/2026-04/services/customer_portal/customer_meters.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/customer_meters.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/customer_meters.mjs +3 -3
- package/dist/2026-04/services/customer_portal/customer_meters.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/customers.cjs +3 -3
- package/dist/2026-04/services/customer_portal/customers.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/customers.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/customers.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/customers.mjs +3 -3
- package/dist/2026-04/services/customer_portal/customers.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.cjs +3 -3
- package/dist/2026-04/services/customer_portal/downloadables.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/downloadables.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/downloadables.mjs +3 -3
- package/dist/2026-04/services/customer_portal/downloadables.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/index.d.cts +10 -10
- package/dist/2026-04/services/customer_portal/index.d.mts +10 -10
- package/dist/2026-04/services/customer_portal/license_keys.cjs +3 -3
- package/dist/2026-04/services/customer_portal/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/license_keys.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/license_keys.mjs +3 -3
- package/dist/2026-04/services/customer_portal/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/members.cjs +3 -3
- package/dist/2026-04/services/customer_portal/members.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/members.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/members.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/members.mjs +3 -3
- package/dist/2026-04/services/customer_portal/members.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/orders.cjs +3 -3
- package/dist/2026-04/services/customer_portal/orders.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/orders.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/orders.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/orders.mjs +3 -3
- package/dist/2026-04/services/customer_portal/orders.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/seats.cjs +3 -3
- package/dist/2026-04/services/customer_portal/seats.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/seats.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/seats.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/seats.mjs +3 -3
- package/dist/2026-04/services/customer_portal/seats.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.cjs +3 -3
- package/dist/2026-04/services/customer_portal/subscriptions.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/subscriptions.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/subscriptions.mjs +3 -3
- package/dist/2026-04/services/customer_portal/subscriptions.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/wallets.cjs +3 -3
- package/dist/2026-04/services/customer_portal/wallets.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/wallets.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/wallets.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/wallets.mjs +3 -3
- package/dist/2026-04/services/customer_portal/wallets.mjs.map +1 -1
- package/dist/2026-04/services/customers/index.cjs +9 -9
- package/dist/2026-04/services/customers/index.cjs.map +1 -1
- package/dist/2026-04/services/customers/index.d.cts +7 -7
- package/dist/2026-04/services/customers/index.d.mts +7 -7
- package/dist/2026-04/services/customers/index.mjs +7 -7
- package/dist/2026-04/services/customers/index.mjs.map +1 -1
- package/dist/2026-04/services/discounts.cjs +3 -3
- package/dist/2026-04/services/discounts.cjs.map +1 -1
- package/dist/2026-04/services/discounts.d.cts +3 -3
- package/dist/2026-04/services/discounts.d.mts +3 -3
- package/dist/2026-04/services/discounts.mjs +3 -3
- package/dist/2026-04/services/discounts.mjs.map +1 -1
- package/dist/2026-04/services/disputes.cjs +3 -3
- package/dist/2026-04/services/disputes.cjs.map +1 -1
- package/dist/2026-04/services/disputes.d.cts +3 -3
- package/dist/2026-04/services/disputes.d.mts +3 -3
- package/dist/2026-04/services/disputes.mjs +3 -3
- package/dist/2026-04/services/disputes.mjs.map +1 -1
- package/dist/2026-04/services/event_types.cjs +3 -3
- package/dist/2026-04/services/event_types.cjs.map +1 -1
- package/dist/2026-04/services/event_types.d.cts +3 -3
- package/dist/2026-04/services/event_types.d.mts +3 -3
- package/dist/2026-04/services/event_types.mjs +3 -3
- package/dist/2026-04/services/event_types.mjs.map +1 -1
- package/dist/2026-04/services/events.cjs +3 -3
- package/dist/2026-04/services/events.cjs.map +1 -1
- package/dist/2026-04/services/events.d.cts +3 -3
- package/dist/2026-04/services/events.d.mts +3 -3
- package/dist/2026-04/services/events.mjs +3 -3
- package/dist/2026-04/services/events.mjs.map +1 -1
- package/dist/2026-04/services/files.cjs +3 -3
- package/dist/2026-04/services/files.cjs.map +1 -1
- package/dist/2026-04/services/files.d.cts +3 -3
- package/dist/2026-04/services/files.d.mts +3 -3
- package/dist/2026-04/services/files.mjs +3 -3
- package/dist/2026-04/services/files.mjs.map +1 -1
- package/dist/2026-04/services/license_keys.cjs +3 -3
- package/dist/2026-04/services/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/license_keys.d.cts +3 -3
- package/dist/2026-04/services/license_keys.d.mts +3 -3
- package/dist/2026-04/services/license_keys.mjs +3 -3
- package/dist/2026-04/services/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/members.cjs +3 -3
- package/dist/2026-04/services/members.cjs.map +1 -1
- package/dist/2026-04/services/members.d.cts +3 -3
- package/dist/2026-04/services/members.d.mts +3 -3
- package/dist/2026-04/services/members.mjs +3 -3
- package/dist/2026-04/services/members.mjs.map +1 -1
- package/dist/2026-04/services/meters.cjs +3 -3
- package/dist/2026-04/services/meters.cjs.map +1 -1
- package/dist/2026-04/services/meters.d.cts +3 -3
- package/dist/2026-04/services/meters.d.mts +3 -3
- package/dist/2026-04/services/meters.mjs +3 -3
- package/dist/2026-04/services/meters.mjs.map +1 -1
- package/dist/2026-04/services/orders.cjs +3 -3
- package/dist/2026-04/services/orders.cjs.map +1 -1
- package/dist/2026-04/services/orders.d.cts +3 -3
- package/dist/2026-04/services/orders.d.mts +3 -3
- package/dist/2026-04/services/orders.mjs +3 -3
- package/dist/2026-04/services/orders.mjs.map +1 -1
- package/dist/2026-04/services/organizations.cjs +3 -3
- package/dist/2026-04/services/organizations.cjs.map +1 -1
- package/dist/2026-04/services/organizations.d.cts +3 -3
- package/dist/2026-04/services/organizations.d.mts +3 -3
- package/dist/2026-04/services/organizations.mjs +3 -3
- package/dist/2026-04/services/organizations.mjs.map +1 -1
- package/dist/2026-04/services/payments.cjs +3 -3
- package/dist/2026-04/services/payments.cjs.map +1 -1
- package/dist/2026-04/services/payments.d.cts +3 -3
- package/dist/2026-04/services/payments.d.mts +3 -3
- package/dist/2026-04/services/payments.mjs +3 -3
- package/dist/2026-04/services/payments.mjs.map +1 -1
- package/dist/2026-04/services/products.cjs +3 -3
- package/dist/2026-04/services/products.cjs.map +1 -1
- package/dist/2026-04/services/products.d.cts +3 -3
- package/dist/2026-04/services/products.d.mts +3 -3
- package/dist/2026-04/services/products.mjs +3 -3
- package/dist/2026-04/services/products.mjs.map +1 -1
- package/dist/2026-04/services/refunds.cjs +3 -3
- package/dist/2026-04/services/refunds.cjs.map +1 -1
- package/dist/2026-04/services/refunds.d.cts +3 -3
- package/dist/2026-04/services/refunds.d.mts +3 -3
- package/dist/2026-04/services/refunds.mjs +3 -3
- package/dist/2026-04/services/refunds.mjs.map +1 -1
- package/dist/2026-04/services/subscriptions.cjs +3 -3
- package/dist/2026-04/services/subscriptions.cjs.map +1 -1
- package/dist/2026-04/services/subscriptions.d.cts +3 -3
- package/dist/2026-04/services/subscriptions.d.mts +3 -3
- package/dist/2026-04/services/subscriptions.mjs +3 -3
- package/dist/2026-04/services/subscriptions.mjs.map +1 -1
- package/dist/2026-04/services/webhooks.cjs +6 -6
- package/dist/2026-04/services/webhooks.cjs.map +1 -1
- package/dist/2026-04/services/webhooks.d.cts +5 -5
- package/dist/2026-04/services/webhooks.d.mts +5 -5
- package/dist/2026-04/services/webhooks.mjs +5 -5
- package/dist/2026-04/services/webhooks.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,14 +4,16 @@ The official TypeScript client for the [Polar API](https://polar.sh/docs/api-ref
|
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
The SDK is currently available under the `next` pre-release tag.
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
pnpm add @polar-sh/sdk
|
|
10
|
+
pnpm add @polar-sh/sdk@next
|
|
9
11
|
```
|
|
10
12
|
|
|
11
13
|
or, with `npm`:
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
|
-
npm install @polar-sh/sdk
|
|
16
|
+
npm install @polar-sh/sdk@next
|
|
15
17
|
```
|
|
16
18
|
|
|
17
19
|
## Quick Start
|
package/dist/2026-04/index.d.cts
CHANGED
|
@@ -20,7 +20,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
20
20
|
create: (body: OrganizationCreate) => Promise<Organization>;
|
|
21
21
|
get: (id: string) => Promise<Organization>;
|
|
22
22
|
update: (id: string, body: OrganizationUpdate) => Promise<Organization>;
|
|
23
|
-
|
|
23
|
+
iterList: (query?: {
|
|
24
24
|
slug?: string | null;
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
@@ -52,7 +52,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
52
52
|
get: (id: string) => Promise<Subscription>;
|
|
53
53
|
revoke: (id: string) => Promise<Subscription>;
|
|
54
54
|
update: (id: string, body: SubscriptionUpdate) => Promise<Subscription>;
|
|
55
|
-
|
|
55
|
+
iterList: (query?: {
|
|
56
56
|
organization_id?: string | string[] | null;
|
|
57
57
|
product_id?: string | string[] | null;
|
|
58
58
|
customer_id?: string | string[] | null;
|
|
@@ -108,7 +108,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
108
108
|
page?: number;
|
|
109
109
|
limit?: number;
|
|
110
110
|
}) => Promise<ListResourceBenefitGrant>;
|
|
111
|
-
|
|
111
|
+
iterList: (query?: {
|
|
112
112
|
organization_id?: string | string[] | null;
|
|
113
113
|
type?: BenefitType | BenefitType[] | null;
|
|
114
114
|
id?: string | string[] | null;
|
|
@@ -119,7 +119,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
119
119
|
sorting?: BenefitSortProperty[] | null;
|
|
120
120
|
metadata?: MetadataQuery;
|
|
121
121
|
}) => AsyncGenerator<Benefit>;
|
|
122
|
-
|
|
122
|
+
iterGrants: (id: string, query?: {
|
|
123
123
|
is_granted?: boolean | null;
|
|
124
124
|
customer_id?: string | string[] | null;
|
|
125
125
|
member_id?: string | string[] | null;
|
|
@@ -137,7 +137,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
137
137
|
limit?: number;
|
|
138
138
|
sorting?: BenefitGrantSortProperty[] | null;
|
|
139
139
|
}) => Promise<ListResourceBenefitGrant>;
|
|
140
|
-
|
|
140
|
+
iterList: (query?: {
|
|
141
141
|
organization_id?: string | string[] | null;
|
|
142
142
|
customer_id?: string | string[] | null;
|
|
143
143
|
external_customer_id?: string | string[] | null;
|
|
@@ -170,12 +170,12 @@ declare function createPolar(options: PolarOptions): {
|
|
|
170
170
|
limit?: number;
|
|
171
171
|
}) => Promise<ListResourceWebhookDelivery>;
|
|
172
172
|
redeliverWebhookEvent: (id: string) => Promise<unknown>;
|
|
173
|
-
|
|
173
|
+
iterListWebhookEndpoints: (query?: {
|
|
174
174
|
organization_id?: string | string[] | null;
|
|
175
175
|
page?: number;
|
|
176
176
|
limit?: number;
|
|
177
177
|
}) => AsyncGenerator<WebhookEndpoint>;
|
|
178
|
-
|
|
178
|
+
iterListWebhookDeliveries: (query?: {
|
|
179
179
|
endpoint_id?: string | string[] | null;
|
|
180
180
|
start_timestamp?: string | null;
|
|
181
181
|
end_timestamp?: string | null;
|
|
@@ -205,7 +205,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
205
205
|
get: (id: string) => Promise<Product>;
|
|
206
206
|
update: (id: string, body: ProductUpdate) => Promise<Product>;
|
|
207
207
|
updateBenefits: (id: string, body: ProductBenefitsUpdate) => Promise<Product>;
|
|
208
|
-
|
|
208
|
+
iterList: (query?: {
|
|
209
209
|
id?: string | string[] | null;
|
|
210
210
|
organization_id?: string | string[] | null;
|
|
211
211
|
query?: string | null;
|
|
@@ -245,7 +245,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
245
245
|
invoice: (id: string) => Promise<OrderInvoice>;
|
|
246
246
|
generateInvoice: (id: string) => Promise<unknown>;
|
|
247
247
|
receipt: (id: string) => Promise<OrderReceipt>;
|
|
248
|
-
|
|
248
|
+
iterList: (query?: {
|
|
249
249
|
organization_id?: string | string[] | null;
|
|
250
250
|
product_id?: string | string[] | null;
|
|
251
251
|
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
@@ -274,7 +274,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
274
274
|
sorting?: RefundSortProperty[] | null;
|
|
275
275
|
}) => Promise<ListResourceRefund>;
|
|
276
276
|
create: (body: RefundCreate) => Promise<Refund>;
|
|
277
|
-
|
|
277
|
+
iterList: (query?: {
|
|
278
278
|
id?: string | string[] | null;
|
|
279
279
|
organization_id?: string | string[] | null;
|
|
280
280
|
order_id?: string | string[] | null;
|
|
@@ -298,7 +298,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
298
298
|
}) => Promise<ListResourceDispute>;
|
|
299
299
|
get: (id: string) => Promise<Dispute>;
|
|
300
300
|
accept: (id: string) => Promise<Dispute>;
|
|
301
|
-
|
|
301
|
+
iterList: (query?: {
|
|
302
302
|
organization_id?: string | string[] | null;
|
|
303
303
|
order_id?: string | string[] | null;
|
|
304
304
|
status?: DisputeStatus | DisputeStatus[] | null;
|
|
@@ -325,7 +325,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
325
325
|
clientGet: (client_secret: string) => Promise<CheckoutPublic>;
|
|
326
326
|
clientUpdate: (client_secret: string, body: CheckoutUpdatePublic) => Promise<CheckoutPublic>;
|
|
327
327
|
clientConfirm: (client_secret: string, body: CheckoutConfirmStripe) => Promise<CheckoutPublicConfirmed>;
|
|
328
|
-
|
|
328
|
+
iterList: (query?: {
|
|
329
329
|
organization_id?: string | string[] | null;
|
|
330
330
|
product_id?: string | string[] | null;
|
|
331
331
|
customer_id?: string | string[] | null;
|
|
@@ -348,7 +348,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
348
348
|
uploaded: (id_path: string, body: FileUploadCompleted) => Promise<FileRead>;
|
|
349
349
|
delete: (id: string) => Promise<void>;
|
|
350
350
|
update: (id: string, body: FilePatch) => Promise<FileRead>;
|
|
351
|
-
|
|
351
|
+
iterList: (query?: {
|
|
352
352
|
organization_id?: string | string[] | null;
|
|
353
353
|
ids?: string | string[] | null;
|
|
354
354
|
page?: number;
|
|
@@ -401,7 +401,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
401
401
|
validate: (body: LicenseKeyValidate) => Promise<ValidatedLicenseKey>;
|
|
402
402
|
activate: (body: LicenseKeyActivate) => Promise<LicenseKeyActivationRead>;
|
|
403
403
|
deactivate: (body: LicenseKeyDeactivate) => Promise<void>;
|
|
404
|
-
|
|
404
|
+
iterList: (query?: {
|
|
405
405
|
organization_id?: string | string[] | null;
|
|
406
406
|
benefit_id?: string | string[] | null;
|
|
407
407
|
status?: LicenseKeyStatus | LicenseKeyStatus[] | null;
|
|
@@ -421,7 +421,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
421
421
|
get: (id: string) => Promise<CheckoutLink>;
|
|
422
422
|
delete: (id: string) => Promise<void>;
|
|
423
423
|
update: (id: string, body: CheckoutLinkUpdate) => Promise<CheckoutLink>;
|
|
424
|
-
|
|
424
|
+
iterList: (query?: {
|
|
425
425
|
organization_id?: string | string[] | null;
|
|
426
426
|
product_id?: string | string[] | null;
|
|
427
427
|
page?: number;
|
|
@@ -442,7 +442,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
442
442
|
get: (id: string) => Promise<CustomField>;
|
|
443
443
|
delete: (id: string) => Promise<void>;
|
|
444
444
|
update: (id: string, body: CustomFieldUpdate) => Promise<CustomField>;
|
|
445
|
-
|
|
445
|
+
iterList: (query?: {
|
|
446
446
|
organization_id?: string | string[] | null;
|
|
447
447
|
query?: string | null;
|
|
448
448
|
type?: CustomFieldType | CustomFieldType[] | null;
|
|
@@ -463,7 +463,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
463
463
|
get: (id: string) => Promise<Discount>;
|
|
464
464
|
delete: (id: string) => Promise<void>;
|
|
465
465
|
update: (id: string, body: DiscountUpdate) => Promise<Discount>;
|
|
466
|
-
|
|
466
|
+
iterList: (query?: {
|
|
467
467
|
organization_id?: string | string[] | null;
|
|
468
468
|
query?: string | null;
|
|
469
469
|
page?: number;
|
|
@@ -506,7 +506,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
506
506
|
page?: number;
|
|
507
507
|
limit?: number;
|
|
508
508
|
}) => Promise<ListResourcePaymentMethod>;
|
|
509
|
-
|
|
509
|
+
iterList: (query?: {
|
|
510
510
|
organization_id?: string | string[] | null;
|
|
511
511
|
email?: string | null;
|
|
512
512
|
query?: string | null;
|
|
@@ -516,11 +516,11 @@ declare function createPolar(options: PolarOptions): {
|
|
|
516
516
|
sorting?: CustomerSortProperty[] | null;
|
|
517
517
|
metadata?: MetadataQuery;
|
|
518
518
|
}) => AsyncGenerator<Customer>;
|
|
519
|
-
|
|
519
|
+
iterListPaymentMethods: (id: string, query?: {
|
|
520
520
|
page?: number;
|
|
521
521
|
limit?: number;
|
|
522
522
|
}) => AsyncGenerator<PaymentMethod>;
|
|
523
|
-
|
|
523
|
+
iterListPaymentMethodsExternal: (external_id: string, query?: {
|
|
524
524
|
page?: number;
|
|
525
525
|
limit?: number;
|
|
526
526
|
}) => AsyncGenerator<PaymentMethod>;
|
|
@@ -544,7 +544,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
544
544
|
limit?: number;
|
|
545
545
|
sorting?: MemberSortProperty[] | null;
|
|
546
546
|
}) => Promise<ListResourceMember>;
|
|
547
|
-
|
|
547
|
+
iterListMembers: (query?: {
|
|
548
548
|
customer_id?: string | null;
|
|
549
549
|
external_customer_id?: string | null;
|
|
550
550
|
role?: MemberRole | null;
|
|
@@ -569,7 +569,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
569
569
|
}) => Promise<ListResourceCustomerBenefitGrant>;
|
|
570
570
|
get: (id: string) => Promise<CustomerBenefitGrant>;
|
|
571
571
|
update: (id: string, body: CustomerBenefitGrantUpdate) => Promise<CustomerBenefitGrant>;
|
|
572
|
-
|
|
572
|
+
iterList: (query?: {
|
|
573
573
|
query?: string | null;
|
|
574
574
|
type?: BenefitType | BenefitType[] | null;
|
|
575
575
|
benefit_id?: string | string[] | null;
|
|
@@ -597,7 +597,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
597
597
|
token: string;
|
|
598
598
|
}) => Promise<void>;
|
|
599
599
|
verifyEmailUpdate: (body: CustomerEmailUpdateVerifyRequest) => Promise<CustomerEmailUpdateVerifyResponse>;
|
|
600
|
-
|
|
600
|
+
iterListPaymentMethods: (query?: {
|
|
601
601
|
page?: number;
|
|
602
602
|
limit?: number;
|
|
603
603
|
}) => AsyncGenerator<CustomerPaymentMethod>;
|
|
@@ -611,7 +611,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
611
611
|
sorting?: CustomerCustomerMeterSortProperty[] | null;
|
|
612
612
|
}) => Promise<ListResourceCustomerCustomerMeter>;
|
|
613
613
|
get: (id: string) => Promise<CustomerCustomerMeter>;
|
|
614
|
-
|
|
614
|
+
iterList: (query?: {
|
|
615
615
|
meter_id?: string | string[] | null;
|
|
616
616
|
query?: string | null;
|
|
617
617
|
page?: number;
|
|
@@ -631,7 +631,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
631
631
|
page?: number;
|
|
632
632
|
limit?: number;
|
|
633
633
|
}) => Promise<ListResourceCustomerSubscription>;
|
|
634
|
-
|
|
634
|
+
iterListClaimedSubscriptions: (query?: {
|
|
635
635
|
page?: number;
|
|
636
636
|
limit?: number;
|
|
637
637
|
}) => AsyncGenerator<CustomerSubscription>;
|
|
@@ -646,7 +646,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
646
646
|
page?: number;
|
|
647
647
|
limit?: number;
|
|
648
648
|
}) => Promise<ListResourceDownloadableRead>;
|
|
649
|
-
|
|
649
|
+
iterList: (query?: {
|
|
650
650
|
benefit_id?: string | string[] | null;
|
|
651
651
|
page?: number;
|
|
652
652
|
limit?: number;
|
|
@@ -662,7 +662,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
662
662
|
validate: (body: LicenseKeyValidate) => Promise<ValidatedLicenseKey>;
|
|
663
663
|
activate: (body: LicenseKeyActivate) => Promise<LicenseKeyActivationRead>;
|
|
664
664
|
deactivate: (body: LicenseKeyDeactivate) => Promise<void>;
|
|
665
|
-
|
|
665
|
+
iterList: (query?: {
|
|
666
666
|
benefit_id?: string | null;
|
|
667
667
|
page?: number;
|
|
668
668
|
limit?: number;
|
|
@@ -676,7 +676,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
676
676
|
addMember: (body: CustomerPortalMemberCreate) => Promise<CustomerPortalMember>;
|
|
677
677
|
removeMember: (id: string) => Promise<void>;
|
|
678
678
|
updateMember: (id: string, body: CustomerPortalMemberUpdate) => Promise<CustomerPortalMember>;
|
|
679
|
-
|
|
679
|
+
iterListMembers: (query?: {
|
|
680
680
|
page?: number;
|
|
681
681
|
limit?: number;
|
|
682
682
|
}) => AsyncGenerator<CustomerPortalMember>;
|
|
@@ -698,7 +698,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
698
698
|
receipt: (id: string) => Promise<CustomerOrderReceipt>;
|
|
699
699
|
getPaymentStatus: (id: string) => Promise<CustomerOrderPaymentStatus>;
|
|
700
700
|
confirmRetryPayment: (id: string, body: CustomerOrderConfirmPayment) => Promise<CustomerOrderPaymentConfirmation>;
|
|
701
|
-
|
|
701
|
+
iterList: (query?: {
|
|
702
702
|
product_id?: string | string[] | null;
|
|
703
703
|
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
704
704
|
subscription_id?: string | string[] | null;
|
|
@@ -723,7 +723,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
723
723
|
get: (id: string) => Promise<CustomerSubscription>;
|
|
724
724
|
cancel: (id: string) => Promise<CustomerSubscription>;
|
|
725
725
|
update: (id: string, body: CustomerSubscriptionUpdate) => Promise<CustomerSubscription>;
|
|
726
|
-
|
|
726
|
+
iterList: (query?: {
|
|
727
727
|
product_id?: string | string[] | null;
|
|
728
728
|
active?: boolean | null;
|
|
729
729
|
query?: string | null;
|
|
@@ -739,7 +739,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
739
739
|
sorting?: CustomerWalletSortProperty[] | null;
|
|
740
740
|
}) => Promise<ListResourceCustomerWallet>;
|
|
741
741
|
get: (id: string) => Promise<CustomerWallet>;
|
|
742
|
-
|
|
742
|
+
iterList: (query?: {
|
|
743
743
|
page?: number;
|
|
744
744
|
limit?: number;
|
|
745
745
|
sorting?: CustomerWalletSortProperty[] | null;
|
|
@@ -791,7 +791,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
791
791
|
}) => Promise<ListResourceEventName>;
|
|
792
792
|
get: (id: string) => Promise<Event>;
|
|
793
793
|
ingest: (body: EventsIngest) => Promise<EventsIngestResponse>;
|
|
794
|
-
|
|
794
|
+
iterListNames: (query?: {
|
|
795
795
|
organization_id?: string | string[] | null;
|
|
796
796
|
customer_id?: string | string[] | null;
|
|
797
797
|
external_customer_id?: string | string[] | null;
|
|
@@ -816,7 +816,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
816
816
|
sorting?: EventTypesSortProperty[] | null;
|
|
817
817
|
}) => Promise<ListResourceEventTypeWithStats>;
|
|
818
818
|
update: (id: string, body: EventTypeUpdate) => Promise<EventType>;
|
|
819
|
-
|
|
819
|
+
iterList: (query?: {
|
|
820
820
|
organization_id?: string | string[] | null;
|
|
821
821
|
customer_id?: string | string[] | null;
|
|
822
822
|
external_customer_id?: string | string[] | null;
|
|
@@ -852,7 +852,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
852
852
|
customer_aggregation_function?: AggregationFunction | null;
|
|
853
853
|
metadata?: MetadataQuery;
|
|
854
854
|
}) => Promise<MeterQuantities>;
|
|
855
|
-
|
|
855
|
+
iterList: (query?: {
|
|
856
856
|
organization_id?: string | string[] | null;
|
|
857
857
|
query?: string | null;
|
|
858
858
|
is_archived?: boolean | null;
|
|
@@ -873,7 +873,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
873
873
|
sorting?: CustomerMeterSortProperty[] | null;
|
|
874
874
|
}) => Promise<ListResourceCustomerMeter>;
|
|
875
875
|
get: (id: string) => Promise<CustomerMeter>;
|
|
876
|
-
|
|
876
|
+
iterList: (query?: {
|
|
877
877
|
organization_id?: string | string[] | null;
|
|
878
878
|
customer_id?: string | string[] | null;
|
|
879
879
|
external_customer_id?: string | string[] | null;
|
|
@@ -897,7 +897,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
897
897
|
sorting?: PaymentSortProperty[] | null;
|
|
898
898
|
}) => Promise<ListResourcePayment>;
|
|
899
899
|
get: (id: string) => Promise<Payment>;
|
|
900
|
-
|
|
900
|
+
iterList: (query?: {
|
|
901
901
|
organization_id?: string | string[] | null;
|
|
902
902
|
checkout_id?: string | string[] | null;
|
|
903
903
|
order_id?: string | string[] | null;
|
package/dist/2026-04/index.d.mts
CHANGED
|
@@ -20,7 +20,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
20
20
|
create: (body: OrganizationCreate) => Promise<Organization>;
|
|
21
21
|
get: (id: string) => Promise<Organization>;
|
|
22
22
|
update: (id: string, body: OrganizationUpdate) => Promise<Organization>;
|
|
23
|
-
|
|
23
|
+
iterList: (query?: {
|
|
24
24
|
slug?: string | null;
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
@@ -52,7 +52,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
52
52
|
get: (id: string) => Promise<Subscription>;
|
|
53
53
|
revoke: (id: string) => Promise<Subscription>;
|
|
54
54
|
update: (id: string, body: SubscriptionUpdate) => Promise<Subscription>;
|
|
55
|
-
|
|
55
|
+
iterList: (query?: {
|
|
56
56
|
organization_id?: string | string[] | null;
|
|
57
57
|
product_id?: string | string[] | null;
|
|
58
58
|
customer_id?: string | string[] | null;
|
|
@@ -108,7 +108,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
108
108
|
page?: number;
|
|
109
109
|
limit?: number;
|
|
110
110
|
}) => Promise<ListResourceBenefitGrant>;
|
|
111
|
-
|
|
111
|
+
iterList: (query?: {
|
|
112
112
|
organization_id?: string | string[] | null;
|
|
113
113
|
type?: BenefitType | BenefitType[] | null;
|
|
114
114
|
id?: string | string[] | null;
|
|
@@ -119,7 +119,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
119
119
|
sorting?: BenefitSortProperty[] | null;
|
|
120
120
|
metadata?: MetadataQuery;
|
|
121
121
|
}) => AsyncGenerator<Benefit>;
|
|
122
|
-
|
|
122
|
+
iterGrants: (id: string, query?: {
|
|
123
123
|
is_granted?: boolean | null;
|
|
124
124
|
customer_id?: string | string[] | null;
|
|
125
125
|
member_id?: string | string[] | null;
|
|
@@ -137,7 +137,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
137
137
|
limit?: number;
|
|
138
138
|
sorting?: BenefitGrantSortProperty[] | null;
|
|
139
139
|
}) => Promise<ListResourceBenefitGrant>;
|
|
140
|
-
|
|
140
|
+
iterList: (query?: {
|
|
141
141
|
organization_id?: string | string[] | null;
|
|
142
142
|
customer_id?: string | string[] | null;
|
|
143
143
|
external_customer_id?: string | string[] | null;
|
|
@@ -170,12 +170,12 @@ declare function createPolar(options: PolarOptions): {
|
|
|
170
170
|
limit?: number;
|
|
171
171
|
}) => Promise<ListResourceWebhookDelivery>;
|
|
172
172
|
redeliverWebhookEvent: (id: string) => Promise<unknown>;
|
|
173
|
-
|
|
173
|
+
iterListWebhookEndpoints: (query?: {
|
|
174
174
|
organization_id?: string | string[] | null;
|
|
175
175
|
page?: number;
|
|
176
176
|
limit?: number;
|
|
177
177
|
}) => AsyncGenerator<WebhookEndpoint>;
|
|
178
|
-
|
|
178
|
+
iterListWebhookDeliveries: (query?: {
|
|
179
179
|
endpoint_id?: string | string[] | null;
|
|
180
180
|
start_timestamp?: string | null;
|
|
181
181
|
end_timestamp?: string | null;
|
|
@@ -205,7 +205,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
205
205
|
get: (id: string) => Promise<Product>;
|
|
206
206
|
update: (id: string, body: ProductUpdate) => Promise<Product>;
|
|
207
207
|
updateBenefits: (id: string, body: ProductBenefitsUpdate) => Promise<Product>;
|
|
208
|
-
|
|
208
|
+
iterList: (query?: {
|
|
209
209
|
id?: string | string[] | null;
|
|
210
210
|
organization_id?: string | string[] | null;
|
|
211
211
|
query?: string | null;
|
|
@@ -245,7 +245,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
245
245
|
invoice: (id: string) => Promise<OrderInvoice>;
|
|
246
246
|
generateInvoice: (id: string) => Promise<unknown>;
|
|
247
247
|
receipt: (id: string) => Promise<OrderReceipt>;
|
|
248
|
-
|
|
248
|
+
iterList: (query?: {
|
|
249
249
|
organization_id?: string | string[] | null;
|
|
250
250
|
product_id?: string | string[] | null;
|
|
251
251
|
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
@@ -274,7 +274,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
274
274
|
sorting?: RefundSortProperty[] | null;
|
|
275
275
|
}) => Promise<ListResourceRefund>;
|
|
276
276
|
create: (body: RefundCreate) => Promise<Refund>;
|
|
277
|
-
|
|
277
|
+
iterList: (query?: {
|
|
278
278
|
id?: string | string[] | null;
|
|
279
279
|
organization_id?: string | string[] | null;
|
|
280
280
|
order_id?: string | string[] | null;
|
|
@@ -298,7 +298,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
298
298
|
}) => Promise<ListResourceDispute>;
|
|
299
299
|
get: (id: string) => Promise<Dispute>;
|
|
300
300
|
accept: (id: string) => Promise<Dispute>;
|
|
301
|
-
|
|
301
|
+
iterList: (query?: {
|
|
302
302
|
organization_id?: string | string[] | null;
|
|
303
303
|
order_id?: string | string[] | null;
|
|
304
304
|
status?: DisputeStatus | DisputeStatus[] | null;
|
|
@@ -325,7 +325,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
325
325
|
clientGet: (client_secret: string) => Promise<CheckoutPublic>;
|
|
326
326
|
clientUpdate: (client_secret: string, body: CheckoutUpdatePublic) => Promise<CheckoutPublic>;
|
|
327
327
|
clientConfirm: (client_secret: string, body: CheckoutConfirmStripe) => Promise<CheckoutPublicConfirmed>;
|
|
328
|
-
|
|
328
|
+
iterList: (query?: {
|
|
329
329
|
organization_id?: string | string[] | null;
|
|
330
330
|
product_id?: string | string[] | null;
|
|
331
331
|
customer_id?: string | string[] | null;
|
|
@@ -348,7 +348,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
348
348
|
uploaded: (id_path: string, body: FileUploadCompleted) => Promise<FileRead>;
|
|
349
349
|
delete: (id: string) => Promise<void>;
|
|
350
350
|
update: (id: string, body: FilePatch) => Promise<FileRead>;
|
|
351
|
-
|
|
351
|
+
iterList: (query?: {
|
|
352
352
|
organization_id?: string | string[] | null;
|
|
353
353
|
ids?: string | string[] | null;
|
|
354
354
|
page?: number;
|
|
@@ -401,7 +401,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
401
401
|
validate: (body: LicenseKeyValidate) => Promise<ValidatedLicenseKey>;
|
|
402
402
|
activate: (body: LicenseKeyActivate) => Promise<LicenseKeyActivationRead>;
|
|
403
403
|
deactivate: (body: LicenseKeyDeactivate) => Promise<void>;
|
|
404
|
-
|
|
404
|
+
iterList: (query?: {
|
|
405
405
|
organization_id?: string | string[] | null;
|
|
406
406
|
benefit_id?: string | string[] | null;
|
|
407
407
|
status?: LicenseKeyStatus | LicenseKeyStatus[] | null;
|
|
@@ -421,7 +421,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
421
421
|
get: (id: string) => Promise<CheckoutLink>;
|
|
422
422
|
delete: (id: string) => Promise<void>;
|
|
423
423
|
update: (id: string, body: CheckoutLinkUpdate) => Promise<CheckoutLink>;
|
|
424
|
-
|
|
424
|
+
iterList: (query?: {
|
|
425
425
|
organization_id?: string | string[] | null;
|
|
426
426
|
product_id?: string | string[] | null;
|
|
427
427
|
page?: number;
|
|
@@ -442,7 +442,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
442
442
|
get: (id: string) => Promise<CustomField>;
|
|
443
443
|
delete: (id: string) => Promise<void>;
|
|
444
444
|
update: (id: string, body: CustomFieldUpdate) => Promise<CustomField>;
|
|
445
|
-
|
|
445
|
+
iterList: (query?: {
|
|
446
446
|
organization_id?: string | string[] | null;
|
|
447
447
|
query?: string | null;
|
|
448
448
|
type?: CustomFieldType | CustomFieldType[] | null;
|
|
@@ -463,7 +463,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
463
463
|
get: (id: string) => Promise<Discount>;
|
|
464
464
|
delete: (id: string) => Promise<void>;
|
|
465
465
|
update: (id: string, body: DiscountUpdate) => Promise<Discount>;
|
|
466
|
-
|
|
466
|
+
iterList: (query?: {
|
|
467
467
|
organization_id?: string | string[] | null;
|
|
468
468
|
query?: string | null;
|
|
469
469
|
page?: number;
|
|
@@ -506,7 +506,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
506
506
|
page?: number;
|
|
507
507
|
limit?: number;
|
|
508
508
|
}) => Promise<ListResourcePaymentMethod>;
|
|
509
|
-
|
|
509
|
+
iterList: (query?: {
|
|
510
510
|
organization_id?: string | string[] | null;
|
|
511
511
|
email?: string | null;
|
|
512
512
|
query?: string | null;
|
|
@@ -516,11 +516,11 @@ declare function createPolar(options: PolarOptions): {
|
|
|
516
516
|
sorting?: CustomerSortProperty[] | null;
|
|
517
517
|
metadata?: MetadataQuery;
|
|
518
518
|
}) => AsyncGenerator<Customer>;
|
|
519
|
-
|
|
519
|
+
iterListPaymentMethods: (id: string, query?: {
|
|
520
520
|
page?: number;
|
|
521
521
|
limit?: number;
|
|
522
522
|
}) => AsyncGenerator<PaymentMethod>;
|
|
523
|
-
|
|
523
|
+
iterListPaymentMethodsExternal: (external_id: string, query?: {
|
|
524
524
|
page?: number;
|
|
525
525
|
limit?: number;
|
|
526
526
|
}) => AsyncGenerator<PaymentMethod>;
|
|
@@ -544,7 +544,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
544
544
|
limit?: number;
|
|
545
545
|
sorting?: MemberSortProperty[] | null;
|
|
546
546
|
}) => Promise<ListResourceMember>;
|
|
547
|
-
|
|
547
|
+
iterListMembers: (query?: {
|
|
548
548
|
customer_id?: string | null;
|
|
549
549
|
external_customer_id?: string | null;
|
|
550
550
|
role?: MemberRole | null;
|
|
@@ -569,7 +569,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
569
569
|
}) => Promise<ListResourceCustomerBenefitGrant>;
|
|
570
570
|
get: (id: string) => Promise<CustomerBenefitGrant>;
|
|
571
571
|
update: (id: string, body: CustomerBenefitGrantUpdate) => Promise<CustomerBenefitGrant>;
|
|
572
|
-
|
|
572
|
+
iterList: (query?: {
|
|
573
573
|
query?: string | null;
|
|
574
574
|
type?: BenefitType | BenefitType[] | null;
|
|
575
575
|
benefit_id?: string | string[] | null;
|
|
@@ -597,7 +597,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
597
597
|
token: string;
|
|
598
598
|
}) => Promise<void>;
|
|
599
599
|
verifyEmailUpdate: (body: CustomerEmailUpdateVerifyRequest) => Promise<CustomerEmailUpdateVerifyResponse>;
|
|
600
|
-
|
|
600
|
+
iterListPaymentMethods: (query?: {
|
|
601
601
|
page?: number;
|
|
602
602
|
limit?: number;
|
|
603
603
|
}) => AsyncGenerator<CustomerPaymentMethod>;
|
|
@@ -611,7 +611,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
611
611
|
sorting?: CustomerCustomerMeterSortProperty[] | null;
|
|
612
612
|
}) => Promise<ListResourceCustomerCustomerMeter>;
|
|
613
613
|
get: (id: string) => Promise<CustomerCustomerMeter>;
|
|
614
|
-
|
|
614
|
+
iterList: (query?: {
|
|
615
615
|
meter_id?: string | string[] | null;
|
|
616
616
|
query?: string | null;
|
|
617
617
|
page?: number;
|
|
@@ -631,7 +631,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
631
631
|
page?: number;
|
|
632
632
|
limit?: number;
|
|
633
633
|
}) => Promise<ListResourceCustomerSubscription>;
|
|
634
|
-
|
|
634
|
+
iterListClaimedSubscriptions: (query?: {
|
|
635
635
|
page?: number;
|
|
636
636
|
limit?: number;
|
|
637
637
|
}) => AsyncGenerator<CustomerSubscription>;
|
|
@@ -646,7 +646,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
646
646
|
page?: number;
|
|
647
647
|
limit?: number;
|
|
648
648
|
}) => Promise<ListResourceDownloadableRead>;
|
|
649
|
-
|
|
649
|
+
iterList: (query?: {
|
|
650
650
|
benefit_id?: string | string[] | null;
|
|
651
651
|
page?: number;
|
|
652
652
|
limit?: number;
|
|
@@ -662,7 +662,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
662
662
|
validate: (body: LicenseKeyValidate) => Promise<ValidatedLicenseKey>;
|
|
663
663
|
activate: (body: LicenseKeyActivate) => Promise<LicenseKeyActivationRead>;
|
|
664
664
|
deactivate: (body: LicenseKeyDeactivate) => Promise<void>;
|
|
665
|
-
|
|
665
|
+
iterList: (query?: {
|
|
666
666
|
benefit_id?: string | null;
|
|
667
667
|
page?: number;
|
|
668
668
|
limit?: number;
|
|
@@ -676,7 +676,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
676
676
|
addMember: (body: CustomerPortalMemberCreate) => Promise<CustomerPortalMember>;
|
|
677
677
|
removeMember: (id: string) => Promise<void>;
|
|
678
678
|
updateMember: (id: string, body: CustomerPortalMemberUpdate) => Promise<CustomerPortalMember>;
|
|
679
|
-
|
|
679
|
+
iterListMembers: (query?: {
|
|
680
680
|
page?: number;
|
|
681
681
|
limit?: number;
|
|
682
682
|
}) => AsyncGenerator<CustomerPortalMember>;
|
|
@@ -698,7 +698,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
698
698
|
receipt: (id: string) => Promise<CustomerOrderReceipt>;
|
|
699
699
|
getPaymentStatus: (id: string) => Promise<CustomerOrderPaymentStatus>;
|
|
700
700
|
confirmRetryPayment: (id: string, body: CustomerOrderConfirmPayment) => Promise<CustomerOrderPaymentConfirmation>;
|
|
701
|
-
|
|
701
|
+
iterList: (query?: {
|
|
702
702
|
product_id?: string | string[] | null;
|
|
703
703
|
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
704
704
|
subscription_id?: string | string[] | null;
|
|
@@ -723,7 +723,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
723
723
|
get: (id: string) => Promise<CustomerSubscription>;
|
|
724
724
|
cancel: (id: string) => Promise<CustomerSubscription>;
|
|
725
725
|
update: (id: string, body: CustomerSubscriptionUpdate) => Promise<CustomerSubscription>;
|
|
726
|
-
|
|
726
|
+
iterList: (query?: {
|
|
727
727
|
product_id?: string | string[] | null;
|
|
728
728
|
active?: boolean | null;
|
|
729
729
|
query?: string | null;
|
|
@@ -739,7 +739,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
739
739
|
sorting?: CustomerWalletSortProperty[] | null;
|
|
740
740
|
}) => Promise<ListResourceCustomerWallet>;
|
|
741
741
|
get: (id: string) => Promise<CustomerWallet>;
|
|
742
|
-
|
|
742
|
+
iterList: (query?: {
|
|
743
743
|
page?: number;
|
|
744
744
|
limit?: number;
|
|
745
745
|
sorting?: CustomerWalletSortProperty[] | null;
|
|
@@ -791,7 +791,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
791
791
|
}) => Promise<ListResourceEventName>;
|
|
792
792
|
get: (id: string) => Promise<Event>;
|
|
793
793
|
ingest: (body: EventsIngest) => Promise<EventsIngestResponse>;
|
|
794
|
-
|
|
794
|
+
iterListNames: (query?: {
|
|
795
795
|
organization_id?: string | string[] | null;
|
|
796
796
|
customer_id?: string | string[] | null;
|
|
797
797
|
external_customer_id?: string | string[] | null;
|
|
@@ -816,7 +816,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
816
816
|
sorting?: EventTypesSortProperty[] | null;
|
|
817
817
|
}) => Promise<ListResourceEventTypeWithStats>;
|
|
818
818
|
update: (id: string, body: EventTypeUpdate) => Promise<EventType>;
|
|
819
|
-
|
|
819
|
+
iterList: (query?: {
|
|
820
820
|
organization_id?: string | string[] | null;
|
|
821
821
|
customer_id?: string | string[] | null;
|
|
822
822
|
external_customer_id?: string | string[] | null;
|
|
@@ -852,7 +852,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
852
852
|
customer_aggregation_function?: AggregationFunction | null;
|
|
853
853
|
metadata?: MetadataQuery;
|
|
854
854
|
}) => Promise<MeterQuantities>;
|
|
855
|
-
|
|
855
|
+
iterList: (query?: {
|
|
856
856
|
organization_id?: string | string[] | null;
|
|
857
857
|
query?: string | null;
|
|
858
858
|
is_archived?: boolean | null;
|
|
@@ -873,7 +873,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
873
873
|
sorting?: CustomerMeterSortProperty[] | null;
|
|
874
874
|
}) => Promise<ListResourceCustomerMeter>;
|
|
875
875
|
get: (id: string) => Promise<CustomerMeter>;
|
|
876
|
-
|
|
876
|
+
iterList: (query?: {
|
|
877
877
|
organization_id?: string | string[] | null;
|
|
878
878
|
customer_id?: string | string[] | null;
|
|
879
879
|
external_customer_id?: string | string[] | null;
|
|
@@ -897,7 +897,7 @@ declare function createPolar(options: PolarOptions): {
|
|
|
897
897
|
sorting?: PaymentSortProperty[] | null;
|
|
898
898
|
}) => Promise<ListResourcePayment>;
|
|
899
899
|
get: (id: string) => Promise<Payment>;
|
|
900
|
-
|
|
900
|
+
iterList: (query?: {
|
|
901
901
|
organization_id?: string | string[] | null;
|
|
902
902
|
checkout_id?: string | string[] | null;
|
|
903
903
|
order_id?: string | string[] | null;
|
|
@@ -42,7 +42,7 @@ const listBenefitGrants = (client) => {
|
|
|
42
42
|
* @throws {PolarServerError} When the server returns a 5xx error
|
|
43
43
|
* @throws {HTTPValidationError} Validation Error
|
|
44
44
|
*/
|
|
45
|
-
const
|
|
45
|
+
const iterListBenefitGrants = (client) => {
|
|
46
46
|
return async function* (query) {
|
|
47
47
|
let page;
|
|
48
48
|
page = query?.page ?? 1;
|
|
@@ -63,12 +63,12 @@ const iterlistBenefitGrants = (client) => {
|
|
|
63
63
|
function createBenefitGrantsService(client) {
|
|
64
64
|
return {
|
|
65
65
|
list: listBenefitGrants(client),
|
|
66
|
-
|
|
66
|
+
iterList: iterListBenefitGrants(client)
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
exports.createBenefitGrantsService = createBenefitGrantsService;
|
|
71
|
-
exports.
|
|
71
|
+
exports.iterListBenefitGrants = iterListBenefitGrants;
|
|
72
72
|
exports.listBenefitGrants = listBenefitGrants;
|
|
73
73
|
|
|
74
74
|
//# sourceMappingURL=benefit_grants.cjs.map
|