@pax2pay/model-banking 0.1.572 → 0.1.574

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 CHANGED
@@ -1,5 +1,6 @@
1
1
  import { isly } from "isly"
2
2
  import { isly as isly2 } from "isly2"
3
+ import { Realm } from "../Realm"
3
4
  import { Stack } from "./Stack"
4
5
 
5
6
  export type Preset = typeof Preset.names[number]
@@ -27,6 +28,21 @@ export namespace Preset {
27
28
  .string<Preset>("value", ...names)
28
29
  .rename("Preset")
29
30
  .describe("Card configuration (iin/scheme/interchange).")
31
+ export const forRealm: Record<Realm, Preset[]> = {
32
+ test: ["test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200"],
33
+ uk: [
34
+ "p2p-diners-175",
35
+ "p2p-diners-200",
36
+ "p2p-mc-200",
37
+ "p2p-visa-bid-115",
38
+ "p2p-visa-bp-140",
39
+ "p2p-visa-cdd-185",
40
+ "p2p-visa-idx-140",
41
+ "p2p-visa-idx-160",
42
+ "p2p-visa-idx-200",
43
+ ],
44
+ eea: [],
45
+ }
30
46
  export const presets: Record<Preset, Stack> = {
31
47
  "p2p-diners-175": "uk-diners-dpg",
32
48
  "p2p-diners-200": "uk-diners-dpg",
@@ -4,13 +4,7 @@ import { Account } from "../../Account"
4
4
 
5
5
  export class Charge {
6
6
  constructor(private readonly client: http.Client) {}
7
- async create(account: string, charge: Account.Charge): 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(account: string, id: string, charge: Account.Charge): Promise<Account.Charge | gracely.Error> {
14
- return this.client.put<Account.Charge>(`/account/${account}/charge/${id}`, charge)
7
+ async replace(account: string, charge: Account.Charge): Promise<Account.Charge | gracely.Error> {
8
+ return this.client.put<Account.Charge>(`/account/${account}/charge/`, charge)
15
9
  }
16
10
  }
@@ -39,7 +39,7 @@ export namespace Charge {
39
39
  }),
40
40
  })
41
41
  }
42
- export type ChargeTransaction = PreTransaction.Incoming & { counterpart: Rail.Address.Internal }
42
+ export type ChargeTransaction = PreTransaction.Incoming & { account: Rail.Address.Internal }
43
43
  export function total(currency: isoly.Currency, charges: Charge): number {
44
44
  return isoly.Currency.add(currency, charges.fx?.amount ?? 0, charges.merchant?.amount ?? 0)
45
45
  }
@@ -1,10 +1,12 @@
1
1
  import { isly } from "isly";
2
2
  import { isly as isly2 } from "isly2";
3
+ import { Realm } from "../Realm";
3
4
  import { Stack } from "./Stack";
4
5
  export type Preset = typeof Preset.names[number];
5
6
  export declare namespace Preset {
6
7
  const names: readonly ["p2p-diners-175", "p2p-diners-200", "p2p-mc-200", "p2p-visa-bid-115", "p2p-visa-bp-140", "p2p-visa-cdd-185", "p2p-visa-idx-140", "p2p-visa-idx-160", "p2p-visa-idx-200", "test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200"];
7
8
  const type: isly.Type<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200">;
8
9
  const type2: isly2.String<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200">;
10
+ const forRealm: Record<Realm, Preset[]>;
9
11
  const presets: Record<Preset, Stack>;
10
12
  }
@@ -26,6 +26,21 @@ var Preset;
26
26
  .string("value", ...Preset.names)
27
27
  .rename("Preset")
28
28
  .describe("Card configuration (iin/scheme/interchange).");
29
+ Preset.forRealm = {
30
+ test: ["test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200"],
31
+ uk: [
32
+ "p2p-diners-175",
33
+ "p2p-diners-200",
34
+ "p2p-mc-200",
35
+ "p2p-visa-bid-115",
36
+ "p2p-visa-bp-140",
37
+ "p2p-visa-cdd-185",
38
+ "p2p-visa-idx-140",
39
+ "p2p-visa-idx-160",
40
+ "p2p-visa-idx-200",
41
+ ],
42
+ eea: [],
43
+ };
29
44
  Preset.presets = {
30
45
  "p2p-diners-175": "uk-diners-dpg",
31
46
  "p2p-diners-200": "uk-diners-dpg",
@@ -1 +1 @@
1
- {"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,iCAAqC;AAMrC,IAAiB,MAAM,CAsCtB;AAtCD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;KACV,CAAA;IACG,WAAI,GAAG,WAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,YAAK,GAAG,YAAK;SACxB,MAAM,CAAS,OAAO,EAAE,GAAG,OAAA,KAAK,CAAC;SACjC,MAAM,CAAC,QAAQ,CAAC;SAChB,QAAQ,CAAC,8CAA8C,CAAC,CAAA;IAC7C,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAA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B,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;KACvC,CAAA;AACF,CAAC,EArDgB,MAAM,sBAAN,MAAM,QAqDtB"}
@@ -4,7 +4,5 @@ import { Account } from "../../Account";
4
4
  export declare class Charge {
5
5
  private readonly client;
6
6
  constructor(client: http.Client);
7
- create(account: string, charge: Account.Charge): 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): Promise<Account.Charge | gracely.Error>;
7
+ replace(account: string, charge: Account.Charge): Promise<Account.Charge | gracely.Error>;
10
8
  }
@@ -6,14 +6,8 @@ class Charge {
6
6
  constructor(client) {
7
7
  this.client = client;
8
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);
9
+ async replace(account, charge) {
10
+ return this.client.put(`/account/${account}/charge/`, charge);
17
11
  }
18
12
  }
19
13
  exports.Charge = Charge;
@@ -1 +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,MAAsB;QACnD,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,CAAC,OAAe,EAAE,EAAU,EAAE,MAAsB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACnF,CAAC;CACD;AAXD,wBAWC"}
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,OAAO,CAAC,OAAe,EAAE,MAAsB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,UAAU,EAAE,MAAM,CAAC,CAAA;IAC9E,CAAC;CACD;AALD,wBAKC"}
@@ -28,7 +28,7 @@ export declare namespace Charge {
28
28
  const type: import("isly/dist/cjs/object").IslyObject<Merchant, object>;
29
29
  }
30
30
  type ChargeTransaction = PreTransaction.Incoming & {
31
- counterpart: Rail.Address.Internal;
31
+ account: Rail.Address.Internal;
32
32
  };
33
33
  function total(currency: isoly.Currency, charges: Charge): number;
34
34
  function toTransactions(charge: Charge, account: string, id: string, currency: isoly.Currency, fxCollectAccount: string): {
@@ -1,10 +1,12 @@
1
1
  import { isly } from "isly";
2
2
  import { isly as isly2 } from "isly2";
3
+ import { Realm } from "../Realm";
3
4
  import { Stack } from "./Stack";
4
5
  export type Preset = typeof Preset.names[number];
5
6
  export declare namespace Preset {
6
7
  const names: readonly ["p2p-diners-175", "p2p-diners-200", "p2p-mc-200", "p2p-visa-bid-115", "p2p-visa-bp-140", "p2p-visa-cdd-185", "p2p-visa-idx-140", "p2p-visa-idx-160", "p2p-visa-idx-200", "test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200"];
7
8
  const type: isly.Type<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200">;
8
9
  const type2: isly2.String<"p2p-diners-175" | "p2p-diners-200" | "p2p-mc-200" | "p2p-visa-bid-115" | "p2p-visa-bp-140" | "p2p-visa-cdd-185" | "p2p-visa-idx-140" | "p2p-visa-idx-160" | "p2p-visa-idx-200" | "test-pg-150" | "test-pg-200" | "test-ta-mc-200" | "test-ta-pg-200" | "test-ta-pg-bc-200">;
10
+ const forRealm: Record<Realm, Preset[]>;
9
11
  const presets: Record<Preset, Stack>;
10
12
  }
@@ -23,6 +23,21 @@ export var Preset;
23
23
  .string("value", ...Preset.names)
24
24
  .rename("Preset")
25
25
  .describe("Card configuration (iin/scheme/interchange).");
26
+ Preset.forRealm = {
27
+ test: ["test-pg-150", "test-pg-200", "test-ta-mc-200", "test-ta-pg-200", "test-ta-pg-bc-200"],
28
+ uk: [
29
+ "p2p-diners-175",
30
+ "p2p-diners-200",
31
+ "p2p-mc-200",
32
+ "p2p-visa-bid-115",
33
+ "p2p-visa-bp-140",
34
+ "p2p-visa-cdd-185",
35
+ "p2p-visa-idx-140",
36
+ "p2p-visa-idx-160",
37
+ "p2p-visa-idx-200",
38
+ ],
39
+ eea: [],
40
+ };
26
41
  Preset.presets = {
27
42
  "p2p-diners-175": "uk-diners-dpg",
28
43
  "p2p-diners-200": "uk-diners-dpg",
@@ -1 +1 @@
1
- {"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,OAAO,CAAA;AAMrC,MAAM,KAAW,MAAM,CAsCtB;AAtCD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,gBAAgB;QAChB,gBAAgB;QAChB,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;QACjB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,kBAAkB;QAClB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,mBAAmB;KACV,CAAA;IACG,WAAI,GAAG,IAAI,CAAC,MAAM,CAAS,OAAA,KAAK,CAAC,CAAA;IACjC,YAAK,GAAG,KAAK;SACxB,MAAM,CAAS,OAAO,EAAE,GAAG,OAAA,KAAK,CAAC;SACjC,MAAM,CAAC,QAAQ,CAAC;SAChB,QAAQ,CAAC,8CAA8C,CAAC,CAAA;IAC7C,cAAO,GAA0B;QAC7C,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE,mBAAmB;QACjC,kBAAkB,EAAE,qBAAqB;QACzC,iBAAiB,EAAE,qBAAqB;QACxC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,kBAAkB,EAAE,qBAAqB;QACzC,aAAa,EAAE,cAAc;QAC7B,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;KACvC,CAAA;AACF,CAAC,EAtCgB,MAAM,KAAN,MAAM,QAsCtB"}
1
+ {"version":3,"file":"Preset.js","sourceRoot":"","sources":["../../../Card/Preset.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;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,mBAAmB,EAAE,kBAAkB;KACvC,CAAA;AACF,CAAC,EArDgB,MAAM,KAAN,MAAM,QAqDtB"}
@@ -4,7 +4,5 @@ import { Account } from "../../Account";
4
4
  export declare class Charge {
5
5
  private readonly client;
6
6
  constructor(client: http.Client);
7
- create(account: string, charge: Account.Charge): 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): Promise<Account.Charge | gracely.Error>;
7
+ replace(account: string, charge: Account.Charge): Promise<Account.Charge | gracely.Error>;
10
8
  }
@@ -3,14 +3,8 @@ export class Charge {
3
3
  constructor(client) {
4
4
  this.client = client;
5
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);
6
+ async replace(account, charge) {
7
+ return this.client.put(`/account/${account}/charge/`, charge);
14
8
  }
15
9
  }
16
10
  //# sourceMappingURL=Charge.js.map
@@ -1 +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,MAAsB;QACnD,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,CAAC,OAAe,EAAE,EAAU,EAAE,MAAsB;QAChE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,WAAW,EAAE,EAAE,EAAE,MAAM,CAAC,CAAA;IACnF,CAAC;CACD"}
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,OAAO,CAAC,OAAe,EAAE,MAAsB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAiB,YAAY,OAAO,UAAU,EAAE,MAAM,CAAC,CAAA;IAC9E,CAAC;CACD"}
@@ -28,7 +28,7 @@ export declare namespace Charge {
28
28
  const type: import("isly/dist/cjs/object").IslyObject<Merchant, object>;
29
29
  }
30
30
  type ChargeTransaction = PreTransaction.Incoming & {
31
- counterpart: Rail.Address.Internal;
31
+ account: Rail.Address.Internal;
32
32
  };
33
33
  function total(currency: isoly.Currency, charges: Charge): number;
34
34
  function toTransactions(charge: Charge, account: string, id: string, currency: isoly.Currency, fxCollectAccount: string): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.572",
3
+ "version": "0.1.574",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",