@archildata/api-types 0.0.91 → 0.0.92
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/index.d.ts +38 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1575,6 +1575,34 @@ export interface components {
|
|
|
1575
1575
|
hasPendingUpdate: boolean;
|
|
1576
1576
|
paymentHealth: components["schemas"]["BillingPaymentHealth"];
|
|
1577
1577
|
actions: components["schemas"]["BillingSubscriptionActions"];
|
|
1578
|
+
/** @description Coupons running on the plan, such as a deal's free year of Team, with when each ends. */
|
|
1579
|
+
discounts?: components["schemas"]["BillingActiveDiscount"][];
|
|
1580
|
+
};
|
|
1581
|
+
BillingDiscountTerms: {
|
|
1582
|
+
/** @enum {string} */
|
|
1583
|
+
type: "fixed" | "percentage";
|
|
1584
|
+
/** @description Currency units off each invoice for fixed, percent off for percentage. */
|
|
1585
|
+
value: number;
|
|
1586
|
+
duration: {
|
|
1587
|
+
/**
|
|
1588
|
+
* @description once is the first invoice only.
|
|
1589
|
+
* @enum {string}
|
|
1590
|
+
*/
|
|
1591
|
+
type: "once" | "months" | "forever";
|
|
1592
|
+
/** @description How many monthly invoices it covers, for months. */
|
|
1593
|
+
months?: number;
|
|
1594
|
+
};
|
|
1595
|
+
/** @description The discount takes off the whole of the plan's base fee as Autumn prices it, so the plan costs nothing while it runs. */
|
|
1596
|
+
coversBaseFee: boolean;
|
|
1597
|
+
};
|
|
1598
|
+
BillingActiveDiscount: components["schemas"]["BillingDiscountTerms"] & {
|
|
1599
|
+
rewardId: string;
|
|
1600
|
+
name: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Format: int64
|
|
1603
|
+
* @description When the discount stops applying, in Unix seconds; absent when it never ends.
|
|
1604
|
+
*/
|
|
1605
|
+
endsAt?: number;
|
|
1578
1606
|
};
|
|
1579
1607
|
ApiResponse_BillingSubscription: {
|
|
1580
1608
|
/** @example true */
|
|
@@ -1778,6 +1806,8 @@ export interface components {
|
|
|
1778
1806
|
timing?: "immediate" | "period_end";
|
|
1779
1807
|
/** @description Preview the purchase with the intro offer, as BillingSubscribeRequest. */
|
|
1780
1808
|
introOffer?: boolean;
|
|
1809
|
+
/** @description Preview the purchase with this promo code, as BillingSubscribeRequest. Spends nothing. */
|
|
1810
|
+
code?: string;
|
|
1781
1811
|
};
|
|
1782
1812
|
BillingRedeemRequest: {
|
|
1783
1813
|
/** @description The promo code, exactly as issued. */
|
|
@@ -1803,6 +1833,12 @@ export interface components {
|
|
|
1803
1833
|
};
|
|
1804
1834
|
/** @description The grant includes workspaces, so it is redeemed in a team workspace. */
|
|
1805
1835
|
requiresWorkspace: boolean;
|
|
1836
|
+
/** @description The self-serve plans a coupon's code can buy, as the coupon lists them, each with what it takes off that plan; absent for a grant. */
|
|
1837
|
+
plans?: {
|
|
1838
|
+
/** @enum {string} */
|
|
1839
|
+
plan: "developer" | "team";
|
|
1840
|
+
discount: components["schemas"]["BillingDiscountTerms"];
|
|
1841
|
+
}[];
|
|
1806
1842
|
};
|
|
1807
1843
|
};
|
|
1808
1844
|
ApiResponse_BillingRedeemResult: {
|
|
@@ -1826,6 +1862,8 @@ export interface components {
|
|
|
1826
1862
|
setupIntentId?: string;
|
|
1827
1863
|
/** @description Start Team with half off its first month, the sign-up path for accounts asking for Enterprise. Team only. Refused with intro_offer_unavailable once the account has paid money on an invoice; a $0 invoice, such as a trial's first, does not count. */
|
|
1828
1864
|
introOffer?: boolean;
|
|
1865
|
+
/** @description A promo code for a discount on the plan, such as a deal's free year of Team. The purchase spends one of the code's uses. Refused with invalid_code when no discount has the code, not_a_discount for a code that grants features (redeem it instead), code_not_for_plan when the coupon does not list the plan, code_used_up when its uses are spent, code_unavailable on anything but a purchase, and payment_method_required without a card: the discount covers the fee, not usage billed after it. */
|
|
1866
|
+
code?: string;
|
|
1829
1867
|
};
|
|
1830
1868
|
BillingChangeRequest: {
|
|
1831
1869
|
/** @enum {string} */
|