GitHub

DaffCustomerPaymentInMemoryBackendService

An in-memory service that handles customer payment HTTP requests.

import { DaffCustomerPaymentInMemoryBackendService } from '@daffodil/customer-payment/driver/in-memory'
@Injectable()
class DaffCustomerPaymentInMemoryBackendService implements InMemoryDbService, DaffInMemorySingleRouteableBackend {
  readonly collectionName: DAFF_CUSTOMER_PAYMENT_IN_MEMORY_COLLECTION_NAME
  payments: Record<DaffCustomerPayment['id'], DaffCustomerPayment>
  get(reqInfo: RequestInfo_2)
  put(reqInfo: RequestInfo_2)
  post(reqInfo: RequestInfo_2)
  delete(reqInfo: RequestInfo_2)
}

Properties

Name Type Description
collectionName DAFF_CUSTOMER_PAYMENT_IN_MEMORY_COLLECTION_NAME
payments Record<DaffCustomerPayment['id'], DaffCustomerPayment>
get

Gets a customer payment.

put
post
delete