@technova-tech/olive-proto-lib 2.3.0 → 2.3.2

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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "compile": "tsc -p tsconfig.json"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "2.3.0",
14
+ "version": "2.3.2",
15
15
  "devDependencies": {
16
16
  "@types/google-protobuf": "^3.15.12",
17
17
  "protoc-gen-ts": "^0.8.7",
@@ -912,7 +912,7 @@ var com;
912
912
  }
913
913
  terminalTransactions.TerminalTransactionsFilter = TerminalTransactionsFilter;
914
914
  class AllTransactionsFilter extends pb_1.Message {
915
- #one_of_decls = [];
915
+ #one_of_decls = [[13]];
916
916
  constructor(data) {
917
917
  super();
918
918
  pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
@@ -953,6 +953,9 @@ var com;
953
953
  if ("mfbId" in data && data.mfbId != undefined) {
954
954
  this.mfbId = data.mfbId;
955
955
  }
956
+ if ("returnAll" in data && data.returnAll != undefined) {
957
+ this.returnAll = data.returnAll;
958
+ }
956
959
  }
957
960
  }
958
961
  get terminalId() {
@@ -1027,6 +1030,22 @@ var com;
1027
1030
  set mfbId(value) {
1028
1031
  pb_1.Message.setField(this, 12, value);
1029
1032
  }
1033
+ get returnAll() {
1034
+ return pb_1.Message.getFieldWithDefault(this, 13, false);
1035
+ }
1036
+ set returnAll(value) {
1037
+ pb_1.Message.setOneofField(this, 13, this.#one_of_decls[0], value);
1038
+ }
1039
+ get hasReturnAll() {
1040
+ return pb_1.Message.getField(this, 13) != null;
1041
+ }
1042
+ get _return_all() {
1043
+ const cases = {
1044
+ 0: "none",
1045
+ 13: "returnAll"
1046
+ };
1047
+ return cases[pb_1.Message.computeOneofCase(this, [13])];
1048
+ }
1030
1049
  static fromObject(data) {
1031
1050
  const message = new AllTransactionsFilter({});
1032
1051
  if (data.terminalId != null) {
@@ -1065,6 +1084,9 @@ var com;
1065
1084
  if (data.mfbId != null) {
1066
1085
  message.mfbId = data.mfbId;
1067
1086
  }
1087
+ if (data.returnAll != null) {
1088
+ message.returnAll = data.returnAll;
1089
+ }
1068
1090
  return message;
1069
1091
  }
1070
1092
  toObject() {
@@ -1105,6 +1127,9 @@ var com;
1105
1127
  if (this.mfbId != null) {
1106
1128
  data.mfbId = this.mfbId;
1107
1129
  }
1130
+ if (this.returnAll != null) {
1131
+ data.returnAll = this.returnAll;
1132
+ }
1108
1133
  return data;
1109
1134
  }
1110
1135
  serialize(w) {
@@ -1133,6 +1158,8 @@ var com;
1133
1158
  writer.writeString(11, this.search);
1134
1159
  if (this.mfbId.length)
1135
1160
  writer.writeString(12, this.mfbId);
1161
+ if (this.hasReturnAll)
1162
+ writer.writeBool(13, this.returnAll);
1136
1163
  if (!w)
1137
1164
  return writer.getResultBuffer();
1138
1165
  }
@@ -1178,6 +1205,9 @@ var com;
1178
1205
  case 12:
1179
1206
  message.mfbId = reader.readString();
1180
1207
  break;
1208
+ case 13:
1209
+ message.returnAll = reader.readBool();
1210
+ break;
1181
1211
  default: reader.skipField();
1182
1212
  }
1183
1213
  }
@@ -80,8 +80,8 @@ var com;
80
80
  if ("reference" in data && data.reference != undefined) {
81
81
  this.reference = data.reference;
82
82
  }
83
- if ("cardPan" in data && data.cardPan != undefined) {
84
- this.cardPan = data.cardPan;
83
+ if ("cardNumber" in data && data.cardNumber != undefined) {
84
+ this.cardNumber = data.cardNumber;
85
85
  }
86
86
  if ("cardExpiry" in data && data.cardExpiry != undefined) {
87
87
  this.cardExpiry = data.cardExpiry;
@@ -133,10 +133,10 @@ var com;
133
133
  set reference(value) {
134
134
  pb_1.Message.setField(this, 6, value);
135
135
  }
136
- get cardPan() {
136
+ get cardNumber() {
137
137
  return pb_1.Message.getFieldWithDefault(this, 7, "");
138
138
  }
139
- set cardPan(value) {
139
+ set cardNumber(value) {
140
140
  pb_1.Message.setField(this, 7, value);
141
141
  }
142
142
  get cardExpiry() {
@@ -186,8 +186,8 @@ var com;
186
186
  if (data.reference != null) {
187
187
  message.reference = data.reference;
188
188
  }
189
- if (data.cardPan != null) {
190
- message.cardPan = data.cardPan;
189
+ if (data.cardNumber != null) {
190
+ message.cardNumber = data.cardNumber;
191
191
  }
192
192
  if (data.cardExpiry != null) {
193
193
  message.cardExpiry = data.cardExpiry;
@@ -223,8 +223,8 @@ var com;
223
223
  if (this.reference != null) {
224
224
  data.reference = this.reference;
225
225
  }
226
- if (this.cardPan != null) {
227
- data.cardPan = this.cardPan;
226
+ if (this.cardNumber != null) {
227
+ data.cardNumber = this.cardNumber;
228
228
  }
229
229
  if (this.cardExpiry != null) {
230
230
  data.cardExpiry = this.cardExpiry;
@@ -254,8 +254,8 @@ var com;
254
254
  writer.writeString(5, this.transactionType);
255
255
  if (this.reference.length)
256
256
  writer.writeString(6, this.reference);
257
- if (this.cardPan.length)
258
- writer.writeString(7, this.cardPan);
257
+ if (this.cardNumber.length)
258
+ writer.writeString(7, this.cardNumber);
259
259
  if (this.cardExpiry.length)
260
260
  writer.writeString(8, this.cardExpiry);
261
261
  if (this.cvv.length)
@@ -292,7 +292,7 @@ var com;
292
292
  message.reference = reader.readString();
293
293
  break;
294
294
  case 7:
295
- message.cardPan = reader.readString();
295
+ message.cardNumber = reader.readString();
296
296
  break;
297
297
  case 8:
298
298
  message.cardExpiry = reader.readString();
@@ -319,7 +319,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
319
319
  }
320
320
  export class AllTransactionsFilter extends pb_1.Message {
321
321
  #private;
322
- constructor(data?: any[] | {
322
+ constructor(data?: any[] | ({
323
323
  terminalId?: string;
324
324
  businessId?: string;
325
325
  transactionType?: string;
@@ -332,7 +332,9 @@ export declare namespace com.pkg.posv1.terminalTransactions {
332
332
  sortOrder?: string;
333
333
  search?: string;
334
334
  mfbId?: string;
335
- });
335
+ } & (({
336
+ returnAll?: boolean;
337
+ }))));
336
338
  get terminalId(): string;
337
339
  set terminalId(value: string);
338
340
  get businessId(): string;
@@ -357,6 +359,10 @@ export declare namespace com.pkg.posv1.terminalTransactions {
357
359
  set search(value: string);
358
360
  get mfbId(): string;
359
361
  set mfbId(value: string);
362
+ get returnAll(): boolean;
363
+ set returnAll(value: boolean);
364
+ get hasReturnAll(): boolean;
365
+ get _return_all(): "none" | "returnAll";
360
366
  static fromObject(data: {
361
367
  terminalId?: string;
362
368
  businessId?: string;
@@ -370,6 +376,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
370
376
  sortOrder?: string;
371
377
  search?: string;
372
378
  mfbId?: string;
379
+ returnAll?: boolean;
373
380
  }): AllTransactionsFilter;
374
381
  toObject(): {
375
382
  terminalId?: string | undefined;
@@ -384,6 +391,7 @@ export declare namespace com.pkg.posv1.terminalTransactions {
384
391
  sortOrder?: string | undefined;
385
392
  search?: string | undefined;
386
393
  mfbId?: string | undefined;
394
+ returnAll?: boolean | undefined;
387
395
  };
388
396
  serialize(): Uint8Array;
389
397
  serialize(w: pb_1.BinaryWriter): void;
@@ -30,7 +30,7 @@ export declare namespace com.pkg.posv1.transactions {
30
30
  currency?: string;
31
31
  transactionType?: string;
32
32
  reference?: string;
33
- cardPan?: string;
33
+ cardNumber?: string;
34
34
  cardExpiry?: string;
35
35
  cvv?: string;
36
36
  pin?: string;
@@ -48,8 +48,8 @@ export declare namespace com.pkg.posv1.transactions {
48
48
  set transactionType(value: string);
49
49
  get reference(): string;
50
50
  set reference(value: string);
51
- get cardPan(): string;
52
- set cardPan(value: string);
51
+ get cardNumber(): string;
52
+ set cardNumber(value: string);
53
53
  get cardExpiry(): string;
54
54
  set cardExpiry(value: string);
55
55
  get cvv(): string;
@@ -66,7 +66,7 @@ export declare namespace com.pkg.posv1.transactions {
66
66
  currency?: string;
67
67
  transactionType?: string;
68
68
  reference?: string;
69
- cardPan?: string;
69
+ cardNumber?: string;
70
70
  cardExpiry?: string;
71
71
  cvv?: string;
72
72
  pin?: string;
@@ -79,7 +79,7 @@ export declare namespace com.pkg.posv1.transactions {
79
79
  currency?: string | undefined;
80
80
  transactionType?: string | undefined;
81
81
  reference?: string | undefined;
82
- cardPan?: string | undefined;
82
+ cardNumber?: string | undefined;
83
83
  cardExpiry?: string | undefined;
84
84
  cvv?: string | undefined;
85
85
  pin?: string | undefined;