This package has been deprecated

Author message:

Moved to @vendasta/core

@vendasta/accounts-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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-sdk --save

Next, you will need to import and setup your navigation module (generally in app.module.ts)

import { AccountsModule } from "@vendasta/accounts-sdk";

@NgModule({
  
  imports: [
    , AccountsModule, 
  ]
})

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.

Usage

Inject the AccountGroupService into your component and you will be able to start using it!

import {AccountGroupService} from '@vendasta/account-group-sdk';

@Component({
  selector: '…',
  template: '…',
  styles: '…'
})
export class …Component {
  constructor(private accountGroupService: AccountGroupService) {
  }
}

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vendasta/accounts-sdk

Weekly Downloads

1

Version

1.2.0

License

ISC

Last publish

Collaborators

  • vendasta