From f2ca2b7ff626f1094e4d16d96c3c55461566f4e5 Mon Sep 17 00:00:00 2001 From: arshdeepvirk Date: Mon, 18 Nov 2019 15:31:09 -0800 Subject: [PATCH] made the requested changes --- src/model/Program.ts | 2 +- src/model/Value.ts | 2 +- src/params/programs/CreateProgramParams.ts | 2 +- src/params/programs/UpdateProgramParams.ts | 2 +- src/params/values/CreateValueParams.ts | 2 +- src/params/values/UpdateValueParams.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/model/Program.ts b/src/model/Program.ts index fc65693..0e0d68b 100644 --- a/src/model/Program.ts +++ b/src/model/Program.ts @@ -1,6 +1,5 @@ import {BalanceRule} from "./BalanceRule"; import {RedemptionRule} from "./RedemptionRule"; -/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ import {DiscountSellerLiabilityRule} from "./DiscountSellerLiabilityRule"; export interface Program { @@ -8,6 +7,7 @@ export interface Program { name: string; currency: string; discount: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability: number; discountSellerLiabilityRule: DiscountSellerLiabilityRule; pretax: boolean; diff --git a/src/model/Value.ts b/src/model/Value.ts index 5863fd3..dc1c0d5 100644 --- a/src/model/Value.ts +++ b/src/model/Value.ts @@ -1,7 +1,6 @@ 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 { @@ -22,6 +21,7 @@ export interface Value { canceled: boolean; redemptionRule: RedemptionRule; discount: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability: number; discountSellerLiabilityRule: DiscountSellerLiabilityRule; startDate: string; diff --git a/src/params/programs/CreateProgramParams.ts b/src/params/programs/CreateProgramParams.ts index 6689f35..088ed0d 100644 --- a/src/params/programs/CreateProgramParams.ts +++ b/src/params/programs/CreateProgramParams.ts @@ -2,7 +2,6 @@ import {Program} from "../../model"; import {LightrailResponse} from "../LightrailResponse"; import {BalanceRule} from "../../model"; import {RedemptionRule} from "../../model"; -/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ import {DiscountSellerLiabilityRule} from "../../model"; export interface CreateProgramParams { @@ -10,6 +9,7 @@ export interface CreateProgramParams { currency: string; name: string; discount?: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability?: number; discountSellerLiabilityRule?: DiscountSellerLiabilityRule; pretax?: boolean; diff --git a/src/params/programs/UpdateProgramParams.ts b/src/params/programs/UpdateProgramParams.ts index 328ead6..0e82655 100644 --- a/src/params/programs/UpdateProgramParams.ts +++ b/src/params/programs/UpdateProgramParams.ts @@ -1,11 +1,11 @@ import {BalanceRule, Program, RedemptionRule} from "../../model"; import {LightrailResponse} from "../LightrailResponse"; -/** @deprecated discountSellerLiability since v4.3.0 - use DiscountSellerLiabilityRule instead. */ import {DiscountSellerLiabilityRule} from "../../model"; export interface UpdateProgramParams { name?: string; discount?: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability?: number; discountSellerLiabilityRule?: DiscountSellerLiabilityRule; pretax?: boolean; diff --git a/src/params/values/CreateValueParams.ts b/src/params/values/CreateValueParams.ts index de08c3b..0a7c074 100644 --- a/src/params/values/CreateValueParams.ts +++ b/src/params/values/CreateValueParams.ts @@ -3,7 +3,6 @@ import {LightrailResponse} from "../LightrailResponse"; 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 { @@ -17,6 +16,7 @@ export interface CreateValueParams { active?: boolean; frozen?: boolean; discount?: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability?: number; discountSellerLiabilityRule?: DiscountSellerLiabilityRule; genericCodeOptions?: GenericCodeOptions; diff --git a/src/params/values/UpdateValueParams.ts b/src/params/values/UpdateValueParams.ts index f4eeabe..3e3b55b 100644 --- a/src/params/values/UpdateValueParams.ts +++ b/src/params/values/UpdateValueParams.ts @@ -2,7 +2,6 @@ import {LightrailResponse} from "../LightrailResponse"; 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 { @@ -14,6 +13,7 @@ export interface UpdateValueParams { redemptionRule?: RedemptionRule; balanceRule?: BalanceRule; discount?: boolean; + /** @deprecated since v4.3.0 - use DiscountSellerLiabilityRule instead. */ discountSellerLiability?: number; discountSellerLiabilityRule?: DiscountSellerLiabilityRule; startDate?: string;