@hmcts/ccpay-web-component 5.2.9-beta01 → 5.2.9-beta02

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.
@@ -4147,92 +4147,61 @@
4147
4147
  this.isBulkScanEnable = this.paymentLibComponent.ISBSENABLE;
4148
4148
  this.isTurnOff = this.paymentLibComponent.ISTURNOFF;
4149
4149
  this.isStFixEnable = this.paymentLibComponent.ISSFENABLE;
4150
- this.getFeesAndUnassignedPayments();
4150
+ this.getUnassignedPaymentlist();
4151
4151
  };
4152
- UnprocessedPaymentsComponent.prototype.getFeesAndUnassignedPayments = function () {
4153
- var _this = this;
4152
+ UnprocessedPaymentsComponent.prototype.getUnassignedPaymentlist = function () {
4154
4153
  if (this.selectedOption === 'dcn') {
4155
- this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).pipe(operators.switchMap(function (unassignedPayments) {
4156
- if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4157
- _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4158
- }
4159
- else if (unassignedPayments['payments']) {
4160
- _this.setValuesForUnassignedRecord(unassignedPayments);
4161
- }
4162
- else {
4163
- _this.upPaymentErrorMessage = 'error';
4164
- _this.getUnprocessedFeeCount.emit('0');
4165
- }
4166
- return _this.OrderslistService.getFeeExists();
4167
- })).subscribe(function (data) {
4168
- if (data !== null) {
4169
- _this.FEE_RECORDS_EXISTS = data;
4170
- }
4171
- }, function (error) {
4172
- _this.upPaymentErrorMessage = error;
4173
- _this.getUnprocessedFeeCount.emit('0');
4174
- });
4154
+ this.getBSPaymentsByDCNandFee();
4175
4155
  }
4176
4156
  else {
4177
- this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).pipe(operators.switchMap(function (unassignedPayments) {
4178
- if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4179
- _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4180
- }
4181
- else if (unassignedPayments['payments']) {
4182
- _this.setValuesForUnassignedRecord(unassignedPayments);
4183
- }
4184
- else {
4185
- _this.upPaymentErrorMessage = 'error';
4186
- _this.getUnprocessedFeeCount.emit('0');
4187
- }
4188
- return _this.OrderslistService.getFeeExists();
4189
- })).subscribe(function (data) {
4190
- if (data !== null) {
4191
- _this.FEE_RECORDS_EXISTS = data;
4192
- }
4193
- }, function (error) {
4194
- _this.upPaymentErrorMessage = error;
4195
- _this.getUnprocessedFeeCount.emit('0');
4196
- });
4157
+ this.getBSPaymentsByCCDandFee();
4197
4158
  }
4198
4159
  };
4199
- UnprocessedPaymentsComponent.prototype.getUnassignedPaymentlist = function () {
4160
+ UnprocessedPaymentsComponent.prototype.getBSPaymentsByDCNandFee = function () {
4200
4161
  var _this = this;
4201
- if (this.selectedOption === 'dcn') {
4202
- this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).subscribe(function (unassignedPayments) {
4203
- if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4204
- _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4205
- }
4206
- else if (unassignedPayments['payments']) {
4207
- _this.setValuesForUnassignedRecord(unassignedPayments);
4208
- }
4209
- else {
4210
- _this.upPaymentErrorMessage = 'error';
4211
- _this.getUnprocessedFeeCount.emit('0');
4212
- }
4213
- return _this.OrderslistService.getFeeExists();
4214
- }, function (error) {
4215
- _this.upPaymentErrorMessage = error;
4162
+ this.bulkScaningPaymentService.getBSPaymentsByDCN(this.dcnNumber).pipe(operators.switchMap(function (unassignedPayments) {
4163
+ if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4164
+ _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4165
+ }
4166
+ else if (unassignedPayments['payments']) {
4167
+ _this.setValuesForUnassignedRecord(unassignedPayments);
4168
+ }
4169
+ else {
4170
+ _this.upPaymentErrorMessage = 'error';
4216
4171
  _this.getUnprocessedFeeCount.emit('0');
4217
- });
4218
- }
4219
- else {
4220
- this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe(function (unassignedPayments) {
4221
- if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4222
- _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4223
- }
4224
- else if (unassignedPayments['payments']) {
4225
- _this.setValuesForUnassignedRecord(unassignedPayments);
4226
- }
4227
- else {
4228
- _this.upPaymentErrorMessage = 'error';
4229
- _this.getUnprocessedFeeCount.emit('0');
4230
- }
4231
- }, function (error) {
4232
- _this.upPaymentErrorMessage = error;
4172
+ }
4173
+ return _this.OrderslistService.getFeeExists();
4174
+ })).subscribe(function (data) {
4175
+ if (data !== null) {
4176
+ _this.FEE_RECORDS_EXISTS = data;
4177
+ }
4178
+ }, function (error) {
4179
+ _this.upPaymentErrorMessage = error;
4180
+ _this.getUnprocessedFeeCount.emit('0');
4181
+ });
4182
+ };
4183
+ UnprocessedPaymentsComponent.prototype.getBSPaymentsByCCDandFee = function () {
4184
+ var _this = this;
4185
+ this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).pipe(operators.switchMap(function (unassignedPayments) {
4186
+ if (unassignedPayments['data'] && unassignedPayments['data'].payments) {
4187
+ _this.setValuesForUnassignedRecord(unassignedPayments['data']);
4188
+ }
4189
+ else if (unassignedPayments['payments']) {
4190
+ _this.setValuesForUnassignedRecord(unassignedPayments);
4191
+ }
4192
+ else {
4193
+ _this.upPaymentErrorMessage = 'error';
4233
4194
  _this.getUnprocessedFeeCount.emit('0');
4234
- });
4235
- }
4195
+ }
4196
+ return _this.OrderslistService.getFeeExists();
4197
+ })).subscribe(function (data) {
4198
+ if (data !== null) {
4199
+ _this.FEE_RECORDS_EXISTS = data;
4200
+ }
4201
+ }, function (error) {
4202
+ _this.upPaymentErrorMessage = error;
4203
+ _this.getUnprocessedFeeCount.emit('0');
4204
+ });
4236
4205
  };
4237
4206
  UnprocessedPaymentsComponent.prototype.setValuesForUnassignedRecord = function (unassignedPayments) {
4238
4207
  this.unassignedRecordList = unassignedPayments.payments;