lightrail-client
Advanced tools
Comparing version 2.1.3 to 3.0.0
@@ -6,2 +6,2 @@ export * from "./Contact"; | ||
export * from "./Value"; | ||
export * from "./ValueRule"; | ||
export * from "./BalanceRule"; |
import { RedemptionRule } from "./RedemptionRule"; | ||
import { ValueRule } from "./ValueRule"; | ||
import { BalanceRule } from "./BalanceRule"; | ||
export interface Issuance { | ||
@@ -9,5 +9,5 @@ id: string; | ||
balance: number; | ||
balanceRule: BalanceRule; | ||
redemptionRule: RedemptionRule; | ||
valueRule: ValueRule; | ||
uses: number; | ||
usesRemaining: number; | ||
startDate: string; | ||
@@ -14,0 +14,0 @@ endDate: string; |
@@ -1,2 +0,2 @@ | ||
import { ValueRule } from "./ValueRule"; | ||
import { BalanceRule } from "./BalanceRule"; | ||
import { RedemptionRule } from "./RedemptionRule"; | ||
@@ -9,10 +9,10 @@ export interface Program { | ||
discountSellerLiability: number; | ||
preTax: boolean; | ||
pretax: boolean; | ||
active: boolean; | ||
redemptionRule: RedemptionRule; | ||
valueRule: ValueRule; | ||
balanceRule: BalanceRule; | ||
minInitialBalance: number; | ||
maxInitialBalance: number; | ||
fixedInitialBalances: number[]; | ||
fixedInitialUses: number[]; | ||
fixedInitialUsesRemaining: number[]; | ||
startDate: string; | ||
@@ -19,0 +19,0 @@ endDate: string; |
@@ -72,2 +72,6 @@ export declare type TransactionParty = LightrailTransactionParty | StripeTransactionParty | InternalTransactionParty; | ||
discount?: number; | ||
discountLightrail?: number; | ||
paidLightrail?: number; | ||
paidStripe?: number; | ||
paidInternal?: number; | ||
payable?: number; | ||
@@ -74,0 +78,0 @@ remainder?: number; |
@@ -1,2 +0,2 @@ | ||
import { ValueRule } from "./ValueRule"; | ||
import { BalanceRule } from "./BalanceRule"; | ||
import { RedemptionRule } from "./RedemptionRule"; | ||
@@ -7,3 +7,4 @@ export interface Value { | ||
balance: number; | ||
uses: number; | ||
balanceRule: BalanceRule; | ||
usesRemaining: number; | ||
programId: string; | ||
@@ -13,3 +14,3 @@ code: string; | ||
contactId: string; | ||
preTax: boolean; | ||
pretax: boolean; | ||
active: boolean; | ||
@@ -19,3 +20,2 @@ frozen: boolean; | ||
redemptionRule: RedemptionRule; | ||
valueRule: ValueRule; | ||
discount: boolean; | ||
@@ -22,0 +22,0 @@ discountSellerLiability: number; |
@@ -9,3 +9,3 @@ import { LightrailResponse } from "../LightrailResponse"; | ||
balance?: FilterableNumber; | ||
uses?: FilterableNumber; | ||
usesRemaining?: FilterableNumber; | ||
discount?: boolean; | ||
@@ -15,3 +15,3 @@ active?: boolean; | ||
canceled?: boolean; | ||
preTax?: boolean; | ||
pretax?: boolean; | ||
startDate?: FilterableString; | ||
@@ -18,0 +18,0 @@ endDate?: FilterableString; |
import { Program } from "../../model"; | ||
import { LightrailResponse } from "../LightrailResponse"; | ||
import { ValueRule } from "../../model/ValueRule"; | ||
import { BalanceRule } from "../../model/BalanceRule"; | ||
import { RedemptionRule } from "../../model/RedemptionRule"; | ||
@@ -11,10 +11,10 @@ export interface CreateProgramParams { | ||
discountSellerLiability?: number; | ||
preTax?: boolean; | ||
pretax?: boolean; | ||
active?: boolean; | ||
redemptionRule?: RedemptionRule; | ||
valueRule?: ValueRule; | ||
balanceRule?: BalanceRule; | ||
minInitialBalance?: number; | ||
maxInitialBalance?: number; | ||
fixedInitialBalances?: number[]; | ||
fixedInitialUses?: number[]; | ||
fixedInitialUsesRemaining?: number[]; | ||
startDate?: string; | ||
@@ -21,0 +21,0 @@ endDate?: string; |
import { RedemptionRule } from "../../../model/RedemptionRule"; | ||
import { ValueRule } from "../../../model/index"; | ||
import { BalanceRule } from "../../../model/index"; | ||
import { CodeGenerationParams } from "../CodeGenerationParams"; | ||
@@ -14,7 +14,7 @@ import { LightrailResponse } from "../../LightrailResponse"; | ||
balance?: number; | ||
uses?: number; | ||
usesRemaining?: number; | ||
startDate?: string; | ||
endDate?: string; | ||
redemptionRule?: RedemptionRule; | ||
valueRule?: ValueRule; | ||
balanceRule?: BalanceRule; | ||
metadata?: object; | ||
@@ -21,0 +21,0 @@ createdDate?: string; |
@@ -7,7 +7,7 @@ import { Program } from "../../model"; | ||
discount?: boolean; | ||
preTax?: boolean; | ||
pretax?: boolean; | ||
minInitialBalance?: number; | ||
maxInitialBalance?: number; | ||
fixedInitialBalances?: number[]; | ||
fixedInitialUses?: number[]; | ||
fixedInitialUsesRemaining?: number[]; | ||
startDate?: string; | ||
@@ -14,0 +14,0 @@ endDate?: string; |
@@ -8,3 +8,3 @@ import { LightrailResponse } from "../LightrailResponse"; | ||
currency: string; | ||
uses?: number; | ||
usesRemaining?: number; | ||
simulate?: boolean; | ||
@@ -11,0 +11,0 @@ pending?: boolean; |
@@ -8,3 +8,3 @@ import { DebitSource, Transaction } from "../../model"; | ||
currency: string; | ||
uses?: number; | ||
usesRemaining?: number; | ||
simulate?: boolean; | ||
@@ -11,0 +11,0 @@ allowRemainder?: boolean; |
import { Value } from "../../model/Value"; | ||
import { LightrailResponse } from "../LightrailResponse"; | ||
import { ValueRule } from "../../model/ValueRule"; | ||
import { BalanceRule } from "../../model/BalanceRule"; | ||
import { RedemptionRule } from "../../model/RedemptionRule"; | ||
@@ -18,4 +18,5 @@ export interface CreateValueParams { | ||
redemptionRule?: RedemptionRule; | ||
valueRule?: ValueRule; | ||
uses?: number; | ||
balanceRule?: BalanceRule; | ||
usesRemaining?: number; | ||
pretax?: boolean; | ||
startDate?: string; | ||
@@ -22,0 +23,0 @@ endDate?: string; |
@@ -14,3 +14,3 @@ import { PaginatedLightrailResponse } from "../LightrailResponse"; | ||
balance?: FilterableNumber; | ||
uses?: FilterableNumber; | ||
usesRemaining?: FilterableNumber; | ||
discount?: boolean; | ||
@@ -20,3 +20,3 @@ active?: boolean; | ||
canceled?: boolean; | ||
preTax?: boolean; | ||
pretax?: boolean; | ||
startDate?: FilterableString; | ||
@@ -23,0 +23,0 @@ endDate?: FilterableString; |
import { LightrailResponse } from "../LightrailResponse"; | ||
import { Value } from "../../model/Value"; | ||
import { ValueRule } from "../../model/ValueRule"; | ||
import { BalanceRule } from "../../model/BalanceRule"; | ||
import { RedemptionRule } from "../../model/RedemptionRule"; | ||
export interface UpdateValueParams { | ||
contactId?: string; | ||
preTax?: boolean; | ||
pretax?: boolean; | ||
active?: boolean; | ||
@@ -12,3 +12,3 @@ frozen?: boolean; | ||
redemptionRule?: RedemptionRule; | ||
valueRule?: ValueRule; | ||
balanceRule?: BalanceRule; | ||
discount?: boolean; | ||
@@ -15,0 +15,0 @@ discountSellerLiability?: number; |
{ | ||
"name": "lightrail-client", | ||
"version": "2.1.3", | ||
"version": "3.0.0", | ||
"description": "A Javascript and Typescript client for Lightrail", | ||
@@ -43,2 +43,3 @@ "main": "dist/index.js", | ||
"chai": "^4.1.2", | ||
"chai-exclude": "^1.0.8", | ||
"chai-as-promised": "^7.1.1", | ||
@@ -45,0 +46,0 @@ "dotenv": "^4.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76272
120
1847
17