-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
351 additions
and
39 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
210 changes: 179 additions & 31 deletions
210
src/test/java/com/hyperwallet/clientsdk/HyperwalletIT.java
Large diffs are not rendered by default.
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
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
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
9 changes: 9 additions & 0 deletions
9
src/test/resources/integration/createTransferWithoutForeignExchange-request.txt
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,9 @@ | ||
curl -X "POST" "https://api.sandbox.hyperwallet.com/rest/v4/transfers" \ | ||
-u testuser@12345678:myAccPassw0rd \ | ||
-H "Content-Type: application/json" \ | ||
-H "Accept: application/json" \ | ||
-d "{ | ||
"sourceToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"destinationToken": "trm-ff53d939-49c3-412f-8d83-ab4f7e83d553", | ||
"clientTransferId": "clientTransferId" | ||
}" |
25 changes: 25 additions & 0 deletions
25
src/test/resources/integration/createTransferWithoutForeignExchange-response.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,25 @@ | ||
{ | ||
"token": "trm-59f67c62-fd06-497e-a9ea-99d6eb38b12b", | ||
"status": "QUOTED", | ||
"createdOn": "2017-10-31T22:32:57", | ||
"clientTransferId": "clientTransferId", | ||
"sourceToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"sourceAmount": "200.4", | ||
"sourceFeeAmount": "20.3", | ||
"sourceCurrency": "USD", | ||
"destinationToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"destinationAmount": "100.2", | ||
"destinationFeeAmount": "30.5", | ||
"destinationCurrency": "USD", | ||
"notes": "notes", | ||
"memo": "memo", | ||
"expiresOn": "2017-10-31T22:32:57", | ||
"links": [ | ||
{ | ||
"params": { | ||
"rel": "self" | ||
}, | ||
"href": "https://api.sandbox.hyperwallet.com/rest/v4/transfers/trf-59f67c62-fd06-497e-a9ea-99d6eb38b12b" | ||
} | ||
] | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/test/resources/integration/getTransferWithoutForeignExchange-request.txt
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,3 @@ | ||
curl -X "GET" "https://api.sandbox.hyperwallet.com/rest/v4/transfers/usr-c4292f1a-866f-4310-a289-b916853939de | ||
-u testuser@12345678:myAccPassw0rd \ | ||
-H "Accept: application/json" |
25 changes: 25 additions & 0 deletions
25
src/test/resources/integration/getTransferWithoutForeignExchange-response.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,25 @@ | ||
{ | ||
"token": "trm-59f67c62-fd06-497e-a9ea-99d6eb38b12b", | ||
"status": "QUOTED", | ||
"createdOn": "2017-10-31T22:32:57", | ||
"clientTransferId": "clientTransferId", | ||
"sourceToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"sourceAmount": "200.4", | ||
"sourceFeeAmount": "20.3", | ||
"sourceCurrency": "USD", | ||
"destinationToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"destinationAmount": "100.2", | ||
"destinationFeeAmount": "30.5", | ||
"destinationCurrency": "USD", | ||
"notes": "notes", | ||
"memo": "memo", | ||
"expiresOn": "2017-10-31T22:32:57", | ||
"links": [ | ||
{ | ||
"params": { | ||
"rel": "self" | ||
}, | ||
"href": "https://api.sandbox.hyperwallet.com/rest/v4/transfers/trf-59f67c62-fd06-497e-a9ea-99d6eb38b12b" | ||
} | ||
] | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/test/resources/integration/listTransfersWithoutForeignExchange-request.txt
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,3 @@ | ||
curl -X "GET" "https://api.sandbox.hyperwallet.com/rest/v4/transfers" \ | ||
-u testuser@12345678:myAccPassw0rd \ | ||
-H "Accept: application/json" |
40 changes: 40 additions & 0 deletions
40
src/test/resources/integration/listTransfersWithoutForeignExchange-response.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,40 @@ | ||
{ | ||
"hasNextPage": "false", | ||
"hasPreviousPage": "false", | ||
"limit": 10, | ||
"data": [ | ||
{ | ||
"token": "trm-59f67c62-fd06-497e-a9ea-99d6eb38b12b", | ||
"status": "QUOTED", | ||
"createdOn": "2017-10-31T22:32:57", | ||
"clientTransferId": "clientTransferId", | ||
"sourceToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"sourceAmount": "200.4", | ||
"sourceFeeAmount": "20.3", | ||
"sourceCurrency": "USD", | ||
"destinationToken": "usr-c4292f1a-866f-4310-a289-b916853939de", | ||
"destinationAmount": "100.2", | ||
"destinationFeeAmount": "30.5", | ||
"destinationCurrency": "USD", | ||
"notes": "notes", | ||
"memo": "memo", | ||
"expiresOn": "2017-10-31T22:32:57", | ||
"links": [ | ||
{ | ||
"params": { | ||
"rel": "self" | ||
}, | ||
"href": "https://api.sandbox.hyperwallet.com/rest/v4/transfers/trf-59f67c62-fd06-497e-a9ea-99d6eb38b12b" | ||
} | ||
] | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"params": { | ||
"rel": "self" | ||
}, | ||
"href": "https://api.sandbox.hyperwallet.com/rest/v4/transfers?offset=0&limit=10" | ||
} | ||
] | ||
} |