From e316a04cd9d2ae656b69198a0cddf7047afc9ad6 Mon Sep 17 00:00:00 2001 From: Kevin Verschoor Date: Mon, 8 Jun 2026 14:33:13 +0200 Subject: [PATCH 1/2] PLUG-5816 - Add Missing fields in Order type --- src/order/Order.ts | 3 +++ src/order/SplitPayment.ts | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 src/order/SplitPayment.ts diff --git a/src/order/Order.ts b/src/order/Order.ts index b769718..cfa923f 100644 --- a/src/order/Order.ts +++ b/src/order/Order.ts @@ -3,8 +3,10 @@ import { Payment } from './Payment.ts'; import { NewAddress } from './Address.ts'; import { Company } from './Customer.ts'; import { Stats } from '../shared/index.ts'; +import { SplitPayment } from './SplitPayment.ts'; export type Order = { + id: string; type: string; serviceId: string; description: string | null; @@ -22,6 +24,7 @@ export type Order = { pointOfInteraction: string | null; test: boolean; }; + splitPayments: SplitPayment[]; stats: Stats; transferData: Record; amount: ResponseAmount; diff --git a/src/order/SplitPayment.ts b/src/order/SplitPayment.ts new file mode 100644 index 0000000..8253bce --- /dev/null +++ b/src/order/SplitPayment.ts @@ -0,0 +1,7 @@ +import { ResponseAmount } from './Amount.ts'; + +export type SplitPayment = { + id: string; + amount: ResponseAmount; + fee: string; +}; \ No newline at end of file From 16a23ad72033b8cbca244fe4f35e31f89a3025b8 Mon Sep 17 00:00:00 2001 From: Kevin Verschoor Date: Mon, 8 Jun 2026 16:22:46 +0200 Subject: [PATCH 2/2] Change id to serviceId --- src/order/SplitPayment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/order/SplitPayment.ts b/src/order/SplitPayment.ts index 8253bce..ab57d76 100644 --- a/src/order/SplitPayment.ts +++ b/src/order/SplitPayment.ts @@ -1,7 +1,7 @@ import { ResponseAmount } from './Amount.ts'; export type SplitPayment = { - id: string; + serviceId: string; amount: ResponseAmount; fee: string; -}; \ No newline at end of file +};