Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
add flags for order
Browse files Browse the repository at this point in the history
- is_rma
- is_binding_offer
- is_order
  • Loading branch information
yamelsenih committed Sep 5, 2023
1 parent 568c7d1 commit 3536429
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,7 @@ module.exports = ({ config }: ExtensionAPIFunctionParameter) => {
isBindingOffer: req.query.is_binding_offer,
isClosed: req.query.is_closed,
isNullified: req.query.is_nullified,
isOnlyRMA: req.query.is_only_rma,
pageSize: req.query.page_size,
pageToken: req.query.page_token
}, (err, response) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ export function getOrderFromGRPC (order) {
credit_amount: getDecimalFromGRPC(
order.getCreditAmount()
),
source_rma_id: order.getSourceRmaId()
source_rma_id: order.getSourceRmaId(),
is_rma: order.getIsRma(),
is_binding_offer: order.getIsBindingOffer(),
is_order: order.getIsOrder()
};
}

Expand Down
Loading

0 comments on commit 3536429

Please sign in to comment.