Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@internxt/sdk",
"author": "Internxt <[email protected]>",
"version": "1.9.18",
"version": "1.9.19",
"description": "An sdk for interacting with Internxt's services",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/payments/checkout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,15 @@ export class Checkout {
public getPriceById({
priceId,
promoCodeName,
userAddress,
currency,
postalCode,
country,
}: GetPriceByIdPayload): Promise<PriceWithTax> {
const query = new URLSearchParams();
query.set('priceId', priceId);
if (promoCodeName !== undefined) query.set('promoCodeName', promoCodeName);
if (userAddress !== undefined) query.set('userAddress', userAddress);
if (currency !== undefined) query.set('currency', currency);
if (postalCode !== undefined) query.set('postalCode', postalCode);
if (country !== undefined) query.set('country', country);
Expand Down
1 change: 1 addition & 0 deletions src/payments/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface CreatePaymentIntentPayload {
export interface GetPriceByIdPayload {
priceId: string;
promoCodeName?: string;
userAddress?: string;
currency?: string;
postalCode?: string;
country?: string;
Expand Down