@shipengine/alchemy 0.5.2 → 0.5.4

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 +3 -3
  2. package/index.mjs +3 -3
  3. 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 = (fundingSource) => __async$p(this, null, function* () {
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
- }, fundingSource));
7599
+ }, createFundingSource));
7600
7600
  });
7601
7601
  this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$p(this, null, function* () {
7602
7602
  const endUserIpAddress = yield getEndUserIpAddress();
@@ -7669,7 +7669,7 @@ class RateCardsAPI {
7669
7669
  this.client = client;
7670
7670
  this.list = (carrierIds) => {
7671
7671
  return this.client.get(
7672
- `/v1/rate-cards?carrier_ids=${carrierIds.toString()}`
7672
+ `/v1/rate_cards?carrier_ids=${carrierIds.toString()}`
7673
7673
  );
7674
7674
  };
7675
7675
  this.client = client;
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 = (fundingSource) => __async$p(this, null, function* () {
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
- }, fundingSource));
7577
+ }, createFundingSource));
7578
7578
  });
7579
7579
  this.update = (billingInfo, creditCardInfo, fundingSourceId) => __async$p(this, null, function* () {
7580
7580
  const endUserIpAddress = yield getEndUserIpAddress();
@@ -7647,7 +7647,7 @@ class RateCardsAPI {
7647
7647
  this.client = client;
7648
7648
  this.list = (carrierIds) => {
7649
7649
  return this.client.get(
7650
- `/v1/rate-cards?carrier_ids=${carrierIds.toString()}`
7650
+ `/v1/rate_cards?carrier_ids=${carrierIds.toString()}`
7651
7651
  );
7652
7652
  };
7653
7653
  this.client = client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/alchemy",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {