Skip to content

Commit

Permalink
AB#28414 add OCW PA & update API test
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrk39 committed May 30, 2024
1 parent 5df5ef0 commit 7a8c0ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ import {
registrationOCW1,
registrationOCW3,
registrationOCW4,
registrationPV5,
registrationOCW5,
registrationPV6,
} from '@121-service/test/registrations/pagination/pagination-data';

describe('Load PA table', () => {
describe('getting registration using paginate and filtering on payment', () => {
registrationOCW3.lastName = 'mock-fail-create-customer';
// This number implies that in mock-service no incoming 'yes' is triggered, so that the transaction stays on 'waiting'
registrationPV5.whatsappPhoneNumber = '16005550002';
registrationOCW5.whatsappPhoneNumber = '16005550002';

let accessToken: string;
const payment1 = 1;
Expand All @@ -41,7 +41,7 @@ describe('Load PA table', () => {
const registrations = [
registrationOCW1,
registrationOCW3,
registrationPV5,
registrationOCW5,
registrationOCW4,
];
const paymentReferenceIds = registrations.map(
Expand Down Expand Up @@ -114,7 +114,7 @@ describe('Load PA table', () => {

// Assert
const expectedValueObjectWaiting = createExpectedValueObject(
registrationPV5,
registrationOCW5,
3,
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ export const registrationOCW4 = {
addressCity: 'AnotherCity',
};

export const registrationOCW5 = {
referenceId: '54e62864557597e034',
preferredLanguage: LanguageEnum.nl,
paymentAmountMultiplier: 3,
firstName: 'Lars',
lastName: 'Larsson',
phoneNumber: '14155235556',
fspName: FinancialServiceProviderName.intersolveVoucherWhatsapp,
whatsappPhoneNumber: '14155235556',
};

export const registrationsOCW = [
registrationOCW1,
registrationOCW2,
Expand Down

0 comments on commit 7a8c0ae

Please sign in to comment.