graycoreio/daffodil

View on GitHub
apps/demo/src/app/checkout/actions/checkout.actions.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Action } from '@ngrx/store';

export enum CheckoutActionTypes {
  EnablePlaceOrderButtonAction = '[Foundation-Checkout] Enable Place Order Button Action',
  ShowReviewViewAction = '[Foundation-Checkout] Show Review View Action'
}

export class EnablePlaceOrderButton implements Action {
  readonly type = CheckoutActionTypes.EnablePlaceOrderButtonAction;
}

export class ShowReviewView implements Action {
  readonly type = CheckoutActionTypes.ShowReviewViewAction;
}

export type CheckoutActions =
    | EnablePlaceOrderButton
    | ShowReviewView;