Free trial product panel
AUI module to render a free trial panel
Demo
API
Tag
Name | Description |
<aui-trial-products>
|
Custom Element, no content |
Attributes
Name | Value | Required | Description |
obligations |
Array of obligations |
|
Stringified JSON of obligations array retrieved from
|
emitupgradeevents |
Array of product names |
Stringified JSON array of string values representing trial products that should emit an The component will recognize any of the following values: You may also use |
|
upgradereturnurl |
URL to be sent to after upgrading |
NOTE:
|
Properties
Name | Value | Required | Description |
---|---|---|---|
obligations |
Array of obligations |
|
Stringified JSON of obligations array retrieved from
|
emitUpgradeEvents |
Array of product names |
Array of string values representing trial products that should emit an The component will recognize any of the following values: You may also use |
|
upgradeReturnUrl |
URL to be sent to after upgrading |
NOTE:
|
Events
Name | Detail | Description |
---|---|---|
s-upgrade |
The clicked upgrade button's |
Fired after an upgrade button is clicked, if the When using the |
Guidelines
Usage
Please contact BuyDot product manager if you would like to use this component or add additional products to it!
Obligations object
This component works with two different obligations objects for now. See examples below.
The endpoint https://api.biztech.avalara.com/business-activity/customer-accounts/:id/obligations?includeFuture=true
returns an object like this:
The endpoint https://api.auth1.avalara.com/ws/rest/obligations/customer/:customerId
returns an object like this:
Design
Design resources can be found on the Skylab design documentation site: skylab.avalara.com