@shipengine/alchemy 6.0.79 → 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 +786 -485
  2. package/index.mjs +780 -486
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -4883,33 +4883,41 @@ var _getHolder = getHolder$2;
4883
4883
 
4884
4884
  /** Used as references for various `Number` constants. */
4885
4885
 
4886
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
4886
+ var _isIndex;
4887
+ var hasRequired_isIndex;
4887
4888
 
4888
- /** Used to detect unsigned integer values. */
4889
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4889
+ function require_isIndex () {
4890
+ if (hasRequired_isIndex) return _isIndex;
4891
+ hasRequired_isIndex = 1;
4892
+ var MAX_SAFE_INTEGER = 9007199254740991;
4890
4893
 
4891
- /**
4892
- * Checks if `value` is a valid array-like index.
4893
- *
4894
- * @private
4895
- * @param {*} value The value to check.
4896
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4897
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4898
- */
4899
- function isIndex$3(value, length) {
4900
- var type = typeof value;
4901
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
4894
+ /** Used to detect unsigned integer values. */
4895
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4902
4896
 
4903
- return !!length &&
4904
- (type == 'number' ||
4905
- (type != 'symbol' && reIsUint.test(value))) &&
4906
- (value > -1 && value % 1 == 0 && value < length);
4907
- }
4897
+ /**
4898
+ * Checks if `value` is a valid array-like index.
4899
+ *
4900
+ * @private
4901
+ * @param {*} value The value to check.
4902
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4903
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4904
+ */
4905
+ function isIndex(value, length) {
4906
+ var type = typeof value;
4907
+ length = length == null ? MAX_SAFE_INTEGER : length;
4908
4908
 
4909
- var _isIndex = isIndex$3;
4909
+ return !!length &&
4910
+ (type == 'number' ||
4911
+ (type != 'symbol' && reIsUint.test(value))) &&
4912
+ (value > -1 && value % 1 == 0 && value < length);
4913
+ }
4914
+
4915
+ _isIndex = isIndex;
4916
+ return _isIndex;
4917
+ }
4910
4918
 
4911
4919
  var copyArray$2 = _copyArray,
4912
- isIndex$2 = _isIndex;
4920
+ isIndex$2 = require_isIndex();
4913
4921
 
4914
4922
  /* Built-in method references for those with the same name as other `lodash` methods. */
4915
4923
  var nativeMin$1 = Math.min;
@@ -6102,7 +6110,7 @@ var baseTimes = _baseTimes,
6102
6110
  isArguments$2 = requireIsArguments(),
6103
6111
  isArray$f = isArray_1,
6104
6112
  isBuffer$4 = isBufferExports,
6105
- isIndex$1 = _isIndex,
6113
+ isIndex$1 = require_isIndex(),
6106
6114
  isTypedArray$1 = requireIsTypedArray();
6107
6115
 
6108
6116
  /** Used for built-in method references. */
@@ -9433,7 +9441,7 @@ var _baseHasIn = baseHasIn$1;
9433
9441
  var castPath = _castPath,
9434
9442
  isArguments$1 = requireIsArguments(),
9435
9443
  isArray$8 = isArray_1,
9436
- isIndex = _isIndex,
9444
+ isIndex = require_isIndex(),
9437
9445
  isLength = isLength_1,
9438
9446
  toKey$3 = _toKey;
9439
9447
 
@@ -10323,7 +10331,7 @@ function require_isIterateeCall () {
10323
10331
  hasRequired_isIterateeCall = 1;
10324
10332
  var eq = requireEq(),
10325
10333
  isArrayLike = isArrayLike_1,
10326
- isIndex = _isIndex,
10334
+ isIndex = require_isIndex(),
10327
10335
  isObject = isObject_1;
10328
10336
 
10329
10337
  /**
@@ -10805,17 +10813,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10805
10813
  return FeatureId2;
10806
10814
  })(FeatureId || {});
10807
10815
 
10808
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
10809
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
10810
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
10816
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
10817
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
10818
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
10811
10819
  var __objRest$x = (source, exclude) => {
10812
10820
  var target = {};
10813
10821
  for (var prop in source)
10814
- if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
10822
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
10815
10823
  target[prop] = source[prop];
10816
- if (source != null && __getOwnPropSymbols$12)
10817
- for (var prop of __getOwnPropSymbols$12(source)) {
10818
- if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
10824
+ if (source != null && __getOwnPropSymbols$16)
10825
+ for (var prop of __getOwnPropSymbols$16(source)) {
10826
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
10819
10827
  target[prop] = source[prop];
10820
10828
  }
10821
10829
  return target;
@@ -10951,17 +10959,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10951
10959
  RateCardStatus
10952
10960
  }, Symbol.toStringTag, { value: 'Module' }));
10953
10961
 
10954
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10955
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10956
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10962
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
10963
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
10964
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
10957
10965
  var __objRest$w = (source, exclude) => {
10958
10966
  var target = {};
10959
10967
  for (var prop in source)
10960
- if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10968
+ if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
10961
10969
  target[prop] = source[prop];
10962
- if (source != null && __getOwnPropSymbols$11)
10963
- for (var prop of __getOwnPropSymbols$11(source)) {
10964
- if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10970
+ if (source != null && __getOwnPropSymbols$15)
10971
+ for (var prop of __getOwnPropSymbols$15(source)) {
10972
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
10965
10973
  target[prop] = source[prop];
10966
10974
  }
10967
10975
  return target;
@@ -11059,6 +11067,35 @@ class AccountFeaturesAPI {
11059
11067
  }
11060
11068
  }
11061
11069
 
11070
+ class AccountRefundAssistAPI {
11071
+ constructor(client) {
11072
+ this.client = client;
11073
+ /**
11074
+ * The `get` method retrieves the refund assist configuration for all carriers,
11075
+ * including if it is enabled for the user.
11076
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
11077
+ */
11078
+ this.get = () => {
11079
+ return this.client.get("/v1/account/refund_assist");
11080
+ };
11081
+ /**
11082
+ * The `enable` method enables refund assist globally for the user.
11083
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
11084
+ */
11085
+ this.enable = () => {
11086
+ return this.client.post("/v1/account/refund_assist/enable");
11087
+ };
11088
+ /**
11089
+ * The `disable` method disables refund assist globally for the user.
11090
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
11091
+ */
11092
+ this.disable = () => {
11093
+ return this.client.post("/v1/account/refund_assist/disable");
11094
+ };
11095
+ this.client = client;
11096
+ }
11097
+ }
11098
+
11062
11099
  class AddressesAPI {
11063
11100
  constructor(client) {
11064
11101
  this.client = client;
@@ -13862,7 +13899,7 @@ var ipaddr = {
13862
13899
  }).call(commonjsGlobal);
13863
13900
  } (ipaddr));
13864
13901
 
13865
- var __async$18 = (__this, __arguments, generator) => {
13902
+ var __async$1c = (__this, __arguments, generator) => {
13866
13903
  return new Promise((resolve, reject) => {
13867
13904
  var fulfilled = (value) => {
13868
13905
  try {
@@ -13882,7 +13919,7 @@ var __async$18 = (__this, __arguments, generator) => {
13882
13919
  step((generator = generator.apply(__this, __arguments)).next());
13883
13920
  });
13884
13921
  };
13885
- const getEndUserIpAddress = () => __async$18(void 0, null, function* () {
13922
+ const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13886
13923
  try {
13887
13924
  const response = yield axios.get("https://api.ipify.org/?format=json");
13888
13925
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13943,38 +13980,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13943
13980
  return obj;
13944
13981
  };
13945
13982
 
13946
- var __defProp$R = Object.defineProperty;
13947
- var __defProps$L = Object.defineProperties;
13948
- var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
13949
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
13950
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
13951
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
13952
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13953
- var __spreadValues$R = (a, b) => {
13983
+ var __defProp$V = Object.defineProperty;
13984
+ var __defProps$P = Object.defineProperties;
13985
+ var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
13986
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
13987
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
13988
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
13989
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13990
+ var __spreadValues$V = (a, b) => {
13954
13991
  for (var prop in b || (b = {}))
13955
- if (__hasOwnProp$10.call(b, prop))
13956
- __defNormalProp$R(a, prop, b[prop]);
13957
- if (__getOwnPropSymbols$10)
13958
- for (var prop of __getOwnPropSymbols$10(b)) {
13959
- if (__propIsEnum$10.call(b, prop))
13960
- __defNormalProp$R(a, prop, b[prop]);
13992
+ if (__hasOwnProp$14.call(b, prop))
13993
+ __defNormalProp$V(a, prop, b[prop]);
13994
+ if (__getOwnPropSymbols$14)
13995
+ for (var prop of __getOwnPropSymbols$14(b)) {
13996
+ if (__propIsEnum$14.call(b, prop))
13997
+ __defNormalProp$V(a, prop, b[prop]);
13961
13998
  }
13962
13999
  return a;
13963
14000
  };
13964
- var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
14001
+ var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
13965
14002
  var __objRest$v = (source, exclude) => {
13966
14003
  var target = {};
13967
14004
  for (var prop in source)
13968
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
14005
+ if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
13969
14006
  target[prop] = source[prop];
13970
- if (source != null && __getOwnPropSymbols$10)
13971
- for (var prop of __getOwnPropSymbols$10(source)) {
13972
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
14007
+ if (source != null && __getOwnPropSymbols$14)
14008
+ for (var prop of __getOwnPropSymbols$14(source)) {
14009
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
13973
14010
  target[prop] = source[prop];
13974
14011
  }
13975
14012
  return target;
13976
14013
  };
13977
- var __async$17 = (__this, __arguments, generator) => {
14014
+ var __async$1b = (__this, __arguments, generator) => {
13978
14015
  return new Promise((resolve, reject) => {
13979
14016
  var fulfilled = (value) => {
13980
14017
  try {
@@ -14014,12 +14051,12 @@ class CarriersAPI {
14014
14051
  /**
14015
14052
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14016
14053
  */
14017
- this.connect = (_a) => __async$17(this, null, function* () {
14054
+ this.connect = (_a) => __async$1b(this, null, function* () {
14018
14055
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14019
14056
  const endUserIpAddress = yield getEndUserIpAddress();
14020
14057
  if (!endUserIpAddress)
14021
14058
  return Promise.reject([new CodedError("Unable to get IP address")]);
14022
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$L(__spreadValues$R({}, connection), {
14059
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
14023
14060
  endUserIpAddress
14024
14061
  }));
14025
14062
  });
@@ -14099,26 +14136,36 @@ class CarriersAPI {
14099
14136
  this.delete = (carrierId) => {
14100
14137
  return this.client.delete(`/v1/carriers/${carrierId}`);
14101
14138
  };
14139
+ /**
14140
+ * The `acceptTerms` method allows users to accept new versions of carrier terms.
14141
+ * Returns the status of each term.
14142
+ */
14143
+ this.acceptTerms = (carrierId, request) => {
14144
+ return this.client.post(
14145
+ `/v1/carriers/${carrierId}/accepted_terms`,
14146
+ request
14147
+ );
14148
+ };
14102
14149
  this.client = client;
14103
14150
  }
14104
14151
  }
14105
14152
 
14106
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
14107
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
14108
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
14153
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
14154
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
14155
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
14109
14156
  var __objRest$u = (source, exclude) => {
14110
14157
  var target = {};
14111
14158
  for (var prop in source)
14112
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
14159
+ if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
14113
14160
  target[prop] = source[prop];
14114
- if (source != null && __getOwnPropSymbols$$)
14115
- for (var prop of __getOwnPropSymbols$$(source)) {
14116
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
14161
+ if (source != null && __getOwnPropSymbols$13)
14162
+ for (var prop of __getOwnPropSymbols$13(source)) {
14163
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
14117
14164
  target[prop] = source[prop];
14118
14165
  }
14119
14166
  return target;
14120
14167
  };
14121
- var __async$16 = (__this, __arguments, generator) => {
14168
+ var __async$1a = (__this, __arguments, generator) => {
14122
14169
  return new Promise((resolve, reject) => {
14123
14170
  var fulfilled = (value) => {
14124
14171
  try {
@@ -14160,7 +14207,7 @@ class ConnectionsAPI {
14160
14207
  /**
14161
14208
  * The `connectCarrier` method connects a carrier to account.
14162
14209
  */
14163
- this.connectCarrier = (carrierName, formData) => __async$16(this, null, function* () {
14210
+ this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14164
14211
  return yield this.client.post(
14165
14212
  `/v1/connections/carriers/${carrierName}`,
14166
14213
  formData,
@@ -16328,23 +16375,23 @@ class CustomPackagesAPI {
16328
16375
  }
16329
16376
  }
16330
16377
 
16331
- var __defProp$Q = Object.defineProperty;
16332
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
16333
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
16334
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
16335
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16336
- var __spreadValues$Q = (a, b) => {
16378
+ var __defProp$U = Object.defineProperty;
16379
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16380
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16381
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16382
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16383
+ var __spreadValues$U = (a, b) => {
16337
16384
  for (var prop in b || (b = {}))
16338
- if (__hasOwnProp$_.call(b, prop))
16339
- __defNormalProp$Q(a, prop, b[prop]);
16340
- if (__getOwnPropSymbols$_)
16341
- for (var prop of __getOwnPropSymbols$_(b)) {
16342
- if (__propIsEnum$_.call(b, prop))
16343
- __defNormalProp$Q(a, prop, b[prop]);
16385
+ if (__hasOwnProp$12.call(b, prop))
16386
+ __defNormalProp$U(a, prop, b[prop]);
16387
+ if (__getOwnPropSymbols$12)
16388
+ for (var prop of __getOwnPropSymbols$12(b)) {
16389
+ if (__propIsEnum$12.call(b, prop))
16390
+ __defNormalProp$U(a, prop, b[prop]);
16344
16391
  }
16345
16392
  return a;
16346
16393
  };
16347
- var __async$15 = (__this, __arguments, generator) => {
16394
+ var __async$19 = (__this, __arguments, generator) => {
16348
16395
  return new Promise((resolve, reject) => {
16349
16396
  var fulfilled = (value) => {
16350
16397
  try {
@@ -16383,12 +16430,12 @@ class FundingSourcesAPI {
16383
16430
  * The `create` method creates a new funding source for a given user. This requires
16384
16431
  * payment information to be collected from the user.
16385
16432
  */
16386
- this.create = (createFundingSource) => __async$15(this, null, function* () {
16433
+ this.create = (createFundingSource) => __async$19(this, null, function* () {
16387
16434
  const endUserIpAddress = yield getEndUserIpAddress();
16388
16435
  if (!endUserIpAddress) {
16389
16436
  return Promise.reject([new CodedError("Unable to get IP address")]);
16390
16437
  }
16391
- return yield this.client.post("/v1/funding_sources", __spreadValues$Q({
16438
+ return yield this.client.post("/v1/funding_sources", __spreadValues$U({
16392
16439
  endUserIpAddress
16393
16440
  }, createFundingSource));
16394
16441
  });
@@ -16397,7 +16444,7 @@ class FundingSourcesAPI {
16397
16444
  * user to update the billing address or payment information associated with the
16398
16445
  * funding source.
16399
16446
  */
16400
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$15(this, null, function* () {
16447
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16401
16448
  const endUserIpAddress = yield getEndUserIpAddress();
16402
16449
  if (!endUserIpAddress) {
16403
16450
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16407,7 +16454,7 @@ class FundingSourcesAPI {
16407
16454
  {
16408
16455
  billingInfo,
16409
16456
  endUserIpAddress,
16410
- paymentMethod: __spreadValues$Q({
16457
+ paymentMethod: __spreadValues$U({
16411
16458
  creditCardInfo
16412
16459
  }, auctanePayInfo)
16413
16460
  }
@@ -16417,19 +16464,19 @@ class FundingSourcesAPI {
16417
16464
  * The `registerCarrier` method registers a carrier account and associates
16418
16465
  * it with a given funding source.
16419
16466
  */
16420
- this.registerCarrier = (carrier) => __async$15(this, null, function* () {
16467
+ this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16421
16468
  const endUserIpAddress = yield getEndUserIpAddress();
16422
16469
  if (!endUserIpAddress) {
16423
16470
  return Promise.reject([new CodedError("Unable to get IP address")]);
16424
16471
  }
16425
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$Q({
16472
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
16426
16473
  endUserIpAddress
16427
16474
  }, carrier));
16428
16475
  });
16429
16476
  /**
16430
16477
  * The `addFunds` method allows you to add funds to a funding source.
16431
16478
  */
16432
- this.addFunds = (amount, fundingSourceId) => __async$15(this, null, function* () {
16479
+ this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16433
16480
  return yield this.client.put(
16434
16481
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16435
16482
  amount
@@ -16439,7 +16486,7 @@ class FundingSourcesAPI {
16439
16486
  * The `metadata` method returns seller-specific requirements for creating funding sources
16440
16487
  * and attaching carriers
16441
16488
  */
16442
- this.metadata = () => __async$15(this, null, function* () {
16489
+ this.metadata = () => __async$19(this, null, function* () {
16443
16490
  return yield this.client.get("/v1/funding_sources/metadata");
16444
16491
  });
16445
16492
  /**
@@ -16464,6 +16511,23 @@ class FundingSourcesAPI {
16464
16511
  "/v1/insurance/funding_source/accepted_terms"
16465
16512
  );
16466
16513
  };
16514
+ /**
16515
+ * The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
16516
+ */
16517
+ this.acceptedTerms = (fundingSourceId) => {
16518
+ return this.client.get(
16519
+ `/v1/funding_sources/${fundingSourceId}/accepted_terms`
16520
+ );
16521
+ };
16522
+ /**
16523
+ * The`acceptTerms` method allows users to accept new versions of funding source terms.
16524
+ */
16525
+ this.acceptTerms = (fundingSourceId, request) => {
16526
+ return this.client.post(
16527
+ `/v1/funding_sources/${fundingSourceId}/accepted_terms`,
16528
+ request
16529
+ );
16530
+ };
16467
16531
  this.client = client;
16468
16532
  }
16469
16533
  }
@@ -16491,7 +16555,7 @@ class InsuranceAPI {
16491
16555
  }
16492
16556
  }
16493
16557
 
16494
- var __async$14 = (__this, __arguments, generator) => {
16558
+ var __async$18 = (__this, __arguments, generator) => {
16495
16559
  return new Promise((resolve, reject) => {
16496
16560
  var fulfilled = (value) => {
16497
16561
  try {
@@ -16523,13 +16587,13 @@ class InvoiceAddressAPI {
16523
16587
  /**
16524
16588
  * The `create` method creates a new invoice address for a given user.
16525
16589
  */
16526
- this.create = (invoiceAddress) => __async$14(this, null, function* () {
16590
+ this.create = (invoiceAddress) => __async$18(this, null, function* () {
16527
16591
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16528
16592
  });
16529
16593
  /**
16530
16594
  * The `update` method updates a invoice address for a given user.
16531
16595
  */
16532
- this.update = (invoiceAddress) => __async$14(this, null, function* () {
16596
+ this.update = (invoiceAddress) => __async$18(this, null, function* () {
16533
16597
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16534
16598
  });
16535
16599
  this.client = client;
@@ -16591,17 +16655,17 @@ class LabelsAPI {
16591
16655
  }
16592
16656
  }
16593
16657
 
16594
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16595
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16596
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16658
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
16659
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
16660
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
16597
16661
  var __objRest$t = (source, exclude) => {
16598
16662
  var target = {};
16599
16663
  for (var prop in source)
16600
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
16664
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
16601
16665
  target[prop] = source[prop];
16602
- if (source != null && __getOwnPropSymbols$Z)
16603
- for (var prop of __getOwnPropSymbols$Z(source)) {
16604
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
16666
+ if (source != null && __getOwnPropSymbols$11)
16667
+ for (var prop of __getOwnPropSymbols$11(source)) {
16668
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
16605
16669
  target[prop] = source[prop];
16606
16670
  }
16607
16671
  return target;
@@ -16722,19 +16786,19 @@ class RateCardsAPI {
16722
16786
  }
16723
16787
  }
16724
16788
 
16725
- var __defProp$P = Object.defineProperty;
16726
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16727
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16728
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16729
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16730
- var __spreadValues$P = (a, b) => {
16789
+ var __defProp$T = Object.defineProperty;
16790
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
16791
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
16792
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
16793
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16794
+ var __spreadValues$T = (a, b) => {
16731
16795
  for (var prop in b || (b = {}))
16732
- if (__hasOwnProp$Y.call(b, prop))
16733
- __defNormalProp$P(a, prop, b[prop]);
16734
- if (__getOwnPropSymbols$Y)
16735
- for (var prop of __getOwnPropSymbols$Y(b)) {
16736
- if (__propIsEnum$Y.call(b, prop))
16737
- __defNormalProp$P(a, prop, b[prop]);
16796
+ if (__hasOwnProp$10.call(b, prop))
16797
+ __defNormalProp$T(a, prop, b[prop]);
16798
+ if (__getOwnPropSymbols$10)
16799
+ for (var prop of __getOwnPropSymbols$10(b)) {
16800
+ if (__propIsEnum$10.call(b, prop))
16801
+ __defNormalProp$T(a, prop, b[prop]);
16738
16802
  }
16739
16803
  return a;
16740
16804
  };
@@ -16756,7 +16820,7 @@ class RatesAPI {
16756
16820
  * method.
16757
16821
  */
16758
16822
  this.estimate = (params) => {
16759
- return this.client.post("/v1/rates/estimate", __spreadValues$P({}, params));
16823
+ return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
16760
16824
  };
16761
16825
  this.client = client;
16762
16826
  }
@@ -16836,7 +16900,7 @@ class SalesOrdersAPI {
16836
16900
  }
16837
16901
  }
16838
16902
 
16839
- var __async$13 = (__this, __arguments, generator) => {
16903
+ var __async$17 = (__this, __arguments, generator) => {
16840
16904
  return new Promise((resolve, reject) => {
16841
16905
  var fulfilled = (value) => {
16842
16906
  try {
@@ -16894,7 +16958,7 @@ class SellersAPI {
16894
16958
  /**
16895
16959
  * Deletes an API Key
16896
16960
  */
16897
- this.deleteSellerApiKey = (_0) => __async$13(this, [_0], function* ({
16961
+ this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16898
16962
  encryptedApiKey,
16899
16963
  sellerId,
16900
16964
  isSandbox
@@ -16940,19 +17004,19 @@ class SellersAPI {
16940
17004
  }
16941
17005
  }
16942
17006
 
16943
- var __defProp$O = Object.defineProperty;
16944
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16945
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16946
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16947
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16948
- var __spreadValues$O = (a, b) => {
17007
+ var __defProp$S = Object.defineProperty;
17008
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
17009
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
17010
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
17011
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17012
+ var __spreadValues$S = (a, b) => {
16949
17013
  for (var prop in b || (b = {}))
16950
- if (__hasOwnProp$X.call(b, prop))
16951
- __defNormalProp$O(a, prop, b[prop]);
16952
- if (__getOwnPropSymbols$X)
16953
- for (var prop of __getOwnPropSymbols$X(b)) {
16954
- if (__propIsEnum$X.call(b, prop))
16955
- __defNormalProp$O(a, prop, b[prop]);
17014
+ if (__hasOwnProp$$.call(b, prop))
17015
+ __defNormalProp$S(a, prop, b[prop]);
17016
+ if (__getOwnPropSymbols$$)
17017
+ for (var prop of __getOwnPropSymbols$$(b)) {
17018
+ if (__propIsEnum$$.call(b, prop))
17019
+ __defNormalProp$S(a, prop, b[prop]);
16956
17020
  }
16957
17021
  return a;
16958
17022
  };
@@ -16964,7 +17028,7 @@ class ServicePointsAPI {
16964
17028
  * Either an address, coordinates, or an address query
16965
17029
  */
16966
17030
  this.list = (options) => {
16967
- return this.client.post("/v1/service_points/list", __spreadValues$O({}, options));
17031
+ return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
16968
17032
  };
16969
17033
  /**
16970
17034
  * Get a specific service point by its carrier code, country code, and id
@@ -16982,7 +17046,7 @@ class ServicePointsAPI {
16982
17046
  }
16983
17047
  }
16984
17048
 
16985
- var __async$12 = (__this, __arguments, generator) => {
17049
+ var __async$16 = (__this, __arguments, generator) => {
16986
17050
  return new Promise((resolve, reject) => {
16987
17051
  var fulfilled = (value) => {
16988
17052
  try {
@@ -17031,7 +17095,7 @@ class ShipmentsAPI {
17031
17095
  * The `create` method allows for creating shipments based on a list of shipment
17032
17096
  * items passed into this method.
17033
17097
  */
17034
- this.create = (...shipments) => __async$12(this, null, function* () {
17098
+ this.create = (...shipments) => __async$16(this, null, function* () {
17035
17099
  return this.client.post("/v1/shipments", {
17036
17100
  shipments
17037
17101
  });
@@ -34448,38 +34512,38 @@ class WebhooksAPI {
34448
34512
  }
34449
34513
  }
34450
34514
 
34451
- var __defProp$N = Object.defineProperty;
34452
- var __defProps$K = Object.defineProperties;
34453
- var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
34454
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
34455
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
34456
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
34457
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34458
- var __spreadValues$N = (a, b) => {
34515
+ var __defProp$R = Object.defineProperty;
34516
+ var __defProps$O = Object.defineProperties;
34517
+ var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
34518
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
34519
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
34520
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
34521
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34522
+ var __spreadValues$R = (a, b) => {
34459
34523
  for (var prop in b || (b = {}))
34460
- if (__hasOwnProp$W.call(b, prop))
34461
- __defNormalProp$N(a, prop, b[prop]);
34462
- if (__getOwnPropSymbols$W)
34463
- for (var prop of __getOwnPropSymbols$W(b)) {
34464
- if (__propIsEnum$W.call(b, prop))
34465
- __defNormalProp$N(a, prop, b[prop]);
34524
+ if (__hasOwnProp$_.call(b, prop))
34525
+ __defNormalProp$R(a, prop, b[prop]);
34526
+ if (__getOwnPropSymbols$_)
34527
+ for (var prop of __getOwnPropSymbols$_(b)) {
34528
+ if (__propIsEnum$_.call(b, prop))
34529
+ __defNormalProp$R(a, prop, b[prop]);
34466
34530
  }
34467
34531
  return a;
34468
34532
  };
34469
- var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
34533
+ var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
34470
34534
  var __objRest$s = (source, exclude) => {
34471
34535
  var target = {};
34472
34536
  for (var prop in source)
34473
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
34537
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
34474
34538
  target[prop] = source[prop];
34475
- if (source != null && __getOwnPropSymbols$W)
34476
- for (var prop of __getOwnPropSymbols$W(source)) {
34477
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
34539
+ if (source != null && __getOwnPropSymbols$_)
34540
+ for (var prop of __getOwnPropSymbols$_(source)) {
34541
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
34478
34542
  target[prop] = source[prop];
34479
34543
  }
34480
34544
  return target;
34481
34545
  };
34482
- var __async$11 = (__this, __arguments, generator) => {
34546
+ var __async$15 = (__this, __arguments, generator) => {
34483
34547
  return new Promise((resolve, reject) => {
34484
34548
  var fulfilled = (value) => {
34485
34549
  try {
@@ -34502,7 +34566,7 @@ var __async$11 = (__this, __arguments, generator) => {
34502
34566
  const logger$1 = E({
34503
34567
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34504
34568
  name: "shipengine-api",
34505
- serializers: __spreadProps$K(__spreadValues$N({}, k), {
34569
+ serializers: __spreadProps$O(__spreadValues$R({}, k), {
34506
34570
  req: (req) => ({
34507
34571
  headers: req.headers,
34508
34572
  method: req.method,
@@ -34527,7 +34591,7 @@ class ShipEngineAPI {
34527
34591
  this.getSandboxToken = getSandboxToken;
34528
34592
  const client = axios.create({
34529
34593
  baseURL,
34530
- headers: __spreadProps$K(__spreadValues$N({}, headers), {
34594
+ headers: __spreadProps$O(__spreadValues$R({}, headers), {
34531
34595
  "Content-Type": "application/json"
34532
34596
  }),
34533
34597
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34567,7 +34631,7 @@ class ShipEngineAPI {
34567
34631
  });
34568
34632
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34569
34633
  client.interceptors.request.use(
34570
- (config) => __async$11(this, null, function* () {
34634
+ (config) => __async$15(this, null, function* () {
34571
34635
  if (config.isSandbox) {
34572
34636
  if (!this.sandboxToken) {
34573
34637
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34596,7 +34660,7 @@ class ShipEngineAPI {
34596
34660
  }
34597
34661
  return res;
34598
34662
  },
34599
- (err) => __async$11(this, null, function* () {
34663
+ (err) => __async$15(this, null, function* () {
34600
34664
  var _a, _b, _c, _d, _e;
34601
34665
  if (debug) {
34602
34666
  logger$1.error(
@@ -34645,7 +34709,7 @@ class ShipEngineAPI {
34645
34709
  * that token (also known as Seller ID)
34646
34710
  */
34647
34711
  getTenant(isSandbox) {
34648
- return __async$11(this, null, function* () {
34712
+ return __async$15(this, null, function* () {
34649
34713
  var _a;
34650
34714
  if (!isSandbox) {
34651
34715
  return this.getTenantFromToken(this.token);
@@ -34703,6 +34767,13 @@ class ShipEngineAPI {
34703
34767
  get accountBilling() {
34704
34768
  return new AccountBillingAPI(this.client);
34705
34769
  }
34770
+ /**
34771
+ * The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
34772
+ * in ShipEngine API.
34773
+ */
34774
+ get accountRefundAssist() {
34775
+ return new AccountRefundAssistAPI(this.client);
34776
+ }
34706
34777
  /**
34707
34778
  * The `addresses` method provides access to the Address Validation endpoints
34708
34779
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -34964,25 +35035,25 @@ const delay = (ms) => new Promise((resolve) => {
34964
35035
 
34965
35036
  const onError = (_errors) => _default();
34966
35037
 
34967
- var __defProp$M = Object.defineProperty;
34968
- var __defProps$J = Object.defineProperties;
34969
- var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34970
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34971
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34972
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34973
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34974
- var __spreadValues$M = (a, b) => {
35038
+ var __defProp$Q = Object.defineProperty;
35039
+ var __defProps$N = Object.defineProperties;
35040
+ var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35041
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35042
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35043
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35044
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35045
+ var __spreadValues$Q = (a, b) => {
34975
35046
  for (var prop in b || (b = {}))
34976
- if (__hasOwnProp$V.call(b, prop))
34977
- __defNormalProp$M(a, prop, b[prop]);
34978
- if (__getOwnPropSymbols$V)
34979
- for (var prop of __getOwnPropSymbols$V(b)) {
34980
- if (__propIsEnum$V.call(b, prop))
34981
- __defNormalProp$M(a, prop, b[prop]);
35047
+ if (__hasOwnProp$Z.call(b, prop))
35048
+ __defNormalProp$Q(a, prop, b[prop]);
35049
+ if (__getOwnPropSymbols$Z)
35050
+ for (var prop of __getOwnPropSymbols$Z(b)) {
35051
+ if (__propIsEnum$Z.call(b, prop))
35052
+ __defNormalProp$Q(a, prop, b[prop]);
34982
35053
  }
34983
35054
  return a;
34984
35055
  };
34985
- var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35056
+ var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
34986
35057
  const streams = [];
34987
35058
  if (process.env.NODE_ENV === "production") {
34988
35059
  streams.push({
@@ -34991,7 +35062,7 @@ if (process.env.NODE_ENV === "production") {
34991
35062
  }
34992
35063
  const logger = E({
34993
35064
  name: "shipengine",
34994
- serializers: __spreadProps$J(__spreadValues$M({}, k), {
35065
+ serializers: __spreadProps$N(__spreadValues$Q({}, k), {
34995
35066
  req: (req) => ({
34996
35067
  headers: req.headers,
34997
35068
  method: req.method,
@@ -35016,7 +35087,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35016
35087
  throw error;
35017
35088
  });
35018
35089
 
35019
- var __async$10 = (__this, __arguments, generator) => {
35090
+ var __async$14 = (__this, __arguments, generator) => {
35020
35091
  return new Promise((resolve, reject) => {
35021
35092
  var fulfilled = (value) => {
35022
35093
  try {
@@ -35039,7 +35110,7 @@ var __async$10 = (__this, __arguments, generator) => {
35039
35110
  const useCreateAccountImage = () => {
35040
35111
  const { client } = useShipEngine();
35041
35112
  return useMutation({
35042
- mutationFn: (data) => __async$10(void 0, null, function* () {
35113
+ mutationFn: (data) => __async$14(void 0, null, function* () {
35043
35114
  const result = yield client.accountSettings.createImage(data);
35044
35115
  return result.data;
35045
35116
  }),
@@ -35048,7 +35119,7 @@ const useCreateAccountImage = () => {
35048
35119
  });
35049
35120
  };
35050
35121
 
35051
- var __async$$ = (__this, __arguments, generator) => {
35122
+ var __async$13 = (__this, __arguments, generator) => {
35052
35123
  return new Promise((resolve, reject) => {
35053
35124
  var fulfilled = (value) => {
35054
35125
  try {
@@ -35071,7 +35142,7 @@ var __async$$ = (__this, __arguments, generator) => {
35071
35142
  const useDeleteAccountImage = () => {
35072
35143
  const { client } = useShipEngine();
35073
35144
  return useMutation({
35074
- mutationFn: (labelImageId) => __async$$(void 0, null, function* () {
35145
+ mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35075
35146
  const result = yield client.accountSettings.deleteImage(labelImageId);
35076
35147
  return result.data;
35077
35148
  }),
@@ -35100,7 +35171,7 @@ const useGetAccountSettings = () => {
35100
35171
  });
35101
35172
  };
35102
35173
 
35103
- var __async$_ = (__this, __arguments, generator) => {
35174
+ var __async$12 = (__this, __arguments, generator) => {
35104
35175
  return new Promise((resolve, reject) => {
35105
35176
  var fulfilled = (value) => {
35106
35177
  try {
@@ -35123,7 +35194,7 @@ var __async$_ = (__this, __arguments, generator) => {
35123
35194
  const useUpdateAccountImage = () => {
35124
35195
  const { client } = useShipEngine();
35125
35196
  return useMutation({
35126
- mutationFn: (data) => __async$_(void 0, null, function* () {
35197
+ mutationFn: (data) => __async$12(void 0, null, function* () {
35127
35198
  const result = yield client.accountSettings.updateImage(data);
35128
35199
  return result.data;
35129
35200
  }),
@@ -35132,7 +35203,7 @@ const useUpdateAccountImage = () => {
35132
35203
  });
35133
35204
  };
35134
35205
 
35135
- var __async$Z = (__this, __arguments, generator) => {
35206
+ var __async$11 = (__this, __arguments, generator) => {
35136
35207
  return new Promise((resolve, reject) => {
35137
35208
  var fulfilled = (value) => {
35138
35209
  try {
@@ -35155,7 +35226,7 @@ var __async$Z = (__this, __arguments, generator) => {
35155
35226
  const useUpdateAccountSettings = () => {
35156
35227
  const { client } = useShipEngine();
35157
35228
  return useMutation({
35158
- mutationFn: (settings) => __async$Z(void 0, null, function* () {
35229
+ mutationFn: (settings) => __async$11(void 0, null, function* () {
35159
35230
  const result = yield client.accountSettings.update(settings);
35160
35231
  return result.data;
35161
35232
  }),
@@ -35164,28 +35235,28 @@ const useUpdateAccountSettings = () => {
35164
35235
  });
35165
35236
  };
35166
35237
 
35167
- var __defProp$L = Object.defineProperty;
35168
- var __defProps$I = Object.defineProperties;
35169
- var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
35170
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
35171
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
35172
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
35173
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35174
- var __spreadValues$L = (a, b) => {
35238
+ var __defProp$P = Object.defineProperty;
35239
+ var __defProps$M = Object.defineProperties;
35240
+ var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
35241
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
35242
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
35243
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
35244
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35245
+ var __spreadValues$P = (a, b) => {
35175
35246
  for (var prop in b || (b = {}))
35176
- if (__hasOwnProp$U.call(b, prop))
35177
- __defNormalProp$L(a, prop, b[prop]);
35178
- if (__getOwnPropSymbols$U)
35179
- for (var prop of __getOwnPropSymbols$U(b)) {
35180
- if (__propIsEnum$U.call(b, prop))
35181
- __defNormalProp$L(a, prop, b[prop]);
35247
+ if (__hasOwnProp$Y.call(b, prop))
35248
+ __defNormalProp$P(a, prop, b[prop]);
35249
+ if (__getOwnPropSymbols$Y)
35250
+ for (var prop of __getOwnPropSymbols$Y(b)) {
35251
+ if (__propIsEnum$Y.call(b, prop))
35252
+ __defNormalProp$P(a, prop, b[prop]);
35182
35253
  }
35183
35254
  return a;
35184
35255
  };
35185
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35256
+ var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
35186
35257
  const useListAccountAddons = (params) => {
35187
35258
  const { client } = useShipEngine();
35188
- return useQuery(__spreadProps$I(__spreadValues$L({}, params), {
35259
+ return useQuery(__spreadProps$M(__spreadValues$P({}, params), {
35189
35260
  onError,
35190
35261
  queryFn: () => client.accountAddons.list(),
35191
35262
  queryKey: ["useListAccountAddons"],
@@ -35193,26 +35264,26 @@ const useListAccountAddons = (params) => {
35193
35264
  }));
35194
35265
  };
35195
35266
 
35196
- var __defProp$K = Object.defineProperty;
35197
- var __defProps$H = Object.defineProperties;
35198
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35199
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35200
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35201
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35202
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35203
- var __spreadValues$K = (a, b) => {
35267
+ var __defProp$O = Object.defineProperty;
35268
+ var __defProps$L = Object.defineProperties;
35269
+ var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
35270
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
35271
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
35272
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
35273
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35274
+ var __spreadValues$O = (a, b) => {
35204
35275
  for (var prop in b || (b = {}))
35205
- if (__hasOwnProp$T.call(b, prop))
35206
- __defNormalProp$K(a, prop, b[prop]);
35207
- if (__getOwnPropSymbols$T)
35208
- for (var prop of __getOwnPropSymbols$T(b)) {
35209
- if (__propIsEnum$T.call(b, prop))
35210
- __defNormalProp$K(a, prop, b[prop]);
35276
+ if (__hasOwnProp$X.call(b, prop))
35277
+ __defNormalProp$O(a, prop, b[prop]);
35278
+ if (__getOwnPropSymbols$X)
35279
+ for (var prop of __getOwnPropSymbols$X(b)) {
35280
+ if (__propIsEnum$X.call(b, prop))
35281
+ __defNormalProp$O(a, prop, b[prop]);
35211
35282
  }
35212
35283
  return a;
35213
35284
  };
35214
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35215
- var __async$Y = (__this, __arguments, generator) => {
35285
+ var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35286
+ var __async$10 = (__this, __arguments, generator) => {
35216
35287
  return new Promise((resolve, reject) => {
35217
35288
  var fulfilled = (value) => {
35218
35289
  try {
@@ -35234,8 +35305,8 @@ var __async$Y = (__this, __arguments, generator) => {
35234
35305
  };
35235
35306
  const useEnableAccountAddon = (params) => {
35236
35307
  const { client } = useShipEngine();
35237
- return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35238
- mutationFn: (addonType) => __async$Y(void 0, null, function* () {
35308
+ return useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35309
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35239
35310
  const result = yield client.accountAddons.enable(addonType);
35240
35311
  return result.data;
35241
35312
  }),
@@ -35244,26 +35315,26 @@ const useEnableAccountAddon = (params) => {
35244
35315
  }));
35245
35316
  };
35246
35317
 
35247
- var __defProp$J = Object.defineProperty;
35248
- var __defProps$G = Object.defineProperties;
35249
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35250
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35251
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35252
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35253
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35254
- var __spreadValues$J = (a, b) => {
35318
+ var __defProp$N = Object.defineProperty;
35319
+ var __defProps$K = Object.defineProperties;
35320
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
35321
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
35322
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
35323
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
35324
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35325
+ var __spreadValues$N = (a, b) => {
35255
35326
  for (var prop in b || (b = {}))
35256
- if (__hasOwnProp$S.call(b, prop))
35257
- __defNormalProp$J(a, prop, b[prop]);
35258
- if (__getOwnPropSymbols$S)
35259
- for (var prop of __getOwnPropSymbols$S(b)) {
35260
- if (__propIsEnum$S.call(b, prop))
35261
- __defNormalProp$J(a, prop, b[prop]);
35327
+ if (__hasOwnProp$W.call(b, prop))
35328
+ __defNormalProp$N(a, prop, b[prop]);
35329
+ if (__getOwnPropSymbols$W)
35330
+ for (var prop of __getOwnPropSymbols$W(b)) {
35331
+ if (__propIsEnum$W.call(b, prop))
35332
+ __defNormalProp$N(a, prop, b[prop]);
35262
35333
  }
35263
35334
  return a;
35264
35335
  };
35265
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35266
- var __async$X = (__this, __arguments, generator) => {
35336
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35337
+ var __async$$ = (__this, __arguments, generator) => {
35267
35338
  return new Promise((resolve, reject) => {
35268
35339
  var fulfilled = (value) => {
35269
35340
  try {
@@ -35285,8 +35356,8 @@ var __async$X = (__this, __arguments, generator) => {
35285
35356
  };
35286
35357
  const useDisableAccountAddon = (params) => {
35287
35358
  const { client } = useShipEngine();
35288
- return useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35289
- mutationFn: (addonType) => __async$X(void 0, null, function* () {
35359
+ return useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35360
+ mutationFn: (addonType) => __async$$(void 0, null, function* () {
35290
35361
  const result = yield client.accountAddons.disable(addonType);
35291
35362
  return result.data;
35292
35363
  }),
@@ -35295,28 +35366,28 @@ const useDisableAccountAddon = (params) => {
35295
35366
  }));
35296
35367
  };
35297
35368
 
35298
- var __defProp$I = Object.defineProperty;
35299
- var __defProps$F = Object.defineProperties;
35300
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35301
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35302
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35303
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35304
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35305
- var __spreadValues$I = (a, b) => {
35369
+ var __defProp$M = Object.defineProperty;
35370
+ var __defProps$J = Object.defineProperties;
35371
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
35372
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
35373
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
35374
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
35375
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35376
+ var __spreadValues$M = (a, b) => {
35306
35377
  for (var prop in b || (b = {}))
35307
- if (__hasOwnProp$R.call(b, prop))
35308
- __defNormalProp$I(a, prop, b[prop]);
35309
- if (__getOwnPropSymbols$R)
35310
- for (var prop of __getOwnPropSymbols$R(b)) {
35311
- if (__propIsEnum$R.call(b, prop))
35312
- __defNormalProp$I(a, prop, b[prop]);
35378
+ if (__hasOwnProp$V.call(b, prop))
35379
+ __defNormalProp$M(a, prop, b[prop]);
35380
+ if (__getOwnPropSymbols$V)
35381
+ for (var prop of __getOwnPropSymbols$V(b)) {
35382
+ if (__propIsEnum$V.call(b, prop))
35383
+ __defNormalProp$M(a, prop, b[prop]);
35313
35384
  }
35314
35385
  return a;
35315
35386
  };
35316
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35387
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35317
35388
  const useListAccountFeatures = (params) => {
35318
35389
  const { client } = useShipEngine();
35319
- return useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35390
+ return useQuery(__spreadProps$J(__spreadValues$M({}, params), {
35320
35391
  onError,
35321
35392
  queryFn: () => client.accountFeatures.list(),
35322
35393
  queryKey: ["useListAccountFeatures"],
@@ -35324,7 +35395,7 @@ const useListAccountFeatures = (params) => {
35324
35395
  }));
35325
35396
  };
35326
35397
 
35327
- var __async$W = (__this, __arguments, generator) => {
35398
+ var __async$_ = (__this, __arguments, generator) => {
35328
35399
  return new Promise((resolve, reject) => {
35329
35400
  var fulfilled = (value) => {
35330
35401
  try {
@@ -35347,7 +35418,7 @@ var __async$W = (__this, __arguments, generator) => {
35347
35418
  const useRequestAccountFeature = () => {
35348
35419
  const { client } = useShipEngine();
35349
35420
  return useMutation({
35350
- mutationFn: (request) => __async$W(void 0, null, function* () {
35421
+ mutationFn: (request) => __async$_(void 0, null, function* () {
35351
35422
  const result = yield client.accountFeatures.request(request);
35352
35423
  return result.data;
35353
35424
  }),
@@ -35356,7 +35427,136 @@ const useRequestAccountFeature = () => {
35356
35427
  });
35357
35428
  };
35358
35429
 
35359
- var __async$V = (__this, __arguments, generator) => {
35430
+ var __defProp$L = Object.defineProperty;
35431
+ var __defProps$I = Object.defineProperties;
35432
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
35433
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
35434
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
35435
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
35436
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35437
+ var __spreadValues$L = (a, b) => {
35438
+ for (var prop in b || (b = {}))
35439
+ if (__hasOwnProp$U.call(b, prop))
35440
+ __defNormalProp$L(a, prop, b[prop]);
35441
+ if (__getOwnPropSymbols$U)
35442
+ for (var prop of __getOwnPropSymbols$U(b)) {
35443
+ if (__propIsEnum$U.call(b, prop))
35444
+ __defNormalProp$L(a, prop, b[prop]);
35445
+ }
35446
+ return a;
35447
+ };
35448
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35449
+ var __async$Z = (__this, __arguments, generator) => {
35450
+ return new Promise((resolve, reject) => {
35451
+ var fulfilled = (value) => {
35452
+ try {
35453
+ step(generator.next(value));
35454
+ } catch (e) {
35455
+ reject(e);
35456
+ }
35457
+ };
35458
+ var rejected = (value) => {
35459
+ try {
35460
+ step(generator.throw(value));
35461
+ } catch (e) {
35462
+ reject(e);
35463
+ }
35464
+ };
35465
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35466
+ step((generator = generator.apply(__this, __arguments)).next());
35467
+ });
35468
+ };
35469
+ const useDisableRefundAssist = (params) => {
35470
+ const { client } = useShipEngine();
35471
+ return useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35472
+ mutationFn: () => __async$Z(void 0, null, function* () {
35473
+ yield client.accountRefundAssist.disable();
35474
+ }),
35475
+ mutationKey: ["useDisableRefundAssist"],
35476
+ onError
35477
+ }));
35478
+ };
35479
+
35480
+ var __defProp$K = Object.defineProperty;
35481
+ var __defProps$H = Object.defineProperties;
35482
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35483
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35484
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35485
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35486
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35487
+ var __spreadValues$K = (a, b) => {
35488
+ for (var prop in b || (b = {}))
35489
+ if (__hasOwnProp$T.call(b, prop))
35490
+ __defNormalProp$K(a, prop, b[prop]);
35491
+ if (__getOwnPropSymbols$T)
35492
+ for (var prop of __getOwnPropSymbols$T(b)) {
35493
+ if (__propIsEnum$T.call(b, prop))
35494
+ __defNormalProp$K(a, prop, b[prop]);
35495
+ }
35496
+ return a;
35497
+ };
35498
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35499
+ var __async$Y = (__this, __arguments, generator) => {
35500
+ return new Promise((resolve, reject) => {
35501
+ var fulfilled = (value) => {
35502
+ try {
35503
+ step(generator.next(value));
35504
+ } catch (e) {
35505
+ reject(e);
35506
+ }
35507
+ };
35508
+ var rejected = (value) => {
35509
+ try {
35510
+ step(generator.throw(value));
35511
+ } catch (e) {
35512
+ reject(e);
35513
+ }
35514
+ };
35515
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35516
+ step((generator = generator.apply(__this, __arguments)).next());
35517
+ });
35518
+ };
35519
+ const useEnableRefundAssist = (params) => {
35520
+ const { client } = useShipEngine();
35521
+ return useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35522
+ mutationFn: () => __async$Y(void 0, null, function* () {
35523
+ yield client.accountRefundAssist.enable();
35524
+ }),
35525
+ mutationKey: ["useEnableRefundAssist"],
35526
+ onError
35527
+ }));
35528
+ };
35529
+
35530
+ var __defProp$J = Object.defineProperty;
35531
+ var __defProps$G = Object.defineProperties;
35532
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35533
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35534
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35535
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35536
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35537
+ var __spreadValues$J = (a, b) => {
35538
+ for (var prop in b || (b = {}))
35539
+ if (__hasOwnProp$S.call(b, prop))
35540
+ __defNormalProp$J(a, prop, b[prop]);
35541
+ if (__getOwnPropSymbols$S)
35542
+ for (var prop of __getOwnPropSymbols$S(b)) {
35543
+ if (__propIsEnum$S.call(b, prop))
35544
+ __defNormalProp$J(a, prop, b[prop]);
35545
+ }
35546
+ return a;
35547
+ };
35548
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35549
+ const useGetRefundAssist = (params) => {
35550
+ const { client } = useShipEngine();
35551
+ return useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35552
+ onError,
35553
+ queryFn: () => client.accountRefundAssist.get(),
35554
+ queryKey: ["useGetRefundAssist"],
35555
+ select: (result) => result.data.refundAssistCarriers
35556
+ }));
35557
+ };
35558
+
35559
+ var __async$X = (__this, __arguments, generator) => {
35360
35560
  return new Promise((resolve, reject) => {
35361
35561
  var fulfilled = (value) => {
35362
35562
  try {
@@ -35379,7 +35579,7 @@ var __async$V = (__this, __arguments, generator) => {
35379
35579
  const useParseAddress = () => {
35380
35580
  const { client } = useShipEngine();
35381
35581
  return useMutation({
35382
- mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
35582
+ mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
35383
35583
  const result = yield client.addresses.parse(text, address);
35384
35584
  return result.data;
35385
35585
  }),
@@ -35388,7 +35588,7 @@ const useParseAddress = () => {
35388
35588
  });
35389
35589
  };
35390
35590
 
35391
- var __async$U = (__this, __arguments, generator) => {
35591
+ var __async$W = (__this, __arguments, generator) => {
35392
35592
  return new Promise((resolve, reject) => {
35393
35593
  var fulfilled = (value) => {
35394
35594
  try {
@@ -35411,7 +35611,7 @@ var __async$U = (__this, __arguments, generator) => {
35411
35611
  const useValidateAddresses = () => {
35412
35612
  const { client } = useShipEngine();
35413
35613
  return useMutation({
35414
- mutationFn: (addresses) => __async$U(void 0, null, function* () {
35614
+ mutationFn: (addresses) => __async$W(void 0, null, function* () {
35415
35615
  const result = yield client.addresses.validate(addresses);
35416
35616
  return result.data;
35417
35617
  }),
@@ -35420,26 +35620,26 @@ const useValidateAddresses = () => {
35420
35620
  });
35421
35621
  };
35422
35622
 
35423
- var __defProp$H = Object.defineProperty;
35424
- var __defProps$E = Object.defineProperties;
35425
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35426
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35427
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35428
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35429
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35430
- var __spreadValues$H = (a, b) => {
35623
+ var __defProp$I = Object.defineProperty;
35624
+ var __defProps$F = Object.defineProperties;
35625
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35626
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35627
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35628
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35629
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35630
+ var __spreadValues$I = (a, b) => {
35431
35631
  for (var prop in b || (b = {}))
35432
- if (__hasOwnProp$Q.call(b, prop))
35433
- __defNormalProp$H(a, prop, b[prop]);
35434
- if (__getOwnPropSymbols$Q)
35435
- for (var prop of __getOwnPropSymbols$Q(b)) {
35436
- if (__propIsEnum$Q.call(b, prop))
35437
- __defNormalProp$H(a, prop, b[prop]);
35632
+ if (__hasOwnProp$R.call(b, prop))
35633
+ __defNormalProp$I(a, prop, b[prop]);
35634
+ if (__getOwnPropSymbols$R)
35635
+ for (var prop of __getOwnPropSymbols$R(b)) {
35636
+ if (__propIsEnum$R.call(b, prop))
35637
+ __defNormalProp$I(a, prop, b[prop]);
35438
35638
  }
35439
35639
  return a;
35440
35640
  };
35441
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35442
- var __async$T = (__this, __arguments, generator) => {
35641
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35642
+ var __async$V = (__this, __arguments, generator) => {
35443
35643
  return new Promise((resolve, reject) => {
35444
35644
  var fulfilled = (value) => {
35445
35645
  try {
@@ -35461,8 +35661,8 @@ var __async$T = (__this, __arguments, generator) => {
35461
35661
  };
35462
35662
  const useCreateAuctanePaySession = (params) => {
35463
35663
  const { client } = useShipEngine();
35464
- return useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35465
- mutationFn: (request) => __async$T(void 0, null, function* () {
35664
+ return useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35665
+ mutationFn: (request) => __async$V(void 0, null, function* () {
35466
35666
  const result = yield client.auctanePay.createSession(request);
35467
35667
  return result.data;
35468
35668
  }),
@@ -35471,6 +35671,36 @@ const useCreateAuctanePaySession = (params) => {
35471
35671
  }));
35472
35672
  };
35473
35673
 
35674
+ var __defProp$H = Object.defineProperty;
35675
+ var __defProps$E = Object.defineProperties;
35676
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35677
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35678
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35679
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35680
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35681
+ var __spreadValues$H = (a, b) => {
35682
+ for (var prop in b || (b = {}))
35683
+ if (__hasOwnProp$Q.call(b, prop))
35684
+ __defNormalProp$H(a, prop, b[prop]);
35685
+ if (__getOwnPropSymbols$Q)
35686
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35687
+ if (__propIsEnum$Q.call(b, prop))
35688
+ __defNormalProp$H(a, prop, b[prop]);
35689
+ }
35690
+ return a;
35691
+ };
35692
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35693
+ const useGetAuctanePayConfig = (params) => {
35694
+ const { client } = useShipEngine();
35695
+ const queryParams = __spreadValues$H({}, params);
35696
+ return useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
35697
+ onError,
35698
+ queryFn: () => client.auctanePay.getConfig(),
35699
+ queryKey: ["useGetAuctanePayConfig"],
35700
+ select: (result) => result.data
35701
+ }));
35702
+ };
35703
+
35474
35704
  var __defProp$G = Object.defineProperty;
35475
35705
  var __defProps$D = Object.defineProperties;
35476
35706
  var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
@@ -35490,37 +35720,7 @@ var __spreadValues$G = (a, b) => {
35490
35720
  return a;
35491
35721
  };
35492
35722
  var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35493
- const useGetAuctanePayConfig = (params) => {
35494
- const { client } = useShipEngine();
35495
- const queryParams = __spreadValues$G({}, params);
35496
- return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35497
- onError,
35498
- queryFn: () => client.auctanePay.getConfig(),
35499
- queryKey: ["useGetAuctanePayConfig"],
35500
- select: (result) => result.data
35501
- }));
35502
- };
35503
-
35504
- var __defProp$F = Object.defineProperty;
35505
- var __defProps$C = Object.defineProperties;
35506
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
35507
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
35508
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
35509
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
35510
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35511
- var __spreadValues$F = (a, b) => {
35512
- for (var prop in b || (b = {}))
35513
- if (__hasOwnProp$O.call(b, prop))
35514
- __defNormalProp$F(a, prop, b[prop]);
35515
- if (__getOwnPropSymbols$O)
35516
- for (var prop of __getOwnPropSymbols$O(b)) {
35517
- if (__propIsEnum$O.call(b, prop))
35518
- __defNormalProp$F(a, prop, b[prop]);
35519
- }
35520
- return a;
35521
- };
35522
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35523
- var __async$S = (__this, __arguments, generator) => {
35723
+ var __async$U = (__this, __arguments, generator) => {
35524
35724
  return new Promise((resolve, reject) => {
35525
35725
  var fulfilled = (value) => {
35526
35726
  try {
@@ -35542,8 +35742,8 @@ var __async$S = (__this, __arguments, generator) => {
35542
35742
  };
35543
35743
  const usePreviewTransaction = (params) => {
35544
35744
  const { client } = useShipEngine();
35545
- return useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35546
- mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35745
+ return useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35746
+ mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35547
35747
  const request = {
35548
35748
  amount,
35549
35749
  transactionCategory
@@ -35556,6 +35756,36 @@ const usePreviewTransaction = (params) => {
35556
35756
  }));
35557
35757
  };
35558
35758
 
35759
+ var __defProp$F = Object.defineProperty;
35760
+ var __defProps$C = Object.defineProperties;
35761
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
35762
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
35763
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
35764
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
35765
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35766
+ var __spreadValues$F = (a, b) => {
35767
+ for (var prop in b || (b = {}))
35768
+ if (__hasOwnProp$O.call(b, prop))
35769
+ __defNormalProp$F(a, prop, b[prop]);
35770
+ if (__getOwnPropSymbols$O)
35771
+ for (var prop of __getOwnPropSymbols$O(b)) {
35772
+ if (__propIsEnum$O.call(b, prop))
35773
+ __defNormalProp$F(a, prop, b[prop]);
35774
+ }
35775
+ return a;
35776
+ };
35777
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35778
+ const useGetPaymentMethods = (params) => {
35779
+ const { client } = useShipEngine();
35780
+ const queryParams = __spreadValues$F({}, params);
35781
+ return useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
35782
+ onError,
35783
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35784
+ queryKey: ["useGetPaymentMethods"],
35785
+ select: (result) => result.data
35786
+ }));
35787
+ };
35788
+
35559
35789
  var __defProp$E = Object.defineProperty;
35560
35790
  var __defProps$B = Object.defineProperties;
35561
35791
  var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
@@ -35575,14 +35805,35 @@ var __spreadValues$E = (a, b) => {
35575
35805
  return a;
35576
35806
  };
35577
35807
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35578
- const useGetPaymentMethods = (params) => {
35808
+ var __async$T = (__this, __arguments, generator) => {
35809
+ return new Promise((resolve, reject) => {
35810
+ var fulfilled = (value) => {
35811
+ try {
35812
+ step(generator.next(value));
35813
+ } catch (e) {
35814
+ reject(e);
35815
+ }
35816
+ };
35817
+ var rejected = (value) => {
35818
+ try {
35819
+ step(generator.throw(value));
35820
+ } catch (e) {
35821
+ reject(e);
35822
+ }
35823
+ };
35824
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35825
+ step((generator = generator.apply(__this, __arguments)).next());
35826
+ });
35827
+ };
35828
+ const useDeletePaymentMethod = (params) => {
35579
35829
  const { client } = useShipEngine();
35580
- const queryParams = __spreadValues$E({}, params);
35581
- return useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
35582
- onError,
35583
- queryFn: () => client.auctanePay.getPaymentMethods(),
35584
- queryKey: ["useGetPaymentMethods"],
35585
- select: (result) => result.data
35830
+ return useMutation(__spreadProps$B(__spreadValues$E({}, params), {
35831
+ mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
35832
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35833
+ return result.data;
35834
+ }),
35835
+ mutationKey: ["useDeletePaymentMethod"],
35836
+ onError
35586
35837
  }));
35587
35838
  };
35588
35839
 
@@ -35605,7 +35856,7 @@ var __spreadValues$D = (a, b) => {
35605
35856
  return a;
35606
35857
  };
35607
35858
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35608
- var __async$R = (__this, __arguments, generator) => {
35859
+ var __async$S = (__this, __arguments, generator) => {
35609
35860
  return new Promise((resolve, reject) => {
35610
35861
  var fulfilled = (value) => {
35611
35862
  try {
@@ -35625,14 +35876,14 @@ var __async$R = (__this, __arguments, generator) => {
35625
35876
  step((generator = generator.apply(__this, __arguments)).next());
35626
35877
  });
35627
35878
  };
35628
- const useDeletePaymentMethod = (params) => {
35879
+ const useUpdatePaymentMethod = (params) => {
35629
35880
  const { client } = useShipEngine();
35630
35881
  return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35631
- mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
35632
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35882
+ mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
35883
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35633
35884
  return result.data;
35634
35885
  }),
35635
- mutationKey: ["useDeletePaymentMethod"],
35886
+ mutationKey: ["useUpdatePaymentMethod"],
35636
35887
  onError
35637
35888
  }));
35638
35889
  };
@@ -35656,7 +35907,7 @@ var __spreadValues$C = (a, b) => {
35656
35907
  return a;
35657
35908
  };
35658
35909
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35659
- var __async$Q = (__this, __arguments, generator) => {
35910
+ var __async$R = (__this, __arguments, generator) => {
35660
35911
  return new Promise((resolve, reject) => {
35661
35912
  var fulfilled = (value) => {
35662
35913
  try {
@@ -35676,14 +35927,14 @@ var __async$Q = (__this, __arguments, generator) => {
35676
35927
  step((generator = generator.apply(__this, __arguments)).next());
35677
35928
  });
35678
35929
  };
35679
- const useUpdatePaymentMethod = (params) => {
35930
+ const useIdentityVerification = (params) => {
35680
35931
  const { client } = useShipEngine();
35681
35932
  return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35682
- mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
35683
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35933
+ mutationFn: () => __async$R(void 0, null, function* () {
35934
+ const result = yield client.auctanePay.identityVerification();
35684
35935
  return result.data;
35685
35936
  }),
35686
- mutationKey: ["useUpdatePaymentMethod"],
35937
+ mutationKey: ["useIdentityVerification"],
35687
35938
  onError
35688
35939
  }));
35689
35940
  };
@@ -35707,7 +35958,18 @@ var __spreadValues$B = (a, b) => {
35707
35958
  return a;
35708
35959
  };
35709
35960
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35710
- var __async$P = (__this, __arguments, generator) => {
35961
+ const useGetPaymentAccount = (params) => {
35962
+ const { client } = useShipEngine();
35963
+ const queryParams = __spreadValues$B({}, params);
35964
+ return useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35965
+ onError,
35966
+ queryFn: () => client.auctanePay.getPaymentAccount(),
35967
+ queryKey: ["useGetPaymentAccount"],
35968
+ select: (result) => result.data
35969
+ }));
35970
+ };
35971
+
35972
+ var __async$Q = (__this, __arguments, generator) => {
35711
35973
  return new Promise((resolve, reject) => {
35712
35974
  var fulfilled = (value) => {
35713
35975
  try {
@@ -35727,49 +35989,19 @@ var __async$P = (__this, __arguments, generator) => {
35727
35989
  step((generator = generator.apply(__this, __arguments)).next());
35728
35990
  });
35729
35991
  };
35730
- const useIdentityVerification = (params) => {
35992
+ const useAcceptCarrierTerms = (carrierId) => {
35731
35993
  const { client } = useShipEngine();
35732
- return useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35733
- mutationFn: () => __async$P(void 0, null, function* () {
35734
- const result = yield client.auctanePay.identityVerification();
35735
- return result.data;
35994
+ return useMutation({
35995
+ mutationFn: (request) => __async$Q(void 0, null, function* () {
35996
+ const result = yield client.carriers.acceptTerms(carrierId, request);
35997
+ return result.data.acceptedTerms;
35736
35998
  }),
35737
- mutationKey: ["useIdentityVerification"],
35999
+ mutationKey: ["useAcceptCarrierTerms", carrierId],
35738
36000
  onError
35739
- }));
35740
- };
35741
-
35742
- var __defProp$A = Object.defineProperty;
35743
- var __defProps$x = Object.defineProperties;
35744
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35745
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35746
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35747
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35748
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35749
- var __spreadValues$A = (a, b) => {
35750
- for (var prop in b || (b = {}))
35751
- if (__hasOwnProp$J.call(b, prop))
35752
- __defNormalProp$A(a, prop, b[prop]);
35753
- if (__getOwnPropSymbols$J)
35754
- for (var prop of __getOwnPropSymbols$J(b)) {
35755
- if (__propIsEnum$J.call(b, prop))
35756
- __defNormalProp$A(a, prop, b[prop]);
35757
- }
35758
- return a;
35759
- };
35760
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35761
- const useGetPaymentAccount = (params) => {
35762
- const { client } = useShipEngine();
35763
- const queryParams = __spreadValues$A({}, params);
35764
- return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35765
- onError,
35766
- queryFn: () => client.auctanePay.getPaymentAccount(),
35767
- queryKey: ["useGetPaymentAccount"],
35768
- select: (result) => result.data
35769
- }));
36001
+ });
35770
36002
  };
35771
36003
 
35772
- var __async$O = (__this, __arguments, generator) => {
36004
+ var __async$P = (__this, __arguments, generator) => {
35773
36005
  return new Promise((resolve, reject) => {
35774
36006
  var fulfilled = (value) => {
35775
36007
  try {
@@ -35792,7 +36024,7 @@ var __async$O = (__this, __arguments, generator) => {
35792
36024
  const useAddFunds = () => {
35793
36025
  const { client } = useShipEngine();
35794
36026
  return useMutation({
35795
- mutationFn: (_0) => __async$O(void 0, [_0], function* ({ carrierId, funds }) {
36027
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
35796
36028
  const result = yield client.carriers.addFunds(carrierId, funds);
35797
36029
  return result.data;
35798
36030
  }),
@@ -35801,7 +36033,7 @@ const useAddFunds = () => {
35801
36033
  });
35802
36034
  };
35803
36035
 
35804
- var __async$N = (__this, __arguments, generator) => {
36036
+ var __async$O = (__this, __arguments, generator) => {
35805
36037
  return new Promise((resolve, reject) => {
35806
36038
  var fulfilled = (value) => {
35807
36039
  try {
@@ -35824,7 +36056,7 @@ var __async$N = (__this, __arguments, generator) => {
35824
36056
  const useConnectCarrier = () => {
35825
36057
  const { client } = useShipEngine();
35826
36058
  return useMutation({
35827
- mutationFn: (params) => __async$N(void 0, null, function* () {
36059
+ mutationFn: (params) => __async$O(void 0, null, function* () {
35828
36060
  const result = yield client.carriers.connect(params);
35829
36061
  return result.data;
35830
36062
  }),
@@ -35933,41 +36165,41 @@ const useGetServicesByCarrier = (carrierId) => {
35933
36165
  });
35934
36166
  };
35935
36167
 
35936
- var __defProp$z = Object.defineProperty;
35937
- var __defProps$w = Object.defineProperties;
35938
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
35939
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
35940
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
35941
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35942
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35943
- var __spreadValues$z = (a, b) => {
36168
+ var __defProp$A = Object.defineProperty;
36169
+ var __defProps$x = Object.defineProperties;
36170
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36171
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36172
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36173
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36174
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36175
+ var __spreadValues$A = (a, b) => {
35944
36176
  for (var prop in b || (b = {}))
35945
- if (__hasOwnProp$I.call(b, prop))
35946
- __defNormalProp$z(a, prop, b[prop]);
35947
- if (__getOwnPropSymbols$I)
35948
- for (var prop of __getOwnPropSymbols$I(b)) {
35949
- if (__propIsEnum$I.call(b, prop))
35950
- __defNormalProp$z(a, prop, b[prop]);
36177
+ if (__hasOwnProp$J.call(b, prop))
36178
+ __defNormalProp$A(a, prop, b[prop]);
36179
+ if (__getOwnPropSymbols$J)
36180
+ for (var prop of __getOwnPropSymbols$J(b)) {
36181
+ if (__propIsEnum$J.call(b, prop))
36182
+ __defNormalProp$A(a, prop, b[prop]);
35951
36183
  }
35952
36184
  return a;
35953
36185
  };
35954
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36186
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35955
36187
  var __objRest$r = (source, exclude) => {
35956
36188
  var target = {};
35957
36189
  for (var prop in source)
35958
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36190
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
35959
36191
  target[prop] = source[prop];
35960
- if (source != null && __getOwnPropSymbols$I)
35961
- for (var prop of __getOwnPropSymbols$I(source)) {
35962
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36192
+ if (source != null && __getOwnPropSymbols$J)
36193
+ for (var prop of __getOwnPropSymbols$J(source)) {
36194
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
35963
36195
  target[prop] = source[prop];
35964
36196
  }
35965
36197
  return target;
35966
36198
  };
35967
36199
  const useListCarriers = (params) => {
35968
36200
  const { client } = useShipEngine();
35969
- const _a = __spreadValues$z({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
35970
- return useQuery(__spreadProps$w(__spreadValues$z({}, rest), {
36201
+ const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
36202
+ return useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
35971
36203
  onError,
35972
36204
  queryFn: () => client.carriers.list(queryFnParams),
35973
36205
  queryKey: ["useListCarriers", queryFnParams],
@@ -35975,22 +36207,22 @@ const useListCarriers = (params) => {
35975
36207
  }));
35976
36208
  };
35977
36209
 
35978
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
35979
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
35980
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36210
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36211
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36212
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35981
36213
  var __objRest$q = (source, exclude) => {
35982
36214
  var target = {};
35983
36215
  for (var prop in source)
35984
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36216
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
35985
36217
  target[prop] = source[prop];
35986
- if (source != null && __getOwnPropSymbols$H)
35987
- for (var prop of __getOwnPropSymbols$H(source)) {
35988
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36218
+ if (source != null && __getOwnPropSymbols$I)
36219
+ for (var prop of __getOwnPropSymbols$I(source)) {
36220
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
35989
36221
  target[prop] = source[prop];
35990
36222
  }
35991
36223
  return target;
35992
36224
  };
35993
- var __async$M = (__this, __arguments, generator) => {
36225
+ var __async$N = (__this, __arguments, generator) => {
35994
36226
  return new Promise((resolve, reject) => {
35995
36227
  var fulfilled = (value) => {
35996
36228
  try {
@@ -36014,7 +36246,7 @@ const useUpdateAutoFunding = () => {
36014
36246
  const { client } = useShipEngine();
36015
36247
  const queryClient = useQueryClient();
36016
36248
  return useMutation({
36017
- mutationFn: (_a) => __async$M(void 0, null, function* () {
36249
+ mutationFn: (_a) => __async$N(void 0, null, function* () {
36018
36250
  var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36019
36251
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36020
36252
  return result.data;
@@ -36044,7 +36276,7 @@ const useGetZonesByCarrier = (carrierId) => {
36044
36276
  });
36045
36277
  };
36046
36278
 
36047
- var __async$L = (__this, __arguments, generator) => {
36279
+ var __async$M = (__this, __arguments, generator) => {
36048
36280
  return new Promise((resolve, reject) => {
36049
36281
  var fulfilled = (value) => {
36050
36282
  try {
@@ -36067,7 +36299,7 @@ var __async$L = (__this, __arguments, generator) => {
36067
36299
  const useDeleteCarrier = () => {
36068
36300
  const { client } = useShipEngine();
36069
36301
  return useMutation({
36070
- mutationFn: (carrierId) => __async$L(void 0, null, function* () {
36302
+ mutationFn: (carrierId) => __async$M(void 0, null, function* () {
36071
36303
  const result = yield client.carriers.delete(carrierId);
36072
36304
  return result.data;
36073
36305
  }),
@@ -36076,17 +36308,17 @@ const useDeleteCarrier = () => {
36076
36308
  });
36077
36309
  };
36078
36310
 
36079
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36080
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36081
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36311
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36312
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36313
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36082
36314
  var __objRest$p = (source, exclude) => {
36083
36315
  var target = {};
36084
36316
  for (var prop in source)
36085
- if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36317
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36086
36318
  target[prop] = source[prop];
36087
- if (source != null && __getOwnPropSymbols$G)
36088
- for (var prop of __getOwnPropSymbols$G(source)) {
36089
- if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36319
+ if (source != null && __getOwnPropSymbols$H)
36320
+ for (var prop of __getOwnPropSymbols$H(source)) {
36321
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36090
36322
  target[prop] = source[prop];
36091
36323
  }
36092
36324
  return target;
@@ -36103,17 +36335,17 @@ const useGetCarrierConnectionForm = (_params) => {
36103
36335
  });
36104
36336
  };
36105
36337
 
36106
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36107
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36108
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36338
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36339
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36340
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36109
36341
  var __objRest$o = (source, exclude) => {
36110
36342
  var target = {};
36111
36343
  for (var prop in source)
36112
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
36344
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36113
36345
  target[prop] = source[prop];
36114
- if (source != null && __getOwnPropSymbols$F)
36115
- for (var prop of __getOwnPropSymbols$F(source)) {
36116
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
36346
+ if (source != null && __getOwnPropSymbols$G)
36347
+ for (var prop of __getOwnPropSymbols$G(source)) {
36348
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36117
36349
  target[prop] = source[prop];
36118
36350
  }
36119
36351
  return target;
@@ -36130,26 +36362,26 @@ const useListCarrierConnections = (_params) => {
36130
36362
  });
36131
36363
  };
36132
36364
 
36133
- var __defProp$y = Object.defineProperty;
36134
- var __defProps$v = Object.defineProperties;
36135
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36136
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36137
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36138
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36139
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36140
- var __spreadValues$y = (a, b) => {
36365
+ var __defProp$z = Object.defineProperty;
36366
+ var __defProps$w = Object.defineProperties;
36367
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36368
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36369
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36370
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36371
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36372
+ var __spreadValues$z = (a, b) => {
36141
36373
  for (var prop in b || (b = {}))
36142
- if (__hasOwnProp$E.call(b, prop))
36143
- __defNormalProp$y(a, prop, b[prop]);
36144
- if (__getOwnPropSymbols$E)
36145
- for (var prop of __getOwnPropSymbols$E(b)) {
36146
- if (__propIsEnum$E.call(b, prop))
36147
- __defNormalProp$y(a, prop, b[prop]);
36374
+ if (__hasOwnProp$F.call(b, prop))
36375
+ __defNormalProp$z(a, prop, b[prop]);
36376
+ if (__getOwnPropSymbols$F)
36377
+ for (var prop of __getOwnPropSymbols$F(b)) {
36378
+ if (__propIsEnum$F.call(b, prop))
36379
+ __defNormalProp$z(a, prop, b[prop]);
36148
36380
  }
36149
36381
  return a;
36150
36382
  };
36151
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36152
- var __async$K = (__this, __arguments, generator) => {
36383
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36384
+ var __async$L = (__this, __arguments, generator) => {
36153
36385
  return new Promise((resolve, reject) => {
36154
36386
  var fulfilled = (value) => {
36155
36387
  try {
@@ -36172,8 +36404,8 @@ var __async$K = (__this, __arguments, generator) => {
36172
36404
  const useConnectCarrierAccount = () => {
36173
36405
  const { client } = useShipEngine();
36174
36406
  return useMutation({
36175
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierName, formData }) {
36176
- const formDataWithFlag = __spreadProps$v(__spreadValues$y({}, formData), { __skipDecamelize: true });
36407
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
36408
+ const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
36177
36409
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36178
36410
  return result.data;
36179
36411
  }),
@@ -36193,33 +36425,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
36193
36425
  });
36194
36426
  };
36195
36427
 
36196
- var __defProp$x = Object.defineProperty;
36197
- var __defProps$u = Object.defineProperties;
36198
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36199
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36200
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36201
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36202
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36203
- var __spreadValues$x = (a, b) => {
36428
+ var __defProp$y = Object.defineProperty;
36429
+ var __defProps$v = Object.defineProperties;
36430
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36431
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36432
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36433
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36434
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36435
+ var __spreadValues$y = (a, b) => {
36204
36436
  for (var prop in b || (b = {}))
36205
- if (__hasOwnProp$D.call(b, prop))
36206
- __defNormalProp$x(a, prop, b[prop]);
36207
- if (__getOwnPropSymbols$D)
36208
- for (var prop of __getOwnPropSymbols$D(b)) {
36209
- if (__propIsEnum$D.call(b, prop))
36210
- __defNormalProp$x(a, prop, b[prop]);
36437
+ if (__hasOwnProp$E.call(b, prop))
36438
+ __defNormalProp$y(a, prop, b[prop]);
36439
+ if (__getOwnPropSymbols$E)
36440
+ for (var prop of __getOwnPropSymbols$E(b)) {
36441
+ if (__propIsEnum$E.call(b, prop))
36442
+ __defNormalProp$y(a, prop, b[prop]);
36211
36443
  }
36212
36444
  return a;
36213
36445
  };
36214
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36446
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36215
36447
  var __objRest$n = (source, exclude) => {
36216
36448
  var target = {};
36217
36449
  for (var prop in source)
36218
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
36450
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
36219
36451
  target[prop] = source[prop];
36220
- if (source != null && __getOwnPropSymbols$D)
36221
- for (var prop of __getOwnPropSymbols$D(source)) {
36222
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
36452
+ if (source != null && __getOwnPropSymbols$E)
36453
+ for (var prop of __getOwnPropSymbols$E(source)) {
36454
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
36223
36455
  target[prop] = source[prop];
36224
36456
  }
36225
36457
  return target;
@@ -36232,7 +36464,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
36232
36464
  ]);
36233
36465
  const { client } = useShipEngine();
36234
36466
  const { carrierName, carrierId } = queryFnParams;
36235
- return useQuery(__spreadProps$u(__spreadValues$x({}, params), {
36467
+ return useQuery(__spreadProps$v(__spreadValues$y({}, params), {
36236
36468
  onError,
36237
36469
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
36238
36470
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -36240,26 +36472,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
36240
36472
  }));
36241
36473
  };
36242
36474
 
36243
- var __defProp$w = Object.defineProperty;
36244
- var __defProps$t = Object.defineProperties;
36245
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36246
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36247
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36248
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36249
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36250
- var __spreadValues$w = (a, b) => {
36475
+ var __defProp$x = Object.defineProperty;
36476
+ var __defProps$u = Object.defineProperties;
36477
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36478
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36479
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36480
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36481
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36482
+ var __spreadValues$x = (a, b) => {
36251
36483
  for (var prop in b || (b = {}))
36252
- if (__hasOwnProp$C.call(b, prop))
36253
- __defNormalProp$w(a, prop, b[prop]);
36254
- if (__getOwnPropSymbols$C)
36255
- for (var prop of __getOwnPropSymbols$C(b)) {
36256
- if (__propIsEnum$C.call(b, prop))
36257
- __defNormalProp$w(a, prop, b[prop]);
36484
+ if (__hasOwnProp$D.call(b, prop))
36485
+ __defNormalProp$x(a, prop, b[prop]);
36486
+ if (__getOwnPropSymbols$D)
36487
+ for (var prop of __getOwnPropSymbols$D(b)) {
36488
+ if (__propIsEnum$D.call(b, prop))
36489
+ __defNormalProp$x(a, prop, b[prop]);
36258
36490
  }
36259
36491
  return a;
36260
36492
  };
36261
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36262
- var __async$J = (__this, __arguments, generator) => {
36493
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36494
+ var __async$K = (__this, __arguments, generator) => {
36263
36495
  return new Promise((resolve, reject) => {
36264
36496
  var fulfilled = (value) => {
36265
36497
  try {
@@ -36281,8 +36513,8 @@ var __async$J = (__this, __arguments, generator) => {
36281
36513
  };
36282
36514
  const useUpdateConnectionsCarrierSettings = (params) => {
36283
36515
  const { client } = useShipEngine();
36284
- return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36285
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({
36516
+ return useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36517
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({
36286
36518
  carrierName,
36287
36519
  carrierId,
36288
36520
  formData
@@ -36299,26 +36531,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
36299
36531
  }));
36300
36532
  };
36301
36533
 
36302
- var __defProp$v = Object.defineProperty;
36303
- var __defProps$s = Object.defineProperties;
36304
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36305
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36306
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36307
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36308
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36309
- var __spreadValues$v = (a, b) => {
36534
+ var __defProp$w = Object.defineProperty;
36535
+ var __defProps$t = Object.defineProperties;
36536
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36537
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36538
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36539
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36540
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36541
+ var __spreadValues$w = (a, b) => {
36310
36542
  for (var prop in b || (b = {}))
36311
- if (__hasOwnProp$B.call(b, prop))
36312
- __defNormalProp$v(a, prop, b[prop]);
36313
- if (__getOwnPropSymbols$B)
36314
- for (var prop of __getOwnPropSymbols$B(b)) {
36315
- if (__propIsEnum$B.call(b, prop))
36316
- __defNormalProp$v(a, prop, b[prop]);
36543
+ if (__hasOwnProp$C.call(b, prop))
36544
+ __defNormalProp$w(a, prop, b[prop]);
36545
+ if (__getOwnPropSymbols$C)
36546
+ for (var prop of __getOwnPropSymbols$C(b)) {
36547
+ if (__propIsEnum$C.call(b, prop))
36548
+ __defNormalProp$w(a, prop, b[prop]);
36317
36549
  }
36318
36550
  return a;
36319
36551
  };
36320
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36321
- var __async$I = (__this, __arguments, generator) => {
36552
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36553
+ var __async$J = (__this, __arguments, generator) => {
36322
36554
  return new Promise((resolve, reject) => {
36323
36555
  var fulfilled = (value) => {
36324
36556
  try {
@@ -36340,8 +36572,8 @@ var __async$I = (__this, __arguments, generator) => {
36340
36572
  };
36341
36573
  const useRequestStampsAccountUrls = (params) => {
36342
36574
  const { client } = useShipEngine();
36343
- return useMutation(__spreadProps$s(__spreadValues$v({}, params), {
36344
- mutationFn: (request) => __async$I(void 0, null, function* () {
36575
+ return useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36576
+ mutationFn: (request) => __async$J(void 0, null, function* () {
36345
36577
  const result = yield client.connections.requestStampsAccountUrls(request);
36346
36578
  return result.data;
36347
36579
  }),
@@ -36360,6 +36592,38 @@ const useListCustomPackageTypes = () => {
36360
36592
  });
36361
36593
  };
36362
36594
 
36595
+ var __async$I = (__this, __arguments, generator) => {
36596
+ return new Promise((resolve, reject) => {
36597
+ var fulfilled = (value) => {
36598
+ try {
36599
+ step(generator.next(value));
36600
+ } catch (e) {
36601
+ reject(e);
36602
+ }
36603
+ };
36604
+ var rejected = (value) => {
36605
+ try {
36606
+ step(generator.throw(value));
36607
+ } catch (e) {
36608
+ reject(e);
36609
+ }
36610
+ };
36611
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36612
+ step((generator = generator.apply(__this, __arguments)).next());
36613
+ });
36614
+ };
36615
+ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36616
+ const { client } = useShipEngine();
36617
+ return useMutation({
36618
+ mutationFn: (request) => __async$I(void 0, null, function* () {
36619
+ const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36620
+ return result.data.acceptedTerms;
36621
+ }),
36622
+ mutationKey: ["useAcceptFundingSourceTerms", fundingSourceId],
36623
+ onError
36624
+ });
36625
+ };
36626
+
36363
36627
  var __async$H = (__this, __arguments, generator) => {
36364
36628
  return new Promise((resolve, reject) => {
36365
36629
  var fulfilled = (value) => {
@@ -36424,6 +36688,36 @@ const useFundingSourcesAddFunds = () => {
36424
36688
  });
36425
36689
  };
36426
36690
 
36691
+ var __defProp$v = Object.defineProperty;
36692
+ var __defProps$s = Object.defineProperties;
36693
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36694
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36695
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36696
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36697
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36698
+ var __spreadValues$v = (a, b) => {
36699
+ for (var prop in b || (b = {}))
36700
+ if (__hasOwnProp$B.call(b, prop))
36701
+ __defNormalProp$v(a, prop, b[prop]);
36702
+ if (__getOwnPropSymbols$B)
36703
+ for (var prop of __getOwnPropSymbols$B(b)) {
36704
+ if (__propIsEnum$B.call(b, prop))
36705
+ __defNormalProp$v(a, prop, b[prop]);
36706
+ }
36707
+ return a;
36708
+ };
36709
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36710
+ const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
36711
+ const { client } = useShipEngine();
36712
+ const queryParams = __spreadValues$v({}, params);
36713
+ return useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
36714
+ onError,
36715
+ queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
36716
+ queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
36717
+ select: (result) => result.data.acceptedTerms
36718
+ }));
36719
+ };
36720
+
36427
36721
  const useGetFundingSourceById = (fundingSourceId) => {
36428
36722
  const { client } = useShipEngine();
36429
36723
  return useQuery({
@@ -40284,4 +40578,4 @@ const alchemy = {
40284
40578
  createElement
40285
40579
  };
40286
40580
 
40287
- export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
40581
+ export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountFeaturesAPI, AccountRefundAssistAPI, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FeatureId, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAcceptCarrierTerms, useAcceptFundingSourceTerms, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeletePaymentMethod, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDisableAccountAddon, useDisableRefundAssist, useDownloadRateCard, useEditShippingRule, useEnableAccountAddon, useEnableRefundAssist, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceAcceptedTerms, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentAccount, useGetPaymentMethods, useGetRateCardById, useGetRefundAssist, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useIdentityVerification, useListAccountAddons, useListAccountFeatures, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestAccountFeature, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };