Object Offering.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 Offering create(String from, OfferingData data, String protocol) Creates a new Offering resource.
      final Offering fromJsonString(String json) Parses an Offering 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 Offering create(String from, OfferingData data, String protocol)

        Creates a new Offering resource.

        Parameters:
        from - The DID of the sender (the PFI).
        data - The offering details including exchange rates, payin/payout details, and required claims.
        protocol - Optional protocol version.
        Returns:

        The newly created Offering resource.

      • fromJsonString

         final Offering fromJsonString(String json)

        Parses an Offering resource from a JSON string.

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

        The deserialized Offering resource.