Class CapitalGrant


  • public class CapitalGrant
    extends Object
    CapitalGrant
    • Constructor Detail

      • CapitalGrant

        public CapitalGrant()
    • Method Detail

      • amount

        public CapitalGrant amount​(Amount amount)
        amount
        Parameters:
        amount -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getAmount

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
        amount
        Parameters:
        amount -
      • balances

        public CapitalGrant balances​(CapitalBalance balances)
        balances
        Parameters:
        balances -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getBalances

        public CapitalBalance getBalances()
        balances
        Returns:
        balances
      • setBalances

        public void setBalances​(CapitalBalance balances)
        balances
        Parameters:
        balances -
      • counterparty

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

        public Counterparty getCounterparty()
        counterparty
        Returns:
        counterparty
      • setCounterparty

        public void setCounterparty​(Counterparty counterparty)
        counterparty
        Parameters:
        counterparty -
      • fee

        public CapitalGrant fee​(Fee fee)
        fee
        Parameters:
        fee -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getFee

        public Fee getFee()
        fee
        Returns:
        fee
      • setFee

        public void setFee​(Fee fee)
        fee
        Parameters:
        fee -
      • grantAccountId

        public CapitalGrant grantAccountId​(String grantAccountId)
        The identifier of the grant account used for the grant.
        Parameters:
        grantAccountId -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getGrantAccountId

        public String getGrantAccountId()
        The identifier of the grant account used for the grant.
        Returns:
        grantAccountId
      • setGrantAccountId

        public void setGrantAccountId​(String grantAccountId)
        The identifier of the grant account used for the grant.
        Parameters:
        grantAccountId -
      • grantOfferId

        public CapitalGrant grantOfferId​(String grantOfferId)
        The identifier of the grant offer that has been selected and from which the grant details will be used.
        Parameters:
        grantOfferId -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getGrantOfferId

        public String getGrantOfferId()
        The identifier of the grant offer that has been selected and from which the grant details will be used.
        Returns:
        grantOfferId
      • setGrantOfferId

        public void setGrantOfferId​(String grantOfferId)
        The identifier of the grant offer that has been selected and from which the grant details will be used.
        Parameters:
        grantOfferId -
      • id

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

        public String getId()
        The identifier of the grant reference.
        Returns:
        id
      • setId

        public void setId​(String id)
        The identifier of the grant reference.
        Parameters:
        id -
      • repayment

        public CapitalGrant repayment​(Repayment repayment)
        repayment
        Parameters:
        repayment -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getRepayment

        public Repayment getRepayment()
        repayment
        Returns:
        repayment
      • setRepayment

        public void setRepayment​(Repayment repayment)
        repayment
        Parameters:
        repayment -
      • status

        public CapitalGrant status​(CapitalGrant.StatusEnum status)
        The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.
        Parameters:
        status -
        Returns:
        the current CapitalGrant instance, allowing for method chaining
      • getStatus

        public CapitalGrant.StatusEnum getStatus()
        The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.
        Returns:
        status
      • setStatus

        public void setStatus​(CapitalGrant.StatusEnum status)
        The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.
        Parameters:
        status -
      • equals

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

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

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

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