From 7fbea70d7b76a37999aa45746a019aca234fa337 Mon Sep 17 00:00:00 2001 From: arshdeepvirk Date: Mon, 18 Nov 2019 15:20:59 -0800 Subject: [PATCH] made the requested changes --- src/model/Program.ts | 1 + src/model/Value.ts | 1 + src/model/index.ts | 1 + src/params/programs/CreateProgramParams.ts | 7 ++++--- src/params/programs/UpdateProgramParams.ts | 3 ++- src/params/values/CreateValueParams.ts | 11 ++++++----- src/params/values/UpdateValueParams.ts | 9 +++++---- 7 files changed, 20 insertions(+), 13 deletions(-) diff --git a/src/model/Program.ts b/src/model/Program.ts index 1d4a5d8..fc65693 100644 --- a/src/model/Program.ts +++ b/src/model/Program.ts @@ -1,5 +1,6 @@ import {BalanceRule} from "./BalanceRule"; import {RedemptionRule} from "./RedemptionRule"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ import {DiscountSellerLiabilityRule} from "./DiscountSellerLiabilityRule"; export interface Program { diff --git a/src/model/Value.ts b/src/model/Value.ts index f57d4c7..5863fd3 100644 --- a/src/model/Value.ts +++ b/src/model/Value.ts @@ -1,6 +1,7 @@ import {BalanceRule} from "./BalanceRule"; import {RedemptionRule} from "./RedemptionRule"; import {GenericCodeOptions} from "./GenericCodeOptions"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ import {DiscountSellerLiabilityRule} from "./DiscountSellerLiabilityRule"; export interface Value { diff --git a/src/model/index.ts b/src/model/index.ts index a28ff2c..2959fcd 100644 --- a/src/model/index.ts +++ b/src/model/index.ts @@ -7,3 +7,4 @@ export * from "./RedemptionRule"; export * from "./Transaction"; export * from "./Value"; export * from "./GenericCodeOptions"; +export * from "./DiscountSellerLiabilityRule"; diff --git a/src/params/programs/CreateProgramParams.ts b/src/params/programs/CreateProgramParams.ts index 4d338eb..6689f35 100644 --- a/src/params/programs/CreateProgramParams.ts +++ b/src/params/programs/CreateProgramParams.ts @@ -1,8 +1,9 @@ import {Program} from "../../model"; import {LightrailResponse} from "../LightrailResponse"; -import {BalanceRule} from "../../model/BalanceRule"; -import {RedemptionRule} from "../../model/RedemptionRule"; -import {DiscountSellerLiabilityRule} from "../../model/DiscountSellerLiabilityRule"; +import {BalanceRule} from "../../model"; +import {RedemptionRule} from "../../model"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ +import {DiscountSellerLiabilityRule} from "../../model"; export interface CreateProgramParams { id: string; diff --git a/src/params/programs/UpdateProgramParams.ts b/src/params/programs/UpdateProgramParams.ts index 2f88a8a..328ead6 100644 --- a/src/params/programs/UpdateProgramParams.ts +++ b/src/params/programs/UpdateProgramParams.ts @@ -1,6 +1,7 @@ import {BalanceRule, Program, RedemptionRule} from "../../model"; import {LightrailResponse} from "../LightrailResponse"; -import {DiscountSellerLiabilityRule} from "../../model/DiscountSellerLiabilityRule"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ +import {DiscountSellerLiabilityRule} from "../../model"; export interface UpdateProgramParams { name?: string; diff --git a/src/params/values/CreateValueParams.ts b/src/params/values/CreateValueParams.ts index e72b5f6..de08c3b 100644 --- a/src/params/values/CreateValueParams.ts +++ b/src/params/values/CreateValueParams.ts @@ -1,9 +1,10 @@ -import {Value} from "../../model/Value"; +import {Value} from "../../model"; import {LightrailResponse} from "../LightrailResponse"; -import {BalanceRule} from "../../model/BalanceRule"; -import {RedemptionRule} from "../../model/RedemptionRule"; -import {GenericCodeOptions} from "../../model/GenericCodeOptions"; -import {DiscountSellerLiabilityRule} from "../../model/DiscountSellerLiabilityRule"; +import {BalanceRule} from "../../model"; +import {RedemptionRule} from "../../model"; +import {GenericCodeOptions} from "../../model"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ +import {DiscountSellerLiabilityRule} from "../../model"; export interface CreateValueParams { id: string; diff --git a/src/params/values/UpdateValueParams.ts b/src/params/values/UpdateValueParams.ts index 094bb54..f4eeabe 100644 --- a/src/params/values/UpdateValueParams.ts +++ b/src/params/values/UpdateValueParams.ts @@ -1,8 +1,9 @@ import {LightrailResponse} from "../LightrailResponse"; -import {Value} from "../../model/Value"; -import {BalanceRule} from "../../model/BalanceRule"; -import {RedemptionRule} from "../../model/RedemptionRule"; -import {DiscountSellerLiabilityRule} from "../../model/DiscountSellerLiabilityRule"; +import {Value} from "../../model"; +import {BalanceRule} from "../../model"; +import {RedemptionRule} from "../../model"; +/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ +import {DiscountSellerLiabilityRule} from "../../model"; export interface UpdateValueParams { contactId?: string;