@usebillow/sdk 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/{billing-Bs10EcjR.d.ts → billing-BEbVLGe9.d.ts} +6 -3
- package/dist/{billing-8ug1Gw05.d.cts → billing-CDEO8Jqv.d.cts} +6 -3
- package/dist/{chunk-XKN7ZRAR.js → chunk-H6C7CONO.js} +64 -5
- package/dist/chunk-H6C7CONO.js.map +1 -0
- package/dist/config.d.cts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/{hosted-domains-Ci6jeNAe.d.cts → hosted-domains-Cuk3j04R.d.cts} +28 -4
- package/dist/{hosted-domains-DSs5Iw9U.d.ts → hosted-domains-DMgokjiv.d.ts} +28 -4
- package/dist/index.cjs +62 -3
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DSEYhV2c.d.ts → index.d-D5v2ETKF.d.cts} +21 -1
- package/dist/{index.d-DSEYhV2c.d.cts → index.d-D5v2ETKF.d.ts} +21 -1
- package/dist/index.d.cts +165 -19
- package/dist/index.d.ts +165 -19
- package/dist/index.js +1 -1
- package/dist/ingestion.d.cts +3 -3
- package/dist/ingestion.d.ts +3 -3
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +1 -1
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/webhooks.cjs +1 -0
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +23 -4
- package/dist/webhooks.d.ts +23 -4
- package/dist/webhooks.js +1 -0
- package/dist/webhooks.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-XKN7ZRAR.js.map +0 -1
|
@@ -246,7 +246,7 @@ declare const invoicePaymentResponseSchema: z.ZodObject<{
|
|
|
246
246
|
failed: "failed";
|
|
247
247
|
processing: "processing";
|
|
248
248
|
}>;
|
|
249
|
-
expiresAt: z.
|
|
249
|
+
expiresAt: z.ZodCustomStringFormat<"datetime">;
|
|
250
250
|
}, z.core.$strip>;
|
|
251
251
|
type PayInvoiceInput = z.infer<typeof payInvoiceSchema>;
|
|
252
252
|
type InvoicePaymentResult = z.infer<typeof invoicePaymentResponseSchema>;
|
|
@@ -285,6 +285,8 @@ declare const createPortalSessionSchema: z.ZodObject<{
|
|
|
285
285
|
}>>;
|
|
286
286
|
productId: z.ZodOptional<z.ZodString>;
|
|
287
287
|
returnUrl: z.ZodOptional<z.ZodString>;
|
|
288
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
hostedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
288
290
|
}, z.core.$strip>;
|
|
289
291
|
type CreatePortalSessionInput = z.infer<typeof createPortalSessionSchema>;
|
|
290
292
|
declare const createProductSchema: z.ZodObject<{
|
|
@@ -574,6 +576,10 @@ declare const subscriptionResponseSchema: z.ZodObject<{
|
|
|
574
576
|
productSlug: z.ZodString;
|
|
575
577
|
productName: z.ZodString;
|
|
576
578
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
579
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
580
|
+
reason: z.ZodString;
|
|
581
|
+
since: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
577
583
|
}, z.core.$strict>>;
|
|
578
584
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
579
585
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -610,6 +616,10 @@ declare const subscriptionDetailResponseSchema: z.ZodObject<{
|
|
|
610
616
|
productSlug: z.ZodString;
|
|
611
617
|
productName: z.ZodString;
|
|
612
618
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
619
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
620
|
+
reason: z.ZodString;
|
|
621
|
+
since: z.ZodString;
|
|
622
|
+
}, z.core.$strict>>;
|
|
613
623
|
}, z.core.$strict>>;
|
|
614
624
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
615
625
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -645,6 +655,10 @@ declare const activatedSubscriptionResponseSchema: z.ZodObject<{
|
|
|
645
655
|
productSlug: z.ZodString;
|
|
646
656
|
productName: z.ZodString;
|
|
647
657
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
658
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
659
|
+
reason: z.ZodString;
|
|
660
|
+
since: z.ZodString;
|
|
661
|
+
}, z.core.$strict>>;
|
|
648
662
|
}, z.core.$strict>>;
|
|
649
663
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
650
664
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -700,6 +714,10 @@ declare const createSubscriptionResponseSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
700
714
|
productSlug: z.ZodString;
|
|
701
715
|
productName: z.ZodString;
|
|
702
716
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
718
|
+
reason: z.ZodString;
|
|
719
|
+
since: z.ZodString;
|
|
720
|
+
}, z.core.$strict>>;
|
|
703
721
|
}, z.core.$strict>>;
|
|
704
722
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
705
723
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -765,6 +783,7 @@ declare const createWebhookEndpointSchema: z.ZodObject<{
|
|
|
765
783
|
"charge.succeeded": "charge.succeeded";
|
|
766
784
|
"charge.failed": "charge.failed";
|
|
767
785
|
"charge.refunded": "charge.refunded";
|
|
786
|
+
"charge.refund_reversed": "charge.refund_reversed";
|
|
768
787
|
"charge.disputed": "charge.disputed";
|
|
769
788
|
"charge.dispute_resolved": "charge.dispute_resolved";
|
|
770
789
|
"invoice.paid": "invoice.paid";
|
|
@@ -812,6 +831,7 @@ declare const updateWebhookEndpointSchema: z.ZodObject<{
|
|
|
812
831
|
"charge.succeeded": "charge.succeeded";
|
|
813
832
|
"charge.failed": "charge.failed";
|
|
814
833
|
"charge.refunded": "charge.refunded";
|
|
834
|
+
"charge.refund_reversed": "charge.refund_reversed";
|
|
815
835
|
"charge.disputed": "charge.disputed";
|
|
816
836
|
"charge.dispute_resolved": "charge.dispute_resolved";
|
|
817
837
|
"invoice.paid": "invoice.paid";
|
|
@@ -246,7 +246,7 @@ declare const invoicePaymentResponseSchema: z.ZodObject<{
|
|
|
246
246
|
failed: "failed";
|
|
247
247
|
processing: "processing";
|
|
248
248
|
}>;
|
|
249
|
-
expiresAt: z.
|
|
249
|
+
expiresAt: z.ZodCustomStringFormat<"datetime">;
|
|
250
250
|
}, z.core.$strip>;
|
|
251
251
|
type PayInvoiceInput = z.infer<typeof payInvoiceSchema>;
|
|
252
252
|
type InvoicePaymentResult = z.infer<typeof invoicePaymentResponseSchema>;
|
|
@@ -285,6 +285,8 @@ declare const createPortalSessionSchema: z.ZodObject<{
|
|
|
285
285
|
}>>;
|
|
286
286
|
productId: z.ZodOptional<z.ZodString>;
|
|
287
287
|
returnUrl: z.ZodOptional<z.ZodString>;
|
|
288
|
+
domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
+
hostedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
288
290
|
}, z.core.$strip>;
|
|
289
291
|
type CreatePortalSessionInput = z.infer<typeof createPortalSessionSchema>;
|
|
290
292
|
declare const createProductSchema: z.ZodObject<{
|
|
@@ -574,6 +576,10 @@ declare const subscriptionResponseSchema: z.ZodObject<{
|
|
|
574
576
|
productSlug: z.ZodString;
|
|
575
577
|
productName: z.ZodString;
|
|
576
578
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
579
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
580
|
+
reason: z.ZodString;
|
|
581
|
+
since: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>;
|
|
577
583
|
}, z.core.$strict>>;
|
|
578
584
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
579
585
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -610,6 +616,10 @@ declare const subscriptionDetailResponseSchema: z.ZodObject<{
|
|
|
610
616
|
productSlug: z.ZodString;
|
|
611
617
|
productName: z.ZodString;
|
|
612
618
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
619
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
620
|
+
reason: z.ZodString;
|
|
621
|
+
since: z.ZodString;
|
|
622
|
+
}, z.core.$strict>>;
|
|
613
623
|
}, z.core.$strict>>;
|
|
614
624
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
615
625
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -645,6 +655,10 @@ declare const activatedSubscriptionResponseSchema: z.ZodObject<{
|
|
|
645
655
|
productSlug: z.ZodString;
|
|
646
656
|
productName: z.ZodString;
|
|
647
657
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
658
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
659
|
+
reason: z.ZodString;
|
|
660
|
+
since: z.ZodString;
|
|
661
|
+
}, z.core.$strict>>;
|
|
648
662
|
}, z.core.$strict>>;
|
|
649
663
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
650
664
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -700,6 +714,10 @@ declare const createSubscriptionResponseSchema: z.ZodUnion<readonly [z.ZodObject
|
|
|
700
714
|
productSlug: z.ZodString;
|
|
701
715
|
productName: z.ZodString;
|
|
702
716
|
effectiveAt: z.ZodNullable<z.ZodString>;
|
|
717
|
+
blocked: z.ZodNullable<z.ZodObject<{
|
|
718
|
+
reason: z.ZodString;
|
|
719
|
+
since: z.ZodString;
|
|
720
|
+
}, z.core.$strict>>;
|
|
703
721
|
}, z.core.$strict>>;
|
|
704
722
|
canceledAt: z.ZodNullable<z.ZodString>;
|
|
705
723
|
remainingCycles: z.ZodNullable<z.ZodNumber>;
|
|
@@ -765,6 +783,7 @@ declare const createWebhookEndpointSchema: z.ZodObject<{
|
|
|
765
783
|
"charge.succeeded": "charge.succeeded";
|
|
766
784
|
"charge.failed": "charge.failed";
|
|
767
785
|
"charge.refunded": "charge.refunded";
|
|
786
|
+
"charge.refund_reversed": "charge.refund_reversed";
|
|
768
787
|
"charge.disputed": "charge.disputed";
|
|
769
788
|
"charge.dispute_resolved": "charge.dispute_resolved";
|
|
770
789
|
"invoice.paid": "invoice.paid";
|
|
@@ -812,6 +831,7 @@ declare const updateWebhookEndpointSchema: z.ZodObject<{
|
|
|
812
831
|
"charge.succeeded": "charge.succeeded";
|
|
813
832
|
"charge.failed": "charge.failed";
|
|
814
833
|
"charge.refunded": "charge.refunded";
|
|
834
|
+
"charge.refund_reversed": "charge.refund_reversed";
|
|
815
835
|
"charge.disputed": "charge.disputed";
|
|
816
836
|
"charge.dispute_resolved": "charge.dispute_resolved";
|
|
817
837
|
"invoice.paid": "invoice.paid";
|
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { f as SavedPaymentMethod, g as CreateHostedDomainInput, h as PayInvoiceInput } from './index.d-
|
|
2
|
-
export { i as ContractAddSubscriptionItemInput, j as ContractApplySubscriptionCouponInput, k as ContractCancelSubscriptionInput, l as ContractChangeSubscriptionPlanInput, m as ContractCreateChargeInput, n as ContractCreateCustomerInput, o as ContractCreateMerchantInitiatedChargeInput, p as ContractCreatePortalSessionInput, q as ContractCreateProductInput, r as ContractCreateSubscriptionInput, s as ContractCreateWebhookEndpointInput, M as ContractMigrateSubscribersInput, R as ContractRefundChargeInput, t as ContractResolveRefundInput, U as ContractUpdateProductInput, u as ContractUpdateSubscriptionItemInput, v as ContractUpdateWebhookEndpointInput, H as HostedDomain, w as HostedDomainList, I as InvoicePaymentResult } from './index.d-
|
|
1
|
+
import { f as SavedPaymentMethod, g as CreateHostedDomainInput, h as PayInvoiceInput } from './index.d-D5v2ETKF.cjs';
|
|
2
|
+
export { i as ContractAddSubscriptionItemInput, j as ContractApplySubscriptionCouponInput, k as ContractCancelSubscriptionInput, l as ContractChangeSubscriptionPlanInput, m as ContractCreateChargeInput, n as ContractCreateCustomerInput, o as ContractCreateMerchantInitiatedChargeInput, p as ContractCreatePortalSessionInput, q as ContractCreateProductInput, r as ContractCreateSubscriptionInput, s as ContractCreateWebhookEndpointInput, M as ContractMigrateSubscribersInput, R as ContractRefundChargeInput, t as ContractResolveRefundInput, U as ContractUpdateProductInput, u as ContractUpdateSubscriptionItemInput, v as ContractUpdateWebhookEndpointInput, H as HostedDomain, w as HostedDomainList, I as InvoicePaymentResult } from './index.d-D5v2ETKF.cjs';
|
|
3
3
|
import { C as ChargeStatus, P as PaymentMethodStatus, I as InvoiceStatus, R as RefundStatus, W as WebhookDeliveryStatus } from './billing-status-DZkB0VPK.cjs';
|
|
4
4
|
export { a as CHARGE_STATUSES, b as INVOICE_STATUSES, c as PAYMENT_METHOD_STATUSES, d as REFUND_STATUSES, e as WEBHOOK_DELIVERY_STATUSES } from './billing-status-DZkB0VPK.cjs';
|
|
5
5
|
import { SubscriptionStatus } from './status.cjs';
|
|
6
6
|
export { ACTIVE_SUBSCRIPTION_STATUSES, NEVER_ACTIVATED_SUBSCRIPTION_STATUSES, SUBSCRIPTION_STATUSES, TERMINAL_SUBSCRIPTION_STATUSES, grantsAccess, isTerminal } from './status.cjs';
|
|
7
|
-
import { c as TaxBehavior, d as Customer, U as UnappliedPaymentReason, e as CreateChargeInput, R as RequestOptions, f as Charge, g as CreateMerchantInitiatedChargeInput, I as IdempotentRequestOptions, h as CallOptions, C as CreateProductInput, i as UpdateProductInput, j as MigrationResult, k as CreateSubscriptionInput, B as BillowOptions, a as CreateCouponInput, l as Coupon, F as FeatureKind, M as MeterConfig, m as Feature, n as UpdateFeatureInput, o as UsageAlert, p as CreateUsageAlertInput, b as CheckResult, T as TrackResult, E as EntitlementView, A as AttachResult } from './billing-
|
|
8
|
-
export { q as ActivatedSubscriptionResult, r as BillingInterval, s as CouponDuration, t as CouponKind, u as CreateSubscriptionResult, v as EntitlementInput, w as MeterAggregation, x as MeterFilter, y as MeterRoundingMode, z as PendingSubscriptionCheckoutResult, D as PriceInput, P as Product, G as ProductEntitlement, H as ProductPrice, S as Subscription, J as SubscriptionDetail, K as SubscriptionItem, L as UpdatePriceInput, N as UsageAlertKind, O as UsageAlertMetric, Q as UsageModel, V as UsageTier } from './billing-
|
|
9
|
-
import { a as CreditThresholdLevel, e as CreditGrant, f as CreditTopUp, g as CreditIncludedWindow, h as CreateCreditGrantInput, i as CreditGrantRequestResult, j as
|
|
10
|
-
export {
|
|
7
|
+
import { c as TaxBehavior, d as Customer, U as UnappliedPaymentReason, e as CreateChargeInput, R as RequestOptions, f as Charge, g as CreateMerchantInitiatedChargeInput, I as IdempotentRequestOptions, h as CallOptions, C as CreateProductInput, i as UpdateProductInput, j as MigrationResult, k as CreateSubscriptionInput, B as BillowOptions, a as CreateCouponInput, l as Coupon, F as FeatureKind, M as MeterConfig, m as Feature, n as UpdateFeatureInput, o as UsageAlert, p as CreateUsageAlertInput, b as CheckResult, T as TrackResult, E as EntitlementView, A as AttachResult } from './billing-CDEO8Jqv.cjs';
|
|
8
|
+
export { q as ActivatedSubscriptionResult, r as BillingInterval, s as CouponDuration, t as CouponKind, u as CreateSubscriptionResult, v as EntitlementInput, w as MeterAggregation, x as MeterFilter, y as MeterRoundingMode, z as PendingSubscriptionCheckoutResult, D as PriceInput, P as Product, G as ProductEntitlement, H as ProductPrice, S as Subscription, J as SubscriptionDetail, K as SubscriptionItem, L as UpdatePriceInput, N as UsageAlertKind, O as UsageAlertMetric, Q as UsageModel, V as UsageTier } from './billing-CDEO8Jqv.cjs';
|
|
9
|
+
import { a as CreditThresholdLevel, e as CreditGrant, f as CreditTopUp, g as CreditIncludedWindow, h as CreateCreditGrantInput, i as CreditGrantRequestResult, j as CreditAccount, k as CreditPacks, l as CreateCreditPackInput, m as CreditPack, U as UpdateCreditPackInput, n as CreateCreditIncludedRuleInput, o as CreditIncludedRule, p as UpdateCreditIncludedRuleInput, q as CreditIncludedWindowListParams, r as CreateCreditTopUpInput, s as CreditTopUpRequestResult, t as CreditTopUpListParams, u as CreditBalance, v as CreditLedgerEntry, w as CreditUsageParams, x as CreditUsage } from './hosted-domains-Cuk3j04R.cjs';
|
|
10
|
+
export { y as CreditAccountStatus, z as CreditAllocationInterval, C as CreditGrantKind, A as CreditMoney, B as CreditPackBreakdown, D as CreditPackListItem, E as CreditTopUpStatus, F as CreditTransactionType, G as CreditUsageGroupBy, I as CreditWindowState, H as HostedDomainActivatedData, d as HostedDomainDisabledData, b as HostedDomainDnsFailingData, J as HostedDomainEventBase, c as HostedDomainReassignmentPendingData, K as HostedDomainStatus, L as HostedDomainStatusReason, M as IncludedCredits, N as IncludedPeriod } from './hosted-domains-Cuk3j04R.cjs';
|
|
11
11
|
import 'zod';
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -19,7 +19,7 @@ import 'zod';
|
|
|
19
19
|
* differently). The `code` field stays widened to `string` for forward-compatibility, so a code a
|
|
20
20
|
* newer server adds never breaks type-checking against an older SDK.
|
|
21
21
|
*/
|
|
22
|
-
declare const BILLOW_ERROR_CODES: readonly ["not_found", "validation_error", "authentication_error", "api_key_expired", "permission_denied", "conflict", "invalid_state_transition", "provider_error", "rate_limited", "quota_exceeded", "internal_error", "insufficient_credits", "account_frozen", "account_closed", "idempotency_conflict", "commit_exceeds_hold", "reversal_exceeds_consumption"];
|
|
22
|
+
declare const BILLOW_ERROR_CODES: readonly ["not_found", "validation_error", "authentication_error", "api_key_expired", "permission_denied", "conflict", "invalid_state_transition", "provider_error", "rate_limited", "quota_exceeded", "internal_error", "insufficient_credits", "account_frozen", "account_closed", "idempotency_conflict", "commit_exceeds_hold", "reversal_exceeds_consumption", "hosted_domain_unavailable"];
|
|
23
23
|
type BillowErrorCode = (typeof BILLOW_ERROR_CODES)[number];
|
|
24
24
|
|
|
25
25
|
/** Public SDK types for this domain. Re-exported by ../types.ts. */
|
|
@@ -329,7 +329,7 @@ interface OutboxEventListItem {
|
|
|
329
329
|
interface OutboxEventListParams extends ListParams {
|
|
330
330
|
status?: OutboxEventStatus;
|
|
331
331
|
}
|
|
332
|
-
type InboundWebhookOutcome = "signature_failed" | "shape_rejected" | "replayed" | "matched" | "unmatched" | "dispute_matched" | "dispute_unknown" | "dispute_deferred" | "accepted";
|
|
332
|
+
type InboundWebhookOutcome = "signature_failed" | "shape_rejected" | "replayed" | "matched" | "unmatched" | "dispute_matched" | "dispute_unknown" | "dispute_deferred" | "card_deferred" | "accepted";
|
|
333
333
|
interface InboundWebhookListItem {
|
|
334
334
|
id: string;
|
|
335
335
|
provider: string;
|
|
@@ -349,6 +349,8 @@ interface InboundWebhookListParams extends ListParams {
|
|
|
349
349
|
interface CustomerUsage {
|
|
350
350
|
/** The metered feature's slug. */
|
|
351
351
|
feature: string;
|
|
352
|
+
/** The metered feature's display name, as you named it (`API calls` for `api_calls`). */
|
|
353
|
+
featureName: string;
|
|
352
354
|
/** Granted units this period; null = unlimited. */
|
|
353
355
|
allowance: number | null;
|
|
354
356
|
/** Gross units used this period (sum of positive events in the period). */
|
|
@@ -443,6 +445,15 @@ interface ScheduledSubscriptionChange {
|
|
|
443
445
|
productSlug: string;
|
|
444
446
|
productName: string;
|
|
445
447
|
effectiveAt: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* Set while the change cannot land at renewal - the customer has since subscribed to its
|
|
450
|
+
* product, or to one billing its usage: why, and since when. The subscription renews on its
|
|
451
|
+
* current plan meanwhile; each renewal tries the change again until it lands or is cleared.
|
|
452
|
+
*/
|
|
453
|
+
blocked: {
|
|
454
|
+
reason: string;
|
|
455
|
+
since: string;
|
|
456
|
+
} | null;
|
|
446
457
|
}
|
|
447
458
|
interface SubscriptionListParams extends ListParams {
|
|
448
459
|
status?: SubscriptionStatus;
|
|
@@ -729,13 +740,18 @@ interface CreditRateCardItem {
|
|
|
729
740
|
/** How many units `unitPrice` buys. */
|
|
730
741
|
perUnits: string;
|
|
731
742
|
}
|
|
732
|
-
/**
|
|
743
|
+
/**
|
|
744
|
+
* An immutable Rate Card version: a price change is a new version. One scheduled for the future
|
|
745
|
+
* may be retracted until it takes effect.
|
|
746
|
+
*/
|
|
733
747
|
interface CreditRateCard {
|
|
734
748
|
id: string;
|
|
735
749
|
/** 1, 2, 3... in the order versions were published (and take effect). */
|
|
736
750
|
version: number;
|
|
737
|
-
/** From when it prices new quotes and reservations made from items. */
|
|
751
|
+
/** From when it prices new quotes and reservations made from items, unless retracted before. */
|
|
738
752
|
effectiveAt: string;
|
|
753
|
+
/** When it was retracted, before `effectiveAt`; null unless retracted. It never takes effect. */
|
|
754
|
+
retractedAt: string | null;
|
|
739
755
|
/** Its prices, by action. */
|
|
740
756
|
items: CreditRateCardItem[];
|
|
741
757
|
createdAt: string;
|
|
@@ -744,7 +760,7 @@ interface CreditRateCard {
|
|
|
744
760
|
interface PublishCreditRateCardInput {
|
|
745
761
|
/**
|
|
746
762
|
* When it takes effect (ISO 8601 with a timezone): now when omitted; never in the past, nor
|
|
747
|
-
* before the version before it takes effect.
|
|
763
|
+
* before the last version before it not retracted takes effect.
|
|
748
764
|
*/
|
|
749
765
|
effectiveAt?: string;
|
|
750
766
|
items: Array<{
|
|
@@ -933,6 +949,20 @@ interface CreatePortalSessionInput {
|
|
|
933
949
|
* `localhost` is also accepted over `http`, on any port, in either environment.
|
|
934
950
|
*/
|
|
935
951
|
returnUrl?: string;
|
|
952
|
+
/**
|
|
953
|
+
* The host to open the session on. Omitted: the Project's primary custom domain when it can take
|
|
954
|
+
* sessions right now, otherwise the shared portal host - so a merchant's DNS trouble never stops
|
|
955
|
+
* billing from opening. A hostname: that custom domain of the Project, or a 422
|
|
956
|
+
* `hosted_domain_unavailable` when it cannot take sessions. `null`: the shared portal host.
|
|
957
|
+
* Sandbox sessions always use the shared portal host.
|
|
958
|
+
*/
|
|
959
|
+
domain?: string | null;
|
|
960
|
+
/**
|
|
961
|
+
* Mint for Billow's hosted portal only: the URL's token opens the portal link once and is good
|
|
962
|
+
* for nothing else - never a bearer for your own surface's `/portal` calls. Sessions on a custom
|
|
963
|
+
* domain always behave this way.
|
|
964
|
+
*/
|
|
965
|
+
hostedOnly?: boolean;
|
|
936
966
|
}
|
|
937
967
|
/**
|
|
938
968
|
* The minted portal session: redirect the Customer to `url` at once. Its token is a single-use
|
|
@@ -996,17 +1026,30 @@ interface PortalView {
|
|
|
996
1026
|
};
|
|
997
1027
|
flow: PortalSessionFlow;
|
|
998
1028
|
returnUrl: string | null;
|
|
999
|
-
subscriptions:
|
|
1029
|
+
subscriptions: PortalSubscription[];
|
|
1000
1030
|
usage: CustomerUsage[];
|
|
1001
1031
|
paymentMethods: SavedPaymentMethod[];
|
|
1002
1032
|
}
|
|
1033
|
+
/**
|
|
1034
|
+
* A scheduled plan change as the Customer sees it: `blocked` says only that it is on hold and
|
|
1035
|
+
* since when - the reason is for the Operator (`ScheduledSubscriptionChange.blocked`).
|
|
1036
|
+
*/
|
|
1037
|
+
type PortalScheduledChange = Omit<ScheduledSubscriptionChange, "blocked"> & {
|
|
1038
|
+
blocked: {
|
|
1039
|
+
since: string;
|
|
1040
|
+
} | null;
|
|
1041
|
+
};
|
|
1042
|
+
/** A subscription as the portal lists it. */
|
|
1043
|
+
type PortalSubscription = Omit<SubscriptionListItem, "scheduledChange"> & {
|
|
1044
|
+
scheduledChange: PortalScheduledChange | null;
|
|
1045
|
+
};
|
|
1003
1046
|
/** The subscription's state after a portal cancel (scheduled at period end). */
|
|
1004
1047
|
interface PortalSubscriptionStatus {
|
|
1005
1048
|
id: string;
|
|
1006
1049
|
status: string;
|
|
1007
1050
|
cancelAtPeriodEnd: boolean;
|
|
1008
1051
|
currentPeriodEnd: string | null;
|
|
1009
|
-
scheduledChange:
|
|
1052
|
+
scheduledChange: PortalScheduledChange | null;
|
|
1010
1053
|
}
|
|
1011
1054
|
/** The outcome of a portal-driven plan change (PRD-15). */
|
|
1012
1055
|
interface PortalPlanChange {
|
|
@@ -1156,6 +1199,18 @@ interface CustomerDataExport {
|
|
|
1156
1199
|
createdAt: string;
|
|
1157
1200
|
updatedAt: string;
|
|
1158
1201
|
}>;
|
|
1202
|
+
/** Credit notes voided on those refunds (the provider reversed the refund), as issued. */
|
|
1203
|
+
voidedCreditNotes: Array<{
|
|
1204
|
+
id: string;
|
|
1205
|
+
refundId: string;
|
|
1206
|
+
number: string;
|
|
1207
|
+
amount: number;
|
|
1208
|
+
subtotal: number;
|
|
1209
|
+
tax: number;
|
|
1210
|
+
currency: string;
|
|
1211
|
+
issuedAt: string;
|
|
1212
|
+
voidedAt: string;
|
|
1213
|
+
}>;
|
|
1159
1214
|
usageEvents: Array<{
|
|
1160
1215
|
id: string;
|
|
1161
1216
|
featureId: string;
|
|
@@ -1237,6 +1292,15 @@ interface CustomerAnonymizationResult {
|
|
|
1237
1292
|
* - `conflict_on_charge`: another refund of the charge has an unresolved provider conflict.
|
|
1238
1293
|
*/
|
|
1239
1294
|
type RefundReviewReason = "unconfirmed" | "unconfirmable_without_provider_id" | "provider_conflict" | "conflict_on_charge";
|
|
1295
|
+
/** A credit note voided on a refund, exactly as it was issued (see `Refund.voidedCreditNotes`). */
|
|
1296
|
+
interface VoidedCreditNote {
|
|
1297
|
+
number: string;
|
|
1298
|
+
amount: number;
|
|
1299
|
+
subtotal: number;
|
|
1300
|
+
tax: number;
|
|
1301
|
+
issuedAt: string;
|
|
1302
|
+
voidedAt: string;
|
|
1303
|
+
}
|
|
1240
1304
|
interface Refund {
|
|
1241
1305
|
id: string;
|
|
1242
1306
|
chargeId: string;
|
|
@@ -1257,12 +1321,20 @@ interface Refund {
|
|
|
1257
1321
|
/** Why it needs (or needed) review - see `RefundReviewReason`. */
|
|
1258
1322
|
reviewReason: RefundReviewReason | null;
|
|
1259
1323
|
providerRefundId: string | null;
|
|
1324
|
+
/** The refund's credit note in force (null when it has none, e.g. once it was voided). */
|
|
1260
1325
|
creditNoteNumber: string | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Credit notes issued for this refund and voided since: the provider reversed the refund after it
|
|
1328
|
+
* succeeded (the customer's bank returned the money) and it was resolved as not refunded. Each is
|
|
1329
|
+
* kept exactly as issued; download one with `charges.voidedCreditNote`, badged VOID.
|
|
1330
|
+
*/
|
|
1331
|
+
voidedCreditNotes: VoidedCreditNote[];
|
|
1261
1332
|
/**
|
|
1262
1333
|
* Set while the provider's own answer, which arrived after the refund was already settled the
|
|
1263
|
-
* other way (e.g. `succeeded` for a refund resolved as not refunded
|
|
1264
|
-
*
|
|
1265
|
-
*
|
|
1334
|
+
* other way (e.g. `succeeded` for a refund resolved as not refunded, or `failed` for a refund
|
|
1335
|
+
* the provider reversed after it succeeded), is unresolved: the money moved differently from
|
|
1336
|
+
* what `status` says. The charge is held (no new refunds) until it is resolved with
|
|
1337
|
+
* `charges.resolveRefund`, which clears it.
|
|
1266
1338
|
*/
|
|
1267
1339
|
providerConflictStatus: RefundStatus | null;
|
|
1268
1340
|
/** When that contrary answer arrived (kept after the conflict is resolved). */
|
|
@@ -1418,6 +1490,11 @@ declare function createChargesResource(ctx: RequestContext): {
|
|
|
1418
1490
|
receipt: (id: string, options?: CallOptions) => Promise<ArrayBuffer>;
|
|
1419
1491
|
/** Download the immutable credit note for a succeeded refund. */
|
|
1420
1492
|
creditNote: (chargeId: string, refundId: string, options?: CallOptions) => Promise<ArrayBuffer>;
|
|
1493
|
+
/**
|
|
1494
|
+
* Download a credit note voided on a refund (one of its `voidedCreditNotes`), exactly as it was
|
|
1495
|
+
* issued and badged VOID.
|
|
1496
|
+
*/
|
|
1497
|
+
voidedCreditNote: (chargeId: string, refundId: string, creditNoteNumber: string, options?: CallOptions) => Promise<ArrayBuffer>;
|
|
1421
1498
|
/**
|
|
1422
1499
|
* Refund a succeeded charge: `{ amount }` (minor units) for a partial, `{}` for its whole
|
|
1423
1500
|
* remaining balance. The `idempotencyKey` is required and must identify this one refund
|
|
@@ -1442,7 +1519,10 @@ declare function createChargesResource(ctx: RequestContext): {
|
|
|
1442
1519
|
/**
|
|
1443
1520
|
* Record the outcome you verified in the provider dashboard for a refund awaiting review
|
|
1444
1521
|
* (`needsReview`): `succeeded` settles it with a credit note, `failed` releases its amount.
|
|
1445
|
-
* A refund with a provider conflict (`providerConflictStatus`) resolves only
|
|
1522
|
+
* A refund with a provider conflict (`providerConflictStatus`) recorded `failed` resolves only
|
|
1523
|
+
* as `succeeded`; one recorded `succeeded` that the provider later reported failed (a reversal:
|
|
1524
|
+
* the customer's bank returned the money) resolves either way, `failed` making its amount
|
|
1525
|
+
* refundable again.
|
|
1446
1526
|
*/
|
|
1447
1527
|
resolveRefund: (chargeId: string, refundId: string, input: ResolveRefundInput, options?: CallOptions) => Promise<Refund>;
|
|
1448
1528
|
};
|
|
@@ -1466,6 +1546,23 @@ declare function createCreditsResource(ctx: RequestContext): {
|
|
|
1466
1546
|
*/
|
|
1467
1547
|
create: (input: CreateCreditGrantInput, options: IdempotentRequestOptions) => Promise<CreditGrantRequestResult>;
|
|
1468
1548
|
};
|
|
1549
|
+
accounts: {
|
|
1550
|
+
/**
|
|
1551
|
+
* Freeze a customer's Credit Account (by external id): it takes no new reservations - a
|
|
1552
|
+
* reserve throws `account_frozen` (423) - until unfrozen, while holds already made still
|
|
1553
|
+
* commit and release, and grants, top-ups, reversals and included credits still fund it.
|
|
1554
|
+
* Safe to retry: freezing a frozen account changes nothing and answers `changed: false`. A
|
|
1555
|
+
* customer with no account yet gets one, frozen. Throws `account_closed` (409) for an erased
|
|
1556
|
+
* customer.
|
|
1557
|
+
*/
|
|
1558
|
+
freeze: (customer: string, options?: CallOptions) => Promise<CreditAccount>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Unfreeze a customer's Credit Account (by external id): it takes reservations again. Safe to
|
|
1561
|
+
* retry: unfreezing an account that is not frozen changes nothing and answers
|
|
1562
|
+
* `changed: false`.
|
|
1563
|
+
*/
|
|
1564
|
+
unfreeze: (customer: string, options?: CallOptions) => Promise<CreditAccount>;
|
|
1565
|
+
};
|
|
1469
1566
|
packs: {
|
|
1470
1567
|
/**
|
|
1471
1568
|
* The Credit Packs a customer can buy in `currency` (ISO 4217), cheapest first: credits and
|
|
@@ -1571,13 +1668,22 @@ declare function createCreditsResource(ctx: RequestContext): {
|
|
|
1571
1668
|
/**
|
|
1572
1669
|
* Publish a new Rate Card version: what each Credit Action costs, as
|
|
1573
1670
|
* `ceil(units * unitPrice / perUnits)` microcredits a line. Versions are immutable - a price
|
|
1574
|
-
* change is a new version - and take effect in order, at `effectiveAt` (now when omitted)
|
|
1671
|
+
* change is a new version - and take effect in order, at `effectiveAt` (now when omitted),
|
|
1672
|
+
* unless retracted before then.
|
|
1575
1673
|
*/
|
|
1576
1674
|
publish: (input: PublishCreditRateCardInput, options?: CallOptions) => Promise<CreditRateCard>;
|
|
1577
1675
|
/** The version in effect now (`not_found` before the first takes effect). */
|
|
1578
1676
|
current: (options?: CallOptions) => Promise<CreditRateCard>;
|
|
1579
1677
|
/** One version, by its number. */
|
|
1580
1678
|
get: (version: number, options?: CallOptions) => Promise<CreditRateCard>;
|
|
1679
|
+
/**
|
|
1680
|
+
* Retract a version before it takes effect: it never does (`retractedAt` is set), and
|
|
1681
|
+
* versions published after it take effect in order after the last one not retracted - so a
|
|
1682
|
+
* scheduled price change no longer holds back an earlier correction. Safe to retry: a
|
|
1683
|
+
* retracted version answers as retracted. A version already in effect, current or
|
|
1684
|
+
* superseded, throws `conflict` (409, `details.reason: "already_effective"`).
|
|
1685
|
+
*/
|
|
1686
|
+
retract: (version: number, options?: CallOptions) => Promise<CreditRateCard>;
|
|
1581
1687
|
/**
|
|
1582
1688
|
* The published versions, newest first. Auto-paginating by cursor: `await` the first page,
|
|
1583
1689
|
* `for await (…)` every version, or `.listAll()` to collect them.
|
|
@@ -2304,6 +2410,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2304
2410
|
productSlug: string;
|
|
2305
2411
|
productName: string;
|
|
2306
2412
|
effectiveAt: string | null;
|
|
2413
|
+
blocked: {
|
|
2414
|
+
reason: string;
|
|
2415
|
+
since: string;
|
|
2416
|
+
} | null;
|
|
2307
2417
|
} | null;
|
|
2308
2418
|
canceledAt: string | null;
|
|
2309
2419
|
remainingCycles: number | null;
|
|
@@ -2354,6 +2464,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2354
2464
|
productSlug: string;
|
|
2355
2465
|
productName: string;
|
|
2356
2466
|
effectiveAt: string | null;
|
|
2467
|
+
blocked: {
|
|
2468
|
+
reason: string;
|
|
2469
|
+
since: string;
|
|
2470
|
+
} | null;
|
|
2357
2471
|
} | null;
|
|
2358
2472
|
canceledAt: string | null;
|
|
2359
2473
|
remainingCycles: number | null;
|
|
@@ -2382,6 +2496,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2382
2496
|
productSlug: string;
|
|
2383
2497
|
productName: string;
|
|
2384
2498
|
effectiveAt: string | null;
|
|
2499
|
+
blocked: {
|
|
2500
|
+
reason: string;
|
|
2501
|
+
since: string;
|
|
2502
|
+
} | null;
|
|
2385
2503
|
} | null;
|
|
2386
2504
|
canceledAt: string | null;
|
|
2387
2505
|
remainingCycles: number | null;
|
|
@@ -2416,6 +2534,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2416
2534
|
productSlug: string;
|
|
2417
2535
|
productName: string;
|
|
2418
2536
|
effectiveAt: string | null;
|
|
2537
|
+
blocked: {
|
|
2538
|
+
reason: string;
|
|
2539
|
+
since: string;
|
|
2540
|
+
} | null;
|
|
2419
2541
|
} | null;
|
|
2420
2542
|
canceledAt: string | null;
|
|
2421
2543
|
remainingCycles: number | null;
|
|
@@ -2445,6 +2567,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2445
2567
|
productSlug: string;
|
|
2446
2568
|
productName: string;
|
|
2447
2569
|
effectiveAt: string | null;
|
|
2570
|
+
blocked: {
|
|
2571
|
+
reason: string;
|
|
2572
|
+
since: string;
|
|
2573
|
+
} | null;
|
|
2448
2574
|
} | null;
|
|
2449
2575
|
canceledAt: string | null;
|
|
2450
2576
|
remainingCycles: number | null;
|
|
@@ -2468,6 +2594,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2468
2594
|
productSlug: string;
|
|
2469
2595
|
productName: string;
|
|
2470
2596
|
effectiveAt: string | null;
|
|
2597
|
+
blocked: {
|
|
2598
|
+
reason: string;
|
|
2599
|
+
since: string;
|
|
2600
|
+
} | null;
|
|
2471
2601
|
} | null;
|
|
2472
2602
|
canceledAt: string | null;
|
|
2473
2603
|
remainingCycles: number | null;
|
|
@@ -2494,6 +2624,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2494
2624
|
productSlug: string;
|
|
2495
2625
|
productName: string;
|
|
2496
2626
|
effectiveAt: string | null;
|
|
2627
|
+
blocked: {
|
|
2628
|
+
reason: string;
|
|
2629
|
+
since: string;
|
|
2630
|
+
} | null;
|
|
2497
2631
|
} | null;
|
|
2498
2632
|
canceledAt: string | null;
|
|
2499
2633
|
remainingCycles: number | null;
|
|
@@ -2523,6 +2657,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2523
2657
|
productSlug: string;
|
|
2524
2658
|
productName: string;
|
|
2525
2659
|
effectiveAt: string | null;
|
|
2660
|
+
blocked: {
|
|
2661
|
+
reason: string;
|
|
2662
|
+
since: string;
|
|
2663
|
+
} | null;
|
|
2526
2664
|
} | null;
|
|
2527
2665
|
canceledAt: string | null;
|
|
2528
2666
|
remainingCycles: number | null;
|
|
@@ -2552,6 +2690,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2552
2690
|
productSlug: string;
|
|
2553
2691
|
productName: string;
|
|
2554
2692
|
effectiveAt: string | null;
|
|
2693
|
+
blocked: {
|
|
2694
|
+
reason: string;
|
|
2695
|
+
since: string;
|
|
2696
|
+
} | null;
|
|
2555
2697
|
} | null;
|
|
2556
2698
|
canceledAt: string | null;
|
|
2557
2699
|
remainingCycles: number | null;
|
|
@@ -2579,6 +2721,10 @@ declare function createSubscriptionsResource(ctx: RequestContext): {
|
|
|
2579
2721
|
productSlug: string;
|
|
2580
2722
|
productName: string;
|
|
2581
2723
|
effectiveAt: string | null;
|
|
2724
|
+
blocked: {
|
|
2725
|
+
reason: string;
|
|
2726
|
+
since: string;
|
|
2727
|
+
} | null;
|
|
2582
2728
|
} | null;
|
|
2583
2729
|
canceledAt: string | null;
|
|
2584
2730
|
remainingCycles: number | null;
|
|
@@ -3007,4 +3153,4 @@ declare class BillowPortal {
|
|
|
3007
3153
|
};
|
|
3008
3154
|
}
|
|
3009
3155
|
|
|
3010
|
-
export { AttachResult, BILLOW_ERROR_CODES, Billow, BillowApiError, type BillowErrorCode, BillowOptions, BillowPortal, BillowPublishable, type BusinessProfile, CallOptions, type CatalogItem, Charge, type ChargeListItem, type ChargeListParams, type ChargeSearchHit, ChargeStatus, CheckResult, type CheckoutMethodInfo, type ConfigField, type ConfigFieldOption, type ConfigFieldType, Coupon, CreateChargeInput, CreateCouponInput, CreateCreditGrantInput, CreateCreditIncludedRuleInput, CreateCreditPackInput, type CreateCreditQuoteInput, type CreateCreditReservationInput, CreateCreditTopUpInput, CreateHostedDomainInput, CreateMerchantInitiatedChargeInput, type CreatePortalSessionInput, CreateProductInput, CreateSubscriptionInput, CreateUsageAlertInput, type CreateWebhookEndpointInput, type CredentialSet, CreditBalance, type CreditDimensions, CreditGrant, CreditGrantRequestResult, CreditIncludedRule, CreditIncludedWindow, CreditIncludedWindowListParams, CreditLedgerEntry, type CreditLineItem, CreditPack, CreditPacks, type CreditPricedLine, type CreditQuote, type CreditRateCard, type CreditRateCardItem, type CreditReservation, type CreditReservationListParams, type CreditReservationPage, type CreditReservationRequestResult, type CreditReservationStatus, type CreditReversal, type CreditReversalRequestResult, CreditThresholdLevel, CreditTopUp, CreditTopUpListParams, CreditTopUpRequestResult, CreditUsage, CreditUsageParams, type CursorListParams, type CursorListPromise, type CursorPaginated, Customer, type CustomerAnonymizationResult, type CustomerCreditsExport, type CustomerDataExport, type CustomerListItem, type CustomerListParams, type CustomerOverview, type CustomerSearchHit, type CustomerUsage, type CustomerUsageDetail, type EmailDeliveryListItem, type EmailDeliveryListParams, type EmailDeliveryStatus, type EmailTemplateSetting, EntitlementView, type ExchangeRate, type ExportJsonValue, type ExternalPaymentMethod, type ExternalPaymentResult, Feature, FeatureKind, IdempotentRequestOptions, type InboundWebhookListItem, type InboundWebhookListParams, type InboundWebhookOutcome, type IntegrationDefinition, type IntegrationKind, type IntegrationTier, type Invoice, type InvoiceDetail, type InvoiceLineItem, type InvoiceListItem, type InvoiceListParams, type InvoiceSearchHit, InvoiceStatus, type ListParams, type ListPromise, MeterConfig, type MetricsOverview, type MetricsParams, type MetricsRollup, MigrationResult, type OutboxEventListItem, type OutboxEventListParams, type OutboxEventStatus, type Paginated, PayInvoiceInput, type PaymentMethod, PaymentMethodStatus, type PaymentProviderDefinition, type PortalCardSetupResult, type PortalCheckout, type PortalPlanChange, type PortalSession, type PortalSessionExchange, type PortalSessionExchangeInput, type PortalSessionFlow, type PortalSessionInfo, type PortalSubscriptionStatus, type PortalView, type ProviderCredentialSummary, type ProviderVerifyResult, type ProviderVerifyTarget, type ProviderVerifyTargetResult, type PublishCreditRateCardInput, type RecordExternalPaymentInput, type Refund, type RefundChargeInput, type RefundRequestResult, type RefundReviewReason, RefundStatus, RequestOptions, type ResolveRefundInput, type ReverseCreditConsumptionInput, SavedPaymentMethod, type ScheduledSubscriptionChange, type SearchResults, type SubscriptionListItem, type SubscriptionListParams, type SubscriptionSearchHit, SubscriptionStatus, TaxBehavior, type TimeseriesInterval, type TimeseriesMetric, type TimeseriesParams, type TimeseriesPoint, type TimeseriesResult, TrackResult, UnappliedPaymentReason, type UpdateBusinessProfileInput, UpdateCreditIncludedRuleInput, UpdateCreditPackInput, type UpdateEmailTemplateInput, UpdateFeatureInput, UpdateProductInput, type UpdateWebhookEndpointInput, type UpsertCredentialsInput, UsageAlert, type WebhookDelivery, WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointWithSecret, type Whoami, currencyExponent, formatMoney, isSecretField, toMajorUnits, toMinorUnits };
|
|
3156
|
+
export { AttachResult, BILLOW_ERROR_CODES, Billow, BillowApiError, type BillowErrorCode, BillowOptions, BillowPortal, BillowPublishable, type BusinessProfile, CallOptions, type CatalogItem, Charge, type ChargeListItem, type ChargeListParams, type ChargeSearchHit, ChargeStatus, CheckResult, type CheckoutMethodInfo, type ConfigField, type ConfigFieldOption, type ConfigFieldType, Coupon, CreateChargeInput, CreateCouponInput, CreateCreditGrantInput, CreateCreditIncludedRuleInput, CreateCreditPackInput, type CreateCreditQuoteInput, type CreateCreditReservationInput, CreateCreditTopUpInput, CreateHostedDomainInput, CreateMerchantInitiatedChargeInput, type CreatePortalSessionInput, CreateProductInput, CreateSubscriptionInput, CreateUsageAlertInput, type CreateWebhookEndpointInput, type CredentialSet, CreditAccount, CreditBalance, type CreditDimensions, CreditGrant, CreditGrantRequestResult, CreditIncludedRule, CreditIncludedWindow, CreditIncludedWindowListParams, CreditLedgerEntry, type CreditLineItem, CreditPack, CreditPacks, type CreditPricedLine, type CreditQuote, type CreditRateCard, type CreditRateCardItem, type CreditReservation, type CreditReservationListParams, type CreditReservationPage, type CreditReservationRequestResult, type CreditReservationStatus, type CreditReversal, type CreditReversalRequestResult, CreditThresholdLevel, CreditTopUp, CreditTopUpListParams, CreditTopUpRequestResult, CreditUsage, CreditUsageParams, type CursorListParams, type CursorListPromise, type CursorPaginated, Customer, type CustomerAnonymizationResult, type CustomerCreditsExport, type CustomerDataExport, type CustomerListItem, type CustomerListParams, type CustomerOverview, type CustomerSearchHit, type CustomerUsage, type CustomerUsageDetail, type EmailDeliveryListItem, type EmailDeliveryListParams, type EmailDeliveryStatus, type EmailTemplateSetting, EntitlementView, type ExchangeRate, type ExportJsonValue, type ExternalPaymentMethod, type ExternalPaymentResult, Feature, FeatureKind, IdempotentRequestOptions, type InboundWebhookListItem, type InboundWebhookListParams, type InboundWebhookOutcome, type IntegrationDefinition, type IntegrationKind, type IntegrationTier, type Invoice, type InvoiceDetail, type InvoiceLineItem, type InvoiceListItem, type InvoiceListParams, type InvoiceSearchHit, InvoiceStatus, type ListParams, type ListPromise, MeterConfig, type MetricsOverview, type MetricsParams, type MetricsRollup, MigrationResult, type OutboxEventListItem, type OutboxEventListParams, type OutboxEventStatus, type Paginated, PayInvoiceInput, type PaymentMethod, PaymentMethodStatus, type PaymentProviderDefinition, type PortalCardSetupResult, type PortalCheckout, type PortalPlanChange, type PortalScheduledChange, type PortalSession, type PortalSessionExchange, type PortalSessionExchangeInput, type PortalSessionFlow, type PortalSessionInfo, type PortalSubscription, type PortalSubscriptionStatus, type PortalView, type ProviderCredentialSummary, type ProviderVerifyResult, type ProviderVerifyTarget, type ProviderVerifyTargetResult, type PublishCreditRateCardInput, type RecordExternalPaymentInput, type Refund, type RefundChargeInput, type RefundRequestResult, type RefundReviewReason, RefundStatus, RequestOptions, type ResolveRefundInput, type ReverseCreditConsumptionInput, SavedPaymentMethod, type ScheduledSubscriptionChange, type SearchResults, type SubscriptionListItem, type SubscriptionListParams, type SubscriptionSearchHit, SubscriptionStatus, TaxBehavior, type TimeseriesInterval, type TimeseriesMetric, type TimeseriesParams, type TimeseriesPoint, type TimeseriesResult, TrackResult, UnappliedPaymentReason, type UpdateBusinessProfileInput, UpdateCreditIncludedRuleInput, UpdateCreditPackInput, type UpdateEmailTemplateInput, UpdateFeatureInput, UpdateProductInput, type UpdateWebhookEndpointInput, type UpsertCredentialsInput, UsageAlert, type VoidedCreditNote, type WebhookDelivery, WebhookDeliveryStatus, type WebhookEndpoint, type WebhookEndpointWithSecret, type Whoami, currencyExponent, formatMoney, isSecretField, toMajorUnits, toMinorUnits };
|