Skip to content

Commit

Permalink
Update recipient tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnasNaouchi committed Sep 5, 2024
1 parent 5f331ef commit 71e6d12
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions bin/test/testdata/fixtures/api.omise.co/recipients-post.json
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"
}
1 change: 1 addition & 0 deletions src/test/java/co/omise/requests/RecipientRequestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"brand": "test",
"last_digits": "6789",
"name": "JOHN DOE",
"created_at": "2015-06-02T09:26:59Z"
"created_at": "2015-06-02T09:26:59Z",
"account_number": "1111"
},
"failure_code": null,
"created_at": "2015-06-02T09:26:59Z"
Expand Down

0 comments on commit 71e6d12

Please sign in to comment.