controller
Class BitPay
java.lang.Object
controller.BitPay
public class BitPay
- extends java.lang.Object
|
Constructor Summary |
BitPay()
|
BitPay(com.google.bitcoin.core.ECKey ecKey)
|
BitPay(com.google.bitcoin.core.ECKey ecKey,
java.lang.String clientName)
|
BitPay(com.google.bitcoin.core.ECKey ecKey,
java.lang.String clientName,
java.lang.String envUrl)
Constructor for use if the keys and SIN were derived external to this library. |
BitPay(java.lang.String clientName)
|
BitPay(java.lang.String clientName,
java.lang.String envUrl)
Constructor for use if the keys and SIN are managed by this library. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACADE_PAYROLL
public static final java.lang.String FACADE_PAYROLL
- See Also:
- Constant Field Values
FACADE_POS
public static final java.lang.String FACADE_POS
- See Also:
- Constant Field Values
FACADE_MERCHANT
public static final java.lang.String FACADE_MERCHANT
- See Also:
- Constant Field Values
FACADE_USER
public static final java.lang.String FACADE_USER
- See Also:
- Constant Field Values
BitPay
public BitPay(java.lang.String clientName,
java.lang.String envUrl)
throws BitPayException
- Constructor for use if the keys and SIN are managed by this library.
- Parameters:
clientName - - The label for this client.envUrl - - The target server URL.
- Throws:
BitPayException
BitPay
public BitPay(java.lang.String clientName)
throws BitPayException
- Throws:
BitPayException
BitPay
public BitPay()
throws BitPayException
- Throws:
BitPayException
BitPay
public BitPay(com.google.bitcoin.core.ECKey ecKey,
java.lang.String clientName,
java.lang.String envUrl)
throws BitPayException
- Constructor for use if the keys and SIN were derived external to this library.
- Parameters:
ecKey - - An elliptical curve key.clientName - - The label for this client.envUrl - - The target server URL.
- Throws:
BitPayException
BitPay
public BitPay(com.google.bitcoin.core.ECKey ecKey,
java.lang.String clientName)
throws BitPayException
- Throws:
BitPayException
BitPay
public BitPay(com.google.bitcoin.core.ECKey ecKey)
throws BitPayException
- Throws:
BitPayException
getIdentity
public java.lang.String getIdentity()
getDisableNonce
public boolean getDisableNonce()
setDisableNonce
public void setDisableNonce(boolean value)
authorizeClient
public void authorizeClient(java.lang.String pairingCode)
throws BitPayException
- Throws:
BitPayException
requestClientAuthorization
public java.lang.String requestClientAuthorization(java.lang.String facade)
throws BitPayException
- Throws:
BitPayException
clientIsAuthorized
public boolean clientIsAuthorized(java.lang.String facade)
createInvoice
public Invoice createInvoice(Invoice invoice,
java.lang.String facade)
throws BitPayException
- Throws:
BitPayException
createInvoice
public Invoice createInvoice(Invoice invoice)
throws BitPayException
- Throws:
BitPayException
getInvoice
public Invoice getInvoice(java.lang.String invoiceId)
throws BitPayException
- Throws:
BitPayException
getInvoices
public java.util.List<Invoice> getInvoices(java.lang.String dateStart,
java.lang.String dateEnd)
throws BitPayException
- Throws:
BitPayException
getRates
public Rates getRates()
throws BitPayException
- Throws:
BitPayException