@shipengine/alchemy 6.0.64 → 6.0.66

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 +482 -317
  2. package/index.mjs +479 -318
  3. package/package.json +1 -1
package/index.mjs CHANGED
@@ -3531,7 +3531,7 @@ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
3531
3531
  * @param {*} value The value to query.
3532
3532
  * @returns {string} Returns the `toStringTag`.
3533
3533
  */
3534
- function baseGetTag$6(value) {
3534
+ function baseGetTag$5(value) {
3535
3535
  if (value == null) {
3536
3536
  return value === undefined ? undefinedTag : nullTag;
3537
3537
  }
@@ -3540,7 +3540,7 @@ function baseGetTag$6(value) {
3540
3540
  : objectToString$1(value);
3541
3541
  }
3542
3542
 
3543
- var _baseGetTag = baseGetTag$6;
3543
+ var _baseGetTag = baseGetTag$5;
3544
3544
 
3545
3545
  /**
3546
3546
  * Checks if `value` is the
@@ -3575,12 +3575,12 @@ function isObject$8(value) {
3575
3575
 
3576
3576
  var isObject_1 = isObject$8;
3577
3577
 
3578
- var baseGetTag$5 = _baseGetTag,
3578
+ var baseGetTag$4 = _baseGetTag,
3579
3579
  isObject$7 = isObject_1;
3580
3580
 
3581
3581
  /** `Object#toString` result references. */
3582
3582
  var asyncTag = '[object AsyncFunction]',
3583
- funcTag$2 = '[object Function]',
3583
+ funcTag$1 = '[object Function]',
3584
3584
  genTag$1 = '[object GeneratorFunction]',
3585
3585
  proxyTag = '[object Proxy]';
3586
3586
 
@@ -3607,8 +3607,8 @@ function isFunction$3(value) {
3607
3607
  }
3608
3608
  // The use of `Object#toString` avoids issues with the `typeof` operator
3609
3609
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
3610
- var tag = baseGetTag$5(value);
3611
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3610
+ var tag = baseGetTag$4(value);
3611
+ return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3612
3612
  }
3613
3613
 
3614
3614
  var isFunction_1 = isFunction$3;
@@ -4201,11 +4201,11 @@ var isArray_1 = isArray$h;
4201
4201
  * // => false
4202
4202
  */
4203
4203
 
4204
- function isObjectLike$9(value) {
4204
+ function isObjectLike$8(value) {
4205
4205
  return value != null && typeof value == 'object';
4206
4206
  }
4207
4207
 
4208
- var isObjectLike_1 = isObjectLike$9;
4208
+ var isObjectLike_1 = isObjectLike$8;
4209
4209
 
4210
4210
  /**
4211
4211
  * Copies the values of `source` to `array`.
@@ -4257,7 +4257,7 @@ var LazyWrapper$1 = _LazyWrapper,
4257
4257
  LodashWrapper = _LodashWrapper,
4258
4258
  baseLodash = _baseLodash,
4259
4259
  isArray$g = isArray_1,
4260
- isObjectLike$8 = isObjectLike_1,
4260
+ isObjectLike$7 = isObjectLike_1,
4261
4261
  wrapperClone = _wrapperClone;
4262
4262
 
4263
4263
  /** Used for built-in method references. */
@@ -4384,7 +4384,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4384
4384
  * // => true
4385
4385
  */
4386
4386
  function lodash$2(value) {
4387
- if (isObjectLike$8(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4387
+ if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4388
4388
  if (value instanceof LodashWrapper) {
4389
4389
  return value;
4390
4390
  }
@@ -5285,8 +5285,8 @@ function baseTrim$1(string) {
5285
5285
 
5286
5286
  var _baseTrim = baseTrim$1;
5287
5287
 
5288
- var baseGetTag$4 = _baseGetTag,
5289
- isObjectLike$7 = isObjectLike_1;
5288
+ var baseGetTag$3 = _baseGetTag,
5289
+ isObjectLike$6 = isObjectLike_1;
5290
5290
 
5291
5291
  /** `Object#toString` result references. */
5292
5292
  var symbolTag$3 = '[object Symbol]';
@@ -5310,7 +5310,7 @@ var symbolTag$3 = '[object Symbol]';
5310
5310
  */
5311
5311
  function isSymbol$6(value) {
5312
5312
  return typeof value == 'symbol' ||
5313
- (isObjectLike$7(value) && baseGetTag$4(value) == symbolTag$3);
5313
+ (isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
5314
5314
  }
5315
5315
 
5316
5316
  var isSymbol_1 = isSymbol$6;
@@ -5931,73 +5931,81 @@ var MAX_SAFE_INTEGER = 9007199254740991;
5931
5931
  * _.isLength('3');
5932
5932
  * // => false
5933
5933
  */
5934
- function isLength$3(value) {
5934
+ function isLength$2(value) {
5935
5935
  return typeof value == 'number' &&
5936
5936
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5937
5937
  }
5938
5938
 
5939
- var isLength_1 = isLength$3;
5939
+ var isLength_1 = isLength$2;
5940
5940
 
5941
- var baseGetTag$3 = _baseGetTag,
5942
- isLength$2 = isLength_1,
5943
- isObjectLike$6 = isObjectLike_1;
5941
+ var _baseIsTypedArray;
5942
+ var hasRequired_baseIsTypedArray;
5944
5943
 
5945
- /** `Object#toString` result references. */
5946
- var argsTag$2 = '[object Arguments]',
5947
- arrayTag$2 = '[object Array]',
5948
- boolTag$3 = '[object Boolean]',
5949
- dateTag$3 = '[object Date]',
5950
- errorTag$3 = '[object Error]',
5951
- funcTag$1 = '[object Function]',
5952
- mapTag$5 = '[object Map]',
5953
- numberTag$3 = '[object Number]',
5954
- objectTag$4 = '[object Object]',
5955
- regexpTag$3 = '[object RegExp]',
5956
- setTag$5 = '[object Set]',
5957
- stringTag$3 = '[object String]',
5958
- weakMapTag$3 = '[object WeakMap]';
5959
-
5960
- var arrayBufferTag$3 = '[object ArrayBuffer]',
5961
- dataViewTag$4 = '[object DataView]',
5962
- float32Tag$2 = '[object Float32Array]',
5963
- float64Tag$2 = '[object Float64Array]',
5964
- int8Tag$2 = '[object Int8Array]',
5965
- int16Tag$2 = '[object Int16Array]',
5966
- int32Tag$2 = '[object Int32Array]',
5967
- uint8Tag$2 = '[object Uint8Array]',
5968
- uint8ClampedTag$2 = '[object Uint8ClampedArray]',
5969
- uint16Tag$2 = '[object Uint16Array]',
5970
- uint32Tag$2 = '[object Uint32Array]';
5971
-
5972
- /** Used to identify `toStringTag` values of typed arrays. */
5973
- var typedArrayTags = {};
5974
- typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
5975
- typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
5976
- typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
5977
- typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
5978
- typedArrayTags[uint32Tag$2] = true;
5979
- typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
5980
- typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
5981
- typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
5982
- typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] =
5983
- typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
5984
- typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] =
5985
- typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
5986
- typedArrayTags[weakMapTag$3] = false;
5944
+ function require_baseIsTypedArray () {
5945
+ if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
5946
+ hasRequired_baseIsTypedArray = 1;
5947
+ var baseGetTag = _baseGetTag,
5948
+ isLength = isLength_1,
5949
+ isObjectLike = isObjectLike_1;
5987
5950
 
5988
- /**
5989
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
5990
- *
5991
- * @private
5992
- * @param {*} value The value to check.
5993
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
5994
- */
5995
- function baseIsTypedArray$1(value) {
5996
- return isObjectLike$6(value) &&
5997
- isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
5998
- }
5951
+ /** `Object#toString` result references. */
5952
+ var argsTag = '[object Arguments]',
5953
+ arrayTag = '[object Array]',
5954
+ boolTag = '[object Boolean]',
5955
+ dateTag = '[object Date]',
5956
+ errorTag = '[object Error]',
5957
+ funcTag = '[object Function]',
5958
+ mapTag = '[object Map]',
5959
+ numberTag = '[object Number]',
5960
+ objectTag = '[object Object]',
5961
+ regexpTag = '[object RegExp]',
5962
+ setTag = '[object Set]',
5963
+ stringTag = '[object String]',
5964
+ weakMapTag = '[object WeakMap]';
5965
+
5966
+ var arrayBufferTag = '[object ArrayBuffer]',
5967
+ dataViewTag = '[object DataView]',
5968
+ float32Tag = '[object Float32Array]',
5969
+ float64Tag = '[object Float64Array]',
5970
+ int8Tag = '[object Int8Array]',
5971
+ int16Tag = '[object Int16Array]',
5972
+ int32Tag = '[object Int32Array]',
5973
+ uint8Tag = '[object Uint8Array]',
5974
+ uint8ClampedTag = '[object Uint8ClampedArray]',
5975
+ uint16Tag = '[object Uint16Array]',
5976
+ uint32Tag = '[object Uint32Array]';
5977
+
5978
+ /** Used to identify `toStringTag` values of typed arrays. */
5979
+ var typedArrayTags = {};
5980
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
5981
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
5982
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
5983
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
5984
+ typedArrayTags[uint32Tag] = true;
5985
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
5986
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
5987
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
5988
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
5989
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
5990
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
5991
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
5992
+ typedArrayTags[weakMapTag] = false;
5993
+
5994
+ /**
5995
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
5996
+ *
5997
+ * @private
5998
+ * @param {*} value The value to check.
5999
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6000
+ */
6001
+ function baseIsTypedArray(value) {
6002
+ return isObjectLike(value) &&
6003
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6004
+ }
5999
6005
 
6000
- var _baseIsTypedArray = baseIsTypedArray$1;
6006
+ _baseIsTypedArray = baseIsTypedArray;
6007
+ return _baseIsTypedArray;
6008
+ }
6001
6009
 
6002
6010
  /**
6003
6011
  * The base implementation of `_.unary` without support for storing metadata.
@@ -6007,13 +6015,13 @@ var _baseIsTypedArray = baseIsTypedArray$1;
6007
6015
  * @returns {Function} Returns the new capped function.
6008
6016
  */
6009
6017
 
6010
- function baseUnary$3(func) {
6018
+ function baseUnary$2(func) {
6011
6019
  return function(value) {
6012
6020
  return func(value);
6013
6021
  };
6014
6022
  }
6015
6023
 
6016
- var _baseUnary = baseUnary$3;
6024
+ var _baseUnary = baseUnary$2;
6017
6025
 
6018
6026
  var _nodeUtilExports = {};
6019
6027
  var _nodeUtil = {
@@ -6054,40 +6062,48 @@ var _nodeUtil = {
6054
6062
  module.exports = nodeUtil;
6055
6063
  } (_nodeUtil, _nodeUtilExports));
6056
6064
 
6057
- var baseIsTypedArray = _baseIsTypedArray,
6058
- baseUnary$2 = _baseUnary,
6059
- nodeUtil$2 = _nodeUtilExports;
6065
+ var isTypedArray_1;
6066
+ var hasRequiredIsTypedArray;
6060
6067
 
6061
- /* Node.js helper references. */
6062
- var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
6068
+ function requireIsTypedArray () {
6069
+ if (hasRequiredIsTypedArray) return isTypedArray_1;
6070
+ hasRequiredIsTypedArray = 1;
6071
+ var baseIsTypedArray = require_baseIsTypedArray(),
6072
+ baseUnary = _baseUnary,
6073
+ nodeUtil = _nodeUtilExports;
6063
6074
 
6064
- /**
6065
- * Checks if `value` is classified as a typed array.
6066
- *
6067
- * @static
6068
- * @memberOf _
6069
- * @since 3.0.0
6070
- * @category Lang
6071
- * @param {*} value The value to check.
6072
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6073
- * @example
6074
- *
6075
- * _.isTypedArray(new Uint8Array);
6076
- * // => true
6077
- *
6078
- * _.isTypedArray([]);
6079
- * // => false
6080
- */
6081
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
6075
+ /* Node.js helper references. */
6076
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6077
+
6078
+ /**
6079
+ * Checks if `value` is classified as a typed array.
6080
+ *
6081
+ * @static
6082
+ * @memberOf _
6083
+ * @since 3.0.0
6084
+ * @category Lang
6085
+ * @param {*} value The value to check.
6086
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6087
+ * @example
6088
+ *
6089
+ * _.isTypedArray(new Uint8Array);
6090
+ * // => true
6091
+ *
6092
+ * _.isTypedArray([]);
6093
+ * // => false
6094
+ */
6095
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6082
6096
 
6083
- var isTypedArray_1 = isTypedArray$2;
6097
+ isTypedArray_1 = isTypedArray;
6098
+ return isTypedArray_1;
6099
+ }
6084
6100
 
6085
6101
  var baseTimes = _baseTimes,
6086
6102
  isArguments$2 = requireIsArguments(),
6087
6103
  isArray$f = isArray_1,
6088
6104
  isBuffer$4 = isBufferExports,
6089
6105
  isIndex$1 = _isIndex,
6090
- isTypedArray$1 = isTypedArray_1;
6106
+ isTypedArray$1 = requireIsTypedArray();
6091
6107
 
6092
6108
  /** Used for built-in method references. */
6093
6109
  var objectProto$7 = Object.prototype;
@@ -8792,7 +8808,7 @@ var Stack$1 = require_Stack(),
8792
8808
  getTag = _getTag,
8793
8809
  isArray$c = isArray_1,
8794
8810
  isBuffer$2 = isBufferExports,
8795
- isTypedArray = isTypedArray_1;
8811
+ isTypedArray = requireIsTypedArray();
8796
8812
 
8797
8813
  /** Used to compose bitmasks for value comparisons. */
8798
8814
  var COMPARE_PARTIAL_FLAG$2 = 1;
@@ -10137,7 +10153,7 @@ function require_baseMergeDeep () {
10137
10153
  isFunction = isFunction_1,
10138
10154
  isObject = isObject_1,
10139
10155
  isPlainObject = isPlainObject_1,
10140
- isTypedArray = isTypedArray_1,
10156
+ isTypedArray = requireIsTypedArray(),
10141
10157
  safeGet = require_safeGet(),
10142
10158
  toPlainObject = requireToPlainObject();
10143
10159
 
@@ -10784,17 +10800,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10784
10800
  return AccountBillingPlanChangeType2;
10785
10801
  })(AccountBillingPlanChangeType || {});
10786
10802
 
10787
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
10788
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
10789
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
10803
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10804
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10805
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10790
10806
  var __objRest$x = (source, exclude) => {
10791
10807
  var target = {};
10792
10808
  for (var prop in source)
10793
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
10809
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10794
10810
  target[prop] = source[prop];
10795
- if (source != null && __getOwnPropSymbols$Y)
10796
- for (var prop of __getOwnPropSymbols$Y(source)) {
10797
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
10811
+ if (source != null && __getOwnPropSymbols$$)
10812
+ for (var prop of __getOwnPropSymbols$$(source)) {
10813
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10798
10814
  target[prop] = source[prop];
10799
10815
  }
10800
10816
  return target;
@@ -10929,17 +10945,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10929
10945
  RateCardStatus
10930
10946
  }, Symbol.toStringTag, { value: 'Module' }));
10931
10947
 
10932
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
10933
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
10934
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
10948
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
10949
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
10950
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
10935
10951
  var __objRest$w = (source, exclude) => {
10936
10952
  var target = {};
10937
10953
  for (var prop in source)
10938
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
10954
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
10939
10955
  target[prop] = source[prop];
10940
- if (source != null && __getOwnPropSymbols$X)
10941
- for (var prop of __getOwnPropSymbols$X(source)) {
10942
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
10956
+ if (source != null && __getOwnPropSymbols$_)
10957
+ for (var prop of __getOwnPropSymbols$_(source)) {
10958
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
10943
10959
  target[prop] = source[prop];
10944
10960
  }
10945
10961
  return target;
@@ -10990,6 +11006,20 @@ class AccountSettingsAPI {
10990
11006
  }
10991
11007
  }
10992
11008
 
11009
+ class AccountAddonsAPI {
11010
+ constructor(client) {
11011
+ this.client = client;
11012
+ /**
11013
+ * The `list` method retrieves a list of all available addons, also includes
11014
+ * if its avaiable for the current user
11015
+ */
11016
+ this.list = () => {
11017
+ return this.client.get("/v1/account/addons");
11018
+ };
11019
+ this.client = client;
11020
+ }
11021
+ }
11022
+
10993
11023
  class AddressesAPI {
10994
11024
  constructor(client) {
10995
11025
  this.client = client;
@@ -11070,6 +11100,20 @@ class AuctanePayAPI {
11070
11100
  payload
11071
11101
  );
11072
11102
  };
11103
+ /**
11104
+ * The `identityVerification` method returns a Plaid IDV verification URL for a given user
11105
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
11106
+ */
11107
+ this.identityVerification = () => {
11108
+ return this.client.post("/v1/payments/identity_verification");
11109
+ };
11110
+ /**
11111
+ * The `getPaymentAccount` method returns the Payment Account data for a given user
11112
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
11113
+ */
11114
+ this.getPaymentAccount = () => {
11115
+ return this.client.get("/v1/payments/account");
11116
+ };
11073
11117
  this.client = client;
11074
11118
  }
11075
11119
  }
@@ -13779,7 +13823,7 @@ var ipaddr = {
13779
13823
  }).call(commonjsGlobal);
13780
13824
  } (ipaddr));
13781
13825
 
13782
- var __async$14 = (__this, __arguments, generator) => {
13826
+ var __async$15 = (__this, __arguments, generator) => {
13783
13827
  return new Promise((resolve, reject) => {
13784
13828
  var fulfilled = (value) => {
13785
13829
  try {
@@ -13799,7 +13843,7 @@ var __async$14 = (__this, __arguments, generator) => {
13799
13843
  step((generator = generator.apply(__this, __arguments)).next());
13800
13844
  });
13801
13845
  };
13802
- const getEndUserIpAddress = () => __async$14(void 0, null, function* () {
13846
+ const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
13803
13847
  try {
13804
13848
  const response = yield axios.get("https://api.ipify.org/?format=json");
13805
13849
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13860,38 +13904,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13860
13904
  return obj;
13861
13905
  };
13862
13906
 
13863
- var __defProp$L = Object.defineProperty;
13864
- var __defProps$F = Object.defineProperties;
13865
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
13866
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
13867
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
13868
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
13869
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13870
- var __spreadValues$L = (a, b) => {
13907
+ var __defProp$O = Object.defineProperty;
13908
+ var __defProps$I = Object.defineProperties;
13909
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
13910
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
13911
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
13912
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
13913
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13914
+ var __spreadValues$O = (a, b) => {
13871
13915
  for (var prop in b || (b = {}))
13872
- if (__hasOwnProp$W.call(b, prop))
13873
- __defNormalProp$L(a, prop, b[prop]);
13874
- if (__getOwnPropSymbols$W)
13875
- for (var prop of __getOwnPropSymbols$W(b)) {
13876
- if (__propIsEnum$W.call(b, prop))
13877
- __defNormalProp$L(a, prop, b[prop]);
13916
+ if (__hasOwnProp$Z.call(b, prop))
13917
+ __defNormalProp$O(a, prop, b[prop]);
13918
+ if (__getOwnPropSymbols$Z)
13919
+ for (var prop of __getOwnPropSymbols$Z(b)) {
13920
+ if (__propIsEnum$Z.call(b, prop))
13921
+ __defNormalProp$O(a, prop, b[prop]);
13878
13922
  }
13879
13923
  return a;
13880
13924
  };
13881
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
13925
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
13882
13926
  var __objRest$v = (source, exclude) => {
13883
13927
  var target = {};
13884
13928
  for (var prop in source)
13885
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
13929
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
13886
13930
  target[prop] = source[prop];
13887
- if (source != null && __getOwnPropSymbols$W)
13888
- for (var prop of __getOwnPropSymbols$W(source)) {
13889
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
13931
+ if (source != null && __getOwnPropSymbols$Z)
13932
+ for (var prop of __getOwnPropSymbols$Z(source)) {
13933
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
13890
13934
  target[prop] = source[prop];
13891
13935
  }
13892
13936
  return target;
13893
13937
  };
13894
- var __async$13 = (__this, __arguments, generator) => {
13938
+ var __async$14 = (__this, __arguments, generator) => {
13895
13939
  return new Promise((resolve, reject) => {
13896
13940
  var fulfilled = (value) => {
13897
13941
  try {
@@ -13931,12 +13975,12 @@ class CarriersAPI {
13931
13975
  /**
13932
13976
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13933
13977
  */
13934
- this.connect = (_a) => __async$13(this, null, function* () {
13978
+ this.connect = (_a) => __async$14(this, null, function* () {
13935
13979
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
13936
13980
  const endUserIpAddress = yield getEndUserIpAddress();
13937
13981
  if (!endUserIpAddress)
13938
13982
  return Promise.reject([new CodedError("Unable to get IP address")]);
13939
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$F(__spreadValues$L({}, connection), {
13983
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
13940
13984
  endUserIpAddress
13941
13985
  }));
13942
13986
  });
@@ -14020,22 +14064,22 @@ class CarriersAPI {
14020
14064
  }
14021
14065
  }
14022
14066
 
14023
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
14024
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
14025
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
14067
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
14068
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
14069
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
14026
14070
  var __objRest$u = (source, exclude) => {
14027
14071
  var target = {};
14028
14072
  for (var prop in source)
14029
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
14073
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
14030
14074
  target[prop] = source[prop];
14031
- if (source != null && __getOwnPropSymbols$V)
14032
- for (var prop of __getOwnPropSymbols$V(source)) {
14033
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
14075
+ if (source != null && __getOwnPropSymbols$Y)
14076
+ for (var prop of __getOwnPropSymbols$Y(source)) {
14077
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
14034
14078
  target[prop] = source[prop];
14035
14079
  }
14036
14080
  return target;
14037
14081
  };
14038
- var __async$12 = (__this, __arguments, generator) => {
14082
+ var __async$13 = (__this, __arguments, generator) => {
14039
14083
  return new Promise((resolve, reject) => {
14040
14084
  var fulfilled = (value) => {
14041
14085
  try {
@@ -14077,7 +14121,7 @@ class ConnectionsAPI {
14077
14121
  /**
14078
14122
  * The `connectCarrier` method connects a carrier to account.
14079
14123
  */
14080
- this.connectCarrier = (carrierName, formData) => __async$12(this, null, function* () {
14124
+ this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
14081
14125
  return yield this.client.post(
14082
14126
  `/v1/connections/carriers/${carrierName}`,
14083
14127
  formData,
@@ -16245,23 +16289,23 @@ class CustomPackagesAPI {
16245
16289
  }
16246
16290
  }
16247
16291
 
16248
- var __defProp$K = Object.defineProperty;
16249
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16250
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16251
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16252
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16253
- var __spreadValues$K = (a, b) => {
16292
+ var __defProp$N = Object.defineProperty;
16293
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16294
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16295
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16296
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16297
+ var __spreadValues$N = (a, b) => {
16254
16298
  for (var prop in b || (b = {}))
16255
- if (__hasOwnProp$U.call(b, prop))
16256
- __defNormalProp$K(a, prop, b[prop]);
16257
- if (__getOwnPropSymbols$U)
16258
- for (var prop of __getOwnPropSymbols$U(b)) {
16259
- if (__propIsEnum$U.call(b, prop))
16260
- __defNormalProp$K(a, prop, b[prop]);
16299
+ if (__hasOwnProp$X.call(b, prop))
16300
+ __defNormalProp$N(a, prop, b[prop]);
16301
+ if (__getOwnPropSymbols$X)
16302
+ for (var prop of __getOwnPropSymbols$X(b)) {
16303
+ if (__propIsEnum$X.call(b, prop))
16304
+ __defNormalProp$N(a, prop, b[prop]);
16261
16305
  }
16262
16306
  return a;
16263
16307
  };
16264
- var __async$11 = (__this, __arguments, generator) => {
16308
+ var __async$12 = (__this, __arguments, generator) => {
16265
16309
  return new Promise((resolve, reject) => {
16266
16310
  var fulfilled = (value) => {
16267
16311
  try {
@@ -16300,12 +16344,12 @@ class FundingSourcesAPI {
16300
16344
  * The `create` method creates a new funding source for a given user. This requires
16301
16345
  * payment information to be collected from the user.
16302
16346
  */
16303
- this.create = (createFundingSource) => __async$11(this, null, function* () {
16347
+ this.create = (createFundingSource) => __async$12(this, null, function* () {
16304
16348
  const endUserIpAddress = yield getEndUserIpAddress();
16305
16349
  if (!endUserIpAddress) {
16306
16350
  return Promise.reject([new CodedError("Unable to get IP address")]);
16307
16351
  }
16308
- return yield this.client.post("/v1/funding_sources", __spreadValues$K({
16352
+ return yield this.client.post("/v1/funding_sources", __spreadValues$N({
16309
16353
  endUserIpAddress
16310
16354
  }, createFundingSource));
16311
16355
  });
@@ -16314,7 +16358,7 @@ class FundingSourcesAPI {
16314
16358
  * user to update the billing address or payment information associated with the
16315
16359
  * funding source.
16316
16360
  */
16317
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$11(this, null, function* () {
16361
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
16318
16362
  const endUserIpAddress = yield getEndUserIpAddress();
16319
16363
  if (!endUserIpAddress) {
16320
16364
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16324,7 +16368,7 @@ class FundingSourcesAPI {
16324
16368
  {
16325
16369
  billingInfo,
16326
16370
  endUserIpAddress,
16327
- paymentMethod: __spreadValues$K({
16371
+ paymentMethod: __spreadValues$N({
16328
16372
  creditCardInfo
16329
16373
  }, auctanePayInfo)
16330
16374
  }
@@ -16334,19 +16378,19 @@ class FundingSourcesAPI {
16334
16378
  * The `registerCarrier` method registers a carrier account and associates
16335
16379
  * it with a given funding source.
16336
16380
  */
16337
- this.registerCarrier = (carrier) => __async$11(this, null, function* () {
16381
+ this.registerCarrier = (carrier) => __async$12(this, null, function* () {
16338
16382
  const endUserIpAddress = yield getEndUserIpAddress();
16339
16383
  if (!endUserIpAddress) {
16340
16384
  return Promise.reject([new CodedError("Unable to get IP address")]);
16341
16385
  }
16342
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$K({
16386
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
16343
16387
  endUserIpAddress
16344
16388
  }, carrier));
16345
16389
  });
16346
16390
  /**
16347
16391
  * The `addFunds` method allows you to add funds to a funding source.
16348
16392
  */
16349
- this.addFunds = (amount, fundingSourceId) => __async$11(this, null, function* () {
16393
+ this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
16350
16394
  return yield this.client.put(
16351
16395
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16352
16396
  amount
@@ -16356,7 +16400,7 @@ class FundingSourcesAPI {
16356
16400
  * The `metadata` method returns seller-specific requirements for creating funding sources
16357
16401
  * and attaching carriers
16358
16402
  */
16359
- this.metadata = () => __async$11(this, null, function* () {
16403
+ this.metadata = () => __async$12(this, null, function* () {
16360
16404
  return yield this.client.get("/v1/funding_sources/metadata");
16361
16405
  });
16362
16406
  /**
@@ -16408,7 +16452,7 @@ class InsuranceAPI {
16408
16452
  }
16409
16453
  }
16410
16454
 
16411
- var __async$10 = (__this, __arguments, generator) => {
16455
+ var __async$11 = (__this, __arguments, generator) => {
16412
16456
  return new Promise((resolve, reject) => {
16413
16457
  var fulfilled = (value) => {
16414
16458
  try {
@@ -16440,13 +16484,13 @@ class InvoiceAddressAPI {
16440
16484
  /**
16441
16485
  * The `create` method creates a new invoice address for a given user.
16442
16486
  */
16443
- this.create = (invoiceAddress) => __async$10(this, null, function* () {
16487
+ this.create = (invoiceAddress) => __async$11(this, null, function* () {
16444
16488
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16445
16489
  });
16446
16490
  /**
16447
16491
  * The `update` method updates a invoice address for a given user.
16448
16492
  */
16449
- this.update = (invoiceAddress) => __async$10(this, null, function* () {
16493
+ this.update = (invoiceAddress) => __async$11(this, null, function* () {
16450
16494
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16451
16495
  });
16452
16496
  this.client = client;
@@ -16508,17 +16552,17 @@ class LabelsAPI {
16508
16552
  }
16509
16553
  }
16510
16554
 
16511
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
16512
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
16513
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
16555
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16556
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16557
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16514
16558
  var __objRest$t = (source, exclude) => {
16515
16559
  var target = {};
16516
16560
  for (var prop in source)
16517
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
16561
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
16518
16562
  target[prop] = source[prop];
16519
- if (source != null && __getOwnPropSymbols$T)
16520
- for (var prop of __getOwnPropSymbols$T(source)) {
16521
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
16563
+ if (source != null && __getOwnPropSymbols$W)
16564
+ for (var prop of __getOwnPropSymbols$W(source)) {
16565
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
16522
16566
  target[prop] = source[prop];
16523
16567
  }
16524
16568
  return target;
@@ -16639,19 +16683,19 @@ class RateCardsAPI {
16639
16683
  }
16640
16684
  }
16641
16685
 
16642
- var __defProp$J = Object.defineProperty;
16643
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16644
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16645
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16646
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16647
- var __spreadValues$J = (a, b) => {
16686
+ var __defProp$M = Object.defineProperty;
16687
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16688
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16689
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16690
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16691
+ var __spreadValues$M = (a, b) => {
16648
16692
  for (var prop in b || (b = {}))
16649
- if (__hasOwnProp$S.call(b, prop))
16650
- __defNormalProp$J(a, prop, b[prop]);
16651
- if (__getOwnPropSymbols$S)
16652
- for (var prop of __getOwnPropSymbols$S(b)) {
16653
- if (__propIsEnum$S.call(b, prop))
16654
- __defNormalProp$J(a, prop, b[prop]);
16693
+ if (__hasOwnProp$V.call(b, prop))
16694
+ __defNormalProp$M(a, prop, b[prop]);
16695
+ if (__getOwnPropSymbols$V)
16696
+ for (var prop of __getOwnPropSymbols$V(b)) {
16697
+ if (__propIsEnum$V.call(b, prop))
16698
+ __defNormalProp$M(a, prop, b[prop]);
16655
16699
  }
16656
16700
  return a;
16657
16701
  };
@@ -16673,7 +16717,7 @@ class RatesAPI {
16673
16717
  * method.
16674
16718
  */
16675
16719
  this.estimate = (params) => {
16676
- return this.client.post("/v1/rates/estimate", __spreadValues$J({}, params));
16720
+ return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
16677
16721
  };
16678
16722
  this.client = client;
16679
16723
  }
@@ -16753,7 +16797,7 @@ class SalesOrdersAPI {
16753
16797
  }
16754
16798
  }
16755
16799
 
16756
- var __async$$ = (__this, __arguments, generator) => {
16800
+ var __async$10 = (__this, __arguments, generator) => {
16757
16801
  return new Promise((resolve, reject) => {
16758
16802
  var fulfilled = (value) => {
16759
16803
  try {
@@ -16811,7 +16855,7 @@ class SellersAPI {
16811
16855
  /**
16812
16856
  * Deletes an API Key
16813
16857
  */
16814
- this.deleteSellerApiKey = (_0) => __async$$(this, [_0], function* ({
16858
+ this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
16815
16859
  encryptedApiKey,
16816
16860
  sellerId,
16817
16861
  isSandbox
@@ -16857,19 +16901,19 @@ class SellersAPI {
16857
16901
  }
16858
16902
  }
16859
16903
 
16860
- var __defProp$I = Object.defineProperty;
16861
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16862
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16863
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16864
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16865
- var __spreadValues$I = (a, b) => {
16904
+ var __defProp$L = Object.defineProperty;
16905
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16906
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16907
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16908
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16909
+ var __spreadValues$L = (a, b) => {
16866
16910
  for (var prop in b || (b = {}))
16867
- if (__hasOwnProp$R.call(b, prop))
16868
- __defNormalProp$I(a, prop, b[prop]);
16869
- if (__getOwnPropSymbols$R)
16870
- for (var prop of __getOwnPropSymbols$R(b)) {
16871
- if (__propIsEnum$R.call(b, prop))
16872
- __defNormalProp$I(a, prop, b[prop]);
16911
+ if (__hasOwnProp$U.call(b, prop))
16912
+ __defNormalProp$L(a, prop, b[prop]);
16913
+ if (__getOwnPropSymbols$U)
16914
+ for (var prop of __getOwnPropSymbols$U(b)) {
16915
+ if (__propIsEnum$U.call(b, prop))
16916
+ __defNormalProp$L(a, prop, b[prop]);
16873
16917
  }
16874
16918
  return a;
16875
16919
  };
@@ -16881,7 +16925,7 @@ class ServicePointsAPI {
16881
16925
  * Either an address, coordinates, or an address query
16882
16926
  */
16883
16927
  this.list = (options) => {
16884
- return this.client.post("/v1/service_points/list", __spreadValues$I({}, options));
16928
+ return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
16885
16929
  };
16886
16930
  /**
16887
16931
  * Get a specific service point by its carrier code, country code, and id
@@ -16899,7 +16943,7 @@ class ServicePointsAPI {
16899
16943
  }
16900
16944
  }
16901
16945
 
16902
- var __async$_ = (__this, __arguments, generator) => {
16946
+ var __async$$ = (__this, __arguments, generator) => {
16903
16947
  return new Promise((resolve, reject) => {
16904
16948
  var fulfilled = (value) => {
16905
16949
  try {
@@ -16948,7 +16992,7 @@ class ShipmentsAPI {
16948
16992
  * The `create` method allows for creating shipments based on a list of shipment
16949
16993
  * items passed into this method.
16950
16994
  */
16951
- this.create = (...shipments) => __async$_(this, null, function* () {
16995
+ this.create = (...shipments) => __async$$(this, null, function* () {
16952
16996
  return this.client.post("/v1/shipments", {
16953
16997
  shipments
16954
16998
  });
@@ -34365,38 +34409,38 @@ class WebhooksAPI {
34365
34409
  }
34366
34410
  }
34367
34411
 
34368
- var __defProp$H = Object.defineProperty;
34369
- var __defProps$E = Object.defineProperties;
34370
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
34371
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
34372
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
34373
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
34374
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34375
- var __spreadValues$H = (a, b) => {
34412
+ var __defProp$K = Object.defineProperty;
34413
+ var __defProps$H = Object.defineProperties;
34414
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34415
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34416
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34417
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34418
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34419
+ var __spreadValues$K = (a, b) => {
34376
34420
  for (var prop in b || (b = {}))
34377
- if (__hasOwnProp$Q.call(b, prop))
34378
- __defNormalProp$H(a, prop, b[prop]);
34379
- if (__getOwnPropSymbols$Q)
34380
- for (var prop of __getOwnPropSymbols$Q(b)) {
34381
- if (__propIsEnum$Q.call(b, prop))
34382
- __defNormalProp$H(a, prop, b[prop]);
34421
+ if (__hasOwnProp$T.call(b, prop))
34422
+ __defNormalProp$K(a, prop, b[prop]);
34423
+ if (__getOwnPropSymbols$T)
34424
+ for (var prop of __getOwnPropSymbols$T(b)) {
34425
+ if (__propIsEnum$T.call(b, prop))
34426
+ __defNormalProp$K(a, prop, b[prop]);
34383
34427
  }
34384
34428
  return a;
34385
34429
  };
34386
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
34430
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34387
34431
  var __objRest$s = (source, exclude) => {
34388
34432
  var target = {};
34389
34433
  for (var prop in source)
34390
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
34434
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
34391
34435
  target[prop] = source[prop];
34392
- if (source != null && __getOwnPropSymbols$Q)
34393
- for (var prop of __getOwnPropSymbols$Q(source)) {
34394
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
34436
+ if (source != null && __getOwnPropSymbols$T)
34437
+ for (var prop of __getOwnPropSymbols$T(source)) {
34438
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
34395
34439
  target[prop] = source[prop];
34396
34440
  }
34397
34441
  return target;
34398
34442
  };
34399
- var __async$Z = (__this, __arguments, generator) => {
34443
+ var __async$_ = (__this, __arguments, generator) => {
34400
34444
  return new Promise((resolve, reject) => {
34401
34445
  var fulfilled = (value) => {
34402
34446
  try {
@@ -34419,7 +34463,7 @@ var __async$Z = (__this, __arguments, generator) => {
34419
34463
  const logger$1 = E({
34420
34464
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34421
34465
  name: "shipengine-api",
34422
- serializers: __spreadProps$E(__spreadValues$H({}, k), {
34466
+ serializers: __spreadProps$H(__spreadValues$K({}, k), {
34423
34467
  req: (req) => ({
34424
34468
  headers: req.headers,
34425
34469
  method: req.method,
@@ -34444,7 +34488,7 @@ class ShipEngineAPI {
34444
34488
  this.getSandboxToken = getSandboxToken;
34445
34489
  const client = axios.create({
34446
34490
  baseURL,
34447
- headers: __spreadProps$E(__spreadValues$H({}, headers), {
34491
+ headers: __spreadProps$H(__spreadValues$K({}, headers), {
34448
34492
  "Content-Type": "application/json"
34449
34493
  }),
34450
34494
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34484,7 +34528,7 @@ class ShipEngineAPI {
34484
34528
  });
34485
34529
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34486
34530
  client.interceptors.request.use(
34487
- (config) => __async$Z(this, null, function* () {
34531
+ (config) => __async$_(this, null, function* () {
34488
34532
  if (config.isSandbox) {
34489
34533
  if (!this.sandboxToken) {
34490
34534
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34511,7 +34555,7 @@ class ShipEngineAPI {
34511
34555
  );
34512
34556
  return res;
34513
34557
  },
34514
- (err) => __async$Z(this, null, function* () {
34558
+ (err) => __async$_(this, null, function* () {
34515
34559
  var _a, _b, _c, _d, _e;
34516
34560
  logger$1.error(
34517
34561
  { err, req: err.config, res: err.response },
@@ -34558,7 +34602,7 @@ class ShipEngineAPI {
34558
34602
  * that token (also known as Seller ID)
34559
34603
  */
34560
34604
  getTenant(isSandbox) {
34561
- return __async$Z(this, null, function* () {
34605
+ return __async$_(this, null, function* () {
34562
34606
  var _a;
34563
34607
  if (!isSandbox) {
34564
34608
  return this.getTenantFromToken(this.token);
@@ -34595,6 +34639,13 @@ class ShipEngineAPI {
34595
34639
  get accountBillingPlan() {
34596
34640
  return new AccountBillingPlanAPI(this.client);
34597
34641
  }
34642
+ /**
34643
+ * The `accountAddons` method provides access to the Account Addons endpoints
34644
+ * in ShipEngine API.
34645
+ */
34646
+ get accountAddons() {
34647
+ return new AccountAddonsAPI(this.client);
34648
+ }
34598
34649
  /**
34599
34650
  * The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
34600
34651
  * in ShipEngine API.
@@ -34861,25 +34912,25 @@ const delay = (ms) => new Promise((resolve) => {
34861
34912
 
34862
34913
  const onError = (_errors) => _default();
34863
34914
 
34864
- var __defProp$G = Object.defineProperty;
34865
- var __defProps$D = Object.defineProperties;
34866
- var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
34867
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
34868
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
34869
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
34870
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34871
- var __spreadValues$G = (a, b) => {
34915
+ var __defProp$J = Object.defineProperty;
34916
+ var __defProps$G = Object.defineProperties;
34917
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
34918
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
34919
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
34920
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
34921
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34922
+ var __spreadValues$J = (a, b) => {
34872
34923
  for (var prop in b || (b = {}))
34873
- if (__hasOwnProp$P.call(b, prop))
34874
- __defNormalProp$G(a, prop, b[prop]);
34875
- if (__getOwnPropSymbols$P)
34876
- for (var prop of __getOwnPropSymbols$P(b)) {
34877
- if (__propIsEnum$P.call(b, prop))
34878
- __defNormalProp$G(a, prop, b[prop]);
34924
+ if (__hasOwnProp$S.call(b, prop))
34925
+ __defNormalProp$J(a, prop, b[prop]);
34926
+ if (__getOwnPropSymbols$S)
34927
+ for (var prop of __getOwnPropSymbols$S(b)) {
34928
+ if (__propIsEnum$S.call(b, prop))
34929
+ __defNormalProp$J(a, prop, b[prop]);
34879
34930
  }
34880
34931
  return a;
34881
34932
  };
34882
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
34933
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
34883
34934
  const streams = [];
34884
34935
  if (process.env.NODE_ENV === "production") {
34885
34936
  streams.push({
@@ -34888,7 +34939,7 @@ if (process.env.NODE_ENV === "production") {
34888
34939
  }
34889
34940
  const logger = E({
34890
34941
  name: "shipengine",
34891
- serializers: __spreadProps$D(__spreadValues$G({}, k), {
34942
+ serializers: __spreadProps$G(__spreadValues$J({}, k), {
34892
34943
  req: (req) => ({
34893
34944
  headers: req.headers,
34894
34945
  method: req.method,
@@ -34913,7 +34964,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34913
34964
  throw error;
34914
34965
  });
34915
34966
 
34916
- var __async$Y = (__this, __arguments, generator) => {
34967
+ var __async$Z = (__this, __arguments, generator) => {
34917
34968
  return new Promise((resolve, reject) => {
34918
34969
  var fulfilled = (value) => {
34919
34970
  try {
@@ -34936,7 +34987,7 @@ var __async$Y = (__this, __arguments, generator) => {
34936
34987
  const useCreateAccountImage = () => {
34937
34988
  const { client } = useShipEngine();
34938
34989
  return useMutation({
34939
- mutationFn: (data) => __async$Y(void 0, null, function* () {
34990
+ mutationFn: (data) => __async$Z(void 0, null, function* () {
34940
34991
  const result = yield client.accountSettings.createImage(data);
34941
34992
  return result.data;
34942
34993
  }),
@@ -34945,7 +34996,7 @@ const useCreateAccountImage = () => {
34945
34996
  });
34946
34997
  };
34947
34998
 
34948
- var __async$X = (__this, __arguments, generator) => {
34999
+ var __async$Y = (__this, __arguments, generator) => {
34949
35000
  return new Promise((resolve, reject) => {
34950
35001
  var fulfilled = (value) => {
34951
35002
  try {
@@ -34968,7 +35019,7 @@ var __async$X = (__this, __arguments, generator) => {
34968
35019
  const useDeleteAccountImage = () => {
34969
35020
  const { client } = useShipEngine();
34970
35021
  return useMutation({
34971
- mutationFn: (labelImageId) => __async$X(void 0, null, function* () {
35022
+ mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
34972
35023
  const result = yield client.accountSettings.deleteImage(labelImageId);
34973
35024
  return result.data;
34974
35025
  }),
@@ -34997,7 +35048,7 @@ const useGetAccountSettings = () => {
34997
35048
  });
34998
35049
  };
34999
35050
 
35000
- var __async$W = (__this, __arguments, generator) => {
35051
+ var __async$X = (__this, __arguments, generator) => {
35001
35052
  return new Promise((resolve, reject) => {
35002
35053
  var fulfilled = (value) => {
35003
35054
  try {
@@ -35020,7 +35071,7 @@ var __async$W = (__this, __arguments, generator) => {
35020
35071
  const useUpdateAccountImage = () => {
35021
35072
  const { client } = useShipEngine();
35022
35073
  return useMutation({
35023
- mutationFn: (data) => __async$W(void 0, null, function* () {
35074
+ mutationFn: (data) => __async$X(void 0, null, function* () {
35024
35075
  const result = yield client.accountSettings.updateImage(data);
35025
35076
  return result.data;
35026
35077
  }),
@@ -35029,7 +35080,7 @@ const useUpdateAccountImage = () => {
35029
35080
  });
35030
35081
  };
35031
35082
 
35032
- var __async$V = (__this, __arguments, generator) => {
35083
+ var __async$W = (__this, __arguments, generator) => {
35033
35084
  return new Promise((resolve, reject) => {
35034
35085
  var fulfilled = (value) => {
35035
35086
  try {
@@ -35052,7 +35103,7 @@ var __async$V = (__this, __arguments, generator) => {
35052
35103
  const useUpdateAccountSettings = () => {
35053
35104
  const { client } = useShipEngine();
35054
35105
  return useMutation({
35055
- mutationFn: (settings) => __async$V(void 0, null, function* () {
35106
+ mutationFn: (settings) => __async$W(void 0, null, function* () {
35056
35107
  const result = yield client.accountSettings.update(settings);
35057
35108
  return result.data;
35058
35109
  }),
@@ -35061,7 +35112,36 @@ const useUpdateAccountSettings = () => {
35061
35112
  });
35062
35113
  };
35063
35114
 
35064
- var __async$U = (__this, __arguments, generator) => {
35115
+ var __defProp$I = Object.defineProperty;
35116
+ var __defProps$F = Object.defineProperties;
35117
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35118
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35119
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35120
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35121
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35122
+ var __spreadValues$I = (a, b) => {
35123
+ for (var prop in b || (b = {}))
35124
+ if (__hasOwnProp$R.call(b, prop))
35125
+ __defNormalProp$I(a, prop, b[prop]);
35126
+ if (__getOwnPropSymbols$R)
35127
+ for (var prop of __getOwnPropSymbols$R(b)) {
35128
+ if (__propIsEnum$R.call(b, prop))
35129
+ __defNormalProp$I(a, prop, b[prop]);
35130
+ }
35131
+ return a;
35132
+ };
35133
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35134
+ const useListAccountAddons = (params) => {
35135
+ const { client } = useShipEngine();
35136
+ return useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35137
+ onError,
35138
+ queryFn: () => client.accountAddons.list(),
35139
+ queryKey: ["useListAccountAddons"],
35140
+ select: (result) => result.data
35141
+ }));
35142
+ };
35143
+
35144
+ var __async$V = (__this, __arguments, generator) => {
35065
35145
  return new Promise((resolve, reject) => {
35066
35146
  var fulfilled = (value) => {
35067
35147
  try {
@@ -35084,7 +35164,7 @@ var __async$U = (__this, __arguments, generator) => {
35084
35164
  const useParseAddress = () => {
35085
35165
  const { client } = useShipEngine();
35086
35166
  return useMutation({
35087
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ address, text }) {
35167
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
35088
35168
  const result = yield client.addresses.parse(text, address);
35089
35169
  return result.data;
35090
35170
  }),
@@ -35093,7 +35173,7 @@ const useParseAddress = () => {
35093
35173
  });
35094
35174
  };
35095
35175
 
35096
- var __async$T = (__this, __arguments, generator) => {
35176
+ var __async$U = (__this, __arguments, generator) => {
35097
35177
  return new Promise((resolve, reject) => {
35098
35178
  var fulfilled = (value) => {
35099
35179
  try {
@@ -35116,7 +35196,7 @@ var __async$T = (__this, __arguments, generator) => {
35116
35196
  const useValidateAddresses = () => {
35117
35197
  const { client } = useShipEngine();
35118
35198
  return useMutation({
35119
- mutationFn: (addresses) => __async$T(void 0, null, function* () {
35199
+ mutationFn: (addresses) => __async$U(void 0, null, function* () {
35120
35200
  const result = yield client.addresses.validate(addresses);
35121
35201
  return result.data;
35122
35202
  }),
@@ -35125,6 +35205,87 @@ const useValidateAddresses = () => {
35125
35205
  });
35126
35206
  };
35127
35207
 
35208
+ var __defProp$H = Object.defineProperty;
35209
+ var __defProps$E = Object.defineProperties;
35210
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35211
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35212
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35213
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35214
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35215
+ var __spreadValues$H = (a, b) => {
35216
+ for (var prop in b || (b = {}))
35217
+ if (__hasOwnProp$Q.call(b, prop))
35218
+ __defNormalProp$H(a, prop, b[prop]);
35219
+ if (__getOwnPropSymbols$Q)
35220
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35221
+ if (__propIsEnum$Q.call(b, prop))
35222
+ __defNormalProp$H(a, prop, b[prop]);
35223
+ }
35224
+ return a;
35225
+ };
35226
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35227
+ var __async$T = (__this, __arguments, generator) => {
35228
+ return new Promise((resolve, reject) => {
35229
+ var fulfilled = (value) => {
35230
+ try {
35231
+ step(generator.next(value));
35232
+ } catch (e) {
35233
+ reject(e);
35234
+ }
35235
+ };
35236
+ var rejected = (value) => {
35237
+ try {
35238
+ step(generator.throw(value));
35239
+ } catch (e) {
35240
+ reject(e);
35241
+ }
35242
+ };
35243
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35244
+ step((generator = generator.apply(__this, __arguments)).next());
35245
+ });
35246
+ };
35247
+ const useCreateAuctanePaySession = (params) => {
35248
+ const { client } = useShipEngine();
35249
+ return useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35250
+ mutationFn: (request) => __async$T(void 0, null, function* () {
35251
+ const result = yield client.auctanePay.createSession(request);
35252
+ return result.data;
35253
+ }),
35254
+ mutationKey: ["useCreateAuctanePaySession"],
35255
+ onError
35256
+ }));
35257
+ };
35258
+
35259
+ var __defProp$G = Object.defineProperty;
35260
+ var __defProps$D = Object.defineProperties;
35261
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
35262
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
35263
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
35264
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
35265
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35266
+ var __spreadValues$G = (a, b) => {
35267
+ for (var prop in b || (b = {}))
35268
+ if (__hasOwnProp$P.call(b, prop))
35269
+ __defNormalProp$G(a, prop, b[prop]);
35270
+ if (__getOwnPropSymbols$P)
35271
+ for (var prop of __getOwnPropSymbols$P(b)) {
35272
+ if (__propIsEnum$P.call(b, prop))
35273
+ __defNormalProp$G(a, prop, b[prop]);
35274
+ }
35275
+ return a;
35276
+ };
35277
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35278
+ const useGetAuctanePayConfig = (params) => {
35279
+ const { client } = useShipEngine();
35280
+ const queryParams = __spreadValues$G({}, params);
35281
+ return useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35282
+ onError,
35283
+ queryFn: () => client.auctanePay.getConfig(),
35284
+ queryKey: ["useGetAuctanePayConfig"],
35285
+ select: (result) => result.data
35286
+ }));
35287
+ };
35288
+
35128
35289
  var __defProp$F = Object.defineProperty;
35129
35290
  var __defProps$C = Object.defineProperties;
35130
35291
  var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
@@ -35164,14 +35325,18 @@ var __async$S = (__this, __arguments, generator) => {
35164
35325
  step((generator = generator.apply(__this, __arguments)).next());
35165
35326
  });
35166
35327
  };
35167
- const useCreateAuctanePaySession = (params) => {
35328
+ const usePreviewTransaction = (params) => {
35168
35329
  const { client } = useShipEngine();
35169
35330
  return useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35170
- mutationFn: (request) => __async$S(void 0, null, function* () {
35171
- const result = yield client.auctanePay.createSession(request);
35331
+ mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35332
+ const request = {
35333
+ amount,
35334
+ transactionCategory
35335
+ };
35336
+ const result = yield client.auctanePay.previewTransaction(request);
35172
35337
  return result.data;
35173
35338
  }),
35174
- mutationKey: ["useCreateAuctanePaySession"],
35339
+ mutationKey: ["usePreviewTransaction"],
35175
35340
  onError
35176
35341
  }));
35177
35342
  };
@@ -35195,13 +35360,13 @@ var __spreadValues$E = (a, b) => {
35195
35360
  return a;
35196
35361
  };
35197
35362
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35198
- const useGetAuctanePayConfig = (params) => {
35363
+ const useGetPaymentMethods = (params) => {
35199
35364
  const { client } = useShipEngine();
35200
35365
  const queryParams = __spreadValues$E({}, params);
35201
35366
  return useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
35202
35367
  onError,
35203
- queryFn: () => client.auctanePay.getConfig(),
35204
- queryKey: ["useGetAuctanePayConfig"],
35368
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35369
+ queryKey: ["useGetPaymentMethods"],
35205
35370
  select: (result) => result.data
35206
35371
  }));
35207
35372
  };
@@ -35245,18 +35410,14 @@ var __async$R = (__this, __arguments, generator) => {
35245
35410
  step((generator = generator.apply(__this, __arguments)).next());
35246
35411
  });
35247
35412
  };
35248
- const usePreviewTransaction = (params) => {
35413
+ const useDeletePaymentMethod = (params) => {
35249
35414
  const { client } = useShipEngine();
35250
35415
  return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35251
- mutationFn: (_0) => __async$R(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35252
- const request = {
35253
- amount,
35254
- transactionCategory
35255
- };
35256
- const result = yield client.auctanePay.previewTransaction(request);
35416
+ mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
35417
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35257
35418
  return result.data;
35258
35419
  }),
35259
- mutationKey: ["usePreviewTransaction"],
35420
+ mutationKey: ["useDeletePaymentMethod"],
35260
35421
  onError
35261
35422
  }));
35262
35423
  };
@@ -35280,14 +35441,35 @@ var __spreadValues$C = (a, b) => {
35280
35441
  return a;
35281
35442
  };
35282
35443
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35283
- const useGetPaymentMethods = (params) => {
35444
+ var __async$Q = (__this, __arguments, generator) => {
35445
+ return new Promise((resolve, reject) => {
35446
+ var fulfilled = (value) => {
35447
+ try {
35448
+ step(generator.next(value));
35449
+ } catch (e) {
35450
+ reject(e);
35451
+ }
35452
+ };
35453
+ var rejected = (value) => {
35454
+ try {
35455
+ step(generator.throw(value));
35456
+ } catch (e) {
35457
+ reject(e);
35458
+ }
35459
+ };
35460
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35461
+ step((generator = generator.apply(__this, __arguments)).next());
35462
+ });
35463
+ };
35464
+ const useUpdatePaymentMethod = (params) => {
35284
35465
  const { client } = useShipEngine();
35285
- const queryParams = __spreadValues$C({}, params);
35286
- return useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35287
- onError,
35288
- queryFn: () => client.auctanePay.getPaymentMethods(),
35289
- queryKey: ["useGetPaymentMethods"],
35290
- select: (result) => result.data
35466
+ return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35467
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
35468
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35469
+ return result.data;
35470
+ }),
35471
+ mutationKey: ["useUpdatePaymentMethod"],
35472
+ onError
35291
35473
  }));
35292
35474
  };
35293
35475
 
@@ -35310,7 +35492,7 @@ var __spreadValues$B = (a, b) => {
35310
35492
  return a;
35311
35493
  };
35312
35494
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35313
- var __async$Q = (__this, __arguments, generator) => {
35495
+ var __async$P = (__this, __arguments, generator) => {
35314
35496
  return new Promise((resolve, reject) => {
35315
35497
  var fulfilled = (value) => {
35316
35498
  try {
@@ -35330,14 +35512,14 @@ var __async$Q = (__this, __arguments, generator) => {
35330
35512
  step((generator = generator.apply(__this, __arguments)).next());
35331
35513
  });
35332
35514
  };
35333
- const useDeletePaymentMethod = (params) => {
35515
+ const useIdentityVerification = (params) => {
35334
35516
  const { client } = useShipEngine();
35335
35517
  return useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35336
- mutationFn: (paymentMethodId) => __async$Q(void 0, null, function* () {
35337
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35518
+ mutationFn: () => __async$P(void 0, null, function* () {
35519
+ const result = yield client.auctanePay.identityVerification();
35338
35520
  return result.data;
35339
35521
  }),
35340
- mutationKey: ["useDeletePaymentMethod"],
35522
+ mutationKey: ["useIdentityVerification"],
35341
35523
  onError
35342
35524
  }));
35343
35525
  };
@@ -35361,35 +35543,14 @@ var __spreadValues$A = (a, b) => {
35361
35543
  return a;
35362
35544
  };
35363
35545
  var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35364
- var __async$P = (__this, __arguments, generator) => {
35365
- return new Promise((resolve, reject) => {
35366
- var fulfilled = (value) => {
35367
- try {
35368
- step(generator.next(value));
35369
- } catch (e) {
35370
- reject(e);
35371
- }
35372
- };
35373
- var rejected = (value) => {
35374
- try {
35375
- step(generator.throw(value));
35376
- } catch (e) {
35377
- reject(e);
35378
- }
35379
- };
35380
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35381
- step((generator = generator.apply(__this, __arguments)).next());
35382
- });
35383
- };
35384
- const useUpdatePaymentMethod = (params) => {
35546
+ const useGetPaymentAccount = (params) => {
35385
35547
  const { client } = useShipEngine();
35386
- return useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35387
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ paymentMethodId, payload }) {
35388
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35389
- return result.data;
35390
- }),
35391
- mutationKey: ["useUpdatePaymentMethod"],
35392
- onError
35548
+ const queryParams = __spreadValues$A({}, params);
35549
+ return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35550
+ onError,
35551
+ queryFn: () => client.auctanePay.getPaymentAccount(),
35552
+ queryKey: ["useGetPaymentAccount"],
35553
+ select: (result) => result.data
35393
35554
  }));
35394
35555
  };
35395
35556
 
@@ -39908,4 +40069,4 @@ const alchemy = {
39908
40069
  createElement
39909
40070
  };
39910
40071
 
39911
- export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, 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, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, 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, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
40072
+ export { AccountAddonsAPI, AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, 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, useDownloadRateCard, useEditShippingRule, 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, 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, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdatePaymentMethod, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };