public class ApplicationFee extends ApiResource implements BalanceTransactionSource
ApiResource.RequestMethod, ApiResource.RequestType
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](https://www.iso.org/iso-4217-currency-codes.html), 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](https://www.iso.org/iso-4217-currency-codes.html), 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, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getAccount()
public void setAccount(java.lang.String id)
public Account getAccountObject()
public void setAccountObject(Account expandableObject)
public java.lang.String getApplication()
public void setApplication(java.lang.String id)
public Application getApplicationObject()
public void setApplicationObject(Application expandableObject)
public java.lang.String getBalanceTransaction()
public void setBalanceTransaction(java.lang.String id)
public BalanceTransaction getBalanceTransactionObject()
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
public java.lang.String getCharge()
public void setCharge(java.lang.String id)
public Charge getChargeObject()
public void setChargeObject(Charge expandableObject)
public java.lang.String getOriginatingTransaction()
public void setOriginatingTransaction(java.lang.String id)
public Charge getOriginatingTransactionObject()
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()
public java.lang.String getObject()
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)
public void setObject(java.lang.String object)
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