@pax2pay/client 0.3.160 → 0.3.161

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.
@@ -40,4 +40,13 @@ export class Payments extends List<model.PaymentResponse> {
40
40
  sort
41
41
  )
42
42
  }
43
+ async freeze(id: string) {
44
+ return await this.connection.get<model.PaymentResponse>(`${this.folder}/${id}/freeze`)
45
+ }
46
+ async thaw(id: string) {
47
+ return await this.connection.get<model.PaymentResponse>(`${this.folder}/${id}/thaw`)
48
+ }
49
+ async cancel(id: string) {
50
+ return await this.connection.remove<model.PaymentResponse>(`${this.folder}/${id}`)
51
+ }
43
52
  }
@@ -16,4 +16,13 @@ export declare class Payments extends List<model.PaymentResponse> {
16
16
  status: 400 | 404 | 500 | 403 | 503;
17
17
  })>;
18
18
  search(request: model.PaymentSearch, previous?: Paginated<model.SummaryPaymentResponse>, page?: number, size?: number, sort?: string, includeCount?: boolean): Promise<model.ErrorResponse | Paginated<model.SummaryPaymentResponse>>;
19
+ freeze(id: string): Promise<model.PaymentResponse | (model.ErrorResponse & {
20
+ status: 400 | 404 | 500 | 403 | 503;
21
+ })>;
22
+ thaw(id: string): Promise<model.PaymentResponse | (model.ErrorResponse & {
23
+ status: 400 | 404 | 500 | 403 | 503;
24
+ })>;
25
+ cancel(id: string): Promise<model.PaymentResponse | (model.ErrorResponse & {
26
+ status: 400 | 404 | 500 | 403 | 503;
27
+ })>;
19
28
  }
@@ -19,5 +19,14 @@ export class Payments extends List {
19
19
  async search(request, previous, page, size, sort = "createdOn,desc", includeCount = true) {
20
20
  return await this.getNextPaginated(previous, (page, size, sort, request) => this.connection.post(`${this.folder}/searches`, request, { page, size, sort, includeCount }), request, page, size, sort);
21
21
  }
22
+ async freeze(id) {
23
+ return await this.connection.get(`${this.folder}/${id}/freeze`);
24
+ }
25
+ async thaw(id) {
26
+ return await this.connection.get(`${this.folder}/${id}/thaw`);
27
+ }
28
+ async cancel(id) {
29
+ return await this.connection.remove(`${this.folder}/${id}`);
30
+ }
22
31
  }
23
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Payments/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,OAAO,QAAS,SAAQ,IAA2B;IAExD,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,UAAU,CAAA;IAGtC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA6B;QACzC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8C,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACrG,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,OAA6B;QAClD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA8C,GAAG,IAAI,CAAC,MAAM,YAAY,EAAE,OAAO,CAAC,CAAA;IACpH,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,EAAU;QACnB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,MAAM,CACX,OAA4B,EAC5B,QAAkD,EAClD,IAAa,EACb,IAAa,EACb,IAAI,GAAG,gBAAgB,EACvB,YAAY,GAAG,IAAI;QAEnB,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CAElB,GAAG,IAAI,CAAC,MAAM,WAAW,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,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MAAM,WAAW,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1E,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACtB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,SAAS,CAAC,CAAA;IACvF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,EAAU;QACpB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,OAAO,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,EAAU;QACtB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAwB,GAAG,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAA;IACnF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.160",
3
+ "version": "0.3.161",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",