@shipengine/alchemy 6.0.80 → 6.0.81

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 +378 -209
  2. package/index.mjs +375 -210
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10835,17 +10835,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10835
10835
  return FeatureId2;
10836
10836
  })(FeatureId || {});
10837
10837
 
10838
- var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
10839
- var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
10840
- var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
10838
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
10839
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
10840
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
10841
10841
  var __objRest$x = (source, exclude) => {
10842
10842
  var target = {};
10843
10843
  for (var prop in source)
10844
- if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
10844
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
10845
10845
  target[prop] = source[prop];
10846
- if (source != null && __getOwnPropSymbols$13)
10847
- for (var prop of __getOwnPropSymbols$13(source)) {
10848
- if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
10846
+ if (source != null && __getOwnPropSymbols$16)
10847
+ for (var prop of __getOwnPropSymbols$16(source)) {
10848
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
10849
10849
  target[prop] = source[prop];
10850
10850
  }
10851
10851
  return target;
@@ -10981,17 +10981,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10981
10981
  RateCardStatus
10982
10982
  }, Symbol.toStringTag, { value: 'Module' }));
10983
10983
 
10984
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
10985
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
10986
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
10984
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
10985
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
10986
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
10987
10987
  var __objRest$w = (source, exclude) => {
10988
10988
  var target = {};
10989
10989
  for (var prop in source)
10990
- if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
10990
+ if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
10991
10991
  target[prop] = source[prop];
10992
- if (source != null && __getOwnPropSymbols$12)
10993
- for (var prop of __getOwnPropSymbols$12(source)) {
10994
- if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
10992
+ if (source != null && __getOwnPropSymbols$15)
10993
+ for (var prop of __getOwnPropSymbols$15(source)) {
10994
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
10995
10995
  target[prop] = source[prop];
10996
10996
  }
10997
10997
  return target;
@@ -11089,6 +11089,35 @@ class AccountFeaturesAPI {
11089
11089
  }
11090
11090
  }
11091
11091
 
11092
+ class AccountRefundAssistAPI {
11093
+ constructor(client) {
11094
+ this.client = client;
11095
+ /**
11096
+ * The `get` method retrieves the refund assist configuration for all carriers,
11097
+ * including if it is enabled for the user.
11098
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
11099
+ */
11100
+ this.get = () => {
11101
+ return this.client.get("/v1/account/refund_assist");
11102
+ };
11103
+ /**
11104
+ * The `enable` method enables refund assist globally for the user.
11105
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
11106
+ */
11107
+ this.enable = () => {
11108
+ return this.client.post("/v1/account/refund_assist/enable");
11109
+ };
11110
+ /**
11111
+ * The `disable` method disables refund assist globally for the user.
11112
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
11113
+ */
11114
+ this.disable = () => {
11115
+ return this.client.post("/v1/account/refund_assist/disable");
11116
+ };
11117
+ this.client = client;
11118
+ }
11119
+ }
11120
+
11092
11121
  class AddressesAPI {
11093
11122
  constructor(client) {
11094
11123
  this.client = client;
@@ -13892,7 +13921,7 @@ var ipaddr = {
13892
13921
  }).call(commonjsGlobal);
13893
13922
  } (ipaddr));
13894
13923
 
13895
- var __async$1a = (__this, __arguments, generator) => {
13924
+ var __async$1c = (__this, __arguments, generator) => {
13896
13925
  return new Promise((resolve, reject) => {
13897
13926
  var fulfilled = (value) => {
13898
13927
  try {
@@ -13912,7 +13941,7 @@ var __async$1a = (__this, __arguments, generator) => {
13912
13941
  step((generator = generator.apply(__this, __arguments)).next());
13913
13942
  });
13914
13943
  };
13915
- const getEndUserIpAddress = () => __async$1a(void 0, null, function* () {
13944
+ const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13916
13945
  try {
13917
13946
  const response = yield axios.get("https://api.ipify.org/?format=json");
13918
13947
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13973,38 +14002,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13973
14002
  return obj;
13974
14003
  };
13975
14004
 
13976
- var __defProp$S = Object.defineProperty;
13977
- var __defProps$M = Object.defineProperties;
13978
- var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
13979
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
13980
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
13981
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
13982
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13983
- var __spreadValues$S = (a, b) => {
14005
+ var __defProp$V = Object.defineProperty;
14006
+ var __defProps$P = Object.defineProperties;
14007
+ var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
14008
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
14009
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
14010
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
14011
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14012
+ var __spreadValues$V = (a, b) => {
13984
14013
  for (var prop in b || (b = {}))
13985
- if (__hasOwnProp$11.call(b, prop))
13986
- __defNormalProp$S(a, prop, b[prop]);
13987
- if (__getOwnPropSymbols$11)
13988
- for (var prop of __getOwnPropSymbols$11(b)) {
13989
- if (__propIsEnum$11.call(b, prop))
13990
- __defNormalProp$S(a, prop, b[prop]);
14014
+ if (__hasOwnProp$14.call(b, prop))
14015
+ __defNormalProp$V(a, prop, b[prop]);
14016
+ if (__getOwnPropSymbols$14)
14017
+ for (var prop of __getOwnPropSymbols$14(b)) {
14018
+ if (__propIsEnum$14.call(b, prop))
14019
+ __defNormalProp$V(a, prop, b[prop]);
13991
14020
  }
13992
14021
  return a;
13993
14022
  };
13994
- var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
14023
+ var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
13995
14024
  var __objRest$v = (source, exclude) => {
13996
14025
  var target = {};
13997
14026
  for (var prop in source)
13998
- if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
14027
+ if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
13999
14028
  target[prop] = source[prop];
14000
- if (source != null && __getOwnPropSymbols$11)
14001
- for (var prop of __getOwnPropSymbols$11(source)) {
14002
- if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
14029
+ if (source != null && __getOwnPropSymbols$14)
14030
+ for (var prop of __getOwnPropSymbols$14(source)) {
14031
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
14003
14032
  target[prop] = source[prop];
14004
14033
  }
14005
14034
  return target;
14006
14035
  };
14007
- var __async$19 = (__this, __arguments, generator) => {
14036
+ var __async$1b = (__this, __arguments, generator) => {
14008
14037
  return new Promise((resolve, reject) => {
14009
14038
  var fulfilled = (value) => {
14010
14039
  try {
@@ -14044,12 +14073,12 @@ class CarriersAPI {
14044
14073
  /**
14045
14074
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14046
14075
  */
14047
- this.connect = (_a) => __async$19(this, null, function* () {
14076
+ this.connect = (_a) => __async$1b(this, null, function* () {
14048
14077
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14049
14078
  const endUserIpAddress = yield getEndUserIpAddress();
14050
14079
  if (!endUserIpAddress)
14051
14080
  return Promise.reject([new CodedError("Unable to get IP address")]);
14052
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$M(__spreadValues$S({}, connection), {
14081
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
14053
14082
  endUserIpAddress
14054
14083
  }));
14055
14084
  });
@@ -14143,22 +14172,22 @@ class CarriersAPI {
14143
14172
  }
14144
14173
  }
14145
14174
 
14146
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
14147
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
14148
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
14175
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
14176
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
14177
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
14149
14178
  var __objRest$u = (source, exclude) => {
14150
14179
  var target = {};
14151
14180
  for (var prop in source)
14152
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
14181
+ if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
14153
14182
  target[prop] = source[prop];
14154
- if (source != null && __getOwnPropSymbols$10)
14155
- for (var prop of __getOwnPropSymbols$10(source)) {
14156
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
14183
+ if (source != null && __getOwnPropSymbols$13)
14184
+ for (var prop of __getOwnPropSymbols$13(source)) {
14185
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
14157
14186
  target[prop] = source[prop];
14158
14187
  }
14159
14188
  return target;
14160
14189
  };
14161
- var __async$18 = (__this, __arguments, generator) => {
14190
+ var __async$1a = (__this, __arguments, generator) => {
14162
14191
  return new Promise((resolve, reject) => {
14163
14192
  var fulfilled = (value) => {
14164
14193
  try {
@@ -14200,7 +14229,7 @@ class ConnectionsAPI {
14200
14229
  /**
14201
14230
  * The `connectCarrier` method connects a carrier to account.
14202
14231
  */
14203
- this.connectCarrier = (carrierName, formData) => __async$18(this, null, function* () {
14232
+ this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14204
14233
  return yield this.client.post(
14205
14234
  `/v1/connections/carriers/${carrierName}`,
14206
14235
  formData,
@@ -16368,23 +16397,23 @@ class CustomPackagesAPI {
16368
16397
  }
16369
16398
  }
16370
16399
 
16371
- var __defProp$R = Object.defineProperty;
16372
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
16373
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
16374
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
16375
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16376
- var __spreadValues$R = (a, b) => {
16400
+ var __defProp$U = Object.defineProperty;
16401
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16402
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16403
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16404
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16405
+ var __spreadValues$U = (a, b) => {
16377
16406
  for (var prop in b || (b = {}))
16378
- if (__hasOwnProp$$.call(b, prop))
16379
- __defNormalProp$R(a, prop, b[prop]);
16380
- if (__getOwnPropSymbols$$)
16381
- for (var prop of __getOwnPropSymbols$$(b)) {
16382
- if (__propIsEnum$$.call(b, prop))
16383
- __defNormalProp$R(a, prop, b[prop]);
16407
+ if (__hasOwnProp$12.call(b, prop))
16408
+ __defNormalProp$U(a, prop, b[prop]);
16409
+ if (__getOwnPropSymbols$12)
16410
+ for (var prop of __getOwnPropSymbols$12(b)) {
16411
+ if (__propIsEnum$12.call(b, prop))
16412
+ __defNormalProp$U(a, prop, b[prop]);
16384
16413
  }
16385
16414
  return a;
16386
16415
  };
16387
- var __async$17 = (__this, __arguments, generator) => {
16416
+ var __async$19 = (__this, __arguments, generator) => {
16388
16417
  return new Promise((resolve, reject) => {
16389
16418
  var fulfilled = (value) => {
16390
16419
  try {
@@ -16423,12 +16452,12 @@ class FundingSourcesAPI {
16423
16452
  * The `create` method creates a new funding source for a given user. This requires
16424
16453
  * payment information to be collected from the user.
16425
16454
  */
16426
- this.create = (createFundingSource) => __async$17(this, null, function* () {
16455
+ this.create = (createFundingSource) => __async$19(this, null, function* () {
16427
16456
  const endUserIpAddress = yield getEndUserIpAddress();
16428
16457
  if (!endUserIpAddress) {
16429
16458
  return Promise.reject([new CodedError("Unable to get IP address")]);
16430
16459
  }
16431
- return yield this.client.post("/v1/funding_sources", __spreadValues$R({
16460
+ return yield this.client.post("/v1/funding_sources", __spreadValues$U({
16432
16461
  endUserIpAddress
16433
16462
  }, createFundingSource));
16434
16463
  });
@@ -16437,7 +16466,7 @@ class FundingSourcesAPI {
16437
16466
  * user to update the billing address or payment information associated with the
16438
16467
  * funding source.
16439
16468
  */
16440
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$17(this, null, function* () {
16469
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16441
16470
  const endUserIpAddress = yield getEndUserIpAddress();
16442
16471
  if (!endUserIpAddress) {
16443
16472
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16447,7 +16476,7 @@ class FundingSourcesAPI {
16447
16476
  {
16448
16477
  billingInfo,
16449
16478
  endUserIpAddress,
16450
- paymentMethod: __spreadValues$R({
16479
+ paymentMethod: __spreadValues$U({
16451
16480
  creditCardInfo
16452
16481
  }, auctanePayInfo)
16453
16482
  }
@@ -16457,19 +16486,19 @@ class FundingSourcesAPI {
16457
16486
  * The `registerCarrier` method registers a carrier account and associates
16458
16487
  * it with a given funding source.
16459
16488
  */
16460
- this.registerCarrier = (carrier) => __async$17(this, null, function* () {
16489
+ this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16461
16490
  const endUserIpAddress = yield getEndUserIpAddress();
16462
16491
  if (!endUserIpAddress) {
16463
16492
  return Promise.reject([new CodedError("Unable to get IP address")]);
16464
16493
  }
16465
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$R({
16494
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
16466
16495
  endUserIpAddress
16467
16496
  }, carrier));
16468
16497
  });
16469
16498
  /**
16470
16499
  * The `addFunds` method allows you to add funds to a funding source.
16471
16500
  */
16472
- this.addFunds = (amount, fundingSourceId) => __async$17(this, null, function* () {
16501
+ this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16473
16502
  return yield this.client.put(
16474
16503
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16475
16504
  amount
@@ -16479,7 +16508,7 @@ class FundingSourcesAPI {
16479
16508
  * The `metadata` method returns seller-specific requirements for creating funding sources
16480
16509
  * and attaching carriers
16481
16510
  */
16482
- this.metadata = () => __async$17(this, null, function* () {
16511
+ this.metadata = () => __async$19(this, null, function* () {
16483
16512
  return yield this.client.get("/v1/funding_sources/metadata");
16484
16513
  });
16485
16514
  /**
@@ -16548,7 +16577,7 @@ class InsuranceAPI {
16548
16577
  }
16549
16578
  }
16550
16579
 
16551
- var __async$16 = (__this, __arguments, generator) => {
16580
+ var __async$18 = (__this, __arguments, generator) => {
16552
16581
  return new Promise((resolve, reject) => {
16553
16582
  var fulfilled = (value) => {
16554
16583
  try {
@@ -16580,13 +16609,13 @@ class InvoiceAddressAPI {
16580
16609
  /**
16581
16610
  * The `create` method creates a new invoice address for a given user.
16582
16611
  */
16583
- this.create = (invoiceAddress) => __async$16(this, null, function* () {
16612
+ this.create = (invoiceAddress) => __async$18(this, null, function* () {
16584
16613
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16585
16614
  });
16586
16615
  /**
16587
16616
  * The `update` method updates a invoice address for a given user.
16588
16617
  */
16589
- this.update = (invoiceAddress) => __async$16(this, null, function* () {
16618
+ this.update = (invoiceAddress) => __async$18(this, null, function* () {
16590
16619
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16591
16620
  });
16592
16621
  this.client = client;
@@ -16648,17 +16677,17 @@ class LabelsAPI {
16648
16677
  }
16649
16678
  }
16650
16679
 
16651
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
16652
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
16653
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
16680
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
16681
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
16682
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
16654
16683
  var __objRest$t = (source, exclude) => {
16655
16684
  var target = {};
16656
16685
  for (var prop in source)
16657
- if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
16686
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
16658
16687
  target[prop] = source[prop];
16659
- if (source != null && __getOwnPropSymbols$_)
16660
- for (var prop of __getOwnPropSymbols$_(source)) {
16661
- if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
16688
+ if (source != null && __getOwnPropSymbols$11)
16689
+ for (var prop of __getOwnPropSymbols$11(source)) {
16690
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
16662
16691
  target[prop] = source[prop];
16663
16692
  }
16664
16693
  return target;
@@ -16779,19 +16808,19 @@ class RateCardsAPI {
16779
16808
  }
16780
16809
  }
16781
16810
 
16782
- var __defProp$Q = Object.defineProperty;
16783
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16784
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16785
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16786
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16787
- var __spreadValues$Q = (a, b) => {
16811
+ var __defProp$T = Object.defineProperty;
16812
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
16813
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
16814
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
16815
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16816
+ var __spreadValues$T = (a, b) => {
16788
16817
  for (var prop in b || (b = {}))
16789
- if (__hasOwnProp$Z.call(b, prop))
16790
- __defNormalProp$Q(a, prop, b[prop]);
16791
- if (__getOwnPropSymbols$Z)
16792
- for (var prop of __getOwnPropSymbols$Z(b)) {
16793
- if (__propIsEnum$Z.call(b, prop))
16794
- __defNormalProp$Q(a, prop, b[prop]);
16818
+ if (__hasOwnProp$10.call(b, prop))
16819
+ __defNormalProp$T(a, prop, b[prop]);
16820
+ if (__getOwnPropSymbols$10)
16821
+ for (var prop of __getOwnPropSymbols$10(b)) {
16822
+ if (__propIsEnum$10.call(b, prop))
16823
+ __defNormalProp$T(a, prop, b[prop]);
16795
16824
  }
16796
16825
  return a;
16797
16826
  };
@@ -16813,7 +16842,7 @@ class RatesAPI {
16813
16842
  * method.
16814
16843
  */
16815
16844
  this.estimate = (params) => {
16816
- return this.client.post("/v1/rates/estimate", __spreadValues$Q({}, params));
16845
+ return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
16817
16846
  };
16818
16847
  this.client = client;
16819
16848
  }
@@ -16893,7 +16922,7 @@ class SalesOrdersAPI {
16893
16922
  }
16894
16923
  }
16895
16924
 
16896
- var __async$15 = (__this, __arguments, generator) => {
16925
+ var __async$17 = (__this, __arguments, generator) => {
16897
16926
  return new Promise((resolve, reject) => {
16898
16927
  var fulfilled = (value) => {
16899
16928
  try {
@@ -16951,7 +16980,7 @@ class SellersAPI {
16951
16980
  /**
16952
16981
  * Deletes an API Key
16953
16982
  */
16954
- this.deleteSellerApiKey = (_0) => __async$15(this, [_0], function* ({
16983
+ this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16955
16984
  encryptedApiKey,
16956
16985
  sellerId,
16957
16986
  isSandbox
@@ -16997,19 +17026,19 @@ class SellersAPI {
16997
17026
  }
16998
17027
  }
16999
17028
 
17000
- var __defProp$P = Object.defineProperty;
17001
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
17002
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
17003
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
17004
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17005
- var __spreadValues$P = (a, b) => {
17029
+ var __defProp$S = Object.defineProperty;
17030
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
17031
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
17032
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
17033
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17034
+ var __spreadValues$S = (a, b) => {
17006
17035
  for (var prop in b || (b = {}))
17007
- if (__hasOwnProp$Y.call(b, prop))
17008
- __defNormalProp$P(a, prop, b[prop]);
17009
- if (__getOwnPropSymbols$Y)
17010
- for (var prop of __getOwnPropSymbols$Y(b)) {
17011
- if (__propIsEnum$Y.call(b, prop))
17012
- __defNormalProp$P(a, prop, b[prop]);
17036
+ if (__hasOwnProp$$.call(b, prop))
17037
+ __defNormalProp$S(a, prop, b[prop]);
17038
+ if (__getOwnPropSymbols$$)
17039
+ for (var prop of __getOwnPropSymbols$$(b)) {
17040
+ if (__propIsEnum$$.call(b, prop))
17041
+ __defNormalProp$S(a, prop, b[prop]);
17013
17042
  }
17014
17043
  return a;
17015
17044
  };
@@ -17021,7 +17050,7 @@ class ServicePointsAPI {
17021
17050
  * Either an address, coordinates, or an address query
17022
17051
  */
17023
17052
  this.list = (options) => {
17024
- return this.client.post("/v1/service_points/list", __spreadValues$P({}, options));
17053
+ return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
17025
17054
  };
17026
17055
  /**
17027
17056
  * Get a specific service point by its carrier code, country code, and id
@@ -17039,7 +17068,7 @@ class ServicePointsAPI {
17039
17068
  }
17040
17069
  }
17041
17070
 
17042
- var __async$14 = (__this, __arguments, generator) => {
17071
+ var __async$16 = (__this, __arguments, generator) => {
17043
17072
  return new Promise((resolve, reject) => {
17044
17073
  var fulfilled = (value) => {
17045
17074
  try {
@@ -17088,7 +17117,7 @@ class ShipmentsAPI {
17088
17117
  * The `create` method allows for creating shipments based on a list of shipment
17089
17118
  * items passed into this method.
17090
17119
  */
17091
- this.create = (...shipments) => __async$14(this, null, function* () {
17120
+ this.create = (...shipments) => __async$16(this, null, function* () {
17092
17121
  return this.client.post("/v1/shipments", {
17093
17122
  shipments
17094
17123
  });
@@ -34505,38 +34534,38 @@ class WebhooksAPI {
34505
34534
  }
34506
34535
  }
34507
34536
 
34508
- var __defProp$O = Object.defineProperty;
34509
- var __defProps$L = Object.defineProperties;
34510
- var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
34511
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
34512
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
34513
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
34514
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34515
- var __spreadValues$O = (a, b) => {
34537
+ var __defProp$R = Object.defineProperty;
34538
+ var __defProps$O = Object.defineProperties;
34539
+ var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
34540
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
34541
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
34542
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
34543
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34544
+ var __spreadValues$R = (a, b) => {
34516
34545
  for (var prop in b || (b = {}))
34517
- if (__hasOwnProp$X.call(b, prop))
34518
- __defNormalProp$O(a, prop, b[prop]);
34519
- if (__getOwnPropSymbols$X)
34520
- for (var prop of __getOwnPropSymbols$X(b)) {
34521
- if (__propIsEnum$X.call(b, prop))
34522
- __defNormalProp$O(a, prop, b[prop]);
34546
+ if (__hasOwnProp$_.call(b, prop))
34547
+ __defNormalProp$R(a, prop, b[prop]);
34548
+ if (__getOwnPropSymbols$_)
34549
+ for (var prop of __getOwnPropSymbols$_(b)) {
34550
+ if (__propIsEnum$_.call(b, prop))
34551
+ __defNormalProp$R(a, prop, b[prop]);
34523
34552
  }
34524
34553
  return a;
34525
34554
  };
34526
- var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
34555
+ var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
34527
34556
  var __objRest$s = (source, exclude) => {
34528
34557
  var target = {};
34529
34558
  for (var prop in source)
34530
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
34559
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
34531
34560
  target[prop] = source[prop];
34532
- if (source != null && __getOwnPropSymbols$X)
34533
- for (var prop of __getOwnPropSymbols$X(source)) {
34534
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
34561
+ if (source != null && __getOwnPropSymbols$_)
34562
+ for (var prop of __getOwnPropSymbols$_(source)) {
34563
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
34535
34564
  target[prop] = source[prop];
34536
34565
  }
34537
34566
  return target;
34538
34567
  };
34539
- var __async$13 = (__this, __arguments, generator) => {
34568
+ var __async$15 = (__this, __arguments, generator) => {
34540
34569
  return new Promise((resolve, reject) => {
34541
34570
  var fulfilled = (value) => {
34542
34571
  try {
@@ -34559,7 +34588,7 @@ var __async$13 = (__this, __arguments, generator) => {
34559
34588
  const logger$1 = E({
34560
34589
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34561
34590
  name: "shipengine-api",
34562
- serializers: __spreadProps$L(__spreadValues$O({}, k), {
34591
+ serializers: __spreadProps$O(__spreadValues$R({}, k), {
34563
34592
  req: (req) => ({
34564
34593
  headers: req.headers,
34565
34594
  method: req.method,
@@ -34584,7 +34613,7 @@ class ShipEngineAPI {
34584
34613
  this.getSandboxToken = getSandboxToken;
34585
34614
  const client = axios.create({
34586
34615
  baseURL,
34587
- headers: __spreadProps$L(__spreadValues$O({}, headers), {
34616
+ headers: __spreadProps$O(__spreadValues$R({}, headers), {
34588
34617
  "Content-Type": "application/json"
34589
34618
  }),
34590
34619
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34624,7 +34653,7 @@ class ShipEngineAPI {
34624
34653
  });
34625
34654
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34626
34655
  client.interceptors.request.use(
34627
- (config) => __async$13(this, null, function* () {
34656
+ (config) => __async$15(this, null, function* () {
34628
34657
  if (config.isSandbox) {
34629
34658
  if (!this.sandboxToken) {
34630
34659
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34653,7 +34682,7 @@ class ShipEngineAPI {
34653
34682
  }
34654
34683
  return res;
34655
34684
  },
34656
- (err) => __async$13(this, null, function* () {
34685
+ (err) => __async$15(this, null, function* () {
34657
34686
  var _a, _b, _c, _d, _e;
34658
34687
  if (debug) {
34659
34688
  logger$1.error(
@@ -34702,7 +34731,7 @@ class ShipEngineAPI {
34702
34731
  * that token (also known as Seller ID)
34703
34732
  */
34704
34733
  getTenant(isSandbox) {
34705
- return __async$13(this, null, function* () {
34734
+ return __async$15(this, null, function* () {
34706
34735
  var _a;
34707
34736
  if (!isSandbox) {
34708
34737
  return this.getTenantFromToken(this.token);
@@ -34760,6 +34789,13 @@ class ShipEngineAPI {
34760
34789
  get accountBilling() {
34761
34790
  return new AccountBillingAPI(this.client);
34762
34791
  }
34792
+ /**
34793
+ * The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
34794
+ * in ShipEngine API.
34795
+ */
34796
+ get accountRefundAssist() {
34797
+ return new AccountRefundAssistAPI(this.client);
34798
+ }
34763
34799
  /**
34764
34800
  * The `addresses` method provides access to the Address Validation endpoints
34765
34801
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -35021,25 +35057,25 @@ const delay = (ms) => new Promise((resolve) => {
35021
35057
 
35022
35058
  const onError = (_errors) => _default();
35023
35059
 
35024
- var __defProp$N = Object.defineProperty;
35025
- var __defProps$K = Object.defineProperties;
35026
- var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
35027
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
35028
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
35029
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
35030
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35031
- var __spreadValues$N = (a, b) => {
35060
+ var __defProp$Q = Object.defineProperty;
35061
+ var __defProps$N = Object.defineProperties;
35062
+ var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35063
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35064
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35065
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35066
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35067
+ var __spreadValues$Q = (a, b) => {
35032
35068
  for (var prop in b || (b = {}))
35033
- if (__hasOwnProp$W.call(b, prop))
35034
- __defNormalProp$N(a, prop, b[prop]);
35035
- if (__getOwnPropSymbols$W)
35036
- for (var prop of __getOwnPropSymbols$W(b)) {
35037
- if (__propIsEnum$W.call(b, prop))
35038
- __defNormalProp$N(a, prop, b[prop]);
35069
+ if (__hasOwnProp$Z.call(b, prop))
35070
+ __defNormalProp$Q(a, prop, b[prop]);
35071
+ if (__getOwnPropSymbols$Z)
35072
+ for (var prop of __getOwnPropSymbols$Z(b)) {
35073
+ if (__propIsEnum$Z.call(b, prop))
35074
+ __defNormalProp$Q(a, prop, b[prop]);
35039
35075
  }
35040
35076
  return a;
35041
35077
  };
35042
- var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35078
+ var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35043
35079
  const streams = [];
35044
35080
  if (process.env.NODE_ENV === "production") {
35045
35081
  streams.push({
@@ -35048,7 +35084,7 @@ if (process.env.NODE_ENV === "production") {
35048
35084
  }
35049
35085
  const logger = E({
35050
35086
  name: "shipengine",
35051
- serializers: __spreadProps$K(__spreadValues$N({}, k), {
35087
+ serializers: __spreadProps$N(__spreadValues$Q({}, k), {
35052
35088
  req: (req) => ({
35053
35089
  headers: req.headers,
35054
35090
  method: req.method,
@@ -35073,7 +35109,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35073
35109
  throw error;
35074
35110
  });
35075
35111
 
35076
- var __async$12 = (__this, __arguments, generator) => {
35112
+ var __async$14 = (__this, __arguments, generator) => {
35077
35113
  return new Promise((resolve, reject) => {
35078
35114
  var fulfilled = (value) => {
35079
35115
  try {
@@ -35096,7 +35132,7 @@ var __async$12 = (__this, __arguments, generator) => {
35096
35132
  const useCreateAccountImage = () => {
35097
35133
  const { client } = useShipEngine();
35098
35134
  return reactQuery.useMutation({
35099
- mutationFn: (data) => __async$12(void 0, null, function* () {
35135
+ mutationFn: (data) => __async$14(void 0, null, function* () {
35100
35136
  const result = yield client.accountSettings.createImage(data);
35101
35137
  return result.data;
35102
35138
  }),
@@ -35105,7 +35141,7 @@ const useCreateAccountImage = () => {
35105
35141
  });
35106
35142
  };
35107
35143
 
35108
- var __async$11 = (__this, __arguments, generator) => {
35144
+ var __async$13 = (__this, __arguments, generator) => {
35109
35145
  return new Promise((resolve, reject) => {
35110
35146
  var fulfilled = (value) => {
35111
35147
  try {
@@ -35128,7 +35164,7 @@ var __async$11 = (__this, __arguments, generator) => {
35128
35164
  const useDeleteAccountImage = () => {
35129
35165
  const { client } = useShipEngine();
35130
35166
  return reactQuery.useMutation({
35131
- mutationFn: (labelImageId) => __async$11(void 0, null, function* () {
35167
+ mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35132
35168
  const result = yield client.accountSettings.deleteImage(labelImageId);
35133
35169
  return result.data;
35134
35170
  }),
@@ -35157,7 +35193,7 @@ const useGetAccountSettings = () => {
35157
35193
  });
35158
35194
  };
35159
35195
 
35160
- var __async$10 = (__this, __arguments, generator) => {
35196
+ var __async$12 = (__this, __arguments, generator) => {
35161
35197
  return new Promise((resolve, reject) => {
35162
35198
  var fulfilled = (value) => {
35163
35199
  try {
@@ -35180,7 +35216,7 @@ var __async$10 = (__this, __arguments, generator) => {
35180
35216
  const useUpdateAccountImage = () => {
35181
35217
  const { client } = useShipEngine();
35182
35218
  return reactQuery.useMutation({
35183
- mutationFn: (data) => __async$10(void 0, null, function* () {
35219
+ mutationFn: (data) => __async$12(void 0, null, function* () {
35184
35220
  const result = yield client.accountSettings.updateImage(data);
35185
35221
  return result.data;
35186
35222
  }),
@@ -35189,7 +35225,7 @@ const useUpdateAccountImage = () => {
35189
35225
  });
35190
35226
  };
35191
35227
 
35192
- var __async$$ = (__this, __arguments, generator) => {
35228
+ var __async$11 = (__this, __arguments, generator) => {
35193
35229
  return new Promise((resolve, reject) => {
35194
35230
  var fulfilled = (value) => {
35195
35231
  try {
@@ -35212,7 +35248,7 @@ var __async$$ = (__this, __arguments, generator) => {
35212
35248
  const useUpdateAccountSettings = () => {
35213
35249
  const { client } = useShipEngine();
35214
35250
  return reactQuery.useMutation({
35215
- mutationFn: (settings) => __async$$(void 0, null, function* () {
35251
+ mutationFn: (settings) => __async$11(void 0, null, function* () {
35216
35252
  const result = yield client.accountSettings.update(settings);
35217
35253
  return result.data;
35218
35254
  }),
@@ -35221,6 +35257,137 @@ const useUpdateAccountSettings = () => {
35221
35257
  });
35222
35258
  };
35223
35259
 
35260
+ var __defProp$P = Object.defineProperty;
35261
+ var __defProps$M = Object.defineProperties;
35262
+ var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
35263
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
35264
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
35265
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
35266
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35267
+ var __spreadValues$P = (a, b) => {
35268
+ for (var prop in b || (b = {}))
35269
+ if (__hasOwnProp$Y.call(b, prop))
35270
+ __defNormalProp$P(a, prop, b[prop]);
35271
+ if (__getOwnPropSymbols$Y)
35272
+ for (var prop of __getOwnPropSymbols$Y(b)) {
35273
+ if (__propIsEnum$Y.call(b, prop))
35274
+ __defNormalProp$P(a, prop, b[prop]);
35275
+ }
35276
+ return a;
35277
+ };
35278
+ var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
35279
+ const useListAccountAddons = (params) => {
35280
+ const { client } = useShipEngine();
35281
+ return reactQuery.useQuery(__spreadProps$M(__spreadValues$P({}, params), {
35282
+ onError,
35283
+ queryFn: () => client.accountAddons.list(),
35284
+ queryKey: ["useListAccountAddons"],
35285
+ select: (result) => result.data.addons
35286
+ }));
35287
+ };
35288
+
35289
+ var __defProp$O = Object.defineProperty;
35290
+ var __defProps$L = Object.defineProperties;
35291
+ var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
35292
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
35293
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
35294
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
35295
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35296
+ var __spreadValues$O = (a, b) => {
35297
+ for (var prop in b || (b = {}))
35298
+ if (__hasOwnProp$X.call(b, prop))
35299
+ __defNormalProp$O(a, prop, b[prop]);
35300
+ if (__getOwnPropSymbols$X)
35301
+ for (var prop of __getOwnPropSymbols$X(b)) {
35302
+ if (__propIsEnum$X.call(b, prop))
35303
+ __defNormalProp$O(a, prop, b[prop]);
35304
+ }
35305
+ return a;
35306
+ };
35307
+ var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35308
+ var __async$10 = (__this, __arguments, generator) => {
35309
+ return new Promise((resolve, reject) => {
35310
+ var fulfilled = (value) => {
35311
+ try {
35312
+ step(generator.next(value));
35313
+ } catch (e) {
35314
+ reject(e);
35315
+ }
35316
+ };
35317
+ var rejected = (value) => {
35318
+ try {
35319
+ step(generator.throw(value));
35320
+ } catch (e) {
35321
+ reject(e);
35322
+ }
35323
+ };
35324
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35325
+ step((generator = generator.apply(__this, __arguments)).next());
35326
+ });
35327
+ };
35328
+ const useEnableAccountAddon = (params) => {
35329
+ const { client } = useShipEngine();
35330
+ return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35331
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35332
+ const result = yield client.accountAddons.enable(addonType);
35333
+ return result.data;
35334
+ }),
35335
+ mutationKey: ["useEnableAccountAddon"],
35336
+ onError
35337
+ }));
35338
+ };
35339
+
35340
+ var __defProp$N = Object.defineProperty;
35341
+ var __defProps$K = Object.defineProperties;
35342
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
35343
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
35344
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
35345
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
35346
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35347
+ var __spreadValues$N = (a, b) => {
35348
+ for (var prop in b || (b = {}))
35349
+ if (__hasOwnProp$W.call(b, prop))
35350
+ __defNormalProp$N(a, prop, b[prop]);
35351
+ if (__getOwnPropSymbols$W)
35352
+ for (var prop of __getOwnPropSymbols$W(b)) {
35353
+ if (__propIsEnum$W.call(b, prop))
35354
+ __defNormalProp$N(a, prop, b[prop]);
35355
+ }
35356
+ return a;
35357
+ };
35358
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35359
+ var __async$$ = (__this, __arguments, generator) => {
35360
+ return new Promise((resolve, reject) => {
35361
+ var fulfilled = (value) => {
35362
+ try {
35363
+ step(generator.next(value));
35364
+ } catch (e) {
35365
+ reject(e);
35366
+ }
35367
+ };
35368
+ var rejected = (value) => {
35369
+ try {
35370
+ step(generator.throw(value));
35371
+ } catch (e) {
35372
+ reject(e);
35373
+ }
35374
+ };
35375
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35376
+ step((generator = generator.apply(__this, __arguments)).next());
35377
+ });
35378
+ };
35379
+ const useDisableAccountAddon = (params) => {
35380
+ const { client } = useShipEngine();
35381
+ return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35382
+ mutationFn: (addonType) => __async$$(void 0, null, function* () {
35383
+ const result = yield client.accountAddons.disable(addonType);
35384
+ return result.data;
35385
+ }),
35386
+ mutationKey: ["useDisableAccountAddon"],
35387
+ onError
35388
+ }));
35389
+ };
35390
+
35224
35391
  var __defProp$M = Object.defineProperty;
35225
35392
  var __defProps$J = Object.defineProperties;
35226
35393
  var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
@@ -35240,16 +35407,48 @@ var __spreadValues$M = (a, b) => {
35240
35407
  return a;
35241
35408
  };
35242
35409
  var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35243
- const useListAccountAddons = (params) => {
35410
+ const useListAccountFeatures = (params) => {
35244
35411
  const { client } = useShipEngine();
35245
35412
  return reactQuery.useQuery(__spreadProps$J(__spreadValues$M({}, params), {
35246
35413
  onError,
35247
- queryFn: () => client.accountAddons.list(),
35248
- queryKey: ["useListAccountAddons"],
35249
- select: (result) => result.data.addons
35414
+ queryFn: () => client.accountFeatures.list(),
35415
+ queryKey: ["useListAccountFeatures"],
35416
+ select: (result) => result.data.features
35250
35417
  }));
35251
35418
  };
35252
35419
 
35420
+ var __async$_ = (__this, __arguments, generator) => {
35421
+ return new Promise((resolve, reject) => {
35422
+ var fulfilled = (value) => {
35423
+ try {
35424
+ step(generator.next(value));
35425
+ } catch (e) {
35426
+ reject(e);
35427
+ }
35428
+ };
35429
+ var rejected = (value) => {
35430
+ try {
35431
+ step(generator.throw(value));
35432
+ } catch (e) {
35433
+ reject(e);
35434
+ }
35435
+ };
35436
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35437
+ step((generator = generator.apply(__this, __arguments)).next());
35438
+ });
35439
+ };
35440
+ const useRequestAccountFeature = () => {
35441
+ const { client } = useShipEngine();
35442
+ return reactQuery.useMutation({
35443
+ mutationFn: (request) => __async$_(void 0, null, function* () {
35444
+ const result = yield client.accountFeatures.request(request);
35445
+ return result.data;
35446
+ }),
35447
+ mutationKey: ["useRequestAccountFeature"],
35448
+ onError
35449
+ });
35450
+ };
35451
+
35253
35452
  var __defProp$L = Object.defineProperty;
35254
35453
  var __defProps$I = Object.defineProperties;
35255
35454
  var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
@@ -35269,7 +35468,7 @@ var __spreadValues$L = (a, b) => {
35269
35468
  return a;
35270
35469
  };
35271
35470
  var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35272
- var __async$_ = (__this, __arguments, generator) => {
35471
+ var __async$Z = (__this, __arguments, generator) => {
35273
35472
  return new Promise((resolve, reject) => {
35274
35473
  var fulfilled = (value) => {
35275
35474
  try {
@@ -35289,14 +35488,13 @@ var __async$_ = (__this, __arguments, generator) => {
35289
35488
  step((generator = generator.apply(__this, __arguments)).next());
35290
35489
  });
35291
35490
  };
35292
- const useEnableAccountAddon = (params) => {
35491
+ const useDisableRefundAssist = (params) => {
35293
35492
  const { client } = useShipEngine();
35294
35493
  return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35295
- mutationFn: (addonType) => __async$_(void 0, null, function* () {
35296
- const result = yield client.accountAddons.enable(addonType);
35297
- return result.data;
35494
+ mutationFn: () => __async$Z(void 0, null, function* () {
35495
+ yield client.accountRefundAssist.disable();
35298
35496
  }),
35299
- mutationKey: ["useEnableAccountAddon"],
35497
+ mutationKey: ["useDisableRefundAssist"],
35300
35498
  onError
35301
35499
  }));
35302
35500
  };
@@ -35320,7 +35518,7 @@ var __spreadValues$K = (a, b) => {
35320
35518
  return a;
35321
35519
  };
35322
35520
  var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35323
- var __async$Z = (__this, __arguments, generator) => {
35521
+ var __async$Y = (__this, __arguments, generator) => {
35324
35522
  return new Promise((resolve, reject) => {
35325
35523
  var fulfilled = (value) => {
35326
35524
  try {
@@ -35340,14 +35538,13 @@ var __async$Z = (__this, __arguments, generator) => {
35340
35538
  step((generator = generator.apply(__this, __arguments)).next());
35341
35539
  });
35342
35540
  };
35343
- const useDisableAccountAddon = (params) => {
35541
+ const useEnableRefundAssist = (params) => {
35344
35542
  const { client } = useShipEngine();
35345
35543
  return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35346
- mutationFn: (addonType) => __async$Z(void 0, null, function* () {
35347
- const result = yield client.accountAddons.disable(addonType);
35348
- return result.data;
35544
+ mutationFn: () => __async$Y(void 0, null, function* () {
35545
+ yield client.accountRefundAssist.enable();
35349
35546
  }),
35350
- mutationKey: ["useDisableAccountAddon"],
35547
+ mutationKey: ["useEnableRefundAssist"],
35351
35548
  onError
35352
35549
  }));
35353
35550
  };
@@ -35371,48 +35568,16 @@ var __spreadValues$J = (a, b) => {
35371
35568
  return a;
35372
35569
  };
35373
35570
  var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35374
- const useListAccountFeatures = (params) => {
35571
+ const useGetRefundAssist = (params) => {
35375
35572
  const { client } = useShipEngine();
35376
35573
  return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35377
35574
  onError,
35378
- queryFn: () => client.accountFeatures.list(),
35379
- queryKey: ["useListAccountFeatures"],
35380
- select: (result) => result.data.features
35575
+ queryFn: () => client.accountRefundAssist.get(),
35576
+ queryKey: ["useGetRefundAssist"],
35577
+ select: (result) => result.data.refundAssistCarriers
35381
35578
  }));
35382
35579
  };
35383
35580
 
35384
- var __async$Y = (__this, __arguments, generator) => {
35385
- return new Promise((resolve, reject) => {
35386
- var fulfilled = (value) => {
35387
- try {
35388
- step(generator.next(value));
35389
- } catch (e) {
35390
- reject(e);
35391
- }
35392
- };
35393
- var rejected = (value) => {
35394
- try {
35395
- step(generator.throw(value));
35396
- } catch (e) {
35397
- reject(e);
35398
- }
35399
- };
35400
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35401
- step((generator = generator.apply(__this, __arguments)).next());
35402
- });
35403
- };
35404
- const useRequestAccountFeature = () => {
35405
- const { client } = useShipEngine();
35406
- return reactQuery.useMutation({
35407
- mutationFn: (request) => __async$Y(void 0, null, function* () {
35408
- const result = yield client.accountFeatures.request(request);
35409
- return result.data;
35410
- }),
35411
- mutationKey: ["useRequestAccountFeature"],
35412
- onError
35413
- });
35414
- };
35415
-
35416
35581
  var __async$X = (__this, __arguments, generator) => {
35417
35582
  return new Promise((resolve, reject) => {
35418
35583
  var fulfilled = (value) => {
@@ -40440,6 +40605,7 @@ exports.AccountBillingAPI = AccountBillingAPI;
40440
40605
  exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
40441
40606
  exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
40442
40607
  exports.AccountFeaturesAPI = AccountFeaturesAPI;
40608
+ exports.AccountRefundAssistAPI = AccountRefundAssistAPI;
40443
40609
  exports.AccountSettingsAPI = AccountSettingsAPI;
40444
40610
  exports.AddressesAPI = AddressesAPI;
40445
40611
  exports.AlchemyContext = AlchemyContext;
@@ -40536,9 +40702,11 @@ exports.useDeleteShippingRule = useDeleteShippingRule;
40536
40702
  exports.useDeleteWarehouse = useDeleteWarehouse;
40537
40703
  exports.useDeleteWebhook = useDeleteWebhook;
40538
40704
  exports.useDisableAccountAddon = useDisableAccountAddon;
40705
+ exports.useDisableRefundAssist = useDisableRefundAssist;
40539
40706
  exports.useDownloadRateCard = useDownloadRateCard;
40540
40707
  exports.useEditShippingRule = useEditShippingRule;
40541
40708
  exports.useEnableAccountAddon = useEnableAccountAddon;
40709
+ exports.useEnableRefundAssist = useEnableRefundAssist;
40542
40710
  exports.useExportLabels = useExportLabels;
40543
40711
  exports.useExportShipments = useExportShipments;
40544
40712
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
@@ -40566,6 +40734,7 @@ exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
40566
40734
  exports.useGetPaymentAccount = useGetPaymentAccount;
40567
40735
  exports.useGetPaymentMethods = useGetPaymentMethods;
40568
40736
  exports.useGetRateCardById = useGetRateCardById;
40737
+ exports.useGetRefundAssist = useGetRefundAssist;
40569
40738
  exports.useGetSalesOrder = useGetSalesOrder;
40570
40739
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;
40571
40740
  exports.useGetSalesOrderShipment = useGetSalesOrderShipment;