@shipengine/alchemy 6.0.59 → 6.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +221 -173
  2. package/index.mjs +221 -174
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -10559,6 +10559,16 @@ const fallbackTheme = {
10559
10559
  pink: '#E995BA',
10560
10560
  green: '#DEF895'
10561
10561
  }
10562
+ },
10563
+ destructive: {
10564
+ ultraLight: '#FDF7F7',
10565
+ light: '#821212',
10566
+ main: '#A91919',
10567
+ dark: '#5D0E0E'
10568
+ },
10569
+ upgrade: {
10570
+ main: '#8D30F7',
10571
+ light: '#F6F2FF'
10562
10572
  }
10563
10573
  },
10564
10574
  spacingBase: 8,
@@ -10820,17 +10830,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10820
10830
  return AccountBillingPlanChangeType2;
10821
10831
  })(AccountBillingPlanChangeType || {});
10822
10832
 
10823
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10824
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10825
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10833
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
10834
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
10835
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
10826
10836
  var __objRest$x = (source, exclude) => {
10827
10837
  var target = {};
10828
10838
  for (var prop in source)
10829
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10839
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
10830
10840
  target[prop] = source[prop];
10831
- if (source != null && __getOwnPropSymbols$V)
10832
- for (var prop of __getOwnPropSymbols$V(source)) {
10833
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10841
+ if (source != null && __getOwnPropSymbols$W)
10842
+ for (var prop of __getOwnPropSymbols$W(source)) {
10843
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
10834
10844
  target[prop] = source[prop];
10835
10845
  }
10836
10846
  return target;
@@ -10965,17 +10975,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10965
10975
  RateCardStatus
10966
10976
  }, Symbol.toStringTag, { value: 'Module' }));
10967
10977
 
10968
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
10969
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
10970
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
10978
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10979
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10980
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10971
10981
  var __objRest$w = (source, exclude) => {
10972
10982
  var target = {};
10973
10983
  for (var prop in source)
10974
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
10984
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10975
10985
  target[prop] = source[prop];
10976
- if (source != null && __getOwnPropSymbols$U)
10977
- for (var prop of __getOwnPropSymbols$U(source)) {
10978
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
10986
+ if (source != null && __getOwnPropSymbols$V)
10987
+ for (var prop of __getOwnPropSymbols$V(source)) {
10988
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10979
10989
  target[prop] = source[prop];
10980
10990
  }
10981
10991
  return target;
@@ -11082,6 +11092,13 @@ class AuctanePayAPI {
11082
11092
  request
11083
11093
  );
11084
11094
  };
11095
+ /**
11096
+ * The `getPaymentMethods` method retrieve the list of Payment Methods for a given user.
11097
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Get-payment-methods
11098
+ */
11099
+ this.getPaymentMethods = () => {
11100
+ return this.client.get("/v1/payments/payment_methods");
11101
+ };
11085
11102
  this.client = client;
11086
11103
  }
11087
11104
  }
@@ -13872,33 +13889,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13872
13889
  return obj;
13873
13890
  };
13874
13891
 
13875
- var __defProp$I = Object.defineProperty;
13876
- var __defProps$C = Object.defineProperties;
13877
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
13878
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
13879
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
13880
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
13881
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13882
- var __spreadValues$I = (a, b) => {
13892
+ var __defProp$J = Object.defineProperty;
13893
+ var __defProps$D = Object.defineProperties;
13894
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
13895
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
13896
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
13897
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
13898
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13899
+ var __spreadValues$J = (a, b) => {
13883
13900
  for (var prop in b || (b = {}))
13884
- if (__hasOwnProp$T.call(b, prop))
13885
- __defNormalProp$I(a, prop, b[prop]);
13886
- if (__getOwnPropSymbols$T)
13887
- for (var prop of __getOwnPropSymbols$T(b)) {
13888
- if (__propIsEnum$T.call(b, prop))
13889
- __defNormalProp$I(a, prop, b[prop]);
13901
+ if (__hasOwnProp$U.call(b, prop))
13902
+ __defNormalProp$J(a, prop, b[prop]);
13903
+ if (__getOwnPropSymbols$U)
13904
+ for (var prop of __getOwnPropSymbols$U(b)) {
13905
+ if (__propIsEnum$U.call(b, prop))
13906
+ __defNormalProp$J(a, prop, b[prop]);
13890
13907
  }
13891
13908
  return a;
13892
13909
  };
13893
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
13910
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
13894
13911
  var __objRest$v = (source, exclude) => {
13895
13912
  var target = {};
13896
13913
  for (var prop in source)
13897
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
13914
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
13898
13915
  target[prop] = source[prop];
13899
- if (source != null && __getOwnPropSymbols$T)
13900
- for (var prop of __getOwnPropSymbols$T(source)) {
13901
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
13916
+ if (source != null && __getOwnPropSymbols$U)
13917
+ for (var prop of __getOwnPropSymbols$U(source)) {
13918
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
13902
13919
  target[prop] = source[prop];
13903
13920
  }
13904
13921
  return target;
@@ -13948,7 +13965,7 @@ class CarriersAPI {
13948
13965
  const endUserIpAddress = yield getEndUserIpAddress();
13949
13966
  if (!endUserIpAddress)
13950
13967
  return Promise.reject([new CodedError("Unable to get IP address")]);
13951
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$C(__spreadValues$I({}, connection), {
13968
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$D(__spreadValues$J({}, connection), {
13952
13969
  endUserIpAddress
13953
13970
  }));
13954
13971
  });
@@ -14034,17 +14051,17 @@ class CarriersAPI {
14034
14051
  }
14035
14052
  }
14036
14053
 
14037
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
14038
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
14039
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
14054
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
14055
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
14056
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
14040
14057
  var __objRest$u = (source, exclude) => {
14041
14058
  var target = {};
14042
14059
  for (var prop in source)
14043
- if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
14060
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
14044
14061
  target[prop] = source[prop];
14045
- if (source != null && __getOwnPropSymbols$S)
14046
- for (var prop of __getOwnPropSymbols$S(source)) {
14047
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
14062
+ if (source != null && __getOwnPropSymbols$T)
14063
+ for (var prop of __getOwnPropSymbols$T(source)) {
14064
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
14048
14065
  target[prop] = source[prop];
14049
14066
  }
14050
14067
  return target;
@@ -16259,19 +16276,19 @@ class CustomPackagesAPI {
16259
16276
  }
16260
16277
  }
16261
16278
 
16262
- var __defProp$H = Object.defineProperty;
16263
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16264
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16265
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16266
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16267
- var __spreadValues$H = (a, b) => {
16279
+ var __defProp$I = Object.defineProperty;
16280
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16281
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16282
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16283
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16284
+ var __spreadValues$I = (a, b) => {
16268
16285
  for (var prop in b || (b = {}))
16269
- if (__hasOwnProp$R.call(b, prop))
16270
- __defNormalProp$H(a, prop, b[prop]);
16271
- if (__getOwnPropSymbols$R)
16272
- for (var prop of __getOwnPropSymbols$R(b)) {
16273
- if (__propIsEnum$R.call(b, prop))
16274
- __defNormalProp$H(a, prop, b[prop]);
16286
+ if (__hasOwnProp$S.call(b, prop))
16287
+ __defNormalProp$I(a, prop, b[prop]);
16288
+ if (__getOwnPropSymbols$S)
16289
+ for (var prop of __getOwnPropSymbols$S(b)) {
16290
+ if (__propIsEnum$S.call(b, prop))
16291
+ __defNormalProp$I(a, prop, b[prop]);
16275
16292
  }
16276
16293
  return a;
16277
16294
  };
@@ -16319,7 +16336,7 @@ class FundingSourcesAPI {
16319
16336
  if (!endUserIpAddress) {
16320
16337
  return Promise.reject([new CodedError("Unable to get IP address")]);
16321
16338
  }
16322
- return yield this.client.post("/v1/funding_sources", __spreadValues$H({
16339
+ return yield this.client.post("/v1/funding_sources", __spreadValues$I({
16323
16340
  endUserIpAddress
16324
16341
  }, createFundingSource));
16325
16342
  });
@@ -16338,7 +16355,7 @@ class FundingSourcesAPI {
16338
16355
  {
16339
16356
  billingInfo,
16340
16357
  endUserIpAddress,
16341
- paymentMethod: __spreadValues$H({
16358
+ paymentMethod: __spreadValues$I({
16342
16359
  creditCardInfo
16343
16360
  }, auctanePayInfo)
16344
16361
  }
@@ -16353,7 +16370,7 @@ class FundingSourcesAPI {
16353
16370
  if (!endUserIpAddress) {
16354
16371
  return Promise.reject([new CodedError("Unable to get IP address")]);
16355
16372
  }
16356
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$H({
16373
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$I({
16357
16374
  endUserIpAddress
16358
16375
  }, carrier));
16359
16376
  });
@@ -16522,17 +16539,17 @@ class LabelsAPI {
16522
16539
  }
16523
16540
  }
16524
16541
 
16525
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16526
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16527
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16542
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16543
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16544
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16528
16545
  var __objRest$t = (source, exclude) => {
16529
16546
  var target = {};
16530
16547
  for (var prop in source)
16531
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
16548
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
16532
16549
  target[prop] = source[prop];
16533
- if (source != null && __getOwnPropSymbols$Q)
16534
- for (var prop of __getOwnPropSymbols$Q(source)) {
16535
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
16550
+ if (source != null && __getOwnPropSymbols$R)
16551
+ for (var prop of __getOwnPropSymbols$R(source)) {
16552
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
16536
16553
  target[prop] = source[prop];
16537
16554
  }
16538
16555
  return target;
@@ -16653,19 +16670,19 @@ class RateCardsAPI {
16653
16670
  }
16654
16671
  }
16655
16672
 
16656
- var __defProp$G = Object.defineProperty;
16657
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16658
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16659
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16660
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16661
- var __spreadValues$G = (a, b) => {
16673
+ var __defProp$H = Object.defineProperty;
16674
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16675
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16676
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16677
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16678
+ var __spreadValues$H = (a, b) => {
16662
16679
  for (var prop in b || (b = {}))
16663
- if (__hasOwnProp$P.call(b, prop))
16664
- __defNormalProp$G(a, prop, b[prop]);
16665
- if (__getOwnPropSymbols$P)
16666
- for (var prop of __getOwnPropSymbols$P(b)) {
16667
- if (__propIsEnum$P.call(b, prop))
16668
- __defNormalProp$G(a, prop, b[prop]);
16680
+ if (__hasOwnProp$Q.call(b, prop))
16681
+ __defNormalProp$H(a, prop, b[prop]);
16682
+ if (__getOwnPropSymbols$Q)
16683
+ for (var prop of __getOwnPropSymbols$Q(b)) {
16684
+ if (__propIsEnum$Q.call(b, prop))
16685
+ __defNormalProp$H(a, prop, b[prop]);
16669
16686
  }
16670
16687
  return a;
16671
16688
  };
@@ -16687,7 +16704,7 @@ class RatesAPI {
16687
16704
  * method.
16688
16705
  */
16689
16706
  this.estimate = (params) => {
16690
- return this.client.post("/v1/rates/estimate", __spreadValues$G({}, params));
16707
+ return this.client.post("/v1/rates/estimate", __spreadValues$H({}, params));
16691
16708
  };
16692
16709
  this.client = client;
16693
16710
  }
@@ -16871,19 +16888,19 @@ class SellersAPI {
16871
16888
  }
16872
16889
  }
16873
16890
 
16874
- var __defProp$F = Object.defineProperty;
16875
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16876
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16877
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16878
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16879
- var __spreadValues$F = (a, b) => {
16891
+ var __defProp$G = Object.defineProperty;
16892
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16893
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16894
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16895
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16896
+ var __spreadValues$G = (a, b) => {
16880
16897
  for (var prop in b || (b = {}))
16881
- if (__hasOwnProp$O.call(b, prop))
16882
- __defNormalProp$F(a, prop, b[prop]);
16883
- if (__getOwnPropSymbols$O)
16884
- for (var prop of __getOwnPropSymbols$O(b)) {
16885
- if (__propIsEnum$O.call(b, prop))
16886
- __defNormalProp$F(a, prop, b[prop]);
16898
+ if (__hasOwnProp$P.call(b, prop))
16899
+ __defNormalProp$G(a, prop, b[prop]);
16900
+ if (__getOwnPropSymbols$P)
16901
+ for (var prop of __getOwnPropSymbols$P(b)) {
16902
+ if (__propIsEnum$P.call(b, prop))
16903
+ __defNormalProp$G(a, prop, b[prop]);
16887
16904
  }
16888
16905
  return a;
16889
16906
  };
@@ -16895,7 +16912,7 @@ class ServicePointsAPI {
16895
16912
  * Either an address, coordinates, or an address query
16896
16913
  */
16897
16914
  this.list = (options) => {
16898
- return this.client.post("/v1/service_points/list", __spreadValues$F({}, options));
16915
+ return this.client.post("/v1/service_points/list", __spreadValues$G({}, options));
16899
16916
  };
16900
16917
  /**
16901
16918
  * Get a specific service point by its carrier code, country code, and id
@@ -34379,33 +34396,33 @@ class WebhooksAPI {
34379
34396
  }
34380
34397
  }
34381
34398
 
34382
- var __defProp$E = Object.defineProperty;
34383
- var __defProps$B = Object.defineProperties;
34384
- var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34385
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34386
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34387
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34388
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34389
- var __spreadValues$E = (a, b) => {
34399
+ var __defProp$F = Object.defineProperty;
34400
+ var __defProps$C = Object.defineProperties;
34401
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
34402
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
34403
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
34404
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
34405
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34406
+ var __spreadValues$F = (a, b) => {
34390
34407
  for (var prop in b || (b = {}))
34391
- if (__hasOwnProp$N.call(b, prop))
34392
- __defNormalProp$E(a, prop, b[prop]);
34393
- if (__getOwnPropSymbols$N)
34394
- for (var prop of __getOwnPropSymbols$N(b)) {
34395
- if (__propIsEnum$N.call(b, prop))
34396
- __defNormalProp$E(a, prop, b[prop]);
34408
+ if (__hasOwnProp$O.call(b, prop))
34409
+ __defNormalProp$F(a, prop, b[prop]);
34410
+ if (__getOwnPropSymbols$O)
34411
+ for (var prop of __getOwnPropSymbols$O(b)) {
34412
+ if (__propIsEnum$O.call(b, prop))
34413
+ __defNormalProp$F(a, prop, b[prop]);
34397
34414
  }
34398
34415
  return a;
34399
34416
  };
34400
- var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34417
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
34401
34418
  var __objRest$s = (source, exclude) => {
34402
34419
  var target = {};
34403
34420
  for (var prop in source)
34404
- if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
34421
+ if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
34405
34422
  target[prop] = source[prop];
34406
- if (source != null && __getOwnPropSymbols$N)
34407
- for (var prop of __getOwnPropSymbols$N(source)) {
34408
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
34423
+ if (source != null && __getOwnPropSymbols$O)
34424
+ for (var prop of __getOwnPropSymbols$O(source)) {
34425
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
34409
34426
  target[prop] = source[prop];
34410
34427
  }
34411
34428
  return target;
@@ -34433,7 +34450,7 @@ var __async$X = (__this, __arguments, generator) => {
34433
34450
  const logger$1 = E({
34434
34451
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34435
34452
  name: "shipengine-api",
34436
- serializers: __spreadProps$B(__spreadValues$E({}, k), {
34453
+ serializers: __spreadProps$C(__spreadValues$F({}, k), {
34437
34454
  req: (req) => ({
34438
34455
  headers: req.headers,
34439
34456
  method: req.method,
@@ -34458,7 +34475,7 @@ class ShipEngineAPI {
34458
34475
  this.getSandboxToken = getSandboxToken;
34459
34476
  const client = axios.create({
34460
34477
  baseURL,
34461
- headers: __spreadProps$B(__spreadValues$E({}, headers), {
34478
+ headers: __spreadProps$C(__spreadValues$F({}, headers), {
34462
34479
  "Content-Type": "application/json"
34463
34480
  }),
34464
34481
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34875,25 +34892,25 @@ const delay = (ms) => new Promise((resolve) => {
34875
34892
 
34876
34893
  const onError = (_errors) => _default();
34877
34894
 
34878
- var __defProp$D = Object.defineProperty;
34879
- var __defProps$A = Object.defineProperties;
34880
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
34881
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
34882
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
34883
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
34884
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34885
- var __spreadValues$D = (a, b) => {
34895
+ var __defProp$E = Object.defineProperty;
34896
+ var __defProps$B = Object.defineProperties;
34897
+ var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34898
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34899
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34900
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34901
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34902
+ var __spreadValues$E = (a, b) => {
34886
34903
  for (var prop in b || (b = {}))
34887
- if (__hasOwnProp$M.call(b, prop))
34888
- __defNormalProp$D(a, prop, b[prop]);
34889
- if (__getOwnPropSymbols$M)
34890
- for (var prop of __getOwnPropSymbols$M(b)) {
34891
- if (__propIsEnum$M.call(b, prop))
34892
- __defNormalProp$D(a, prop, b[prop]);
34904
+ if (__hasOwnProp$N.call(b, prop))
34905
+ __defNormalProp$E(a, prop, b[prop]);
34906
+ if (__getOwnPropSymbols$N)
34907
+ for (var prop of __getOwnPropSymbols$N(b)) {
34908
+ if (__propIsEnum$N.call(b, prop))
34909
+ __defNormalProp$E(a, prop, b[prop]);
34893
34910
  }
34894
34911
  return a;
34895
34912
  };
34896
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
34913
+ var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34897
34914
  const streams = [];
34898
34915
  if (process.env.NODE_ENV === "production") {
34899
34916
  streams.push({
@@ -34902,7 +34919,7 @@ if (process.env.NODE_ENV === "production") {
34902
34919
  }
34903
34920
  const logger = E({
34904
34921
  name: "shipengine",
34905
- serializers: __spreadProps$A(__spreadValues$D({}, k), {
34922
+ serializers: __spreadProps$B(__spreadValues$E({}, k), {
34906
34923
  req: (req) => ({
34907
34924
  headers: req.headers,
34908
34925
  method: req.method,
@@ -35139,25 +35156,25 @@ const useValidateAddresses = () => {
35139
35156
  });
35140
35157
  };
35141
35158
 
35142
- var __defProp$C = Object.defineProperty;
35143
- var __defProps$z = Object.defineProperties;
35144
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35145
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35146
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35147
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35148
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35149
- var __spreadValues$C = (a, b) => {
35159
+ var __defProp$D = Object.defineProperty;
35160
+ var __defProps$A = Object.defineProperties;
35161
+ var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
35162
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
35163
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
35164
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
35165
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35166
+ var __spreadValues$D = (a, b) => {
35150
35167
  for (var prop in b || (b = {}))
35151
- if (__hasOwnProp$L.call(b, prop))
35152
- __defNormalProp$C(a, prop, b[prop]);
35153
- if (__getOwnPropSymbols$L)
35154
- for (var prop of __getOwnPropSymbols$L(b)) {
35155
- if (__propIsEnum$L.call(b, prop))
35156
- __defNormalProp$C(a, prop, b[prop]);
35168
+ if (__hasOwnProp$M.call(b, prop))
35169
+ __defNormalProp$D(a, prop, b[prop]);
35170
+ if (__getOwnPropSymbols$M)
35171
+ for (var prop of __getOwnPropSymbols$M(b)) {
35172
+ if (__propIsEnum$M.call(b, prop))
35173
+ __defNormalProp$D(a, prop, b[prop]);
35157
35174
  }
35158
35175
  return a;
35159
35176
  };
35160
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35177
+ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35161
35178
  var __async$Q = (__this, __arguments, generator) => {
35162
35179
  return new Promise((resolve, reject) => {
35163
35180
  var fulfilled = (value) => {
@@ -35180,7 +35197,7 @@ var __async$Q = (__this, __arguments, generator) => {
35180
35197
  };
35181
35198
  const useCreateAuctanePaySession = (params) => {
35182
35199
  const { client } = useShipEngine();
35183
- return reactQuery.useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35200
+ return reactQuery.useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35184
35201
  mutationFn: (request) => __async$Q(void 0, null, function* () {
35185
35202
  const result = yield client.auctanePay.createSession(request);
35186
35203
  return result.data;
@@ -35190,6 +35207,36 @@ const useCreateAuctanePaySession = (params) => {
35190
35207
  }));
35191
35208
  };
35192
35209
 
35210
+ var __defProp$C = Object.defineProperty;
35211
+ var __defProps$z = Object.defineProperties;
35212
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35213
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35214
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35215
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35216
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35217
+ var __spreadValues$C = (a, b) => {
35218
+ for (var prop in b || (b = {}))
35219
+ if (__hasOwnProp$L.call(b, prop))
35220
+ __defNormalProp$C(a, prop, b[prop]);
35221
+ if (__getOwnPropSymbols$L)
35222
+ for (var prop of __getOwnPropSymbols$L(b)) {
35223
+ if (__propIsEnum$L.call(b, prop))
35224
+ __defNormalProp$C(a, prop, b[prop]);
35225
+ }
35226
+ return a;
35227
+ };
35228
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35229
+ const useGetAuctanePayConfig = (params) => {
35230
+ const { client } = useShipEngine();
35231
+ const queryParams = __spreadValues$C({}, params);
35232
+ return reactQuery.useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35233
+ onError,
35234
+ queryFn: () => client.auctanePay.getConfig(),
35235
+ queryKey: ["useGetAuctanePayConfig"],
35236
+ select: (result) => result.data
35237
+ }));
35238
+ };
35239
+
35193
35240
  var __defProp$B = Object.defineProperty;
35194
35241
  var __defProps$y = Object.defineProperties;
35195
35242
  var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
@@ -35209,36 +35256,6 @@ var __spreadValues$B = (a, b) => {
35209
35256
  return a;
35210
35257
  };
35211
35258
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35212
- const useGetAuctanePayConfig = (params) => {
35213
- const { client } = useShipEngine();
35214
- const queryParams = __spreadValues$B({}, params);
35215
- return reactQuery.useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35216
- onError,
35217
- queryFn: () => client.auctanePay.getConfig(),
35218
- queryKey: ["useGetAuctanePayConfig"],
35219
- select: (result) => result.data
35220
- }));
35221
- };
35222
-
35223
- var __defProp$A = Object.defineProperty;
35224
- var __defProps$x = Object.defineProperties;
35225
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35226
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35227
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35228
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35229
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35230
- var __spreadValues$A = (a, b) => {
35231
- for (var prop in b || (b = {}))
35232
- if (__hasOwnProp$J.call(b, prop))
35233
- __defNormalProp$A(a, prop, b[prop]);
35234
- if (__getOwnPropSymbols$J)
35235
- for (var prop of __getOwnPropSymbols$J(b)) {
35236
- if (__propIsEnum$J.call(b, prop))
35237
- __defNormalProp$A(a, prop, b[prop]);
35238
- }
35239
- return a;
35240
- };
35241
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35242
35259
  var __async$P = (__this, __arguments, generator) => {
35243
35260
  return new Promise((resolve, reject) => {
35244
35261
  var fulfilled = (value) => {
@@ -35261,7 +35278,7 @@ var __async$P = (__this, __arguments, generator) => {
35261
35278
  };
35262
35279
  const usePreviewTransaction = (params) => {
35263
35280
  const { client } = useShipEngine();
35264
- return reactQuery.useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35281
+ return reactQuery.useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35265
35282
  mutationFn: (_0) => __async$P(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35266
35283
  const request = {
35267
35284
  amount,
@@ -35275,6 +35292,36 @@ const usePreviewTransaction = (params) => {
35275
35292
  }));
35276
35293
  };
35277
35294
 
35295
+ var __defProp$A = Object.defineProperty;
35296
+ var __defProps$x = Object.defineProperties;
35297
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35298
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35299
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35300
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35301
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35302
+ var __spreadValues$A = (a, b) => {
35303
+ for (var prop in b || (b = {}))
35304
+ if (__hasOwnProp$J.call(b, prop))
35305
+ __defNormalProp$A(a, prop, b[prop]);
35306
+ if (__getOwnPropSymbols$J)
35307
+ for (var prop of __getOwnPropSymbols$J(b)) {
35308
+ if (__propIsEnum$J.call(b, prop))
35309
+ __defNormalProp$A(a, prop, b[prop]);
35310
+ }
35311
+ return a;
35312
+ };
35313
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35314
+ const useGetPaymentMethods = (params) => {
35315
+ const { client } = useShipEngine();
35316
+ const queryParams = __spreadValues$A({}, params);
35317
+ return reactQuery.useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35318
+ onError,
35319
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35320
+ queryKey: ["useGetPaymentMethods"],
35321
+ select: (result) => result.data
35322
+ }));
35323
+ };
35324
+
35278
35325
  var __async$O = (__this, __arguments, generator) => {
35279
35326
  return new Promise((resolve, reject) => {
35280
35327
  var fulfilled = (value) => {
@@ -39909,6 +39956,7 @@ exports.useGetInsuranceFundingSourceAcceptedTerms = useGetInsuranceFundingSource
39909
39956
  exports.useGetInvoiceAddress = useGetInvoiceAddress;
39910
39957
  exports.useGetLabel = useGetLabel;
39911
39958
  exports.useGetPackageRatingGroupByCarrier = useGetPackageRatingGroupByCarrier;
39959
+ exports.useGetPaymentMethods = useGetPaymentMethods;
39912
39960
  exports.useGetRateCardById = useGetRateCardById;
39913
39961
  exports.useGetSalesOrder = useGetSalesOrder;
39914
39962
  exports.useGetSalesOrderByExternalOrderId = useGetSalesOrderByExternalOrderId;
package/index.mjs CHANGED
@@ -10537,6 +10537,16 @@ const fallbackTheme = {
10537
10537
  pink: '#E995BA',
10538
10538
  green: '#DEF895'
10539
10539
  }
10540
+ },
10541
+ destructive: {
10542
+ ultraLight: '#FDF7F7',
10543
+ light: '#821212',
10544
+ main: '#A91919',
10545
+ dark: '#5D0E0E'
10546
+ },
10547
+ upgrade: {
10548
+ main: '#8D30F7',
10549
+ light: '#F6F2FF'
10540
10550
  }
10541
10551
  },
10542
10552
  spacingBase: 8,
@@ -10798,17 +10808,17 @@ var AccountBillingPlanChangeType = /* @__PURE__ */ ((AccountBillingPlanChangeTyp
10798
10808
  return AccountBillingPlanChangeType2;
10799
10809
  })(AccountBillingPlanChangeType || {});
10800
10810
 
10801
- var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10802
- var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10803
- var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10811
+ var __getOwnPropSymbols$W = Object.getOwnPropertySymbols;
10812
+ var __hasOwnProp$W = Object.prototype.hasOwnProperty;
10813
+ var __propIsEnum$W = Object.prototype.propertyIsEnumerable;
10804
10814
  var __objRest$x = (source, exclude) => {
10805
10815
  var target = {};
10806
10816
  for (var prop in source)
10807
- if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10817
+ if (__hasOwnProp$W.call(source, prop) && exclude.indexOf(prop) < 0)
10808
10818
  target[prop] = source[prop];
10809
- if (source != null && __getOwnPropSymbols$V)
10810
- for (var prop of __getOwnPropSymbols$V(source)) {
10811
- if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10819
+ if (source != null && __getOwnPropSymbols$W)
10820
+ for (var prop of __getOwnPropSymbols$W(source)) {
10821
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$W.call(source, prop))
10812
10822
  target[prop] = source[prop];
10813
10823
  }
10814
10824
  return target;
@@ -10943,17 +10953,17 @@ const types = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
10943
10953
  RateCardStatus
10944
10954
  }, Symbol.toStringTag, { value: 'Module' }));
10945
10955
 
10946
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
10947
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
10948
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
10956
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
10957
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
10958
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
10949
10959
  var __objRest$w = (source, exclude) => {
10950
10960
  var target = {};
10951
10961
  for (var prop in source)
10952
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
10962
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
10953
10963
  target[prop] = source[prop];
10954
- if (source != null && __getOwnPropSymbols$U)
10955
- for (var prop of __getOwnPropSymbols$U(source)) {
10956
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
10964
+ if (source != null && __getOwnPropSymbols$V)
10965
+ for (var prop of __getOwnPropSymbols$V(source)) {
10966
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
10957
10967
  target[prop] = source[prop];
10958
10968
  }
10959
10969
  return target;
@@ -11060,6 +11070,13 @@ class AuctanePayAPI {
11060
11070
  request
11061
11071
  );
11062
11072
  };
11073
+ /**
11074
+ * The `getPaymentMethods` method retrieve the list of Payment Methods for a given user.
11075
+ * @docs https://auctane.atlassian.net/wiki/spaces/SEEU/pages/5906662077/AUCTANE+PAY+ENDPOINTS+FOR+SHIPSTATION+API#Get-payment-methods
11076
+ */
11077
+ this.getPaymentMethods = () => {
11078
+ return this.client.get("/v1/payments/payment_methods");
11079
+ };
11063
11080
  this.client = client;
11064
11081
  }
11065
11082
  }
@@ -13850,33 +13867,33 @@ const decamelizeKeys = (obj, separator = "_") => {
13850
13867
  return obj;
13851
13868
  };
13852
13869
 
13853
- var __defProp$I = Object.defineProperty;
13854
- var __defProps$C = Object.defineProperties;
13855
- var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
13856
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
13857
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
13858
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
13859
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13860
- var __spreadValues$I = (a, b) => {
13870
+ var __defProp$J = Object.defineProperty;
13871
+ var __defProps$D = Object.defineProperties;
13872
+ var __getOwnPropDescs$D = Object.getOwnPropertyDescriptors;
13873
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
13874
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
13875
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
13876
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13877
+ var __spreadValues$J = (a, b) => {
13861
13878
  for (var prop in b || (b = {}))
13862
- if (__hasOwnProp$T.call(b, prop))
13863
- __defNormalProp$I(a, prop, b[prop]);
13864
- if (__getOwnPropSymbols$T)
13865
- for (var prop of __getOwnPropSymbols$T(b)) {
13866
- if (__propIsEnum$T.call(b, prop))
13867
- __defNormalProp$I(a, prop, b[prop]);
13879
+ if (__hasOwnProp$U.call(b, prop))
13880
+ __defNormalProp$J(a, prop, b[prop]);
13881
+ if (__getOwnPropSymbols$U)
13882
+ for (var prop of __getOwnPropSymbols$U(b)) {
13883
+ if (__propIsEnum$U.call(b, prop))
13884
+ __defNormalProp$J(a, prop, b[prop]);
13868
13885
  }
13869
13886
  return a;
13870
13887
  };
13871
- var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
13888
+ var __spreadProps$D = (a, b) => __defProps$D(a, __getOwnPropDescs$D(b));
13872
13889
  var __objRest$v = (source, exclude) => {
13873
13890
  var target = {};
13874
13891
  for (var prop in source)
13875
- if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
13892
+ if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
13876
13893
  target[prop] = source[prop];
13877
- if (source != null && __getOwnPropSymbols$T)
13878
- for (var prop of __getOwnPropSymbols$T(source)) {
13879
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
13894
+ if (source != null && __getOwnPropSymbols$U)
13895
+ for (var prop of __getOwnPropSymbols$U(source)) {
13896
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
13880
13897
  target[prop] = source[prop];
13881
13898
  }
13882
13899
  return target;
@@ -13926,7 +13943,7 @@ class CarriersAPI {
13926
13943
  const endUserIpAddress = yield getEndUserIpAddress();
13927
13944
  if (!endUserIpAddress)
13928
13945
  return Promise.reject([new CodedError("Unable to get IP address")]);
13929
- return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$C(__spreadValues$I({}, connection), {
13946
+ return yield this.client.post(`/v1/registration/${carrierCode}`, __spreadProps$D(__spreadValues$J({}, connection), {
13930
13947
  endUserIpAddress
13931
13948
  }));
13932
13949
  });
@@ -14012,17 +14029,17 @@ class CarriersAPI {
14012
14029
  }
14013
14030
  }
14014
14031
 
14015
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
14016
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
14017
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
14032
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
14033
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
14034
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
14018
14035
  var __objRest$u = (source, exclude) => {
14019
14036
  var target = {};
14020
14037
  for (var prop in source)
14021
- if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
14038
+ if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0)
14022
14039
  target[prop] = source[prop];
14023
- if (source != null && __getOwnPropSymbols$S)
14024
- for (var prop of __getOwnPropSymbols$S(source)) {
14025
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
14040
+ if (source != null && __getOwnPropSymbols$T)
14041
+ for (var prop of __getOwnPropSymbols$T(source)) {
14042
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop))
14026
14043
  target[prop] = source[prop];
14027
14044
  }
14028
14045
  return target;
@@ -16237,19 +16254,19 @@ class CustomPackagesAPI {
16237
16254
  }
16238
16255
  }
16239
16256
 
16240
- var __defProp$H = Object.defineProperty;
16241
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16242
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16243
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16244
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16245
- var __spreadValues$H = (a, b) => {
16257
+ var __defProp$I = Object.defineProperty;
16258
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
16259
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
16260
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
16261
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16262
+ var __spreadValues$I = (a, b) => {
16246
16263
  for (var prop in b || (b = {}))
16247
- if (__hasOwnProp$R.call(b, prop))
16248
- __defNormalProp$H(a, prop, b[prop]);
16249
- if (__getOwnPropSymbols$R)
16250
- for (var prop of __getOwnPropSymbols$R(b)) {
16251
- if (__propIsEnum$R.call(b, prop))
16252
- __defNormalProp$H(a, prop, b[prop]);
16264
+ if (__hasOwnProp$S.call(b, prop))
16265
+ __defNormalProp$I(a, prop, b[prop]);
16266
+ if (__getOwnPropSymbols$S)
16267
+ for (var prop of __getOwnPropSymbols$S(b)) {
16268
+ if (__propIsEnum$S.call(b, prop))
16269
+ __defNormalProp$I(a, prop, b[prop]);
16253
16270
  }
16254
16271
  return a;
16255
16272
  };
@@ -16297,7 +16314,7 @@ class FundingSourcesAPI {
16297
16314
  if (!endUserIpAddress) {
16298
16315
  return Promise.reject([new CodedError("Unable to get IP address")]);
16299
16316
  }
16300
- return yield this.client.post("/v1/funding_sources", __spreadValues$H({
16317
+ return yield this.client.post("/v1/funding_sources", __spreadValues$I({
16301
16318
  endUserIpAddress
16302
16319
  }, createFundingSource));
16303
16320
  });
@@ -16316,7 +16333,7 @@ class FundingSourcesAPI {
16316
16333
  {
16317
16334
  billingInfo,
16318
16335
  endUserIpAddress,
16319
- paymentMethod: __spreadValues$H({
16336
+ paymentMethod: __spreadValues$I({
16320
16337
  creditCardInfo
16321
16338
  }, auctanePayInfo)
16322
16339
  }
@@ -16331,7 +16348,7 @@ class FundingSourcesAPI {
16331
16348
  if (!endUserIpAddress) {
16332
16349
  return Promise.reject([new CodedError("Unable to get IP address")]);
16333
16350
  }
16334
- return yield this.client.post("/v1/registration/funding_source", __spreadValues$H({
16351
+ return yield this.client.post("/v1/registration/funding_source", __spreadValues$I({
16335
16352
  endUserIpAddress
16336
16353
  }, carrier));
16337
16354
  });
@@ -16500,17 +16517,17 @@ class LabelsAPI {
16500
16517
  }
16501
16518
  }
16502
16519
 
16503
- var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16504
- var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16505
- var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16520
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
16521
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
16522
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
16506
16523
  var __objRest$t = (source, exclude) => {
16507
16524
  var target = {};
16508
16525
  for (var prop in source)
16509
- if (__hasOwnProp$Q.call(source, prop) && exclude.indexOf(prop) < 0)
16526
+ if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
16510
16527
  target[prop] = source[prop];
16511
- if (source != null && __getOwnPropSymbols$Q)
16512
- for (var prop of __getOwnPropSymbols$Q(source)) {
16513
- if (exclude.indexOf(prop) < 0 && __propIsEnum$Q.call(source, prop))
16528
+ if (source != null && __getOwnPropSymbols$R)
16529
+ for (var prop of __getOwnPropSymbols$R(source)) {
16530
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
16514
16531
  target[prop] = source[prop];
16515
16532
  }
16516
16533
  return target;
@@ -16631,19 +16648,19 @@ class RateCardsAPI {
16631
16648
  }
16632
16649
  }
16633
16650
 
16634
- var __defProp$G = Object.defineProperty;
16635
- var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16636
- var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16637
- var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16638
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16639
- var __spreadValues$G = (a, b) => {
16651
+ var __defProp$H = Object.defineProperty;
16652
+ var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
16653
+ var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
16654
+ var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
16655
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16656
+ var __spreadValues$H = (a, b) => {
16640
16657
  for (var prop in b || (b = {}))
16641
- if (__hasOwnProp$P.call(b, prop))
16642
- __defNormalProp$G(a, prop, b[prop]);
16643
- if (__getOwnPropSymbols$P)
16644
- for (var prop of __getOwnPropSymbols$P(b)) {
16645
- if (__propIsEnum$P.call(b, prop))
16646
- __defNormalProp$G(a, prop, b[prop]);
16658
+ if (__hasOwnProp$Q.call(b, prop))
16659
+ __defNormalProp$H(a, prop, b[prop]);
16660
+ if (__getOwnPropSymbols$Q)
16661
+ for (var prop of __getOwnPropSymbols$Q(b)) {
16662
+ if (__propIsEnum$Q.call(b, prop))
16663
+ __defNormalProp$H(a, prop, b[prop]);
16647
16664
  }
16648
16665
  return a;
16649
16666
  };
@@ -16665,7 +16682,7 @@ class RatesAPI {
16665
16682
  * method.
16666
16683
  */
16667
16684
  this.estimate = (params) => {
16668
- return this.client.post("/v1/rates/estimate", __spreadValues$G({}, params));
16685
+ return this.client.post("/v1/rates/estimate", __spreadValues$H({}, params));
16669
16686
  };
16670
16687
  this.client = client;
16671
16688
  }
@@ -16849,19 +16866,19 @@ class SellersAPI {
16849
16866
  }
16850
16867
  }
16851
16868
 
16852
- var __defProp$F = Object.defineProperty;
16853
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
16854
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
16855
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
16856
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16857
- var __spreadValues$F = (a, b) => {
16869
+ var __defProp$G = Object.defineProperty;
16870
+ var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
16871
+ var __hasOwnProp$P = Object.prototype.hasOwnProperty;
16872
+ var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
16873
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16874
+ var __spreadValues$G = (a, b) => {
16858
16875
  for (var prop in b || (b = {}))
16859
- if (__hasOwnProp$O.call(b, prop))
16860
- __defNormalProp$F(a, prop, b[prop]);
16861
- if (__getOwnPropSymbols$O)
16862
- for (var prop of __getOwnPropSymbols$O(b)) {
16863
- if (__propIsEnum$O.call(b, prop))
16864
- __defNormalProp$F(a, prop, b[prop]);
16876
+ if (__hasOwnProp$P.call(b, prop))
16877
+ __defNormalProp$G(a, prop, b[prop]);
16878
+ if (__getOwnPropSymbols$P)
16879
+ for (var prop of __getOwnPropSymbols$P(b)) {
16880
+ if (__propIsEnum$P.call(b, prop))
16881
+ __defNormalProp$G(a, prop, b[prop]);
16865
16882
  }
16866
16883
  return a;
16867
16884
  };
@@ -16873,7 +16890,7 @@ class ServicePointsAPI {
16873
16890
  * Either an address, coordinates, or an address query
16874
16891
  */
16875
16892
  this.list = (options) => {
16876
- return this.client.post("/v1/service_points/list", __spreadValues$F({}, options));
16893
+ return this.client.post("/v1/service_points/list", __spreadValues$G({}, options));
16877
16894
  };
16878
16895
  /**
16879
16896
  * Get a specific service point by its carrier code, country code, and id
@@ -34357,33 +34374,33 @@ class WebhooksAPI {
34357
34374
  }
34358
34375
  }
34359
34376
 
34360
- var __defProp$E = Object.defineProperty;
34361
- var __defProps$B = Object.defineProperties;
34362
- var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34363
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34364
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34365
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34366
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34367
- var __spreadValues$E = (a, b) => {
34377
+ var __defProp$F = Object.defineProperty;
34378
+ var __defProps$C = Object.defineProperties;
34379
+ var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
34380
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
34381
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
34382
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
34383
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34384
+ var __spreadValues$F = (a, b) => {
34368
34385
  for (var prop in b || (b = {}))
34369
- if (__hasOwnProp$N.call(b, prop))
34370
- __defNormalProp$E(a, prop, b[prop]);
34371
- if (__getOwnPropSymbols$N)
34372
- for (var prop of __getOwnPropSymbols$N(b)) {
34373
- if (__propIsEnum$N.call(b, prop))
34374
- __defNormalProp$E(a, prop, b[prop]);
34386
+ if (__hasOwnProp$O.call(b, prop))
34387
+ __defNormalProp$F(a, prop, b[prop]);
34388
+ if (__getOwnPropSymbols$O)
34389
+ for (var prop of __getOwnPropSymbols$O(b)) {
34390
+ if (__propIsEnum$O.call(b, prop))
34391
+ __defNormalProp$F(a, prop, b[prop]);
34375
34392
  }
34376
34393
  return a;
34377
34394
  };
34378
- var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34395
+ var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
34379
34396
  var __objRest$s = (source, exclude) => {
34380
34397
  var target = {};
34381
34398
  for (var prop in source)
34382
- if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
34399
+ if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
34383
34400
  target[prop] = source[prop];
34384
- if (source != null && __getOwnPropSymbols$N)
34385
- for (var prop of __getOwnPropSymbols$N(source)) {
34386
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
34401
+ if (source != null && __getOwnPropSymbols$O)
34402
+ for (var prop of __getOwnPropSymbols$O(source)) {
34403
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
34387
34404
  target[prop] = source[prop];
34388
34405
  }
34389
34406
  return target;
@@ -34411,7 +34428,7 @@ var __async$X = (__this, __arguments, generator) => {
34411
34428
  const logger$1 = E({
34412
34429
  level: process.env.NODE_ENV === "production" ? "fatal" : "info",
34413
34430
  name: "shipengine-api",
34414
- serializers: __spreadProps$B(__spreadValues$E({}, k), {
34431
+ serializers: __spreadProps$C(__spreadValues$F({}, k), {
34415
34432
  req: (req) => ({
34416
34433
  headers: req.headers,
34417
34434
  method: req.method,
@@ -34436,7 +34453,7 @@ class ShipEngineAPI {
34436
34453
  this.getSandboxToken = getSandboxToken;
34437
34454
  const client = axios.create({
34438
34455
  baseURL,
34439
- headers: __spreadProps$B(__spreadValues$E({}, headers), {
34456
+ headers: __spreadProps$C(__spreadValues$F({}, headers), {
34440
34457
  "Content-Type": "application/json"
34441
34458
  }),
34442
34459
  paramsSerializer: (params) => lib.stringify(decamelizeKeys(params), { arrayFormat: "brackets" }),
@@ -34853,25 +34870,25 @@ const delay = (ms) => new Promise((resolve) => {
34853
34870
 
34854
34871
  const onError = (_errors) => _default();
34855
34872
 
34856
- var __defProp$D = Object.defineProperty;
34857
- var __defProps$A = Object.defineProperties;
34858
- var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
34859
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
34860
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
34861
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
34862
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34863
- var __spreadValues$D = (a, b) => {
34873
+ var __defProp$E = Object.defineProperty;
34874
+ var __defProps$B = Object.defineProperties;
34875
+ var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
34876
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
34877
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
34878
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
34879
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
34880
+ var __spreadValues$E = (a, b) => {
34864
34881
  for (var prop in b || (b = {}))
34865
- if (__hasOwnProp$M.call(b, prop))
34866
- __defNormalProp$D(a, prop, b[prop]);
34867
- if (__getOwnPropSymbols$M)
34868
- for (var prop of __getOwnPropSymbols$M(b)) {
34869
- if (__propIsEnum$M.call(b, prop))
34870
- __defNormalProp$D(a, prop, b[prop]);
34882
+ if (__hasOwnProp$N.call(b, prop))
34883
+ __defNormalProp$E(a, prop, b[prop]);
34884
+ if (__getOwnPropSymbols$N)
34885
+ for (var prop of __getOwnPropSymbols$N(b)) {
34886
+ if (__propIsEnum$N.call(b, prop))
34887
+ __defNormalProp$E(a, prop, b[prop]);
34871
34888
  }
34872
34889
  return a;
34873
34890
  };
34874
- var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
34891
+ var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
34875
34892
  const streams = [];
34876
34893
  if (process.env.NODE_ENV === "production") {
34877
34894
  streams.push({
@@ -34880,7 +34897,7 @@ if (process.env.NODE_ENV === "production") {
34880
34897
  }
34881
34898
  const logger = E({
34882
34899
  name: "shipengine",
34883
- serializers: __spreadProps$A(__spreadValues$D({}, k), {
34900
+ serializers: __spreadProps$B(__spreadValues$E({}, k), {
34884
34901
  req: (req) => ({
34885
34902
  headers: req.headers,
34886
34903
  method: req.method,
@@ -35117,25 +35134,25 @@ const useValidateAddresses = () => {
35117
35134
  });
35118
35135
  };
35119
35136
 
35120
- var __defProp$C = Object.defineProperty;
35121
- var __defProps$z = Object.defineProperties;
35122
- var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35123
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35124
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35125
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35126
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35127
- var __spreadValues$C = (a, b) => {
35137
+ var __defProp$D = Object.defineProperty;
35138
+ var __defProps$A = Object.defineProperties;
35139
+ var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
35140
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
35141
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
35142
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
35143
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35144
+ var __spreadValues$D = (a, b) => {
35128
35145
  for (var prop in b || (b = {}))
35129
- if (__hasOwnProp$L.call(b, prop))
35130
- __defNormalProp$C(a, prop, b[prop]);
35131
- if (__getOwnPropSymbols$L)
35132
- for (var prop of __getOwnPropSymbols$L(b)) {
35133
- if (__propIsEnum$L.call(b, prop))
35134
- __defNormalProp$C(a, prop, b[prop]);
35146
+ if (__hasOwnProp$M.call(b, prop))
35147
+ __defNormalProp$D(a, prop, b[prop]);
35148
+ if (__getOwnPropSymbols$M)
35149
+ for (var prop of __getOwnPropSymbols$M(b)) {
35150
+ if (__propIsEnum$M.call(b, prop))
35151
+ __defNormalProp$D(a, prop, b[prop]);
35135
35152
  }
35136
35153
  return a;
35137
35154
  };
35138
- var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35155
+ var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
35139
35156
  var __async$Q = (__this, __arguments, generator) => {
35140
35157
  return new Promise((resolve, reject) => {
35141
35158
  var fulfilled = (value) => {
@@ -35158,7 +35175,7 @@ var __async$Q = (__this, __arguments, generator) => {
35158
35175
  };
35159
35176
  const useCreateAuctanePaySession = (params) => {
35160
35177
  const { client } = useShipEngine();
35161
- return useMutation(__spreadProps$z(__spreadValues$C({}, params), {
35178
+ return useMutation(__spreadProps$A(__spreadValues$D({}, params), {
35162
35179
  mutationFn: (request) => __async$Q(void 0, null, function* () {
35163
35180
  const result = yield client.auctanePay.createSession(request);
35164
35181
  return result.data;
@@ -35168,6 +35185,36 @@ const useCreateAuctanePaySession = (params) => {
35168
35185
  }));
35169
35186
  };
35170
35187
 
35188
+ var __defProp$C = Object.defineProperty;
35189
+ var __defProps$z = Object.defineProperties;
35190
+ var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
35191
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
35192
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
35193
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
35194
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35195
+ var __spreadValues$C = (a, b) => {
35196
+ for (var prop in b || (b = {}))
35197
+ if (__hasOwnProp$L.call(b, prop))
35198
+ __defNormalProp$C(a, prop, b[prop]);
35199
+ if (__getOwnPropSymbols$L)
35200
+ for (var prop of __getOwnPropSymbols$L(b)) {
35201
+ if (__propIsEnum$L.call(b, prop))
35202
+ __defNormalProp$C(a, prop, b[prop]);
35203
+ }
35204
+ return a;
35205
+ };
35206
+ var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
35207
+ const useGetAuctanePayConfig = (params) => {
35208
+ const { client } = useShipEngine();
35209
+ const queryParams = __spreadValues$C({}, params);
35210
+ return useQuery(__spreadProps$z(__spreadValues$C({}, queryParams), {
35211
+ onError,
35212
+ queryFn: () => client.auctanePay.getConfig(),
35213
+ queryKey: ["useGetAuctanePayConfig"],
35214
+ select: (result) => result.data
35215
+ }));
35216
+ };
35217
+
35171
35218
  var __defProp$B = Object.defineProperty;
35172
35219
  var __defProps$y = Object.defineProperties;
35173
35220
  var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
@@ -35187,36 +35234,6 @@ var __spreadValues$B = (a, b) => {
35187
35234
  return a;
35188
35235
  };
35189
35236
  var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
35190
- const useGetAuctanePayConfig = (params) => {
35191
- const { client } = useShipEngine();
35192
- const queryParams = __spreadValues$B({}, params);
35193
- return useQuery(__spreadProps$y(__spreadValues$B({}, queryParams), {
35194
- onError,
35195
- queryFn: () => client.auctanePay.getConfig(),
35196
- queryKey: ["useGetAuctanePayConfig"],
35197
- select: (result) => result.data
35198
- }));
35199
- };
35200
-
35201
- var __defProp$A = Object.defineProperty;
35202
- var __defProps$x = Object.defineProperties;
35203
- var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35204
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35205
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35206
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35207
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35208
- var __spreadValues$A = (a, b) => {
35209
- for (var prop in b || (b = {}))
35210
- if (__hasOwnProp$J.call(b, prop))
35211
- __defNormalProp$A(a, prop, b[prop]);
35212
- if (__getOwnPropSymbols$J)
35213
- for (var prop of __getOwnPropSymbols$J(b)) {
35214
- if (__propIsEnum$J.call(b, prop))
35215
- __defNormalProp$A(a, prop, b[prop]);
35216
- }
35217
- return a;
35218
- };
35219
- var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35220
35237
  var __async$P = (__this, __arguments, generator) => {
35221
35238
  return new Promise((resolve, reject) => {
35222
35239
  var fulfilled = (value) => {
@@ -35239,7 +35256,7 @@ var __async$P = (__this, __arguments, generator) => {
35239
35256
  };
35240
35257
  const usePreviewTransaction = (params) => {
35241
35258
  const { client } = useShipEngine();
35242
- return useMutation(__spreadProps$x(__spreadValues$A({}, params), {
35259
+ return useMutation(__spreadProps$y(__spreadValues$B({}, params), {
35243
35260
  mutationFn: (_0) => __async$P(void 0, [_0], function* ({ amount, transactionCategory = "add_funds" }) {
35244
35261
  const request = {
35245
35262
  amount,
@@ -35253,6 +35270,36 @@ const usePreviewTransaction = (params) => {
35253
35270
  }));
35254
35271
  };
35255
35272
 
35273
+ var __defProp$A = Object.defineProperty;
35274
+ var __defProps$x = Object.defineProperties;
35275
+ var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
35276
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
35277
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
35278
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
35279
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
35280
+ var __spreadValues$A = (a, b) => {
35281
+ for (var prop in b || (b = {}))
35282
+ if (__hasOwnProp$J.call(b, prop))
35283
+ __defNormalProp$A(a, prop, b[prop]);
35284
+ if (__getOwnPropSymbols$J)
35285
+ for (var prop of __getOwnPropSymbols$J(b)) {
35286
+ if (__propIsEnum$J.call(b, prop))
35287
+ __defNormalProp$A(a, prop, b[prop]);
35288
+ }
35289
+ return a;
35290
+ };
35291
+ var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
35292
+ const useGetPaymentMethods = (params) => {
35293
+ const { client } = useShipEngine();
35294
+ const queryParams = __spreadValues$A({}, params);
35295
+ return useQuery(__spreadProps$x(__spreadValues$A({}, queryParams), {
35296
+ onError,
35297
+ queryFn: () => client.auctanePay.getPaymentMethods(),
35298
+ queryKey: ["useGetPaymentMethods"],
35299
+ select: (result) => result.data
35300
+ }));
35301
+ };
35302
+
35256
35303
  var __async$O = (__this, __arguments, generator) => {
35257
35304
  return new Promise((resolve, reject) => {
35258
35305
  var fulfilled = (value) => {
@@ -39768,4 +39815,4 @@ const alchemy = {
39768
39815
  createElement
39769
39816
  };
39770
39817
 
39771
- export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
39818
+ export { AccountBillingAPI, AccountBillingPlanAPI, AccountBillingPlanChangeType, AccountSettingsAPI, AddressesAPI, AlchemyContext, AlchemyProvider, AlchemyTestProvider, AuctanePayAPI, CarriersAPI, CodedError, ConfirmationType, ConnectionsAPI, CreditCardVendor, Currency, CustomPackagesAPI, CustomsContentsType, CustomsNonDeliveryType, Element, ErrorBoundary, FundingSourcesAPI, InsuranceAPI, InsuranceProviderType, InvoiceAddressAPI, LabelsAPI, MetadataCapability, MetadataRequirement, MetadataSatisfyingFormTypes, MovementIndicator, OrderSourcesAPI, RateCardStatus, RateCardsAPI, RatesAPI, types as SE, SalesOrderShipmentsAPI, SalesOrdersAPI, SellersAPI, ServicePointsAPI, ShipEngine, ShipEngineAPI, ShipEngineContext, ShipmentsAPI, ShippingRulesAPI, ThemesAPI, UsersApi, WarehousesAPI, WebhooksAPI, alchemy, camelizeKeys, decamelizeKeys, alchemy as default, delay, getEmotionCache, getEndUserIpAddress, isCodedError, isCodedErrors, isDataCodedErrors, isInvalidTokenError, logger, onError, parseError, retryUntil, useAddFunds, useAddInsuranceFunds, useAddSandboxCarriers, useAlchemy, useCalculateRates, useCancelShipment, useCarrierConnectionsServicesList, useConnectCarrier, useConnectCarrierAccount, useCreateAccountImage, useCreateAuctanePaySession, useCreateFundingSource, useCreateInvoiceAddress, useCreateLabel, useCreateLabelByRateId, useCreateLabelByShipmentId, useCreateRateCard, useCreateSalesOrderShipment, useCreateSandboxSeller, useCreateSellerApiKey, useCreateShipment, useCreateShippingRule, useCreateWarehouse, useCreateWebhook, useDeactivateOrderSource, useDeleteAccountImage, useDeleteCarrier, useDeleteRateCard, useDeleteSellerApiKey, useDeleteShippingRule, useDeleteWarehouse, useDeleteWebhook, useDownloadRateCard, useEditShippingRule, useExportLabels, useExportShipments, useFundingSourcesAddFunds, useGetAccountBilling, useGetAccountBillingPlan, useGetAccountImages, useGetAccountSettings, useGetAuctanePayConfig, useGetAutoFundingConfiguration, useGetCarrierById, useGetCarrierConnectionForm, useGetConnectionsCarrierSettings, useGetCountriesByCarrier, useGetCurrenciesByCarrier, useGetFundingSourceById, useGetFundingSourceMetadata, useGetFundingSourceTransactions, useGetHereToken, useGetInsuranceAccount, useGetInsuranceFundingSourceAcceptedTerms, useGetInvoiceAddress, useGetLabel, useGetPackageRatingGroupByCarrier, useGetPaymentMethods, useGetRateCardById, useGetSalesOrder, useGetSalesOrderByExternalOrderId, useGetSalesOrderShipment, useGetServicePoint, useGetServicesByCarrier, useGetShipment, useGetShipmentByExternalId, useGetShipmentRates, useGetShippingRuleById, useGetShippingRuleConditionsOptions, useGetThemeById, useGetZonesByCarrier, useI18n, useListCarrierConnections, useListCarriers, useListCustomPackageTypes, useListFundingSources, useListLabels, useListLabelsInfinite, useListOrderSources, useListOrderSourcesConnections, useListRateCards, useListSalesOrderShipments, useListSalesOrderShipmentsByExternalOrderId, useListSalesOrders, useListSandboxSellerIds, useListSellerApiKeys, useListServicePoints, useListShipments, useListShippingRules, useListUsers, useListWarehouses, useListWebhooks, useLoadIcons, useNotifySalesOrderShipped, useParseAddress, usePreviewTransaction, usePublishRateCard, useRatesEstimate, useRefreshOrderSource, useRefreshOrderSourceAsync, useRegisterCarrier, useRequestStampsAccountUrls, useShipEngine, useUpdateAccountBillingPlan, useUpdateAccountImage, useUpdateAccountSettings, useUpdateAutoFunding, useUpdateConnectionsCarrierSettings, useUpdateFundingSource, useUpdateInvoiceAddress, useUpdateOrderSource, useUpdateRateCard, useUpdateSalesOrderShipment, useUpdateWarehouse, useUpdateWebhook, useUploadRateCard, useUpsertAccountBilling, useValidateAddresses, useVoidLabel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "6.0.59",
3
+ "version": "6.0.60",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {