@openmeter/client 1.0.0-beta-02013cc147e9 → 1.0.0-beta-aab3e5b5c74e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/funcs/customers.d.ts +15 -1
- package/dist/funcs/customers.js +45 -0
- package/dist/index.d.ts +1 -1
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/operations/customers.d.ts +6 -1
- package/dist/models/schemas.d.ts +90 -32
- package/dist/models/schemas.js +62 -6
- package/dist/models/types.d.ts +33 -6
- package/dist/sdk/customers.d.ts +15 -1
- package/dist/sdk/customers.js +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -292,7 +292,8 @@ The full call path, HTTP route, and a short description are listed below.
|
|
|
292
292
|
| `client.customers.upsert` | `PUT /openmeter/customers/{customerId}` | Upsert customer |
|
|
293
293
|
| `client.customers.delete` | `DELETE /openmeter/customers/{customerId}` | Delete customer |
|
|
294
294
|
| `client.customers.billing.get` | `GET /openmeter/customers/{customerId}/billing` | Get customer billing data |
|
|
295
|
-
| `client.customers.billing.update` | `PUT /openmeter/customers/{customerId}/billing` | Update
|
|
295
|
+
| `client.customers.billing.update` | `PUT /openmeter/customers/{customerId}/billing` | Update billing data while preserving the current profile selection when billing_profile is omitted or null. Use the dedicated billing profile endpoint to remove the selection. |
|
|
296
|
+
| `client.customers.billing.updateProfile` | `PUT /openmeter/customers/{customerId}/billing/profile` | Set the customer's explicit billing profile selection. Omitting billing_profile or setting it to null removes the selection and uses the current namespace default. |
|
|
296
297
|
| `client.customers.billing.updateAppData` | `PUT /openmeter/customers/{customerId}/billing/app-data` | Update customer billing app data |
|
|
297
298
|
| `client.customers.billing.createStripeCheckoutSession` | `POST /openmeter/customers/{customerId}/billing/stripe/checkout-sessions` | Create a [Stripe Checkout Session](https://docs.stripe.com/payments/checkout) for the customer. Creates a Checkout Session for collecting payment method information from customers. The session operates in "setup" mode, which collects payment details without charging the customer immediately. The collected payment method can be used for future subscription billing. For hosted checkout sessions, redirect customers to the returned URL. For embedded sessions, use the client_secret to initialize Stripe.js in your application. |
|
|
298
299
|
| `client.customers.billing.createStripePortalSession` | `POST /openmeter/customers/{customerId}/billing/stripe/portal-sessions` | Create Stripe Customer Portal Session. Useful to redirect the customer to the Stripe Customer Portal to manage their payment methods, change their billing address and access their invoice history. Only returns URL if the customer billing profile is linked to a stripe app and customer. |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type Result, type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, OverrideCustomerEntitlementRequest, OverrideCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, CreateCustomerEntitlementGrantRequest, CreateCustomerEntitlementGrantResponse, ListCustomerEntitlementGrantsRequest, ListCustomerEntitlementGrantsResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
3
|
+
import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingProfileRequest, UpdateCustomerBillingProfileResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, OverrideCustomerEntitlementRequest, OverrideCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, CreateCustomerEntitlementGrantRequest, CreateCustomerEntitlementGrantResponse, ListCustomerEntitlementGrantsRequest, ListCustomerEntitlementGrantsResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
4
4
|
/**
|
|
5
5
|
* Create customer
|
|
6
6
|
*
|
|
@@ -40,9 +40,23 @@ export declare function getCustomerBilling(client: Client, req: GetCustomerBilli
|
|
|
40
40
|
/**
|
|
41
41
|
* Update customer billing data
|
|
42
42
|
*
|
|
43
|
+
* Update billing data while preserving the current profile selection when
|
|
44
|
+
* billing_profile is omitted or null. Use the dedicated billing profile endpoint
|
|
45
|
+
* to remove the selection.
|
|
46
|
+
*
|
|
43
47
|
* PUT /openmeter/customers/{customerId}/billing
|
|
44
48
|
*/
|
|
45
49
|
export declare function updateCustomerBilling(client: Client, req: UpdateCustomerBillingRequest, options?: RequestOptions): Promise<Result<UpdateCustomerBillingResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
* Update customer billing profile
|
|
52
|
+
*
|
|
53
|
+
* Set the customer's explicit billing profile selection. Omitting billing_profile
|
|
54
|
+
* or setting it to null removes the selection and uses the current namespace
|
|
55
|
+
* default.
|
|
56
|
+
*
|
|
57
|
+
* PUT /openmeter/customers/{customerId}/billing/profile
|
|
58
|
+
*/
|
|
59
|
+
export declare function updateCustomerBillingProfile(client: Client, req: UpdateCustomerBillingProfileRequest, options?: RequestOptions): Promise<Result<UpdateCustomerBillingProfileResponse>>;
|
|
46
60
|
/**
|
|
47
61
|
* Update customer billing app data
|
|
48
62
|
*
|
package/dist/funcs/customers.js
CHANGED
|
@@ -187,6 +187,10 @@ export function getCustomerBilling(client, req, options) {
|
|
|
187
187
|
/**
|
|
188
188
|
* Update customer billing data
|
|
189
189
|
*
|
|
190
|
+
* Update billing data while preserving the current profile selection when
|
|
191
|
+
* billing_profile is omitted or null. Use the dedicated billing profile endpoint
|
|
192
|
+
* to remove the selection.
|
|
193
|
+
*
|
|
190
194
|
* PUT /openmeter/customers/{customerId}/billing
|
|
191
195
|
*/
|
|
192
196
|
export function updateCustomerBilling(client, req, options) {
|
|
@@ -221,6 +225,47 @@ export function updateCustomerBilling(client, req, options) {
|
|
|
221
225
|
});
|
|
222
226
|
});
|
|
223
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* Update customer billing profile
|
|
230
|
+
*
|
|
231
|
+
* Set the customer's explicit billing profile selection. Omitting billing_profile
|
|
232
|
+
* or setting it to null removes the selection and uses the current namespace
|
|
233
|
+
* default.
|
|
234
|
+
*
|
|
235
|
+
* PUT /openmeter/customers/{customerId}/billing/profile
|
|
236
|
+
*/
|
|
237
|
+
export function updateCustomerBillingProfile(client, req, options) {
|
|
238
|
+
return request(() => {
|
|
239
|
+
const pathParamsInput = {
|
|
240
|
+
customerId: req.customerId,
|
|
241
|
+
};
|
|
242
|
+
const pathParams = client._options.validate
|
|
243
|
+
? toPathWire(pathParamsInput, schemas.updateCustomerBillingProfilePathParams)
|
|
244
|
+
: pathParamsInput;
|
|
245
|
+
if (client._options.validate) {
|
|
246
|
+
assertValid(schemas.updateCustomerBillingProfilePathParamsWire, pathParams);
|
|
247
|
+
}
|
|
248
|
+
const path = `openmeter/customers/${(() => {
|
|
249
|
+
if (pathParams.customerId === undefined) {
|
|
250
|
+
throw new Error('missing path parameter: customerId');
|
|
251
|
+
}
|
|
252
|
+
return encodeURIComponent(String(pathParams.customerId));
|
|
253
|
+
})()}/billing/profile`;
|
|
254
|
+
const body = toWire(req.body, schemas.updateCustomerBillingProfileBody);
|
|
255
|
+
if (client._options.validate) {
|
|
256
|
+
assertValid(schemas.updateCustomerBillingProfileBodyWire, body);
|
|
257
|
+
}
|
|
258
|
+
return http(client)
|
|
259
|
+
.put(path, { ...options, json: body })
|
|
260
|
+
.json()
|
|
261
|
+
.then((data) => {
|
|
262
|
+
if (client._options.validate) {
|
|
263
|
+
assertValid(schemas.updateCustomerBillingProfileResponseWire, data);
|
|
264
|
+
}
|
|
265
|
+
return fromWire(data, schemas.updateCustomerBillingProfileResponse);
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
}
|
|
224
269
|
/**
|
|
225
270
|
* Update customer billing app data
|
|
226
271
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -50,4 +50,4 @@ export type * from './models/operations/planAddons.js';
|
|
|
50
50
|
export type * from './models/operations/defaults.js';
|
|
51
51
|
export type * from './models/operations/entitlementAccess.js';
|
|
52
52
|
export type * from './models/operations/notifications.js';
|
|
53
|
-
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, NotificationChannelReference, NotificationEventFeatureReference, NotificationEventInvoiceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, UpdateBillingNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ResendBillingNotificationEventRequest, NotificationEventInvoiceData, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, NotificationEventDeliveryStatus, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, NotificationEventBalanceThresholdData, NotificationEventEntitlementData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEvent, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventPagePaginatedResponse, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventPayload, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
|
53
|
+
export type { Labels, CursorPaginationQueryPage, SortQuery, IngestedEventValidationError, CursorMetaPage, BaseError, PageMeta, QueryFilterString, AppStripeCheckoutSessionCustomTextParams, AppStripeCreateCustomerPortalSessionOptions, CreateLabels, CreateVersionFilter, VersionFilter, PriceFree, RateCardStaticEntitlement, RateCardBooleanEntitlement, TaxConfigStripe, TaxConfigExternalInvoicing, InvoiceExternalReferences, InvoiceAvailableActionDetails, InvoiceWorkflowInvoicingSettings, WorkflowPaymentChargeAutomaticallySettings, WorkflowPaymentSendInvoiceSettings, ChargeFlatFeeDiscounts, SubscriptionEditRemoveItem, SubscriptionEditUnscheduleEdit, UpdateLabels, AppReconcileWebhookEventsActionRequest, InstallAppStripeWithApiKey, InstallAppSandbox, InstallAppExternalInvoicing, WorkflowCollectionAlignmentSubscription, InvoiceLineExternalReferences, UpdateBillingInvoiceWorkflowInvoicingSettings, UpdateBillingWorkflowPaymentChargeAutomaticallySettings, UpdateBillingWorkflowPaymentSendInvoiceSettings, UpdatePriceFree, LlmCostProvider, LlmCostModel, ProductCatalogValidationError, EntitlementAccessQueryRequestCustomers, EntitlementAccessQueryRequestFeatures, NotificationEventDeliveryAttemptResponse, QueryFilterInteger, QueryFilterFloat, QueryFilterBoolean, PagePaginationQuery, PublicLabels, SystemAccountAccessToken, PersonalAccessToken, KonnectAccessToken, AppCustomerDataStripe, AppCustomerDataExternalInvoicing, CreateChargeCostBasisDynamic, ChargeCostBasisDynamic, CurrencyFiat, ListCostBasesParamsFilter, CreateCurrencyCustomRequest, EntitlementAccessValue, EntitlementIssueAfterReset, EntitlementBurndownBalance, EntitlementBurndownGrantBalances, CreateChargeCostBasisManual, ChargeCostBasisManual, PriceFlat, PriceUnit, SpendCommitments, RateCardDiscounts, Totals, ChargeRealizationDetailedLineCreditApplied, ChargeRealizationAmountDiscount, FeatureManualUnitCost, FeatureLlmUnitCostPricing, InvoiceLineCreditsApplied, InvoiceUsageQuantityDetail, UpdatePriceFlat, UpdatePriceUnit, UpdateDiscounts, LlmCostModelPricing, FiatCurrencyAmount, QueryFilterNumeric, CursorPaginationQuery, ListMetersParamsFilter, ListLlmCostPricesParamsFilter, LabelsFieldFilter, CustomerReference, ProfileReference, FeatureReference, EntitlementGrantUsage, CreateChargeCostBasisPinned, CreateResourceReference, CurrencyCustomReference, ChargeCostBasisPinned, TaxCodeReference, CreditGrantInvoiceReference, SubscriptionCostBasisPin, SubscriptionReference, AppReference, ChargeRealizationInvoiceReference, AddonReference, ChargeReference, UpdateResourceReference, NotificationChannelReference, NotificationEventFeatureReference, NotificationEventInvoiceReference, BillingCustomerReference, ChargeFeature, Event, MeterQueryRow, AppStripeCreateCustomerPortalSessionResult, ClosedPeriod, ChargeResolvedCostBasis, SubscriptionAddonTimelineSegment, UpdateClosedPeriod, CostBasis, FeatureCostQueryRow, Resource, ResourceImmutable, QueryFilterDateTime, CursorMeta, InvalidParameterStandard, InvalidParameterMinimumLength, InvalidParameterMaximumLength, InvalidParameterChoiceItem, InvalidParameterDependentItem, Unauthorized, Forbidden, NotFound, Gone, Conflict, PayloadTooLarge, UnsupportedMediaType, UnprocessableContent, TooManyRequests, Internal, NotImplemented, NotAvailable, SubscriptionPlanReference, UpsertPlanAddonRequest, ResourceWithKey, Meter, PaginatedMeta, QueryFilterStringMapItem, CustomerKeyReference, CustomerUsageAttribution, UpdateCustomerUsageAttribution, Address, UpdateAddress, AppStripeCreateCheckoutSessionCustomerUpdate, AppStripeCreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement, AppStripeCreateCheckoutSessionTaxIdCollection, AppStripeCreateCheckoutSessionResult, CustomerStripeCreateCustomerPortalSessionRequest, EntitlementAccessCheckResult, RecurringPeriodInput, RecurringPeriod, RateCardMeteredEntitlement, SubscriptionPhaseCreate, SubscriptionEditStretchPhase, GetCreditBalanceParamsFilter, ListPlansParamsFilter, CreateCreditGrantPlanFilter, CreditGrantPlanFilter, ValidationIssue, SubscriptionProRatingConfig, RateCardProrationConfiguration, UnitConfig, PartyTaxIdentity, UpdateBillingPartyTaxIdentity, InvoiceAvailableActions, ChargeRealizationPayment, SubscriptionEditRemovePhase, TaxCodeAppMapping, AppCapability, AppAction, UpdateAppStripeRequest, UpdateAppSandboxRequest, UpdateAppExternalInvoicingRequest, WorkflowInvoicingSettings, InvoiceLineAmountDiscount, InvoiceLineUsageDiscount, InvoiceLineBaseDiscount, ListCurrenciesParamsFilter, EntitlementAccessQueryRequest, EntitlementFeatureAccessReason, EntitlementAccessQueryError, NotificationChannel, UpdateBillingNotificationChannelRequest, NotificationBalanceThreshold, NotificationRuleReference, NotificationEventDeliveryAttempt, AppCustomerData, UpsertAppCustomerDataRequest, CreditAdjustment, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, CurrencyAmount, EntitlementValueResult, EntitlementFeatureValueResult, PriceTier, ChargeTotals, FeatureLlmUnitCost, UpdatePriceTier, LlmCostPrice, LlmCostOverrideCreate, ListCustomersParamsFilter, ListCustomerEntitlementsParamsFilter, ListEntitlementsParamsFilter, ListGrantsParamsFilter, ListSubscriptionsParamsFilter, ListAppsParamsFilter, ListBillingProfilesParamsFilter, ListFeatureParamsFilter, ListAddonsParamsFilter, ListPlanAddonsParamsFilter, UpsertCustomerBillingProfileRequest, CustomerProfile, CreateTaxCodeConfig, CreditBalance, CreditTransaction, TaxCodeConfig, TaxConfig, OrganizationDefaultTaxCodes, InvoiceWorkflowAppsReferences, ProfileAppReferences, PlanAddon, UpdateTaxCodeConfig, NotificationRuleEntitlementReset, NotificationRuleInvoiceCreated, NotificationRuleInvoiceUpdated, NotificationRuleEntitlementResetRequest, NotificationRuleInvoiceCreatedRequest, NotificationRuleInvoiceUpdatedRequest, ResendBillingNotificationEventRequest, NotificationEventInvoiceData, ListEventsParamsFilter, ListCustomerChargesParamsFilter, ListInvoicesParamsFilter, ListChargesParamsFilter, ListNotificationChannelsParamsFilter, ListNotificationRulesParamsFilter, ListNotificationEventsParamsFilter, ResourceFilters, FieldFilters, IngestedEvent, MeterQueryResult, EntitlementHistoryWindow, EntitlementBurndownSegment, ChargeRealizationDetailedLineFlatFee, ChargeRealizationDetailedLineUsageBased, CurrencyCustom, FeatureCostQueryResult, MeterPagePaginatedResponse, CostBasisPagePaginatedResponse, MeterQueryFilters, FeatureMeterReference, Customer, PartyAddresses, InvoiceCustomer, UpdateBillingPartyAddresses, UpdateInvoiceCustomer, AppStripeCreateCheckoutSessionConsentCollection, EntitlementGrantCreateRequest, CreateEntitlementStaticRequest, CreateEntitlementBooleanRequest, EntitlementMetered, EntitlementStatic, EntitlementBoolean, EntitlementGrant, WorkflowCollectionAlignmentAnchored, SubscriptionEditAddPhase, CreateCreditGrantFilters, CreditGrantFilters, SubscriptionBase, InvoiceStatusDetails, InvoiceWorkflow, SubscriptionCancel, SubscriptionMigrate, SubscriptionAddonUpdate, TaxCode, AppCatalogItem, InvoiceLineDiscounts, UpdateBillingInvoiceWorkflow, EntitlementFeatureAccess, NotificationChannelPagePaginatedResponse, NotificationRuleBalanceThreshold, NotificationRuleBalanceThresholdRequest, NotificationEventDeliveryStatus, CustomerData, UpsertCustomerBillingDataRequest, ChargeFlatFeeSystemIntent, ListCustomerEntitlementAccessResponseData, NotificationEventBalanceThresholdData, NotificationEventEntitlementData, PriceGraduated, PriceVolume, UpdatePriceGraduated, UpdatePriceVolume, PricePagePaginatedResponse, CreateCreditGrantPurchase, CreditBalances, CreditTransactionPaginatedResponse, CreditGrantPurchase, CreateChargeFlatFeeRequest, WorkflowTaxSettings, PlanAddonPagePaginatedResponse, NotificationEventInvoiceCreatedPayload, NotificationEventInvoiceUpdatedPayload, IngestedEventPaginatedResponse, EntitlementHistory, InvalidParameters, MeterQueryRequest, CustomerPagePaginatedResponse, Supplier, Party, UpdateSupplier, AppStripeCreateCheckoutSessionRequestOptions, CreateEntitlementMeteredRequest, EntitlementGrantPagePaginatedResponse, InvoiceWorkflowSettings, TaxCodePagePaginatedResponse, AppStripe, AppSandbox, AppExternalInvoicing, AppCatalogItemPagePaginatedResponse, InstalledAppStripe, InstalledAppSandbox, InstalledAppExternalInvoicing, InvoiceDetailedLine, UpdateInvoiceWorkflowSettings, EntitlementAccessQueryResult, NotificationEventBalanceThresholdPayload, NotificationEventResetPayload, Feature, CreditGrant, CurrencyPagePaginatedResponse, BadRequest, InvoiceBase, CustomerStripeCreateCheckoutSessionRequest, EntitlementPagePaginatedResponse, WorkflowCollectionSettings, ChargeRealizationInvoice, EntitlementAccessQueryResponse, NotificationRulePagePaginatedResponse, RateCard, InvoiceLineRateCard, ChargeUsageBasedSystemIntent, CreateChargeUsageBasedRequest, FeaturePagePaginatedResponse, UpdateInvoiceLineRateCard, CreditGrantPagePaginatedResponse, Workflow, AppPagePaginatedResponse, ProfileApps, NotificationEvent, SubscriptionItem, PlanPhase, SubscriptionEditAddItem, SubscriptionAddonRateCard, Addon, UpsertAddonRequest, InvoiceStandardLine, UpdateInvoiceStandardLine, Profile, UpsertBillingProfileRequest, ChargeRealization, NotificationEventPagePaginatedResponse, SubscriptionPhase, SubscriptionCustomPlan, Plan, UpsertPlanRequest, SubscriptionAddon, AddonPagePaginatedResponse, ProfilePagePaginatedResponse, Subscription, SubscriptionCreate, SubscriptionChange, PlanPagePaginatedResponse, SubscriptionEdit, SubscriptionAddonPagePaginatedResponse, InvoiceStandard, UpdateInvoiceStandardRequest, SubscriptionPagePaginatedResponse, SubscriptionChangeResponse, SubscriptionMigrateResponse, ChargeFlatFee, ChargeUsageBased, InvoicePagePaginatedResponse, ChargePagePaginatedResponse, StringFieldFilter, MeterAggregation, MeterQueryGranularity, EntitlementHistoryWindowSize, StringFieldFilterExact, PricePaymentTerm, BooleanFieldFilter, BillingCurrencyCode, CreateCurrencyCode, UlidFieldFilter, DateTimeFieldFilter, EntitlementMeasureUsageFrom, WorkflowPaymentSettings, SubscriptionCreateTiming, SubscriptionEditTiming, AppActionRequest, UpdateBillingWorkflowPaymentSettings, CreateChargeCostBasis, ChargeCostBasis, InvalidParameter, RateCardEntitlement, FeatureUnitCost, ChargeRealizationDetailedLine, Currency, CustomerOrReference, Entitlement, WorkflowCollectionAlignment, NotificationRule, NotificationRuleRequest, Price, PriceUsageBased, UpdatePrice, CreateEntitlementRequest, App, BillingInstallAppResponse, NotificationEventPayload, FeatureOrReference, ChargeRealizationInvoiceOrReference, CreateChargeRequest, SubscriptionEditOperation, InvoiceLine, UpdateInvoiceLine, SubscriptionOrReference, Invoice, Charge, SortQueryInput, BaseErrorInput, InvoiceWorkflowInvoicingSettingsInput, WorkflowPaymentSendInvoiceSettingsInput, UpdateBillingInvoiceWorkflowInvoicingSettingsInput, UpdateBillingWorkflowPaymentSendInvoiceSettingsInput, EntitlementIssueAfterResetInput, EventInput, ResetCustomerEntitlementUsageRequestInput, UnauthorizedInput, ForbiddenInput, NotFoundInput, GoneInput, ConflictInput, PayloadTooLargeInput, UnsupportedMediaTypeInput, UnprocessableContentInput, TooManyRequestsInput, InternalInput, NotImplementedInput, NotAvailableInput, AppStripeCreateCheckoutSessionCustomerUpdateInput, AppStripeCreateCheckoutSessionTaxIdCollectionInput, RateCardMeteredEntitlementInput, VoidCreditGrantRequestInput, UnitConfigInput, WorkflowInvoicingSettingsInput, EntitlementAccessQueryRequestInput, NotificationChannelInput, CreateNotificationChannelRequestInput, UpdateBillingNotificationChannelRequestInput, NotificationRuleEntitlementResetInput, NotificationRuleInvoiceCreatedInput, NotificationRuleInvoiceUpdatedInput, NotificationRuleEntitlementResetRequestInput, NotificationRuleInvoiceCreatedRequestInput, NotificationRuleInvoiceUpdatedRequestInput, IngestedEventInput, EntitlementMeteredInput, SubscriptionBaseInput, InvoiceWorkflowInput, SubscriptionCancelInput, SubscriptionMigrateInput, UpdateBillingInvoiceWorkflowInput, NotificationChannelPagePaginatedResponseInput, NotificationRuleBalanceThresholdInput, NotificationRuleBalanceThresholdRequestInput, CreateCreditGrantPurchaseInput, CreditGrantPurchaseInput, WorkflowTaxSettingsInput, IngestedEventPaginatedResponseInput, MeterQueryRequestInput, AppStripeCreateCheckoutSessionRequestOptionsInput, CreateEntitlementMeteredRequestInput, InvoiceWorkflowSettingsInput, InvoiceDetailedLineInput, UpdateInvoiceWorkflowSettingsInput, CreateCreditGrantRequestInput, CreditGrantInput, BadRequestInput, CustomerStripeCreateCheckoutSessionRequestInput, EntitlementPagePaginatedResponseInput, WorkflowCollectionSettingsInput, ChargeRealizationInvoiceInput, NotificationRulePagePaginatedResponseInput, RateCardInput, InvoiceLineRateCardInput, ChargeUsageBasedSystemIntentInput, CreateChargeUsageBasedRequestInput, CreditGrantPagePaginatedResponseInput, WorkflowInput, SubscriptionItemInput, PlanPhaseInput, SubscriptionEditAddItemInput, SubscriptionAddonRateCardInput, AddonInput, CreateAddonRequestInput, UpsertAddonRequestInput, InvoiceStandardLineInput, ProfileInput, CreateBillingProfileRequestInput, UpsertBillingProfileRequestInput, ChargeRealizationInput, SubscriptionPhaseInput, SubscriptionCustomPlanInput, PlanInput, CreatePlanRequestInput, UpsertPlanRequestInput, SubscriptionAddonInput, AddonPagePaginatedResponseInput, ProfilePagePaginatedResponseInput, SubscriptionInput, SubscriptionCreateInput, SubscriptionChangeInput, PlanPagePaginatedResponseInput, SubscriptionEditInput, SubscriptionAddonPagePaginatedResponseInput, InvoiceStandardInput, UpdateInvoiceStandardRequestInput, SubscriptionPagePaginatedResponseInput, SubscriptionChangeResponseInput, SubscriptionMigrateResponseInput, ChargeFlatFeeInput, ChargeUsageBasedInput, InvoicePagePaginatedResponseInput, ChargePagePaginatedResponseInput, WorkflowPaymentSettingsInput, UpdateBillingWorkflowPaymentSettingsInput, RateCardEntitlementInput, EntitlementInput, NotificationRuleInput, NotificationRuleRequestInput, CreateEntitlementRequestInput, ChargeRealizationInvoiceOrReferenceInput, CreateChargeRequestInput, SubscriptionEditOperationInput, InvoiceLineInput, SubscriptionOrReferenceInput, InvoiceInput, UpdateInvoiceRequestInput, ChargeInput, } from './models/types.js';
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-aab3e5b5c74e";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = '1.0.0-beta-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-aab3e5b5c74e';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AcceptDateStrings } from '../../lib/wire.js';
|
|
2
|
-
import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreateEntitlementRequestInput, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, Entitlement, EntitlementGrant, EntitlementGrantCreateRequest, EntitlementGrantPagePaginatedResponse, EntitlementHistory, EntitlementHistoryWindowSize, EntitlementPagePaginatedResponse, GetCreditBalanceParamsFilter, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomerEntitlementsParamsFilter, ListCustomersParamsFilter, ResetCustomerEntitlementUsageRequestInput, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
|
|
2
|
+
import type { AppCustomerData, AppStripeCreateCheckoutSessionResult, AppStripeCreateCustomerPortalSessionResult, Charge, ChargePagePaginatedResponse, CreateChargeRequestInput, CreateCreditAdjustmentRequest as CreateCreditAdjustmentRequestBody, CreateCreditGrantRequestInput, CreateCustomerRequest as CreateCustomerRequestBody, CreateEntitlementRequestInput, CreditAdjustment, CreditBalances, CreditGrant, CreditGrantPagePaginatedResponse, CreditTransactionPaginatedResponse, CursorPaginationQueryPage, Customer, CustomerData, CustomerPagePaginatedResponse, CustomerProfile, CustomerStripeCreateCheckoutSessionRequestInput, CustomerStripeCreateCustomerPortalSessionRequest, Entitlement, EntitlementGrant, EntitlementGrantCreateRequest, EntitlementGrantPagePaginatedResponse, EntitlementHistory, EntitlementHistoryWindowSize, EntitlementPagePaginatedResponse, GetCreditBalanceParamsFilter, ListCreditGrantsParamsFilter, ListCreditTransactionsParamsFilter, ListCustomerChargesParamsFilter, ListCustomerEntitlementsParamsFilter, ListCustomersParamsFilter, ResetCustomerEntitlementUsageRequestInput, SortQueryInput, UpdateCreditGrantExternalSettlementRequest as UpdateCreditGrantExternalSettlementRequestBody, UpsertAppCustomerDataRequest, UpsertCustomerBillingDataRequest, UpsertCustomerBillingProfileRequest, UpsertCustomerRequest as UpsertCustomerRequestBody, VoidCreditGrantRequestInput } from '../types.js';
|
|
3
3
|
export type CreateCustomerRequest = AcceptDateStrings<CreateCustomerRequestBody>;
|
|
4
4
|
export type CreateCustomerResponse = Customer;
|
|
5
5
|
export type GetCustomerRequest = {
|
|
@@ -50,6 +50,11 @@ export type UpdateCustomerBillingRequest = AcceptDateStrings<{
|
|
|
50
50
|
body: UpsertCustomerBillingDataRequest;
|
|
51
51
|
}>;
|
|
52
52
|
export type UpdateCustomerBillingResponse = CustomerData;
|
|
53
|
+
export type UpdateCustomerBillingProfileRequest = AcceptDateStrings<{
|
|
54
|
+
customerId: string;
|
|
55
|
+
body: UpsertCustomerBillingProfileRequest;
|
|
56
|
+
}>;
|
|
57
|
+
export type UpdateCustomerBillingProfileResponse = CustomerProfile;
|
|
53
58
|
export type UpdateCustomerBillingAppDataRequest = AcceptDateStrings<{
|
|
54
59
|
customerId: string;
|
|
55
60
|
body: UpsertAppCustomerDataRequest;
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -2438,6 +2438,19 @@ export declare const listPlanAddonsParamsFilter: z.ZodObject<{
|
|
|
2438
2438
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
2439
2439
|
}, z.core.$strip>]>>;
|
|
2440
2440
|
}, z.core.$strip>;
|
|
2441
|
+
export declare const upsertCustomerBillingProfileRequest: z.ZodObject<{
|
|
2442
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2443
|
+
id: z.ZodString;
|
|
2444
|
+
}, z.core.$strip>>>;
|
|
2445
|
+
}, z.core.$strip>;
|
|
2446
|
+
export declare const customerProfile: z.ZodObject<{
|
|
2447
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2448
|
+
id: z.ZodString;
|
|
2449
|
+
}, z.core.$strip>>>;
|
|
2450
|
+
effectiveBillingProfile: z.ZodObject<{
|
|
2451
|
+
id: z.ZodString;
|
|
2452
|
+
}, z.core.$strip>;
|
|
2453
|
+
}, z.core.$strip>;
|
|
2441
2454
|
export declare const createChargeCostBasis: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2442
2455
|
type: z.ZodLiteral<"dynamic">;
|
|
2443
2456
|
fiatCurrency: z.ZodString;
|
|
@@ -4156,9 +4169,12 @@ export declare const notificationEventDeliveryStatus: z.ZodObject<{
|
|
|
4156
4169
|
}, z.core.$strip>>;
|
|
4157
4170
|
}, z.core.$strip>;
|
|
4158
4171
|
export declare const customerData: z.ZodObject<{
|
|
4159
|
-
billingProfile: z.ZodOptional<z.ZodObject<{
|
|
4172
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4160
4173
|
id: z.ZodString;
|
|
4161
|
-
}, z.core.$strip
|
|
4174
|
+
}, z.core.$strip>>>;
|
|
4175
|
+
effectiveBillingProfile: z.ZodObject<{
|
|
4176
|
+
id: z.ZodString;
|
|
4177
|
+
}, z.core.$strip>;
|
|
4162
4178
|
appData: z.ZodOptional<z.ZodObject<{
|
|
4163
4179
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4164
4180
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -4169,14 +4185,11 @@ export declare const customerData: z.ZodObject<{
|
|
|
4169
4185
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4170
4186
|
}, z.core.$strip>>>;
|
|
4171
4187
|
}, z.core.$strip>>;
|
|
4172
|
-
effectiveBillingProfile: z.ZodObject<{
|
|
4173
|
-
id: z.ZodString;
|
|
4174
|
-
}, z.core.$strip>;
|
|
4175
4188
|
}, z.core.$strip>;
|
|
4176
4189
|
export declare const upsertCustomerBillingDataRequest: z.ZodObject<{
|
|
4177
|
-
billingProfile: z.ZodOptional<z.ZodObject<{
|
|
4190
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4178
4191
|
id: z.ZodString;
|
|
4179
|
-
}, z.core.$strip
|
|
4192
|
+
}, z.core.$strip>>>;
|
|
4180
4193
|
appData: z.ZodOptional<z.ZodObject<{
|
|
4181
4194
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4182
4195
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -19670,9 +19683,12 @@ export declare const getCustomerBillingPathParams: z.ZodObject<{
|
|
|
19670
19683
|
customerId: z.ZodString;
|
|
19671
19684
|
}, z.core.$strip>;
|
|
19672
19685
|
export declare const getCustomerBillingResponse: z.ZodObject<{
|
|
19673
|
-
billingProfile: z.ZodOptional<z.ZodObject<{
|
|
19686
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19674
19687
|
id: z.ZodString;
|
|
19675
|
-
}, z.core.$strip
|
|
19688
|
+
}, z.core.$strip>>>;
|
|
19689
|
+
effectiveBillingProfile: z.ZodObject<{
|
|
19690
|
+
id: z.ZodString;
|
|
19691
|
+
}, z.core.$strip>;
|
|
19676
19692
|
appData: z.ZodOptional<z.ZodObject<{
|
|
19677
19693
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19678
19694
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -19683,17 +19699,14 @@ export declare const getCustomerBillingResponse: z.ZodObject<{
|
|
|
19683
19699
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19684
19700
|
}, z.core.$strip>>>;
|
|
19685
19701
|
}, z.core.$strip>>;
|
|
19686
|
-
effectiveBillingProfile: z.ZodObject<{
|
|
19687
|
-
id: z.ZodString;
|
|
19688
|
-
}, z.core.$strip>;
|
|
19689
19702
|
}, z.core.$strip>;
|
|
19690
19703
|
export declare const updateCustomerBillingPathParams: z.ZodObject<{
|
|
19691
19704
|
customerId: z.ZodString;
|
|
19692
19705
|
}, z.core.$strip>;
|
|
19693
19706
|
export declare const updateCustomerBillingBody: z.ZodObject<{
|
|
19694
|
-
billingProfile: z.ZodOptional<z.ZodObject<{
|
|
19707
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19695
19708
|
id: z.ZodString;
|
|
19696
|
-
}, z.core.$strip
|
|
19709
|
+
}, z.core.$strip>>>;
|
|
19697
19710
|
appData: z.ZodOptional<z.ZodObject<{
|
|
19698
19711
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19699
19712
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -19706,9 +19719,12 @@ export declare const updateCustomerBillingBody: z.ZodObject<{
|
|
|
19706
19719
|
}, z.core.$strip>>;
|
|
19707
19720
|
}, z.core.$strip>;
|
|
19708
19721
|
export declare const updateCustomerBillingResponse: z.ZodObject<{
|
|
19709
|
-
billingProfile: z.ZodOptional<z.ZodObject<{
|
|
19722
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19710
19723
|
id: z.ZodString;
|
|
19711
|
-
}, z.core.$strip
|
|
19724
|
+
}, z.core.$strip>>>;
|
|
19725
|
+
effectiveBillingProfile: z.ZodObject<{
|
|
19726
|
+
id: z.ZodString;
|
|
19727
|
+
}, z.core.$strip>;
|
|
19712
19728
|
appData: z.ZodOptional<z.ZodObject<{
|
|
19713
19729
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19714
19730
|
customerId: z.ZodOptional<z.ZodString>;
|
|
@@ -19719,6 +19735,19 @@ export declare const updateCustomerBillingResponse: z.ZodObject<{
|
|
|
19719
19735
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
19720
19736
|
}, z.core.$strip>>>;
|
|
19721
19737
|
}, z.core.$strip>>;
|
|
19738
|
+
}, z.core.$strip>;
|
|
19739
|
+
export declare const updateCustomerBillingProfilePathParams: z.ZodObject<{
|
|
19740
|
+
customerId: z.ZodString;
|
|
19741
|
+
}, z.core.$strip>;
|
|
19742
|
+
export declare const updateCustomerBillingProfileBody: z.ZodObject<{
|
|
19743
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19744
|
+
id: z.ZodString;
|
|
19745
|
+
}, z.core.$strip>>>;
|
|
19746
|
+
}, z.core.$strip>;
|
|
19747
|
+
export declare const updateCustomerBillingProfileResponse: z.ZodObject<{
|
|
19748
|
+
billingProfile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19749
|
+
id: z.ZodString;
|
|
19750
|
+
}, z.core.$strip>>>;
|
|
19722
19751
|
effectiveBillingProfile: z.ZodObject<{
|
|
19723
19752
|
id: z.ZodString;
|
|
19724
19753
|
}, z.core.$strip>;
|
|
@@ -39538,6 +39567,19 @@ export declare const listPlanAddonsParamsFilterWire: z.ZodObject<{
|
|
|
39538
39567
|
exists: z.ZodOptional<z.ZodBoolean>;
|
|
39539
39568
|
}, z.core.$strict>]>>;
|
|
39540
39569
|
}, z.core.$strict>;
|
|
39570
|
+
export declare const upsertCustomerBillingProfileRequestWire: z.ZodObject<{
|
|
39571
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39572
|
+
id: z.ZodString;
|
|
39573
|
+
}, z.core.$strict>>>;
|
|
39574
|
+
}, z.core.$strict>;
|
|
39575
|
+
export declare const customerProfileWire: z.ZodObject<{
|
|
39576
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
39577
|
+
id: z.ZodString;
|
|
39578
|
+
}, z.core.$strict>>>;
|
|
39579
|
+
effective_billing_profile: z.ZodObject<{
|
|
39580
|
+
id: z.ZodString;
|
|
39581
|
+
}, z.core.$strict>;
|
|
39582
|
+
}, z.core.$strict>;
|
|
39541
39583
|
export declare const createChargeCostBasisWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
39542
39584
|
type: z.ZodLiteral<"dynamic">;
|
|
39543
39585
|
fiat_currency: z.ZodString;
|
|
@@ -41256,9 +41298,12 @@ export declare const notificationEventDeliveryStatusWire: z.ZodObject<{
|
|
|
41256
41298
|
}, z.core.$strict>>;
|
|
41257
41299
|
}, z.core.$strict>;
|
|
41258
41300
|
export declare const customerDataWire: z.ZodObject<{
|
|
41259
|
-
billing_profile: z.ZodOptional<z.ZodObject<{
|
|
41301
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41260
41302
|
id: z.ZodString;
|
|
41261
|
-
}, z.core.$strict
|
|
41303
|
+
}, z.core.$strict>>>;
|
|
41304
|
+
effective_billing_profile: z.ZodObject<{
|
|
41305
|
+
id: z.ZodString;
|
|
41306
|
+
}, z.core.$strict>;
|
|
41262
41307
|
app_data: z.ZodOptional<z.ZodObject<{
|
|
41263
41308
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41264
41309
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -41269,14 +41314,11 @@ export declare const customerDataWire: z.ZodObject<{
|
|
|
41269
41314
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41270
41315
|
}, z.core.$strict>>>;
|
|
41271
41316
|
}, z.core.$strict>>;
|
|
41272
|
-
effective_billing_profile: z.ZodObject<{
|
|
41273
|
-
id: z.ZodString;
|
|
41274
|
-
}, z.core.$strict>;
|
|
41275
41317
|
}, z.core.$strict>;
|
|
41276
41318
|
export declare const upsertCustomerBillingDataRequestWire: z.ZodObject<{
|
|
41277
|
-
billing_profile: z.ZodOptional<z.ZodObject<{
|
|
41319
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41278
41320
|
id: z.ZodString;
|
|
41279
|
-
}, z.core.$strict
|
|
41321
|
+
}, z.core.$strict>>>;
|
|
41280
41322
|
app_data: z.ZodOptional<z.ZodObject<{
|
|
41281
41323
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41282
41324
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -56761,9 +56803,12 @@ export declare const getCustomerBillingPathParamsWire: z.ZodObject<{
|
|
|
56761
56803
|
customerId: z.ZodString;
|
|
56762
56804
|
}, z.core.$strip>;
|
|
56763
56805
|
export declare const getCustomerBillingResponseWire: z.ZodObject<{
|
|
56764
|
-
billing_profile: z.ZodOptional<z.ZodObject<{
|
|
56806
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56765
56807
|
id: z.ZodString;
|
|
56766
|
-
}, z.core.$strict
|
|
56808
|
+
}, z.core.$strict>>>;
|
|
56809
|
+
effective_billing_profile: z.ZodObject<{
|
|
56810
|
+
id: z.ZodString;
|
|
56811
|
+
}, z.core.$strict>;
|
|
56767
56812
|
app_data: z.ZodOptional<z.ZodObject<{
|
|
56768
56813
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56769
56814
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -56774,17 +56819,14 @@ export declare const getCustomerBillingResponseWire: z.ZodObject<{
|
|
|
56774
56819
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
56775
56820
|
}, z.core.$strict>>>;
|
|
56776
56821
|
}, z.core.$strict>>;
|
|
56777
|
-
effective_billing_profile: z.ZodObject<{
|
|
56778
|
-
id: z.ZodString;
|
|
56779
|
-
}, z.core.$strict>;
|
|
56780
56822
|
}, z.core.$strict>;
|
|
56781
56823
|
export declare const updateCustomerBillingPathParamsWire: z.ZodObject<{
|
|
56782
56824
|
customerId: z.ZodString;
|
|
56783
56825
|
}, z.core.$strip>;
|
|
56784
56826
|
export declare const updateCustomerBillingBodyWire: z.ZodObject<{
|
|
56785
|
-
billing_profile: z.ZodOptional<z.ZodObject<{
|
|
56827
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56786
56828
|
id: z.ZodString;
|
|
56787
|
-
}, z.core.$strict
|
|
56829
|
+
}, z.core.$strict>>>;
|
|
56788
56830
|
app_data: z.ZodOptional<z.ZodObject<{
|
|
56789
56831
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56790
56832
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -56797,9 +56839,12 @@ export declare const updateCustomerBillingBodyWire: z.ZodObject<{
|
|
|
56797
56839
|
}, z.core.$strict>>;
|
|
56798
56840
|
}, z.core.$strict>;
|
|
56799
56841
|
export declare const updateCustomerBillingResponseWire: z.ZodObject<{
|
|
56800
|
-
billing_profile: z.ZodOptional<z.ZodObject<{
|
|
56842
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56801
56843
|
id: z.ZodString;
|
|
56802
|
-
}, z.core.$strict
|
|
56844
|
+
}, z.core.$strict>>>;
|
|
56845
|
+
effective_billing_profile: z.ZodObject<{
|
|
56846
|
+
id: z.ZodString;
|
|
56847
|
+
}, z.core.$strict>;
|
|
56803
56848
|
app_data: z.ZodOptional<z.ZodObject<{
|
|
56804
56849
|
stripe: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56805
56850
|
customer_id: z.ZodOptional<z.ZodString>;
|
|
@@ -56810,6 +56855,19 @@ export declare const updateCustomerBillingResponseWire: z.ZodObject<{
|
|
|
56810
56855
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
56811
56856
|
}, z.core.$strict>>>;
|
|
56812
56857
|
}, z.core.$strict>>;
|
|
56858
|
+
}, z.core.$strict>;
|
|
56859
|
+
export declare const updateCustomerBillingProfilePathParamsWire: z.ZodObject<{
|
|
56860
|
+
customerId: z.ZodString;
|
|
56861
|
+
}, z.core.$strip>;
|
|
56862
|
+
export declare const updateCustomerBillingProfileBodyWire: z.ZodObject<{
|
|
56863
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56864
|
+
id: z.ZodString;
|
|
56865
|
+
}, z.core.$strict>>>;
|
|
56866
|
+
}, z.core.$strict>;
|
|
56867
|
+
export declare const updateCustomerBillingProfileResponseWire: z.ZodObject<{
|
|
56868
|
+
billing_profile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
56869
|
+
id: z.ZodString;
|
|
56870
|
+
}, z.core.$strict>>>;
|
|
56813
56871
|
effective_billing_profile: z.ZodObject<{
|
|
56814
56872
|
id: z.ZodString;
|
|
56815
56873
|
}, z.core.$strict>;
|
package/dist/models/schemas.js
CHANGED
|
@@ -3077,6 +3077,23 @@ export const listPlanAddonsParamsFilter = z
|
|
|
3077
3077
|
planCurrency: stringFieldFilter.optional(),
|
|
3078
3078
|
})
|
|
3079
3079
|
.describe('Filter options for listing plan add-ons.');
|
|
3080
|
+
export const upsertCustomerBillingProfileRequest = z
|
|
3081
|
+
.object({
|
|
3082
|
+
billingProfile: profileReference
|
|
3083
|
+
.nullable()
|
|
3084
|
+
.optional()
|
|
3085
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
3086
|
+
})
|
|
3087
|
+
.describe('CustomerBillingProfile upsert request.');
|
|
3088
|
+
export const customerProfile = z
|
|
3089
|
+
.object({
|
|
3090
|
+
billingProfile: profileReference
|
|
3091
|
+
.nullable()
|
|
3092
|
+
.optional()
|
|
3093
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
3094
|
+
effectiveBillingProfile: profileReference,
|
|
3095
|
+
})
|
|
3096
|
+
.describe('Customer billing profile selection.');
|
|
3080
3097
|
export const createChargeCostBasis = z
|
|
3081
3098
|
.discriminatedUnion('type', [
|
|
3082
3099
|
createChargeCostBasisDynamic,
|
|
@@ -4262,14 +4279,20 @@ export const notificationEventDeliveryStatus = z
|
|
|
4262
4279
|
.describe('The delivery status of a notification event for one channel of the generating rule.');
|
|
4263
4280
|
export const customerData = z
|
|
4264
4281
|
.object({
|
|
4265
|
-
billingProfile: profileReference
|
|
4266
|
-
|
|
4282
|
+
billingProfile: profileReference
|
|
4283
|
+
.nullable()
|
|
4284
|
+
.optional()
|
|
4285
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
4267
4286
|
effectiveBillingProfile: profileReference,
|
|
4287
|
+
appData: appCustomerData.optional(),
|
|
4268
4288
|
})
|
|
4269
4289
|
.describe('Billing customer data.');
|
|
4270
4290
|
export const upsertCustomerBillingDataRequest = z
|
|
4271
4291
|
.object({
|
|
4272
|
-
billingProfile: profileReference
|
|
4292
|
+
billingProfile: profileReference
|
|
4293
|
+
.nullable()
|
|
4294
|
+
.optional()
|
|
4295
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
4273
4296
|
appData: appCustomerData.optional(),
|
|
4274
4297
|
})
|
|
4275
4298
|
.describe('CustomerBillingData upsert request.');
|
|
@@ -6297,6 +6320,11 @@ export const updateCustomerBillingPathParams = z.object({
|
|
|
6297
6320
|
});
|
|
6298
6321
|
export const updateCustomerBillingBody = upsertCustomerBillingDataRequest;
|
|
6299
6322
|
export const updateCustomerBillingResponse = customerData;
|
|
6323
|
+
export const updateCustomerBillingProfilePathParams = z.object({
|
|
6324
|
+
customerId: ulid,
|
|
6325
|
+
});
|
|
6326
|
+
export const updateCustomerBillingProfileBody = upsertCustomerBillingProfileRequest;
|
|
6327
|
+
export const updateCustomerBillingProfileResponse = customerProfile;
|
|
6300
6328
|
export const updateCustomerBillingAppDataPathParams = z.object({
|
|
6301
6329
|
customerId: ulid,
|
|
6302
6330
|
});
|
|
@@ -10294,6 +10322,23 @@ export const listPlanAddonsParamsFilterWire = z
|
|
|
10294
10322
|
plan_currency: stringFieldFilterWire.optional(),
|
|
10295
10323
|
})
|
|
10296
10324
|
.describe('Filter options for listing plan add-ons.');
|
|
10325
|
+
export const upsertCustomerBillingProfileRequestWire = z
|
|
10326
|
+
.strictObject({
|
|
10327
|
+
billing_profile: profileReferenceWire
|
|
10328
|
+
.nullable()
|
|
10329
|
+
.optional()
|
|
10330
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
10331
|
+
})
|
|
10332
|
+
.describe('CustomerBillingProfile upsert request.');
|
|
10333
|
+
export const customerProfileWire = z
|
|
10334
|
+
.strictObject({
|
|
10335
|
+
billing_profile: profileReferenceWire
|
|
10336
|
+
.nullable()
|
|
10337
|
+
.optional()
|
|
10338
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
10339
|
+
effective_billing_profile: profileReferenceWire,
|
|
10340
|
+
})
|
|
10341
|
+
.describe('Customer billing profile selection.');
|
|
10297
10342
|
export const createChargeCostBasisWire = z
|
|
10298
10343
|
.discriminatedUnion('type', [
|
|
10299
10344
|
createChargeCostBasisDynamicWire,
|
|
@@ -11470,14 +11515,20 @@ export const notificationEventDeliveryStatusWire = z
|
|
|
11470
11515
|
.describe('The delivery status of a notification event for one channel of the generating rule.');
|
|
11471
11516
|
export const customerDataWire = z
|
|
11472
11517
|
.strictObject({
|
|
11473
|
-
billing_profile: profileReferenceWire
|
|
11474
|
-
|
|
11518
|
+
billing_profile: profileReferenceWire
|
|
11519
|
+
.nullable()
|
|
11520
|
+
.optional()
|
|
11521
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
11475
11522
|
effective_billing_profile: profileReferenceWire,
|
|
11523
|
+
app_data: appCustomerDataWire.optional(),
|
|
11476
11524
|
})
|
|
11477
11525
|
.describe('Billing customer data.');
|
|
11478
11526
|
export const upsertCustomerBillingDataRequestWire = z
|
|
11479
11527
|
.strictObject({
|
|
11480
|
-
billing_profile: profileReferenceWire
|
|
11528
|
+
billing_profile: profileReferenceWire
|
|
11529
|
+
.nullable()
|
|
11530
|
+
.optional()
|
|
11531
|
+
.describe('The billing profile explicitly selected for the customer. Unpinned customers use the current namespace default. Selecting the current default explicitly pins the customer to that profile.'),
|
|
11481
11532
|
app_data: appCustomerDataWire.optional(),
|
|
11482
11533
|
})
|
|
11483
11534
|
.describe('CustomerBillingData upsert request.');
|
|
@@ -13507,6 +13558,11 @@ export const updateCustomerBillingPathParamsWire = z.object({
|
|
|
13507
13558
|
});
|
|
13508
13559
|
export const updateCustomerBillingBodyWire = upsertCustomerBillingDataRequestWire;
|
|
13509
13560
|
export const updateCustomerBillingResponseWire = customerDataWire;
|
|
13561
|
+
export const updateCustomerBillingProfilePathParamsWire = z.object({
|
|
13562
|
+
customerId: ulidWire,
|
|
13563
|
+
});
|
|
13564
|
+
export const updateCustomerBillingProfileBodyWire = upsertCustomerBillingProfileRequestWire;
|
|
13565
|
+
export const updateCustomerBillingProfileResponseWire = customerProfileWire;
|
|
13510
13566
|
export const updateCustomerBillingAppDataPathParamsWire = z.object({
|
|
13511
13567
|
customerId: ulidWire,
|
|
13512
13568
|
});
|
package/dist/models/types.d.ts
CHANGED
|
@@ -2892,6 +2892,31 @@ export interface ListPlanAddonsParamsFilter {
|
|
|
2892
2892
|
addonName?: StringFieldFilter;
|
|
2893
2893
|
planCurrency?: StringFieldFilter;
|
|
2894
2894
|
}
|
|
2895
|
+
/** CustomerBillingProfile upsert request. */
|
|
2896
|
+
export interface UpsertCustomerBillingProfileRequest {
|
|
2897
|
+
/**
|
|
2898
|
+
* The billing profile explicitly selected for the customer.
|
|
2899
|
+
*
|
|
2900
|
+
* Unpinned customers use the current namespace default. Selecting the current
|
|
2901
|
+
* default explicitly pins the customer to that profile.
|
|
2902
|
+
*/
|
|
2903
|
+
billingProfile?: ProfileReference | null;
|
|
2904
|
+
}
|
|
2905
|
+
/** Customer billing profile selection. */
|
|
2906
|
+
export interface CustomerProfile {
|
|
2907
|
+
/**
|
|
2908
|
+
* The billing profile explicitly selected for the customer.
|
|
2909
|
+
*
|
|
2910
|
+
* Unpinned customers use the current namespace default. Selecting the current
|
|
2911
|
+
* default explicitly pins the customer to that profile.
|
|
2912
|
+
*/
|
|
2913
|
+
billingProfile?: ProfileReference | null;
|
|
2914
|
+
/**
|
|
2915
|
+
* The effective billing profile for the customer. Uses the explicitly selected
|
|
2916
|
+
* billing profile when pinned, otherwise the current default billing profile.
|
|
2917
|
+
*/
|
|
2918
|
+
effectiveBillingProfile: ProfileReference;
|
|
2919
|
+
}
|
|
2895
2920
|
/**
|
|
2896
2921
|
* Tax configuration for a billable resource.
|
|
2897
2922
|
*
|
|
@@ -4511,25 +4536,27 @@ export interface CustomerData {
|
|
|
4511
4536
|
/**
|
|
4512
4537
|
* The billing profile explicitly selected for the customer.
|
|
4513
4538
|
*
|
|
4514
|
-
*
|
|
4539
|
+
* Unpinned customers use the current namespace default. Selecting the current
|
|
4540
|
+
* default explicitly pins the customer to that profile.
|
|
4515
4541
|
*/
|
|
4516
|
-
billingProfile?: ProfileReference;
|
|
4517
|
-
/** App customer data. */
|
|
4518
|
-
appData?: AppCustomerData;
|
|
4542
|
+
billingProfile?: ProfileReference | null;
|
|
4519
4543
|
/**
|
|
4520
4544
|
* The effective billing profile for the customer. Uses the explicitly selected
|
|
4521
4545
|
* billing profile when pinned, otherwise the current default billing profile.
|
|
4522
4546
|
*/
|
|
4523
4547
|
effectiveBillingProfile: ProfileReference;
|
|
4548
|
+
/** App customer data. */
|
|
4549
|
+
appData?: AppCustomerData;
|
|
4524
4550
|
}
|
|
4525
4551
|
/** CustomerBillingData upsert request. */
|
|
4526
4552
|
export interface UpsertCustomerBillingDataRequest {
|
|
4527
4553
|
/**
|
|
4528
4554
|
* The billing profile explicitly selected for the customer.
|
|
4529
4555
|
*
|
|
4530
|
-
*
|
|
4556
|
+
* Unpinned customers use the current namespace default. Selecting the current
|
|
4557
|
+
* default explicitly pins the customer to that profile.
|
|
4531
4558
|
*/
|
|
4532
|
-
billingProfile?: ProfileReference;
|
|
4559
|
+
billingProfile?: ProfileReference | null;
|
|
4533
4560
|
/** App customer data. */
|
|
4534
4561
|
appData?: AppCustomerData;
|
|
4535
4562
|
}
|
package/dist/sdk/customers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Client } from '../core.js';
|
|
2
2
|
import { type RequestOptions } from '../lib/types.js';
|
|
3
|
-
import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, OverrideCustomerEntitlementRequest, OverrideCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, CreateCustomerEntitlementGrantRequest, CreateCustomerEntitlementGrantResponse, ListCustomerEntitlementGrantsRequest, ListCustomerEntitlementGrantsResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
3
|
+
import type { CreateCustomerRequest, CreateCustomerResponse, GetCustomerRequest, GetCustomerResponse, ListCustomersRequest, ListCustomersResponse, UpsertCustomerRequest, UpsertCustomerResponse, DeleteCustomerRequest, DeleteCustomerResponse, GetCustomerBillingRequest, GetCustomerBillingResponse, UpdateCustomerBillingRequest, UpdateCustomerBillingResponse, UpdateCustomerBillingProfileRequest, UpdateCustomerBillingProfileResponse, UpdateCustomerBillingAppDataRequest, UpdateCustomerBillingAppDataResponse, CreateCustomerStripeCheckoutSessionRequest, CreateCustomerStripeCheckoutSessionResponse, CreateCustomerStripePortalSessionRequest, CreateCustomerStripePortalSessionResponse, CreateCustomerEntitlementRequest, CreateCustomerEntitlementResponse, OverrideCustomerEntitlementRequest, OverrideCustomerEntitlementResponse, GetCustomerEntitlementHistoryRequest, GetCustomerEntitlementHistoryResponse, GetCustomerEntitlementRequest, GetCustomerEntitlementResponse, ListCustomerEntitlementsRequest, ListCustomerEntitlementsResponse, ResetCustomerEntitlementUsageRequest, ResetCustomerEntitlementUsageResponse, DeleteCustomerEntitlementRequest, DeleteCustomerEntitlementResponse, CreateCustomerEntitlementGrantRequest, CreateCustomerEntitlementGrantResponse, ListCustomerEntitlementGrantsRequest, ListCustomerEntitlementGrantsResponse, CreateCreditGrantRequest, CreateCreditGrantResponse, GetCreditGrantRequest, GetCreditGrantResponse, ListCreditGrantsRequest, ListCreditGrantsResponse, GetCustomerCreditBalanceRequest, GetCustomerCreditBalanceResponse, CreateCreditAdjustmentRequest, CreateCreditAdjustmentResponse, VoidCreditGrantRequest, VoidCreditGrantResponse, UpdateCreditGrantExternalSettlementRequest, UpdateCreditGrantExternalSettlementResponse, ListCreditTransactionsRequest, ListCreditTransactionsResponse, ListCustomerChargesRequest, ListCustomerChargesResponse, CreateCustomerChargesRequest, CreateCustomerChargesResponse } from '../models/operations/customers.js';
|
|
4
4
|
import type { Charge, CreditGrant, CreditTransaction, Customer, Entitlement, EntitlementGrant } from '../models/types.js';
|
|
5
5
|
export declare class Customers {
|
|
6
6
|
private readonly _client;
|
|
@@ -64,9 +64,23 @@ export declare class CustomersBilling {
|
|
|
64
64
|
/**
|
|
65
65
|
* Update customer billing data
|
|
66
66
|
*
|
|
67
|
+
* Update billing data while preserving the current profile selection when
|
|
68
|
+
* billing_profile is omitted or null. Use the dedicated billing profile endpoint
|
|
69
|
+
* to remove the selection.
|
|
70
|
+
*
|
|
67
71
|
* PUT /openmeter/customers/{customerId}/billing
|
|
68
72
|
*/
|
|
69
73
|
update(request: UpdateCustomerBillingRequest, options?: RequestOptions): Promise<UpdateCustomerBillingResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Update customer billing profile
|
|
76
|
+
*
|
|
77
|
+
* Set the customer's explicit billing profile selection. Omitting billing_profile
|
|
78
|
+
* or setting it to null removes the selection and uses the current namespace
|
|
79
|
+
* default.
|
|
80
|
+
*
|
|
81
|
+
* PUT /openmeter/customers/{customerId}/billing/profile
|
|
82
|
+
*/
|
|
83
|
+
updateProfile(request: UpdateCustomerBillingProfileRequest, options?: RequestOptions): Promise<UpdateCustomerBillingProfileResponse>;
|
|
70
84
|
/**
|
|
71
85
|
* Update customer billing app data
|
|
72
86
|
*
|
package/dist/sdk/customers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.
|
|
2
2
|
import { unwrap } from '../lib/types.js';
|
|
3
3
|
import { paginateCursor, paginatePages } from '../lib/paginate.js';
|
|
4
|
-
import { createCustomer, getCustomer, listCustomers, upsertCustomer, deleteCustomer, getCustomerBilling, updateCustomerBilling, updateCustomerBillingAppData, createCustomerStripeCheckoutSession, createCustomerStripePortalSession, createCustomerEntitlement, overrideCustomerEntitlement, getCustomerEntitlementHistory, getCustomerEntitlement, listCustomerEntitlements, resetCustomerEntitlementUsage, deleteCustomerEntitlement, createCustomerEntitlementGrant, listCustomerEntitlementGrants, createCreditGrant, getCreditGrant, listCreditGrants, getCustomerCreditBalance, createCreditAdjustment, voidCreditGrant, updateCreditGrantExternalSettlement, listCreditTransactions, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
|
|
4
|
+
import { createCustomer, getCustomer, listCustomers, upsertCustomer, deleteCustomer, getCustomerBilling, updateCustomerBilling, updateCustomerBillingProfile, updateCustomerBillingAppData, createCustomerStripeCheckoutSession, createCustomerStripePortalSession, createCustomerEntitlement, overrideCustomerEntitlement, getCustomerEntitlementHistory, getCustomerEntitlement, listCustomerEntitlements, resetCustomerEntitlementUsage, deleteCustomerEntitlement, createCustomerEntitlementGrant, listCustomerEntitlementGrants, createCreditGrant, getCreditGrant, listCreditGrants, getCustomerCreditBalance, createCreditAdjustment, voidCreditGrant, updateCreditGrantExternalSettlement, listCreditTransactions, listCustomerCharges, createCustomerCharges, } from '../funcs/customers.js';
|
|
5
5
|
export class Customers {
|
|
6
6
|
_client;
|
|
7
7
|
constructor(_client) {
|
|
@@ -90,11 +90,27 @@ export class CustomersBilling {
|
|
|
90
90
|
/**
|
|
91
91
|
* Update customer billing data
|
|
92
92
|
*
|
|
93
|
+
* Update billing data while preserving the current profile selection when
|
|
94
|
+
* billing_profile is omitted or null. Use the dedicated billing profile endpoint
|
|
95
|
+
* to remove the selection.
|
|
96
|
+
*
|
|
93
97
|
* PUT /openmeter/customers/{customerId}/billing
|
|
94
98
|
*/
|
|
95
99
|
async update(request, options) {
|
|
96
100
|
return unwrap(await updateCustomerBilling(this._client, request, options));
|
|
97
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Update customer billing profile
|
|
104
|
+
*
|
|
105
|
+
* Set the customer's explicit billing profile selection. Omitting billing_profile
|
|
106
|
+
* or setting it to null removes the selection and uses the current namespace
|
|
107
|
+
* default.
|
|
108
|
+
*
|
|
109
|
+
* PUT /openmeter/customers/{customerId}/billing/profile
|
|
110
|
+
*/
|
|
111
|
+
async updateProfile(request, options) {
|
|
112
|
+
return unwrap(await updateCustomerBillingProfile(this._client, request, options));
|
|
113
|
+
}
|
|
98
114
|
/**
|
|
99
115
|
* Update customer billing app data
|
|
100
116
|
*
|