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> {
_instantiationArgs: ConstructorParameters<Klass>
type: Constructable<DaffAccountRegistration, any[]>
create(partial: {} = {}): DaffPaymentResponse<unknown>
createMany(
qty: number = 1
partial: Partial<T> = {}
): T[]
}
DaffPaymentResponseCreates a payment result of random kind.
| Parameter | partial: {} |
|---|---|
| Default | {} |
| Description |
T[]| Parameter | qty: number |
|---|---|
| Default | 1 |
| Description |
| Parameter | partial: Partial |
|---|---|
| Default | {} |
| Description |