Class CapitalGrant


  • public class CapitalGrant
    extends Object
    CapitalGrant
    • Constructor Detail

      • CapitalGrant

        public CapitalGrant()
    • Method Detail

      • getAmount

        public Amount getAmount()
        Get amount
        Returns:
        amount
      • setAmount

        public void setAmount​(Amount amount)
      • getBalances

        public CapitalBalance getBalances()
        Get balances
        Returns:
        balances
      • getCounterparty

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

        public void setCounterparty​(Counterparty counterparty)
      • getFee

        public Fee getFee()
        Get fee
        Returns:
        fee
      • setFee

        public void setFee​(Fee fee)
      • getGrantAccountId

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

        public void setGrantAccountId​(String grantAccountId)
      • 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)
      • getId

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

        public void setId​(String id)
      • getRepayment

        public Repayment getRepayment()
        Get repayment
        Returns:
        repayment
      • setRepayment

        public void setRepayment​(Repayment repayment)
      • getStatus

        public CapitalGrant.StatusEnum getStatus()
        The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.
        Returns:
        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