Class PaymentAmountUpdateRequest


  • public class PaymentAmountUpdateRequest
    extends Object
    PaymentAmountUpdateRequest
    • Constructor Detail

      • PaymentAmountUpdateRequest

        public PaymentAmountUpdateRequest()
    • Method Detail

      • amount

        public PaymentAmountUpdateRequest amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • applicationInfo

        public PaymentAmountUpdateRequest applicationInfo​(ApplicationInfo applicationInfo)
        applicationInfo
        Parameters:
        applicationInfo -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • getApplicationInfo

        public ApplicationInfo getApplicationInfo()
        applicationInfo
        Returns:
        applicationInfo
      • setApplicationInfo

        public void setApplicationInfo​(ApplicationInfo applicationInfo)
        applicationInfo
        Parameters:
        applicationInfo -
      • setIndustryUsage

        public void setIndustryUsage​(PaymentAmountUpdateRequest.IndustryUsageEnum industryUsage)
        The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment**
        Parameters:
        industryUsage -
      • lineItems

        public PaymentAmountUpdateRequest lineItems​(List<LineItem> lineItems)
        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.
        Parameters:
        lineItems -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • 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)
        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.
        Parameters:
        lineItems -
      • merchantAccount

        public PaymentAmountUpdateRequest merchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • getMerchantAccount

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

        public void setMerchantAccount​(String merchantAccount)
        The merchant account that is used to process the payment.
        Parameters:
        merchantAccount -
      • reference

        public PaymentAmountUpdateRequest reference​(String reference)
        Your reference for the amount update request. Maximum length: 80 characters.
        Parameters:
        reference -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • getReference

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

        public void setReference​(String reference)
        Your reference for the amount update request. Maximum length: 80 characters.
        Parameters:
        reference -
      • splits

        public PaymentAmountUpdateRequest splits​(List<Split> splits)
        An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments).
        Parameters:
        splits -
        Returns:
        the current PaymentAmountUpdateRequest instance, allowing for method chaining
      • getSplits

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

        public void setSplits​(List<Split> splits)
        An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For more information, see how to process payments for [marketplaces](https://docs.adyen.com/marketplaces/process-payments) or [platforms](https://docs.adyen.com/platforms/process-payments).
        Parameters:
        splits -
      • equals

        public boolean equals​(Object o)
        Return true if this PaymentAmountUpdateRequest object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

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

        public static PaymentAmountUpdateRequest fromJson​(String jsonString)
                                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of PaymentAmountUpdateRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of PaymentAmountUpdateRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to PaymentAmountUpdateRequest
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of PaymentAmountUpdateRequest to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException