MockDaffCustomerPayment
Mock class for DaffCustomerPayment
.
import { MockDaffCustomerPayment } from '@daffodil/customer-payment/testing'
class MockDaffCustomerPayment extends MockPaymentResponse implements DaffCustomerPayment {
id: faker.datatype.uuid()
address: this.addressFactory.create()
default: faker.datatype.boolean()
nickname: faker.random.word()
createdAt: faker.date.recent().toISOString()
owner: faker.name.fullName()
}
Properties
Name | Type | Description |
---|---|---|
id | faker.datatype.uuid() | |
address | this.addressFactory.create() | |
default | faker.datatype.boolean() | |
nickname | faker.random.word() | |
createdAt | faker.date.recent().toISOString() | |
owner | faker.name.fullName() |