@cosmosapp/pay_sdkDefinitionenServer

Base

Root of every API structure. Holds a back-reference to the Client so instances can perform their own actions (e.g. paymentIntent.delete()), and provides…

Root of every API structure. Holds a back-reference to the {@link Client} so instances can perform their own actions (e.g. paymentIntent.delete()), and provides the _patch/toJSON plumbing shared by all structures.

Properties

id

id: string

member

The client that instantiated this structure.

}> { readonly client: Client

id

Unique identifier of the resource.

id: string

protected

protected constructor(client: Client, data: Data)

protected

Merge raw API data onto this instance. Subclasses override and call super.

protected _patch(data: Data): this

abstract

Return the raw API representation of this structure.

abstract toJSON(): Data

Methods

valueOf()

Allow String(structure) / template literals to resolve to the id.

valueOf(): string

Returns string

Auf dieser Seite