import { DaffOrderFacade } from '@daffodil/order/state'
@Injectable()
class DaffOrderFacade<<T extends DaffOrder = DaffOrder>> implements DaffOrderFacadeInterface<T> {
loading$: Observable<boolean>
errors$: Observable<DaffStateError[]>
loadingState$: Observable<DaffState>
resolving$: Observable<boolean>
mutating$: Observable<boolean>
hasErrors$: Observable<boolean>
orders$: Observable<T[]>
orderIds$: Observable<T['id'][]>
orderCount$: Observable<number>
orderEntities$: Observable<Dictionary<T>>
_order: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T, DefaultProjectorFn<T>>
_totals: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["totals"], DefaultProjectorFn<T["totals"]>>
_appliedCodes: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["applied_codes"], DefaultProjectorFn<T["applied_codes"]>>
_items: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["items"], DefaultProjectorFn<T["items"]>>
_billingAddresses: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["billing_addresses"], DefaultProjectorFn<T["billing_addresses"]>>
_shippingAddresses: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["shipping_addresses"], DefaultProjectorFn<T["shipping_addresses"]>>
_shipments: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["shipments"], DefaultProjectorFn<T["shipments"]>>
_payment: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["payment"], DefaultProjectorFn<T["payment"]>>
_invoices: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["invoices"], DefaultProjectorFn<T["invoices"]>>
_credits: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, T["credits"], DefaultProjectorFn<T["credits"]>>
_grandTotal: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal, DefaultProjectorFn<DaffOrderTotal>>
_subtotal: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal, DefaultProjectorFn<DaffOrderTotal>>
_shipping: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal, DefaultProjectorFn<DaffOrderTotal>>
_discount: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal, DefaultProjectorFn<DaffOrderTotal>>
_hasDiscount: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, boolean, DefaultProjectorFn<boolean>>
_tax: (orderId: T["id"]) => MemoizedSelector<DaffOrderStateRootSlice<T>, DaffOrderTotal, DefaultProjectorFn<DaffOrderTotal>>
getOrder$(orderId: T["id"]): any
getTotals$(orderId: T["id"]): any
getAppliedCodes$(orderId: T["id"]): any
getItems$(orderId: T["id"]): any
getBillingAddresses$(orderId: T["id"]): any
getShippingAddresses$(orderId: T["id"]): any
getShipments$(orderId: T["id"]): any
getPayment$(orderId: T["id"]): any
getInvoices$(orderId: T["id"]): any
getCredits$(orderId: T["id"]): any
getGrandTotal$(orderId: T["id"]): any
getSubtotal$(orderId: T["id"]): any
getShippingTotal$(orderId: T["id"]): any
getDiscountTotal$(orderId: T["id"]): any
hasDiscount$(orderId: T["id"]): any
getTaxTotal$(orderId: T["id"]): any
dispatch(action: Action<string>): void
}
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
any| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyThe specified order's grand total.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyThe specified order's subtotal.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyThe specified order's shipping total.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyThe specified order's discount total.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyWhether the specified order has a discount.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
anyThe specified order's tax total.
| Parameter | orderId: T["id"] |
|---|---|
| Description |
void| Parameter | action: Action |
|---|---|
| Description |