@shipengine/alchemy 6.0.79 → 6.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +786 -485
  2. package/index.mjs +780 -486
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4905,33 +4905,41 @@ var _getHolder = getHolder$2;
4905
4905
 
4906
4906
  /** Used as references for various `Number` constants. */
4907
4907
 
4908
- var MAX_SAFE_INTEGER$1 = 9007199254740991;
4908
+ var _isIndex;
4909
+ var hasRequired_isIndex;
4909
4910
 
4910
- /** Used to detect unsigned integer values. */
4911
- var reIsUint = /^(?:0|[1-9]\d*)$/;
4911
+ function require_isIndex () {
4912
+ if (hasRequired_isIndex) return _isIndex;
4913
+ hasRequired_isIndex = 1;
4914
+ var MAX_SAFE_INTEGER = 9007199254740991;
4912
4915
 
4913
- /**
4914
- * Checks if `value` is a valid array-like index.
4915
- *
4916
- * @private
4917
- * @param {*} value The value to check.
4918
- * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4919
- * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4920
- */
4921
- function isIndex$3(value, length) {
4922
- var type = typeof value;
4923
- length = length == null ? MAX_SAFE_INTEGER$1 : length;
4916
+ /** Used to detect unsigned integer values. */
4917
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
4924
4918
 
4925
- return !!length &&
4926
- (type == 'number' ||
4927
- (type != 'symbol' && reIsUint.test(value))) &&
4928
- (value > -1 && value % 1 == 0 && value < length);
4929
- }
4919
+ /**
4920
+ * Checks if `value` is a valid array-like index.
4921
+ *
4922
+ * @private
4923
+ * @param {*} value The value to check.
4924
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
4925
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
4926
+ */
4927
+ function isIndex(value, length) {
4928
+ var type = typeof value;
4929
+ length = length == null ? MAX_SAFE_INTEGER : length;
4930
4930
 
4931
- var _isIndex = isIndex$3;
4931
+ return !!length &&
4932
+ (type == 'number' ||
4933
+ (type != 'symbol' && reIsUint.test(value))) &&
4934
+ (value > -1 && value % 1 == 0 && value < length);
4935
+ }
4936
+
4937
+ _isIndex = isIndex;
4938
+ return _isIndex;
4939
+ }
4932
4940
 
4933
4941
  var copyArray$2 = _copyArray,
4934
- isIndex$2 = _isIndex;
4942
+ isIndex$2 = require_isIndex();
4935
4943
 
4936
4944
  /* Built-in method references for those with the same name as other `lodash` methods. */
4937
4945
  var nativeMin$1 = Math.min;
@@ -6124,7 +6132,7 @@ var baseTimes = _baseTimes,
6124
6132
  isArguments$2 = requireIsArguments(),
6125
6133
  isArray$f = isArray_1,
6126
6134
  isBuffer$4 = isBufferExports,
6127
- isIndex$1 = _isIndex,
6135
+ isIndex$1 = require_isIndex(),
6128
6136
  isTypedArray$1 = requireIsTypedArray();
6129
6137
 
6130
6138
  /** Used for built-in method references. */
@@ -9455,7 +9463,7 @@ var _baseHasIn = baseHasIn$1;
9455
9463
  var castPath = _castPath,
9456
9464
  isArguments$1 = requireIsArguments(),
9457
9465
  isArray$8 = isArray_1,
9458
- isIndex = _isIndex,
9466
+ isIndex = require_isIndex(),
9459
9467
  isLength = isLength_1,
9460
9468
  toKey$3 = _toKey;
9461
9469
 
@@ -10345,7 +10353,7 @@ function require_isIterateeCall () {
10345
10353
  hasRequired_isIterateeCall = 1;
10346
10354
  var eq = requireEq(),
10347
10355
  isArrayLike = isArrayLike_1,
10348
- isIndex = _isIndex,
10356
+ isIndex = require_isIndex(),
10349
10357
  isObject = isObject_1;
10350
10358
 
10351
10359
  /**
@@ -10827,17 +10835,17 @@ var FeatureId = /* @__PURE__ */ ((FeatureId2) => {
10827
10835
  return FeatureId2;
10828
10836
  })(FeatureId || {});
10829
10837
 
10830
- var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
10831
- var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
10832
- var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
10838
+ var __getOwnPropSymbols$16 = Object.getOwnPropertySymbols;
10839
+ var __hasOwnProp$16 = Object.prototype.hasOwnProperty;
10840
+ var __propIsEnum$16 = Object.prototype.propertyIsEnumerable;
10833
10841
  var __objRest$x = (source, exclude) => {
10834
10842
  var target = {};
10835
10843
  for (var prop in source)
10836
- if (__hasOwnProp$12.call(source, prop) && exclude.indexOf(prop) < 0)
10844
+ if (__hasOwnProp$16.call(source, prop) && exclude.indexOf(prop) < 0)
10837
10845
  target[prop] = source[prop];
10838
- if (source != null && __getOwnPropSymbols$12)
10839
- for (var prop of __getOwnPropSymbols$12(source)) {
10840
- if (exclude.indexOf(prop) < 0 && __propIsEnum$12.call(source, prop))
10846
+ if (source != null && __getOwnPropSymbols$16)
10847
+ for (var prop of __getOwnPropSymbols$16(source)) {
10848
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$16.call(source, prop))
10841
10849
  target[prop] = source[prop];
10842
10850
  }
10843
10851
  return target;
@@ -10973,17 +10981,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10973
10981
  RateCardStatus
10974
10982
  }, Symbol.toStringTag, { value: 'Module' }));
10975
10983
 
10976
- var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
10977
- var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
10978
- var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
10984
+ var __getOwnPropSymbols$15 = Object.getOwnPropertySymbols;
10985
+ var __hasOwnProp$15 = Object.prototype.hasOwnProperty;
10986
+ var __propIsEnum$15 = Object.prototype.propertyIsEnumerable;
10979
10987
  var __objRest$w = (source, exclude) => {
10980
10988
  var target = {};
10981
10989
  for (var prop in source)
10982
- if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
10990
+ if (__hasOwnProp$15.call(source, prop) && exclude.indexOf(prop) < 0)
10983
10991
  target[prop] = source[prop];
10984
- if (source != null && __getOwnPropSymbols$11)
10985
- for (var prop of __getOwnPropSymbols$11(source)) {
10986
- if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
10992
+ if (source != null && __getOwnPropSymbols$15)
10993
+ for (var prop of __getOwnPropSymbols$15(source)) {
10994
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$15.call(source, prop))
10987
10995
  target[prop] = source[prop];
10988
10996
  }
10989
10997
  return target;
@@ -11081,6 +11089,35 @@ class AccountFeaturesAPI {
11081
11089
  }
11082
11090
  }
11083
11091
 
11092
+ class AccountRefundAssistAPI {
11093
+ constructor(client) {
11094
+ this.client = client;
11095
+ /**
11096
+ * The `get` method retrieves the refund assist configuration for all carriers,
11097
+ * including if it is enabled for the user.
11098
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#1.--Retrieve-RA-settings-information-(with-carrier-and-RA-details)
11099
+ */
11100
+ this.get = () => {
11101
+ return this.client.get("/v1/account/refund_assist");
11102
+ };
11103
+ /**
11104
+ * The `enable` method enables refund assist globally for the user.
11105
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#2.--Enable-RA-for-a-seller
11106
+ */
11107
+ this.enable = () => {
11108
+ return this.client.post("/v1/account/refund_assist/enable");
11109
+ };
11110
+ /**
11111
+ * The `disable` method disables refund assist globally for the user.
11112
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/6766264564/Refund+Assist+API+contracts#3.--Disable-RA-for-a-seller
11113
+ */
11114
+ this.disable = () => {
11115
+ return this.client.post("/v1/account/refund_assist/disable");
11116
+ };
11117
+ this.client = client;
11118
+ }
11119
+ }
11120
+
11084
11121
  class AddressesAPI {
11085
11122
  constructor(client) {
11086
11123
  this.client = client;
@@ -13884,7 +13921,7 @@ var ipaddr = {
13884
13921
  }).call(commonjsGlobal);
13885
13922
  } (ipaddr));
13886
13923
 
13887
- var __async$18 = (__this, __arguments, generator) => {
13924
+ var __async$1c = (__this, __arguments, generator) => {
13888
13925
  return new Promise((resolve, reject) => {
13889
13926
  var fulfilled = (value) => {
13890
13927
  try {
@@ -13904,7 +13941,7 @@ var __async$18 = (__this, __arguments, generator) => {
13904
13941
  step((generator = generator.apply(__this, __arguments)).next());
13905
13942
  });
13906
13943
  };
13907
- const getEndUserIpAddress = () => __async$18(void 0, null, function* () {
13944
+ const getEndUserIpAddress = () => __async$1c(void 0, null, function* () {
13908
13945
  try {
13909
13946
  const response = yield axios.get("https://api.ipify.org/?format=json");
13910
13947
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13965,38 +14002,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13965
14002
  return obj;
13966
14003
  };
13967
14004
 
13968
- var __defProp$R = Object.defineProperty;
13969
- var __defProps$L = Object.defineProperties;
13970
- var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
13971
- var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
13972
- var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
13973
- var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
13974
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13975
- var __spreadValues$R = (a, b) => {
14005
+ var __defProp$V = Object.defineProperty;
14006
+ var __defProps$P = Object.defineProperties;
14007
+ var __getOwnPropDescs$P = Object.getOwnPropertyDescriptors;
14008
+ var __getOwnPropSymbols$14 = Object.getOwnPropertySymbols;
14009
+ var __hasOwnProp$14 = Object.prototype.hasOwnProperty;
14010
+ var __propIsEnum$14 = Object.prototype.propertyIsEnumerable;
14011
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14012
+ var __spreadValues$V = (a, b) => {
13976
14013
  for (var prop in b || (b = {}))
13977
- if (__hasOwnProp$10.call(b, prop))
13978
- __defNormalProp$R(a, prop, b[prop]);
13979
- if (__getOwnPropSymbols$10)
13980
- for (var prop of __getOwnPropSymbols$10(b)) {
13981
- if (__propIsEnum$10.call(b, prop))
13982
- __defNormalProp$R(a, prop, b[prop]);
14014
+ if (__hasOwnProp$14.call(b, prop))
14015
+ __defNormalProp$V(a, prop, b[prop]);
14016
+ if (__getOwnPropSymbols$14)
14017
+ for (var prop of __getOwnPropSymbols$14(b)) {
14018
+ if (__propIsEnum$14.call(b, prop))
14019
+ __defNormalProp$V(a, prop, b[prop]);
13983
14020
  }
13984
14021
  return a;
13985
14022
  };
13986
- var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
14023
+ var __spreadProps$P = (a, b) => __defProps$P(a, __getOwnPropDescs$P(b));
13987
14024
  var __objRest$v = (source, exclude) => {
13988
14025
  var target = {};
13989
14026
  for (var prop in source)
13990
- if (__hasOwnProp$10.call(source, prop) && exclude.indexOf(prop) < 0)
14027
+ if (__hasOwnProp$14.call(source, prop) && exclude.indexOf(prop) < 0)
13991
14028
  target[prop] = source[prop];
13992
- if (source != null && __getOwnPropSymbols$10)
13993
- for (var prop of __getOwnPropSymbols$10(source)) {
13994
- if (exclude.indexOf(prop) < 0 && __propIsEnum$10.call(source, prop))
14029
+ if (source != null && __getOwnPropSymbols$14)
14030
+ for (var prop of __getOwnPropSymbols$14(source)) {
14031
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$14.call(source, prop))
13995
14032
  target[prop] = source[prop];
13996
14033
  }
13997
14034
  return target;
13998
14035
  };
13999
- var __async$17 = (__this, __arguments, generator) => {
14036
+ var __async$1b = (__this, __arguments, generator) => {
14000
14037
  return new Promise((resolve, reject) => {
14001
14038
  var fulfilled = (value) => {
14002
14039
  try {
@@ -14036,12 +14073,12 @@ class CarriersAPI {
14036
14073
  /**
14037
14074
  * The `connect` method connects a carrier account to a user's ShipEngine account.
14038
14075
  */
14039
- this.connect = (_a) => __async$17(this, null, function* () {
14076
+ this.connect = (_a) => __async$1b(this, null, function* () {
14040
14077
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
14041
14078
  const endUserIpAddress = yield getEndUserIpAddress();
14042
14079
  if (!endUserIpAddress)
14043
14080
  return Promise.reject([new CodedError("Unable to get IP address")]);
14044
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$L(__spreadValues$R({}, connection), {
14081
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$P(__spreadValues$V({}, connection), {
14045
14082
  endUserIpAddress
14046
14083
  }));
14047
14084
  });
@@ -14121,26 +14158,36 @@ class CarriersAPI {
14121
14158
  this.delete = (carrierId) => {
14122
14159
  return this.client.delete(`/v1/carriers/${carrierId}`);
14123
14160
  };
14161
+ /**
14162
+ * The `acceptTerms` method allows users to accept new versions of carrier terms.
14163
+ * Returns the status of each term.
14164
+ */
14165
+ this.acceptTerms = (carrierId, request) => {
14166
+ return this.client.post(
14167
+ `/v1/carriers/${carrierId}/accepted_terms`,
14168
+ request
14169
+ );
14170
+ };
14124
14171
  this.client = client;
14125
14172
  }
14126
14173
  }
14127
14174
 
14128
- var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
14129
- var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
14130
- var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
14175
+ var __getOwnPropSymbols$13 = Object.getOwnPropertySymbols;
14176
+ var __hasOwnProp$13 = Object.prototype.hasOwnProperty;
14177
+ var __propIsEnum$13 = Object.prototype.propertyIsEnumerable;
14131
14178
  var __objRest$u = (source, exclude) => {
14132
14179
  var target = {};
14133
14180
  for (var prop in source)
14134
- if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
14181
+ if (__hasOwnProp$13.call(source, prop) && exclude.indexOf(prop) < 0)
14135
14182
  target[prop] = source[prop];
14136
- if (source != null && __getOwnPropSymbols$$)
14137
- for (var prop of __getOwnPropSymbols$$(source)) {
14138
- if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
14183
+ if (source != null && __getOwnPropSymbols$13)
14184
+ for (var prop of __getOwnPropSymbols$13(source)) {
14185
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$13.call(source, prop))
14139
14186
  target[prop] = source[prop];
14140
14187
  }
14141
14188
  return target;
14142
14189
  };
14143
- var __async$16 = (__this, __arguments, generator) => {
14190
+ var __async$1a = (__this, __arguments, generator) => {
14144
14191
  return new Promise((resolve, reject) => {
14145
14192
  var fulfilled = (value) => {
14146
14193
  try {
@@ -14182,7 +14229,7 @@ class ConnectionsAPI {
14182
14229
  /**
14183
14230
  * The `connectCarrier` method connects a carrier to account.
14184
14231
  */
14185
- this.connectCarrier = (carrierName, formData) => __async$16(this, null, function* () {
14232
+ this.connectCarrier = (carrierName, formData) => __async$1a(this, null, function* () {
14186
14233
  return yield this.client.post(
14187
14234
  `/v1/connections/carriers/${carrierName}`,
14188
14235
  formData,
@@ -16350,23 +16397,23 @@ class CustomPackagesAPI {
16350
16397
  }
16351
16398
  }
16352
16399
 
16353
- var __defProp$Q = Object.defineProperty;
16354
- var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
16355
- var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
16356
- var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
16357
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16358
- var __spreadValues$Q = (a, b) => {
16400
+ var __defProp$U = Object.defineProperty;
16401
+ var __getOwnPropSymbols$12 = Object.getOwnPropertySymbols;
16402
+ var __hasOwnProp$12 = Object.prototype.hasOwnProperty;
16403
+ var __propIsEnum$12 = Object.prototype.propertyIsEnumerable;
16404
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16405
+ var __spreadValues$U = (a, b) => {
16359
16406
  for (var prop in b || (b = {}))
16360
- if (__hasOwnProp$_.call(b, prop))
16361
- __defNormalProp$Q(a, prop, b[prop]);
16362
- if (__getOwnPropSymbols$_)
16363
- for (var prop of __getOwnPropSymbols$_(b)) {
16364
- if (__propIsEnum$_.call(b, prop))
16365
- __defNormalProp$Q(a, prop, b[prop]);
16407
+ if (__hasOwnProp$12.call(b, prop))
16408
+ __defNormalProp$U(a, prop, b[prop]);
16409
+ if (__getOwnPropSymbols$12)
16410
+ for (var prop of __getOwnPropSymbols$12(b)) {
16411
+ if (__propIsEnum$12.call(b, prop))
16412
+ __defNormalProp$U(a, prop, b[prop]);
16366
16413
  }
16367
16414
  return a;
16368
16415
  };
16369
- var __async$15 = (__this, __arguments, generator) => {
16416
+ var __async$19 = (__this, __arguments, generator) => {
16370
16417
  return new Promise((resolve, reject) => {
16371
16418
  var fulfilled = (value) => {
16372
16419
  try {
@@ -16405,12 +16452,12 @@ class FundingSourcesAPI {
16405
16452
  * The `create` method creates a new funding source for a given user. This requires
16406
16453
  * payment information to be collected from the user.
16407
16454
  */
16408
- this.create = (createFundingSource) => __async$15(this, null, function* () {
16455
+ this.create = (createFundingSource) => __async$19(this, null, function* () {
16409
16456
  const endUserIpAddress = yield getEndUserIpAddress();
16410
16457
  if (!endUserIpAddress) {
16411
16458
  return Promise.reject([new CodedError("Unable to get IP address")]);
16412
16459
  }
16413
- return yield this.client.post("/v1/funding_sources", __spreadValues$Q({
16460
+ return yield this.client.post("/v1/funding_sources", __spreadValues$U({
16414
16461
  endUserIpAddress
16415
16462
  }, createFundingSource));
16416
16463
  });
@@ -16419,7 +16466,7 @@ class FundingSourcesAPI {
16419
16466
  * user to update the billing address or payment information associated with the
16420
16467
  * funding source.
16421
16468
  */
16422
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$15(this, null, function* () {
16469
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$19(this, null, function* () {
16423
16470
  const endUserIpAddress = yield getEndUserIpAddress();
16424
16471
  if (!endUserIpAddress) {
16425
16472
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16429,7 +16476,7 @@ class FundingSourcesAPI {
16429
16476
  {
16430
16477
  billingInfo,
16431
16478
  endUserIpAddress,
16432
- paymentMethod: __spreadValues$Q({
16479
+ paymentMethod: __spreadValues$U({
16433
16480
  creditCardInfo
16434
16481
  }, auctanePayInfo)
16435
16482
  }
@@ -16439,19 +16486,19 @@ class FundingSourcesAPI {
16439
16486
  * The `registerCarrier` method registers a carrier account and associates
16440
16487
  * it with a given funding source.
16441
16488
  */
16442
- this.registerCarrier = (carrier) => __async$15(this, null, function* () {
16489
+ this.registerCarrier = (carrier) => __async$19(this, null, function* () {
16443
16490
  const endUserIpAddress = yield getEndUserIpAddress();
16444
16491
  if (!endUserIpAddress) {
16445
16492
  return Promise.reject([new CodedError("Unable to get IP address")]);
16446
16493
  }
16447
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$Q({
16494
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$U({
16448
16495
  endUserIpAddress
16449
16496
  }, carrier));
16450
16497
  });
16451
16498
  /**
16452
16499
  * The `addFunds` method allows you to add funds to a funding source.
16453
16500
  */
16454
- this.addFunds = (amount, fundingSourceId) => __async$15(this, null, function* () {
16501
+ this.addFunds = (amount, fundingSourceId) => __async$19(this, null, function* () {
16455
16502
  return yield this.client.put(
16456
16503
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16457
16504
  amount
@@ -16461,7 +16508,7 @@ class FundingSourcesAPI {
16461
16508
  * The `metadata` method returns seller-specific requirements for creating funding sources
16462
16509
  * and attaching carriers
16463
16510
  */
16464
- this.metadata = () => __async$15(this, null, function* () {
16511
+ this.metadata = () => __async$19(this, null, function* () {
16465
16512
  return yield this.client.get("/v1/funding_sources/metadata");
16466
16513
  });
16467
16514
  /**
@@ -16486,6 +16533,23 @@ class FundingSourcesAPI {
16486
16533
  "/v1/insurance/funding_source/accepted_terms"
16487
16534
  );
16488
16535
  };
16536
+ /**
16537
+ * The `acceptedTerms` method retrieves all accepted terms for a specific funding source.
16538
+ */
16539
+ this.acceptedTerms = (fundingSourceId) => {
16540
+ return this.client.get(
16541
+ `/v1/funding_sources/${fundingSourceId}/accepted_terms`
16542
+ );
16543
+ };
16544
+ /**
16545
+ * The`acceptTerms` method allows users to accept new versions of funding source terms.
16546
+ */
16547
+ this.acceptTerms = (fundingSourceId, request) => {
16548
+ return this.client.post(
16549
+ `/v1/funding_sources/${fundingSourceId}/accepted_terms`,
16550
+ request
16551
+ );
16552
+ };
16489
16553
  this.client = client;
16490
16554
  }
16491
16555
  }
@@ -16513,7 +16577,7 @@ class InsuranceAPI {
16513
16577
  }
16514
16578
  }
16515
16579
 
16516
- var __async$14 = (__this, __arguments, generator) => {
16580
+ var __async$18 = (__this, __arguments, generator) => {
16517
16581
  return new Promise((resolve, reject) => {
16518
16582
  var fulfilled = (value) => {
16519
16583
  try {
@@ -16545,13 +16609,13 @@ class InvoiceAddressAPI {
16545
16609
  /**
16546
16610
  * The `create` method creates a new invoice address for a given user.
16547
16611
  */
16548
- this.create = (invoiceAddress) => __async$14(this, null, function* () {
16612
+ this.create = (invoiceAddress) => __async$18(this, null, function* () {
16549
16613
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16550
16614
  });
16551
16615
  /**
16552
16616
  * The `update` method updates a invoice address for a given user.
16553
16617
  */
16554
- this.update = (invoiceAddress) => __async$14(this, null, function* () {
16618
+ this.update = (invoiceAddress) => __async$18(this, null, function* () {
16555
16619
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16556
16620
  });
16557
16621
  this.client = client;
@@ -16613,17 +16677,17 @@ class LabelsAPI {
16613
16677
  }
16614
16678
  }
16615
16679
 
16616
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
16617
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
16618
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
16680
+ var __getOwnPropSymbols$11 = Object.getOwnPropertySymbols;
16681
+ var __hasOwnProp$11 = Object.prototype.hasOwnProperty;
16682
+ var __propIsEnum$11 = Object.prototype.propertyIsEnumerable;
16619
16683
  var __objRest$t = (source, exclude) => {
16620
16684
  var target = {};
16621
16685
  for (var prop in source)
16622
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
16686
+ if (__hasOwnProp$11.call(source, prop) && exclude.indexOf(prop) < 0)
16623
16687
  target[prop] = source[prop];
16624
- if (source != null && __getOwnPropSymbols$Z)
16625
- for (var prop of __getOwnPropSymbols$Z(source)) {
16626
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
16688
+ if (source != null && __getOwnPropSymbols$11)
16689
+ for (var prop of __getOwnPropSymbols$11(source)) {
16690
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$11.call(source, prop))
16627
16691
  target[prop] = source[prop];
16628
16692
  }
16629
16693
  return target;
@@ -16744,19 +16808,19 @@ class RateCardsAPI {
16744
16808
  }
16745
16809
  }
16746
16810
 
16747
- var __defProp$P = Object.defineProperty;
16748
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
16749
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
16750
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
16751
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16752
- var __spreadValues$P = (a, b) => {
16811
+ var __defProp$T = Object.defineProperty;
16812
+ var __getOwnPropSymbols$10 = Object.getOwnPropertySymbols;
16813
+ var __hasOwnProp$10 = Object.prototype.hasOwnProperty;
16814
+ var __propIsEnum$10 = Object.prototype.propertyIsEnumerable;
16815
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16816
+ var __spreadValues$T = (a, b) => {
16753
16817
  for (var prop in b || (b = {}))
16754
- if (__hasOwnProp$Y.call(b, prop))
16755
- __defNormalProp$P(a, prop, b[prop]);
16756
- if (__getOwnPropSymbols$Y)
16757
- for (var prop of __getOwnPropSymbols$Y(b)) {
16758
- if (__propIsEnum$Y.call(b, prop))
16759
- __defNormalProp$P(a, prop, b[prop]);
16818
+ if (__hasOwnProp$10.call(b, prop))
16819
+ __defNormalProp$T(a, prop, b[prop]);
16820
+ if (__getOwnPropSymbols$10)
16821
+ for (var prop of __getOwnPropSymbols$10(b)) {
16822
+ if (__propIsEnum$10.call(b, prop))
16823
+ __defNormalProp$T(a, prop, b[prop]);
16760
16824
  }
16761
16825
  return a;
16762
16826
  };
@@ -16778,7 +16842,7 @@ class RatesAPI {
16778
16842
  * method.
16779
16843
  */
16780
16844
  this.estimate = (params) => {
16781
- return this.client.post("/v1/rates/estimate", __spreadValues$P({}, params));
16845
+ return this.client.post("/v1/rates/estimate", __spreadValues$T({}, params));
16782
16846
  };
16783
16847
  this.client = client;
16784
16848
  }
@@ -16858,7 +16922,7 @@ class SalesOrdersAPI {
16858
16922
  }
16859
16923
  }
16860
16924
 
16861
- var __async$13 = (__this, __arguments, generator) => {
16925
+ var __async$17 = (__this, __arguments, generator) => {
16862
16926
  return new Promise((resolve, reject) => {
16863
16927
  var fulfilled = (value) => {
16864
16928
  try {
@@ -16916,7 +16980,7 @@ class SellersAPI {
16916
16980
  /**
16917
16981
  * Deletes an API Key
16918
16982
  */
16919
- this.deleteSellerApiKey = (_0) => __async$13(this, [_0], function* ({
16983
+ this.deleteSellerApiKey = (_0) => __async$17(this, [_0], function* ({
16920
16984
  encryptedApiKey,
16921
16985
  sellerId,
16922
16986
  isSandbox
@@ -16962,19 +17026,19 @@ class SellersAPI {
16962
17026
  }
16963
17027
  }
16964
17028
 
16965
- var __defProp$O = Object.defineProperty;
16966
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16967
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16968
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16969
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16970
- var __spreadValues$O = (a, b) => {
17029
+ var __defProp$S = Object.defineProperty;
17030
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
17031
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
17032
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
17033
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17034
+ var __spreadValues$S = (a, b) => {
16971
17035
  for (var prop in b || (b = {}))
16972
- if (__hasOwnProp$X.call(b, prop))
16973
- __defNormalProp$O(a, prop, b[prop]);
16974
- if (__getOwnPropSymbols$X)
16975
- for (var prop of __getOwnPropSymbols$X(b)) {
16976
- if (__propIsEnum$X.call(b, prop))
16977
- __defNormalProp$O(a, prop, b[prop]);
17036
+ if (__hasOwnProp$$.call(b, prop))
17037
+ __defNormalProp$S(a, prop, b[prop]);
17038
+ if (__getOwnPropSymbols$$)
17039
+ for (var prop of __getOwnPropSymbols$$(b)) {
17040
+ if (__propIsEnum$$.call(b, prop))
17041
+ __defNormalProp$S(a, prop, b[prop]);
16978
17042
  }
16979
17043
  return a;
16980
17044
  };
@@ -16986,7 +17050,7 @@ class ServicePointsAPI {
16986
17050
  * Either an address, coordinates, or an address query
16987
17051
  */
16988
17052
  this.list = (options) => {
16989
- return this.client.post("/v1/service_points/list", __spreadValues$O({}, options));
17053
+ return this.client.post("/v1/service_points/list", __spreadValues$S({}, options));
16990
17054
  };
16991
17055
  /**
16992
17056
  * Get a specific service point by its carrier code, country code, and id
@@ -17004,7 +17068,7 @@ class ServicePointsAPI {
17004
17068
  }
17005
17069
  }
17006
17070
 
17007
- var __async$12 = (__this, __arguments, generator) => {
17071
+ var __async$16 = (__this, __arguments, generator) => {
17008
17072
  return new Promise((resolve, reject) => {
17009
17073
  var fulfilled = (value) => {
17010
17074
  try {
@@ -17053,7 +17117,7 @@ class ShipmentsAPI {
17053
17117
  * The `create` method allows for creating shipments based on a list of shipment
17054
17118
  * items passed into this method.
17055
17119
  */
17056
- this.create = (...shipments) => __async$12(this, null, function* () {
17120
+ this.create = (...shipments) => __async$16(this, null, function* () {
17057
17121
  return this.client.post("/v1/shipments", {
17058
17122
  shipments
17059
17123
  });
@@ -34470,38 +34534,38 @@ class WebhooksAPI {
34470
34534
  }
34471
34535
  }
34472
34536
 
34473
- var __defProp$N = Object.defineProperty;
34474
- var __defProps$K = Object.defineProperties;
34475
- var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
34476
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
34477
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
34478
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
34479
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34480
- var __spreadValues$N = (a, b) => {
34537
+ var __defProp$R = Object.defineProperty;
34538
+ var __defProps$O = Object.defineProperties;
34539
+ var __getOwnPropDescs$O = Object.getOwnPropertyDescriptors;
34540
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
34541
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
34542
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
34543
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34544
+ var __spreadValues$R = (a, b) => {
34481
34545
  for (var prop in b || (b = {}))
34482
- if (__hasOwnProp$W.call(b, prop))
34483
- __defNormalProp$N(a, prop, b[prop]);
34484
- if (__getOwnPropSymbols$W)
34485
- for (var prop of __getOwnPropSymbols$W(b)) {
34486
- if (__propIsEnum$W.call(b, prop))
34487
- __defNormalProp$N(a, prop, b[prop]);
34546
+ if (__hasOwnProp$_.call(b, prop))
34547
+ __defNormalProp$R(a, prop, b[prop]);
34548
+ if (__getOwnPropSymbols$_)
34549
+ for (var prop of __getOwnPropSymbols$_(b)) {
34550
+ if (__propIsEnum$_.call(b, prop))
34551
+ __defNormalProp$R(a, prop, b[prop]);
34488
34552
  }
34489
34553
  return a;
34490
34554
  };
34491
- var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
34555
+ var __spreadProps$O = (a, b) => __defProps$O(a, __getOwnPropDescs$O(b));
34492
34556
  var __objRest$s = (source, exclude) => {
34493
34557
  var target = {};
34494
34558
  for (var prop in source)
34495
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
34559
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
34496
34560
  target[prop] = source[prop];
34497
- if (source != null && __getOwnPropSymbols$W)
34498
- for (var prop of __getOwnPropSymbols$W(source)) {
34499
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
34561
+ if (source != null && __getOwnPropSymbols$_)
34562
+ for (var prop of __getOwnPropSymbols$_(source)) {
34563
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
34500
34564
  target[prop] = source[prop];
34501
34565
  }
34502
34566
  return target;
34503
34567
  };
34504
- var __async$11 = (__this, __arguments, generator) => {
34568
+ var __async$15 = (__this, __arguments, generator) => {
34505
34569
  return new Promise((resolve, reject) => {
34506
34570
  var fulfilled = (value) => {
34507
34571
  try {
@@ -34524,7 +34588,7 @@ var __async$11 = (__this, __arguments, generator) => {
34524
34588
  const logger$1 = E({
34525
34589
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34526
34590
  name: "shipengine-api",
34527
- serializers: __spreadProps$K(__spreadValues$N({}, k), {
34591
+ serializers: __spreadProps$O(__spreadValues$R({}, k), {
34528
34592
  req: (req) => ({
34529
34593
  headers: req.headers,
34530
34594
  method: req.method,
@@ -34549,7 +34613,7 @@ class ShipEngineAPI {
34549
34613
  this.getSandboxToken = getSandboxToken;
34550
34614
  const client = axios.create({
34551
34615
  baseURL,
34552
- headers: __spreadProps$K(__spreadValues$N({}, headers), {
34616
+ headers: __spreadProps$O(__spreadValues$R({}, headers), {
34553
34617
  "Content-Type": "application/json"
34554
34618
  }),
34555
34619
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34589,7 +34653,7 @@ class ShipEngineAPI {
34589
34653
  });
34590
34654
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34591
34655
  client.interceptors.request.use(
34592
- (config) => __async$11(this, null, function* () {
34656
+ (config) => __async$15(this, null, function* () {
34593
34657
  if (config.isSandbox) {
34594
34658
  if (!this.sandboxToken) {
34595
34659
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34618,7 +34682,7 @@ class ShipEngineAPI {
34618
34682
  }
34619
34683
  return res;
34620
34684
  },
34621
- (err) => __async$11(this, null, function* () {
34685
+ (err) => __async$15(this, null, function* () {
34622
34686
  var _a, _b, _c, _d, _e;
34623
34687
  if (debug) {
34624
34688
  logger$1.error(
@@ -34667,7 +34731,7 @@ class ShipEngineAPI {
34667
34731
  * that token (also known as Seller ID)
34668
34732
  */
34669
34733
  getTenant(isSandbox) {
34670
- return __async$11(this, null, function* () {
34734
+ return __async$15(this, null, function* () {
34671
34735
  var _a;
34672
34736
  if (!isSandbox) {
34673
34737
  return this.getTenantFromToken(this.token);
@@ -34725,6 +34789,13 @@ class ShipEngineAPI {
34725
34789
  get accountBilling() {
34726
34790
  return new AccountBillingAPI(this.client);
34727
34791
  }
34792
+ /**
34793
+ * The `accountRefundAssist` method provides access to the Account Refund Assist endpoints
34794
+ * in ShipEngine API.
34795
+ */
34796
+ get accountRefundAssist() {
34797
+ return new AccountRefundAssistAPI(this.client);
34798
+ }
34728
34799
  /**
34729
34800
  * The `addresses` method provides access to the Address Validation endpoints
34730
34801
  * in ShipEngine API. e.g. Validate Addresses, Parse Addresses, etc.
@@ -34986,25 +35057,25 @@ const delay = (ms) => new Promise((resolve) => {
34986
35057
 
34987
35058
  const onError = (_errors) => _default();
34988
35059
 
34989
- var __defProp$M = Object.defineProperty;
34990
- var __defProps$J = Object.defineProperties;
34991
- var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
34992
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
34993
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
34994
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
34995
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34996
- var __spreadValues$M = (a, b) => {
35060
+ var __defProp$Q = Object.defineProperty;
35061
+ var __defProps$N = Object.defineProperties;
35062
+ var __getOwnPropDescs$N = Object.getOwnPropertyDescriptors;
35063
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
35064
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
35065
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
35066
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35067
+ var __spreadValues$Q = (a, b) => {
34997
35068
  for (var prop in b || (b = {}))
34998
- if (__hasOwnProp$V.call(b, prop))
34999
- __defNormalProp$M(a, prop, b[prop]);
35000
- if (__getOwnPropSymbols$V)
35001
- for (var prop of __getOwnPropSymbols$V(b)) {
35002
- if (__propIsEnum$V.call(b, prop))
35003
- __defNormalProp$M(a, prop, b[prop]);
35069
+ if (__hasOwnProp$Z.call(b, prop))
35070
+ __defNormalProp$Q(a, prop, b[prop]);
35071
+ if (__getOwnPropSymbols$Z)
35072
+ for (var prop of __getOwnPropSymbols$Z(b)) {
35073
+ if (__propIsEnum$Z.call(b, prop))
35074
+ __defNormalProp$Q(a, prop, b[prop]);
35004
35075
  }
35005
35076
  return a;
35006
35077
  };
35007
- var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35078
+ var __spreadProps$N = (a, b) => __defProps$N(a, __getOwnPropDescs$N(b));
35008
35079
  const streams = [];
35009
35080
  if (process.env.NODE_ENV === "production") {
35010
35081
  streams.push({
@@ -35013,7 +35084,7 @@ if (process.env.NODE_ENV === "production") {
35013
35084
  }
35014
35085
  const logger = E({
35015
35086
  name: "shipengine",
35016
- serializers: __spreadProps$J(__spreadValues$M({}, k), {
35087
+ serializers: __spreadProps$N(__spreadValues$Q({}, k), {
35017
35088
  req: (req) => ({
35018
35089
  headers: req.headers,
35019
35090
  method: req.method,
@@ -35038,7 +35109,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
35038
35109
  throw error;
35039
35110
  });
35040
35111
 
35041
- var __async$10 = (__this, __arguments, generator) => {
35112
+ var __async$14 = (__this, __arguments, generator) => {
35042
35113
  return new Promise((resolve, reject) => {
35043
35114
  var fulfilled = (value) => {
35044
35115
  try {
@@ -35061,7 +35132,7 @@ var __async$10 = (__this, __arguments, generator) => {
35061
35132
  const useCreateAccountImage = () => {
35062
35133
  const { client } = useShipEngine();
35063
35134
  return reactQuery.useMutation({
35064
- mutationFn: (data) => __async$10(void 0, null, function* () {
35135
+ mutationFn: (data) => __async$14(void 0, null, function* () {
35065
35136
  const result = yield client.accountSettings.createImage(data);
35066
35137
  return result.data;
35067
35138
  }),
@@ -35070,7 +35141,7 @@ const useCreateAccountImage = () => {
35070
35141
  });
35071
35142
  };
35072
35143
 
35073
- var __async$$ = (__this, __arguments, generator) => {
35144
+ var __async$13 = (__this, __arguments, generator) => {
35074
35145
  return new Promise((resolve, reject) => {
35075
35146
  var fulfilled = (value) => {
35076
35147
  try {
@@ -35093,7 +35164,7 @@ var __async$$ = (__this, __arguments, generator) => {
35093
35164
  const useDeleteAccountImage = () => {
35094
35165
  const { client } = useShipEngine();
35095
35166
  return reactQuery.useMutation({
35096
- mutationFn: (labelImageId) => __async$$(void 0, null, function* () {
35167
+ mutationFn: (labelImageId) => __async$13(void 0, null, function* () {
35097
35168
  const result = yield client.accountSettings.deleteImage(labelImageId);
35098
35169
  return result.data;
35099
35170
  }),
@@ -35122,7 +35193,7 @@ const useGetAccountSettings = () => {
35122
35193
  });
35123
35194
  };
35124
35195
 
35125
- var __async$_ = (__this, __arguments, generator) => {
35196
+ var __async$12 = (__this, __arguments, generator) => {
35126
35197
  return new Promise((resolve, reject) => {
35127
35198
  var fulfilled = (value) => {
35128
35199
  try {
@@ -35145,7 +35216,7 @@ var __async$_ = (__this, __arguments, generator) => {
35145
35216
  const useUpdateAccountImage = () => {
35146
35217
  const { client } = useShipEngine();
35147
35218
  return reactQuery.useMutation({
35148
- mutationFn: (data) => __async$_(void 0, null, function* () {
35219
+ mutationFn: (data) => __async$12(void 0, null, function* () {
35149
35220
  const result = yield client.accountSettings.updateImage(data);
35150
35221
  return result.data;
35151
35222
  }),
@@ -35154,7 +35225,7 @@ const useUpdateAccountImage = () => {
35154
35225
  });
35155
35226
  };
35156
35227
 
35157
- var __async$Z = (__this, __arguments, generator) => {
35228
+ var __async$11 = (__this, __arguments, generator) => {
35158
35229
  return new Promise((resolve, reject) => {
35159
35230
  var fulfilled = (value) => {
35160
35231
  try {
@@ -35177,7 +35248,7 @@ var __async$Z = (__this, __arguments, generator) => {
35177
35248
  const useUpdateAccountSettings = () => {
35178
35249
  const { client } = useShipEngine();
35179
35250
  return reactQuery.useMutation({
35180
- mutationFn: (settings) => __async$Z(void 0, null, function* () {
35251
+ mutationFn: (settings) => __async$11(void 0, null, function* () {
35181
35252
  const result = yield client.accountSettings.update(settings);
35182
35253
  return result.data;
35183
35254
  }),
@@ -35186,28 +35257,28 @@ const useUpdateAccountSettings = () => {
35186
35257
  });
35187
35258
  };
35188
35259
 
35189
- var __defProp$L = Object.defineProperty;
35190
- var __defProps$I = Object.defineProperties;
35191
- var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
35192
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
35193
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
35194
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
35195
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35196
- var __spreadValues$L = (a, b) => {
35260
+ var __defProp$P = Object.defineProperty;
35261
+ var __defProps$M = Object.defineProperties;
35262
+ var __getOwnPropDescs$M = Object.getOwnPropertyDescriptors;
35263
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
35264
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
35265
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
35266
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35267
+ var __spreadValues$P = (a, b) => {
35197
35268
  for (var prop in b || (b = {}))
35198
- if (__hasOwnProp$U.call(b, prop))
35199
- __defNormalProp$L(a, prop, b[prop]);
35200
- if (__getOwnPropSymbols$U)
35201
- for (var prop of __getOwnPropSymbols$U(b)) {
35202
- if (__propIsEnum$U.call(b, prop))
35203
- __defNormalProp$L(a, prop, b[prop]);
35269
+ if (__hasOwnProp$Y.call(b, prop))
35270
+ __defNormalProp$P(a, prop, b[prop]);
35271
+ if (__getOwnPropSymbols$Y)
35272
+ for (var prop of __getOwnPropSymbols$Y(b)) {
35273
+ if (__propIsEnum$Y.call(b, prop))
35274
+ __defNormalProp$P(a, prop, b[prop]);
35204
35275
  }
35205
35276
  return a;
35206
35277
  };
35207
- var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35278
+ var __spreadProps$M = (a, b) => __defProps$M(a, __getOwnPropDescs$M(b));
35208
35279
  const useListAccountAddons = (params) => {
35209
35280
  const { client } = useShipEngine();
35210
- return reactQuery.useQuery(__spreadProps$I(__spreadValues$L({}, params), {
35281
+ return reactQuery.useQuery(__spreadProps$M(__spreadValues$P({}, params), {
35211
35282
  onError,
35212
35283
  queryFn: () => client.accountAddons.list(),
35213
35284
  queryKey: ["useListAccountAddons"],
@@ -35215,26 +35286,26 @@ const useListAccountAddons = (params) => {
35215
35286
  }));
35216
35287
  };
35217
35288
 
35218
- var __defProp$K = Object.defineProperty;
35219
- var __defProps$H = Object.defineProperties;
35220
- var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35221
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35222
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35223
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35224
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35225
- var __spreadValues$K = (a, b) => {
35289
+ var __defProp$O = Object.defineProperty;
35290
+ var __defProps$L = Object.defineProperties;
35291
+ var __getOwnPropDescs$L = Object.getOwnPropertyDescriptors;
35292
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
35293
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
35294
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
35295
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35296
+ var __spreadValues$O = (a, b) => {
35226
35297
  for (var prop in b || (b = {}))
35227
- if (__hasOwnProp$T.call(b, prop))
35228
- __defNormalProp$K(a, prop, b[prop]);
35229
- if (__getOwnPropSymbols$T)
35230
- for (var prop of __getOwnPropSymbols$T(b)) {
35231
- if (__propIsEnum$T.call(b, prop))
35232
- __defNormalProp$K(a, prop, b[prop]);
35298
+ if (__hasOwnProp$X.call(b, prop))
35299
+ __defNormalProp$O(a, prop, b[prop]);
35300
+ if (__getOwnPropSymbols$X)
35301
+ for (var prop of __getOwnPropSymbols$X(b)) {
35302
+ if (__propIsEnum$X.call(b, prop))
35303
+ __defNormalProp$O(a, prop, b[prop]);
35233
35304
  }
35234
35305
  return a;
35235
35306
  };
35236
- var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35237
- var __async$Y = (__this, __arguments, generator) => {
35307
+ var __spreadProps$L = (a, b) => __defProps$L(a, __getOwnPropDescs$L(b));
35308
+ var __async$10 = (__this, __arguments, generator) => {
35238
35309
  return new Promise((resolve, reject) => {
35239
35310
  var fulfilled = (value) => {
35240
35311
  try {
@@ -35256,8 +35327,8 @@ var __async$Y = (__this, __arguments, generator) => {
35256
35327
  };
35257
35328
  const useEnableAccountAddon = (params) => {
35258
35329
  const { client } = useShipEngine();
35259
- return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35260
- mutationFn: (addonType) => __async$Y(void 0, null, function* () {
35330
+ return reactQuery.useMutation(__spreadProps$L(__spreadValues$O({}, params), {
35331
+ mutationFn: (addonType) => __async$10(void 0, null, function* () {
35261
35332
  const result = yield client.accountAddons.enable(addonType);
35262
35333
  return result.data;
35263
35334
  }),
@@ -35266,26 +35337,26 @@ const useEnableAccountAddon = (params) => {
35266
35337
  }));
35267
35338
  };
35268
35339
 
35269
- var __defProp$J = Object.defineProperty;
35270
- var __defProps$G = Object.defineProperties;
35271
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35272
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35273
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35274
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35275
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35276
- var __spreadValues$J = (a, b) => {
35340
+ var __defProp$N = Object.defineProperty;
35341
+ var __defProps$K = Object.defineProperties;
35342
+ var __getOwnPropDescs$K = Object.getOwnPropertyDescriptors;
35343
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
35344
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
35345
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
35346
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35347
+ var __spreadValues$N = (a, b) => {
35277
35348
  for (var prop in b || (b = {}))
35278
- if (__hasOwnProp$S.call(b, prop))
35279
- __defNormalProp$J(a, prop, b[prop]);
35280
- if (__getOwnPropSymbols$S)
35281
- for (var prop of __getOwnPropSymbols$S(b)) {
35282
- if (__propIsEnum$S.call(b, prop))
35283
- __defNormalProp$J(a, prop, b[prop]);
35349
+ if (__hasOwnProp$W.call(b, prop))
35350
+ __defNormalProp$N(a, prop, b[prop]);
35351
+ if (__getOwnPropSymbols$W)
35352
+ for (var prop of __getOwnPropSymbols$W(b)) {
35353
+ if (__propIsEnum$W.call(b, prop))
35354
+ __defNormalProp$N(a, prop, b[prop]);
35284
35355
  }
35285
35356
  return a;
35286
35357
  };
35287
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35288
- var __async$X = (__this, __arguments, generator) => {
35358
+ var __spreadProps$K = (a, b) => __defProps$K(a, __getOwnPropDescs$K(b));
35359
+ var __async$$ = (__this, __arguments, generator) => {
35289
35360
  return new Promise((resolve, reject) => {
35290
35361
  var fulfilled = (value) => {
35291
35362
  try {
@@ -35307,8 +35378,8 @@ var __async$X = (__this, __arguments, generator) => {
35307
35378
  };
35308
35379
  const useDisableAccountAddon = (params) => {
35309
35380
  const { client } = useShipEngine();
35310
- return reactQuery.useMutation(__spreadProps$G(__spreadValues$J({}, params), {
35311
- mutationFn: (addonType) => __async$X(void 0, null, function* () {
35381
+ return reactQuery.useMutation(__spreadProps$K(__spreadValues$N({}, params), {
35382
+ mutationFn: (addonType) => __async$$(void 0, null, function* () {
35312
35383
  const result = yield client.accountAddons.disable(addonType);
35313
35384
  return result.data;
35314
35385
  }),
@@ -35317,28 +35388,28 @@ const useDisableAccountAddon = (params) => {
35317
35388
  }));
35318
35389
  };
35319
35390
 
35320
- var __defProp$I = Object.defineProperty;
35321
- var __defProps$F = Object.defineProperties;
35322
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35323
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35324
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35325
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35326
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35327
- var __spreadValues$I = (a, b) => {
35391
+ var __defProp$M = Object.defineProperty;
35392
+ var __defProps$J = Object.defineProperties;
35393
+ var __getOwnPropDescs$J = Object.getOwnPropertyDescriptors;
35394
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
35395
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
35396
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
35397
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35398
+ var __spreadValues$M = (a, b) => {
35328
35399
  for (var prop in b || (b = {}))
35329
- if (__hasOwnProp$R.call(b, prop))
35330
- __defNormalProp$I(a, prop, b[prop]);
35331
- if (__getOwnPropSymbols$R)
35332
- for (var prop of __getOwnPropSymbols$R(b)) {
35333
- if (__propIsEnum$R.call(b, prop))
35334
- __defNormalProp$I(a, prop, b[prop]);
35400
+ if (__hasOwnProp$V.call(b, prop))
35401
+ __defNormalProp$M(a, prop, b[prop]);
35402
+ if (__getOwnPropSymbols$V)
35403
+ for (var prop of __getOwnPropSymbols$V(b)) {
35404
+ if (__propIsEnum$V.call(b, prop))
35405
+ __defNormalProp$M(a, prop, b[prop]);
35335
35406
  }
35336
35407
  return a;
35337
35408
  };
35338
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35409
+ var __spreadProps$J = (a, b) => __defProps$J(a, __getOwnPropDescs$J(b));
35339
35410
  const useListAccountFeatures = (params) => {
35340
35411
  const { client } = useShipEngine();
35341
- return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35412
+ return reactQuery.useQuery(__spreadProps$J(__spreadValues$M({}, params), {
35342
35413
  onError,
35343
35414
  queryFn: () => client.accountFeatures.list(),
35344
35415
  queryKey: ["useListAccountFeatures"],
@@ -35346,7 +35417,7 @@ const useListAccountFeatures = (params) => {
35346
35417
  }));
35347
35418
  };
35348
35419
 
35349
- var __async$W = (__this, __arguments, generator) => {
35420
+ var __async$_ = (__this, __arguments, generator) => {
35350
35421
  return new Promise((resolve, reject) => {
35351
35422
  var fulfilled = (value) => {
35352
35423
  try {
@@ -35369,7 +35440,7 @@ var __async$W = (__this, __arguments, generator) => {
35369
35440
  const useRequestAccountFeature = () => {
35370
35441
  const { client } = useShipEngine();
35371
35442
  return reactQuery.useMutation({
35372
- mutationFn: (request) => __async$W(void 0, null, function* () {
35443
+ mutationFn: (request) => __async$_(void 0, null, function* () {
35373
35444
  const result = yield client.accountFeatures.request(request);
35374
35445
  return result.data;
35375
35446
  }),
@@ -35378,7 +35449,136 @@ const useRequestAccountFeature = () => {
35378
35449
  });
35379
35450
  };
35380
35451
 
35381
- var __async$V = (__this, __arguments, generator) => {
35452
+ var __defProp$L = Object.defineProperty;
35453
+ var __defProps$I = Object.defineProperties;
35454
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
35455
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
35456
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
35457
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
35458
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35459
+ var __spreadValues$L = (a, b) => {
35460
+ for (var prop in b || (b = {}))
35461
+ if (__hasOwnProp$U.call(b, prop))
35462
+ __defNormalProp$L(a, prop, b[prop]);
35463
+ if (__getOwnPropSymbols$U)
35464
+ for (var prop of __getOwnPropSymbols$U(b)) {
35465
+ if (__propIsEnum$U.call(b, prop))
35466
+ __defNormalProp$L(a, prop, b[prop]);
35467
+ }
35468
+ return a;
35469
+ };
35470
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
35471
+ var __async$Z = (__this, __arguments, generator) => {
35472
+ return new Promise((resolve, reject) => {
35473
+ var fulfilled = (value) => {
35474
+ try {
35475
+ step(generator.next(value));
35476
+ } catch (e) {
35477
+ reject(e);
35478
+ }
35479
+ };
35480
+ var rejected = (value) => {
35481
+ try {
35482
+ step(generator.throw(value));
35483
+ } catch (e) {
35484
+ reject(e);
35485
+ }
35486
+ };
35487
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35488
+ step((generator = generator.apply(__this, __arguments)).next());
35489
+ });
35490
+ };
35491
+ const useDisableRefundAssist = (params) => {
35492
+ const { client } = useShipEngine();
35493
+ return reactQuery.useMutation(__spreadProps$I(__spreadValues$L({}, params), {
35494
+ mutationFn: () => __async$Z(void 0, null, function* () {
35495
+ yield client.accountRefundAssist.disable();
35496
+ }),
35497
+ mutationKey: ["useDisableRefundAssist"],
35498
+ onError
35499
+ }));
35500
+ };
35501
+
35502
+ var __defProp$K = Object.defineProperty;
35503
+ var __defProps$H = Object.defineProperties;
35504
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
35505
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
35506
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
35507
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
35508
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35509
+ var __spreadValues$K = (a, b) => {
35510
+ for (var prop in b || (b = {}))
35511
+ if (__hasOwnProp$T.call(b, prop))
35512
+ __defNormalProp$K(a, prop, b[prop]);
35513
+ if (__getOwnPropSymbols$T)
35514
+ for (var prop of __getOwnPropSymbols$T(b)) {
35515
+ if (__propIsEnum$T.call(b, prop))
35516
+ __defNormalProp$K(a, prop, b[prop]);
35517
+ }
35518
+ return a;
35519
+ };
35520
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
35521
+ var __async$Y = (__this, __arguments, generator) => {
35522
+ return new Promise((resolve, reject) => {
35523
+ var fulfilled = (value) => {
35524
+ try {
35525
+ step(generator.next(value));
35526
+ } catch (e) {
35527
+ reject(e);
35528
+ }
35529
+ };
35530
+ var rejected = (value) => {
35531
+ try {
35532
+ step(generator.throw(value));
35533
+ } catch (e) {
35534
+ reject(e);
35535
+ }
35536
+ };
35537
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35538
+ step((generator = generator.apply(__this, __arguments)).next());
35539
+ });
35540
+ };
35541
+ const useEnableRefundAssist = (params) => {
35542
+ const { client } = useShipEngine();
35543
+ return reactQuery.useMutation(__spreadProps$H(__spreadValues$K({}, params), {
35544
+ mutationFn: () => __async$Y(void 0, null, function* () {
35545
+ yield client.accountRefundAssist.enable();
35546
+ }),
35547
+ mutationKey: ["useEnableRefundAssist"],
35548
+ onError
35549
+ }));
35550
+ };
35551
+
35552
+ var __defProp$J = Object.defineProperty;
35553
+ var __defProps$G = Object.defineProperties;
35554
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
35555
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
35556
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
35557
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
35558
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35559
+ var __spreadValues$J = (a, b) => {
35560
+ for (var prop in b || (b = {}))
35561
+ if (__hasOwnProp$S.call(b, prop))
35562
+ __defNormalProp$J(a, prop, b[prop]);
35563
+ if (__getOwnPropSymbols$S)
35564
+ for (var prop of __getOwnPropSymbols$S(b)) {
35565
+ if (__propIsEnum$S.call(b, prop))
35566
+ __defNormalProp$J(a, prop, b[prop]);
35567
+ }
35568
+ return a;
35569
+ };
35570
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
35571
+ const useGetRefundAssist = (params) => {
35572
+ const { client } = useShipEngine();
35573
+ return reactQuery.useQuery(__spreadProps$G(__spreadValues$J({}, params), {
35574
+ onError,
35575
+ queryFn: () => client.accountRefundAssist.get(),
35576
+ queryKey: ["useGetRefundAssist"],
35577
+ select: (result) => result.data.refundAssistCarriers
35578
+ }));
35579
+ };
35580
+
35581
+ var __async$X = (__this, __arguments, generator) => {
35382
35582
  return new Promise((resolve, reject) => {
35383
35583
  var fulfilled = (value) => {
35384
35584
  try {
@@ -35401,7 +35601,7 @@ var __async$V = (__this, __arguments, generator) => {
35401
35601
  const useParseAddress = () => {
35402
35602
  const { client } = useShipEngine();
35403
35603
  return reactQuery.useMutation({
35404
- mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
35604
+ mutationFn: (_0) => __async$X(void 0, [_0], function* ({ address, text }) {
35405
35605
  const result = yield client.addresses.parse(text, address);
35406
35606
  return result.data;
35407
35607
  }),
@@ -35410,7 +35610,7 @@ const useParseAddress = () => {
35410
35610
  });
35411
35611
  };
35412
35612
 
35413
- var __async$U = (__this, __arguments, generator) => {
35613
+ var __async$W = (__this, __arguments, generator) => {
35414
35614
  return new Promise((resolve, reject) => {
35415
35615
  var fulfilled = (value) => {
35416
35616
  try {
@@ -35433,7 +35633,7 @@ var __async$U = (__this, __arguments, generator) => {
35433
35633
  const useValidateAddresses = () => {
35434
35634
  const { client } = useShipEngine();
35435
35635
  return reactQuery.useMutation({
35436
- mutationFn: (addresses) => __async$U(void 0, null, function* () {
35636
+ mutationFn: (addresses) => __async$W(void 0, null, function* () {
35437
35637
  const result = yield client.addresses.validate(addresses);
35438
35638
  return result.data;
35439
35639
  }),
@@ -35442,26 +35642,26 @@ const useValidateAddresses = () => {
35442
35642
  });
35443
35643
  };
35444
35644
 
35445
- var __defProp$H = Object.defineProperty;
35446
- var __defProps$E = Object.defineProperties;
35447
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35448
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35449
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35450
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35451
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35452
- var __spreadValues$H = (a, b) => {
35645
+ var __defProp$I = Object.defineProperty;
35646
+ var __defProps$F = Object.defineProperties;
35647
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35648
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35649
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35650
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35651
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35652
+ var __spreadValues$I = (a, b) => {
35453
35653
  for (var prop in b || (b = {}))
35454
- if (__hasOwnProp$Q.call(b, prop))
35455
- __defNormalProp$H(a, prop, b[prop]);
35456
- if (__getOwnPropSymbols$Q)
35457
- for (var prop of __getOwnPropSymbols$Q(b)) {
35458
- if (__propIsEnum$Q.call(b, prop))
35459
- __defNormalProp$H(a, prop, b[prop]);
35654
+ if (__hasOwnProp$R.call(b, prop))
35655
+ __defNormalProp$I(a, prop, b[prop]);
35656
+ if (__getOwnPropSymbols$R)
35657
+ for (var prop of __getOwnPropSymbols$R(b)) {
35658
+ if (__propIsEnum$R.call(b, prop))
35659
+ __defNormalProp$I(a, prop, b[prop]);
35460
35660
  }
35461
35661
  return a;
35462
35662
  };
35463
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35464
- var __async$T = (__this, __arguments, generator) => {
35663
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35664
+ var __async$V = (__this, __arguments, generator) => {
35465
35665
  return new Promise((resolve, reject) => {
35466
35666
  var fulfilled = (value) => {
35467
35667
  try {
@@ -35483,8 +35683,8 @@ var __async$T = (__this, __arguments, generator) => {
35483
35683
  };
35484
35684
  const useCreateAuctanePaySession = (params) => {
35485
35685
  const { client } = useShipEngine();
35486
- return reactQuery.useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35487
- mutationFn: (request) => __async$T(void 0, null, function* () {
35686
+ return reactQuery.useMutation(__spreadProps$F(__spreadValues$I({}, params), {
35687
+ mutationFn: (request) => __async$V(void 0, null, function* () {
35488
35688
  const result = yield client.auctanePay.createSession(request);
35489
35689
  return result.data;
35490
35690
  }),
@@ -35493,6 +35693,36 @@ const useCreateAuctanePaySession = (params) => {
35493
35693
  }));
35494
35694
  };
35495
35695
 
35696
+ var __defProp$H = Object.defineProperty;
35697
+ var __defProps$E = Object.defineProperties;
35698
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35699
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35700
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35701
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35702
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35703
+ var __spreadValues$H = (a, b) => {
35704
+ for (var prop in b || (b = {}))
35705
+ if (__hasOwnProp$Q.call(b, prop))
35706
+ __defNormalProp$H(a, prop, b[prop]);
35707
+ if (__getOwnPropSymbols$Q)
35708
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35709
+ if (__propIsEnum$Q.call(b, prop))
35710
+ __defNormalProp$H(a, prop, b[prop]);
35711
+ }
35712
+ return a;
35713
+ };
35714
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35715
+ const useGetAuctanePayConfig = (params) => {
35716
+ const { client } = useShipEngine();
35717
+ const queryParams = __spreadValues$H({}, params);
35718
+ return reactQuery.useQuery(__spreadProps$E(__spreadValues$H({}, queryParams), {
35719
+ onError,
35720
+ queryFn: () => client.auctanePay.getConfig(),
35721
+ queryKey: ["useGetAuctanePayConfig"],
35722
+ select: (result) => result.data
35723
+ }));
35724
+ };
35725
+
35496
35726
  var __defProp$G = Object.defineProperty;
35497
35727
  var __defProps$D = Object.defineProperties;
35498
35728
  var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
@@ -35512,37 +35742,7 @@ var __spreadValues$G = (a, b) => {
35512
35742
  return a;
35513
35743
  };
35514
35744
  var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35515
- const useGetAuctanePayConfig = (params) => {
35516
- const { client } = useShipEngine();
35517
- const queryParams = __spreadValues$G({}, params);
35518
- return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35519
- onError,
35520
- queryFn: () => client.auctanePay.getConfig(),
35521
- queryKey: ["useGetAuctanePayConfig"],
35522
- select: (result) => result.data
35523
- }));
35524
- };
35525
-
35526
- var __defProp$F = Object.defineProperty;
35527
- var __defProps$C = Object.defineProperties;
35528
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
35529
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
35530
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
35531
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
35532
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35533
- var __spreadValues$F = (a, b) => {
35534
- for (var prop in b || (b = {}))
35535
- if (__hasOwnProp$O.call(b, prop))
35536
- __defNormalProp$F(a, prop, b[prop]);
35537
- if (__getOwnPropSymbols$O)
35538
- for (var prop of __getOwnPropSymbols$O(b)) {
35539
- if (__propIsEnum$O.call(b, prop))
35540
- __defNormalProp$F(a, prop, b[prop]);
35541
- }
35542
- return a;
35543
- };
35544
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35545
- var __async$S = (__this, __arguments, generator) => {
35745
+ var __async$U = (__this, __arguments, generator) => {
35546
35746
  return new Promise((resolve, reject) => {
35547
35747
  var fulfilled = (value) => {
35548
35748
  try {
@@ -35564,8 +35764,8 @@ var __async$S = (__this, __arguments, generator) => {
35564
35764
  };
35565
35765
  const usePreviewTransaction = (params) => {
35566
35766
  const { client } = useShipEngine();
35567
- return reactQuery.useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35568
- mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35767
+ return reactQuery.useMutation(__spreadProps$D(__spreadValues$G({}, params), {
35768
+ mutationFn: (_0) => __async$U(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35569
35769
  const request = {
35570
35770
  amount,
35571
35771
  transactionCategory
@@ -35578,6 +35778,36 @@ const usePreviewTransaction = (params) => {
35578
35778
  }));
35579
35779
  };
35580
35780
 
35781
+ var __defProp$F = Object.defineProperty;
35782
+ var __defProps$C = Object.defineProperties;
35783
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
35784
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
35785
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
35786
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
35787
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35788
+ var __spreadValues$F = (a, b) => {
35789
+ for (var prop in b || (b = {}))
35790
+ if (__hasOwnProp$O.call(b, prop))
35791
+ __defNormalProp$F(a, prop, b[prop]);
35792
+ if (__getOwnPropSymbols$O)
35793
+ for (var prop of __getOwnPropSymbols$O(b)) {
35794
+ if (__propIsEnum$O.call(b, prop))
35795
+ __defNormalProp$F(a, prop, b[prop]);
35796
+ }
35797
+ return a;
35798
+ };
35799
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
35800
+ const useGetPaymentMethods = (params) => {
35801
+ const { client } = useShipEngine();
35802
+ const queryParams = __spreadValues$F({}, params);
35803
+ return reactQuery.useQuery(__spreadProps$C(__spreadValues$F({}, queryParams), {
35804
+ onError,
35805
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35806
+ queryKey: ["useGetPaymentMethods"],
35807
+ select: (result) => result.data
35808
+ }));
35809
+ };
35810
+
35581
35811
  var __defProp$E = Object.defineProperty;
35582
35812
  var __defProps$B = Object.defineProperties;
35583
35813
  var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
@@ -35597,14 +35827,35 @@ var __spreadValues$E = (a, b) => {
35597
35827
  return a;
35598
35828
  };
35599
35829
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35600
- const useGetPaymentMethods = (params) => {
35830
+ var __async$T = (__this, __arguments, generator) => {
35831
+ return new Promise((resolve, reject) => {
35832
+ var fulfilled = (value) => {
35833
+ try {
35834
+ step(generator.next(value));
35835
+ } catch (e) {
35836
+ reject(e);
35837
+ }
35838
+ };
35839
+ var rejected = (value) => {
35840
+ try {
35841
+ step(generator.throw(value));
35842
+ } catch (e) {
35843
+ reject(e);
35844
+ }
35845
+ };
35846
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35847
+ step((generator = generator.apply(__this, __arguments)).next());
35848
+ });
35849
+ };
35850
+ const useDeletePaymentMethod = (params) => {
35601
35851
  const { client } = useShipEngine();
35602
- const queryParams = __spreadValues$E({}, params);
35603
- return reactQuery.useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
35604
- onError,
35605
- queryFn: () => client.auctanePay.getPaymentMethods(),
35606
- queryKey: ["useGetPaymentMethods"],
35607
- select: (result) => result.data
35852
+ return reactQuery.useMutation(__spreadProps$B(__spreadValues$E({}, params), {
35853
+ mutationFn: (paymentMethodId) => __async$T(void 0, null, function* () {
35854
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35855
+ return result.data;
35856
+ }),
35857
+ mutationKey: ["useDeletePaymentMethod"],
35858
+ onError
35608
35859
  }));
35609
35860
  };
35610
35861
 
@@ -35627,7 +35878,7 @@ var __spreadValues$D = (a, b) => {
35627
35878
  return a;
35628
35879
  };
35629
35880
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35630
- var __async$R = (__this, __arguments, generator) => {
35881
+ var __async$S = (__this, __arguments, generator) => {
35631
35882
  return new Promise((resolve, reject) => {
35632
35883
  var fulfilled = (value) => {
35633
35884
  try {
@@ -35647,14 +35898,14 @@ var __async$R = (__this, __arguments, generator) => {
35647
35898
  step((generator = generator.apply(__this, __arguments)).next());
35648
35899
  });
35649
35900
  };
35650
- const useDeletePaymentMethod = (params) => {
35901
+ const useUpdatePaymentMethod = (params) => {
35651
35902
  const { client } = useShipEngine();
35652
35903
  return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35653
- mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
35654
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35904
+ mutationFn: (_0) => __async$S(void 0, [_0], function* ({ paymentMethodId, payload }) {
35905
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35655
35906
  return result.data;
35656
35907
  }),
35657
- mutationKey: ["useDeletePaymentMethod"],
35908
+ mutationKey: ["useUpdatePaymentMethod"],
35658
35909
  onError
35659
35910
  }));
35660
35911
  };
@@ -35678,7 +35929,7 @@ var __spreadValues$C = (a, b) => {
35678
35929
  return a;
35679
35930
  };
35680
35931
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35681
- var __async$Q = (__this, __arguments, generator) => {
35932
+ var __async$R = (__this, __arguments, generator) => {
35682
35933
  return new Promise((resolve, reject) => {
35683
35934
  var fulfilled = (value) => {
35684
35935
  try {
@@ -35698,14 +35949,14 @@ var __async$Q = (__this, __arguments, generator) => {
35698
35949
  step((generator = generator.apply(__this, __arguments)).next());
35699
35950
  });
35700
35951
  };
35701
- const useUpdatePaymentMethod = (params) => {
35952
+ const useIdentityVerification = (params) => {
35702
35953
  const { client } = useShipEngine();
35703
35954
  return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35704
- mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
35705
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35955
+ mutationFn: () => __async$R(void 0, null, function* () {
35956
+ const result = yield client.auctanePay.identityVerification();
35706
35957
  return result.data;
35707
35958
  }),
35708
- mutationKey: ["useUpdatePaymentMethod"],
35959
+ mutationKey: ["useIdentityVerification"],
35709
35960
  onError
35710
35961
  }));
35711
35962
  };
@@ -35729,7 +35980,18 @@ var __spreadValues$B = (a, b) => {
35729
35980
  return a;
35730
35981
  };
35731
35982
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35732
- var __async$P = (__this, __arguments, generator) => {
35983
+ const useGetPaymentAccount = (params) => {
35984
+ const { client } = useShipEngine();
35985
+ const queryParams = __spreadValues$B({}, params);
35986
+ return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35987
+ onError,
35988
+ queryFn: () => client.auctanePay.getPaymentAccount(),
35989
+ queryKey: ["useGetPaymentAccount"],
35990
+ select: (result) => result.data
35991
+ }));
35992
+ };
35993
+
35994
+ var __async$Q = (__this, __arguments, generator) => {
35733
35995
  return new Promise((resolve, reject) => {
35734
35996
  var fulfilled = (value) => {
35735
35997
  try {
@@ -35749,49 +36011,19 @@ var __async$P = (__this, __arguments, generator) => {
35749
36011
  step((generator = generator.apply(__this, __arguments)).next());
35750
36012
  });
35751
36013
  };
35752
- const useIdentityVerification = (params) => {
36014
+ const useAcceptCarrierTerms = (carrierId) => {
35753
36015
  const { client } = useShipEngine();
35754
- return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35755
- mutationFn: () => __async$P(void 0, null, function* () {
35756
- const result = yield client.auctanePay.identityVerification();
35757
- return result.data;
36016
+ return reactQuery.useMutation({
36017
+ mutationFn: (request) => __async$Q(void 0, null, function* () {
36018
+ const result = yield client.carriers.acceptTerms(carrierId, request);
36019
+ return result.data.acceptedTerms;
35758
36020
  }),
35759
- mutationKey: ["useIdentityVerification"],
36021
+ mutationKey: ["useAcceptCarrierTerms", carrierId],
35760
36022
  onError
35761
- }));
35762
- };
35763
-
35764
- var __defProp$A = Object.defineProperty;
35765
- var __defProps$x = Object.defineProperties;
35766
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35767
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35768
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35769
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35770
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35771
- var __spreadValues$A = (a, b) => {
35772
- for (var prop in b || (b = {}))
35773
- if (__hasOwnProp$J.call(b, prop))
35774
- __defNormalProp$A(a, prop, b[prop]);
35775
- if (__getOwnPropSymbols$J)
35776
- for (var prop of __getOwnPropSymbols$J(b)) {
35777
- if (__propIsEnum$J.call(b, prop))
35778
- __defNormalProp$A(a, prop, b[prop]);
35779
- }
35780
- return a;
35781
- };
35782
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35783
- const useGetPaymentAccount = (params) => {
35784
- const { client } = useShipEngine();
35785
- const queryParams = __spreadValues$A({}, params);
35786
- return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35787
- onError,
35788
- queryFn: () => client.auctanePay.getPaymentAccount(),
35789
- queryKey: ["useGetPaymentAccount"],
35790
- select: (result) => result.data
35791
- }));
36023
+ });
35792
36024
  };
35793
36025
 
35794
- var __async$O = (__this, __arguments, generator) => {
36026
+ var __async$P = (__this, __arguments, generator) => {
35795
36027
  return new Promise((resolve, reject) => {
35796
36028
  var fulfilled = (value) => {
35797
36029
  try {
@@ -35814,7 +36046,7 @@ var __async$O = (__this, __arguments, generator) => {
35814
36046
  const useAddFunds = () => {
35815
36047
  const { client } = useShipEngine();
35816
36048
  return reactQuery.useMutation({
35817
- mutationFn: (_0) => __async$O(void 0, [_0], function* ({ carrierId, funds }) {
36049
+ mutationFn: (_0) => __async$P(void 0, [_0], function* ({ carrierId, funds }) {
35818
36050
  const result = yield client.carriers.addFunds(carrierId, funds);
35819
36051
  return result.data;
35820
36052
  }),
@@ -35823,7 +36055,7 @@ const useAddFunds = () => {
35823
36055
  });
35824
36056
  };
35825
36057
 
35826
- var __async$N = (__this, __arguments, generator) => {
36058
+ var __async$O = (__this, __arguments, generator) => {
35827
36059
  return new Promise((resolve, reject) => {
35828
36060
  var fulfilled = (value) => {
35829
36061
  try {
@@ -35846,7 +36078,7 @@ var __async$N = (__this, __arguments, generator) => {
35846
36078
  const useConnectCarrier = () => {
35847
36079
  const { client } = useShipEngine();
35848
36080
  return reactQuery.useMutation({
35849
- mutationFn: (params) => __async$N(void 0, null, function* () {
36081
+ mutationFn: (params) => __async$O(void 0, null, function* () {
35850
36082
  const result = yield client.carriers.connect(params);
35851
36083
  return result.data;
35852
36084
  }),
@@ -35955,41 +36187,41 @@ const useGetServicesByCarrier = (carrierId) => {
35955
36187
  });
35956
36188
  };
35957
36189
 
35958
- var __defProp$z = Object.defineProperty;
35959
- var __defProps$w = Object.defineProperties;
35960
- var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
35961
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
35962
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
35963
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
35964
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35965
- var __spreadValues$z = (a, b) => {
36190
+ var __defProp$A = Object.defineProperty;
36191
+ var __defProps$x = Object.defineProperties;
36192
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
36193
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
36194
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
36195
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
36196
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36197
+ var __spreadValues$A = (a, b) => {
35966
36198
  for (var prop in b || (b = {}))
35967
- if (__hasOwnProp$I.call(b, prop))
35968
- __defNormalProp$z(a, prop, b[prop]);
35969
- if (__getOwnPropSymbols$I)
35970
- for (var prop of __getOwnPropSymbols$I(b)) {
35971
- if (__propIsEnum$I.call(b, prop))
35972
- __defNormalProp$z(a, prop, b[prop]);
36199
+ if (__hasOwnProp$J.call(b, prop))
36200
+ __defNormalProp$A(a, prop, b[prop]);
36201
+ if (__getOwnPropSymbols$J)
36202
+ for (var prop of __getOwnPropSymbols$J(b)) {
36203
+ if (__propIsEnum$J.call(b, prop))
36204
+ __defNormalProp$A(a, prop, b[prop]);
35973
36205
  }
35974
36206
  return a;
35975
36207
  };
35976
- var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36208
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35977
36209
  var __objRest$r = (source, exclude) => {
35978
36210
  var target = {};
35979
36211
  for (var prop in source)
35980
- if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36212
+ if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
35981
36213
  target[prop] = source[prop];
35982
- if (source != null && __getOwnPropSymbols$I)
35983
- for (var prop of __getOwnPropSymbols$I(source)) {
35984
- if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36214
+ if (source != null && __getOwnPropSymbols$J)
36215
+ for (var prop of __getOwnPropSymbols$J(source)) {
36216
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
35985
36217
  target[prop] = source[prop];
35986
36218
  }
35987
36219
  return target;
35988
36220
  };
35989
36221
  const useListCarriers = (params) => {
35990
36222
  const { client } = useShipEngine();
35991
- const _a = __spreadValues$z({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
35992
- return reactQuery.useQuery(__spreadProps$w(__spreadValues$z({}, rest), {
36223
+ const _a = __spreadValues$A({}, params), { queryFnParams } = _a, rest = __objRest$r(_a, ["queryFnParams"]);
36224
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, rest), {
35993
36225
  onError,
35994
36226
  queryFn: () => client.carriers.list(queryFnParams),
35995
36227
  queryKey: ["useListCarriers", queryFnParams],
@@ -35997,22 +36229,22 @@ const useListCarriers = (params) => {
35997
36229
  }));
35998
36230
  };
35999
36231
 
36000
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36001
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36002
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36232
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
36233
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
36234
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
36003
36235
  var __objRest$q = (source, exclude) => {
36004
36236
  var target = {};
36005
36237
  for (var prop in source)
36006
- if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36238
+ if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
36007
36239
  target[prop] = source[prop];
36008
- if (source != null && __getOwnPropSymbols$H)
36009
- for (var prop of __getOwnPropSymbols$H(source)) {
36010
- if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36240
+ if (source != null && __getOwnPropSymbols$I)
36241
+ for (var prop of __getOwnPropSymbols$I(source)) {
36242
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$I.call(source, prop))
36011
36243
  target[prop] = source[prop];
36012
36244
  }
36013
36245
  return target;
36014
36246
  };
36015
- var __async$M = (__this, __arguments, generator) => {
36247
+ var __async$N = (__this, __arguments, generator) => {
36016
36248
  return new Promise((resolve, reject) => {
36017
36249
  var fulfilled = (value) => {
36018
36250
  try {
@@ -36036,7 +36268,7 @@ const useUpdateAutoFunding = () => {
36036
36268
  const { client } = useShipEngine();
36037
36269
  const queryClient = reactQuery.useQueryClient();
36038
36270
  return reactQuery.useMutation({
36039
- mutationFn: (_a) => __async$M(void 0, null, function* () {
36271
+ mutationFn: (_a) => __async$N(void 0, null, function* () {
36040
36272
  var _b = _a, { carrierId } = _b, options = __objRest$q(_b, ["carrierId"]);
36041
36273
  const result = yield client.carriers.updateAutoFunding(carrierId, options);
36042
36274
  return result.data;
@@ -36066,7 +36298,7 @@ const useGetZonesByCarrier = (carrierId) => {
36066
36298
  });
36067
36299
  };
36068
36300
 
36069
- var __async$L = (__this, __arguments, generator) => {
36301
+ var __async$M = (__this, __arguments, generator) => {
36070
36302
  return new Promise((resolve, reject) => {
36071
36303
  var fulfilled = (value) => {
36072
36304
  try {
@@ -36089,7 +36321,7 @@ var __async$L = (__this, __arguments, generator) => {
36089
36321
  const useDeleteCarrier = () => {
36090
36322
  const { client } = useShipEngine();
36091
36323
  return reactQuery.useMutation({
36092
- mutationFn: (carrierId) => __async$L(void 0, null, function* () {
36324
+ mutationFn: (carrierId) => __async$M(void 0, null, function* () {
36093
36325
  const result = yield client.carriers.delete(carrierId);
36094
36326
  return result.data;
36095
36327
  }),
@@ -36098,17 +36330,17 @@ const useDeleteCarrier = () => {
36098
36330
  });
36099
36331
  };
36100
36332
 
36101
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36102
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36103
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36333
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
36334
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
36335
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
36104
36336
  var __objRest$p = (source, exclude) => {
36105
36337
  var target = {};
36106
36338
  for (var prop in source)
36107
- if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36339
+ if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
36108
36340
  target[prop] = source[prop];
36109
- if (source != null && __getOwnPropSymbols$G)
36110
- for (var prop of __getOwnPropSymbols$G(source)) {
36111
- if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36341
+ if (source != null && __getOwnPropSymbols$H)
36342
+ for (var prop of __getOwnPropSymbols$H(source)) {
36343
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
36112
36344
  target[prop] = source[prop];
36113
36345
  }
36114
36346
  return target;
@@ -36125,17 +36357,17 @@ const useGetCarrierConnectionForm = (_params) => {
36125
36357
  });
36126
36358
  };
36127
36359
 
36128
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36129
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36130
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36360
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
36361
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
36362
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
36131
36363
  var __objRest$o = (source, exclude) => {
36132
36364
  var target = {};
36133
36365
  for (var prop in source)
36134
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
36366
+ if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
36135
36367
  target[prop] = source[prop];
36136
- if (source != null && __getOwnPropSymbols$F)
36137
- for (var prop of __getOwnPropSymbols$F(source)) {
36138
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
36368
+ if (source != null && __getOwnPropSymbols$G)
36369
+ for (var prop of __getOwnPropSymbols$G(source)) {
36370
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
36139
36371
  target[prop] = source[prop];
36140
36372
  }
36141
36373
  return target;
@@ -36152,26 +36384,26 @@ const useListCarrierConnections = (_params) => {
36152
36384
  });
36153
36385
  };
36154
36386
 
36155
- var __defProp$y = Object.defineProperty;
36156
- var __defProps$v = Object.defineProperties;
36157
- var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36158
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36159
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36160
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36161
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36162
- var __spreadValues$y = (a, b) => {
36387
+ var __defProp$z = Object.defineProperty;
36388
+ var __defProps$w = Object.defineProperties;
36389
+ var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
36390
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
36391
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
36392
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
36393
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36394
+ var __spreadValues$z = (a, b) => {
36163
36395
  for (var prop in b || (b = {}))
36164
- if (__hasOwnProp$E.call(b, prop))
36165
- __defNormalProp$y(a, prop, b[prop]);
36166
- if (__getOwnPropSymbols$E)
36167
- for (var prop of __getOwnPropSymbols$E(b)) {
36168
- if (__propIsEnum$E.call(b, prop))
36169
- __defNormalProp$y(a, prop, b[prop]);
36396
+ if (__hasOwnProp$F.call(b, prop))
36397
+ __defNormalProp$z(a, prop, b[prop]);
36398
+ if (__getOwnPropSymbols$F)
36399
+ for (var prop of __getOwnPropSymbols$F(b)) {
36400
+ if (__propIsEnum$F.call(b, prop))
36401
+ __defNormalProp$z(a, prop, b[prop]);
36170
36402
  }
36171
36403
  return a;
36172
36404
  };
36173
- var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36174
- var __async$K = (__this, __arguments, generator) => {
36405
+ var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
36406
+ var __async$L = (__this, __arguments, generator) => {
36175
36407
  return new Promise((resolve, reject) => {
36176
36408
  var fulfilled = (value) => {
36177
36409
  try {
@@ -36194,8 +36426,8 @@ var __async$K = (__this, __arguments, generator) => {
36194
36426
  const useConnectCarrierAccount = () => {
36195
36427
  const { client } = useShipEngine();
36196
36428
  return reactQuery.useMutation({
36197
- mutationFn: (_0) => __async$K(void 0, [_0], function* ({ carrierName, formData }) {
36198
- const formDataWithFlag = __spreadProps$v(__spreadValues$y({}, formData), { __skipDecamelize: true });
36429
+ mutationFn: (_0) => __async$L(void 0, [_0], function* ({ carrierName, formData }) {
36430
+ const formDataWithFlag = __spreadProps$w(__spreadValues$z({}, formData), { __skipDecamelize: true });
36199
36431
  const result = yield client.connections.connectCarrier(carrierName, formDataWithFlag);
36200
36432
  return result.data;
36201
36433
  }),
@@ -36215,33 +36447,33 @@ const useCarrierConnectionsServicesList = (carrierCode) => {
36215
36447
  });
36216
36448
  };
36217
36449
 
36218
- var __defProp$x = Object.defineProperty;
36219
- var __defProps$u = Object.defineProperties;
36220
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36221
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36222
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36223
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36224
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36225
- var __spreadValues$x = (a, b) => {
36450
+ var __defProp$y = Object.defineProperty;
36451
+ var __defProps$v = Object.defineProperties;
36452
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
36453
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
36454
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
36455
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
36456
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36457
+ var __spreadValues$y = (a, b) => {
36226
36458
  for (var prop in b || (b = {}))
36227
- if (__hasOwnProp$D.call(b, prop))
36228
- __defNormalProp$x(a, prop, b[prop]);
36229
- if (__getOwnPropSymbols$D)
36230
- for (var prop of __getOwnPropSymbols$D(b)) {
36231
- if (__propIsEnum$D.call(b, prop))
36232
- __defNormalProp$x(a, prop, b[prop]);
36459
+ if (__hasOwnProp$E.call(b, prop))
36460
+ __defNormalProp$y(a, prop, b[prop]);
36461
+ if (__getOwnPropSymbols$E)
36462
+ for (var prop of __getOwnPropSymbols$E(b)) {
36463
+ if (__propIsEnum$E.call(b, prop))
36464
+ __defNormalProp$y(a, prop, b[prop]);
36233
36465
  }
36234
36466
  return a;
36235
36467
  };
36236
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36468
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
36237
36469
  var __objRest$n = (source, exclude) => {
36238
36470
  var target = {};
36239
36471
  for (var prop in source)
36240
- if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
36472
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
36241
36473
  target[prop] = source[prop];
36242
- if (source != null && __getOwnPropSymbols$D)
36243
- for (var prop of __getOwnPropSymbols$D(source)) {
36244
- if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
36474
+ if (source != null && __getOwnPropSymbols$E)
36475
+ for (var prop of __getOwnPropSymbols$E(source)) {
36476
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
36245
36477
  target[prop] = source[prop];
36246
36478
  }
36247
36479
  return target;
@@ -36254,7 +36486,7 @@ const useGetConnectionsCarrierSettings = (_a) => {
36254
36486
  ]);
36255
36487
  const { client } = useShipEngine();
36256
36488
  const { carrierName, carrierId } = queryFnParams;
36257
- return reactQuery.useQuery(__spreadProps$u(__spreadValues$x({}, params), {
36489
+ return reactQuery.useQuery(__spreadProps$v(__spreadValues$y({}, params), {
36258
36490
  onError,
36259
36491
  queryFn: () => client.connections.getCarrierSettings(carrierName, carrierId),
36260
36492
  queryKey: ["useGetConnectionsCarrierSettings", carrierName, carrierId],
@@ -36262,26 +36494,26 @@ const useGetConnectionsCarrierSettings = (_a) => {
36262
36494
  }));
36263
36495
  };
36264
36496
 
36265
- var __defProp$w = Object.defineProperty;
36266
- var __defProps$t = Object.defineProperties;
36267
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36268
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36269
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36270
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36271
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36272
- var __spreadValues$w = (a, b) => {
36497
+ var __defProp$x = Object.defineProperty;
36498
+ var __defProps$u = Object.defineProperties;
36499
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
36500
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
36501
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
36502
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
36503
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36504
+ var __spreadValues$x = (a, b) => {
36273
36505
  for (var prop in b || (b = {}))
36274
- if (__hasOwnProp$C.call(b, prop))
36275
- __defNormalProp$w(a, prop, b[prop]);
36276
- if (__getOwnPropSymbols$C)
36277
- for (var prop of __getOwnPropSymbols$C(b)) {
36278
- if (__propIsEnum$C.call(b, prop))
36279
- __defNormalProp$w(a, prop, b[prop]);
36506
+ if (__hasOwnProp$D.call(b, prop))
36507
+ __defNormalProp$x(a, prop, b[prop]);
36508
+ if (__getOwnPropSymbols$D)
36509
+ for (var prop of __getOwnPropSymbols$D(b)) {
36510
+ if (__propIsEnum$D.call(b, prop))
36511
+ __defNormalProp$x(a, prop, b[prop]);
36280
36512
  }
36281
36513
  return a;
36282
36514
  };
36283
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36284
- var __async$J = (__this, __arguments, generator) => {
36515
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
36516
+ var __async$K = (__this, __arguments, generator) => {
36285
36517
  return new Promise((resolve, reject) => {
36286
36518
  var fulfilled = (value) => {
36287
36519
  try {
@@ -36303,8 +36535,8 @@ var __async$J = (__this, __arguments, generator) => {
36303
36535
  };
36304
36536
  const useUpdateConnectionsCarrierSettings = (params) => {
36305
36537
  const { client } = useShipEngine();
36306
- return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36307
- mutationFn: (_0) => __async$J(void 0, [_0], function* ({
36538
+ return reactQuery.useMutation(__spreadProps$u(__spreadValues$x({}, params), {
36539
+ mutationFn: (_0) => __async$K(void 0, [_0], function* ({
36308
36540
  carrierName,
36309
36541
  carrierId,
36310
36542
  formData
@@ -36321,26 +36553,26 @@ const useUpdateConnectionsCarrierSettings = (params) => {
36321
36553
  }));
36322
36554
  };
36323
36555
 
36324
- var __defProp$v = Object.defineProperty;
36325
- var __defProps$s = Object.defineProperties;
36326
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36327
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36328
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36329
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36330
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36331
- var __spreadValues$v = (a, b) => {
36556
+ var __defProp$w = Object.defineProperty;
36557
+ var __defProps$t = Object.defineProperties;
36558
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
36559
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
36560
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
36561
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
36562
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36563
+ var __spreadValues$w = (a, b) => {
36332
36564
  for (var prop in b || (b = {}))
36333
- if (__hasOwnProp$B.call(b, prop))
36334
- __defNormalProp$v(a, prop, b[prop]);
36335
- if (__getOwnPropSymbols$B)
36336
- for (var prop of __getOwnPropSymbols$B(b)) {
36337
- if (__propIsEnum$B.call(b, prop))
36338
- __defNormalProp$v(a, prop, b[prop]);
36565
+ if (__hasOwnProp$C.call(b, prop))
36566
+ __defNormalProp$w(a, prop, b[prop]);
36567
+ if (__getOwnPropSymbols$C)
36568
+ for (var prop of __getOwnPropSymbols$C(b)) {
36569
+ if (__propIsEnum$C.call(b, prop))
36570
+ __defNormalProp$w(a, prop, b[prop]);
36339
36571
  }
36340
36572
  return a;
36341
36573
  };
36342
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36343
- var __async$I = (__this, __arguments, generator) => {
36574
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
36575
+ var __async$J = (__this, __arguments, generator) => {
36344
36576
  return new Promise((resolve, reject) => {
36345
36577
  var fulfilled = (value) => {
36346
36578
  try {
@@ -36362,8 +36594,8 @@ var __async$I = (__this, __arguments, generator) => {
36362
36594
  };
36363
36595
  const useRequestStampsAccountUrls = (params) => {
36364
36596
  const { client } = useShipEngine();
36365
- return reactQuery.useMutation(__spreadProps$s(__spreadValues$v({}, params), {
36366
- mutationFn: (request) => __async$I(void 0, null, function* () {
36597
+ return reactQuery.useMutation(__spreadProps$t(__spreadValues$w({}, params), {
36598
+ mutationFn: (request) => __async$J(void 0, null, function* () {
36367
36599
  const result = yield client.connections.requestStampsAccountUrls(request);
36368
36600
  return result.data;
36369
36601
  }),
@@ -36382,6 +36614,38 @@ const useListCustomPackageTypes = () => {
36382
36614
  });
36383
36615
  };
36384
36616
 
36617
+ var __async$I = (__this, __arguments, generator) => {
36618
+ return new Promise((resolve, reject) => {
36619
+ var fulfilled = (value) => {
36620
+ try {
36621
+ step(generator.next(value));
36622
+ } catch (e) {
36623
+ reject(e);
36624
+ }
36625
+ };
36626
+ var rejected = (value) => {
36627
+ try {
36628
+ step(generator.throw(value));
36629
+ } catch (e) {
36630
+ reject(e);
36631
+ }
36632
+ };
36633
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
36634
+ step((generator = generator.apply(__this, __arguments)).next());
36635
+ });
36636
+ };
36637
+ const useAcceptFundingSourceTerms = (fundingSourceId) => {
36638
+ const { client } = useShipEngine();
36639
+ return reactQuery.useMutation({
36640
+ mutationFn: (request) => __async$I(void 0, null, function* () {
36641
+ const result = yield client.fundingSources.acceptTerms(fundingSourceId, request);
36642
+ return result.data.acceptedTerms;
36643
+ }),
36644
+ mutationKey: ["useAcceptFundingSourceTerms", fundingSourceId],
36645
+ onError
36646
+ });
36647
+ };
36648
+
36385
36649
  var __async$H = (__this, __arguments, generator) => {
36386
36650
  return new Promise((resolve, reject) => {
36387
36651
  var fulfilled = (value) => {
@@ -36446,6 +36710,36 @@ const useFundingSourcesAddFunds = () => {
36446
36710
  });
36447
36711
  };
36448
36712
 
36713
+ var __defProp$v = Object.defineProperty;
36714
+ var __defProps$s = Object.defineProperties;
36715
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
36716
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
36717
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
36718
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
36719
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
36720
+ var __spreadValues$v = (a, b) => {
36721
+ for (var prop in b || (b = {}))
36722
+ if (__hasOwnProp$B.call(b, prop))
36723
+ __defNormalProp$v(a, prop, b[prop]);
36724
+ if (__getOwnPropSymbols$B)
36725
+ for (var prop of __getOwnPropSymbols$B(b)) {
36726
+ if (__propIsEnum$B.call(b, prop))
36727
+ __defNormalProp$v(a, prop, b[prop]);
36728
+ }
36729
+ return a;
36730
+ };
36731
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
36732
+ const useGetFundingSourceAcceptedTerms = (fundingSourceId, params) => {
36733
+ const { client } = useShipEngine();
36734
+ const queryParams = __spreadValues$v({}, params);
36735
+ return reactQuery.useQuery(__spreadProps$s(__spreadValues$v({}, queryParams), {
36736
+ onError,
36737
+ queryFn: () => client.fundingSources.acceptedTerms(fundingSourceId),
36738
+ queryKey: ["useGetFundingSourceAcceptedTerms", fundingSourceId],
36739
+ select: (result) => result.data.acceptedTerms
36740
+ }));
36741
+ };
36742
+
36449
36743
  const useGetFundingSourceById = (fundingSourceId) => {
36450
36744
  const { client } = useShipEngine();
36451
36745
  return reactQuery.useQuery({
@@ -40311,6 +40605,7 @@ exports.AccountBillingAPI = AccountBillingAPI;
40311
40605
  exports.AccountBillingPlanAPI = AccountBillingPlanAPI;
40312
40606
  exports.AccountBillingPlanChangeType = AccountBillingPlanChangeType;
40313
40607
  exports.AccountFeaturesAPI = AccountFeaturesAPI;
40608
+ exports.AccountRefundAssistAPI = AccountRefundAssistAPI;
40314
40609
  exports.AccountSettingsAPI = AccountSettingsAPI;
40315
40610
  exports.AddressesAPI = AddressesAPI;
40316
40611
  exports.AlchemyContext = AlchemyContext;
@@ -40371,6 +40666,8 @@ exports.logger = logger;
40371
40666
  exports.onError = onError;
40372
40667
  exports.parseError = parseError;
40373
40668
  exports.retryUntil = retryUntil;
40669
+ exports.useAcceptCarrierTerms = useAcceptCarrierTerms;
40670
+ exports.useAcceptFundingSourceTerms = useAcceptFundingSourceTerms;
40374
40671
  exports.useAddFunds = useAddFunds;
40375
40672
  exports.useAddInsuranceFunds = useAddInsuranceFunds;
40376
40673
  exports.useAddSandboxCarriers = useAddSandboxCarriers;
@@ -40405,9 +40702,11 @@ exports.useDeleteShippingRule = useDeleteShippingRule;
40405
40702
  exports.useDeleteWarehouse = useDeleteWarehouse;
40406
40703
  exports.useDeleteWebhook = useDeleteWebhook;
40407
40704
  exports.useDisableAccountAddon = useDisableAccountAddon;
40705
+ exports.useDisableRefundAssist = useDisableRefundAssist;
40408
40706
  exports.useDownloadRateCard = useDownloadRateCard;
40409
40707
  exports.useEditShippingRule = useEditShippingRule;
40410
40708
  exports.useEnableAccountAddon = useEnableAccountAddon;
40709
+ exports.useEnableRefundAssist = useEnableRefundAssist;
40411
40710
  exports.useExportLabels = useExportLabels;
40412
40711
  exports.useExportShipments = useExportShipments;
40413
40712
  exports.useFundingSourcesAddFunds = useFundingSourcesAddFunds;
@@ -40422,6 +40721,7 @@ exports.useGetCarrierConnectionForm = useGetCarrierConnectionForm;
40422
40721
  exports.useGetConnectionsCarrierSettings = useGetConnectionsCarrierSettings;
40423
40722
  exports.useGetCountriesByCarrier = useGetCountriesByCarrier;
40424
40723
  exports.useGetCurrenciesByCarrier = useGetCurrenciesByCarrier;
40724
+ exports.useGetFundingSourceAcceptedTerms = useGetFundingSourceAcceptedTerms;
40425
40725
  exports.useGetFundingSourceById = useGetFundingSourceById;
40426
40726
  exports.useGetFundingSourceMetadata = useGetFundingSourceMetadata;
40427
40727
  exports.useGetFundingSourceTransactions = useGetFundingSourceTransactions;
@@ -40434,6 +40734,7 @@ exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
40434
40734
  exports.useGetPaymentAccount = useGetPaymentAccount;
40435
40735
  exports.useGetPaymentMethods = useGetPaymentMethods;
40436
40736
  exports.useGetRateCardById = useGetRateCardById;
40737
+ exports.useGetRefundAssist = useGetRefundAssist;
40437
40738
  exports.useGetSalesOrder = useGetSalesOrder;
40438
40739
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;
40439
40740
  exports.useGetSalesOrderShipment = useGetSalesOrderShipment;