GitHub

DaffPaymentResponseKindFactory

import { DaffPaymentResponseKindFactory } from '@daffodil/payment/testing'

Factory for creating DaffPaymentResponses. This will create a payment response of random kind.

@Injectable()
class DaffPaymentResponseKindFactory extends DaffModelFactory<DaffPaymentResponse> {
  create(partial: {} = {}): DaffPaymentResponse
}

() Methods

create
DaffPaymentResponse

Creates a payment result of random kind.

Parameters
Parameterpartial: {}
Default{}
Description