Accounts SDK
This provides a typescript implementation of the accounts microservice
Requirements
To setup the sdk you will need to:
Install the sdk to your project
npm install @vendasta/accounts --save
import {AccountsService} from "@vendasta/accounts/legacy";
export class MyClass {
constructor(private accountsServce: AccountsService) {}
}
External Requirements
The Accounts sdk requires the following vendasta packages to be implemented by the project:
Please follow their instructions on how to set those packages up.
ActivateAddon
activateAddon(businessId: string, appId: string, addOnId: string): Observable<string>
Activate the addon of a product
DeactivateAddon
deactivateAddon(businessId: string, appId: string, addonId: string, activationId: string): void
Deactivate the addon of a product
ListAddonActivations
listAddonActivations(businessId: string, appId: string): Observable<any>
List activations of an app's addons for a business
Delete
delete(businessId: string, appId: string, accountId: string, productId: string): Observable<Response>
Deactivate an app / product