Class CreatePaymentRefundRequest


  • public class CreatePaymentRefundRequest
    extends Object
    CreatePaymentRefundRequest
    • Constructor Detail

      • CreatePaymentRefundRequest

        public CreatePaymentRefundRequest()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • getLineItems

        public List<LineItem> getLineItems()
        Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip.
        Returns:
        lineItems
      • setLineItems

        public void setLineItems​(List<LineItem> lineItems)
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account that is used to process the payment.
        Returns:
        merchantAccount
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
      • getReference

        public String getReference()
        Your reference for the refund request. Maximum length: 80 characters.
        Returns:
        reference
      • setReference

        public void setReference​(String reference)
      • getSplits

        public List<Split> getSplits()
        An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
        Returns:
        splits
      • setSplits

        public void setSplits​(List<Split> splits)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to CreatePaymentRefundRequest
      • fromJson

        public static CreatePaymentRefundRequest fromJson​(String jsonString)
                                                   throws IOException
        Create an instance of CreatePaymentRefundRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreatePaymentRefundRequest
        Throws:
        IOException - if the JSON string is invalid with respect to CreatePaymentRefundRequest
      • toJson

        public String toJson()
        Convert an instance of CreatePaymentRefundRequest to an JSON string
        Returns:
        JSON string