File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/commercetools/services Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -360,10 +360,10 @@ def import_(self, draft: OrderImportDraft) -> Order:
360360 response_schema_cls = OrderSchema ,
361361 )
362362
363- def order_edit_apply (self , action : OrderEditApply ) -> OrderEdit :
363+ def order_edit_apply (self , id : str , action : OrderEditApply ) -> OrderEdit :
364364 params : typing .Dict [str , str ] = {}
365365 return self ._client ._post (
366- endpoint = "orders/edits/apply" ,
366+ endpoint = f "orders/edits/ { id } /apply" ,
367367 params = params ,
368368 data_object = action ,
369369 request_schema_cls = OrderEditApplySchema ,
Original file line number Diff line number Diff line change @@ -360,6 +360,7 @@ def delete_by_key(
360360
361361 def file_upload (
362362 self ,
363+ id : str ,
363364 fh : typing .BinaryIO ,
364365 * ,
365366 filename : str = None ,
@@ -376,14 +377,15 @@ def file_upload(
376377 _ProductImagesSchema ,
377378 )
378379 return self ._client ._upload (
379- endpoint = "products/images" ,
380+ endpoint = f "products/ { id } /images" ,
380381 params = params ,
381382 response_schema_cls = ProductSchema ,
382383 file = fh ,
383384 )
384385
385386 def upload_image (
386387 self ,
388+ id : str ,
387389 fh : typing .BinaryIO ,
388390 * ,
389391 filename : str = None ,
@@ -400,7 +402,7 @@ def upload_image(
400402 _ProductImagesSchema ,
401403 )
402404 return self ._client ._upload (
403- endpoint = "products/images" ,
405+ endpoint = f "products/ { id } /images" ,
404406 params = params ,
405407 response_schema_cls = ProductSchema ,
406408 file = fh ,
You can’t perform that action at this time.
0 commit comments