@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.js CHANGED
@@ -3553,7 +3553,7 @@ var symToStringTag = Symbol$5 ? Symbol$5.toStringTag : undefined;
3553
3553
  * @param {*} value The value to query.
3554
3554
  * @returns {string} Returns the `toStringTag`.
3555
3555
  */
3556
- function baseGetTag$6(value) {
3556
+ function baseGetTag$5(value) {
3557
3557
  if (value == null) {
3558
3558
  return value === undefined ? undefinedTag : nullTag;
3559
3559
  }
@@ -3562,7 +3562,7 @@ function baseGetTag$6(value) {
3562
3562
  : objectToString$1(value);
3563
3563
  }
3564
3564
 
3565
- var _baseGetTag = baseGetTag$6;
3565
+ var _baseGetTag = baseGetTag$5;
3566
3566
 
3567
3567
  /**
3568
3568
  * Checks if `value` is the
@@ -3597,12 +3597,12 @@ function isObject$8(value) {
3597
3597
 
3598
3598
  var isObject_1 = isObject$8;
3599
3599
 
3600
- var baseGetTag$5 = _baseGetTag,
3600
+ var baseGetTag$4 = _baseGetTag,
3601
3601
  isObject$7 = isObject_1;
3602
3602
 
3603
3603
  /** `Object#toString` result references. */
3604
3604
  var asyncTag = '[object AsyncFunction]',
3605
- funcTag$2 = '[object Function]',
3605
+ funcTag$1 = '[object Function]',
3606
3606
  genTag$1 = '[object GeneratorFunction]',
3607
3607
  proxyTag = '[object Proxy]';
3608
3608
 
@@ -3629,8 +3629,8 @@ function isFunction$3(value) {
3629
3629
  }
3630
3630
  // The use of `Object#toString` avoids issues with the `typeof` operator
3631
3631
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
3632
- var tag = baseGetTag$5(value);
3633
- return tag == funcTag$2 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3632
+ var tag = baseGetTag$4(value);
3633
+ return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
3634
3634
  }
3635
3635
 
3636
3636
  var isFunction_1 = isFunction$3;
@@ -4223,11 +4223,11 @@ var isArray_1 = isArray$h;
4223
4223
  * // => false
4224
4224
  */
4225
4225
 
4226
- function isObjectLike$9(value) {
4226
+ function isObjectLike$8(value) {
4227
4227
  return value != null && typeof value == 'object';
4228
4228
  }
4229
4229
 
4230
- var isObjectLike_1 = isObjectLike$9;
4230
+ var isObjectLike_1 = isObjectLike$8;
4231
4231
 
4232
4232
  /**
4233
4233
  * Copies the values of `source` to `array`.
@@ -4279,7 +4279,7 @@ var LazyWrapper$1 = _LazyWrapper,
4279
4279
  LodashWrapper = _LodashWrapper,
4280
4280
  baseLodash = _baseLodash,
4281
4281
  isArray$g = isArray_1,
4282
- isObjectLike$8 = isObjectLike_1,
4282
+ isObjectLike$7 = isObjectLike_1,
4283
4283
  wrapperClone = _wrapperClone;
4284
4284
 
4285
4285
  /** Used for built-in method references. */
@@ -4406,7 +4406,7 @@ var hasOwnProperty$7 = objectProto$9.hasOwnProperty;
4406
4406
  * // => true
4407
4407
  */
4408
4408
  function lodash$2(value) {
4409
- if (isObjectLike$8(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4409
+ if (isObjectLike$7(value) && !isArray$g(value) && !(value instanceof LazyWrapper$1)) {
4410
4410
  if (value instanceof LodashWrapper) {
4411
4411
  return value;
4412
4412
  }
@@ -5307,8 +5307,8 @@ function baseTrim$1(string) {
5307
5307
 
5308
5308
  var _baseTrim = baseTrim$1;
5309
5309
 
5310
- var baseGetTag$4 = _baseGetTag,
5311
- isObjectLike$7 = isObjectLike_1;
5310
+ var baseGetTag$3 = _baseGetTag,
5311
+ isObjectLike$6 = isObjectLike_1;
5312
5312
 
5313
5313
  /** `Object#toString` result references. */
5314
5314
  var symbolTag$3 = '[object Symbol]';
@@ -5332,7 +5332,7 @@ var symbolTag$3 = '[object Symbol]';
5332
5332
  */
5333
5333
  function isSymbol$6(value) {
5334
5334
  return typeof value == 'symbol' ||
5335
- (isObjectLike$7(value) && baseGetTag$4(value) == symbolTag$3);
5335
+ (isObjectLike$6(value) && baseGetTag$3(value) == symbolTag$3);
5336
5336
  }
5337
5337
 
5338
5338
  var isSymbol_1 = isSymbol$6;
@@ -5953,73 +5953,81 @@ var MAX_SAFE_INTEGER = 9007199254740991;
5953
5953
  * _.isLength('3');
5954
5954
  * // => false
5955
5955
  */
5956
- function isLength$3(value) {
5956
+ function isLength$2(value) {
5957
5957
  return typeof value == 'number' &&
5958
5958
  value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5959
5959
  }
5960
5960
 
5961
- var isLength_1 = isLength$3;
5961
+ var isLength_1 = isLength$2;
5962
5962
 
5963
- var baseGetTag$3 = _baseGetTag,
5964
- isLength$2 = isLength_1,
5965
- isObjectLike$6 = isObjectLike_1;
5963
+ var _baseIsTypedArray;
5964
+ var hasRequired_baseIsTypedArray;
5966
5965
 
5967
- /** `Object#toString` result references. */
5968
- var argsTag$2 = '[object Arguments]',
5969
- arrayTag$2 = '[object Array]',
5970
- boolTag$3 = '[object Boolean]',
5971
- dateTag$3 = '[object Date]',
5972
- errorTag$3 = '[object Error]',
5973
- funcTag$1 = '[object Function]',
5974
- mapTag$5 = '[object Map]',
5975
- numberTag$3 = '[object Number]',
5976
- objectTag$4 = '[object Object]',
5977
- regexpTag$3 = '[object RegExp]',
5978
- setTag$5 = '[object Set]',
5979
- stringTag$3 = '[object String]',
5980
- weakMapTag$3 = '[object WeakMap]';
5981
-
5982
- var arrayBufferTag$3 = '[object ArrayBuffer]',
5983
- dataViewTag$4 = '[object DataView]',
5984
- float32Tag$2 = '[object Float32Array]',
5985
- float64Tag$2 = '[object Float64Array]',
5986
- int8Tag$2 = '[object Int8Array]',
5987
- int16Tag$2 = '[object Int16Array]',
5988
- int32Tag$2 = '[object Int32Array]',
5989
- uint8Tag$2 = '[object Uint8Array]',
5990
- uint8ClampedTag$2 = '[object Uint8ClampedArray]',
5991
- uint16Tag$2 = '[object Uint16Array]',
5992
- uint32Tag$2 = '[object Uint32Array]';
5993
-
5994
- /** Used to identify `toStringTag` values of typed arrays. */
5995
- var typedArrayTags = {};
5996
- typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] =
5997
- typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] =
5998
- typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] =
5999
- typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] =
6000
- typedArrayTags[uint32Tag$2] = true;
6001
- typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] =
6002
- typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] =
6003
- typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] =
6004
- typedArrayTags[errorTag$3] = typedArrayTags[funcTag$1] =
6005
- typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] =
6006
- typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] =
6007
- typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] =
6008
- typedArrayTags[weakMapTag$3] = false;
5966
+ function require_baseIsTypedArray () {
5967
+ if (hasRequired_baseIsTypedArray) return _baseIsTypedArray;
5968
+ hasRequired_baseIsTypedArray = 1;
5969
+ var baseGetTag = _baseGetTag,
5970
+ isLength = isLength_1,
5971
+ isObjectLike = isObjectLike_1;
6009
5972
 
6010
- /**
6011
- * The base implementation of `_.isTypedArray` without Node.js optimizations.
6012
- *
6013
- * @private
6014
- * @param {*} value The value to check.
6015
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6016
- */
6017
- function baseIsTypedArray$1(value) {
6018
- return isObjectLike$6(value) &&
6019
- isLength$2(value.length) && !!typedArrayTags[baseGetTag$3(value)];
6020
- }
5973
+ /** `Object#toString` result references. */
5974
+ var argsTag = '[object Arguments]',
5975
+ arrayTag = '[object Array]',
5976
+ boolTag = '[object Boolean]',
5977
+ dateTag = '[object Date]',
5978
+ errorTag = '[object Error]',
5979
+ funcTag = '[object Function]',
5980
+ mapTag = '[object Map]',
5981
+ numberTag = '[object Number]',
5982
+ objectTag = '[object Object]',
5983
+ regexpTag = '[object RegExp]',
5984
+ setTag = '[object Set]',
5985
+ stringTag = '[object String]',
5986
+ weakMapTag = '[object WeakMap]';
5987
+
5988
+ var arrayBufferTag = '[object ArrayBuffer]',
5989
+ dataViewTag = '[object DataView]',
5990
+ float32Tag = '[object Float32Array]',
5991
+ float64Tag = '[object Float64Array]',
5992
+ int8Tag = '[object Int8Array]',
5993
+ int16Tag = '[object Int16Array]',
5994
+ int32Tag = '[object Int32Array]',
5995
+ uint8Tag = '[object Uint8Array]',
5996
+ uint8ClampedTag = '[object Uint8ClampedArray]',
5997
+ uint16Tag = '[object Uint16Array]',
5998
+ uint32Tag = '[object Uint32Array]';
5999
+
6000
+ /** Used to identify `toStringTag` values of typed arrays. */
6001
+ var typedArrayTags = {};
6002
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =
6003
+ typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =
6004
+ typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
6005
+ typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
6006
+ typedArrayTags[uint32Tag] = true;
6007
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] =
6008
+ typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =
6009
+ typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =
6010
+ typedArrayTags[errorTag] = typedArrayTags[funcTag] =
6011
+ typedArrayTags[mapTag] = typedArrayTags[numberTag] =
6012
+ typedArrayTags[objectTag] = typedArrayTags[regexpTag] =
6013
+ typedArrayTags[setTag] = typedArrayTags[stringTag] =
6014
+ typedArrayTags[weakMapTag] = false;
6015
+
6016
+ /**
6017
+ * The base implementation of `_.isTypedArray` without Node.js optimizations.
6018
+ *
6019
+ * @private
6020
+ * @param {*} value The value to check.
6021
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6022
+ */
6023
+ function baseIsTypedArray(value) {
6024
+ return isObjectLike(value) &&
6025
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
6026
+ }
6021
6027
 
6022
- var _baseIsTypedArray = baseIsTypedArray$1;
6028
+ _baseIsTypedArray = baseIsTypedArray;
6029
+ return _baseIsTypedArray;
6030
+ }
6023
6031
 
6024
6032
  /**
6025
6033
  * The base implementation of `_.unary` without support for storing metadata.
@@ -6029,13 +6037,13 @@ var _baseIsTypedArray = baseIsTypedArray$1;
6029
6037
  * @returns {Function} Returns the new capped function.
6030
6038
  */
6031
6039
 
6032
- function baseUnary$3(func) {
6040
+ function baseUnary$2(func) {
6033
6041
  return function(value) {
6034
6042
  return func(value);
6035
6043
  };
6036
6044
  }
6037
6045
 
6038
- var _baseUnary = baseUnary$3;
6046
+ var _baseUnary = baseUnary$2;
6039
6047
 
6040
6048
  var _nodeUtilExports = {};
6041
6049
  var _nodeUtil = {
@@ -6076,40 +6084,48 @@ var _nodeUtil = {
6076
6084
  module.exports = nodeUtil;
6077
6085
  } (_nodeUtil, _nodeUtilExports));
6078
6086
 
6079
- var baseIsTypedArray = _baseIsTypedArray,
6080
- baseUnary$2 = _baseUnary,
6081
- nodeUtil$2 = _nodeUtilExports;
6087
+ var isTypedArray_1;
6088
+ var hasRequiredIsTypedArray;
6082
6089
 
6083
- /* Node.js helper references. */
6084
- var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
6090
+ function requireIsTypedArray () {
6091
+ if (hasRequiredIsTypedArray) return isTypedArray_1;
6092
+ hasRequiredIsTypedArray = 1;
6093
+ var baseIsTypedArray = require_baseIsTypedArray(),
6094
+ baseUnary = _baseUnary,
6095
+ nodeUtil = _nodeUtilExports;
6085
6096
 
6086
- /**
6087
- * Checks if `value` is classified as a typed array.
6088
- *
6089
- * @static
6090
- * @memberOf _
6091
- * @since 3.0.0
6092
- * @category Lang
6093
- * @param {*} value The value to check.
6094
- * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6095
- * @example
6096
- *
6097
- * _.isTypedArray(new Uint8Array);
6098
- * // => true
6099
- *
6100
- * _.isTypedArray([]);
6101
- * // => false
6102
- */
6103
- var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
6097
+ /* Node.js helper references. */
6098
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
6099
+
6100
+ /**
6101
+ * Checks if `value` is classified as a typed array.
6102
+ *
6103
+ * @static
6104
+ * @memberOf _
6105
+ * @since 3.0.0
6106
+ * @category Lang
6107
+ * @param {*} value The value to check.
6108
+ * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
6109
+ * @example
6110
+ *
6111
+ * _.isTypedArray(new Uint8Array);
6112
+ * // => true
6113
+ *
6114
+ * _.isTypedArray([]);
6115
+ * // => false
6116
+ */
6117
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
6104
6118
 
6105
- var isTypedArray_1 = isTypedArray$2;
6119
+ isTypedArray_1 = isTypedArray;
6120
+ return isTypedArray_1;
6121
+ }
6106
6122
 
6107
6123
  var baseTimes = _baseTimes,
6108
6124
  isArguments$2 = requireIsArguments(),
6109
6125
  isArray$f = isArray_1,
6110
6126
  isBuffer$4 = isBufferExports,
6111
6127
  isIndex$1 = _isIndex,
6112
- isTypedArray$1 = isTypedArray_1;
6128
+ isTypedArray$1 = requireIsTypedArray();
6113
6129
 
6114
6130
  /** Used for built-in method references. */
6115
6131
  var objectProto$7 = Object.prototype;
@@ -8814,7 +8830,7 @@ var Stack$1 = require_Stack(),
8814
8830
  getTag = _getTag,
8815
8831
  isArray$c = isArray_1,
8816
8832
  isBuffer$2 = isBufferExports,
8817
- isTypedArray = isTypedArray_1;
8833
+ isTypedArray = requireIsTypedArray();
8818
8834
 
8819
8835
  /** Used to compose bitmasks for value comparisons. */
8820
8836
  var COMPARE_PARTIAL_FLAG$2 = 1;
@@ -10159,7 +10175,7 @@ function require_baseMergeDeep () {
10159
10175
  isFunction = isFunction_1,
10160
10176
  isObject = isObject_1,
10161
10177
  isPlainObject = isPlainObject_1,
10162
- isTypedArray = isTypedArray_1,
10178
+ isTypedArray = requireIsTypedArray(),
10163
10179
  safeGet = require_safeGet(),
10164
10180
  toPlainObject = requireToPlainObject();
10165
10181
 
@@ -10806,17 +10822,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10806
10822
  return AccountBillingPlanChangeType2;
10807
10823
  })(AccountBillingPlanChangeType || {});
10808
10824
 
10809
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
10810
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
10811
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
10825
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10826
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10827
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10812
10828
  var __objRest$x = (source, exclude) => {
10813
10829
  var target = {};
10814
10830
  for (var prop in source)
10815
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
10831
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10816
10832
  target[prop] = source[prop];
10817
- if (source != null && __getOwnPropSymbols$Y)
10818
- for (var prop of __getOwnPropSymbols$Y(source)) {
10819
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
10833
+ if (source != null && __getOwnPropSymbols$$)
10834
+ for (var prop of __getOwnPropSymbols$$(source)) {
10835
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10820
10836
  target[prop] = source[prop];
10821
10837
  }
10822
10838
  return target;
@@ -10951,17 +10967,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10951
10967
  RateCardStatus
10952
10968
  }, Symbol.toStringTag, { value: 'Module' }));
10953
10969
 
10954
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
10955
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
10956
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
10970
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
10971
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
10972
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
10957
10973
  var __objRest$w = (source, exclude) => {
10958
10974
  var target = {};
10959
10975
  for (var prop in source)
10960
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
10976
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
10961
10977
  target[prop] = source[prop];
10962
- if (source != null && __getOwnPropSymbols$X)
10963
- for (var prop of __getOwnPropSymbols$X(source)) {
10964
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
10978
+ if (source != null && __getOwnPropSymbols$_)
10979
+ for (var prop of __getOwnPropSymbols$_(source)) {
10980
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
10965
10981
  target[prop] = source[prop];
10966
10982
  }
10967
10983
  return target;
@@ -11012,6 +11028,20 @@ class AccountSettingsAPI {
11012
11028
  }
11013
11029
  }
11014
11030
 
11031
+ class AccountAddonsAPI {
11032
+ constructor(client) {
11033
+ this.client = client;
11034
+ /**
11035
+ * The `list` method retrieves a list of all available addons, also includes
11036
+ * if its avaiable for the current user
11037
+ */
11038
+ this.list = () => {
11039
+ return this.client.get("/v1/account/addons");
11040
+ };
11041
+ this.client = client;
11042
+ }
11043
+ }
11044
+
11015
11045
  class AddressesAPI {
11016
11046
  constructor(client) {
11017
11047
  this.client = client;
@@ -11092,6 +11122,20 @@ class AuctanePayAPI {
11092
11122
  payload
11093
11123
  );
11094
11124
  };
11125
+ /**
11126
+ * The `identityVerification` method returns a Plaid IDV verification URL for a given user
11127
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
11128
+ */
11129
+ this.identityVerification = () => {
11130
+ return this.client.post("/v1/payments/identity_verification");
11131
+ };
11132
+ /**
11133
+ * The `getPaymentAccount` method returns the Payment Account data for a given user
11134
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
11135
+ */
11136
+ this.getPaymentAccount = () => {
11137
+ return this.client.get("/v1/payments/account");
11138
+ };
11095
11139
  this.client = client;
11096
11140
  }
11097
11141
  }
@@ -13801,7 +13845,7 @@ var ipaddr = {
13801
13845
  }).call(commonjsGlobal);
13802
13846
  } (ipaddr));
13803
13847
 
13804
- var __async$14 = (__this, __arguments, generator) => {
13848
+ var __async$15 = (__this, __arguments, generator) => {
13805
13849
  return new Promise((resolve, reject) => {
13806
13850
  var fulfilled = (value) => {
13807
13851
  try {
@@ -13821,7 +13865,7 @@ var __async$14 = (__this, __arguments, generator) => {
13821
13865
  step((generator = generator.apply(__this, __arguments)).next());
13822
13866
  });
13823
13867
  };
13824
- const getEndUserIpAddress = () => __async$14(void 0, null, function* () {
13868
+ const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
13825
13869
  try {
13826
13870
  const response = yield axios.get("https://api.ipify.org/?format=json");
13827
13871
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13882,38 +13926,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13882
13926
  return obj;
13883
13927
  };
13884
13928
 
13885
- var __defProp$L = Object.defineProperty;
13886
- var __defProps$F = Object.defineProperties;
13887
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
13888
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
13889
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
13890
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
13891
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13892
- var __spreadValues$L = (a, b) => {
13929
+ var __defProp$O = Object.defineProperty;
13930
+ var __defProps$I = Object.defineProperties;
13931
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
13932
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
13933
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
13934
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
13935
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13936
+ var __spreadValues$O = (a, b) => {
13893
13937
  for (var prop in b || (b = {}))
13894
- if (__hasOwnProp$W.call(b, prop))
13895
- __defNormalProp$L(a, prop, b[prop]);
13896
- if (__getOwnPropSymbols$W)
13897
- for (var prop of __getOwnPropSymbols$W(b)) {
13898
- if (__propIsEnum$W.call(b, prop))
13899
- __defNormalProp$L(a, prop, b[prop]);
13938
+ if (__hasOwnProp$Z.call(b, prop))
13939
+ __defNormalProp$O(a, prop, b[prop]);
13940
+ if (__getOwnPropSymbols$Z)
13941
+ for (var prop of __getOwnPropSymbols$Z(b)) {
13942
+ if (__propIsEnum$Z.call(b, prop))
13943
+ __defNormalProp$O(a, prop, b[prop]);
13900
13944
  }
13901
13945
  return a;
13902
13946
  };
13903
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
13947
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
13904
13948
  var __objRest$v = (source, exclude) => {
13905
13949
  var target = {};
13906
13950
  for (var prop in source)
13907
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
13951
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
13908
13952
  target[prop] = source[prop];
13909
- if (source != null && __getOwnPropSymbols$W)
13910
- for (var prop of __getOwnPropSymbols$W(source)) {
13911
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
13953
+ if (source != null && __getOwnPropSymbols$Z)
13954
+ for (var prop of __getOwnPropSymbols$Z(source)) {
13955
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
13912
13956
  target[prop] = source[prop];
13913
13957
  }
13914
13958
  return target;
13915
13959
  };
13916
- var __async$13 = (__this, __arguments, generator) => {
13960
+ var __async$14 = (__this, __arguments, generator) => {
13917
13961
  return new Promise((resolve, reject) => {
13918
13962
  var fulfilled = (value) => {
13919
13963
  try {
@@ -13953,12 +13997,12 @@ class CarriersAPI {
13953
13997
  /**
13954
13998
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13955
13999
  */
13956
- this.connect = (_a) => __async$13(this, null, function* () {
14000
+ this.connect = (_a) => __async$14(this, null, function* () {
13957
14001
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
13958
14002
  const endUserIpAddress = yield getEndUserIpAddress();
13959
14003
  if (!endUserIpAddress)
13960
14004
  return Promise.reject([new CodedError("Unable to get IP address")]);
13961
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$F(__spreadValues$L({}, connection), {
14005
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
13962
14006
  endUserIpAddress
13963
14007
  }));
13964
14008
  });
@@ -14042,22 +14086,22 @@ class CarriersAPI {
14042
14086
  }
14043
14087
  }
14044
14088
 
14045
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
14046
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
14047
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
14089
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
14090
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
14091
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
14048
14092
  var __objRest$u = (source, exclude) => {
14049
14093
  var target = {};
14050
14094
  for (var prop in source)
14051
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
14095
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
14052
14096
  target[prop] = source[prop];
14053
- if (source != null && __getOwnPropSymbols$V)
14054
- for (var prop of __getOwnPropSymbols$V(source)) {
14055
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
14097
+ if (source != null && __getOwnPropSymbols$Y)
14098
+ for (var prop of __getOwnPropSymbols$Y(source)) {
14099
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
14056
14100
  target[prop] = source[prop];
14057
14101
  }
14058
14102
  return target;
14059
14103
  };
14060
- var __async$12 = (__this, __arguments, generator) => {
14104
+ var __async$13 = (__this, __arguments, generator) => {
14061
14105
  return new Promise((resolve, reject) => {
14062
14106
  var fulfilled = (value) => {
14063
14107
  try {
@@ -14099,7 +14143,7 @@ class ConnectionsAPI {
14099
14143
  /**
14100
14144
  * The `connectCarrier` method connects a carrier to account.
14101
14145
  */
14102
- this.connectCarrier = (carrierName, formData) => __async$12(this, null, function* () {
14146
+ this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
14103
14147
  return yield this.client.post(
14104
14148
  `/v1/connections/carriers/${carrierName}`,
14105
14149
  formData,
@@ -16267,23 +16311,23 @@ class CustomPackagesAPI {
16267
16311
  }
16268
16312
  }
16269
16313
 
16270
- var __defProp$K = Object.defineProperty;
16271
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16272
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16273
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16274
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16275
- var __spreadValues$K = (a, b) => {
16314
+ var __defProp$N = Object.defineProperty;
16315
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16316
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16317
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16318
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16319
+ var __spreadValues$N = (a, b) => {
16276
16320
  for (var prop in b || (b = {}))
16277
- if (__hasOwnProp$U.call(b, prop))
16278
- __defNormalProp$K(a, prop, b[prop]);
16279
- if (__getOwnPropSymbols$U)
16280
- for (var prop of __getOwnPropSymbols$U(b)) {
16281
- if (__propIsEnum$U.call(b, prop))
16282
- __defNormalProp$K(a, prop, b[prop]);
16321
+ if (__hasOwnProp$X.call(b, prop))
16322
+ __defNormalProp$N(a, prop, b[prop]);
16323
+ if (__getOwnPropSymbols$X)
16324
+ for (var prop of __getOwnPropSymbols$X(b)) {
16325
+ if (__propIsEnum$X.call(b, prop))
16326
+ __defNormalProp$N(a, prop, b[prop]);
16283
16327
  }
16284
16328
  return a;
16285
16329
  };
16286
- var __async$11 = (__this, __arguments, generator) => {
16330
+ var __async$12 = (__this, __arguments, generator) => {
16287
16331
  return new Promise((resolve, reject) => {
16288
16332
  var fulfilled = (value) => {
16289
16333
  try {
@@ -16322,12 +16366,12 @@ class FundingSourcesAPI {
16322
16366
  * The `create` method creates a new funding source for a given user. This requires
16323
16367
  * payment information to be collected from the user.
16324
16368
  */
16325
- this.create = (createFundingSource) => __async$11(this, null, function* () {
16369
+ this.create = (createFundingSource) => __async$12(this, null, function* () {
16326
16370
  const endUserIpAddress = yield getEndUserIpAddress();
16327
16371
  if (!endUserIpAddress) {
16328
16372
  return Promise.reject([new CodedError("Unable to get IP address")]);
16329
16373
  }
16330
- return yield this.client.post("/v1/funding_sources", __spreadValues$K({
16374
+ return yield this.client.post("/v1/funding_sources", __spreadValues$N({
16331
16375
  endUserIpAddress
16332
16376
  }, createFundingSource));
16333
16377
  });
@@ -16336,7 +16380,7 @@ class FundingSourcesAPI {
16336
16380
  * user to update the billing address or payment information associated with the
16337
16381
  * funding source.
16338
16382
  */
16339
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$11(this, null, function* () {
16383
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
16340
16384
  const endUserIpAddress = yield getEndUserIpAddress();
16341
16385
  if (!endUserIpAddress) {
16342
16386
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16346,7 +16390,7 @@ class FundingSourcesAPI {
16346
16390
  {
16347
16391
  billingInfo,
16348
16392
  endUserIpAddress,
16349
- paymentMethod: __spreadValues$K({
16393
+ paymentMethod: __spreadValues$N({
16350
16394
  creditCardInfo
16351
16395
  }, auctanePayInfo)
16352
16396
  }
@@ -16356,19 +16400,19 @@ class FundingSourcesAPI {
16356
16400
  * The `registerCarrier` method registers a carrier account and associates
16357
16401
  * it with a given funding source.
16358
16402
  */
16359
- this.registerCarrier = (carrier) => __async$11(this, null, function* () {
16403
+ this.registerCarrier = (carrier) => __async$12(this, null, function* () {
16360
16404
  const endUserIpAddress = yield getEndUserIpAddress();
16361
16405
  if (!endUserIpAddress) {
16362
16406
  return Promise.reject([new CodedError("Unable to get IP address")]);
16363
16407
  }
16364
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$K({
16408
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
16365
16409
  endUserIpAddress
16366
16410
  }, carrier));
16367
16411
  });
16368
16412
  /**
16369
16413
  * The `addFunds` method allows you to add funds to a funding source.
16370
16414
  */
16371
- this.addFunds = (amount, fundingSourceId) => __async$11(this, null, function* () {
16415
+ this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
16372
16416
  return yield this.client.put(
16373
16417
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16374
16418
  amount
@@ -16378,7 +16422,7 @@ class FundingSourcesAPI {
16378
16422
  * The `metadata` method returns seller-specific requirements for creating funding sources
16379
16423
  * and attaching carriers
16380
16424
  */
16381
- this.metadata = () => __async$11(this, null, function* () {
16425
+ this.metadata = () => __async$12(this, null, function* () {
16382
16426
  return yield this.client.get("/v1/funding_sources/metadata");
16383
16427
  });
16384
16428
  /**
@@ -16430,7 +16474,7 @@ class InsuranceAPI {
16430
16474
  }
16431
16475
  }
16432
16476
 
16433
- var __async$10 = (__this, __arguments, generator) => {
16477
+ var __async$11 = (__this, __arguments, generator) => {
16434
16478
  return new Promise((resolve, reject) => {
16435
16479
  var fulfilled = (value) => {
16436
16480
  try {
@@ -16462,13 +16506,13 @@ class InvoiceAddressAPI {
16462
16506
  /**
16463
16507
  * The `create` method creates a new invoice address for a given user.
16464
16508
  */
16465
- this.create = (invoiceAddress) => __async$10(this, null, function* () {
16509
+ this.create = (invoiceAddress) => __async$11(this, null, function* () {
16466
16510
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16467
16511
  });
16468
16512
  /**
16469
16513
  * The `update` method updates a invoice address for a given user.
16470
16514
  */
16471
- this.update = (invoiceAddress) => __async$10(this, null, function* () {
16515
+ this.update = (invoiceAddress) => __async$11(this, null, function* () {
16472
16516
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16473
16517
  });
16474
16518
  this.client = client;
@@ -16530,17 +16574,17 @@ class LabelsAPI {
16530
16574
  }
16531
16575
  }
16532
16576
 
16533
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
16534
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
16535
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
16577
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16578
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16579
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16536
16580
  var __objRest$t = (source, exclude) => {
16537
16581
  var target = {};
16538
16582
  for (var prop in source)
16539
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
16583
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
16540
16584
  target[prop] = source[prop];
16541
- if (source != null && __getOwnPropSymbols$T)
16542
- for (var prop of __getOwnPropSymbols$T(source)) {
16543
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
16585
+ if (source != null && __getOwnPropSymbols$W)
16586
+ for (var prop of __getOwnPropSymbols$W(source)) {
16587
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
16544
16588
  target[prop] = source[prop];
16545
16589
  }
16546
16590
  return target;
@@ -16661,19 +16705,19 @@ class RateCardsAPI {
16661
16705
  }
16662
16706
  }
16663
16707
 
16664
- var __defProp$J = Object.defineProperty;
16665
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16666
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16667
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16668
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16669
- var __spreadValues$J = (a, b) => {
16708
+ var __defProp$M = Object.defineProperty;
16709
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16710
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16711
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16712
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16713
+ var __spreadValues$M = (a, b) => {
16670
16714
  for (var prop in b || (b = {}))
16671
- if (__hasOwnProp$S.call(b, prop))
16672
- __defNormalProp$J(a, prop, b[prop]);
16673
- if (__getOwnPropSymbols$S)
16674
- for (var prop of __getOwnPropSymbols$S(b)) {
16675
- if (__propIsEnum$S.call(b, prop))
16676
- __defNormalProp$J(a, prop, b[prop]);
16715
+ if (__hasOwnProp$V.call(b, prop))
16716
+ __defNormalProp$M(a, prop, b[prop]);
16717
+ if (__getOwnPropSymbols$V)
16718
+ for (var prop of __getOwnPropSymbols$V(b)) {
16719
+ if (__propIsEnum$V.call(b, prop))
16720
+ __defNormalProp$M(a, prop, b[prop]);
16677
16721
  }
16678
16722
  return a;
16679
16723
  };
@@ -16695,7 +16739,7 @@ class RatesAPI {
16695
16739
  * method.
16696
16740
  */
16697
16741
  this.estimate = (params) => {
16698
- return this.client.post("/v1/rates/estimate", __spreadValues$J({}, params));
16742
+ return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
16699
16743
  };
16700
16744
  this.client = client;
16701
16745
  }
@@ -16775,7 +16819,7 @@ class SalesOrdersAPI {
16775
16819
  }
16776
16820
  }
16777
16821
 
16778
- var __async$$ = (__this, __arguments, generator) => {
16822
+ var __async$10 = (__this, __arguments, generator) => {
16779
16823
  return new Promise((resolve, reject) => {
16780
16824
  var fulfilled = (value) => {
16781
16825
  try {
@@ -16833,7 +16877,7 @@ class SellersAPI {
16833
16877
  /**
16834
16878
  * Deletes an API Key
16835
16879
  */
16836
- this.deleteSellerApiKey = (_0) => __async$$(this, [_0], function* ({
16880
+ this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
16837
16881
  encryptedApiKey,
16838
16882
  sellerId,
16839
16883
  isSandbox
@@ -16879,19 +16923,19 @@ class SellersAPI {
16879
16923
  }
16880
16924
  }
16881
16925
 
16882
- var __defProp$I = Object.defineProperty;
16883
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16884
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16885
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16886
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16887
- var __spreadValues$I = (a, b) => {
16926
+ var __defProp$L = Object.defineProperty;
16927
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16928
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16929
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16930
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16931
+ var __spreadValues$L = (a, b) => {
16888
16932
  for (var prop in b || (b = {}))
16889
- if (__hasOwnProp$R.call(b, prop))
16890
- __defNormalProp$I(a, prop, b[prop]);
16891
- if (__getOwnPropSymbols$R)
16892
- for (var prop of __getOwnPropSymbols$R(b)) {
16893
- if (__propIsEnum$R.call(b, prop))
16894
- __defNormalProp$I(a, prop, b[prop]);
16933
+ if (__hasOwnProp$U.call(b, prop))
16934
+ __defNormalProp$L(a, prop, b[prop]);
16935
+ if (__getOwnPropSymbols$U)
16936
+ for (var prop of __getOwnPropSymbols$U(b)) {
16937
+ if (__propIsEnum$U.call(b, prop))
16938
+ __defNormalProp$L(a, prop, b[prop]);
16895
16939
  }
16896
16940
  return a;
16897
16941
  };
@@ -16903,7 +16947,7 @@ class ServicePointsAPI {
16903
16947
  * Either an address, coordinates, or an address query
16904
16948
  */
16905
16949
  this.list = (options) => {
16906
- return this.client.post("/v1/service_points/list", __spreadValues$I({}, options));
16950
+ return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
16907
16951
  };
16908
16952
  /**
16909
16953
  * Get a specific service point by its carrier code, country code, and id
@@ -16921,7 +16965,7 @@ class ServicePointsAPI {
16921
16965
  }
16922
16966
  }
16923
16967
 
16924
- var __async$_ = (__this, __arguments, generator) => {
16968
+ var __async$$ = (__this, __arguments, generator) => {
16925
16969
  return new Promise((resolve, reject) => {
16926
16970
  var fulfilled = (value) => {
16927
16971
  try {
@@ -16970,7 +17014,7 @@ class ShipmentsAPI {
16970
17014
  * The `create` method allows for creating shipments based on a list of shipment
16971
17015
  * items passed into this method.
16972
17016
  */
16973
- this.create = (...shipments) => __async$_(this, null, function* () {
17017
+ this.create = (...shipments) => __async$$(this, null, function* () {
16974
17018
  return this.client.post("/v1/shipments", {
16975
17019
  shipments
16976
17020
  });
@@ -34387,38 +34431,38 @@ class WebhooksAPI {
34387
34431
  }
34388
34432
  }
34389
34433
 
34390
- var __defProp$H = Object.defineProperty;
34391
- var __defProps$E = Object.defineProperties;
34392
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
34393
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
34394
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
34395
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
34396
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34397
- var __spreadValues$H = (a, b) => {
34434
+ var __defProp$K = Object.defineProperty;
34435
+ var __defProps$H = Object.defineProperties;
34436
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34437
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34438
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34439
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34440
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34441
+ var __spreadValues$K = (a, b) => {
34398
34442
  for (var prop in b || (b = {}))
34399
- if (__hasOwnProp$Q.call(b, prop))
34400
- __defNormalProp$H(a, prop, b[prop]);
34401
- if (__getOwnPropSymbols$Q)
34402
- for (var prop of __getOwnPropSymbols$Q(b)) {
34403
- if (__propIsEnum$Q.call(b, prop))
34404
- __defNormalProp$H(a, prop, b[prop]);
34443
+ if (__hasOwnProp$T.call(b, prop))
34444
+ __defNormalProp$K(a, prop, b[prop]);
34445
+ if (__getOwnPropSymbols$T)
34446
+ for (var prop of __getOwnPropSymbols$T(b)) {
34447
+ if (__propIsEnum$T.call(b, prop))
34448
+ __defNormalProp$K(a, prop, b[prop]);
34405
34449
  }
34406
34450
  return a;
34407
34451
  };
34408
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
34452
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34409
34453
  var __objRest$s = (source, exclude) => {
34410
34454
  var target = {};
34411
34455
  for (var prop in source)
34412
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
34456
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
34413
34457
  target[prop] = source[prop];
34414
- if (source != null && __getOwnPropSymbols$Q)
34415
- for (var prop of __getOwnPropSymbols$Q(source)) {
34416
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
34458
+ if (source != null && __getOwnPropSymbols$T)
34459
+ for (var prop of __getOwnPropSymbols$T(source)) {
34460
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
34417
34461
  target[prop] = source[prop];
34418
34462
  }
34419
34463
  return target;
34420
34464
  };
34421
- var __async$Z = (__this, __arguments, generator) => {
34465
+ var __async$_ = (__this, __arguments, generator) => {
34422
34466
  return new Promise((resolve, reject) => {
34423
34467
  var fulfilled = (value) => {
34424
34468
  try {
@@ -34441,7 +34485,7 @@ var __async$Z = (__this, __arguments, generator) => {
34441
34485
  const logger$1 = E({
34442
34486
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34443
34487
  name: "shipengine-api",
34444
- serializers: __spreadProps$E(__spreadValues$H({}, k), {
34488
+ serializers: __spreadProps$H(__spreadValues$K({}, k), {
34445
34489
  req: (req) => ({
34446
34490
  headers: req.headers,
34447
34491
  method: req.method,
@@ -34466,7 +34510,7 @@ class ShipEngineAPI {
34466
34510
  this.getSandboxToken = getSandboxToken;
34467
34511
  const client = axios.create({
34468
34512
  baseURL,
34469
- headers: __spreadProps$E(__spreadValues$H({}, headers), {
34513
+ headers: __spreadProps$H(__spreadValues$K({}, headers), {
34470
34514
  "Content-Type": "application/json"
34471
34515
  }),
34472
34516
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34506,7 +34550,7 @@ class ShipEngineAPI {
34506
34550
  });
34507
34551
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34508
34552
  client.interceptors.request.use(
34509
- (config) => __async$Z(this, null, function* () {
34553
+ (config) => __async$_(this, null, function* () {
34510
34554
  if (config.isSandbox) {
34511
34555
  if (!this.sandboxToken) {
34512
34556
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34533,7 +34577,7 @@ class ShipEngineAPI {
34533
34577
  );
34534
34578
  return res;
34535
34579
  },
34536
- (err) => __async$Z(this, null, function* () {
34580
+ (err) => __async$_(this, null, function* () {
34537
34581
  var _a, _b, _c, _d, _e;
34538
34582
  logger$1.error(
34539
34583
  { err, req: err.config, res: err.response },
@@ -34580,7 +34624,7 @@ class ShipEngineAPI {
34580
34624
  * that token (also known as Seller ID)
34581
34625
  */
34582
34626
  getTenant(isSandbox) {
34583
- return __async$Z(this, null, function* () {
34627
+ return __async$_(this, null, function* () {
34584
34628
  var _a;
34585
34629
  if (!isSandbox) {
34586
34630
  return this.getTenantFromToken(this.token);
@@ -34617,6 +34661,13 @@ class ShipEngineAPI {
34617
34661
  get accountBillingPlan() {
34618
34662
  return new AccountBillingPlanAPI(this.client);
34619
34663
  }
34664
+ /**
34665
+ * The `accountAddons` method provides access to the Account Addons endpoints
34666
+ * in ShipEngine API.
34667
+ */
34668
+ get accountAddons() {
34669
+ return new AccountAddonsAPI(this.client);
34670
+ }
34620
34671
  /**
34621
34672
  * The `accountBilling` method provides access to the Account Billing (Recurly) endpoints
34622
34673
  * in ShipEngine API.
@@ -34883,25 +34934,25 @@ const delay = (ms) => new Promise((resolve) => {
34883
34934
 
34884
34935
  const onError = (_errors) => _default();
34885
34936
 
34886
- var __defProp$G = Object.defineProperty;
34887
- var __defProps$D = Object.defineProperties;
34888
- var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
34889
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
34890
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
34891
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
34892
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34893
- var __spreadValues$G = (a, b) => {
34937
+ var __defProp$J = Object.defineProperty;
34938
+ var __defProps$G = Object.defineProperties;
34939
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
34940
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
34941
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
34942
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
34943
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34944
+ var __spreadValues$J = (a, b) => {
34894
34945
  for (var prop in b || (b = {}))
34895
- if (__hasOwnProp$P.call(b, prop))
34896
- __defNormalProp$G(a, prop, b[prop]);
34897
- if (__getOwnPropSymbols$P)
34898
- for (var prop of __getOwnPropSymbols$P(b)) {
34899
- if (__propIsEnum$P.call(b, prop))
34900
- __defNormalProp$G(a, prop, b[prop]);
34946
+ if (__hasOwnProp$S.call(b, prop))
34947
+ __defNormalProp$J(a, prop, b[prop]);
34948
+ if (__getOwnPropSymbols$S)
34949
+ for (var prop of __getOwnPropSymbols$S(b)) {
34950
+ if (__propIsEnum$S.call(b, prop))
34951
+ __defNormalProp$J(a, prop, b[prop]);
34901
34952
  }
34902
34953
  return a;
34903
34954
  };
34904
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
34955
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
34905
34956
  const streams = [];
34906
34957
  if (process.env.NODE_ENV === "production") {
34907
34958
  streams.push({
@@ -34910,7 +34961,7 @@ if (process.env.NODE_ENV === "production") {
34910
34961
  }
34911
34962
  const logger = E({
34912
34963
  name: "shipengine",
34913
- serializers: __spreadProps$D(__spreadValues$G({}, k), {
34964
+ serializers: __spreadProps$G(__spreadValues$J({}, k), {
34914
34965
  req: (req) => ({
34915
34966
  headers: req.headers,
34916
34967
  method: req.method,
@@ -34935,7 +34986,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34935
34986
  throw error;
34936
34987
  });
34937
34988
 
34938
- var __async$Y = (__this, __arguments, generator) => {
34989
+ var __async$Z = (__this, __arguments, generator) => {
34939
34990
  return new Promise((resolve, reject) => {
34940
34991
  var fulfilled = (value) => {
34941
34992
  try {
@@ -34958,7 +35009,7 @@ var __async$Y = (__this, __arguments, generator) => {
34958
35009
  const useCreateAccountImage = () => {
34959
35010
  const { client } = useShipEngine();
34960
35011
  return reactQuery.useMutation({
34961
- mutationFn: (data) => __async$Y(void 0, null, function* () {
35012
+ mutationFn: (data) => __async$Z(void 0, null, function* () {
34962
35013
  const result = yield client.accountSettings.createImage(data);
34963
35014
  return result.data;
34964
35015
  }),
@@ -34967,7 +35018,7 @@ const useCreateAccountImage = () => {
34967
35018
  });
34968
35019
  };
34969
35020
 
34970
- var __async$X = (__this, __arguments, generator) => {
35021
+ var __async$Y = (__this, __arguments, generator) => {
34971
35022
  return new Promise((resolve, reject) => {
34972
35023
  var fulfilled = (value) => {
34973
35024
  try {
@@ -34990,7 +35041,7 @@ var __async$X = (__this, __arguments, generator) => {
34990
35041
  const useDeleteAccountImage = () => {
34991
35042
  const { client } = useShipEngine();
34992
35043
  return reactQuery.useMutation({
34993
- mutationFn: (labelImageId) => __async$X(void 0, null, function* () {
35044
+ mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
34994
35045
  const result = yield client.accountSettings.deleteImage(labelImageId);
34995
35046
  return result.data;
34996
35047
  }),
@@ -35019,7 +35070,7 @@ const useGetAccountSettings = () => {
35019
35070
  });
35020
35071
  };
35021
35072
 
35022
- var __async$W = (__this, __arguments, generator) => {
35073
+ var __async$X = (__this, __arguments, generator) => {
35023
35074
  return new Promise((resolve, reject) => {
35024
35075
  var fulfilled = (value) => {
35025
35076
  try {
@@ -35042,7 +35093,7 @@ var __async$W = (__this, __arguments, generator) => {
35042
35093
  const useUpdateAccountImage = () => {
35043
35094
  const { client } = useShipEngine();
35044
35095
  return reactQuery.useMutation({
35045
- mutationFn: (data) => __async$W(void 0, null, function* () {
35096
+ mutationFn: (data) => __async$X(void 0, null, function* () {
35046
35097
  const result = yield client.accountSettings.updateImage(data);
35047
35098
  return result.data;
35048
35099
  }),
@@ -35051,7 +35102,7 @@ const useUpdateAccountImage = () => {
35051
35102
  });
35052
35103
  };
35053
35104
 
35054
- var __async$V = (__this, __arguments, generator) => {
35105
+ var __async$W = (__this, __arguments, generator) => {
35055
35106
  return new Promise((resolve, reject) => {
35056
35107
  var fulfilled = (value) => {
35057
35108
  try {
@@ -35074,7 +35125,7 @@ var __async$V = (__this, __arguments, generator) => {
35074
35125
  const useUpdateAccountSettings = () => {
35075
35126
  const { client } = useShipEngine();
35076
35127
  return reactQuery.useMutation({
35077
- mutationFn: (settings) => __async$V(void 0, null, function* () {
35128
+ mutationFn: (settings) => __async$W(void 0, null, function* () {
35078
35129
  const result = yield client.accountSettings.update(settings);
35079
35130
  return result.data;
35080
35131
  }),
@@ -35083,7 +35134,36 @@ const useUpdateAccountSettings = () => {
35083
35134
  });
35084
35135
  };
35085
35136
 
35086
- var __async$U = (__this, __arguments, generator) => {
35137
+ var __defProp$I = Object.defineProperty;
35138
+ var __defProps$F = Object.defineProperties;
35139
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35140
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35141
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35142
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35143
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35144
+ var __spreadValues$I = (a, b) => {
35145
+ for (var prop in b || (b = {}))
35146
+ if (__hasOwnProp$R.call(b, prop))
35147
+ __defNormalProp$I(a, prop, b[prop]);
35148
+ if (__getOwnPropSymbols$R)
35149
+ for (var prop of __getOwnPropSymbols$R(b)) {
35150
+ if (__propIsEnum$R.call(b, prop))
35151
+ __defNormalProp$I(a, prop, b[prop]);
35152
+ }
35153
+ return a;
35154
+ };
35155
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35156
+ const useListAccountAddons = (params) => {
35157
+ const { client } = useShipEngine();
35158
+ return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35159
+ onError,
35160
+ queryFn: () => client.accountAddons.list(),
35161
+ queryKey: ["useListAccountAddons"],
35162
+ select: (result) => result.data
35163
+ }));
35164
+ };
35165
+
35166
+ var __async$V = (__this, __arguments, generator) => {
35087
35167
  return new Promise((resolve, reject) => {
35088
35168
  var fulfilled = (value) => {
35089
35169
  try {
@@ -35106,7 +35186,7 @@ var __async$U = (__this, __arguments, generator) => {
35106
35186
  const useParseAddress = () => {
35107
35187
  const { client } = useShipEngine();
35108
35188
  return reactQuery.useMutation({
35109
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ address, text }) {
35189
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
35110
35190
  const result = yield client.addresses.parse(text, address);
35111
35191
  return result.data;
35112
35192
  }),
@@ -35115,7 +35195,7 @@ const useParseAddress = () => {
35115
35195
  });
35116
35196
  };
35117
35197
 
35118
- var __async$T = (__this, __arguments, generator) => {
35198
+ var __async$U = (__this, __arguments, generator) => {
35119
35199
  return new Promise((resolve, reject) => {
35120
35200
  var fulfilled = (value) => {
35121
35201
  try {
@@ -35138,7 +35218,7 @@ var __async$T = (__this, __arguments, generator) => {
35138
35218
  const useValidateAddresses = () => {
35139
35219
  const { client } = useShipEngine();
35140
35220
  return reactQuery.useMutation({
35141
- mutationFn: (addresses) => __async$T(void 0, null, function* () {
35221
+ mutationFn: (addresses) => __async$U(void 0, null, function* () {
35142
35222
  const result = yield client.addresses.validate(addresses);
35143
35223
  return result.data;
35144
35224
  }),
@@ -35147,6 +35227,87 @@ const useValidateAddresses = () => {
35147
35227
  });
35148
35228
  };
35149
35229
 
35230
+ var __defProp$H = Object.defineProperty;
35231
+ var __defProps$E = Object.defineProperties;
35232
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35233
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35234
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35235
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35236
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35237
+ var __spreadValues$H = (a, b) => {
35238
+ for (var prop in b || (b = {}))
35239
+ if (__hasOwnProp$Q.call(b, prop))
35240
+ __defNormalProp$H(a, prop, b[prop]);
35241
+ if (__getOwnPropSymbols$Q)
35242
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35243
+ if (__propIsEnum$Q.call(b, prop))
35244
+ __defNormalProp$H(a, prop, b[prop]);
35245
+ }
35246
+ return a;
35247
+ };
35248
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35249
+ var __async$T = (__this, __arguments, generator) => {
35250
+ return new Promise((resolve, reject) => {
35251
+ var fulfilled = (value) => {
35252
+ try {
35253
+ step(generator.next(value));
35254
+ } catch (e) {
35255
+ reject(e);
35256
+ }
35257
+ };
35258
+ var rejected = (value) => {
35259
+ try {
35260
+ step(generator.throw(value));
35261
+ } catch (e) {
35262
+ reject(e);
35263
+ }
35264
+ };
35265
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35266
+ step((generator = generator.apply(__this, __arguments)).next());
35267
+ });
35268
+ };
35269
+ const useCreateAuctanePaySession = (params) => {
35270
+ const { client } = useShipEngine();
35271
+ return reactQuery.useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35272
+ mutationFn: (request) => __async$T(void 0, null, function* () {
35273
+ const result = yield client.auctanePay.createSession(request);
35274
+ return result.data;
35275
+ }),
35276
+ mutationKey: ["useCreateAuctanePaySession"],
35277
+ onError
35278
+ }));
35279
+ };
35280
+
35281
+ var __defProp$G = Object.defineProperty;
35282
+ var __defProps$D = Object.defineProperties;
35283
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
35284
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
35285
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
35286
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
35287
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35288
+ var __spreadValues$G = (a, b) => {
35289
+ for (var prop in b || (b = {}))
35290
+ if (__hasOwnProp$P.call(b, prop))
35291
+ __defNormalProp$G(a, prop, b[prop]);
35292
+ if (__getOwnPropSymbols$P)
35293
+ for (var prop of __getOwnPropSymbols$P(b)) {
35294
+ if (__propIsEnum$P.call(b, prop))
35295
+ __defNormalProp$G(a, prop, b[prop]);
35296
+ }
35297
+ return a;
35298
+ };
35299
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35300
+ const useGetAuctanePayConfig = (params) => {
35301
+ const { client } = useShipEngine();
35302
+ const queryParams = __spreadValues$G({}, params);
35303
+ return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35304
+ onError,
35305
+ queryFn: () => client.auctanePay.getConfig(),
35306
+ queryKey: ["useGetAuctanePayConfig"],
35307
+ select: (result) => result.data
35308
+ }));
35309
+ };
35310
+
35150
35311
  var __defProp$F = Object.defineProperty;
35151
35312
  var __defProps$C = Object.defineProperties;
35152
35313
  var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
@@ -35186,14 +35347,18 @@ var __async$S = (__this, __arguments, generator) => {
35186
35347
  step((generator = generator.apply(__this, __arguments)).next());
35187
35348
  });
35188
35349
  };
35189
- const useCreateAuctanePaySession = (params) => {
35350
+ const usePreviewTransaction = (params) => {
35190
35351
  const { client } = useShipEngine();
35191
35352
  return reactQuery.useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35192
- mutationFn: (request) => __async$S(void 0, null, function* () {
35193
- const result = yield client.auctanePay.createSession(request);
35353
+ mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35354
+ const request = {
35355
+ amount,
35356
+ transactionCategory
35357
+ };
35358
+ const result = yield client.auctanePay.previewTransaction(request);
35194
35359
  return result.data;
35195
35360
  }),
35196
- mutationKey: ["useCreateAuctanePaySession"],
35361
+ mutationKey: ["usePreviewTransaction"],
35197
35362
  onError
35198
35363
  }));
35199
35364
  };
@@ -35217,13 +35382,13 @@ var __spreadValues$E = (a, b) => {
35217
35382
  return a;
35218
35383
  };
35219
35384
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35220
- const useGetAuctanePayConfig = (params) => {
35385
+ const useGetPaymentMethods = (params) => {
35221
35386
  const { client } = useShipEngine();
35222
35387
  const queryParams = __spreadValues$E({}, params);
35223
35388
  return reactQuery.useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
35224
35389
  onError,
35225
- queryFn: () => client.auctanePay.getConfig(),
35226
- queryKey: ["useGetAuctanePayConfig"],
35390
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35391
+ queryKey: ["useGetPaymentMethods"],
35227
35392
  select: (result) => result.data
35228
35393
  }));
35229
35394
  };
@@ -35267,18 +35432,14 @@ var __async$R = (__this, __arguments, generator) => {
35267
35432
  step((generator = generator.apply(__this, __arguments)).next());
35268
35433
  });
35269
35434
  };
35270
- const usePreviewTransaction = (params) => {
35435
+ const useDeletePaymentMethod = (params) => {
35271
35436
  const { client } = useShipEngine();
35272
35437
  return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35273
- mutationFn: (_0) => __async$R(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35274
- const request = {
35275
- amount,
35276
- transactionCategory
35277
- };
35278
- const result = yield client.auctanePay.previewTransaction(request);
35438
+ mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
35439
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35279
35440
  return result.data;
35280
35441
  }),
35281
- mutationKey: ["usePreviewTransaction"],
35442
+ mutationKey: ["useDeletePaymentMethod"],
35282
35443
  onError
35283
35444
  }));
35284
35445
  };
@@ -35302,14 +35463,35 @@ var __spreadValues$C = (a, b) => {
35302
35463
  return a;
35303
35464
  };
35304
35465
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35305
- const useGetPaymentMethods = (params) => {
35466
+ var __async$Q = (__this, __arguments, generator) => {
35467
+ return new Promise((resolve, reject) => {
35468
+ var fulfilled = (value) => {
35469
+ try {
35470
+ step(generator.next(value));
35471
+ } catch (e) {
35472
+ reject(e);
35473
+ }
35474
+ };
35475
+ var rejected = (value) => {
35476
+ try {
35477
+ step(generator.throw(value));
35478
+ } catch (e) {
35479
+ reject(e);
35480
+ }
35481
+ };
35482
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35483
+ step((generator = generator.apply(__this, __arguments)).next());
35484
+ });
35485
+ };
35486
+ const useUpdatePaymentMethod = (params) => {
35306
35487
  const { client } = useShipEngine();
35307
- const queryParams = __spreadValues$C({}, params);
35308
- return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35309
- onError,
35310
- queryFn: () => client.auctanePay.getPaymentMethods(),
35311
- queryKey: ["useGetPaymentMethods"],
35312
- select: (result) => result.data
35488
+ return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35489
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
35490
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35491
+ return result.data;
35492
+ }),
35493
+ mutationKey: ["useUpdatePaymentMethod"],
35494
+ onError
35313
35495
  }));
35314
35496
  };
35315
35497
 
@@ -35332,7 +35514,7 @@ var __spreadValues$B = (a, b) => {
35332
35514
  return a;
35333
35515
  };
35334
35516
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35335
- var __async$Q = (__this, __arguments, generator) => {
35517
+ var __async$P = (__this, __arguments, generator) => {
35336
35518
  return new Promise((resolve, reject) => {
35337
35519
  var fulfilled = (value) => {
35338
35520
  try {
@@ -35352,14 +35534,14 @@ var __async$Q = (__this, __arguments, generator) => {
35352
35534
  step((generator = generator.apply(__this, __arguments)).next());
35353
35535
  });
35354
35536
  };
35355
- const useDeletePaymentMethod = (params) => {
35537
+ const useIdentityVerification = (params) => {
35356
35538
  const { client } = useShipEngine();
35357
35539
  return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35358
- mutationFn: (paymentMethodId) => __async$Q(void 0, null, function* () {
35359
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35540
+ mutationFn: () => __async$P(void 0, null, function* () {
35541
+ const result = yield client.auctanePay.identityVerification();
35360
35542
  return result.data;
35361
35543
  }),
35362
- mutationKey: ["useDeletePaymentMethod"],
35544
+ mutationKey: ["useIdentityVerification"],
35363
35545
  onError
35364
35546
  }));
35365
35547
  };
@@ -35383,35 +35565,14 @@ var __spreadValues$A = (a, b) => {
35383
35565
  return a;
35384
35566
  };
35385
35567
  var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35386
- var __async$P = (__this, __arguments, generator) => {
35387
- return new Promise((resolve, reject) => {
35388
- var fulfilled = (value) => {
35389
- try {
35390
- step(generator.next(value));
35391
- } catch (e) {
35392
- reject(e);
35393
- }
35394
- };
35395
- var rejected = (value) => {
35396
- try {
35397
- step(generator.throw(value));
35398
- } catch (e) {
35399
- reject(e);
35400
- }
35401
- };
35402
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35403
- step((generator = generator.apply(__this, __arguments)).next());
35404
- });
35405
- };
35406
- const useUpdatePaymentMethod = (params) => {
35568
+ const useGetPaymentAccount = (params) => {
35407
35569
  const { client } = useShipEngine();
35408
- return reactQuery.useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35409
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ paymentMethodId, payload }) {
35410
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35411
- return result.data;
35412
- }),
35413
- mutationKey: ["useUpdatePaymentMethod"],
35414
- onError
35570
+ const queryParams = __spreadValues$A({}, params);
35571
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35572
+ onError,
35573
+ queryFn: () => client.auctanePay.getPaymentAccount(),
35574
+ queryKey: ["useGetPaymentAccount"],
35575
+ select: (result) => result.data
35415
35576
  }));
35416
35577
  };
35417
35578
 
@@ -39930,6 +40091,7 @@ const alchemy = {
39930
40091
  createElement
39931
40092
  };
39932
40093
 
40094
+ exports.AccountAddonsAPI = AccountAddonsAPI;
39933
40095
  exports.AccountBillingAPI = AccountBillingAPI;
39934
40096
  exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
39935
40097
  exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
@@ -40050,6 +40212,7 @@ exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSource
40050
40212
  exports.useGetInvoiceAddress = useGetInvoiceAddress;
40051
40213
  exports.useGetLabel = useGetLabel;
40052
40214
  exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
40215
+ exports.useGetPaymentAccount = useGetPaymentAccount;
40053
40216
  exports.useGetPaymentMethods = useGetPaymentMethods;
40054
40217
  exports.useGetRateCardById = useGetRateCardById;
40055
40218
  exports.useGetSalesOrder = useGetSalesOrder;
@@ -40065,6 +40228,8 @@ exports.useGetShippingRuleConditionsOptions = useGetShippingRuleConditionsOption
40065
40228
  exports.useGetThemeById = useGetThemeById;
40066
40229
  exports.useGetZonesByCarrier = useGetZonesByCarrier;
40067
40230
  exports.useI18n = useI18n;
40231
+ exports.useIdentityVerification = useIdentityVerification;
40232
+ exports.useListAccountAddons = useListAccountAddons;
40068
40233
  exports.useListCarrierConnections = useListCarrierConnections;
40069
40234
  exports.useListCarriers = useListCarriers;
40070
40235
  exports.useListCustomPackageTypes = useListCustomPackageTypes;