@pax2pay/model-banking 0.1.613 → 0.1.615
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/Amount.ts +0 -6
- package/Card/Changeable.ts +0 -13
- package/Card/Creatable.ts +0 -28
- package/Card/Expiry.ts +0 -14
- package/Card/Operation/Authorization.ts +1 -13
- package/Card/Operation/Card.ts +0 -14
- package/Card/Operation/index.ts +0 -5
- package/Card/Preset.ts +0 -5
- package/Card/Restriction/Merchant.ts +0 -2
- package/Card/Restriction/index.ts +0 -8
- package/Card/Restriction/merchants/Merchant.ts +2 -2
- package/Card/Scheme.ts +0 -5
- package/Card/index.ts +0 -37
- package/Client/Transactions/index.ts +0 -21
- package/Operation/Changes.ts +6 -0
- package/Rail/index.ts +0 -2
- package/Realm.ts +0 -5
- package/Rule/Base.ts +0 -26
- package/Rule/Other.ts +0 -6
- package/Rule/type.ts +0 -5
- package/Treasury/Snapshot/Account.ts +1 -1
- package/Treasury/Snapshot/Check/BankFeedIntegrity.ts +19 -0
- package/Treasury/Snapshot/Check/Base.ts +8 -0
- package/Treasury/Snapshot/Check/Checks.ts +15 -0
- package/Treasury/Snapshot/Check/ExternalReconciliation.ts +9 -0
- package/Treasury/Snapshot/Check/InternalReconciliation.ts +9 -0
- package/Treasury/Snapshot/Check/LedgerIntegrity.ts +17 -0
- package/Treasury/Snapshot/Check/Overdraft.ts +7 -0
- package/Treasury/Snapshot/Check/Result.ts +11 -0
- package/Treasury/Snapshot/Check/TransactionMatch.ts +9 -0
- package/Treasury/Snapshot/Check/UnidentifiedFunds.ts +8 -0
- package/Treasury/Snapshot/Check/index.ts +29 -0
- package/Treasury/Snapshot/Fiat.ts +0 -2
- package/Treasury/Snapshot/index.ts +7 -27
- package/dist/cjs/Amount.d.ts +0 -2
- package/dist/cjs/Amount.js +0 -3
- package/dist/cjs/Amount.js.map +1 -1
- package/dist/cjs/Card/Changeable.d.ts +0 -2
- package/dist/cjs/Card/Changeable.js +0 -13
- package/dist/cjs/Card/Changeable.js.map +1 -1
- package/dist/cjs/Card/Creatable.d.ts +0 -2
- package/dist/cjs/Card/Creatable.js +0 -28
- package/dist/cjs/Card/Creatable.js.map +1 -1
- package/dist/cjs/Card/Expiry.d.ts +0 -2
- package/dist/cjs/Card/Expiry.js +0 -11
- package/dist/cjs/Card/Expiry.js.map +1 -1
- package/dist/cjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/cjs/Card/Operation/Authorization.js +0 -12
- package/dist/cjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/cjs/Card/Operation/Card.d.ts +0 -2
- package/dist/cjs/Card/Operation/Card.js +0 -14
- package/dist/cjs/Card/Operation/Card.js.map +1 -1
- package/dist/cjs/Card/Operation/index.d.ts +0 -2
- package/dist/cjs/Card/Operation/index.js +0 -5
- package/dist/cjs/Card/Operation/index.js.map +1 -1
- package/dist/cjs/Card/Preset.d.ts +0 -2
- package/dist/cjs/Card/Preset.js +0 -5
- package/dist/cjs/Card/Preset.js.map +1 -1
- package/dist/cjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js +0 -2
- package/dist/cjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/cjs/Card/Restriction/index.d.ts +0 -2
- package/dist/cjs/Card/Restriction/index.js +0 -8
- package/dist/cjs/Card/Restriction/index.js.map +1 -1
- package/dist/cjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/cjs/Card/Restriction/merchants/Merchant.js +8 -8
- package/dist/cjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/cjs/Card/Scheme.d.ts +0 -2
- package/dist/cjs/Card/Scheme.js +0 -5
- package/dist/cjs/Card/Scheme.js.map +1 -1
- package/dist/cjs/Card/index.d.ts +0 -2
- package/dist/cjs/Card/index.js +0 -38
- package/dist/cjs/Card/index.js.map +1 -1
- package/dist/cjs/Client/Transactions/index.d.ts +0 -16
- package/dist/cjs/Client/Transactions/index.js +0 -27
- package/dist/cjs/Client/Transactions/index.js.map +1 -1
- package/dist/cjs/Operation/Changes.d.ts +1 -0
- package/dist/cjs/Operation/Changes.js +4 -0
- package/dist/cjs/Operation/Changes.js.map +1 -1
- package/dist/cjs/Rail/index.d.ts +0 -2
- package/dist/cjs/Rail/index.js +0 -2
- package/dist/cjs/Rail/index.js.map +1 -1
- package/dist/cjs/Realm.d.ts +0 -2
- package/dist/cjs/Realm.js +0 -5
- package/dist/cjs/Realm.js.map +1 -1
- package/dist/cjs/Rule/Base.d.ts +0 -4
- package/dist/cjs/Rule/Base.js +0 -26
- package/dist/cjs/Rule/Base.js.map +1 -1
- package/dist/cjs/Rule/Other.d.ts +0 -3
- package/dist/cjs/Rule/Other.js +0 -6
- package/dist/cjs/Rule/Other.js.map +1 -1
- package/dist/cjs/Rule/type.js.map +1 -1
- package/dist/cjs/Treasury/Snapshot/Account.d.ts +1 -1
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +25 -0
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.d.ts +7 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/Base.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.d.ts +6 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js +18 -0
- package/dist/cjs/Treasury/Snapshot/Check/Checks.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +24 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.d.ts +9 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.d.ts +5 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js +16 -0
- package/dist/cjs/Treasury/Snapshot/Check/Result.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +8 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +7 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +3 -0
- package/dist/cjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.d.ts +21 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.js +11 -0
- package/dist/cjs/Treasury/Snapshot/Check/index.js.map +1 -0
- package/dist/cjs/Treasury/Snapshot/Fiat.d.ts +0 -2
- package/dist/cjs/Treasury/Snapshot/index.d.ts +6 -8
- package/dist/cjs/Treasury/Snapshot/index.js +2 -27
- package/dist/cjs/Treasury/Snapshot/index.js.map +1 -1
- package/dist/mjs/Amount.d.ts +0 -2
- package/dist/mjs/Amount.js +0 -3
- package/dist/mjs/Amount.js.map +1 -1
- package/dist/mjs/Card/Changeable.d.ts +0 -2
- package/dist/mjs/Card/Changeable.js +0 -13
- package/dist/mjs/Card/Changeable.js.map +1 -1
- package/dist/mjs/Card/Creatable.d.ts +0 -2
- package/dist/mjs/Card/Creatable.js +0 -28
- package/dist/mjs/Card/Creatable.js.map +1 -1
- package/dist/mjs/Card/Expiry.d.ts +0 -2
- package/dist/mjs/Card/Expiry.js +0 -11
- package/dist/mjs/Card/Expiry.js.map +1 -1
- package/dist/mjs/Card/Operation/Authorization.d.ts +0 -2
- package/dist/mjs/Card/Operation/Authorization.js +0 -12
- package/dist/mjs/Card/Operation/Authorization.js.map +1 -1
- package/dist/mjs/Card/Operation/Card.d.ts +0 -2
- package/dist/mjs/Card/Operation/Card.js +0 -14
- package/dist/mjs/Card/Operation/Card.js.map +1 -1
- package/dist/mjs/Card/Operation/index.d.ts +0 -2
- package/dist/mjs/Card/Operation/index.js +0 -5
- package/dist/mjs/Card/Operation/index.js.map +1 -1
- package/dist/mjs/Card/Preset.d.ts +0 -2
- package/dist/mjs/Card/Preset.js +0 -5
- package/dist/mjs/Card/Preset.js.map +1 -1
- package/dist/mjs/Card/Restriction/Merchant.d.ts +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js +0 -2
- package/dist/mjs/Card/Restriction/Merchant.js.map +1 -1
- package/dist/mjs/Card/Restriction/index.d.ts +0 -2
- package/dist/mjs/Card/Restriction/index.js +0 -8
- package/dist/mjs/Card/Restriction/index.js.map +1 -1
- package/dist/mjs/Card/Restriction/merchants/Merchant.d.ts +1 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js +2 -2
- package/dist/mjs/Card/Restriction/merchants/Merchant.js.map +1 -1
- package/dist/mjs/Card/Scheme.d.ts +0 -2
- package/dist/mjs/Card/Scheme.js +0 -5
- package/dist/mjs/Card/Scheme.js.map +1 -1
- package/dist/mjs/Card/index.d.ts +0 -2
- package/dist/mjs/Card/index.js +0 -38
- package/dist/mjs/Card/index.js.map +1 -1
- package/dist/mjs/Client/Transactions/index.d.ts +0 -16
- package/dist/mjs/Client/Transactions/index.js +0 -27
- package/dist/mjs/Client/Transactions/index.js.map +1 -1
- package/dist/mjs/Operation/Changes.d.ts +1 -0
- package/dist/mjs/Operation/Changes.js +4 -0
- package/dist/mjs/Operation/Changes.js.map +1 -1
- package/dist/mjs/Rail/index.d.ts +0 -2
- package/dist/mjs/Rail/index.js +0 -2
- package/dist/mjs/Rail/index.js.map +1 -1
- package/dist/mjs/Realm.d.ts +0 -2
- package/dist/mjs/Realm.js +0 -5
- package/dist/mjs/Realm.js.map +1 -1
- package/dist/mjs/Rule/Base.d.ts +0 -4
- package/dist/mjs/Rule/Base.js +0 -26
- package/dist/mjs/Rule/Base.js.map +1 -1
- package/dist/mjs/Rule/Other.d.ts +0 -3
- package/dist/mjs/Rule/Other.js +0 -6
- package/dist/mjs/Rule/Other.js.map +1 -1
- package/dist/mjs/Rule/type.js.map +1 -1
- package/dist/mjs/Treasury/Snapshot/Account.d.ts +1 -1
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.d.ts +25 -0
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/BankFeedIntegrity.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.d.ts +7 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Base.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.d.ts +6 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js +15 -0
- package/dist/mjs/Treasury/Snapshot/Check/Checks.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/ExternalReconciliation.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/InternalReconciliation.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.d.ts +24 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/LedgerIntegrity.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.d.ts +9 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/Overdraft.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.d.ts +5 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js +13 -0
- package/dist/mjs/Treasury/Snapshot/Check/Result.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.d.ts +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/TransactionMatch.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.d.ts +7 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js +2 -0
- package/dist/mjs/Treasury/Snapshot/Check/UnidentifiedFunds.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.d.ts +21 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.js +8 -0
- package/dist/mjs/Treasury/Snapshot/Check/index.js.map +1 -0
- package/dist/mjs/Treasury/Snapshot/Fiat.d.ts +0 -2
- package/dist/mjs/Treasury/Snapshot/index.d.ts +6 -8
- package/dist/mjs/Treasury/Snapshot/index.js +2 -27
- package/dist/mjs/Treasury/Snapshot/index.js.map +1 -1
- package/package.json +1 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LedgerIntegrity.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/LedgerIntegrity.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Overdraft.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Overdraft.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Result = void 0;
|
|
4
|
+
var Result;
|
|
5
|
+
(function (Result) {
|
|
6
|
+
Result.precedence = {
|
|
7
|
+
failed: 3,
|
|
8
|
+
incomplete: 2,
|
|
9
|
+
passed: 1,
|
|
10
|
+
};
|
|
11
|
+
function aggregate(results) {
|
|
12
|
+
return results.reduce((r, e) => (Result.precedence[e] > Result.precedence[r] ? e : r), "passed");
|
|
13
|
+
}
|
|
14
|
+
Result.aggregate = aggregate;
|
|
15
|
+
})(Result || (exports.Result = Result = {}));
|
|
16
|
+
//# sourceMappingURL=Result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Result.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/Result.ts"],"names":[],"mappings":";;;AACA,IAAiB,MAAM,CAStB;AATD,WAAiB,MAAM;IACT,iBAAU,GAA2B;QACjD,MAAM,EAAE,CAAC;QACT,UAAU,EAAE,CAAC;QACb,MAAM,EAAE,CAAC;KACT,CAAA;IACD,SAAgB,SAAS,CAAC,OAAiB;QAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,OAAA,UAAU,CAAC,CAAC,CAAC,GAAG,OAAA,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAA;IACnF,CAAC;IAFe,gBAAS,YAExB,CAAA;AACF,CAAC,EATgB,MAAM,sBAAN,MAAM,QAStB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionMatch.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/TransactionMatch.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnidentifiedFunds.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/UnidentifiedFunds.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BankFeedIntegrity as CheckBankFeedIntegrity } from "./BankFeedIntegrity";
|
|
2
|
+
import { Checks as CheckChecks } from "./Checks";
|
|
3
|
+
import { ExternalReconciliation as CheckExternalReconciliation } from "./ExternalReconciliation";
|
|
4
|
+
import { InternalReconciliation as CheckInternalReconciliation } from "./InternalReconciliation";
|
|
5
|
+
import { LedgerIntegrity as CheckLedgerIntegrity } from "./LedgerIntegrity";
|
|
6
|
+
import { Overdraft as CheckOverdraft } from "./Overdraft";
|
|
7
|
+
import { Result as CheckResult } from "./Result";
|
|
8
|
+
import { TransactionMatch as CheckTransactionMatch } from "./TransactionMatch";
|
|
9
|
+
import { UnidentifiedFunds as CheckUnidentifiedFunds } from "./UnidentifiedFunds";
|
|
10
|
+
export type Check = Check.BankFeedIntegrity | Check.ExternalReconciliation | Check.InternalReconciliation | Check.LedgerIntegrity | Check.Overdraft | Check.TransactionMatch | Check.UnidentifiedFunds;
|
|
11
|
+
export declare namespace Check {
|
|
12
|
+
export import Result = CheckResult;
|
|
13
|
+
export import Checks = CheckChecks;
|
|
14
|
+
type BankFeedIntegrity = CheckBankFeedIntegrity;
|
|
15
|
+
type ExternalReconciliation = CheckExternalReconciliation;
|
|
16
|
+
type InternalReconciliation = CheckInternalReconciliation;
|
|
17
|
+
type LedgerIntegrity = CheckLedgerIntegrity;
|
|
18
|
+
type Overdraft = CheckOverdraft;
|
|
19
|
+
type TransactionMatch = CheckTransactionMatch;
|
|
20
|
+
type UnidentifiedFunds = CheckUnidentifiedFunds;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Check = void 0;
|
|
4
|
+
const Checks_1 = require("./Checks");
|
|
5
|
+
const Result_1 = require("./Result");
|
|
6
|
+
var Check;
|
|
7
|
+
(function (Check) {
|
|
8
|
+
Check.Result = Result_1.Result;
|
|
9
|
+
Check.Checks = Checks_1.Checks;
|
|
10
|
+
})(Check || (exports.Check = Check = {}));
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../Treasury/Snapshot/Check/index.ts"],"names":[],"mappings":";;;AACA,qCAAgD;AAKhD,qCAAgD;AAYhD,IAAiB,KAAK,CAUrB;AAVD,WAAiB,KAAK;IACP,YAAM,GAAG,eAAW,CAAA;IACpB,YAAM,GAAG,eAAW,CAAA;AAQnC,CAAC,EAVgB,KAAK,qBAAL,KAAK,QAUrB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { Supplier } from "../../Supplier";
|
|
3
|
-
import { Warning } from "../../Warning";
|
|
4
3
|
import { Balance } from "../Balance";
|
|
5
4
|
export interface Fiat {
|
|
6
5
|
supplier: Supplier;
|
|
@@ -8,7 +7,6 @@ export interface Fiat {
|
|
|
8
7
|
timestamp: isoly.DateTime;
|
|
9
8
|
type: "safeguarded" | "unsafe" | "other" | "buffer";
|
|
10
9
|
balances: Balance;
|
|
11
|
-
warnings?: Warning.Snapshot[];
|
|
12
10
|
conditions?: {
|
|
13
11
|
minimum?: Balance;
|
|
14
12
|
};
|
|
@@ -4,34 +4,32 @@ import { Supplier } from "../../Supplier";
|
|
|
4
4
|
import { Transaction } from "../../Transaction";
|
|
5
5
|
import { Warning } from "../../Warning";
|
|
6
6
|
import { Account as SnapshotAccount } from "./Account";
|
|
7
|
+
import { Check as SnapshotCheck } from "./Check";
|
|
7
8
|
import { Emoney as SnapshotEmoney } from "./Emoney";
|
|
8
9
|
import { Fiat as SnapshotFiat } from "./Fiat";
|
|
9
10
|
import { funding as snapshotFunding } from "./funding";
|
|
10
11
|
import { Reconciliation as SnapshotReconciliation } from "./Reconciliation";
|
|
11
12
|
export interface Snapshot {
|
|
12
|
-
warnings: Warning.Snapshot[];
|
|
13
13
|
emoney: Balance.Extended & {
|
|
14
14
|
total?: number;
|
|
15
|
-
reconciliation?: Snapshot.Reconciliation;
|
|
16
15
|
};
|
|
16
|
+
created: isoly.DateTime;
|
|
17
17
|
currency: isoly.Currency;
|
|
18
18
|
supplier: Supplier;
|
|
19
19
|
fiat: {
|
|
20
|
-
safe: number;
|
|
21
|
-
unsafe: number;
|
|
22
20
|
total: number;
|
|
23
|
-
other: number;
|
|
24
|
-
buffer: number;
|
|
25
21
|
accounts: Snapshot.Account[];
|
|
26
22
|
};
|
|
27
23
|
notes: Transaction.Note[];
|
|
24
|
+
checks: Snapshot.Check[];
|
|
25
|
+
result: Snapshot.Check.Result;
|
|
26
|
+
warnings?: Warning.Snapshot[];
|
|
28
27
|
}
|
|
29
28
|
export declare namespace Snapshot {
|
|
30
29
|
export import funding = snapshotFunding;
|
|
30
|
+
export import Check = SnapshotCheck;
|
|
31
31
|
type Reconciliation = SnapshotReconciliation;
|
|
32
32
|
type Emoney = SnapshotEmoney;
|
|
33
33
|
type Fiat = SnapshotFiat;
|
|
34
34
|
export import Account = SnapshotAccount;
|
|
35
|
-
function validate(snapshot: Snapshot): boolean;
|
|
36
|
-
const type: import("isly/dist/cjs/object").IslyObject<Snapshot, object>;
|
|
37
35
|
}
|
|
@@ -1,38 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Snapshot = void 0;
|
|
4
|
-
const isoly_1 = require("isoly");
|
|
5
|
-
const isly_1 = require("isly");
|
|
6
|
-
const Balance_1 = require("../../Balance");
|
|
7
|
-
const Supplier_1 = require("../../Supplier");
|
|
8
|
-
const Transaction_1 = require("../../Transaction");
|
|
9
|
-
const Warning_1 = require("../../Warning");
|
|
10
4
|
const Account_1 = require("./Account");
|
|
5
|
+
const Check_1 = require("./Check");
|
|
11
6
|
const funding_1 = require("./funding");
|
|
12
7
|
var Snapshot;
|
|
13
8
|
(function (Snapshot) {
|
|
14
9
|
Snapshot.funding = funding_1.funding;
|
|
10
|
+
Snapshot.Check = Check_1.Check;
|
|
15
11
|
Snapshot.Account = Account_1.Account;
|
|
16
|
-
function validate(snapshot) {
|
|
17
|
-
const issuable = snapshot.fiat.total;
|
|
18
|
-
const actual = snapshot.emoney.actual ?? 0;
|
|
19
|
-
return issuable == actual;
|
|
20
|
-
}
|
|
21
|
-
Snapshot.validate = validate;
|
|
22
|
-
Snapshot.type = isly_1.isly.object({
|
|
23
|
-
warnings: Warning_1.Warning.Snapshot.type.array(),
|
|
24
|
-
emoney: Balance_1.Balance.Extended,
|
|
25
|
-
currency: isly_1.isly.fromIs("currency", isoly_1.isoly.Currency.is),
|
|
26
|
-
supplier: Supplier_1.Supplier.type,
|
|
27
|
-
fiat: isly_1.isly.object({
|
|
28
|
-
safe: isly_1.isly.number(),
|
|
29
|
-
unsafe: isly_1.isly.number(),
|
|
30
|
-
total: isly_1.isly.number(),
|
|
31
|
-
other: isly_1.isly.number(),
|
|
32
|
-
buffer: isly_1.isly.number(),
|
|
33
|
-
accounts: Snapshot.Account.type.array(),
|
|
34
|
-
}),
|
|
35
|
-
notes: Transaction_1.Transaction.Note.type.array(),
|
|
36
|
-
});
|
|
37
12
|
})(Snapshot || (exports.Snapshot = Snapshot = {}));
|
|
38
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Treasury/Snapshot/index.ts"],"names":[],"mappings":";;;AAKA,uCAAsD;AACtD,mCAAgD;AAGhD,uCAAsD;AAiBtD,IAAiB,QAAQ,CAOxB;AAPD,WAAiB,QAAQ;IACV,gBAAO,GAAG,iBAAe,CAAA;IACzB,cAAK,GAAG,aAAa,CAAA;IAIrB,gBAAO,GAAG,iBAAe,CAAA;AACxC,CAAC,EAPgB,QAAQ,wBAAR,QAAQ,QAOxB"}
|
package/dist/mjs/Amount.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { isly as isly2 } from "isly2";
|
|
4
3
|
import { Amounts } from "./Amounts";
|
|
5
4
|
export type Amount = [isoly.Currency, number];
|
|
6
5
|
export declare namespace Amount {
|
|
7
6
|
function toAmounts(amount?: Amount): Amounts;
|
|
8
7
|
const type: isly.Type<Amount>;
|
|
9
|
-
const type2: isly2.Tuple<Amount>;
|
|
10
8
|
}
|
package/dist/mjs/Amount.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isoly as isoly2 } from "isoly2";
|
|
3
2
|
import { isly } from "isly";
|
|
4
|
-
import { isly as isly2 } from "isly2";
|
|
5
3
|
export var Amount;
|
|
6
4
|
(function (Amount) {
|
|
7
5
|
function toAmounts(amount) {
|
|
@@ -9,6 +7,5 @@ export var Amount;
|
|
|
9
7
|
}
|
|
10
8
|
Amount.toAmounts = toAmounts;
|
|
11
9
|
Amount.type = isly.tuple(isly.string(isoly.Currency.values), isly.number());
|
|
12
|
-
Amount.type2 = isly2.tuple(isoly2.Currency.type, isly2.number().rename("Amount").describe("Amount in a specified currency."));
|
|
13
10
|
})(Amount || (Amount = {}));
|
|
14
11
|
//# sourceMappingURL=Amount.js.map
|
package/dist/mjs/Amount.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Amount.js","sourceRoot":"","sources":["../../Amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Amount.js","sourceRoot":"","sources":["../../Amount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAK3B,MAAM,KAAW,MAAM,CAKtB;AALD,WAAiB,MAAM;IACtB,SAAgB,SAAS,CAAC,MAAe;QACxC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAS,CAAC,MAAM,CAAC,CAAC,CAAA;IAC3D,CAAC;IAFe,gBAAS,YAExB,CAAA;IACY,WAAI,GAAG,IAAI,CAAC,KAAK,CAAS,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;AAC1F,CAAC,EALgB,MAAM,KAAN,MAAM,QAKtB"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isly as isly2 } from "isly2";
|
|
2
1
|
import { Amount } from "../Amount";
|
|
3
2
|
import { Meta } from "./Meta";
|
|
4
3
|
export type Changeable = {
|
|
@@ -7,5 +6,4 @@ export type Changeable = {
|
|
|
7
6
|
};
|
|
8
7
|
export declare namespace Changeable {
|
|
9
8
|
const type: import("isly/dist/cjs/object").IslyObject<Changeable, object>;
|
|
10
|
-
const type2: isly2.Object<Changeable>;
|
|
11
9
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isoly as isoly2 } from "isoly2";
|
|
3
2
|
import { isly } from "isly";
|
|
4
|
-
import { isly as isly2 } from "isly2";
|
|
5
3
|
import { Meta } from "./Meta";
|
|
6
4
|
export var Changeable;
|
|
7
5
|
(function (Changeable) {
|
|
@@ -9,16 +7,5 @@ export var Changeable;
|
|
|
9
7
|
limit: isly.tuple(isly.fromIs("isoly.Currency", isoly.Currency.is), isly.number()).optional(),
|
|
10
8
|
meta: isly.fromIs("Card.Meta", Meta.is).optional(),
|
|
11
9
|
});
|
|
12
|
-
Changeable.type2 = isly2
|
|
13
|
-
.object({
|
|
14
|
-
limit: isly2
|
|
15
|
-
.tuple(isoly2.Currency.type, isly2.number())
|
|
16
|
-
.optional()
|
|
17
|
-
.rename("Limit")
|
|
18
|
-
.describe("The new limit of the card."),
|
|
19
|
-
meta: isly2.from("Card.Meta", Meta.is).optional().rename("Meta").describe("The new meta data of the card."),
|
|
20
|
-
})
|
|
21
|
-
.rename("Changeable")
|
|
22
|
-
.describe("Changeable card properties.");
|
|
23
10
|
})(Changeable || (Changeable = {}));
|
|
24
11
|
//# sourceMappingURL=Changeable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Changeable.js","sourceRoot":"","sources":["../../../Card/Changeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Changeable.js","sourceRoot":"","sources":["../../../Card/Changeable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAO7B,MAAM,KAAW,UAAU,CAK1B;AALD,WAAiB,UAAU;IACb,eAAI,GAAG,IAAI,CAAC,MAAM,CAAa;QAC3C,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QAC7F,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC,CAAA;AACH,CAAC,EALgB,UAAU,KAAV,UAAU,QAK1B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Amount } from "../Amount";
|
|
4
3
|
import type { Rule } from "../Rule";
|
|
5
4
|
import { Expiry } from "./Expiry";
|
|
@@ -24,5 +23,4 @@ export interface Creatable {
|
|
|
24
23
|
}
|
|
25
24
|
export declare namespace Creatable {
|
|
26
25
|
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
27
|
-
const type2: isly2.Object<Creatable>;
|
|
28
26
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isoly as isoly2 } from "isoly2";
|
|
3
2
|
import { isly } from "isly";
|
|
4
|
-
import { isly as isly2 } from "isly2";
|
|
5
3
|
import { type as ruleType } from "../Rule/type";
|
|
6
4
|
import { Expiry } from "./Expiry";
|
|
7
5
|
import { Meta } from "./Meta";
|
|
@@ -20,31 +18,5 @@ export var Creatable;
|
|
|
20
18
|
key: isly.string().optional(),
|
|
21
19
|
restricted: isly.object({ to: Restriction.type.optional() }).optional(),
|
|
22
20
|
});
|
|
23
|
-
Creatable.type2 = isly2.object({
|
|
24
|
-
account: isly2.string().rename("Account").describe("The account id the card was created on."),
|
|
25
|
-
number: isly2.string().optional().rename("Number").describe("The card identifier of the user of the api."),
|
|
26
|
-
preset: Preset.type2,
|
|
27
|
-
details: isly2
|
|
28
|
-
.object({ expiry: Expiry.type2, holder: isly2.string() })
|
|
29
|
-
.rename("Details")
|
|
30
|
-
.describe("The card details, the information that will be displayed on the card."),
|
|
31
|
-
limit: isly2
|
|
32
|
-
.tuple(isoly2.Currency.type, isly2.number().rename("Amount").describe("Amount in a specified currency."))
|
|
33
|
-
.rename("Limit")
|
|
34
|
-
.describe("Maximum amount that can be spent on the card."),
|
|
35
|
-
rules: isly2
|
|
36
|
-
.from("Rule", ruleType.is)
|
|
37
|
-
.array()
|
|
38
|
-
.optional()
|
|
39
|
-
.rename("Rules")
|
|
40
|
-
.describe("Card rules that applies to authorizations made with the card."),
|
|
41
|
-
meta: isly2.from("Meta", Meta.is).optional(),
|
|
42
|
-
key: isly2.string().optional(),
|
|
43
|
-
restricted: isly2
|
|
44
|
-
.object({ to: Restriction.type2.optional() })
|
|
45
|
-
.optional()
|
|
46
|
-
.rename("Restrictions")
|
|
47
|
-
.describe("Set of restrictions that apply to the card."),
|
|
48
|
-
});
|
|
49
21
|
})(Creatable || (Creatable = {}));
|
|
50
22
|
//# sourceMappingURL=Creatable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Card/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../Card/Creatable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAiB3C,MAAM,KAAW,SAAS,CAYzB;AAZD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,MAAM,EAAE,MAAM,CAAC,IAAI;QACnB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;QACpE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAClF,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAClC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClD,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAoC,EAAE,EAAE,EAAE,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE;KAC1G,CAAC,CAAA;AACH,CAAC,EAZgB,SAAS,KAAT,SAAS,QAYzB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { isly as isly2 } from "isly2";
|
|
4
3
|
declare const year: readonly [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40];
|
|
5
4
|
type Year = (typeof year)[number];
|
|
6
5
|
declare const month: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
@@ -8,7 +7,6 @@ type Month = (typeof month)[number];
|
|
|
8
7
|
export type Expiry = [Year, Month];
|
|
9
8
|
export declare namespace Expiry {
|
|
10
9
|
const type: isly.Type<Expiry>;
|
|
11
|
-
const type2: isly2.Tuple<Expiry>;
|
|
12
10
|
function toDateTime(expiry: Expiry): isoly.DateTime;
|
|
13
11
|
function isExpired(expiry: Expiry): boolean;
|
|
14
12
|
}
|
package/dist/mjs/Card/Expiry.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { isly as isly2 } from "isly2";
|
|
4
3
|
const year = [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40];
|
|
5
4
|
const month = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
6
5
|
export var Expiry;
|
|
7
6
|
(function (Expiry) {
|
|
8
7
|
Expiry.type = isly.tuple(isly.number([...year]), isly.number([...month]));
|
|
9
|
-
Expiry.type2 = isly2
|
|
10
|
-
.tuple(isly2
|
|
11
|
-
.number("value", ...year)
|
|
12
|
-
.rename("Year")
|
|
13
|
-
.describe("Year of expiry."), isly2
|
|
14
|
-
.number("value", ...month)
|
|
15
|
-
.rename("Month")
|
|
16
|
-
.describe("Month of expiry."))
|
|
17
|
-
.rename("Expiry")
|
|
18
|
-
.describe("The year and month the card is valid ([yy, mm]).");
|
|
19
8
|
function toDateTime(expiry) {
|
|
20
9
|
return isoly.DateTime.nextMonth("20" + expiry[0].toString() + "-" + expiry[1].toString().padStart(2, "0") + "-01T00:00:01.000Z");
|
|
21
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expiry.js","sourceRoot":"","sources":["../../../Card/Expiry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Expiry.js","sourceRoot":"","sources":["../../../Card/Expiry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAU,CAAA;AAG9F,MAAM,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAU,CAAA;AAI9D,MAAM,KAAW,MAAM,CAetB;AAfD,WAAiB,MAAM;IACT,WAAI,GAAG,IAAI,CAAC,KAAK,CAAS,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;IACvF,SAAgB,UAAU,CAAC,MAAc;QACxC,OAAO,KAAK,CAAC,QAAQ,CAAC,SAAS,CAC9B,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAC/F,CAAA;IACF,CAAC;IAJe,iBAAU,aAIzB,CAAA;IACD,SAAgB,SAAS,CAAC,MAAc;QACvC,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAA;QAChC,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACnC,OAAO,CACN,UAAU,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC;YACxC,CAAC,UAAU,IAAI,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CACvF,CAAA;IACF,CAAC;IAPe,gBAAS,YAOxB,CAAA;AACF,CAAC,EAfgB,MAAM,KAAN,MAAM,QAetB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
export interface Authorization {
|
|
4
3
|
type: "authorization";
|
|
5
4
|
id: string;
|
|
@@ -11,5 +10,4 @@ export declare namespace Authorization {
|
|
|
11
10
|
const statuses: readonly ["created", "confirmed", "refunded", "captured", "cancelled"];
|
|
12
11
|
type Status = (typeof statuses)[number];
|
|
13
12
|
const type: import("isly/dist/cjs/object").IslyObject<Authorization, object>;
|
|
14
|
-
const type2: isly2.Object<Authorization>;
|
|
15
13
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isoly as isoly2 } from "isoly2";
|
|
3
2
|
import { isly } from "isly";
|
|
4
|
-
import { isly as isly2 } from "isly2";
|
|
5
3
|
export var Authorization;
|
|
6
4
|
(function (Authorization) {
|
|
7
5
|
Authorization.statuses = ["created", "confirmed", "refunded", "captured", "cancelled"];
|
|
@@ -12,15 +10,5 @@ export var Authorization;
|
|
|
12
10
|
reason: isly.string().optional(),
|
|
13
11
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
14
12
|
});
|
|
15
|
-
Authorization.type2 = isly2.object({
|
|
16
|
-
type: isly2.string("value", "authorization").rename("Operation.Type").describe("Type of operation."),
|
|
17
|
-
id: isly2.string().rename("Id").describe("The id of the operation."),
|
|
18
|
-
status: isly2
|
|
19
|
-
.string("value", ...Authorization.statuses)
|
|
20
|
-
.rename("Status")
|
|
21
|
-
.describe("The updated status of the operation."),
|
|
22
|
-
reason: isly2.string().optional().rename("Reason").describe("The reason for the status change."),
|
|
23
|
-
created: isoly2.DateTime.type.describe("The time of the operation."),
|
|
24
|
-
});
|
|
25
13
|
})(Authorization || (Authorization = {}));
|
|
26
14
|
//# sourceMappingURL=Authorization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Authorization.js","sourceRoot":"","sources":["../../../../Card/Operation/Authorization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Authorization.js","sourceRoot":"","sources":["../../../../Card/Operation/Authorization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,MAAM,KAAW,aAAa,CAU7B;AAVD,WAAiB,aAAa;IAChB,sBAAQ,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAU,CAAA;IAEjF,kBAAI,GAAG,IAAI,CAAC,MAAM,CAAgB;QAC9C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC;QAClC,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE;QACjB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,cAAA,QAAQ,CAAC;QAC7B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;AACH,CAAC,EAVgB,aAAa,KAAb,aAAa,QAU7B"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Changeable } from "../Changeable";
|
|
4
3
|
export interface Card {
|
|
5
4
|
type: "card";
|
|
@@ -11,5 +10,4 @@ export declare namespace Card {
|
|
|
11
10
|
const statuses: readonly ["created", "changed", "cancelled"];
|
|
12
11
|
type Status = (typeof statuses)[number];
|
|
13
12
|
const type: import("isly/dist/cjs/object").IslyObject<Card, object>;
|
|
14
|
-
const type2: isly2.Object<Card>;
|
|
15
13
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
-
import { isoly as isoly2 } from "isoly2";
|
|
3
2
|
import { isly } from "isly";
|
|
4
|
-
import { isly as isly2 } from "isly2";
|
|
5
3
|
import { Changeable } from "../Changeable";
|
|
6
4
|
export var Card;
|
|
7
5
|
(function (Card) {
|
|
@@ -12,17 +10,5 @@ export var Card;
|
|
|
12
10
|
from: Changeable.type.optional(),
|
|
13
11
|
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
14
12
|
});
|
|
15
|
-
Card.type2 = isly2
|
|
16
|
-
.object({
|
|
17
|
-
type: isly2.string("value", "card").rename("Type").describe("Type of operation."),
|
|
18
|
-
status: isly2
|
|
19
|
-
.string("value", ...Card.statuses)
|
|
20
|
-
.rename("Status")
|
|
21
|
-
.describe("The updated status of the card."),
|
|
22
|
-
from: Changeable.type2.optional(),
|
|
23
|
-
created: isoly2.DateTime.type.rename("Created").describe("The time of the operation."),
|
|
24
|
-
})
|
|
25
|
-
.describe("A card operation.")
|
|
26
|
-
.rename("Operation.Card");
|
|
27
13
|
})(Card || (Card = {}));
|
|
28
14
|
//# sourceMappingURL=Card.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../Card/Operation/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../Card/Operation/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAS1C,MAAM,KAAW,IAAI,CASpB;AATD,WAAiB,IAAI;IACP,aAAQ,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAU,CAAA;IAEvD,SAAI,GAAG,IAAI,CAAC,MAAM,CAAO;QACrC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QACzB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,KAAA,QAAQ,CAAC;QAC7B,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;KACzD,CAAC,CAAA;AACH,CAAC,EATgB,IAAI,KAAJ,IAAI,QASpB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Authorization } from "../../Authorization";
|
|
4
3
|
import { Entry } from "../../Settlement/Entry";
|
|
5
4
|
import { Authorization as OperationAuthorization } from "./Authorization";
|
|
@@ -9,5 +8,4 @@ export declare namespace Operation {
|
|
|
9
8
|
function fromAuthorization(authorization: Authorization, status: OperationAuthorization.Status): Operation;
|
|
10
9
|
function fromEntry(entry: Entry): Operation | undefined;
|
|
11
10
|
const type: isly.Type<Card | OperationAuthorization>;
|
|
12
|
-
const type2: isly2.Union<Operation>;
|
|
13
11
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
2
|
import { isly } from "isly";
|
|
3
|
-
import { isly as isly2 } from "isly2";
|
|
4
3
|
import { Authorization as OperationAuthorization } from "./Authorization";
|
|
5
4
|
import { Card } from "./Card";
|
|
6
5
|
export var Operation;
|
|
@@ -26,9 +25,5 @@ export var Operation;
|
|
|
26
25
|
}
|
|
27
26
|
Operation.fromEntry = fromEntry;
|
|
28
27
|
Operation.type = isly.union(Card.type, OperationAuthorization.type);
|
|
29
|
-
Operation.type2 = isly2
|
|
30
|
-
.union(Card.type2, OperationAuthorization.type2)
|
|
31
|
-
.rename("Operation")
|
|
32
|
-
.describe("An operation performed on a card.");
|
|
33
28
|
})(Operation || (Operation = {}));
|
|
34
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Card/Operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAG3B,OAAO,EAAE,aAAa,IAAI,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAI7B,MAAM,KAAW,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACzB,SAAgB,iBAAiB,CAAC,aAA4B,EAAE,MAAqC;QACpG,OAAO;YACN,IAAI,EAAE,eAAe;YACrB,EAAE,EAAE,aAAa,EAAE,EAAE,IAAI,aAAa,CAAC,WAAW,EAAE,EAAE,IAAI,SAAS;YACnE,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;SAC7B,CAAA;IACF,CAAC;IAPe,2BAAiB,oBAOhC,CAAA;IACD,SAAgB,SAAS,CAAC,KAAY;QACrC,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC9B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC;gBACA,IAAI,EAAE,eAAe;gBACrB,EAAE,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE;gBACxB,MAAM,EAAE,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU;gBACzD,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE;aAC7B,CAAA;IACJ,CAAC;IATe,mBAAS,YASxB,CAAA;IACY,cAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,sBAAsB,CAAC,IAAI,CAAC,CAAA;AACvE,CAAC,EApBgB,SAAS,KAAT,SAAS,QAoBzB"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
import { Realm } from "../Realm";
|
|
4
3
|
import { Stack } from "./Stack";
|
|
5
4
|
export type Preset = (typeof Preset.names)[number];
|
|
6
5
|
export declare namespace Preset {
|
|
7
6
|
const names: readonly ["p2p-diners-175", "p2p-diners-200", "p2p-mc-200", "p2p-visa-bid-115", "p2p-visa-bp-140", "p2p-visa-cdd-185", "p2p-visa-idx-140", "p2p-visa-idx-160", "p2p-visa-idx-200", "test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200", "test-diners-175"];
|
|
8
7
|
const type: isly.Type<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200" | "test-diners-175">;
|
|
9
|
-
const type2: isly2.String<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200" | "test-diners-175">;
|
|
10
8
|
const forRealm: Record<Realm, Preset[]>;
|
|
11
9
|
const presets: Record<Preset, Stack>;
|
|
12
10
|
}
|
package/dist/mjs/Card/Preset.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
-
import { isly as isly2 } from "isly2";
|
|
3
2
|
export var Preset;
|
|
4
3
|
(function (Preset) {
|
|
5
4
|
Preset.names = [
|
|
@@ -20,10 +19,6 @@ export var Preset;
|
|
|
20
19
|
"test-diners-175",
|
|
21
20
|
];
|
|
22
21
|
Preset.type = isly.string(Preset.names);
|
|
23
|
-
Preset.type2 = isly2
|
|
24
|
-
.string("value", ...Preset.names)
|
|
25
|
-
.rename("Preset")
|
|
26
|
-
.describe("Card configuration (iin/scheme/interchange).");
|
|
27
22
|
Preset.forRealm = {
|
|
28
23
|
test: ["test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200", "test-diners-175"],
|
|
29
24
|
uk: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAO3B,MAAM,KAAW,MAAM,CAmDtB;AAnDD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;QACnB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,eAAQ,GAA4B;QAChD,IAAI,EAAE,CAAC,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC;QAChH,EAAE,EAAE;YACH,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,kBAAkB;YAClB,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;YAClB,kBAAkB;SAClB;QACD,GAAG,EAAE,EAAE;KACP,CAAA;IACY,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;QACvC,iBAAiB,EAAE,oBAAoB;KACvC,CAAA;AACF,CAAC,EAnDgB,MAAM,KAAN,MAAM,QAmDtB"}
|