Skip to main content
Defined in: typescript/src/client/RefusalApi.ts:9

Constructors

Constructor

new RefusalApi(transport): RefusalApi
Defined in: typescript/src/client/RefusalApi.ts:10

Parameters

transport
Transport

Returns

RefusalApi

Methods

verify()

verify(record): Promise<boolean>
Defined in: typescript/src/client/RefusalApi.ts:19 Verifies a Refusal Record’s signature. Maps to POST /refusal/verify — takes the record itself, not a lookup by id. No caller authentication is required by this route: it is the capability that makes a refusal independently third-party verifiable (RFC-0021).

Parameters

record
RefusalRecord

Returns

Promise<boolean>

get()

get(businessTransactionId): Promise<RefusalRecord>
Defined in: typescript/src/client/RefusalApi.ts:35 Retrieves a Refusal Record by Business Transaction ID. Maps to GET /refusal/:businessTransactionId. Unlike verify() above, this route is behind caller-auth and ownership scoping, identically to TrustRecordApi.get().

Parameters

businessTransactionId
string

Returns

Promise<RefusalRecord>