@internxt/sdk 1.9.19 → 1.9.20
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.
|
@@ -58,7 +58,7 @@ export declare class Checkout {
|
|
|
58
58
|
* @param currency - The currency of the price (optional)
|
|
59
59
|
* @returns The price object containing the details of the requested price
|
|
60
60
|
*/
|
|
61
|
-
getPriceById({ priceId, promoCodeName, currency, postalCode, country, }: GetPriceByIdPayload): Promise<PriceWithTax>;
|
|
61
|
+
getPriceById({ priceId, promoCodeName, userAddress, currency, postalCode, country, }: GetPriceByIdPayload): Promise<PriceWithTax>;
|
|
62
62
|
/**
|
|
63
63
|
* Returns the needed headers with authorization header for the module requests
|
|
64
64
|
* @private
|
|
@@ -95,11 +95,13 @@ var Checkout = /** @class */ (function () {
|
|
|
95
95
|
* @returns The price object containing the details of the requested price
|
|
96
96
|
*/
|
|
97
97
|
Checkout.prototype.getPriceById = function (_a) {
|
|
98
|
-
var priceId = _a.priceId, promoCodeName = _a.promoCodeName, currency = _a.currency, postalCode = _a.postalCode, country = _a.country;
|
|
98
|
+
var priceId = _a.priceId, promoCodeName = _a.promoCodeName, userAddress = _a.userAddress, currency = _a.currency, postalCode = _a.postalCode, country = _a.country;
|
|
99
99
|
var query = new URLSearchParams();
|
|
100
100
|
query.set('priceId', priceId);
|
|
101
101
|
if (promoCodeName !== undefined)
|
|
102
102
|
query.set('promoCodeName', promoCodeName);
|
|
103
|
+
if (userAddress !== undefined)
|
|
104
|
+
query.set('userAddress', userAddress);
|
|
103
105
|
if (currency !== undefined)
|
|
104
106
|
query.set('currency', currency);
|
|
105
107
|
if (postalCode !== undefined)
|