Class RefundBooker

java.lang.Object
travel.wink.sdk.booking.model.RefundBooker

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-06-26T20:16:53.154776164+07:00[Asia/Bangkok]", comments="Generator version: 7.13.0") public class RefundBooker 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.
  • Field Details

  • Constructor Details

    • RefundBooker

      public RefundBooker()
  • Method Details

    • identifier

      public RefundBooker identifier(@Nonnull String identifier)
    • getIdentifier

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getIdentifier()
      A unique identifier
      Returns:
      identifier
    • setIdentifier

      public void setIdentifier(@Nonnull String identifier)
    • acquirerRefundIdentifier

      public RefundBooker acquirerRefundIdentifier(@Nullable String acquirerRefundIdentifier)
    • getAcquirerRefundIdentifier

      @Nullable public String getAcquirerRefundIdentifier()
      The acquirer refund identifier. Will get attached once it comes in on the webhook.
      Returns:
      acquirerRefundIdentifier
    • setAcquirerRefundIdentifier

      public void setAcquirerRefundIdentifier(@Nullable String acquirerRefundIdentifier)
    • requestedByIdentifier

      public RefundBooker requestedByIdentifier(@Nullable String requestedByIdentifier)
    • getRequestedByIdentifier

      @Nullable public String getRequestedByIdentifier()
      The SSO person / entity that requested the refund.
      Returns:
      requestedByIdentifier
    • setRequestedByIdentifier

      public void setRequestedByIdentifier(@Nullable String requestedByIdentifier)
    • refund

      public RefundBooker refund(@Nonnull CustomMonetaryAmount refund)
    • getRefund

      @Nonnull @NotNull @Valid public @NotNull @Valid CustomMonetaryAmount getRefund()
      The amount refunded
      Returns:
      refund
    • setRefund

      public void setRefund(@Nonnull CustomMonetaryAmount refund)
    • created

      public RefundBooker created(@Nonnull LocalDateTime created)
    • getCreated

      @Nonnull @NotNull @Valid public LocalDateTime getCreated()
      When the amount was refunded
      Returns:
      created
    • setCreated

      public void setCreated(@Nonnull LocalDateTime created)
    • description

      public RefundBooker description(@Nonnull String description)
    • getDescription

      @Nonnull @NotNull @Size(min=1) public @NotNull @Size(min=1) String getDescription()
      A description of the refund that can be displayed to booker
      Returns:
      description
    • setDescription

      public void setDescription(@Nonnull String description)
    • reasonType

      public RefundBooker reasonType(@Nonnull RefundBooker.ReasonTypeEnum reasonType)
    • getReasonType

      @Nonnull @NotNull public @NotNull RefundBooker.ReasonTypeEnum getReasonType()
      A description of the refund that can be displayed to booker
      Returns:
      reasonType
    • setReasonType

      public void setReasonType(@Nonnull RefundBooker.ReasonTypeEnum reasonType)
    • cancelOnRefund

      public RefundBooker cancelOnRefund(@Nonnull RefundBooker.CancelOnRefundEnum cancelOnRefund)
    • getCancelOnRefund

      @Nonnull @NotNull public @NotNull RefundBooker.CancelOnRefundEnum getCancelOnRefund()
      Whether to cancel the booking alongside requesting a refund.
      Returns:
      cancelOnRefund
    • setCancelOnRefund

      public void setCancelOnRefund(@Nonnull RefundBooker.CancelOnRefundEnum cancelOnRefund)
    • statusType

      public RefundBooker statusType(@Nonnull RefundBooker.StatusTypeEnum statusType)
    • getStatusType

      @Nonnull @NotNull public @NotNull RefundBooker.StatusTypeEnum getStatusType()
      Status of the refund
      Returns:
      statusType
    • setStatusType

      public void setStatusType(@Nonnull RefundBooker.StatusTypeEnum statusType)
    • requestType

      public RefundBooker requestType(@Nonnull RefundBooker.RequestTypeEnum requestType)
    • getRequestType

      @Nonnull @NotNull public @NotNull RefundBooker.RequestTypeEnum getRequestType()
      The entity making the refund request
      Returns:
      requestType
    • setRequestType

      public void setRequestType(@Nonnull RefundBooker.RequestTypeEnum requestType)
    • requestStatus

      public RefundBooker requestStatus(@Nonnull RefundBooker.RequestStatusEnum requestStatus)
    • getRequestStatus

      @Nonnull @NotNull public @NotNull RefundBooker.RequestStatusEnum getRequestStatus()
      Status of the refund request
      Returns:
      requestStatus
    • setRequestStatus

      public void setRequestStatus(@Nonnull RefundBooker.RequestStatusEnum requestStatus)
    • requestResponse

      public RefundBooker requestResponse(@Nonnull String requestResponse)
    • getRequestResponse

      @Nonnull @NotNull public @NotNull String getRequestResponse()
      Admin may choose to respond to the refund request made by the hotel
      Returns:
      requestResponse
    • setRequestResponse

      public void setRequestResponse(@Nonnull String requestResponse)
    • receiptUrl

      public RefundBooker receiptUrl(@Nullable String receiptUrl)
    • getReceiptUrl

      @Nullable public String getReceiptUrl()
      This is the receipt url that contains a friendly web confirmation page. Comes in on the webhook.
      Returns:
      receiptUrl
    • setReceiptUrl

      public void setReceiptUrl(@Nullable String receiptUrl)
    • retries

      public RefundBooker retries(@Nullable Integer retries)
    • getRetries

      @Nullable public Integer 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

      public void setRetries(@Nullable Integer retries)
    • allocation

      public RefundBooker allocation(@Nullable RefundBooker.AllocationEnum allocation)
    • getAllocation

      @Nullable public RefundBooker.AllocationEnum getAllocation()
      The type of refund determines how the funds are deducted each beneficiary.
      Returns:
      allocation
    • setAllocation

      public void setAllocation(@Nullable RefundBooker.AllocationEnum allocation)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object