Package tbdex.sdk.resources
Object Offering.Companion
-
- All Implemented Interfaces:
public class Offering.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Offering.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final Offeringcreate(String from, OfferingData data, String protocol)Creates a new Offering resource. final OfferingfromJsonString(String json)Parses an Offering resource from a JSON string. -
-
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.
-
-
-
-