-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#v6.4.2110.0-rc - Add missing properties in models (#77)
- Invoice - PayoutInstruction - PayoutInfo
- Loading branch information
Showing
4 changed files
with
157 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -228,7 +228,7 @@ public void testShouldGetInvoice() { | |
// | ||
// Must use a merchant token to retrieve this invoice since it was not created on the public facade. | ||
String token = this.bitpay.getAccessToken(Facade.Merchant); | ||
retreivedInvoice = this.bitpay.getInvoice("FUfs9crxMuuJLUL1f4hxHf"); | ||
retreivedInvoice = this.bitpay.getInvoice(invoice.getId()); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
fail(e.getMessage()); | ||
|
@@ -240,7 +240,7 @@ public void testShouldGetInvoice() { | |
public void testShouldCreateInvoiceWithAdditionalParams() { | ||
Buyer buyer = new Buyer(); | ||
buyer.setName("Satoshi"); | ||
// buyer.setEmail("[email protected]"); | ||
buyer.setEmail("[email protected]"); | ||
|
||
Invoice invoice = new Invoice(100.0, "USD"); | ||
invoice.setBuyer(buyer); | ||
|
@@ -743,7 +743,7 @@ public void testShouldCreateGetCancelRefundRequestNEW() { | |
String sevenDaysAgo = sdf.format(dateBefore); | ||
invoices = this.bitpay.getInvoices(sevenDaysAgo, today, InvoiceStatus.Complete, null, null, null); | ||
firstInvoice = invoices.get(0); | ||
updatedInvoice = this.bitpay.updateInvoice(firstInvoice.getId(), "+***********", null); | ||
updatedInvoice = this.bitpay.updateInvoice(firstInvoice.getId(), "+***********", null, null); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
} | ||
|