@pax2pay/model-banking 0.1.544 → 0.1.546
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/Client/Accounts/Charge.ts +20 -0
- package/Client/Accounts/index.ts +3 -0
- package/Settlement/Total.ts +33 -17
- package/dist/cjs/Client/Accounts/Charge.d.ts +10 -0
- package/dist/cjs/Client/Accounts/Charge.js +20 -0
- package/dist/cjs/Client/Accounts/Charge.js.map +1 -0
- package/dist/cjs/Client/Accounts/index.d.ts +2 -0
- package/dist/cjs/Client/Accounts/index.js +3 -0
- package/dist/cjs/Client/Accounts/index.js.map +1 -1
- package/dist/cjs/Settlement/Total.d.ts +17 -6
- package/dist/cjs/Settlement/Total.js +32 -13
- package/dist/cjs/Settlement/Total.js.map +1 -1
- package/dist/mjs/Client/Accounts/Charge.d.ts +10 -0
- package/dist/mjs/Client/Accounts/Charge.js +16 -0
- package/dist/mjs/Client/Accounts/Charge.js.map +1 -0
- package/dist/mjs/Client/Accounts/index.d.ts +2 -0
- package/dist/mjs/Client/Accounts/index.js +3 -0
- package/dist/mjs/Client/Accounts/index.js.map +1 -1
- package/dist/mjs/Settlement/Total.d.ts +17 -6
- package/dist/mjs/Settlement/Total.js +32 -13
- package/dist/mjs/Settlement/Total.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { gracely } from "gracely"
|
|
2
|
+
import { http } from "cloudly-http"
|
|
3
|
+
import { Account } from "../../Account"
|
|
4
|
+
|
|
5
|
+
export class Charge {
|
|
6
|
+
constructor(private readonly client: http.Client) {}
|
|
7
|
+
async create(account: string, charge: Account.Charge.Creatable): Promise<Account.Charge | gracely.Error> {
|
|
8
|
+
return this.client.post<Account.Charge>(`/account/${account}/charge`, charge)
|
|
9
|
+
}
|
|
10
|
+
async remove(account: string, id: string): Promise<Account.Charge | gracely.Error> {
|
|
11
|
+
return this.client.delete<Account.Charge>(`/account/${account}/charge/${id}`)
|
|
12
|
+
}
|
|
13
|
+
async replace(
|
|
14
|
+
account: string,
|
|
15
|
+
id: string,
|
|
16
|
+
charge: Account.Charge.Creatable
|
|
17
|
+
): Promise<Account.Charge | gracely.Error> {
|
|
18
|
+
return this.client.put<Account.Charge>(`/account/${account}/charge/${id}`, charge)
|
|
19
|
+
}
|
|
20
|
+
}
|
package/Client/Accounts/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { gracely } from "gracely"
|
|
|
2
2
|
import { http } from "cloudly-http"
|
|
3
3
|
import { Account } from "../../Account"
|
|
4
4
|
import { Buffer } from "./Buffer"
|
|
5
|
+
import { Charge } from "./Charge"
|
|
5
6
|
import { Counterparts } from "./Counterparts"
|
|
6
7
|
import { Details } from "./Details"
|
|
7
8
|
import { History } from "./History"
|
|
@@ -10,6 +11,7 @@ import { Status } from "./Status"
|
|
|
10
11
|
|
|
11
12
|
export class Accounts {
|
|
12
13
|
readonly buffer: Buffer
|
|
14
|
+
readonly charge: Charge
|
|
13
15
|
readonly details: Details
|
|
14
16
|
readonly rules: Rules
|
|
15
17
|
readonly status: Status
|
|
@@ -17,6 +19,7 @@ export class Accounts {
|
|
|
17
19
|
readonly history: History
|
|
18
20
|
constructor(private readonly client: http.Client) {
|
|
19
21
|
this.buffer = new Buffer(this.client)
|
|
22
|
+
this.charge = new Charge(this.client)
|
|
20
23
|
this.details = new Details(this.client)
|
|
21
24
|
this.rules = new Rules(this.client)
|
|
22
25
|
this.status = new Status(this.client)
|
package/Settlement/Total.ts
CHANGED
|
@@ -1,30 +1,37 @@
|
|
|
1
1
|
import { isoly } from "isoly"
|
|
2
2
|
import { isly } from "isly"
|
|
3
|
+
import { Supplier } from "../Supplier"
|
|
3
4
|
import { Amount } from "./Amount"
|
|
4
5
|
|
|
5
6
|
export interface Total {
|
|
6
7
|
expected: Amount
|
|
7
8
|
outcome?: Amount
|
|
8
|
-
collected?:
|
|
9
|
+
collected?: Total.Collected
|
|
9
10
|
settled?: Total.Settled
|
|
10
11
|
}
|
|
11
12
|
export namespace Total {
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
export type Collected = { transactions: Collected.Transaction | Collected.Transaction[] }
|
|
14
|
+
export namespace Collected {
|
|
15
|
+
export type Transaction = { net: string; fee?: string; supplier?: Supplier }
|
|
16
|
+
export namespace Transaction {
|
|
17
|
+
export const type = isly.object<Transaction>({
|
|
18
|
+
net: isly.string(),
|
|
19
|
+
fee: isly.string().optional(),
|
|
20
|
+
supplier: Supplier.type.optional(),
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
export const type = isly.object<Collected>({ transactions: isly.union(Transaction.type, Transaction.type.array()) })
|
|
15
24
|
}
|
|
16
|
-
export
|
|
25
|
+
export type Settled = { net: number; transactions: string[]; fee?: string }
|
|
26
|
+
export const Settled = isly.object<Settled>({
|
|
27
|
+
net: isly.number(),
|
|
28
|
+
transactions: isly.string().array(),
|
|
29
|
+
fee: isly.string().optional(),
|
|
30
|
+
})
|
|
17
31
|
export const type = isly.object<Total>({
|
|
18
32
|
expected: Amount.type,
|
|
19
33
|
outcome: Amount.type.optional(),
|
|
20
|
-
collected:
|
|
21
|
-
.object<Required<Total>["collected"]>({
|
|
22
|
-
transactions: isly.object<Required<Total>["collected"]["transactions"]>({
|
|
23
|
-
net: isly.string(),
|
|
24
|
-
fee: isly.string().optional(),
|
|
25
|
-
}),
|
|
26
|
-
})
|
|
27
|
-
.optional(),
|
|
34
|
+
collected: Collected.type.optional(),
|
|
28
35
|
settled: Settled.optional(),
|
|
29
36
|
})
|
|
30
37
|
export function create(): Total {
|
|
@@ -47,10 +54,19 @@ export namespace Total {
|
|
|
47
54
|
addend.expected && (result.expected = Amount.add(currency, result.expected, addend.expected))
|
|
48
55
|
if (result.outcome || addend.outcome)
|
|
49
56
|
result.outcome = Amount.add(currency, result.outcome ?? { net: 0, fee: { other: 0 } }, addend.outcome ?? {})
|
|
50
|
-
if (result.collected || addend.collected)
|
|
51
|
-
result.collected
|
|
52
|
-
|
|
53
|
-
|
|
57
|
+
if (result.collected || addend.collected) {
|
|
58
|
+
const transactions1 = Array.isArray(result.collected?.transactions)
|
|
59
|
+
? result.collected.transactions
|
|
60
|
+
: result.collected?.transactions
|
|
61
|
+
? [result.collected.transactions]
|
|
62
|
+
: []
|
|
63
|
+
const transactions2 = Array.isArray(addend.collected?.transactions)
|
|
64
|
+
? addend.collected.transactions
|
|
65
|
+
: addend.collected?.transactions
|
|
66
|
+
? [addend.collected.transactions]
|
|
67
|
+
: []
|
|
68
|
+
result.collected = { transactions: [...transactions1, ...transactions2] }
|
|
69
|
+
}
|
|
54
70
|
if (result.settled || addend.settled)
|
|
55
71
|
result.settled = {
|
|
56
72
|
net: addend.settled?.net ?? result.settled?.net ?? 0,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Account } from "../../Account";
|
|
4
|
+
export declare class Charge {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
create(account: string, charge: Account.Charge.Creatable): Promise<Account.Charge | gracely.Error>;
|
|
8
|
+
remove(account: string, id: string): Promise<Account.Charge | gracely.Error>;
|
|
9
|
+
replace(account: string, id: string, charge: Account.Charge.Creatable): Promise<Account.Charge | gracely.Error>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Charge = void 0;
|
|
4
|
+
class Charge {
|
|
5
|
+
client;
|
|
6
|
+
constructor(client) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
}
|
|
9
|
+
async create(account, charge) {
|
|
10
|
+
return this.client.post(`/account/${account}/charge`, charge);
|
|
11
|
+
}
|
|
12
|
+
async remove(account, id) {
|
|
13
|
+
return this.client.delete(`/account/${account}/charge/${id}`);
|
|
14
|
+
}
|
|
15
|
+
async replace(account, id, charge) {
|
|
16
|
+
return this.client.put(`/account/${account}/charge/${id}`, charge);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Charge = Charge;
|
|
20
|
+
//# sourceMappingURL=Charge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Charge.js","sourceRoot":"","sources":["../../../../Client/Accounts/Charge.ts"],"names":[],"mappings":";;;AAIA,MAAa,MAAM;IACW;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,MAAgC;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAiB,YAAY,OAAO,SAAS,EAAE,MAAM,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,EAAU;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,OAAO,CACZ,OAAe,EACf,EAAU,EACV,MAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACnF,CAAC;CACD;AAfD,wBAeC"}
|
|
@@ -2,6 +2,7 @@ import { gracely } from "gracely";
|
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
3
|
import { Account } from "../../Account";
|
|
4
4
|
import { Buffer } from "./Buffer";
|
|
5
|
+
import { Charge } from "./Charge";
|
|
5
6
|
import { Counterparts } from "./Counterparts";
|
|
6
7
|
import { Details } from "./Details";
|
|
7
8
|
import { History } from "./History";
|
|
@@ -10,6 +11,7 @@ import { Status } from "./Status";
|
|
|
10
11
|
export declare class Accounts {
|
|
11
12
|
private readonly client;
|
|
12
13
|
readonly buffer: Buffer;
|
|
14
|
+
readonly charge: Charge;
|
|
13
15
|
readonly details: Details;
|
|
14
16
|
readonly rules: Rules;
|
|
15
17
|
readonly status: Status;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Accounts = void 0;
|
|
4
4
|
const Buffer_1 = require("./Buffer");
|
|
5
|
+
const Charge_1 = require("./Charge");
|
|
5
6
|
const Counterparts_1 = require("./Counterparts");
|
|
6
7
|
const Details_1 = require("./Details");
|
|
7
8
|
const History_1 = require("./History");
|
|
@@ -10,6 +11,7 @@ const Status_1 = require("./Status");
|
|
|
10
11
|
class Accounts {
|
|
11
12
|
client;
|
|
12
13
|
buffer;
|
|
14
|
+
charge;
|
|
13
15
|
details;
|
|
14
16
|
rules;
|
|
15
17
|
status;
|
|
@@ -18,6 +20,7 @@ class Accounts {
|
|
|
18
20
|
constructor(client) {
|
|
19
21
|
this.client = client;
|
|
20
22
|
this.buffer = new Buffer_1.Buffer(this.client);
|
|
23
|
+
this.charge = new Charge_1.Charge(this.client);
|
|
21
24
|
this.details = new Details_1.Details(this.client);
|
|
22
25
|
this.rules = new Rules_1.Rules(this.client);
|
|
23
26
|
this.status = new Status_1.Status(this.client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":";;;AAGA,qCAAiC;AACjC,iDAA6C;AAC7C,uCAAmC;AACnC,uCAAmC;AACnC,mCAA+B;AAC/B,qCAAiC;AAEjC,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":";;;AAGA,qCAAiC;AACjC,qCAAiC;AACjC,iDAA6C;AAC7C,uCAAmC;AACnC,uCAAmC;AACnC,mCAA+B;AAC/B,qCAAiC;AAEjC,MAAa,QAAQ;IAQS;IAPpB,MAAM,CAAQ;IACd,MAAM,CAAQ;IACd,OAAO,CAAS;IAChB,KAAK,CAAO;IACZ,MAAM,CAAQ;IACd,YAAY,CAAc;IAC1B,OAAO,CAAS;IACzB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,YAAY,OAAO,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD;AA/BD,4BA+BC"}
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { Supplier } from "../Supplier";
|
|
2
3
|
import { Amount } from "./Amount";
|
|
3
4
|
export interface Total {
|
|
4
5
|
expected: Amount;
|
|
5
6
|
outcome?: Amount;
|
|
6
|
-
collected?:
|
|
7
|
-
transactions: {
|
|
8
|
-
net: string;
|
|
9
|
-
fee?: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
7
|
+
collected?: Total.Collected;
|
|
12
8
|
settled?: Total.Settled;
|
|
13
9
|
}
|
|
14
10
|
export declare namespace Total {
|
|
11
|
+
type Collected = {
|
|
12
|
+
transactions: Collected.Transaction | Collected.Transaction[];
|
|
13
|
+
};
|
|
14
|
+
namespace Collected {
|
|
15
|
+
type Transaction = {
|
|
16
|
+
net: string;
|
|
17
|
+
fee?: string;
|
|
18
|
+
supplier?: Supplier;
|
|
19
|
+
};
|
|
20
|
+
namespace Transaction {
|
|
21
|
+
const type: import("isly/dist/cjs/object").IslyObject<Transaction, object>;
|
|
22
|
+
}
|
|
23
|
+
const type: import("isly/dist/cjs/object").IslyObject<Collected, object>;
|
|
24
|
+
}
|
|
15
25
|
type Settled = {
|
|
16
26
|
net: number;
|
|
17
27
|
transactions: string[];
|
|
28
|
+
fee?: string;
|
|
18
29
|
};
|
|
19
30
|
const Settled: import("isly/dist/cjs/object").IslyObject<Settled, object>;
|
|
20
31
|
const type: import("isly/dist/cjs/object").IslyObject<Total, object>;
|
|
@@ -2,21 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Total = void 0;
|
|
4
4
|
const isly_1 = require("isly");
|
|
5
|
+
const Supplier_1 = require("../Supplier");
|
|
5
6
|
const Amount_1 = require("./Amount");
|
|
6
7
|
var Total;
|
|
7
8
|
(function (Total) {
|
|
8
|
-
|
|
9
|
+
let Collected;
|
|
10
|
+
(function (Collected) {
|
|
11
|
+
let Transaction;
|
|
12
|
+
(function (Transaction) {
|
|
13
|
+
Transaction.type = isly_1.isly.object({
|
|
14
|
+
net: isly_1.isly.string(),
|
|
15
|
+
fee: isly_1.isly.string().optional(),
|
|
16
|
+
supplier: Supplier_1.Supplier.type.optional(),
|
|
17
|
+
});
|
|
18
|
+
})(Transaction = Collected.Transaction || (Collected.Transaction = {}));
|
|
19
|
+
Collected.type = isly_1.isly.object({ transactions: isly_1.isly.union(Transaction.type, Transaction.type.array()) });
|
|
20
|
+
})(Collected = Total.Collected || (Total.Collected = {}));
|
|
21
|
+
Total.Settled = isly_1.isly.object({
|
|
22
|
+
net: isly_1.isly.number(),
|
|
23
|
+
transactions: isly_1.isly.string().array(),
|
|
24
|
+
fee: isly_1.isly.string().optional(),
|
|
25
|
+
});
|
|
9
26
|
Total.type = isly_1.isly.object({
|
|
10
27
|
expected: Amount_1.Amount.type,
|
|
11
28
|
outcome: Amount_1.Amount.type.optional(),
|
|
12
|
-
collected:
|
|
13
|
-
.object({
|
|
14
|
-
transactions: isly_1.isly.object({
|
|
15
|
-
net: isly_1.isly.string(),
|
|
16
|
-
fee: isly_1.isly.string().optional(),
|
|
17
|
-
}),
|
|
18
|
-
})
|
|
19
|
-
.optional(),
|
|
29
|
+
collected: Collected.type.optional(),
|
|
20
30
|
settled: Total.Settled.optional(),
|
|
21
31
|
});
|
|
22
32
|
function create() {
|
|
@@ -41,10 +51,19 @@ var Total;
|
|
|
41
51
|
addend.expected && (result.expected = Amount_1.Amount.add(currency, result.expected, addend.expected));
|
|
42
52
|
if (result.outcome || addend.outcome)
|
|
43
53
|
result.outcome = Amount_1.Amount.add(currency, result.outcome ?? { net: 0, fee: { other: 0 } }, addend.outcome ?? {});
|
|
44
|
-
if (result.collected || addend.collected)
|
|
45
|
-
result.collected
|
|
46
|
-
|
|
47
|
-
|
|
54
|
+
if (result.collected || addend.collected) {
|
|
55
|
+
const transactions1 = Array.isArray(result.collected?.transactions)
|
|
56
|
+
? result.collected.transactions
|
|
57
|
+
: result.collected?.transactions
|
|
58
|
+
? [result.collected.transactions]
|
|
59
|
+
: [];
|
|
60
|
+
const transactions2 = Array.isArray(addend.collected?.transactions)
|
|
61
|
+
? addend.collected.transactions
|
|
62
|
+
: addend.collected?.transactions
|
|
63
|
+
? [addend.collected.transactions]
|
|
64
|
+
: [];
|
|
65
|
+
result.collected = { transactions: [...transactions1, ...transactions2] };
|
|
66
|
+
}
|
|
48
67
|
if (result.settled || addend.settled)
|
|
49
68
|
result.settled = {
|
|
50
69
|
net: addend.settled?.net ?? result.settled?.net ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Total.js","sourceRoot":"","sources":["../../../Settlement/Total.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAC3B,qCAAiC;AAQjC,IAAiB,KAAK,
|
|
1
|
+
{"version":3,"file":"Total.js","sourceRoot":"","sources":["../../../Settlement/Total.ts"],"names":[],"mappings":";;;AACA,+BAA2B;AAC3B,0CAAsC;AACtC,qCAAiC;AAQjC,IAAiB,KAAK,CAiErB;AAjED,WAAiB,KAAK;IAErB,IAAiB,SAAS,CAUzB;IAVD,WAAiB,SAAS;QAEzB,IAAiB,WAAW,CAM3B;QAND,WAAiB,WAAW;YACd,gBAAI,GAAG,WAAI,CAAC,MAAM,CAAc;gBAC5C,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE;gBAClB,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC7B,QAAQ,EAAE,mBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;aAClC,CAAC,CAAA;QACH,CAAC,EANgB,WAAW,GAAX,qBAAW,KAAX,qBAAW,QAM3B;QACY,cAAI,GAAG,WAAI,CAAC,MAAM,CAAY,EAAE,YAAY,EAAE,WAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAA;IACrH,CAAC,EAVgB,SAAS,GAAT,eAAS,KAAT,eAAS,QAUzB;IAEY,aAAO,GAAG,WAAI,CAAC,MAAM,CAAU;QAC3C,GAAG,EAAE,WAAI,CAAC,MAAM,EAAE;QAClB,YAAY,EAAE,WAAI,CAAC,MAAM,EAAE,CAAC,KA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IAAI,CAAC;gBACpD,YAAY,EAAE,MAAM,CAAC,OAAO,EAAE,YAAY,IAAI,MAAM,CAAC,OAAO,EAAE,YAAY,IAAI,EAAE;aAChF,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IAxBe,SAAG,MAwBlB,CAAA;AACF,CAAC,EAjEgB,KAAK,qBAAL,KAAK,QAiErB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { gracely } from "gracely";
|
|
2
|
+
import { http } from "cloudly-http";
|
|
3
|
+
import { Account } from "../../Account";
|
|
4
|
+
export declare class Charge {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: http.Client);
|
|
7
|
+
create(account: string, charge: Account.Charge.Creatable): Promise<Account.Charge | gracely.Error>;
|
|
8
|
+
remove(account: string, id: string): Promise<Account.Charge | gracely.Error>;
|
|
9
|
+
replace(account: string, id: string, charge: Account.Charge.Creatable): Promise<Account.Charge | gracely.Error>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class Charge {
|
|
2
|
+
client;
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async create(account, charge) {
|
|
7
|
+
return this.client.post(`/account/${account}/charge`, charge);
|
|
8
|
+
}
|
|
9
|
+
async remove(account, id) {
|
|
10
|
+
return this.client.delete(`/account/${account}/charge/${id}`);
|
|
11
|
+
}
|
|
12
|
+
async replace(account, id, charge) {
|
|
13
|
+
return this.client.put(`/account/${account}/charge/${id}`, charge);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=Charge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Charge.js","sourceRoot":"","sources":["../../../../Client/Accounts/Charge.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,MAAM;IACW;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IACpD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,MAAgC;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAiB,YAAY,OAAO,SAAS,EAAE,MAAM,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,EAAU;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,CAAC,CAAA;IAC9E,CAAC;IACD,KAAK,CAAC,OAAO,CACZ,OAAe,EACf,EAAU,EACV,MAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACnF,CAAC;CACD"}
|
|
@@ -2,6 +2,7 @@ import { gracely } from "gracely";
|
|
|
2
2
|
import { http } from "cloudly-http";
|
|
3
3
|
import { Account } from "../../Account";
|
|
4
4
|
import { Buffer } from "./Buffer";
|
|
5
|
+
import { Charge } from "./Charge";
|
|
5
6
|
import { Counterparts } from "./Counterparts";
|
|
6
7
|
import { Details } from "./Details";
|
|
7
8
|
import { History } from "./History";
|
|
@@ -10,6 +11,7 @@ import { Status } from "./Status";
|
|
|
10
11
|
export declare class Accounts {
|
|
11
12
|
private readonly client;
|
|
12
13
|
readonly buffer: Buffer;
|
|
14
|
+
readonly charge: Charge;
|
|
13
15
|
readonly details: Details;
|
|
14
16
|
readonly rules: Rules;
|
|
15
17
|
readonly status: Status;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Buffer } from "./Buffer";
|
|
2
|
+
import { Charge } from "./Charge";
|
|
2
3
|
import { Counterparts } from "./Counterparts";
|
|
3
4
|
import { Details } from "./Details";
|
|
4
5
|
import { History } from "./History";
|
|
@@ -7,6 +8,7 @@ import { Status } from "./Status";
|
|
|
7
8
|
export class Accounts {
|
|
8
9
|
client;
|
|
9
10
|
buffer;
|
|
11
|
+
charge;
|
|
10
12
|
details;
|
|
11
13
|
rules;
|
|
12
14
|
status;
|
|
@@ -15,6 +17,7 @@ export class Accounts {
|
|
|
15
17
|
constructor(client) {
|
|
16
18
|
this.client = client;
|
|
17
19
|
this.buffer = new Buffer(this.client);
|
|
20
|
+
this.charge = new Charge(this.client);
|
|
18
21
|
this.details = new Details(this.client);
|
|
19
22
|
this.rules = new Rules(this.client);
|
|
20
23
|
this.status = new Status(this.client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,OAAO,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../Client/Accounts/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,OAAO,QAAQ;IAQS;IAPpB,MAAM,CAAQ;IACd,MAAM,CAAQ;IACd,OAAO,CAAS;IAChB,KAAK,CAAO;IACZ,MAAM,CAAQ;IACd,YAAY,CAAc;IAC1B,OAAO,CAAS;IACzB,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;QAC/C,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACvC,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACrC,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,YAAY,OAAO,EAAE,CAAC,CAAA;IACvD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
|
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
import { isoly } from "isoly";
|
|
2
|
+
import { Supplier } from "../Supplier";
|
|
2
3
|
import { Amount } from "./Amount";
|
|
3
4
|
export interface Total {
|
|
4
5
|
expected: Amount;
|
|
5
6
|
outcome?: Amount;
|
|
6
|
-
collected?:
|
|
7
|
-
transactions: {
|
|
8
|
-
net: string;
|
|
9
|
-
fee?: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
7
|
+
collected?: Total.Collected;
|
|
12
8
|
settled?: Total.Settled;
|
|
13
9
|
}
|
|
14
10
|
export declare namespace Total {
|
|
11
|
+
type Collected = {
|
|
12
|
+
transactions: Collected.Transaction | Collected.Transaction[];
|
|
13
|
+
};
|
|
14
|
+
namespace Collected {
|
|
15
|
+
type Transaction = {
|
|
16
|
+
net: string;
|
|
17
|
+
fee?: string;
|
|
18
|
+
supplier?: Supplier;
|
|
19
|
+
};
|
|
20
|
+
namespace Transaction {
|
|
21
|
+
const type: import("isly/dist/cjs/object").IslyObject<Transaction, object>;
|
|
22
|
+
}
|
|
23
|
+
const type: import("isly/dist/cjs/object").IslyObject<Collected, object>;
|
|
24
|
+
}
|
|
15
25
|
type Settled = {
|
|
16
26
|
net: number;
|
|
17
27
|
transactions: string[];
|
|
28
|
+
fee?: string;
|
|
18
29
|
};
|
|
19
30
|
const Settled: import("isly/dist/cjs/object").IslyObject<Settled, object>;
|
|
20
31
|
const type: import("isly/dist/cjs/object").IslyObject<Total, object>;
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { isly } from "isly";
|
|
2
|
+
import { Supplier } from "../Supplier";
|
|
2
3
|
import { Amount } from "./Amount";
|
|
3
4
|
export var Total;
|
|
4
5
|
(function (Total) {
|
|
5
|
-
|
|
6
|
+
let Collected;
|
|
7
|
+
(function (Collected) {
|
|
8
|
+
let Transaction;
|
|
9
|
+
(function (Transaction) {
|
|
10
|
+
Transaction.type = isly.object({
|
|
11
|
+
net: isly.string(),
|
|
12
|
+
fee: isly.string().optional(),
|
|
13
|
+
supplier: Supplier.type.optional(),
|
|
14
|
+
});
|
|
15
|
+
})(Transaction = Collected.Transaction || (Collected.Transaction = {}));
|
|
16
|
+
Collected.type = isly.object({ transactions: isly.union(Transaction.type, Transaction.type.array()) });
|
|
17
|
+
})(Collected = Total.Collected || (Total.Collected = {}));
|
|
18
|
+
Total.Settled = isly.object({
|
|
19
|
+
net: isly.number(),
|
|
20
|
+
transactions: isly.string().array(),
|
|
21
|
+
fee: isly.string().optional(),
|
|
22
|
+
});
|
|
6
23
|
Total.type = isly.object({
|
|
7
24
|
expected: Amount.type,
|
|
8
25
|
outcome: Amount.type.optional(),
|
|
9
|
-
collected:
|
|
10
|
-
.object({
|
|
11
|
-
transactions: isly.object({
|
|
12
|
-
net: isly.string(),
|
|
13
|
-
fee: isly.string().optional(),
|
|
14
|
-
}),
|
|
15
|
-
})
|
|
16
|
-
.optional(),
|
|
26
|
+
collected: Collected.type.optional(),
|
|
17
27
|
settled: Total.Settled.optional(),
|
|
18
28
|
});
|
|
19
29
|
function create() {
|
|
@@ -38,10 +48,19 @@ export var Total;
|
|
|
38
48
|
addend.expected && (result.expected = Amount.add(currency, result.expected, addend.expected));
|
|
39
49
|
if (result.outcome || addend.outcome)
|
|
40
50
|
result.outcome = Amount.add(currency, result.outcome ?? { net: 0, fee: { other: 0 } }, addend.outcome ?? {});
|
|
41
|
-
if (result.collected || addend.collected)
|
|
42
|
-
result.collected
|
|
43
|
-
|
|
44
|
-
|
|
51
|
+
if (result.collected || addend.collected) {
|
|
52
|
+
const transactions1 = Array.isArray(result.collected?.transactions)
|
|
53
|
+
? result.collected.transactions
|
|
54
|
+
: result.collected?.transactions
|
|
55
|
+
? [result.collected.transactions]
|
|
56
|
+
: [];
|
|
57
|
+
const transactions2 = Array.isArray(addend.collected?.transactions)
|
|
58
|
+
? addend.collected.transactions
|
|
59
|
+
: addend.collected?.transactions
|
|
60
|
+
? [addend.collected.transactions]
|
|
61
|
+
: [];
|
|
62
|
+
result.collected = { transactions: [...transactions1, ...transactions2] };
|
|
63
|
+
}
|
|
45
64
|
if (result.settled || addend.settled)
|
|
46
65
|
result.settled = {
|
|
47
66
|
net: addend.settled?.net ?? result.settled?.net ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Total.js","sourceRoot":"","sources":["../../../Settlement/Total.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAQjC,MAAM,KAAW,KAAK,
|
|
1
|
+
{"version":3,"file":"Total.js","sourceRoot":"","sources":["../../../Settlement/Total.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAQjC,MAAM,KAAW,KAAK,CAiErB;AAjED,WAAiB,KAAK;IAErB,IAAiB,SAAS,CAUzB;IAVD,WAAiB,SAAS;QAEzB,IAAiB,WAAW,CAM3B;QAND,WAAiB,WAAW;YACd,gBAAI,GAAG,IAAI,CAAC,MAAM,CAAc;gBAC5C,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;gBAClB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAC7B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE;aAClC,CAAC,CAAA;QACH,CAAC,EANgB,WAAW,GAAX,qBAAW,KAAX,qBAAW,QAM3B;QACY,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY,EAAE,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAA;IACrH,CAAC,EAVgB,SAAS,GAAT,eAAS,KAAT,eAAS,QAUzB;IAEY,aAAO,GAAG,IAAI,CAAC,MAAM,CAAU;QAC3C,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;QAClB,YAAY,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;QACnC,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,Q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