@paid-ai/paid-node 1.3.0 → 1.6.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/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +30 -20
- package/dist/cjs/api/resources/costs/client/Client.d.ts +38 -0
- package/dist/cjs/api/resources/costs/client/Client.js +139 -0
- package/dist/cjs/api/resources/costs/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/costs/client/index.js +17 -0
- package/dist/cjs/api/resources/costs/client/requests/CostIngestRequest.d.ts +17 -0
- package/dist/cjs/api/resources/costs/client/requests/CostIngestRequest.js +3 -0
- package/dist/cjs/api/resources/costs/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/costs/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/costs/index.d.ts +1 -0
- package/dist/cjs/api/resources/costs/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +5 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +1 -0
- package/dist/cjs/api/resources/pricing/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/pricing/client/Client.js +284 -0
- package/dist/cjs/api/resources/pricing/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricing/client/index.js +17 -0
- package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.d.ts +9 -0
- package/dist/cjs/api/resources/pricing/client/requests/GetPricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.d.ts +10 -0
- package/dist/cjs/api/resources/pricing/client/requests/ListPricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.d.ts +20 -0
- package/dist/cjs/api/resources/pricing/client/requests/UpdatePricingRequest.js +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/pricing/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pricing/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricing/index.js +17 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.d.ts +85 -0
- package/dist/cjs/api/resources/valueReceipts/client/Client.js +362 -1
- package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.ts +7 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.ts +28 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.ts +9 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.js +3 -0
- package/dist/cjs/api/resources/valueReceipts/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/valueReceipts/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/index.js +1 -0
- package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.ts +5 -0
- package/dist/cjs/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.js +8 -0
- package/dist/cjs/api/resources/valueReceipts/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/valueReceipts/types/index.js +17 -0
- package/dist/cjs/api/types/Cost.d.ts +10 -0
- package/dist/cjs/api/types/Cost.js +3 -0
- package/dist/cjs/api/types/CostIngestResponse.d.ts +6 -0
- package/dist/cjs/api/types/CostIngestResponse.js +3 -0
- package/dist/cjs/api/types/CostOverride.d.ts +8 -0
- package/dist/cjs/api/types/CostOverride.js +3 -0
- package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +1 -0
- package/dist/cjs/api/types/CreditBalance.d.ts +6 -0
- package/dist/cjs/api/types/CreditBenefitInput.d.ts +30 -0
- package/dist/cjs/api/types/CreditBenefitInput.js +20 -0
- package/dist/cjs/api/types/CreditBenefitOutput.d.ts +13 -0
- package/dist/cjs/api/types/CreditBenefitOutput.js +3 -0
- package/dist/cjs/api/types/CreditGrant.d.ts +11 -0
- package/dist/cjs/api/types/CreditGrant.js +3 -0
- package/dist/cjs/api/types/OneTimePerUnitInput.d.ts +21 -0
- package/dist/cjs/api/types/OneTimePerUnitInput.js +18 -0
- package/dist/cjs/api/types/Order.d.ts +2 -0
- package/dist/cjs/api/types/OrderBillingFrequencyOverride.d.ts +14 -0
- package/dist/cjs/api/types/OrderBillingFrequencyOverride.js +14 -0
- package/dist/cjs/api/types/PrecomputedCost.d.ts +17 -0
- package/dist/cjs/api/types/PrecomputedCost.js +3 -0
- package/dist/cjs/api/types/PricingInput.d.ts +46 -0
- package/dist/cjs/api/types/PricingInput.js +3 -0
- package/dist/cjs/api/types/PricingListResponse.d.ts +4 -0
- package/dist/cjs/api/types/PricingListResponse.js +3 -0
- package/dist/cjs/api/types/PricingOutput.d.ts +36 -0
- package/dist/cjs/api/types/PricingOutput.js +23 -0
- package/dist/cjs/api/types/PricingPricePointOutput.d.ts +29 -0
- package/dist/cjs/api/types/PricingPricePointOutput.js +17 -0
- package/dist/cjs/api/types/PricingResponse.d.ts +7 -0
- package/dist/cjs/api/types/PricingResponse.js +3 -0
- package/dist/cjs/api/types/ProductAttribution.d.ts +2 -0
- package/dist/cjs/api/types/ProductAttribution.js +3 -0
- package/dist/cjs/api/types/RecurringGraduatedInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringGraduatedInput.js +18 -0
- package/dist/cjs/api/types/RecurringPerUnitInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringPerUnitInput.js +18 -0
- package/dist/cjs/api/types/RecurringPercentOfTotalInput.d.ts +23 -0
- package/dist/cjs/api/types/RecurringPercentOfTotalInput.js +18 -0
- package/dist/cjs/api/types/RecurringVolumeInput.d.ts +22 -0
- package/dist/cjs/api/types/RecurringVolumeInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedGraduatedInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedGraduatedInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedPerUnitInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedPerUnitInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.d.ts +25 -0
- package/dist/cjs/api/types/SeatBasedPrepaidCreditsInput.js +18 -0
- package/dist/cjs/api/types/SeatBasedVolumeInput.d.ts +22 -0
- package/dist/cjs/api/types/SeatBasedVolumeInput.js +18 -0
- package/dist/cjs/api/types/SimplePricePoint.d.ts +29 -0
- package/dist/cjs/api/types/SimplePricePoint.js +17 -0
- package/dist/cjs/api/types/SuccessResponse.d.ts +3 -0
- package/dist/cjs/api/types/SuccessResponse.js +3 -0
- package/dist/cjs/api/types/TieredPricePoint.d.ts +29 -0
- package/dist/cjs/api/types/TieredPricePoint.js +17 -0
- package/dist/cjs/api/types/TokenUsage.d.ts +12 -0
- package/dist/cjs/api/types/TokenUsage.js +3 -0
- package/dist/cjs/api/types/UsageCost.d.ts +15 -0
- package/dist/cjs/api/types/UsageCost.js +3 -0
- package/dist/cjs/api/types/UsageCostPlusInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageCostPlusInput.js +18 -0
- package/dist/cjs/api/types/UsageGraduatedInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageGraduatedInput.js +18 -0
- package/dist/cjs/api/types/UsagePerUnitInput.d.ts +23 -0
- package/dist/cjs/api/types/UsagePerUnitInput.js +18 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.d.ts +26 -0
- package/dist/cjs/api/types/UsagePrepaidCreditsInput.js +18 -0
- package/dist/cjs/api/types/UsageVolumeInput.d.ts +23 -0
- package/dist/cjs/api/types/UsageVolumeInput.js +18 -0
- package/dist/cjs/api/types/ValueReceiptDetail.d.ts +2 -0
- package/dist/cjs/api/types/ValueReceiptSummary.d.ts +2 -0
- package/dist/cjs/api/types/ValueReceiptSyncResponse.d.ts +6 -0
- package/dist/cjs/api/types/ValueReceiptSyncResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +34 -0
- package/dist/cjs/api/types/index.js +34 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +12 -2
- package/dist/esm/api/resources/costs/client/Client.d.mts +38 -0
- package/dist/esm/api/resources/costs/client/Client.mjs +102 -0
- package/dist/esm/api/resources/costs/client/index.d.mts +1 -0
- package/dist/esm/api/resources/costs/client/index.mjs +1 -0
- package/dist/esm/api/resources/costs/client/requests/CostIngestRequest.d.mts +17 -0
- package/dist/esm/api/resources/costs/client/requests/CostIngestRequest.mjs +2 -0
- package/dist/esm/api/resources/costs/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/costs/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/costs/index.d.mts +1 -0
- package/dist/esm/api/resources/costs/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +5 -0
- package/dist/esm/api/resources/index.mjs +5 -0
- package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +1 -0
- package/dist/esm/api/resources/pricing/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/pricing/client/Client.mjs +247 -0
- package/dist/esm/api/resources/pricing/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pricing/client/index.mjs +1 -0
- package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.d.mts +9 -0
- package/dist/esm/api/resources/pricing/client/requests/GetPricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.d.mts +10 -0
- package/dist/esm/api/resources/pricing/client/requests/ListPricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.d.mts +20 -0
- package/dist/esm/api/resources/pricing/client/requests/UpdatePricingRequest.mjs +2 -0
- package/dist/esm/api/resources/pricing/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/pricing/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pricing/index.d.mts +1 -0
- package/dist/esm/api/resources/pricing/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.d.mts +85 -0
- package/dist/esm/api/resources/valueReceipts/client/Client.mjs +362 -1
- package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ArchiveValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/ListValueReceiptsRequest.d.mts +7 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/RefreshValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SealValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.d.mts +28 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/SyncValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.d.mts +9 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/UnarchiveValueReceiptRequest.mjs +2 -0
- package/dist/esm/api/resources/valueReceipts/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/valueReceipts/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/index.mjs +1 -0
- package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.d.mts +5 -0
- package/dist/esm/api/resources/valueReceipts/types/ListValueReceiptsRequestArchived.mjs +5 -0
- package/dist/esm/api/resources/valueReceipts/types/index.d.mts +1 -0
- package/dist/esm/api/resources/valueReceipts/types/index.mjs +1 -0
- package/dist/esm/api/types/Cost.d.mts +10 -0
- package/dist/esm/api/types/Cost.mjs +2 -0
- package/dist/esm/api/types/CostIngestResponse.d.mts +6 -0
- package/dist/esm/api/types/CostIngestResponse.mjs +2 -0
- package/dist/esm/api/types/CostOverride.d.mts +8 -0
- package/dist/esm/api/types/CostOverride.mjs +2 -0
- package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +1 -0
- package/dist/esm/api/types/CreditBalance.d.mts +6 -0
- package/dist/esm/api/types/CreditBenefitInput.d.mts +30 -0
- package/dist/esm/api/types/CreditBenefitInput.mjs +17 -0
- package/dist/esm/api/types/CreditBenefitOutput.d.mts +13 -0
- package/dist/esm/api/types/CreditBenefitOutput.mjs +2 -0
- package/dist/esm/api/types/CreditGrant.d.mts +11 -0
- package/dist/esm/api/types/CreditGrant.mjs +2 -0
- package/dist/esm/api/types/OneTimePerUnitInput.d.mts +21 -0
- package/dist/esm/api/types/OneTimePerUnitInput.mjs +15 -0
- package/dist/esm/api/types/Order.d.mts +2 -0
- package/dist/esm/api/types/OrderBillingFrequencyOverride.d.mts +14 -0
- package/dist/esm/api/types/OrderBillingFrequencyOverride.mjs +11 -0
- package/dist/esm/api/types/PrecomputedCost.d.mts +17 -0
- package/dist/esm/api/types/PrecomputedCost.mjs +2 -0
- package/dist/esm/api/types/PricingInput.d.mts +46 -0
- package/dist/esm/api/types/PricingInput.mjs +2 -0
- package/dist/esm/api/types/PricingListResponse.d.mts +4 -0
- package/dist/esm/api/types/PricingListResponse.mjs +2 -0
- package/dist/esm/api/types/PricingOutput.d.mts +36 -0
- package/dist/esm/api/types/PricingOutput.mjs +20 -0
- package/dist/esm/api/types/PricingPricePointOutput.d.mts +29 -0
- package/dist/esm/api/types/PricingPricePointOutput.mjs +14 -0
- package/dist/esm/api/types/PricingResponse.d.mts +7 -0
- package/dist/esm/api/types/PricingResponse.mjs +2 -0
- package/dist/esm/api/types/ProductAttribution.d.mts +2 -0
- package/dist/esm/api/types/ProductAttribution.mjs +2 -0
- package/dist/esm/api/types/RecurringGraduatedInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/RecurringPerUnitInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringPerUnitInput.mjs +15 -0
- package/dist/esm/api/types/RecurringPercentOfTotalInput.d.mts +23 -0
- package/dist/esm/api/types/RecurringPercentOfTotalInput.mjs +15 -0
- package/dist/esm/api/types/RecurringVolumeInput.d.mts +22 -0
- package/dist/esm/api/types/RecurringVolumeInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedGraduatedInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedPerUnitInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedPerUnitInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.d.mts +25 -0
- package/dist/esm/api/types/SeatBasedPrepaidCreditsInput.mjs +15 -0
- package/dist/esm/api/types/SeatBasedVolumeInput.d.mts +22 -0
- package/dist/esm/api/types/SeatBasedVolumeInput.mjs +15 -0
- package/dist/esm/api/types/SimplePricePoint.d.mts +29 -0
- package/dist/esm/api/types/SimplePricePoint.mjs +14 -0
- package/dist/esm/api/types/SuccessResponse.d.mts +3 -0
- package/dist/esm/api/types/SuccessResponse.mjs +2 -0
- package/dist/esm/api/types/TieredPricePoint.d.mts +29 -0
- package/dist/esm/api/types/TieredPricePoint.mjs +14 -0
- package/dist/esm/api/types/TokenUsage.d.mts +12 -0
- package/dist/esm/api/types/TokenUsage.mjs +2 -0
- package/dist/esm/api/types/UsageCost.d.mts +15 -0
- package/dist/esm/api/types/UsageCost.mjs +2 -0
- package/dist/esm/api/types/UsageCostPlusInput.d.mts +23 -0
- package/dist/esm/api/types/UsageCostPlusInput.mjs +15 -0
- package/dist/esm/api/types/UsageGraduatedInput.d.mts +23 -0
- package/dist/esm/api/types/UsageGraduatedInput.mjs +15 -0
- package/dist/esm/api/types/UsagePerUnitInput.d.mts +23 -0
- package/dist/esm/api/types/UsagePerUnitInput.mjs +15 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.d.mts +26 -0
- package/dist/esm/api/types/UsagePrepaidCreditsInput.mjs +15 -0
- package/dist/esm/api/types/UsageVolumeInput.d.mts +23 -0
- package/dist/esm/api/types/UsageVolumeInput.mjs +15 -0
- package/dist/esm/api/types/ValueReceiptDetail.d.mts +2 -0
- package/dist/esm/api/types/ValueReceiptSummary.d.mts +2 -0
- package/dist/esm/api/types/ValueReceiptSyncResponse.d.mts +6 -0
- package/dist/esm/api/types/ValueReceiptSyncResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +34 -0
- package/dist/esm/api/types/index.mjs +34 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +610 -7
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface CreditBenefitInput {
|
|
2
|
+
creditsCurrencyId: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
recipient?: CreditBenefitInput.Recipient;
|
|
5
|
+
isInfiniteTotal?: boolean;
|
|
6
|
+
allocationCadence?: CreditBenefitInput.AllocationCadence;
|
|
7
|
+
creditGrantTiming?: CreditBenefitInput.CreditGrantTiming;
|
|
8
|
+
overageUnitPrice?: number;
|
|
9
|
+
rolloverAmount?: number;
|
|
10
|
+
rolloverDuration?: number;
|
|
11
|
+
rolloverDurationUnit?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace CreditBenefitInput {
|
|
14
|
+
const Recipient: {
|
|
15
|
+
readonly Organization: "organization";
|
|
16
|
+
readonly Seat: "seat";
|
|
17
|
+
};
|
|
18
|
+
type Recipient = (typeof Recipient)[keyof typeof Recipient];
|
|
19
|
+
const AllocationCadence: {
|
|
20
|
+
readonly Upfront: "upfront";
|
|
21
|
+
readonly Monthly: "monthly";
|
|
22
|
+
};
|
|
23
|
+
type AllocationCadence = (typeof AllocationCadence)[keyof typeof AllocationCadence];
|
|
24
|
+
const CreditGrantTiming: {
|
|
25
|
+
readonly OnOrderActivation: "on_order_activation";
|
|
26
|
+
readonly OnPayment: "on_payment";
|
|
27
|
+
readonly OnInvoicePosted: "on_invoice_posted";
|
|
28
|
+
};
|
|
29
|
+
type CreditGrantTiming = (typeof CreditGrantTiming)[keyof typeof CreditGrantTiming];
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CreditBenefitInput = void 0;
|
|
5
|
+
var CreditBenefitInput;
|
|
6
|
+
(function (CreditBenefitInput) {
|
|
7
|
+
CreditBenefitInput.Recipient = {
|
|
8
|
+
Organization: "organization",
|
|
9
|
+
Seat: "seat",
|
|
10
|
+
};
|
|
11
|
+
CreditBenefitInput.AllocationCadence = {
|
|
12
|
+
Upfront: "upfront",
|
|
13
|
+
Monthly: "monthly",
|
|
14
|
+
};
|
|
15
|
+
CreditBenefitInput.CreditGrantTiming = {
|
|
16
|
+
OnOrderActivation: "on_order_activation",
|
|
17
|
+
OnPayment: "on_payment",
|
|
18
|
+
OnInvoicePosted: "on_invoice_posted",
|
|
19
|
+
};
|
|
20
|
+
})(CreditBenefitInput || (exports.CreditBenefitInput = CreditBenefitInput = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CreditBenefitOutput {
|
|
2
|
+
id: string;
|
|
3
|
+
creditsCurrencyId: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
recipient: string;
|
|
6
|
+
isInfiniteTotal: boolean;
|
|
7
|
+
allocationCadence: string;
|
|
8
|
+
creditGrantTiming?: string;
|
|
9
|
+
overageUnitPrice?: number;
|
|
10
|
+
rolloverAmount?: number;
|
|
11
|
+
rolloverDuration?: number;
|
|
12
|
+
rolloverDurationUnit?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CreditGrant {
|
|
2
|
+
available: number;
|
|
3
|
+
used: number;
|
|
4
|
+
total: number;
|
|
5
|
+
rolloverAmount: number | null;
|
|
6
|
+
periodStart: string;
|
|
7
|
+
periodEnd: string | null;
|
|
8
|
+
rolloverEndDate: string | null;
|
|
9
|
+
expiresAt: string | null;
|
|
10
|
+
isInRolloverWindow: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface OneTimePerUnitInput {
|
|
3
|
+
feeType?: OneTimePerUnitInput.FeeType;
|
|
4
|
+
billingType?: OneTimePerUnitInput.BillingType;
|
|
5
|
+
pricePoints: Paid.SimplePricePoint[];
|
|
6
|
+
}
|
|
7
|
+
export declare namespace OneTimePerUnitInput {
|
|
8
|
+
const FeeType: {
|
|
9
|
+
readonly Setup: "setup";
|
|
10
|
+
readonly Onboarding: "onboarding";
|
|
11
|
+
readonly Implementation: "implementation";
|
|
12
|
+
readonly Migration: "migration";
|
|
13
|
+
readonly Custom: "custom";
|
|
14
|
+
};
|
|
15
|
+
type FeeType = (typeof FeeType)[keyof typeof FeeType];
|
|
16
|
+
const BillingType: {
|
|
17
|
+
readonly Advance: "Advance";
|
|
18
|
+
readonly Arrears: "Arrears";
|
|
19
|
+
};
|
|
20
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
21
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.OneTimePerUnitInput = void 0;
|
|
5
|
+
var OneTimePerUnitInput;
|
|
6
|
+
(function (OneTimePerUnitInput) {
|
|
7
|
+
OneTimePerUnitInput.FeeType = {
|
|
8
|
+
Setup: "setup",
|
|
9
|
+
Onboarding: "onboarding",
|
|
10
|
+
Implementation: "implementation",
|
|
11
|
+
Migration: "migration",
|
|
12
|
+
Custom: "custom",
|
|
13
|
+
};
|
|
14
|
+
OneTimePerUnitInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(OneTimePerUnitInput || (exports.OneTimePerUnitInput = OneTimePerUnitInput = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface OrderBillingFrequencyOverride {
|
|
2
|
+
frequency: OrderBillingFrequencyOverride.Frequency;
|
|
3
|
+
customMonths?: number | null;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace OrderBillingFrequencyOverride {
|
|
6
|
+
const Frequency: {
|
|
7
|
+
readonly Monthly: "monthly";
|
|
8
|
+
readonly Quarterly: "quarterly";
|
|
9
|
+
readonly SemiAnnually: "semiAnnually";
|
|
10
|
+
readonly Annual: "annual";
|
|
11
|
+
readonly Custom: "custom";
|
|
12
|
+
};
|
|
13
|
+
type Frequency = (typeof Frequency)[keyof typeof Frequency];
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.OrderBillingFrequencyOverride = void 0;
|
|
5
|
+
var OrderBillingFrequencyOverride;
|
|
6
|
+
(function (OrderBillingFrequencyOverride) {
|
|
7
|
+
OrderBillingFrequencyOverride.Frequency = {
|
|
8
|
+
Monthly: "monthly",
|
|
9
|
+
Quarterly: "quarterly",
|
|
10
|
+
SemiAnnually: "semiAnnually",
|
|
11
|
+
Annual: "annual",
|
|
12
|
+
Custom: "custom",
|
|
13
|
+
};
|
|
14
|
+
})(OrderBillingFrequencyOverride || (exports.OrderBillingFrequencyOverride = OrderBillingFrequencyOverride = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface PrecomputedCost {
|
|
3
|
+
/** Record time in RFC3339 format with timezone. Defaults to server receive time. */
|
|
4
|
+
timestamp?: string;
|
|
5
|
+
customer: Paid.CustomerAttribution;
|
|
6
|
+
product?: Paid.ProductAttribution;
|
|
7
|
+
/** Free-form metadata for filtering and analytics. */
|
|
8
|
+
metadata?: Record<string, unknown>;
|
|
9
|
+
/** Cost amount in major units of `currency` (e.g. dollars). */
|
|
10
|
+
amount: number;
|
|
11
|
+
/** ISO 4217 currency code, e.g. "USD". */
|
|
12
|
+
currency: string;
|
|
13
|
+
/** Optional vendor tag for analytics (e.g. "openai", "anthropic"). Not used for pricing in this mode. */
|
|
14
|
+
vendor?: string;
|
|
15
|
+
/** Optional model tag for analytics (e.g. "gpt-4o-2024-08-06"). */
|
|
16
|
+
model?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export type PricingInput = Paid.PricingInput.RecurringPerUnit | Paid.PricingInput.RecurringGraduated | Paid.PricingInput.RecurringVolume | Paid.PricingInput.RecurringPercentOfTotal | Paid.PricingInput.UsagePerUnit | Paid.PricingInput.UsageGraduated | Paid.PricingInput.UsageVolume | Paid.PricingInput.UsagePrepaidCredits | Paid.PricingInput.UsageCostPlus | Paid.PricingInput.OneTimePerUnit | Paid.PricingInput.SeatBasedPerUnit | Paid.PricingInput.SeatBasedGraduated | Paid.PricingInput.SeatBasedVolume | Paid.PricingInput.SeatBasedPrepaidCredits;
|
|
3
|
+
export declare namespace PricingInput {
|
|
4
|
+
interface RecurringPerUnit extends Paid.RecurringPerUnitInput {
|
|
5
|
+
pricingType: "RecurringPerUnit";
|
|
6
|
+
}
|
|
7
|
+
interface RecurringGraduated extends Paid.RecurringGraduatedInput {
|
|
8
|
+
pricingType: "RecurringGraduated";
|
|
9
|
+
}
|
|
10
|
+
interface RecurringVolume extends Paid.RecurringVolumeInput {
|
|
11
|
+
pricingType: "RecurringVolume";
|
|
12
|
+
}
|
|
13
|
+
interface RecurringPercentOfTotal extends Paid.RecurringPercentOfTotalInput {
|
|
14
|
+
pricingType: "RecurringPercentOfTotal";
|
|
15
|
+
}
|
|
16
|
+
interface UsagePerUnit extends Paid.UsagePerUnitInput {
|
|
17
|
+
pricingType: "UsagePerUnit";
|
|
18
|
+
}
|
|
19
|
+
interface UsageGraduated extends Paid.UsageGraduatedInput {
|
|
20
|
+
pricingType: "UsageGraduated";
|
|
21
|
+
}
|
|
22
|
+
interface UsageVolume extends Paid.UsageVolumeInput {
|
|
23
|
+
pricingType: "UsageVolume";
|
|
24
|
+
}
|
|
25
|
+
interface UsagePrepaidCredits extends Paid.UsagePrepaidCreditsInput {
|
|
26
|
+
pricingType: "UsagePrepaidCredits";
|
|
27
|
+
}
|
|
28
|
+
interface UsageCostPlus extends Paid.UsageCostPlusInput {
|
|
29
|
+
pricingType: "UsageCostPlus";
|
|
30
|
+
}
|
|
31
|
+
interface OneTimePerUnit extends Paid.OneTimePerUnitInput {
|
|
32
|
+
pricingType: "OneTimePerUnit";
|
|
33
|
+
}
|
|
34
|
+
interface SeatBasedPerUnit extends Paid.SeatBasedPerUnitInput {
|
|
35
|
+
pricingType: "SeatBasedPerUnit";
|
|
36
|
+
}
|
|
37
|
+
interface SeatBasedGraduated extends Paid.SeatBasedGraduatedInput {
|
|
38
|
+
pricingType: "SeatBasedGraduated";
|
|
39
|
+
}
|
|
40
|
+
interface SeatBasedVolume extends Paid.SeatBasedVolumeInput {
|
|
41
|
+
pricingType: "SeatBasedVolume";
|
|
42
|
+
}
|
|
43
|
+
interface SeatBasedPrepaidCredits extends Paid.SeatBasedPrepaidCreditsInput {
|
|
44
|
+
pricingType: "SeatBasedPrepaidCredits";
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface PricingOutput {
|
|
3
|
+
pricingType: PricingOutput.PricingType;
|
|
4
|
+
chargeType: string;
|
|
5
|
+
pricingModel?: string;
|
|
6
|
+
eventName?: string;
|
|
7
|
+
billingFrequency?: string;
|
|
8
|
+
billingType?: string;
|
|
9
|
+
creditsCurrencyId?: string;
|
|
10
|
+
creditCost?: number;
|
|
11
|
+
unitValue?: number;
|
|
12
|
+
percentageValue?: number;
|
|
13
|
+
costPlusMultiplier?: number;
|
|
14
|
+
pricePoints: Paid.PricingPricePointOutput[];
|
|
15
|
+
/** Accepts any additional properties */
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace PricingOutput {
|
|
19
|
+
const PricingType: {
|
|
20
|
+
readonly RecurringPerUnit: "RecurringPerUnit";
|
|
21
|
+
readonly RecurringGraduated: "RecurringGraduated";
|
|
22
|
+
readonly RecurringVolume: "RecurringVolume";
|
|
23
|
+
readonly RecurringPercentOfTotal: "RecurringPercentOfTotal";
|
|
24
|
+
readonly UsagePerUnit: "UsagePerUnit";
|
|
25
|
+
readonly UsageGraduated: "UsageGraduated";
|
|
26
|
+
readonly UsageVolume: "UsageVolume";
|
|
27
|
+
readonly UsagePrepaidCredits: "UsagePrepaidCredits";
|
|
28
|
+
readonly UsageCostPlus: "UsageCostPlus";
|
|
29
|
+
readonly OneTimePerUnit: "OneTimePerUnit";
|
|
30
|
+
readonly SeatBasedPerUnit: "SeatBasedPerUnit";
|
|
31
|
+
readonly SeatBasedGraduated: "SeatBasedGraduated";
|
|
32
|
+
readonly SeatBasedVolume: "SeatBasedVolume";
|
|
33
|
+
readonly SeatBasedPrepaidCredits: "SeatBasedPrepaidCredits";
|
|
34
|
+
};
|
|
35
|
+
type PricingType = (typeof PricingType)[keyof typeof PricingType];
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PricingOutput = void 0;
|
|
5
|
+
var PricingOutput;
|
|
6
|
+
(function (PricingOutput) {
|
|
7
|
+
PricingOutput.PricingType = {
|
|
8
|
+
RecurringPerUnit: "RecurringPerUnit",
|
|
9
|
+
RecurringGraduated: "RecurringGraduated",
|
|
10
|
+
RecurringVolume: "RecurringVolume",
|
|
11
|
+
RecurringPercentOfTotal: "RecurringPercentOfTotal",
|
|
12
|
+
UsagePerUnit: "UsagePerUnit",
|
|
13
|
+
UsageGraduated: "UsageGraduated",
|
|
14
|
+
UsageVolume: "UsageVolume",
|
|
15
|
+
UsagePrepaidCredits: "UsagePrepaidCredits",
|
|
16
|
+
UsageCostPlus: "UsageCostPlus",
|
|
17
|
+
OneTimePerUnit: "OneTimePerUnit",
|
|
18
|
+
SeatBasedPerUnit: "SeatBasedPerUnit",
|
|
19
|
+
SeatBasedGraduated: "SeatBasedGraduated",
|
|
20
|
+
SeatBasedVolume: "SeatBasedVolume",
|
|
21
|
+
SeatBasedPrepaidCredits: "SeatBasedPrepaidCredits",
|
|
22
|
+
};
|
|
23
|
+
})(PricingOutput || (exports.PricingOutput = PricingOutput = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface PricingPricePointOutput {
|
|
2
|
+
currency: string;
|
|
3
|
+
unitPrice: number;
|
|
4
|
+
tiers?: PricingPricePointOutput.Tiers.Item[];
|
|
5
|
+
minQuantity?: number;
|
|
6
|
+
maxQuantity?: number;
|
|
7
|
+
includedQuantity?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace PricingPricePointOutput {
|
|
10
|
+
type Tiers = Tiers.Item[];
|
|
11
|
+
namespace Tiers {
|
|
12
|
+
interface Item {
|
|
13
|
+
flatAmount?: number;
|
|
14
|
+
index?: number;
|
|
15
|
+
lowerBound: number;
|
|
16
|
+
number?: number;
|
|
17
|
+
tierBillingType?: Item.TierBillingType;
|
|
18
|
+
unitAmount?: number;
|
|
19
|
+
upperBound?: number;
|
|
20
|
+
}
|
|
21
|
+
namespace Item {
|
|
22
|
+
const TierBillingType: {
|
|
23
|
+
readonly Flat: "flat";
|
|
24
|
+
readonly PerUnit: "perUnit";
|
|
25
|
+
};
|
|
26
|
+
type TierBillingType = (typeof TierBillingType)[keyof typeof TierBillingType];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PricingPricePointOutput = void 0;
|
|
5
|
+
var PricingPricePointOutput;
|
|
6
|
+
(function (PricingPricePointOutput) {
|
|
7
|
+
let Tiers;
|
|
8
|
+
(function (Tiers) {
|
|
9
|
+
let Item;
|
|
10
|
+
(function (Item) {
|
|
11
|
+
Item.TierBillingType = {
|
|
12
|
+
Flat: "flat",
|
|
13
|
+
PerUnit: "perUnit",
|
|
14
|
+
};
|
|
15
|
+
})(Item = Tiers.Item || (Tiers.Item = {}));
|
|
16
|
+
})(Tiers = PricingPricePointOutput.Tiers || (PricingPricePointOutput.Tiers = {}));
|
|
17
|
+
})(PricingPricePointOutput || (exports.PricingPricePointOutput = PricingPricePointOutput = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface RecurringGraduatedInput {
|
|
3
|
+
billingFrequency: RecurringGraduatedInput.BillingFrequency;
|
|
4
|
+
billingFrequencyCustomMonths?: number;
|
|
5
|
+
billingType?: RecurringGraduatedInput.BillingType;
|
|
6
|
+
pricePoints: Paid.TieredPricePoint[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RecurringGraduatedInput {
|
|
9
|
+
const BillingFrequency: {
|
|
10
|
+
readonly Monthly: "Monthly";
|
|
11
|
+
readonly Quarterly: "Quarterly";
|
|
12
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
13
|
+
readonly Annual: "Annual";
|
|
14
|
+
readonly Custom: "Custom";
|
|
15
|
+
};
|
|
16
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
17
|
+
const BillingType: {
|
|
18
|
+
readonly Advance: "Advance";
|
|
19
|
+
readonly Arrears: "Arrears";
|
|
20
|
+
};
|
|
21
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecurringGraduatedInput = void 0;
|
|
5
|
+
var RecurringGraduatedInput;
|
|
6
|
+
(function (RecurringGraduatedInput) {
|
|
7
|
+
RecurringGraduatedInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
RecurringGraduatedInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(RecurringGraduatedInput || (exports.RecurringGraduatedInput = RecurringGraduatedInput = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface RecurringPerUnitInput {
|
|
3
|
+
billingFrequency: RecurringPerUnitInput.BillingFrequency;
|
|
4
|
+
billingFrequencyCustomMonths?: number;
|
|
5
|
+
billingType?: RecurringPerUnitInput.BillingType;
|
|
6
|
+
pricePoints: Paid.SimplePricePoint[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RecurringPerUnitInput {
|
|
9
|
+
const BillingFrequency: {
|
|
10
|
+
readonly Monthly: "Monthly";
|
|
11
|
+
readonly Quarterly: "Quarterly";
|
|
12
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
13
|
+
readonly Annual: "Annual";
|
|
14
|
+
readonly Custom: "Custom";
|
|
15
|
+
};
|
|
16
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
17
|
+
const BillingType: {
|
|
18
|
+
readonly Advance: "Advance";
|
|
19
|
+
readonly Arrears: "Arrears";
|
|
20
|
+
};
|
|
21
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecurringPerUnitInput = void 0;
|
|
5
|
+
var RecurringPerUnitInput;
|
|
6
|
+
(function (RecurringPerUnitInput) {
|
|
7
|
+
RecurringPerUnitInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
RecurringPerUnitInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(RecurringPerUnitInput || (exports.RecurringPerUnitInput = RecurringPerUnitInput = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface RecurringPercentOfTotalInput {
|
|
3
|
+
percentageValue: number;
|
|
4
|
+
billingFrequency: RecurringPercentOfTotalInput.BillingFrequency;
|
|
5
|
+
billingFrequencyCustomMonths?: number;
|
|
6
|
+
billingType?: RecurringPercentOfTotalInput.BillingType;
|
|
7
|
+
pricePoints?: Paid.SimplePricePoint[];
|
|
8
|
+
}
|
|
9
|
+
export declare namespace RecurringPercentOfTotalInput {
|
|
10
|
+
const BillingFrequency: {
|
|
11
|
+
readonly Monthly: "Monthly";
|
|
12
|
+
readonly Quarterly: "Quarterly";
|
|
13
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
14
|
+
readonly Annual: "Annual";
|
|
15
|
+
readonly Custom: "Custom";
|
|
16
|
+
};
|
|
17
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
18
|
+
const BillingType: {
|
|
19
|
+
readonly Advance: "Advance";
|
|
20
|
+
readonly Arrears: "Arrears";
|
|
21
|
+
};
|
|
22
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecurringPercentOfTotalInput = void 0;
|
|
5
|
+
var RecurringPercentOfTotalInput;
|
|
6
|
+
(function (RecurringPercentOfTotalInput) {
|
|
7
|
+
RecurringPercentOfTotalInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
RecurringPercentOfTotalInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(RecurringPercentOfTotalInput || (exports.RecurringPercentOfTotalInput = RecurringPercentOfTotalInput = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface RecurringVolumeInput {
|
|
3
|
+
billingFrequency: RecurringVolumeInput.BillingFrequency;
|
|
4
|
+
billingFrequencyCustomMonths?: number;
|
|
5
|
+
billingType?: RecurringVolumeInput.BillingType;
|
|
6
|
+
pricePoints: Paid.TieredPricePoint[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RecurringVolumeInput {
|
|
9
|
+
const BillingFrequency: {
|
|
10
|
+
readonly Monthly: "Monthly";
|
|
11
|
+
readonly Quarterly: "Quarterly";
|
|
12
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
13
|
+
readonly Annual: "Annual";
|
|
14
|
+
readonly Custom: "Custom";
|
|
15
|
+
};
|
|
16
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
17
|
+
const BillingType: {
|
|
18
|
+
readonly Advance: "Advance";
|
|
19
|
+
readonly Arrears: "Arrears";
|
|
20
|
+
};
|
|
21
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.RecurringVolumeInput = void 0;
|
|
5
|
+
var RecurringVolumeInput;
|
|
6
|
+
(function (RecurringVolumeInput) {
|
|
7
|
+
RecurringVolumeInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
RecurringVolumeInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(RecurringVolumeInput || (exports.RecurringVolumeInput = RecurringVolumeInput = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface SeatBasedGraduatedInput {
|
|
3
|
+
billingFrequency: SeatBasedGraduatedInput.BillingFrequency;
|
|
4
|
+
billingFrequencyCustomMonths?: number;
|
|
5
|
+
billingType?: SeatBasedGraduatedInput.BillingType;
|
|
6
|
+
pricePoints: Paid.TieredPricePoint[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace SeatBasedGraduatedInput {
|
|
9
|
+
const BillingFrequency: {
|
|
10
|
+
readonly Monthly: "Monthly";
|
|
11
|
+
readonly Quarterly: "Quarterly";
|
|
12
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
13
|
+
readonly Annual: "Annual";
|
|
14
|
+
readonly Custom: "Custom";
|
|
15
|
+
};
|
|
16
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
17
|
+
const BillingType: {
|
|
18
|
+
readonly Advance: "Advance";
|
|
19
|
+
readonly Arrears: "Arrears";
|
|
20
|
+
};
|
|
21
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SeatBasedGraduatedInput = void 0;
|
|
5
|
+
var SeatBasedGraduatedInput;
|
|
6
|
+
(function (SeatBasedGraduatedInput) {
|
|
7
|
+
SeatBasedGraduatedInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
SeatBasedGraduatedInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(SeatBasedGraduatedInput || (exports.SeatBasedGraduatedInput = SeatBasedGraduatedInput = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Paid from "../index.js";
|
|
2
|
+
export interface SeatBasedPerUnitInput {
|
|
3
|
+
billingFrequency: SeatBasedPerUnitInput.BillingFrequency;
|
|
4
|
+
billingFrequencyCustomMonths?: number;
|
|
5
|
+
billingType?: SeatBasedPerUnitInput.BillingType;
|
|
6
|
+
pricePoints: Paid.SimplePricePoint[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace SeatBasedPerUnitInput {
|
|
9
|
+
const BillingFrequency: {
|
|
10
|
+
readonly Monthly: "Monthly";
|
|
11
|
+
readonly Quarterly: "Quarterly";
|
|
12
|
+
readonly SemiAnnually: "Semi-Annually";
|
|
13
|
+
readonly Annual: "Annual";
|
|
14
|
+
readonly Custom: "Custom";
|
|
15
|
+
};
|
|
16
|
+
type BillingFrequency = (typeof BillingFrequency)[keyof typeof BillingFrequency];
|
|
17
|
+
const BillingType: {
|
|
18
|
+
readonly Advance: "Advance";
|
|
19
|
+
readonly Arrears: "Arrears";
|
|
20
|
+
};
|
|
21
|
+
type BillingType = (typeof BillingType)[keyof typeof BillingType];
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SeatBasedPerUnitInput = void 0;
|
|
5
|
+
var SeatBasedPerUnitInput;
|
|
6
|
+
(function (SeatBasedPerUnitInput) {
|
|
7
|
+
SeatBasedPerUnitInput.BillingFrequency = {
|
|
8
|
+
Monthly: "Monthly",
|
|
9
|
+
Quarterly: "Quarterly",
|
|
10
|
+
SemiAnnually: "Semi-Annually",
|
|
11
|
+
Annual: "Annual",
|
|
12
|
+
Custom: "Custom",
|
|
13
|
+
};
|
|
14
|
+
SeatBasedPerUnitInput.BillingType = {
|
|
15
|
+
Advance: "Advance",
|
|
16
|
+
Arrears: "Arrears",
|
|
17
|
+
};
|
|
18
|
+
})(SeatBasedPerUnitInput || (exports.SeatBasedPerUnitInput = SeatBasedPerUnitInput = {}));
|