Package com.bitpay.sdk.model.Invoice
Class Invoice
- java.lang.Object
-
- com.bitpay.sdk.model.Invoice.Invoice
-
public class Invoice extends java.lang.Object
-
-
Method Summary
Modifier and Type Method Description longgetAcceptanceWindow()java.math.BigDecimalgetAmountPaid()java.lang.StringgetBillId()BuyergetBuyer()java.lang.StringgetBuyerProvidedEmail()java.lang.StringgetCurrency()longgetCurrentTime()java.lang.StringgetExceptionStatus()java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>>getExchangeRates()longgetExpirationTime()booleangetExtendedNotifications()booleangetFullNotifications()java.lang.StringgetGuid()java.lang.StringgetId()InvoiceBuyerProvidedInfogetInvoiceBuyerProvidedInfo()longgetInvoiceTime()java.lang.StringgetItemCode()java.lang.StringgetItemDesc()java.lang.BooleangetLowFeeDetected()MinerFeesgetMinerFees()java.lang.StringgetNotificationEmail()java.lang.StringgetNotificationURL()java.lang.StringgetOrderId()java.util.List<java.lang.String>getPaymentCurrencies()booleangetPhysical()java.lang.StringgetPosData()java.lang.DoublegetPrice()java.lang.StringgetRedirectURL()java.util.ArrayListgetRefundAddresses()booleangetRefundAddressRequestPending()java.util.ArrayList<RefundInfo>getRefundInfo()ShoppergetShopper()java.lang.StringgetStatus()SupportedTransactionCurrenciesgetSupportedTransactionCurrencies()longgetTargetConfirmations()java.lang.StringgetToken()java.lang.StringgetTransactionCurrency()java.util.List<InvoiceTransaction>getTransactions()java.lang.StringgetTransactionSpeed()java.lang.StringgetUrl()voidsetAcceptanceWindow(long _acceptanceWindow)voidsetAmountPaid(java.math.BigDecimal _amountPaid)voidsetBillId(java.lang.String _billId)voidsetBuyer(Buyer _buyer)voidsetBuyerProvidedEmail(java.lang.String _buyerProvidedEmail)voidsetCurrency(java.lang.String _currency)voidsetCurrentTime(long _currentTime)voidsetExceptionStatus(java.lang.String _exceptionStatus)voidsetExchangeRates(java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>> _exchangeRates)voidsetExpirationTime(long _expirationTime)voidsetExtendedNotifications(boolean _extendedNotifications)voidsetFullNotifications(boolean _fullNotifications)voidsetGuid(java.lang.String _guid)voidsetId(java.lang.String _id)voidsetInvoiceBuyerProvidedInfo(InvoiceBuyerProvidedInfo _invoiceBuyerProvidedInfo)voidsetInvoiceTime(long _invoiceTime)voidsetItemCode(java.lang.String _itemCode)voidsetItemDesc(java.lang.String _itemDesc)voidsetLowFeeDetected(java.lang.Boolean _lowFeeDetected)voidsetMinerFees(MinerFees _minerFees)voidsetNotificationEmail(java.lang.String _notificationEmail)voidsetNotificationURL(java.lang.String _notificationURL)voidsetOrderId(java.lang.String _orderId)voidsetPaymentCurrencies(java.util.List<java.lang.String> _paymentCurrencies)voidsetPhysical(boolean _physical)voidsetPosData(java.lang.String _posData)voidsetPrice(java.lang.Double _price)voidsetRedirectURL(java.lang.String _redirectURL)voidsetRefundAddresses(java.util.ArrayList _refundAddresses)voidsetRefundAddressRequestPending(boolean _refundAddressRequestPending)voidsetRefundInfo(java.util.ArrayList<RefundInfo> _refundInfo)voidsetShopper(Shopper _shopper)voidsetStatus(java.lang.String _status)voidsetSupportedTransactionCurrencies(SupportedTransactionCurrencies _supportedTransactionCurrencies)voidsetTargetConfirmations(long _targetConfirmations)voidsetToken(java.lang.String _token)voidsetTransactionCurrency(java.lang.String _transactionCurrency)voidsetTransactions(java.util.List<InvoiceTransaction> _transactions)voidsetTransactionSpeed(java.lang.String _transactionSpeed)voidsetUrl(java.lang.String _url)
-
-
-
Constructor Detail
-
Invoice
public Invoice()
Constructor, create an empty Invoice object.
-
Invoice
public Invoice(java.lang.Double price, java.lang.String currency)Constructor, create a minimal request Invoice object.- Parameters:
price- The amount for which the invoice will be created.currency- The three digit currency type used to compute the invoice bitcoin amount.
-
-
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)
-
getPrice
public java.lang.Double getPrice()
-
setPrice
public void setPrice(java.lang.Double _price)
-
getCurrency
public java.lang.String getCurrency()
-
setCurrency
public void setCurrency(java.lang.String _currency) throws BitPayException- Throws:
BitPayException
-
getOrderId
public java.lang.String getOrderId()
-
setOrderId
public void setOrderId(java.lang.String _orderId)
-
getItemDesc
public java.lang.String getItemDesc()
-
setItemDesc
public void setItemDesc(java.lang.String _itemDesc)
-
getItemCode
public java.lang.String getItemCode()
-
setItemCode
public void setItemCode(java.lang.String _itemCode)
-
getPosData
public java.lang.String getPosData()
-
setPosData
public void setPosData(java.lang.String _posData)
-
getNotificationURL
public java.lang.String getNotificationURL()
-
setNotificationURL
public void setNotificationURL(java.lang.String _notificationURL)
-
getTransactionSpeed
public java.lang.String getTransactionSpeed()
-
setTransactionSpeed
public void setTransactionSpeed(java.lang.String _transactionSpeed)
-
getFullNotifications
public boolean getFullNotifications()
-
setFullNotifications
public void setFullNotifications(boolean _fullNotifications)
-
getExtendedNotifications
public boolean getExtendedNotifications()
-
setExtendedNotifications
public void setExtendedNotifications(boolean _extendedNotifications)
-
getNotificationEmail
public java.lang.String getNotificationEmail()
-
setNotificationEmail
public void setNotificationEmail(java.lang.String _notificationEmail)
-
getRedirectURL
public java.lang.String getRedirectURL()
-
setRedirectURL
public void setRedirectURL(java.lang.String _redirectURL)
-
getPhysical
public boolean getPhysical()
-
setPhysical
public void setPhysical(boolean _physical)
-
getPaymentCurrencies
public java.util.List<java.lang.String> getPaymentCurrencies()
-
setPaymentCurrencies
public void setPaymentCurrencies(java.util.List<java.lang.String> _paymentCurrencies)
-
getAcceptanceWindow
public long getAcceptanceWindow()
-
setAcceptanceWindow
public void setAcceptanceWindow(long _acceptanceWindow)
-
getBuyer
public Buyer getBuyer()
-
setBuyer
public void setBuyer(Buyer _buyer)
-
getId
public java.lang.String getId()
-
setId
public void setId(java.lang.String _id)
-
getUrl
public java.lang.String getUrl()
-
setUrl
public void setUrl(java.lang.String _url)
-
getStatus
public java.lang.String getStatus()
-
setStatus
public void setStatus(java.lang.String _status)
-
getLowFeeDetected
public java.lang.Boolean getLowFeeDetected()
-
setLowFeeDetected
public void setLowFeeDetected(java.lang.Boolean _lowFeeDetected)
-
getInvoiceTime
public long getInvoiceTime()
-
setInvoiceTime
public void setInvoiceTime(long _invoiceTime)
-
getExpirationTime
public long getExpirationTime()
-
setExpirationTime
public void setExpirationTime(long _expirationTime)
-
getCurrentTime
public long getCurrentTime()
-
setCurrentTime
public void setCurrentTime(long _currentTime)
-
getTransactions
public java.util.List<InvoiceTransaction> getTransactions()
-
setTransactions
public void setTransactions(java.util.List<InvoiceTransaction> _transactions)
-
getExceptionStatus
public java.lang.String getExceptionStatus()
-
setExceptionStatus
public void setExceptionStatus(java.lang.String _exceptionStatus)
-
getTargetConfirmations
public long getTargetConfirmations()
-
setTargetConfirmations
public void setTargetConfirmations(long _targetConfirmations)
-
getRefundAddresses
public java.util.ArrayList getRefundAddresses()
-
setRefundAddresses
public void setRefundAddresses(java.util.ArrayList _refundAddresses)
-
getRefundAddressRequestPending
public boolean getRefundAddressRequestPending()
-
setRefundAddressRequestPending
public void setRefundAddressRequestPending(boolean _refundAddressRequestPending)
-
getBuyerProvidedEmail
public java.lang.String getBuyerProvidedEmail()
-
setBuyerProvidedEmail
public void setBuyerProvidedEmail(java.lang.String _buyerProvidedEmail)
-
getInvoiceBuyerProvidedInfo
public InvoiceBuyerProvidedInfo getInvoiceBuyerProvidedInfo()
-
setInvoiceBuyerProvidedInfo
public void setInvoiceBuyerProvidedInfo(InvoiceBuyerProvidedInfo _invoiceBuyerProvidedInfo)
-
getSupportedTransactionCurrencies
public SupportedTransactionCurrencies getSupportedTransactionCurrencies()
-
setSupportedTransactionCurrencies
public void setSupportedTransactionCurrencies(SupportedTransactionCurrencies _supportedTransactionCurrencies)
-
getMinerFees
public MinerFees getMinerFees()
-
setMinerFees
public void setMinerFees(MinerFees _minerFees)
-
getShopper
public Shopper getShopper()
-
setShopper
public void setShopper(Shopper _shopper)
-
getBillId
public java.lang.String getBillId()
-
setBillId
public void setBillId(java.lang.String _billId)
-
getRefundInfo
public java.util.ArrayList<RefundInfo> getRefundInfo()
-
setRefundInfo
public void setRefundInfo(java.util.ArrayList<RefundInfo> _refundInfo)
-
getTransactionCurrency
public java.lang.String getTransactionCurrency()
-
setTransactionCurrency
public void setTransactionCurrency(java.lang.String _transactionCurrency)
-
getAmountPaid
public java.math.BigDecimal getAmountPaid()
-
setAmountPaid
public void setAmountPaid(java.math.BigDecimal _amountPaid)
-
getExchangeRates
public java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>> getExchangeRates()
-
setExchangeRates
public void setExchangeRates(java.util.Hashtable<java.lang.String,java.util.Hashtable<java.lang.String,java.lang.String>> _exchangeRates)
-
-