public class ApplicationFee extends ApiResource implements BalanceTransactionSource
ApiResource.RequestMethod
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
ApplicationFee() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAccount()
Get ID of expandable
account object. |
Account |
getAccountObject()
Get expanded
account . |
java.lang.Long |
getAmount()
Amount earned, in %s.
|
java.lang.Long |
getAmountRefunded()
Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was
issued).
|
java.lang.String |
getApplication()
Get ID of expandable
application object. |
Application |
getApplicationObject()
Get expanded
application . |
java.lang.String |
getBalanceTransaction()
Get ID of expandable
balanceTransaction object. |
BalanceTransaction |
getBalanceTransactionObject()
Get expanded
balanceTransaction . |
java.lang.String |
getCharge()
Get ID of expandable
charge object. |
Charge |
getChargeObject()
Get expanded
charge . |
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter ISO currency code,
in lowercase.
|
java.lang.String |
getId()
Unique identifier for the object.
|
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.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getOriginatingTransaction()
Get ID of expandable
originatingTransaction object. |
Charge |
getOriginatingTransactionObject()
Get expanded
originatingTransaction . |
java.lang.Boolean |
getRefunded()
Whether the fee has been fully refunded.
|
FeeRefundCollection |
getRefunds()
A list of refunds that have been applied to the fee.
|
int |
hashCode() |
static ApplicationFeeCollection |
list(ApplicationFeeListParams params)
Returns a list of application fees you’ve previously collected.
|
static ApplicationFeeCollection |
list(ApplicationFeeListParams params,
RequestOptions options)
Returns a list of application fees you’ve previously collected.
|
static ApplicationFeeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of application fees you’ve previously collected.
|
static ApplicationFeeCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of application fees you’ve previously collected.
|
static ApplicationFee |
retrieve(java.lang.String id)
Retrieves the details of an application fee that your account has collected.
|
static ApplicationFee |
retrieve(java.lang.String id,
ApplicationFeeRetrieveParams params,
RequestOptions options)
Retrieves the details of an application fee that your account has collected.
|
static ApplicationFee |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an application fee that your account has collected.
|
static ApplicationFee |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the details of an application fee that your account has collected.
|
void |
setAccount(java.lang.String id) |
void |
setAccountObject(Account expandableObject) |
void |
setAmount(java.lang.Long amount)
Amount earned, in %s.
|
void |
setAmountRefunded(java.lang.Long amountRefunded)
Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was
issued).
|
void |
setApplication(java.lang.String id) |
void |
setApplicationObject(Application expandableObject) |
void |
setBalanceTransaction(java.lang.String id) |
void |
setBalanceTransactionObject(BalanceTransaction expandableObject) |
void |
setCharge(java.lang.String id) |
void |
setChargeObject(Charge expandableObject) |
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter ISO currency code,
in lowercase.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
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 |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setOriginatingTransaction(java.lang.String id) |
void |
setOriginatingTransactionObject(Charge expandableObject) |
void |
setRefunded(java.lang.Boolean refunded)
Whether the fee has been fully refunded.
|
void |
setRefunds(FeeRefundCollection refunds)
A list of refunds that have been applied to the fee.
|
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 java.lang.String getAccount()
account
object.public void setAccount(java.lang.String id)
public Account getAccountObject()
account
.public void setAccountObject(Account expandableObject)
public java.lang.String getApplication()
application
object.public void setApplication(java.lang.String id)
public Application getApplicationObject()
application
.public void setApplicationObject(Application expandableObject)
public java.lang.String getBalanceTransaction()
balanceTransaction
object.public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
balanceTransaction
.public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getCharge()
charge
object.public void setCharge(java.lang.String id)
public Charge getChargeObject()
charge
.public void setChargeObject(Charge expandableObject)
public java.lang.String getOriginatingTransaction()
originatingTransaction
object.public void setOriginatingTransaction(java.lang.String id)
public Charge getOriginatingTransactionObject()
originatingTransaction
.public void setOriginatingTransactionObject(Charge expandableObject)
public static ApplicationFeeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static ApplicationFeeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static ApplicationFeeCollection list(ApplicationFeeListParams params) throws StripeException
StripeException
public static ApplicationFeeCollection list(ApplicationFeeListParams params, RequestOptions options) throws StripeException
StripeException
public static ApplicationFee retrieve(java.lang.String id) throws StripeException
StripeException
public static ApplicationFee retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static ApplicationFee retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static ApplicationFee retrieve(java.lang.String id, ApplicationFeeRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.Long getAmount()
public java.lang.Long getAmountRefunded()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
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.lang.String getObject()
Equal to application_fee
.
public java.lang.Boolean getRefunded()
public FeeRefundCollection getRefunds()
public void setAmount(java.lang.Long amount)
public void setAmountRefunded(java.lang.Long amountRefunded)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setId(java.lang.String id)
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 setObject(java.lang.String object)
Equal to application_fee
.
public void setRefunded(java.lang.Boolean refunded)
public void setRefunds(FeeRefundCollection refunds)
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