Skip to content

feat: add getEscrowState method #35

Description

@MarcusDavidG

Summary

get_escrow_state(invoice_id) returns the current DisputeState (release_at, disputed, disputed_at) but there is no SDK method for it.

Method to add

async getEscrowState(invoiceId: number): Promise<{ releaseAt: number; disputed: boolean; disputedAt: number } | null>

Acceptance criteria

  • Method added to SharpyClient
  • Returns null if no escrow state exists for the invoice
  • JSDoc included

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions