@hmcts/ccpay-web-component 5.0.2-beta3 → 5.0.2-beta30

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 (77) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +1556 -253
  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 +33 -31
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +553 -41
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +6 -2
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +406 -0
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +128 -28
  10. package/esm2015/lib/components/process-refund/process-refund.component.js +31 -3
  11. package/esm2015/lib/components/refund-status/refund-status.component.js +149 -27
  12. package/esm2015/lib/components/service-request/service-request.component.js +7 -5
  13. package/esm2015/lib/components/table/table.component.js +24 -9
  14. package/esm2015/lib/interfaces/IFee.js +3 -1
  15. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  16. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  17. package/esm2015/lib/interfaces/IRefundList.js +5 -1
  18. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  19. package/esm2015/lib/interfaces/IRemission.js +3 -1
  20. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  21. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +18 -2
  22. package/esm2015/lib/payment-lib.component.js +5 -1
  23. package/esm2015/lib/payment-lib.module.js +3 -1
  24. package/esm2015/lib/payment-lib.service.js +16 -1
  25. package/esm2015/lib/services/notification/notification.service.js +85 -0
  26. package/esm2015/lib/services/refunds/refunds.service.js +11 -2
  27. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  28. package/esm5/hmcts-ccpay-web-component.js +33 -31
  29. package/esm5/lib/components/add-remission/add-remission.component.js +670 -46
  30. package/esm5/lib/components/case-transactions/case-transactions.component.js +6 -2
  31. package/esm5/lib/components/contact-details/contact-details.component.js +431 -0
  32. package/esm5/lib/components/payment-view/payment-view.component.js +153 -31
  33. package/esm5/lib/components/process-refund/process-refund.component.js +30 -3
  34. package/esm5/lib/components/refund-status/refund-status.component.js +177 -25
  35. package/esm5/lib/components/service-request/service-request.component.js +8 -5
  36. package/esm5/lib/components/table/table.component.js +27 -9
  37. package/esm5/lib/interfaces/IFee.js +3 -1
  38. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  39. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  40. package/esm5/lib/interfaces/IRefundList.js +5 -1
  41. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  42. package/esm5/lib/interfaces/IRemission.js +3 -1
  43. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  44. package/esm5/lib/interfaces/PostRefundRetroRemission.js +14 -2
  45. package/esm5/lib/payment-lib.component.js +5 -1
  46. package/esm5/lib/payment-lib.module.js +3 -1
  47. package/esm5/lib/payment-lib.service.js +23 -1
  48. package/esm5/lib/services/notification/notification.service.js +89 -0
  49. package/esm5/lib/services/refunds/refunds.service.js +17 -2
  50. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +2 -2
  51. package/fesm2015/hmcts-ccpay-web-component.js +1375 -245
  52. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  53. package/fesm5/hmcts-ccpay-web-component.js +1548 -219
  54. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  55. package/hmcts-ccpay-web-component.d.ts +32 -30
  56. package/hmcts-ccpay-web-component.metadata.json +1 -1
  57. package/lib/components/add-remission/add-remission.component.d.ts +38 -2
  58. package/lib/components/case-transactions/case-transactions.component.d.ts +1 -0
  59. package/lib/components/contact-details/contact-details.component.d.ts +47 -0
  60. package/lib/components/payment-view/payment-view.component.d.ts +19 -3
  61. package/lib/components/process-refund/process-refund.component.d.ts +5 -1
  62. package/lib/components/refund-status/refund-status.component.d.ts +20 -5
  63. package/lib/components/service-request/service-request.component.d.ts +1 -1
  64. package/lib/components/table/table.component.d.ts +1 -0
  65. package/lib/interfaces/IFee.d.ts +1 -0
  66. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  67. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  68. package/lib/interfaces/IRefundList.d.ts +3 -0
  69. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  70. package/lib/interfaces/IRemission.d.ts +1 -0
  71. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  72. package/lib/interfaces/PostRefundRetroRemission.d.ts +6 -1
  73. package/lib/payment-lib.component.d.ts +1 -0
  74. package/lib/payment-lib.service.d.ts +3 -0
  75. package/lib/services/notification/notification.service.d.ts +15 -0
  76. package/lib/services/refunds/refunds.service.d.ts +2 -0
  77. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { FormBuilder, FormGroup } from '@angular/forms';
2
+ import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
3
3
  import { IFee } from '../../interfaces/IFee';
4
4
  import { Router } from '@angular/router';
5
5
  import { PaymentViewService } from '../../services/payment-view/payment-view.service';
@@ -7,9 +7,11 @@ import { PaymentLibComponent } from '../../payment-lib.component';
7
7
  import { IPayment } from '../../interfaces/IPayment';
8
8
  import { RefundsService } from '../../services/refunds/refunds.service';
9
9
  import { IRefundReasons } from '../../interfaces/IRefundReasons';
10
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
10
11
  import { ChangeDetectorRef } from '@angular/core';
11
12
  import { IRemission } from '../../interfaces/IRemission';
12
13
  import { OrderslistService } from '../../services/orderslist.service';
14
+ import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
13
15
  export declare class AddRemissionComponent implements OnInit {
14
16
  private formBuilder;
15
17
  private router;
@@ -19,6 +21,7 @@ export declare class AddRemissionComponent implements OnInit {
19
21
  private cd;
20
22
  private OrderslistService;
21
23
  fee: IFee;
24
+ fees: any[];
22
25
  payment: IPayment;
23
26
  remission: IRemission;
24
27
  ccdCaseNumber: string;
@@ -34,6 +37,7 @@ export declare class AddRemissionComponent implements OnInit {
34
37
  isFromRefundListPage: boolean;
35
38
  isFromPaymentDetailPage: boolean;
36
39
  isFromServiceRequestPage: boolean;
40
+ isFullyRefund: boolean;
37
41
  feeamount: number;
38
42
  LOGGEDINUSERROLES: string[];
39
43
  orderDetail: any[];
@@ -60,6 +64,8 @@ export declare class AddRemissionComponent implements OnInit {
60
64
  other: string;
61
65
  };
62
66
  };
67
+ contactDetailsObj: IRefundContactDetails;
68
+ notification: any;
63
69
  remissionForm: FormGroup;
64
70
  hasErrors: boolean;
65
71
  viewStatus: string;
@@ -89,6 +95,7 @@ export declare class AddRemissionComponent implements OnInit {
89
95
  isPaymentSuccess: boolean;
90
96
  isRemissionApplied: boolean;
91
97
  remissionamt: number;
98
+ elementId: any;
92
99
  commonRefundReasons: any[];
93
100
  showReasonText: boolean;
94
101
  isRefundReasonsSelected: boolean;
@@ -99,6 +106,19 @@ export declare class AddRemissionComponent implements OnInit {
99
106
  pattern2: string;
100
107
  sendOrderDetail: any[];
101
108
  sendOrderRef: string;
109
+ paymentReference: string;
110
+ class: string;
111
+ errorMsg: any[];
112
+ totalRefundAmount: number;
113
+ quantityUpdated: number;
114
+ fullRefund: boolean;
115
+ allowedRefundAmount: number;
116
+ isRemissionsMatch: boolean;
117
+ paymentFees: IFee[];
118
+ paymentGroup: IPaymentGroup;
119
+ isStatusAllocated: boolean;
120
+ isFromCheckAnsPage: boolean;
121
+ refundAmtForFeeVolumes: number;
102
122
  component: {
103
123
  account_number: string;
104
124
  amount: number;
@@ -120,25 +140,41 @@ export declare class AddRemissionComponent implements OnInit {
120
140
  };
121
141
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
122
142
  ngOnInit(): void;
143
+ refundFeesList(): void;
144
+ readonly feesList: FormArray;
145
+ noneSelected(): boolean;
146
+ check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
123
147
  addRemission(): void;
124
148
  confirmRemission(): void;
125
149
  resetRemissionForm(val: any, field: any): void;
126
150
  addRemissionCode(): void;
127
151
  gotoAddRetroRemissionCodePage(): void;
128
152
  gotoCheckRetroRemissionPage(payment: IPayment): void;
153
+ gotoAmountRetroRemission(): void;
129
154
  gotoProcessRetroRemissionPage(): void;
155
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
130
156
  confirmRetroRemission(): void;
131
157
  processRefund(): void;
132
158
  gotoIssueRefundConfirmation(payment: IPayment): void;
133
159
  gotoIssueRefundPage(): void;
160
+ gotoIssuePage(): void;
161
+ calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
162
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
163
+ getRefundReasons(): void;
164
+ getErrorClass(elementId: any): void;
134
165
  changeIssueRefundReason(): void;
135
166
  confirmIssueRefund(): void;
136
- confirmRetroRefund(): void;
167
+ gotoRefundReasonPage(): void;
137
168
  selectRadioButton(key: any, value: any): void;
138
169
  selectchange(args: any): void;
170
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
171
+ gotoPartialFeeRefundScreen(): void;
139
172
  gotoServiceRequestPage(event: any): void;
173
+ gotoAddressPage(note?: IRefundContactDetails): void;
174
+ gotoRemissionSuccess(event: Event): void;
140
175
  gotoCasetransationPage(): void;
141
176
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
142
177
  resetOrderData(): void;
178
+ changeRefundAmount(): void;
143
179
  getFormattedCurrency(currency: number): string | number;
144
180
  }
@@ -55,6 +55,7 @@ export declare class CaseTransactionsComponent implements OnInit {
55
55
  isRemoveBtnDisabled: boolean;
56
56
  feeId: IFee;
57
57
  clAmountDue: number;
58
+ overPaymentAmount: number;
58
59
  unprocessedRecordCount: number;
59
60
  isFeeRecordsExist: boolean;
60
61
  isGrpOutstandingAmtPositive: boolean;
@@ -0,0 +1,47 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FormBuilder, FormGroup } from '@angular/forms';
3
+ import { PaymentLibComponent } from '../../payment-lib.component';
4
+ import { NotificationService } from '../../services/notification/notification.service';
5
+ export declare class ContactDetailsComponent implements OnInit {
6
+ private formBuilder;
7
+ private notificationService;
8
+ private paymentLibComponent;
9
+ isEditOperation: boolean;
10
+ addressObj: any;
11
+ assignContactDetails: EventEmitter<any>;
12
+ redirectToIssueRefund: EventEmitter<any>;
13
+ pageTitle: string;
14
+ errorMessage: string;
15
+ isEmailSAddressClicked: boolean;
16
+ isShowPickAddress: boolean;
17
+ isPostcodeClicked: boolean;
18
+ isManualAddressClicked: boolean;
19
+ emailAddressForm: FormGroup;
20
+ postCodeForm: FormGroup;
21
+ manualAddressForm: FormGroup;
22
+ addressPostcodeList: any[];
23
+ postcodeAddress: any;
24
+ isAddressBoxEmpty: boolean;
25
+ isEmailEmpty: boolean;
26
+ emailHasError: boolean;
27
+ isPostcodeEmpty: boolean;
28
+ postcodeHasError: boolean;
29
+ isaddressLine1Empty: boolean;
30
+ addressLine1HasError: boolean;
31
+ addressLine2HasError: boolean;
32
+ isTownOrCityEmpty: boolean;
33
+ townOrCityHasError: boolean;
34
+ isCountyEmpty: boolean;
35
+ countyHasError: boolean;
36
+ isMPostcodeEmpty: boolean;
37
+ mpostcodeHasError: boolean;
38
+ isCountryEmpty: boolean;
39
+ constructor(formBuilder: FormBuilder, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent);
40
+ ngOnInit(): void;
41
+ setEditDetails(): void;
42
+ selectContactOption(type: any, isLinkedClied: any): void;
43
+ finalFormSubmit(): void;
44
+ postcodeValidation(str: any): void;
45
+ redirection(event: any): void;
46
+ resetForm(val: any, field: any): void;
47
+ }
@@ -7,6 +7,7 @@ import { IPayment } from '../../interfaces/IPayment';
7
7
  import { IRemission } from '../../interfaces/IRemission';
8
8
  import { ChangeDetectorRef } from '@angular/core';
9
9
  import { OrderslistService } from '../../services/orderslist.service';
10
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
10
11
  export declare class PaymentViewComponent implements OnInit {
11
12
  private paymentViewService;
12
13
  private paymentLibComponent;
@@ -28,7 +29,8 @@ export declare class PaymentViewComponent implements OnInit {
28
29
  orderFeesTotal: number;
29
30
  orderRemissionTotal: number;
30
31
  orderDetail: any[];
31
- isServiceRequest: string;
32
+ fees: any;
33
+ isFullyRefund: boolean;
32
34
  paymentGroup: IPaymentGroup;
33
35
  errorMessage: string;
34
36
  ccdCaseNumber: string;
@@ -49,24 +51,38 @@ export declare class PaymentViewComponent implements OnInit {
49
51
  serviceReference: string;
50
52
  isFromServiceRequestPage: boolean;
51
53
  isFromPaymentDetailPage: boolean;
54
+ paymentFees: IFee[];
55
+ paymentType: string;
56
+ isContinueBtnDisabled: boolean;
57
+ viewCompStatus: string;
58
+ contactDetailsObj: IRefundContactDetails;
59
+ notification: any;
60
+ isConfirmationBtnDisabled: boolean;
61
+ refundReference: string;
62
+ refundAmount: string;
52
63
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
53
64
  ngAfterContentChecked(): void;
54
65
  ngOnInit(): void;
55
66
  readonly isCardPayment: boolean;
56
67
  readonly isTelephonyPayment: boolean;
57
68
  goToPaymentList(): void;
58
- goToServiceRequestPage(): void;
59
69
  goToCaseTransationPage(event: any): void;
60
70
  addRemission(fee: IFee): void;
61
71
  checkForFees(paymentGroup: any): boolean;
72
+ processRefund(): void;
73
+ gotoAddressPage(note?: IRefundContactDetails): void;
62
74
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
63
75
  chkIsRefundRemissionBtnEnable(): boolean;
64
76
  issueRefund(paymentgrp: IPaymentGroup): void;
65
77
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
66
78
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
67
79
  chkForPBAPayment(): boolean;
68
- chkForAddRemission(feeCode: string): boolean;
80
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
69
81
  check4AllowedRoles2AccessRefund: () => boolean;
70
82
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
83
+ selectPymentOption(paymentType: string): void;
84
+ continuePayment(paymentgrp: IPaymentGroup): void;
85
+ gotoPaymentSelectPage(event: Event): void;
86
+ getContactDetails(obj: IRefundContactDetails): void;
71
87
  resetOrderData(): void;
72
88
  }
@@ -5,10 +5,12 @@ import { IRefundAction } from '../../interfaces/IRefundAction';
5
5
  import { IRefundList } from '../../interfaces/IRefundList';
6
6
  import { IRefundRejectReason } from '../../interfaces/IRefundRejectReason';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { PaymentViewService } from '../../services/payment-view/payment-view.service';
8
9
  import { PaymentLibComponent } from '../../payment-lib.component';
9
10
  import { ActivatedRoute, Router } from '@angular/router';
10
11
  export declare class ProcessRefundComponent implements OnInit {
11
12
  private RefundsService;
13
+ private paymentViewService;
12
14
  private formBuilder;
13
15
  private OrderslistService;
14
16
  private paymentLibComponent;
@@ -42,8 +44,10 @@ export declare class ProcessRefundComponent implements OnInit {
42
44
  navigationpage: string;
43
45
  ccdCaseNumber: string;
44
46
  isFromRefundListPage: boolean;
47
+ cpoDetails: any;
48
+ isCPODown: boolean;
45
49
  isConfirmButtondisabled: boolean;
46
- constructor(RefundsService: RefundsService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
50
+ constructor(RefundsService: RefundsService, paymentViewService: PaymentViewService, formBuilder: FormBuilder, OrderslistService: OrderslistService, paymentLibComponent: PaymentLibComponent, router: Router, activeRoute: ActivatedRoute);
47
51
  ngOnInit(): void;
48
52
  checkRefundActions(code: string): void;
49
53
  processRefundSubmit(): void;
@@ -1,27 +1,30 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { RefundsService } from '../../services/refunds/refunds.service';
3
+ import { NotificationService } from '../../services/notification/notification.service';
3
4
  import { FormBuilder, FormGroup } from '@angular/forms';
4
5
  import { IRefundList } from '../../interfaces/IRefundList';
5
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
6
- import { Router } from '@angular/router';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
7
  import { OrderslistService } from '../../services/orderslist.service';
8
+ import { IRefundContactDetails } from '../../interfaces/IRefundContactDetails';
8
9
  import { IRefundStatus } from '../../interfaces/IRefundStatus';
9
10
  import { PaymentLibComponent } from '../../payment-lib.component';
10
11
  export declare class RefundStatusComponent implements OnInit {
11
12
  private formBuilder;
12
13
  private refundService;
14
+ private notificationService;
13
15
  private paymentLibComponent;
14
- private paymentViewService;
15
- private router;
16
16
  private OrderslistService;
17
17
  LOGGEDINUSERROLES: string[];
18
18
  isOldPcipalOff: boolean;
19
19
  isNewPcipalOff: boolean;
20
20
  ccdCaseNumber: string;
21
21
  isTurnOff: boolean;
22
+ orderParty: string;
22
23
  refundStatusForm: FormGroup;
23
24
  selectedRefundReason: string;
24
25
  rejectedRefundList: IRefundList[];
26
+ notificationList: IRefundsNotifications;
27
+ notification: any;
25
28
  approvalStatus: string;
26
29
  rejectStatus: string;
27
30
  errorMessage: any;
@@ -38,6 +41,11 @@ export declare class RefundStatusComponent implements OnInit {
38
41
  refundHasError: boolean;
39
42
  refundReasons: any[];
40
43
  refundStatusHistories: IRefundStatus[];
44
+ refundNotifications: IRefundStatus[];
45
+ isResendOperationSuccess: boolean;
46
+ isEditDetailsClicked: boolean;
47
+ isEditAddressDeatilsClicked: boolean;
48
+ addressDetails: IRefundContactDetails;
41
49
  refundReference: string;
42
50
  refundAmount: string;
43
51
  refundCode: string;
@@ -49,10 +57,11 @@ export declare class RefundStatusComponent implements OnInit {
49
57
  isProcessRefund: boolean;
50
58
  changedAmount: number;
51
59
  allowedRolesToAccessRefund: string[];
52
- constructor(formBuilder: FormBuilder, refundService: RefundsService, paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, router: Router, OrderslistService: OrderslistService);
60
+ constructor(formBuilder: FormBuilder, refundService: RefundsService, notificationService: NotificationService, paymentLibComponent: PaymentLibComponent, OrderslistService: OrderslistService);
53
61
  ngOnInit(): void;
54
62
  check4AllowedRoles2AccessRefund: () => boolean;
55
63
  getRefundsStatusHistoryList(): void;
64
+ getRefundsNotification(): void;
56
65
  goToRefundView(refundlist: IRefundList, navigationpage: string): void;
57
66
  loadCaseTransactionPage(): void;
58
67
  loadRefundListPage(): void;
@@ -66,5 +75,11 @@ export declare class RefundStatusComponent implements OnInit {
66
75
  getRefundListReason(refundListReason: any): void;
67
76
  getRefundAmount(amount: number): void;
68
77
  gotoReviewRefundConfirmationPage(): void;
78
+ gotoEditAddressDetails(note: IRefundsNotifications): void;
79
+ getContactDetails(obj: IRefundContactDetails): void;
80
+ gotoEditDetailsPage(note?: any): void;
81
+ submitEditDetail(): void;
82
+ putResend(notification: IRefundsNotifications): void;
83
+ gotoCasetransationPageCancelBtnClicked(Event: Event): void;
69
84
  goToRefundProcessComponent(refundReference: string, refundList: IRefundList): void;
70
85
  }
@@ -89,7 +89,7 @@ export declare class ServiceRequestComponent implements OnInit {
89
89
  ngOnInit(): void;
90
90
  goToServiceRequestPage(): void;
91
91
  goToCaseTransationPage(event: any): void;
92
- chkForAddRemission(feeCode: string): boolean;
92
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
93
93
  chkForPBAPayment(): boolean;
94
94
  addRemission(fee: IFee): void;
95
95
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
@@ -19,6 +19,7 @@ export declare class TableComponent {
19
19
  displayedColumns: string[];
20
20
  dataSource: MatTableDataSource<any>;
21
21
  userLst: any;
22
+ serviceLst: any;
22
23
  actualcount: number;
23
24
  count: number;
24
25
  refundList: IRefundList[];
@@ -20,4 +20,5 @@ export interface IFee {
20
20
  date_updated?: string;
21
21
  amount_due?: number;
22
22
  remission_enable?: boolean;
23
+ over_payment?: number;
23
24
  }
@@ -0,0 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
2
+ export declare class IPutNotificationRequest {
3
+ recipient_email_address?: string;
4
+ recipient_postal_address?: IRefundContactDetails;
5
+ constructor(contactDetails: any, notificationType: string);
6
+ }
@@ -0,0 +1,9 @@
1
+ export interface IRefundContactDetails {
2
+ address_line?: string;
3
+ city?: string;
4
+ country?: string;
5
+ county?: string;
6
+ email?: string;
7
+ notification_type?: string;
8
+ postal_code?: string;
9
+ }
@@ -1,3 +1,4 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export interface IRefundList {
2
3
  amount: number;
3
4
  ccd_case_number: string;
@@ -10,5 +11,7 @@ export interface IRefundList {
10
11
  description: string;
11
12
  name: string;
12
13
  };
14
+ contact_details: IRefundContactDetails;
13
15
  user_full_name: string;
16
+ service_type: string;
14
17
  }
@@ -0,0 +1,16 @@
1
+ export interface IRefundsNotifications {
2
+ contact_details: {
3
+ address_line: string;
4
+ city: string;
5
+ country: string;
6
+ county: string;
7
+ date_created: string;
8
+ date_updated: string;
9
+ email: string;
10
+ postal_code: string;
11
+ };
12
+ date_created: string;
13
+ date_updated: string;
14
+ notification_type: string;
15
+ reference: string;
16
+ }
@@ -6,4 +6,5 @@ export interface IRemission {
6
6
  ccd_case_number: string;
7
7
  fee_code: string;
8
8
  date_created: string;
9
+ fee_id: number;
9
10
  }
@@ -1,4 +1,6 @@
1
+ import { IRefundContactDetails } from './IRefundContactDetails';
1
2
  export declare class PostIssueRefundRetroRemission {
2
3
  remissionReference: string;
3
- constructor(remissionReference: string);
4
+ contact_details: IRefundContactDetails;
5
+ constructor(remissionReference: string, contactDeatils: any);
4
6
  }
@@ -1,5 +1,10 @@
1
+ import { IRefundContactDetails } from "./IRefundContactDetails";
1
2
  export declare class PostRefundRetroRemission {
3
+ ccd_case_number: string;
2
4
  payment_reference: string;
3
5
  refund_reason: string;
4
- constructor(payment_reference: string, refund_reason: string);
6
+ refund_amount: any;
7
+ fees: any;
8
+ contact_details: IRefundContactDetails;
9
+ constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, refund_amount: any, fees: any, contact_details: any);
5
10
  }
@@ -10,6 +10,7 @@ export declare class PaymentLibComponent implements OnInit {
10
10
  API_ROOT: string;
11
11
  BULKSCAN_API_ROOT: string;
12
12
  REFUNDS_API_ROOT: string;
13
+ NOTIFICATION_API_ROOT: string;
13
14
  CARDPAYMENTRETURNURL: string;
14
15
  CCD_CASE_NUMBER: string;
15
16
  EXC_REFERENCE: string;
@@ -2,6 +2,7 @@ export declare class PaymentLibService {
2
2
  API_ROOT: string;
3
3
  BULKSCAN_API_ROOT: string;
4
4
  REFUNDS_API_ROOT: string;
5
+ NOTIFICATION_API_ROOT: string;
5
6
  CARDPAYMENTRETURNURL: string;
6
7
  constructor();
7
8
  setApiRootUrl(apiRoot: string): void;
@@ -10,6 +11,8 @@ export declare class PaymentLibService {
10
11
  getBulkScanApiRootUrl(): string;
11
12
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
12
13
  getRefundsApiRootUrl(): string;
14
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
15
+ getNoticationApiRootUrl(): string;
13
16
  setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
14
17
  getCardPaymentReturnUrl(): string;
15
18
  }
@@ -0,0 +1,15 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ErrorHandlerService } from '../shared/error-handler.service';
3
+ import { WebComponentHttpClient } from '../shared/httpclient/webcomponent.http.client';
4
+ import { PaymentLibService } from '../../payment-lib.service';
5
+ import { Observable } from 'rxjs/Observable';
6
+ import { IRefundsNotifications } from '../../interfaces/IRefundsNotifications';
7
+ export declare class NotificationService {
8
+ private http;
9
+ private https;
10
+ private errorHandlerService;
11
+ private paymentLibService;
12
+ constructor(http: HttpClient, https: WebComponentHttpClient, errorHandlerService: ErrorHandlerService, paymentLibService: PaymentLibService);
13
+ getRefundNotification(reference: string): Observable<IRefundsNotifications>;
14
+ getAddressByPostcode(postcode: string): Observable<any>;
15
+ }
@@ -9,6 +9,7 @@ import { IPatchRefundAction } from '../../interfaces/IPatchRefundAction';
9
9
  import { IRefundList } from '../../interfaces/IRefundList';
10
10
  import { IssueRefundRequest } from '../../interfaces/IssueRefundRequest';
11
11
  import { IResubmitRefundRequest } from '../../interfaces/IResubmitRefundRequest';
12
+ import { IPutNotificationRequest } from '../../interfaces/IPutNotificationRequest';
12
13
  export declare class RefundsService {
13
14
  private http;
14
15
  private https;
@@ -25,6 +26,7 @@ export declare class RefundsService {
25
26
  getRefundStatusList(ccdCaseNumber: string): Observable<IRefundList[]>;
26
27
  getUserDetails(): Observable<any>;
27
28
  postIssueRefund(body: IssueRefundRequest): Observable<any>;
29
+ putResendOrEdit(body: IPutNotificationRequest, refundRef: string, notificationType: string): Observable<any>;
28
30
  patchResubmitRefund(body: IResubmitRefundRequest, refund_reference: string): Observable<any>;
29
31
  addHeaders(options: any): any;
30
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/ccpay-web-component",
3
- "version": "5.0.2-beta3",
3
+ "version": "5.0.2-beta30",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,6 +17,10 @@
17
17
  "name": "Santosh Govindu",
18
18
  "email": "santosh.govindu@hmcts.net"
19
19
  },
20
+ {
21
+ "name": "Kumar dhanasamy",
22
+ "email": "kumar.dhanasamy@hmcts.net"
23
+ },
20
24
  {
21
25
  "name": "Tarun Palisetty",
22
26
  "email": "tarun.palisetty@hmcts.net"