Class StandalonePaymentCancelRequest


  • public class StandalonePaymentCancelRequest
    extends Object
    StandalonePaymentCancelRequest
    • Constructor Detail

      • StandalonePaymentCancelRequest

        public StandalonePaymentCancelRequest()
    • Method Detail

      • applicationInfo

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

        public ApplicationInfo getApplicationInfo()
        Get applicationInfo
        Returns:
        applicationInfo
      • setApplicationInfo

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

        public StandalonePaymentCancelRequest enhancedSchemeData​(EnhancedSchemeData enhancedSchemeData)
        enhancedSchemeData
        Parameters:
        enhancedSchemeData -
        Returns:
        the current StandalonePaymentCancelRequest instance, allowing for method chaining
      • getEnhancedSchemeData

        public EnhancedSchemeData getEnhancedSchemeData()
        Get enhancedSchemeData
        Returns:
        enhancedSchemeData
      • setEnhancedSchemeData

        public void setEnhancedSchemeData​(EnhancedSchemeData enhancedSchemeData)
        enhancedSchemeData
        Parameters:
        enhancedSchemeData -
      • merchantAccount

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

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

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

        public StandalonePaymentCancelRequest paymentReference​(String paymentReference)
        The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
        Parameters:
        paymentReference - The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
        Returns:
        the current StandalonePaymentCancelRequest instance, allowing for method chaining
      • getPaymentReference

        public String getPaymentReference()
        The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
        Returns:
        paymentReference The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
      • setPaymentReference

        public void setPaymentReference​(String paymentReference)
        The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
        Parameters:
        paymentReference - The [`reference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_reference) of the payment that you want to cancel.
      • reference

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

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

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

        public StandalonePaymentCancelRequest includeNullValues​(boolean includeNullValues)
        Configures whether null values are explicitly serialized in the JSON payload. Default is false.
      • isIncludeNullValues

        public boolean isIncludeNullValues()
        Returns whether null values are explicitly serialized in the JSON payload.
      • setIncludeNullValues

        public void setIncludeNullValues​(boolean includeNullValues)
        Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
      • equals

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

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

        public Map<String,​Object> getExplicitNulls()
        Returns a map of properties to be merged into the JSON payload as explicit null values.
      • fromJson

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

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