@shipengine/alchemy 6.0.65 → 6.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +329 -232
  2. package/index.mjs +328 -233
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10822,17 +10822,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10822
10822
  return AccountBillingPlanChangeType2;
10823
10823
  })(AccountBillingPlanChangeType || {});
10824
10824
 
10825
- var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
10826
- var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
10827
- var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
10825
+ var __getOwnPropSymbols$$ = Object.getOwnPropertySymbols;
10826
+ var __hasOwnProp$$ = Object.prototype.hasOwnProperty;
10827
+ var __propIsEnum$$ = Object.prototype.propertyIsEnumerable;
10828
10828
  var __objRest$x = (source, exclude) => {
10829
10829
  var target = {};
10830
10830
  for (var prop in source)
10831
- if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
10831
+ if (__hasOwnProp$$.call(source, prop) && exclude.indexOf(prop) < 0)
10832
10832
  target[prop] = source[prop];
10833
- if (source != null && __getOwnPropSymbols$Z)
10834
- for (var prop of __getOwnPropSymbols$Z(source)) {
10835
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
10833
+ if (source != null && __getOwnPropSymbols$$)
10834
+ for (var prop of __getOwnPropSymbols$$(source)) {
10835
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$$.call(source, prop))
10836
10836
  target[prop] = source[prop];
10837
10837
  }
10838
10838
  return target;
@@ -10967,17 +10967,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10967
10967
  RateCardStatus
10968
10968
  }, Symbol.toStringTag, { value: 'Module' }));
10969
10969
 
10970
- var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
10971
- var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
10972
- var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
10970
+ var __getOwnPropSymbols$_ = Object.getOwnPropertySymbols;
10971
+ var __hasOwnProp$_ = Object.prototype.hasOwnProperty;
10972
+ var __propIsEnum$_ = Object.prototype.propertyIsEnumerable;
10973
10973
  var __objRest$w = (source, exclude) => {
10974
10974
  var target = {};
10975
10975
  for (var prop in source)
10976
- if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
10976
+ if (__hasOwnProp$_.call(source, prop) && exclude.indexOf(prop) < 0)
10977
10977
  target[prop] = source[prop];
10978
- if (source != null && __getOwnPropSymbols$Y)
10979
- for (var prop of __getOwnPropSymbols$Y(source)) {
10980
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
10978
+ if (source != null && __getOwnPropSymbols$_)
10979
+ for (var prop of __getOwnPropSymbols$_(source)) {
10980
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$_.call(source, prop))
10981
10981
  target[prop] = source[prop];
10982
10982
  }
10983
10983
  return target;
@@ -11122,6 +11122,20 @@ class AuctanePayAPI {
11122
11122
  payload
11123
11123
  );
11124
11124
  };
11125
+ /**
11126
+ * The `identityVerification` method returns a Plaid IDV verification URL for a given user
11127
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Identity-verification
11128
+ */
11129
+ this.identityVerification = () => {
11130
+ return this.client.post("/v1/payments/identity_verification");
11131
+ };
11132
+ /**
11133
+ * The `getPaymentAccount` method returns the Payment Account data for a given user
11134
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API
11135
+ */
11136
+ this.getPaymentAccount = () => {
11137
+ return this.client.get("/v1/payments/account");
11138
+ };
11125
11139
  this.client = client;
11126
11140
  }
11127
11141
  }
@@ -13831,7 +13845,7 @@ var ipaddr = {
13831
13845
  }).call(commonjsGlobal);
13832
13846
  } (ipaddr));
13833
13847
 
13834
- var __async$14 = (__this, __arguments, generator) => {
13848
+ var __async$15 = (__this, __arguments, generator) => {
13835
13849
  return new Promise((resolve, reject) => {
13836
13850
  var fulfilled = (value) => {
13837
13851
  try {
@@ -13851,7 +13865,7 @@ var __async$14 = (__this, __arguments, generator) => {
13851
13865
  step((generator = generator.apply(__this, __arguments)).next());
13852
13866
  });
13853
13867
  };
13854
- const getEndUserIpAddress = () => __async$14(void 0, null, function* () {
13868
+ const getEndUserIpAddress = () => __async$15(void 0, null, function* () {
13855
13869
  try {
13856
13870
  const response = yield axios.get("https://api.ipify.org/?format=json");
13857
13871
  if (response.data.ip && ipaddrExports.isValid(response.data.ip)) {
@@ -13912,38 +13926,38 @@ const decamelizeKeys = (obj, separator = "_") => {
13912
13926
  return obj;
13913
13927
  };
13914
13928
 
13915
- var __defProp$M = Object.defineProperty;
13916
- var __defProps$G = Object.defineProperties;
13917
- var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
13918
- var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
13919
- var __hasOwnProp$X = Object.prototype.hasOwnProperty;
13920
- var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
13921
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13922
- var __spreadValues$M = (a, b) => {
13929
+ var __defProp$O = Object.defineProperty;
13930
+ var __defProps$I = Object.defineProperties;
13931
+ var __getOwnPropDescs$I = Object.getOwnPropertyDescriptors;
13932
+ var __getOwnPropSymbols$Z = Object.getOwnPropertySymbols;
13933
+ var __hasOwnProp$Z = Object.prototype.hasOwnProperty;
13934
+ var __propIsEnum$Z = Object.prototype.propertyIsEnumerable;
13935
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13936
+ var __spreadValues$O = (a, b) => {
13923
13937
  for (var prop in b || (b = {}))
13924
- if (__hasOwnProp$X.call(b, prop))
13925
- __defNormalProp$M(a, prop, b[prop]);
13926
- if (__getOwnPropSymbols$X)
13927
- for (var prop of __getOwnPropSymbols$X(b)) {
13928
- if (__propIsEnum$X.call(b, prop))
13929
- __defNormalProp$M(a, prop, b[prop]);
13938
+ if (__hasOwnProp$Z.call(b, prop))
13939
+ __defNormalProp$O(a, prop, b[prop]);
13940
+ if (__getOwnPropSymbols$Z)
13941
+ for (var prop of __getOwnPropSymbols$Z(b)) {
13942
+ if (__propIsEnum$Z.call(b, prop))
13943
+ __defNormalProp$O(a, prop, b[prop]);
13930
13944
  }
13931
13945
  return a;
13932
13946
  };
13933
- var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
13947
+ var __spreadProps$I = (a, b) => __defProps$I(a, __getOwnPropDescs$I(b));
13934
13948
  var __objRest$v = (source, exclude) => {
13935
13949
  var target = {};
13936
13950
  for (var prop in source)
13937
- if (__hasOwnProp$X.call(source, prop) && exclude.indexOf(prop) < 0)
13951
+ if (__hasOwnProp$Z.call(source, prop) && exclude.indexOf(prop) < 0)
13938
13952
  target[prop] = source[prop];
13939
- if (source != null && __getOwnPropSymbols$X)
13940
- for (var prop of __getOwnPropSymbols$X(source)) {
13941
- if (exclude.indexOf(prop) < 0 && __propIsEnum$X.call(source, prop))
13953
+ if (source != null && __getOwnPropSymbols$Z)
13954
+ for (var prop of __getOwnPropSymbols$Z(source)) {
13955
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Z.call(source, prop))
13942
13956
  target[prop] = source[prop];
13943
13957
  }
13944
13958
  return target;
13945
13959
  };
13946
- var __async$13 = (__this, __arguments, generator) => {
13960
+ var __async$14 = (__this, __arguments, generator) => {
13947
13961
  return new Promise((resolve, reject) => {
13948
13962
  var fulfilled = (value) => {
13949
13963
  try {
@@ -13983,12 +13997,12 @@ class CarriersAPI {
13983
13997
  /**
13984
13998
  * The `connect` method connects a carrier account to a user's ShipEngine account.
13985
13999
  */
13986
- this.connect = (_a) => __async$13(this, null, function* () {
14000
+ this.connect = (_a) => __async$14(this, null, function* () {
13987
14001
  var _b = _a, { carrierCode } = _b, connection = __objRest$v(_b, ["carrierCode"]);
13988
14002
  const endUserIpAddress = yield getEndUserIpAddress();
13989
14003
  if (!endUserIpAddress)
13990
14004
  return Promise.reject([new CodedError("Unable to get IP address")]);
13991
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$G(__spreadValues$M({}, connection), {
14005
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$I(__spreadValues$O({}, connection), {
13992
14006
  endUserIpAddress
13993
14007
  }));
13994
14008
  });
@@ -14072,22 +14086,22 @@ class CarriersAPI {
14072
14086
  }
14073
14087
  }
14074
14088
 
14075
- var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
14076
- var __hasOwnProp$W = Object.prototype.hasOwnProperty;
14077
- var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
14089
+ var __getOwnPropSymbols$Y = Object.getOwnPropertySymbols;
14090
+ var __hasOwnProp$Y = Object.prototype.hasOwnProperty;
14091
+ var __propIsEnum$Y = Object.prototype.propertyIsEnumerable;
14078
14092
  var __objRest$u = (source, exclude) => {
14079
14093
  var target = {};
14080
14094
  for (var prop in source)
14081
- if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
14095
+ if (__hasOwnProp$Y.call(source, prop) && exclude.indexOf(prop) < 0)
14082
14096
  target[prop] = source[prop];
14083
- if (source != null && __getOwnPropSymbols$W)
14084
- for (var prop of __getOwnPropSymbols$W(source)) {
14085
- if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
14097
+ if (source != null && __getOwnPropSymbols$Y)
14098
+ for (var prop of __getOwnPropSymbols$Y(source)) {
14099
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$Y.call(source, prop))
14086
14100
  target[prop] = source[prop];
14087
14101
  }
14088
14102
  return target;
14089
14103
  };
14090
- var __async$12 = (__this, __arguments, generator) => {
14104
+ var __async$13 = (__this, __arguments, generator) => {
14091
14105
  return new Promise((resolve, reject) => {
14092
14106
  var fulfilled = (value) => {
14093
14107
  try {
@@ -14129,7 +14143,7 @@ class ConnectionsAPI {
14129
14143
  /**
14130
14144
  * The `connectCarrier` method connects a carrier to account.
14131
14145
  */
14132
- this.connectCarrier = (carrierName, formData) => __async$12(this, null, function* () {
14146
+ this.connectCarrier = (carrierName, formData) => __async$13(this, null, function* () {
14133
14147
  return yield this.client.post(
14134
14148
  `/v1/connections/carriers/${carrierName}`,
14135
14149
  formData,
@@ -16297,23 +16311,23 @@ class CustomPackagesAPI {
16297
16311
  }
16298
16312
  }
16299
16313
 
16300
- var __defProp$L = Object.defineProperty;
16301
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16302
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16303
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16304
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16305
- var __spreadValues$L = (a, b) => {
16314
+ var __defProp$N = Object.defineProperty;
16315
+ var __getOwnPropSymbols$X = Object.getOwnPropertySymbols;
16316
+ var __hasOwnProp$X = Object.prototype.hasOwnProperty;
16317
+ var __propIsEnum$X = Object.prototype.propertyIsEnumerable;
16318
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16319
+ var __spreadValues$N = (a, b) => {
16306
16320
  for (var prop in b || (b = {}))
16307
- if (__hasOwnProp$V.call(b, prop))
16308
- __defNormalProp$L(a, prop, b[prop]);
16309
- if (__getOwnPropSymbols$V)
16310
- for (var prop of __getOwnPropSymbols$V(b)) {
16311
- if (__propIsEnum$V.call(b, prop))
16312
- __defNormalProp$L(a, prop, b[prop]);
16321
+ if (__hasOwnProp$X.call(b, prop))
16322
+ __defNormalProp$N(a, prop, b[prop]);
16323
+ if (__getOwnPropSymbols$X)
16324
+ for (var prop of __getOwnPropSymbols$X(b)) {
16325
+ if (__propIsEnum$X.call(b, prop))
16326
+ __defNormalProp$N(a, prop, b[prop]);
16313
16327
  }
16314
16328
  return a;
16315
16329
  };
16316
- var __async$11 = (__this, __arguments, generator) => {
16330
+ var __async$12 = (__this, __arguments, generator) => {
16317
16331
  return new Promise((resolve, reject) => {
16318
16332
  var fulfilled = (value) => {
16319
16333
  try {
@@ -16352,12 +16366,12 @@ class FundingSourcesAPI {
16352
16366
  * The `create` method creates a new funding source for a given user. This requires
16353
16367
  * payment information to be collected from the user.
16354
16368
  */
16355
- this.create = (createFundingSource) => __async$11(this, null, function* () {
16369
+ this.create = (createFundingSource) => __async$12(this, null, function* () {
16356
16370
  const endUserIpAddress = yield getEndUserIpAddress();
16357
16371
  if (!endUserIpAddress) {
16358
16372
  return Promise.reject([new CodedError("Unable to get IP address")]);
16359
16373
  }
16360
- return yield this.client.post("/v1/funding_sources", __spreadValues$L({
16374
+ return yield this.client.post("/v1/funding_sources", __spreadValues$N({
16361
16375
  endUserIpAddress
16362
16376
  }, createFundingSource));
16363
16377
  });
@@ -16366,7 +16380,7 @@ class FundingSourcesAPI {
16366
16380
  * user to update the billing address or payment information associated with the
16367
16381
  * funding source.
16368
16382
  */
16369
- this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$11(this, null, function* () {
16383
+ this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$12(this, null, function* () {
16370
16384
  const endUserIpAddress = yield getEndUserIpAddress();
16371
16385
  if (!endUserIpAddress) {
16372
16386
  return Promise.reject([new CodedError("Unable to get IP address")]);
@@ -16376,7 +16390,7 @@ class FundingSourcesAPI {
16376
16390
  {
16377
16391
  billingInfo,
16378
16392
  endUserIpAddress,
16379
- paymentMethod: __spreadValues$L({
16393
+ paymentMethod: __spreadValues$N({
16380
16394
  creditCardInfo
16381
16395
  }, auctanePayInfo)
16382
16396
  }
@@ -16386,19 +16400,19 @@ class FundingSourcesAPI {
16386
16400
  * The `registerCarrier` method registers a carrier account and associates
16387
16401
  * it with a given funding source.
16388
16402
  */
16389
- this.registerCarrier = (carrier) => __async$11(this, null, function* () {
16403
+ this.registerCarrier = (carrier) => __async$12(this, null, function* () {
16390
16404
  const endUserIpAddress = yield getEndUserIpAddress();
16391
16405
  if (!endUserIpAddress) {
16392
16406
  return Promise.reject([new CodedError("Unable to get IP address")]);
16393
16407
  }
16394
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$L({
16408
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$N({
16395
16409
  endUserIpAddress
16396
16410
  }, carrier));
16397
16411
  });
16398
16412
  /**
16399
16413
  * The `addFunds` method allows you to add funds to a funding source.
16400
16414
  */
16401
- this.addFunds = (amount, fundingSourceId) => __async$11(this, null, function* () {
16415
+ this.addFunds = (amount, fundingSourceId) => __async$12(this, null, function* () {
16402
16416
  return yield this.client.put(
16403
16417
  `/v1/funding_sources/${fundingSourceId}/add_funds`,
16404
16418
  amount
@@ -16408,7 +16422,7 @@ class FundingSourcesAPI {
16408
16422
  * The `metadata` method returns seller-specific requirements for creating funding sources
16409
16423
  * and attaching carriers
16410
16424
  */
16411
- this.metadata = () => __async$11(this, null, function* () {
16425
+ this.metadata = () => __async$12(this, null, function* () {
16412
16426
  return yield this.client.get("/v1/funding_sources/metadata");
16413
16427
  });
16414
16428
  /**
@@ -16460,7 +16474,7 @@ class InsuranceAPI {
16460
16474
  }
16461
16475
  }
16462
16476
 
16463
- var __async$10 = (__this, __arguments, generator) => {
16477
+ var __async$11 = (__this, __arguments, generator) => {
16464
16478
  return new Promise((resolve, reject) => {
16465
16479
  var fulfilled = (value) => {
16466
16480
  try {
@@ -16492,13 +16506,13 @@ class InvoiceAddressAPI {
16492
16506
  /**
16493
16507
  * The `create` method creates a new invoice address for a given user.
16494
16508
  */
16495
- this.create = (invoiceAddress) => __async$10(this, null, function* () {
16509
+ this.create = (invoiceAddress) => __async$11(this, null, function* () {
16496
16510
  return yield this.client.post("/v1/invoice_address", invoiceAddress);
16497
16511
  });
16498
16512
  /**
16499
16513
  * The `update` method updates a invoice address for a given user.
16500
16514
  */
16501
- this.update = (invoiceAddress) => __async$10(this, null, function* () {
16515
+ this.update = (invoiceAddress) => __async$11(this, null, function* () {
16502
16516
  return yield this.client.put("/v1/invoice_address", invoiceAddress);
16503
16517
  });
16504
16518
  this.client = client;
@@ -16560,17 +16574,17 @@ class LabelsAPI {
16560
16574
  }
16561
16575
  }
16562
16576
 
16563
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16564
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16565
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16577
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
16578
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
16579
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
16566
16580
  var __objRest$t = (source, exclude) => {
16567
16581
  var target = {};
16568
16582
  for (var prop in source)
16569
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
16583
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
16570
16584
  target[prop] = source[prop];
16571
- if (source != null && __getOwnPropSymbols$U)
16572
- for (var prop of __getOwnPropSymbols$U(source)) {
16573
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
16585
+ if (source != null && __getOwnPropSymbols$W)
16586
+ for (var prop of __getOwnPropSymbols$W(source)) {
16587
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
16574
16588
  target[prop] = source[prop];
16575
16589
  }
16576
16590
  return target;
@@ -16691,19 +16705,19 @@ class RateCardsAPI {
16691
16705
  }
16692
16706
  }
16693
16707
 
16694
- var __defProp$K = Object.defineProperty;
16695
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
16696
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
16697
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
16698
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16699
- var __spreadValues$K = (a, b) => {
16708
+ var __defProp$M = Object.defineProperty;
16709
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
16710
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
16711
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
16712
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16713
+ var __spreadValues$M = (a, b) => {
16700
16714
  for (var prop in b || (b = {}))
16701
- if (__hasOwnProp$T.call(b, prop))
16702
- __defNormalProp$K(a, prop, b[prop]);
16703
- if (__getOwnPropSymbols$T)
16704
- for (var prop of __getOwnPropSymbols$T(b)) {
16705
- if (__propIsEnum$T.call(b, prop))
16706
- __defNormalProp$K(a, prop, b[prop]);
16715
+ if (__hasOwnProp$V.call(b, prop))
16716
+ __defNormalProp$M(a, prop, b[prop]);
16717
+ if (__getOwnPropSymbols$V)
16718
+ for (var prop of __getOwnPropSymbols$V(b)) {
16719
+ if (__propIsEnum$V.call(b, prop))
16720
+ __defNormalProp$M(a, prop, b[prop]);
16707
16721
  }
16708
16722
  return a;
16709
16723
  };
@@ -16725,7 +16739,7 @@ class RatesAPI {
16725
16739
  * method.
16726
16740
  */
16727
16741
  this.estimate = (params) => {
16728
- return this.client.post("/v1/rates/estimate", __spreadValues$K({}, params));
16742
+ return this.client.post("/v1/rates/estimate", __spreadValues$M({}, params));
16729
16743
  };
16730
16744
  this.client = client;
16731
16745
  }
@@ -16805,7 +16819,7 @@ class SalesOrdersAPI {
16805
16819
  }
16806
16820
  }
16807
16821
 
16808
- var __async$$ = (__this, __arguments, generator) => {
16822
+ var __async$10 = (__this, __arguments, generator) => {
16809
16823
  return new Promise((resolve, reject) => {
16810
16824
  var fulfilled = (value) => {
16811
16825
  try {
@@ -16863,7 +16877,7 @@ class SellersAPI {
16863
16877
  /**
16864
16878
  * Deletes an API Key
16865
16879
  */
16866
- this.deleteSellerApiKey = (_0) => __async$$(this, [_0], function* ({
16880
+ this.deleteSellerApiKey = (_0) => __async$10(this, [_0], function* ({
16867
16881
  encryptedApiKey,
16868
16882
  sellerId,
16869
16883
  isSandbox
@@ -16909,19 +16923,19 @@ class SellersAPI {
16909
16923
  }
16910
16924
  }
16911
16925
 
16912
- var __defProp$J = Object.defineProperty;
16913
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16914
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16915
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16916
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16917
- var __spreadValues$J = (a, b) => {
16926
+ var __defProp$L = Object.defineProperty;
16927
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
16928
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
16929
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
16930
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16931
+ var __spreadValues$L = (a, b) => {
16918
16932
  for (var prop in b || (b = {}))
16919
- if (__hasOwnProp$S.call(b, prop))
16920
- __defNormalProp$J(a, prop, b[prop]);
16921
- if (__getOwnPropSymbols$S)
16922
- for (var prop of __getOwnPropSymbols$S(b)) {
16923
- if (__propIsEnum$S.call(b, prop))
16924
- __defNormalProp$J(a, prop, b[prop]);
16933
+ if (__hasOwnProp$U.call(b, prop))
16934
+ __defNormalProp$L(a, prop, b[prop]);
16935
+ if (__getOwnPropSymbols$U)
16936
+ for (var prop of __getOwnPropSymbols$U(b)) {
16937
+ if (__propIsEnum$U.call(b, prop))
16938
+ __defNormalProp$L(a, prop, b[prop]);
16925
16939
  }
16926
16940
  return a;
16927
16941
  };
@@ -16933,7 +16947,7 @@ class ServicePointsAPI {
16933
16947
  * Either an address, coordinates, or an address query
16934
16948
  */
16935
16949
  this.list = (options) => {
16936
- return this.client.post("/v1/service_points/list", __spreadValues$J({}, options));
16950
+ return this.client.post("/v1/service_points/list", __spreadValues$L({}, options));
16937
16951
  };
16938
16952
  /**
16939
16953
  * Get a specific service point by its carrier code, country code, and id
@@ -16951,7 +16965,7 @@ class ServicePointsAPI {
16951
16965
  }
16952
16966
  }
16953
16967
 
16954
- var __async$_ = (__this, __arguments, generator) => {
16968
+ var __async$$ = (__this, __arguments, generator) => {
16955
16969
  return new Promise((resolve, reject) => {
16956
16970
  var fulfilled = (value) => {
16957
16971
  try {
@@ -17000,7 +17014,7 @@ class ShipmentsAPI {
17000
17014
  * The `create` method allows for creating shipments based on a list of shipment
17001
17015
  * items passed into this method.
17002
17016
  */
17003
- this.create = (...shipments) => __async$_(this, null, function* () {
17017
+ this.create = (...shipments) => __async$$(this, null, function* () {
17004
17018
  return this.client.post("/v1/shipments", {
17005
17019
  shipments
17006
17020
  });
@@ -34417,38 +34431,38 @@ class WebhooksAPI {
34417
34431
  }
34418
34432
  }
34419
34433
 
34420
- var __defProp$I = Object.defineProperty;
34421
- var __defProps$F = Object.defineProperties;
34422
- var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
34423
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
34424
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
34425
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
34426
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34427
- var __spreadValues$I = (a, b) => {
34434
+ var __defProp$K = Object.defineProperty;
34435
+ var __defProps$H = Object.defineProperties;
34436
+ var __getOwnPropDescs$H = Object.getOwnPropertyDescriptors;
34437
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
34438
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
34439
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
34440
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34441
+ var __spreadValues$K = (a, b) => {
34428
34442
  for (var prop in b || (b = {}))
34429
- if (__hasOwnProp$R.call(b, prop))
34430
- __defNormalProp$I(a, prop, b[prop]);
34431
- if (__getOwnPropSymbols$R)
34432
- for (var prop of __getOwnPropSymbols$R(b)) {
34433
- if (__propIsEnum$R.call(b, prop))
34434
- __defNormalProp$I(a, prop, b[prop]);
34443
+ if (__hasOwnProp$T.call(b, prop))
34444
+ __defNormalProp$K(a, prop, b[prop]);
34445
+ if (__getOwnPropSymbols$T)
34446
+ for (var prop of __getOwnPropSymbols$T(b)) {
34447
+ if (__propIsEnum$T.call(b, prop))
34448
+ __defNormalProp$K(a, prop, b[prop]);
34435
34449
  }
34436
34450
  return a;
34437
34451
  };
34438
- var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
34452
+ var __spreadProps$H = (a, b) => __defProps$H(a, __getOwnPropDescs$H(b));
34439
34453
  var __objRest$s = (source, exclude) => {
34440
34454
  var target = {};
34441
34455
  for (var prop in source)
34442
- if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
34456
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
34443
34457
  target[prop] = source[prop];
34444
- if (source != null && __getOwnPropSymbols$R)
34445
- for (var prop of __getOwnPropSymbols$R(source)) {
34446
- if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
34458
+ if (source != null && __getOwnPropSymbols$T)
34459
+ for (var prop of __getOwnPropSymbols$T(source)) {
34460
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
34447
34461
  target[prop] = source[prop];
34448
34462
  }
34449
34463
  return target;
34450
34464
  };
34451
- var __async$Z = (__this, __arguments, generator) => {
34465
+ var __async$_ = (__this, __arguments, generator) => {
34452
34466
  return new Promise((resolve, reject) => {
34453
34467
  var fulfilled = (value) => {
34454
34468
  try {
@@ -34471,7 +34485,7 @@ var __async$Z = (__this, __arguments, generator) => {
34471
34485
  const logger$1 = E({
34472
34486
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34473
34487
  name: "shipengine-api",
34474
- serializers: __spreadProps$F(__spreadValues$I({}, k), {
34488
+ serializers: __spreadProps$H(__spreadValues$K({}, k), {
34475
34489
  req: (req) => ({
34476
34490
  headers: req.headers,
34477
34491
  method: req.method,
@@ -34496,7 +34510,7 @@ class ShipEngineAPI {
34496
34510
  this.getSandboxToken = getSandboxToken;
34497
34511
  const client = axios.create({
34498
34512
  baseURL,
34499
- headers: __spreadProps$F(__spreadValues$I({}, headers), {
34513
+ headers: __spreadProps$H(__spreadValues$K({}, headers), {
34500
34514
  "Content-Type": "application/json"
34501
34515
  }),
34502
34516
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34536,7 +34550,7 @@ class ShipEngineAPI {
34536
34550
  });
34537
34551
  client.defaults.headers.common["Authorization"] = `Bearer ${token}`;
34538
34552
  client.interceptors.request.use(
34539
- (config) => __async$Z(this, null, function* () {
34553
+ (config) => __async$_(this, null, function* () {
34540
34554
  if (config.isSandbox) {
34541
34555
  if (!this.sandboxToken) {
34542
34556
  this.sandboxToken = yield getSandboxToken == null ? void 0 : getSandboxToken();
@@ -34563,7 +34577,7 @@ class ShipEngineAPI {
34563
34577
  );
34564
34578
  return res;
34565
34579
  },
34566
- (err) => __async$Z(this, null, function* () {
34580
+ (err) => __async$_(this, null, function* () {
34567
34581
  var _a, _b, _c, _d, _e;
34568
34582
  logger$1.error(
34569
34583
  { err, req: err.config, res: err.response },
@@ -34610,7 +34624,7 @@ class ShipEngineAPI {
34610
34624
  * that token (also known as Seller ID)
34611
34625
  */
34612
34626
  getTenant(isSandbox) {
34613
- return __async$Z(this, null, function* () {
34627
+ return __async$_(this, null, function* () {
34614
34628
  var _a;
34615
34629
  if (!isSandbox) {
34616
34630
  return this.getTenantFromToken(this.token);
@@ -34920,25 +34934,25 @@ const delay = (ms) => new Promise((resolve) => {
34920
34934
 
34921
34935
  const onError = (_errors) => _default();
34922
34936
 
34923
- var __defProp$H = Object.defineProperty;
34924
- var __defProps$E = Object.defineProperties;
34925
- var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
34926
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
34927
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
34928
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
34929
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34930
- var __spreadValues$H = (a, b) => {
34937
+ var __defProp$J = Object.defineProperty;
34938
+ var __defProps$G = Object.defineProperties;
34939
+ var __getOwnPropDescs$G = Object.getOwnPropertyDescriptors;
34940
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
34941
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
34942
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
34943
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34944
+ var __spreadValues$J = (a, b) => {
34931
34945
  for (var prop in b || (b = {}))
34932
- if (__hasOwnProp$Q.call(b, prop))
34933
- __defNormalProp$H(a, prop, b[prop]);
34934
- if (__getOwnPropSymbols$Q)
34935
- for (var prop of __getOwnPropSymbols$Q(b)) {
34936
- if (__propIsEnum$Q.call(b, prop))
34937
- __defNormalProp$H(a, prop, b[prop]);
34946
+ if (__hasOwnProp$S.call(b, prop))
34947
+ __defNormalProp$J(a, prop, b[prop]);
34948
+ if (__getOwnPropSymbols$S)
34949
+ for (var prop of __getOwnPropSymbols$S(b)) {
34950
+ if (__propIsEnum$S.call(b, prop))
34951
+ __defNormalProp$J(a, prop, b[prop]);
34938
34952
  }
34939
34953
  return a;
34940
34954
  };
34941
- var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
34955
+ var __spreadProps$G = (a, b) => __defProps$G(a, __getOwnPropDescs$G(b));
34942
34956
  const streams = [];
34943
34957
  if (process.env.NODE_ENV === "production") {
34944
34958
  streams.push({
@@ -34947,7 +34961,7 @@ if (process.env.NODE_ENV === "production") {
34947
34961
  }
34948
34962
  const logger = E({
34949
34963
  name: "shipengine",
34950
- serializers: __spreadProps$E(__spreadValues$H({}, k), {
34964
+ serializers: __spreadProps$G(__spreadValues$J({}, k), {
34951
34965
  req: (req) => ({
34952
34966
  headers: req.headers,
34953
34967
  method: req.method,
@@ -34972,7 +34986,7 @@ const retryUntil = (callbackFn, retries = 10, timeoutBetweenAttempts = 1e3) => P
34972
34986
  throw error;
34973
34987
  });
34974
34988
 
34975
- var __async$Y = (__this, __arguments, generator) => {
34989
+ var __async$Z = (__this, __arguments, generator) => {
34976
34990
  return new Promise((resolve, reject) => {
34977
34991
  var fulfilled = (value) => {
34978
34992
  try {
@@ -34995,7 +35009,7 @@ var __async$Y = (__this, __arguments, generator) => {
34995
35009
  const useCreateAccountImage = () => {
34996
35010
  const { client } = useShipEngine();
34997
35011
  return reactQuery.useMutation({
34998
- mutationFn: (data) => __async$Y(void 0, null, function* () {
35012
+ mutationFn: (data) => __async$Z(void 0, null, function* () {
34999
35013
  const result = yield client.accountSettings.createImage(data);
35000
35014
  return result.data;
35001
35015
  }),
@@ -35004,7 +35018,7 @@ const useCreateAccountImage = () => {
35004
35018
  });
35005
35019
  };
35006
35020
 
35007
- var __async$X = (__this, __arguments, generator) => {
35021
+ var __async$Y = (__this, __arguments, generator) => {
35008
35022
  return new Promise((resolve, reject) => {
35009
35023
  var fulfilled = (value) => {
35010
35024
  try {
@@ -35027,7 +35041,7 @@ var __async$X = (__this, __arguments, generator) => {
35027
35041
  const useDeleteAccountImage = () => {
35028
35042
  const { client } = useShipEngine();
35029
35043
  return reactQuery.useMutation({
35030
- mutationFn: (labelImageId) => __async$X(void 0, null, function* () {
35044
+ mutationFn: (labelImageId) => __async$Y(void 0, null, function* () {
35031
35045
  const result = yield client.accountSettings.deleteImage(labelImageId);
35032
35046
  return result.data;
35033
35047
  }),
@@ -35056,7 +35070,7 @@ const useGetAccountSettings = () => {
35056
35070
  });
35057
35071
  };
35058
35072
 
35059
- var __async$W = (__this, __arguments, generator) => {
35073
+ var __async$X = (__this, __arguments, generator) => {
35060
35074
  return new Promise((resolve, reject) => {
35061
35075
  var fulfilled = (value) => {
35062
35076
  try {
@@ -35079,7 +35093,7 @@ var __async$W = (__this, __arguments, generator) => {
35079
35093
  const useUpdateAccountImage = () => {
35080
35094
  const { client } = useShipEngine();
35081
35095
  return reactQuery.useMutation({
35082
- mutationFn: (data) => __async$W(void 0, null, function* () {
35096
+ mutationFn: (data) => __async$X(void 0, null, function* () {
35083
35097
  const result = yield client.accountSettings.updateImage(data);
35084
35098
  return result.data;
35085
35099
  }),
@@ -35088,7 +35102,7 @@ const useUpdateAccountImage = () => {
35088
35102
  });
35089
35103
  };
35090
35104
 
35091
- var __async$V = (__this, __arguments, generator) => {
35105
+ var __async$W = (__this, __arguments, generator) => {
35092
35106
  return new Promise((resolve, reject) => {
35093
35107
  var fulfilled = (value) => {
35094
35108
  try {
@@ -35111,7 +35125,7 @@ var __async$V = (__this, __arguments, generator) => {
35111
35125
  const useUpdateAccountSettings = () => {
35112
35126
  const { client } = useShipEngine();
35113
35127
  return reactQuery.useMutation({
35114
- mutationFn: (settings) => __async$V(void 0, null, function* () {
35128
+ mutationFn: (settings) => __async$W(void 0, null, function* () {
35115
35129
  const result = yield client.accountSettings.update(settings);
35116
35130
  return result.data;
35117
35131
  }),
@@ -35120,28 +35134,28 @@ const useUpdateAccountSettings = () => {
35120
35134
  });
35121
35135
  };
35122
35136
 
35123
- var __defProp$G = Object.defineProperty;
35124
- var __defProps$D = Object.defineProperties;
35125
- var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
35126
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
35127
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
35128
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
35129
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35130
- var __spreadValues$G = (a, b) => {
35137
+ var __defProp$I = Object.defineProperty;
35138
+ var __defProps$F = Object.defineProperties;
35139
+ var __getOwnPropDescs$F = Object.getOwnPropertyDescriptors;
35140
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
35141
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
35142
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
35143
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35144
+ var __spreadValues$I = (a, b) => {
35131
35145
  for (var prop in b || (b = {}))
35132
- if (__hasOwnProp$P.call(b, prop))
35133
- __defNormalProp$G(a, prop, b[prop]);
35134
- if (__getOwnPropSymbols$P)
35135
- for (var prop of __getOwnPropSymbols$P(b)) {
35136
- if (__propIsEnum$P.call(b, prop))
35137
- __defNormalProp$G(a, prop, b[prop]);
35146
+ if (__hasOwnProp$R.call(b, prop))
35147
+ __defNormalProp$I(a, prop, b[prop]);
35148
+ if (__getOwnPropSymbols$R)
35149
+ for (var prop of __getOwnPropSymbols$R(b)) {
35150
+ if (__propIsEnum$R.call(b, prop))
35151
+ __defNormalProp$I(a, prop, b[prop]);
35138
35152
  }
35139
35153
  return a;
35140
35154
  };
35141
- var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35155
+ var __spreadProps$F = (a, b) => __defProps$F(a, __getOwnPropDescs$F(b));
35142
35156
  const useListAccountAddons = (params) => {
35143
35157
  const { client } = useShipEngine();
35144
- return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, params), {
35158
+ return reactQuery.useQuery(__spreadProps$F(__spreadValues$I({}, params), {
35145
35159
  onError,
35146
35160
  queryFn: () => client.accountAddons.list(),
35147
35161
  queryKey: ["useListAccountAddons"],
@@ -35149,7 +35163,7 @@ const useListAccountAddons = (params) => {
35149
35163
  }));
35150
35164
  };
35151
35165
 
35152
- var __async$U = (__this, __arguments, generator) => {
35166
+ var __async$V = (__this, __arguments, generator) => {
35153
35167
  return new Promise((resolve, reject) => {
35154
35168
  var fulfilled = (value) => {
35155
35169
  try {
@@ -35172,7 +35186,7 @@ var __async$U = (__this, __arguments, generator) => {
35172
35186
  const useParseAddress = () => {
35173
35187
  const { client } = useShipEngine();
35174
35188
  return reactQuery.useMutation({
35175
- mutationFn: (_0) => __async$U(void 0, [_0], function* ({ address, text }) {
35189
+ mutationFn: (_0) => __async$V(void 0, [_0], function* ({ address, text }) {
35176
35190
  const result = yield client.addresses.parse(text, address);
35177
35191
  return result.data;
35178
35192
  }),
@@ -35181,7 +35195,7 @@ const useParseAddress = () => {
35181
35195
  });
35182
35196
  };
35183
35197
 
35184
- var __async$T = (__this, __arguments, generator) => {
35198
+ var __async$U = (__this, __arguments, generator) => {
35185
35199
  return new Promise((resolve, reject) => {
35186
35200
  var fulfilled = (value) => {
35187
35201
  try {
@@ -35204,7 +35218,7 @@ var __async$T = (__this, __arguments, generator) => {
35204
35218
  const useValidateAddresses = () => {
35205
35219
  const { client } = useShipEngine();
35206
35220
  return reactQuery.useMutation({
35207
- mutationFn: (addresses) => __async$T(void 0, null, function* () {
35221
+ mutationFn: (addresses) => __async$U(void 0, null, function* () {
35208
35222
  const result = yield client.addresses.validate(addresses);
35209
35223
  return result.data;
35210
35224
  }),
@@ -35213,6 +35227,87 @@ const useValidateAddresses = () => {
35213
35227
  });
35214
35228
  };
35215
35229
 
35230
+ var __defProp$H = Object.defineProperty;
35231
+ var __defProps$E = Object.defineProperties;
35232
+ var __getOwnPropDescs$E = Object.getOwnPropertyDescriptors;
35233
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
35234
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
35235
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
35236
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35237
+ var __spreadValues$H = (a, b) => {
35238
+ for (var prop in b || (b = {}))
35239
+ if (__hasOwnProp$Q.call(b, prop))
35240
+ __defNormalProp$H(a, prop, b[prop]);
35241
+ if (__getOwnPropSymbols$Q)
35242
+ for (var prop of __getOwnPropSymbols$Q(b)) {
35243
+ if (__propIsEnum$Q.call(b, prop))
35244
+ __defNormalProp$H(a, prop, b[prop]);
35245
+ }
35246
+ return a;
35247
+ };
35248
+ var __spreadProps$E = (a, b) => __defProps$E(a, __getOwnPropDescs$E(b));
35249
+ var __async$T = (__this, __arguments, generator) => {
35250
+ return new Promise((resolve, reject) => {
35251
+ var fulfilled = (value) => {
35252
+ try {
35253
+ step(generator.next(value));
35254
+ } catch (e) {
35255
+ reject(e);
35256
+ }
35257
+ };
35258
+ var rejected = (value) => {
35259
+ try {
35260
+ step(generator.throw(value));
35261
+ } catch (e) {
35262
+ reject(e);
35263
+ }
35264
+ };
35265
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35266
+ step((generator = generator.apply(__this, __arguments)).next());
35267
+ });
35268
+ };
35269
+ const useCreateAuctanePaySession = (params) => {
35270
+ const { client } = useShipEngine();
35271
+ return reactQuery.useMutation(__spreadProps$E(__spreadValues$H({}, params), {
35272
+ mutationFn: (request) => __async$T(void 0, null, function* () {
35273
+ const result = yield client.auctanePay.createSession(request);
35274
+ return result.data;
35275
+ }),
35276
+ mutationKey: ["useCreateAuctanePaySession"],
35277
+ onError
35278
+ }));
35279
+ };
35280
+
35281
+ var __defProp$G = Object.defineProperty;
35282
+ var __defProps$D = Object.defineProperties;
35283
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
35284
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
35285
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
35286
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
35287
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35288
+ var __spreadValues$G = (a, b) => {
35289
+ for (var prop in b || (b = {}))
35290
+ if (__hasOwnProp$P.call(b, prop))
35291
+ __defNormalProp$G(a, prop, b[prop]);
35292
+ if (__getOwnPropSymbols$P)
35293
+ for (var prop of __getOwnPropSymbols$P(b)) {
35294
+ if (__propIsEnum$P.call(b, prop))
35295
+ __defNormalProp$G(a, prop, b[prop]);
35296
+ }
35297
+ return a;
35298
+ };
35299
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
35300
+ const useGetAuctanePayConfig = (params) => {
35301
+ const { client } = useShipEngine();
35302
+ const queryParams = __spreadValues$G({}, params);
35303
+ return reactQuery.useQuery(__spreadProps$D(__spreadValues$G({}, queryParams), {
35304
+ onError,
35305
+ queryFn: () => client.auctanePay.getConfig(),
35306
+ queryKey: ["useGetAuctanePayConfig"],
35307
+ select: (result) => result.data
35308
+ }));
35309
+ };
35310
+
35216
35311
  var __defProp$F = Object.defineProperty;
35217
35312
  var __defProps$C = Object.defineProperties;
35218
35313
  var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
@@ -35252,14 +35347,18 @@ var __async$S = (__this, __arguments, generator) => {
35252
35347
  step((generator = generator.apply(__this, __arguments)).next());
35253
35348
  });
35254
35349
  };
35255
- const useCreateAuctanePaySession = (params) => {
35350
+ const usePreviewTransaction = (params) => {
35256
35351
  const { client } = useShipEngine();
35257
35352
  return reactQuery.useMutation(__spreadProps$C(__spreadValues$F({}, params), {
35258
- mutationFn: (request) => __async$S(void 0, null, function* () {
35259
- const result = yield client.auctanePay.createSession(request);
35353
+ mutationFn: (_0) => __async$S(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35354
+ const request = {
35355
+ amount,
35356
+ transactionCategory
35357
+ };
35358
+ const result = yield client.auctanePay.previewTransaction(request);
35260
35359
  return result.data;
35261
35360
  }),
35262
- mutationKey: ["useCreateAuctanePaySession"],
35361
+ mutationKey: ["usePreviewTransaction"],
35263
35362
  onError
35264
35363
  }));
35265
35364
  };
@@ -35283,13 +35382,13 @@ var __spreadValues$E = (a, b) => {
35283
35382
  return a;
35284
35383
  };
35285
35384
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
35286
- const useGetAuctanePayConfig = (params) => {
35385
+ const useGetPaymentMethods = (params) => {
35287
35386
  const { client } = useShipEngine();
35288
35387
  const queryParams = __spreadValues$E({}, params);
35289
35388
  return reactQuery.useQuery(__spreadProps$B(__spreadValues$E({}, queryParams), {
35290
35389
  onError,
35291
- queryFn: () => client.auctanePay.getConfig(),
35292
- queryKey: ["useGetAuctanePayConfig"],
35390
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35391
+ queryKey: ["useGetPaymentMethods"],
35293
35392
  select: (result) => result.data
35294
35393
  }));
35295
35394
  };
@@ -35333,18 +35432,14 @@ var __async$R = (__this, __arguments, generator) => {
35333
35432
  step((generator = generator.apply(__this, __arguments)).next());
35334
35433
  });
35335
35434
  };
35336
- const usePreviewTransaction = (params) => {
35435
+ const useDeletePaymentMethod = (params) => {
35337
35436
  const { client } = useShipEngine();
35338
35437
  return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35339
- mutationFn: (_0) => __async$R(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35340
- const request = {
35341
- amount,
35342
- transactionCategory
35343
- };
35344
- const result = yield client.auctanePay.previewTransaction(request);
35438
+ mutationFn: (paymentMethodId) => __async$R(void 0, null, function* () {
35439
+ const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35345
35440
  return result.data;
35346
35441
  }),
35347
- mutationKey: ["usePreviewTransaction"],
35442
+ mutationKey: ["useDeletePaymentMethod"],
35348
35443
  onError
35349
35444
  }));
35350
35445
  };
@@ -35368,14 +35463,35 @@ var __spreadValues$C = (a, b) => {
35368
35463
  return a;
35369
35464
  };
35370
35465
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35371
- const useGetPaymentMethods = (params) => {
35466
+ var __async$Q = (__this, __arguments, generator) => {
35467
+ return new Promise((resolve, reject) => {
35468
+ var fulfilled = (value) => {
35469
+ try {
35470
+ step(generator.next(value));
35471
+ } catch (e) {
35472
+ reject(e);
35473
+ }
35474
+ };
35475
+ var rejected = (value) => {
35476
+ try {
35477
+ step(generator.throw(value));
35478
+ } catch (e) {
35479
+ reject(e);
35480
+ }
35481
+ };
35482
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35483
+ step((generator = generator.apply(__this, __arguments)).next());
35484
+ });
35485
+ };
35486
+ const useUpdatePaymentMethod = (params) => {
35372
35487
  const { client } = useShipEngine();
35373
- const queryParams = __spreadValues$C({}, params);
35374
- return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35375
- onError,
35376
- queryFn: () => client.auctanePay.getPaymentMethods(),
35377
- queryKey: ["useGetPaymentMethods"],
35378
- select: (result) => result.data
35488
+ return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35489
+ mutationFn: (_0) => __async$Q(void 0, [_0], function* ({ paymentMethodId, payload }) {
35490
+ const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35491
+ return result.data;
35492
+ }),
35493
+ mutationKey: ["useUpdatePaymentMethod"],
35494
+ onError
35379
35495
  }));
35380
35496
  };
35381
35497
 
@@ -35398,7 +35514,7 @@ var __spreadValues$B = (a, b) => {
35398
35514
  return a;
35399
35515
  };
35400
35516
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35401
- var __async$Q = (__this, __arguments, generator) => {
35517
+ var __async$P = (__this, __arguments, generator) => {
35402
35518
  return new Promise((resolve, reject) => {
35403
35519
  var fulfilled = (value) => {
35404
35520
  try {
@@ -35418,14 +35534,14 @@ var __async$Q = (__this, __arguments, generator) => {
35418
35534
  step((generator = generator.apply(__this, __arguments)).next());
35419
35535
  });
35420
35536
  };
35421
- const useDeletePaymentMethod = (params) => {
35537
+ const useIdentityVerification = (params) => {
35422
35538
  const { client } = useShipEngine();
35423
35539
  return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35424
- mutationFn: (paymentMethodId) => __async$Q(void 0, null, function* () {
35425
- const result = yield client.auctanePay.deletePaymentMethod(paymentMethodId);
35540
+ mutationFn: () => __async$P(void 0, null, function* () {
35541
+ const result = yield client.auctanePay.identityVerification();
35426
35542
  return result.data;
35427
35543
  }),
35428
- mutationKey: ["useDeletePaymentMethod"],
35544
+ mutationKey: ["useIdentityVerification"],
35429
35545
  onError
35430
35546
  }));
35431
35547
  };
@@ -35449,35 +35565,14 @@ var __spreadValues$A = (a, b) => {
35449
35565
  return a;
35450
35566
  };
35451
35567
  var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35452
- var __async$P = (__this, __arguments, generator) => {
35453
- return new Promise((resolve, reject) => {
35454
- var fulfilled = (value) => {
35455
- try {
35456
- step(generator.next(value));
35457
- } catch (e) {
35458
- reject(e);
35459
- }
35460
- };
35461
- var rejected = (value) => {
35462
- try {
35463
- step(generator.throw(value));
35464
- } catch (e) {
35465
- reject(e);
35466
- }
35467
- };
35468
- var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
35469
- step((generator = generator.apply(__this, __arguments)).next());
35470
- });
35471
- };
35472
- const useUpdatePaymentMethod = (params) => {
35568
+ const useGetPaymentAccount = (params) => {
35473
35569
  const { client } = useShipEngine();
35474
- return reactQuery.useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35475
- mutationFn: (_0) => __async$P(void 0, [_0], function* ({ paymentMethodId, payload }) {
35476
- const result = yield client.auctanePay.updatePaymentMethod(paymentMethodId, payload);
35477
- return result.data;
35478
- }),
35479
- mutationKey: ["useUpdatePaymentMethod"],
35480
- onError
35570
+ const queryParams = __spreadValues$A({}, params);
35571
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35572
+ onError,
35573
+ queryFn: () => client.auctanePay.getPaymentAccount(),
35574
+ queryKey: ["useGetPaymentAccount"],
35575
+ select: (result) => result.data
35481
35576
  }));
35482
35577
  };
35483
35578
 
@@ -40117,6 +40212,7 @@ exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSource
40117
40212
  exports.useGetInvoiceAddress = useGetInvoiceAddress;
40118
40213
  exports.useGetLabel = useGetLabel;
40119
40214
  exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
40215
+ exports.useGetPaymentAccount = useGetPaymentAccount;
40120
40216
  exports.useGetPaymentMethods = useGetPaymentMethods;
40121
40217
  exports.useGetRateCardById = useGetRateCardById;
40122
40218
  exports.useGetSalesOrder = useGetSalesOrder;
@@ -40132,6 +40228,7 @@ exports.useGetShippingRuleConditionsOptions = useGetShippingRuleConditionsOption
40132
40228
  exports.useGetThemeById = useGetThemeById;
40133
40229
  exports.useGetZonesByCarrier = useGetZonesByCarrier;
40134
40230
  exports.useI18n = useI18n;
40231
+ exports.useIdentityVerification = useIdentityVerification;
40135
40232
  exports.useListAccountAddons = useListAccountAddons;
40136
40233
  exports.useListCarrierConnections = useListCarrierConnections;
40137
40234
  exports.useListCarriers = useListCarriers;