@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
|
@@ -3067,7 +3067,7 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3067
3067
|
this.postCodeForm = this.formBuilder.group({
|
|
3068
3068
|
postcode: new FormControl('', Validators.compose([
|
|
3069
3069
|
Validators.required,
|
|
3070
|
-
Validators.pattern('^([A-
|
|
3070
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3071
3071
|
]))
|
|
3072
3072
|
});
|
|
3073
3073
|
this.manualAddressForm = this.formBuilder.group({
|
|
@@ -3087,7 +3087,7 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3087
3087
|
])),
|
|
3088
3088
|
mpostcode: new FormControl('', Validators.compose([
|
|
3089
3089
|
Validators.required,
|
|
3090
|
-
Validators.pattern('^([A-
|
|
3090
|
+
Validators.pattern('^([A-Za-z]{1,2}[0-9]{1,2}[A-Za-z]{0,1} ?[0-9][A-Za-z]{2})')
|
|
3091
3091
|
])),
|
|
3092
3092
|
country: new FormControl('', Validators.compose([
|
|
3093
3093
|
Validators.required
|
|
@@ -3260,6 +3260,7 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3260
3260
|
*/
|
|
3261
3261
|
function (str) {
|
|
3262
3262
|
var _this = this;
|
|
3263
|
+
this.resetForm([false, false, false, false, false, false, false, false, false, false, false, false, false, false, false], 'all');
|
|
3263
3264
|
/** @type {?} */
|
|
3264
3265
|
var postcodeField = this.postCodeForm.controls.postcode;
|
|
3265
3266
|
if (this.postCodeForm.valid) {
|
|
@@ -3270,7 +3271,10 @@ var ContactDetailsComponent = /** @class */ (function () {
|
|
|
3270
3271
|
*/
|
|
3271
3272
|
function (refundsNotification) {
|
|
3272
3273
|
_this.addressPostcodeList = refundsNotification['data']['results'];
|
|
3273
|
-
_this.isShowPickAddress =
|
|
3274
|
+
_this.isShowPickAddress = refundsNotification['data']['header'].totalresults > 0;
|
|
3275
|
+
if (!_this.isShowPickAddress) {
|
|
3276
|
+
_this.resetForm([false, false, false, true, false, false, false, false, false, false, false, false, false], 'postcode');
|
|
3277
|
+
}
|
|
3274
3278
|
})),
|
|
3275
3279
|
(/**
|
|
3276
3280
|
* @param {?} error
|
|
@@ -5206,19 +5210,24 @@ var FeeSummaryComponent = /** @class */ (function () {
|
|
|
5206
5210
|
if (fee.calculated_amount === 0) {
|
|
5207
5211
|
_this.isFeeAmountZero = true;
|
|
5208
5212
|
}
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5213
|
+
if (paymentGroup.remissions) {
|
|
5214
|
+
_this.isRemissionsMatch = false;
|
|
5215
|
+
paymentGroup.remissions.forEach((/**
|
|
5216
|
+
* @param {?} rem
|
|
5217
|
+
* @return {?}
|
|
5218
|
+
*/
|
|
5219
|
+
function (rem) {
|
|
5220
|
+
if (rem.fee_code === fee.code) {
|
|
5221
|
+
_this.isRemissionsMatch = true;
|
|
5222
|
+
fee['remissions'] = rem;
|
|
5223
|
+
fees.push(fee);
|
|
5224
|
+
}
|
|
5225
|
+
}));
|
|
5226
|
+
if (!_this.isRemissionsMatch) {
|
|
5218
5227
|
fees.push(fee);
|
|
5219
5228
|
}
|
|
5220
|
-
}
|
|
5221
|
-
|
|
5229
|
+
}
|
|
5230
|
+
else {
|
|
5222
5231
|
fees.push(fee);
|
|
5223
5232
|
}
|
|
5224
5233
|
}));
|
|
@@ -7323,12 +7332,11 @@ var PostIssueRefundRetroRemission = /** @class */ (function () {
|
|
|
7323
7332
|
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7324
7333
|
*/
|
|
7325
7334
|
var AddRemissionComponent = /** @class */ (function () {
|
|
7326
|
-
function AddRemissionComponent(formBuilder, router, paymentViewService, paymentLibComponent,
|
|
7335
|
+
function AddRemissionComponent(formBuilder, router, paymentViewService, paymentLibComponent, refundService, cd, OrderslistService$$1) {
|
|
7327
7336
|
this.formBuilder = formBuilder;
|
|
7328
7337
|
this.router = router;
|
|
7329
7338
|
this.paymentViewService = paymentViewService;
|
|
7330
7339
|
this.paymentLibComponent = paymentLibComponent;
|
|
7331
|
-
this.PaymentViewComponent = PaymentViewComponent$$1;
|
|
7332
7340
|
this.refundService = refundService;
|
|
7333
7341
|
this.cd = cd;
|
|
7334
7342
|
this.OrderslistService = OrderslistService$$1;
|
|
@@ -7525,7 +7533,7 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
7525
7533
|
this.paymentLibComponent.paymentMethod = this.payment.method;
|
|
7526
7534
|
this.paymentLibComponent.paymentGroupReference = this.paymentGroupRef;
|
|
7527
7535
|
this.paymentLibComponent.paymentReference = this.paymentReference;
|
|
7528
|
-
this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7536
|
+
//this.PaymentViewComponent.viewCompStatus = 'overpayment';
|
|
7529
7537
|
this.paymentLibComponent.viewName = 'payment-view';
|
|
7530
7538
|
};
|
|
7531
7539
|
/**
|
|
@@ -8874,7 +8882,6 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
8874
8882
|
{ type: Router },
|
|
8875
8883
|
{ type: PaymentViewService },
|
|
8876
8884
|
{ type: PaymentLibComponent },
|
|
8877
|
-
{ type: PaymentViewComponent },
|
|
8878
8885
|
{ type: RefundsService },
|
|
8879
8886
|
{ type: ChangeDetectorRef },
|
|
8880
8887
|
{ type: OrderslistService }
|