@hmcts/ccpay-web-component 5.0.2-beta96 → 5.0.2-beta99
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/bundles/hmcts-ccpay-web-component.umd.js +24 -17
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/add-remission/add-remission.component.js +3 -12
- package/esm2015/lib/components/contact-details/contact-details.component.js +8 -4
- package/esm2015/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm2015/lib/components/payment-view/payment-view.component.js +1 -1
- package/esm5/lib/components/add-remission/add-remission.component.js +3 -11
- package/esm5/lib/components/contact-details/contact-details.component.js +8 -4
- package/esm5/lib/components/fee-summary/fee-summary.component.js +17 -12
- package/esm5/lib/components/payment-view/payment-view.component.js +1 -1
- package/fesm2015/hmcts-ccpay-web-component.js +25 -19
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +25 -18
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/add-remission/add-remission.component.d.ts +1 -3
- package/package.json +1 -1
|
@@ -2555,7 +2555,7 @@ class ContactDetailsComponent {
|
|
|
2555
2555
|
this.postCodeForm = this.formBuilder.group({
|
|
2556
2556
|
postcode: new FormControl('', Validators.compose([
|
|
2557
2557
|
Validators.required,
|
|
2558
|
-
Validators.pattern('^([A-
|
|
2558
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
2559
2559
|
]))
|
|
2560
2560
|
});
|
|
2561
2561
|
this.manualAddressForm = this.formBuilder.group({
|
|
@@ -2575,7 +2575,7 @@ class ContactDetailsComponent {
|
|
|
2575
2575
|
])),
|
|
2576
2576
|
mpostcode: new FormControl('', Validators.compose([
|
|
2577
2577
|
Validators.required,
|
|
2578
|
-
Validators.pattern('^([A-
|
|
2578
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
2579
2579
|
])),
|
|
2580
2580
|
country: new FormControl('', Validators.compose([
|
|
2581
2581
|
Validators.required
|
|
@@ -2732,6 +2732,7 @@ class ContactDetailsComponent {
|
|
|
2732
2732
|
* @return {?}
|
|
2733
2733
|
*/
|
|
2734
2734
|
postcodeValidation(str) {
|
|
2735
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
2735
2736
|
/** @type {?} */
|
|
2736
2737
|
const postcodeField = this.postCodeForm.controls.postcode;
|
|
2737
2738
|
if (this.postCodeForm.valid) {
|
|
@@ -2742,7 +2743,10 @@ class ContactDetailsComponent {
|
|
|
2742
2743
|
*/
|
|
2743
2744
|
refundsNotification => {
|
|
2744
2745
|
this.addressPostcodeList = refundsNotification['data']['results'];
|
|
2745
|
-
this.isShowPickAddress =
|
|
2746
|
+
this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
2747
|
+
if (!this.isShowPickAddress) {
|
|
2748
|
+
this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
2749
|
+
}
|
|
2746
2750
|
})),
|
|
2747
2751
|
(/**
|
|
2748
2752
|
* @param {?} error
|
|
@@ -4448,19 +4452,24 @@ class FeeSummaryComponent {
|
|
|
4448
4452
|
if (fee.calculated_amount === 0) {
|
|
4449
4453
|
this.isFeeAmountZero = true;
|
|
4450
4454
|
}
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4455
|
+
if (paymentGroup.remissions) {
|
|
4456
|
+
this.isRemissionsMatch = false;
|
|
4457
|
+
paymentGroup.remissions.forEach((/**
|
|
4458
|
+
* @param {?} rem
|
|
4459
|
+
* @return {?}
|
|
4460
|
+
*/
|
|
4461
|
+
rem => {
|
|
4462
|
+
if (rem.fee_code === fee.code) {
|
|
4463
|
+
this.isRemissionsMatch = true;
|
|
4464
|
+
fee['remissions'] = rem;
|
|
4465
|
+
fees.push(fee);
|
|
4466
|
+
}
|
|
4467
|
+
}));
|
|
4468
|
+
if (!this.isRemissionsMatch) {
|
|
4460
4469
|
fees.push(fee);
|
|
4461
4470
|
}
|
|
4462
|
-
}
|
|
4463
|
-
|
|
4471
|
+
}
|
|
4472
|
+
else {
|
|
4464
4473
|
fees.push(fee);
|
|
4465
4474
|
}
|
|
4466
4475
|
}));
|
|
@@ -6390,17 +6399,15 @@ class AddRemissionComponent {
|
|
|
6390
6399
|
* @param {?} router
|
|
6391
6400
|
* @param {?} paymentViewService
|
|
6392
6401
|
* @param {?} paymentLibComponent
|
|
6393
|
-
* @param {?} PaymentViewComponent
|
|
6394
6402
|
* @param {?} refundService
|
|
6395
6403
|
* @param {?} cd
|
|
6396
6404
|
* @param {?} OrderslistService
|
|
6397
6405
|
*/
|
|
6398
|
-
constructor(formBuilder, router, paymentViewService, paymentLibComponent,
|
|
6406
|
+
constructor(formBuilder, router, paymentViewService, paymentLibComponent, refundService, cd, OrderslistService$$1) {
|
|
6399
6407
|
this.formBuilder = formBuilder;
|
|
6400
6408
|
this.router = router;
|
|
6401
6409
|
this.paymentViewService = paymentViewService;
|
|
6402
6410
|
this.paymentLibComponent = paymentLibComponent;
|
|
6403
|
-
this.PaymentViewComponent = PaymentViewComponent$$1;
|
|
6404
6411
|
this.refundService = refundService;
|
|
6405
6412
|
this.cd = cd;
|
|
6406
6413
|
this.OrderslistService = OrderslistService$$1;
|
|
@@ -6590,7 +6597,7 @@ class AddRemissionComponent {
|
|
|
6590
6597
|
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
6591
6598
|
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
6592
6599
|
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
6593
|
-
this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
6600
|
+
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
6594
6601
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
6595
6602
|
}
|
|
6596
6603
|
/**
|
|
@@ -7738,7 +7745,6 @@ AddRemissionComponent.ctorParameters = () => [
|
|
|
7738
7745
|
{ type: Router },
|
|
7739
7746
|
{ type: PaymentViewService },
|
|
7740
7747
|
{ type: PaymentLibComponent },
|
|
7741
|
-
{ type: PaymentViewComponent },
|
|
7742
7748
|
{ type: RefundsService },
|
|
7743
7749
|
{ type: ChangeDetectorRef },
|
|
7744
7750
|
{ type: OrderslistService }
|