@shipengine/alchemy 0.5.2 → 0.5.3
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 +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -7590,13 +7590,13 @@ class FundingSourcesAPI {
|
|
|
7590
7590
|
this.get = (fundingSourceId) => {
|
|
7591
7591
|
return this.client.get(`/v1/funding_sources/${fundingSourceId}`);
|
|
7592
7592
|
};
|
|
7593
|
-
this.create = (
|
|
7593
|
+
this.create = (createFundingSource) => __async$p(this, null, function* () {
|
|
7594
7594
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
7595
7595
|
if (!endUserIpAddress)
|
|
7596
7596
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
7597
7597
|
return yield this.client.post("/v1/funding_sources", __spreadValues$4({
|
|
7598
7598
|
endUserIpAddress
|
|
7599
|
-
},
|
|
7599
|
+
}, createFundingSource));
|
|
7600
7600
|
});
|
|
7601
7601
|
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$p(this, null, function* () {
|
|
7602
7602
|
const endUserIpAddress = yield getEndUserIpAddress();
|
package/index.mjs
CHANGED
|
@@ -7568,13 +7568,13 @@ class FundingSourcesAPI {
|
|
|
7568
7568
|
this.get = (fundingSourceId) => {
|
|
7569
7569
|
return this.client.get(`/v1/funding_sources/${fundingSourceId}`);
|
|
7570
7570
|
};
|
|
7571
|
-
this.create = (
|
|
7571
|
+
this.create = (createFundingSource) => __async$p(this, null, function* () {
|
|
7572
7572
|
const endUserIpAddress = yield getEndUserIpAddress();
|
|
7573
7573
|
if (!endUserIpAddress)
|
|
7574
7574
|
return Promise.reject([new CodedError("Unable to get IP address")]);
|
|
7575
7575
|
return yield this.client.post("/v1/funding_sources", __spreadValues$4({
|
|
7576
7576
|
endUserIpAddress
|
|
7577
|
-
},
|
|
7577
|
+
}, createFundingSource));
|
|
7578
7578
|
});
|
|
7579
7579
|
this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$p(this, null, function* () {
|
|
7580
7580
|
const endUserIpAddress = yield getEndUserIpAddress();
|