@prave/shared 1.4.12 → 1.4.13
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.
|
@@ -25,8 +25,16 @@ export interface ReferralStats {
|
|
|
25
25
|
granted_count: number;
|
|
26
26
|
/** Rewards held until referrer upgrades or friend's subscription matures. */
|
|
27
27
|
pending_count: number;
|
|
28
|
-
/** Total cents already credited to the referrer's Stripe customer balance.
|
|
28
|
+
/** Total cents already credited to the referrer's Stripe customer balance.
|
|
29
|
+
* Historical / lifetime total — does NOT decrement as Stripe applies the
|
|
30
|
+
* credit to invoices. Use `current_credit_cents` for the live redeemable
|
|
31
|
+
* number. */
|
|
29
32
|
earned_cents: number;
|
|
33
|
+
/** Live redeemable credit on the user's Stripe customer balance. Reflects
|
|
34
|
+
* what Stripe will actually deduct from the next subscription invoice —
|
|
35
|
+
* decreases as invoices are paid using the credit. Reads as 0 when the
|
|
36
|
+
* user has no Stripe customer yet or the balance is non-negative. */
|
|
37
|
+
current_credit_cents: number;
|
|
30
38
|
}
|
|
31
39
|
/** What `GET /api/v1/me/referrals` returns. */
|
|
32
40
|
export interface ReferralLink {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"referrals.d.ts","sourceRoot":"","sources":["../../src/types/referrals.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE7D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE,cAAc,CAAA;IACtB,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IAC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