@pax2pay/model-banking 0.1.355 → 0.1.357

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
@@ -14,6 +14,7 @@ export namespace Preset {
14
14
  "test-ta-pg-200",
15
15
  "test-ta-mc-200",
16
16
  "test-diners-200",
17
+ "test-diners-202",
17
18
  ] as const
18
19
  export const type = isly.string<Preset>(names)
19
20
  export const is = type.is
@@ -21,6 +22,7 @@ export namespace Preset {
21
22
  export const presets: Record<Preset, Stack> = {
22
23
  "p2p-mc-200": "uk-mc-tpl-marqeta",
23
24
  "test-diners-200": "testUK-diners-dpg",
25
+ "test-diners-202": "testUK-diners-dpg",
24
26
  "test-mc-200": "testUK-marqeta",
25
27
  "test-ta-mq-200": "testUK-tpl-marqeta",
26
28
  "test-pg-200": "test-paxgiro",
@@ -19,6 +19,9 @@ export class Accounts extends rest.Collection<gracely.Error> {
19
19
  async create(account: Account.Creatable): Promise<Account | gracely.Error> {
20
20
  return this.client.post<Account>("/account", account)
21
21
  }
22
+ async get(account: string): Promise<Account | gracely.Error> {
23
+ return this.client.get<Account>(`/account/${account}`)
24
+ }
22
25
  async list(options?: {
23
26
  limit?: string
24
27
  cursor?: string
@@ -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-ta-mq-200", "test-pg-200", "test-pg-150", "test-ta-pg-200", "test-ta-mc-200", "test-diners-200"];
6
- const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-pg-150" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200">;
7
- const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-pg-150" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200">;
5
+ const names: readonly ["p2p-mc-200", "test-mc-200", "test-ta-mq-200", "test-pg-200", "test-pg-150", "test-ta-pg-200", "test-ta-mc-200", "test-diners-200", "test-diners-202"];
6
+ const type: isly.Type<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-pg-150" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200" | "test-diners-202">;
7
+ const is: isly.Type.IsFunction<"p2p-mc-200" | "test-mc-200" | "test-ta-mq-200" | "test-pg-200" | "test-pg-150" | "test-ta-pg-200" | "test-ta-mc-200" | "test-diners-200" | "test-diners-202">;
8
8
  const flaw: isly.Type.FlawFunction;
9
9
  const presets: Record<Preset, Stack>;
10
10
  }
@@ -10,6 +10,7 @@ export var Preset;
10
10
  "test-ta-pg-200",
11
11
  "test-ta-mc-200",
12
12
  "test-diners-200",
13
+ "test-diners-202",
13
14
  ];
14
15
  Preset.type = isly.string(Preset.names);
15
16
  Preset.is = Preset.type.is;
@@ -17,6 +18,7 @@ export var Preset;
17
18
  Preset.presets = {
18
19
  "p2p-mc-200": "uk-mc-tpl-marqeta",
19
20
  "test-diners-200": "testUK-diners-dpg",
21
+ "test-diners-202": "testUK-diners-dpg",
20
22
  "test-mc-200": "testUK-marqeta",
21
23
  "test-ta-mq-200": "testUK-tpl-marqeta",
22
24
  "test-pg-200": "test-paxgiro",
@@ -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,CAwBtB;AAxBD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,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;QACpC,aAAa,EAAE,cAAc;KAC7B,CAAA;AACF,CAAC,EAxBgB,MAAM,KAAN,MAAM,QAwBtB"}
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,CA0BtB;AA1BD,WAAiB,MAAM;IACT,YAAK,GAAG;QACpB,YAAY;QACZ,aAAa;QACb,gBAAgB;QAChB,aAAa;QACb,aAAa;QACb,gBAAgB;QAChB,gBAAgB;QAChB,iBAAiB;QACjB,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,iBAAiB,EAAE,mBAAmB;QACtC,aAAa,EAAE,gBAAgB;QAC/B,gBAAgB,EAAE,oBAAoB;QACtC,aAAa,EAAE,cAAc;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,gBAAgB,EAAE,kBAAkB;QACpC,aAAa,EAAE,cAAc;KAC7B,CAAA;AACF,CAAC,EA1BgB,MAAM,KAAN,MAAM,QA0BtB"}
@@ -13,6 +13,7 @@ export declare class Accounts extends rest.Collection<gracely.Error> {
13
13
  readonly counterparts: Counterparts;
14
14
  constructor(client: http.Client);
15
15
  create(account: Account.Creatable): Promise<Account | gracely.Error>;
16
+ get(account: string): Promise<Account | gracely.Error>;
16
17
  list(options?: {
17
18
  limit?: string;
18
19
  cursor?: string;
@@ -14,6 +14,9 @@ export class Accounts extends rest.Collection {
14
14
  async create(account) {
15
15
  return this.client.post("/account", account);
16
16
  }
17
+ async get(account) {
18
+ return this.client.get(`/account/${account}`);
19
+ }
17
20
  async list(options) {
18
21
  return this.client.get("/account", options);
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAM3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QANL,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChC,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,iBAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAIrD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAIV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAM3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QANL,WAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChC,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC9B,iBAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAIrD,CAAC;IACD,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.355",
3
+ "version": "0.1.357",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",