@hmcts/ccpay-web-component 5.0.4 → 5.0.5-beta03
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 +98 -28
- 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 +5 -6
- package/esm2015/lib/components/payment-view/payment-view.component.js +56 -3
- package/esm2015/lib/components/refund-status/refund-status.component.js +29 -25
- package/esm2015/lib/components/reports/reports.component.js +6 -2
- package/esm2015/lib/interfaces/IPaymentFailure.js +33 -0
- package/esm2015/lib/payment-lib.component.js +9 -2
- package/esm2015/lib/services/payment-view/payment-view.service.js +10 -1
- package/esm5/lib/components/case-transactions/case-transactions.component.js +5 -6
- package/esm5/lib/components/payment-view/payment-view.component.js +64 -3
- package/esm5/lib/components/refund-status/refund-status.component.js +29 -27
- package/esm5/lib/components/reports/reports.component.js +6 -2
- package/esm5/lib/interfaces/IPaymentFailure.js +33 -0
- package/esm5/lib/payment-lib.component.js +5 -2
- package/esm5/lib/services/payment-view/payment-view.service.js +14 -1
- package/fesm2015/hmcts-ccpay-web-component.js +94 -28
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +102 -30
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/hmcts-ccpay-web-component.metadata.json +1 -1
- package/lib/components/case-transactions/case-transactions.component.d.ts +0 -1
- package/lib/components/payment-view/payment-view.component.d.ts +7 -0
- package/lib/components/refund-status/refund-status.component.d.ts +3 -2
- package/lib/interfaces/IPaymentFailure.d.ts +13 -0
- package/lib/payment-lib.component.d.ts +1 -0
- package/lib/services/payment-view/payment-view.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { IFee } from '../../interfaces/IFee';
|
|
|
6
6
|
import { IPayment } from '../../interfaces/IPayment';
|
|
7
7
|
import { IRemission } from '../../interfaces/IRemission';
|
|
8
8
|
import { ChangeDetectorRef } from '@angular/core';
|
|
9
|
+
import { IPaymentFailure } from '../../interfaces/IPaymentFailure';
|
|
9
10
|
import { OrderslistService } from '../../services/orderslist.service';
|
|
10
11
|
export declare class PaymentViewComponent implements OnInit {
|
|
11
12
|
private paymentViewService;
|
|
@@ -22,6 +23,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
22
23
|
orderTotalPayments: number;
|
|
23
24
|
payment: IPayment;
|
|
24
25
|
LOGGEDINUSERROLES: string[];
|
|
26
|
+
ISPAYMENTSTATUSENABLED: string;
|
|
25
27
|
orderParty: string;
|
|
26
28
|
orderCreated: Date;
|
|
27
29
|
orderCCDEvent: string;
|
|
@@ -29,6 +31,7 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
29
31
|
orderRemissionTotal: number;
|
|
30
32
|
orderDetail: any[];
|
|
31
33
|
isServiceRequest: string;
|
|
34
|
+
errorMsg: string;
|
|
32
35
|
paymentGroup: IPaymentGroup;
|
|
33
36
|
errorMessage: string;
|
|
34
37
|
ccdCaseNumber: string;
|
|
@@ -44,6 +47,8 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
44
47
|
isIssueRefunfBtnEnable: boolean;
|
|
45
48
|
allowedRolesToAccessRefund: string[];
|
|
46
49
|
remissions: IRemission[];
|
|
50
|
+
allPaymentsFailure: IPaymentFailure[];
|
|
51
|
+
selectedPaymentsStatus: IPaymentFailure;
|
|
47
52
|
remissionFeeAmt: number;
|
|
48
53
|
isRefundRemissionBtnEnable: boolean;
|
|
49
54
|
serviceReference: string;
|
|
@@ -69,4 +74,6 @@ export declare class PaymentViewComponent implements OnInit {
|
|
|
69
74
|
check4AllowedRoles2AccessRefund: () => boolean;
|
|
70
75
|
allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
|
|
71
76
|
resetOrderData(): void;
|
|
77
|
+
goToPaymentFailuePage(payment: any): void;
|
|
78
|
+
goBackToPaymentView(event: any): void;
|
|
72
79
|
}
|
|
@@ -15,10 +15,12 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
15
15
|
private router;
|
|
16
16
|
private OrderslistService;
|
|
17
17
|
LOGGEDINUSERROLES: string[];
|
|
18
|
+
API_ROOT: string;
|
|
18
19
|
isOldPcipalOff: boolean;
|
|
19
20
|
isNewPcipalOff: boolean;
|
|
20
21
|
ccdCaseNumber: string;
|
|
21
22
|
isTurnOff: boolean;
|
|
23
|
+
isEliginbleToAccess: boolean;
|
|
22
24
|
refundStatusForm: FormGroup;
|
|
23
25
|
selectedRefundReason: string;
|
|
24
26
|
rejectedRefundList: IRefundList[];
|
|
@@ -48,10 +50,9 @@ export declare class RefundStatusComponent implements OnInit {
|
|
|
48
50
|
isLastUpdatedByCurrentUser: boolean;
|
|
49
51
|
isProcessRefund: boolean;
|
|
50
52
|
changedAmount: number;
|
|
51
|
-
allowedRolesToAccessRefund: string[];
|
|
52
53
|
constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
|
|
53
54
|
ngOnInit(): void;
|
|
54
|
-
|
|
55
|
+
isFromPayBubble: () => boolean;
|
|
55
56
|
getRefundsStatusHistoryList(): void;
|
|
56
57
|
goToRefundView(refundlist: IRefundList, navigationpage: string): void;
|
|
57
58
|
loadCaseTransactionPage(): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IPaymentFailure {
|
|
2
|
+
additional_reference: string;
|
|
3
|
+
disputed_amount: number;
|
|
4
|
+
failure_event_date_time: string;
|
|
5
|
+
failure_reason: string;
|
|
6
|
+
failure_reference: string;
|
|
7
|
+
failure_type: string;
|
|
8
|
+
payment_reference: string;
|
|
9
|
+
representment_date: string;
|
|
10
|
+
representment_status: string;
|
|
11
|
+
has_amount_debited?: string;
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
@@ -52,4 +52,5 @@ export declare class PaymentViewService {
|
|
|
52
52
|
postRefundsReason(body: PostRefundRetroRemission): Observable<any>;
|
|
53
53
|
postPaymentGroupWithRetroRemissions(paymentGroupReference: string, feeId: number, body: AddRetroRemissionRequest): Observable<any>;
|
|
54
54
|
postRefundRetroRemission(body: PostIssueRefundRetroRemission): Observable<any>;
|
|
55
|
+
getPaymentFailure(paymentReference: string): Observable<any>;
|
|
55
56
|
}
|