@hmcts/ccpay-web-component 4.0.1-beta3 → 4.0.1-beta34

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.
Files changed (90) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +3712 -2353
  2. package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
  3. package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
  4. package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
  5. package/esm2015/hmcts-ccpay-web-component.js +12 -12
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +318 -136
  7. package/esm2015/lib/components/allocate-payments/allocate-payments.component.js +25 -12
  8. package/esm2015/lib/components/case-transactions/case-transactions.component.js +169 -162
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +4 -4
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +220 -56
  11. package/esm2015/lib/components/pba-payment/pba-payment.component.js +84 -3
  12. package/esm2015/lib/components/process-refund/process-refund.component.js +151 -15
  13. package/esm2015/lib/components/refund-list/refund-list.component.js +10 -23
  14. package/esm2015/lib/components/refund-status/refund-status.component.js +85 -75
  15. package/esm2015/lib/components/reports/reports.component.js +8 -3
  16. package/esm2015/lib/components/service-request/service-request.component.js +628 -0
  17. package/esm2015/lib/components/status-history/status-history.component.js +3 -3
  18. package/esm2015/lib/components/table/table.component.js +47 -9
  19. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +4 -4
  20. package/esm2015/lib/interfaces/IFee.js +3 -1
  21. package/esm2015/lib/interfaces/IPayment.js +3 -1
  22. package/esm2015/lib/interfaces/IRefundReasons.js +3 -1
  23. package/esm2015/lib/interfaces/IRefundStatusHistory.js +15 -0
  24. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +23 -0
  25. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +28 -0
  26. package/esm2015/lib/payment-lib.component.js +64 -8
  27. package/esm2015/lib/payment-lib.module.js +6 -8
  28. package/esm2015/lib/services/orderslist.service.js +193 -1
  29. package/esm2015/lib/services/payment-view/payment-view.service.js +23 -3
  30. package/esm2015/lib/services/refunds/refunds.service.js +17 -10
  31. package/esm2015/lib/services/shared/error-handler.service.js +41 -5
  32. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +11 -2
  33. package/esm2015/lib/services/xl-file/xl-file.service.js +2 -2
  34. package/esm5/hmcts-ccpay-web-component.js +12 -12
  35. package/esm5/lib/components/add-remission/add-remission.component.js +325 -138
  36. package/esm5/lib/components/allocate-payments/allocate-payments.component.js +25 -12
  37. package/esm5/lib/components/case-transactions/case-transactions.component.js +170 -166
  38. package/esm5/lib/components/fee-summary/fee-summary.component.js +4 -4
  39. package/esm5/lib/components/payment-view/payment-view.component.js +241 -56
  40. package/esm5/lib/components/pba-payment/pba-payment.component.js +89 -3
  41. package/esm5/lib/components/process-refund/process-refund.component.js +211 -16
  42. package/esm5/lib/components/refund-list/refund-list.component.js +10 -23
  43. package/esm5/lib/components/refund-status/refund-status.component.js +90 -77
  44. package/esm5/lib/components/reports/reports.component.js +8 -3
  45. package/esm5/lib/components/service-request/service-request.component.js +704 -0
  46. package/esm5/lib/components/status-history/status-history.component.js +3 -3
  47. package/esm5/lib/components/table/table.component.js +51 -10
  48. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +4 -4
  49. package/esm5/lib/interfaces/IFee.js +3 -1
  50. package/esm5/lib/interfaces/IPayment.js +3 -1
  51. package/esm5/lib/interfaces/IRefundReasons.js +3 -1
  52. package/esm5/lib/interfaces/IRefundStatusHistory.js +15 -0
  53. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +22 -0
  54. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +25 -0
  55. package/esm5/lib/payment-lib.component.js +65 -6
  56. package/esm5/lib/payment-lib.module.js +6 -8
  57. package/esm5/lib/services/orderslist.service.js +256 -1
  58. package/esm5/lib/services/payment-view/payment-view.service.js +33 -3
  59. package/esm5/lib/services/refunds/refunds.service.js +17 -10
  60. package/esm5/lib/services/shared/error-handler.service.js +41 -5
  61. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +11 -2
  62. package/esm5/lib/services/xl-file/xl-file.service.js +2 -2
  63. package/fesm2015/hmcts-ccpay-web-component.js +1872 -703
  64. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  65. package/fesm5/hmcts-ccpay-web-component.js +4380 -2979
  66. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  67. package/hmcts-ccpay-web-component.d.ts +11 -11
  68. package/hmcts-ccpay-web-component.metadata.json +1 -1
  69. package/lib/components/add-remission/add-remission.component.d.ts +42 -4
  70. package/lib/components/allocate-payments/allocate-payments.component.d.ts +3 -0
  71. package/lib/components/case-transactions/case-transactions.component.d.ts +4 -3
  72. package/lib/components/payment-view/payment-view.component.d.ts +20 -3
  73. package/lib/components/pba-payment/pba-payment.component.d.ts +8 -0
  74. package/lib/components/process-refund/process-refund.component.d.ts +15 -2
  75. package/lib/components/refund-status/refund-status.component.d.ts +6 -2
  76. package/lib/components/service-request/service-request.component.d.ts +105 -0
  77. package/lib/components/table/table.component.d.ts +6 -2
  78. package/lib/interfaces/IFee.d.ts +1 -0
  79. package/lib/interfaces/IPayment.d.ts +1 -0
  80. package/lib/interfaces/IRefundReasons.d.ts +1 -0
  81. package/lib/interfaces/IRefundStatusHistory.d.ts +5 -0
  82. package/lib/interfaces/IserviceRequestCardPayment.d.ts +6 -0
  83. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +7 -0
  84. package/lib/payment-lib.component.d.ts +19 -2
  85. package/lib/services/orderslist.service.d.ts +34 -0
  86. package/lib/services/payment-view/payment-view.service.d.ts +4 -0
  87. package/package.json +5 -1
  88. package/esm2015/lib/components/refunds/refunds.component.js +0 -23
  89. package/esm5/lib/components/refunds/refunds.component.js +0 -29
  90. package/lib/components/refunds/refunds.component.d.ts +0 -5
@@ -6,6 +6,7 @@ import { PaymentViewService } from '../../services/payment-view/payment-view.ser
6
6
  import { PaymentLibComponent } from '../../payment-lib.component';
7
7
  import { IPayment } from '../../interfaces/IPayment';
8
8
  import { RefundsService } from '../../services/refunds/refunds.service';
9
+ import { IRefundReasons } from '../../interfaces/IRefundReasons';
9
10
  import { ChangeDetectorRef } from '@angular/core';
10
11
  import { IRemission } from '../../interfaces/IRemission';
11
12
  import { OrderslistService } from '../../services/orderslist.service';
@@ -29,11 +30,22 @@ export declare class AddRemissionComponent implements OnInit {
29
30
  isOldPcipalOff: boolean;
30
31
  isNewPcipalOff: boolean;
31
32
  isStrategicFixEnable: boolean;
32
- orderStatus: string;
33
33
  paidAmount: any;
34
34
  isFromRefundListPage: boolean;
35
35
  isFromPaymentDetailPage: boolean;
36
36
  isFromServiceRequestPage: boolean;
37
+ feeamount: number;
38
+ LOGGEDINUSERROLES: string[];
39
+ orderDetail: any[];
40
+ orderRef: string;
41
+ orderStatus: string;
42
+ orderParty: string;
43
+ orderCreated: Date;
44
+ orderCCDEvent: string;
45
+ takePayment: boolean;
46
+ orderFeesTotal: number;
47
+ orderTotalPayments: number;
48
+ orderRemissionTotal: number;
37
49
  cancelRemission: EventEmitter<void>;
38
50
  refundListReason: EventEmitter<{
39
51
  reason: string;
@@ -64,6 +76,7 @@ export declare class AddRemissionComponent implements OnInit {
64
76
  paymentExplanationHasError: boolean;
65
77
  refundReason: string;
66
78
  selectedRefundReason: string;
79
+ displayRefundReason: string;
67
80
  refundCode: string;
68
81
  remessionPayment: IPayment;
69
82
  isRemissionCodeEmpty: boolean;
@@ -76,11 +89,35 @@ export declare class AddRemissionComponent implements OnInit {
76
89
  isPaymentSuccess: boolean;
77
90
  isRemissionApplied: boolean;
78
91
  remissionamt: number;
79
- refundReasons: any[];
80
92
  commonRefundReasons: any[];
81
93
  showReasonText: boolean;
82
94
  isRefundReasonsSelected: boolean;
83
95
  default: string;
96
+ reasonLength: number;
97
+ refundReasons: IRefundReasons[];
98
+ pattern1: string;
99
+ pattern2: string;
100
+ sendOrderDetail: any[];
101
+ sendOrderRef: string;
102
+ component: {
103
+ account_number: string;
104
+ amount: number;
105
+ case_reference: string;
106
+ ccd_case_number: string;
107
+ channel: string;
108
+ currency: string;
109
+ customer_reference: string;
110
+ date_created: string;
111
+ date_updated: string;
112
+ description: string;
113
+ method: string;
114
+ organisation_name: string;
115
+ payment_allocation: any[];
116
+ reference: string;
117
+ service_name: string;
118
+ site_id: string;
119
+ status: string;
120
+ };
84
121
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
85
122
  ngOnInit(): void;
86
123
  addRemission(): void;
@@ -99,8 +136,9 @@ export declare class AddRemissionComponent implements OnInit {
99
136
  confirmRetroRefund(): void;
100
137
  selectRadioButton(key: any, value: any): void;
101
138
  selectchange(args: any): void;
102
- gotoServiceRequestPage(): void;
139
+ gotoServiceRequestPage(event: any): void;
103
140
  gotoCasetransationPage(): void;
104
- goToServiceRequestPage(): void;
141
+ gotoCasetransationPageCancelBtnClicked(event: Event): void;
142
+ resetOrderData(): void;
105
143
  getFormattedCurrency(currency: number): string | number;
106
144
  }
@@ -62,6 +62,9 @@ export declare class AllocatePaymentsComponent implements OnInit {
62
62
  paymentRef: string;
63
63
  isStrategicFixEnable: boolean;
64
64
  orderLevelFees: IOrderReferenceFee[];
65
+ cookieUserName: string[];
66
+ enCookieUserName: any;
67
+ userNameField: string;
65
68
  reasonList: {
66
69
  [key: string]: {
67
70
  [key: string]: string;
@@ -19,6 +19,7 @@ export declare class CaseTransactionsComponent implements OnInit {
19
19
  private paymentLibComponent;
20
20
  private OrderslistService;
21
21
  LOGGEDINUSERROLES: string[];
22
+ isTakePayment: boolean;
22
23
  takePayment: boolean;
23
24
  servicerequest: string;
24
25
  ccdCaseNumber: string;
@@ -59,7 +60,6 @@ export declare class CaseTransactionsComponent implements OnInit {
59
60
  isGrpOutstandingAmtPositive: boolean;
60
61
  totalRefundAmount: Number;
61
62
  caseType: String;
62
- lsCcdNumber: any;
63
63
  payment: IPayment;
64
64
  paymentGroup: IPaymentGroup;
65
65
  paymentView: IPaymentView;
@@ -67,6 +67,7 @@ export declare class CaseTransactionsComponent implements OnInit {
67
67
  isAddRemissionEnable: boolean;
68
68
  orderRemissionDetails: any[];
69
69
  orderLevelFees: IOrderReferenceFee[];
70
+ ispaymentGroupApisuccess: boolean;
70
71
  cpoDetails: any;
71
72
  orderRef: string;
72
73
  orderStatus: string;
@@ -90,6 +91,7 @@ export declare class CaseTransactionsComponent implements OnInit {
90
91
  currentDate: Date;
91
92
  isFromServiceRequestPage: boolean;
92
93
  navigationpage: string;
94
+ remissionFeeAmt: number;
93
95
  constructor(router: Router, paymentViewService: PaymentViewService, bulkScaningPaymentService: BulkScaningPaymentService, caseTransactionsService: CaseTransactionsService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
94
96
  ngOnInit(): void;
95
97
  setDefaults(): void;
@@ -99,13 +101,12 @@ export declare class CaseTransactionsComponent implements OnInit {
99
101
  resetOrderVariables(): void;
100
102
  goToOrderViewDetailSection(orderReferenceObj: any): void;
101
103
  redirectToOrderFeeSearchPage(event: any, orderef: any): void;
102
- goToCaseTransationPage(event: any): void;
103
104
  calculateAmounts(): void;
104
105
  calculateRefundAmount(): number;
105
106
  getGroupOutstandingAmount(paymentGroup: IPaymentGroup): number;
106
107
  redirectToFeeSearchPage(event: any): void;
107
108
  addRemission(fee: IFee): void;
108
- addRefundForRemission(payment: IPayment, remission: IRemission[]): void;
109
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
109
110
  redirectToremissionPage(event: any): void;
110
111
  redirectToReportsPage(event: any): void;
111
112
  loadFeeSummaryPage(paymentGroup: IPaymentGroup): void;
@@ -17,11 +17,17 @@ export declare class PaymentViewComponent implements OnInit {
17
17
  caseType: boolean;
18
18
  isNewPcipalOff: boolean;
19
19
  isOldPcipalOff: boolean;
20
- orderRef: boolean;
21
- orderStatus: boolean;
22
- orderTotalPayments: boolean;
20
+ orderRef: string;
21
+ orderStatus: string;
22
+ orderTotalPayments: number;
23
23
  payment: IPayment;
24
24
  LOGGEDINUSERROLES: string[];
25
+ orderParty: string;
26
+ orderCreated: Date;
27
+ orderCCDEvent: string;
28
+ orderFeesTotal: number;
29
+ orderRemissionTotal: number;
30
+ orderDetail: any[];
25
31
  paymentGroup: IPaymentGroup;
26
32
  errorMessage: string;
27
33
  ccdCaseNumber: string;
@@ -36,13 +42,23 @@ export declare class PaymentViewComponent implements OnInit {
36
42
  isAddFeeBtnEnabled: boolean;
37
43
  isIssueRefunfBtnEnable: boolean;
38
44
  allowedRolesToAccessRefund: string[];
45
+ remissions: IRemission[];
46
+ remissionFeeAmt: number;
47
+ isRefundRemissionBtnEnable: boolean;
48
+ serviceReference: string;
49
+ isFromServiceRequestPage: boolean;
50
+ isFromPaymentDetailPage: boolean;
39
51
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
52
+ ngAfterContentChecked(): void;
40
53
  ngOnInit(): void;
41
54
  readonly isCardPayment: boolean;
42
55
  readonly isTelephonyPayment: boolean;
43
56
  goToPaymentList(): void;
44
57
  goToCaseTransationPage(event: any): void;
45
58
  addRemission(fee: IFee): void;
59
+ checkForFees(paymentGroup: any): boolean;
60
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
61
+ chkIsRefundRemissionBtnEnable(): boolean;
46
62
  issueRefund(paymentgrp: IPaymentGroup): void;
47
63
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
48
64
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
@@ -50,4 +66,5 @@ export declare class PaymentViewComponent implements OnInit {
50
66
  chkForAddRemission(feeCode: string): boolean;
51
67
  check4AllowedRoles2AccessRefund: () => boolean;
52
68
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
69
+ resetOrderData(): void;
53
70
  }
@@ -8,12 +8,20 @@ export declare class PbaPaymentComponent implements OnInit {
8
8
  viewStatus: string;
9
9
  pbaAccountList: string[];
10
10
  errorMsg: any;
11
+ isCardPaymentSuccess: boolean;
12
+ isInSufficiantFund: boolean;
13
+ isPBAAccountNotExist: boolean;
14
+ isPBAServerError: boolean;
15
+ isGetPBAAccountSucceed: boolean;
11
16
  selectedPbaAccount: string;
12
17
  pbaAccountRef: string;
13
18
  isContinueButtondisabled: boolean;
19
+ isPBAAccountPaymentSuccess: boolean;
20
+ pbaAccountrPaymentResult: any;
14
21
  constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
15
22
  ngOnInit(): void;
16
23
  selectpbaaccount(args: any): void;
17
24
  saveAndContinue(): void;
25
+ cardPayment(): void;
18
26
  gotoCasetransationPage(): void;
19
27
  }
@@ -4,9 +4,16 @@ import { RefundsService } from '../../services/refunds/refunds.service';
4
4
  import { IRefundAction } from '../../interfaces/IRefundAction';
5
5
  import { IRefundList } from '../../interfaces/IRefundList';
6
6
  import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
7
+ import { OrderslistService } from '../../services/orderslist.service';
8
+ import { PaymentLibComponent } from '../../payment-lib.component';
9
+ import { ActivatedRoute, Router } from '@angular/router';
7
10
  export declare class ProcessRefundComponent implements OnInit {
8
11
  private RefundsService;
9
12
  private formBuilder;
13
+ private OrderslistService;
14
+ private paymentLibComponent;
15
+ private router;
16
+ private activeRoute;
10
17
  refundReference: string;
11
18
  refundlistsource: IRefundList;
12
19
  processRefundForm: FormGroup;
@@ -32,15 +39,21 @@ export declare class ProcessRefundComponent implements OnInit {
32
39
  isReasonEmpty: boolean;
33
40
  isReasonInvalid: boolean;
34
41
  successMsg: string;
42
+ navigationpage: string;
43
+ ccdCaseNumber: string;
35
44
  isConfirmButtondisabled: boolean;
36
- constructor(RefundsService: RefundsService, formBuilder: FormBuilder);
45
+ constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
37
46
  ngOnInit(): void;
38
47
  checkRefundActions(code: string): void;
39
48
  processRefundSubmit(): void;
40
- getErrorMessage(isErrorExist: any, status: any, errorMsg: any): {
49
+ getErrorMessage(isErrorExist: any, status: any, errorMsg: any, err: any): {
41
50
  title: string;
42
51
  body: string;
43
52
  showError: any;
44
53
  };
54
+ loadRefundListPage(): void;
55
+ loadRefundsHomePage(): void;
56
+ redirecttoRefundListPage(): void;
45
57
  resetForm(vals: any, field: any): void;
58
+ goToCaseReview(): void;
46
59
  }
@@ -44,15 +44,19 @@ export declare class RefundStatusComponent implements OnInit {
44
44
  isRefundBtnDisabled: boolean;
45
45
  oldRefundReason: string;
46
46
  refundreason: string;
47
- allowedRolesToAccessRefund: string[];
48
47
  navigationpage: string;
48
+ isLastUpdatedByCurrentUser: boolean;
49
+ isProcessRefund: boolean;
50
+ changedAmount: number;
51
+ allowedRolesToAccessRefund: string[];
49
52
  constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
50
53
  ngOnInit(): void;
54
+ check4AllowedRoles2AccessRefund: () => boolean;
51
55
  getRefundsStatusHistoryList(): void;
52
56
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
53
57
  loadCaseTransactionPage(): void;
54
58
  loadRefundListPage(): void;
55
- gotoReviewDetailsPage(): void;
59
+ gotoReviewDetailsPage(event: any): void;
56
60
  gotoReviewAndReSubmitPage(): void;
57
61
  gotoRefundReasonPage(): void;
58
62
  gotoAmountPage(): void;
@@ -0,0 +1,105 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { PaymentLibComponent } from '../../payment-lib.component';
3
+ import { IPayment } from '../../interfaces/IPayment';
4
+ import { IRemission } from '../../interfaces/IRemission';
5
+ import { IPaymentView } from '../../interfaces/IPaymentView';
6
+ import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
7
+ import { IFee } from '../../interfaces/IFee';
8
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
9
+ import { Router } from '@angular/router';
10
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
11
+ import { OrderslistService } from '../../services/orderslist.service';
12
+ export declare class ServiceRequestComponent implements OnInit {
13
+ private paymentLibComponent;
14
+ private paymentViewService;
15
+ private OrderslistService;
16
+ private router;
17
+ LOGGEDINUSERROLES: string[];
18
+ viewStatus: string;
19
+ orderDetail: any[];
20
+ orderRef: string;
21
+ orderStatus: string;
22
+ orderParty: string;
23
+ orderCreated: Date;
24
+ orderCCDEvent: string;
25
+ orderFeesTotal: number;
26
+ orderTotalPayments: number;
27
+ orderRemissionTotal: number;
28
+ takePayment: boolean;
29
+ ccdCaseNumber: boolean;
30
+ isServiceRequest: string;
31
+ servicerequest: string;
32
+ excReference: string;
33
+ paymentGroups: any[];
34
+ payments: IPayment[];
35
+ nonPayments: IPayment[];
36
+ allPayments: IPayment[];
37
+ remissions: IRemission[];
38
+ fees: IFee[];
39
+ errorMessage: string;
40
+ totalFees: number;
41
+ totalPayments: number;
42
+ totalNonOffPayments: number;
43
+ totalRemissions: number;
44
+ selectedOption: string;
45
+ dcnNumber: string;
46
+ paymentRef: string;
47
+ isTurnOff: boolean;
48
+ isNewPcipalOff: boolean;
49
+ isRefundRemission: boolean;
50
+ isOldPcipalOff: boolean;
51
+ isStrategicFixEnable: boolean;
52
+ isAddFeeBtnEnabled: boolean;
53
+ isExceptionRecord: boolean;
54
+ isUnprocessedRecordSelected: boolean;
55
+ exceptionRecordReference: string;
56
+ isAnyFeeGroupAvilable: boolean;
57
+ isHistoricGroupAvailable: boolean;
58
+ isBulkScanEnable: any;
59
+ isRemissionsMatch: boolean;
60
+ isRemoveBtnDisabled: boolean;
61
+ feeId: IFee;
62
+ clAmountDue: number;
63
+ unprocessedRecordCount: number;
64
+ isFeeRecordsExist: boolean;
65
+ isGrpOutstandingAmtPositive: boolean;
66
+ totalRefundAmount: Number;
67
+ caseType: String;
68
+ payment: IPayment;
69
+ paymentGroup: IPaymentGroup;
70
+ paymentView: IPaymentView;
71
+ isAddRemissionEnable: boolean;
72
+ orderRemissionDetails: any[];
73
+ orderLevelFees: IOrderReferenceFee[];
74
+ cpoDetails: any;
75
+ serviceRequestValue: string;
76
+ orderAddBtnEnable: boolean;
77
+ isCPODown: boolean;
78
+ test: boolean;
79
+ isPBA: boolean;
80
+ isIssueRefunfBtnEnable: boolean;
81
+ isAddRemissionBtnEnabled: boolean;
82
+ isRefundRemissionBtnEnable: boolean;
83
+ allowedRolesToAccessRefund: string[];
84
+ isFromServiceRequestPage: boolean;
85
+ navigationpage: string;
86
+ remissionFeeAmt: number;
87
+ constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
88
+ ngOnInit(): void;
89
+ goToCaseTransationPage(event: any): void;
90
+ chkForAddRemission(feeCode: string): boolean;
91
+ chkForPBAPayment(): boolean;
92
+ addRemission(fee: IFee): void;
93
+ addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
94
+ cancelRemoval(): void;
95
+ removeFee(fee: any): void;
96
+ chkIssueRefundBtnEnable(payment: IPayment): boolean;
97
+ chkIsRefundRemissionBtnEnable(): boolean;
98
+ check4AllowedRoles2AccessRefund: () => boolean;
99
+ allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
100
+ issueRefund(payment: IPayment): void;
101
+ goToServiceRequestPage(event: any): void;
102
+ goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
103
+ goToPaymentViewComponent(paymentGroup: any): void;
104
+ resetOrderData(): void;
105
+ }
@@ -5,10 +5,13 @@ import { MatSort } from '@angular/material/sort';
5
5
  import { MatPaginator } from '@angular/material/paginator';
6
6
  import { IRefundList } from '../../interfaces/IRefundList';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { ActivatedRoute, Router } from '@angular/router';
8
9
  export declare class TableComponent {
9
10
  private paymentLibComponent;
10
11
  private cdRef;
11
12
  private OrderslistService;
13
+ private router;
14
+ private activeRoute;
12
15
  DATASOURCE: any[];
13
16
  STATUS: string;
14
17
  errorMessage: string;
@@ -21,7 +24,7 @@ export declare class TableComponent {
21
24
  refundList: IRefundList[];
22
25
  paginator: MatPaginator;
23
26
  sort: MatSort;
24
- constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService);
27
+ constructor(paymentLibComponent: PaymentLibComponent, cdRef: ChangeDetectorRef, OrderslistService: OrderslistService, router: Router, activeRoute: ActivatedRoute);
25
28
  ngOnInit(): void;
26
29
  /**
27
30
  * Set the paginator and sort after the view init since this component will
@@ -30,6 +33,7 @@ export declare class TableComponent {
30
33
  ngAfterViewInit(): void;
31
34
  applyFilter(filterValue: string): void;
32
35
  selectchange(args: any): void;
33
- goToRefundProcessComponent(refundReference: string, refundDate: IRefundList): void;
36
+ goToRefundProcessComponent(refundReference: string, refundData: IRefundList): void;
34
37
  goToRefundViewComponent(refundReference: string, refundData: IRefundList): void;
38
+ goToCaseReview(ccdCaseNumber: string, refundData: IRefundList): void;
35
39
  }
@@ -19,4 +19,5 @@ export interface IFee {
19
19
  date_created?: string;
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
+ remission_enable?: boolean;
22
23
  }
@@ -28,4 +28,5 @@ export interface IPayment {
28
28
  status_histories: IStatusHistory[];
29
29
  payment_group_reference: string;
30
30
  paymentGroupReference?: string;
31
+ refund_enable?: boolean;
31
32
  }
@@ -2,4 +2,5 @@ export interface IRefundReasons {
2
2
  code: string;
3
3
  description: string;
4
4
  name: string;
5
+ recently_used: boolean;
5
6
  }
@@ -0,0 +1,5 @@
1
+ import { IRefundStatus } from "./IRefundStatus";
2
+ export interface IRefundStatusHistory {
3
+ iRefundStatus: IRefundStatus[];
4
+ lastUpdatedByCurrentUser: boolean;
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare class IserviceRequestCardPayment {
2
+ amount: string;
3
+ currency: string;
4
+ language: string;
5
+ constructor(amount: string);
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare class IserviceRequestPbaPayment {
2
+ account_number: string;
3
+ amount: string;
4
+ currency: string;
5
+ customer_reference: string;
6
+ constructor(account_number: string, amount: string, customer_reference: string);
7
+ }
@@ -1,9 +1,12 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
+ import { OrderslistService } from './services/orderslist.service';
4
5
  import { IPayment } from './interfaces/IPayment';
5
6
  export declare class PaymentLibComponent implements OnInit {
6
7
  private paymentLibService;
8
+ private cd;
9
+ private OrderslistService;
7
10
  API_ROOT: string;
8
11
  BULKSCAN_API_ROOT: string;
9
12
  REFUNDS_API_ROOT: string;
@@ -49,6 +52,20 @@ export declare class PaymentLibComponent implements OnInit {
49
52
  iscancelClicked: boolean;
50
53
  isFromPaymentDetailPage: boolean;
51
54
  pbaPayOrderRef: IPayment;
52
- constructor(paymentLibService: PaymentLibService);
55
+ isTakePayment: boolean;
56
+ orderDetail: any[];
57
+ orderRef: string;
58
+ orderStatus: string;
59
+ orderParty: string;
60
+ orderCreated: Date;
61
+ orderCCDEvent: string;
62
+ serviceRequestValue: string;
63
+ orderAddBtnEnable: boolean;
64
+ orderFeesTotal: number;
65
+ orderRemissionTotal: number;
66
+ orderTotalPayments: number;
67
+ orderPendingPayments: number;
68
+ constructor(paymentLibService: PaymentLibService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
69
+ ngAfterContentChecked(): void;
53
70
  ngOnInit(): void;
54
71
  }
@@ -17,6 +17,22 @@ export declare class OrderslistService {
17
17
  getOrderRefId: Observable<string>;
18
18
  private navigationPage;
19
19
  getnavigationPage: Observable<string>;
20
+ private orderRef;
21
+ getorderRef: Observable<string>;
22
+ private orderCCDEvent;
23
+ getorderCCDEvent: Observable<string>;
24
+ private orderCreated;
25
+ getorderCreated: Observable<Date>;
26
+ private orderParty;
27
+ getorderParty: Observable<string>;
28
+ private orderRemissionTotal;
29
+ getorderRemissionTotal: Observable<number>;
30
+ private orderFeesTotal;
31
+ getorderFeesTotal: Observable<number>;
32
+ private orderTotalPayments;
33
+ getorderTotalPayments: Observable<number>;
34
+ private rolesList;
35
+ private orderDetail;
20
36
  private paymentPageView;
21
37
  constructor();
22
38
  setOrdersList(orderLevelFees: IOrderReferenceFee[]): void;
@@ -37,4 +53,22 @@ export declare class OrderslistService {
37
53
  getnavigationPageValue(): BehaviorSubject<string>;
38
54
  setpaymentPageView(paymentpageList: IPaymentView): void;
39
55
  getpaymentPageView(): BehaviorSubject<IPaymentView>;
56
+ setUserRolesList(rolesList: any[]): void;
57
+ getUserRolesList(): BehaviorSubject<any[]>;
58
+ setorderDetail(orderDetail: any[]): void;
59
+ getorderDetail(): BehaviorSubject<any[]>;
60
+ setOrderRef(orderRef: string): void;
61
+ getorderRefs(): BehaviorSubject<string>;
62
+ setorderCCDEvent(orderCCDEvent: string): void;
63
+ getorderCCDEvents(): BehaviorSubject<string>;
64
+ setorderCreated(orderCreated: Date): void;
65
+ getorderCreateds(): BehaviorSubject<Date>;
66
+ setorderParty(orderParty: string): void;
67
+ getorderPartys(): BehaviorSubject<string>;
68
+ setorderRemissionTotal(orderRemissionTotal: number): void;
69
+ getorderRemissionTotals(): BehaviorSubject<number>;
70
+ setorderFeesTotal(orderFeesTotal: number): void;
71
+ getorderFeesTotals(): BehaviorSubject<number>;
72
+ setorderTotalPayments(orderTotalPayments: number): void;
73
+ getoorderTotalPaymentss(): BehaviorSubject<number>;
40
74
  }
@@ -15,6 +15,8 @@ import { AllocatePaymentRequest } from '../../interfaces/AllocatePaymentRequest'
15
15
  import { IAllocationPaymentsRequest } from '../../interfaces/IAllocationPaymentsRequest';
16
16
  import { IOrderReferenceFee } from '../../interfaces/IOrderReferenceFee';
17
17
  import { BehaviorSubject } from 'rxjs';
18
+ import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPayment';
19
+ import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
18
20
  import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
19
21
  import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
20
22
  import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
@@ -31,6 +33,8 @@ export declare class PaymentViewService {
31
33
  getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
32
34
  getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
33
35
  getPBAaccountDetails(): Observable<any>;
36
+ postWays2PayCardPayment(serviceRef: string, body: IserviceRequestCardPayment): Observable<any>;
37
+ postPBAaccountPayment(serviceRef: string, body: IserviceRequestPbaPayment): Observable<any>;
34
38
  postBSPayments(body: AllocatePaymentRequest): Observable<any>;
35
39
  postBSUnidentifiedPayments(body: UnidentifiedPaymentsRequest): Observable<any>;
36
40
  postBSUnsolicitedPayments(body: UnsolicitedPaymentsRequest): Observable<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "4.0.1-beta3",
3
+ "version": "4.0.1-beta34",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,6 +13,10 @@
13
13
  "description": "Angular web component for displaying payments returned from ccpay api",
14
14
  "author": "Mateusz Swirski <mateusz.swirski@hmcts.net>",
15
15
  "contributors": [
16
+ {
17
+ "name": "Santosh Govindu",
18
+ "email": "santosh.govindu@hmcts.net"
19
+ },
16
20
  {
17
21
  "name": "Tarun Palisetty",
18
22
  "email": "tarun.palisetty@hmcts.net"
@@ -1,23 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component } from '@angular/core';
6
- export class RefundsComponent {
7
- constructor() { }
8
- /**
9
- * @return {?}
10
- */
11
- ngOnInit() {
12
- }
13
- }
14
- RefundsComponent.decorators = [
15
- { type: Component, args: [{
16
- selector: 'ccpay-refunds',
17
- template: "<main class=\"govuk-main-wrapper \" id=\"main-content\" role=\"main\" style=\"padding-top: 25px;\">\n <div style=\"min-width: 960px; max-width: 1860px; margin: 0 30px;\">\n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m\">#4692-3164-5845-4819</h2>\n <br>\n\n <div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"event-name\">\n Enter help with fees or remission reference\n </label>\n </h1>\n\n <div id=\"event-name-hint\" class=\"govuk-hint\">\n For example: HWF-A1B-23C\n </div>\n \n <input class=\"govuk-input govuk-input--width-10\" id=\"event-name\" name=\"event-name\" type=\"text\" aria-describedby=\"event-name-hint\">\n </div>\n \n \n \n <div class=\"govuk-button-group\">\n \n \n \n \n \n \n \n \n <a href=\"reason\" role=\"button\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n \n \n \n \n \n <a href=\"transaction\" role=\"button\" draggable=\"false\" class=\"govuk-button\" data-module=\"govuk-button\">\n Continue\n </a>\n \n </div>\n \n <p>\n <a href=\"../v1paymenthistory\">Cancel</a>\n </p>\n <br>\n <br>\n </div>\n </main>",
18
- styles: [""]
19
- }] }
20
- ];
21
- /** @nocollapse */
22
- RefundsComponent.ctorParameters = () => [];
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFPbEQsTUFBTSxPQUFPLGdCQUFnQjtJQUUzQixnQkFBZ0IsQ0FBQzs7OztJQUVqQixRQUFRO0lBQ1IsQ0FBQzs7O1lBVkYsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxlQUFlO2dCQUN6QixzM0NBQXVDOzthQUV4QyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2NjcGF5LXJlZnVuZHMnLFxuICB0ZW1wbGF0ZVVybDogJy4vcmVmdW5kcy5jb21wb25lbnQuaHRtbCcsXG4gIHN0eWxlVXJsczogWycuL3JlZnVuZHMuY29tcG9uZW50LmNzcyddXG59KVxuZXhwb3J0IGNsYXNzIFJlZnVuZHNDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuXG4gIGNvbnN0cnVjdG9yKCkgeyB9XG5cbiAgbmdPbkluaXQoKSB7XG4gIH1cblxufVxuIl19
@@ -1,29 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component } from '@angular/core';
6
- var RefundsComponent = /** @class */ (function () {
7
- function RefundsComponent() {
8
- }
9
- /**
10
- * @return {?}
11
- */
12
- RefundsComponent.prototype.ngOnInit = /**
13
- * @return {?}
14
- */
15
- function () {
16
- };
17
- RefundsComponent.decorators = [
18
- { type: Component, args: [{
19
- selector: 'ccpay-refunds',
20
- template: "<main class=\"govuk-main-wrapper \" id=\"main-content\" role=\"main\" style=\"padding-top: 25px;\">\n <div style=\"min-width: 960px; max-width: 1860px; margin: 0 30px;\">\n <h1 class=\"govuk-heading-l\">Process refund</h1>\n <h2 class=\"govuk-heading-m\">#4692-3164-5845-4819</h2>\n <br>\n\n <div class=\"govuk-form-group\">\n <h1 class=\"govuk-label-wrapper\">\n <label class=\"govuk-label govuk-label--l\" for=\"event-name\">\n Enter help with fees or remission reference\n </label>\n </h1>\n\n <div id=\"event-name-hint\" class=\"govuk-hint\">\n For example: HWF-A1B-23C\n </div>\n \n <input class=\"govuk-input govuk-input--width-10\" id=\"event-name\" name=\"event-name\" type=\"text\" aria-describedby=\"event-name-hint\">\n </div>\n \n \n \n <div class=\"govuk-button-group\">\n \n \n \n \n \n \n \n \n <a href=\"reason\" role=\"button\" draggable=\"false\" class=\"govuk-button govuk-button--secondary\" data-module=\"govuk-button\">\n Previous\n </a>\n \n \n \n \n \n \n \n <a href=\"transaction\" role=\"button\" draggable=\"false\" class=\"govuk-button\" data-module=\"govuk-button\">\n Continue\n </a>\n \n </div>\n \n <p>\n <a href=\"../v1paymenthistory\">Cancel</a>\n </p>\n <br>\n <br>\n </div>\n </main>",
21
- styles: [""]
22
- }] }
23
- ];
24
- /** @nocollapse */
25
- RefundsComponent.ctorParameters = function () { return []; };
26
- return RefundsComponent;
27
- }());
28
- export { RefundsComponent };
29
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmdW5kcy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9jb21wb25lbnRzL3JlZnVuZHMvcmVmdW5kcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFFbEQ7SUFPRTtJQUFnQixDQUFDOzs7O0lBRWpCLG1DQUFROzs7SUFBUjtJQUNBLENBQUM7O2dCQVZGLFNBQVMsU0FBQztvQkFDVCxRQUFRLEVBQUUsZUFBZTtvQkFDekIsczNDQUF1Qzs7aUJBRXhDOzs7O0lBUUQsdUJBQUM7Q0FBQSxBQVpELElBWUM7U0FQWSxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdjY3BheS1yZWZ1bmRzJyxcbiAgdGVtcGxhdGVVcmw6ICcuL3JlZnVuZHMuY29tcG9uZW50Lmh0bWwnLFxuICBzdHlsZVVybHM6IFsnLi9yZWZ1bmRzLmNvbXBvbmVudC5jc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBSZWZ1bmRzQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcblxuICBjb25zdHJ1Y3RvcigpIHsgfVxuXG4gIG5nT25Jbml0KCkge1xuICB9XG5cbn1cbiJdfQ==
@@ -1,5 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- export declare class RefundsComponent implements OnInit {
3
- constructor();
4
- ngOnInit(): void;
5
- }