qe-fe-automation
Version:
FE test automation framework using cypress
40 lines (38 loc) • 884 B
text/typescript
import { PaymentMethod } from '@admin-factory/interface';
export function createPaymentMethod(): PaymentMethod {
return {
nickname: 'GUEST_INVITE',
availableForGuestInvitations: true,
region: '',
subsidiary: '',
department: '',
billTo: '',
uuid: '',
valid: '',
issuerSupplierName: '',
creditCard: {
_fullName: 'P CHOBOT',
givenName: 'P',
familyName: 'CHOBOT',
number: '4242424242424242',
expirationMonth: 1,
expirationYear: 2025,
cvc: '123'
},
billingAddress: {
addressLine1: 'Strawinskylaan',
addressLine2: '1337',
state: 'AL',
city: 'Amsterdam',
country: 'NL',
postalCode: '1337AM'
},
itemMappings: {
FLIGHT: 'AVAILABLE',
HOTEL: 'AVAILABLE',
RAIL: 'AVAILABLE',
CAR: 'AVAILABLE',
BLACK_CAR: 'AVAILABLE'
}
};
}