Class TransactionRuleSource


  • public class TransactionRuleSource
    extends Object
    TransactionRuleSource
    • Constructor Detail

      • TransactionRuleSource

        public TransactionRuleSource()
    • Method Detail

      • getId

        public String getId()
        ID of the resource, when applicable.
        Returns:
        id
      • setId

        public void setId​(String id)
        ID of the resource, when applicable.
        Parameters:
        id -
      • getType

        public String getType()
        Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen.
        Returns:
        type
      • setType

        public void setType​(String type)
        Indicates the type of resource for which the transaction rule is defined. Possible values: * **PaymentInstrumentGroup** * **PaymentInstrument** * **BalancePlatform** * **EntityUsageConfiguration** * **PlatformRule**: The transaction rule is a platform-wide rule imposed by Adyen.
        Parameters:
        type -
      • equals

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

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

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

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