-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(thirdparty): add
tpr/authorizations
calls (#160)
* feat: add *ThirdpartyRequestsAuthorizations API calls * feat(unit): tests for tpr/authorizations calls * chore: appease linting gods
- Loading branch information
Showing
8 changed files
with
248 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/test/unit/data/postThirdpartyRequestsAuthorizationBody.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"authorizationRequestId": "5f8ee7f9-290f-4e03-ae1c-1e81ecf398df", | ||
"transactionRequestId": "2cf08eed-3540-489e-85fa-b2477838a8c5", | ||
"challenge": "<base64 encoded binary - the encoded challenge>", | ||
"transferAmount": { | ||
"amount": "100", | ||
"currency": "USD" | ||
}, | ||
"payeeReceiveAmount": { | ||
"amount": "99", | ||
"currency": "USD" | ||
}, | ||
"fees": { | ||
"amount": "1", | ||
"currency": "USD" | ||
}, | ||
"payee": { | ||
"partyIdInfo": { | ||
"partyIdType": "MSISDN", | ||
"partyIdentifier": "+4412345678", | ||
"fspId": "dfspb" | ||
} | ||
}, | ||
"payer": { | ||
"partyIdType": "THIRD_PARTY_LINK", | ||
"partyIdentifier": "qwerty-123456", | ||
"fspId": "dfspa" | ||
}, | ||
"transactionType": { | ||
"scenario": "TRANSFER", | ||
"initiator": "PAYER", | ||
"initiatorType": "CONSUMER" | ||
}, | ||
"expiration": "2020-06-15T12:00:00.000Z" | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/unit/data/putThirdpartyRequestsAuthorizationBody.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"signedPayloadType": "FIDO", | ||
"signedPayload": { | ||
"id": "45c-TkfkjQovQeAWmOy-RLBHEJ_e4jYzQYgD8VdbkePgM5d98BaAadadNYrknxgH0jQEON8zBydLgh1EqoC9DA", | ||
"rawId": "45c+TkfkjQovQeAWmOy+RLBHEJ/e4jYzQYgD8VdbkePgM5d98BaAadadNYrknxgH0jQEON8zBydLgh1EqoC9DA==", | ||
"response": { | ||
"authenticatorData": "SZYN5YgOjGh0NBcPZHZgW4/krrmihjLHmVzzuoMdl2MBAAAACA==", | ||
"clientDataJSON": "eyJ0eXBlIjoid2ViYXV0aG4uZ2V0IiwiY2hhbGxlbmdlIjoiQUFBQUFBQUFBQUFBQUFBQUFBRUNBdyIsIm9yaWdpbiI6Imh0dHA6Ly9sb2NhbGhvc3Q6NDIxODEiLCJjcm9zc09yaWdpbiI6ZmFsc2UsIm90aGVyX2tleXNfY2FuX2JlX2FkZGVkX2hlcmUiOiJkbyBub3QgY29tcGFyZSBjbGllbnREYXRhSlNPTiBhZ2FpbnN0IGEgdGVtcGxhdGUuIFNlZSBodHRwczovL2dvby5nbC95YWJQZXgifQ==", | ||
"signature": "MEUCIDcJRBu5aOLJVc/sPyECmYi23w8xF35n3RNhyUNVwQ2nAiEA+Lnd8dBn06OKkEgAq00BVbmH87ybQHfXlf1Y4RJqwQ8=" | ||
}, | ||
"type": "public-key" | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/unit/data/putThirdpartyRequestsAuthorizationErrorBody.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"errorInformation": { | ||
"errorCode": "6000", | ||
"errorDescription": "Generic third party error.", | ||
"extensionList": { | ||
"extension": [ | ||
{ | ||
"key": "errorDescription", | ||
"value": "This is a more detailed error description" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters