From c378b95e96e5a69f7a7cc9f3eef703057d0850fe Mon Sep 17 00:00:00 2001 From: Antonio Buedo Date: Tue, 10 Nov 2020 19:06:08 +0100 Subject: [PATCH] #v5.1.2011.0-rc - Payouts update (#66) * - Payouts updated * - Payouts recipient models added * - Code refactor * - Tests refactor * - JavaDoc update * - Version upgrade --- apidocs/allclasses-index.html | 154 ++-- apidocs/allpackages-index.html | 4 +- apidocs/com/bitpay/sdk/BitPayException.html | 4 +- apidocs/com/bitpay/sdk/Client.html | 127 ++- apidocs/com/bitpay/sdk/Config.html | 4 +- apidocs/com/bitpay/sdk/Env.Tokens.html | 4 +- apidocs/com/bitpay/sdk/Env.html | 4 +- .../sdk/exceptions/BillCreationException.html | 4 +- .../sdk/exceptions/BillDeliveryException.html | 4 +- .../bitpay/sdk/exceptions/BillException.html | 4 +- .../sdk/exceptions/BillQueryException.html | 4 +- .../sdk/exceptions/BillUpdateException.html | 4 +- .../sdk/exceptions/BitPayException.html | 4 +- .../sdk/exceptions/CurrencyException.html | 4 +- .../exceptions/CurrencyQueryException.html | 4 +- .../exceptions/InvoiceCreationException.html | 4 +- .../sdk/exceptions/InvoiceException.html | 4 +- .../sdk/exceptions/InvoiceQueryException.html | 4 +- .../sdk/exceptions/LedgerException.html | 4 +- .../sdk/exceptions/LedgerQueryException.html | 4 +- .../PayoutCancellationException.html | 4 +- .../exceptions/PayoutCreationException.html | 4 +- .../sdk/exceptions/PayoutException.html | 4 +- .../sdk/exceptions/PayoutQueryException.html | 4 +- .../bitpay/sdk/exceptions/RateException.html | 4 +- .../sdk/exceptions/RateQueryException.html | 4 +- .../RefundCancellationException.html | 4 +- .../exceptions/RefundCreationException.html | 4 +- .../sdk/exceptions/RefundException.html | 4 +- .../sdk/exceptions/RefundQueryException.html | 4 +- .../sdk/exceptions/SettlementException.html | 4 +- .../exceptions/SettlementQueryException.html | 4 +- .../SubscriptionCreationException.html | 4 +- .../sdk/exceptions/SubscriptionException.html | 4 +- .../SubscriptionQueryException.html | 4 +- .../SubscriptionUpdateException.html | 4 +- .../sdk/exceptions/package-summary.html | 4 +- .../bitpay/sdk/exceptions/package-tree.html | 4 +- apidocs/com/bitpay/sdk/model/Bill/Bill.html | 4 +- .../com/bitpay/sdk/model/Bill/BillStatus.html | 4 +- apidocs/com/bitpay/sdk/model/Bill/Item.html | 4 +- .../sdk/model/Bill/package-summary.html | 4 +- .../bitpay/sdk/model/Bill/package-tree.html | 4 +- apidocs/com/bitpay/sdk/model/Currency.html | 4 +- apidocs/com/bitpay/sdk/model/Facade.html | 4 +- .../com/bitpay/sdk/model/Invoice/Buyer.html | 4 +- .../com/bitpay/sdk/model/Invoice/Invoice.html | 4 +- .../Invoice/InvoiceBuyerProvidedInfo.html | 4 +- .../sdk/model/Invoice/InvoiceStatus.html | 4 +- .../sdk/model/Invoice/InvoiceTransaction.html | 4 +- .../bitpay/sdk/model/Invoice/MinerFees.html | 4 +- .../sdk/model/Invoice/MinerFeesItem.html | 4 +- .../com/bitpay/sdk/model/Invoice/Refund.html | 4 +- .../bitpay/sdk/model/Invoice/RefundInfo.html | 4 +- .../sdk/model/Invoice/RefundParams.html | 4 +- .../sdk/model/Invoice/RefundStatus.html | 4 +- .../com/bitpay/sdk/model/Invoice/Shopper.html | 4 +- .../SupportedTransactionCurrencies.html | 4 +- .../Invoice/SupportedTransactionCurrency.html | 4 +- .../sdk/model/Invoice/package-summary.html | 4 +- .../sdk/model/Invoice/package-tree.html | 4 +- .../com/bitpay/sdk/model/Ledger/Buyer.html | 4 +- .../com/bitpay/sdk/model/Ledger/Ledger.html | 4 +- .../bitpay/sdk/model/Ledger/LedgerEntry.html | 4 +- .../sdk/model/Ledger/package-summary.html | 4 +- .../bitpay/sdk/model/Ledger/package-tree.html | 4 +- .../bitpay/sdk/model/Payout/PayoutBatch.html | 22 +- .../sdk/model/Payout/PayoutInstruction.html | 228 +++--- .../Payout/PayoutInstructionBtcSummary.html | 4 +- .../Payout/PayoutInstructionTransaction.html | 4 +- .../sdk/model/Payout/PayoutRecipient.html | 491 ++++++++++++ .../sdk/model/Payout/PayoutRecipients.html | 356 +++++++++ .../bitpay/sdk/model/Payout/PayoutStatus.html | 4 +- .../Payout/RecipientReferenceMethod.html | 321 ++++++++ .../sdk/model/Payout/RecipientStatus.html | 375 +++++++++ .../sdk/model/Payout/package-summary.html | 20 +- .../bitpay/sdk/model/Payout/package-tree.html | 8 +- apidocs/com/bitpay/sdk/model/Policy.html | 4 +- apidocs/com/bitpay/sdk/model/Rate/Rate.html | 4 +- apidocs/com/bitpay/sdk/model/Rate/Rates.html | 4 +- .../sdk/model/Rate/package-summary.html | 4 +- .../bitpay/sdk/model/Rate/package-tree.html | 4 +- .../sdk/model/Settlement/InvoiceData.html | 4 +- .../sdk/model/Settlement/PayoutInfo.html | 4 +- .../sdk/model/Settlement/RefundInfo.html | 4 +- .../sdk/model/Settlement/Settlement.html | 4 +- .../Settlement/SettlementLedgerEntry.html | 4 +- .../sdk/model/Settlement/WithHoldings.html | 4 +- .../sdk/model/Settlement/package-summary.html | 4 +- .../sdk/model/Settlement/package-tree.html | 4 +- apidocs/com/bitpay/sdk/model/Token.html | 4 +- .../com/bitpay/sdk/model/package-summary.html | 4 +- .../com/bitpay/sdk/model/package-tree.html | 4 +- apidocs/com/bitpay/sdk/package-summary.html | 4 +- apidocs/com/bitpay/sdk/package-tree.html | 4 +- apidocs/com/bitpay/sdk/util/BitPayLogger.html | 4 +- .../com/bitpay/sdk/util/DateDeserializer.html | 4 +- .../com/bitpay/sdk/util/DateSerializer.html | 4 +- apidocs/com/bitpay/sdk/util/KeyUtils.html | 4 +- ...youtInstructionBtcSummaryDeserializer.html | 4 +- .../com/bitpay/sdk/util/package-summary.html | 4 +- apidocs/com/bitpay/sdk/util/package-tree.html | 4 +- apidocs/constant-values.html | 134 +++- apidocs/help-doc.html | 4 +- apidocs/index-files/index-1.html | 6 +- apidocs/index-files/index-10.html | 4 +- apidocs/index-files/index-11.html | 4 +- apidocs/index-files/index-12.html | 4 +- apidocs/index-files/index-13.html | 6 +- apidocs/index-files/index-14.html | 4 +- apidocs/index-files/index-15.html | 4 +- apidocs/index-files/index-16.html | 24 +- apidocs/index-files/index-17.html | 4 +- apidocs/index-files/index-18.html | 16 +- apidocs/index-files/index-19.html | 54 +- apidocs/index-files/index-2.html | 16 +- apidocs/index-files/index-20.html | 86 +- apidocs/index-files/index-21.html | 6 +- apidocs/index-files/index-22.html | 6 +- apidocs/index-files/index-23.html | 4 +- apidocs/index-files/index-24.html | 4 +- apidocs/index-files/index-25.html | 4 +- apidocs/index-files/index-26.html | 4 +- apidocs/index-files/index-27.html | 4 +- apidocs/index-files/index-3.html | 4 +- apidocs/index-files/index-4.html | 4 +- apidocs/index-files/index-5.html | 6 +- apidocs/index-files/index-6.html | 4 +- apidocs/index-files/index-7.html | 42 +- apidocs/index-files/index-8.html | 4 +- apidocs/index-files/index-9.html | 6 +- apidocs/index.html | 4 +- apidocs/member-search-index.js | 2 +- apidocs/member-search-index.zip | Bin 8302 -> 8661 bytes apidocs/overview-summary.html | 4 +- apidocs/overview-tree.html | 13 +- apidocs/package-search-index.zip | Bin 305 -> 305 bytes apidocs/serialized-form.html | 4 +- apidocs/test/BitPayTest.html | 50 +- apidocs/test/BitPayTest2.html | 4 +- apidocs/test/BitPayTest3.html | 53 +- apidocs/test/BitPayTestMerchant.html | 750 ++++++++++++++++++ apidocs/test/BitPayTestPayouts.html | 402 ++++++++++ apidocs/test/package-summary.html | 12 +- apidocs/test/package-tree.html | 9 +- apidocs/type-search-index.js | 2 +- apidocs/type-search-index.zip | Bin 779 -> 817 bytes pom.xml | 2 +- src/main/java/com/bitpay/sdk/Client.java | 100 ++- src/main/java/com/bitpay/sdk/Env.java | 4 +- .../bitpay/sdk/model/Payout/PayoutBatch.java | 5 +- .../sdk/model/Payout/PayoutInstruction.java | 79 +- .../Payout/PayoutInstructionBtcSummary.java | 4 +- .../sdk/model/Payout/PayoutRecipient.java | 119 +++ .../sdk/model/Payout/PayoutRecipients.java | 61 ++ .../Payout/RecipientReferenceMethod.java | 8 + .../sdk/model/Payout/RecipientStatus.java | 11 + .../java/com/bitpay/sdk/model/Rate/Rates.java | 2 +- src/test/java/test/BitPayTest2.java | 86 -- ...itPayTest.java => BitPayTestMerchant.java} | 12 +- ...itPayTest3.java => BitPayTestPayouts.java} | 118 +-- 161 files changed, 4045 insertions(+), 817 deletions(-) create mode 100644 apidocs/com/bitpay/sdk/model/Payout/PayoutRecipient.html create mode 100644 apidocs/com/bitpay/sdk/model/Payout/PayoutRecipients.html create mode 100644 apidocs/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.html create mode 100644 apidocs/com/bitpay/sdk/model/Payout/RecipientStatus.html create mode 100644 apidocs/test/BitPayTestMerchant.html create mode 100644 apidocs/test/BitPayTestPayouts.html create mode 100644 src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipient.java create mode 100644 src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipients.java create mode 100644 src/main/java/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.java create mode 100644 src/main/java/com/bitpay/sdk/model/Payout/RecipientStatus.java delete mode 100644 src/test/java/test/BitPayTest2.java rename src/test/java/test/{BitPayTest.java => BitPayTestMerchant.java} (98%) rename src/test/java/test/{BitPayTest3.java => BitPayTestPayouts.java} (53%) diff --git a/apidocs/allclasses-index.html b/apidocs/allclasses-index.html index 527fc57a..a27dbacd 100644 --- a/apidocs/allclasses-index.html +++ b/apidocs/allclasses-index.html @@ -2,10 +2,10 @@ - + All Classes - + @@ -28,7 +28,7 @@ catch(err) { } //--> -var data = {"i0":2,"i1":8,"i2":8,"i3":8,"i4":8,"i5":2,"i6":8,"i7":8,"i8":8,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":2,"i18":8,"i19":8,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":8,"i28":2,"i29":8,"i30":8,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":8,"i38":8,"i39":2,"i40":2,"i41":2,"i42":8,"i43":8,"i44":8,"i45":2,"i46":2,"i47":2,"i48":2,"i49":2,"i50":8,"i51":2,"i52":2,"i53":2,"i54":8,"i55":8,"i56":2,"i57":2,"i58":8,"i59":8,"i60":8,"i61":2,"i62":2,"i63":2,"i64":8,"i65":2,"i66":2,"i67":8,"i68":2,"i69":8,"i70":2,"i71":8,"i72":8,"i73":8,"i74":8,"i75":2,"i76":2,"i77":2,"i78":2}; +var data = {"i0":2,"i1":8,"i2":8,"i3":8,"i4":8,"i5":2,"i6":8,"i7":8,"i8":8,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":2,"i16":2,"i17":8,"i18":8,"i19":2,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":8,"i27":2,"i28":8,"i29":8,"i30":2,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":8,"i37":8,"i38":2,"i39":2,"i40":2,"i41":8,"i42":8,"i43":8,"i44":2,"i45":2,"i46":2,"i47":2,"i48":2,"i49":8,"i50":2,"i51":2,"i52":2,"i53":2,"i54":2,"i55":8,"i56":8,"i57":2,"i58":2,"i59":2,"i60":2,"i61":8,"i62":8,"i63":8,"i64":2,"i65":2,"i66":2,"i67":8,"i68":2,"i69":2,"i70":8,"i71":2,"i72":8,"i73":2,"i74":8,"i75":8,"i76":8,"i77":8,"i78":2,"i79":2,"i80":2,"i81":2}; var tabs = {65535:["t0","All Classes"],2:["t2","Class Summary"],8:["t4","Exception Summary"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -137,278 +137,290 @@

All Classes

  -BitPayTest +BitPayTestMerchant   -BitPayTest2 +BitPayTestPayouts   -BitPayTest3 +Buyer   -Buyer +Buyer   -Buyer +Client   -Client +Config   -Config +Currency   -Currency +CurrencyException   -CurrencyException +CurrencyQueryException   -CurrencyQueryException +DateDeserializer   -DateDeserializer +DateSerializer   -DateSerializer +Env   -Env +Env.Tokens   -Env.Tokens +Facade   -Facade +Invoice   -Invoice +InvoiceBuyerProvidedInfo   -InvoiceBuyerProvidedInfo +InvoiceCreationException   -InvoiceCreationException +InvoiceData   -InvoiceData +InvoiceException   -InvoiceException +InvoiceQueryException   -InvoiceQueryException +InvoiceStatus   -InvoiceStatus +InvoiceTransaction   -InvoiceTransaction +Item   -Item +KeyUtils   -KeyUtils +Ledger   -Ledger +LedgerEntry   -LedgerEntry +LedgerException   -LedgerException +LedgerQueryException   -LedgerQueryException +MinerFees   -MinerFees +MinerFeesItem   -MinerFeesItem +PayoutBatch   -PayoutBatch +PayoutCancellationException   -PayoutCancellationException +PayoutCreationException   -PayoutCreationException +PayoutException   -PayoutException +PayoutInfo   -PayoutInfo +PayoutInstruction   -PayoutInstruction +PayoutInstructionBtcSummary   -PayoutInstructionBtcSummary +PayoutInstructionBtcSummaryDeserializer   -PayoutInstructionBtcSummaryDeserializer +PayoutInstructionTransaction   -PayoutInstructionTransaction +PayoutQueryException   -PayoutQueryException +PayoutRecipient   -PayoutStatus +PayoutRecipients   -Policy +PayoutStatus   -Rate +Policy   -RateException +Rate   -RateQueryException +RateException   -Rates +RateQueryException   -Refund +Rates   -RefundCancellationException +RecipientReferenceMethod   -RefundCreationException +RecipientStatus   -RefundException +Refund   -RefundInfo +RefundCancellationException   -RefundInfo +RefundCreationException   -RefundParams +RefundException   -RefundQueryException +RefundInfo   -RefundStatus +RefundInfo   -Settlement +RefundParams   -SettlementException +RefundQueryException   -SettlementLedgerEntry +RefundStatus   -SettlementQueryException +Settlement   -Shopper +SettlementException   -SubscriptionCreationException +SettlementLedgerEntry   -SubscriptionException +SettlementQueryException   -SubscriptionQueryException +Shopper   -SubscriptionUpdateException +SubscriptionCreationException   -SupportedTransactionCurrencies +SubscriptionException   -SupportedTransactionCurrency +SubscriptionQueryException   -Token +SubscriptionUpdateException   +SupportedTransactionCurrencies +  + + +SupportedTransactionCurrency +  + + +Token +  + + WithHoldings   diff --git a/apidocs/allpackages-index.html b/apidocs/allpackages-index.html index c7cfd94e..153e7989 100644 --- a/apidocs/allpackages-index.html +++ b/apidocs/allpackages-index.html @@ -2,10 +2,10 @@ - + All Packages - + diff --git a/apidocs/com/bitpay/sdk/BitPayException.html b/apidocs/com/bitpay/sdk/BitPayException.html index 5e6700df..47a6e8fa 100644 --- a/apidocs/com/bitpay/sdk/BitPayException.html +++ b/apidocs/com/bitpay/sdk/BitPayException.html @@ -2,10 +2,10 @@ - + BitPayException - + diff --git a/apidocs/com/bitpay/sdk/Client.html b/apidocs/com/bitpay/sdk/Client.html index 1fa0009f..9a020547 100644 --- a/apidocs/com/bitpay/sdk/Client.html +++ b/apidocs/com/bitpay/sdk/Client.html @@ -2,10 +2,10 @@ - + Client - + @@ -28,7 +28,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":9,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":9,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -118,7 +118,7 @@

Class Client

extends java.lang.Object
Version:
-
5.0.2011 +
5.1.2011 See bitpay.com/api for more information. date 03.11.2020
Author:
@@ -451,13 +451,28 @@

Method Summary

+PayoutRecipient +getPayoutRecipient​(java.lang.String recipientId) + +
Retrieve a BitPay payout recipient by batch id using.
+ + + +java.util.List<PayoutRecipient> +getPayoutRecipients​(java.lang.String status, + java.lang.Integer limit) + +
Retrieve a collection of BitPay Payout Recipients.
+ + + Rates getRates()
Retrieve the exchange rate table maintained by BitPay.
- + Refund getRefund​(Invoice invoice, java.lang.String refundId) @@ -465,28 +480,28 @@

Method Summary

Retrieve a previously made refund request on a BitPay invoice.
- + java.util.List<Refund> getRefunds​(Invoice invoice)
Retrieve all refund requests on a BitPay invoice.
- + Settlement getSettlement​(java.lang.String settlementId)
Retrieves a summary of the specified settlement.
- + Settlement getSettlementReconciliationReport​(Settlement settlement)
Gets a detailed reconciliation report of the activity within the settlement period.
- + java.util.List<Settlement> getSettlements​(java.lang.String currency, java.lang.String dateStart, @@ -498,66 +513,73 @@

Method Summary

Retrieves settlement reports for the calling merchant filtered by query.
- + java.lang.String GetTokenByFacade​(java.lang.String facade)
Returns the token for the specified facade.
- + org.apache.http.HttpResponse post​(java.lang.String uri, java.lang.String json)   - + org.apache.http.HttpResponse post​(java.lang.String uri, java.lang.String json, boolean signatureRequired)   - + java.lang.String requestClientAuthorization​(java.lang.String facade)
Request a pairing code from the BitPay server.
- + java.lang.String responseToJsonString​(org.apache.http.HttpResponse response)   - + void setLoggerLevel​(int loggerLevel)
Sets the logger level of reporting.
- + PayoutBatch submitPayoutBatch​(PayoutBatch batch)
Submit a BitPay Payout batch.
- + +java.util.List<PayoutRecipient> +submitPayoutRecipients​(PayoutRecipients recipients) + +
Submit BitPay Payout Recipients.
+ + + boolean tokenExist​(java.lang.String facade)
Specified whether the client has authorization (a token) for the specified facade.
- + org.apache.http.HttpResponse update​(java.lang.String uri, java.lang.String json)   - + Bill updateBill​(Bill bill, java.lang.String billId) @@ -1234,6 +1256,73 @@

getLedgers

+ + + + + + + + + + + + diff --git a/apidocs/com/bitpay/sdk/Config.html b/apidocs/com/bitpay/sdk/Config.html index f11fc5a6..7ca39ace 100644 --- a/apidocs/com/bitpay/sdk/Config.html +++ b/apidocs/com/bitpay/sdk/Config.html @@ -2,10 +2,10 @@ - + Config - + diff --git a/apidocs/com/bitpay/sdk/Env.Tokens.html b/apidocs/com/bitpay/sdk/Env.Tokens.html index c81162eb..c5f52aca 100644 --- a/apidocs/com/bitpay/sdk/Env.Tokens.html +++ b/apidocs/com/bitpay/sdk/Env.Tokens.html @@ -2,10 +2,10 @@ - + Env.Tokens - + diff --git a/apidocs/com/bitpay/sdk/Env.html b/apidocs/com/bitpay/sdk/Env.html index e693d834..ace0103c 100644 --- a/apidocs/com/bitpay/sdk/Env.html +++ b/apidocs/com/bitpay/sdk/Env.html @@ -2,10 +2,10 @@ - + Env - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BillCreationException.html b/apidocs/com/bitpay/sdk/exceptions/BillCreationException.html index 0281a8fe..581ded51 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BillCreationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BillCreationException.html @@ -2,10 +2,10 @@ - + BillCreationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BillDeliveryException.html b/apidocs/com/bitpay/sdk/exceptions/BillDeliveryException.html index b34e2c99..8ba9ca9b 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BillDeliveryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BillDeliveryException.html @@ -2,10 +2,10 @@ - + BillDeliveryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BillException.html b/apidocs/com/bitpay/sdk/exceptions/BillException.html index 5c349846..d16691c8 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BillException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BillException.html @@ -2,10 +2,10 @@ - + BillException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BillQueryException.html b/apidocs/com/bitpay/sdk/exceptions/BillQueryException.html index c21e6fd3..f61f40d8 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BillQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BillQueryException.html @@ -2,10 +2,10 @@ - + BillQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BillUpdateException.html b/apidocs/com/bitpay/sdk/exceptions/BillUpdateException.html index f8807014..a69fe9dc 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BillUpdateException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BillUpdateException.html @@ -2,10 +2,10 @@ - + BillUpdateException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/BitPayException.html b/apidocs/com/bitpay/sdk/exceptions/BitPayException.html index c428474b..beb8c09d 100644 --- a/apidocs/com/bitpay/sdk/exceptions/BitPayException.html +++ b/apidocs/com/bitpay/sdk/exceptions/BitPayException.html @@ -2,10 +2,10 @@ - + BitPayException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/CurrencyException.html b/apidocs/com/bitpay/sdk/exceptions/CurrencyException.html index f11ff44c..e7f6de8b 100644 --- a/apidocs/com/bitpay/sdk/exceptions/CurrencyException.html +++ b/apidocs/com/bitpay/sdk/exceptions/CurrencyException.html @@ -2,10 +2,10 @@ - + CurrencyException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/CurrencyQueryException.html b/apidocs/com/bitpay/sdk/exceptions/CurrencyQueryException.html index 879b0d1b..a6c7d07a 100644 --- a/apidocs/com/bitpay/sdk/exceptions/CurrencyQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/CurrencyQueryException.html @@ -2,10 +2,10 @@ - + CurrencyQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/InvoiceCreationException.html b/apidocs/com/bitpay/sdk/exceptions/InvoiceCreationException.html index 9ef11912..297b58d9 100644 --- a/apidocs/com/bitpay/sdk/exceptions/InvoiceCreationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/InvoiceCreationException.html @@ -2,10 +2,10 @@ - + InvoiceCreationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/InvoiceException.html b/apidocs/com/bitpay/sdk/exceptions/InvoiceException.html index ad68351d..518ee61e 100644 --- a/apidocs/com/bitpay/sdk/exceptions/InvoiceException.html +++ b/apidocs/com/bitpay/sdk/exceptions/InvoiceException.html @@ -2,10 +2,10 @@ - + InvoiceException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/InvoiceQueryException.html b/apidocs/com/bitpay/sdk/exceptions/InvoiceQueryException.html index 04026228..ade68030 100644 --- a/apidocs/com/bitpay/sdk/exceptions/InvoiceQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/InvoiceQueryException.html @@ -2,10 +2,10 @@ - + InvoiceQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/LedgerException.html b/apidocs/com/bitpay/sdk/exceptions/LedgerException.html index aea0ba31..d6fa7d54 100644 --- a/apidocs/com/bitpay/sdk/exceptions/LedgerException.html +++ b/apidocs/com/bitpay/sdk/exceptions/LedgerException.html @@ -2,10 +2,10 @@ - + LedgerException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/LedgerQueryException.html b/apidocs/com/bitpay/sdk/exceptions/LedgerQueryException.html index c4c2bebc..3d78c6f4 100644 --- a/apidocs/com/bitpay/sdk/exceptions/LedgerQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/LedgerQueryException.html @@ -2,10 +2,10 @@ - + LedgerQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/PayoutCancellationException.html b/apidocs/com/bitpay/sdk/exceptions/PayoutCancellationException.html index a07cd172..80bdefe5 100644 --- a/apidocs/com/bitpay/sdk/exceptions/PayoutCancellationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/PayoutCancellationException.html @@ -2,10 +2,10 @@ - + PayoutCancellationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/PayoutCreationException.html b/apidocs/com/bitpay/sdk/exceptions/PayoutCreationException.html index ad7f1342..9bc1b1e5 100644 --- a/apidocs/com/bitpay/sdk/exceptions/PayoutCreationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/PayoutCreationException.html @@ -2,10 +2,10 @@ - + PayoutCreationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/PayoutException.html b/apidocs/com/bitpay/sdk/exceptions/PayoutException.html index dbc977e0..e4468104 100644 --- a/apidocs/com/bitpay/sdk/exceptions/PayoutException.html +++ b/apidocs/com/bitpay/sdk/exceptions/PayoutException.html @@ -2,10 +2,10 @@ - + PayoutException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/PayoutQueryException.html b/apidocs/com/bitpay/sdk/exceptions/PayoutQueryException.html index c3ffce80..00e39978 100644 --- a/apidocs/com/bitpay/sdk/exceptions/PayoutQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/PayoutQueryException.html @@ -2,10 +2,10 @@ - + PayoutQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RateException.html b/apidocs/com/bitpay/sdk/exceptions/RateException.html index cccb6170..e72049c5 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RateException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RateException.html @@ -2,10 +2,10 @@ - + RateException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RateQueryException.html b/apidocs/com/bitpay/sdk/exceptions/RateQueryException.html index 93b37a82..5bebf371 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RateQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RateQueryException.html @@ -2,10 +2,10 @@ - + RateQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RefundCancellationException.html b/apidocs/com/bitpay/sdk/exceptions/RefundCancellationException.html index aa75582d..5a408f85 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RefundCancellationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RefundCancellationException.html @@ -2,10 +2,10 @@ - + RefundCancellationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RefundCreationException.html b/apidocs/com/bitpay/sdk/exceptions/RefundCreationException.html index 61e70ac9..8b60d654 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RefundCreationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RefundCreationException.html @@ -2,10 +2,10 @@ - + RefundCreationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RefundException.html b/apidocs/com/bitpay/sdk/exceptions/RefundException.html index a975911a..277da44e 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RefundException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RefundException.html @@ -2,10 +2,10 @@ - + RefundException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/RefundQueryException.html b/apidocs/com/bitpay/sdk/exceptions/RefundQueryException.html index 47cc844f..2f47a80b 100644 --- a/apidocs/com/bitpay/sdk/exceptions/RefundQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/RefundQueryException.html @@ -2,10 +2,10 @@ - + RefundQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SettlementException.html b/apidocs/com/bitpay/sdk/exceptions/SettlementException.html index 0ec711fc..60242476 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SettlementException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SettlementException.html @@ -2,10 +2,10 @@ - + SettlementException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SettlementQueryException.html b/apidocs/com/bitpay/sdk/exceptions/SettlementQueryException.html index 9494c8e8..f1f204f9 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SettlementQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SettlementQueryException.html @@ -2,10 +2,10 @@ - + SettlementQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SubscriptionCreationException.html b/apidocs/com/bitpay/sdk/exceptions/SubscriptionCreationException.html index b0bb676e..b3d14f51 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SubscriptionCreationException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SubscriptionCreationException.html @@ -2,10 +2,10 @@ - + SubscriptionCreationException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SubscriptionException.html b/apidocs/com/bitpay/sdk/exceptions/SubscriptionException.html index fd6c3f05..511698ec 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SubscriptionException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SubscriptionException.html @@ -2,10 +2,10 @@ - + SubscriptionException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SubscriptionQueryException.html b/apidocs/com/bitpay/sdk/exceptions/SubscriptionQueryException.html index 02be6683..d35c02b5 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SubscriptionQueryException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SubscriptionQueryException.html @@ -2,10 +2,10 @@ - + SubscriptionQueryException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/SubscriptionUpdateException.html b/apidocs/com/bitpay/sdk/exceptions/SubscriptionUpdateException.html index ce260e78..6b299bbf 100644 --- a/apidocs/com/bitpay/sdk/exceptions/SubscriptionUpdateException.html +++ b/apidocs/com/bitpay/sdk/exceptions/SubscriptionUpdateException.html @@ -2,10 +2,10 @@ - + SubscriptionUpdateException - + diff --git a/apidocs/com/bitpay/sdk/exceptions/package-summary.html b/apidocs/com/bitpay/sdk/exceptions/package-summary.html index 5390467b..b69568d6 100644 --- a/apidocs/com/bitpay/sdk/exceptions/package-summary.html +++ b/apidocs/com/bitpay/sdk/exceptions/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.exceptions - + diff --git a/apidocs/com/bitpay/sdk/exceptions/package-tree.html b/apidocs/com/bitpay/sdk/exceptions/package-tree.html index f5549732..1fda4b9c 100644 --- a/apidocs/com/bitpay/sdk/exceptions/package-tree.html +++ b/apidocs/com/bitpay/sdk/exceptions/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.exceptions Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Bill/Bill.html b/apidocs/com/bitpay/sdk/model/Bill/Bill.html index 7109d26a..8fa83787 100644 --- a/apidocs/com/bitpay/sdk/model/Bill/Bill.html +++ b/apidocs/com/bitpay/sdk/model/Bill/Bill.html @@ -2,10 +2,10 @@ - + Bill - + diff --git a/apidocs/com/bitpay/sdk/model/Bill/BillStatus.html b/apidocs/com/bitpay/sdk/model/Bill/BillStatus.html index 53088543..adf03966 100644 --- a/apidocs/com/bitpay/sdk/model/Bill/BillStatus.html +++ b/apidocs/com/bitpay/sdk/model/Bill/BillStatus.html @@ -2,10 +2,10 @@ - + BillStatus - + diff --git a/apidocs/com/bitpay/sdk/model/Bill/Item.html b/apidocs/com/bitpay/sdk/model/Bill/Item.html index 1c5c8f0a..d8496c34 100644 --- a/apidocs/com/bitpay/sdk/model/Bill/Item.html +++ b/apidocs/com/bitpay/sdk/model/Bill/Item.html @@ -2,10 +2,10 @@ - + Item - + diff --git a/apidocs/com/bitpay/sdk/model/Bill/package-summary.html b/apidocs/com/bitpay/sdk/model/Bill/package-summary.html index 99b0513f..f60f6a76 100644 --- a/apidocs/com/bitpay/sdk/model/Bill/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Bill/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Bill - + diff --git a/apidocs/com/bitpay/sdk/model/Bill/package-tree.html b/apidocs/com/bitpay/sdk/model/Bill/package-tree.html index 06b6ab6b..d54fddb9 100644 --- a/apidocs/com/bitpay/sdk/model/Bill/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Bill/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Bill Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Currency.html b/apidocs/com/bitpay/sdk/model/Currency.html index d08a477a..ce7c1d6e 100644 --- a/apidocs/com/bitpay/sdk/model/Currency.html +++ b/apidocs/com/bitpay/sdk/model/Currency.html @@ -2,10 +2,10 @@ - + Currency - + diff --git a/apidocs/com/bitpay/sdk/model/Facade.html b/apidocs/com/bitpay/sdk/model/Facade.html index 9d9b6d4d..39382102 100644 --- a/apidocs/com/bitpay/sdk/model/Facade.html +++ b/apidocs/com/bitpay/sdk/model/Facade.html @@ -2,10 +2,10 @@ - + Facade - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/Buyer.html b/apidocs/com/bitpay/sdk/model/Invoice/Buyer.html index 51cf3164..2df4e8c9 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/Buyer.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/Buyer.html @@ -2,10 +2,10 @@ - + Buyer - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/Invoice.html b/apidocs/com/bitpay/sdk/model/Invoice/Invoice.html index ea719aa9..624109e7 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/Invoice.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/Invoice.html @@ -2,10 +2,10 @@ - + Invoice - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceBuyerProvidedInfo.html b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceBuyerProvidedInfo.html index 5f5f17e4..15e9dc15 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceBuyerProvidedInfo.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceBuyerProvidedInfo.html @@ -2,10 +2,10 @@ - + InvoiceBuyerProvidedInfo - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceStatus.html b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceStatus.html index 21e16b5b..3eeee06c 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceStatus.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceStatus.html @@ -2,10 +2,10 @@ - + InvoiceStatus - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceTransaction.html b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceTransaction.html index 39c8c3a8..cbc2b8c8 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/InvoiceTransaction.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/InvoiceTransaction.html @@ -2,10 +2,10 @@ - + InvoiceTransaction - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/MinerFees.html b/apidocs/com/bitpay/sdk/model/Invoice/MinerFees.html index acce75e4..17ed6439 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/MinerFees.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/MinerFees.html @@ -2,10 +2,10 @@ - + MinerFees - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/MinerFeesItem.html b/apidocs/com/bitpay/sdk/model/Invoice/MinerFeesItem.html index 16a13634..0448ff9d 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/MinerFeesItem.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/MinerFeesItem.html @@ -2,10 +2,10 @@ - + MinerFeesItem - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/Refund.html b/apidocs/com/bitpay/sdk/model/Invoice/Refund.html index 30fb5dbe..4a21e101 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/Refund.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/Refund.html @@ -2,10 +2,10 @@ - + Refund - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/RefundInfo.html b/apidocs/com/bitpay/sdk/model/Invoice/RefundInfo.html index 39311be6..b77db274 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/RefundInfo.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/RefundInfo.html @@ -2,10 +2,10 @@ - + RefundInfo - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/RefundParams.html b/apidocs/com/bitpay/sdk/model/Invoice/RefundParams.html index 24dbbe95..9708c60b 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/RefundParams.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/RefundParams.html @@ -2,10 +2,10 @@ - + RefundParams - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/RefundStatus.html b/apidocs/com/bitpay/sdk/model/Invoice/RefundStatus.html index 64dec76b..49878ab1 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/RefundStatus.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/RefundStatus.html @@ -2,10 +2,10 @@ - + RefundStatus - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/Shopper.html b/apidocs/com/bitpay/sdk/model/Invoice/Shopper.html index b397a731..ef853935 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/Shopper.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/Shopper.html @@ -2,10 +2,10 @@ - + Shopper - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrencies.html b/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrencies.html index 1688b133..6e1449be 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrencies.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrencies.html @@ -2,10 +2,10 @@ - + SupportedTransactionCurrencies - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrency.html b/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrency.html index ba5f9d9b..9a0367ec 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrency.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/SupportedTransactionCurrency.html @@ -2,10 +2,10 @@ - + SupportedTransactionCurrency - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/package-summary.html b/apidocs/com/bitpay/sdk/model/Invoice/package-summary.html index 9374fc8e..2e20443a 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Invoice - + diff --git a/apidocs/com/bitpay/sdk/model/Invoice/package-tree.html b/apidocs/com/bitpay/sdk/model/Invoice/package-tree.html index b0b847ae..ac8179ca 100644 --- a/apidocs/com/bitpay/sdk/model/Invoice/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Invoice/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Invoice Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Ledger/Buyer.html b/apidocs/com/bitpay/sdk/model/Ledger/Buyer.html index 6149431c..5c8315c9 100644 --- a/apidocs/com/bitpay/sdk/model/Ledger/Buyer.html +++ b/apidocs/com/bitpay/sdk/model/Ledger/Buyer.html @@ -2,10 +2,10 @@ - + Buyer - + diff --git a/apidocs/com/bitpay/sdk/model/Ledger/Ledger.html b/apidocs/com/bitpay/sdk/model/Ledger/Ledger.html index d5c500e3..6fbdfdef 100644 --- a/apidocs/com/bitpay/sdk/model/Ledger/Ledger.html +++ b/apidocs/com/bitpay/sdk/model/Ledger/Ledger.html @@ -2,10 +2,10 @@ - + Ledger - + diff --git a/apidocs/com/bitpay/sdk/model/Ledger/LedgerEntry.html b/apidocs/com/bitpay/sdk/model/Ledger/LedgerEntry.html index 3aad7f3d..a0e7590f 100644 --- a/apidocs/com/bitpay/sdk/model/Ledger/LedgerEntry.html +++ b/apidocs/com/bitpay/sdk/model/Ledger/LedgerEntry.html @@ -2,10 +2,10 @@ - + LedgerEntry - + diff --git a/apidocs/com/bitpay/sdk/model/Ledger/package-summary.html b/apidocs/com/bitpay/sdk/model/Ledger/package-summary.html index 93490b04..8f67be87 100644 --- a/apidocs/com/bitpay/sdk/model/Ledger/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Ledger/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Ledger - + diff --git a/apidocs/com/bitpay/sdk/model/Ledger/package-tree.html b/apidocs/com/bitpay/sdk/model/Ledger/package-tree.html index 9d07241b..b05ac49a 100644 --- a/apidocs/com/bitpay/sdk/model/Ledger/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Ledger/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Ledger Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutBatch.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutBatch.html index 26bcbe2f..4673ed16 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/PayoutBatch.html +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutBatch.html @@ -2,10 +2,10 @@ - + PayoutBatch - + @@ -140,11 +140,6 @@

Field Summary

static java.lang.String -MethodManual2 -  - - -static java.lang.String MethodVwap24   @@ -443,19 +438,6 @@

Methods inherited from class java.lang.Object

Field Detail

- - - - diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstruction.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstruction.html index 2d6ce4d3..2707a8a4 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstruction.html +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstruction.html @@ -2,10 +2,10 @@ - + PayoutInstruction - + @@ -28,7 +28,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10}; +var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -65,13 +65,13 @@ @@ -122,38 +122,6 @@

Class PayoutInstruction

@@ -295,42 +294,6 @@

Methods inherited from class java.lang.Object

  • - -
    - -
      @@ -348,19 +311,24 @@

      PayoutInstruction

      Constructor, create an empty PayoutInstruction object.
    - +
    • PayoutInstruction

      public PayoutInstruction​(java.lang.Double amount,
      -                         java.lang.String address)
      + int method, + java.lang.String methodValue) + throws PayoutCreationException
      Constructor, create a PayoutInstruction object.
      Parameters:
      -
      amount - BTC amount.
      -
      address - Bitcoin address.
      +
      amount - float BTC amount.
      +
      method - int Method used to target the recipient.
      +
      methodValue - string value for the choosen target method.
      +
      Throws:
      +
      PayoutCreationException - BitPayException class
    @@ -392,22 +360,58 @@

    setAmount

    public void setAmount​(java.lang.Double amount)
- + + + +
    +
  • +

    getEmail

    +
    public java.lang.String getEmail()
    +
  • +
+ + + +
    +
  • +

    setEmail

    +
    public void setEmail​(java.lang.String email)
    +
  • +
+ + + +
    +
  • +

    getRecipientId

    +
    public java.lang.String getRecipientId()
    +
  • +
+ + + +
    +
  • +

    setRecipientId

    +
    public void setRecipientId​(java.lang.String recipientId)
    +
  • +
+
  • -

    getAddress

    -
    public java.lang.String getAddress()
    +

    getShopperId

    +
    public java.lang.String getShopperId()
- +
  • -

    setAddress

    -
    public void setAddress​(java.lang.String address)
    +

    setShopperId

    +
    public void setShopperId​(java.lang.String shopperId)
@@ -428,6 +432,24 @@

setLabel

public void setLabel​(java.lang.String label)
+
+ + +
    +
  • +

    getWalletProvider

    +
    public java.lang.String getWalletProvider()
    +
  • +
+ + + +
    +
  • +

    setWalletProvider

    +
    public void setWalletProvider​(java.lang.String walletProvider)
    +
  • +
@@ -533,13 +555,13 @@

setStatus

diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.html index 9b91cc53..47597a2c 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.html +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.html @@ -2,10 +2,10 @@ - + PayoutInstructionBtcSummary - + diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionTransaction.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionTransaction.html index c2390431..f3a965b6 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionTransaction.html +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutInstructionTransaction.html @@ -2,10 +2,10 @@ - + PayoutInstructionTransaction - + diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipient.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipient.html new file mode 100644 index 00000000..5cb1f924 --- /dev/null +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipient.html @@ -0,0 +1,491 @@ + + + + + +PayoutRecipient + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PayoutRecipient

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.bitpay.sdk.model.Payout.PayoutRecipient
    • +
    +
  • +
+
+
    +
  • +
    +
    public class PayoutRecipient
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      +
      + + + + + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      PayoutRecipient() +
      Constructor, create a minimal Recipient object.
      +
      PayoutRecipient​(java.lang.String email, + java.lang.String label, + java.lang.String notificationURL) +
      Constructor, create a minimal Recipient object.
      +
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      +
      +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Modifier and TypeMethodDescription
      java.lang.StringgetAccount() 
      java.lang.StringgetGuid() 
      java.lang.StringgetId() 
      java.lang.StringgetReference() 
      java.lang.StringgetStatus() 
      java.lang.StringgetSupportPhone() 
      java.lang.StringgetToken() 
      voidsetAccount​(java.lang.String shopperId) 
      voidsetGuid​(java.lang.String email) 
      voidsetId​(java.lang.String id) 
      voidsetReference​(java.lang.String notificationURL) 
      voidsetStatus​(java.lang.String status) 
      voidsetSupportPhone​(java.lang.String token) 
      voidsetToken​(java.lang.String label) 
      +
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PayoutRecipient

        +
        public PayoutRecipient​(java.lang.String email,
        +                       java.lang.String label,
        +                       java.lang.String notificationURL)
        +
        Constructor, create a minimal Recipient object.
        +
        +
        Parameters:
        +
        email - string Recipient email address to which the invite shall be sent.
        +
        label - string Recipient nickname assigned by the merchant (Optional).
        +
        notificationURL - string URL to which BitPay sends webhook notifications to inform the merchant about the + status of a given recipient. HTTPS is mandatory (Optional).
        +
        +
      • +
      + + + +
        +
      • +

        PayoutRecipient

        +
        public PayoutRecipient()
        +
        Constructor, create a minimal Recipient object.
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGuid

        +
        public java.lang.String getGuid()
        +
      • +
      + + + +
        +
      • +

        setGuid

        +
        public void setGuid​(java.lang.String email)
        +
      • +
      + + + +
        +
      • +

        getToken

        +
        public java.lang.String getToken()
        +
      • +
      + + + +
        +
      • +

        setToken

        +
        public void setToken​(java.lang.String label)
        +
      • +
      + + + +
        +
      • +

        getReference

        +
        public java.lang.String getReference()
        +
      • +
      + + + +
        +
      • +

        setReference

        +
        public void setReference​(java.lang.String notificationURL)
        +
      • +
      + + + +
        +
      • +

        getStatus

        +
        public java.lang.String getStatus()
        +
      • +
      + + + +
        +
      • +

        setStatus

        +
        public void setStatus​(java.lang.String status)
        +
      • +
      + + + +
        +
      • +

        getId

        +
        public java.lang.String getId()
        +
      • +
      + + + +
        +
      • +

        setId

        +
        public void setId​(java.lang.String id)
        +
      • +
      + + + +
        +
      • +

        getAccount

        +
        public java.lang.String getAccount()
        +
      • +
      + + + +
        +
      • +

        setAccount

        +
        public void setAccount​(java.lang.String shopperId)
        +
      • +
      + + + +
        +
      • +

        getSupportPhone

        +
        public java.lang.String getSupportPhone()
        +
      • +
      + + + +
        +
      • +

        setSupportPhone

        +
        public void setSupportPhone​(java.lang.String token)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipients.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipients.html new file mode 100644 index 00000000..4e7109c2 --- /dev/null +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutRecipients.html @@ -0,0 +1,356 @@ + + + + + +PayoutRecipients + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class PayoutRecipients

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.bitpay.sdk.model.Payout.PayoutRecipients
    • +
    +
  • +
+
+
    +
  • +
    +
    public class PayoutRecipients
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Summary

      +
      + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      PayoutRecipients​(java.util.List<PayoutRecipient> recipients) +
      Constructor, create an recipient-full request PayoutBatch object.
      +
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      +
      +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Modifier and TypeMethodDescription
      java.lang.StringgetGuid() 
      java.util.List<PayoutRecipient>getInstructions() 
      java.lang.StringgetToken() 
      voidsetGuid​(java.lang.String guid) 
      voidsetInstructions​(java.util.List<PayoutRecipient> recipients) 
      voidsetToken​(java.lang.String token) 
      +
      +
      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        PayoutRecipients

        +
        public PayoutRecipients​(java.util.List<PayoutRecipient> recipients)
        +
        Constructor, create an recipient-full request PayoutBatch object.
        +
        +
        Parameters:
        +
        recipients - array array of JSON objects, with containing the following parameters.
        +
        +
      • +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        getGuid

        +
        public java.lang.String getGuid()
        +
      • +
      + + + +
        +
      • +

        setGuid

        +
        public void setGuid​(java.lang.String guid)
        +
      • +
      + + + +
        +
      • +

        getToken

        +
        public java.lang.String getToken()
        +
      • +
      + + + +
        +
      • +

        setToken

        +
        public void setToken​(java.lang.String token)
        +
      • +
      + + + +
        +
      • +

        getInstructions

        +
        public java.util.List<PayoutRecipient> getInstructions()
        +
      • +
      + + + +
        +
      • +

        setInstructions

        +
        public void setInstructions​(java.util.List<PayoutRecipient> recipients)
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/apidocs/com/bitpay/sdk/model/Payout/PayoutStatus.html b/apidocs/com/bitpay/sdk/model/Payout/PayoutStatus.html index bc98debb..9fc041f5 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/PayoutStatus.html +++ b/apidocs/com/bitpay/sdk/model/Payout/PayoutStatus.html @@ -2,10 +2,10 @@ - + PayoutStatus - + diff --git a/apidocs/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.html b/apidocs/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.html new file mode 100644 index 00000000..f443bc1a --- /dev/null +++ b/apidocs/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.html @@ -0,0 +1,321 @@ + + + + + +RecipientReferenceMethod + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RecipientReferenceMethod

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.bitpay.sdk.model.Payout.RecipientReferenceMethod
    • +
    +
  • +
+
+
    +
  • +
    +
    public class RecipientReferenceMethod
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      static intEMAIL 
      static intRECIPIENT_ID 
      static intSHOPPER_ID 
      +
      +
    • +
    +
    + +
    + +
    + +
    +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+
    +
  • + +
    + +
    + +
    +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        RecipientReferenceMethod

        +
        public RecipientReferenceMethod()
        +
      • +
      +
    • +
    +
    +
  • +
+
+
+
+ + + + diff --git a/apidocs/com/bitpay/sdk/model/Payout/RecipientStatus.html b/apidocs/com/bitpay/sdk/model/Payout/RecipientStatus.html new file mode 100644 index 00000000..23cd286f --- /dev/null +++ b/apidocs/com/bitpay/sdk/model/Payout/RecipientStatus.html @@ -0,0 +1,375 @@ + + + + + +RecipientStatus + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +

Class RecipientStatus

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.bitpay.sdk.model.Payout.RecipientStatus
    • +
    +
  • +
+
+
    +
  • +
    +
    public class RecipientStatus
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
    +
      +
    • + + +

      Field Summary

      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Fields 
      Modifier and TypeFieldDescription
      static java.lang.StringACTIVE 
      static java.lang.StringINVITED 
      static java.lang.StringPAUSED 
      static java.lang.StringREMOVED 
      static java.lang.StringUNVERIFIED 
      static java.lang.StringVERIFIED 
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Constructor Summary

      +
      + + + + + + + + + + + + +
      Constructors 
      ConstructorDescription
      RecipientStatus() 
      +
      +
    • +
    +
    + +
    +
      +
    • + + +

      Method Summary

      +
        +
      • + + +

        Methods inherited from class java.lang.Object

        +equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
    +
  • +
+
+
+ +
+
+
+ + + + diff --git a/apidocs/com/bitpay/sdk/model/Payout/package-summary.html b/apidocs/com/bitpay/sdk/model/Payout/package-summary.html index d20732ad..8c126d9d 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Payout/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Payout - + @@ -106,9 +106,25 @@

Package com.bitpay.sdk.model.Payout

  +PayoutRecipient +  + + +PayoutRecipients +  + + PayoutStatus   + +RecipientReferenceMethod +  + + +RecipientStatus +  +
diff --git a/apidocs/com/bitpay/sdk/model/Payout/package-tree.html b/apidocs/com/bitpay/sdk/model/Payout/package-tree.html index 4c9cd58a..0ac9a0bd 100644 --- a/apidocs/com/bitpay/sdk/model/Payout/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Payout/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Payout Class Hierarchy - + @@ -92,7 +92,11 @@

Class Hierarchy

  • com.bitpay.sdk.model.Payout.PayoutInstruction
  • com.bitpay.sdk.model.Payout.PayoutInstructionBtcSummary
  • com.bitpay.sdk.model.Payout.PayoutInstructionTransaction
  • +
  • com.bitpay.sdk.model.Payout.PayoutRecipient
  • +
  • com.bitpay.sdk.model.Payout.PayoutRecipients
  • com.bitpay.sdk.model.Payout.PayoutStatus
  • +
  • com.bitpay.sdk.model.Payout.RecipientReferenceMethod
  • +
  • com.bitpay.sdk.model.Payout.RecipientStatus
  • diff --git a/apidocs/com/bitpay/sdk/model/Policy.html b/apidocs/com/bitpay/sdk/model/Policy.html index 0f0f4af7..95f5d4d5 100644 --- a/apidocs/com/bitpay/sdk/model/Policy.html +++ b/apidocs/com/bitpay/sdk/model/Policy.html @@ -2,10 +2,10 @@ - + Policy - + diff --git a/apidocs/com/bitpay/sdk/model/Rate/Rate.html b/apidocs/com/bitpay/sdk/model/Rate/Rate.html index be60be12..853cade3 100644 --- a/apidocs/com/bitpay/sdk/model/Rate/Rate.html +++ b/apidocs/com/bitpay/sdk/model/Rate/Rate.html @@ -2,10 +2,10 @@ - + Rate - + diff --git a/apidocs/com/bitpay/sdk/model/Rate/Rates.html b/apidocs/com/bitpay/sdk/model/Rate/Rates.html index 1d8dc731..35f62730 100644 --- a/apidocs/com/bitpay/sdk/model/Rate/Rates.html +++ b/apidocs/com/bitpay/sdk/model/Rate/Rates.html @@ -2,10 +2,10 @@ - + Rates - + diff --git a/apidocs/com/bitpay/sdk/model/Rate/package-summary.html b/apidocs/com/bitpay/sdk/model/Rate/package-summary.html index 24b9600c..6aeacdf4 100644 --- a/apidocs/com/bitpay/sdk/model/Rate/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Rate/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Rate - + diff --git a/apidocs/com/bitpay/sdk/model/Rate/package-tree.html b/apidocs/com/bitpay/sdk/model/Rate/package-tree.html index 45199ab2..2bf91edc 100644 --- a/apidocs/com/bitpay/sdk/model/Rate/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Rate/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Rate Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/InvoiceData.html b/apidocs/com/bitpay/sdk/model/Settlement/InvoiceData.html index 12da00d3..0359bd88 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/InvoiceData.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/InvoiceData.html @@ -2,10 +2,10 @@ - + InvoiceData - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/PayoutInfo.html b/apidocs/com/bitpay/sdk/model/Settlement/PayoutInfo.html index f8908089..b8635a02 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/PayoutInfo.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/PayoutInfo.html @@ -2,10 +2,10 @@ - + PayoutInfo - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/RefundInfo.html b/apidocs/com/bitpay/sdk/model/Settlement/RefundInfo.html index a749e722..6613c060 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/RefundInfo.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/RefundInfo.html @@ -2,10 +2,10 @@ - + RefundInfo - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/Settlement.html b/apidocs/com/bitpay/sdk/model/Settlement/Settlement.html index 8a5fa94d..9bd3e1c7 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/Settlement.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/Settlement.html @@ -2,10 +2,10 @@ - + Settlement - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/SettlementLedgerEntry.html b/apidocs/com/bitpay/sdk/model/Settlement/SettlementLedgerEntry.html index a32a1915..8999d530 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/SettlementLedgerEntry.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/SettlementLedgerEntry.html @@ -2,10 +2,10 @@ - + SettlementLedgerEntry - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/WithHoldings.html b/apidocs/com/bitpay/sdk/model/Settlement/WithHoldings.html index 73aa29fa..770a1c17 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/WithHoldings.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/WithHoldings.html @@ -2,10 +2,10 @@ - + WithHoldings - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/package-summary.html b/apidocs/com/bitpay/sdk/model/Settlement/package-summary.html index e8dd2820..c958241c 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Settlement - + diff --git a/apidocs/com/bitpay/sdk/model/Settlement/package-tree.html b/apidocs/com/bitpay/sdk/model/Settlement/package-tree.html index 52fcb437..b015ea49 100644 --- a/apidocs/com/bitpay/sdk/model/Settlement/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/Settlement/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model.Settlement Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/model/Token.html b/apidocs/com/bitpay/sdk/model/Token.html index 0efef44a..99bbe3d7 100644 --- a/apidocs/com/bitpay/sdk/model/Token.html +++ b/apidocs/com/bitpay/sdk/model/Token.html @@ -2,10 +2,10 @@ - + Token - + diff --git a/apidocs/com/bitpay/sdk/model/package-summary.html b/apidocs/com/bitpay/sdk/model/package-summary.html index f8d6f276..1bf5203c 100644 --- a/apidocs/com/bitpay/sdk/model/package-summary.html +++ b/apidocs/com/bitpay/sdk/model/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model - + diff --git a/apidocs/com/bitpay/sdk/model/package-tree.html b/apidocs/com/bitpay/sdk/model/package-tree.html index 1f91e16e..01688e09 100644 --- a/apidocs/com/bitpay/sdk/model/package-tree.html +++ b/apidocs/com/bitpay/sdk/model/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.model Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/package-summary.html b/apidocs/com/bitpay/sdk/package-summary.html index 7716c226..38acad76 100644 --- a/apidocs/com/bitpay/sdk/package-summary.html +++ b/apidocs/com/bitpay/sdk/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk - + diff --git a/apidocs/com/bitpay/sdk/package-tree.html b/apidocs/com/bitpay/sdk/package-tree.html index 377502eb..e22bafa3 100644 --- a/apidocs/com/bitpay/sdk/package-tree.html +++ b/apidocs/com/bitpay/sdk/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk Class Hierarchy - + diff --git a/apidocs/com/bitpay/sdk/util/BitPayLogger.html b/apidocs/com/bitpay/sdk/util/BitPayLogger.html index 95777208..1b64014d 100644 --- a/apidocs/com/bitpay/sdk/util/BitPayLogger.html +++ b/apidocs/com/bitpay/sdk/util/BitPayLogger.html @@ -2,10 +2,10 @@ - + BitPayLogger - + diff --git a/apidocs/com/bitpay/sdk/util/DateDeserializer.html b/apidocs/com/bitpay/sdk/util/DateDeserializer.html index c9765152..363cd952 100644 --- a/apidocs/com/bitpay/sdk/util/DateDeserializer.html +++ b/apidocs/com/bitpay/sdk/util/DateDeserializer.html @@ -2,10 +2,10 @@ - + DateDeserializer - + diff --git a/apidocs/com/bitpay/sdk/util/DateSerializer.html b/apidocs/com/bitpay/sdk/util/DateSerializer.html index 07c1b8f9..ca41b71f 100644 --- a/apidocs/com/bitpay/sdk/util/DateSerializer.html +++ b/apidocs/com/bitpay/sdk/util/DateSerializer.html @@ -2,10 +2,10 @@ - + DateSerializer - + diff --git a/apidocs/com/bitpay/sdk/util/KeyUtils.html b/apidocs/com/bitpay/sdk/util/KeyUtils.html index 6473828c..2d98fe2a 100644 --- a/apidocs/com/bitpay/sdk/util/KeyUtils.html +++ b/apidocs/com/bitpay/sdk/util/KeyUtils.html @@ -2,10 +2,10 @@ - + KeyUtils - + diff --git a/apidocs/com/bitpay/sdk/util/PayoutInstructionBtcSummaryDeserializer.html b/apidocs/com/bitpay/sdk/util/PayoutInstructionBtcSummaryDeserializer.html index 0bf0bd20..382a19d7 100644 --- a/apidocs/com/bitpay/sdk/util/PayoutInstructionBtcSummaryDeserializer.html +++ b/apidocs/com/bitpay/sdk/util/PayoutInstructionBtcSummaryDeserializer.html @@ -2,10 +2,10 @@ - + PayoutInstructionBtcSummaryDeserializer - + diff --git a/apidocs/com/bitpay/sdk/util/package-summary.html b/apidocs/com/bitpay/sdk/util/package-summary.html index 260fa62a..527d8b57 100644 --- a/apidocs/com/bitpay/sdk/util/package-summary.html +++ b/apidocs/com/bitpay/sdk/util/package-summary.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.util - + diff --git a/apidocs/com/bitpay/sdk/util/package-tree.html b/apidocs/com/bitpay/sdk/util/package-tree.html index aa45df6b..d846509d 100644 --- a/apidocs/com/bitpay/sdk/util/package-tree.html +++ b/apidocs/com/bitpay/sdk/util/package-tree.html @@ -2,10 +2,10 @@ - + com.bitpay.sdk.util Class Hierarchy - + diff --git a/apidocs/constant-values.html b/apidocs/constant-values.html index 9bc9bf80..caca82d7 100644 --- a/apidocs/constant-values.html +++ b/apidocs/constant-values.html @@ -2,10 +2,10 @@ - + Constant Field Values - + @@ -112,7 +112,7 @@

    com.bitpay.*

    public static final java.lang.String BitpayApiFrameVersion -"1.0.0" +"2.0.0" @@ -126,7 +126,7 @@

    com.bitpay.*

    public static final java.lang.String BitpayPluginInfo -"BitPay_Java_Client_v5.0.2011" +"BitPay_Java_Client_v5.1.2011" @@ -1593,13 +1593,6 @@

    com.bitpay.*

    -
    - -public static final java.lang.String -MethodManual2 -"manual_2" - - public static final java.lang.String @@ -1613,34 +1606,6 @@

    com.bitpay.*

  • - - - - - - - - - - - - - - - - - - -
    com.bitpay.sdk.model.Payout.PayoutInstruction 
    Modifier and TypeConstant FieldValue
    - -public static final java.lang.StringSTATUS_PAID"paid"
    - -public static final java.lang.StringSTATUS_UNPAID"unpaid"
    -
    -
  • -
  • -
    - @@ -1708,6 +1673,97 @@

    com.bitpay.*

    com.bitpay.sdk.model.Payout.PayoutStatus 
    Modifier and Type
  • +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    com.bitpay.sdk.model.Payout.RecipientReferenceMethod 
    Modifier and TypeConstant FieldValue
    + +public static final intEMAIL1
    + +public static final intRECIPIENT_ID2
    + +public static final intSHOPPER_ID3
    +
    +
  • +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    com.bitpay.sdk.model.Payout.RecipientStatus 
    Modifier and TypeConstant FieldValue
    + +public static final java.lang.StringACTIVE"active"
    + +public static final java.lang.StringINVITED"invited"
    + +public static final java.lang.StringPAUSED"paused"
    + +public static final java.lang.StringREMOVED"removed"
    + +public static final java.lang.StringUNVERIFIED"unverified"
    + +public static final java.lang.StringVERIFIED"verified"
    +
    +
  • @@ -301,49 +301,39 @@

    Method Summary

    void -testShouldGetInvoiceNode() -  - - -void testShouldGetInvoices()   - + void testShouldGetInvoiceStatus()   - + void testShouldGetInvoiceURL()   - + void testShouldGetLedgerBtc()   - + void testShouldGetLedgers()   - + void testShouldGetLedgerUsd()   - + void testShouldUpdateExchangeRates()   - -void -testShouldViajesliliTest() -  - @@ -699,30 +689,12 @@

    TestGetSettlement

    - diff --git a/apidocs/test/BitPayTest2.html b/apidocs/test/BitPayTest2.html index f1cbf73a..58653882 100644 --- a/apidocs/test/BitPayTest2.html +++ b/apidocs/test/BitPayTest2.html @@ -2,10 +2,10 @@ - + BitPayTest2 - + diff --git a/apidocs/test/BitPayTest3.html b/apidocs/test/BitPayTest3.html index f4209793..4de866e7 100644 --- a/apidocs/test/BitPayTest3.html +++ b/apidocs/test/BitPayTest3.html @@ -2,10 +2,10 @@ - + BitPayTest3 - + @@ -28,7 +28,7 @@ catch(err) { } //--> -var data = {"i0":10,"i1":9,"i2":10,"i3":10,"i4":10,"i5":10}; +var data = {"i0":10,"i1":9,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -106,7 +106,7 @@

    Class BitPayTest3

  • java.lang.Object
    • -
    • test.BitPayTest3
    • +
    • test.BitPayTestPayouts
  • @@ -186,12 +186,22 @@

    Method Summary

    void -testShouldSubmitGetAndDeletePayoutBatch() +testShouldGetPayoutRecipientId()   void -testShouldSubmitPayoutBatch() +testShouldGetPayoutRecipients() +  + + +void +testShouldSubmitGetAndDeletePayoutBatch() +  + + +void +testShouldSubmitPayoutRecipients()   @@ -278,13 +288,31 @@

    setUp

    - + + + + + + + + + @@ -293,7 +321,12 @@

    testShouldSubmitPayoutBatch

    diff --git a/apidocs/test/BitPayTestMerchant.html b/apidocs/test/BitPayTestMerchant.html new file mode 100644 index 00000000..72b3a52d --- /dev/null +++ b/apidocs/test/BitPayTestMerchant.html @@ -0,0 +1,750 @@ + + + + + +BitPayTestMerchant + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    Package test
    +

    Class BitPayTestMerchant

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • test.BitPayTestMerchant
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class BitPayTestMerchant
      +extends java.lang.Object
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          BitPayTestMerchant

          +
          public BitPayTestMerchant()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          setUp

          +
          public void setUp()
          +           throws BitPayException,
          +                  java.io.IOException,
          +                  java.net.URISyntaxException
          +
          +
          Throws:
          +
          BitPayException
          +
          java.io.IOException
          +
          java.net.URISyntaxException
          +
          +
        • +
        + + + +
          +
        • +

          testCreateECKeyFromSeedString

          +
          public void testCreateECKeyFromSeedString()
          +
        • +
        + + + +
          +
        • +

          testShouldGetInvoiceId

          +
          public void testShouldGetInvoiceId()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoiceBTC

          +
          public void testShouldCreateInvoiceBTC()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoiceBCH

          +
          public void testShouldCreateInvoiceBCH()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoiceETH

          +
          public void testShouldCreateInvoiceETH()
          +
        • +
        + + + +
          +
        • +

          testShouldGetInvoiceURL

          +
          public void testShouldGetInvoiceURL()
          +
        • +
        + + + +
          +
        • +

          testShouldGetInvoiceStatus

          +
          public void testShouldGetInvoiceStatus()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoiceOneTenthBTC

          +
          public void testShouldCreateInvoiceOneTenthBTC()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoice100USD

          +
          public void testShouldCreateInvoice100USD()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoice100EUR

          +
          public void testShouldCreateInvoice100EUR()
          +
        • +
        + + + +
          +
        • +

          testShouldGetInvoice

          +
          public void testShouldGetInvoice()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateInvoiceWithAdditionalParams

          +
          public void testShouldCreateInvoiceWithAdditionalParams()
          +
        • +
        + + + +
          +
        • +

          TestShouldCreateBillUSD

          +
          public void TestShouldCreateBillUSD()
          +
        • +
        + + + +
          +
        • +

          TestShouldCreateBillEUR

          +
          public void TestShouldCreateBillEUR()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetBillUrl

          +
          public void TestShouldGetBillUrl()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetBillStatus

          +
          public void TestShouldGetBillStatus()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetBill

          +
          public void TestShouldGetBill()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetAndUpdateBill

          +
          public void TestShouldGetAndUpdateBill()
          +
        • +
        + + + +
          +
        • +

          TestShouldDeliverBill

          +
          public void TestShouldDeliverBill()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetBills

          +
          public void TestShouldGetBills()
          +
        • +
        + + + +
          +
        • +

          TestShouldGetBillsByStatus

          +
          public void TestShouldGetBillsByStatus()
          +
        • +
        + + + +
          +
        • +

          testShouldGetExchangeRates

          +
          public void testShouldGetExchangeRates()
          +
        • +
        + + + +
          +
        • +

          testShouldGetEURExchangeRate

          +
          public void testShouldGetEURExchangeRate()
          +
        • +
        + + + +
          +
        • +

          testShouldGetCNYExchangeRate

          +
          public void testShouldGetCNYExchangeRate()
          +
        • +
        + + + +
          +
        • +

          testShouldUpdateExchangeRates

          +
          public void testShouldUpdateExchangeRates()
          +
        • +
        + + + +
          +
        • +

          testShouldGetInvoices

          +
          public void testShouldGetInvoices()
          +
        • +
        + + + +
          +
        • +

          testShouldGetLedgerBtc

          +
          public void testShouldGetLedgerBtc()
          +
        • +
        + + + +
          +
        • +

          testShouldGetLedgerUsd

          +
          public void testShouldGetLedgerUsd()
          +
        • +
        + + + +
          +
        • +

          testShouldGetLedgers

          +
          public void testShouldGetLedgers()
          +
        • +
        + + + +
          +
        • +

          testShouldCreateGetCancelRefundRequest

          +
          public void testShouldCreateGetCancelRefundRequest()
          +
        • +
        + + + +
          +
        • +

          TestGetSettlements

          +
          public void TestGetSettlements()
          +
        • +
        + + + +
          +
        • +

          TestGetSettlement

          +
          public void TestGetSettlement()
          +
        • +
        + + + +
          +
        • +

          TestGetSettlementReconciliationReport

          +
          public void TestGetSettlementReconciliationReport()
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/apidocs/test/BitPayTestPayouts.html b/apidocs/test/BitPayTestPayouts.html new file mode 100644 index 00000000..e3b09478 --- /dev/null +++ b/apidocs/test/BitPayTestPayouts.html @@ -0,0 +1,402 @@ + + + + + +BitPayTestPayouts + + + + + + + + + + + + + + + +
    + +
    + +
    +
    +
    Package test
    +

    Class BitPayTestPayouts

    +
    +
    +
      +
    • java.lang.Object
    • +
    • +
        +
      • test.BitPayTestPayouts
      • +
      +
    • +
    +
    +
      +
    • +
      +
      public class BitPayTestPayouts
      +extends java.lang.Object
      +
    • +
    +
    +
    + +
    +
    +
      +
    • + +
      +
        +
      • + + +

        Constructor Detail

        + + + +
          +
        • +

          BitPayTestPayouts

          +
          public BitPayTestPayouts()
          +
        • +
        +
      • +
      +
      + +
      +
        +
      • + + +

        Method Detail

        + + + +
          +
        • +

          setUpOneTime

          +
          public static void setUpOneTime()
          +                         throws java.lang.InterruptedException,
          +                                java.io.IOException,
          +                                BitPayException,
          +                                java.net.URISyntaxException
          +
          +
          Throws:
          +
          java.lang.InterruptedException
          +
          java.io.IOException
          +
          BitPayException
          +
          java.net.URISyntaxException
          +
          +
        • +
        + + + +
          +
        • +

          setUp

          +
          public void setUp()
          +           throws BitPayException,
          +                  java.io.IOException,
          +                  java.net.URISyntaxException
          +
          +
          Throws:
          +
          BitPayException
          +
          java.io.IOException
          +
          java.net.URISyntaxException
          +
          +
        • +
        + + + +
          +
        • +

          testShouldSubmitPayoutRecipients

          +
          public void testShouldSubmitPayoutRecipients()
          +
        • +
        + + + +
          +
        • +

          testShouldGetPayoutRecipientId

          +
          public void testShouldGetPayoutRecipientId()
          +
        • +
        + + + +
          +
        • +

          testShouldGetPayoutRecipients

          +
          public void testShouldGetPayoutRecipients()
          +
        • +
        + + + + + + + +
          +
        • +

          testShouldGetPayoutBatches

          +
          public void testShouldGetPayoutBatches()
          +
        • +
        + + + +
          +
        • +

          testShouldGetPayoutBatchesByStatus

          +
          public void testShouldGetPayoutBatchesByStatus()
          +
        • +
        +
      • +
      +
      +
    • +
    +
    +
    +
    + + + + diff --git a/apidocs/test/package-summary.html b/apidocs/test/package-summary.html index 8ca20381..29ac5b7a 100644 --- a/apidocs/test/package-summary.html +++ b/apidocs/test/package-summary.html @@ -2,10 +2,10 @@ - + test - + @@ -90,15 +90,11 @@

    Package test

    -BitPayTest +BitPayTestMerchant   -BitPayTest2 -  - - -BitPayTest3 +BitPayTestPayouts   diff --git a/apidocs/test/package-tree.html b/apidocs/test/package-tree.html index d54ee09a..cf5dc938 100644 --- a/apidocs/test/package-tree.html +++ b/apidocs/test/package-tree.html @@ -2,10 +2,10 @@ - + test Class Hierarchy - + @@ -88,9 +88,8 @@

    Class Hierarchy

    diff --git a/apidocs/type-search-index.js b/apidocs/type-search-index.js index 9076da3d..7b8545b5 100644 --- a/apidocs/type-search-index.js +++ b/apidocs/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"com.bitpay.sdk.model.Bill","l":"Bill"},{"p":"com.bitpay.sdk.exceptions","l":"BillCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"BillDeliveryException"},{"p":"com.bitpay.sdk.exceptions","l":"BillException"},{"p":"com.bitpay.sdk.exceptions","l":"BillQueryException"},{"p":"com.bitpay.sdk.model.Bill","l":"BillStatus"},{"p":"com.bitpay.sdk.exceptions","l":"BillUpdateException"},{"p":"com.bitpay.sdk","l":"BitPayException"},{"p":"com.bitpay.sdk.exceptions","l":"BitPayException"},{"p":"com.bitpay.sdk.util","l":"BitPayLogger"},{"p":"test","l":"BitPayTest"},{"p":"test","l":"BitPayTest2"},{"p":"test","l":"BitPayTest3"},{"p":"com.bitpay.sdk.model.Invoice","l":"Buyer"},{"p":"com.bitpay.sdk.model.Ledger","l":"Buyer"},{"p":"com.bitpay.sdk","l":"Client"},{"p":"com.bitpay.sdk","l":"Config"},{"p":"com.bitpay.sdk.model","l":"Currency"},{"p":"com.bitpay.sdk.exceptions","l":"CurrencyException"},{"p":"com.bitpay.sdk.exceptions","l":"CurrencyQueryException"},{"p":"com.bitpay.sdk.util","l":"DateDeserializer"},{"p":"com.bitpay.sdk.util","l":"DateSerializer"},{"p":"com.bitpay.sdk","l":"Env"},{"p":"com.bitpay.sdk.model","l":"Facade"},{"p":"com.bitpay.sdk.model.Invoice","l":"Invoice"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceBuyerProvidedInfo"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceCreationException"},{"p":"com.bitpay.sdk.model.Settlement","l":"InvoiceData"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceException"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceStatus"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceTransaction"},{"p":"com.bitpay.sdk.model.Bill","l":"Item"},{"p":"com.bitpay.sdk.util","l":"KeyUtils"},{"p":"com.bitpay.sdk.model.Ledger","l":"Ledger"},{"p":"com.bitpay.sdk.model.Ledger","l":"LedgerEntry"},{"p":"com.bitpay.sdk.exceptions","l":"LedgerException"},{"p":"com.bitpay.sdk.exceptions","l":"LedgerQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"MinerFees"},{"p":"com.bitpay.sdk.model.Invoice","l":"MinerFeesItem"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutBatch"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutCancellationException"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutException"},{"p":"com.bitpay.sdk.model.Settlement","l":"PayoutInfo"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstruction"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstructionBtcSummary"},{"p":"com.bitpay.sdk.util","l":"PayoutInstructionBtcSummaryDeserializer"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstructionTransaction"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutQueryException"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutStatus"},{"p":"com.bitpay.sdk.model","l":"Policy"},{"p":"com.bitpay.sdk.model.Rate","l":"Rate"},{"p":"com.bitpay.sdk.exceptions","l":"RateException"},{"p":"com.bitpay.sdk.exceptions","l":"RateQueryException"},{"p":"com.bitpay.sdk.model.Rate","l":"Rates"},{"p":"com.bitpay.sdk.model.Invoice","l":"Refund"},{"p":"com.bitpay.sdk.exceptions","l":"RefundCancellationException"},{"p":"com.bitpay.sdk.exceptions","l":"RefundCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"RefundException"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundInfo"},{"p":"com.bitpay.sdk.model.Settlement","l":"RefundInfo"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundParams"},{"p":"com.bitpay.sdk.exceptions","l":"RefundQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundStatus"},{"p":"com.bitpay.sdk.model.Settlement","l":"Settlement"},{"p":"com.bitpay.sdk.exceptions","l":"SettlementException"},{"p":"com.bitpay.sdk.model.Settlement","l":"SettlementLedgerEntry"},{"p":"com.bitpay.sdk.exceptions","l":"SettlementQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"Shopper"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionQueryException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionUpdateException"},{"p":"com.bitpay.sdk.model.Invoice","l":"SupportedTransactionCurrencies"},{"p":"com.bitpay.sdk.model.Invoice","l":"SupportedTransactionCurrency"},{"p":"com.bitpay.sdk.model","l":"Token"},{"p":"com.bitpay.sdk","l":"Env.Tokens"},{"p":"com.bitpay.sdk.model.Settlement","l":"WithHoldings"}] \ No newline at end of file +typeSearchIndex = [{"l":"All Classes","url":"allclasses-index.html"},{"p":"com.bitpay.sdk.model.Bill","l":"Bill"},{"p":"com.bitpay.sdk.exceptions","l":"BillCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"BillDeliveryException"},{"p":"com.bitpay.sdk.exceptions","l":"BillException"},{"p":"com.bitpay.sdk.exceptions","l":"BillQueryException"},{"p":"com.bitpay.sdk.model.Bill","l":"BillStatus"},{"p":"com.bitpay.sdk.exceptions","l":"BillUpdateException"},{"p":"com.bitpay.sdk","l":"BitPayException"},{"p":"com.bitpay.sdk.exceptions","l":"BitPayException"},{"p":"com.bitpay.sdk.util","l":"BitPayLogger"},{"p":"test","l":"BitPayTestMerchant"},{"p":"test","l":"BitPayTestPayouts"},{"p":"com.bitpay.sdk.model.Invoice","l":"Buyer"},{"p":"com.bitpay.sdk.model.Ledger","l":"Buyer"},{"p":"com.bitpay.sdk","l":"Client"},{"p":"com.bitpay.sdk","l":"Config"},{"p":"com.bitpay.sdk.model","l":"Currency"},{"p":"com.bitpay.sdk.exceptions","l":"CurrencyException"},{"p":"com.bitpay.sdk.exceptions","l":"CurrencyQueryException"},{"p":"com.bitpay.sdk.util","l":"DateDeserializer"},{"p":"com.bitpay.sdk.util","l":"DateSerializer"},{"p":"com.bitpay.sdk","l":"Env"},{"p":"com.bitpay.sdk.model","l":"Facade"},{"p":"com.bitpay.sdk.model.Invoice","l":"Invoice"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceBuyerProvidedInfo"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceCreationException"},{"p":"com.bitpay.sdk.model.Settlement","l":"InvoiceData"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceException"},{"p":"com.bitpay.sdk.exceptions","l":"InvoiceQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceStatus"},{"p":"com.bitpay.sdk.model.Invoice","l":"InvoiceTransaction"},{"p":"com.bitpay.sdk.model.Bill","l":"Item"},{"p":"com.bitpay.sdk.util","l":"KeyUtils"},{"p":"com.bitpay.sdk.model.Ledger","l":"Ledger"},{"p":"com.bitpay.sdk.model.Ledger","l":"LedgerEntry"},{"p":"com.bitpay.sdk.exceptions","l":"LedgerException"},{"p":"com.bitpay.sdk.exceptions","l":"LedgerQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"MinerFees"},{"p":"com.bitpay.sdk.model.Invoice","l":"MinerFeesItem"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutBatch"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutCancellationException"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutException"},{"p":"com.bitpay.sdk.model.Settlement","l":"PayoutInfo"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstruction"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstructionBtcSummary"},{"p":"com.bitpay.sdk.util","l":"PayoutInstructionBtcSummaryDeserializer"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutInstructionTransaction"},{"p":"com.bitpay.sdk.exceptions","l":"PayoutQueryException"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutRecipient"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutRecipients"},{"p":"com.bitpay.sdk.model.Payout","l":"PayoutStatus"},{"p":"com.bitpay.sdk.model","l":"Policy"},{"p":"com.bitpay.sdk.model.Rate","l":"Rate"},{"p":"com.bitpay.sdk.exceptions","l":"RateException"},{"p":"com.bitpay.sdk.exceptions","l":"RateQueryException"},{"p":"com.bitpay.sdk.model.Rate","l":"Rates"},{"p":"com.bitpay.sdk.model.Payout","l":"RecipientReferenceMethod"},{"p":"com.bitpay.sdk.model.Payout","l":"RecipientStatus"},{"p":"com.bitpay.sdk.model.Invoice","l":"Refund"},{"p":"com.bitpay.sdk.exceptions","l":"RefundCancellationException"},{"p":"com.bitpay.sdk.exceptions","l":"RefundCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"RefundException"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundInfo"},{"p":"com.bitpay.sdk.model.Settlement","l":"RefundInfo"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundParams"},{"p":"com.bitpay.sdk.exceptions","l":"RefundQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"RefundStatus"},{"p":"com.bitpay.sdk.model.Settlement","l":"Settlement"},{"p":"com.bitpay.sdk.exceptions","l":"SettlementException"},{"p":"com.bitpay.sdk.model.Settlement","l":"SettlementLedgerEntry"},{"p":"com.bitpay.sdk.exceptions","l":"SettlementQueryException"},{"p":"com.bitpay.sdk.model.Invoice","l":"Shopper"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionCreationException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionQueryException"},{"p":"com.bitpay.sdk.exceptions","l":"SubscriptionUpdateException"},{"p":"com.bitpay.sdk.model.Invoice","l":"SupportedTransactionCurrencies"},{"p":"com.bitpay.sdk.model.Invoice","l":"SupportedTransactionCurrency"},{"p":"com.bitpay.sdk.model","l":"Token"},{"p":"com.bitpay.sdk","l":"Env.Tokens"},{"p":"com.bitpay.sdk.model.Settlement","l":"WithHoldings"}] \ No newline at end of file diff --git a/apidocs/type-search-index.zip b/apidocs/type-search-index.zip index 68180176d6c1e8d16b9150c106e3879a4c552ea2..4d6b4412ded4037bec0d2522858480091f3820df 100644 GIT binary patch delta 737 zcmV<70v`Q~2C)VWP)h>@6aWYa2mmmaYLN{of6a2+AP~o2rK5AI2k5Q-$kfw##<890 zq0<9FYl{g24FXTxOy9kdK#m+sXdx$CXn(ut&$0`@-x8jDOTKgdWzI=eL6zJkMm1xE zb83gaGLgY+n(Klm|L)$BvVKctkv=nBl5<*RFKHn&;OUHUUh@sz{v9!fR|=(OQdB+T zf4KtEj4ivDLG%JRJApdK(Q(wH!2}#sW~YfZRZz62G9wzM!d(EpAyHzWIHMWAA|B-N z2GaG zQXJUP8@IDGN`atf^fGin_yTq$E;oDYf4HcVYXKD~MmYOBuIC42Hw8G`r8r@fx+j!m z5VH8)Q#jJ5!A8jw%OG2cgG7t$9H1+fox~2b=1??wb>*g(k%Wd0PYef!)T}|({FTcC z?iCRgp+Ti`rJ+D1;!ij~)lU<%x~c*0Arx2&t?=8}F~MtPx%j18GXd%zAZVE`e~?df z3)&j(IQuXon&#*aw9K3c3Y>40iUCv+>q%18nO~>df1}SpBw$ z6X7rwqWOo}g@|=gcnb$;4koY$f1S%L#zlDNse>9Z8tYb<*8Fo-$@z$`N|ukR`WBro zNjJ3&3l4?b5Jd|7MaDw$oz3!?Ot|^V-T-#C??`N$cpr#4KfKfNitTb)mgANEHl}&5 zsABC{d>Z$?e2&I_xz`2m<~*#PDNCs|WWDa@u2?MWc;)frZw`*%%NLlqK=jvlth6-? z-5S4`&VNXrF>$QXKmP$xO9u$HDr^&z0ssIM5&!^DO928D02BZS2nYZ$mTFP9Dr^&z T0ssIM5|hgUItJGQ00000sN++g delta 699 zcmV;s0!00>28#v_P)h>@6aWYa2mp|KW04Ihe@lC}?MZ?bgT*7-bk+Y}+u+36*mz)XHq6Hi^8$XqCM@}qd}ZvzoDro!C3lID%@|=U zw?iK(FW@CT=#nM>?p~9sp3Oy>K2cqfQ>u#Rv=jxfbVeDg`G#&kM}*-ehe}hyRZn;> ze}Ob(%Wg7=UI3#TFwp0!ay@e}BjQ`3A|R04KZTM~tWLNlpp~34Zq%jpj((VA_J`%luce;EmOOZgsKit3ym zLy1Vl?{Ipo|0b-u>H+R26j*XC@n!6o;8$pdn5)Si9TQhq9b+kg3<9)*ecl6hnf>_Ke1ccAZ}~JRLJ(NNm%*48)wK z7dqZ!*+Ep*c%Qq~X`WOrX*(95#{E^^N8@(xT>|&89QK~6Dj_u#yla7biiMWOFRBmU1S=@t*XW=BP)i30M7>G;Z2|xQGZ6p)8c<6C0u%rg h00;;O0FZlQQAE8-{A~gN05cJj@d7#qu>t@9008axKn?%^ diff --git a/pom.xml b/pom.xml index b2237c8e..0f569bbf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.bitpay bitpay_sdk - 5.0.2011 + 5.1.2011 jar BitPay diff --git a/src/main/java/com/bitpay/sdk/Client.java b/src/main/java/com/bitpay/sdk/Client.java index 269ad183..b8834d37 100644 --- a/src/main/java/com/bitpay/sdk/Client.java +++ b/src/main/java/com/bitpay/sdk/Client.java @@ -8,6 +8,8 @@ import com.bitpay.sdk.model.Ledger.Ledger; import com.bitpay.sdk.model.Ledger.LedgerEntry; import com.bitpay.sdk.model.Payout.PayoutBatch; +import com.bitpay.sdk.model.Payout.PayoutRecipient; +import com.bitpay.sdk.model.Payout.PayoutRecipients; import com.bitpay.sdk.model.Rate.Rate; import com.bitpay.sdk.model.Rate.Rates; import com.bitpay.sdk.model.Settlement.Settlement; @@ -47,7 +49,7 @@ /** * @author Antonio Buedo - * @version 5.0.2011 + * @version 5.1.2011 * See bitpay.com/api for more information. * date 03.11.2020 */ @@ -336,19 +338,15 @@ public List getInvoices(String dateStart, String dateEnd, String status if (status != null) { params.add(new BasicNameValuePair("status", status)); } - ; if (orderId != null) { params.add(new BasicNameValuePair("orderId", orderId)); } - ; if (limit != null) { params.add(new BasicNameValuePair("limit", limit.toString())); } - ; if (offset != null) { params.add(new BasicNameValuePair("offset", offset.toString())); } - ; List invoices; @@ -833,6 +831,98 @@ public List getLedgers() throws BitPayException, LedgerQueryException { return ledgers; } + /** + * Submit BitPay Payout Recipients. + * + * @param recipients PayoutRecipients A PayoutRecipients object with request parameters defined. + * @return array A list of BitPay PayoutRecipients objects.. + * @throws PayoutCreationException BitPayException class + */ + public List submitPayoutRecipients(PayoutRecipients recipients) throws BitPayException, PayoutCreationException { + recipients.setToken(this.getAccessToken(Facade.Payroll)); + recipients.setGuid(this.getGuid()); + ObjectMapper mapper = new ObjectMapper(); + String json; + + try { + json = mapper.writeValueAsString(recipients); + } catch (JsonProcessingException e) { + throw new PayoutCreationException("failed to serialize PayoutRecipients object : " + e.getMessage()); + } + + List recipientsList; + + try { + HttpResponse response = this.post("recipients", json, true); + recipientsList = Arrays.asList(new ObjectMapper().readValue(this.responseToJsonString(response), PayoutRecipient[].class)); + } catch (JsonProcessingException e) { + throw new PayoutCreationException("failed to deserialize BitPay server response (PayoutRecipients) : " + e.getMessage()); + } catch (Exception e) { + throw new PayoutCreationException("failed to deserialize BitPay server response (PayoutRecipients) : " + e.getMessage()); + } + + return recipientsList; + } + + /** + * Retrieve a collection of BitPay Payout Recipients. + * + * @param status String|null The recipient status you want to query on. + * @param limit int|null Maximum results that the query will return (useful for paging results). + * result). + * @return array A list of BitPayRecipient objects. + * @throws BitPayException BitPayException class + */ + public List getPayoutRecipients(String status, Integer limit) throws BitPayException, PayoutQueryException { + final List params = new ArrayList(); + params.add(new BasicNameValuePair("token", this.getAccessToken(Facade.Payroll))); + if (status != null) { + params.add(new BasicNameValuePair("status", status)); + } + if (limit != null) { + params.add(new BasicNameValuePair("limit", limit.toString())); + } + + List recipientsList; + + try { + HttpResponse response = this.get("recipients", params, true); + recipientsList = Arrays.asList(new ObjectMapper().readValue(this.responseToJsonString(response), PayoutRecipient[].class)); + } catch (JsonProcessingException e) { + throw new PayoutQueryException("failed to deserialize BitPay server response (PayoutRecipients) : " + e.getMessage()); + } catch (Exception e) { + throw new PayoutQueryException("failed to deserialize BitPay server response (PayoutRecipients) : " + e.getMessage()); + } + + return recipientsList; + } + + /** + * Retrieve a BitPay payout recipient by batch id using. The client must have been previously authorized for the + * payroll facade. + * + * @param recipientId String The id of the recipient to retrieve. + * @return PayoutRecipient A BitPay PayoutRecipient object. + * @throws PayoutQueryException BitPayException class + */ + public PayoutRecipient getPayoutRecipient(String recipientId) throws BitPayException, PayoutQueryException { + final List params = new ArrayList(); + params.add(new BasicNameValuePair("token", this.getAccessToken(Facade.Payroll))); + + PayoutRecipient recipient; + + try { + HttpResponse response = this.get("recipients/" + recipientId, params, true); + recipient = new ObjectMapper().readValue(this.responseToJsonString(response), PayoutRecipient.class); + } catch (JsonProcessingException e) { + throw new PayoutQueryException("failed to deserialize BitPay server response (PayoutRecipient) : " + e.getMessage()); + } catch (Exception e) { + throw new PayoutQueryException("failed to deserialize BitPay server response (PayoutRecipient) : " + e.getMessage()); + } + + return recipient; + } + /** * Submit a BitPay Payout batch. * diff --git a/src/main/java/com/bitpay/sdk/Env.java b/src/main/java/com/bitpay/sdk/Env.java index 72d11764..e9cbaac3 100644 --- a/src/main/java/com/bitpay/sdk/Env.java +++ b/src/main/java/com/bitpay/sdk/Env.java @@ -6,9 +6,9 @@ public class Env { public static final String TestUrl = "https://test.bitpay.com/"; public static final String ProdUrl = "https://bitpay.com/"; public static final String BitpayApiVersion = "2.0.0"; - public static final String BitpayPluginInfo = "BitPay_Java_Client_v5.0.2011"; + public static final String BitpayPluginInfo = "BitPay_Java_Client_v5.1.2011"; public static final String BitpayApiFrame = "custom"; - public static final String BitpayApiFrameVersion = "1.0.0"; + public static final String BitpayApiFrameVersion = "2.0.0"; public static class Tokens { public String pos; diff --git a/src/main/java/com/bitpay/sdk/model/Payout/PayoutBatch.java b/src/main/java/com/bitpay/sdk/model/Payout/PayoutBatch.java index e0550c1a..866944b9 100644 --- a/src/main/java/com/bitpay/sdk/model/Payout/PayoutBatch.java +++ b/src/main/java/com/bitpay/sdk/model/Payout/PayoutBatch.java @@ -12,15 +12,14 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import java.math.BigDecimal; +import java.math.RoundingMode; import java.util.Collections; import java.util.List; import java.util.Map; -import java.math.BigDecimal; -import java.math.RoundingMode; @JsonIgnoreProperties(ignoreUnknown = true) public class PayoutBatch { - public static final String MethodManual2 = "manual_2"; public static final String MethodVwap24 = "vwap_24hr"; private String _guid = ""; diff --git a/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstruction.java b/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstruction.java index ee6e6997..8a54a3d4 100644 --- a/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstruction.java +++ b/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstruction.java @@ -1,5 +1,6 @@ package com.bitpay.sdk.model.Payout; +import com.bitpay.sdk.exceptions.PayoutCreationException; import com.bitpay.sdk.util.PayoutInstructionBtcSummaryDeserializer; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -11,15 +12,14 @@ @JsonIgnoreProperties(ignoreUnknown = true) public class PayoutInstruction { - - public static final String STATUS_PAID = "paid"; - public static final String STATUS_UNPAID = "unpaid"; - private Double _amount; - private String _address; + private String _email; + private String _recipientId; + private String _shopperId; private String _label = ""; - + private String _walletProvider; private String _id; + private PayoutInstructionBtcSummary _btc; private List _transactions; private String _status; @@ -33,12 +33,26 @@ public PayoutInstruction() { /** * Constructor, create a PayoutInstruction object. * - * @param amount BTC amount. - * @param address Bitcoin address. + * @param amount float BTC amount. + * @param method int Method used to target the recipient. + * @param methodValue string value for the choosen target method. + * @throws PayoutCreationException BitPayException class */ - public PayoutInstruction(Double amount, String address) { + public PayoutInstruction(Double amount, int method, String methodValue) throws PayoutCreationException { this._amount = amount; - this._address = address; + switch (method) { + case RecipientReferenceMethod.EMAIL: + this._email = methodValue; + break; + case RecipientReferenceMethod.RECIPIENT_ID: + this._recipientId = methodValue; + break; + case RecipientReferenceMethod.SHOPPER_ID: + this._shopperId = methodValue; + break; + default: + throw new PayoutCreationException("method code must be a type of RecipientReferenceMethod"); + } } @JsonProperty("amount") @@ -52,15 +66,37 @@ public void setAmount(Double amount) { this._amount = amount; } - @JsonProperty("address") + @JsonProperty("email") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getEmail() { + return _email; + } + + @JsonProperty("email") + public void setEmail(String email) { + this._email = email; + } + + @JsonProperty("recipientId") @JsonInclude(JsonInclude.Include.NON_DEFAULT) - public String getAddress() { - return _address; + public String getRecipientId() { + return _recipientId; } - @JsonProperty("address") - public void setAddress(String address) { - this._address = address; + @JsonProperty("recipientId") + public void setRecipientId(String recipientId) { + this._recipientId = recipientId; + } + + @JsonProperty("shopperId") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getShopperId() { + return _shopperId; + } + + @JsonProperty("shopperId") + public void setShopperId(String shopperId) { + this._shopperId = shopperId; } @JsonProperty("label") @@ -74,6 +110,17 @@ public void setLabel(String label) { this._label = label; } + @JsonProperty("walletProvider") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getWalletProvider() { + return _walletProvider; + } + + @JsonProperty("walletProvider") + public void setWalletProvider(String walletProvider) { + this._walletProvider = walletProvider; + } + // Response fields // diff --git a/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.java b/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.java index d6068d38..524588d5 100644 --- a/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.java +++ b/src/main/java/com/bitpay/sdk/model/Payout/PayoutInstructionBtcSummary.java @@ -5,8 +5,8 @@ @JsonIgnoreProperties(ignoreUnknown = true) public class PayoutInstructionBtcSummary { - private Double _paid; - private Double _unpaid; + private final Double _paid; + private final Double _unpaid; public PayoutInstructionBtcSummary(Double paid, Double unpaid) { this._paid = paid; diff --git a/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipient.java b/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipient.java new file mode 100644 index 00000000..824a7658 --- /dev/null +++ b/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipient.java @@ -0,0 +1,119 @@ +package com.bitpay.sdk.model.Payout; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +@JsonIgnoreProperties(ignoreUnknown = true) +public class PayoutRecipient { + private String _email = ""; + private String _label = ""; + private String _notificationURL = ""; + + private String _status; + private String _id; + private String _shopperId; + private String _token; + + /** + * Constructor, create a minimal Recipient object. + * + * @param email string Recipient email address to which the invite shall be sent. + * @param label string Recipient nickname assigned by the merchant (Optional). + * @param notificationURL string URL to which BitPay sends webhook notifications to inform the merchant about the + * status of a given recipient. HTTPS is mandatory (Optional). + */ + public PayoutRecipient(String email, String label, String notificationURL) { + this._email = email; + this._label = label; + this._notificationURL = notificationURL; + } + + /** + * Constructor, create a minimal Recipient object. + */ + public PayoutRecipient() { + } + + // Required fields + // + + @JsonProperty("email") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getGuid() { + return _email; + } + + @JsonProperty("email") + public void setGuid(String email) { + this._email = email; + } + + // Optional fields + // + + @JsonProperty("label") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getToken() { + return _label; + } + + @JsonProperty("label") + public void setToken(String label) { + this._label = label; + } + + @JsonProperty("notificationURL") + public String getReference() { + return _notificationURL; + } + + @JsonProperty("notificationURL") + public void setReference(String notificationURL) { + this._notificationURL = notificationURL; + } + + // Response fields + // + + @JsonIgnore + public String getStatus() { + return _status; + } + + @JsonProperty("status") + public void setStatus(String status) { + this._status = status; + } + + @JsonIgnore + public String getId() { + return _id; + } + + @JsonProperty("id") + public void setId(String id) { + this._id = id; + } + + @JsonIgnore + public String getAccount() { + return _shopperId; + } + + @JsonProperty("Account") + public void setAccount(String shopperId) { + this._shopperId = shopperId; + } + + @JsonIgnore + public String getSupportPhone() { + return _token; + } + + @JsonProperty("token") + public void setSupportPhone(String token) { + this._token = token; + } +} diff --git a/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipients.java b/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipients.java new file mode 100644 index 00000000..a29e829b --- /dev/null +++ b/src/main/java/com/bitpay/sdk/model/Payout/PayoutRecipients.java @@ -0,0 +1,61 @@ +package com.bitpay.sdk.model.Payout; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.Collections; +import java.util.List; + +public class PayoutRecipients { + private String _guid; + private List _recipients = Collections.emptyList(); + private String _token = ""; + + /** + * Constructor, create an recipient-full request PayoutBatch object. + * + * @param recipients array array of JSON objects, with containing the following parameters. + */ + public PayoutRecipients(List recipients) { + this._recipients = recipients; + } + + // API fields + // + + @JsonProperty("guid") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getGuid() { + return _guid; + } + + @JsonProperty("guid") + public void setGuid(String guid) { + this._guid = guid; + } + + @JsonProperty("token") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public String getToken() { + return _token; + } + + @JsonProperty("token") + public void setToken(String token) { + this._token = token; + } + + // Required fields + // + + @JsonProperty("recipients") + @JsonInclude(JsonInclude.Include.NON_DEFAULT) + public List getInstructions() { + return _recipients; + } + + @JsonProperty("recipients") + public void setInstructions(List recipients) { + this._recipients = recipients; + } +} diff --git a/src/main/java/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.java b/src/main/java/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.java new file mode 100644 index 00000000..b8705440 --- /dev/null +++ b/src/main/java/com/bitpay/sdk/model/Payout/RecipientReferenceMethod.java @@ -0,0 +1,8 @@ +package com.bitpay.sdk.model.Payout; + +public class RecipientReferenceMethod { + + public static final int EMAIL = 1; + public static final int RECIPIENT_ID = 2; + public static final int SHOPPER_ID = 3; +} diff --git a/src/main/java/com/bitpay/sdk/model/Payout/RecipientStatus.java b/src/main/java/com/bitpay/sdk/model/Payout/RecipientStatus.java new file mode 100644 index 00000000..d199a4a0 --- /dev/null +++ b/src/main/java/com/bitpay/sdk/model/Payout/RecipientStatus.java @@ -0,0 +1,11 @@ +package com.bitpay.sdk.model.Payout; + +public class RecipientStatus { + + public static final String INVITED = "invited"; + public static final String UNVERIFIED = "unverified"; + public static final String VERIFIED = "verified"; + public static final String ACTIVE = "active"; + public static final String PAUSED = "paused"; + public static final String REMOVED = "removed"; +} diff --git a/src/main/java/com/bitpay/sdk/model/Rate/Rates.java b/src/main/java/com/bitpay/sdk/model/Rate/Rates.java index 59f3507a..60bf576b 100644 --- a/src/main/java/com/bitpay/sdk/model/Rate/Rates.java +++ b/src/main/java/com/bitpay/sdk/model/Rate/Rates.java @@ -9,7 +9,7 @@ @JsonIgnoreProperties(ignoreUnknown = true) public class Rates { - private Client _bp; + private final Client _bp; private List _rates; public Rates(List rates, Client bp) { diff --git a/src/test/java/test/BitPayTest2.java b/src/test/java/test/BitPayTest2.java deleted file mode 100644 index 8d87f260..00000000 --- a/src/test/java/test/BitPayTest2.java +++ /dev/null @@ -1,86 +0,0 @@ -package test; - -import com.bitpay.sdk.BitPayException; -import com.bitpay.sdk.Client; -import com.bitpay.sdk.Env; -import com.bitpay.sdk.model.Currency; -import com.bitpay.sdk.model.Facade; -import com.bitpay.sdk.model.Invoice.Invoice; -import com.bitpay.sdk.util.BitPayLogger; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -import java.net.UnknownHostException; - -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - -public class BitPayTest2 { - - private static final BitPayLogger _log = new BitPayLogger(BitPayLogger.DEBUG); - private static String clientName = "BitPay Java Library Tester2"; - private Client bitpay; - - @BeforeClass - public static void setUpOneTime() throws UnknownHostException, BitPayException { -// Client bitpay = new Client("BitPay.config.json", null); - Client bitpay = new Client( - Env.Test, - "bitpay_private_test.key", - new Env.Tokens() {{ - pos = "AvJdGrEqTW9HVsJit9zabAnrJabqaQDhWHRacHYgfgxK"; - merchant = "2smKkjA1ACPKWUGN7wUEEqdWi3rhXYhDX6AKgG4njKvj"; - payroll = "9pJ7fzW1GGeuDQfj32aNATCDnyY6YAacVMcDrs7HHUNo"; - }}, - null - ); - - if (!bitpay.tokenExist(Facade.PointOfSale)) { - // Get POS facade authorization code. - // Obtain a pairingCode from the BitPay server. The pairingCode must be emitted from - // this device and input into and approved by the desired merchant account. To - // generate invoices a POS facade is required. - String pairingCode = bitpay.requestClientAuthorization(Facade.PointOfSale); - - // Signal the device operator that this client needs to be paired with a merchant account. - _log.info("Client is requesting POS facade access. Go to " + Env.TestUrl + " and pair this client with your merchant account using the pairing code: " + pairingCode); - throw new BitPayException("Error: client is not authorized."); - } - bitpay.setLoggerLevel(BitPayLogger.DEBUG); - } - - @Before - public void setUp() throws BitPayException { - //ensure the second argument (api url) is the same as the one used in setUpOneTime() -// bitpay = new Client("BitPay.config.json", null); - bitpay = new Client( - Env.Test, - "bitpay_private_test.key", - new Env.Tokens() {{ - pos = "AvJdGrEqTW9HVsJit9zabAnrJabqaQDhWHRacHYgfgxK"; - merchant = "2smKkjA1ACPKWUGN7wUEEqdWi3rhXYhDX6AKgG4njKvj"; - payroll = "9pJ7fzW1GGeuDQfj32aNATCDnyY6YAacVMcDrs7HHUNo"; - }}, - null - ); - } - - @Test - public void testShouldGetInvoiceId() { - Invoice invoice = new Invoice(1.00, "USD"); - try { - invoice = bitpay.createInvoice(invoice); - } catch (Exception e) { - e.printStackTrace(); - } - assertNotNull(invoice.getId()); - } - - @Test - public void testCurrency() { - boolean validCurrency; - validCurrency = Currency.isValid("EUR"); - assertTrue(validCurrency); - } -} diff --git a/src/test/java/test/BitPayTest.java b/src/test/java/test/BitPayTestMerchant.java similarity index 98% rename from src/test/java/test/BitPayTest.java rename to src/test/java/test/BitPayTestMerchant.java index 0da4d85e..f68de522 100644 --- a/src/test/java/test/BitPayTest.java +++ b/src/test/java/test/BitPayTestMerchant.java @@ -20,7 +20,6 @@ import com.bitpay.sdk.util.KeyUtils; import org.bitcoinj.core.ECKey; import org.junit.Before; -import org.junit.BeforeClass; import org.junit.Test; import java.io.IOException; @@ -34,13 +33,10 @@ import static org.junit.Assert.*; -public class BitPayTest { +public class BitPayTestMerchant { private final static double BTC_EPSILON = .000000001; private final static double EPSILON = .001; - private static String clientName = "BitPay Java Library Tester"; - private static String pairingCode; - private static URI myKeyFile; private Client bitpay; private Invoice basicInvoice; @@ -50,7 +46,7 @@ public void setUp() throws BitPayException, IOException, URISyntaxException { // bitpay = new Client("BitPay.config.json", null); bitpay = new Client( Env.Test, - "/Users/antonio.buedo/Bitpay/Repos/java-bitpay-client/output/bitpay_private_test.key", + "bitpay_private_test.key", new Env.Tokens() {{ merchant = "Ffm2qBvfF5B75ENThRpRDC7WQLPosfbf24qAccriRCYQ"; payroll = "FmCU4D5bGL8hRtzJX7rZZatjywqep12wDR4PKStE1rzp"; @@ -215,7 +211,7 @@ public void testShouldCreateInvoiceWithAdditionalParams() { Invoice invoice = new Invoice(100.0, "USD"); invoice.setBuyer(buyer); invoice.setFullNotifications(true); - invoice.setNotificationEmail("satoshi@merchantemaildomain.com"); + invoice.setNotificationEmail("sandbox@bitpay.com"); invoice.setPosData("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"); try { invoice = this.bitpay.createInvoice(invoice); @@ -229,7 +225,7 @@ public void testShouldCreateInvoiceWithAdditionalParams() { assertEquals("Satoshi", invoice.getBuyer().getName()); assertEquals("satoshi@buyeremaildomain.com", invoice.getBuyer().getEmail()); assertEquals(true, invoice.getFullNotifications()); - assertEquals("satoshi@merchantemaildomain.com", invoice.getNotificationEmail()); + assertEquals("sandbox@bitpay.com", invoice.getNotificationEmail()); } @Test diff --git a/src/test/java/test/BitPayTest3.java b/src/test/java/test/BitPayTestPayouts.java similarity index 53% rename from src/test/java/test/BitPayTest3.java rename to src/test/java/test/BitPayTestPayouts.java index 82432518..7c329686 100644 --- a/src/test/java/test/BitPayTest3.java +++ b/src/test/java/test/BitPayTestPayouts.java @@ -3,10 +3,9 @@ import com.bitpay.sdk.BitPayException; import com.bitpay.sdk.Client; import com.bitpay.sdk.Env; +import com.bitpay.sdk.exceptions.PayoutCreationException; import com.bitpay.sdk.model.Facade; -import com.bitpay.sdk.model.Payout.PayoutBatch; -import com.bitpay.sdk.model.Payout.PayoutInstruction; -import com.bitpay.sdk.model.Payout.PayoutStatus; +import com.bitpay.sdk.model.Payout.*; import com.bitpay.sdk.util.BitPayLogger; import org.junit.Before; import org.junit.BeforeClass; @@ -21,17 +20,15 @@ import static org.junit.Assert.*; -public class BitPayTest3 { +public class BitPayTestPayouts { private static final BitPayLogger _log = new BitPayLogger(BitPayLogger.DEBUG); - private static String clientName = "BitPay Java Library Tester3"; private static String pairingCode; private static URI myKeyFile; private Client bitpay; @BeforeClass public static void setUpOneTime() throws InterruptedException, IOException, BitPayException, URISyntaxException { - boolean dumpOut = false; // Client bitpay = new Client("BitPay.config.json"); Client bitpay = new Client( @@ -44,34 +41,7 @@ public static void setUpOneTime() throws InterruptedException, IOException, BitP }}, null ); - - // Authorize this client for use with a BitPay merchant account. This client requires a - // PAYROLL facades. - if (!bitpay.tokenExist(Facade.Payroll)) { - // Get PAYROLL facade authorization. - // Obtain a pairingCode from your BitPay account administrator. When the pairingCode - // is created by your administrator it is assigned a facade. To generate payout batches a - // PAYROLL facade is required. - - // As an alternative to this client outputting a pairing code, the BitPay account owner - // may interactively generate a pairing code via the BitPay merchant dashboard at - // https://[test].bitpay.com/dashboard/merchant/api-tokens. This client can subsequently - // accept the pairing code using the following call. - - // bitpay.authorizeClient(pairingCode); - - pairingCode = bitpay.requestClientAuthorization(Facade.Payroll); - - // Signal the device operator that this client needs to be paired with a merchant account. - _log.info("Client is requesting PAYROLL facade access. Go to " + Env.TestUrl + " and pair this client with your merchant account using the pairing code: " + pairingCode); - dumpOut = true; - //we already failed to authorize for a PAYROLL token, therefore we must sleep a bit to try to authorize for any other facade (rate limiter on the api side) - Thread.sleep(10000); - } - - if (dumpOut) { - throw new BitPayException("Error: client is not authorized."); - } + bitpay.setLoggerLevel(BitPayLogger.DEBUG); } @Before @@ -92,24 +62,71 @@ public void setUp() throws BitPayException, IOException, URISyntaxException { } @Test - public void testShouldSubmitPayoutBatch() { - Date date = new Date(); - Date threeDaysFromNow = new Date(date.getTime() + 3 * 24 * 3600 * 1000); + public void testShouldSubmitPayoutRecipients() { + List recipientsList = Arrays.asList( + new PayoutRecipient( + "sandbox+recipient1@bitpay.com", + "recipient1", + "https://hookb.in/wNDlQMV7WMFz88VDyGnJ"), + new PayoutRecipient( + "sandbox+recipient2@bitpay.com", + "recipient2", + "https://hookb.in/QJOPBdMgRkukpp2WO60o"), + new PayoutRecipient( + "sandbox+recipient3@bitpay.com", + "recipient3", + "https://hookb.in/QJOPBdMgRkukpp2WO60o") + ); - long effectiveDate = threeDaysFromNow.getTime(); - String currency = "USD"; - List instructions = Arrays.asList( - new PayoutInstruction(100.0, "mtHDtQtkEkRRB5mgeWpLhALsSbga3iZV6u"), - new PayoutInstruction(200.0, "mvR4Xj7MYT7GJcL93xAQbSZ2p4eHJV5F7A") + PayoutRecipients recipientsObj = new PayoutRecipients(recipientsList); + try { + List recipients = this.bitpay.submitPayoutRecipients(recipientsObj); + + assertNotNull(recipients); + assertTrue(recipients.size() == 2); + } catch (Exception e) { + e.printStackTrace(); + fail(e.getMessage()); + } + } + + @Test + public void testShouldGetPayoutRecipientId() { + List recipientsList = Arrays.asList( + new PayoutRecipient( + "sandbox+recipient1@bitpay.com", + "recipient1", + "https://hookb.in/wNDlQMV7WMFz88VDyGnJ"), + new PayoutRecipient( + "sandbox+recipient2@bitpay.com", + "recipient2", + "https://hookb.in/QJOPBdMgRkukpp2WO60o"), + new PayoutRecipient( + "sandbox+recipient3@bitpay.com", + "recipient3", + "https://hookb.in/QJOPBdMgRkukpp2WO60o") ); - PayoutBatch batch = new PayoutBatch(currency, effectiveDate, instructions); + PayoutRecipients recipientsObj = new PayoutRecipients(recipientsList); try { - batch = this.bitpay.submitPayoutBatch(batch); + List recipients = this.bitpay.submitPayoutRecipients(recipientsObj); + PayoutRecipient firstRecipient = recipients.get(0); + PayoutRecipient retrieved = this.bitpay.getPayoutRecipient(firstRecipient.getId()); - assertNotNull(batch.getId()); - assertTrue(batch.getInstructions().size() == 2); + assertNotNull(firstRecipient); + assertNotNull(retrieved.getId()); + assertEquals(firstRecipient.getId(), retrieved.getId()); + } catch (Exception e) { + e.printStackTrace(); + fail(e.getMessage()); + } + } + @Test + public void testShouldGetPayoutRecipients() { + try { + List recipients = this.bitpay.getPayoutRecipients(null, 2); + assertEquals(2, recipients.size()); } catch (Exception e) { e.printStackTrace(); fail(e.getMessage()); @@ -117,15 +134,14 @@ public void testShouldSubmitPayoutBatch() { } @Test - public void testShouldSubmitGetAndDeletePayoutBatch() { + public void testShouldSubmitGetAndDeletePayoutBatch() throws PayoutCreationException { Date date = new Date(); Date threeDaysFromNow = new Date(date.getTime() + 3 * 24 * 3600 * 1000); long effectiveDate = threeDaysFromNow.getTime(); String currency = "USD"; List instructions = Arrays.asList( - new PayoutInstruction(100.0, "mtHDtQtkEkRRB5mgeWpLhALsSbga3iZV6u"), - new PayoutInstruction(200.0, "mvR4Xj7MYT7GJcL93xAQbSZ2p4eHJV5F7A") + new PayoutInstruction(100.0, RecipientReferenceMethod.EMAIL, "sandbox+recipient1@bitpay.com") ); PayoutBatch batch0 = new PayoutBatch(currency, effectiveDate, instructions); @@ -133,12 +149,12 @@ public void testShouldSubmitGetAndDeletePayoutBatch() { batch0 = this.bitpay.submitPayoutBatch(batch0); assertNotNull(batch0.getId()); - assertTrue(batch0.getInstructions().size() == 2); + assertTrue(batch0.getInstructions().size() == 1); PayoutBatch batch1 = this.bitpay.getPayoutBatch(batch0.getId()); assertEquals(batch1.getId(), batch0.getId()); - assertTrue(batch1.getInstructions().size() == 2); + assertTrue(batch1.getInstructions().size() == 1); this.bitpay.cancelPayoutBatch(batch0.getId());