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 classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Get ID of expandableaccount
object.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 expandableapplication
object.Get expandedapplication
.Get ID of expandablebalanceTransaction
object.Get expandedbalanceTransaction
.Get ID of expandablecharge
object.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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Get ID of expandableoriginatingTransaction
object.Get expandedoriginatingTransaction
.Whether the fee has been fully refunded.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
Returns a list of application fees you’ve previously collected.static ApplicationFeeCollection
list
(Map<String, Object> params, RequestOptions options) Returns a list of application fees you’ve previously collected.static ApplicationFee
Retrieves the details of an application fee that your account has collected.static ApplicationFee
retrieve
(String id, RequestOptions options) Retrieves the details of an application fee that your account has collected.static ApplicationFee
retrieve
(String id, ApplicationFeeRetrieveParams params, RequestOptions options) Retrieves the details of an application fee that your account has collected.static ApplicationFee
Retrieves the details of an application fee that your account has collected.void
setAccount
(String id) void
setAccountObject
(Account expandableObject) void
Amount earned, in cents (or local equivalent).void
setAmountRefunded
(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).void
setApplication
(String id) void
setApplicationObject
(Application expandableObject) void
void
setBalanceTransactionObject
(BalanceTransaction expandableObject) void
void
setChargeObject
(Charge expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setFeeSource
(ApplicationFee.FeeSource feeSource) Polymorphic source of the application fee.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
void
setOriginatingTransactionObject
(Charge expandableObject) void
setRefunded
(Boolean refunded) Whether the fee has been fully refunded.void
setRefunds
(FeeRefundCollection refunds) A list of refunds that have been applied to the fee.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, 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.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
ApplicationFee
public ApplicationFee()
-
-
Method Details
-
getAccount
Get ID of expandableaccount
object. -
setAccount
-
getAccountObject
Get expandedaccount
. -
setAccountObject
-
getApplication
Get ID of expandableapplication
object. -
setApplication
-
getApplicationObject
Get expandedapplication
. -
setApplicationObject
-
getBalanceTransaction
Get ID of expandablebalanceTransaction
object. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction
. -
setBalanceTransactionObject
-
getCharge
Get ID of expandablecharge
object. -
setCharge
-
getChargeObject
Get expandedcharge
. -
setChargeObject
-
getOriginatingTransaction
Get ID of expandableoriginatingTransaction
object. -
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:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-