Class DisableRequest


  • public class DisableRequest
    extends Object
    DisableRequest
    • Constructor Detail

      • DisableRequest

        public DisableRequest()
    • Method Detail

      • contract

        public DisableRequest contract​(String contract)
        Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
        Parameters:
        contract - Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
        Returns:
        the current DisableRequest instance, allowing for method chaining
      • getContract

        public String getContract()
        Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
        Returns:
        contract Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
      • setContract

        public void setContract​(String contract)
        Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
        Parameters:
        contract - Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT
      • merchantAccount

        public DisableRequest merchantAccount​(String merchantAccount)
        The merchant account identifier with which you want to process the transaction.
        Parameters:
        merchantAccount - The merchant account identifier with which you want to process the transaction.
        Returns:
        the current DisableRequest instance, allowing for method chaining
      • getMerchantAccount

        public String getMerchantAccount()
        The merchant account identifier with which you want to process the transaction.
        Returns:
        merchantAccount The merchant account identifier with which you want to process the transaction.
      • setMerchantAccount

        public void setMerchantAccount​(String merchantAccount)
        The merchant account identifier with which you want to process the transaction.
        Parameters:
        merchantAccount - The merchant account identifier with which you want to process the transaction.
      • recurringDetailReference

        public DisableRequest recurringDetailReference​(String recurringDetailReference)
        The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
        Parameters:
        recurringDetailReference - The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
        Returns:
        the current DisableRequest instance, allowing for method chaining
      • getRecurringDetailReference

        public String getRecurringDetailReference()
        The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
        Returns:
        recurringDetailReference The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
      • setRecurringDetailReference

        public void setRecurringDetailReference​(String recurringDetailReference)
        The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
        Parameters:
        recurringDetailReference - The ID that uniquely identifies the recurring detail reference. If it is not provided, the whole recurring contract of the `shopperReference` will be disabled, which includes all recurring details.
      • shopperReference

        public DisableRequest shopperReference​(String shopperReference)
        The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
        Parameters:
        shopperReference - The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
        Returns:
        the current DisableRequest instance, allowing for method chaining
      • getShopperReference

        public String getShopperReference()
        The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
        Returns:
        shopperReference The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
      • setShopperReference

        public void setShopperReference​(String shopperReference)
        The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
        Parameters:
        shopperReference - The ID that uniquely identifies the shopper. This `shopperReference` must be the same as the `shopperReference` used in the initial payment.
      • includeNullValues

        public DisableRequest 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 DisableRequest 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 DisableRequest fromJson​(String jsonString)
                                       throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of DisableRequest given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of DisableRequest
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to DisableRequest
      • toJson

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