Skip to content
Snippets Groups Projects
Commit 9350d6bc authored by ShivaniDhoke's avatar ShivaniDhoke
Browse files

fixed some changes in jsonata

parent a98099f1
No related branches found
No related tags found
No related merge requests found
{
$.data.{
"context": $context(context, $action),
"message": message
}
}[]
......@@ -28,7 +28,7 @@
"rateable": rateable,
"time": time,
"quantity": quantity
},
}[],
"fulfillments": message.order.fulfillments,
"quote": message.order.quote,
"billing": message.order.billing,
......
......@@ -7,7 +7,7 @@ export class GCLService {
constructor(
@inject(TLService) private tlService: TLService,
@inject(PSClientService) private psClientService: PSClientService
) { }
) {}
async search(body: any) {
const payload = await this.tlService.transform(body, "search");
......@@ -59,7 +59,7 @@ export class GCLService {
async cancel(body: any) {
const payload = await this.tlService.transform(body, "cancel");
const psResponse = await this.psClientService.post(payload);
const psResponse = await this.psClientService.postMany(payload);
const response = await this.tlService.transform(psResponse, "on_cancel");
return response;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment