Package io.trippay.sdk.payment.model
Class Refund
java.lang.Object
io.trippay.sdk.payment.model.Refund
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-16T13:59:19.530948343+07:00[Asia/Bangkok]")
public class Refund
extends Object
Refund objects allow you to refund a charge that has previously been created but not yet refunded. Funds will be refunded to the credit or debit card that was originally charged.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of refund determines how the funds are deducted each beneficiary.static enumWhether to cancel the booking alongside requesting a refund.static enumA description of the refund that can be displayed to bookerstatic enumStatus of the refund requeststatic enumThe entity making the refund requeststatic enumStatus of the refund -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacquirerRefundIdentifier(String acquirerRefundIdentifier) allocation(Refund.AllocationEnum allocation) cancelOnRefund(Refund.CancelOnRefundEnum cancelOnRefund) created(LocalDateTime created) description(String description) booleanThe acquirer refund identifier.The type of refund determines how the funds are deducted each beneficiary.@NotNull Refund.CancelOnRefundEnumWhether to cancel the booking alongside requesting a refund.When the amount was refunded@NotNull StringA description of the refund that can be displayed to booker@NotNull StringA unique identifier@NotNull Refund.ReasonTypeEnumA description of the refund that can be displayed to bookerThis is the receipt url that contains a friendly web confirmation page.@NotNull @Valid CustomMonetaryAmountGet refundThe SSO person / entity that requested the refund.@NotNull StringAdmin may choose to respond to the refund request made by the hotel@NotNull Refund.RequestStatusEnumStatus of the refund request@NotNull Refund.RequestTypeEnumThe entity making the refund requestIn case a TripPay admin has to go in and re-send the refund request to Stripe, we want to not to the same calculations again when a retry is executed so we keep track of retries here.@NotNull Refund.StatusTypeEnumStatus of the refundinthashCode()identifier(String identifier) reasonType(Refund.ReasonTypeEnum reasonType) receiptUrl(String receiptUrl) refund(CustomMonetaryAmount refund) requestedByIdentifier(String requestedByIdentifier) requestResponse(String requestResponse) requestStatus(Refund.RequestStatusEnum requestStatus) requestType(Refund.RequestTypeEnum requestType) voidsetAcquirerRefundIdentifier(String acquirerRefundIdentifier) voidsetAllocation(Refund.AllocationEnum allocation) voidsetCancelOnRefund(Refund.CancelOnRefundEnum cancelOnRefund) voidsetCreated(LocalDateTime created) voidsetDescription(String description) voidsetIdentifier(String identifier) voidsetReasonType(Refund.ReasonTypeEnum reasonType) voidsetReceiptUrl(String receiptUrl) voidsetRefund(CustomMonetaryAmount refund) voidsetRequestedByIdentifier(String requestedByIdentifier) voidsetRequestResponse(String requestResponse) voidsetRequestStatus(Refund.RequestStatusEnum requestStatus) voidsetRequestType(Refund.RequestTypeEnum requestType) voidsetRetries(Integer retries) voidsetStatusType(Refund.StatusTypeEnum statusType) statusType(Refund.StatusTypeEnum statusType) toString()
-
Field Details
-
JSON_PROPERTY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_ACQUIRER_REFUND_IDENTIFIER
- See Also:
-
JSON_PROPERTY_REQUESTED_BY_IDENTIFIER
- See Also:
-
JSON_PROPERTY_REFUND
- See Also:
-
JSON_PROPERTY_CREATED
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_REASON_TYPE
- See Also:
-
JSON_PROPERTY_CANCEL_ON_REFUND
- See Also:
-
JSON_PROPERTY_STATUS_TYPE
- See Also:
-
JSON_PROPERTY_REQUEST_TYPE
- See Also:
-
JSON_PROPERTY_REQUEST_STATUS
- See Also:
-
JSON_PROPERTY_REQUEST_RESPONSE
- See Also:
-
JSON_PROPERTY_RECEIPT_URL
- See Also:
-
JSON_PROPERTY_RETRIES
- See Also:
-
JSON_PROPERTY_ALLOCATION
- See Also:
-
-
Constructor Details
-
Refund
public Refund()
-
-
Method Details
-
identifier
-
getIdentifier
A unique identifier- Returns:
- identifier
-
setIdentifier
-
acquirerRefundIdentifier
-
getAcquirerRefundIdentifier
The acquirer refund identifier. Will get attached once it comes in on the webhook.- Returns:
- acquirerRefundIdentifier
-
setAcquirerRefundIdentifier
-
requestedByIdentifier
-
getRequestedByIdentifier
The SSO person / entity that requested the refund.- Returns:
- requestedByIdentifier
-
setRequestedByIdentifier
-
refund
-
getRefund
Get refund- Returns:
- refund
-
setRefund
-
created
-
getCreated
When the amount was refunded- Returns:
- created
-
setCreated
-
description
-
getDescription
A description of the refund that can be displayed to booker- Returns:
- description
-
setDescription
-
reasonType
-
getReasonType
A description of the refund that can be displayed to booker- Returns:
- reasonType
-
setReasonType
-
cancelOnRefund
-
getCancelOnRefund
Whether to cancel the booking alongside requesting a refund.- Returns:
- cancelOnRefund
-
setCancelOnRefund
-
statusType
-
getStatusType
Status of the refund- Returns:
- statusType
-
setStatusType
-
requestType
-
getRequestType
The entity making the refund request- Returns:
- requestType
-
setRequestType
-
requestStatus
-
getRequestStatus
Status of the refund request- Returns:
- requestStatus
-
setRequestStatus
-
requestResponse
-
getRequestResponse
Admin may choose to respond to the refund request made by the hotel- Returns:
- requestResponse
-
setRequestResponse
-
receiptUrl
-
getReceiptUrl
This is the receipt url that contains a friendly web confirmation page. Comes in on the webhook.- Returns:
- receiptUrl
-
setReceiptUrl
-
retries
-
getRetries
In case a TripPay admin has to go in and re-send the refund request to Stripe, we want to not to the same calculations again when a retry is executed so we keep track of retries here.- Returns:
- retries
-
setRetries
-
allocation
-
getAllocation
The type of refund determines how the funds are deducted each beneficiary.- Returns:
- allocation
-
setAllocation
-
equals
-
hashCode
public int hashCode() -
toString
-