@schematichq/schematic-typescript-node 1.1.10 → 1.1.11
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/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/README.md +2 -0
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +2 -1
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +2 -1
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +2 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accesstokens/client/Client.d.ts +3 -1
- package/api/resources/accesstokens/client/Client.js +30 -12
- package/api/resources/accounts/client/Client.d.ts +51 -14
- package/api/resources/accounts/client/Client.js +489 -175
- package/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/api/resources/accounts/types/index.d.ts +1 -0
- package/api/resources/accounts/types/index.js +1 -0
- package/api/resources/billing/client/Client.d.ts +64 -26
- package/api/resources/billing/client/Client.js +651 -259
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
- package/api/resources/billing/client/requests/index.d.ts +1 -1
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
- package/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/{dist/api/resources/billing/types/ListCustomersParams.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/{dist/api/resources/billing/types/ListCustomersResponse.d.ts → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/api/resources/billing/types/index.d.ts +3 -2
- package/api/resources/billing/types/index.js +3 -2
- package/api/resources/checkout/client/Client.d.ts +11 -4
- package/api/resources/checkout/client/Client.js +113 -50
- package/api/resources/companies/client/Client.d.ts +95 -37
- package/api/resources/companies/client/Client.js +903 -391
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +18 -7
- package/api/resources/components/client/Client.js +188 -89
- package/api/resources/crm/client/Client.d.ts +15 -5
- package/api/resources/crm/client/Client.js +151 -61
- package/api/resources/dataexports/client/Client.d.ts +58 -0
- package/api/resources/dataexports/client/Client.js +265 -0
- package/api/resources/dataexports/client/index.d.ts +1 -0
- package/api/resources/dataexports/client/index.js +17 -0
- package/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/api/resources/dataexports/client/requests/index.js +2 -0
- package/api/resources/dataexports/index.d.ts +2 -0
- package/api/resources/dataexports/index.js +18 -0
- package/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/api/resources/dataexports/types/index.d.ts +1 -0
- package/api/resources/dataexports/types/index.js +17 -0
- package/api/resources/entitlements/client/Client.d.ts +53 -22
- package/api/resources/entitlements/client/Client.js +534 -239
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/api/resources/events/client/Client.d.ts +16 -6
- package/api/resources/events/client/Client.js +164 -74
- package/api/resources/features/client/Client.d.ts +52 -19
- package/api/resources/features/client/Client.js +533 -236
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +7 -3
- package/api/resources/plangroups/client/Client.js +73 -37
- package/api/resources/plans/client/Client.d.ts +124 -11
- package/api/resources/plans/client/Client.js +1010 -171
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/api/resources/plans/client/requests/index.d.ts +4 -0
- package/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/api/resources/plans/types/index.d.ts +8 -0
- package/api/resources/plans/types/index.js +8 -0
- package/api/resources/webhooks/client/Client.d.ts +24 -9
- package/api/resources/webhooks/client/Client.js +249 -114
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/api/types/BillingPriceResponseData.d.ts +2 -0
- package/api/types/BillingPriceView.d.ts +7 -0
- package/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +2 -0
- package/api/types/BillingProductResponseData.d.ts +2 -0
- package/api/types/CheckFlagResponseData.d.ts +2 -0
- package/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/api/types/DataExportResponseData.d.ts +17 -0
- package/api/types/DataExportResponseData.js +5 -0
- package/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/api/types/EntitlementTriggerConfig.js +5 -0
- package/api/types/EventSummaryResponseData.d.ts +2 -2
- package/api/types/PlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/api/types/PlanTraitResponseData.d.ts +16 -0
- package/api/types/PlanTraitResponseData.js +5 -0
- package/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/api/types/QuickstartResp.d.ts +6 -0
- package/api/types/QuickstartResp.js +5 -0
- package/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/api/types/WebhookResponseData.d.ts +2 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/core/fetcher/APIResponse.d.ts +10 -0
- package/core/fetcher/Fetcher.js +7 -0
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/custom.js +17 -0
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +2 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +2 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +2 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accesstokens/client/Client.d.ts +3 -1
- package/dist/api/resources/accesstokens/client/Client.js +30 -12
- package/dist/api/resources/accounts/client/Client.d.ts +51 -14
- package/dist/api/resources/accounts/client/Client.js +489 -175
- package/dist/api/resources/accounts/types/QuickstartResponse.d.ts +9 -0
- package/dist/api/resources/accounts/types/QuickstartResponse.js +5 -0
- package/dist/api/resources/accounts/types/index.d.ts +1 -0
- package/dist/api/resources/accounts/types/index.js +1 -0
- package/dist/api/resources/billing/client/Client.d.ts +64 -26
- package/dist/api/resources/billing/client/Client.js +651 -259
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +2 -7
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/{ListCustomersRequest.d.ts → ListCustomersWithSubscriptionsRequest.d.ts} +2 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +4 -0
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +8 -0
- package/dist/api/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +10 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/{api/resources/billing/types/ListCustomersParams.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts} +2 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.js +5 -0
- package/{api/resources/billing/types/ListCustomersResponse.d.ts → dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts} +2 -2
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -2
- package/dist/api/resources/billing/types/index.js +3 -2
- package/dist/api/resources/checkout/client/Client.d.ts +11 -4
- package/dist/api/resources/checkout/client/Client.js +113 -50
- package/dist/api/resources/companies/client/Client.d.ts +95 -37
- package/dist/api/resources/companies/client/Client.js +903 -391
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +4 -0
- package/dist/api/resources/companies/client/requests/LookupCompanyRequest.d.ts +2 -4
- package/dist/api/resources/companies/client/requests/LookupUserRequest.d.ts +2 -4
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/api/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +18 -7
- package/dist/api/resources/components/client/Client.js +188 -89
- package/dist/api/resources/crm/client/Client.d.ts +15 -5
- package/dist/api/resources/crm/client/Client.js +151 -61
- package/dist/api/resources/dataexports/client/Client.d.ts +58 -0
- package/dist/api/resources/dataexports/client/Client.js +265 -0
- package/dist/api/resources/dataexports/client/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/index.js +17 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.js +5 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/requests/index.js +2 -0
- package/dist/api/resources/dataexports/index.d.ts +2 -0
- package/dist/api/resources/dataexports/index.js +18 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.d.ts +9 -0
- package/dist/api/resources/dataexports/types/CreateDataExportResponse.js +5 -0
- package/dist/api/resources/dataexports/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/index.js +17 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +53 -22
- package/dist/api/resources/entitlements/client/Client.js +534 -239
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageByCompanyRequest.d.ts +2 -4
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/api/resources/events/client/Client.d.ts +16 -6
- package/dist/api/resources/events/client/Client.js +164 -74
- package/dist/api/resources/features/client/Client.d.ts +52 -19
- package/dist/api/resources/features/client/Client.js +533 -236
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +7 -3
- package/dist/api/resources/plangroups/client/Client.js +73 -37
- package/dist/api/resources/plans/client/Client.d.ts +124 -11
- package/dist/api/resources/plans/client/Client.js +1010 -171
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/CountPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/CreatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.d.ts +20 -0
- package/dist/api/resources/plans/client/requests/ListPlanTraitsRequest.js +5 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +14 -0
- package/dist/api/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +5 -0
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/CountPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CountPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/CreatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/DeletePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/GetPlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.d.ts +15 -0
- package/dist/api/resources/plans/types/ListPlanTraitsParams.js +5 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.d.ts +10 -0
- package/dist/api/resources/plans/types/ListPlanTraitsResponse.js +5 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/UpdatePlanTraitResponse.js +5 -0
- package/dist/api/resources/plans/types/index.d.ts +8 -0
- package/dist/api/resources/plans/types/index.js +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +24 -9
- package/dist/api/resources/webhooks/client/Client.js +249 -114
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +1 -0
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +5 -1
- package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/api/types/BillingPriceView.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/api/types/BillingProductPriceTierResponseData.d.ts +9 -0
- package/dist/api/types/BillingProductPriceTierResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -0
- package/dist/api/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/api/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/api/types/DataExportResponseData.d.ts +17 -0
- package/dist/api/types/DataExportResponseData.js +5 -0
- package/dist/api/types/EntitlementTriggerConfig.d.ts +6 -0
- package/dist/api/types/EntitlementTriggerConfig.js +5 -0
- package/dist/api/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanTraitResponseData.d.ts +16 -0
- package/dist/api/types/PlanTraitResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +15 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.js +5 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +10 -0
- package/dist/api/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +5 -0
- package/dist/api/types/QuickstartResp.d.ts +6 -0
- package/dist/api/types/QuickstartResp.js +5 -0
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UpsertTraitRequestBody.d.ts +1 -1
- package/dist/api/types/UpsertUserRequestBody.d.ts +7 -2
- package/dist/api/types/UpsertUserSubRequestBody.d.ts +4 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/WebhookResponseData.d.ts +2 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/Fetcher.js +7 -0
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/custom.js +17 -0
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/errors/SchematicError.d.ts +4 -1
- package/dist/errors/SchematicError.js +4 -7
- package/dist/events.d.ts +4 -0
- package/dist/events.js +41 -5
- package/dist/events.test.js +50 -3
- package/dist/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/dist/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/index.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.js +1 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/dist/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/dist/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/dist/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -2
- package/dist/serialization/resources/billing/types/index.js +3 -2
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/dist/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/dist/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/index.js +17 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/dist/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/dist/serialization/resources/dataexports/index.d.ts +2 -0
- package/dist/serialization/resources/dataexports/index.js +18 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/types/index.js +17 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/index.js +5 -1
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/dist/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/dist/serialization/resources/plans/types/index.d.ts +8 -0
- package/dist/serialization/resources/plans/types/index.js +8 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/dist/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingPriceResponseData.js +2 -0
- package/dist/serialization/types/BillingPriceView.d.ts +7 -0
- package/dist/serialization/types/BillingPriceView.js +7 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingProductPriceResponseData.js +3 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/dist/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.js +2 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.js +2 -0
- package/dist/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/dist/serialization/types/CheckFlagResponseData.js +1 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyDetailResponseData.js +2 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/dist/serialization/types/DataExportResponseData.d.ts +20 -0
- package/dist/serialization/types/DataExportResponseData.js +51 -0
- package/dist/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/dist/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/dist/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/dist/serialization/types/EventSummaryResponseData.js +2 -2
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanDetailResponseData.js +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
- package/dist/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanTraitResponseData.js +50 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/dist/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/dist/serialization/types/QuickstartResp.d.ts +12 -0
- package/dist/serialization/types/QuickstartResp.js +43 -0
- package/dist/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/dist/serialization/types/UpsertUserRequestBody.js +2 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
- package/dist/serialization/types/WebhookResponseData.d.ts +2 -0
- package/dist/serialization/types/WebhookResponseData.js +2 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- package/errors/SchematicError.d.ts +4 -1
- package/errors/SchematicError.js +4 -7
- package/events.d.ts +4 -0
- package/events.js +41 -5
- package/events.test.js +50 -3
- package/package.json +3 -2
- package/reference.md +412 -15
- package/serialization/resources/accounts/types/QuickstartResponse.d.ts +14 -0
- package/serialization/resources/accounts/types/QuickstartResponse.js +45 -0
- package/serialization/resources/accounts/types/index.d.ts +1 -0
- package/serialization/resources/accounts/types/index.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -3
- package/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.js +1 -3
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/CountCustomersParams.d.ts +1 -0
- package/serialization/resources/billing/types/CountCustomersParams.js +1 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.d.ts +10 -0
- package/serialization/resources/billing/types/CreateBillingPriceRequestBodyBillingScheme.js +41 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +2 -0
- package/serialization/resources/billing/types/{ListCustomersParams.d.ts → ListCustomersWithSubscriptionsParams.d.ts} +3 -2
- package/serialization/resources/billing/types/{ListCustomersParams.js → ListCustomersWithSubscriptionsParams.js} +3 -2
- package/serialization/resources/billing/types/{ListCustomersResponse.d.ts → ListCustomersWithSubscriptionsResponse.d.ts} +4 -4
- package/serialization/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsResponse.js} +4 -4
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +2 -0
- package/serialization/resources/billing/types/index.d.ts +3 -2
- package/serialization/resources/billing/types/index.js +3 -2
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/LookupCompanyParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupCompanyParams.js +1 -1
- package/serialization/resources/companies/types/LookupUserParams.d.ts +1 -1
- package/serialization/resources/companies/types/LookupUserParams.js +1 -1
- package/serialization/resources/dataexports/client/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/index.js +17 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +12 -0
- package/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.js +43 -0
- package/serialization/resources/dataexports/client/requests/index.d.ts +1 -0
- package/serialization/resources/dataexports/client/requests/index.js +5 -0
- package/serialization/resources/dataexports/index.d.ts +2 -0
- package/serialization/resources/dataexports/index.js +18 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.d.ts +14 -0
- package/serialization/resources/dataexports/types/CreateDataExportResponse.js +45 -0
- package/serialization/resources/dataexports/types/index.d.ts +1 -0
- package/serialization/resources/dataexports/types/index.js +17 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +6 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +6 -0
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.d.ts +1 -1
- package/serialization/resources/entitlements/types/GetFeatureUsageByCompanyParams.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.d.ts +14 -0
- package/serialization/resources/plans/client/requests/CreatePlanTraitRequestBody.js +45 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.d.ts +13 -0
- package/serialization/resources/plans/client/requests/UpdatePlanTraitRequestBody.js +44 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +2 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +2 -0
- package/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/serialization/resources/plans/client/requests/index.js +5 -1
- package/serialization/resources/plans/types/CountPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/CountPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/CountPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/CreatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/DeletePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/GetPlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.d.ts +16 -0
- package/serialization/resources/plans/types/ListPlanTraitsParams.js +47 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.d.ts +15 -0
- package/serialization/resources/plans/types/ListPlanTraitsResponse.js +46 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.d.ts +14 -0
- package/serialization/resources/plans/types/UpdatePlanTraitResponse.js +45 -0
- package/serialization/resources/plans/types/index.d.ts +8 -0
- package/serialization/resources/plans/types/index.js +8 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/CreateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.d.ts +2 -0
- package/serialization/resources/webhooks/client/requests/UpdateWebhookRequestBody.js +2 -0
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
- package/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.js +4 -0
- package/serialization/types/BillingPriceResponseData.d.ts +2 -0
- package/serialization/types/BillingPriceResponseData.js +2 -0
- package/serialization/types/BillingPriceView.d.ts +7 -0
- package/serialization/types/BillingPriceView.js +7 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +2 -0
- package/serialization/types/BillingProductDetailResponseData.js +2 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +3 -0
- package/serialization/types/BillingProductPriceResponseData.js +3 -0
- package/serialization/types/BillingProductPriceTierResponseData.d.ts +15 -0
- package/serialization/types/BillingProductPriceTierResponseData.js +46 -0
- package/serialization/types/BillingProductPricing.d.ts +2 -0
- package/serialization/types/BillingProductPricing.js +2 -0
- package/serialization/types/BillingProductResponseData.d.ts +2 -0
- package/serialization/types/BillingProductResponseData.js +2 -0
- package/serialization/types/CheckFlagResponseData.d.ts +1 -0
- package/serialization/types/CheckFlagResponseData.js +1 -0
- package/serialization/types/CompanyDetailResponseData.d.ts +2 -1
- package/serialization/types/CompanyDetailResponseData.js +2 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +2 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +2 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.d.ts +1 -0
- package/serialization/types/CreateBillingPriceTierRequestBody.js +1 -0
- package/serialization/types/DataExportResponseData.d.ts +20 -0
- package/serialization/types/DataExportResponseData.js +51 -0
- package/serialization/types/EntitlementTriggerConfig.d.ts +12 -0
- package/serialization/types/EntitlementTriggerConfig.js +43 -0
- package/serialization/types/EventSummaryResponseData.d.ts +2 -2
- package/serialization/types/EventSummaryResponseData.js +2 -2
- package/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanDetailResponseData.js +2 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/serialization/types/PlanEntitlementResponseData.js +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +2 -0
- package/serialization/types/PlanTraitResponseData.d.ts +19 -0
- package/serialization/types/PlanTraitResponseData.js +50 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +4 -0
- package/serialization/types/PreviewSubscriptionChangeResponseData.js +4 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +21 -0
- package/serialization/types/PreviewSubscriptionFinanceResponseData.js +52 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.d.ts +16 -0
- package/serialization/types/PreviewSubscriptionUpcomingInvoiceLineItems.js +47 -0
- package/serialization/types/QuickstartResp.d.ts +12 -0
- package/serialization/types/QuickstartResp.js +43 -0
- package/serialization/types/UpsertUserRequestBody.d.ts +2 -0
- package/serialization/types/UpsertUserRequestBody.js +2 -0
- package/serialization/types/UpsertUserSubRequestBody.d.ts +1 -0
- package/serialization/types/UpsertUserSubRequestBody.js +1 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.d.ts +6 -0
- package/serialization/types/UsageBasedEntitlementRequestBody.js +6 -0
- package/serialization/types/WebhookResponseData.d.ts +2 -0
- package/serialization/types/WebhookResponseData.js +2 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- /package/api/resources/{billing/client/requests/ListCustomersRequest.js → accounts/types/QuickstartResponse.js} +0 -0
- /package/api/resources/billing/{types/ListCustomersParams.js → client/requests/ListCustomersWithSubscriptionsRequest.js} +0 -0
- /package/api/resources/billing/types/{ListCustomersResponse.js → ListCustomersWithSubscriptionsParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ListCustomersRequest.js → api/resources/billing/types/ListCustomersWithSubscriptionsResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersParams.js → api/resources/dataexports/client/requests/CreateDataExportRequestBody.js} +0 -0
- /package/{dist/api/resources/billing/types/ListCustomersResponse.js → api/resources/dataexports/types/CreateDataExportResponse.js} +0 -0
|
@@ -35,3 +35,4 @@ __exportStar(require("./GetEnvironmentResponse"), exports);
|
|
|
35
35
|
__exportStar(require("./UpdateEnvironmentRequestBodyEnvironmentType"), exports);
|
|
36
36
|
__exportStar(require("./UpdateEnvironmentResponse"), exports);
|
|
37
37
|
__exportStar(require("./DeleteEnvironmentResponse"), exports);
|
|
38
|
+
__exportStar(require("./QuickstartResponse"), exports);
|
|
@@ -33,12 +33,14 @@ export declare class Billing {
|
|
|
33
33
|
* @throws {@link Schematic.BadRequestError}
|
|
34
34
|
* @throws {@link Schematic.UnauthorizedError}
|
|
35
35
|
* @throws {@link Schematic.ForbiddenError}
|
|
36
|
+
* @throws {@link Schematic.NotFoundError}
|
|
36
37
|
* @throws {@link Schematic.InternalServerError}
|
|
37
38
|
*
|
|
38
39
|
* @example
|
|
39
40
|
* await client.billing.listCoupons()
|
|
40
41
|
*/
|
|
41
|
-
listCoupons(request?: Schematic.ListCouponsRequest, requestOptions?: Billing.RequestOptions):
|
|
42
|
+
listCoupons(request?: Schematic.ListCouponsRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListCouponsResponse>;
|
|
43
|
+
private __listCoupons;
|
|
42
44
|
/**
|
|
43
45
|
* @param {Schematic.CreateCouponRequestBody} request
|
|
44
46
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,6 +48,7 @@ export declare class Billing {
|
|
|
46
48
|
* @throws {@link Schematic.BadRequestError}
|
|
47
49
|
* @throws {@link Schematic.UnauthorizedError}
|
|
48
50
|
* @throws {@link Schematic.ForbiddenError}
|
|
51
|
+
* @throws {@link Schematic.NotFoundError}
|
|
49
52
|
* @throws {@link Schematic.InternalServerError}
|
|
50
53
|
*
|
|
51
54
|
* @example
|
|
@@ -60,7 +63,8 @@ export declare class Billing {
|
|
|
60
63
|
* timesRedeemed: 1
|
|
61
64
|
* })
|
|
62
65
|
*/
|
|
63
|
-
upsertBillingCoupon(request: Schematic.CreateCouponRequestBody, requestOptions?: Billing.RequestOptions):
|
|
66
|
+
upsertBillingCoupon(request: Schematic.CreateCouponRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingCouponResponse>;
|
|
67
|
+
private __upsertBillingCoupon;
|
|
64
68
|
/**
|
|
65
69
|
* @param {Schematic.CreateBillingCustomerRequestBody} request
|
|
66
70
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -68,6 +72,7 @@ export declare class Billing {
|
|
|
68
72
|
* @throws {@link Schematic.BadRequestError}
|
|
69
73
|
* @throws {@link Schematic.UnauthorizedError}
|
|
70
74
|
* @throws {@link Schematic.ForbiddenError}
|
|
75
|
+
* @throws {@link Schematic.NotFoundError}
|
|
71
76
|
* @throws {@link Schematic.InternalServerError}
|
|
72
77
|
*
|
|
73
78
|
* @example
|
|
@@ -81,20 +86,23 @@ export declare class Billing {
|
|
|
81
86
|
* name: "name"
|
|
82
87
|
* })
|
|
83
88
|
*/
|
|
84
|
-
upsertBillingCustomer(request: Schematic.CreateBillingCustomerRequestBody, requestOptions?: Billing.RequestOptions):
|
|
89
|
+
upsertBillingCustomer(request: Schematic.CreateBillingCustomerRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingCustomerResponse>;
|
|
90
|
+
private __upsertBillingCustomer;
|
|
85
91
|
/**
|
|
86
|
-
* @param {Schematic.
|
|
92
|
+
* @param {Schematic.ListCustomersWithSubscriptionsRequest} request
|
|
87
93
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
88
94
|
*
|
|
89
95
|
* @throws {@link Schematic.BadRequestError}
|
|
90
96
|
* @throws {@link Schematic.UnauthorizedError}
|
|
91
97
|
* @throws {@link Schematic.ForbiddenError}
|
|
98
|
+
* @throws {@link Schematic.NotFoundError}
|
|
92
99
|
* @throws {@link Schematic.InternalServerError}
|
|
93
100
|
*
|
|
94
101
|
* @example
|
|
95
|
-
* await client.billing.
|
|
102
|
+
* await client.billing.listCustomersWithSubscriptions()
|
|
96
103
|
*/
|
|
97
|
-
|
|
104
|
+
listCustomersWithSubscriptions(request?: Schematic.ListCustomersWithSubscriptionsRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListCustomersWithSubscriptionsResponse>;
|
|
105
|
+
private __listCustomersWithSubscriptions;
|
|
98
106
|
/**
|
|
99
107
|
* @param {Schematic.CountCustomersRequest} request
|
|
100
108
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -102,12 +110,14 @@ export declare class Billing {
|
|
|
102
110
|
* @throws {@link Schematic.BadRequestError}
|
|
103
111
|
* @throws {@link Schematic.UnauthorizedError}
|
|
104
112
|
* @throws {@link Schematic.ForbiddenError}
|
|
113
|
+
* @throws {@link Schematic.NotFoundError}
|
|
105
114
|
* @throws {@link Schematic.InternalServerError}
|
|
106
115
|
*
|
|
107
116
|
* @example
|
|
108
117
|
* await client.billing.countCustomers()
|
|
109
118
|
*/
|
|
110
|
-
countCustomers(request?: Schematic.CountCustomersRequest, requestOptions?: Billing.RequestOptions):
|
|
119
|
+
countCustomers(request?: Schematic.CountCustomersRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.CountCustomersResponse>;
|
|
120
|
+
private __countCustomers;
|
|
111
121
|
/**
|
|
112
122
|
* @param {Schematic.ListInvoicesRequest} request
|
|
113
123
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -115,6 +125,7 @@ export declare class Billing {
|
|
|
115
125
|
* @throws {@link Schematic.BadRequestError}
|
|
116
126
|
* @throws {@link Schematic.UnauthorizedError}
|
|
117
127
|
* @throws {@link Schematic.ForbiddenError}
|
|
128
|
+
* @throws {@link Schematic.NotFoundError}
|
|
118
129
|
* @throws {@link Schematic.InternalServerError}
|
|
119
130
|
*
|
|
120
131
|
* @example
|
|
@@ -122,7 +133,8 @@ export declare class Billing {
|
|
|
122
133
|
* customerExternalId: "customer_external_id"
|
|
123
134
|
* })
|
|
124
135
|
*/
|
|
125
|
-
listInvoices(request: Schematic.ListInvoicesRequest, requestOptions?: Billing.RequestOptions):
|
|
136
|
+
listInvoices(request: Schematic.ListInvoicesRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListInvoicesResponse>;
|
|
137
|
+
private __listInvoices;
|
|
126
138
|
/**
|
|
127
139
|
* @param {Schematic.CreateInvoiceRequestBody} request
|
|
128
140
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -130,6 +142,7 @@ export declare class Billing {
|
|
|
130
142
|
* @throws {@link Schematic.BadRequestError}
|
|
131
143
|
* @throws {@link Schematic.UnauthorizedError}
|
|
132
144
|
* @throws {@link Schematic.ForbiddenError}
|
|
145
|
+
* @throws {@link Schematic.NotFoundError}
|
|
133
146
|
* @throws {@link Schematic.InternalServerError}
|
|
134
147
|
*
|
|
135
148
|
* @example
|
|
@@ -143,7 +156,8 @@ export declare class Billing {
|
|
|
143
156
|
* subtotal: 1
|
|
144
157
|
* })
|
|
145
158
|
*/
|
|
146
|
-
upsertInvoice(request: Schematic.CreateInvoiceRequestBody, requestOptions?: Billing.RequestOptions):
|
|
159
|
+
upsertInvoice(request: Schematic.CreateInvoiceRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertInvoiceResponse>;
|
|
160
|
+
private __upsertInvoice;
|
|
147
161
|
/**
|
|
148
162
|
* @param {Schematic.ListMetersRequest} request
|
|
149
163
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -151,12 +165,14 @@ export declare class Billing {
|
|
|
151
165
|
* @throws {@link Schematic.BadRequestError}
|
|
152
166
|
* @throws {@link Schematic.UnauthorizedError}
|
|
153
167
|
* @throws {@link Schematic.ForbiddenError}
|
|
168
|
+
* @throws {@link Schematic.NotFoundError}
|
|
154
169
|
* @throws {@link Schematic.InternalServerError}
|
|
155
170
|
*
|
|
156
171
|
* @example
|
|
157
172
|
* await client.billing.listMeters()
|
|
158
173
|
*/
|
|
159
|
-
listMeters(request?: Schematic.ListMetersRequest, requestOptions?: Billing.RequestOptions):
|
|
174
|
+
listMeters(request?: Schematic.ListMetersRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListMetersResponse>;
|
|
175
|
+
private __listMeters;
|
|
160
176
|
/**
|
|
161
177
|
* @param {Schematic.CreateMeterRequestBody} request
|
|
162
178
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -164,6 +180,7 @@ export declare class Billing {
|
|
|
164
180
|
* @throws {@link Schematic.BadRequestError}
|
|
165
181
|
* @throws {@link Schematic.UnauthorizedError}
|
|
166
182
|
* @throws {@link Schematic.ForbiddenError}
|
|
183
|
+
* @throws {@link Schematic.NotFoundError}
|
|
167
184
|
* @throws {@link Schematic.InternalServerError}
|
|
168
185
|
*
|
|
169
186
|
* @example
|
|
@@ -174,7 +191,8 @@ export declare class Billing {
|
|
|
174
191
|
* externalId: "external_id"
|
|
175
192
|
* })
|
|
176
193
|
*/
|
|
177
|
-
upsertBillingMeter(request: Schematic.CreateMeterRequestBody, requestOptions?: Billing.RequestOptions):
|
|
194
|
+
upsertBillingMeter(request: Schematic.CreateMeterRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingMeterResponse>;
|
|
195
|
+
private __upsertBillingMeter;
|
|
178
196
|
/**
|
|
179
197
|
* @param {Schematic.ListPaymentMethodsRequest} request
|
|
180
198
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -182,6 +200,7 @@ export declare class Billing {
|
|
|
182
200
|
* @throws {@link Schematic.BadRequestError}
|
|
183
201
|
* @throws {@link Schematic.UnauthorizedError}
|
|
184
202
|
* @throws {@link Schematic.ForbiddenError}
|
|
203
|
+
* @throws {@link Schematic.NotFoundError}
|
|
185
204
|
* @throws {@link Schematic.InternalServerError}
|
|
186
205
|
*
|
|
187
206
|
* @example
|
|
@@ -189,7 +208,8 @@ export declare class Billing {
|
|
|
189
208
|
* customerExternalId: "customer_external_id"
|
|
190
209
|
* })
|
|
191
210
|
*/
|
|
192
|
-
listPaymentMethods(request: Schematic.ListPaymentMethodsRequest, requestOptions?: Billing.RequestOptions):
|
|
211
|
+
listPaymentMethods(request: Schematic.ListPaymentMethodsRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListPaymentMethodsResponse>;
|
|
212
|
+
private __listPaymentMethods;
|
|
193
213
|
/**
|
|
194
214
|
* @param {Schematic.CreatePaymentMethodRequestBody} request
|
|
195
215
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -197,6 +217,7 @@ export declare class Billing {
|
|
|
197
217
|
* @throws {@link Schematic.BadRequestError}
|
|
198
218
|
* @throws {@link Schematic.UnauthorizedError}
|
|
199
219
|
* @throws {@link Schematic.ForbiddenError}
|
|
220
|
+
* @throws {@link Schematic.NotFoundError}
|
|
200
221
|
* @throws {@link Schematic.InternalServerError}
|
|
201
222
|
*
|
|
202
223
|
* @example
|
|
@@ -206,7 +227,8 @@ export declare class Billing {
|
|
|
206
227
|
* paymentMethodType: "payment_method_type"
|
|
207
228
|
* })
|
|
208
229
|
*/
|
|
209
|
-
upsertPaymentMethod(request: Schematic.CreatePaymentMethodRequestBody, requestOptions?: Billing.RequestOptions):
|
|
230
|
+
upsertPaymentMethod(request: Schematic.CreatePaymentMethodRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertPaymentMethodResponse>;
|
|
231
|
+
private __upsertPaymentMethod;
|
|
210
232
|
/**
|
|
211
233
|
* @param {Schematic.SearchBillingPricesRequest} request
|
|
212
234
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -214,12 +236,14 @@ export declare class Billing {
|
|
|
214
236
|
* @throws {@link Schematic.BadRequestError}
|
|
215
237
|
* @throws {@link Schematic.UnauthorizedError}
|
|
216
238
|
* @throws {@link Schematic.ForbiddenError}
|
|
239
|
+
* @throws {@link Schematic.NotFoundError}
|
|
217
240
|
* @throws {@link Schematic.InternalServerError}
|
|
218
241
|
*
|
|
219
242
|
* @example
|
|
220
243
|
* await client.billing.searchBillingPrices()
|
|
221
244
|
*/
|
|
222
|
-
searchBillingPrices(request?: Schematic.SearchBillingPricesRequest, requestOptions?: Billing.RequestOptions):
|
|
245
|
+
searchBillingPrices(request?: Schematic.SearchBillingPricesRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.SearchBillingPricesResponse>;
|
|
246
|
+
private __searchBillingPrices;
|
|
223
247
|
/**
|
|
224
248
|
* @param {Schematic.CreateBillingPriceRequestBody} request
|
|
225
249
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -227,10 +251,12 @@ export declare class Billing {
|
|
|
227
251
|
* @throws {@link Schematic.BadRequestError}
|
|
228
252
|
* @throws {@link Schematic.UnauthorizedError}
|
|
229
253
|
* @throws {@link Schematic.ForbiddenError}
|
|
254
|
+
* @throws {@link Schematic.NotFoundError}
|
|
230
255
|
* @throws {@link Schematic.InternalServerError}
|
|
231
256
|
*
|
|
232
257
|
* @example
|
|
233
258
|
* await client.billing.upsertBillingPrice({
|
|
259
|
+
* billingScheme: "per_unit",
|
|
234
260
|
* currency: "currency",
|
|
235
261
|
* externalAccountId: "external_account_id",
|
|
236
262
|
* interval: "interval",
|
|
@@ -244,7 +270,8 @@ export declare class Billing {
|
|
|
244
270
|
* usageType: "licensed"
|
|
245
271
|
* })
|
|
246
272
|
*/
|
|
247
|
-
upsertBillingPrice(request: Schematic.CreateBillingPriceRequestBody, requestOptions?: Billing.RequestOptions):
|
|
273
|
+
upsertBillingPrice(request: Schematic.CreateBillingPriceRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingPriceResponse>;
|
|
274
|
+
private __upsertBillingPrice;
|
|
248
275
|
/**
|
|
249
276
|
* @param {string} billingId - billing_id
|
|
250
277
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -252,12 +279,14 @@ export declare class Billing {
|
|
|
252
279
|
* @throws {@link Schematic.BadRequestError}
|
|
253
280
|
* @throws {@link Schematic.UnauthorizedError}
|
|
254
281
|
* @throws {@link Schematic.ForbiddenError}
|
|
282
|
+
* @throws {@link Schematic.NotFoundError}
|
|
255
283
|
* @throws {@link Schematic.InternalServerError}
|
|
256
284
|
*
|
|
257
285
|
* @example
|
|
258
286
|
* await client.billing.deleteBillingProduct("billing_id")
|
|
259
287
|
*/
|
|
260
|
-
deleteBillingProduct(billingId: string, requestOptions?: Billing.RequestOptions):
|
|
288
|
+
deleteBillingProduct(billingId: string, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.DeleteBillingProductResponse>;
|
|
289
|
+
private __deleteBillingProduct;
|
|
261
290
|
/**
|
|
262
291
|
* @param {Schematic.ListProductPricesRequest} request
|
|
263
292
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -265,12 +294,14 @@ export declare class Billing {
|
|
|
265
294
|
* @throws {@link Schematic.BadRequestError}
|
|
266
295
|
* @throws {@link Schematic.UnauthorizedError}
|
|
267
296
|
* @throws {@link Schematic.ForbiddenError}
|
|
297
|
+
* @throws {@link Schematic.NotFoundError}
|
|
268
298
|
* @throws {@link Schematic.InternalServerError}
|
|
269
299
|
*
|
|
270
300
|
* @example
|
|
271
301
|
* await client.billing.listProductPrices()
|
|
272
302
|
*/
|
|
273
|
-
listProductPrices(request?: Schematic.ListProductPricesRequest, requestOptions?: Billing.RequestOptions):
|
|
303
|
+
listProductPrices(request?: Schematic.ListProductPricesRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListProductPricesResponse>;
|
|
304
|
+
private __listProductPrices;
|
|
274
305
|
/**
|
|
275
306
|
* @param {string} billingId - billing_id
|
|
276
307
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -278,12 +309,14 @@ export declare class Billing {
|
|
|
278
309
|
* @throws {@link Schematic.BadRequestError}
|
|
279
310
|
* @throws {@link Schematic.UnauthorizedError}
|
|
280
311
|
* @throws {@link Schematic.ForbiddenError}
|
|
312
|
+
* @throws {@link Schematic.NotFoundError}
|
|
281
313
|
* @throws {@link Schematic.InternalServerError}
|
|
282
314
|
*
|
|
283
315
|
* @example
|
|
284
316
|
* await client.billing.deleteProductPrice("billing_id")
|
|
285
317
|
*/
|
|
286
|
-
deleteProductPrice(billingId: string, requestOptions?: Billing.RequestOptions):
|
|
318
|
+
deleteProductPrice(billingId: string, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.DeleteProductPriceResponse>;
|
|
319
|
+
private __deleteProductPrice;
|
|
287
320
|
/**
|
|
288
321
|
* @param {Schematic.CreateBillingProductRequestBody} request
|
|
289
322
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -291,19 +324,18 @@ export declare class Billing {
|
|
|
291
324
|
* @throws {@link Schematic.BadRequestError}
|
|
292
325
|
* @throws {@link Schematic.UnauthorizedError}
|
|
293
326
|
* @throws {@link Schematic.ForbiddenError}
|
|
327
|
+
* @throws {@link Schematic.NotFoundError}
|
|
294
328
|
* @throws {@link Schematic.InternalServerError}
|
|
295
329
|
*
|
|
296
330
|
* @example
|
|
297
331
|
* await client.billing.upsertBillingProduct({
|
|
298
|
-
* active: true,
|
|
299
|
-
* currency: "currency",
|
|
300
332
|
* externalId: "external_id",
|
|
301
333
|
* name: "name",
|
|
302
|
-
* price: 1.1
|
|
303
|
-
* quantity: 1
|
|
334
|
+
* price: 1.1
|
|
304
335
|
* })
|
|
305
336
|
*/
|
|
306
|
-
upsertBillingProduct(request: Schematic.CreateBillingProductRequestBody, requestOptions?: Billing.RequestOptions):
|
|
337
|
+
upsertBillingProduct(request: Schematic.CreateBillingProductRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingProductResponse>;
|
|
338
|
+
private __upsertBillingProduct;
|
|
307
339
|
/**
|
|
308
340
|
* @param {Schematic.ListBillingProductsRequest} request
|
|
309
341
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -311,12 +343,14 @@ export declare class Billing {
|
|
|
311
343
|
* @throws {@link Schematic.BadRequestError}
|
|
312
344
|
* @throws {@link Schematic.UnauthorizedError}
|
|
313
345
|
* @throws {@link Schematic.ForbiddenError}
|
|
346
|
+
* @throws {@link Schematic.NotFoundError}
|
|
314
347
|
* @throws {@link Schematic.InternalServerError}
|
|
315
348
|
*
|
|
316
349
|
* @example
|
|
317
350
|
* await client.billing.listBillingProducts()
|
|
318
351
|
*/
|
|
319
|
-
listBillingProducts(request?: Schematic.ListBillingProductsRequest, requestOptions?: Billing.RequestOptions):
|
|
352
|
+
listBillingProducts(request?: Schematic.ListBillingProductsRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingProductsResponse>;
|
|
353
|
+
private __listBillingProducts;
|
|
320
354
|
/**
|
|
321
355
|
* @param {Schematic.CountBillingProductsRequest} request
|
|
322
356
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -324,12 +358,14 @@ export declare class Billing {
|
|
|
324
358
|
* @throws {@link Schematic.BadRequestError}
|
|
325
359
|
* @throws {@link Schematic.UnauthorizedError}
|
|
326
360
|
* @throws {@link Schematic.ForbiddenError}
|
|
361
|
+
* @throws {@link Schematic.NotFoundError}
|
|
327
362
|
* @throws {@link Schematic.InternalServerError}
|
|
328
363
|
*
|
|
329
364
|
* @example
|
|
330
365
|
* await client.billing.countBillingProducts()
|
|
331
366
|
*/
|
|
332
|
-
countBillingProducts(request?: Schematic.CountBillingProductsRequest, requestOptions?: Billing.RequestOptions):
|
|
367
|
+
countBillingProducts(request?: Schematic.CountBillingProductsRequest, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingProductsResponse>;
|
|
368
|
+
private __countBillingProducts;
|
|
333
369
|
/**
|
|
334
370
|
* @param {Schematic.CreateBillingSubscriptionsRequestBody} request
|
|
335
371
|
* @param {Billing.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -337,6 +373,7 @@ export declare class Billing {
|
|
|
337
373
|
* @throws {@link Schematic.BadRequestError}
|
|
338
374
|
* @throws {@link Schematic.UnauthorizedError}
|
|
339
375
|
* @throws {@link Schematic.ForbiddenError}
|
|
376
|
+
* @throws {@link Schematic.NotFoundError}
|
|
340
377
|
* @throws {@link Schematic.InternalServerError}
|
|
341
378
|
*
|
|
342
379
|
* @example
|
|
@@ -364,7 +401,8 @@ export declare class Billing {
|
|
|
364
401
|
* totalPrice: 1
|
|
365
402
|
* })
|
|
366
403
|
*/
|
|
367
|
-
upsertBillingSubscription(request: Schematic.CreateBillingSubscriptionsRequestBody, requestOptions?: Billing.RequestOptions):
|
|
404
|
+
upsertBillingSubscription(request: Schematic.CreateBillingSubscriptionsRequestBody, requestOptions?: Billing.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingSubscriptionResponse>;
|
|
405
|
+
private __upsertBillingSubscription;
|
|
368
406
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
369
407
|
"X-Schematic-Api-Key": string;
|
|
370
408
|
}>;
|