Class GrantOffer


  • public class GrantOffer
    extends Object
    GrantOffer
    • Constructor Detail

      • GrantOffer

        public GrantOffer()
    • Method Detail

      • accountHolderId

        public GrantOffer accountHolderId​(String accountHolderId)
        The identifier of the account holder to which the grant is offered.
        Parameters:
        accountHolderId -
        Returns:
        the current GrantOffer instance, allowing for method chaining
      • getAccountHolderId

        public String getAccountHolderId()
        The identifier of the account holder to which the grant is offered.
        Returns:
        accountHolderId
      • setAccountHolderId

        public void setAccountHolderId​(String accountHolderId)
        The identifier of the account holder to which the grant is offered.
        Parameters:
        accountHolderId -
      • amount

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

        public Amount getAmount()
        amount
        Returns:
        amount
      • setAmount

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

        public GrantOffer contractType​(GrantOffer.ContractTypeEnum contractType)
        The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.
        Parameters:
        contractType -
        Returns:
        the current GrantOffer instance, allowing for method chaining
      • getContractType

        public GrantOffer.ContractTypeEnum getContractType()
        The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.
        Returns:
        contractType
      • setContractType

        public void setContractType​(GrantOffer.ContractTypeEnum contractType)
        The contract type of the grant offer. Possible value: **cashAdvance**, **loan**.
        Parameters:
        contractType -
      • expiresAt

        public GrantOffer expiresAt​(OffsetDateTime expiresAt)
        The end date of the grant offer validity period.
        Parameters:
        expiresAt -
        Returns:
        the current GrantOffer instance, allowing for method chaining
      • getExpiresAt

        public OffsetDateTime getExpiresAt()
        The end date of the grant offer validity period.
        Returns:
        expiresAt
      • setExpiresAt

        public void setExpiresAt​(OffsetDateTime expiresAt)
        The end date of the grant offer validity period.
        Parameters:
        expiresAt -
      • fee

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

        public Fee getFee()
        fee
        Returns:
        fee
      • setFee

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

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

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

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

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

        public Repayment getRepayment()
        repayment
        Returns:
        repayment
      • setRepayment

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

        public GrantOffer startsAt​(OffsetDateTime startsAt)
        The starting date of the grant offer validity period.
        Parameters:
        startsAt -
        Returns:
        the current GrantOffer instance, allowing for method chaining
      • getStartsAt

        public OffsetDateTime getStartsAt()
        The starting date of the grant offer validity period.
        Returns:
        startsAt
      • setStartsAt

        public void setStartsAt​(OffsetDateTime startsAt)
        The starting date of the grant offer validity period.
        Parameters:
        startsAt -
      • equals

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

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

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

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