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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCustomer()Get ID of expandablecustomerobject.CustomergetCustomerObject()Get expandedcustomer.java.lang.BooleangetDeleted()Always true for a deleted object.java.lang.StringgetFingerprint()Uniquely identifies the account and will be the same across all Alipay account objects that are linked to the same Alipay account.java.lang.StringgetId()Unique identifier for the object.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif 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.StringgetObject()String representing the object's type.java.lang.LonggetPaymentAmount()If the Alipay account object is not reusable, the exact amount that you can create a charge for.java.lang.StringgetPaymentCurrency()If the Alipay account object is not reusable, the exact currency that you can create a charge for.java.lang.BooleangetReusable()True if you can create multiple payments using this account.java.lang.BooleangetUsed()Whether this Alipay account object has ever been used for a payment.java.lang.StringgetUsername()The username for the Alipay account.inthashCode()voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCustomer(java.lang.String id)voidsetCustomerObject(Customer expandableObject)voidsetDeleted(java.lang.Boolean deleted)Always true for a deleted object.voidsetFingerprint(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.voidsetId(java.lang.String id)Unique identifier for the object.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Set of key-value pairs that you can attach to an object.voidsetObject(java.lang.String object)String representing the object's type.voidsetPaymentAmount(java.lang.Long paymentAmount)If the Alipay account object is not reusable, the exact amount that you can create a charge for.voidsetPaymentCurrency(java.lang.String paymentCurrency)If the Alipay account object is not reusable, the exact currency that you can create a charge for.voidsetReusable(java.lang.Boolean reusable)True if you can create multiple payments using this account.voidsetUsed(java.lang.Boolean used)Whether this Alipay account object has ever been used for a payment.voidsetUsername(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 expandablecustomerobject.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-