Constructors
constructor
- new Merchi(sessionToken?: string, clientToken?: string, invoiceToken?: string, cartToken?: string): Merchi
-
Parameters
-
Optional sessionToken: string
-
Optional clientToken: string
-
Optional invoiceToken: string
-
Optional cartToken: string
Properties
Optional cartToken
cartToken: string
Optional clientToken
clientToken: string
Optional invoiceToken
invoiceToken: string
Optional sessionToken
sessionToken: string
Methods
authenticatedFetch
- authenticatedFetch(resource: string, options: RequestOptions, expectEmptyResponse?: boolean): Promise<any>
-
Parameters
-
resource: string
-
-
Optional expectEmptyResponse: boolean
Returns Promise<any>
getCurrentUser
- getCurrentUser(options?: UserRequestOptions): Promise<any>
-
Parameters
-
Optional options: UserRequestOptions
Returns Promise<any>
setupClass
-
Parameters
Returns typeof Entity