@shipengine/js-api 1.25.0 → 1.27.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.
@@ -1,5 +1,6 @@
1
1
  import { Address } from "../addresses";
2
2
  import { DimensionsWithUnit } from "../dimensions";
3
+ import { LabelDisplayScheme } from "../labels";
3
4
  import { CreditCard, Money } from "../payments";
4
5
  import { WeightWithUnit } from "../weight";
5
6
  /**
@@ -32,6 +33,7 @@ export interface CarrierAutoFundingSettingsResponse {
32
33
  export interface CarrierService {
33
34
  carrierCode: string;
34
35
  carrierId: string;
36
+ displaySchemes: LabelDisplayScheme[];
35
37
  domestic: boolean;
36
38
  international: boolean;
37
39
  isMultiPackageSupported: boolean;
package/labels/types.d.ts CHANGED
@@ -5,7 +5,7 @@ import { CreationRangeQuery, Download, LinkedResource, PageableQuery, PageableRe
5
5
  import { ShipmentPackage } from "../shipments";
6
6
  import { RateDetail } from "../types";
7
7
  export type LabelChargeEvent = "carrier_default" | "on_creation" | "on_carrier_acceptance";
8
- export type LabelDisplayScheme = "label" | "qr_code" | "label_and_paperless";
8
+ export type LabelDisplayScheme = "label" | "paperless" | "qr_code" | "label_and_paperless";
9
9
  export type LabelFormat = "pdf" | "png" | "zpl";
10
10
  export type LabelLayout = "4x6" | "letter";
11
11
  export type LabelStatus = "processing" | "completed" | "error" | "voided";
@@ -106,7 +106,7 @@ export interface CreateLabelOptions {
106
106
  /**
107
107
  * `displayScheme` is an optional string to control the display scheme of the label.
108
108
  */
109
- displayScheme?: string;
109
+ displayScheme?: LabelDisplayScheme;
110
110
  /**
111
111
  * `labelDownloadType` is an optional string to control the download type of the label.
112
112
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "1.25.0",
3
+ "version": "1.27.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
package/rates/types.d.ts CHANGED
@@ -12,8 +12,10 @@ export type RateDetailAttributes = {
12
12
  taxPercentage: number;
13
13
  taxType: TaxType;
14
14
  };
15
+ export type RateDetailBillingSource = "Carrier" | "Insurance" | "Product";
15
16
  export type RateDetail = {
16
17
  amount: Money;
18
+ billingSource: RateDetailBillingSource;
17
19
  carrierBillingCode: string | null;
18
20
  carrierDescription: string;
19
21
  carrierMemo: string | null;