Package com.stripe.model
Class AlipayAccount
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.AlipayAccount
-
- All Implemented Interfaces:
HasId
,PaymentSource
,StripeObjectInterface
public class AlipayAccount extends StripeObject implements PaymentSource
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description AlipayAccount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getCreated()
Time at which the object was created.java.lang.String
getCustomer()
Get ID of expandablecustomer
object.Customer
getCustomerObject()
Get expandedcustomer
.java.lang.Boolean
getDeleted()
Always true for a deleted object.java.lang.String
getFingerprint()
Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.java.lang.String
getId()
Unique identifier for the object.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
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.Long
getPaymentAmount()
If the Alipay account object is not reusable, the exact amount that you can create a charge for.java.lang.String
getPaymentCurrency()
If the Alipay account object is not reusable, the exact currency that you can create a charge for.java.lang.Boolean
getReusable()
True if you can create multiple payments using this account.java.lang.Boolean
getUsed()
Whether this Alipay account object has ever been used for a payment.java.lang.String
getUsername()
The username for the Alipay account.int
hashCode()
void
setCreated(java.lang.Long created)
Time at which the object was created.void
setCustomer(java.lang.String id)
void
setCustomerObject(Customer expandableObject)
void
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.void
setFingerprint(java.lang.String fingerprint)
Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.void
setId(java.lang.String id)
Unique identifier for the object.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
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
setPaymentAmount(java.lang.Long paymentAmount)
If the Alipay account object is not reusable, the exact amount that you can create a charge for.void
setPaymentCurrency(java.lang.String paymentCurrency)
If the Alipay account object is not reusable, the exact currency that you can create a charge for.void
setReusable(java.lang.Boolean reusable)
True if you can create multiple payments using this account.void
setUsed(java.lang.Boolean used)
Whether this Alipay account object has ever been used for a payment.void
setUsername(java.lang.String username)
The username for the Alipay account.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
-
-
-
Method Detail
-
getCustomer
public java.lang.String getCustomer()
Get ID of expandablecustomer
object.
-
setCustomer
public void setCustomer(java.lang.String id)
-
getCustomerObject
public Customer getCustomerObject()
Get expandedcustomer
.
-
setCustomerObject
public void setCustomerObject(Customer expandableObject)
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getDeleted
public java.lang.Boolean getDeleted()
Always true for a deleted object.
-
getFingerprint
public java.lang.String getFingerprint()
Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
alipay_account
.
-
getPaymentAmount
public java.lang.Long getPaymentAmount()
If the Alipay account object is not reusable, the exact amount that you can create a charge for.
-
getPaymentCurrency
public java.lang.String getPaymentCurrency()
If the Alipay account object is not reusable, the exact currency that you can create a charge for.
-
getReusable
public java.lang.Boolean getReusable()
True if you can create multiple payments using this account. If the account is reusable, then you can freely choose the amount of each payment.
-
getUsed
public java.lang.Boolean getUsed()
Whether this Alipay account object has ever been used for a payment.
-
getUsername
public java.lang.String getUsername()
The username for the Alipay account.
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
-
setFingerprint
public void setFingerprint(java.lang.String fingerprint)
Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
alipay_account
.
-
setPaymentAmount
public void setPaymentAmount(java.lang.Long paymentAmount)
If the Alipay account object is not reusable, the exact amount that you can create a charge for.
-
setPaymentCurrency
public void setPaymentCurrency(java.lang.String paymentCurrency)
If the Alipay account object is not reusable, the exact currency that you can create a charge for.
-
setReusable
public void setReusable(java.lang.Boolean reusable)
True if you can create multiple payments using this account. If the account is reusable, then you can freely choose the amount of each payment.
-
setUsed
public void setUsed(java.lang.Boolean used)
Whether this Alipay account object has ever been used for a payment.
-
setUsername
public void setUsername(java.lang.String username)
The username for the Alipay account.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-