GitHub

DaffCustomerPaymentSelectors

import { DaffCustomerPaymentSelectors } from '@daffodil/customer-payment/state'

Selectors for the main part of customer payment state.

interface DaffCustomerPaymentSelectors<T extends DaffCustomerPayment = DaffCustomerPayment> {
  selectPayment: (id: T["id"]) => MemoizedSelector<DaffCustomerPaymentStateRootSlice<T>, T, DefaultProjectorFn<T>>
  selectPayments: MemoizedSelector<DaffCustomerPaymentStateRootSlice<T>, T[], DefaultProjectorFn<T[]>>
}

Properties

selectPayment
(id: T["id"]) => MemoizedSelector<DaffCustomerPaymentStateRootSlice<T>, T, DefaultProjectorFn<T>>

Selects the customer payment.

selectPayments
MemoizedSelector<DaffCustomerPaymentStateRootSlice<T>, T[], DefaultProjectorFn<T[]>>

Selects all of the customer payment entities.