@brighterly/lib-core-types 0.19.7 → 0.19.9
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelNotification } from '../lists/activation/enums.ts';
|
|
2
|
+
import type { PaymentProvider } from '../subscription/enums.ts';
|
|
2
3
|
import type { MessageSender } from '../activation/enums';
|
|
3
4
|
import type { KidInCustomer } from '../kid/interfaces';
|
|
4
5
|
import type { ActiveSurvey } from '../survey/interfaces';
|
|
@@ -59,6 +60,7 @@ export interface Customer {
|
|
|
59
60
|
is_book_demo_allowed: boolean;
|
|
60
61
|
active_surveys: ActiveSurvey[];
|
|
61
62
|
experiments: Experiments | null;
|
|
63
|
+
payment_provider: PaymentProvider;
|
|
62
64
|
}
|
|
63
65
|
export interface CustomerResponse {
|
|
64
66
|
message: string;
|
|
@@ -43,6 +43,25 @@ export interface Order {
|
|
|
43
43
|
zip_code: string | null;
|
|
44
44
|
parent_order?: Order | null;
|
|
45
45
|
}
|
|
46
|
+
export interface CheckoutCardSolidgate {
|
|
47
|
+
merchant: string;
|
|
48
|
+
paymentIntent: string;
|
|
49
|
+
signature: string;
|
|
50
|
+
}
|
|
51
|
+
export interface CheckoutCardStripe {
|
|
52
|
+
client_secret: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface CheckoutData {
|
|
55
|
+
order: Order;
|
|
56
|
+
card: CheckoutCardSolidgate | CheckoutCardStripe | null;
|
|
57
|
+
paypal_script_url: string | null;
|
|
58
|
+
further_payments: string[] | null;
|
|
59
|
+
applies_for_promocode: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface CheckoutSucceededData {
|
|
62
|
+
order: Order;
|
|
63
|
+
already_succeeded: true;
|
|
64
|
+
}
|
|
46
65
|
export interface Lessons {
|
|
47
66
|
math: number;
|
|
48
67
|
ela: number;
|
package/dist/orders/types.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CheckoutCardSolidgate, CheckoutCardStripe, CheckoutData, CheckoutSucceededData } from './interfaces';
|
|
2
|
+
export type CheckoutCard = CheckoutCardSolidgate | CheckoutCardStripe;
|
|
3
|
+
export type CheckoutResponseData = CheckoutData | CheckoutSucceededData;
|
|
@@ -19,6 +19,10 @@ export declare enum SubscriptionProvider {
|
|
|
19
19
|
Paypal = "PAYPAL",
|
|
20
20
|
PaypalBNPL = "PAYPAL_BNPL"
|
|
21
21
|
}
|
|
22
|
+
export declare enum PaymentProvider {
|
|
23
|
+
Stripe = "STRIPE",
|
|
24
|
+
Solidgate = "SOLIDGATE"
|
|
25
|
+
}
|
|
22
26
|
export declare enum PauseDuration {
|
|
23
27
|
Weeks1 = "WEEKS_1",
|
|
24
28
|
Weeks2 = "WEEKS_2",
|
|
@@ -22,6 +22,11 @@ export var SubscriptionProvider;
|
|
|
22
22
|
SubscriptionProvider["Paypal"] = "PAYPAL";
|
|
23
23
|
SubscriptionProvider["PaypalBNPL"] = "PAYPAL_BNPL";
|
|
24
24
|
})(SubscriptionProvider || (SubscriptionProvider = {}));
|
|
25
|
+
export var PaymentProvider;
|
|
26
|
+
(function (PaymentProvider) {
|
|
27
|
+
PaymentProvider["Stripe"] = "STRIPE";
|
|
28
|
+
PaymentProvider["Solidgate"] = "SOLIDGATE";
|
|
29
|
+
})(PaymentProvider || (PaymentProvider = {}));
|
|
25
30
|
export var PauseDuration;
|
|
26
31
|
(function (PauseDuration) {
|
|
27
32
|
PauseDuration["Weeks1"] = "WEEKS_1";
|