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,StripeActiveObject,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about FeeSource, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanGet ID of expandableaccountobject.Get expandedaccount.Amount earned, in cents (or local equivalent).Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued).Get ID of expandableapplicationobject.Get expandedapplication.Get ID of expandablebalanceTransactionobject.Get expandedbalanceTransaction.Get ID of expandablechargeobject.Get expandedcharge.Time at which the object was created.Three-letter ISO currency code, in lowercase.Polymorphic source of the application fee.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Get ID of expandableoriginatingTransactionobject.Get expandedoriginatingTransaction.Whether the fee has been fully refunded.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 ApplicationFeeCollectionReturns a list of application fees you’ve previously collected.static ApplicationFeeCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of application fees you’ve previously collected.static ApplicationFeeRetrieves the details of an application fee that your account has collected.static ApplicationFeeretrieve(String id, RequestOptions options) Retrieves the details of an application fee that your account has collected.static ApplicationFeeretrieve(String id, ApplicationFeeRetrieveParams params, RequestOptions options) Retrieves the details of an application fee that your account has collected.static ApplicationFeeRetrieves the details of an application fee that your account has collected.voidsetAccount(String id) voidsetAccountObject(Account expandableObject) voidAmount earned, in cents (or local equivalent).voidsetAmountRefunded(Long amountRefunded) Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued).voidsetApplication(String id) voidsetApplicationObject(Application expandableObject) voidvoidsetBalanceTransactionObject(BalanceTransaction expandableObject) voidvoidsetChargeObject(Charge expandableObject) voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetFeeSource(ApplicationFee.FeeSource feeSource) Polymorphic source of the application fee.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidvoidsetOriginatingTransactionObject(Charge expandableObject) voidsetRefunded(Boolean refunded) Whether the fee has been fully refunded.voidsetRefunds(FeeRefundCollection refunds) A list of refunds that have been applied to the fee.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetterMethods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
ApplicationFee
public ApplicationFee()
-
-
Method Details
-
getAccount
Get ID of expandableaccountobject. -
setAccount
-
getAccountObject
Get expandedaccount. -
setAccountObject
-
getApplication
Get ID of expandableapplicationobject. -
setApplication
-
getApplicationObject
Get expandedapplication. -
setApplicationObject
-
getBalanceTransaction
Get ID of expandablebalanceTransactionobject. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction. -
setBalanceTransactionObject
-
getCharge
Get ID of expandablechargeobject. -
setCharge
-
getChargeObject
Get expandedcharge. -
setChargeObject
-
getOriginatingTransaction
Get ID of expandableoriginatingTransactionobject. -
setOriginatingTransaction
-
getOriginatingTransactionObject
Get expandedoriginatingTransaction. -
setOriginatingTransactionObject
-
list
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(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns 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
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
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
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(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves 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(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
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAmount
Amount earned, in cents (or local equivalent). -
getAmountRefunded
Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued). -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getFeeSource
Polymorphic source of the application fee. Includes the ID of the object the application fee was created from. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
application_fee. -
getRefunded
Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false. -
getRefunds
A list of refunds that have been applied to the fee. -
setAmount
Amount earned, in cents (or local equivalent). -
setAmountRefunded
Amount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued). -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setFeeSource
Polymorphic source of the application fee. Includes the ID of the object the application fee was created from. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
application_fee. -
setRefunded
Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false. -
setRefunds
A list of refunds that have been applied to the fee. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-