Class Mandate


  • public class Mandate
    extends Object
    Mandate
    • Constructor Detail

      • Mandate

        public Mandate()
    • Method Detail

      • balanceAccountId

        public Mandate balanceAccountId​(String balanceAccountId)
        The unique identifier of the balance account linked to the payment instrument.
        Parameters:
        balanceAccountId - The unique identifier of the balance account linked to the payment instrument.
        Returns:
        the current Mandate instance, allowing for method chaining
      • getBalanceAccountId

        public String getBalanceAccountId()
        The unique identifier of the balance account linked to the payment instrument.
        Returns:
        balanceAccountId The unique identifier of the balance account linked to the payment instrument.
      • setBalanceAccountId

        public void setBalanceAccountId​(String balanceAccountId)
        The unique identifier of the balance account linked to the payment instrument.
        Parameters:
        balanceAccountId - The unique identifier of the balance account linked to the payment instrument.
      • counterparty

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

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

        public void setCounterparty​(MandateBankAccount counterparty)
        counterparty
        Parameters:
        counterparty -
      • createdAt

        public Mandate createdAt​(Object createdAt)
        createdAt
        Parameters:
        createdAt -
        Returns:
        the current Mandate instance, allowing for method chaining
      • getCreatedAt

        public Object getCreatedAt()
        Get createdAt
        Returns:
        createdAt
      • setCreatedAt

        public void setCreatedAt​(Object createdAt)
        createdAt
        Parameters:
        createdAt -
      • id

        public Mandate id​(String id)
        The unique identifier of the mandate.
        Parameters:
        id - The unique identifier of the mandate.
        Returns:
        the current Mandate instance, allowing for method chaining
      • getId

        public String getId()
        The unique identifier of the mandate.
        Returns:
        id The unique identifier of the mandate.
      • setId

        public void setId​(String id)
        The unique identifier of the mandate.
        Parameters:
        id - The unique identifier of the mandate.
      • paymentInstrumentId

        public Mandate paymentInstrumentId​(String paymentInstrumentId)
        The unique identifier of the payment instrument linked to the mandate.
        Parameters:
        paymentInstrumentId - The unique identifier of the payment instrument linked to the mandate.
        Returns:
        the current Mandate instance, allowing for method chaining
      • getPaymentInstrumentId

        public String getPaymentInstrumentId()
        The unique identifier of the payment instrument linked to the mandate.
        Returns:
        paymentInstrumentId The unique identifier of the payment instrument linked to the mandate.
      • setPaymentInstrumentId

        public void setPaymentInstrumentId​(String paymentInstrumentId)
        The unique identifier of the payment instrument linked to the mandate.
        Parameters:
        paymentInstrumentId - The unique identifier of the payment instrument linked to the mandate.
      • status

        public Mandate status​(Mandate.StatusEnum status)
        The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
        Parameters:
        status - The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
        Returns:
        the current Mandate instance, allowing for method chaining
      • getStatus

        public Mandate.StatusEnum getStatus()
        The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
        Returns:
        status The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
      • setStatus

        public void setStatus​(Mandate.StatusEnum status)
        The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
        Parameters:
        status - The status of the mandate. Possible values: **pending**, **approved**, **cancelled**.
      • type

        public Mandate type​(Mandate.TypeEnum type)
        The type of mandate. Possible value: **bacs**.
        Parameters:
        type - The type of mandate. Possible value: **bacs**.
        Returns:
        the current Mandate instance, allowing for method chaining
      • getType

        public Mandate.TypeEnum getType()
        The type of mandate. Possible value: **bacs**.
        Returns:
        type The type of mandate. Possible value: **bacs**.
      • setType

        public void setType​(Mandate.TypeEnum type)
        The type of mandate. Possible value: **bacs**.
        Parameters:
        type - The type of mandate. Possible value: **bacs**.
      • updatedAt

        public Mandate updatedAt​(Object updatedAt)
        updatedAt
        Parameters:
        updatedAt -
        Returns:
        the current Mandate instance, allowing for method chaining
      • getUpdatedAt

        public Object getUpdatedAt()
        Get updatedAt
        Returns:
        updatedAt
      • setUpdatedAt

        public void setUpdatedAt​(Object updatedAt)
        updatedAt
        Parameters:
        updatedAt -
      • equals

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

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

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

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