Skip to content

Commit

Permalink
feat(customer): update the aggregator name
Browse files Browse the repository at this point in the history
  • Loading branch information
meriamBenSassi committed Oct 20, 2021
1 parent 3e57fe3 commit 2879cb3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/algoan/dto/customer.inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ export interface AggregationDetailsUpdateInput {
iframeUrl?: string;
userId?: string;
clientId?: string;
aggregatorName?: string;
}
4 changes: 4 additions & 0 deletions src/hooks/services/hooks.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ describe('HookService', () => {
expect(updateCustomerSpy).toHaveBeenCalledWith(aggregatorLinkRequiredMock.customerId, {
aggregationDetails: {
redirectUrl: 'MY_LINK_URL',
aggregatorName: 'TINK',
},
});
});
Expand Down Expand Up @@ -233,6 +234,7 @@ describe('HookService', () => {
aggregationDetails: {
redirectUrl: 'MY_LINK_URL',
userId: createUserObject.user_id,
aggregatorName: 'TINK',
},
});
});
Expand Down Expand Up @@ -278,6 +280,7 @@ describe('HookService', () => {
aggregationDetails: {
redirectUrl: 'MY_LINK_URL',
userId: createUserObject.user_id,
aggregatorName: 'TINK',
},
});
});
Expand Down Expand Up @@ -307,6 +310,7 @@ describe('HookService', () => {
aggregationDetails: {
iframeUrl: 'MY_LINK_URL',
userId: createUserObject.user_id,
aggregatorName: 'TINK',
},
});
});
Expand Down
1 change: 1 addition & 0 deletions src/hooks/services/hooks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class HooksService {
aggregationDetails: {
...linkData,
userId: tinkUserId,
aggregatorName: 'TINK',
},
});

Expand Down

0 comments on commit 2879cb3

Please sign in to comment.