Repository URL to install this package:
|
Version:
2.0.0-snapshotAE-90.1 ▾
|
Creates a subscription for the user.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| planId | string | The id of the subscription plan |
| subscriptionPayload | SubscriptionPayload | The data of the subscription to create |
| authToken | string | |
| experimentId | string | Id of an AB test experiment defined in the MongoDB for svc-billing |
| options | Object | Additional options |
| options.endpoint | string | The endpoint's base URL |
Updates the user's subscription.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| planId | string | The id of the subscription plan |
| subscriptionPayload | SubscriptionPayload | The data of the subscription to create |
| authToken | string | |
| experimentId | string | Id of an AB test experiment defined in the MongoDB for svc-billing |
| options | Object | Additional options |
| options.endpoint | string | The endpoint's base URL |
Fetches a user subscription.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| authToken | string | |
| options | Object | Additional options |
| options.endpoint | string | The endpoint's base URL |
Fetches all user subscriptions, including those that expired.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| authToken | string | |
| options | Object | Additional options |
| options.endpoint | string | The endpoint's base URL |
Checks whether a subdomain is available. Note: this method still uses the NP API.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| subdomain | string | The subdomain to validate |
| locale | string | The user's locale |
| mandatorId | string | The id of the user's mandator |
Checks whether a VAT ID is valid.
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| vatId | string | The VAT ID to check for validity |
| country | string | The Country provided by the user |
| authToken | string | |
| options | Object | Additional options |
| options.endpoint | string | The endpoint's base URL |
Saves billing info and checks if vat is valiid
Kind: global function
Access: public
| Param | Type | Description |
|---|---|---|
| authToken | string | |
| billing | Object | information |
| options.endpoint | string | The endpoint's base URL |
Sets the autorenwal state of the given subscription
Kind: global function
| Param | Type |
|---|---|
| subscriptionId | string |
| autoRenewalOn | boolean |