From 790c81ca4b114b6a7a5b7265f6f698710fd68fc7 Mon Sep 17 00:00:00 2001 From: Alexander Sokol Date: Mon, 11 Oct 2021 20:23:56 +0300 Subject: [PATCH] feat(tax): add taxes and fees --- package.json | 2 +- types/api/reservation.d.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 462b759..0bd5c38 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@luxuryescapes/lib-types", - "version": "1.5.12", + "version": "1.5.13", "types": "types/index.d.ts", "repository": "git@github.com:brandsExclusive/lib-types.git", "author": "Rufus Post ", diff --git a/types/api/reservation.d.ts b/types/api/reservation.d.ts index 1122aa6..617bd43 100644 --- a/types/api/reservation.d.ts +++ b/types/api/reservation.d.ts @@ -211,6 +211,12 @@ export namespace Reservation { result: Property; } + interface TaxesAndFees { + name: string; + unit: "percentage" | "amount"; + value: number; + } + interface Property { _links: PropertyLinks; room_types_count: number; @@ -240,6 +246,7 @@ export namespace Reservation { max_infant_age: number | null; timezone: string; timezone_offset: number; + taxes_and_fees?: TaxesAndFees[]; taxes_and_fees_content?: string; }