Package com.stripe.model
Class FeeRefund
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.FeeRefund
- All Implemented Interfaces:
BalanceTransactionSource
,HasId
,MetadataStore<FeeRefund>
,StripeActiveObject
,StripeObjectInterface
public class FeeRefund
extends ApiResource
implements MetadataStore<FeeRefund>, BalanceTransactionSource
Application Fee Refund
objects allow you to refund an application fee that has previously
been created but not yet refunded. Funds will be refunded to the Stripe account from which the
fee was originally collected.
Related guide: Refunding application fees
-
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
Amount, in cents (or local equivalent).Get ID of expandablebalanceTransaction
object.Get expandedbalanceTransaction
.Time at which the object was created.Three-letter ISO currency code, in lowercase.getFee()
Get ID of expandablefee
object.Get expandedfee
.getId()
Unique identifier for the object.Set of key-value pairs that you can attach to an object.String representing the object's type.int
hashCode()
void
Amount, in cents (or local equivalent).void
void
setBalanceTransactionObject
(BalanceTransaction expandableObject) void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
void
setFeeObject
(ApplicationFee expandableObject) void
Unique identifier for the object.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.update
(FeeRefundUpdateParams params) Updates the specified application fee refund by setting the values of the parameters passed.update
(FeeRefundUpdateParams params, RequestOptions options) Updates the specified application fee refund by setting the values of the parameters passed.Updates the specified application fee refund by setting the values of the parameters passed.update
(Map<String, Object> params, RequestOptions options) Updates the specified application fee refund by setting the values of the parameters passed.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
-
FeeRefund
public FeeRefund()
-
-
Method Details
-
getBalanceTransaction
Get ID of expandablebalanceTransaction
object. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction
. -
setBalanceTransactionObject
-
getFee
Get ID of expandablefee
object. -
setFee
-
getFeeObject
Get expandedfee
. -
setFeeObject
-
update
Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata as an argument.
- Specified by:
update
in interfaceMetadataStore<FeeRefund>
- Throws:
StripeException
-
update
Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata as an argument.
- Specified by:
update
in interfaceMetadataStore<FeeRefund>
- Throws:
StripeException
-
update
Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata as an argument.
- Throws:
StripeException
-
update
public FeeRefund update(FeeRefundUpdateParams params, RequestOptions options) throws StripeException Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts metadata as an argument.
- 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, in cents (or local equivalent). -
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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
fee_refund
. -
setAmount
Amount, in cents (or local equivalent). -
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. -
setId
Unique identifier for the object. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
fee_refund
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadata
in interfaceMetadataStore<FeeRefund>
-