@shipengine/alchemy 6.0.59 → 6.0.61

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 +246 -208
  2. package/index.mjs +246 -209
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4905,41 +4905,33 @@ var _getHolder = getHolder$2;
4905
4905
 
4906
4906
  /** Used as references for various `Number` constants. */
4907
4907
 
4908
- var _isIndex;
4909
- var hasRequired_isIndex;
4908
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
4910
4909
 
4911
- function require_isIndex () {
4912
- if (hasRequired_isIndex) return _isIndex;
4913
- hasRequired_isIndex = 1;
4914
- var MAX_SAFE_INTEGER = 9007199254740991;
4910
+ /** Used to detect unsigned integer values. */
4911
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4915
4912
 
4916
- /** Used to detect unsigned integer values. */
4917
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4918
-
4919
- /**
4920
- * Checks if `value` is a valid array-like index.
4921
- *
4922
- * @private
4923
- * @param {*} value The value to check.
4924
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4925
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4926
- */
4927
- function isIndex(value, length) {
4928
- var type = typeof value;
4929
- length = length == null ? MAX_SAFE_INTEGER : length;
4930
-
4931
- return !!length &&
4932
- (type == 'number' ||
4933
- (type != 'symbol' && reIsUint.test(value))) &&
4934
- (value > -1 && value % 1 == 0 && value < length);
4935
- }
4913
+ /**
4914
+ * Checks if `value` is a valid array-like index.
4915
+ *
4916
+ * @private
4917
+ * @param {*} value The value to check.
4918
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4919
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4920
+ */
4921
+ function isIndex$3(value, length) {
4922
+ var type = typeof value;
4923
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
4936
4924
 
4937
- _isIndex = isIndex;
4938
- return _isIndex;
4925
+ return !!length &&
4926
+ (type == 'number' ||
4927
+ (type != 'symbol' && reIsUint.test(value))) &&
4928
+ (value > -1 && value % 1 == 0 && value < length);
4939
4929
  }
4940
4930
 
4931
+ var _isIndex = isIndex$3;
4932
+
4941
4933
  var copyArray$2 = _copyArray,
4942
- isIndex$2 = require_isIndex();
4934
+ isIndex$2 = _isIndex;
4943
4935
 
4944
4936
  /* Built-in method references for those with the same name as other `lodash` methods. */
4945
4937
  var nativeMin$1 = Math.min;
@@ -6132,7 +6124,7 @@ var baseTimes = _baseTimes,
6132
6124
  isArguments$2 = requireIsArguments(),
6133
6125
  isArray$f = isArray_1,
6134
6126
  isBuffer$4 = isBufferExports,
6135
- isIndex$1 = require_isIndex(),
6127
+ isIndex$1 = _isIndex,
6136
6128
  isTypedArray$1 = requireIsTypedArray();
6137
6129
 
6138
6130
  /** Used for built-in method references. */
@@ -9463,7 +9455,7 @@ var _baseHasIn = baseHasIn$1;
9463
9455
  var castPath = _castPath,
9464
9456
  isArguments$1 = requireIsArguments(),
9465
9457
  isArray$8 = isArray_1,
9466
- isIndex = require_isIndex(),
9458
+ isIndex = _isIndex,
9467
9459
  isLength = isLength_1,
9468
9460
  toKey$3 = _toKey;
9469
9461
 
@@ -10353,7 +10345,7 @@ function require_isIterateeCall () {
10353
10345
  hasRequired_isIterateeCall = 1;
10354
10346
  var eq = requireEq(),
10355
10347
  isArrayLike = isArrayLike_1,
10356
- isIndex = require_isIndex(),
10348
+ isIndex = _isIndex,
10357
10349
  isObject = isObject_1;
10358
10350
 
10359
10351
  /**
@@ -10559,6 +10551,16 @@ const fallbackTheme = {
10559
10551
  pink: '#E995BA',
10560
10552
  green: '#DEF895'
10561
10553
  }
10554
+ },
10555
+ destructive: {
10556
+ ultraLight: '#FDF7F7',
10557
+ light: '#821212',
10558
+ main: '#A91919',
10559
+ dark: '#5D0E0E'
10560
+ },
10561
+ upgrade: {
10562
+ main: '#8D30F7',
10563
+ light: '#F6F2FF'
10562
10564
  }
10563
10565
  },
10564
10566
  spacingBase: 8,
@@ -10820,17 +10822,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10820
10822
  return AccountBillingPlanChangeType2;
10821
10823
  })(AccountBillingPlanChangeType || {});
10822
10824
 
10823
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10824
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10825
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10825
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
10826
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
10827
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
10826
10828
  var __objRest$x = (source, exclude) => {
10827
10829
  var target = {};
10828
10830
  for (var prop in source)
10829
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10831
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
10830
10832
  target[prop] = source[prop];
10831
- if (source != null && __getOwnPropSymbols$V)
10832
- for (var prop of __getOwnPropSymbols$V(source)) {
10833
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10833
+ if (source != null && __getOwnPropSymbols$W)
10834
+ for (var prop of __getOwnPropSymbols$W(source)) {
10835
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
10834
10836
  target[prop] = source[prop];
10835
10837
  }
10836
10838
  return target;
@@ -10965,17 +10967,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10965
10967
  RateCardStatus
10966
10968
  }, Symbol.toStringTag, { value: 'Module' }));
10967
10969
 
10968
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
10969
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
10970
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
10970
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10971
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10972
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10971
10973
  var __objRest$w = (source, exclude) => {
10972
10974
  var target = {};
10973
10975
  for (var prop in source)
10974
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
10976
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10975
10977
  target[prop] = source[prop];
10976
- if (source != null && __getOwnPropSymbols$U)
10977
- for (var prop of __getOwnPropSymbols$U(source)) {
10978
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
10978
+ if (source != null && __getOwnPropSymbols$V)
10979
+ for (var prop of __getOwnPropSymbols$V(source)) {
10980
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10979
10981
  target[prop] = source[prop];
10980
10982
  }
10981
10983
  return target;
@@ -11082,6 +11084,13 @@ class AuctanePayAPI {
11082
11084
  request
11083
11085
  );
11084
11086
  };
11087
+ /**
11088
+ * The `getPaymentMethods` method retrieve the list of Payment Methods for a given user.
11089
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Get-payment-methods
11090
+ */
11091
+ this.getPaymentMethods = () => {
11092
+ return this.client.get("/v1/payments/payment_methods");
11093
+ };
11085
11094
  this.client = client;
11086
11095
  }
11087
11096
  }
@@ -13872,33 +13881,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13872
13881
  return obj;
13873
13882
  };
13874
13883
 
13875
- var __defProp$I = Object.defineProperty;
13876
- var __defProps$C = Object.defineProperties;
13877
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
13878
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
13879
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
13880
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
13881
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13882
- var __spreadValues$I = (a, b) => {
13884
+ var __defProp$J = Object.defineProperty;
13885
+ var __defProps$D = Object.defineProperties;
13886
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
13887
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
13888
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
13889
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
13890
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13891
+ var __spreadValues$J = (a, b) => {
13883
13892
  for (var prop in b || (b = {}))
13884
- if (__hasOwnProp$T.call(b, prop))
13885
- __defNormalProp$I(a, prop, b[prop]);
13886
- if (__getOwnPropSymbols$T)
13887
- for (var prop of __getOwnPropSymbols$T(b)) {
13888
- if (__propIsEnum$T.call(b, prop))
13889
- __defNormalProp$I(a, prop, b[prop]);
13893
+ if (__hasOwnProp$U.call(b, prop))
13894
+ __defNormalProp$J(a, prop, b[prop]);
13895
+ if (__getOwnPropSymbols$U)
13896
+ for (var prop of __getOwnPropSymbols$U(b)) {
13897
+ if (__propIsEnum$U.call(b, prop))
13898
+ __defNormalProp$J(a, prop, b[prop]);
13890
13899
  }
13891
13900
  return a;
13892
13901
  };
13893
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
13902
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
13894
13903
  var __objRest$v = (source, exclude) => {
13895
13904
  var target = {};
13896
13905
  for (var prop in source)
13897
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
13906
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
13898
13907
  target[prop] = source[prop];
13899
- if (source != null && __getOwnPropSymbols$T)
13900
- for (var prop of __getOwnPropSymbols$T(source)) {
13901
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
13908
+ if (source != null && __getOwnPropSymbols$U)
13909
+ for (var prop of __getOwnPropSymbols$U(source)) {
13910
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
13902
13911
  target[prop] = source[prop];
13903
13912
  }
13904
13913
  return target;
@@ -13948,7 +13957,7 @@ class CarriersAPI {
13948
13957
  const endUserIpAddress = yield getEndUserIpAddress();
13949
13958
  if (!endUserIpAddress)
13950
13959
  return Promise.reject([new CodedError("Unable to get IP address")]);
13951
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$C(__spreadValues$I({}, connection), {
13960
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$D(__spreadValues$J({}, connection), {
13952
13961
  endUserIpAddress
13953
13962
  }));
13954
13963
  });
@@ -13982,9 +13991,7 @@ class CarriersAPI {
13982
13991
  * values for auto-funding. Auto-funding is disabled by default.
13983
13992
  */
13984
13993
  this.getAutoFunding = (carrierId) => {
13985
- return this.client.get(
13986
- `/v1/carriers/${carrierId}/auto_funding`
13987
- );
13994
+ return this.client.get(`/v1/carriers/${carrierId}/auto_funding`);
13988
13995
  };
13989
13996
  /**
13990
13997
  * The `getServices` method retrieves a list of shipping services that a given carrier offers.
@@ -14034,17 +14041,17 @@ class CarriersAPI {
14034
14041
  }
14035
14042
  }
14036
14043
 
14037
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
14038
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
14039
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
14044
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
14045
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
14046
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
14040
14047
  var __objRest$u = (source, exclude) => {
14041
14048
  var target = {};
14042
14049
  for (var prop in source)
14043
- if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
14050
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
14044
14051
  target[prop] = source[prop];
14045
- if (source != null && __getOwnPropSymbols$S)
14046
- for (var prop of __getOwnPropSymbols$S(source)) {
14047
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
14052
+ if (source != null && __getOwnPropSymbols$T)
14053
+ for (var prop of __getOwnPropSymbols$T(source)) {
14054
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
14048
14055
  target[prop] = source[prop];
14049
14056
  }
14050
14057
  return target;
@@ -16259,19 +16266,19 @@ class CustomPackagesAPI {
16259
16266
  }
16260
16267
  }
16261
16268
 
16262
- var __defProp$H = Object.defineProperty;
16263
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16264
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16265
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16266
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16267
- var __spreadValues$H = (a, b) => {
16269
+ var __defProp$I = Object.defineProperty;
16270
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16271
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16272
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16273
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16274
+ var __spreadValues$I = (a, b) => {
16268
16275
  for (var prop in b || (b = {}))
16269
- if (__hasOwnProp$R.call(b, prop))
16270
- __defNormalProp$H(a, prop, b[prop]);
16271
- if (__getOwnPropSymbols$R)
16272
- for (var prop of __getOwnPropSymbols$R(b)) {
16273
- if (__propIsEnum$R.call(b, prop))
16274
- __defNormalProp$H(a, prop, b[prop]);
16276
+ if (__hasOwnProp$S.call(b, prop))
16277
+ __defNormalProp$I(a, prop, b[prop]);
16278
+ if (__getOwnPropSymbols$S)
16279
+ for (var prop of __getOwnPropSymbols$S(b)) {
16280
+ if (__propIsEnum$S.call(b, prop))
16281
+ __defNormalProp$I(a, prop, b[prop]);
16275
16282
  }
16276
16283
  return a;
16277
16284
  };
@@ -16319,7 +16326,7 @@ class FundingSourcesAPI {
16319
16326
  if (!endUserIpAddress) {
16320
16327
  return Promise.reject([new CodedError("Unable to get IP address")]);
16321
16328
  }
16322
- return yield this.client.post("/v1/funding_sources", __spreadValues$H({
16329
+ return yield this.client.post("/v1/funding_sources", __spreadValues$I({
16323
16330
  endUserIpAddress
16324
16331
  }, createFundingSource));
16325
16332
  });
@@ -16338,7 +16345,7 @@ class FundingSourcesAPI {
16338
16345
  {
16339
16346
  billingInfo,
16340
16347
  endUserIpAddress,
16341
- paymentMethod: __spreadValues$H({
16348
+ paymentMethod: __spreadValues$I({
16342
16349
  creditCardInfo
16343
16350
  }, auctanePayInfo)
16344
16351
  }
@@ -16353,7 +16360,7 @@ class FundingSourcesAPI {
16353
16360
  if (!endUserIpAddress) {
16354
16361
  return Promise.reject([new CodedError("Unable to get IP address")]);
16355
16362
  }
16356
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$H({
16363
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$I({
16357
16364
  endUserIpAddress
16358
16365
  }, carrier));
16359
16366
  });
@@ -16522,17 +16529,17 @@ class LabelsAPI {
16522
16529
  }
16523
16530
  }
16524
16531
 
16525
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16526
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16527
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16532
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16533
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16534
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16528
16535
  var __objRest$t = (source, exclude) => {
16529
16536
  var target = {};
16530
16537
  for (var prop in source)
16531
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
16538
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
16532
16539
  target[prop] = source[prop];
16533
- if (source != null && __getOwnPropSymbols$Q)
16534
- for (var prop of __getOwnPropSymbols$Q(source)) {
16535
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
16540
+ if (source != null && __getOwnPropSymbols$R)
16541
+ for (var prop of __getOwnPropSymbols$R(source)) {
16542
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
16536
16543
  target[prop] = source[prop];
16537
16544
  }
16538
16545
  return target;
@@ -16653,19 +16660,19 @@ class RateCardsAPI {
16653
16660
  }
16654
16661
  }
16655
16662
 
16656
- var __defProp$G = Object.defineProperty;
16657
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16658
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16659
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16660
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16661
- var __spreadValues$G = (a, b) => {
16663
+ var __defProp$H = Object.defineProperty;
16664
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16665
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16666
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16667
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16668
+ var __spreadValues$H = (a, b) => {
16662
16669
  for (var prop in b || (b = {}))
16663
- if (__hasOwnProp$P.call(b, prop))
16664
- __defNormalProp$G(a, prop, b[prop]);
16665
- if (__getOwnPropSymbols$P)
16666
- for (var prop of __getOwnPropSymbols$P(b)) {
16667
- if (__propIsEnum$P.call(b, prop))
16668
- __defNormalProp$G(a, prop, b[prop]);
16670
+ if (__hasOwnProp$Q.call(b, prop))
16671
+ __defNormalProp$H(a, prop, b[prop]);
16672
+ if (__getOwnPropSymbols$Q)
16673
+ for (var prop of __getOwnPropSymbols$Q(b)) {
16674
+ if (__propIsEnum$Q.call(b, prop))
16675
+ __defNormalProp$H(a, prop, b[prop]);
16669
16676
  }
16670
16677
  return a;
16671
16678
  };
@@ -16687,7 +16694,7 @@ class RatesAPI {
16687
16694
  * method.
16688
16695
  */
16689
16696
  this.estimate = (params) => {
16690
- return this.client.post("/v1/rates/estimate", __spreadValues$G({}, params));
16697
+ return this.client.post("/v1/rates/estimate", __spreadValues$H({}, params));
16691
16698
  };
16692
16699
  this.client = client;
16693
16700
  }
@@ -16871,19 +16878,19 @@ class SellersAPI {
16871
16878
  }
16872
16879
  }
16873
16880
 
16874
- var __defProp$F = Object.defineProperty;
16875
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16876
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16877
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16878
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16879
- var __spreadValues$F = (a, b) => {
16881
+ var __defProp$G = Object.defineProperty;
16882
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16883
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16884
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16885
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16886
+ var __spreadValues$G = (a, b) => {
16880
16887
  for (var prop in b || (b = {}))
16881
- if (__hasOwnProp$O.call(b, prop))
16882
- __defNormalProp$F(a, prop, b[prop]);
16883
- if (__getOwnPropSymbols$O)
16884
- for (var prop of __getOwnPropSymbols$O(b)) {
16885
- if (__propIsEnum$O.call(b, prop))
16886
- __defNormalProp$F(a, prop, b[prop]);
16888
+ if (__hasOwnProp$P.call(b, prop))
16889
+ __defNormalProp$G(a, prop, b[prop]);
16890
+ if (__getOwnPropSymbols$P)
16891
+ for (var prop of __getOwnPropSymbols$P(b)) {
16892
+ if (__propIsEnum$P.call(b, prop))
16893
+ __defNormalProp$G(a, prop, b[prop]);
16887
16894
  }
16888
16895
  return a;
16889
16896
  };
@@ -16895,7 +16902,7 @@ class ServicePointsAPI {
16895
16902
  * Either an address, coordinates, or an address query
16896
16903
  */
16897
16904
  this.list = (options) => {
16898
- return this.client.post("/v1/service_points/list", __spreadValues$F({}, options));
16905
+ return this.client.post("/v1/service_points/list", __spreadValues$G({}, options));
16899
16906
  };
16900
16907
  /**
16901
16908
  * Get a specific service point by its carrier code, country code, and id
@@ -34379,33 +34386,33 @@ class WebhooksAPI {
34379
34386
  }
34380
34387
  }
34381
34388
 
34382
- var __defProp$E = Object.defineProperty;
34383
- var __defProps$B = Object.defineProperties;
34384
- var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34385
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34386
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34387
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34388
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34389
- var __spreadValues$E = (a, b) => {
34389
+ var __defProp$F = Object.defineProperty;
34390
+ var __defProps$C = Object.defineProperties;
34391
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
34392
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
34393
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
34394
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
34395
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34396
+ var __spreadValues$F = (a, b) => {
34390
34397
  for (var prop in b || (b = {}))
34391
- if (__hasOwnProp$N.call(b, prop))
34392
- __defNormalProp$E(a, prop, b[prop]);
34393
- if (__getOwnPropSymbols$N)
34394
- for (var prop of __getOwnPropSymbols$N(b)) {
34395
- if (__propIsEnum$N.call(b, prop))
34396
- __defNormalProp$E(a, prop, b[prop]);
34398
+ if (__hasOwnProp$O.call(b, prop))
34399
+ __defNormalProp$F(a, prop, b[prop]);
34400
+ if (__getOwnPropSymbols$O)
34401
+ for (var prop of __getOwnPropSymbols$O(b)) {
34402
+ if (__propIsEnum$O.call(b, prop))
34403
+ __defNormalProp$F(a, prop, b[prop]);
34397
34404
  }
34398
34405
  return a;
34399
34406
  };
34400
- var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34407
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
34401
34408
  var __objRest$s = (source, exclude) => {
34402
34409
  var target = {};
34403
34410
  for (var prop in source)
34404
- if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
34411
+ if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
34405
34412
  target[prop] = source[prop];
34406
- if (source != null && __getOwnPropSymbols$N)
34407
- for (var prop of __getOwnPropSymbols$N(source)) {
34408
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
34413
+ if (source != null && __getOwnPropSymbols$O)
34414
+ for (var prop of __getOwnPropSymbols$O(source)) {
34415
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
34409
34416
  target[prop] = source[prop];
34410
34417
  }
34411
34418
  return target;
@@ -34433,7 +34440,7 @@ var __async$X = (__this, __arguments, generator) => {
34433
34440
  const logger$1 = E({
34434
34441
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34435
34442
  name: "shipengine-api",
34436
- serializers: __spreadProps$B(__spreadValues$E({}, k), {
34443
+ serializers: __spreadProps$C(__spreadValues$F({}, k), {
34437
34444
  req: (req) => ({
34438
34445
  headers: req.headers,
34439
34446
  method: req.method,
@@ -34458,7 +34465,7 @@ class ShipEngineAPI {
34458
34465
  this.getSandboxToken = getSandboxToken;
34459
34466
  const client = axios.create({
34460
34467
  baseURL,
34461
- headers: __spreadProps$B(__spreadValues$E({}, headers), {
34468
+ headers: __spreadProps$C(__spreadValues$F({}, headers), {
34462
34469
  "Content-Type": "application/json"
34463
34470
  }),
34464
34471
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34875,25 +34882,25 @@ const delay = (ms) => new Promise((resolve) => {
34875
34882
 
34876
34883
  const onError = (_errors) => _default();
34877
34884
 
34878
- var __defProp$D = Object.defineProperty;
34879
- var __defProps$A = Object.defineProperties;
34880
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
34881
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
34882
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
34883
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
34884
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34885
- var __spreadValues$D = (a, b) => {
34885
+ var __defProp$E = Object.defineProperty;
34886
+ var __defProps$B = Object.defineProperties;
34887
+ var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34888
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34889
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34890
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34891
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34892
+ var __spreadValues$E = (a, b) => {
34886
34893
  for (var prop in b || (b = {}))
34887
- if (__hasOwnProp$M.call(b, prop))
34888
- __defNormalProp$D(a, prop, b[prop]);
34889
- if (__getOwnPropSymbols$M)
34890
- for (var prop of __getOwnPropSymbols$M(b)) {
34891
- if (__propIsEnum$M.call(b, prop))
34892
- __defNormalProp$D(a, prop, b[prop]);
34894
+ if (__hasOwnProp$N.call(b, prop))
34895
+ __defNormalProp$E(a, prop, b[prop]);
34896
+ if (__getOwnPropSymbols$N)
34897
+ for (var prop of __getOwnPropSymbols$N(b)) {
34898
+ if (__propIsEnum$N.call(b, prop))
34899
+ __defNormalProp$E(a, prop, b[prop]);
34893
34900
  }
34894
34901
  return a;
34895
34902
  };
34896
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
34903
+ var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34897
34904
  const streams = [];
34898
34905
  if (process.env.NODE_ENV === "production") {
34899
34906
  streams.push({
@@ -34902,7 +34909,7 @@ if (process.env.NODE_ENV === "production") {
34902
34909
  }
34903
34910
  const logger = E({
34904
34911
  name: "shipengine",
34905
- serializers: __spreadProps$A(__spreadValues$D({}, k), {
34912
+ serializers: __spreadProps$B(__spreadValues$E({}, k), {
34906
34913
  req: (req) => ({
34907
34914
  headers: req.headers,
34908
34915
  method: req.method,
@@ -35139,25 +35146,25 @@ const useValidateAddresses = () => {
35139
35146
  });
35140
35147
  };
35141
35148
 
35142
- var __defProp$C = Object.defineProperty;
35143
- var __defProps$z = Object.defineProperties;
35144
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35145
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35146
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35147
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35148
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35149
- var __spreadValues$C = (a, b) => {
35149
+ var __defProp$D = Object.defineProperty;
35150
+ var __defProps$A = Object.defineProperties;
35151
+ var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
35152
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
35153
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
35154
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
35155
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35156
+ var __spreadValues$D = (a, b) => {
35150
35157
  for (var prop in b || (b = {}))
35151
- if (__hasOwnProp$L.call(b, prop))
35152
- __defNormalProp$C(a, prop, b[prop]);
35153
- if (__getOwnPropSymbols$L)
35154
- for (var prop of __getOwnPropSymbols$L(b)) {
35155
- if (__propIsEnum$L.call(b, prop))
35156
- __defNormalProp$C(a, prop, b[prop]);
35158
+ if (__hasOwnProp$M.call(b, prop))
35159
+ __defNormalProp$D(a, prop, b[prop]);
35160
+ if (__getOwnPropSymbols$M)
35161
+ for (var prop of __getOwnPropSymbols$M(b)) {
35162
+ if (__propIsEnum$M.call(b, prop))
35163
+ __defNormalProp$D(a, prop, b[prop]);
35157
35164
  }
35158
35165
  return a;
35159
35166
  };
35160
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35167
+ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35161
35168
  var __async$Q = (__this, __arguments, generator) => {
35162
35169
  return new Promise((resolve, reject) => {
35163
35170
  var fulfilled = (value) => {
@@ -35180,7 +35187,7 @@ var __async$Q = (__this, __arguments, generator) => {
35180
35187
  };
35181
35188
  const useCreateAuctanePaySession = (params) => {
35182
35189
  const { client } = useShipEngine();
35183
- return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35190
+ return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35184
35191
  mutationFn: (request) => __async$Q(void 0, null, function* () {
35185
35192
  const result = yield client.auctanePay.createSession(request);
35186
35193
  return result.data;
@@ -35190,6 +35197,36 @@ const useCreateAuctanePaySession = (params) => {
35190
35197
  }));
35191
35198
  };
35192
35199
 
35200
+ var __defProp$C = Object.defineProperty;
35201
+ var __defProps$z = Object.defineProperties;
35202
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35203
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35204
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35205
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35206
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35207
+ var __spreadValues$C = (a, b) => {
35208
+ for (var prop in b || (b = {}))
35209
+ if (__hasOwnProp$L.call(b, prop))
35210
+ __defNormalProp$C(a, prop, b[prop]);
35211
+ if (__getOwnPropSymbols$L)
35212
+ for (var prop of __getOwnPropSymbols$L(b)) {
35213
+ if (__propIsEnum$L.call(b, prop))
35214
+ __defNormalProp$C(a, prop, b[prop]);
35215
+ }
35216
+ return a;
35217
+ };
35218
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35219
+ const useGetAuctanePayConfig = (params) => {
35220
+ const { client } = useShipEngine();
35221
+ const queryParams = __spreadValues$C({}, params);
35222
+ return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35223
+ onError,
35224
+ queryFn: () => client.auctanePay.getConfig(),
35225
+ queryKey: ["useGetAuctanePayConfig"],
35226
+ select: (result) => result.data
35227
+ }));
35228
+ };
35229
+
35193
35230
  var __defProp$B = Object.defineProperty;
35194
35231
  var __defProps$y = Object.defineProperties;
35195
35232
  var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
@@ -35209,36 +35246,6 @@ var __spreadValues$B = (a, b) => {
35209
35246
  return a;
35210
35247
  };
35211
35248
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35212
- const useGetAuctanePayConfig = (params) => {
35213
- const { client } = useShipEngine();
35214
- const queryParams = __spreadValues$B({}, params);
35215
- return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35216
- onError,
35217
- queryFn: () => client.auctanePay.getConfig(),
35218
- queryKey: ["useGetAuctanePayConfig"],
35219
- select: (result) => result.data
35220
- }));
35221
- };
35222
-
35223
- var __defProp$A = Object.defineProperty;
35224
- var __defProps$x = Object.defineProperties;
35225
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35226
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35227
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35228
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35229
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35230
- var __spreadValues$A = (a, b) => {
35231
- for (var prop in b || (b = {}))
35232
- if (__hasOwnProp$J.call(b, prop))
35233
- __defNormalProp$A(a, prop, b[prop]);
35234
- if (__getOwnPropSymbols$J)
35235
- for (var prop of __getOwnPropSymbols$J(b)) {
35236
- if (__propIsEnum$J.call(b, prop))
35237
- __defNormalProp$A(a, prop, b[prop]);
35238
- }
35239
- return a;
35240
- };
35241
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35242
35249
  var __async$P = (__this, __arguments, generator) => {
35243
35250
  return new Promise((resolve, reject) => {
35244
35251
  var fulfilled = (value) => {
@@ -35261,7 +35268,7 @@ var __async$P = (__this, __arguments, generator) => {
35261
35268
  };
35262
35269
  const usePreviewTransaction = (params) => {
35263
35270
  const { client } = useShipEngine();
35264
- return reactQuery.useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35271
+ return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35265
35272
  mutationFn: (_0) => __async$P(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35266
35273
  const request = {
35267
35274
  amount,
@@ -35275,6 +35282,36 @@ const usePreviewTransaction = (params) => {
35275
35282
  }));
35276
35283
  };
35277
35284
 
35285
+ var __defProp$A = Object.defineProperty;
35286
+ var __defProps$x = Object.defineProperties;
35287
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35288
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35289
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35290
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35291
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35292
+ var __spreadValues$A = (a, b) => {
35293
+ for (var prop in b || (b = {}))
35294
+ if (__hasOwnProp$J.call(b, prop))
35295
+ __defNormalProp$A(a, prop, b[prop]);
35296
+ if (__getOwnPropSymbols$J)
35297
+ for (var prop of __getOwnPropSymbols$J(b)) {
35298
+ if (__propIsEnum$J.call(b, prop))
35299
+ __defNormalProp$A(a, prop, b[prop]);
35300
+ }
35301
+ return a;
35302
+ };
35303
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35304
+ const useGetPaymentMethods = (params) => {
35305
+ const { client } = useShipEngine();
35306
+ const queryParams = __spreadValues$A({}, params);
35307
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35308
+ onError,
35309
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35310
+ queryKey: ["useGetPaymentMethods"],
35311
+ select: (result) => result.data
35312
+ }));
35313
+ };
35314
+
35278
35315
  var __async$O = (__this, __arguments, generator) => {
35279
35316
  return new Promise((resolve, reject) => {
35280
35317
  var fulfilled = (value) => {
@@ -39909,6 +39946,7 @@ exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSource
39909
39946
  exports.useGetInvoiceAddress = useGetInvoiceAddress;
39910
39947
  exports.useGetLabel = useGetLabel;
39911
39948
  exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
39949
+ exports.useGetPaymentMethods = useGetPaymentMethods;
39912
39950
  exports.useGetRateCardById = useGetRateCardById;
39913
39951
  exports.useGetSalesOrder = useGetSalesOrder;
39914
39952
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;