src/app/checkout/reducers/checkout.state.ts
billAddress |
billAddress: |
Type : any
|
lineItemEntities |
lineItemEntities: |
Type : Map<number, LineItem>
|
lineItemIds |
lineItemIds: |
Type : List<number>
|
orderNumber |
orderNumber: |
Type : number
|
orderState |
orderState: |
Type : string
|
shipAddress |
shipAddress: |
Type : any
|
totalCartItems |
totalCartItems: |
Type : number
|
totalCartValue |
totalCartValue: |
Type : number
|
import { Address } from './../../core/models/address';
import { LineItem } from './../../core/models/line_item';
import { Map, Record, List, fromJS } from 'immutable';
export interface CheckoutState extends Map<string, any> {
orderNumber: number;
orderState: string;
lineItemIds: List<number>;
lineItemEntities: Map<number, LineItem>;
totalCartItems: number;
totalCartValue: number;
billAddress: any;
shipAddress: any;
}
export const CheckoutStateRecord = Record({
orderNumber: null,
orderState: null,
lineItemIds: List([]),
lineItemEntities: Map({}),
totalCartItems: 0,
totalCartValue: 0,
billAddress: fromJS({}),
shipAddress: fromJS({})
});