-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
5f331ef
commit 71e6d12
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
bin/test/testdata/fixtures/api.omise.co/recipients-post.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,23 @@ | ||
{ | ||
"object": "recipient", | ||
"id": "recp_test_50894vc13y8z4v51iuc", | ||
"livemode": false, | ||
"location": "/recipients/recp_test_50894vc13y8z4v51iuc", | ||
"verified": true, | ||
"active": true, | ||
"name": "[email protected]", | ||
"email": "[email protected]", | ||
"description": "Default recipient", | ||
"type": "individual", | ||
"tax_id": null, | ||
"bank_account": { | ||
"object": "bank_account", | ||
"brand": "test", | ||
"last_digits": "6789", | ||
"name": "JOHN DOE", | ||
"created_at": "2015-06-02T09:26:59Z", | ||
"account_number": "1111" | ||
}, | ||
"failure_code": null, | ||
"created_at": "2015-06-02T09:26:59Z" | ||
} |
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 |
---|---|---|
|
@@ -24,6 +24,7 @@ public void testCreate() throws IOException, OmiseException { | |
assertEquals(RECIPIENT_ID, recipient.getId()); | ||
assertEquals("[email protected]", recipient.getEmail()); | ||
assertEquals("6789", recipient.getBankAccount().getLastDigits()); | ||
assertEquals("1111", recipient.getBankAccount().getAccountNumber()); | ||
assertEquals("Default recipient", recipient.getDescription()); | ||
} | ||
|
||
|
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