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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetAccount()Get ID of expandableaccountobject.AccountgetAccountObject()Get expandedaccount.java.lang.LonggetAmount()Amount earned, in %s.java.lang.LonggetAmountRefunded()Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued).java.lang.StringgetApplication()Get ID of expandableapplicationobject.ApplicationgetApplicationObject()Get expandedapplication.java.lang.StringgetBalanceTransaction()Get ID of expandablebalanceTransactionobject.BalanceTransactiongetBalanceTransactionObject()Get expandedbalanceTransaction.java.lang.StringgetCharge()Get ID of expandablechargeobject.ChargegetChargeObject()Get expandedcharge.java.lang.LonggetCreated()Time at which the object was created.java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.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.lang.StringgetObject()String representing the object's type.java.lang.StringgetOriginatingTransaction()Get ID of expandableoriginatingTransactionobject.ChargegetOriginatingTransactionObject()Get expandedoriginatingTransaction.java.lang.BooleangetRefunded()Whether the fee has been fully refunded.FeeRefundCollectiongetRefunds()A list of refunds that have been applied to the fee.inthashCode()static ApplicationFeeCollectionlist(ApplicationFeeListParams params)Returns a list of application fees you’ve previously collected.static ApplicationFeeCollectionlist(ApplicationFeeListParams params, RequestOptions options)Returns a list of application fees you’ve previously collected.static ApplicationFeeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params)Returns a list of application fees you’ve previously collected.static ApplicationFeeCollectionlist(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)Returns a list of application fees you’ve previously collected.static ApplicationFeeretrieve(java.lang.String id)Retrieves the details of an application fee that your account has collected.static ApplicationFeeretrieve(java.lang.String id, RequestOptions options)Retrieves the details of an application fee that your account has collected.static ApplicationFeeretrieve(java.lang.String id, ApplicationFeeRetrieveParams params, RequestOptions options)Retrieves the details of an application fee that your account has collected.static ApplicationFeeretrieve(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.voidsetAccount(java.lang.String id)voidsetAccountObject(Account expandableObject)voidsetAmount(java.lang.Long amount)Amount earned, in %s.voidsetAmountRefunded(java.lang.Long amountRefunded)Amount in %s refunded (can be less than the amount attribute on the fee if a partial refund was issued).voidsetApplication(java.lang.String id)voidsetApplicationObject(Application expandableObject)voidsetBalanceTransaction(java.lang.String id)voidsetBalanceTransactionObject(BalanceTransaction expandableObject)voidsetCharge(java.lang.String id)voidsetChargeObject(Charge expandableObject)voidsetCreated(java.lang.Long created)Time at which the object was created.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.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.voidsetObject(java.lang.String object)String representing the object's type.voidsetOriginatingTransaction(java.lang.String id)voidsetOriginatingTransactionObject(Charge expandableObject)voidsetRefunded(java.lang.Boolean refunded)Whether the fee has been fully refunded.voidsetRefunds(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, 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 expandableaccountobject.
-
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 expandableapplicationobject.
-
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 expandablebalanceTransactionobject.
-
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 expandablechargeobject.
-
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 expandableoriginatingTransactionobject.
-
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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-