@hmcts/ccpay-web-component 5.0.1-beta150 → 5.0.1-beta153
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 +30 -26
- 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/case-transactions/case-transactions.component.js +15 -20
- package/esm2015/lib/components/pba-payment/pba-payment.component.js +7 -2
- package/esm2015/lib/services/payment-view/payment-view.service.js +7 -4
- package/esm5/lib/components/case-transactions/case-transactions.component.js +15 -20
- package/esm5/lib/components/pba-payment/pba-payment.component.js +7 -2
- package/esm5/lib/services/payment-view/payment-view.service.js +7 -4
- package/fesm2015/hmcts-ccpay-web-component.js +26 -23
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +26 -23
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/observable/throw'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@hmcts/ccpay-web-component', ['exports', 'rxjs/observable/throw', '
|
|
4
|
-
(factory((global.hmcts = global.hmcts || {}, global.hmcts['ccpay-web-component'] = {}),global.rxjs['observable/throw'],global.
|
|
5
|
-
}(this, (function (exports,_throw,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs/observable/throw'), require('rxjs'), require('@angular/common/http'), require('rxjs/operators'), require('@angular/platform-browser'), require('@angular/common'), require('file-saver'), require('xlsx'), require('@angular/material/table'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/forms'), require('@angular/router'), require('@angular/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@hmcts/ccpay-web-component', ['exports', 'rxjs/observable/throw', 'rxjs', '@angular/common/http', 'rxjs/operators', '@angular/platform-browser', '@angular/common', 'file-saver', 'xlsx', '@angular/material/table', '@angular/material/paginator', '@angular/material/sort', '@angular/material/form-field', '@angular/material/input', '@angular/forms', '@angular/router', '@angular/core'], factory) :
|
|
4
|
+
(factory((global.hmcts = global.hmcts || {}, global.hmcts['ccpay-web-component'] = {}),global.rxjs['observable/throw'],global.rxjs,global.ng.common.http,global.rxjs.operators,global.ng.platformBrowser,global.ng.common,global.FileSaver,global.XLSX,global.ng.material.table,global.ng.material.paginator,global.ng.material.sort,global.ng.material['form-field'],global.ng.material.input,global.ng.forms,global.ng.router,global.ng.core));
|
|
5
|
+
}(this, (function (exports,_throw,rxjs,i1,operators,i5,common,FileSaver,XLSX,table,paginator,sort,formField,input,forms,router,i0) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview added by tsickle
|
|
@@ -1153,7 +1153,9 @@
|
|
|
1153
1153
|
function (serviceRef, body) {
|
|
1154
1154
|
/** @type {?} */
|
|
1155
1155
|
var url = this.paymentLibService.API_ROOT + "/service-request/" + serviceRef + "/card-payments";
|
|
1156
|
-
|
|
1156
|
+
/** @type {?} */
|
|
1157
|
+
var rurl = this.paymentLibService.CARDPAYMENTRETURNURL.replace('.prod', '');
|
|
1158
|
+
body['return-url'] = rurl + "/payment";
|
|
1157
1159
|
return this.https.post(url, body).pipe(operators.catchError(this.errorHandlerService.handleError));
|
|
1158
1160
|
};
|
|
1159
1161
|
/**
|
|
@@ -1167,7 +1169,9 @@
|
|
|
1167
1169
|
* @return {?}
|
|
1168
1170
|
*/
|
|
1169
1171
|
function (serviceRef, body) {
|
|
1170
|
-
|
|
1172
|
+
/** @type {?} */
|
|
1173
|
+
var randomKey = 'idam-key-' + Math.random().toString().split('.').join('-');
|
|
1174
|
+
body['idempotency_key'] = randomKey;
|
|
1171
1175
|
/** @type {?} */
|
|
1172
1176
|
var url = this.paymentLibService.API_ROOT + "/service-request/" + serviceRef + "/pba-payments";
|
|
1173
1177
|
return this.https.post(url, body);
|
|
@@ -3940,17 +3944,13 @@
|
|
|
3940
3944
|
}
|
|
3941
3945
|
}));
|
|
3942
3946
|
}
|
|
3943
|
-
|
|
3944
|
-
if (
|
|
3945
|
-
_this.orderStatus =
|
|
3947
|
+
// this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
3948
|
+
if (paymentGroup.service_request_status === 'Paid') {
|
|
3949
|
+
_this.orderStatus = paymentGroup.service_request_status;
|
|
3946
3950
|
_this.orderAddBtnEnable = false;
|
|
3947
3951
|
}
|
|
3948
|
-
else if (
|
|
3949
|
-
_this.orderStatus =
|
|
3950
|
-
_this.orderAddBtnEnable = true;
|
|
3951
|
-
}
|
|
3952
|
-
else {
|
|
3953
|
-
_this.orderStatus = 'Not paid';
|
|
3952
|
+
else if (paymentGroup.service_request_status === 'Partially paid' || paymentGroup.service_request_status === 'Not paid') {
|
|
3953
|
+
_this.orderStatus = paymentGroup.service_request_status;
|
|
3954
3954
|
_this.orderAddBtnEnable = true;
|
|
3955
3955
|
}
|
|
3956
3956
|
//this.orderLevelFees.push({orderRefId:paymentGroup['payment_group_reference'],orderTotalFees: this.orderFeesTotal,orderStatus: this.orderStatus,orderParty:'Santosh', orderCCDEvent:'Case Creation',orderCreated: new Date(), orderAddBtnEnable: this.orderAddBtnEnable}); this.cpoDetails['createdTimestamp']
|
|
@@ -4035,18 +4035,17 @@
|
|
|
4035
4035
|
}));
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
4038
|
+
_this.orderStatus = orderDetail.service_request_status;
|
|
4038
4039
|
}));
|
|
4039
|
-
this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
4040
|
+
//this.orderPendingPayments = (this.orderFeesTotal - this.orderRemissionTotal) - this.orderTotalPayments;
|
|
4040
4041
|
// this.orderRef = orderReferenceObj.orderRefId;
|
|
4041
|
-
if (this.orderPendingPayments <= 0.00) {
|
|
4042
|
-
|
|
4043
|
-
}
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
this.orderStatus = 'Not paid';
|
|
4049
|
-
}
|
|
4042
|
+
// if (this.orderPendingPayments <= 0.00) {
|
|
4043
|
+
// this.orderStatus = 'Paid';
|
|
4044
|
+
// } else if (this.orderFeesTotal > 0 && (this.orderTotalPayments > 0 || this.orderRemissionTotal > 0) && (this.orderTotalPayments < this.orderPendingPayments)) {
|
|
4045
|
+
// this.orderStatus = 'Partially paid'
|
|
4046
|
+
// } else {
|
|
4047
|
+
// this.orderStatus = 'Not paid'
|
|
4048
|
+
// }
|
|
4050
4049
|
if (this.cpoDetails !== null) {
|
|
4051
4050
|
this.orderParty = this.cpoDetails['responsibleParty'];
|
|
4052
4051
|
this.orderCreated = this.cpoDetails['createdTimestamp'];
|
|
@@ -10685,7 +10684,12 @@
|
|
|
10685
10684
|
* @param {?} r
|
|
10686
10685
|
* @return {?}
|
|
10687
10686
|
*/function (r) {
|
|
10688
|
-
|
|
10687
|
+
try {
|
|
10688
|
+
_this.pbaAccountrPaymentResult = JSON.parse(r);
|
|
10689
|
+
}
|
|
10690
|
+
catch (e) {
|
|
10691
|
+
_this.pbaAccountrPaymentResult = r;
|
|
10692
|
+
}
|
|
10689
10693
|
_this.isPBAAccountPaymentSuccess = true;
|
|
10690
10694
|
}), ( /**
|
|
10691
10695
|
* @param {?} e
|