@pax2pay/model-banking 0.1.410 → 0.1.411

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/Cards.ts CHANGED
@@ -43,9 +43,9 @@ export class Cards extends rest.Collection<gracely.Error> {
43
43
  async statistics(
44
44
  scheme: Card.Scheme,
45
45
  range: isoly.DateRange,
46
- options?: { limit: number; cursor?: string }
46
+ options?: { limit?: number; cursor?: string }
47
47
  ): Promise<{ new: number; old: number; withTransaction: number; cursor?: string } | gracely.Error> {
48
- const queries = options && http.Search.stringify({ ...options, ...range })
48
+ const queries = http.Search.stringify({ ...options, ...range })
49
49
  return this.client.get<{ new: number; old: number; withTransaction: number; cursor?: string }>(
50
50
  `/card/statistics/${scheme}?${queries}`
51
51
  )
@@ -18,7 +18,7 @@ export declare class Cards extends rest.Collection<gracely.Error> {
18
18
  }) | gracely.Error>;
19
19
  update(id: string, card: Card.Changeable): Promise<Card | gracely.Error>;
20
20
  statistics(scheme: Card.Scheme, range: isoly.DateRange, options?: {
21
- limit: number;
21
+ limit?: number;
22
22
  cursor?: string;
23
23
  }): Promise<{
24
24
  new: number;
@@ -24,7 +24,7 @@ export class Cards extends rest.Collection {
24
24
  return this.client.patch(`/card/${id}`, card);
25
25
  }
26
26
  async statistics(scheme, range, options) {
27
- const queries = options && http.Search.stringify({ ...options, ...range });
27
+ const queries = http.Search.stringify({ ...options, ...range });
28
28
  return this.client.get(`/card/statistics/${scheme}?${queries}`);
29
29
  }
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Cards.js","sourceRoot":"../","sources":["Client/Cards.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACnC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAA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AU,EAAE,IAAqB;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAO,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAA;IACpD,CAAC;IACD,KAAK,CAAC,UAAU,CACf,MAAmB,EACnB,KAAsB,EACtB,OAA6C;QAE7C,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,oBAAoB,MAAM,IAAI,OAAO,EAAE,CACvC,CAAA;IACF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.410",
3
+ "version": "0.1.411",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",