Class GrantInfo


  • public class GrantInfo
    extends Object
    GrantInfo
    • Constructor Detail

      • GrantInfo

        public GrantInfo()
    • Method Detail

      • counterparty

        public GrantInfo counterparty​(GrantInfoCounterparty counterparty)
        counterparty
        Parameters:
        counterparty -
        Returns:
        the current GrantInfo instance, allowing for method chaining
      • getCounterparty

        public GrantInfoCounterparty getCounterparty()
        Get counterparty
        Returns:
        counterparty
      • setCounterparty

        public void setCounterparty​(GrantInfoCounterparty counterparty)
        counterparty
        Parameters:
        counterparty -
      • grantAccountId

        public GrantInfo grantAccountId​(String grantAccountId)
        The unique identifier of the grant account that tracks this grant.
        Parameters:
        grantAccountId - The unique identifier of the grant account that tracks this grant.
        Returns:
        the current GrantInfo instance, allowing for method chaining
      • getGrantAccountId

        public String getGrantAccountId()
        The unique identifier of the grant account that tracks this grant.
        Returns:
        grantAccountId The unique identifier of the grant account that tracks this grant.
      • setGrantAccountId

        public void setGrantAccountId​(String grantAccountId)
        The unique identifier of the grant account that tracks this grant.
        Parameters:
        grantAccountId - The unique identifier of the grant account that tracks this grant.
      • grantOfferId

        public GrantInfo grantOfferId​(String grantOfferId)
        The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
        Parameters:
        grantOfferId - The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
        Returns:
        the current GrantInfo instance, allowing for method chaining
      • getGrantOfferId

        public String getGrantOfferId()
        The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
        Returns:
        grantOfferId The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
      • setGrantOfferId

        public void setGrantOfferId​(String grantOfferId)
        The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
        Parameters:
        grantOfferId - The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant.
      • includeNullValues

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

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