@adcp/sdk API Reference - v14.3.0
    Preparing search index...

    Interface BuyerAccountStorage

    Partitioned by seller and caller scope. Implementations must provide read-your-writes.

    interface BuyerAccountStorage {
        get(key: string): Promise<ProvisionedAccount | undefined>;
        set(key: string, account: ProvisionedAccount): Promise<void>;
        compareAndSet?(
            key: string,
            expectedRevision: number | undefined,
            account: ProvisionedAccount,
        ): Promise<boolean>;
    }
    Index
    • Atomically insert (undefined revision) or replace. Store the supplied new revision. Required for multi-process safety.

      Parameters

      Returns Promise<boolean>