Skip to content

Commit

Permalink
fix(GTIN): type number
Browse files Browse the repository at this point in the history
  • Loading branch information
SidMorad committed Oct 3, 2023
1 parent 14b938f commit f86cf6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gtin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<TaakResponse> {
getProduct(gtin: number, currency = 'IRR'): Promise<TaakResponse> {
return this.request<ProductDTO>(
`/v1/pip/${gtin}/${currency}`,
{},
Expand Down
2 changes: 1 addition & 1 deletion src/gtin/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type ProductDTO = {
gtin: string
gtin: number
name: string
nameFa: string
price: number
Expand Down

0 comments on commit f86cf6c

Please sign in to comment.