import { DaffOrderFacadeInterface } from '@daffodil/order/state'
interface DaffOrderFacadeInterface<T extends DaffOrder = DaffOrder> {
loading$: Observable<boolean>
errors$: Observable<DaffStateError[]>
orders$: Observable<T[]>
orderIds$: Observable<T['id'][]>
orderCount$: Observable<number>
orderEntities$: Observable<Dictionary<T>>
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
}
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 |