Skip to content

Commit c346c60

Browse files
authored
Merge pull request #293 from bakaphp/hotfix-price-channel-type
hotfix: price channel
2 parents 5ea8f14 + ebd8020 commit c346c60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.8.5",
2+
"version": "0.8.6",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/types/inventory.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export interface VariantInterface {
120120
uuid: string;
121121
ean: string;
122122
channel: {
123-
price: string;
123+
price: string | number;
124124
quantity: string;
125125
};
126126
warehouses: {
@@ -253,10 +253,10 @@ export interface InputVariantParams {
253253
}[];
254254
channels: {
255255
warehouses_id: string | number;
256-
price: string;
256+
price: string | number;
257257
is_published: boolean;
258258
channels_id: number,
259-
discounted_price?: number;
259+
discounted_price?: string | number;
260260
}[]
261261
warehouse?: {
262262
warehouse_id: number;

0 commit comments

Comments
 (0)