Commit 4104a91 Gerald Baulig
committed
1 parent c4c7359 commit 4104a91 Copy full SHA for 4104a91
File tree 2 files changed +18
-3
lines changed
2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ export class OrderingService
360
360
SOLUTION_NOT_FOUND : {
361
361
id : '' ,
362
362
code : 404 ,
363
- message : 'Solution for {entity} {id} not found!' ,
363
+ message : 'Solution for {entity} {id} not found!' ,
364
364
}
365
365
} ;
366
366
@@ -1912,7 +1912,7 @@ export class OrderingService
1912
1912
r => {
1913
1913
r . items ?. forEach (
1914
1914
fulfillment => {
1915
- const id = fulfillment . payload ?. references ?. [ 0 ] ?. instance_id ?? fulfillment . status ?. id
1915
+ const id = fulfillment . payload ?. references ?. [ 0 ] ?. instance_id ?? fulfillment . status ?. id ;
1916
1916
const order = response_map [ id ] ;
1917
1917
if ( order && fulfillment . status ?. code !== 200 ) {
1918
1918
order . status = fulfillment . status ;
@@ -2464,7 +2464,7 @@ export class OrderingService
2464
2464
return item ;
2465
2465
}
2466
2466
) ;
2467
-
2467
+
2468
2468
const created = valids ?. length ? await this . fulfillment_service . create (
2469
2469
{
2470
2470
items : valids . map ( item => item . payload ) ,
Original file line number Diff line number Diff line change @@ -1090,6 +1090,21 @@ export const rules = {
1090
1090
totalCount : 1 ,
1091
1091
operationStatus
1092
1092
} ) ,
1093
+ evaluate : (
1094
+ call : any ,
1095
+ callback : ( error : any , response : FulfillmentListResponse ) => void ,
1096
+ ) => callback ( null , {
1097
+ items : call . request . items . map (
1098
+ ( item : FulfillmentResponse ) => ( {
1099
+ payload : item ,
1100
+ status : {
1101
+ code : 200 ,
1102
+ }
1103
+ } )
1104
+ ) ,
1105
+ totalCount : 1 ,
1106
+ operationStatus
1107
+ } ) ,
1093
1108
} ,
1094
1109
invoice : {
1095
1110
create : (
You can’t perform that action at this time.
0 commit comments