@pax2pay/model-banking 0.1.540 → 0.1.541
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/Settlement/Entry/Creatable.ts +2 -47
- package/Settlement/Entry/index.ts +0 -4
- package/Settlement/index.ts +0 -33
- package/dist/cjs/Client/Transactions/index.d.ts +1 -1
- package/dist/cjs/Rail/index.d.ts +2 -2
- package/dist/cjs/Settlement/Entry/Creatable.d.ts +0 -4
- package/dist/cjs/Settlement/Entry/Creatable.js +2 -47
- package/dist/cjs/Settlement/Entry/Creatable.js.map +1 -1
- package/dist/cjs/Settlement/Entry/index.d.ts +0 -4
- package/dist/cjs/Settlement/Entry/index.js +0 -4
- package/dist/cjs/Settlement/Entry/index.js.map +1 -1
- package/dist/cjs/Settlement/index.d.ts +0 -2
- package/dist/cjs/Settlement/index.js +0 -32
- package/dist/cjs/Settlement/index.js.map +1 -1
- package/dist/mjs/Client/Transactions/index.d.ts +1 -1
- package/dist/mjs/Rail/index.d.ts +2 -2
- package/dist/mjs/Settlement/Entry/Creatable.d.ts +0 -4
- package/dist/mjs/Settlement/Entry/Creatable.js +2 -47
- package/dist/mjs/Settlement/Entry/Creatable.js.map +1 -1
- package/dist/mjs/Settlement/Entry/index.d.ts +0 -4
- package/dist/mjs/Settlement/Entry/index.js +0 -4
- package/dist/mjs/Settlement/Entry/index.js.map +1 -1
- package/dist/mjs/Settlement/index.d.ts +0 -2
- package/dist/mjs/Settlement/index.js +0 -32
- package/dist/mjs/Settlement/index.js.map +1 -1
- package/package.json +1 -1
- package/Settlement/Entry/Legacy/Cancel.ts +0 -42
- package/Settlement/Entry/Legacy/Capture.ts +0 -47
- package/Settlement/Entry/Legacy/Creatable.ts +0 -15
- package/Settlement/Entry/Legacy/Refund.ts +0 -58
- package/Settlement/Entry/Legacy/Unknown.ts +0 -40
- package/Settlement/Entry/Legacy/index.ts +0 -55
- package/Settlement/Entry/fromLegacy.ts +0 -95
- package/dist/cjs/Settlement/Entry/Legacy/Cancel.d.ts +0 -27
- package/dist/cjs/Settlement/Entry/Legacy/Cancel.js +0 -32
- package/dist/cjs/Settlement/Entry/Legacy/Cancel.js.map +0 -1
- package/dist/cjs/Settlement/Entry/Legacy/Capture.d.ts +0 -29
- package/dist/cjs/Settlement/Entry/Legacy/Capture.js +0 -37
- package/dist/cjs/Settlement/Entry/Legacy/Capture.js.map +0 -1
- package/dist/cjs/Settlement/Entry/Legacy/Creatable.d.ts +0 -9
- package/dist/cjs/Settlement/Entry/Legacy/Creatable.js +0 -13
- package/dist/cjs/Settlement/Entry/Legacy/Creatable.js.map +0 -1
- package/dist/cjs/Settlement/Entry/Legacy/Refund.d.ts +0 -36
- package/dist/cjs/Settlement/Entry/Legacy/Refund.js +0 -43
- package/dist/cjs/Settlement/Entry/Legacy/Refund.js.map +0 -1
- package/dist/cjs/Settlement/Entry/Legacy/Unknown.d.ts +0 -24
- package/dist/cjs/Settlement/Entry/Legacy/Unknown.js +0 -32
- package/dist/cjs/Settlement/Entry/Legacy/Unknown.js.map +0 -1
- package/dist/cjs/Settlement/Entry/Legacy/index.d.ts +0 -19
- package/dist/cjs/Settlement/Entry/Legacy/index.js +0 -53
- package/dist/cjs/Settlement/Entry/Legacy/index.js.map +0 -1
- package/dist/cjs/Settlement/Entry/fromLegacy.d.ts +0 -3
- package/dist/cjs/Settlement/Entry/fromLegacy.js +0 -90
- package/dist/cjs/Settlement/Entry/fromLegacy.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/Cancel.d.ts +0 -27
- package/dist/mjs/Settlement/Entry/Legacy/Cancel.js +0 -29
- package/dist/mjs/Settlement/Entry/Legacy/Cancel.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/Capture.d.ts +0 -29
- package/dist/mjs/Settlement/Entry/Legacy/Capture.js +0 -34
- package/dist/mjs/Settlement/Entry/Legacy/Capture.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/Creatable.d.ts +0 -9
- package/dist/mjs/Settlement/Entry/Legacy/Creatable.js +0 -10
- package/dist/mjs/Settlement/Entry/Legacy/Creatable.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/Refund.d.ts +0 -36
- package/dist/mjs/Settlement/Entry/Legacy/Refund.js +0 -40
- package/dist/mjs/Settlement/Entry/Legacy/Refund.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/Unknown.d.ts +0 -24
- package/dist/mjs/Settlement/Entry/Legacy/Unknown.js +0 -29
- package/dist/mjs/Settlement/Entry/Legacy/Unknown.js.map +0 -1
- package/dist/mjs/Settlement/Entry/Legacy/index.d.ts +0 -19
- package/dist/mjs/Settlement/Entry/Legacy/index.js +0 -50
- package/dist/mjs/Settlement/Entry/Legacy/index.js.map +0 -1
- package/dist/mjs/Settlement/Entry/fromLegacy.d.ts +0 -3
- package/dist/mjs/Settlement/Entry/fromLegacy.js +0 -87
- package/dist/mjs/Settlement/Entry/fromLegacy.js.map +0 -1
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { isly } from "isly"
|
|
3
|
-
import { Amount } from "../../../Amount"
|
|
4
|
-
import { Authorization } from "../../../Authorization"
|
|
5
|
-
import { Batch } from "../../Batch"
|
|
6
|
-
import { Fee } from "../../Fee"
|
|
7
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier"
|
|
8
|
-
|
|
9
|
-
export interface Cancel extends Omit<Cancel.Creatable, "settlement"> {
|
|
10
|
-
status: "succeeded" | "failed"
|
|
11
|
-
reason?: string
|
|
12
|
-
created?: isoly.DateTime
|
|
13
|
-
settlement?: SettlementIdentifier
|
|
14
|
-
}
|
|
15
|
-
export namespace Cancel {
|
|
16
|
-
export interface Creatable {
|
|
17
|
-
type: "cancel"
|
|
18
|
-
authorization?: Authorization
|
|
19
|
-
reference?: string
|
|
20
|
-
batch: Batch
|
|
21
|
-
fee?: Fee
|
|
22
|
-
amount?: Amount
|
|
23
|
-
settlement: SettlementIdentifier
|
|
24
|
-
}
|
|
25
|
-
export namespace Creatable {
|
|
26
|
-
export const type = isly.object<Creatable>({
|
|
27
|
-
type: isly.string("cancel"),
|
|
28
|
-
authorization: Authorization.type.optional(),
|
|
29
|
-
reference: isly.string().optional(),
|
|
30
|
-
fee: Fee.type.optional(),
|
|
31
|
-
amount: Amount.type.optional(),
|
|
32
|
-
batch: Batch.type,
|
|
33
|
-
settlement: SettlementIdentifier.type,
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
export const type = Creatable.type.omit(["settlement"]).extend<Cancel>({
|
|
37
|
-
status: isly.string(["succeeded", "failed"]),
|
|
38
|
-
reason: isly.string().optional(),
|
|
39
|
-
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is),
|
|
40
|
-
settlement: SettlementIdentifier.type.optional(),
|
|
41
|
-
})
|
|
42
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { isly } from "isly"
|
|
3
|
-
import { Amount } from "../../../Amount"
|
|
4
|
-
import { Authorization } from "../../../Authorization"
|
|
5
|
-
import { Batch } from "../../Batch"
|
|
6
|
-
import { Fee } from "../../Fee"
|
|
7
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier"
|
|
8
|
-
|
|
9
|
-
export interface Capture extends Omit<Capture.Creatable, "settlement"> {
|
|
10
|
-
status: "succeeded" | "failed"
|
|
11
|
-
reason?: string
|
|
12
|
-
created?: isoly.DateTime
|
|
13
|
-
settlement?: SettlementIdentifier
|
|
14
|
-
}
|
|
15
|
-
export namespace Capture {
|
|
16
|
-
export function from(creatable: Creatable): Capture {
|
|
17
|
-
return { status: "succeeded", ...creatable, created: isoly.DateTime.now() }
|
|
18
|
-
}
|
|
19
|
-
export interface Creatable {
|
|
20
|
-
type: "capture"
|
|
21
|
-
account?: string // Only defined when using the new card id + account id card references
|
|
22
|
-
authorization: Authorization
|
|
23
|
-
reference: string // card transaction
|
|
24
|
-
batch: Batch
|
|
25
|
-
fee: Fee
|
|
26
|
-
amount: Amount
|
|
27
|
-
settlement: SettlementIdentifier
|
|
28
|
-
}
|
|
29
|
-
export namespace Creatable {
|
|
30
|
-
export const type = isly.object<Creatable>({
|
|
31
|
-
type: isly.string("capture"),
|
|
32
|
-
account: isly.string().optional(),
|
|
33
|
-
authorization: Authorization.type,
|
|
34
|
-
reference: isly.string(),
|
|
35
|
-
fee: Fee.type,
|
|
36
|
-
amount: Amount.type,
|
|
37
|
-
batch: Batch.type,
|
|
38
|
-
settlement: SettlementIdentifier.type,
|
|
39
|
-
})
|
|
40
|
-
}
|
|
41
|
-
export const type = Creatable.type.omit(["settlement"]).extend<Capture>({
|
|
42
|
-
status: isly.string(["succeeded", "failed"]),
|
|
43
|
-
reason: isly.string().optional(),
|
|
44
|
-
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is).optional(),
|
|
45
|
-
settlement: SettlementIdentifier.type.optional(),
|
|
46
|
-
})
|
|
47
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { isly } from "isly"
|
|
2
|
-
import { Cancel as EntryCancel } from "./Cancel"
|
|
3
|
-
import { Capture as EntryCapture } from "./Capture"
|
|
4
|
-
import { Refund as EntryRefund } from "./Refund"
|
|
5
|
-
import { Unknown as EntryUnknown } from "./Unknown"
|
|
6
|
-
|
|
7
|
-
export type Creatable = EntryCancel.Creatable | EntryCapture.Creatable | EntryRefund.Creatable | EntryUnknown.Creatable
|
|
8
|
-
export namespace Creatable {
|
|
9
|
-
export const type = isly.union(
|
|
10
|
-
EntryCancel.Creatable.type,
|
|
11
|
-
EntryCapture.Creatable.type,
|
|
12
|
-
EntryRefund.Creatable.type,
|
|
13
|
-
EntryUnknown.Creatable.type
|
|
14
|
-
)
|
|
15
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { isly } from "isly"
|
|
3
|
-
import { Acquirer } from "../../../Acquirer"
|
|
4
|
-
import { Amount } from "../../../Amount"
|
|
5
|
-
import { Authorization } from "../../../Authorization"
|
|
6
|
-
import { Merchant } from "../../../Merchant"
|
|
7
|
-
import { Transaction } from "../../../Transaction"
|
|
8
|
-
import { Batch } from "../../Batch"
|
|
9
|
-
import { Fee } from "../../Fee"
|
|
10
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier"
|
|
11
|
-
|
|
12
|
-
export interface Refund extends Omit<Refund.Creatable, "settlement"> {
|
|
13
|
-
status: "succeeded" | "failed"
|
|
14
|
-
reason?: string
|
|
15
|
-
transaction?: Transaction
|
|
16
|
-
created?: isoly.DateTime
|
|
17
|
-
settlement?: SettlementIdentifier
|
|
18
|
-
}
|
|
19
|
-
export namespace Refund {
|
|
20
|
-
export interface Creatable {
|
|
21
|
-
type: "refund"
|
|
22
|
-
card: string
|
|
23
|
-
account?: string // Only defined when using the new card id + account id card references
|
|
24
|
-
authorization: Pick<Authorization, "approvalCode">
|
|
25
|
-
merchant: Merchant
|
|
26
|
-
acquirer: Acquirer
|
|
27
|
-
reference: string
|
|
28
|
-
batch: Batch
|
|
29
|
-
fee: Fee
|
|
30
|
-
amount: Amount
|
|
31
|
-
settlement: SettlementIdentifier
|
|
32
|
-
}
|
|
33
|
-
export function from(refund: Refund.Creatable, transaction: Transaction): Refund {
|
|
34
|
-
return { ...refund, status: "succeeded", transaction, created: isoly.DateTime.now() }
|
|
35
|
-
}
|
|
36
|
-
export namespace Creatable {
|
|
37
|
-
export const type = isly.object<Creatable>({
|
|
38
|
-
type: isly.string("refund"),
|
|
39
|
-
card: isly.string(),
|
|
40
|
-
account: isly.string().optional(),
|
|
41
|
-
authorization: isly.object({ approvalCode: isly.string() }),
|
|
42
|
-
merchant: Merchant.type,
|
|
43
|
-
acquirer: Acquirer.type,
|
|
44
|
-
reference: isly.string(),
|
|
45
|
-
fee: Fee.type,
|
|
46
|
-
amount: Amount.type,
|
|
47
|
-
batch: Batch.type,
|
|
48
|
-
settlement: SettlementIdentifier.type,
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
export const type = Creatable.type.omit(["settlement"]).extend<Refund>({
|
|
52
|
-
status: isly.string(["succeeded", "failed"]),
|
|
53
|
-
reason: isly.string().optional(),
|
|
54
|
-
transaction: Transaction.type.optional(),
|
|
55
|
-
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is).optional(),
|
|
56
|
-
settlement: SettlementIdentifier.type.optional(),
|
|
57
|
-
})
|
|
58
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { isly } from "isly"
|
|
3
|
-
import { Authorization } from "../../../Authorization"
|
|
4
|
-
import { Batch } from "../../Batch"
|
|
5
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier"
|
|
6
|
-
|
|
7
|
-
export interface Unknown extends Omit<Unknown.Creatable, "settlement"> {
|
|
8
|
-
status: "succeeded" | "failed"
|
|
9
|
-
reason?: string
|
|
10
|
-
created?: isoly.DateTime
|
|
11
|
-
settlement?: SettlementIdentifier
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export namespace Unknown {
|
|
15
|
-
export interface Creatable {
|
|
16
|
-
type: "unknown"
|
|
17
|
-
authorization?: Authorization
|
|
18
|
-
data: Record<string, any>
|
|
19
|
-
batch: Batch
|
|
20
|
-
settlement: SettlementIdentifier
|
|
21
|
-
}
|
|
22
|
-
export namespace Creatable {
|
|
23
|
-
export const type = isly.object<Creatable>({
|
|
24
|
-
type: isly.string("unknown"),
|
|
25
|
-
authorization: Authorization.type.optional(),
|
|
26
|
-
data: isly.record(isly.string(), isly.any()),
|
|
27
|
-
batch: Batch.type,
|
|
28
|
-
settlement: SettlementIdentifier.type,
|
|
29
|
-
})
|
|
30
|
-
}
|
|
31
|
-
export function from(creatable: Creatable): Unknown {
|
|
32
|
-
return { ...creatable, status: "failed" }
|
|
33
|
-
}
|
|
34
|
-
export const type = Creatable.type.omit(["settlement"]).extend<Unknown>({
|
|
35
|
-
status: isly.string(["succeeded", "failed"]),
|
|
36
|
-
reason: isly.string().optional(),
|
|
37
|
-
created: isly.fromIs("isoly.DateTime", isoly.DateTime.is).optional(),
|
|
38
|
-
settlement: SettlementIdentifier.type.optional(),
|
|
39
|
-
})
|
|
40
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { gracely } from "gracely"
|
|
2
|
-
import { isoly } from "isoly"
|
|
3
|
-
import { isly } from "isly"
|
|
4
|
-
import { Transaction } from "../../../Transaction"
|
|
5
|
-
import { Cancel as EntryCancel } from "./Cancel"
|
|
6
|
-
import { Capture as EntryCapture } from "./Capture"
|
|
7
|
-
import { Creatable as EntryCreatable } from "./Creatable"
|
|
8
|
-
import { Refund as EntryRefund } from "./Refund"
|
|
9
|
-
import { Unknown as EntryUnknown } from "./Unknown"
|
|
10
|
-
|
|
11
|
-
export type Entry = Entry.Cancel | Entry.Capture | Entry.Refund | Entry.Unknown
|
|
12
|
-
export namespace Entry {
|
|
13
|
-
export import Cancel = EntryCancel
|
|
14
|
-
export import Capture = EntryCapture
|
|
15
|
-
export import Refund = EntryRefund
|
|
16
|
-
export import Unknown = EntryUnknown
|
|
17
|
-
export type Type = "unknown" | "refund" | "capture" | "cancel"
|
|
18
|
-
export import Creatable = EntryCreatable
|
|
19
|
-
export function from(creatable: Entry.Creatable, transaction: Transaction | gracely.Error | string): Entry {
|
|
20
|
-
let result: Entry
|
|
21
|
-
const created = isoly.DateTime.now()
|
|
22
|
-
if (!Transaction.type.is(transaction) || transaction.status != "finalized")
|
|
23
|
-
result = { status: "failed", reason: reason(creatable, transaction), ...creatable, created }
|
|
24
|
-
else
|
|
25
|
-
switch (creatable.type) {
|
|
26
|
-
case "capture":
|
|
27
|
-
result = Capture.from(creatable)
|
|
28
|
-
break
|
|
29
|
-
case "refund":
|
|
30
|
-
result = Refund.from(creatable, transaction)
|
|
31
|
-
break
|
|
32
|
-
default:
|
|
33
|
-
result = { ...creatable, status: "failed", reason: "Entry type not implemented yet.", created }
|
|
34
|
-
break
|
|
35
|
-
}
|
|
36
|
-
return result
|
|
37
|
-
}
|
|
38
|
-
function reason(creatable: Entry.Creatable, transaction: Transaction | gracely.Error | string): string {
|
|
39
|
-
const result: string[] = []
|
|
40
|
-
!creatable.authorization && result.push("Missing authorization.")
|
|
41
|
-
if (gracely.Error.is(transaction))
|
|
42
|
-
result.push(`gracely error: ${JSON.stringify(transaction)}`)
|
|
43
|
-
else if (typeof transaction != "string")
|
|
44
|
-
result.push(`Transaction ${transaction.id} on account ${transaction.accountId} unable to be finalized.`)
|
|
45
|
-
else
|
|
46
|
-
result.push(transaction || "No reason provided")
|
|
47
|
-
return result.join("\n")
|
|
48
|
-
}
|
|
49
|
-
export const type = isly.union<Entry, Entry.Cancel, Entry.Capture, Entry.Refund, Entry.Unknown>(
|
|
50
|
-
Entry.Cancel.type,
|
|
51
|
-
Entry.Capture.type,
|
|
52
|
-
Entry.Refund.type,
|
|
53
|
-
Entry.Unknown.type
|
|
54
|
-
)
|
|
55
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly"
|
|
2
|
-
import { Card } from "../../Card"
|
|
3
|
-
import { Rail } from "../../Rail"
|
|
4
|
-
import { Identifier as SettlementIdentifier } from "../Identifier"
|
|
5
|
-
import type { Entry } from "."
|
|
6
|
-
import type { Failed } from "./Failed"
|
|
7
|
-
import { Entry as LegacyEntry } from "./Legacy"
|
|
8
|
-
import { type } from "./type"
|
|
9
|
-
|
|
10
|
-
function toFailed(legacy: LegacyEntry.Unknown | LegacyEntry.Cancel): Failed {
|
|
11
|
-
return {
|
|
12
|
-
type: "unknown",
|
|
13
|
-
status: "failed",
|
|
14
|
-
data: legacy.type == "cancel" ? legacy : legacy.data,
|
|
15
|
-
reason: legacy.reason ?? "unknown",
|
|
16
|
-
created: legacy.created ?? isoly.DateTime.now(),
|
|
17
|
-
settlement: legacy.settlement ?? "unknown",
|
|
18
|
-
reference: ("reference" in legacy && legacy.reference) || "unknown",
|
|
19
|
-
batch: legacy.batch,
|
|
20
|
-
...("authorization" in legacy &&
|
|
21
|
-
legacy.authorization && {
|
|
22
|
-
account: legacy.authorization.account ?? "unknown",
|
|
23
|
-
approvalCode: legacy.authorization.approvalCode,
|
|
24
|
-
merchant: legacy.authorization.merchant,
|
|
25
|
-
acquirer: legacy.authorization.acquirer,
|
|
26
|
-
card: legacy.authorization.card.id,
|
|
27
|
-
transaction: legacy.authorization.transaction?.id,
|
|
28
|
-
}),
|
|
29
|
-
...("fee" in legacy && { fee: legacy.fee }),
|
|
30
|
-
...("amount" in legacy && { amount: legacy.amount }),
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
function toEntry(legacy: LegacyEntry.Capture | LegacyEntry.Refund, card?: Rail.Address.Card): Entry {
|
|
34
|
-
return {
|
|
35
|
-
type: legacy.type,
|
|
36
|
-
created: legacy.created ?? isoly.DateTime.now(),
|
|
37
|
-
...(legacy.status == "failed"
|
|
38
|
-
? {
|
|
39
|
-
card: legacy.type == "refund" ? legacy.card : legacy.authorization.card.id,
|
|
40
|
-
status: "failed",
|
|
41
|
-
reason: legacy.reason ?? "unknown",
|
|
42
|
-
transaction:
|
|
43
|
-
("transaction" in legacy
|
|
44
|
-
? legacy.transaction?.id
|
|
45
|
-
: "authorization" in legacy && "transaction" in legacy.authorization
|
|
46
|
-
? legacy.authorization.transaction?.id
|
|
47
|
-
: "unknown") ?? "unknown",
|
|
48
|
-
}
|
|
49
|
-
: {
|
|
50
|
-
card: card ?? {
|
|
51
|
-
type: "card",
|
|
52
|
-
scheme: (stack => (stack ? Card.Stack.toScheme(stack) : "unknown"))(
|
|
53
|
-
legacy.settlement && SettlementIdentifier.toProcessor(legacy.settlement)
|
|
54
|
-
) as Card.Scheme,
|
|
55
|
-
...(legacy.type == "refund"
|
|
56
|
-
? { id: legacy.card, iin: "unknown", last4: "unknown" }
|
|
57
|
-
: {
|
|
58
|
-
id: legacy.authorization.card.id,
|
|
59
|
-
iin: legacy.authorization.card.iin ?? "unknown",
|
|
60
|
-
last4: legacy.authorization.card.last4 ?? "unknown",
|
|
61
|
-
}),
|
|
62
|
-
expiry: [0, 0] as unknown as Card.Expiry,
|
|
63
|
-
holder: "unknown",
|
|
64
|
-
},
|
|
65
|
-
status: "succeeded",
|
|
66
|
-
transaction: ("transaction" in legacy && legacy.transaction
|
|
67
|
-
? {
|
|
68
|
-
id: legacy.transaction.id,
|
|
69
|
-
posted: legacy.transaction.posted,
|
|
70
|
-
description: legacy.transaction.description,
|
|
71
|
-
}
|
|
72
|
-
: "authorization" in legacy && "transaction" in legacy.authorization
|
|
73
|
-
? legacy.authorization.transaction
|
|
74
|
-
: undefined) ?? { id: "unknown", posted: "", description: "" },
|
|
75
|
-
}),
|
|
76
|
-
account: legacy.account ?? (("transaction" in legacy && legacy.transaction?.accountId) || "unknown"),
|
|
77
|
-
approvalCode: legacy.authorization.approvalCode ?? "unknown",
|
|
78
|
-
...(legacy.type == "refund"
|
|
79
|
-
? { merchant: legacy.merchant, acquirer: legacy.acquirer }
|
|
80
|
-
: { merchant: legacy.authorization.merchant, acquirer: legacy.authorization.acquirer }),
|
|
81
|
-
reference: legacy.reference,
|
|
82
|
-
batch: legacy.batch,
|
|
83
|
-
fee: legacy.fee,
|
|
84
|
-
amount: legacy.amount,
|
|
85
|
-
settlement: legacy.settlement ?? "unknown",
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function fromLegacy(maybeLegacy: LegacyEntry | Entry): Entry {
|
|
90
|
-
return type.is(maybeLegacy)
|
|
91
|
-
? maybeLegacy
|
|
92
|
-
: maybeLegacy.type == "cancel" || maybeLegacy.type == "unknown"
|
|
93
|
-
? toFailed(maybeLegacy)
|
|
94
|
-
: toEntry(maybeLegacy)
|
|
95
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { Amount } from "../../../Amount";
|
|
3
|
-
import { Authorization } from "../../../Authorization";
|
|
4
|
-
import { Batch } from "../../Batch";
|
|
5
|
-
import { Fee } from "../../Fee";
|
|
6
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier";
|
|
7
|
-
export interface Cancel extends Omit<Cancel.Creatable, "settlement"> {
|
|
8
|
-
status: "succeeded" | "failed";
|
|
9
|
-
reason?: string;
|
|
10
|
-
created?: isoly.DateTime;
|
|
11
|
-
settlement?: SettlementIdentifier;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace Cancel {
|
|
14
|
-
interface Creatable {
|
|
15
|
-
type: "cancel";
|
|
16
|
-
authorization?: Authorization;
|
|
17
|
-
reference?: string;
|
|
18
|
-
batch: Batch;
|
|
19
|
-
fee?: Fee;
|
|
20
|
-
amount?: Amount;
|
|
21
|
-
settlement: SettlementIdentifier;
|
|
22
|
-
}
|
|
23
|
-
namespace Creatable {
|
|
24
|
-
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
25
|
-
}
|
|
26
|
-
const type: import("isly/dist/cjs/object").IslyObject<Cancel, Omit<Creatable, "settlement">>;
|
|
27
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cancel = void 0;
|
|
4
|
-
const isoly_1 = require("isoly");
|
|
5
|
-
const isly_1 = require("isly");
|
|
6
|
-
const Amount_1 = require("../../../Amount");
|
|
7
|
-
const Authorization_1 = require("../../../Authorization");
|
|
8
|
-
const Batch_1 = require("../../Batch");
|
|
9
|
-
const Fee_1 = require("../../Fee");
|
|
10
|
-
const Identifier_1 = require("../../Identifier");
|
|
11
|
-
var Cancel;
|
|
12
|
-
(function (Cancel) {
|
|
13
|
-
let Creatable;
|
|
14
|
-
(function (Creatable) {
|
|
15
|
-
Creatable.type = isly_1.isly.object({
|
|
16
|
-
type: isly_1.isly.string("cancel"),
|
|
17
|
-
authorization: Authorization_1.Authorization.type.optional(),
|
|
18
|
-
reference: isly_1.isly.string().optional(),
|
|
19
|
-
fee: Fee_1.Fee.type.optional(),
|
|
20
|
-
amount: Amount_1.Amount.type.optional(),
|
|
21
|
-
batch: Batch_1.Batch.type,
|
|
22
|
-
settlement: Identifier_1.Identifier.type,
|
|
23
|
-
});
|
|
24
|
-
})(Creatable = Cancel.Creatable || (Cancel.Creatable = {}));
|
|
25
|
-
Cancel.type = Creatable.type.omit(["settlement"]).extend({
|
|
26
|
-
status: isly_1.isly.string(["succeeded", "failed"]),
|
|
27
|
-
reason: isly_1.isly.string().optional(),
|
|
28
|
-
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is),
|
|
29
|
-
settlement: Identifier_1.Identifier.type.optional(),
|
|
30
|
-
});
|
|
31
|
-
})(Cancel || (exports.Cancel = Cancel = {}));
|
|
32
|
-
//# sourceMappingURL=Cancel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cancel.js","sourceRoot":"","sources":["../../../../../Settlement/Entry/Legacy/Cancel.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,4CAAwC;AACxC,0DAAsD;AACtD,uCAAmC;AACnC,mCAA+B;AAC/B,iDAAqE;AAQrE,IAAiB,MAAM,CA2BtB;AA3BD,WAAiB,MAAM;IAUtB,IAAiB,SAAS,CAUzB;IAVD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YAC3B,aAAa,EAAE,6BAAa,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC5C,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACnC,GAAG,EAAE,SAAG,CAAC,IAAI,CAAC,QAAQ,EAAE;YACxB,MAAM,EAAE,eAAM,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC9B,KAAK,EAAE,aAAK,CAAC,IAAI;YACjB,UAAU,EAAE,uBAAoB,CAAC,IAAI;SACrC,CAAC,CAAA;IACH,CAAC,EAVgB,SAAS,GAAT,gBAAS,KAAT,gBAAS,QAUzB;IACY,WAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAS;QACtE,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;QACzD,UAAU,EAAE,uBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;KAChD,CAAC,CAAA;AACH,CAAC,EA3BgB,MAAM,sBAAN,MAAM,QA2BtB"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { Amount } from "../../../Amount";
|
|
3
|
-
import { Authorization } from "../../../Authorization";
|
|
4
|
-
import { Batch } from "../../Batch";
|
|
5
|
-
import { Fee } from "../../Fee";
|
|
6
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier";
|
|
7
|
-
export interface Capture extends Omit<Capture.Creatable, "settlement"> {
|
|
8
|
-
status: "succeeded" | "failed";
|
|
9
|
-
reason?: string;
|
|
10
|
-
created?: isoly.DateTime;
|
|
11
|
-
settlement?: SettlementIdentifier;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace Capture {
|
|
14
|
-
function from(creatable: Creatable): Capture;
|
|
15
|
-
interface Creatable {
|
|
16
|
-
type: "capture";
|
|
17
|
-
account?: string;
|
|
18
|
-
authorization: Authorization;
|
|
19
|
-
reference: string;
|
|
20
|
-
batch: Batch;
|
|
21
|
-
fee: Fee;
|
|
22
|
-
amount: Amount;
|
|
23
|
-
settlement: SettlementIdentifier;
|
|
24
|
-
}
|
|
25
|
-
namespace Creatable {
|
|
26
|
-
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
27
|
-
}
|
|
28
|
-
const type: import("isly/dist/cjs/object").IslyObject<Capture, Omit<Creatable, "settlement">>;
|
|
29
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Capture = void 0;
|
|
4
|
-
const isoly_1 = require("isoly");
|
|
5
|
-
const isly_1 = require("isly");
|
|
6
|
-
const Amount_1 = require("../../../Amount");
|
|
7
|
-
const Authorization_1 = require("../../../Authorization");
|
|
8
|
-
const Batch_1 = require("../../Batch");
|
|
9
|
-
const Fee_1 = require("../../Fee");
|
|
10
|
-
const Identifier_1 = require("../../Identifier");
|
|
11
|
-
var Capture;
|
|
12
|
-
(function (Capture) {
|
|
13
|
-
function from(creatable) {
|
|
14
|
-
return { status: "succeeded", ...creatable, created: isoly_1.isoly.DateTime.now() };
|
|
15
|
-
}
|
|
16
|
-
Capture.from = from;
|
|
17
|
-
let Creatable;
|
|
18
|
-
(function (Creatable) {
|
|
19
|
-
Creatable.type = isly_1.isly.object({
|
|
20
|
-
type: isly_1.isly.string("capture"),
|
|
21
|
-
account: isly_1.isly.string().optional(),
|
|
22
|
-
authorization: Authorization_1.Authorization.type,
|
|
23
|
-
reference: isly_1.isly.string(),
|
|
24
|
-
fee: Fee_1.Fee.type,
|
|
25
|
-
amount: Amount_1.Amount.type,
|
|
26
|
-
batch: Batch_1.Batch.type,
|
|
27
|
-
settlement: Identifier_1.Identifier.type,
|
|
28
|
-
});
|
|
29
|
-
})(Creatable = Capture.Creatable || (Capture.Creatable = {}));
|
|
30
|
-
Capture.type = Creatable.type.omit(["settlement"]).extend({
|
|
31
|
-
status: isly_1.isly.string(["succeeded", "failed"]),
|
|
32
|
-
reason: isly_1.isly.string().optional(),
|
|
33
|
-
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is).optional(),
|
|
34
|
-
settlement: Identifier_1.Identifier.type.optional(),
|
|
35
|
-
});
|
|
36
|
-
})(Capture || (exports.Capture = Capture = {}));
|
|
37
|
-
//# sourceMappingURL=Capture.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Capture.js","sourceRoot":"","sources":["../../../../../Settlement/Entry/Legacy/Capture.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,4CAAwC;AACxC,0DAAsD;AACtD,uCAAmC;AACnC,mCAA+B;AAC/B,iDAAqE;AAQrE,IAAiB,OAAO,CAgCvB;AAhCD,WAAiB,OAAO;IACvB,SAAgB,IAAI,CAAC,SAAoB;QACxC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,SAAS,EAAE,OAAO,EAAE,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAA;IAC5E,CAAC;IAFe,YAAI,OAEnB,CAAA;IAWD,IAAiB,SAAS,CAWzB;IAXD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,SAAS,CAAC;YAC5B,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACjC,aAAa,EAAE,6BAAa,CAAC,IAAI;YACjC,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE;YACxB,GAAG,EAAE,SAAG,CAAC,IAAI;YACb,MAAM,EAAE,eAAM,CAAC,IAAI;YACnB,KAAK,EAAE,aAAK,CAAC,IAAI;YACjB,UAAU,EAAE,uBAAoB,CAAC,IAAI;SACrC,CAAC,CAAA;IACH,CAAC,EAXgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAWzB;IACY,YAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAU;QACvE,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACpE,UAAU,EAAE,uBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;KAChD,CAAC,CAAA;AACH,CAAC,EAhCgB,OAAO,uBAAP,OAAO,QAgCvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { isly } from "isly";
|
|
2
|
-
import { Cancel as EntryCancel } from "./Cancel";
|
|
3
|
-
import { Capture as EntryCapture } from "./Capture";
|
|
4
|
-
import { Refund as EntryRefund } from "./Refund";
|
|
5
|
-
import { Unknown as EntryUnknown } from "./Unknown";
|
|
6
|
-
export type Creatable = EntryCancel.Creatable | EntryCapture.Creatable | EntryRefund.Creatable | EntryUnknown.Creatable;
|
|
7
|
-
export declare namespace Creatable {
|
|
8
|
-
const type: isly.Type<EntryCancel.Creatable | EntryCapture.Creatable | EntryRefund.Creatable | EntryUnknown.Creatable>;
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Creatable = void 0;
|
|
4
|
-
const isly_1 = require("isly");
|
|
5
|
-
const Cancel_1 = require("./Cancel");
|
|
6
|
-
const Capture_1 = require("./Capture");
|
|
7
|
-
const Refund_1 = require("./Refund");
|
|
8
|
-
const Unknown_1 = require("./Unknown");
|
|
9
|
-
var Creatable;
|
|
10
|
-
(function (Creatable) {
|
|
11
|
-
Creatable.type = isly_1.isly.union(Cancel_1.Cancel.Creatable.type, Capture_1.Capture.Creatable.type, Refund_1.Refund.Creatable.type, Unknown_1.Unknown.Creatable.type);
|
|
12
|
-
})(Creatable || (exports.Creatable = Creatable = {}));
|
|
13
|
-
//# sourceMappingURL=Creatable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Creatable.js","sourceRoot":"","sources":["../../../../../Settlement/Entry/Legacy/Creatable.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,qCAAgD;AAChD,uCAAmD;AACnD,qCAAgD;AAChD,uCAAmD;AAGnD,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACZ,cAAI,GAAG,WAAI,CAAC,KAAK,CAC7B,eAAW,CAAC,SAAS,CAAC,IAAI,EAC1B,iBAAY,CAAC,SAAS,CAAC,IAAI,EAC3B,eAAW,CAAC,SAAS,CAAC,IAAI,EAC1B,iBAAY,CAAC,SAAS,CAAC,IAAI,CAC3B,CAAA;AACF,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { Acquirer } from "../../../Acquirer";
|
|
3
|
-
import { Amount } from "../../../Amount";
|
|
4
|
-
import { Authorization } from "../../../Authorization";
|
|
5
|
-
import { Merchant } from "../../../Merchant";
|
|
6
|
-
import { Transaction } from "../../../Transaction";
|
|
7
|
-
import { Batch } from "../../Batch";
|
|
8
|
-
import { Fee } from "../../Fee";
|
|
9
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier";
|
|
10
|
-
export interface Refund extends Omit<Refund.Creatable, "settlement"> {
|
|
11
|
-
status: "succeeded" | "failed";
|
|
12
|
-
reason?: string;
|
|
13
|
-
transaction?: Transaction;
|
|
14
|
-
created?: isoly.DateTime;
|
|
15
|
-
settlement?: SettlementIdentifier;
|
|
16
|
-
}
|
|
17
|
-
export declare namespace Refund {
|
|
18
|
-
interface Creatable {
|
|
19
|
-
type: "refund";
|
|
20
|
-
card: string;
|
|
21
|
-
account?: string;
|
|
22
|
-
authorization: Pick<Authorization, "approvalCode">;
|
|
23
|
-
merchant: Merchant;
|
|
24
|
-
acquirer: Acquirer;
|
|
25
|
-
reference: string;
|
|
26
|
-
batch: Batch;
|
|
27
|
-
fee: Fee;
|
|
28
|
-
amount: Amount;
|
|
29
|
-
settlement: SettlementIdentifier;
|
|
30
|
-
}
|
|
31
|
-
function from(refund: Refund.Creatable, transaction: Transaction): Refund;
|
|
32
|
-
namespace Creatable {
|
|
33
|
-
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
34
|
-
}
|
|
35
|
-
const type: import("isly/dist/cjs/object").IslyObject<Refund, Omit<Creatable, "settlement">>;
|
|
36
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Refund = void 0;
|
|
4
|
-
const isoly_1 = require("isoly");
|
|
5
|
-
const isly_1 = require("isly");
|
|
6
|
-
const Acquirer_1 = require("../../../Acquirer");
|
|
7
|
-
const Amount_1 = require("../../../Amount");
|
|
8
|
-
const Merchant_1 = require("../../../Merchant");
|
|
9
|
-
const Transaction_1 = require("../../../Transaction");
|
|
10
|
-
const Batch_1 = require("../../Batch");
|
|
11
|
-
const Fee_1 = require("../../Fee");
|
|
12
|
-
const Identifier_1 = require("../../Identifier");
|
|
13
|
-
var Refund;
|
|
14
|
-
(function (Refund) {
|
|
15
|
-
function from(refund, transaction) {
|
|
16
|
-
return { ...refund, status: "succeeded", transaction, created: isoly_1.isoly.DateTime.now() };
|
|
17
|
-
}
|
|
18
|
-
Refund.from = from;
|
|
19
|
-
let Creatable;
|
|
20
|
-
(function (Creatable) {
|
|
21
|
-
Creatable.type = isly_1.isly.object({
|
|
22
|
-
type: isly_1.isly.string("refund"),
|
|
23
|
-
card: isly_1.isly.string(),
|
|
24
|
-
account: isly_1.isly.string().optional(),
|
|
25
|
-
authorization: isly_1.isly.object({ approvalCode: isly_1.isly.string() }),
|
|
26
|
-
merchant: Merchant_1.Merchant.type,
|
|
27
|
-
acquirer: Acquirer_1.Acquirer.type,
|
|
28
|
-
reference: isly_1.isly.string(),
|
|
29
|
-
fee: Fee_1.Fee.type,
|
|
30
|
-
amount: Amount_1.Amount.type,
|
|
31
|
-
batch: Batch_1.Batch.type,
|
|
32
|
-
settlement: Identifier_1.Identifier.type,
|
|
33
|
-
});
|
|
34
|
-
})(Creatable = Refund.Creatable || (Refund.Creatable = {}));
|
|
35
|
-
Refund.type = Creatable.type.omit(["settlement"]).extend({
|
|
36
|
-
status: isly_1.isly.string(["succeeded", "failed"]),
|
|
37
|
-
reason: isly_1.isly.string().optional(),
|
|
38
|
-
transaction: Transaction_1.Transaction.type.optional(),
|
|
39
|
-
created: isly_1.isly.fromIs("isoly.DateTime", isoly_1.isoly.DateTime.is).optional(),
|
|
40
|
-
settlement: Identifier_1.Identifier.type.optional(),
|
|
41
|
-
});
|
|
42
|
-
})(Refund || (exports.Refund = Refund = {}));
|
|
43
|
-
//# sourceMappingURL=Refund.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Refund.js","sourceRoot":"","sources":["../../../../../Settlement/Entry/Legacy/Refund.ts"],"names":[],"mappings":";;;AAAA,iCAA6B;AAC7B,+BAA2B;AAC3B,gDAA4C;AAC5C,4CAAwC;AAExC,gDAA4C;AAC5C,sDAAkD;AAClD,uCAAmC;AACnC,mCAA+B;AAC/B,iDAAqE;AASrE,IAAiB,MAAM,CAuCtB;AAvCD,WAAiB,MAAM;IActB,SAAgB,IAAI,CAAC,MAAwB,EAAE,WAAwB;QACtE,OAAO,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,aAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,CAAA;IACtF,CAAC;IAFe,WAAI,OAEnB,CAAA;IACD,IAAiB,SAAS,CAczB;IAdD,WAAiB,SAAS;QACZ,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY;YAC1C,IAAI,EAAE,WAAI,CAAC,MAAM,CAAC,QAAQ,CAAC;YAC3B,IAAI,EAAE,WAAI,CAAC,MAAM,EAAE;YACnB,OAAO,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;YACjC,aAAa,EAAE,WAAI,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,WAAI,CAAC,MAAM,EAAE,EAAE,CAAC;YAC3D,QAAQ,EAAE,mBAAQ,CAAC,IAAI;YACvB,QAAQ,EAAE,mBAAQ,CAAC,IAAI;YACvB,SAAS,EAAE,WAAI,CAAC,MAAM,EAAE;YACxB,GAAG,EAAE,SAAG,CAAC,IAAI;YACb,MAAM,EAAE,eAAM,CAAC,IAAI;YACnB,KAAK,EAAE,aAAK,CAAC,IAAI;YACjB,UAAU,EAAE,uBAAoB,CAAC,IAAI;SACrC,CAAC,CAAA;IACH,CAAC,EAdgB,SAAS,GAAT,gBAAS,KAAT,gBAAS,QAczB;IACY,WAAI,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAS;QACtE,MAAM,EAAE,WAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAC5C,MAAM,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,WAAW,EAAE,yBAAW,CAAC,IAAI,CAAC,QAAQ,EAAE;QACxC,OAAO,EAAE,WAAI,CAAC,MAAM,CAAC,gBAAgB,EAAE,aAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACpE,UAAU,EAAE,uBAAoB,CAAC,IAAI,CAAC,QAAQ,EAAE;KAChD,CAAC,CAAA;AACH,CAAC,EAvCgB,MAAM,sBAAN,MAAM,QAuCtB"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { isoly } from "isoly";
|
|
2
|
-
import { Authorization } from "../../../Authorization";
|
|
3
|
-
import { Batch } from "../../Batch";
|
|
4
|
-
import { Identifier as SettlementIdentifier } from "../../Identifier";
|
|
5
|
-
export interface Unknown extends Omit<Unknown.Creatable, "settlement"> {
|
|
6
|
-
status: "succeeded" | "failed";
|
|
7
|
-
reason?: string;
|
|
8
|
-
created?: isoly.DateTime;
|
|
9
|
-
settlement?: SettlementIdentifier;
|
|
10
|
-
}
|
|
11
|
-
export declare namespace Unknown {
|
|
12
|
-
interface Creatable {
|
|
13
|
-
type: "unknown";
|
|
14
|
-
authorization?: Authorization;
|
|
15
|
-
data: Record<string, any>;
|
|
16
|
-
batch: Batch;
|
|
17
|
-
settlement: SettlementIdentifier;
|
|
18
|
-
}
|
|
19
|
-
namespace Creatable {
|
|
20
|
-
const type: import("isly/dist/cjs/object").IslyObject<Creatable, object>;
|
|
21
|
-
}
|
|
22
|
-
function from(creatable: Creatable): Unknown;
|
|
23
|
-
const type: import("isly/dist/cjs/object").IslyObject<Unknown, Omit<Creatable, "settlement">>;
|
|
24
|
-
}
|