@shipengine/alchemy 6.0.58 → 6.0.60

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 +253 -197
  2. package/index.mjs +253 -198
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4905,33 +4905,41 @@ var _getHolder = getHolder$2;
4905
4905
 
4906
4906
  /** Used as references for various `Number` constants. */
4907
4907
 
4908
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
4908
+ var _isIndex;
4909
+ var hasRequired_isIndex;
4909
4910
 
4910
- /** Used to detect unsigned integer values. */
4911
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4911
+ function require_isIndex () {
4912
+ if (hasRequired_isIndex) return _isIndex;
4913
+ hasRequired_isIndex = 1;
4914
+ var MAX_SAFE_INTEGER = 9007199254740991;
4912
4915
 
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;
4916
+ /** Used to detect unsigned integer values. */
4917
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4924
4918
 
4925
- return !!length &&
4926
- (type == 'number' ||
4927
- (type != 'symbol' && reIsUint.test(value))) &&
4928
- (value > -1 && value % 1 == 0 && value < length);
4929
- }
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
+ }
4930
4936
 
4931
- var _isIndex = isIndex$3;
4937
+ _isIndex = isIndex;
4938
+ return _isIndex;
4939
+ }
4932
4940
 
4933
4941
  var copyArray$2 = _copyArray,
4934
- isIndex$2 = _isIndex;
4942
+ isIndex$2 = require_isIndex();
4935
4943
 
4936
4944
  /* Built-in method references for those with the same name as other `lodash` methods. */
4937
4945
  var nativeMin$1 = Math.min;
@@ -6124,7 +6132,7 @@ var baseTimes = _baseTimes,
6124
6132
  isArguments$2 = requireIsArguments(),
6125
6133
  isArray$f = isArray_1,
6126
6134
  isBuffer$4 = isBufferExports,
6127
- isIndex$1 = _isIndex,
6135
+ isIndex$1 = require_isIndex(),
6128
6136
  isTypedArray$1 = requireIsTypedArray();
6129
6137
 
6130
6138
  /** Used for built-in method references. */
@@ -9455,7 +9463,7 @@ var _baseHasIn = baseHasIn$1;
9455
9463
  var castPath = _castPath,
9456
9464
  isArguments$1 = requireIsArguments(),
9457
9465
  isArray$8 = isArray_1,
9458
- isIndex = _isIndex,
9466
+ isIndex = require_isIndex(),
9459
9467
  isLength = isLength_1,
9460
9468
  toKey$3 = _toKey;
9461
9469
 
@@ -10345,7 +10353,7 @@ function require_isIterateeCall () {
10345
10353
  hasRequired_isIterateeCall = 1;
10346
10354
  var eq = requireEq(),
10347
10355
  isArrayLike = isArrayLike_1,
10348
- isIndex = _isIndex,
10356
+ isIndex = require_isIndex(),
10349
10357
  isObject = isObject_1;
10350
10358
 
10351
10359
  /**
@@ -10551,6 +10559,16 @@ const fallbackTheme = {
10551
10559
  pink: '#E995BA',
10552
10560
  green: '#DEF895'
10553
10561
  }
10562
+ },
10563
+ destructive: {
10564
+ ultraLight: '#FDF7F7',
10565
+ light: '#821212',
10566
+ main: '#A91919',
10567
+ dark: '#5D0E0E'
10568
+ },
10569
+ upgrade: {
10570
+ main: '#8D30F7',
10571
+ light: '#F6F2FF'
10554
10572
  }
10555
10573
  },
10556
10574
  spacingBase: 8,
@@ -10812,17 +10830,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10812
10830
  return AccountBillingPlanChangeType2;
10813
10831
  })(AccountBillingPlanChangeType || {});
10814
10832
 
10815
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10816
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10817
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10833
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
10834
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
10835
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
10818
10836
  var __objRest$x = (source, exclude) => {
10819
10837
  var target = {};
10820
10838
  for (var prop in source)
10821
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10839
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
10822
10840
  target[prop] = source[prop];
10823
- if (source != null && __getOwnPropSymbols$V)
10824
- for (var prop of __getOwnPropSymbols$V(source)) {
10825
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10841
+ if (source != null && __getOwnPropSymbols$W)
10842
+ for (var prop of __getOwnPropSymbols$W(source)) {
10843
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
10826
10844
  target[prop] = source[prop];
10827
10845
  }
10828
10846
  return target;
@@ -10957,17 +10975,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10957
10975
  RateCardStatus
10958
10976
  }, Symbol.toStringTag, { value: 'Module' }));
10959
10977
 
10960
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
10961
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
10962
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
10978
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10979
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10980
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10963
10981
  var __objRest$w = (source, exclude) => {
10964
10982
  var target = {};
10965
10983
  for (var prop in source)
10966
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
10984
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10967
10985
  target[prop] = source[prop];
10968
- if (source != null && __getOwnPropSymbols$U)
10969
- for (var prop of __getOwnPropSymbols$U(source)) {
10970
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
10986
+ if (source != null && __getOwnPropSymbols$V)
10987
+ for (var prop of __getOwnPropSymbols$V(source)) {
10988
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10971
10989
  target[prop] = source[prop];
10972
10990
  }
10973
10991
  return target;
@@ -11074,6 +11092,13 @@ class AuctanePayAPI {
11074
11092
  request
11075
11093
  );
11076
11094
  };
11095
+ /**
11096
+ * The `getPaymentMethods` method retrieve the list of Payment Methods for a given user.
11097
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Get-payment-methods
11098
+ */
11099
+ this.getPaymentMethods = () => {
11100
+ return this.client.get("/v1/payments/payment_methods");
11101
+ };
11077
11102
  this.client = client;
11078
11103
  }
11079
11104
  }
@@ -13864,33 +13889,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13864
13889
  return obj;
13865
13890
  };
13866
13891
 
13867
- var __defProp$I = Object.defineProperty;
13868
- var __defProps$C = Object.defineProperties;
13869
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
13870
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
13871
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
13872
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
13873
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13874
- var __spreadValues$I = (a, b) => {
13892
+ var __defProp$J = Object.defineProperty;
13893
+ var __defProps$D = Object.defineProperties;
13894
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
13895
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
13896
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
13897
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
13898
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13899
+ var __spreadValues$J = (a, b) => {
13875
13900
  for (var prop in b || (b = {}))
13876
- if (__hasOwnProp$T.call(b, prop))
13877
- __defNormalProp$I(a, prop, b[prop]);
13878
- if (__getOwnPropSymbols$T)
13879
- for (var prop of __getOwnPropSymbols$T(b)) {
13880
- if (__propIsEnum$T.call(b, prop))
13881
- __defNormalProp$I(a, prop, b[prop]);
13901
+ if (__hasOwnProp$U.call(b, prop))
13902
+ __defNormalProp$J(a, prop, b[prop]);
13903
+ if (__getOwnPropSymbols$U)
13904
+ for (var prop of __getOwnPropSymbols$U(b)) {
13905
+ if (__propIsEnum$U.call(b, prop))
13906
+ __defNormalProp$J(a, prop, b[prop]);
13882
13907
  }
13883
13908
  return a;
13884
13909
  };
13885
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
13910
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
13886
13911
  var __objRest$v = (source, exclude) => {
13887
13912
  var target = {};
13888
13913
  for (var prop in source)
13889
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
13914
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
13890
13915
  target[prop] = source[prop];
13891
- if (source != null && __getOwnPropSymbols$T)
13892
- for (var prop of __getOwnPropSymbols$T(source)) {
13893
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
13916
+ if (source != null && __getOwnPropSymbols$U)
13917
+ for (var prop of __getOwnPropSymbols$U(source)) {
13918
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
13894
13919
  target[prop] = source[prop];
13895
13920
  }
13896
13921
  return target;
@@ -13940,7 +13965,7 @@ class CarriersAPI {
13940
13965
  const endUserIpAddress = yield getEndUserIpAddress();
13941
13966
  if (!endUserIpAddress)
13942
13967
  return Promise.reject([new CodedError("Unable to get IP address")]);
13943
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$C(__spreadValues$I({}, connection), {
13968
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$D(__spreadValues$J({}, connection), {
13944
13969
  endUserIpAddress
13945
13970
  }));
13946
13971
  });
@@ -14026,17 +14051,17 @@ class CarriersAPI {
14026
14051
  }
14027
14052
  }
14028
14053
 
14029
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
14030
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
14031
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
14054
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
14055
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
14056
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
14032
14057
  var __objRest$u = (source, exclude) => {
14033
14058
  var target = {};
14034
14059
  for (var prop in source)
14035
- if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
14060
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
14036
14061
  target[prop] = source[prop];
14037
- if (source != null && __getOwnPropSymbols$S)
14038
- for (var prop of __getOwnPropSymbols$S(source)) {
14039
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
14062
+ if (source != null && __getOwnPropSymbols$T)
14063
+ for (var prop of __getOwnPropSymbols$T(source)) {
14064
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
14040
14065
  target[prop] = source[prop];
14041
14066
  }
14042
14067
  return target;
@@ -16251,19 +16276,19 @@ class CustomPackagesAPI {
16251
16276
  }
16252
16277
  }
16253
16278
 
16254
- var __defProp$H = Object.defineProperty;
16255
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16256
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16257
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16258
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16259
- var __spreadValues$H = (a, b) => {
16279
+ var __defProp$I = Object.defineProperty;
16280
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16281
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16282
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16283
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16284
+ var __spreadValues$I = (a, b) => {
16260
16285
  for (var prop in b || (b = {}))
16261
- if (__hasOwnProp$R.call(b, prop))
16262
- __defNormalProp$H(a, prop, b[prop]);
16263
- if (__getOwnPropSymbols$R)
16264
- for (var prop of __getOwnPropSymbols$R(b)) {
16265
- if (__propIsEnum$R.call(b, prop))
16266
- __defNormalProp$H(a, prop, b[prop]);
16286
+ if (__hasOwnProp$S.call(b, prop))
16287
+ __defNormalProp$I(a, prop, b[prop]);
16288
+ if (__getOwnPropSymbols$S)
16289
+ for (var prop of __getOwnPropSymbols$S(b)) {
16290
+ if (__propIsEnum$S.call(b, prop))
16291
+ __defNormalProp$I(a, prop, b[prop]);
16267
16292
  }
16268
16293
  return a;
16269
16294
  };
@@ -16311,7 +16336,7 @@ class FundingSourcesAPI {
16311
16336
  if (!endUserIpAddress) {
16312
16337
  return Promise.reject([new CodedError("Unable to get IP address")]);
16313
16338
  }
16314
- return yield this.client.post("/v1/funding_sources", __spreadValues$H({
16339
+ return yield this.client.post("/v1/funding_sources", __spreadValues$I({
16315
16340
  endUserIpAddress
16316
16341
  }, createFundingSource));
16317
16342
  });
@@ -16330,7 +16355,7 @@ class FundingSourcesAPI {
16330
16355
  {
16331
16356
  billingInfo,
16332
16357
  endUserIpAddress,
16333
- paymentMethod: __spreadValues$H({
16358
+ paymentMethod: __spreadValues$I({
16334
16359
  creditCardInfo
16335
16360
  }, auctanePayInfo)
16336
16361
  }
@@ -16345,7 +16370,7 @@ class FundingSourcesAPI {
16345
16370
  if (!endUserIpAddress) {
16346
16371
  return Promise.reject([new CodedError("Unable to get IP address")]);
16347
16372
  }
16348
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$H({
16373
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$I({
16349
16374
  endUserIpAddress
16350
16375
  }, carrier));
16351
16376
  });
@@ -16514,17 +16539,17 @@ class LabelsAPI {
16514
16539
  }
16515
16540
  }
16516
16541
 
16517
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16518
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16519
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16542
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16543
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16544
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16520
16545
  var __objRest$t = (source, exclude) => {
16521
16546
  var target = {};
16522
16547
  for (var prop in source)
16523
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
16548
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
16524
16549
  target[prop] = source[prop];
16525
- if (source != null && __getOwnPropSymbols$Q)
16526
- for (var prop of __getOwnPropSymbols$Q(source)) {
16527
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
16550
+ if (source != null && __getOwnPropSymbols$R)
16551
+ for (var prop of __getOwnPropSymbols$R(source)) {
16552
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
16528
16553
  target[prop] = source[prop];
16529
16554
  }
16530
16555
  return target;
@@ -16645,19 +16670,19 @@ class RateCardsAPI {
16645
16670
  }
16646
16671
  }
16647
16672
 
16648
- var __defProp$G = Object.defineProperty;
16649
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16650
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16651
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16652
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16653
- var __spreadValues$G = (a, b) => {
16673
+ var __defProp$H = Object.defineProperty;
16674
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16675
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16676
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16677
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16678
+ var __spreadValues$H = (a, b) => {
16654
16679
  for (var prop in b || (b = {}))
16655
- if (__hasOwnProp$P.call(b, prop))
16656
- __defNormalProp$G(a, prop, b[prop]);
16657
- if (__getOwnPropSymbols$P)
16658
- for (var prop of __getOwnPropSymbols$P(b)) {
16659
- if (__propIsEnum$P.call(b, prop))
16660
- __defNormalProp$G(a, prop, b[prop]);
16680
+ if (__hasOwnProp$Q.call(b, prop))
16681
+ __defNormalProp$H(a, prop, b[prop]);
16682
+ if (__getOwnPropSymbols$Q)
16683
+ for (var prop of __getOwnPropSymbols$Q(b)) {
16684
+ if (__propIsEnum$Q.call(b, prop))
16685
+ __defNormalProp$H(a, prop, b[prop]);
16661
16686
  }
16662
16687
  return a;
16663
16688
  };
@@ -16679,7 +16704,7 @@ class RatesAPI {
16679
16704
  * method.
16680
16705
  */
16681
16706
  this.estimate = (params) => {
16682
- return this.client.post("/v1/rates/estimate", __spreadValues$G({}, params));
16707
+ return this.client.post("/v1/rates/estimate", __spreadValues$H({}, params));
16683
16708
  };
16684
16709
  this.client = client;
16685
16710
  }
@@ -16863,19 +16888,19 @@ class SellersAPI {
16863
16888
  }
16864
16889
  }
16865
16890
 
16866
- var __defProp$F = Object.defineProperty;
16867
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16868
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16869
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16870
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16871
- var __spreadValues$F = (a, b) => {
16891
+ var __defProp$G = Object.defineProperty;
16892
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16893
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16894
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16895
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16896
+ var __spreadValues$G = (a, b) => {
16872
16897
  for (var prop in b || (b = {}))
16873
- if (__hasOwnProp$O.call(b, prop))
16874
- __defNormalProp$F(a, prop, b[prop]);
16875
- if (__getOwnPropSymbols$O)
16876
- for (var prop of __getOwnPropSymbols$O(b)) {
16877
- if (__propIsEnum$O.call(b, prop))
16878
- __defNormalProp$F(a, prop, b[prop]);
16898
+ if (__hasOwnProp$P.call(b, prop))
16899
+ __defNormalProp$G(a, prop, b[prop]);
16900
+ if (__getOwnPropSymbols$P)
16901
+ for (var prop of __getOwnPropSymbols$P(b)) {
16902
+ if (__propIsEnum$P.call(b, prop))
16903
+ __defNormalProp$G(a, prop, b[prop]);
16879
16904
  }
16880
16905
  return a;
16881
16906
  };
@@ -16887,7 +16912,7 @@ class ServicePointsAPI {
16887
16912
  * Either an address, coordinates, or an address query
16888
16913
  */
16889
16914
  this.list = (options) => {
16890
- return this.client.post("/v1/service_points/list", __spreadValues$F({}, options));
16915
+ return this.client.post("/v1/service_points/list", __spreadValues$G({}, options));
16891
16916
  };
16892
16917
  /**
16893
16918
  * Get a specific service point by its carrier code, country code, and id
@@ -34371,33 +34396,33 @@ class WebhooksAPI {
34371
34396
  }
34372
34397
  }
34373
34398
 
34374
- var __defProp$E = Object.defineProperty;
34375
- var __defProps$B = Object.defineProperties;
34376
- var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34377
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34378
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34379
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34380
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34381
- var __spreadValues$E = (a, b) => {
34399
+ var __defProp$F = Object.defineProperty;
34400
+ var __defProps$C = Object.defineProperties;
34401
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
34402
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
34403
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
34404
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
34405
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34406
+ var __spreadValues$F = (a, b) => {
34382
34407
  for (var prop in b || (b = {}))
34383
- if (__hasOwnProp$N.call(b, prop))
34384
- __defNormalProp$E(a, prop, b[prop]);
34385
- if (__getOwnPropSymbols$N)
34386
- for (var prop of __getOwnPropSymbols$N(b)) {
34387
- if (__propIsEnum$N.call(b, prop))
34388
- __defNormalProp$E(a, prop, b[prop]);
34408
+ if (__hasOwnProp$O.call(b, prop))
34409
+ __defNormalProp$F(a, prop, b[prop]);
34410
+ if (__getOwnPropSymbols$O)
34411
+ for (var prop of __getOwnPropSymbols$O(b)) {
34412
+ if (__propIsEnum$O.call(b, prop))
34413
+ __defNormalProp$F(a, prop, b[prop]);
34389
34414
  }
34390
34415
  return a;
34391
34416
  };
34392
- var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34417
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
34393
34418
  var __objRest$s = (source, exclude) => {
34394
34419
  var target = {};
34395
34420
  for (var prop in source)
34396
- if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
34421
+ if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
34397
34422
  target[prop] = source[prop];
34398
- if (source != null && __getOwnPropSymbols$N)
34399
- for (var prop of __getOwnPropSymbols$N(source)) {
34400
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
34423
+ if (source != null && __getOwnPropSymbols$O)
34424
+ for (var prop of __getOwnPropSymbols$O(source)) {
34425
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
34401
34426
  target[prop] = source[prop];
34402
34427
  }
34403
34428
  return target;
@@ -34425,7 +34450,7 @@ var __async$X = (__this, __arguments, generator) => {
34425
34450
  const logger$1 = E({
34426
34451
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34427
34452
  name: "shipengine-api",
34428
- serializers: __spreadProps$B(__spreadValues$E({}, k), {
34453
+ serializers: __spreadProps$C(__spreadValues$F({}, k), {
34429
34454
  req: (req) => ({
34430
34455
  headers: req.headers,
34431
34456
  method: req.method,
@@ -34450,7 +34475,7 @@ class ShipEngineAPI {
34450
34475
  this.getSandboxToken = getSandboxToken;
34451
34476
  const client = axios.create({
34452
34477
  baseURL,
34453
- headers: __spreadProps$B(__spreadValues$E({}, headers), {
34478
+ headers: __spreadProps$C(__spreadValues$F({}, headers), {
34454
34479
  "Content-Type": "application/json"
34455
34480
  }),
34456
34481
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34867,25 +34892,25 @@ const delay = (ms) => new Promise((resolve) => {
34867
34892
 
34868
34893
  const onError = (_errors) => _default();
34869
34894
 
34870
- var __defProp$D = Object.defineProperty;
34871
- var __defProps$A = Object.defineProperties;
34872
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
34873
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
34874
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
34875
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
34876
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34877
- var __spreadValues$D = (a, b) => {
34895
+ var __defProp$E = Object.defineProperty;
34896
+ var __defProps$B = Object.defineProperties;
34897
+ var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34898
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34899
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34900
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34901
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34902
+ var __spreadValues$E = (a, b) => {
34878
34903
  for (var prop in b || (b = {}))
34879
- if (__hasOwnProp$M.call(b, prop))
34880
- __defNormalProp$D(a, prop, b[prop]);
34881
- if (__getOwnPropSymbols$M)
34882
- for (var prop of __getOwnPropSymbols$M(b)) {
34883
- if (__propIsEnum$M.call(b, prop))
34884
- __defNormalProp$D(a, prop, b[prop]);
34904
+ if (__hasOwnProp$N.call(b, prop))
34905
+ __defNormalProp$E(a, prop, b[prop]);
34906
+ if (__getOwnPropSymbols$N)
34907
+ for (var prop of __getOwnPropSymbols$N(b)) {
34908
+ if (__propIsEnum$N.call(b, prop))
34909
+ __defNormalProp$E(a, prop, b[prop]);
34885
34910
  }
34886
34911
  return a;
34887
34912
  };
34888
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
34913
+ var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34889
34914
  const streams = [];
34890
34915
  if (process.env.NODE_ENV === "production") {
34891
34916
  streams.push({
@@ -34894,7 +34919,7 @@ if (process.env.NODE_ENV === "production") {
34894
34919
  }
34895
34920
  const logger = E({
34896
34921
  name: "shipengine",
34897
- serializers: __spreadProps$A(__spreadValues$D({}, k), {
34922
+ serializers: __spreadProps$B(__spreadValues$E({}, k), {
34898
34923
  req: (req) => ({
34899
34924
  headers: req.headers,
34900
34925
  method: req.method,
@@ -35131,25 +35156,25 @@ const useValidateAddresses = () => {
35131
35156
  });
35132
35157
  };
35133
35158
 
35134
- var __defProp$C = Object.defineProperty;
35135
- var __defProps$z = Object.defineProperties;
35136
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35137
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35138
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35139
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35140
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35141
- var __spreadValues$C = (a, b) => {
35159
+ var __defProp$D = Object.defineProperty;
35160
+ var __defProps$A = Object.defineProperties;
35161
+ var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
35162
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
35163
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
35164
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
35165
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35166
+ var __spreadValues$D = (a, b) => {
35142
35167
  for (var prop in b || (b = {}))
35143
- if (__hasOwnProp$L.call(b, prop))
35144
- __defNormalProp$C(a, prop, b[prop]);
35145
- if (__getOwnPropSymbols$L)
35146
- for (var prop of __getOwnPropSymbols$L(b)) {
35147
- if (__propIsEnum$L.call(b, prop))
35148
- __defNormalProp$C(a, prop, b[prop]);
35168
+ if (__hasOwnProp$M.call(b, prop))
35169
+ __defNormalProp$D(a, prop, b[prop]);
35170
+ if (__getOwnPropSymbols$M)
35171
+ for (var prop of __getOwnPropSymbols$M(b)) {
35172
+ if (__propIsEnum$M.call(b, prop))
35173
+ __defNormalProp$D(a, prop, b[prop]);
35149
35174
  }
35150
35175
  return a;
35151
35176
  };
35152
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35177
+ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35153
35178
  var __async$Q = (__this, __arguments, generator) => {
35154
35179
  return new Promise((resolve, reject) => {
35155
35180
  var fulfilled = (value) => {
@@ -35172,7 +35197,7 @@ var __async$Q = (__this, __arguments, generator) => {
35172
35197
  };
35173
35198
  const useCreateAuctanePaySession = (params) => {
35174
35199
  const { client } = useShipEngine();
35175
- return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35200
+ return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35176
35201
  mutationFn: (request) => __async$Q(void 0, null, function* () {
35177
35202
  const result = yield client.auctanePay.createSession(request);
35178
35203
  return result.data;
@@ -35182,6 +35207,36 @@ const useCreateAuctanePaySession = (params) => {
35182
35207
  }));
35183
35208
  };
35184
35209
 
35210
+ var __defProp$C = Object.defineProperty;
35211
+ var __defProps$z = Object.defineProperties;
35212
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35213
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35214
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35215
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35216
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35217
+ var __spreadValues$C = (a, b) => {
35218
+ for (var prop in b || (b = {}))
35219
+ if (__hasOwnProp$L.call(b, prop))
35220
+ __defNormalProp$C(a, prop, b[prop]);
35221
+ if (__getOwnPropSymbols$L)
35222
+ for (var prop of __getOwnPropSymbols$L(b)) {
35223
+ if (__propIsEnum$L.call(b, prop))
35224
+ __defNormalProp$C(a, prop, b[prop]);
35225
+ }
35226
+ return a;
35227
+ };
35228
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35229
+ const useGetAuctanePayConfig = (params) => {
35230
+ const { client } = useShipEngine();
35231
+ const queryParams = __spreadValues$C({}, params);
35232
+ return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35233
+ onError,
35234
+ queryFn: () => client.auctanePay.getConfig(),
35235
+ queryKey: ["useGetAuctanePayConfig"],
35236
+ select: (result) => result.data
35237
+ }));
35238
+ };
35239
+
35185
35240
  var __defProp$B = Object.defineProperty;
35186
35241
  var __defProps$y = Object.defineProperties;
35187
35242
  var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
@@ -35201,36 +35256,6 @@ var __spreadValues$B = (a, b) => {
35201
35256
  return a;
35202
35257
  };
35203
35258
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35204
- const useGetAuctanePayConfig = (params) => {
35205
- const { client } = useShipEngine();
35206
- const queryParams = __spreadValues$B({}, params);
35207
- return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35208
- onError,
35209
- queryFn: () => client.auctanePay.getConfig(),
35210
- queryKey: ["useGetAuctanePayConfig"],
35211
- select: (result) => result.data
35212
- }));
35213
- };
35214
-
35215
- var __defProp$A = Object.defineProperty;
35216
- var __defProps$x = Object.defineProperties;
35217
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35218
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35219
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35220
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35221
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35222
- var __spreadValues$A = (a, b) => {
35223
- for (var prop in b || (b = {}))
35224
- if (__hasOwnProp$J.call(b, prop))
35225
- __defNormalProp$A(a, prop, b[prop]);
35226
- if (__getOwnPropSymbols$J)
35227
- for (var prop of __getOwnPropSymbols$J(b)) {
35228
- if (__propIsEnum$J.call(b, prop))
35229
- __defNormalProp$A(a, prop, b[prop]);
35230
- }
35231
- return a;
35232
- };
35233
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35234
35259
  var __async$P = (__this, __arguments, generator) => {
35235
35260
  return new Promise((resolve, reject) => {
35236
35261
  var fulfilled = (value) => {
@@ -35253,7 +35278,7 @@ var __async$P = (__this, __arguments, generator) => {
35253
35278
  };
35254
35279
  const usePreviewTransaction = (params) => {
35255
35280
  const { client } = useShipEngine();
35256
- return reactQuery.useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35281
+ return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35257
35282
  mutationFn: (_0) => __async$P(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35258
35283
  const request = {
35259
35284
  amount,
@@ -35267,6 +35292,36 @@ const usePreviewTransaction = (params) => {
35267
35292
  }));
35268
35293
  };
35269
35294
 
35295
+ var __defProp$A = Object.defineProperty;
35296
+ var __defProps$x = Object.defineProperties;
35297
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35298
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35299
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35300
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35301
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35302
+ var __spreadValues$A = (a, b) => {
35303
+ for (var prop in b || (b = {}))
35304
+ if (__hasOwnProp$J.call(b, prop))
35305
+ __defNormalProp$A(a, prop, b[prop]);
35306
+ if (__getOwnPropSymbols$J)
35307
+ for (var prop of __getOwnPropSymbols$J(b)) {
35308
+ if (__propIsEnum$J.call(b, prop))
35309
+ __defNormalProp$A(a, prop, b[prop]);
35310
+ }
35311
+ return a;
35312
+ };
35313
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35314
+ const useGetPaymentMethods = (params) => {
35315
+ const { client } = useShipEngine();
35316
+ const queryParams = __spreadValues$A({}, params);
35317
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35318
+ onError,
35319
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35320
+ queryKey: ["useGetPaymentMethods"],
35321
+ select: (result) => result.data
35322
+ }));
35323
+ };
35324
+
35270
35325
  var __async$O = (__this, __arguments, generator) => {
35271
35326
  return new Promise((resolve, reject) => {
35272
35327
  var fulfilled = (value) => {
@@ -39901,6 +39956,7 @@ exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSource
39901
39956
  exports.useGetInvoiceAddress = useGetInvoiceAddress;
39902
39957
  exports.useGetLabel = useGetLabel;
39903
39958
  exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
39959
+ exports.useGetPaymentMethods = useGetPaymentMethods;
39904
39960
  exports.useGetRateCardById = useGetRateCardById;
39905
39961
  exports.useGetSalesOrder = useGetSalesOrder;
39906
39962
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;