@polar-sh/sdk 1.0.0-alpha.21 → 1.0.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.
- package/.agents/skills/polar-typescript-sdk/SKILL.md +3 -3
- package/.agents/skills/polar-typescript-sdk/references/migration-from-v0.md +1 -1
- package/.agents/skills/polar-typescript-sdk/references/usage-events.md +1 -1
- package/.agents/skills/polar-typescript-sdk/references/webhooks.md +1 -1
- package/README.md +6 -8
- package/dist/2026-04/index.cjs +2 -1
- package/dist/2026-04/index.cjs.map +1 -1
- package/dist/2026-04/index.d.cts +2 -2
- package/dist/2026-04/index.d.mts +2 -2
- package/dist/2026-04/index.mjs +2 -1
- package/dist/2026-04/index.mjs.map +1 -1
- package/dist/2026-04/services/benefit_grants.cjs +1 -1
- package/dist/2026-04/services/benefit_grants.d.cts +1 -1
- package/dist/2026-04/services/benefit_grants.d.mts +1 -1
- package/dist/2026-04/services/benefit_grants.mjs +1 -1
- package/dist/2026-04/services/benefits.cjs +1 -1
- package/dist/2026-04/services/benefits.d.cts +1 -1
- package/dist/2026-04/services/benefits.d.mts +1 -1
- package/dist/2026-04/services/benefits.mjs +1 -1
- package/dist/2026-04/services/checkout_links.cjs +1 -1
- package/dist/2026-04/services/checkout_links.d.cts +1 -1
- package/dist/2026-04/services/checkout_links.d.mts +1 -1
- package/dist/2026-04/services/checkout_links.mjs +1 -1
- package/dist/2026-04/services/checkouts.cjs +7 -1
- package/dist/2026-04/services/checkouts.cjs.map +1 -1
- package/dist/2026-04/services/checkouts.d.cts +1 -1
- package/dist/2026-04/services/checkouts.d.cts.map +1 -1
- package/dist/2026-04/services/checkouts.d.mts +1 -1
- package/dist/2026-04/services/checkouts.d.mts.map +1 -1
- package/dist/2026-04/services/checkouts.mjs +7 -1
- package/dist/2026-04/services/checkouts.mjs.map +1 -1
- package/dist/2026-04/services/custom_fields.cjs +1 -1
- package/dist/2026-04/services/custom_fields.d.cts +1 -1
- package/dist/2026-04/services/custom_fields.d.mts +1 -1
- package/dist/2026-04/services/custom_fields.mjs +1 -1
- package/dist/2026-04/services/customer_meters.cjs +1 -1
- package/dist/2026-04/services/customer_meters.d.cts +1 -1
- package/dist/2026-04/services/customer_meters.d.mts +1 -1
- package/dist/2026-04/services/customer_meters.mjs +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.cjs +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/benefit_grants.mjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.cjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customer_meters.mjs +1 -1
- package/dist/2026-04/services/customer_portal/customer_session.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customer_session.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customers.cjs +1 -1
- package/dist/2026-04/services/customer_portal/customers.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/customers.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/customers.mjs +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.cjs +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/downloadables.mjs +1 -1
- package/dist/2026-04/services/customer_portal/index.d.cts +3 -3
- package/dist/2026-04/services/customer_portal/index.d.cts.map +1 -1
- package/dist/2026-04/services/customer_portal/index.d.mts +3 -3
- package/dist/2026-04/services/customer_portal/index.d.mts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.cjs +8 -6
- package/dist/2026-04/services/customer_portal/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.d.cts +5 -5
- package/dist/2026-04/services/customer_portal/license_keys.d.cts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.d.mts +5 -5
- package/dist/2026-04/services/customer_portal/license_keys.d.mts.map +1 -1
- package/dist/2026-04/services/customer_portal/license_keys.mjs +8 -6
- package/dist/2026-04/services/customer_portal/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/customer_portal/members.cjs +1 -1
- package/dist/2026-04/services/customer_portal/members.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/members.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/members.mjs +1 -1
- package/dist/2026-04/services/customer_portal/orders.cjs +1 -1
- package/dist/2026-04/services/customer_portal/orders.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/orders.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/orders.mjs +1 -1
- package/dist/2026-04/services/customer_portal/organizations.cjs +1 -1
- package/dist/2026-04/services/customer_portal/organizations.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/organizations.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/organizations.mjs +1 -1
- package/dist/2026-04/services/customer_portal/seats.cjs +1 -1
- package/dist/2026-04/services/customer_portal/seats.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/seats.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/seats.mjs +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.cjs +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/subscriptions.mjs +1 -1
- package/dist/2026-04/services/customer_portal/wallets.cjs +1 -1
- package/dist/2026-04/services/customer_portal/wallets.d.cts +1 -1
- package/dist/2026-04/services/customer_portal/wallets.d.mts +1 -1
- package/dist/2026-04/services/customer_portal/wallets.mjs +1 -1
- package/dist/2026-04/services/customer_seats.cjs +1 -1
- package/dist/2026-04/services/customer_seats.d.cts +1 -1
- package/dist/2026-04/services/customer_seats.d.mts +1 -1
- package/dist/2026-04/services/customer_seats.mjs +1 -1
- package/dist/2026-04/services/customer_sessions.cjs +1 -1
- package/dist/2026-04/services/customer_sessions.d.cts +1 -1
- package/dist/2026-04/services/customer_sessions.d.mts +1 -1
- package/dist/2026-04/services/customer_sessions.mjs +1 -1
- package/dist/2026-04/services/customers/index.cjs +1 -1
- package/dist/2026-04/services/customers/index.d.cts +1 -1
- package/dist/2026-04/services/customers/index.d.mts +1 -1
- package/dist/2026-04/services/customers/index.mjs +1 -1
- package/dist/2026-04/services/customers/members.cjs +1 -1
- package/dist/2026-04/services/customers/members.d.cts +1 -1
- package/dist/2026-04/services/customers/members.d.mts +1 -1
- package/dist/2026-04/services/customers/members.mjs +1 -1
- package/dist/2026-04/services/discounts.cjs +1 -1
- package/dist/2026-04/services/discounts.d.cts +1 -1
- package/dist/2026-04/services/discounts.d.mts +1 -1
- package/dist/2026-04/services/discounts.mjs +1 -1
- package/dist/2026-04/services/disputes.cjs +1 -1
- package/dist/2026-04/services/disputes.d.cts +1 -1
- package/dist/2026-04/services/disputes.d.mts +1 -1
- package/dist/2026-04/services/disputes.mjs +1 -1
- package/dist/2026-04/services/event_types.cjs +1 -1
- package/dist/2026-04/services/event_types.d.cts +1 -1
- package/dist/2026-04/services/event_types.d.mts +1 -1
- package/dist/2026-04/services/event_types.mjs +1 -1
- package/dist/2026-04/services/events.cjs +1 -1
- package/dist/2026-04/services/events.d.cts +1 -1
- package/dist/2026-04/services/events.d.mts +1 -1
- package/dist/2026-04/services/events.mjs +1 -1
- package/dist/2026-04/services/files.cjs +1 -1
- package/dist/2026-04/services/files.d.cts +1 -1
- package/dist/2026-04/services/files.d.mts +1 -1
- package/dist/2026-04/services/files.mjs +1 -1
- package/dist/2026-04/services/license_keys.cjs +9 -7
- package/dist/2026-04/services/license_keys.cjs.map +1 -1
- package/dist/2026-04/services/license_keys.d.cts +5 -5
- package/dist/2026-04/services/license_keys.d.cts.map +1 -1
- package/dist/2026-04/services/license_keys.d.mts +5 -5
- package/dist/2026-04/services/license_keys.d.mts.map +1 -1
- package/dist/2026-04/services/license_keys.mjs +9 -7
- package/dist/2026-04/services/license_keys.mjs.map +1 -1
- package/dist/2026-04/services/meters.cjs +1 -1
- package/dist/2026-04/services/meters.d.cts +1 -1
- package/dist/2026-04/services/meters.d.mts +1 -1
- package/dist/2026-04/services/meters.mjs +1 -1
- package/dist/2026-04/services/metrics.cjs +1 -1
- package/dist/2026-04/services/metrics.d.cts +1 -1
- package/dist/2026-04/services/metrics.d.mts +1 -1
- package/dist/2026-04/services/metrics.mjs +1 -1
- package/dist/2026-04/services/oauth2/clients/index.d.cts +1 -1
- package/dist/2026-04/services/oauth2/clients/index.d.mts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.cjs +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.d.cts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.d.mts +1 -1
- package/dist/2026-04/services/oauth2/clients/oauth2.mjs +1 -1
- package/dist/2026-04/services/oauth2/index.d.cts +1 -1
- package/dist/2026-04/services/oauth2/index.d.mts +1 -1
- package/dist/2026-04/services/orders.cjs +1 -1
- package/dist/2026-04/services/orders.d.cts +1 -1
- package/dist/2026-04/services/orders.d.mts +1 -1
- package/dist/2026-04/services/orders.mjs +1 -1
- package/dist/2026-04/services/organizations.cjs +1 -1
- package/dist/2026-04/services/organizations.d.cts +1 -1
- package/dist/2026-04/services/organizations.d.mts +1 -1
- package/dist/2026-04/services/organizations.mjs +1 -1
- package/dist/2026-04/services/payments.cjs +1 -1
- package/dist/2026-04/services/payments.d.cts +1 -1
- package/dist/2026-04/services/payments.d.mts +1 -1
- package/dist/2026-04/services/payments.mjs +1 -1
- package/dist/2026-04/services/products.cjs +35 -1
- package/dist/2026-04/services/products.cjs.map +1 -1
- package/dist/2026-04/services/products.d.cts +4 -2
- package/dist/2026-04/services/products.d.cts.map +1 -1
- package/dist/2026-04/services/products.d.mts +4 -2
- package/dist/2026-04/services/products.d.mts.map +1 -1
- package/dist/2026-04/services/products.mjs +35 -2
- package/dist/2026-04/services/products.mjs.map +1 -1
- package/dist/2026-04/services/refunds.cjs +1 -1
- package/dist/2026-04/services/refunds.d.cts +1 -1
- package/dist/2026-04/services/refunds.d.mts +1 -1
- package/dist/2026-04/services/refunds.mjs +1 -1
- package/dist/2026-04/services/subscriptions.cjs +4 -4
- package/dist/2026-04/services/subscriptions.cjs.map +1 -1
- package/dist/2026-04/services/subscriptions.d.cts +1 -1
- package/dist/2026-04/services/subscriptions.d.mts +1 -1
- package/dist/2026-04/services/subscriptions.mjs +4 -4
- package/dist/2026-04/services/subscriptions.mjs.map +1 -1
- package/dist/2026-04/services/webhooks.cjs +1 -1
- package/dist/2026-04/services/webhooks.d.cts +1 -1
- package/dist/2026-04/services/webhooks.d.mts +1 -1
- package/dist/2026-04/services/webhooks.mjs +1 -1
- package/dist/2026-10/index.cjs +2 -1
- package/dist/2026-10/index.cjs.map +1 -1
- package/dist/2026-10/index.d.cts +2 -2
- package/dist/2026-10/index.d.mts +2 -2
- package/dist/2026-10/index.mjs +2 -1
- package/dist/2026-10/index.mjs.map +1 -1
- package/dist/2026-10/services/benefit_grants.cjs +1 -1
- package/dist/2026-10/services/benefit_grants.d.cts +1 -1
- package/dist/2026-10/services/benefit_grants.d.mts +1 -1
- package/dist/2026-10/services/benefit_grants.mjs +1 -1
- package/dist/2026-10/services/benefits.cjs +1 -1
- package/dist/2026-10/services/benefits.d.cts +1 -1
- package/dist/2026-10/services/benefits.d.mts +1 -1
- package/dist/2026-10/services/benefits.mjs +1 -1
- package/dist/2026-10/services/checkout_links.cjs +1 -1
- package/dist/2026-10/services/checkout_links.d.cts +1 -1
- package/dist/2026-10/services/checkout_links.d.mts +1 -1
- package/dist/2026-10/services/checkout_links.mjs +1 -1
- package/dist/2026-10/services/checkouts.cjs +7 -1
- package/dist/2026-10/services/checkouts.cjs.map +1 -1
- package/dist/2026-10/services/checkouts.d.cts +1 -1
- package/dist/2026-10/services/checkouts.d.cts.map +1 -1
- package/dist/2026-10/services/checkouts.d.mts +1 -1
- package/dist/2026-10/services/checkouts.d.mts.map +1 -1
- package/dist/2026-10/services/checkouts.mjs +7 -1
- package/dist/2026-10/services/checkouts.mjs.map +1 -1
- package/dist/2026-10/services/custom_fields.cjs +1 -1
- package/dist/2026-10/services/custom_fields.d.cts +1 -1
- package/dist/2026-10/services/custom_fields.d.mts +1 -1
- package/dist/2026-10/services/custom_fields.mjs +1 -1
- package/dist/2026-10/services/customer_meters.cjs +1 -1
- package/dist/2026-10/services/customer_meters.d.cts +1 -1
- package/dist/2026-10/services/customer_meters.d.mts +1 -1
- package/dist/2026-10/services/customer_meters.mjs +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.cjs +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/benefit_grants.mjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.cjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customer_meters.mjs +1 -1
- package/dist/2026-10/services/customer_portal/customer_session.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customer_session.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customers.cjs +1 -1
- package/dist/2026-10/services/customer_portal/customers.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/customers.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/customers.mjs +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.cjs +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/downloadables.mjs +1 -1
- package/dist/2026-10/services/customer_portal/index.d.cts +3 -3
- package/dist/2026-10/services/customer_portal/index.d.cts.map +1 -1
- package/dist/2026-10/services/customer_portal/index.d.mts +3 -3
- package/dist/2026-10/services/customer_portal/index.d.mts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.cjs +8 -6
- package/dist/2026-10/services/customer_portal/license_keys.cjs.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.d.cts +5 -5
- package/dist/2026-10/services/customer_portal/license_keys.d.cts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.d.mts +5 -5
- package/dist/2026-10/services/customer_portal/license_keys.d.mts.map +1 -1
- package/dist/2026-10/services/customer_portal/license_keys.mjs +8 -6
- package/dist/2026-10/services/customer_portal/license_keys.mjs.map +1 -1
- package/dist/2026-10/services/customer_portal/members.cjs +1 -1
- package/dist/2026-10/services/customer_portal/members.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/members.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/members.mjs +1 -1
- package/dist/2026-10/services/customer_portal/orders.cjs +1 -1
- package/dist/2026-10/services/customer_portal/orders.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/orders.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/orders.mjs +1 -1
- package/dist/2026-10/services/customer_portal/organizations.cjs +1 -1
- package/dist/2026-10/services/customer_portal/organizations.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/organizations.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/organizations.mjs +1 -1
- package/dist/2026-10/services/customer_portal/seats.cjs +1 -1
- package/dist/2026-10/services/customer_portal/seats.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/seats.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/seats.mjs +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.cjs +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/subscriptions.mjs +1 -1
- package/dist/2026-10/services/customer_portal/wallets.cjs +1 -1
- package/dist/2026-10/services/customer_portal/wallets.d.cts +1 -1
- package/dist/2026-10/services/customer_portal/wallets.d.mts +1 -1
- package/dist/2026-10/services/customer_portal/wallets.mjs +1 -1
- package/dist/2026-10/services/customer_seats.cjs +1 -1
- package/dist/2026-10/services/customer_seats.d.cts +1 -1
- package/dist/2026-10/services/customer_seats.d.mts +1 -1
- package/dist/2026-10/services/customer_seats.mjs +1 -1
- package/dist/2026-10/services/customer_sessions.cjs +1 -1
- package/dist/2026-10/services/customer_sessions.d.cts +1 -1
- package/dist/2026-10/services/customer_sessions.d.mts +1 -1
- package/dist/2026-10/services/customer_sessions.mjs +1 -1
- package/dist/2026-10/services/customers/index.cjs +1 -1
- package/dist/2026-10/services/customers/index.d.cts +1 -1
- package/dist/2026-10/services/customers/index.d.mts +1 -1
- package/dist/2026-10/services/customers/index.mjs +1 -1
- package/dist/2026-10/services/customers/members.cjs +1 -1
- package/dist/2026-10/services/customers/members.d.cts +1 -1
- package/dist/2026-10/services/customers/members.d.mts +1 -1
- package/dist/2026-10/services/customers/members.mjs +1 -1
- package/dist/2026-10/services/discounts.cjs +1 -1
- package/dist/2026-10/services/discounts.d.cts +1 -1
- package/dist/2026-10/services/discounts.d.mts +1 -1
- package/dist/2026-10/services/discounts.mjs +1 -1
- package/dist/2026-10/services/disputes.cjs +1 -1
- package/dist/2026-10/services/disputes.d.cts +1 -1
- package/dist/2026-10/services/disputes.d.mts +1 -1
- package/dist/2026-10/services/disputes.mjs +1 -1
- package/dist/2026-10/services/event_types.cjs +1 -1
- package/dist/2026-10/services/event_types.d.cts +1 -1
- package/dist/2026-10/services/event_types.d.mts +1 -1
- package/dist/2026-10/services/event_types.mjs +1 -1
- package/dist/2026-10/services/events.cjs +1 -1
- package/dist/2026-10/services/events.d.cts +1 -1
- package/dist/2026-10/services/events.d.mts +1 -1
- package/dist/2026-10/services/events.mjs +1 -1
- package/dist/2026-10/services/files.cjs +1 -1
- package/dist/2026-10/services/files.d.cts +1 -1
- package/dist/2026-10/services/files.d.mts +1 -1
- package/dist/2026-10/services/files.mjs +1 -1
- package/dist/2026-10/services/license_keys.cjs +9 -7
- package/dist/2026-10/services/license_keys.cjs.map +1 -1
- package/dist/2026-10/services/license_keys.d.cts +5 -5
- package/dist/2026-10/services/license_keys.d.cts.map +1 -1
- package/dist/2026-10/services/license_keys.d.mts +5 -5
- package/dist/2026-10/services/license_keys.d.mts.map +1 -1
- package/dist/2026-10/services/license_keys.mjs +9 -7
- package/dist/2026-10/services/license_keys.mjs.map +1 -1
- package/dist/2026-10/services/meters.cjs +1 -1
- package/dist/2026-10/services/meters.d.cts +1 -1
- package/dist/2026-10/services/meters.d.mts +1 -1
- package/dist/2026-10/services/meters.mjs +1 -1
- package/dist/2026-10/services/metrics.cjs +1 -1
- package/dist/2026-10/services/metrics.d.cts +1 -1
- package/dist/2026-10/services/metrics.d.mts +1 -1
- package/dist/2026-10/services/metrics.mjs +1 -1
- package/dist/2026-10/services/oauth2/clients/index.d.cts +1 -1
- package/dist/2026-10/services/oauth2/clients/index.d.mts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.cjs +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.d.cts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.d.mts +1 -1
- package/dist/2026-10/services/oauth2/clients/oauth2.mjs +1 -1
- package/dist/2026-10/services/oauth2/index.d.cts +1 -1
- package/dist/2026-10/services/oauth2/index.d.mts +1 -1
- package/dist/2026-10/services/orders.cjs +1 -1
- package/dist/2026-10/services/orders.d.cts +1 -1
- package/dist/2026-10/services/orders.d.mts +1 -1
- package/dist/2026-10/services/orders.mjs +1 -1
- package/dist/2026-10/services/organizations.cjs +1 -1
- package/dist/2026-10/services/organizations.d.cts +1 -1
- package/dist/2026-10/services/organizations.d.mts +1 -1
- package/dist/2026-10/services/organizations.mjs +1 -1
- package/dist/2026-10/services/payments.cjs +1 -1
- package/dist/2026-10/services/payments.d.cts +1 -1
- package/dist/2026-10/services/payments.d.mts +1 -1
- package/dist/2026-10/services/payments.mjs +1 -1
- package/dist/2026-10/services/products.cjs +35 -1
- package/dist/2026-10/services/products.cjs.map +1 -1
- package/dist/2026-10/services/products.d.cts +4 -2
- package/dist/2026-10/services/products.d.cts.map +1 -1
- package/dist/2026-10/services/products.d.mts +4 -2
- package/dist/2026-10/services/products.d.mts.map +1 -1
- package/dist/2026-10/services/products.mjs +35 -2
- package/dist/2026-10/services/products.mjs.map +1 -1
- package/dist/2026-10/services/refunds.cjs +1 -1
- package/dist/2026-10/services/refunds.d.cts +1 -1
- package/dist/2026-10/services/refunds.d.mts +1 -1
- package/dist/2026-10/services/refunds.mjs +1 -1
- package/dist/2026-10/services/subscriptions.cjs +4 -4
- package/dist/2026-10/services/subscriptions.cjs.map +1 -1
- package/dist/2026-10/services/subscriptions.d.cts +1 -1
- package/dist/2026-10/services/subscriptions.d.mts +1 -1
- package/dist/2026-10/services/subscriptions.mjs +4 -4
- package/dist/2026-10/services/subscriptions.mjs.map +1 -1
- package/dist/2026-10/services/webhooks.cjs +1 -1
- package/dist/2026-10/services/webhooks.d.cts +1 -1
- package/dist/2026-10/services/webhooks.d.mts +1 -1
- package/dist/2026-10/services/webhooks.mjs +1 -1
- package/dist/2027-01/index.cjs +158 -0
- package/dist/2027-01/index.cjs.map +1 -0
- package/dist/2027-01/index.d.cts +4 -0
- package/dist/2027-01/index.d.mts +4 -0
- package/dist/2027-01/index.mjs +138 -0
- package/dist/2027-01/index.mjs.map +1 -0
- package/dist/2027-01/services/benefit_grants.cjs +76 -0
- package/dist/2027-01/services/benefit_grants.cjs.map +1 -0
- package/dist/2027-01/services/benefit_grants.d.cts +58 -0
- package/dist/2027-01/services/benefit_grants.d.cts.map +1 -0
- package/dist/2027-01/services/benefit_grants.d.mts +58 -0
- package/dist/2027-01/services/benefit_grants.d.mts.map +1 -0
- package/dist/2027-01/services/benefit_grants.mjs +73 -0
- package/dist/2027-01/services/benefit_grants.mjs.map +1 -0
- package/dist/2027-01/services/benefits.cjs +329 -0
- package/dist/2027-01/services/benefits.cjs.map +1 -0
- package/dist/2027-01/services/benefits.d.cts +150 -0
- package/dist/2027-01/services/benefits.d.cts.map +1 -0
- package/dist/2027-01/services/benefits.d.mts +150 -0
- package/dist/2027-01/services/benefits.d.mts.map +1 -0
- package/dist/2027-01/services/benefits.mjs +318 -0
- package/dist/2027-01/services/benefits.mjs.map +1 -0
- package/dist/2027-01/services/checkout_links.cjs +178 -0
- package/dist/2027-01/services/checkout_links.cjs.map +1 -0
- package/dist/2027-01/services/checkout_links.d.cts +58 -0
- package/dist/2027-01/services/checkout_links.d.cts.map +1 -0
- package/dist/2027-01/services/checkout_links.d.mts +58 -0
- package/dist/2027-01/services/checkout_links.d.mts.map +1 -0
- package/dist/2027-01/services/checkout_links.mjs +171 -0
- package/dist/2027-01/services/checkout_links.mjs.map +1 -0
- package/dist/2027-01/services/checkouts.cjs +254 -0
- package/dist/2027-01/services/checkouts.cjs.map +1 -0
- package/dist/2027-01/services/checkouts.d.cts +78 -0
- package/dist/2027-01/services/checkouts.d.cts.map +1 -0
- package/dist/2027-01/services/checkouts.d.mts +78 -0
- package/dist/2027-01/services/checkouts.d.mts.map +1 -0
- package/dist/2027-01/services/checkouts.mjs +245 -0
- package/dist/2027-01/services/checkouts.mjs.map +1 -0
- package/dist/2027-01/services/custom_fields.cjs +179 -0
- package/dist/2027-01/services/custom_fields.cjs.map +1 -0
- package/dist/2027-01/services/custom_fields.d.cts +62 -0
- package/dist/2027-01/services/custom_fields.d.cts.map +1 -0
- package/dist/2027-01/services/custom_fields.d.mts +62 -0
- package/dist/2027-01/services/custom_fields.d.mts.map +1 -0
- package/dist/2027-01/services/custom_fields.mjs +172 -0
- package/dist/2027-01/services/custom_fields.mjs.map +1 -0
- package/dist/2027-01/services/customer_meters.cjs +103 -0
- package/dist/2027-01/services/customer_meters.cjs.map +1 -0
- package/dist/2027-01/services/customer_meters.d.cts +60 -0
- package/dist/2027-01/services/customer_meters.d.cts.map +1 -0
- package/dist/2027-01/services/customer_meters.d.mts +60 -0
- package/dist/2027-01/services/customer_meters.d.mts.map +1 -0
- package/dist/2027-01/services/customer_meters.mjs +99 -0
- package/dist/2027-01/services/customer_meters.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.cjs +136 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.cts +74 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.mts +74 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.mjs +131 -0
- package/dist/2027-01/services/customer_portal/benefit_grants.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.cjs +101 -0
- package/dist/2027-01/services/customer_portal/customer_meters.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.cts +52 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.mts +52 -0
- package/dist/2027-01/services/customer_portal/customer_meters.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_meters.mjs +97 -0
- package/dist/2027-01/services/customer_portal/customer_meters.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.cjs +50 -0
- package/dist/2027-01/services/customer_portal/customer_session.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.cts +13 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.mts +13 -0
- package/dist/2027-01/services/customer_portal/customer_session.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customer_session.mjs +47 -0
- package/dist/2027-01/services/customer_portal/customer_session.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.cjs +252 -0
- package/dist/2027-01/services/customer_portal/customers.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.d.cts +56 -0
- package/dist/2027-01/services/customer_portal/customers.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.d.mts +56 -0
- package/dist/2027-01/services/customer_portal/customers.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/customers.mjs +241 -0
- package/dist/2027-01/services/customer_portal/customers.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.cjs +68 -0
- package/dist/2027-01/services/customer_portal/downloadables.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.cts +40 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.mts +40 -0
- package/dist/2027-01/services/customer_portal/downloadables.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/downloadables.mjs +65 -0
- package/dist/2027-01/services/customer_portal/downloadables.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/index.cjs +34 -0
- package/dist/2027-01/services/customer_portal/index.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/index.d.cts +201 -0
- package/dist/2027-01/services/customer_portal/index.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/index.d.mts +201 -0
- package/dist/2027-01/services/customer_portal/index.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/index.mjs +33 -0
- package/dist/2027-01/services/customer_portal/index.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.cjs +229 -0
- package/dist/2027-01/services/customer_portal/license_keys.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.cts +52 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.mts +52 -0
- package/dist/2027-01/services/customer_portal/license_keys.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/license_keys.mjs +221 -0
- package/dist/2027-01/services/customer_portal/license_keys.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/members.cjs +188 -0
- package/dist/2027-01/services/customer_portal/members.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/members.d.cts +46 -0
- package/dist/2027-01/services/customer_portal/members.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/members.d.mts +46 -0
- package/dist/2027-01/services/customer_portal/members.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/members.mjs +182 -0
- package/dist/2027-01/services/customer_portal/members.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.cjs +255 -0
- package/dist/2027-01/services/customer_portal/orders.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.d.cts +70 -0
- package/dist/2027-01/services/customer_portal/orders.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.d.mts +70 -0
- package/dist/2027-01/services/customer_portal/orders.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/orders.mjs +245 -0
- package/dist/2027-01/services/customer_portal/orders.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.cjs +34 -0
- package/dist/2027-01/services/customer_portal/organizations.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.d.cts +11 -0
- package/dist/2027-01/services/customer_portal/organizations.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.d.mts +11 -0
- package/dist/2027-01/services/customer_portal/organizations.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/organizations.mjs +32 -0
- package/dist/2027-01/services/customer_portal/organizations.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.cjs +196 -0
- package/dist/2027-01/services/customer_portal/seats.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.d.cts +53 -0
- package/dist/2027-01/services/customer_portal/seats.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.d.mts +53 -0
- package/dist/2027-01/services/customer_portal/seats.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/seats.mjs +189 -0
- package/dist/2027-01/services/customer_portal/seats.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.cjs +161 -0
- package/dist/2027-01/services/customer_portal/subscriptions.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.cts +60 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.mts +60 -0
- package/dist/2027-01/services/customer_portal/subscriptions.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/subscriptions.mjs +155 -0
- package/dist/2027-01/services/customer_portal/subscriptions.mjs.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.cjs +93 -0
- package/dist/2027-01/services/customer_portal/wallets.cjs.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.d.cts +42 -0
- package/dist/2027-01/services/customer_portal/wallets.d.cts.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.d.mts +42 -0
- package/dist/2027-01/services/customer_portal/wallets.d.mts.map +1 -0
- package/dist/2027-01/services/customer_portal/wallets.mjs +89 -0
- package/dist/2027-01/services/customer_portal/wallets.mjs.map +1 -0
- package/dist/2027-01/services/customer_seats.cjs +187 -0
- package/dist/2027-01/services/customer_seats.cjs.map +1 -0
- package/dist/2027-01/services/customer_seats.d.cts +27 -0
- package/dist/2027-01/services/customer_seats.d.cts.map +1 -0
- package/dist/2027-01/services/customer_seats.d.mts +27 -0
- package/dist/2027-01/services/customer_seats.d.mts.map +1 -0
- package/dist/2027-01/services/customer_seats.mjs +180 -0
- package/dist/2027-01/services/customer_seats.mjs.map +1 -0
- package/dist/2027-01/services/customer_sessions.cjs +38 -0
- package/dist/2027-01/services/customer_sessions.cjs.map +1 -0
- package/dist/2027-01/services/customer_sessions.d.cts +11 -0
- package/dist/2027-01/services/customer_sessions.d.cts.map +1 -0
- package/dist/2027-01/services/customer_sessions.d.mts +11 -0
- package/dist/2027-01/services/customer_sessions.d.mts.map +1 -0
- package/dist/2027-01/services/customer_sessions.mjs +36 -0
- package/dist/2027-01/services/customer_sessions.mjs.map +1 -0
- package/dist/2027-01/services/customers/index.cjs +511 -0
- package/dist/2027-01/services/customers/index.cjs.map +1 -0
- package/dist/2027-01/services/customers/index.d.cts +190 -0
- package/dist/2027-01/services/customers/index.d.cts.map +1 -0
- package/dist/2027-01/services/customers/index.d.mts +190 -0
- package/dist/2027-01/services/customers/index.d.mts.map +1 -0
- package/dist/2027-01/services/customers/index.mjs +494 -0
- package/dist/2027-01/services/customers/index.mjs.map +1 -0
- package/dist/2027-01/services/customers/members.cjs +413 -0
- package/dist/2027-01/services/customers/members.cjs.map +1 -0
- package/dist/2027-01/services/customers/members.d.cts +104 -0
- package/dist/2027-01/services/customers/members.d.cts.map +1 -0
- package/dist/2027-01/services/customers/members.d.mts +104 -0
- package/dist/2027-01/services/customers/members.d.mts.map +1 -0
- package/dist/2027-01/services/customers/members.mjs +400 -0
- package/dist/2027-01/services/customers/members.mjs.map +1 -0
- package/dist/2027-01/services/discounts.cjs +178 -0
- package/dist/2027-01/services/discounts.cjs.map +1 -0
- package/dist/2027-01/services/discounts.d.cts +58 -0
- package/dist/2027-01/services/discounts.d.cts.map +1 -0
- package/dist/2027-01/services/discounts.d.mts +58 -0
- package/dist/2027-01/services/discounts.d.mts.map +1 -0
- package/dist/2027-01/services/discounts.mjs +171 -0
- package/dist/2027-01/services/discounts.mjs.map +1 -0
- package/dist/2027-01/services/disputes.cjs +134 -0
- package/dist/2027-01/services/disputes.cjs.map +1 -0
- package/dist/2027-01/services/disputes.d.cts +58 -0
- package/dist/2027-01/services/disputes.d.cts.map +1 -0
- package/dist/2027-01/services/disputes.d.mts +58 -0
- package/dist/2027-01/services/disputes.d.mts.map +1 -0
- package/dist/2027-01/services/disputes.mjs +129 -0
- package/dist/2027-01/services/disputes.mjs.map +1 -0
- package/dist/2027-01/services/event_types.cjs +107 -0
- package/dist/2027-01/services/event_types.cjs.map +1 -0
- package/dist/2027-01/services/event_types.d.cts +72 -0
- package/dist/2027-01/services/event_types.d.cts.map +1 -0
- package/dist/2027-01/services/event_types.d.mts +72 -0
- package/dist/2027-01/services/event_types.d.mts.map +1 -0
- package/dist/2027-01/services/event_types.mjs +103 -0
- package/dist/2027-01/services/event_types.mjs.map +1 -0
- package/dist/2027-01/services/events.cjs +167 -0
- package/dist/2027-01/services/events.cjs.map +1 -0
- package/dist/2027-01/services/events.d.cts +102 -0
- package/dist/2027-01/services/events.d.cts.map +1 -0
- package/dist/2027-01/services/events.d.mts +102 -0
- package/dist/2027-01/services/events.d.mts.map +1 -0
- package/dist/2027-01/services/events.mjs +161 -0
- package/dist/2027-01/services/events.mjs.map +1 -0
- package/dist/2027-01/services/files.cjs +184 -0
- package/dist/2027-01/services/files.cjs.map +1 -0
- package/dist/2027-01/services/files.d.cts +54 -0
- package/dist/2027-01/services/files.d.cts.map +1 -0
- package/dist/2027-01/services/files.d.mts +54 -0
- package/dist/2027-01/services/files.d.mts.map +1 -0
- package/dist/2027-01/services/files.mjs +177 -0
- package/dist/2027-01/services/files.mjs.map +1 -0
- package/dist/2027-01/services/license_keys.cjs +291 -0
- package/dist/2027-01/services/license_keys.cjs.map +1 -0
- package/dist/2027-01/services/license_keys.d.cts +66 -0
- package/dist/2027-01/services/license_keys.d.cts.map +1 -0
- package/dist/2027-01/services/license_keys.d.mts +66 -0
- package/dist/2027-01/services/license_keys.d.mts.map +1 -0
- package/dist/2027-01/services/license_keys.mjs +281 -0
- package/dist/2027-01/services/license_keys.mjs.map +1 -0
- package/dist/2027-01/services/meters.cjs +191 -0
- package/dist/2027-01/services/meters.cjs.map +1 -0
- package/dist/2027-01/services/meters.d.cts +84 -0
- package/dist/2027-01/services/meters.d.cts.map +1 -0
- package/dist/2027-01/services/meters.d.mts +84 -0
- package/dist/2027-01/services/meters.d.mts.map +1 -0
- package/dist/2027-01/services/meters.mjs +184 -0
- package/dist/2027-01/services/meters.mjs.map +1 -0
- package/dist/2027-01/services/metrics.cjs +217 -0
- package/dist/2027-01/services/metrics.cjs.map +1 -0
- package/dist/2027-01/services/metrics.d.cts +69 -0
- package/dist/2027-01/services/metrics.d.cts.map +1 -0
- package/dist/2027-01/services/metrics.d.mts +69 -0
- package/dist/2027-01/services/metrics.d.mts.map +1 -0
- package/dist/2027-01/services/metrics.mjs +208 -0
- package/dist/2027-01/services/metrics.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.cjs +10 -0
- package/dist/2027-01/services/oauth2/clients/index.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.d.cts +15 -0
- package/dist/2027-01/services/oauth2/clients/index.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.d.mts +15 -0
- package/dist/2027-01/services/oauth2/clients/index.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/index.mjs +9 -0
- package/dist/2027-01/services/oauth2/clients/index.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.cjs +95 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.cts +17 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.mts +17 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.mjs +90 -0
- package/dist/2027-01/services/oauth2/clients/oauth2.mjs.map +1 -0
- package/dist/2027-01/services/oauth2/index.cjs +101 -0
- package/dist/2027-01/services/oauth2/index.cjs.map +1 -0
- package/dist/2027-01/services/oauth2/index.d.cts +27 -0
- package/dist/2027-01/services/oauth2/index.d.cts.map +1 -0
- package/dist/2027-01/services/oauth2/index.d.mts +27 -0
- package/dist/2027-01/services/oauth2/index.d.mts.map +1 -0
- package/dist/2027-01/services/oauth2/index.mjs +95 -0
- package/dist/2027-01/services/oauth2/index.mjs.map +1 -0
- package/dist/2027-01/services/orders.cjs +320 -0
- package/dist/2027-01/services/orders.cjs.map +1 -0
- package/dist/2027-01/services/orders.d.cts +122 -0
- package/dist/2027-01/services/orders.d.cts.map +1 -0
- package/dist/2027-01/services/orders.d.mts +122 -0
- package/dist/2027-01/services/orders.d.mts.map +1 -0
- package/dist/2027-01/services/orders.mjs +309 -0
- package/dist/2027-01/services/orders.mjs.map +1 -0
- package/dist/2027-01/services/organizations.cjs +158 -0
- package/dist/2027-01/services/organizations.cjs.map +1 -0
- package/dist/2027-01/services/organizations.d.cts +52 -0
- package/dist/2027-01/services/organizations.d.cts.map +1 -0
- package/dist/2027-01/services/organizations.d.mts +52 -0
- package/dist/2027-01/services/organizations.d.mts.map +1 -0
- package/dist/2027-01/services/organizations.mjs +152 -0
- package/dist/2027-01/services/organizations.mjs.map +1 -0
- package/dist/2027-01/services/payments.cjs +106 -0
- package/dist/2027-01/services/payments.cjs.map +1 -0
- package/dist/2027-01/services/payments.d.cts +72 -0
- package/dist/2027-01/services/payments.d.cts.map +1 -0
- package/dist/2027-01/services/payments.d.mts +72 -0
- package/dist/2027-01/services/payments.d.mts.map +1 -0
- package/dist/2027-01/services/payments.mjs +102 -0
- package/dist/2027-01/services/payments.mjs.map +1 -0
- package/dist/2027-01/services/products.cjs +223 -0
- package/dist/2027-01/services/products.cjs.map +1 -0
- package/dist/2027-01/services/products.d.cts +84 -0
- package/dist/2027-01/services/products.d.cts.map +1 -0
- package/dist/2027-01/services/products.d.mts +84 -0
- package/dist/2027-01/services/products.d.mts.map +1 -0
- package/dist/2027-01/services/products.mjs +215 -0
- package/dist/2027-01/services/products.mjs.map +1 -0
- package/dist/2027-01/services/refunds.cjs +105 -0
- package/dist/2027-01/services/refunds.cjs.map +1 -0
- package/dist/2027-01/services/refunds.d.cts +72 -0
- package/dist/2027-01/services/refunds.d.cts.map +1 -0
- package/dist/2027-01/services/refunds.d.mts +72 -0
- package/dist/2027-01/services/refunds.d.mts.map +1 -0
- package/dist/2027-01/services/refunds.mjs +101 -0
- package/dist/2027-01/services/refunds.mjs.map +1 -0
- package/dist/2027-01/services/subscriptions.cjs +238 -0
- package/dist/2027-01/services/subscriptions.cjs.map +1 -0
- package/dist/2027-01/services/subscriptions.d.cts +126 -0
- package/dist/2027-01/services/subscriptions.d.cts.map +1 -0
- package/dist/2027-01/services/subscriptions.d.mts +126 -0
- package/dist/2027-01/services/subscriptions.d.mts.map +1 -0
- package/dist/2027-01/services/subscriptions.mjs +230 -0
- package/dist/2027-01/services/subscriptions.mjs.map +1 -0
- package/dist/2027-01/services/webhooks.cjs +301 -0
- package/dist/2027-01/services/webhooks.cjs.map +1 -0
- package/dist/2027-01/services/webhooks.d.cts +113 -0
- package/dist/2027-01/services/webhooks.d.cts.map +1 -0
- package/dist/2027-01/services/webhooks.d.mts +113 -0
- package/dist/2027-01/services/webhooks.d.mts.map +1 -0
- package/dist/2027-01/services/webhooks.mjs +290 -0
- package/dist/2027-01/services/webhooks.mjs.map +1 -0
- package/dist/errors-B1xadCgl.mjs +1255 -0
- package/dist/errors-B1xadCgl.mjs.map +1 -0
- package/dist/{errors-D1yM2ZQm.mjs → errors-B2qXHz99.mjs} +62 -6
- package/dist/errors-B2qXHz99.mjs.map +1 -0
- package/dist/{errors-BfEghQ77.cjs → errors-BG3e1vcX.cjs} +85 -5
- package/dist/errors-BG3e1vcX.cjs.map +1 -0
- package/dist/errors-DDydmY6t.cjs +1794 -0
- package/dist/errors-DDydmY6t.cjs.map +1 -0
- package/dist/{errors-hhbDe5ap.mjs → errors-D_tOnoPP.mjs} +62 -6
- package/dist/errors-D_tOnoPP.mjs.map +1 -0
- package/dist/{errors-CPJ329AT.cjs → errors-h8gRquR8.cjs} +85 -5
- package/dist/errors-h8gRquR8.cjs.map +1 -0
- package/dist/index-CASi3-c8.d.mts +2738 -0
- package/dist/index-CASi3-c8.d.mts.map +1 -0
- package/dist/{index-BkTZ8a-R.d.mts → index-CCkgYIo1.d.mts} +85 -17
- package/dist/index-CCkgYIo1.d.mts.map +1 -0
- package/dist/{index-BamOUZl1.d.cts → index-Cu_Exrh7.d.cts} +85 -17
- package/dist/index-Cu_Exrh7.d.cts.map +1 -0
- package/dist/{index-JEL0D7T4.d.mts → index-RFIyzWM8.d.mts} +85 -17
- package/dist/index-RFIyzWM8.d.mts.map +1 -0
- package/dist/index-Uq9Eca4W.d.cts +2738 -0
- package/dist/index-Uq9Eca4W.d.cts.map +1 -0
- package/dist/{index-BDWUg8uj.d.cts → index-YSnA4bj_.d.cts} +85 -17
- package/dist/index-YSnA4bj_.d.cts.map +1 -0
- package/dist/models-COhG3nD4.d.cts +22081 -0
- package/dist/models-COhG3nD4.d.cts.map +1 -0
- package/dist/models-COhG3nD4.d.mts +22081 -0
- package/dist/models-COhG3nD4.d.mts.map +1 -0
- package/dist/{models-D3N1jo2G.d.cts → models-CygFKqFa.d.cts} +331 -18
- package/dist/models-CygFKqFa.d.cts.map +1 -0
- package/dist/{models-D3N1jo2G.d.mts → models-CygFKqFa.d.mts} +331 -18
- package/dist/models-CygFKqFa.d.mts.map +1 -0
- package/dist/{models-f2_talp6.d.cts → models-DjSYF7EH.d.cts} +386 -16
- package/dist/models-DjSYF7EH.d.cts.map +1 -0
- package/dist/{models-f2_talp6.d.mts → models-DjSYF7EH.d.mts} +386 -16
- package/dist/models-DjSYF7EH.d.mts.map +1 -0
- package/package.json +51 -1
- package/dist/errors-BfEghQ77.cjs.map +0 -1
- package/dist/errors-CPJ329AT.cjs.map +0 -1
- package/dist/errors-D1yM2ZQm.mjs.map +0 -1
- package/dist/errors-hhbDe5ap.mjs.map +0 -1
- package/dist/index-BDWUg8uj.d.cts.map +0 -1
- package/dist/index-BamOUZl1.d.cts.map +0 -1
- package/dist/index-BkTZ8a-R.d.mts.map +0 -1
- package/dist/index-JEL0D7T4.d.mts.map +0 -1
- package/dist/models-D3N1jo2G.d.cts.map +0 -1
- package/dist/models-D3N1jo2G.d.mts.map +0 -1
- package/dist/models-f2_talp6.d.cts.map +0 -1
- package/dist/models-f2_talp6.d.mts.map +0 -1
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_errors = require("../../../errors-DDydmY6t.cjs");
|
|
3
|
+
//#region src/2027-01/services/customer_portal/orders.ts
|
|
4
|
+
const listOrders = (client) => {
|
|
5
|
+
/**
|
|
6
|
+
* List orders of the authenticated customer.
|
|
7
|
+
*
|
|
8
|
+
* @param query - Query parameters
|
|
9
|
+
* @param requestOptions - Request options
|
|
10
|
+
* @returns {ListResourceCustomerOrder}
|
|
11
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
12
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
13
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
14
|
+
* @throws {HTTPValidationError} Validation Error
|
|
15
|
+
*/
|
|
16
|
+
return async (query, requestOptions) => {
|
|
17
|
+
const pathParams = {};
|
|
18
|
+
const queryParams = {
|
|
19
|
+
product_id: query?.product_id,
|
|
20
|
+
product_billing_type: query?.product_billing_type,
|
|
21
|
+
subscription_id: query?.subscription_id,
|
|
22
|
+
query: query?.query,
|
|
23
|
+
page: query?.page ?? 1,
|
|
24
|
+
limit: query?.limit ?? 10,
|
|
25
|
+
sorting: query?.sorting ?? ["-created_at"]
|
|
26
|
+
};
|
|
27
|
+
const request = client.buildRequest("GET", "/v1/customer-portal/orders/", pathParams, queryParams, void 0);
|
|
28
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
29
|
+
return client.parseResponse(response, "json", { 422: require_errors.HTTPValidationError });
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* List orders of the authenticated customer.
|
|
34
|
+
*
|
|
35
|
+
* @param query - Query parameters
|
|
36
|
+
* @param requestOptions - Request options
|
|
37
|
+
* @returns {AsyncGenerator<CustomerOrder>} A generator that yields items of type CustomerOrder.
|
|
38
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
39
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
40
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
41
|
+
* @throws {HTTPValidationError} Validation Error
|
|
42
|
+
*/
|
|
43
|
+
const iterListOrders = (client) => {
|
|
44
|
+
return async function* (query, requestOptions) {
|
|
45
|
+
let page;
|
|
46
|
+
page = query?.page ?? 1;
|
|
47
|
+
let limit;
|
|
48
|
+
limit = query?.limit;
|
|
49
|
+
while (true) {
|
|
50
|
+
const response = await listOrders(client)({
|
|
51
|
+
...query,
|
|
52
|
+
page,
|
|
53
|
+
limit
|
|
54
|
+
}, requestOptions);
|
|
55
|
+
for (const item of response.items) yield item;
|
|
56
|
+
if (page >= response.pagination.max_page) break;
|
|
57
|
+
page++;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
const getOrders = (client) => {
|
|
62
|
+
/**
|
|
63
|
+
* Get an order by ID for the authenticated customer.
|
|
64
|
+
*
|
|
65
|
+
* @param id - The order ID.
|
|
66
|
+
* @param requestOptions - Request options
|
|
67
|
+
* @returns {CustomerOrder}
|
|
68
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
69
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
70
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
71
|
+
* @throws {ResourceNotFound} Order not found.
|
|
72
|
+
* @throws {HTTPValidationError} Validation Error
|
|
73
|
+
*/
|
|
74
|
+
return async (id, requestOptions) => {
|
|
75
|
+
const pathParams = { id };
|
|
76
|
+
const request = client.buildRequest("GET", "/v1/customer-portal/orders/{id}", pathParams, {}, void 0);
|
|
77
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
78
|
+
return client.parseResponse(response, "json", {
|
|
79
|
+
404: require_errors.ResourceNotFound,
|
|
80
|
+
422: require_errors.HTTPValidationError
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
const updateOrders = (client) => {
|
|
85
|
+
/**
|
|
86
|
+
* Update an order for the authenticated customer.
|
|
87
|
+
*
|
|
88
|
+
* @param id - The order ID.
|
|
89
|
+
* @param body - Request body
|
|
90
|
+
* @param requestOptions - Request options
|
|
91
|
+
* @returns {CustomerOrder}
|
|
92
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
93
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
94
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
95
|
+
* @throws {ResourceNotFound} Order not found.
|
|
96
|
+
* @throws {HTTPValidationError} Validation Error
|
|
97
|
+
*/
|
|
98
|
+
return async (id, body, requestOptions) => {
|
|
99
|
+
const pathParams = { id };
|
|
100
|
+
const request = client.buildRequest("PATCH", "/v1/customer-portal/orders/{id}", pathParams, {}, body);
|
|
101
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
102
|
+
return client.parseResponse(response, "json", {
|
|
103
|
+
404: require_errors.ResourceNotFound,
|
|
104
|
+
422: require_errors.HTTPValidationError
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
const invoiceOrders = (client) => {
|
|
109
|
+
/**
|
|
110
|
+
* Get an order's invoice data.
|
|
111
|
+
*
|
|
112
|
+
* @param id - The order ID.
|
|
113
|
+
* @param requestOptions - Request options
|
|
114
|
+
* @returns {CustomerOrderInvoice}
|
|
115
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
116
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
117
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
118
|
+
* @throws {ResourceNotFound} Order not found.
|
|
119
|
+
* @throws {HTTPValidationError} Validation Error
|
|
120
|
+
*/
|
|
121
|
+
return async (id, requestOptions) => {
|
|
122
|
+
const pathParams = { id };
|
|
123
|
+
const request = client.buildRequest("GET", "/v1/customer-portal/orders/{id}/invoice", pathParams, {}, void 0);
|
|
124
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
125
|
+
return client.parseResponse(response, "json", {
|
|
126
|
+
404: require_errors.ResourceNotFound,
|
|
127
|
+
422: require_errors.HTTPValidationError
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
const generateInvoiceOrders = (client) => {
|
|
132
|
+
/**
|
|
133
|
+
* Trigger generation of an order's invoice.
|
|
134
|
+
*
|
|
135
|
+
* @param id - The order ID.
|
|
136
|
+
* @param requestOptions - Request options
|
|
137
|
+
* @returns {unknown}
|
|
138
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
139
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
140
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
141
|
+
* @throws {ResourceNotFound} Order not found.
|
|
142
|
+
* @throws {OrderNotEligibleForInvoice} Order is not eligible for invoice generation (invalid status).
|
|
143
|
+
* @throws {MissingInvoiceBillingDetails} Order is missing billing name or address.
|
|
144
|
+
*/
|
|
145
|
+
return async (id, requestOptions) => {
|
|
146
|
+
const pathParams = { id };
|
|
147
|
+
const request = client.buildRequest("POST", "/v1/customer-portal/orders/{id}/invoice", pathParams, {}, void 0);
|
|
148
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
149
|
+
return client.parseResponse(response, "json", {
|
|
150
|
+
404: require_errors.ResourceNotFound,
|
|
151
|
+
409: require_errors.OrderNotEligibleForInvoice,
|
|
152
|
+
422: require_errors.MissingInvoiceBillingDetails
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
const receiptOrders = (client) => {
|
|
157
|
+
/**
|
|
158
|
+
* Get a presigned URL to download an order's receipt PDF.
|
|
159
|
+
*
|
|
160
|
+
* @param id - The order ID.
|
|
161
|
+
* @param requestOptions - Request options
|
|
162
|
+
* @returns {CustomerOrderReceipt}
|
|
163
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
164
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
165
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
166
|
+
* @throws {ResourceNotFound} Order not found.
|
|
167
|
+
* @throws {HTTPValidationError} Validation Error
|
|
168
|
+
*/
|
|
169
|
+
return async (id, requestOptions) => {
|
|
170
|
+
const pathParams = { id };
|
|
171
|
+
const request = client.buildRequest("GET", "/v1/customer-portal/orders/{id}/receipt", pathParams, {}, void 0);
|
|
172
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
173
|
+
return client.parseResponse(response, "json", {
|
|
174
|
+
404: require_errors.ResourceNotFound,
|
|
175
|
+
422: require_errors.HTTPValidationError
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
const getPaymentStatusOrders = (client) => {
|
|
180
|
+
/**
|
|
181
|
+
* Get the current payment status for an order.
|
|
182
|
+
*
|
|
183
|
+
* @param id - The order ID.
|
|
184
|
+
* @param requestOptions - Request options
|
|
185
|
+
* @returns {CustomerOrderPaymentStatus}
|
|
186
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
187
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
188
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
189
|
+
* @throws {ResourceNotFound} Order not found.
|
|
190
|
+
* @throws {HTTPValidationError} Validation Error
|
|
191
|
+
*/
|
|
192
|
+
return async (id, requestOptions) => {
|
|
193
|
+
const pathParams = { id };
|
|
194
|
+
const request = client.buildRequest("GET", "/v1/customer-portal/orders/{id}/payment-status", pathParams, {}, void 0);
|
|
195
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
196
|
+
return client.parseResponse(response, "json", {
|
|
197
|
+
404: require_errors.ResourceNotFound,
|
|
198
|
+
422: require_errors.HTTPValidationError
|
|
199
|
+
});
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
const confirmRetryPaymentOrders = (client) => {
|
|
203
|
+
/**
|
|
204
|
+
* Confirm a retry payment using a Stripe confirmation token.
|
|
205
|
+
*
|
|
206
|
+
* @param id - The order ID.
|
|
207
|
+
* @param body - Request body
|
|
208
|
+
* @param requestOptions - Request options
|
|
209
|
+
* @returns {CustomerOrderPaymentConfirmation}
|
|
210
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
211
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
212
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
213
|
+
* @throws {ResourceNotFound} Order not found.
|
|
214
|
+
* @throws {PaymentAlreadyInProgress} Payment already in progress.
|
|
215
|
+
* @throws {OrderNotEligibleForRetry} Order not eligible for retry or payment confirmation failed.
|
|
216
|
+
* @throws {ManualRetryLimitExceeded} Manual retry limit exceeded.
|
|
217
|
+
*/
|
|
218
|
+
return async (id, body, requestOptions) => {
|
|
219
|
+
const pathParams = { id };
|
|
220
|
+
const request = client.buildRequest("POST", "/v1/customer-portal/orders/{id}/confirm-payment", pathParams, {}, body);
|
|
221
|
+
const response = await client.sendRequest(request, requestOptions);
|
|
222
|
+
return client.parseResponse(response, "json", {
|
|
223
|
+
404: require_errors.ResourceNotFound,
|
|
224
|
+
409: require_errors.PaymentAlreadyInProgress,
|
|
225
|
+
422: require_errors.OrderNotEligibleForRetry,
|
|
226
|
+
429: require_errors.ManualRetryLimitExceeded
|
|
227
|
+
});
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
function createOrdersService(client) {
|
|
231
|
+
return {
|
|
232
|
+
list: listOrders(client),
|
|
233
|
+
get: getOrders(client),
|
|
234
|
+
update: updateOrders(client),
|
|
235
|
+
invoice: invoiceOrders(client),
|
|
236
|
+
generateInvoice: generateInvoiceOrders(client),
|
|
237
|
+
receipt: receiptOrders(client),
|
|
238
|
+
getPaymentStatus: getPaymentStatusOrders(client),
|
|
239
|
+
confirmRetryPayment: confirmRetryPaymentOrders(client),
|
|
240
|
+
iterList: iterListOrders(client)
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
//#endregion
|
|
244
|
+
exports.confirmRetryPaymentOrders = confirmRetryPaymentOrders;
|
|
245
|
+
exports.createOrdersService = createOrdersService;
|
|
246
|
+
exports.generateInvoiceOrders = generateInvoiceOrders;
|
|
247
|
+
exports.getOrders = getOrders;
|
|
248
|
+
exports.getPaymentStatusOrders = getPaymentStatusOrders;
|
|
249
|
+
exports.invoiceOrders = invoiceOrders;
|
|
250
|
+
exports.iterListOrders = iterListOrders;
|
|
251
|
+
exports.listOrders = listOrders;
|
|
252
|
+
exports.receiptOrders = receiptOrders;
|
|
253
|
+
exports.updateOrders = updateOrders;
|
|
254
|
+
|
|
255
|
+
//# sourceMappingURL=orders.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.cjs","names":["HTTPValidationError","ResourceNotFound","OrderNotEligibleForInvoice","MissingInvoiceBillingDetails","PaymentAlreadyInProgress","OrderNotEligibleForRetry","ManualRetryLimitExceeded"],"sources":["../../../../src/2027-01/services/customer_portal/orders.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../../base\";\nimport type {\n CustomerOrder,\n CustomerOrderConfirmPayment,\n CustomerOrderInvoice,\n CustomerOrderPaymentConfirmation,\n CustomerOrderPaymentStatus,\n CustomerOrderReceipt,\n CustomerOrderSortProperty,\n CustomerOrderUpdate,\n ListResourceCustomerOrder,\n ProductBillingType,\n} from \"../../models\";\n\nimport {\n HTTPValidationError,\n ManualRetryLimitExceeded,\n MissingInvoiceBillingDetails,\n OrderNotEligibleForInvoice,\n OrderNotEligibleForRetry,\n PaymentAlreadyInProgress,\n ResourceNotFound,\n} from \"../../errors\";\n\nexport const listOrders = (client: ClientBase) => {\n /**\n * List orders of the authenticated customer.\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceCustomerOrder}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n product_id?: string | string[] | null;\n product_billing_type?: ProductBillingType | ProductBillingType[] | null;\n subscription_id?: string | string[] | null;\n query?: string | null;\n page?: number;\n limit?: number;\n sorting?: CustomerOrderSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceCustomerOrder> => {\n const pathParams = {};\n const queryParams = {\n product_id: query?.product_id,\n product_billing_type: query?.product_billing_type,\n subscription_id: query?.subscription_id,\n query: query?.query,\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n sorting: query?.sorting ?? [\"-created_at\"],\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/orders/\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceCustomerOrder>(response, \"json\", {\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List orders of the authenticated customer.\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<CustomerOrder>} A generator that yields items of type CustomerOrder.\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {HTTPValidationError} Validation Error\n */\nexport const iterListOrders = (client: ClientBase) => {\n return async function* (\n query?: {\n product_id?: string | string[] | null;\n product_billing_type?: ProductBillingType | ProductBillingType[] | null;\n subscription_id?: string | string[] | null;\n query?: string | null;\n page?: number;\n limit?: number;\n sorting?: CustomerOrderSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<CustomerOrder> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listOrders(client)({ ...query, page, limit }, requestOptions);\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\nexport const getOrders = (client: ClientBase) => {\n /**\n * Get an order by ID for the authenticated customer.\n *\n * @param id - The order ID.\n * @param requestOptions - Request options\n * @returns {CustomerOrder}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<CustomerOrder> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/orders/{id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrder>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const updateOrders = (client: ClientBase) => {\n /**\n * Update an order for the authenticated customer.\n *\n * @param id - The order ID.\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerOrder}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n id: string,\n body: CustomerOrderUpdate,\n requestOptions?: RequestOptions,\n ): Promise<CustomerOrder> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"PATCH\",\n \"/v1/customer-portal/orders/{id}\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrder>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const invoiceOrders = (client: ClientBase) => {\n /**\n * Get an order's invoice data.\n *\n * @param id - The order ID.\n * @param requestOptions - Request options\n * @returns {CustomerOrderInvoice}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<CustomerOrderInvoice> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/orders/{id}/invoice\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrderInvoice>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const generateInvoiceOrders = (client: ClientBase) => {\n /**\n * Trigger generation of an order's invoice.\n *\n * @param id - The order ID.\n * @param requestOptions - Request options\n * @returns {unknown}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {OrderNotEligibleForInvoice} Order is not eligible for invoice generation (invalid status).\n * @throws {MissingInvoiceBillingDetails} Order is missing billing name or address.\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<unknown> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-portal/orders/{id}/invoice\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<unknown>(response, \"json\", {\n 404: ResourceNotFound,\n 409: OrderNotEligibleForInvoice,\n 422: MissingInvoiceBillingDetails,\n });\n };\n};\nexport const receiptOrders = (client: ClientBase) => {\n /**\n * Get a presigned URL to download an order's receipt PDF.\n *\n * @param id - The order ID.\n * @param requestOptions - Request options\n * @returns {CustomerOrderReceipt}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<CustomerOrderReceipt> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/orders/{id}/receipt\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrderReceipt>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const getPaymentStatusOrders = (client: ClientBase) => {\n /**\n * Get the current payment status for an order.\n *\n * @param id - The order ID.\n * @param requestOptions - Request options\n * @returns {CustomerOrderPaymentStatus}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n id: string,\n requestOptions?: RequestOptions,\n ): Promise<CustomerOrderPaymentStatus> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/orders/{id}/payment-status\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrderPaymentStatus>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const confirmRetryPaymentOrders = (client: ClientBase) => {\n /**\n * Confirm a retry payment using a Stripe confirmation token.\n *\n * @param id - The order ID.\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerOrderPaymentConfirmation}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Order not found.\n * @throws {PaymentAlreadyInProgress} Payment already in progress.\n * @throws {OrderNotEligibleForRetry} Order not eligible for retry or payment confirmation failed.\n * @throws {ManualRetryLimitExceeded} Manual retry limit exceeded.\n */\n return async (\n id: string,\n body: CustomerOrderConfirmPayment,\n requestOptions?: RequestOptions,\n ): Promise<CustomerOrderPaymentConfirmation> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-portal/orders/{id}/confirm-payment\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerOrderPaymentConfirmation>(response, \"json\", {\n 404: ResourceNotFound,\n 409: PaymentAlreadyInProgress,\n 422: OrderNotEligibleForRetry,\n 429: ManualRetryLimitExceeded,\n });\n };\n};\n\nexport function createOrdersService(client: ClientBase) {\n return {\n list: listOrders(client),\n get: getOrders(client),\n update: updateOrders(client),\n invoice: invoiceOrders(client),\n generateInvoice: generateInvoiceOrders(client),\n receipt: receiptOrders(client),\n getPaymentStatus: getPaymentStatusOrders(client),\n confirmRetryPayment: confirmRetryPaymentOrders(client),\n iterList: iterListOrders(client),\n };\n}\n\nexport type Orders = ReturnType<typeof createOrdersService>;\n"],"mappings":";;;AAwBA,MAAa,cAAc,WAAuB;;;;;;;;;;;;CAYhD,OAAO,OACL,OASA,mBACuC;EACvC,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,YAAY,OAAO;GACnB,sBAAsB,OAAO;GAC7B,iBAAiB,OAAO;GACxB,OAAO,OAAO;GACd,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,SAAS,OAAO,WAAW,CAAC,aAAa;EAC3C;EACA,MAAM,UAAU,OAAO,aACrB,OACA,+BACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyC,UAAU,QAAQ,EACvE,KAAKA,eAAAA,oBACP,CAAC;CACH;AACF;;;;;;;;;;;;AAYA,MAAa,kBAAkB,WAAuB;CACpD,OAAO,iBACL,OASA,gBAC+B;EAC/B,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,WAAW,MAAM,CAAC,CAAC;IAAE,GAAG;IAAO;IAAM;GAAM,GAAG,cAAc;GACnF,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AACA,MAAa,aAAa,WAAuB;;;;;;;;;;;;;CAa/C,OAAO,OAAO,IAAY,mBAA4D;EACpF,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,mCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA6B,UAAU,QAAQ;GAC3D,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,gBAAgB,WAAuB;;;;;;;;;;;;;;CAclD,OAAO,OACL,IACA,MACA,mBAC2B;EAC3B,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,SACA,mCACA,YACA,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA6B,UAAU,QAAQ;GAC3D,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,iBAAiB,WAAuB;;;;;;;;;;;;;CAanD,OAAO,OAAO,IAAY,mBAAmE;EAC3F,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,2CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAoC,UAAU,QAAQ;GAClE,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,yBAAyB,WAAuB;;;;;;;;;;;;;;CAc3D,OAAO,OAAO,IAAY,mBAAsD;EAC9E,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,2CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAuB,UAAU,QAAQ;GACrD,KAAKC,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,iBAAiB,WAAuB;;;;;;;;;;;;;CAanD,OAAO,OAAO,IAAY,mBAAmE;EAC3F,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,2CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAoC,UAAU,QAAQ;GAClE,KAAKF,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,0BAA0B,WAAuB;;;;;;;;;;;;;CAa5D,OAAO,OACL,IACA,mBACwC;EACxC,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,kDACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA0C,UAAU,QAAQ;GACxE,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,6BAA6B,WAAuB;;;;;;;;;;;;;;;;CAgB/D,OAAO,OACL,IACA,MACA,mBAC8C;EAC9C,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,mDACA,YACA,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAgD,UAAU,QAAQ;GAC9E,KAAKC,eAAAA;GACL,KAAKG,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKC,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,oBAAoB,QAAoB;CACtD,OAAO;EACL,MAAM,WAAW,MAAM;EACvB,KAAK,UAAU,MAAM;EACrB,QAAQ,aAAa,MAAM;EAC3B,SAAS,cAAc,MAAM;EAC7B,iBAAiB,sBAAsB,MAAM;EAC7C,SAAS,cAAc,MAAM;EAC7B,kBAAkB,uBAAuB,MAAM;EAC/C,qBAAqB,0BAA0B,MAAM;EACrD,UAAU,eAAe,MAAM;CACjC;AACF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.cjs";
|
|
2
|
+
import { Nn as ListResourceCustomerOrder, ai as ProductBillingType, at as CustomerOrder, ct as CustomerOrderPaymentConfirmation, dt as CustomerOrderSortProperty, ft as CustomerOrderUpdate, lt as CustomerOrderPaymentStatus, ot as CustomerOrderConfirmPayment, st as CustomerOrderInvoice, ut as CustomerOrderReceipt } from "../../../models-COhG3nD4.cjs";
|
|
3
|
+
//#region src/2027-01/services/customer_portal/orders.d.ts
|
|
4
|
+
declare const listOrders: (client: ClientBase) => (query?: {
|
|
5
|
+
product_id?: string | string[] | null;
|
|
6
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
7
|
+
subscription_id?: string | string[] | null;
|
|
8
|
+
query?: string | null;
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
12
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceCustomerOrder>;
|
|
13
|
+
/**
|
|
14
|
+
* List orders of the authenticated customer.
|
|
15
|
+
*
|
|
16
|
+
* @param query - Query parameters
|
|
17
|
+
* @param requestOptions - Request options
|
|
18
|
+
* @returns {AsyncGenerator<CustomerOrder>} A generator that yields items of type CustomerOrder.
|
|
19
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
20
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
21
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
22
|
+
* @throws {HTTPValidationError} Validation Error
|
|
23
|
+
*/
|
|
24
|
+
declare const iterListOrders: (client: ClientBase) => (query?: {
|
|
25
|
+
product_id?: string | string[] | null;
|
|
26
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
27
|
+
subscription_id?: string | string[] | null;
|
|
28
|
+
query?: string | null;
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
32
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<CustomerOrder>;
|
|
33
|
+
declare const getOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
34
|
+
declare const updateOrders: (client: ClientBase) => (id: string, body: CustomerOrderUpdate, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
35
|
+
declare const invoiceOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderInvoice>;
|
|
36
|
+
declare const generateInvoiceOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<unknown>;
|
|
37
|
+
declare const receiptOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderReceipt>;
|
|
38
|
+
declare const getPaymentStatusOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentStatus>;
|
|
39
|
+
declare const confirmRetryPaymentOrders: (client: ClientBase) => (id: string, body: CustomerOrderConfirmPayment, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentConfirmation>;
|
|
40
|
+
declare function createOrdersService(client: ClientBase): {
|
|
41
|
+
list: (query?: {
|
|
42
|
+
product_id?: string | string[] | null;
|
|
43
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
44
|
+
subscription_id?: string | string[] | null;
|
|
45
|
+
query?: string | null;
|
|
46
|
+
page?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
49
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceCustomerOrder>;
|
|
50
|
+
get: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
51
|
+
update: (id: string, body: CustomerOrderUpdate, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
52
|
+
invoice: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderInvoice>;
|
|
53
|
+
generateInvoice: (id: string, requestOptions?: RequestOptions) => Promise<unknown>;
|
|
54
|
+
receipt: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderReceipt>;
|
|
55
|
+
getPaymentStatus: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentStatus>;
|
|
56
|
+
confirmRetryPayment: (id: string, body: CustomerOrderConfirmPayment, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentConfirmation>;
|
|
57
|
+
iterList: (query?: {
|
|
58
|
+
product_id?: string | string[] | null;
|
|
59
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
60
|
+
subscription_id?: string | string[] | null;
|
|
61
|
+
query?: string | null;
|
|
62
|
+
page?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
65
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<CustomerOrder>;
|
|
66
|
+
};
|
|
67
|
+
type Orders = ReturnType<typeof createOrdersService>;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Orders, confirmRetryPaymentOrders, createOrdersService, generateInvoiceOrders, getOrders, getPaymentStatusOrders, invoiceOrders, iterListOrders, listOrders, receiptOrders, updateOrders };
|
|
70
|
+
//# sourceMappingURL=orders.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.d.cts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/orders.ts"],"mappings":";;;cAwBa,aAAc,QAAQ,gBAa/B;EACE;EACA,uBAAuB,qBAAqB;EAC5C;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;cAmCA,iBAAkB,QAAQ,gBAEnC;EACE;EACA,uBAAuB,qBAAqB;EAC5C;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,YAAa,QAAQ,gBAalB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,eAAgB,QAAQ,gBAejC,YACA,MAAM,qBACN,iBAAiB,mBAChB,QAAQ;cAmBA,gBAAiB,QAAQ,gBAatB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,wBAAyB,QAAQ,gBAc9B,YAAY,iBAAiB,mBAAiB;cAoBjD,gBAAiB,QAAQ,gBAatB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,yBAA0B,QAAQ,gBAc3C,YACA,iBAAiB,mBAChB,QAAQ;cAmBA,4BAA6B,QAAQ,gBAiB9C,YACA,MAAM,6BACN,iBAAiB,mBAChB,QAAQ;iBAsBG,oBAAoB,QAAQ;EA/ThC,OAAA;IACN;IACA,uBAAuB,qBAAqB;IAC5C;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA8EO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAkC9D,SAAA,YAAM,MACJ,qBAAmB,iBACR,mBAChB,QAAQ;EAgCO,UAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiClD,kBAAA,YAAM,iBAAmB,mBAAiB;EAiC1C,UAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiC9D,mBAAA,YAAM,iBACO,mBAChB,QAAQ;EAoCL,sBAAA,YAAM,MACJ,6BAA2B,iBAChB,mBAChB,QAAQ;EA1PD,WAAA;IACN;IACA,uBAAuB,qBAAqB;IAC5C;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAoRR,SAAS,kBAAkB"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.mjs";
|
|
2
|
+
import { Nn as ListResourceCustomerOrder, ai as ProductBillingType, at as CustomerOrder, ct as CustomerOrderPaymentConfirmation, dt as CustomerOrderSortProperty, ft as CustomerOrderUpdate, lt as CustomerOrderPaymentStatus, ot as CustomerOrderConfirmPayment, st as CustomerOrderInvoice, ut as CustomerOrderReceipt } from "../../../models-COhG3nD4.mjs";
|
|
3
|
+
//#region src/2027-01/services/customer_portal/orders.d.ts
|
|
4
|
+
declare const listOrders: (client: ClientBase) => (query?: {
|
|
5
|
+
product_id?: string | string[] | null;
|
|
6
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
7
|
+
subscription_id?: string | string[] | null;
|
|
8
|
+
query?: string | null;
|
|
9
|
+
page?: number;
|
|
10
|
+
limit?: number;
|
|
11
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
12
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceCustomerOrder>;
|
|
13
|
+
/**
|
|
14
|
+
* List orders of the authenticated customer.
|
|
15
|
+
*
|
|
16
|
+
* @param query - Query parameters
|
|
17
|
+
* @param requestOptions - Request options
|
|
18
|
+
* @returns {AsyncGenerator<CustomerOrder>} A generator that yields items of type CustomerOrder.
|
|
19
|
+
* @throws {PolarNetworkError} When a network error occurs
|
|
20
|
+
* @throws {PolarRateLimitError} When the rate limit is exceeded
|
|
21
|
+
* @throws {PolarServerError} When the server returns a 5xx error
|
|
22
|
+
* @throws {HTTPValidationError} Validation Error
|
|
23
|
+
*/
|
|
24
|
+
declare const iterListOrders: (client: ClientBase) => (query?: {
|
|
25
|
+
product_id?: string | string[] | null;
|
|
26
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
27
|
+
subscription_id?: string | string[] | null;
|
|
28
|
+
query?: string | null;
|
|
29
|
+
page?: number;
|
|
30
|
+
limit?: number;
|
|
31
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
32
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<CustomerOrder>;
|
|
33
|
+
declare const getOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
34
|
+
declare const updateOrders: (client: ClientBase) => (id: string, body: CustomerOrderUpdate, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
35
|
+
declare const invoiceOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderInvoice>;
|
|
36
|
+
declare const generateInvoiceOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<unknown>;
|
|
37
|
+
declare const receiptOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderReceipt>;
|
|
38
|
+
declare const getPaymentStatusOrders: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentStatus>;
|
|
39
|
+
declare const confirmRetryPaymentOrders: (client: ClientBase) => (id: string, body: CustomerOrderConfirmPayment, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentConfirmation>;
|
|
40
|
+
declare function createOrdersService(client: ClientBase): {
|
|
41
|
+
list: (query?: {
|
|
42
|
+
product_id?: string | string[] | null;
|
|
43
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
44
|
+
subscription_id?: string | string[] | null;
|
|
45
|
+
query?: string | null;
|
|
46
|
+
page?: number;
|
|
47
|
+
limit?: number;
|
|
48
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
49
|
+
}, requestOptions?: RequestOptions) => Promise<ListResourceCustomerOrder>;
|
|
50
|
+
get: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
51
|
+
update: (id: string, body: CustomerOrderUpdate, requestOptions?: RequestOptions) => Promise<CustomerOrder>;
|
|
52
|
+
invoice: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderInvoice>;
|
|
53
|
+
generateInvoice: (id: string, requestOptions?: RequestOptions) => Promise<unknown>;
|
|
54
|
+
receipt: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderReceipt>;
|
|
55
|
+
getPaymentStatus: (id: string, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentStatus>;
|
|
56
|
+
confirmRetryPayment: (id: string, body: CustomerOrderConfirmPayment, requestOptions?: RequestOptions) => Promise<CustomerOrderPaymentConfirmation>;
|
|
57
|
+
iterList: (query?: {
|
|
58
|
+
product_id?: string | string[] | null;
|
|
59
|
+
product_billing_type?: ProductBillingType | ProductBillingType[] | null;
|
|
60
|
+
subscription_id?: string | string[] | null;
|
|
61
|
+
query?: string | null;
|
|
62
|
+
page?: number;
|
|
63
|
+
limit?: number;
|
|
64
|
+
sorting?: CustomerOrderSortProperty[] | null;
|
|
65
|
+
}, requestOptions?: RequestOptions) => AsyncGenerator<CustomerOrder>;
|
|
66
|
+
};
|
|
67
|
+
type Orders = ReturnType<typeof createOrdersService>;
|
|
68
|
+
//#endregion
|
|
69
|
+
export { Orders, confirmRetryPaymentOrders, createOrdersService, generateInvoiceOrders, getOrders, getPaymentStatusOrders, invoiceOrders, iterListOrders, listOrders, receiptOrders, updateOrders };
|
|
70
|
+
//# sourceMappingURL=orders.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orders.d.mts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/orders.ts"],"mappings":";;;cAwBa,aAAc,QAAQ,gBAa/B;EACE;EACA,uBAAuB,qBAAqB;EAC5C;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;cAmCA,iBAAkB,QAAQ,gBAEnC;EACE;EACA,uBAAuB,qBAAqB;EAC5C;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,YAAa,QAAQ,gBAalB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,eAAgB,QAAQ,gBAejC,YACA,MAAM,qBACN,iBAAiB,mBAChB,QAAQ;cAmBA,gBAAiB,QAAQ,gBAatB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,wBAAyB,QAAQ,gBAc9B,YAAY,iBAAiB,mBAAiB;cAoBjD,gBAAiB,QAAQ,gBAatB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,yBAA0B,QAAQ,gBAc3C,YACA,iBAAiB,mBAChB,QAAQ;cAmBA,4BAA6B,QAAQ,gBAiB9C,YACA,MAAM,6BACN,iBAAiB,mBAChB,QAAQ;iBAsBG,oBAAoB,QAAQ;EA/ThC,OAAA;IACN;IACA,uBAAuB,qBAAqB;IAC5C;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EA8EO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAkC9D,SAAA,YAAM,MACJ,qBAAmB,iBACR,mBAChB,QAAQ;EAgCO,UAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiClD,kBAAA,YAAM,iBAAmB,mBAAiB;EAiC1C,UAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiC9D,mBAAA,YAAM,iBACO,mBAChB,QAAQ;EAoCL,sBAAA,YAAM,MACJ,6BAA2B,iBAChB,mBAChB,QAAQ;EA1PD,WAAA;IACN;IACA,uBAAuB,qBAAqB;IAC5C;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KAoRR,SAAS,kBAAkB"}
|