@prodoctors/contracts 1.1.1 → 1.1.2
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.
- package/gen/inventory.ts +6 -0
- package/package.json +1 -1
- package/proto/inventory.proto +19 -13
package/gen/inventory.ts
CHANGED
|
@@ -101,6 +101,8 @@ export interface Product {
|
|
|
101
101
|
packageUnit: UnitType;
|
|
102
102
|
unitsPerPackage: number;
|
|
103
103
|
allowFractionalSale: boolean;
|
|
104
|
+
taxMxikCode?: string | undefined;
|
|
105
|
+
taxPackageCode?: string | undefined;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
export interface ProductBarcode {
|
|
@@ -172,6 +174,8 @@ export interface CreateProductRequest {
|
|
|
172
174
|
packageUnit?: UnitType | undefined;
|
|
173
175
|
unitsPerPackage?: number | undefined;
|
|
174
176
|
allowFractionalSale?: boolean | undefined;
|
|
177
|
+
taxMxikCode?: string | undefined;
|
|
178
|
+
taxPackageCode?: string | undefined;
|
|
175
179
|
}
|
|
176
180
|
|
|
177
181
|
export interface UpdateProductRequest {
|
|
@@ -196,6 +200,8 @@ export interface UpdateProductRequest {
|
|
|
196
200
|
packageUnit?: UnitType | undefined;
|
|
197
201
|
unitsPerPackage?: number | undefined;
|
|
198
202
|
allowFractionalSale?: boolean | undefined;
|
|
203
|
+
taxMxikCode?: string | undefined;
|
|
204
|
+
taxPackageCode?: string | undefined;
|
|
199
205
|
}
|
|
200
206
|
|
|
201
207
|
export interface ListProductsRequest {
|
package/package.json
CHANGED
package/proto/inventory.proto
CHANGED
|
@@ -86,10 +86,12 @@ message Product {
|
|
|
86
86
|
google.protobuf.Timestamp updated_at = 22;
|
|
87
87
|
optional string image_url = 23;
|
|
88
88
|
UnitType base_unit = 24;
|
|
89
|
-
UnitType package_unit = 25;
|
|
90
|
-
int32 units_per_package = 26;
|
|
91
|
-
bool allow_fractional_sale = 27;
|
|
92
|
-
|
|
89
|
+
UnitType package_unit = 25;
|
|
90
|
+
int32 units_per_package = 26;
|
|
91
|
+
bool allow_fractional_sale = 27;
|
|
92
|
+
optional string tax_mxik_code = 28;
|
|
93
|
+
optional string tax_package_code = 29;
|
|
94
|
+
}
|
|
93
95
|
|
|
94
96
|
message ProductBarcode {
|
|
95
97
|
string id = 1;
|
|
@@ -157,10 +159,12 @@ message CreateProductRequest {
|
|
|
157
159
|
optional string cost_price = 15;
|
|
158
160
|
optional string image_url = 16;
|
|
159
161
|
optional UnitType base_unit = 17;
|
|
160
|
-
optional UnitType package_unit = 18;
|
|
161
|
-
optional int32 units_per_package = 19;
|
|
162
|
-
optional bool allow_fractional_sale = 20;
|
|
163
|
-
|
|
162
|
+
optional UnitType package_unit = 18;
|
|
163
|
+
optional int32 units_per_package = 19;
|
|
164
|
+
optional bool allow_fractional_sale = 20;
|
|
165
|
+
optional string tax_mxik_code = 21;
|
|
166
|
+
optional string tax_package_code = 22;
|
|
167
|
+
}
|
|
164
168
|
|
|
165
169
|
message UpdateProductRequest {
|
|
166
170
|
string id = 1;
|
|
@@ -181,10 +185,12 @@ message UpdateProductRequest {
|
|
|
181
185
|
optional string cost_price = 16;
|
|
182
186
|
optional string image_url = 17;
|
|
183
187
|
optional UnitType base_unit = 18;
|
|
184
|
-
optional UnitType package_unit = 19;
|
|
185
|
-
optional int32 units_per_package = 20;
|
|
186
|
-
optional bool allow_fractional_sale = 21;
|
|
187
|
-
|
|
188
|
+
optional UnitType package_unit = 19;
|
|
189
|
+
optional int32 units_per_package = 20;
|
|
190
|
+
optional bool allow_fractional_sale = 21;
|
|
191
|
+
optional string tax_mxik_code = 22;
|
|
192
|
+
optional string tax_package_code = 23;
|
|
193
|
+
}
|
|
188
194
|
|
|
189
195
|
message ListProductsRequest {
|
|
190
196
|
common.v1.PaginationRequest pagination = 1;
|
|
@@ -323,4 +329,4 @@ service StockMovementService {
|
|
|
323
329
|
rpc CreateStockMovement(CreateStockMovementRequest) returns (StockMovement);
|
|
324
330
|
rpc GetStockMovementById(common.v1.IdRequest) returns (StockMovement);
|
|
325
331
|
rpc ListStockMovements(ListStockMovementsRequest) returns (ListStockMovementsResponse);
|
|
326
|
-
}
|
|
332
|
+
}
|