@shipengine/js-api 3.3.0 → 3.4.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/index.js CHANGED
@@ -3611,17 +3611,13 @@ class InvoiceAddressAPI {
3611
3611
  * The `create` method creates a new invoice address for a given user.
3612
3612
  */
3613
3613
  this.create = (invoiceAddress) => __async$3(this, null, function* () {
3614
- return yield this.client.post("/v1/invoice_address", {
3615
- invoiceAddress
3616
- });
3614
+ return yield this.client.post("/v1/invoice_address", invoiceAddress);
3617
3615
  });
3618
3616
  /**
3619
3617
  * The `update` method updates a invoice address for a given user.
3620
3618
  */
3621
3619
  this.update = (invoiceAddress) => __async$3(this, null, function* () {
3622
- return yield this.client.put("/v1/invoice_address", {
3623
- invoiceAddress
3624
- });
3620
+ return yield this.client.put("/v1/invoice_address", invoiceAddress);
3625
3621
  });
3626
3622
  this.client = client;
3627
3623
  }
package/index.mjs CHANGED
@@ -3607,17 +3607,13 @@ class InvoiceAddressAPI {
3607
3607
  * The `create` method creates a new invoice address for a given user.
3608
3608
  */
3609
3609
  this.create = (invoiceAddress) => __async$3(this, null, function* () {
3610
- return yield this.client.post("/v1/invoice_address", {
3611
- invoiceAddress
3612
- });
3610
+ return yield this.client.post("/v1/invoice_address", invoiceAddress);
3613
3611
  });
3614
3612
  /**
3615
3613
  * The `update` method updates a invoice address for a given user.
3616
3614
  */
3617
3615
  this.update = (invoiceAddress) => __async$3(this, null, function* () {
3618
- return yield this.client.put("/v1/invoice_address", {
3619
- invoiceAddress
3620
- });
3616
+ return yield this.client.put("/v1/invoice_address", invoiceAddress);
3621
3617
  });
3622
3618
  this.client = client;
3623
3619
  }
@@ -10,19 +10,13 @@ export declare class InvoiceAddressAPI {
10
10
  /**
11
11
  * The `get` method retrieves the invoice address for a given user.
12
12
  */
13
- get: () => Promise<import("axios").AxiosResponse<{
14
- invoiceAddress: InvoiceAddress;
15
- }, any>>;
13
+ get: () => Promise<import("axios").AxiosResponse<InvoiceAddress, any>>;
16
14
  /**
17
15
  * The `create` method creates a new invoice address for a given user.
18
16
  */
19
- create: (invoiceAddress: InvoiceAddress) => Promise<import("axios").AxiosResponse<{
20
- invoiceAddress: InvoiceAddress;
21
- }, any>>;
17
+ create: (invoiceAddress: InvoiceAddress) => Promise<import("axios").AxiosResponse<InvoiceAddress, any>>;
22
18
  /**
23
19
  * The `update` method updates a invoice address for a given user.
24
20
  */
25
- update: (invoiceAddress: InvoiceAddress) => Promise<import("axios").AxiosResponse<{
26
- invoiceAddress: InvoiceAddress;
27
- }, any>>;
21
+ update: (invoiceAddress: InvoiceAddress) => Promise<import("axios").AxiosResponse<InvoiceAddress, any>>;
28
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {