import { MockDaffCustomerPaymentAuthorizeNet } from '@daffodil/customer-payment-authorizenet/testing'
Mock class for DaffCustomerPaymentAuthorizeNet.
class MockDaffCustomerPaymentAuthorizeNet extends MockDaffCustomerPayment implements DaffCustomerPaymentAuthorizeNet {
data: { type: any; last4: any; expMonth: any; expYear: any; } = {
type: faker.helpers.arrayElement(Object.values(DaffCustomerPaymentAuthorizeNetCCType)),
last4: faker.finance.creditCardNumber('####'),
expMonth: faker.date.future().getMonth().toString(),
expYear: faker.date.future().getFullYear().toString(),
}
id: faker.string.uuid() = faker.string.uuid()
address: DaffCustomerAddress = this.addressFactory.create()
default: faker.datatype.boolean() = faker.datatype.boolean()
nickname: faker.lorem.word() = faker.lorem.word()
createdAt: faker.date.recent().toISOString() = faker.date.recent().toISOString()
owner: faker.name.fullName() = faker.name.fullName()
method: faker.lorem.word() = faker.lorem.word()
}