You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the following command from your project directory to install the package from npm:
30
30
31
31
```bash
32
-
npm install @maxio-com/advanced-billing-sdk@8.0.0
32
+
npm install @maxio-com/advanced-billing-sdk@9.0.0
33
33
```
34
34
35
-
For additional package details, see the [Npm page for the @maxio-com/advanced-billing-sdk@8.0.0 npm](https://www.npmjs.com/package/@maxio-com/advanced-billing-sdk/v/8.0.0).
35
+
For additional package details, see the [Npm page for the @maxio-com/advanced-billing-sdk@9.0.0 npm](https://www.npmjs.com/package/@maxio-com/advanced-billing-sdk/v/9.0.0).
36
36
37
37
## Initialize the API Client
38
38
39
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-typescript-sdk/tree/8.0.0/doc/client.md)
39
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/client.md)
40
40
41
41
The following parameters are configurable for the API Client:
42
42
43
43
| Parameter | Type | Description |
44
44
| --- | --- | --- |
45
45
| site |`string`| The subdomain for your Advanced Billing site.<br>*Default*: `'subdomain'`|
46
-
| environment |`Environment`| The API environment. <br> **Default: `Environment.US`**|
46
+
| environment |[`Environment`](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/README.md#environments)| The API environment. <br> **Default: `Environment.US`**|
47
47
| timeout |`number`| Timeout for API calls.<br>*Default*: `120000`|
| basicAuthCredentials |[`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-typescript-sdk/tree/8.0.0/doc/auth/basic-authentication.md)| The credential object for basicAuth |
50
+
| basicAuthCredentials |[`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/auth/basic-authentication.md)| The credential object for basicAuth |
// Initialize client from JSON configuration content
84
+
const client =Client.fromJsonConfig(fileContent);
85
+
```
86
+
87
+
See the [Configuration-Based Client Initialization](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/configuration-based-client-initialization.md) section for details.
See the [Environment-Based Client Initialization](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/environment-based-client-initialization.md) section for details.
110
+
68
111
## Environments
69
112
70
113
The SDK can be configured to use a different environment for making API calls. Available environments are:
@@ -80,57 +123,60 @@ The SDK can be configured to use a different environment for making API calls. A
80
123
81
124
This API uses the following authentication schemes.
*[Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-typescript-sdk/tree/8.0.0/doc/controllers/subscription-group-invoice-account.md)
103
-
*[Subscription Group Status](https://www.github.com/maxio-com/ab-typescript-sdk/tree/8.0.0/doc/controllers/subscription-group-status.md)
*[Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/controllers/subscription-group-invoice-account.md)
146
+
*[Subscription Group Status](https://www.github.com/maxio-com/ab-typescript-sdk/tree/9.0.0/doc/controllers/subscription-group-status.md)
The SDK client can be initialized directly from a JSON configuration file using the `fromJsonConfig` static method available on the `Client` class.` This allows you to store and load configuration settings from JSON files, making it easier to organize and manage different configurations across environments.
5
+
6
+
## Node.js Environment
7
+
8
+
In Node.js environments, you can use the `fs` module to read the configuration file from the file system.
0 commit comments