From f86cf6c5442e8db073f69886aae1df0f0d35ff0c Mon Sep 17 00:00:00 2001 From: SidMorad Date: Tue, 3 Oct 2023 09:01:06 +0000 Subject: [PATCH] fix(GTIN): type number --- src/gtin/index.ts | 2 +- src/gtin/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtin/index.ts b/src/gtin/index.ts index 880dfa9..c519634 100644 --- a/src/gtin/index.ts +++ b/src/gtin/index.ts @@ -5,7 +5,7 @@ import { ProductDTO } from './types' export class Gtin extends AppBase { public static readonly basePath = 'https://gtin.taakcloud.com' - getProduct(gtin: string, currency = 'IRR'): Promise { + getProduct(gtin: number, currency = 'IRR'): Promise { return this.request( `/v1/pip/${gtin}/${currency}`, {}, diff --git a/src/gtin/types.ts b/src/gtin/types.ts index bbab22f..2fcb585 100644 --- a/src/gtin/types.ts +++ b/src/gtin/types.ts @@ -1,5 +1,5 @@ export type ProductDTO = { - gtin: string + gtin: number name: string nameFa: string price: number