Socket
Socket
Sign inDemoInstall

@vendasta/accounts-sdk

Package Overview
Dependencies
10
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @vendasta/accounts-sdk

Accounts Microservice typescript sdk.


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
27.0 MB
Created
Weekly downloads
 

Readme

Source

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 classComponent {
  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

FAQs

Last updated on 14 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc