@shipengine/js-api 0.44.0 → 0.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account-billing-plan/api.d.ts +5 -1
- package/account-billing-plan/types.d.ts +7 -0
- package/index.js +6 -0
- package/index.mjs +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
|
-
import { AccountBillingPlanResponse } from "./types";
|
|
2
|
+
import { AccountBillingPlanResponse, UpdateAccountBillingPlanRequestBody, UpdateAccountBillingPlanResponse } from "./types";
|
|
3
3
|
/**
|
|
4
4
|
* # Account Billing Plan API module - /v1/account/billing_plan
|
|
5
5
|
*/
|
|
@@ -10,4 +10,8 @@ export declare class AccountBillingPlanAPI {
|
|
|
10
10
|
* The `get` method retrieves the account billing plan for the current user.
|
|
11
11
|
*/
|
|
12
12
|
get: () => Promise<import("axios").AxiosResponse<AccountBillingPlanResponse, any>>;
|
|
13
|
+
/**
|
|
14
|
+
* The `update` method updates the code of the account billing plan
|
|
15
|
+
*/
|
|
16
|
+
update: (reqBody: UpdateAccountBillingPlanRequestBody) => Promise<import("axios").AxiosResponse<UpdateAccountBillingPlanResponse, any>>;
|
|
13
17
|
}
|
package/index.js
CHANGED
|
@@ -3318,6 +3318,12 @@ class AccountBillingPlanAPI {
|
|
|
3318
3318
|
this.get = () => {
|
|
3319
3319
|
return this.client.get("/v1/account/billing_plan");
|
|
3320
3320
|
};
|
|
3321
|
+
/**
|
|
3322
|
+
* The `update` method updates the code of the account billing plan
|
|
3323
|
+
*/
|
|
3324
|
+
this.update = (reqBody) => {
|
|
3325
|
+
return this.client.put(`/v1/account/billing_plan`, reqBody);
|
|
3326
|
+
};
|
|
3321
3327
|
this.client = client;
|
|
3322
3328
|
}
|
|
3323
3329
|
}
|
package/index.mjs
CHANGED
|
@@ -3314,6 +3314,12 @@ class AccountBillingPlanAPI {
|
|
|
3314
3314
|
this.get = () => {
|
|
3315
3315
|
return this.client.get("/v1/account/billing_plan");
|
|
3316
3316
|
};
|
|
3317
|
+
/**
|
|
3318
|
+
* The `update` method updates the code of the account billing plan
|
|
3319
|
+
*/
|
|
3320
|
+
this.update = (reqBody) => {
|
|
3321
|
+
return this.client.put(`/v1/account/billing_plan`, reqBody);
|
|
3322
|
+
};
|
|
3317
3323
|
this.client = client;
|
|
3318
3324
|
}
|
|
3319
3325
|
}
|