Skip to content

Commit

Permalink
Merge pull request #524 from ShoppinPal/feature/ritik/consignment-api…
Browse files Browse the repository at this point in the history
…-deprecation

added consignment product endpoint v2 changes
  • Loading branch information
chronos25 authored Sep 30, 2023
2 parents 9571d1d + 2d50641 commit f8e4628
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ SCHEME=http
VEND_CLIENT_ID=
VEND_CLIENT_SECRET=
VEND_AUTHORIZATION_URL=https://secure.vendhq.com/connect
VEND_TOKEN_SERVICE=.vendhq.com/api/1.0/token


##
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.6.26 - 14 Sept 2023
- update consignment api to version 2.0

1.6.25 - 7 Apr 2022
- Supply price from CSV for Generated
- Supply price import using CSV for FulFill
Expand Down
1 change: 1 addition & 0 deletions workers/jobs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ function updateStockOrderLineitemForVend(db, reportModelInstance, stockOrderLine
var args = vendSdk.args.consignments.products.update();
args.apiId.value = stockOrderLineitemModelInstance.vendConsignmentProductId;
// args.body.value = _.omit(stockOrderLineitemModelInstance.vendConsignmentProduct, 'id'); // omitting id is BAD in this case
args.body.vendConsignmentId = reportModelInstance.vendConsignment.id;
args.body.value = stockOrderLineitemModelInstance.vendConsignmentProduct;
args.body.value.count = stockOrderLineitemModelInstance.orderQuantity;
args.body.value.cost = stockOrderLineitemModelInstance.supplyPrice;
Expand Down

0 comments on commit f8e4628

Please sign in to comment.