@brighterly/lib-core-types 0.19.8 → 0.19.10

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.
@@ -8,7 +8,6 @@ export interface Experiments {
8
8
  [ExperimentsCode.Exp79]: ExperimentValue;
9
9
  [ExperimentsCode.Exp85]: ExperimentValue;
10
10
  [ExperimentsCode.Exp86]: ExperimentValue;
11
- [ExperimentsCode.Exp88]: ExperimentValue;
12
11
  [ExperimentsCode.Exp90]: ExperimentValue;
13
12
  [ExperimentsCode.Exp92]: ExperimentValue;
14
13
  [ExperimentsCode.Exp105]: ExperimentValue;
@@ -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;
@@ -1 +1,3 @@
1
- export {};
1
+ import type { CheckoutCardSolidgate, CheckoutCardStripe, CheckoutData, CheckoutSucceededData } from './interfaces';
2
+ export type CheckoutCard = CheckoutCardSolidgate | CheckoutCardStripe;
3
+ export type CheckoutResponseData = CheckoutData | CheckoutSucceededData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brighterly/lib-core-types",
3
- "version": "0.19.8",
3
+ "version": "0.19.10",
4
4
  "description": "Official Brighterly lib-core-types",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",