controller
Class BitPay

java.lang.Object
  extended by controller.BitPay

public class BitPay
extends java.lang.Object


Field Summary
static java.lang.String FACADE_MERCHANT
           
static java.lang.String FACADE_PAYROLL
           
static java.lang.String FACADE_POS
           
static java.lang.String FACADE_USER
           
 
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.
 
Method Summary
 void authorizeClient(java.lang.String pairingCode)
           
 boolean clientIsAuthorized(java.lang.String facade)
           
 Invoice createInvoice(Invoice invoice)
           
 Invoice createInvoice(Invoice invoice, java.lang.String facade)
           
 boolean getDisableNonce()
           
 java.lang.String getIdentity()
           
 Invoice getInvoice(java.lang.String invoiceId)
           
 java.util.List<Invoice> getInvoices(java.lang.String dateStart, java.lang.String dateEnd)
           
 Rates getRates()
           
 java.lang.String requestClientAuthorization(java.lang.String facade)
           
 void setDisableNonce(boolean value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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