@cosmosapp/pay_sdkDéfinitionsServeur
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: stringmember
The client that instantiated this structure.
}> { readonly client: Clientid
Unique identifier of the resource.
id: stringprotected
protected constructor(client: Client, data: Data)protected
Merge raw API data onto this instance. Subclasses override and call super.
protected _patch(data: Data): thisabstract
Return the raw API representation of this structure.
abstract toJSON(): DataMethods
valueOf()
Allow String(structure) / template literals to resolve to the id.
valueOf(): stringReturns string