Class Refund
- All Implemented Interfaces:
BalanceTransactionSource,HasId,MetadataStore<Refund>,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclassNested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel()Cancels a refund with a status ofrequires_action.cancel(RequestOptions options) Cancels a refund with a status ofrequires_action.cancel(RefundCancelParams params) Cancels a refund with a status ofrequires_action.cancel(RefundCancelParams params, RequestOptions options) Cancels a refund with a status ofrequires_action.Cancels a refund with a status ofrequires_action.cancel(Map<String, Object> params, RequestOptions options) Cancels a refund with a status ofrequires_action.protected booleanstatic Refundcreate(RefundCreateParams params) Create a refund.static Refundcreate(RefundCreateParams params, RequestOptions options) Create a refund.static RefundCreate a refund.static Refundcreate(Map<String, Object> params, RequestOptions options) Create a refund.booleanAmount, in %s.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.An arbitrary string attached to the object.Get ID of expandablefailureBalanceTransactionobject.Get expandedfailureBalanceTransaction.If the refund failed, the reason for refund failure if known.getId()Unique identifier for the object.Email to which refund instructions, if required, are sent to.Set of key-value pairs that you can attach to an object.String representing the object's type.Get ID of expandablepaymentIntentobject.Get expandedpaymentIntent.Reason for the refund, either user-provided (duplicate,fraudulent, orrequested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).This is the transaction number that appears on email receipts sent for this refund.Get ID of expandablesourceTransferReversalobject.Get expandedsourceTransferReversal.Status of the refund.The recipient's email address.Get ID of expandabletransferReversalobject.Get expandedtransferReversal.inthashCode()static RefundCollectionlist(RefundListParams params) Returns a list of all refunds you’ve previously created.static RefundCollectionlist(RefundListParams params, RequestOptions options) Returns a list of all refunds you’ve previously created.static RefundCollectionReturns a list of all refunds you’ve previously created.static RefundCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of all refunds you’ve previously created.static RefundRetrieves the details of an existing refund.static Refundretrieve(String refund, RequestOptions options) Retrieves the details of an existing refund.static Refundretrieve(String refund, RefundRetrieveParams params, RequestOptions options) Retrieves the details of an existing refund.static RefundRetrieves the details of an existing refund.voidAmount, in %s.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.voidsetDescription(String description) An arbitrary string attached to the object.voidvoidsetFailureBalanceTransactionObject(BalanceTransaction expandableObject) voidsetFailureReason(String failureReason) If the refund failed, the reason for refund failure if known.voidUnique identifier for the object.voidsetInstructionsEmail(String instructionsEmail) Email to which refund instructions, if required, are sent to.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetNextAction(Refund.NextAction nextAction) voidString representing the object's type.voidvoidsetPaymentIntentObject(PaymentIntent expandableObject) voidReason for the refund, either user-provided (duplicate,fraudulent, orrequested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).voidsetReceiptNumber(String receiptNumber) This is the transaction number that appears on email receipts sent for this refund.voidvoidsetSourceTransferReversalObject(TransferReversal expandableObject) voidStatus of the refund.voidvoidsetTransferReversalObject(TransferReversal expandableObject) update(RefundUpdateParams params) Updates the specified refund by setting the values of the parameters passed.update(RefundUpdateParams params, RequestOptions options) Updates the specified refund by setting the values of the parameters passed.Updates the specified refund by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified refund by setting the values of the parameters passed.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, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
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.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
Refund
public Refund()
-
-
Method Details
-
getBalanceTransaction
Get ID of expandablebalanceTransactionobject. -
setBalanceTransaction
-
getBalanceTransactionObject
Get expandedbalanceTransaction. -
setBalanceTransactionObject
-
getCharge
Get ID of expandablechargeobject. -
setCharge
-
getChargeObject
Get expandedcharge. -
setChargeObject
-
getFailureBalanceTransaction
Get ID of expandablefailureBalanceTransactionobject. -
setFailureBalanceTransaction
-
getFailureBalanceTransactionObject
Get expandedfailureBalanceTransaction. -
setFailureBalanceTransactionObject
-
getPaymentIntent
Get ID of expandablepaymentIntentobject. -
setPaymentIntent
-
getPaymentIntentObject
Get expandedpaymentIntent. -
setPaymentIntentObject
-
getSourceTransferReversal
Get ID of expandablesourceTransferReversalobject. -
setSourceTransferReversal
-
getSourceTransferReversalObject
Get expandedsourceTransferReversal. -
setSourceTransferReversalObject
-
getTransferReversal
Get ID of expandabletransferReversalobject. -
setTransferReversal
-
getTransferReversalObject
Get expandedtransferReversal. -
setTransferReversalObject
-
list
Returns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first. For convenience, the 10 most recent refunds are always available by default on the charge object.- Throws:
StripeException
-
list
public static RefundCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first. For convenience, the 10 most recent refunds are always available by default on the charge object.- Throws:
StripeException
-
list
Returns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first. For convenience, the 10 most recent refunds are always available by default on the charge object.- Throws:
StripeException
-
list
public static RefundCollection list(RefundListParams params, RequestOptions options) throws StripeException Returns a list of all refunds you’ve previously created. The refunds are returned in sorted order, with the most recent refunds appearing first. For convenience, the 10 most recent refunds are always available by default on the charge object.- Throws:
StripeException
-
create
Create a refund.- Throws:
StripeException
-
create
public static Refund create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreate a refund.- Throws:
StripeException
-
create
Create a refund.- Throws:
StripeException
-
create
public static Refund create(RefundCreateParams params, RequestOptions options) throws StripeException Create a refund.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing refund.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing refund.- Throws:
StripeException
-
retrieve
public static Refund retrieve(String refund, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing refund.- Throws:
StripeException
-
retrieve
public static Refund retrieve(String refund, RefundRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing refund.- Throws:
StripeException
-
update
Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts
metadataas an argument.- Specified by:
updatein interfaceMetadataStore<Refund>- Throws:
StripeException
-
update
Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts
metadataas an argument.- Specified by:
updatein interfaceMetadataStore<Refund>- Throws:
StripeException
-
update
Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts
metadataas an argument.- Throws:
StripeException
-
update
Updates the specified refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.This request only accepts
metadataas an argument.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
cancel
Cancels a refund with a status ofrequires_action.Refunds in other states cannot be canceled, and only refunds for payment methods that require customer action will enter the
requires_actionstate.- Throws:
StripeException
-
getTestHelpers
The recipient's email address. -
getAmount
Amount, in %s. -
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. -
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only) -
getFailureReason
If the refund failed, the reason for refund failure if known. Possible values arelost_or_stolen_card,expired_or_canceled_card, orunknown. -
getInstructionsEmail
Email to which refund instructions, if required, are sent to. -
getNextAction
-
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
refund. -
getReason
Reason for the refund, either user-provided (duplicate,fraudulent, orrequested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).One of
duplicate,expired_uncaptured_charge,fraudulent, orrequested_by_customer. -
getReceiptNumber
This is the transaction number that appears on email receipts sent for this refund. -
getStatus
Status of the refund. For credit card refunds, this can bepending,succeeded, orfailed. For other types of refunds, it can bepending,requires_action,succeeded,failed, orcanceled. Refer to our refunds documentation for more details. -
setAmount
Amount, in %s. -
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. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. (Available on non-card refunds only) -
setFailureReason
If the refund failed, the reason for refund failure if known. Possible values arelost_or_stolen_card,expired_or_canceled_card, orunknown. -
setId
Unique identifier for the object. -
setInstructionsEmail
Email to which refund instructions, if required, are sent to. -
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. -
setNextAction
-
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
refund. -
setReason
Reason for the refund, either user-provided (duplicate,fraudulent, orrequested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).One of
duplicate,expired_uncaptured_charge,fraudulent, orrequested_by_customer. -
setReceiptNumber
This is the transaction number that appears on email receipts sent for this refund. -
setStatus
Status of the refund. For credit card refunds, this can bepending,succeeded, orfailed. For other types of refunds, it can bepending,requires_action,succeeded,failed, orcanceled. Refer to our refunds documentation for more details. -
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:
getMetadatain interfaceMetadataStore<Refund>
-