@pax2pay/model-banking 0.1.216 → 0.1.218
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/Card/Preset.ts +9 -1
- package/Card/Stack.ts +7 -1
- package/Settlement/Entry/Refund.ts +3 -2
- package/dist/Card/Preset.d.ts +3 -3
- package/dist/Card/Preset.js +9 -1
- package/dist/Card/Preset.js.map +1 -1
- package/dist/Card/Stack.d.ts +3 -3
- package/dist/Card/Stack.js +7 -1
- package/dist/Card/Stack.js.map +1 -1
- package/dist/Settlement/Entry/Refund.d.ts +2 -1
- package/dist/Settlement/Entry/Refund.js +1 -1
- package/dist/Settlement/Entry/Refund.js.map +1 -1
- package/package.json +1 -1
package/Card/Preset.ts
CHANGED
|
@@ -5,13 +5,21 @@ export type Preset = typeof Preset.names[number]
|
|
|
5
5
|
|
|
6
6
|
// "realm-scheme-interchange"
|
|
7
7
|
export namespace Preset {
|
|
8
|
-
export const names = [
|
|
8
|
+
export const names = [
|
|
9
|
+
"p2p-mc-200",
|
|
10
|
+
"test-mc-200",
|
|
11
|
+
"test-ta-mq-200",
|
|
12
|
+
"test-pg-200",
|
|
13
|
+
"test-ta-pg-200",
|
|
14
|
+
"test-ta-mc-200",
|
|
15
|
+
] as const
|
|
9
16
|
export const type = isly.string(names)
|
|
10
17
|
export const is = type.is
|
|
11
18
|
export const flaw = type.flaw
|
|
12
19
|
export const presets: Record<Preset, Stack> = {
|
|
13
20
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
14
21
|
"test-mc-200": "testUK-marqeta",
|
|
22
|
+
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
15
23
|
"test-pg-200": "test-paxgiro",
|
|
16
24
|
"test-ta-mc-200": "test-tpl-paxgiro",
|
|
17
25
|
"test-ta-pg-200": "test-tpl-paxgiro",
|
package/Card/Stack.ts
CHANGED
|
@@ -3,7 +3,13 @@ import { isly } from "isly"
|
|
|
3
3
|
export type Stack = typeof Stack.stacks[number]
|
|
4
4
|
|
|
5
5
|
export namespace Stack {
|
|
6
|
-
export const stacks = [
|
|
6
|
+
export const stacks = [
|
|
7
|
+
"test-paxgiro",
|
|
8
|
+
"test-tpl-paxgiro",
|
|
9
|
+
"testUK-marqeta",
|
|
10
|
+
"testUK-tpl-marqeta",
|
|
11
|
+
"uk-mc-tpl-marqeta",
|
|
12
|
+
] as const
|
|
7
13
|
export const type = isly.string(stacks)
|
|
8
14
|
export const is = type.is
|
|
9
15
|
export const flaw = type.flaw
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly"
|
|
2
2
|
import { Acquirer } from "../../Acquirer"
|
|
3
3
|
import { Amount } from "../../Amount"
|
|
4
|
+
import { Authorization } from "../../Authorization"
|
|
4
5
|
import { Merchant } from "../../Merchant"
|
|
5
6
|
import { Transaction } from "../../Transaction"
|
|
6
7
|
import { Batch } from "../Batch"
|
|
@@ -16,7 +17,7 @@ export namespace Refund {
|
|
|
16
17
|
export interface Creatable {
|
|
17
18
|
type: "refund"
|
|
18
19
|
card: string
|
|
19
|
-
authorization
|
|
20
|
+
authorization: Pick<Authorization, "approvalCode">
|
|
20
21
|
merchant: Merchant
|
|
21
22
|
acquirer: Acquirer
|
|
22
23
|
reference: string
|
|
@@ -31,7 +32,7 @@ export namespace Refund {
|
|
|
31
32
|
export const type = isly.object<Creatable>({
|
|
32
33
|
type: isly.string("refund"),
|
|
33
34
|
card: isly.string(),
|
|
34
|
-
authorization: isly.
|
|
35
|
+
authorization: isly.object({ approvalCode: isly.string() }),
|
|
35
36
|
merchant: Merchant.type,
|
|
36
37
|
acquirer: Acquirer.type,
|
|
37
38
|
reference: isly.string(),
|
package/dist/Card/Preset.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import { isly } from "isly";
|
|
|
2
2
|
import { Stack } from "./Stack";
|
|
3
3
|
export type Preset = typeof Preset.names[number];
|
|
4
4
|
export declare namespace Preset {
|
|
5
|
-
const names: readonly ["p2p-mc-200", "test-mc-200", "test-pg-200", "test-ta-pg-200", "test-ta-mc-200"];
|
|
6
|
-
const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
7
|
-
const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
5
|
+
const names: readonly ["p2p-mc-200", "test-mc-200", "test-ta-mq-200", "test-pg-200", "test-ta-pg-200", "test-ta-mc-200"];
|
|
6
|
+
const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
7
|
+
const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-ta-pg-200" | "test-ta-mc-200">;
|
|
8
8
|
const flaw: isly.Type.FlawFunction;
|
|
9
9
|
const presets: Record<Preset, Stack>;
|
|
10
10
|
}
|
package/dist/Card/Preset.js
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var Preset;
|
|
3
3
|
(function (Preset) {
|
|
4
|
-
Preset.names = [
|
|
4
|
+
Preset.names = [
|
|
5
|
+
"p2p-mc-200",
|
|
6
|
+
"test-mc-200",
|
|
7
|
+
"test-ta-mq-200",
|
|
8
|
+
"test-pg-200",
|
|
9
|
+
"test-ta-pg-200",
|
|
10
|
+
"test-ta-mc-200",
|
|
11
|
+
];
|
|
5
12
|
Preset.type = isly.string(Preset.names);
|
|
6
13
|
Preset.is = Preset.type.is;
|
|
7
14
|
Preset.flaw = Preset.type.flaw;
|
|
8
15
|
Preset.presets = {
|
|
9
16
|
"p2p-mc-200": "uk-mc-tpl-marqeta",
|
|
10
17
|
"test-mc-200": "testUK-marqeta",
|
|
18
|
+
"test-ta-mq-200": "testUK-tpl-marqeta",
|
|
11
19
|
"test-pg-200": "test-paxgiro",
|
|
12
20
|
"test-ta-mc-200": "test-tpl-paxgiro",
|
|
13
21
|
"test-ta-pg-200": "test-tpl-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,
|
|
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,CAoBtB;AApBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,gBAAgB;QAChB,gBAAgB;KACP,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAA,KAAK,CAAC,CAAA;IACzB,SAAE,GAAG,OAAA,IAAI,CAAC,EAAE,CAAA;IACZ,WAAI,GAAG,OAAA,IAAI,CAAC,IAAI,CAAA;IAChB,cAAO,GAA0B;QAC7C,YAAY,EAAE,mBAAmB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,gBAAgB,EAAE,oBAAoB;QACtC,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;KACpC,CAAA;AACF,CAAC,EApBgB,MAAM,KAAN,MAAM,QAoBtB"}
|
package/dist/Card/Stack.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export type Stack = typeof Stack.stacks[number];
|
|
3
3
|
export declare namespace Stack {
|
|
4
|
-
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "uk-mc-tpl-marqeta"];
|
|
5
|
-
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "uk-mc-tpl-marqeta">;
|
|
6
|
-
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "uk-mc-tpl-marqeta">;
|
|
4
|
+
const stacks: readonly ["test-paxgiro", "test-tpl-paxgiro", "testUK-marqeta", "testUK-tpl-marqeta", "uk-mc-tpl-marqeta"];
|
|
5
|
+
const type: isly.Type<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "uk-mc-tpl-marqeta">;
|
|
6
|
+
const is: isly.Type.IsFunction<"test-paxgiro" | "test-tpl-paxgiro" | "testUK-marqeta" | "testUK-tpl-marqeta" | "uk-mc-tpl-marqeta">;
|
|
7
7
|
const flaw: isly.Type.FlawFunction;
|
|
8
8
|
}
|
package/dist/Card/Stack.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
export var Stack;
|
|
3
3
|
(function (Stack) {
|
|
4
|
-
Stack.stacks = [
|
|
4
|
+
Stack.stacks = [
|
|
5
|
+
"test-paxgiro",
|
|
6
|
+
"test-tpl-paxgiro",
|
|
7
|
+
"testUK-marqeta",
|
|
8
|
+
"testUK-tpl-marqeta",
|
|
9
|
+
"uk-mc-tpl-marqeta",
|
|
10
|
+
];
|
|
5
11
|
Stack.type = isly.string(Stack.stacks);
|
|
6
12
|
Stack.is = Stack.type.is;
|
|
7
13
|
Stack.flaw = Stack.type.flaw;
|
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;AAI3B,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"Stack.js","sourceRoot":"../","sources":["Card/Stack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,KAAK,CAWrB;AAXD,WAAiB,KAAK;IACR,YAAM,GAAG;QACrB,cAAc;QACd,kBAAkB;QAClB,gBAAgB;QAChB,oBAAoB;QACpB,mBAAmB;KACV,CAAA;IACG,UAAI,GAAG,IAAI,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,CAAA;IAC1B,QAAE,GAAG,MAAA,IAAI,CAAC,EAAE,CAAA;IACZ,UAAI,GAAG,MAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,KAAK,KAAL,KAAK,QAWrB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
2
|
import { Acquirer } from "../../Acquirer";
|
|
3
3
|
import { Amount } from "../../Amount";
|
|
4
|
+
import { Authorization } from "../../Authorization";
|
|
4
5
|
import { Merchant } from "../../Merchant";
|
|
5
6
|
import { Transaction } from "../../Transaction";
|
|
6
7
|
import { Batch } from "../Batch";
|
|
@@ -14,7 +15,7 @@ export declare namespace Refund {
|
|
|
14
15
|
interface Creatable {
|
|
15
16
|
type: "refund";
|
|
16
17
|
card: string;
|
|
17
|
-
authorization
|
|
18
|
+
authorization: Pick<Authorization, "approvalCode">;
|
|
18
19
|
merchant: Merchant;
|
|
19
20
|
acquirer: Acquirer;
|
|
20
21
|
reference: string;
|
|
@@ -16,7 +16,7 @@ export var Refund;
|
|
|
16
16
|
Creatable.type = isly.object({
|
|
17
17
|
type: isly.string("refund"),
|
|
18
18
|
card: isly.string(),
|
|
19
|
-
authorization: isly.
|
|
19
|
+
authorization: isly.object({ approvalCode: isly.string() }),
|
|
20
20
|
merchant: Merchant.type,
|
|
21
21
|
acquirer: Acquirer.type,
|
|
22
22
|
reference: isly.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Refund.js","sourceRoot":"../","sources":["Settlement/Entry/Refund.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAA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