@pax2pay/model-banking 0.1.322 → 0.1.324
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/Authorization/Status.ts +12 -36
- package/Authorization/index.ts +8 -23
- package/Card/Preset.ts +1 -1
- package/Card/Stack.ts +1 -1
- package/dist/Authorization/Status.d.ts +4 -9
- package/dist/Authorization/Status.js +9 -23
- package/dist/Authorization/Status.js.map +1 -1
- package/dist/Authorization/index.d.ts +5 -9
- package/dist/Authorization/index.js +9 -22
- package/dist/Authorization/index.js.map +1 -1
- package/dist/Card/Preset.js +1 -1
- package/dist/Card/Preset.js.map +1 -1
- package/dist/Card/Stack.d.ts +3 -3
- package/dist/Card/Stack.js +1 -1
- package/dist/Card/Stack.js.map +1 -1
- package/package.json +1 -1
package/Authorization/Status.ts
CHANGED
|
@@ -5,46 +5,22 @@ import { Transaction } from "../Transaction"
|
|
|
5
5
|
export type Status = "approved" | Status.Failed
|
|
6
6
|
|
|
7
7
|
export namespace Status {
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
reason: string | string[]
|
|
11
|
-
error?: gracely.Error | Transaction.Note[]
|
|
12
|
-
}
|
|
8
|
+
export const failures = [...Transaction.Status.reasons, "card not found", "account not found", "other"] as const
|
|
9
|
+
export type Failed = typeof failures[number]
|
|
13
10
|
export namespace Failed {
|
|
14
|
-
export function from(error: gracely.Error | Transaction.
|
|
11
|
+
export function from(error: gracely.Error | Transaction.Status.Reason): Failed {
|
|
15
12
|
let result: Status
|
|
16
13
|
if (gracely.Error.is(error)) {
|
|
17
14
|
if (error.error?.includes("Card with id"))
|
|
18
|
-
result =
|
|
19
|
-
else if (error.error?.includes("
|
|
20
|
-
result =
|
|
21
|
-
|
|
22
|
-
result =
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
else {
|
|
27
|
-
const reasons: string[] = error.reduce(
|
|
28
|
-
(a: string[], c: Transaction.Note) => [...a, `${c.created} ${c.author}: ${c.text ?? ""}`],
|
|
29
|
-
[]
|
|
30
|
-
)
|
|
31
|
-
result = {
|
|
32
|
-
code: "62", //Restricted card: "This means that the card that you processed is restricted to where it can be used.
|
|
33
|
-
//The restricted card is only allowed to be used for certain types of businesses or purchases."
|
|
34
|
-
reason: ["Restricted card.", ...reasons],
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return { ...result, error }
|
|
15
|
+
result = "card not found"
|
|
16
|
+
else if (error.error?.includes("Failed to reach account"))
|
|
17
|
+
result = "account not found"
|
|
18
|
+
else
|
|
19
|
+
result = "other"
|
|
20
|
+
} else
|
|
21
|
+
result = error
|
|
22
|
+
return result
|
|
38
23
|
}
|
|
39
24
|
}
|
|
40
|
-
export const type = isly.union(
|
|
41
|
-
isly.string("approved"),
|
|
42
|
-
isly.object<Status.Failed>({
|
|
43
|
-
code: isly.string(),
|
|
44
|
-
reason: isly.union(isly.string(), isly.string().array()),
|
|
45
|
-
error: isly.union(Transaction.Note.type.array(), isly.fromIs("gracely.Error", gracely.Error.is)).optional(),
|
|
46
|
-
})
|
|
47
|
-
)
|
|
48
|
-
export const is = type.is
|
|
49
|
-
export const flaw = type.flaw
|
|
25
|
+
export const type = isly.union(isly.string("approved"), isly.string<Failed>(failures))
|
|
50
26
|
}
|
package/Authorization/index.ts
CHANGED
|
@@ -10,12 +10,12 @@ import { Merchant } from "../Merchant"
|
|
|
10
10
|
import { Transaction } from "../Transaction"
|
|
11
11
|
import { Creatable as AuthorizationCreatable } from "./Creatable"
|
|
12
12
|
import { Exchange as AuthorizationExchange } from "./Exchange"
|
|
13
|
-
import { Status } from "./Status"
|
|
13
|
+
import { Status as AuthorizationStatus } from "./Status"
|
|
14
14
|
|
|
15
15
|
export interface Authorization {
|
|
16
16
|
id: cryptly.Identifier
|
|
17
17
|
created: isoly.DateTime
|
|
18
|
-
status: Status
|
|
18
|
+
status: Authorization.Status
|
|
19
19
|
reference: string
|
|
20
20
|
approvalCode?: string
|
|
21
21
|
amount: Amount
|
|
@@ -37,10 +37,9 @@ export interface Authorization {
|
|
|
37
37
|
description: string
|
|
38
38
|
}
|
|
39
39
|
export namespace Authorization {
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export const Exchange = AuthorizationExchange
|
|
40
|
+
export import Creatable = AuthorizationCreatable
|
|
41
|
+
export import Exchange = AuthorizationExchange
|
|
42
|
+
export import Status = AuthorizationStatus
|
|
44
43
|
export const type = isly.object<Authorization>({
|
|
45
44
|
id: isly.fromIs("Authorization.id", cryptly.Identifier.is),
|
|
46
45
|
status: Status.type,
|
|
@@ -67,8 +66,6 @@ export namespace Authorization {
|
|
|
67
66
|
approvalCode: isly.string().optional(),
|
|
68
67
|
description: isly.string(),
|
|
69
68
|
})
|
|
70
|
-
export const is = type.is
|
|
71
|
-
export const flaw = type.flaw
|
|
72
69
|
export function fromCreatable(
|
|
73
70
|
creatable: Creatable,
|
|
74
71
|
card: Card | gracely.Error,
|
|
@@ -97,10 +94,10 @@ export namespace Authorization {
|
|
|
97
94
|
...partial,
|
|
98
95
|
card: { id: card.id, iin: card.details.iin, last4: card.details.last4, token: card.details.token },
|
|
99
96
|
}
|
|
100
|
-
else if (transaction.status
|
|
97
|
+
else if (!Transaction.Status.Success.is(transaction.status))
|
|
101
98
|
result = {
|
|
102
|
-
id:
|
|
103
|
-
status: Status.Failed.from(transaction.
|
|
99
|
+
id: transaction.id,
|
|
100
|
+
status: Status.Failed.from(transaction.status[1]),
|
|
104
101
|
...partial,
|
|
105
102
|
card: { id: card.id, iin: card.details.iin, last4: card.details.last4, token: card.details.token },
|
|
106
103
|
}
|
|
@@ -115,16 +112,4 @@ export namespace Authorization {
|
|
|
115
112
|
}
|
|
116
113
|
return result
|
|
117
114
|
}
|
|
118
|
-
export function toTransaction(authorization: Authorization): Transaction.Creatable {
|
|
119
|
-
return {
|
|
120
|
-
amount: authorization.amount[1],
|
|
121
|
-
currency: authorization.amount[0],
|
|
122
|
-
description: authorization.description,
|
|
123
|
-
counterpart: {
|
|
124
|
-
type: "card",
|
|
125
|
-
acquirer: authorization.acquirer,
|
|
126
|
-
merchant: authorization.merchant,
|
|
127
|
-
},
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
115
|
}
|
package/Card/Preset.ts
CHANGED
|
@@ -19,7 +19,7 @@ export namespace Preset {
|
|
|
19
19
|
export const flaw = type.flaw
|
|
20
20
|
export const presets: Record<Preset, Stack> = {
|
|
21
21
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
22
|
-
"test-diners-200": "
|
|
22
|
+
"test-diners-200": "testUK-diners-dpg",
|
|
23
23
|
"test-mc-200": "testUK-marqeta",
|
|
24
24
|
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
25
25
|
"test-pg-200": "test-paxgiro",
|
package/Card/Stack.ts
CHANGED
|
@@ -3,15 +3,10 @@ import { isly } from "isly";
|
|
|
3
3
|
import { Transaction } from "../Transaction";
|
|
4
4
|
export type Status = "approved" | Status.Failed;
|
|
5
5
|
export declare namespace Status {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
reason: string | string[];
|
|
9
|
-
error?: gracely.Error | Transaction.Note[];
|
|
10
|
-
}
|
|
6
|
+
const failures: readonly ["insufficient funds", "cancelled card", "card expired", "exceeds limit", "invalid csc", "system failure", "invalid request", "expired", "denied", "card not found", "account not found", "other"];
|
|
7
|
+
type Failed = typeof failures[number];
|
|
11
8
|
namespace Failed {
|
|
12
|
-
function from(error: gracely.Error | Transaction.
|
|
9
|
+
function from(error: gracely.Error | Transaction.Status.Reason): Failed;
|
|
13
10
|
}
|
|
14
|
-
const type: isly.Type<"approved" |
|
|
15
|
-
const is: isly.Type.IsFunction<"approved" | Failed>;
|
|
16
|
-
const flaw: isly.Type.FlawFunction;
|
|
11
|
+
const type: isly.Type<"denied" | "other" | "approved" | "insufficient funds" | "cancelled card" | "card expired" | "exceeds limit" | "invalid csc" | "system failure" | "invalid request" | "expired" | "card not found" | "account not found">;
|
|
17
12
|
}
|
|
@@ -3,39 +3,25 @@ import { isly } from "isly";
|
|
|
3
3
|
import { Transaction } from "../Transaction";
|
|
4
4
|
export var Status;
|
|
5
5
|
(function (Status) {
|
|
6
|
+
Status.failures = [...Transaction.Status.reasons, "card not found", "account not found", "other"];
|
|
6
7
|
let Failed;
|
|
7
8
|
(function (Failed) {
|
|
8
9
|
function from(error) {
|
|
9
10
|
let result;
|
|
10
11
|
if (gracely.Error.is(error)) {
|
|
11
12
|
if (error.error?.includes("Card with id"))
|
|
12
|
-
result =
|
|
13
|
-
else if (error.error?.includes("
|
|
14
|
-
result =
|
|
15
|
-
}
|
|
16
|
-
else if (error.error?.includes("Failed to reach account")) {
|
|
17
|
-
result = { code: "78", reason: "Invalid/nonexistent account specified (general)" };
|
|
18
|
-
}
|
|
13
|
+
result = "card not found";
|
|
14
|
+
else if (error.error?.includes("Failed to reach account"))
|
|
15
|
+
result = "account not found";
|
|
19
16
|
else
|
|
20
|
-
result =
|
|
17
|
+
result = "other";
|
|
21
18
|
}
|
|
22
|
-
else
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
code: "62",
|
|
26
|
-
reason: ["Restricted card.", ...reasons],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
return { ...result, error };
|
|
19
|
+
else
|
|
20
|
+
result = error;
|
|
21
|
+
return result;
|
|
30
22
|
}
|
|
31
23
|
Failed.from = from;
|
|
32
24
|
})(Failed = Status.Failed || (Status.Failed = {}));
|
|
33
|
-
Status.type = isly.union(isly.string("approved"), isly.
|
|
34
|
-
code: isly.string(),
|
|
35
|
-
reason: isly.union(isly.string(), isly.string().array()),
|
|
36
|
-
error: isly.union(Transaction.Note.type.array(), isly.fromIs("gracely.Error", gracely.Error.is)).optional(),
|
|
37
|
-
}));
|
|
38
|
-
Status.is = Status.type.is;
|
|
39
|
-
Status.flaw = Status.type.flaw;
|
|
25
|
+
Status.type = isly.union(isly.string("approved"), isly.string(Status.failures));
|
|
40
26
|
})(Status || (Status = {}));
|
|
41
27
|
//# sourceMappingURL=Status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["Authorization/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI5C,MAAM,KAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"../","sources":["Authorization/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI5C,MAAM,KAAW,MAAM,CAmBtB;AAnBD,WAAiB,MAAM;IACT,eAAQ,GAAG,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,OAAO,CAAU,CAAA;IAEhH,IAAiB,MAAM,CActB;IAdD,WAAiB,MAAM;QACtB,SAAgB,IAAI,CAAC,KAAgD;YACpE,IAAI,MAAc,CAAA;YAClB,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC7B,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC;oBACxC,MAAM,GAAG,gBAAgB,CAAA;qBACrB,IAAI,KAAK,CAAC,KAAK,EAAE,QAAQ,CAAC,yBAAyB,CAAC;oBACxD,MAAM,GAAG,mBAAmB,CAAA;;oBAE5B,MAAM,GAAG,OAAO,CAAA;YAClB,CAAC;;gBACA,MAAM,GAAG,KAAK,CAAA;YACf,OAAO,MAAM,CAAA;QACd,CAAC;QAZe,WAAI,OAYnB,CAAA;IACF,CAAC,EAdgB,MAAM,GAAN,aAAM,KAAN,aAAM,QActB;IACY,WAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,CAAS,OAAA,QAAQ,CAAC,CAAC,CAAA;AACvF,CAAC,EAnBgB,MAAM,KAAN,MAAM,QAmBtB"}
|
|
@@ -9,11 +9,11 @@ import { Merchant } from "../Merchant";
|
|
|
9
9
|
import { Transaction } from "../Transaction";
|
|
10
10
|
import { Creatable as AuthorizationCreatable } from "./Creatable";
|
|
11
11
|
import { Exchange as AuthorizationExchange } from "./Exchange";
|
|
12
|
-
import { Status } from "./Status";
|
|
12
|
+
import { Status as AuthorizationStatus } from "./Status";
|
|
13
13
|
export interface Authorization {
|
|
14
14
|
id: cryptly.Identifier;
|
|
15
15
|
created: isoly.DateTime;
|
|
16
|
-
status: Status;
|
|
16
|
+
status: Authorization.Status;
|
|
17
17
|
reference: string;
|
|
18
18
|
approvalCode?: string;
|
|
19
19
|
amount: Amount;
|
|
@@ -35,13 +35,9 @@ export interface Authorization {
|
|
|
35
35
|
description: string;
|
|
36
36
|
}
|
|
37
37
|
export declare namespace Authorization {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const Exchange: typeof AuthorizationExchange;
|
|
38
|
+
export import Creatable = AuthorizationCreatable;
|
|
39
|
+
export import Exchange = AuthorizationExchange;
|
|
40
|
+
export import Status = AuthorizationStatus;
|
|
42
41
|
const type: isly.object.ExtendableType<Authorization>;
|
|
43
|
-
const is: isly.Type.IsFunction<Authorization>;
|
|
44
|
-
const flaw: isly.Type.FlawFunction;
|
|
45
42
|
function fromCreatable(creatable: Creatable, card: Card | gracely.Error, transaction: Transaction | gracely.Error): Authorization;
|
|
46
|
-
function toTransaction(authorization: Authorization): Transaction.Creatable;
|
|
47
43
|
}
|
|
@@ -5,16 +5,18 @@ import { isly } from "isly";
|
|
|
5
5
|
import { Acquirer } from "../Acquirer";
|
|
6
6
|
import { Identifier } from "../Identifier";
|
|
7
7
|
import { Merchant } from "../Merchant";
|
|
8
|
+
import { Transaction } from "../Transaction";
|
|
8
9
|
import { Creatable as AuthorizationCreatable } from "./Creatable";
|
|
9
10
|
import { Exchange as AuthorizationExchange } from "./Exchange";
|
|
10
|
-
import { Status } from "./Status";
|
|
11
|
+
import { Status as AuthorizationStatus } from "./Status";
|
|
11
12
|
export var Authorization;
|
|
12
13
|
(function (Authorization) {
|
|
13
14
|
Authorization.Creatable = AuthorizationCreatable;
|
|
14
15
|
Authorization.Exchange = AuthorizationExchange;
|
|
16
|
+
Authorization.Status = AuthorizationStatus;
|
|
15
17
|
Authorization.type = isly.object({
|
|
16
18
|
id: isly.fromIs("Authorization.id", cryptly.Identifier.is),
|
|
17
|
-
status: Status.type,
|
|
19
|
+
status: Authorization.Status.type,
|
|
18
20
|
transaction: isly
|
|
19
21
|
.object({
|
|
20
22
|
id: isly.string(),
|
|
@@ -38,8 +40,6 @@ export var Authorization;
|
|
|
38
40
|
approvalCode: isly.string().optional(),
|
|
39
41
|
description: isly.string(),
|
|
40
42
|
});
|
|
41
|
-
Authorization.is = Authorization.type.is;
|
|
42
|
-
Authorization.flaw = Authorization.type.flaw;
|
|
43
43
|
function fromCreatable(creatable, card, transaction) {
|
|
44
44
|
const partial = {
|
|
45
45
|
created: isoly.DateTime.now(),
|
|
@@ -53,21 +53,21 @@ export var Authorization;
|
|
|
53
53
|
if (gracely.Error.is(card))
|
|
54
54
|
result = {
|
|
55
55
|
id: Identifier.generate(),
|
|
56
|
-
status: Status.Failed.from(card),
|
|
56
|
+
status: Authorization.Status.Failed.from(card),
|
|
57
57
|
...partial,
|
|
58
58
|
card: { id: creatable.card },
|
|
59
59
|
};
|
|
60
60
|
else if (gracely.Error.is(transaction))
|
|
61
61
|
result = {
|
|
62
62
|
id: Identifier.generate(),
|
|
63
|
-
status: Status.Failed.from(transaction),
|
|
63
|
+
status: Authorization.Status.Failed.from(transaction),
|
|
64
64
|
...partial,
|
|
65
65
|
card: { id: card.id, iin: card.details.iin, last4: card.details.last4, token: card.details.token },
|
|
66
66
|
};
|
|
67
|
-
else if (transaction.status
|
|
67
|
+
else if (!Transaction.Status.Success.is(transaction.status))
|
|
68
68
|
result = {
|
|
69
|
-
id:
|
|
70
|
-
status: Status.Failed.from(transaction.
|
|
69
|
+
id: transaction.id,
|
|
70
|
+
status: Authorization.Status.Failed.from(transaction.status[1]),
|
|
71
71
|
...partial,
|
|
72
72
|
card: { id: card.id, iin: card.details.iin, last4: card.details.last4, token: card.details.token },
|
|
73
73
|
};
|
|
@@ -83,18 +83,5 @@ export var Authorization;
|
|
|
83
83
|
return result;
|
|
84
84
|
}
|
|
85
85
|
Authorization.fromCreatable = fromCreatable;
|
|
86
|
-
function toTransaction(authorization) {
|
|
87
|
-
return {
|
|
88
|
-
amount: authorization.amount[1],
|
|
89
|
-
currency: authorization.amount[0],
|
|
90
|
-
description: authorization.description,
|
|
91
|
-
counterpart: {
|
|
92
|
-
type: "card",
|
|
93
|
-
acquirer: authorization.acquirer,
|
|
94
|
-
merchant: authorization.merchant,
|
|
95
|
-
},
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
Authorization.toTransaction = toTransaction;
|
|
99
86
|
})(Authorization || (Authorization = {}));
|
|
100
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Authorization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAGtC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,M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AAO,CAAC,KAAK,EAAE;aAClG,CAAA;;YAED,MAAM,GAAG;gBACR,EAAE,EAAE,WAAW,CAAC,EAAE;gBAClB,MAAM,EAAE,UAAU;gBAClB,GAAG,OAAO;gBACV,IAAI,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;gBAClG,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,WAAW,EAAE,EAAE,EAAE,EAAE,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE;aACrG,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IA7Ce,2BAAa,gBA6C5B,CAAA;AACF,CAAC,EA5EgB,aAAa,KAAb,aAAa,QA4E7B"}
|
package/dist/Card/Preset.js
CHANGED
|
@@ -15,7 +15,7 @@ export var Preset;
|
|
|
15
15
|
Preset.flaw = Preset.type.flaw;
|
|
16
16
|
Preset.presets = {
|
|
17
17
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
18
|
-
"test-diners-200": "
|
|
18
|
+
"test-diners-200": "testUK-diners-dpg",
|
|
19
19
|
"test-mc-200": "testUK-marqeta",
|
|
20
20
|
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
21
21
|
"test-pg-200": "test-paxgiro",
|
package/dist/Card/Preset.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,MAAM,CAsBtB;AAtBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;IAChB,cAAO,GAA0B;QAC7C,YAAY,EAAE,mBAAmB;QACjC,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"Preset.js","sourceRoot":"../","sources":["Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,MAAM,CAsBtB;AAtBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;KACR,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;IAChB,cAAO,GAA0B;QAC7C,YAAY,EAAE,mBAAmB;QACjC,iBAAiB,EAAE,mBAAmB;QACtC,aAAa,EAAE,gBAAgB;QAC/B,gBAAgB,EAAE,oBAAoB;QACtC,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;KACpC,CAAA;AACF,CAAC,EAtBgB,MAAM,KAAN,MAAM,QAsBtB"}
|
package/dist/Card/Stack.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Realm } from "../Realm";
|
|
3
3
|
export type Stack = typeof Stack.stacks[number];
|
|
4
4
|
export declare namespace Stack {
|
|
5
|
-
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "testUK-tpl-marqeta", "
|
|
6
|
-
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "
|
|
7
|
-
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "
|
|
5
|
+
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "testUK-tpl-marqeta", "testUK-diners-dpg", "uk-mc-tpl-marqeta"];
|
|
6
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "testUK-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
7
|
+
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "testUK-diners-dpg" | "uk-mc-tpl-marqeta">;
|
|
8
8
|
const flaw: isly.Type.FlawFunction;
|
|
9
9
|
function toRealm(stack: Stack): Realm;
|
|
10
10
|
function toScheme(stack: Stack): string;
|
package/dist/Card/Stack.js
CHANGED
package/dist/Card/Stack.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sourceRoot":"../","sources":["Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CA0BrB;AA1BD,WAAiB,KAAK;IACR,YAAM,GAAG;QACrB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;QAChB,oBAAoB;QACpB,
|
|
1
|
+
{"version":3,"file":"Stack.js","sourceRoot":"../","sources":["Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAM3B,MAAM,KAAW,KAAK,CA0BrB;AA1BD,WAAiB,KAAK;IACR,YAAM,GAAG;QACrB,cAAc;QACd,kBAA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