@shipengine/js-api 4.22.0 → 4.22.1

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 (2) hide show
  1. package/labels/types.d.ts +19 -0
  2. package/package.json +1 -1
package/labels/types.d.ts CHANGED
@@ -39,6 +39,7 @@ export type Label = {
39
39
  paperlessDownload: PaperlessDownload | null;
40
40
  qrCodeDownload?: LinkedResource;
41
41
  rateDetails: RateDetail[];
42
+ refundDetails: RefundDetails | null;
42
43
  relayPoints: {
43
44
  shipFrom: RelayPoint;
44
45
  shipTo: RelayPoint;
@@ -58,6 +59,7 @@ export type Label = {
58
59
  trackingUrl: string;
59
60
  voided: boolean;
60
61
  voidedAt: string | null;
62
+ voidType: LabelVoidType | null;
61
63
  };
62
64
  export type PaperlessDownload = {
63
65
  handoffCode: string;
@@ -90,6 +92,13 @@ export type ListLabelsParams = {
90
92
  * specific rate.
91
93
  */
92
94
  rateId?: string;
95
+ /**
96
+ * `refundStatus` is an optional string to filter results by refund status.
97
+ * Can be a single status or multiple comma-separated statuses.
98
+ * @example "pending"
99
+ * @example "pending,approved"
100
+ */
101
+ refundStatus?: string;
93
102
  /**
94
103
  * `serviceCode` is an optional string to limit results to only labels for
95
104
  * a specific carrier service.
@@ -156,3 +165,13 @@ export type ExportLabelsParams = {
156
165
  */
157
166
  labelId?: string;
158
167
  } & ListLabelsParams;
168
+ export type LabelVoidType = "refund_assist" | "manual";
169
+ export type RefundStatus = "request_scheduled" | "pending" | "approved" | "rejected" | "excluded";
170
+ export type RefundDetails = {
171
+ amountApproved: Money | null;
172
+ amountCredited: Money | null;
173
+ amountPaid: Money | null;
174
+ amountRequested: Money | null;
175
+ refundStatus: RefundStatus;
176
+ requestDate: string;
177
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/js-api",
3
- "version": "4.22.0",
3
+ "version": "4.22.1",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {