GitHub

MockDaffCustomerPaymentAuthorizeNetApplyRequest

Mock

import { MockDaffCustomerPaymentAuthorizeNetApplyRequest } from '@daffodil/customer-payment-authorizenet/testing'

class MockDaffCustomerPaymentAuthorizeNetApplyRequest extends MockDaffCustomerPaymentRequest implements DaffCustomerPaymentAuthorizeNetApplyRequest {
  kind: "daffCustomerPaymentAuthorizeNet" = DAFF_CUSTOMER_PAYMENT_AUTHORIZENET_PAYMENT_KIND
  data: { id: any; securityCode: any; } = {
      id: faker.string.uuid(),
      securityCode: faker.finance.creditCardCVV(),
    }
  address: DaffCustomerAddress = this.addressFactory.create()
  default: faker.datatype.boolean() = faker.datatype.boolean()
  nickname: faker.lorem.word() = faker.lorem.word()
  owner: faker.name.fullName() = faker.name.fullName()
}