Object Balance.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Balance create(String from, BalanceData data, String protocol) Creates a new Balance resource.
      final Balance fromJsonString(String json) Parses a Balance resource from a JSON string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • create

         final Balance create(String from, BalanceData data, String protocol)

        Creates a new Balance resource.

        Parameters:
        from - The DID of the sender (the PFI).
        data - The balance data containing the currency code and available balance.
        protocol - Optional protocol version.
        Returns:

        The newly created Balance resource.

      • fromJsonString

         final Balance fromJsonString(String json)

        Parses a Balance resource from a JSON string.

        Parameters:
        json - The JSON string representing the Balance resource.
        Returns:

        The deserialized Balance resource.