@shipstatic/types 2.13.0-beta.1 → 2.14.0-beta.1
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/index.d.ts +23 -11
- package/package.json +1 -1
- package/src/index.ts +24 -11
package/dist/index.d.ts
CHANGED
|
@@ -610,15 +610,16 @@ export interface Account {
|
|
|
610
610
|
*/
|
|
611
611
|
readonly used?: number | null;
|
|
612
612
|
/**
|
|
613
|
-
* True while the Stripe
|
|
613
|
+
* True while the Stripe Subscription's status is `past_due` and Stripe is
|
|
614
614
|
* still retrying the card. The plan is unchanged — the account keeps
|
|
615
615
|
* everything it has — so this is a banner, not a gate.
|
|
616
616
|
*
|
|
617
|
-
* A BOOLEAN rather than the status string: one fact for the console to
|
|
618
|
-
*
|
|
619
|
-
*
|
|
617
|
+
* A BOOLEAN rather than the status string: one fact for the console to act
|
|
618
|
+
* on. It carries STRIPE'S OWN WORD (`past_due` → `pastDue`) rather than a
|
|
619
|
+
* synonym, so no reader has to hold a translation; the full status string is
|
|
620
|
+
* mirrored on the account row for the operator surface.
|
|
620
621
|
*/
|
|
621
|
-
readonly
|
|
622
|
+
readonly pastDue: boolean;
|
|
622
623
|
}
|
|
623
624
|
/**
|
|
624
625
|
* Account as returned by `GET /account` — the entity plus how the request
|
|
@@ -1800,14 +1801,25 @@ export interface PlansResponse {
|
|
|
1800
1801
|
readonly plans: readonly Plan[];
|
|
1801
1802
|
}
|
|
1802
1803
|
/**
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1804
|
+
* The answer of `POST /billing/checkout` — Stripe's `Checkout.Session`,
|
|
1805
|
+
* projected to the one field a client needs.
|
|
1805
1806
|
*
|
|
1806
|
-
*
|
|
1807
|
-
*
|
|
1808
|
-
*
|
|
1807
|
+
* There is nothing else to return: the outcome arrives later, as a Stripe
|
|
1808
|
+
* webhook. It is its own type rather than a shape shared with
|
|
1809
|
+
* {@link BillingPortalSession} because Stripe has two distinct objects here,
|
|
1810
|
+
* and naming one of them for both would be the reader's translation to make.
|
|
1809
1811
|
*/
|
|
1810
|
-
export interface
|
|
1812
|
+
export interface CheckoutSession {
|
|
1813
|
+
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1814
|
+
readonly url: string;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* The answer of `POST /billing/portal` — Stripe's `BillingPortal.Session`,
|
|
1818
|
+
* projected the same way. Identical in shape to {@link CheckoutSession} and
|
|
1819
|
+
* deliberately not merged with it: they are two Stripe objects, and either may
|
|
1820
|
+
* gain a field the other never has.
|
|
1821
|
+
*/
|
|
1822
|
+
export interface BillingPortalSession {
|
|
1811
1823
|
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
1812
1824
|
readonly url: string;
|
|
1813
1825
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -685,15 +685,16 @@ export interface Account {
|
|
|
685
685
|
*/
|
|
686
686
|
readonly used?: number | null;
|
|
687
687
|
/**
|
|
688
|
-
* True while the Stripe
|
|
688
|
+
* True while the Stripe Subscription's status is `past_due` and Stripe is
|
|
689
689
|
* still retrying the card. The plan is unchanged — the account keeps
|
|
690
690
|
* everything it has — so this is a banner, not a gate.
|
|
691
691
|
*
|
|
692
|
-
* A BOOLEAN rather than the status string: one fact for the console to
|
|
693
|
-
*
|
|
694
|
-
*
|
|
692
|
+
* A BOOLEAN rather than the status string: one fact for the console to act
|
|
693
|
+
* on. It carries STRIPE'S OWN WORD (`past_due` → `pastDue`) rather than a
|
|
694
|
+
* synonym, so no reader has to hold a translation; the full status string is
|
|
695
|
+
* mirrored on the account row for the operator surface.
|
|
695
696
|
*/
|
|
696
|
-
readonly
|
|
697
|
+
readonly pastDue: boolean;
|
|
697
698
|
}
|
|
698
699
|
|
|
699
700
|
/**
|
|
@@ -2663,14 +2664,26 @@ export interface PlansResponse {
|
|
|
2663
2664
|
}
|
|
2664
2665
|
|
|
2665
2666
|
/**
|
|
2666
|
-
*
|
|
2667
|
-
*
|
|
2667
|
+
* The answer of `POST /billing/checkout` — Stripe's `Checkout.Session`,
|
|
2668
|
+
* projected to the one field a client needs.
|
|
2668
2669
|
*
|
|
2669
|
-
*
|
|
2670
|
-
*
|
|
2671
|
-
*
|
|
2670
|
+
* There is nothing else to return: the outcome arrives later, as a Stripe
|
|
2671
|
+
* webhook. It is its own type rather than a shape shared with
|
|
2672
|
+
* {@link BillingPortalSession} because Stripe has two distinct objects here,
|
|
2673
|
+
* and naming one of them for both would be the reader's translation to make.
|
|
2672
2674
|
*/
|
|
2673
|
-
export interface
|
|
2675
|
+
export interface CheckoutSession {
|
|
2676
|
+
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
2677
|
+
readonly url: string;
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* The answer of `POST /billing/portal` — Stripe's `BillingPortal.Session`,
|
|
2682
|
+
* projected the same way. Identical in shape to {@link CheckoutSession} and
|
|
2683
|
+
* deliberately not merged with it: they are two Stripe objects, and either may
|
|
2684
|
+
* gain a field the other never has.
|
|
2685
|
+
*/
|
|
2686
|
+
export interface BillingPortalSession {
|
|
2674
2687
|
/** Absolute URL to redirect the browser to. Single use, short-lived. */
|
|
2675
2688
|
readonly url: string;
|
|
2676
2689
|
}
|