@pax2pay/client 0.9.15 → 0.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/model/CardResponseV2.d.ts +1 -0
- package/dist/model/CardResponseV2.js +1 -0
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/CardResponseV3.d.ts +1 -0
- package/dist/model/CardResponseV3.js +1 -0
- package/dist/model/CardResponseV3.js.map +1 -1
- package/dist/model/Config/FundingLimit/index.d.ts +2 -1
- package/dist/model/Config/FundingLimit/index.js +2 -1
- package/dist/model/Config/FundingLimit/index.js.map +1 -1
- package/dist/model/Config/Notice/FundingLimit/Configuration.d.ts +10 -0
- package/dist/model/Config/Notice/FundingLimit/Configuration.js +12 -0
- package/dist/model/Config/Notice/FundingLimit/Configuration.js.map +1 -0
- package/dist/model/Config/Notice/FundingLimit/NoticeTriggerType.d.ts +7 -0
- package/dist/model/Config/Notice/FundingLimit/NoticeTriggerType.js +8 -0
- package/dist/model/Config/Notice/FundingLimit/NoticeTriggerType.js.map +1 -0
- package/dist/model/Config/Notice/FundingLimit/index.d.ts +12 -0
- package/dist/model/Config/Notice/FundingLimit/index.js +13 -0
- package/dist/model/Config/Notice/FundingLimit/index.js.map +1 -0
- package/dist/model/Config/Notice/Target/Configuration.d.ts +9 -0
- package/dist/model/Config/Notice/Target/Configuration.js +14 -0
- package/dist/model/Config/Notice/Target/Configuration.js.map +1 -0
- package/dist/model/Config/Notice/Target/Type.d.ts +7 -0
- package/dist/model/Config/Notice/Target/Type.js +8 -0
- package/dist/model/Config/Notice/Target/Type.js.map +1 -0
- package/dist/model/Config/Notice/Target/index.d.ts +25 -0
- package/dist/model/Config/Notice/Target/index.js +26 -0
- package/dist/model/Config/Notice/Target/index.js.map +1 -0
- package/dist/model/Config/Notice/Type.d.ts +7 -0
- package/dist/model/Config/Notice/Type.js +8 -0
- package/dist/model/Config/Notice/Type.js.map +1 -0
- package/dist/model/Config/Notice/index.d.ts +24 -0
- package/dist/model/Config/Notice/index.js +28 -0
- package/dist/model/Config/Notice/index.js.map +1 -0
- package/dist/model/Config/Organisation.d.ts +4 -0
- package/dist/model/Config/Organisation.js +4 -0
- package/dist/model/Config/Organisation.js.map +1 -1
- package/dist/model/Config/index.d.ts +2 -0
- package/dist/model/Config/index.js +2 -0
- package/dist/model/Config/index.js.map +1 -1
- package/dist/model/CreateCardRequest.d.ts +1 -0
- package/dist/model/PaymentCardCreateRequest.d.ts +1 -0
- package/dist/model/PaymentCardCreateRequest.js +1 -0
- package/dist/model/PaymentCardCreateRequest.js.map +1 -1
- package/model/CardResponseV2.ts +2 -0
- package/model/CardResponseV3.ts +2 -0
- package/model/Config/FundingLimit/index.ts +3 -2
- package/model/Config/Notice/FundingLimit/Configuration.ts +16 -0
- package/model/Config/Notice/FundingLimit/NoticeTriggerType.ts +9 -0
- package/model/Config/Notice/FundingLimit/index.ts +17 -0
- package/model/Config/Notice/Target/Configuration.ts +19 -0
- package/model/Config/Notice/Target/Type.ts +8 -0
- package/model/Config/Notice/Target/index.ts +35 -0
- package/model/Config/Notice/Type.ts +10 -0
- package/model/Config/Notice/index.ts +34 -0
- package/model/Config/Organisation.ts +7 -0
- package/model/Config/index.ts +2 -0
- package/model/CreateCardRequest.ts +1 -0
- package/model/PaymentCardCreateRequest.ts +2 -0
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ export interface CardResponseV2 {
|
|
|
37
37
|
batchId?: string;
|
|
38
38
|
merchantRestriction?: MerchantResponse;
|
|
39
39
|
closeDate?: Date;
|
|
40
|
+
minimumTransactionValue?: number;
|
|
40
41
|
}
|
|
41
42
|
export declare namespace CardResponseV2 {
|
|
42
43
|
const type: import("isly/dist/types/object").IslyObject<CardResponseV2, object>;
|
|
@@ -40,6 +40,7 @@ export var CardResponseV2;
|
|
|
40
40
|
batchId: isly.string().optional(),
|
|
41
41
|
merchantRestriction: MerchantResponse.type.optional(),
|
|
42
42
|
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
43
|
+
minimumTransactionValue: isly.number().optional(),
|
|
43
44
|
});
|
|
44
45
|
CardResponseV2.is = CardResponseV2.type.is;
|
|
45
46
|
})(CardResponseV2 || (CardResponseV2 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAA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,EAAE,KAAK,CAAC,IAAI;QACjB,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzC,cAAc,EAAE,6BAA6B,CAAC,IAAI;QAClD,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,KAAK,EAAE,SAAS,CAAC,IAAI;QACrB,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC5D,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACvD,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,0BAA0B,EAAE,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;QACrG,WAAW,EAAE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC7C,QAAQ,EAAE,oBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC9C,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,mBAAmB,EAAE,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE;QACrD,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClD,uBAAuB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAhCgB,cAAc,KAAd,cAAc,QAgC9B"}
|
|
@@ -13,6 +13,7 @@ export interface CardResponseV3 extends SummaryCardResponseV3 {
|
|
|
13
13
|
activationDate: Date;
|
|
14
14
|
closeDate?: Date;
|
|
15
15
|
restrictedToMerchant?: boolean;
|
|
16
|
+
minimumTransactionValue?: number;
|
|
16
17
|
}
|
|
17
18
|
export declare namespace CardResponseV3 {
|
|
18
19
|
const type: import("isly/dist/types/object").IslyObject<CardResponseV3, SummaryCardResponseV3>;
|
|
@@ -16,6 +16,7 @@ export var CardResponseV3;
|
|
|
16
16
|
activationDate: isly.fromIs("Date", Date.is),
|
|
17
17
|
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
18
18
|
restrictedToMerchant: isly.boolean().optional(),
|
|
19
|
+
minimumTransactionValue: isly.number().optional(),
|
|
19
20
|
});
|
|
20
21
|
CardResponseV3.is = CardResponseV3.type.is;
|
|
21
22
|
})(CardResponseV3 || (CardResponseV3 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV3.js","sourceRoot":"../","sources":["model/CardResponseV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"CardResponseV3.js","sourceRoot":"../","sources":["model/CardResponseV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAgBvC,MAAM,KAAW,cAAc,CAe9B;AAfD,WAAiB,cAAc;IACjB,mBAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC,MAAM,CAAiB;QACrE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC;QAC/C,KAAK,EAAE,SAAS,CAAC,IAAI;QACrB,eAAe,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC/C,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC5C,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClD,oBAAoB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC/C,uBAAuB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAfgB,cAAc,KAAd,cAAc,QAe9B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ProviderCode } from "../../ProviderCode";
|
|
2
|
+
import { NoticeTriggerType } from "../Notice/FundingLimit/NoticeTriggerType";
|
|
2
3
|
import { Limit as FLimit } from "./Limit";
|
|
3
4
|
export interface FundingLimit {
|
|
4
|
-
type:
|
|
5
|
+
type: NoticeTriggerType;
|
|
5
6
|
limits?: Partial<Record<ProviderCode, Record<string, FLimit>>>;
|
|
6
7
|
}
|
|
7
8
|
export declare namespace FundingLimit {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { ProviderCode } from "../../ProviderCode";
|
|
3
|
+
import { NoticeTriggerType } from "../Notice/FundingLimit/NoticeTriggerType";
|
|
3
4
|
import { Limit as FLimit } from "./Limit";
|
|
4
5
|
export var FundingLimit;
|
|
5
6
|
(function (FundingLimit) {
|
|
6
7
|
FundingLimit.type = isly.object({
|
|
7
|
-
type:
|
|
8
|
+
type: NoticeTriggerType.type,
|
|
8
9
|
limits: isly.record(ProviderCode.type, isly.record(isly.string(), FLimit.type)).optional(),
|
|
9
10
|
});
|
|
10
11
|
FundingLimit.is = FundingLimit.type.is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/FundingLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,SAAS,CAAA;AAOzC,MAAM,KAAW,YAAY,CAQ5B;AARD,WAAiB,YAAY;IACf,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe;QAC7C,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/FundingLimit/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,SAAS,CAAA;AAOzC,MAAM,KAAW,YAAY,CAQ5B;AARD,WAAiB,YAAY;IACf,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe;QAC7C,IAAI,EAAE,iBAAiB,CAAC,IAAI;QAC5B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;KAC1F,CAAC,CAAA;IACW,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;IAEX,kBAAK,GAAG,MAAM,CAAA;AAC7B,CAAC,EARgB,YAAY,KAAZ,YAAY,QAQ5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FundingLimit } from ".";
|
|
2
|
+
import { NoticeTriggerType } from "./NoticeTriggerType";
|
|
3
|
+
export interface Configuration {
|
|
4
|
+
accounts: FundingLimit[];
|
|
5
|
+
type?: NoticeTriggerType;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Configuration {
|
|
8
|
+
const type: import("isly/dist/types/object").IslyObject<FundingLimit.Configuration, object>;
|
|
9
|
+
const is: (value: FundingLimit.Configuration | any) => value is FundingLimit.Configuration;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { FundingLimit } from ".";
|
|
3
|
+
import { NoticeTriggerType } from "./NoticeTriggerType";
|
|
4
|
+
export var Configuration;
|
|
5
|
+
(function (Configuration) {
|
|
6
|
+
Configuration.type = isly.object({
|
|
7
|
+
accounts: FundingLimit.type.array(),
|
|
8
|
+
type: NoticeTriggerType.type.optional(),
|
|
9
|
+
});
|
|
10
|
+
Configuration.is = Configuration.type.is;
|
|
11
|
+
})(Configuration || (Configuration = {}));
|
|
12
|
+
//# sourceMappingURL=Configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.js","sourceRoot":"../","sources":["model/Config/Notice/FundingLimit/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAOvD,MAAM,KAAW,aAAa,CAM7B;AAND,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB;QAC9C,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,KAAK,EAAE;QACnC,IAAI,EAAE,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE;KACvC,CAAC,CAAA;IACW,gBAAE,GAAG,cAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EANgB,aAAa,KAAb,aAAa,QAM7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type NoticeTriggerType = typeof NoticeTriggerType.values[number];
|
|
3
|
+
export declare namespace NoticeTriggerType {
|
|
4
|
+
const values: readonly ["ON_THRESHOLD", "TIMED_ONLY", "ON_THRESHOLD_AND_TIMED"];
|
|
5
|
+
const type: isly.Type<"ON_THRESHOLD" | "TIMED_ONLY" | "ON_THRESHOLD_AND_TIMED">;
|
|
6
|
+
const is: (value: any | ("ON_THRESHOLD" | "TIMED_ONLY" | "ON_THRESHOLD_AND_TIMED")) => value is "ON_THRESHOLD" | "TIMED_ONLY" | "ON_THRESHOLD_AND_TIMED";
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export var NoticeTriggerType;
|
|
3
|
+
(function (NoticeTriggerType) {
|
|
4
|
+
NoticeTriggerType.values = ["ON_THRESHOLD", "TIMED_ONLY", "ON_THRESHOLD_AND_TIMED"];
|
|
5
|
+
NoticeTriggerType.type = isly.string(NoticeTriggerType.values);
|
|
6
|
+
NoticeTriggerType.is = NoticeTriggerType.type.is;
|
|
7
|
+
})(NoticeTriggerType || (NoticeTriggerType = {}));
|
|
8
|
+
//# sourceMappingURL=NoticeTriggerType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoticeTriggerType.js","sourceRoot":"../","sources":["model/Config/Notice/FundingLimit/NoticeTriggerType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IACpB,wBAAM,GAAG,CAAC,cAAc,EAAE,YAAY,EAAE,wBAAwB,CAAU,CAAA;IAC1E,sBAAI,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAA,MAAM,CAAC,CAAA;IAC1B,oBAAE,GAAG,kBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import { Configuration as FConfiguration } from "./Configuration";
|
|
3
|
+
export interface FundingLimit {
|
|
4
|
+
accountId: string;
|
|
5
|
+
threshold: number;
|
|
6
|
+
currency?: Currency;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace FundingLimit {
|
|
9
|
+
const type: import("isly/dist/types/object").IslyObject<FundingLimit, object>;
|
|
10
|
+
const is: (value: FundingLimit | any) => value is FundingLimit;
|
|
11
|
+
export import Configuration = FConfiguration;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Configuration as FConfiguration } from "./Configuration";
|
|
3
|
+
export var FundingLimit;
|
|
4
|
+
(function (FundingLimit) {
|
|
5
|
+
FundingLimit.type = isly.object({
|
|
6
|
+
accountId: isly.string(),
|
|
7
|
+
threshold: isly.number(),
|
|
8
|
+
currency: isly.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
FundingLimit.is = FundingLimit.type.is;
|
|
11
|
+
FundingLimit.Configuration = FConfiguration;
|
|
12
|
+
})(FundingLimit || (FundingLimit = {}));
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/Notice/FundingLimit/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAMjE,MAAM,KAAW,YAAY,CAQ5B;AARD,WAAiB,YAAY;IACf,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe;QAC7C,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE;QACxB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAY,CAAC,QAAQ,EAAE;KAC5C,CAAC,CAAA;IACW,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;IACX,0BAAa,GAAG,cAAc,CAAA;AAC7C,CAAC,EARgB,YAAY,KAAZ,YAAY,QAQ5B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Type } from "./Type";
|
|
3
|
+
export var Configuration;
|
|
4
|
+
(function (Configuration) {
|
|
5
|
+
Configuration.type = isly.object({
|
|
6
|
+
type: Type.type,
|
|
7
|
+
value: isly.string().optional(),
|
|
8
|
+
emails: isly
|
|
9
|
+
.string(/\S+@\S+\.\S+/)
|
|
10
|
+
.array()
|
|
11
|
+
.optional(),
|
|
12
|
+
});
|
|
13
|
+
})(Configuration || (Configuration = {}));
|
|
14
|
+
//# sourceMappingURL=Configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.js","sourceRoot":"../","sources":["model/Config/Notice/Target/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAQ7B,MAAM,KAAW,aAAa,CAS7B;AATD,WAAiB,aAAa;IAChB,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB;QAC9C,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,IAAI;aACV,MAAM,CAAC,cAAc,CAAC;aACtB,KAAK,EAAE;aACP,QAAQ,EAAE;KACZ,CAAC,CAAA;AACH,CAAC,EATgB,aAAa,KAAb,aAAa,QAS7B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type Type = typeof Type.values[number];
|
|
3
|
+
export declare namespace Type {
|
|
4
|
+
const values: readonly ["ORGANISATION", "USER"];
|
|
5
|
+
const type: isly.Type<"ORGANISATION" | "USER">;
|
|
6
|
+
const is: (value: any | ("ORGANISATION" | "USER")) => value is "ORGANISATION" | "USER";
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"../","sources":["model/Config/Notice/Target/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,MAAM,KAAW,IAAI,CAIpB;AAJD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,cAAc,EAAE,MAAM,CAAU,CAAA;IAC1C,SAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;IAC1B,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,IAAI,KAAJ,IAAI,QAIpB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Configuration as TConfguration } from "./Configuration";
|
|
3
|
+
import { Type as TargetType } from "./Type";
|
|
4
|
+
export type Target = Target.Organisation | Target.User;
|
|
5
|
+
export declare namespace Target {
|
|
6
|
+
interface Organisation {
|
|
7
|
+
type: "ORGANISATION";
|
|
8
|
+
}
|
|
9
|
+
namespace Organisation {
|
|
10
|
+
const type: import("isly/dist/types/object").IslyObject<Organisation, object>;
|
|
11
|
+
const is: (value: Organisation | any) => value is Organisation;
|
|
12
|
+
}
|
|
13
|
+
interface User {
|
|
14
|
+
type: "USER";
|
|
15
|
+
username: string;
|
|
16
|
+
}
|
|
17
|
+
namespace User {
|
|
18
|
+
const type: import("isly/dist/types/object").IslyObject<User, object>;
|
|
19
|
+
const is: (value: User | any) => value is User;
|
|
20
|
+
}
|
|
21
|
+
const type: isly.Type<Target>;
|
|
22
|
+
const is: (value: any | Target) => value is Target;
|
|
23
|
+
export import Configuration = TConfguration;
|
|
24
|
+
export import Type = TargetType;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Configuration as TConfguration } from "./Configuration";
|
|
3
|
+
import { Type as TargetType } from "./Type";
|
|
4
|
+
export var Target;
|
|
5
|
+
(function (Target) {
|
|
6
|
+
let Organisation;
|
|
7
|
+
(function (Organisation) {
|
|
8
|
+
Organisation.type = isly.object({
|
|
9
|
+
type: isly.string("ORGANISATION"),
|
|
10
|
+
});
|
|
11
|
+
Organisation.is = Organisation.type.is;
|
|
12
|
+
})(Organisation = Target.Organisation || (Target.Organisation = {}));
|
|
13
|
+
let User;
|
|
14
|
+
(function (User) {
|
|
15
|
+
User.type = isly.object({
|
|
16
|
+
type: isly.string("USER"),
|
|
17
|
+
username: isly.string(),
|
|
18
|
+
});
|
|
19
|
+
User.is = User.type.is;
|
|
20
|
+
})(User = Target.User || (Target.User = {}));
|
|
21
|
+
Target.type = isly.union(Organisation.type, User.type);
|
|
22
|
+
Target.is = Target.type.is;
|
|
23
|
+
Target.Configuration = TConfguration;
|
|
24
|
+
Target.Type = TargetType;
|
|
25
|
+
})(Target || (Target = {}));
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/Notice/Target/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAI3C,MAAM,KAAW,MAAM,CA4BtB;AA5BD,WAAiB,MAAM;IAKtB,IAAiB,YAAY,CAK5B;IALD,WAAiB,YAAY;QACf,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAe;YAC7C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;SACjC,CAAC,CAAA;QACW,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;IAC1B,CAAC,EALgB,YAAY,GAAZ,mBAAY,KAAZ,mBAAY,QAK5B;IAMD,IAAiB,IAAI,CAMpB;IAND,WAAiB,IAAI;QACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;YACrC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;YACzB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;SACvB,CAAC,CAAA;QACW,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;IAC1B,CAAC,EANgB,IAAI,GAAJ,WAAI,KAAJ,WAAI,QAMpB;IACY,WAAI,GAAG,IAAI,CAAC,KAAK,CAAS,YAAY,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;IACvD,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IAEX,oBAAa,GAAG,aAAa,CAAA;IAC7B,WAAI,GAAG,UAAU,CAAA;AAChC,CAAC,EA5BgB,MAAM,KAAN,MAAM,QA4BtB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type Type = typeof Type.values[number];
|
|
3
|
+
export declare namespace Type {
|
|
4
|
+
const values: readonly ["FUNDING_LIMIT"];
|
|
5
|
+
const type: isly.Type<"FUNDING_LIMIT">;
|
|
6
|
+
const is: (value: any | "FUNDING_LIMIT") => value is "FUNDING_LIMIT";
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Type.js","sourceRoot":"../","sources":["model/Config/Notice/Type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,MAAM,KAAW,IAAI,CAIpB;AAJD,WAAiB,IAAI;IACP,WAAM,GAAG,CAAC,eAAe,CAAU,CAAA;IACnC,SAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAA,MAAM,CAAC,CAAA;IAC1B,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,IAAI,KAAJ,IAAI,QAIpB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Configuration as FConfiguration } from "./FundingLimit/Configuration";
|
|
3
|
+
import { Target as NTarget } from "./Target";
|
|
4
|
+
import { Type as NType } from "./Type";
|
|
5
|
+
export declare namespace Notice {
|
|
6
|
+
interface Base<T extends Type = Type, C = any> {
|
|
7
|
+
type: T;
|
|
8
|
+
configuration?: C;
|
|
9
|
+
targets?: Target[];
|
|
10
|
+
}
|
|
11
|
+
namespace Base {
|
|
12
|
+
const type: import("isly/dist/types/object").IslyObject<Base<"FUNDING_LIMIT", any>, object>;
|
|
13
|
+
const is: (value: Base<"FUNDING_LIMIT", any> | any) => value is Base<"FUNDING_LIMIT", any>;
|
|
14
|
+
}
|
|
15
|
+
type FundingLimit = Notice.Base<"FUNDING_LIMIT", FConfiguration>;
|
|
16
|
+
export import Target = NTarget;
|
|
17
|
+
export import Type = NType;
|
|
18
|
+
namespace FundingLimit {
|
|
19
|
+
const type: import("isly/dist/types/object").IslyObject<FundingLimit, Base<"FUNDING_LIMIT", any>>;
|
|
20
|
+
export import Configuration = FConfiguration;
|
|
21
|
+
}
|
|
22
|
+
const type: isly.Type<FundingLimit>;
|
|
23
|
+
}
|
|
24
|
+
export type Notice = Notice.FundingLimit;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
import { Configuration as FConfiguration } from "./FundingLimit/Configuration";
|
|
3
|
+
import { Target as NTarget } from "./Target";
|
|
4
|
+
import { Type as NType } from "./Type";
|
|
5
|
+
export var Notice;
|
|
6
|
+
(function (Notice) {
|
|
7
|
+
let Base;
|
|
8
|
+
(function (Base) {
|
|
9
|
+
Base.type = isly.object({
|
|
10
|
+
type: NType.type,
|
|
11
|
+
configuration: isly.any().optional(),
|
|
12
|
+
targets: isly.array(NTarget.type).optional(),
|
|
13
|
+
});
|
|
14
|
+
Base.is = Base.type.is;
|
|
15
|
+
})(Base = Notice.Base || (Notice.Base = {}));
|
|
16
|
+
Notice.Target = NTarget;
|
|
17
|
+
Notice.Type = NType;
|
|
18
|
+
let FundingLimit;
|
|
19
|
+
(function (FundingLimit) {
|
|
20
|
+
FundingLimit.type = Notice.Base.type.extend({
|
|
21
|
+
type: isly.string("FUNDING_LIMIT"),
|
|
22
|
+
configuration: FConfiguration.type.optional(),
|
|
23
|
+
});
|
|
24
|
+
FundingLimit.Configuration = FConfiguration;
|
|
25
|
+
})(FundingLimit = Notice.FundingLimit || (Notice.FundingLimit = {}));
|
|
26
|
+
Notice.type = isly.union(FundingLimit.type);
|
|
27
|
+
})(Notice || (Notice = {}));
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/Notice/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,QAAQ,CAAA;AAEtC,MAAM,KAAW,MAAM,CA0BtB;AA1BD,WAAiB,MAAM;IAMtB,IAAiB,IAAI,CAOpB;IAPD,WAAiB,IAAI;QACP,SAAI,GAAG,IAAI,CAAC,MAAM,CAAc;YAC5C,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,aAAa,EAAE,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;YACpC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;SAC5C,CAAC,CAAA;QACW,OAAE,GAAG,KAAA,IAAI,CAAC,EAAE,CAAA;IAC1B,CAAC,EAPgB,IAAI,GAAJ,WAAI,KAAJ,WAAI,QAOpB;IAGa,aAAM,GAAG,OAAO,CAAA;IAChB,WAAI,GAAG,KAAK,CAAA;IAC1B,IAAiB,YAAY,CAM5B;IAND,WAAiB,YAAY;QACf,iBAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAe;YACzD,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;YAClC,aAAa,EAAE,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE;SAC7C,CAAC,CAAA;QACY,0BAAa,GAAG,cAAc,CAAA;IAC7C,CAAC,EANgB,YAAY,GAAZ,mBAAY,KAAZ,mBAAY,QAM5B;IACY,WAAI,GAAG,IAAI,CAAC,KAAK,CAAS,YAAY,CAAC,IAAI,CAAC,CAAA;AAC1D,CAAC,EA1BgB,MAAM,KAAN,MAAM,QA0BtB"}
|
|
@@ -8,6 +8,7 @@ import { ForcedSettlementNotification } from "./ForcedSettlementNotification";
|
|
|
8
8
|
import { FraudEmail } from "./FraudEmail";
|
|
9
9
|
import { FundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification";
|
|
10
10
|
import { FundingLimit } from "./FundingLimit";
|
|
11
|
+
import { Notice } from "./Notice";
|
|
11
12
|
import { Security } from "./Security";
|
|
12
13
|
import { SsoProvider } from "./SsoProvider";
|
|
13
14
|
export interface Organisation {
|
|
@@ -27,7 +28,10 @@ export interface Organisation {
|
|
|
27
28
|
fraudEmailConfig?: FraudEmail;
|
|
28
29
|
sso?: Partial<Record<SsoProvider.Type, SsoProvider>>;
|
|
29
30
|
forcedSettlementNotificationConfig?: ForcedSettlementNotification;
|
|
31
|
+
noticeConfigurations?: Notice[];
|
|
30
32
|
portalMetadataFormatOrdering?: string[];
|
|
33
|
+
noticeTargetConfigurations?: Notice.Target.Configuration[];
|
|
34
|
+
minimumTransactionValuePercentage?: number;
|
|
31
35
|
}
|
|
32
36
|
export declare namespace Organisation {
|
|
33
37
|
const type: import("isly/dist/types/object").IslyObject<Organisation, object>;
|
|
@@ -9,6 +9,7 @@ import { ForcedSettlementNotification } from "./ForcedSettlementNotification";
|
|
|
9
9
|
import { FraudEmail } from "./FraudEmail";
|
|
10
10
|
import { FundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification";
|
|
11
11
|
import { FundingLimit } from "./FundingLimit";
|
|
12
|
+
import { Notice } from "./Notice";
|
|
12
13
|
import { Security } from "./Security";
|
|
13
14
|
import { SsoProvider } from "./SsoProvider";
|
|
14
15
|
export var Organisation;
|
|
@@ -31,7 +32,10 @@ export var Organisation;
|
|
|
31
32
|
fraudEmailConfig: FraudEmail.type.optional(),
|
|
32
33
|
sso: isly.record(SsoProvider.Type.type, SsoProvider.type).optional(),
|
|
33
34
|
forcedSettlementNotificationConfig: ForcedSettlementNotification.type.optional(),
|
|
35
|
+
noticeConfigurations: isly.array(Notice.type).optional(),
|
|
34
36
|
portalMetadataFormatOrdering: isly.string().array().optional(),
|
|
37
|
+
noticeTargetConfigurations: Notice.Target.Configuration.type.array().optional(),
|
|
38
|
+
minimumTransactionValuePercentage: isly.number().optional(),
|
|
35
39
|
});
|
|
36
40
|
Organisation.is = Organisation.type.is;
|
|
37
41
|
})(Organisation || (Organisation = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Organisation.js","sourceRoot":"../","sources":["model/Config/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,CAAC,QAAQ,EAAE;QAC1D,2BAA2B,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QACtD,cAAc,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;QACxC,gBAAgB,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QAC5C,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACpE,kCAAkC,EAAE,4BAA4B,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChF,oBAAoB,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACxD,4BAA4B,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC9D,0BAA0B,EAAE,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC/E,iCAAiC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC3D,CAAC,CAAA;IACW,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAzBgB,YAAY,KAAZ,YAAY,QAyB5B"}
|
|
@@ -6,6 +6,7 @@ import { FraudEmail as CFraudEmail } from "./FraudEmail";
|
|
|
6
6
|
import { FundingAccountInboundTransferNotification as CFundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification";
|
|
7
7
|
import { FundingLimit as TFundingLimit } from "./FundingLimit";
|
|
8
8
|
import { InternalOrganisation as CInternalOrganisation } from "./InternalOrganisation";
|
|
9
|
+
import { Notice as CNotice } from "./Notice";
|
|
9
10
|
import { Organisation as COrganisation } from "./Organisation";
|
|
10
11
|
import { Security as CSecurity } from "./Security";
|
|
11
12
|
import { SsoProvider as CSsoProvider } from "./SsoProvider";
|
|
@@ -23,4 +24,5 @@ export declare namespace Config {
|
|
|
23
24
|
export import FundingLimit = TFundingLimit;
|
|
24
25
|
export import SsoProvider = CSsoProvider;
|
|
25
26
|
export import Security = CSecurity;
|
|
27
|
+
export import Notice = CNotice;
|
|
26
28
|
}
|
|
@@ -6,6 +6,7 @@ import { FraudEmail as CFraudEmail } from "./FraudEmail";
|
|
|
6
6
|
import { FundingAccountInboundTransferNotification as CFundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification";
|
|
7
7
|
import { FundingLimit as TFundingLimit } from "./FundingLimit";
|
|
8
8
|
import { InternalOrganisation as CInternalOrganisation } from "./InternalOrganisation";
|
|
9
|
+
import { Notice as CNotice } from "./Notice";
|
|
9
10
|
import { Organisation as COrganisation } from "./Organisation";
|
|
10
11
|
import { Security as CSecurity } from "./Security";
|
|
11
12
|
import { SsoProvider as CSsoProvider } from "./SsoProvider";
|
|
@@ -24,5 +25,6 @@ export var Config;
|
|
|
24
25
|
Config.FundingLimit = TFundingLimit;
|
|
25
26
|
Config.SsoProvider = CSsoProvider;
|
|
26
27
|
Config.Security = CSecurity;
|
|
28
|
+
Config.Notice = CNotice;
|
|
27
29
|
})(Config || (Config = {}));
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/Config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACtF,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,EAAE,4BAA4B,IAAI,6BAA6B,EAAE,MAAM,gCAAgC,CAAA;AAC9G,OAAO,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,yCAAyC,IAAI,0CAA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EAAE,WAAW,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,QAAQ,CAAA;AAEtC,MAAM,KAAW,MAAM,CAetB;AAfD,WAAiB,MAAM;IACR,mBAAY,GAAG,aAAa,CAAA;IAC5B,2BAAoB,GAAG,qBAAqB,CAAA;IAC5C,WAAI,GAAG,KAAK,CAAA;IAEZ,2BAAoB,GAAG,qBAAqB,CAAA;IAC5C,wBAAiB,GAAG,kBAAkB,CAAA;IACtC,gBAAS,GAAG,UAAU,CAAA;IACtB,mCAA4B,GAAG,6BAA6B,CAAA;IAC5D,iBAAU,GAAG,WAAW,CAAA;IACxB,gDAAyC,GAAG,0CAA0C,CAAA;IACtF,mBAAY,GAAG,aAAa,CAAA;IAC5B,kBAAW,GAAG,YAAY,CAAA;IAC1B,eAAQ,GAAG,SAAS,CAAA;IACpB,aAAM,GAAG,OAAO,CAAA;AAC/B,CAAC,EAfgB,MAAM,KAAN,MAAM,QAetB"}
|
|
@@ -8,6 +8,7 @@ export interface PaymentCardCreateRequest {
|
|
|
8
8
|
usage?: CardUsage;
|
|
9
9
|
closeDate?: isoly.Date;
|
|
10
10
|
restrictToMerchant?: boolean;
|
|
11
|
+
minimumTransactionValue?: number;
|
|
11
12
|
}
|
|
12
13
|
export declare namespace PaymentCardCreateRequest {
|
|
13
14
|
const type: import("isly/dist/types/object").IslyObject<PaymentCardCreateRequest, object>;
|
|
@@ -11,6 +11,7 @@ export var PaymentCardCreateRequest;
|
|
|
11
11
|
usage: CardUsage.type.optional(),
|
|
12
12
|
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|
|
13
13
|
restrictToMerchant: isly.boolean().optional(),
|
|
14
|
+
minimumTransactionValue: isly.number().optional(),
|
|
14
15
|
});
|
|
15
16
|
PaymentCardCreateRequest.is = PaymentCardCreateRequest.type.is;
|
|
16
17
|
})(PaymentCardCreateRequest || (PaymentCardCreateRequest = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentCardCreateRequest.js","sourceRoot":"../","sources":["model/PaymentCardCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"PaymentCardCreateRequest.js","sourceRoot":"../","sources":["model/PaymentCardCreateRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAUvC,MAAM,KAAW,wBAAwB,CAUxC;AAVD,WAAiB,wBAAwB;IAC3B,6BAAI,GAAG,IAAI,CAAC,MAAM,CAA2B;QACzD,QAAQ,EAAE,qBAAqB,CAAC,IAAI;QACpC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC1D,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACxD,kBAAkB,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC7C,uBAAuB,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAA;IACW,2BAAE,GAAG,yBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAVgB,wBAAwB,KAAxB,wBAAwB,QAUxC"}
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -39,6 +39,7 @@ export interface CardResponseV2 {
|
|
|
39
39
|
batchId?: string
|
|
40
40
|
merchantRestriction?: MerchantResponse
|
|
41
41
|
closeDate?: Date
|
|
42
|
+
minimumTransactionValue?: number
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export namespace CardResponseV2 {
|
|
@@ -70,6 +71,7 @@ export namespace CardResponseV2 {
|
|
|
70
71
|
batchId: isly.string().optional(),
|
|
71
72
|
merchantRestriction: MerchantResponse.type.optional(),
|
|
72
73
|
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
74
|
+
minimumTransactionValue: isly.number().optional(),
|
|
73
75
|
})
|
|
74
76
|
export const is = type.is
|
|
75
77
|
}
|
package/model/CardResponseV3.ts
CHANGED
|
@@ -15,6 +15,7 @@ export interface CardResponseV3 extends SummaryCardResponseV3 {
|
|
|
15
15
|
activationDate: Date
|
|
16
16
|
closeDate?: Date
|
|
17
17
|
restrictedToMerchant?: boolean
|
|
18
|
+
minimumTransactionValue?: number
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
export namespace CardResponseV3 {
|
|
@@ -29,6 +30,7 @@ export namespace CardResponseV3 {
|
|
|
29
30
|
activationDate: isly.fromIs("Date", Date.is),
|
|
30
31
|
closeDate: isly.fromIs("Date", Date.is).optional(),
|
|
31
32
|
restrictedToMerchant: isly.boolean().optional(),
|
|
33
|
+
minimumTransactionValue: isly.number().optional(),
|
|
32
34
|
})
|
|
33
35
|
export const is = type.is
|
|
34
36
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { ProviderCode } from "../../ProviderCode"
|
|
3
|
+
import { NoticeTriggerType } from "../Notice/FundingLimit/NoticeTriggerType"
|
|
3
4
|
import { Limit as FLimit } from "./Limit"
|
|
4
5
|
|
|
5
6
|
// FundingLimitConfig
|
|
6
7
|
export interface FundingLimit {
|
|
7
|
-
type:
|
|
8
|
+
type: NoticeTriggerType
|
|
8
9
|
limits?: Partial<Record<ProviderCode, Record<string, FLimit>>>
|
|
9
10
|
}
|
|
10
11
|
export namespace FundingLimit {
|
|
11
12
|
export const type = isly.object<FundingLimit>({
|
|
12
|
-
type:
|
|
13
|
+
type: NoticeTriggerType.type,
|
|
13
14
|
limits: isly.record(ProviderCode.type, isly.record(isly.string(), FLimit.type)).optional(),
|
|
14
15
|
})
|
|
15
16
|
export const is = type.is
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { FundingLimit } from "."
|
|
3
|
+
import { NoticeTriggerType } from "./NoticeTriggerType"
|
|
4
|
+
|
|
5
|
+
export interface Configuration {
|
|
6
|
+
accounts: FundingLimit[]
|
|
7
|
+
type?: NoticeTriggerType
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Configuration {
|
|
11
|
+
export const type = isly.object<Configuration>({
|
|
12
|
+
accounts: FundingLimit.type.array(),
|
|
13
|
+
type: NoticeTriggerType.type.optional(),
|
|
14
|
+
})
|
|
15
|
+
export const is = type.is
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export type NoticeTriggerType = typeof NoticeTriggerType.values[number]
|
|
4
|
+
|
|
5
|
+
export namespace NoticeTriggerType {
|
|
6
|
+
export const values = ["ON_THRESHOLD", "TIMED_ONLY", "ON_THRESHOLD_AND_TIMED"] as const
|
|
7
|
+
export const type = isly.string(values)
|
|
8
|
+
export const is = type.is
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Currency } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
3
|
+
import { Configuration as FConfiguration } from "./Configuration"
|
|
4
|
+
export interface FundingLimit {
|
|
5
|
+
accountId: string
|
|
6
|
+
threshold: number
|
|
7
|
+
currency?: Currency
|
|
8
|
+
}
|
|
9
|
+
export namespace FundingLimit {
|
|
10
|
+
export const type = isly.object<FundingLimit>({
|
|
11
|
+
accountId: isly.string(),
|
|
12
|
+
threshold: isly.number(),
|
|
13
|
+
currency: isly.string<Currency>().optional(),
|
|
14
|
+
})
|
|
15
|
+
export const is = type.is
|
|
16
|
+
export import Configuration = FConfiguration
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { Type } from "./Type"
|
|
3
|
+
|
|
4
|
+
export interface Configuration {
|
|
5
|
+
type: Type
|
|
6
|
+
value?: string
|
|
7
|
+
emails?: string[]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace Configuration {
|
|
11
|
+
export const type = isly.object<Configuration>({
|
|
12
|
+
type: Type.type,
|
|
13
|
+
value: isly.string().optional(),
|
|
14
|
+
emails: isly
|
|
15
|
+
.string(/\S+@\S+\.\S+/)
|
|
16
|
+
.array()
|
|
17
|
+
.optional(),
|
|
18
|
+
})
|
|
19
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { Configuration as TConfguration } from "./Configuration"
|
|
3
|
+
import { Type as TargetType } from "./Type"
|
|
4
|
+
// ConfigurableNoticeTarget
|
|
5
|
+
export type Target = Target.Organisation | Target.User
|
|
6
|
+
|
|
7
|
+
export namespace Target {
|
|
8
|
+
// OrganisationConfigurableNoticeTarget
|
|
9
|
+
export interface Organisation {
|
|
10
|
+
type: "ORGANISATION"
|
|
11
|
+
}
|
|
12
|
+
export namespace Organisation {
|
|
13
|
+
export const type = isly.object<Organisation>({
|
|
14
|
+
type: isly.string("ORGANISATION"),
|
|
15
|
+
})
|
|
16
|
+
export const is = type.is
|
|
17
|
+
}
|
|
18
|
+
// UserConfigurableNoticeTarget
|
|
19
|
+
export interface User {
|
|
20
|
+
type: "USER"
|
|
21
|
+
username: string
|
|
22
|
+
}
|
|
23
|
+
export namespace User {
|
|
24
|
+
export const type = isly.object<User>({
|
|
25
|
+
type: isly.string("USER"),
|
|
26
|
+
username: isly.string(),
|
|
27
|
+
})
|
|
28
|
+
export const is = type.is
|
|
29
|
+
}
|
|
30
|
+
export const type = isly.union<Target>(Organisation.type, User.type)
|
|
31
|
+
export const is = type.is
|
|
32
|
+
|
|
33
|
+
export import Configuration = TConfguration
|
|
34
|
+
export import Type = TargetType
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
import { Configuration as FConfiguration } from "./FundingLimit/Configuration"
|
|
3
|
+
import { Target as NTarget } from "./Target"
|
|
4
|
+
import { Type as NType } from "./Type"
|
|
5
|
+
|
|
6
|
+
export namespace Notice {
|
|
7
|
+
export interface Base<T extends Type = Type, C = any> {
|
|
8
|
+
type: T
|
|
9
|
+
configuration?: C
|
|
10
|
+
targets?: Target[]
|
|
11
|
+
}
|
|
12
|
+
export namespace Base {
|
|
13
|
+
export const type = isly.object<Notice.Base>({
|
|
14
|
+
type: NType.type,
|
|
15
|
+
configuration: isly.any().optional(),
|
|
16
|
+
targets: isly.array(NTarget.type).optional(),
|
|
17
|
+
})
|
|
18
|
+
export const is = type.is
|
|
19
|
+
}
|
|
20
|
+
// FundingLimitNoticeConfiguration
|
|
21
|
+
export type FundingLimit = Notice.Base<"FUNDING_LIMIT", FConfiguration>
|
|
22
|
+
export import Target = NTarget
|
|
23
|
+
export import Type = NType
|
|
24
|
+
export namespace FundingLimit {
|
|
25
|
+
export const type = Notice.Base.type.extend<FundingLimit>({
|
|
26
|
+
type: isly.string("FUNDING_LIMIT"),
|
|
27
|
+
configuration: FConfiguration.type.optional(),
|
|
28
|
+
})
|
|
29
|
+
export import Configuration = FConfiguration
|
|
30
|
+
}
|
|
31
|
+
export const type = isly.union<Notice>(FundingLimit.type)
|
|
32
|
+
}
|
|
33
|
+
// NoticeConfiguration
|
|
34
|
+
export type Notice = Notice.FundingLimit
|
|
@@ -9,6 +9,7 @@ import { ForcedSettlementNotification } from "./ForcedSettlementNotification"
|
|
|
9
9
|
import { FraudEmail } from "./FraudEmail"
|
|
10
10
|
import { FundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification"
|
|
11
11
|
import { FundingLimit } from "./FundingLimit"
|
|
12
|
+
import { Notice } from "./Notice"
|
|
12
13
|
import { Security } from "./Security"
|
|
13
14
|
import { SsoProvider } from "./SsoProvider"
|
|
14
15
|
/**
|
|
@@ -32,7 +33,10 @@ export interface Organisation {
|
|
|
32
33
|
fraudEmailConfig?: FraudEmail
|
|
33
34
|
sso?: Partial<Record<SsoProvider.Type, SsoProvider>>
|
|
34
35
|
forcedSettlementNotificationConfig?: ForcedSettlementNotification
|
|
36
|
+
noticeConfigurations?: Notice[]
|
|
35
37
|
portalMetadataFormatOrdering?: string[]
|
|
38
|
+
noticeTargetConfigurations?: Notice.Target.Configuration[]
|
|
39
|
+
minimumTransactionValuePercentage?: number
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
export namespace Organisation {
|
|
@@ -54,7 +58,10 @@ export namespace Organisation {
|
|
|
54
58
|
fraudEmailConfig: FraudEmail.type.optional(),
|
|
55
59
|
sso: isly.record(SsoProvider.Type.type, SsoProvider.type).optional(),
|
|
56
60
|
forcedSettlementNotificationConfig: ForcedSettlementNotification.type.optional(),
|
|
61
|
+
noticeConfigurations: isly.array(Notice.type).optional(),
|
|
57
62
|
portalMetadataFormatOrdering: isly.string().array().optional(),
|
|
63
|
+
noticeTargetConfigurations: Notice.Target.Configuration.type.array().optional(),
|
|
64
|
+
minimumTransactionValuePercentage: isly.number().optional(),
|
|
58
65
|
})
|
|
59
66
|
export const is = type.is
|
|
60
67
|
}
|
package/model/Config/index.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { FraudEmail as CFraudEmail } from "./FraudEmail"
|
|
|
6
6
|
import { FundingAccountInboundTransferNotification as CFundingAccountInboundTransferNotification } from "./FundingAccountInboundTransferNotification"
|
|
7
7
|
import { FundingLimit as TFundingLimit } from "./FundingLimit"
|
|
8
8
|
import { InternalOrganisation as CInternalOrganisation } from "./InternalOrganisation"
|
|
9
|
+
import { Notice as CNotice } from "./Notice"
|
|
9
10
|
import { Organisation as COrganisation } from "./Organisation"
|
|
10
11
|
import { Security as CSecurity } from "./Security"
|
|
11
12
|
import { SsoProvider as CSsoProvider } from "./SsoProvider"
|
|
@@ -25,4 +26,5 @@ export namespace Config {
|
|
|
25
26
|
export import FundingLimit = TFundingLimit
|
|
26
27
|
export import SsoProvider = CSsoProvider
|
|
27
28
|
export import Security = CSecurity
|
|
29
|
+
export import Notice = CNotice
|
|
28
30
|
}
|
|
@@ -10,6 +10,7 @@ export interface PaymentCardCreateRequest {
|
|
|
10
10
|
usage?: CardUsage
|
|
11
11
|
closeDate?: isoly.Date
|
|
12
12
|
restrictToMerchant?: boolean
|
|
13
|
+
minimumTransactionValue?: number
|
|
13
14
|
}
|
|
14
15
|
export namespace PaymentCardCreateRequest {
|
|
15
16
|
export const type = isly.object<PaymentCardCreateRequest>({
|
|
@@ -18,6 +19,7 @@ export namespace PaymentCardCreateRequest {
|
|
|
18
19
|
usage: CardUsage.type.optional(),
|
|
19
20
|
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
|
|
20
21
|
restrictToMerchant: isly.boolean().optional(),
|
|
22
|
+
minimumTransactionValue: isly.number().optional(),
|
|
21
23
|
})
|
|
22
24
|
export const is = type.is
|
|
23
25
|
}
|