From a38220a10b3272a36f253782caae1d5d25287e36 Mon Sep 17 00:00:00 2001 From: HormCodes Date: Mon, 16 Aug 2021 13:34:39 +0200 Subject: [PATCH 1/2] fix: add merchant references to order types --- src/api/checkout-v3/interface.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api/checkout-v3/interface.ts b/src/api/checkout-v3/interface.ts index 8c3a208..f3e4db7 100644 --- a/src/api/checkout-v3/interface.ts +++ b/src/api/checkout-v3/interface.ts @@ -32,6 +32,8 @@ export interface IOrderBody { merchant_urls: IMerchantObj; recurring?: boolean; shipping_options?: IShippingOption[]; + merchant_reference1?: string; + merchant_reference2?: string; } export interface IShippingOption { @@ -103,6 +105,8 @@ export interface IOrder { recurring: boolean; recurring_token: string; recurring_description: string; + merchant_reference1?: string; + merchant_reference2?: string; } export interface IOrderResponse extends IResponse { From 8abc0f03a53243ded37f466d52f16c5ce7296d6f Mon Sep 17 00:00:00 2001 From: HormCodes Date: Mon, 16 Aug 2021 13:38:35 +0200 Subject: [PATCH 2/2] fix: add selected shipping to get order type --- src/api/checkout-v3/interface.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/checkout-v3/interface.ts b/src/api/checkout-v3/interface.ts index f3e4db7..7b6f114 100644 --- a/src/api/checkout-v3/interface.ts +++ b/src/api/checkout-v3/interface.ts @@ -107,6 +107,7 @@ export interface IOrder { recurring_description: string; merchant_reference1?: string; merchant_reference2?: string; + selected_shipping_option?: IShippingOption; } export interface IOrderResponse extends IResponse {