@daffodil/checkout 0.70.0 → 0.72.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.
- package/esm2022/index.mjs +2 -32
- package/esm2022/state/checkout-state.module.mjs +5 -5
- package/esm2022/state/facades/placed-order/placed-order.facade.mjs +4 -4
- package/esm2022/state/testing/checkout-testing.module.mjs +6 -6
- package/esm2022/state/testing/mock-placed-order-facade.mjs +4 -4
- package/esm2022/state/testing/public_api.mjs +2 -2
- package/fesm2022/daffodil-checkout-state-testing.mjs +9 -9
- package/fesm2022/daffodil-checkout-state-testing.mjs.map +1 -1
- package/fesm2022/daffodil-checkout-state.mjs +7 -7
- package/fesm2022/daffodil-checkout-state.mjs.map +1 -1
- package/fesm2022/daffodil-checkout.mjs +0 -716
- package/fesm2022/daffodil-checkout.mjs.map +1 -1
- package/index.d.ts +1 -47
- package/package.json +1 -1
- package/state/testing/checkout-testing.module.d.ts +4 -4
- package/state/testing/public_api.d.ts +1 -1
- package/billing/actions/billing.actions.d.ts +0 -22
- package/billing/billing-state.module.d.ts +0 -7
- package/billing/billing.module.d.ts +0 -9
- package/billing/containers/billing.component.d.ts +0 -20
- package/billing/facades/billing.facade.d.ts +0 -34
- package/billing/reducers/billing/billing-reducer.interface.d.ts +0 -7
- package/billing/reducers/billing/billing.reducer.d.ts +0 -4
- package/billing/reducers/billing-reducers.d.ts +0 -3
- package/billing/reducers/billing-reducers.interface.d.ts +0 -4
- package/billing/selectors/billing.selector.d.ts +0 -16
- package/checkout.module.d.ts +0 -11
- package/drivers/injection-tokens/driver-checkout.token.d.ts +0 -2
- package/drivers/injection-tokens/payment-driver.token.d.ts +0 -2
- package/drivers/injection-tokens/payment-transformer.token.d.ts +0 -2
- package/drivers/interfaces/checkout-service.interface.d.ts +0 -5
- package/drivers/interfaces/order-service.interface.d.ts +0 -19
- package/esm2022/billing/actions/billing.actions.mjs +0 -24
- package/esm2022/billing/billing-state.module.mjs +0 -19
- package/esm2022/billing/billing.module.mjs +0 -37
- package/esm2022/billing/containers/billing.component.mjs +0 -36
- package/esm2022/billing/facades/billing.facade.mjs +0 -34
- package/esm2022/billing/reducers/billing/billing-reducer.interface.mjs +0 -2
- package/esm2022/billing/reducers/billing/billing.reducer.mjs +0 -19
- package/esm2022/billing/reducers/billing-reducers.interface.mjs +0 -2
- package/esm2022/billing/reducers/billing-reducers.mjs +0 -5
- package/esm2022/billing/selectors/billing.selector.mjs +0 -13
- package/esm2022/checkout.module.mjs +0 -45
- package/esm2022/drivers/injection-tokens/driver-checkout.token.mjs +0 -3
- package/esm2022/drivers/injection-tokens/payment-driver.token.mjs +0 -3
- package/esm2022/drivers/injection-tokens/payment-transformer.token.mjs +0 -3
- package/esm2022/drivers/interfaces/checkout-service.interface.mjs +0 -2
- package/esm2022/drivers/interfaces/order-service.interface.mjs +0 -3
- package/esm2022/models/cart-process-request.mjs +0 -2
- package/esm2022/models/order/order-address.mjs +0 -2
- package/esm2022/models/order/order-item.mjs +0 -2
- package/esm2022/models/order/order-payment.mjs +0 -2
- package/esm2022/models/order/order-shipping-rate.mjs +0 -2
- package/esm2022/models/order/order.mjs +0 -2
- package/esm2022/models/payment/payment-info.mjs +0 -2
- package/esm2022/models/shipping/shipping-option.mjs +0 -2
- package/esm2022/models/shipping/shipping-rate.mjs +0 -2
- package/esm2022/order/actions/order.actions.mjs +0 -55
- package/esm2022/order/containers/order.component.mjs +0 -28
- package/esm2022/order/effects/order.effects.mjs +0 -28
- package/esm2022/order/facades/order.facade.mjs +0 -37
- package/esm2022/order/order-state.module.mjs +0 -31
- package/esm2022/order/order.module.mjs +0 -40
- package/esm2022/order/reducers/order/order-reducer.interface.mjs +0 -2
- package/esm2022/order/reducers/order/order.reducer.mjs +0 -25
- package/esm2022/order/reducers/order-reducers.interface.mjs +0 -2
- package/esm2022/order/reducers/order-reducers.mjs +0 -8
- package/esm2022/order/selectors/order.selector.mjs +0 -26
- package/esm2022/payment/actions/payment.actions.mjs +0 -11
- package/esm2022/payment/facades/payment.facade.mjs +0 -32
- package/esm2022/payment/payment-state.module.mjs +0 -19
- package/esm2022/payment/payment.module.mjs +0 -30
- package/esm2022/payment/reducers/payment/payment-reducer.interface.mjs +0 -2
- package/esm2022/payment/reducers/payment/payment.reducer.mjs +0 -13
- package/esm2022/payment/reducers/payment-reducers.interface.mjs +0 -2
- package/esm2022/payment/reducers/payment-reducers.mjs +0 -5
- package/esm2022/payment/selectors/payment.selector.mjs +0 -11
- package/esm2022/shipping/actions/shipping.actions.mjs +0 -18
- package/esm2022/shipping/containers/shipping.component.mjs +0 -33
- package/esm2022/shipping/facades/shipping.facade.mjs +0 -34
- package/esm2022/shipping/reducers/shipping/shipping-reducer.interface.mjs +0 -2
- package/esm2022/shipping/reducers/shipping/shipping.reducer.mjs +0 -16
- package/esm2022/shipping/reducers/shipping-reducers.interface.mjs +0 -2
- package/esm2022/shipping/reducers/shipping-reducers.mjs +0 -5
- package/esm2022/shipping/selectors/shipping.selectors.mjs +0 -13
- package/esm2022/shipping/shipping-state.module.mjs +0 -19
- package/esm2022/shipping/shipping.module.mjs +0 -37
- package/esm2022/testing/daffodil-checkout-testing.mjs +0 -5
- package/esm2022/testing/drivers/in-memory/checkout-driver.module.mjs +0 -30
- package/esm2022/testing/drivers/in-memory/checkout.service.mjs +0 -22
- package/esm2022/testing/drivers/testing/checkout-driver.module.mjs +0 -30
- package/esm2022/testing/drivers/testing/checkout.service.mjs +0 -25
- package/esm2022/testing/index.mjs +0 -19
- package/esm2022/testing/inmemory-backend/checkout.service.mjs +0 -50
- package/esm2022/testing/order/factories/order-address.factory.mjs +0 -54
- package/esm2022/testing/order/factories/order-item.factory.mjs +0 -49
- package/esm2022/testing/order/factories/order-payment.factory.mjs +0 -46
- package/esm2022/testing/order/factories/order-shipping-rate.factory.mjs +0 -40
- package/esm2022/testing/order/factories/order.factory.mjs +0 -42
- package/esm2022/testing/payment/factories/payment.factory.mjs +0 -26
- package/esm2022/testing/shipping/factories/shipping-option.factory.mjs +0 -24
- package/esm2022/testing/shipping/factories/shipping-rate.factory.mjs +0 -29
- package/fesm2022/daffodil-checkout-testing.mjs +0 -425
- package/fesm2022/daffodil-checkout-testing.mjs.map +0 -1
- package/models/cart-process-request.d.ts +0 -7
- package/models/order/order-address.d.ts +0 -32
- package/models/order/order-item.d.ts +0 -27
- package/models/order/order-payment.d.ts +0 -22
- package/models/order/order-shipping-rate.d.ts +0 -17
- package/models/order/order.d.ts +0 -21
- package/models/payment/payment-info.d.ts +0 -7
- package/models/shipping/shipping-option.d.ts +0 -4
- package/models/shipping/shipping-rate.d.ts +0 -6
- package/order/actions/order.actions.d.ts +0 -55
- package/order/containers/order.component.d.ts +0 -18
- package/order/effects/order.effects.d.ts +0 -15
- package/order/facades/order.facade.d.ts +0 -36
- package/order/order-state.module.d.ts +0 -11
- package/order/order.module.d.ts +0 -12
- package/order/reducers/order/order-reducer.interface.d.ts +0 -9
- package/order/reducers/order/order.reducer.d.ts +0 -10
- package/order/reducers/order-reducers.d.ts +0 -6
- package/order/reducers/order-reducers.interface.d.ts +0 -7
- package/order/selectors/order.selector.d.ts +0 -28
- package/payment/actions/payment.actions.d.ts +0 -11
- package/payment/facades/payment.facade.d.ts +0 -25
- package/payment/payment-state.module.d.ts +0 -7
- package/payment/payment.module.d.ts +0 -8
- package/payment/reducers/payment/payment-reducer.interface.d.ts +0 -4
- package/payment/reducers/payment/payment.reducer.d.ts +0 -4
- package/payment/reducers/payment-reducers.d.ts +0 -3
- package/payment/reducers/payment-reducers.interface.d.ts +0 -4
- package/payment/selectors/payment.selector.d.ts +0 -11
- package/shipping/actions/shipping.actions.d.ts +0 -17
- package/shipping/containers/shipping.component.d.ts +0 -19
- package/shipping/facades/shipping.facade.d.ts +0 -33
- package/shipping/reducers/shipping/shipping-reducer.interface.d.ts +0 -5
- package/shipping/reducers/shipping/shipping.reducer.d.ts +0 -4
- package/shipping/reducers/shipping-reducers.d.ts +0 -3
- package/shipping/reducers/shipping-reducers.interface.d.ts +0 -4
- package/shipping/selectors/shipping.selectors.d.ts +0 -15
- package/shipping/shipping-state.module.d.ts +0 -7
- package/shipping/shipping.module.d.ts +0 -9
- package/testing/drivers/in-memory/checkout-driver.module.d.ts +0 -9
- package/testing/drivers/in-memory/checkout.service.d.ts +0 -12
- package/testing/drivers/testing/checkout-driver.module.d.ts +0 -9
- package/testing/drivers/testing/checkout.service.d.ts +0 -13
- package/testing/index.d.ts +0 -13
- package/testing/inmemory-backend/checkout.service.d.ts +0 -19
- package/testing/order/factories/order-address.factory.d.ts +0 -42
- package/testing/order/factories/order-item.factory.d.ts +0 -37
- package/testing/order/factories/order-payment.factory.d.ts +0 -34
- package/testing/order/factories/order-shipping-rate.factory.d.ts +0 -28
- package/testing/order/factories/order.factory.d.ts +0 -29
- package/testing/payment/factories/payment.factory.d.ts +0 -15
- package/testing/shipping/factories/shipping-option.factory.d.ts +0 -12
- package/testing/shipping/factories/shipping-rate.factory.d.ts +0 -17
@@ -1,55 +0,0 @@
|
|
1
|
-
import { Action } from '@ngrx/store';
|
2
|
-
import { DaffCart } from '@daffodil/cart';
|
3
|
-
import { DaffOrder } from '../../models/order/order';
|
4
|
-
/**
|
5
|
-
* @deprecated
|
6
|
-
*/
|
7
|
-
export declare enum DaffOrderActionTypes {
|
8
|
-
PlaceOrderAction = "[Order] Place Order Action",
|
9
|
-
PlaceOrderSuccessAction = "[Order] Place Order Success Action",
|
10
|
-
PlaceOrderFailureAction = "[Order] Place Order Failure Action"
|
11
|
-
}
|
12
|
-
/**
|
13
|
-
* @deprecated
|
14
|
-
*/
|
15
|
-
export declare enum OrderActionTypes {
|
16
|
-
PlaceOrderAction = "[Order] Place Order Action",
|
17
|
-
PlaceOrderSuccessAction = "[Order] Place Order Success Action",
|
18
|
-
PlaceOrderFailureAction = "[Order] Place Order Failure Action"
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* @deprecated
|
22
|
-
*/
|
23
|
-
export declare class PlaceOrder implements Action {
|
24
|
-
payload: DaffCart;
|
25
|
-
readonly type = DaffOrderActionTypes.PlaceOrderAction;
|
26
|
-
constructor(payload: DaffCart);
|
27
|
-
}
|
28
|
-
/**
|
29
|
-
* @deprecated
|
30
|
-
*/
|
31
|
-
export declare class DaffPlaceOrder implements Action {
|
32
|
-
payload: DaffCart;
|
33
|
-
readonly type = DaffOrderActionTypes.PlaceOrderAction;
|
34
|
-
constructor(payload: DaffCart);
|
35
|
-
}
|
36
|
-
/**
|
37
|
-
* @deprecated
|
38
|
-
*/
|
39
|
-
export declare class DaffPlaceOrderSuccess implements Action {
|
40
|
-
payload: DaffOrder;
|
41
|
-
readonly type = DaffOrderActionTypes.PlaceOrderSuccessAction;
|
42
|
-
constructor(payload: DaffOrder);
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* @deprecated
|
46
|
-
*/
|
47
|
-
export declare class DaffPlaceOrderFailure implements Action {
|
48
|
-
payload: string;
|
49
|
-
readonly type = DaffOrderActionTypes.PlaceOrderFailureAction;
|
50
|
-
constructor(payload: string);
|
51
|
-
}
|
52
|
-
/**
|
53
|
-
* @deprecated
|
54
|
-
*/
|
55
|
-
export type DaffOrderActions = DaffPlaceOrder | PlaceOrder | DaffPlaceOrderSuccess | DaffPlaceOrderFailure;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
2
|
-
import { Store } from '@ngrx/store';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
import { DaffOrder } from '../../models/order/order';
|
5
|
-
import { DaffOrderReducersState } from '../reducers/order-reducers.interface';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
/**
|
8
|
-
* @deprecated
|
9
|
-
*/
|
10
|
-
export declare class OrderContainer implements OnInit {
|
11
|
-
private store;
|
12
|
-
order$: Observable<DaffOrder>;
|
13
|
-
loading$: Observable<boolean>;
|
14
|
-
constructor(store: Store<DaffOrderReducersState>);
|
15
|
-
ngOnInit(): void;
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OrderContainer, never>;
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OrderContainer, "[order-container]", ["OrderContainer"], {}, {}, never, ["*"], false, never>;
|
18
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Actions } from '@ngrx/effects';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { DaffCheckoutServiceInterface } from '../../drivers/interfaces/checkout-service.interface';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
/**
|
6
|
-
* @deprecated
|
7
|
-
*/
|
8
|
-
export declare class OrderEffects {
|
9
|
-
private actions$;
|
10
|
-
private checkoutDriver;
|
11
|
-
constructor(actions$: Actions, checkoutDriver: DaffCheckoutServiceInterface);
|
12
|
-
onPlaceOrder$: Observable<any>;
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OrderEffects, never>;
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OrderEffects>;
|
15
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { Store, Action } from '@ngrx/store';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { DaffStoreFacade } from '@daffodil/core/state';
|
4
|
-
import { DaffOrder } from '../../models/order/order';
|
5
|
-
import { DaffOrderReducersState } from '../reducers/order-reducers.interface';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
/**
|
8
|
-
* A facade for accessing state for the currently selected category.
|
9
|
-
*/
|
10
|
-
/**
|
11
|
-
* @deprecated
|
12
|
-
*/
|
13
|
-
export declare class DaffOrderFacade implements DaffStoreFacade<Action> {
|
14
|
-
private store;
|
15
|
-
/**
|
16
|
-
* The current order.
|
17
|
-
*/
|
18
|
-
order$: Observable<DaffOrder>;
|
19
|
-
/**
|
20
|
-
* The loading state for the current order.
|
21
|
-
*/
|
22
|
-
loading$: Observable<boolean>;
|
23
|
-
/**
|
24
|
-
* Any errors involved in loading the order.
|
25
|
-
*/
|
26
|
-
errors$: Observable<string[]>;
|
27
|
-
constructor(store: Store<DaffOrderReducersState>);
|
28
|
-
/**
|
29
|
-
* Dispatches the given action.
|
30
|
-
*
|
31
|
-
* @param action action to dispatch.
|
32
|
-
*/
|
33
|
-
dispatch(action: Action): void;
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderFacade, never>;
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderFacade>;
|
36
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@ngrx/store";
|
3
|
-
import * as i2 from "@ngrx/effects";
|
4
|
-
/**
|
5
|
-
* @deprecated
|
6
|
-
*/
|
7
|
-
export declare class DaffOrderStateModule {
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderStateModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderStateModule, never, [typeof i1.StoreFeatureModule, typeof i2.EffectsFeatureModule], never>;
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderStateModule>;
|
11
|
-
}
|
package/order/order.module.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./containers/order.component";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "./order-state.module";
|
5
|
-
/**
|
6
|
-
* @deprecated
|
7
|
-
*/
|
8
|
-
export declare class DaffOrderModule {
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderModule, never>;
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffOrderModule, [typeof i1.OrderContainer], [typeof i2.CommonModule, typeof i3.DaffOrderStateModule], [typeof i1.OrderContainer]>;
|
11
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffOrderModule>;
|
12
|
-
}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { DaffOrderReducerState } from './order-reducer.interface';
|
2
|
-
import { DaffOrderActions } from '../../actions/order.actions';
|
3
|
-
/**
|
4
|
-
* @deprecated
|
5
|
-
*/
|
6
|
-
export declare const initialState: DaffOrderReducerState;
|
7
|
-
/**
|
8
|
-
* @deprecated
|
9
|
-
*/
|
10
|
-
export declare function daffOrderReducer(state: DaffOrderReducerState, action: DaffOrderActions): DaffOrderReducerState;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
2
|
-
import { DaffOrder } from '../../models/order/order';
|
3
|
-
import { DaffOrderReducerState } from '../reducers/order/order-reducer.interface';
|
4
|
-
import { DaffOrderReducersState } from '../reducers/order-reducers.interface';
|
5
|
-
/**
|
6
|
-
* Order Feature State
|
7
|
-
*
|
8
|
-
* @deprecated
|
9
|
-
*/
|
10
|
-
export declare const selectOrderFeatureState: MemoizedSelector<Record<string, any>, DaffOrderReducersState>;
|
11
|
-
/**
|
12
|
-
* Order State
|
13
|
-
*
|
14
|
-
* @deprecated
|
15
|
-
*/
|
16
|
-
export declare const selectOrderState: MemoizedSelector<Record<string, any>, DaffOrderReducerState, (s1: DaffOrderReducersState) => DaffOrderReducerState>;
|
17
|
-
/**
|
18
|
-
* @deprecated
|
19
|
-
*/
|
20
|
-
export declare const selectOrder: MemoizedSelector<Record<string, any>, DaffOrder>;
|
21
|
-
/**
|
22
|
-
* @deprecated
|
23
|
-
*/
|
24
|
-
export declare const selectLoading: MemoizedSelector<Record<string, any>, boolean>;
|
25
|
-
/**
|
26
|
-
* @deprecated
|
27
|
-
*/
|
28
|
-
export declare const selectErrors: MemoizedSelector<Record<string, any>, string[]>;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { Action } from '@ngrx/store';
|
2
|
-
import { PaymentInfo } from '../../models/payment/payment-info';
|
3
|
-
export declare enum DaffPaymentActionTypes {
|
4
|
-
UpdatePaymentInfoAction = "[Payment] Update Payment Info Action"
|
5
|
-
}
|
6
|
-
export declare class DaffUpdatePaymentInfo implements Action {
|
7
|
-
payload: PaymentInfo;
|
8
|
-
readonly type = DaffPaymentActionTypes.UpdatePaymentInfoAction;
|
9
|
-
constructor(payload: PaymentInfo);
|
10
|
-
}
|
11
|
-
export type DaffPaymentActions = DaffUpdatePaymentInfo;
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { Store, Action } from '@ngrx/store';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { DaffStoreFacade } from '@daffodil/core/state';
|
4
|
-
import { PaymentInfo } from '../../models/payment/payment-info';
|
5
|
-
import { DaffPaymentReducersState } from '../reducers/payment-reducers.interface';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
/**
|
8
|
-
* A facade for accessing state for customer payment information.
|
9
|
-
*/
|
10
|
-
export declare class DaffPaymentFacade implements DaffStoreFacade<Action> {
|
11
|
-
private store;
|
12
|
-
/**
|
13
|
-
* The payment information for a customer.
|
14
|
-
*/
|
15
|
-
paymentInfo$: Observable<PaymentInfo>;
|
16
|
-
constructor(store: Store<DaffPaymentReducersState>);
|
17
|
-
/**
|
18
|
-
* Dispatches the given action.
|
19
|
-
*
|
20
|
-
* @param action action to dispatch.
|
21
|
-
*/
|
22
|
-
dispatch(action: Action): void;
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaymentFacade, never>;
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffPaymentFacade>;
|
25
|
-
}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@ngrx/store";
|
3
|
-
export declare class DaffPaymentStateModule {
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaymentStateModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffPaymentStateModule, never, [typeof i1.StoreFeatureModule], never>;
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffPaymentStateModule>;
|
7
|
-
}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@angular/common";
|
3
|
-
import * as i2 from "./payment-state.module";
|
4
|
-
export declare class DaffPaymentModule {
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffPaymentModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffPaymentModule, never, [typeof i1.CommonModule, typeof i2.DaffPaymentStateModule], never>;
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffPaymentModule>;
|
8
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { DaffPaymentReducerState } from './payment-reducer.interface';
|
2
|
-
import { DaffPaymentActions } from '../../actions/payment.actions';
|
3
|
-
export declare const initialState: DaffPaymentReducerState;
|
4
|
-
export declare function daffPaymentReducer(state: DaffPaymentReducerState, action: DaffPaymentActions): DaffPaymentReducerState;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { DaffPaymentReducerState } from '../reducers/payment/payment-reducer.interface';
|
2
|
-
import { DaffPaymentReducersState } from '../reducers/payment-reducers.interface';
|
3
|
-
/**
|
4
|
-
* Payment Feature State
|
5
|
-
*/
|
6
|
-
export declare const selectPaymentFeatureState: import("@ngrx/store").MemoizedSelector<object, DaffPaymentReducersState, import("@ngrx/store").DefaultProjectorFn<DaffPaymentReducersState>>;
|
7
|
-
/**
|
8
|
-
* Payment State
|
9
|
-
*/
|
10
|
-
export declare const selectPaymentState: import("@ngrx/store").MemoizedSelector<object, DaffPaymentReducerState, (s1: DaffPaymentReducersState) => DaffPaymentReducerState>;
|
11
|
-
export declare const selectPaymentInfo: import("@ngrx/store").MemoizedSelector<object, import("@daffodil/checkout").PaymentInfo, (s1: DaffPaymentReducerState) => import("@daffodil/checkout").PaymentInfo>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Action } from '@ngrx/store';
|
2
|
-
import { DaffAddress } from '@daffodil/core';
|
3
|
-
export declare enum DaffShippingActionTypes {
|
4
|
-
UpdateShippingAddressAction = "[Shipping] Update Shipping Address Action",
|
5
|
-
SelectShippingOptionAction = "[Shipping] Select Shipping Option Action"
|
6
|
-
}
|
7
|
-
export declare class DaffUpdateShippingAddress implements Action {
|
8
|
-
payload: DaffAddress;
|
9
|
-
readonly type = DaffShippingActionTypes.UpdateShippingAddressAction;
|
10
|
-
constructor(payload: DaffAddress);
|
11
|
-
}
|
12
|
-
export declare class DaffSelectShippingOption implements Action {
|
13
|
-
payload: string;
|
14
|
-
readonly type = DaffShippingActionTypes.SelectShippingOptionAction;
|
15
|
-
constructor(payload: string);
|
16
|
-
}
|
17
|
-
export type DaffShippingActions = DaffUpdateShippingAddress | DaffSelectShippingOption;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
2
|
-
import { Store } from '@ngrx/store';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
import { DaffAddress } from '@daffodil/core';
|
5
|
-
import { DaffShippingReducersState } from '../reducers/shipping-reducers.interface';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
export declare class ShippingContainer implements OnInit {
|
8
|
-
private store;
|
9
|
-
shippingAddress$: Observable<DaffAddress>;
|
10
|
-
selectedShippingOptionId$: Observable<string>;
|
11
|
-
isShippingAddressValid$: Observable<boolean>;
|
12
|
-
isShippingOptionSelected$: Observable<boolean>;
|
13
|
-
constructor(store: Store<DaffShippingReducersState>);
|
14
|
-
ngOnInit(): void;
|
15
|
-
updateShippingAddress(address: DaffAddress): void;
|
16
|
-
selectShippingOption(optionId: string): void;
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ShippingContainer, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShippingContainer, "[shipping-container]", ["ShippingContainer"], {}, {}, never, ["*"], false, never>;
|
19
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { Store, Action } from '@ngrx/store';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { DaffAddress } from '@daffodil/core';
|
4
|
-
import { DaffStoreFacade } from '@daffodil/core/state';
|
5
|
-
import { DaffShippingReducersState } from '../reducers/shipping-reducers.interface';
|
6
|
-
import * as i0 from "@angular/core";
|
7
|
-
/**
|
8
|
-
* A facade for accessing state for shipping information.
|
9
|
-
*/
|
10
|
-
export declare class DaffShippingFacade implements DaffStoreFacade<Action> {
|
11
|
-
private store;
|
12
|
-
/**
|
13
|
-
* The shipping address for the customer.
|
14
|
-
*/
|
15
|
-
shippingAddress$: Observable<DaffAddress>;
|
16
|
-
/**
|
17
|
-
* The selected shipping option id.
|
18
|
-
*/
|
19
|
-
selectedShippingOptionId$: Observable<string>;
|
20
|
-
/**
|
21
|
-
* Is the shipping address valid.
|
22
|
-
*/
|
23
|
-
isShippingAddressValid$: Observable<boolean>;
|
24
|
-
constructor(store: Store<DaffShippingReducersState>);
|
25
|
-
/**
|
26
|
-
* Dispatches the given action.
|
27
|
-
*
|
28
|
-
* @param action action to dispatch.
|
29
|
-
*/
|
30
|
-
dispatch(action: Action): void;
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShippingFacade, never>;
|
32
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffShippingFacade>;
|
33
|
-
}
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { DaffShippingReducerState } from './shipping-reducer.interface';
|
2
|
-
import { DaffShippingActions } from '../../actions/shipping.actions';
|
3
|
-
export declare const initialState: DaffShippingReducerState;
|
4
|
-
export declare function daffShippingReducer(state: DaffShippingReducerState, action: DaffShippingActions): DaffShippingReducerState;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { MemoizedSelector } from '@ngrx/store';
|
2
|
-
import { DaffAddress } from '@daffodil/core';
|
3
|
-
import { DaffShippingReducerState } from '../reducers/shipping/shipping-reducer.interface';
|
4
|
-
import { DaffShippingReducersState } from '../reducers/shipping-reducers.interface';
|
5
|
-
/**
|
6
|
-
* Shipping Feature State
|
7
|
-
*/
|
8
|
-
export declare const selectShippingFeatureState: MemoizedSelector<Record<string, any>, DaffShippingReducersState>;
|
9
|
-
/**
|
10
|
-
* Shipping State
|
11
|
-
*/
|
12
|
-
export declare const selectShippingState: MemoizedSelector<Record<string, any>, DaffShippingReducerState, (s1: DaffShippingReducersState) => DaffShippingReducerState>;
|
13
|
-
export declare const selectShippingAddress: MemoizedSelector<Record<string, any>, DaffAddress>;
|
14
|
-
export declare const selectShippingOptionId: MemoizedSelector<Record<string, any>, string>;
|
15
|
-
export declare const selectIsShippingAddressValid: MemoizedSelector<Record<string, any>, boolean>;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "@ngrx/store";
|
3
|
-
export declare class DaffShippingStateModule {
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShippingStateModule, never>;
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffShippingStateModule, never, [typeof i1.StoreFeatureModule], never>;
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffShippingStateModule>;
|
7
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./containers/shipping.component";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "./shipping-state.module";
|
5
|
-
export declare class DaffShippingModule {
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffShippingModule, never>;
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffShippingModule, [typeof i1.ShippingContainer], [typeof i2.CommonModule, typeof i3.DaffShippingStateModule], [typeof i1.ShippingContainer]>;
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffShippingModule>;
|
9
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
export declare class DaffCheckoutInMemoryDriverModule {
|
5
|
-
static forRoot(): ModuleWithProviders<DaffCheckoutInMemoryDriverModule>;
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckoutInMemoryDriverModule, never>;
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCheckoutInMemoryDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCheckoutInMemoryDriverModule>;
|
9
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
2
|
-
import { Observable } from 'rxjs';
|
3
|
-
import { DaffCheckoutServiceInterface, DaffOrder } from '@daffodil/checkout';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare class DaffInMemoryCheckoutService implements DaffCheckoutServiceInterface {
|
6
|
-
private http;
|
7
|
-
url: string;
|
8
|
-
constructor(http: HttpClient);
|
9
|
-
placeOrder(cartId: string): Observable<DaffOrder>;
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryCheckoutService, never>;
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryCheckoutService>;
|
12
|
-
}
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
export declare class DaffCheckoutTestingDriverModule {
|
5
|
-
static forRoot(): ModuleWithProviders<DaffCheckoutTestingDriverModule>;
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffCheckoutTestingDriverModule, never>;
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DaffCheckoutTestingDriverModule, never, [typeof i1.CommonModule], never>;
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DaffCheckoutTestingDriverModule>;
|
9
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { DaffOrder, DaffCheckoutServiceInterface } from '@daffodil/checkout';
|
3
|
-
import { DaffOrderItemFactory } from '../../order/factories/order-item.factory';
|
4
|
-
import { DaffOrderFactory } from '../../order/factories/order.factory';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class DaffTestingCheckoutService implements DaffCheckoutServiceInterface {
|
7
|
-
private orderFactory;
|
8
|
-
private orderItemFactory;
|
9
|
-
constructor(orderFactory: DaffOrderFactory, orderItemFactory: DaffOrderItemFactory);
|
10
|
-
placeOrder(cartId: string): Observable<DaffOrder>;
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffTestingCheckoutService, never>;
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffTestingCheckoutService>;
|
13
|
-
}
|
package/testing/index.d.ts
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
export { DaffOrderAddressFactory } from './order/factories/order-address.factory';
|
2
|
-
export { DaffOrderItemFactory } from './order/factories/order-item.factory';
|
3
|
-
export { DaffOrderPaymentFactory } from './order/factories/order-payment.factory';
|
4
|
-
export { DaffOrderShippingRateFactory } from './order/factories/order-shipping-rate.factory';
|
5
|
-
export { DaffOrderFactory } from './order/factories/order.factory';
|
6
|
-
export { DaffPaymentFactory } from './payment/factories/payment.factory';
|
7
|
-
export { DaffShippingOptionFactory } from './shipping/factories/shipping-option.factory';
|
8
|
-
export { DaffShippingRateFactory } from './shipping/factories/shipping-rate.factory';
|
9
|
-
export { DaffTestingCheckoutService } from './drivers/testing/checkout.service';
|
10
|
-
export { DaffInMemoryCheckoutService } from './drivers/in-memory/checkout.service';
|
11
|
-
export { DaffCheckoutInMemoryDriverModule } from './drivers/in-memory/checkout-driver.module';
|
12
|
-
export { DaffCheckoutTestingDriverModule } from './drivers/testing/checkout-driver.module';
|
13
|
-
export { DaffInMemoryBackendCheckoutService } from './inmemory-backend/checkout.service';
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { InMemoryDbService } from 'angular-in-memory-web-api';
|
2
|
-
import { DaffProductImageFactory } from '@daffodil/product/testing';
|
3
|
-
import { DaffOrderItemFactory } from '../order/factories/order-item.factory';
|
4
|
-
import { DaffOrderFactory } from '../order/factories/order.factory';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class DaffInMemoryBackendCheckoutService implements InMemoryDbService {
|
7
|
-
private orderFactory;
|
8
|
-
private orderItemFactory;
|
9
|
-
private productImageFactory;
|
10
|
-
private order;
|
11
|
-
constructor(orderFactory: DaffOrderFactory, orderItemFactory: DaffOrderItemFactory, productImageFactory: DaffProductImageFactory);
|
12
|
-
post(reqInfo: any): any;
|
13
|
-
createDb(): {
|
14
|
-
order: any;
|
15
|
-
};
|
16
|
-
private populateOrder;
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffInMemoryBackendCheckoutService, never>;
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffInMemoryBackendCheckoutService>;
|
19
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { DaffOrderAddress } from '@daffodil/checkout';
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
/**
|
5
|
-
* @deprecated
|
6
|
-
*/
|
7
|
-
export declare class MockOrderAddress implements DaffOrderAddress {
|
8
|
-
address_id: number;
|
9
|
-
quote_id: number;
|
10
|
-
created_at: Date;
|
11
|
-
updated_at: Date;
|
12
|
-
customer_id: number;
|
13
|
-
customer_address_id: number;
|
14
|
-
address_type: string;
|
15
|
-
email: string;
|
16
|
-
prefix: string;
|
17
|
-
firstname: string;
|
18
|
-
middlename: string;
|
19
|
-
lastname: string;
|
20
|
-
suffix: string;
|
21
|
-
company: string;
|
22
|
-
street: string;
|
23
|
-
city: string;
|
24
|
-
state: string;
|
25
|
-
region: string;
|
26
|
-
region_id: string;
|
27
|
-
postcode: string;
|
28
|
-
country_id: string;
|
29
|
-
telephone: string;
|
30
|
-
fax: string;
|
31
|
-
shipping_method: string;
|
32
|
-
shipping_description: string;
|
33
|
-
shipping_rate: any;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* @deprecated
|
37
|
-
*/
|
38
|
-
export declare class DaffOrderAddressFactory extends DaffModelFactory<DaffOrderAddress> {
|
39
|
-
constructor();
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderAddressFactory, never>;
|
41
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderAddressFactory>;
|
42
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
import { DaffOrderItem } from '@daffodil/checkout';
|
2
|
-
import { DaffModelFactory } from '@daffodil/core/testing';
|
3
|
-
import * as i0 from "@angular/core";
|
4
|
-
/**
|
5
|
-
* @deprecated
|
6
|
-
*/
|
7
|
-
export declare class MockOrderItem implements DaffOrderItem {
|
8
|
-
item_id: number;
|
9
|
-
image: any;
|
10
|
-
quote_id: number;
|
11
|
-
created_at: Date;
|
12
|
-
updated_at: Date;
|
13
|
-
product_id: number;
|
14
|
-
parent_item_id: number;
|
15
|
-
sku: string;
|
16
|
-
name: string;
|
17
|
-
description: string;
|
18
|
-
weight: number;
|
19
|
-
qty: number;
|
20
|
-
price: number;
|
21
|
-
discount_percent: number;
|
22
|
-
discount_amount: number;
|
23
|
-
tax_percent: number;
|
24
|
-
tax_amount: number;
|
25
|
-
row_total: number;
|
26
|
-
row_total_with_discount: number;
|
27
|
-
row_weight: number;
|
28
|
-
tax_before_discount: number;
|
29
|
-
}
|
30
|
-
/**
|
31
|
-
* @deprecated
|
32
|
-
*/
|
33
|
-
export declare class DaffOrderItemFactory extends DaffModelFactory<DaffOrderItem> {
|
34
|
-
constructor();
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DaffOrderItemFactory, never>;
|
36
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DaffOrderItemFactory>;
|
37
|
-
}
|