public class BitcoinReceiver extends ApiResource implements PaymentSource
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
BitcoinReceiver() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getActive()
True when this bitcoin receiver has received a non-zero amount of bitcoin.
|
java.lang.Long |
getAmount()
The amount of
currency that you are collecting as payment. |
java.lang.Long |
getAmountReceived()
The amount of
currency to which bitcoin_amount_received has been converted. |
java.lang.Long |
getBitcoinAmount()
The amount of bitcoin that the customer should send to fill the receiver.
|
java.lang.Long |
getBitcoinAmountReceived()
The amount of bitcoin that has been sent by the customer to this receiver.
|
java.lang.String |
getBitcoinUri()
This URI can be displayed to the customer as a clickable link (to activate their bitcoin
client) or as a QR code (for mobile wallets).
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter ISO code for the currency to
which the bitcoin will be converted.
|
java.lang.String |
getCustomer()
The customer ID of the bitcoin receiver.
|
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.String |
getEmail()
The customer's email address, set by the API call that creates the receiver.
|
java.lang.Boolean |
getFilled()
This flag is initially false and updates to true when the customer sends the
bitcoin_amount to this receiver. |
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getInboundAddress()
A bitcoin address that is specific to this receiver.
|
java.lang.Boolean |
getLivemode()
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getPayment()
The ID of the payment created from the receiver, if any.
|
java.lang.String |
getRefundAddress()
The refund address of this bitcoin receiver.
|
BitcoinTransactionCollection |
getTransactions()
A list with one entry for each time that the customer sent bitcoin to the receiver.
|
java.lang.Boolean |
getUncapturedFunds()
This receiver contains uncaptured funds that can be used for a payment or refunded.
|
java.lang.Boolean |
getUsedForPayment()
Indicate if this source is used for payment.
|
int |
hashCode() |
static BitcoinReceiverCollection |
list(BitcoinReceiverListParams params)
Returns a list of your receivers.
|
static BitcoinReceiverCollection |
list(BitcoinReceiverListParams params,
RequestOptions options)
Returns a list of your receivers.
|
static BitcoinReceiverCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your receivers.
|
static BitcoinReceiverCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your receivers.
|
static BitcoinReceiver |
retrieve(java.lang.String id)
Retrieves the Bitcoin receiver with the given ID.
|
static BitcoinReceiver |
retrieve(java.lang.String id,
BitcoinReceiverRetrieveParams params,
RequestOptions options)
Retrieves the Bitcoin receiver with the given ID.
|
static BitcoinReceiver |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the Bitcoin receiver with the given ID.
|
static BitcoinReceiver |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the Bitcoin receiver with the given ID.
|
void |
setActive(java.lang.Boolean active)
True when this bitcoin receiver has received a non-zero amount of bitcoin.
|
void |
setAmount(java.lang.Long amount)
The amount of
currency that you are collecting as payment. |
void |
setAmountReceived(java.lang.Long amountReceived)
The amount of
currency to which bitcoin_amount_received has been converted. |
void |
setBitcoinAmount(java.lang.Long bitcoinAmount)
The amount of bitcoin that the customer should send to fill the receiver.
|
void |
setBitcoinAmountReceived(java.lang.Long bitcoinAmountReceived)
The amount of bitcoin that has been sent by the customer to this receiver.
|
void |
setBitcoinUri(java.lang.String bitcoinUri)
This URI can be displayed to the customer as a clickable link (to activate their bitcoin
client) or as a QR code (for mobile wallets).
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO code for the currency to
which the bitcoin will be converted.
|
void |
setCustomer(java.lang.String customer)
The customer ID of the bitcoin receiver.
|
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setEmail(java.lang.String email)
The customer's email address, set by the API call that creates the receiver.
|
void |
setFilled(java.lang.Boolean filled)
This flag is initially false and updates to true when the customer sends the
bitcoin_amount to this receiver. |
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setInboundAddress(java.lang.String inboundAddress)
A bitcoin address that is specific to this receiver.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value
true if the object exists in live mode or the value false if the
object exists in test mode. |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPayment(java.lang.String payment)
The ID of the payment created from the receiver, if any.
|
void |
setRefundAddress(java.lang.String refundAddress)
The refund address of this bitcoin receiver.
|
void |
setTransactions(BitcoinTransactionCollection transactions)
A list with one entry for each time that the customer sent bitcoin to the receiver.
|
void |
setUncapturedFunds(java.lang.Boolean uncapturedFunds)
This receiver contains uncaptured funds that can be used for a payment or refunded.
|
void |
setUsedForPayment(java.lang.Boolean usedForPayment)
Indicate if this source is used for payment.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLastResponse, setLastResponse
public static BitcoinReceiverCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static BitcoinReceiverCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static BitcoinReceiverCollection list(BitcoinReceiverListParams params) throws StripeException
StripeException
public static BitcoinReceiverCollection list(BitcoinReceiverListParams params, RequestOptions options) throws StripeException
StripeException
public static BitcoinReceiver retrieve(java.lang.String id) throws StripeException
StripeException
public static BitcoinReceiver retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static BitcoinReceiver retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static BitcoinReceiver retrieve(java.lang.String id, BitcoinReceiverRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.Boolean getActive()
public java.lang.Long getAmount()
currency
that you are collecting as payment.public java.lang.Long getAmountReceived()
currency
to which bitcoin_amount_received
has been converted.public java.lang.Long getBitcoinAmount()
bitcoin_amount
is denominated in Satoshi: there are 10^8 Satoshi in one bitcoin.public java.lang.Long getBitcoinAmountReceived()
public java.lang.String getBitcoinUri()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getCustomer()
public java.lang.Boolean getDeleted()
public java.lang.String getDescription()
public java.lang.String getEmail()
public java.lang.Boolean getFilled()
bitcoin_amount
to this receiver.public java.lang.String getInboundAddress()
public java.lang.Boolean getLivemode()
true
if the object exists in live mode or the value false
if the
object exists in test mode.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
public java.lang.String getObject()
Equal to bitcoin_receiver
.
public java.lang.String getPayment()
public java.lang.String getRefundAddress()
public BitcoinTransactionCollection getTransactions()
public java.lang.Boolean getUncapturedFunds()
public java.lang.Boolean getUsedForPayment()
public void setActive(java.lang.Boolean active)
public void setAmount(java.lang.Long amount)
currency
that you are collecting as payment.public void setAmountReceived(java.lang.Long amountReceived)
currency
to which bitcoin_amount_received
has been converted.public void setBitcoinAmount(java.lang.Long bitcoinAmount)
bitcoin_amount
is denominated in Satoshi: there are 10^8 Satoshi in one bitcoin.public void setBitcoinAmountReceived(java.lang.Long bitcoinAmountReceived)
public void setBitcoinUri(java.lang.String bitcoinUri)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setCustomer(java.lang.String customer)
public void setDeleted(java.lang.Boolean deleted)
public void setDescription(java.lang.String description)
public void setEmail(java.lang.String email)
public void setFilled(java.lang.Boolean filled)
bitcoin_amount
to this receiver.public void setId(java.lang.String id)
public void setInboundAddress(java.lang.String inboundAddress)
public void setLivemode(java.lang.Boolean livemode)
true
if the object exists in live mode or the value false
if the
object exists in test mode.public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
Equal to bitcoin_receiver
.
public void setPayment(java.lang.String payment)
public void setRefundAddress(java.lang.String refundAddress)
public void setTransactions(BitcoinTransactionCollection transactions)
public void setUncapturedFunds(java.lang.Boolean uncapturedFunds)
public void setUsedForPayment(java.lang.Boolean usedForPayment)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object