@shipengine/alchemy 6.0.50 → 6.0.51
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.
- package/index.js +25 -36
- package/index.mjs +25 -36
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4905,41 +4905,33 @@ var _getHolder = getHolder$2;
|
|
|
4905
4905
|
|
|
4906
4906
|
/** Used as references for various `Number` constants. */
|
|
4907
4907
|
|
|
4908
|
-
var
|
|
4909
|
-
var hasRequired_isIndex;
|
|
4908
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4910
4909
|
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
hasRequired_isIndex = 1;
|
|
4914
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4910
|
+
/** Used to detect unsigned integer values. */
|
|
4911
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4915
4912
|
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
function isIndex(value, length) {
|
|
4928
|
-
var type = typeof value;
|
|
4929
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4930
|
-
|
|
4931
|
-
return !!length &&
|
|
4932
|
-
(type == 'number' ||
|
|
4933
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4934
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4935
|
-
}
|
|
4913
|
+
/**
|
|
4914
|
+
* Checks if `value` is a valid array-like index.
|
|
4915
|
+
*
|
|
4916
|
+
* @private
|
|
4917
|
+
* @param {*} value The value to check.
|
|
4918
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4919
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4920
|
+
*/
|
|
4921
|
+
function isIndex$3(value, length) {
|
|
4922
|
+
var type = typeof value;
|
|
4923
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4936
4924
|
|
|
4937
|
-
|
|
4938
|
-
|
|
4925
|
+
return !!length &&
|
|
4926
|
+
(type == 'number' ||
|
|
4927
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4928
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4939
4929
|
}
|
|
4940
4930
|
|
|
4931
|
+
var _isIndex = isIndex$3;
|
|
4932
|
+
|
|
4941
4933
|
var copyArray$2 = _copyArray,
|
|
4942
|
-
isIndex$2 =
|
|
4934
|
+
isIndex$2 = _isIndex;
|
|
4943
4935
|
|
|
4944
4936
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4945
4937
|
var nativeMin$1 = Math.min;
|
|
@@ -6132,7 +6124,7 @@ var baseTimes = _baseTimes,
|
|
|
6132
6124
|
isArguments$2 = requireIsArguments(),
|
|
6133
6125
|
isArray$f = isArray_1,
|
|
6134
6126
|
isBuffer$4 = isBufferExports,
|
|
6135
|
-
isIndex$1 =
|
|
6127
|
+
isIndex$1 = _isIndex,
|
|
6136
6128
|
isTypedArray$1 = requireIsTypedArray();
|
|
6137
6129
|
|
|
6138
6130
|
/** Used for built-in method references. */
|
|
@@ -9463,7 +9455,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9463
9455
|
var castPath = _castPath,
|
|
9464
9456
|
isArguments$1 = requireIsArguments(),
|
|
9465
9457
|
isArray$8 = isArray_1,
|
|
9466
|
-
isIndex =
|
|
9458
|
+
isIndex = _isIndex,
|
|
9467
9459
|
isLength = isLength_1,
|
|
9468
9460
|
toKey$3 = _toKey;
|
|
9469
9461
|
|
|
@@ -10353,7 +10345,7 @@ function require_isIterateeCall () {
|
|
|
10353
10345
|
hasRequired_isIterateeCall = 1;
|
|
10354
10346
|
var eq = requireEq(),
|
|
10355
10347
|
isArrayLike = isArrayLike_1,
|
|
10356
|
-
isIndex =
|
|
10348
|
+
isIndex = _isIndex,
|
|
10357
10349
|
isObject = isObject_1;
|
|
10358
10350
|
|
|
10359
10351
|
/**
|
|
@@ -16285,7 +16277,7 @@ class FundingSourcesAPI {
|
|
|
16285
16277
|
* user to update the billing address or payment information associated with the
|
|
16286
16278
|
* funding source.
|
|
16287
16279
|
*/
|
|
16288
|
-
this.update = (billingInfo, creditCardInfo,
|
|
16280
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16289
16281
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16290
16282
|
if (!endUserIpAddress) {
|
|
16291
16283
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16296,7 +16288,6 @@ class FundingSourcesAPI {
|
|
|
16296
16288
|
billingInfo,
|
|
16297
16289
|
endUserIpAddress,
|
|
16298
16290
|
paymentMethod: __spreadValues$E({
|
|
16299
|
-
bankAccountInfo,
|
|
16300
16291
|
creditCardInfo
|
|
16301
16292
|
}, auctanePayInfo)
|
|
16302
16293
|
}
|
|
@@ -35839,14 +35830,12 @@ const useUpdateFundingSource = () => {
|
|
|
35839
35830
|
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35840
35831
|
billingInfo,
|
|
35841
35832
|
creditCardInfo,
|
|
35842
|
-
bankAccountInfo,
|
|
35843
35833
|
fundingSourceId,
|
|
35844
35834
|
auctanePayInfo
|
|
35845
35835
|
}) {
|
|
35846
35836
|
const result = yield client.fundingSources.update(
|
|
35847
35837
|
billingInfo,
|
|
35848
35838
|
creditCardInfo,
|
|
35849
|
-
bankAccountInfo,
|
|
35850
35839
|
auctanePayInfo,
|
|
35851
35840
|
fundingSourceId
|
|
35852
35841
|
);
|
package/index.mjs
CHANGED
|
@@ -4883,41 +4883,33 @@ var _getHolder = getHolder$2;
|
|
|
4883
4883
|
|
|
4884
4884
|
/** Used as references for various `Number` constants. */
|
|
4885
4885
|
|
|
4886
|
-
var
|
|
4887
|
-
var hasRequired_isIndex;
|
|
4886
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
4888
4887
|
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
hasRequired_isIndex = 1;
|
|
4892
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
4888
|
+
/** Used to detect unsigned integer values. */
|
|
4889
|
+
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
4893
4890
|
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
function isIndex(value, length) {
|
|
4906
|
-
var type = typeof value;
|
|
4907
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
4908
|
-
|
|
4909
|
-
return !!length &&
|
|
4910
|
-
(type == 'number' ||
|
|
4911
|
-
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4912
|
-
(value > -1 && value % 1 == 0 && value < length);
|
|
4913
|
-
}
|
|
4891
|
+
/**
|
|
4892
|
+
* Checks if `value` is a valid array-like index.
|
|
4893
|
+
*
|
|
4894
|
+
* @private
|
|
4895
|
+
* @param {*} value The value to check.
|
|
4896
|
+
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
4897
|
+
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
4898
|
+
*/
|
|
4899
|
+
function isIndex$3(value, length) {
|
|
4900
|
+
var type = typeof value;
|
|
4901
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
4914
4902
|
|
|
4915
|
-
|
|
4916
|
-
|
|
4903
|
+
return !!length &&
|
|
4904
|
+
(type == 'number' ||
|
|
4905
|
+
(type != 'symbol' && reIsUint.test(value))) &&
|
|
4906
|
+
(value > -1 && value % 1 == 0 && value < length);
|
|
4917
4907
|
}
|
|
4918
4908
|
|
|
4909
|
+
var _isIndex = isIndex$3;
|
|
4910
|
+
|
|
4919
4911
|
var copyArray$2 = _copyArray,
|
|
4920
|
-
isIndex$2 =
|
|
4912
|
+
isIndex$2 = _isIndex;
|
|
4921
4913
|
|
|
4922
4914
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
4923
4915
|
var nativeMin$1 = Math.min;
|
|
@@ -6110,7 +6102,7 @@ var baseTimes = _baseTimes,
|
|
|
6110
6102
|
isArguments$2 = requireIsArguments(),
|
|
6111
6103
|
isArray$f = isArray_1,
|
|
6112
6104
|
isBuffer$4 = isBufferExports,
|
|
6113
|
-
isIndex$1 =
|
|
6105
|
+
isIndex$1 = _isIndex,
|
|
6114
6106
|
isTypedArray$1 = requireIsTypedArray();
|
|
6115
6107
|
|
|
6116
6108
|
/** Used for built-in method references. */
|
|
@@ -9441,7 +9433,7 @@ var _baseHasIn = baseHasIn$1;
|
|
|
9441
9433
|
var castPath = _castPath,
|
|
9442
9434
|
isArguments$1 = requireIsArguments(),
|
|
9443
9435
|
isArray$8 = isArray_1,
|
|
9444
|
-
isIndex =
|
|
9436
|
+
isIndex = _isIndex,
|
|
9445
9437
|
isLength = isLength_1,
|
|
9446
9438
|
toKey$3 = _toKey;
|
|
9447
9439
|
|
|
@@ -10331,7 +10323,7 @@ function require_isIterateeCall () {
|
|
|
10331
10323
|
hasRequired_isIterateeCall = 1;
|
|
10332
10324
|
var eq = requireEq(),
|
|
10333
10325
|
isArrayLike = isArrayLike_1,
|
|
10334
|
-
isIndex =
|
|
10326
|
+
isIndex = _isIndex,
|
|
10335
10327
|
isObject = isObject_1;
|
|
10336
10328
|
|
|
10337
10329
|
/**
|
|
@@ -16263,7 +16255,7 @@ class FundingSourcesAPI {
|
|
|
16263
16255
|
* user to update the billing address or payment information associated with the
|
|
16264
16256
|
* funding source.
|
|
16265
16257
|
*/
|
|
16266
|
-
this.update = (billingInfo, creditCardInfo,
|
|
16258
|
+
this.update = (billingInfo, creditCardInfo, auctanePayInfo, fundingSourceId) => __async$Z(this, null, function* () {
|
|
16267
16259
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
16268
16260
|
if (!endUserIpAddress) {
|
|
16269
16261
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
@@ -16274,7 +16266,6 @@ class FundingSourcesAPI {
|
|
|
16274
16266
|
billingInfo,
|
|
16275
16267
|
endUserIpAddress,
|
|
16276
16268
|
paymentMethod: __spreadValues$E({
|
|
16277
|
-
bankAccountInfo,
|
|
16278
16269
|
creditCardInfo
|
|
16279
16270
|
}, auctanePayInfo)
|
|
16280
16271
|
}
|
|
@@ -35817,14 +35808,12 @@ const useUpdateFundingSource = () => {
|
|
|
35817
35808
|
mutationFn: (_0) => __async$E(void 0, [_0], function* ({
|
|
35818
35809
|
billingInfo,
|
|
35819
35810
|
creditCardInfo,
|
|
35820
|
-
bankAccountInfo,
|
|
35821
35811
|
fundingSourceId,
|
|
35822
35812
|
auctanePayInfo
|
|
35823
35813
|
}) {
|
|
35824
35814
|
const result = yield client.fundingSources.update(
|
|
35825
35815
|
billingInfo,
|
|
35826
35816
|
creditCardInfo,
|
|
35827
|
-
bankAccountInfo,
|
|
35828
35817
|
auctanePayInfo,
|
|
35829
35818
|
fundingSourceId
|
|
35830
35819
|
);
|