Package com.stripe.model
Class ApplicationFee
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.ApplicationFee
-
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,StripeObjectInterface
public class ApplicationFee extends ApiResource implements BalanceTransactionSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description ApplicationFee()
-
Method Summary
All Methods Static 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.String
getAccount()
Get ID of expandableaccount
object.Account
getAccountObject()
Get expandedaccount
.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 expandableapplication
object.Application
getApplicationObject()
Get expandedapplication
.java.lang.String
getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.BalanceTransaction
getBalanceTransactionObject()
Get expandedbalanceTransaction
.java.lang.String
getCharge()
Get ID of expandablecharge
object.Charge
getChargeObject()
Get expandedcharge
.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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.java.lang.String
getOriginatingTransaction()
Get ID of expandableoriginatingTransaction
object.Charge
getOriginatingTransactionObject()
Get expandedoriginatingTransaction
.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, RequestOptions options)
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.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 valuetrue
if the object exists in live mode or the valuefalse
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.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
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
-
getAccount
public java.lang.String getAccount()
Get ID of expandableaccount
object.
-
setAccount
public void setAccount(java.lang.String id)
-
getAccountObject
public Account getAccountObject()
Get expandedaccount
.
-
setAccountObject
public void setAccountObject(Account expandableObject)
-
getApplication
public java.lang.String getApplication()
Get ID of expandableapplication
object.
-
setApplication
public void setApplication(java.lang.String id)
-
getApplicationObject
public Application getApplicationObject()
Get expandedapplication
.
-
setApplicationObject
public void setApplicationObject(Application expandableObject)
-
getBalanceTransaction
public java.lang.String getBalanceTransaction()
Get ID of expandablebalanceTransaction
object.
-
setBalanceTransaction
public void setBalanceTransaction(java.lang.String id)
-
getBalanceTransactionObject
public BalanceTransaction getBalanceTransactionObject()
Get expandedbalanceTransaction
.
-
setBalanceTransactionObject
public void setBalanceTransactionObject(BalanceTransaction expandableObject)
-
getCharge
public java.lang.String getCharge()
Get ID of expandablecharge
object.
-
setCharge
public void setCharge(java.lang.String id)
-
getChargeObject
public Charge getChargeObject()
Get expandedcharge
.
-
setChargeObject
public void setChargeObject(Charge expandableObject)
-
getOriginatingTransaction
public java.lang.String getOriginatingTransaction()
Get ID of expandableoriginatingTransaction
object.
-
setOriginatingTransaction
public void setOriginatingTransaction(java.lang.String id)
-
getOriginatingTransactionObject
public Charge getOriginatingTransactionObject()
Get expandedoriginatingTransaction
.
-
setOriginatingTransactionObject
public void setOriginatingTransactionObject(Charge expandableObject)
-
list
public static ApplicationFeeCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.- Throws:
StripeException
-
list
public static ApplicationFeeCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.- Throws:
StripeException
-
list
public static ApplicationFeeCollection list(ApplicationFeeListParams params) throws StripeException
Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.- Throws:
StripeException
-
list
public static ApplicationFeeCollection list(ApplicationFeeListParams params, RequestOptions options) throws StripeException
Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.- Throws:
StripeException
-
retrieve
public static ApplicationFee retrieve(java.lang.String id) throws StripeException
Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.- Throws:
StripeException
-
retrieve
public static ApplicationFee retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.- Throws:
StripeException
-
retrieve
public static ApplicationFee retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.- Throws:
StripeException
-
retrieve
public static ApplicationFee retrieve(java.lang.String id, ApplicationFeeRetrieveParams params, RequestOptions options) throws StripeException
Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.- Throws:
StripeException
-
getAmount
public java.lang.Long getAmount()
Amount earned, in %s.
-
getAmountRefunded
public java.lang.Long getAmountRefunded()
Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued).
-
getCreated
public java.lang.Long getCreated()
Time at which the object was created. Measured in seconds since the Unix epoch.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
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.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
application_fee
.
-
getRefunded
public java.lang.Boolean getRefunded()
Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
-
getRefunds
public FeeRefundCollection getRefunds()
A list of refunds that have been applied to the fee.
-
setAmount
public void setAmount(java.lang.Long amount)
Amount earned, in %s.
-
setAmountRefunded
public 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).
-
setCreated
public void setCreated(java.lang.Long created)
Time at which the object was created. Measured in seconds since the Unix epoch.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
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.
-
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
application_fee
.
-
setRefunded
public void setRefunded(java.lang.Boolean refunded)
Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
-
setRefunds
public void setRefunds(FeeRefundCollection refunds)
A list of refunds that have been applied to the fee.
-
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
-
-