@glissandoo/lib 1.75.0 → 1.77.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.
|
@@ -11,6 +11,9 @@ export declare namespace CustomerGroupFbFunctionsTypes {
|
|
|
11
11
|
planId: PlansGroup;
|
|
12
12
|
planPeriod: PlanPeriod;
|
|
13
13
|
planDiscount: string | null;
|
|
14
|
+
subscriptionId: string | null;
|
|
15
|
+
planStripeId: string | null;
|
|
16
|
+
method: 'stripe' | 'gocardless' | 'manual';
|
|
14
17
|
}
|
|
15
18
|
type SetPlanResult = void;
|
|
16
19
|
interface RemoveParams {
|
|
@@ -15,5 +15,6 @@ export default class CustomerGroup extends GroupBasic<CustomerGroupData> {
|
|
|
15
15
|
get planDiscount(): string | null;
|
|
16
16
|
get planStripeId(): string | null;
|
|
17
17
|
get subscriptionStripeId(): string | null;
|
|
18
|
+
get subscriptionGocardlessId(): string | null;
|
|
18
19
|
get customerId(): string;
|
|
19
20
|
}
|
|
@@ -41,6 +41,9 @@ class CustomerGroup extends basic_1.default {
|
|
|
41
41
|
get subscriptionStripeId() {
|
|
42
42
|
return this.data.subscriptionStripeId || null;
|
|
43
43
|
}
|
|
44
|
+
get subscriptionGocardlessId() {
|
|
45
|
+
return this.data.subscriptionGocardlessId || null;
|
|
46
|
+
}
|
|
44
47
|
get customerId() {
|
|
45
48
|
return (0, utils_1.at)(this.ref.path.split('/'), 1) || '';
|
|
46
49
|
}
|
|
@@ -10,6 +10,7 @@ export interface CustomerGroupData extends GroupBasicData {
|
|
|
10
10
|
planDiscount: string | null;
|
|
11
11
|
planStripeId: string | null;
|
|
12
12
|
subscriptionStripeId: string | null;
|
|
13
|
+
subscriptionGocardlessId: string | null;
|
|
13
14
|
readonly linkedBy: DocumentReference;
|
|
14
15
|
readonly linkedAt: Timestamp;
|
|
15
16
|
}
|