@pax2pay/client 0.3.150 → 0.3.151

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.
@@ -16,13 +16,15 @@ export class CardOptions extends List<model.InsertCardOptionRequest> {
16
16
  )
17
17
  return this.extractResponse(response)
18
18
  }
19
- async insertCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string) {
19
+ async insertCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string, commit?: boolean) {
20
20
  const header = organisationCode ? { "x-assume": organisationCode } : undefined
21
- return await this.connection.post<model.InsertCardOptionRequest[]>(this.folder, request, undefined, header)
21
+ const param = commit ? { commit: true } : undefined
22
+ return await this.connection.post<model.InsertCardOptionRequest[]>(this.folder, request, param, header)
22
23
  }
23
- async deleteCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string) {
24
+ async deleteCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string, commit?: boolean) {
24
25
  const header = organisationCode ? { "x-assume": organisationCode } : undefined
25
- return await this.connection.remove<model.InsertCardOptionRequest[]>(this.folder, request, undefined, header)
26
+ const param = commit ? { commit: true } : undefined
27
+ return await this.connection.remove<model.InsertCardOptionRequest[]>(this.folder, request, param, header)
26
28
  }
27
29
  static create(connection: Connection): CardOptions {
28
30
  return new CardOptions(connection)
@@ -5,10 +5,10 @@ export declare class CardOptions extends List<model.InsertCardOptionRequest> {
5
5
  protected readonly folder = "card-options";
6
6
  private constructor();
7
7
  getCardOptions(organisationCode?: string): Promise<model.ErrorResponse | model.InsertCardOptionRequest[]>;
8
- insertCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string): Promise<(model.ErrorResponse & {
8
+ insertCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string, commit?: boolean): Promise<(model.ErrorResponse & {
9
9
  status: 400 | 404 | 500 | 403 | 503;
10
10
  }) | model.InsertCardOptionRequest[]>;
11
- deleteCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string): Promise<(model.ErrorResponse & {
11
+ deleteCardOptions(request: model.InsertCardOptionRequest[], organisationCode?: string, commit?: boolean): Promise<(model.ErrorResponse & {
12
12
  status: 400 | 404 | 500 | 403 | 503;
13
13
  }) | model.InsertCardOptionRequest[]>;
14
14
  static create(connection: Connection): CardOptions;
@@ -9,13 +9,15 @@ export class CardOptions extends List {
9
9
  const response = await this.connection.get(this.folder, undefined, header);
10
10
  return this.extractResponse(response);
11
11
  }
12
- async insertCardOptions(request, organisationCode) {
12
+ async insertCardOptions(request, organisationCode, commit) {
13
13
  const header = organisationCode ? { "x-assume": organisationCode } : undefined;
14
- return await this.connection.post(this.folder, request, undefined, header);
14
+ const param = commit ? { commit: true } : undefined;
15
+ return await this.connection.post(this.folder, request, param, header);
15
16
  }
16
- async deleteCardOptions(request, organisationCode) {
17
+ async deleteCardOptions(request, organisationCode, commit) {
17
18
  const header = organisationCode ? { "x-assume": organisationCode } : undefined;
18
- return await this.connection.remove(this.folder, request, undefined, header);
19
+ const param = commit ? { commit: true } : undefined;
20
+ return await this.connection.remove(this.folder, request, param, header);
19
21
  }
20
22
  static create(connection) {
21
23
  return new CardOptions(connection);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/CardOptions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,WAAY,SAAQ,IAAmC;IAEnE,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,cAAc,CAAA;IAG1C,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,gBAAyB;QAC7C,MAAM,MAAM,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;QAC9E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,IAAI,CAAC,MAAM,EACX,SAAS,EAC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pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",