Skip to content

Commit

Permalink
Fix #787 (#787) (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBergaminiCodeploy committed Oct 21, 2021
1 parent cea53fb commit 932b5e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/__mocks__/notification/authorisationTrue.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"totalFraudScore": "10",
"hmacSignature": "OzDjCMZIsdtDqrZ+cl\/FWC+WdESrorctXTzAzW33dXI=",
"NAME2": " VALUE2 ",
"fraudCheck-6-ShopperIpUsage": "10"
"fraudCheck-6-ShopperIpUsage": "10",
"paymentLinkId": "ABCDEFG"
},
"amount": {
"currency": "EUR",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/notification.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ describe("Notification Test", function (): void {
expect(NotificationEnum.Authorisation).toEqual(notificationRequestItem.eventCode);
expect(notificationRequestItem.success === SuccessEnum.True).toBeTruthy();
expect(notificationRequestItem.pspReference).toEqual("123456789");
expect(notificationRequestItem.additionalData!.paymentLinkId).toEqual("ABCDEFG");
} else {
fail();
}
Expand Down
12 changes: 11 additions & 1 deletion src/typings/notification/additionalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export class AdditionalData {
* HMAC Key from customer area
*/
'hmacSignature'?: string;
/**
* A unique identifier for the payment link
*/
'paymentLinkId'?: string;

static discriminator: string | undefined = undefined;

Expand Down Expand Up @@ -108,7 +112,13 @@ export class AdditionalData {
"name": "hmacSignature",
"baseName": "hmacSignature",
"type": "string"
} ];
},
{
"name": "paymentLinkId",
"baseName": "paymentLinkId",
"type": "string"
}
];

static getAttributeTypeMap() {
return AdditionalData.attributeTypeMap;
Expand Down

0 comments on commit 932b5e6

Please sign in to comment.