@shipengine/alchemy 6.0.37 → 6.0.38

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.
Files changed (3) hide show
  1. package/index.js +4 -4
  2. package/index.mjs +4 -4
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -11087,10 +11087,10 @@ class AccountBillingAPI {
11087
11087
  return this.client.get("/v1/account/billing");
11088
11088
  };
11089
11089
  /**
11090
- * The `post` method updates (or create) the Billing Info for the current user.
11090
+ * The `put` method updates (or create) the Billing Info for the current user.
11091
11091
  */
11092
- this.post = (reqBody) => {
11093
- return this.client.post("/v1/account/billing", reqBody);
11092
+ this.put = (reqBody) => {
11093
+ return this.client.put("/v1/account/billing", reqBody);
11094
11094
  };
11095
11095
  this.client = client;
11096
11096
  }
@@ -37628,7 +37628,7 @@ const useUpsertAccountBilling = (params) => {
37628
37628
  const { client } = useShipEngine();
37629
37629
  return reactQuery.useMutation(__spreadProps$5(__spreadValues$8({}, params), {
37630
37630
  mutationFn: (billing) => __async$9(void 0, null, function* () {
37631
- const result = yield client.accountBilling.post(billing);
37631
+ const result = yield client.accountBilling.put(billing);
37632
37632
  return result.data;
37633
37633
  }),
37634
37634
  mutationKey: ["useUpsertAccountBilling"],
package/index.mjs CHANGED
@@ -11065,10 +11065,10 @@ class AccountBillingAPI {
11065
11065
  return this.client.get("/v1/account/billing");
11066
11066
  };
11067
11067
  /**
11068
- * The `post` method updates (or create) the Billing Info for the current user.
11068
+ * The `put` method updates (or create) the Billing Info for the current user.
11069
11069
  */
11070
- this.post = (reqBody) => {
11071
- return this.client.post("/v1/account/billing", reqBody);
11070
+ this.put = (reqBody) => {
11071
+ return this.client.put("/v1/account/billing", reqBody);
11072
11072
  };
11073
11073
  this.client = client;
11074
11074
  }
@@ -37606,7 +37606,7 @@ const useUpsertAccountBilling = (params) => {
37606
37606
  const { client } = useShipEngine();
37607
37607
  return useMutation(__spreadProps$5(__spreadValues$8({}, params), {
37608
37608
  mutationFn: (billing) => __async$9(void 0, null, function* () {
37609
- const result = yield client.accountBilling.post(billing);
37609
+ const result = yield client.accountBilling.put(billing);
37610
37610
  return result.data;
37611
37611
  }),
37612
37612
  mutationKey: ["useUpsertAccountBilling"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "6.0.37",
3
+ "version": "6.0.38",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {