@hmcts/ccpay-web-component 5.0.1-beta98 → 5.0.2-beta1

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 (86) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +1211 -220
  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 +236 -53
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +49 -39
  8. package/esm2015/lib/components/contact-details/contact-details.component.js +406 -0
  9. package/esm2015/lib/components/fee-summary/fee-summary.component.js +1 -3
  10. package/esm2015/lib/components/payment-view/payment-view.component.js +7 -6
  11. package/esm2015/lib/components/pba-payment/pba-payment.component.js +84 -35
  12. package/esm2015/lib/components/process-refund/process-refund.component.js +32 -4
  13. package/esm2015/lib/components/refund-status/refund-status.component.js +149 -27
  14. package/esm2015/lib/components/service-request/service-request.component.js +19 -22
  15. package/esm2015/lib/components/table/table.component.js +24 -9
  16. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  17. package/esm2015/lib/interfaces/IPutNotificationRequest.js +25 -0
  18. package/esm2015/lib/interfaces/IRefundContactDetails.js +25 -0
  19. package/esm2015/lib/interfaces/IRefundList.js +5 -1
  20. package/esm2015/lib/interfaces/IRefundsNotifications.js +21 -0
  21. package/esm2015/lib/interfaces/IRemission.js +3 -1
  22. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +6 -2
  23. package/esm2015/lib/interfaces/PostIssueRefundRetroRemission.js +6 -2
  24. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +6 -10
  25. package/esm2015/lib/payment-lib.component.js +9 -1
  26. package/esm2015/lib/payment-lib.module.js +3 -1
  27. package/esm2015/lib/payment-lib.service.js +31 -1
  28. package/esm2015/lib/services/notification/notification.service.js +85 -0
  29. package/esm2015/lib/services/payment-view/payment-view.service.js +7 -1
  30. package/esm2015/lib/services/refunds/refunds.service.js +25 -3
  31. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  32. package/esm5/hmcts-ccpay-web-component.js +33 -31
  33. package/esm5/lib/components/add-remission/add-remission.component.js +328 -58
  34. package/esm5/lib/components/case-transactions/case-transactions.component.js +52 -39
  35. package/esm5/lib/components/contact-details/contact-details.component.js +431 -0
  36. package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
  37. package/esm5/lib/components/payment-view/payment-view.component.js +8 -6
  38. package/esm5/lib/components/pba-payment/pba-payment.component.js +88 -35
  39. package/esm5/lib/components/process-refund/process-refund.component.js +31 -4
  40. package/esm5/lib/components/refund-status/refund-status.component.js +177 -25
  41. package/esm5/lib/components/service-request/service-request.component.js +23 -26
  42. package/esm5/lib/components/table/table.component.js +27 -9
  43. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  44. package/esm5/lib/interfaces/IPutNotificationRequest.js +23 -0
  45. package/esm5/lib/interfaces/IRefundContactDetails.js +25 -0
  46. package/esm5/lib/interfaces/IRefundList.js +5 -1
  47. package/esm5/lib/interfaces/IRefundsNotifications.js +21 -0
  48. package/esm5/lib/interfaces/IRemission.js +3 -1
  49. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +5 -2
  50. package/esm5/lib/interfaces/PostIssueRefundRetroRemission.js +5 -2
  51. package/esm5/lib/interfaces/PostRefundRetroRemission.js +5 -8
  52. package/esm5/lib/payment-lib.component.js +9 -1
  53. package/esm5/lib/payment-lib.module.js +3 -1
  54. package/esm5/lib/payment-lib.service.js +45 -1
  55. package/esm5/lib/services/notification/notification.service.js +89 -0
  56. package/esm5/lib/services/payment-view/payment-view.service.js +7 -1
  57. package/esm5/lib/services/refunds/refunds.service.js +31 -3
  58. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  59. package/fesm2015/hmcts-ccpay-web-component.js +1019 -189
  60. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  61. package/fesm5/hmcts-ccpay-web-component.js +1342 -341
  62. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  63. package/hmcts-ccpay-web-component.d.ts +32 -30
  64. package/hmcts-ccpay-web-component.metadata.json +1 -1
  65. package/lib/components/add-remission/add-remission.component.d.ts +16 -2
  66. package/lib/components/case-transactions/case-transactions.component.d.ts +2 -0
  67. package/lib/components/contact-details/contact-details.component.d.ts +47 -0
  68. package/lib/components/payment-view/payment-view.component.d.ts +1 -1
  69. package/lib/components/pba-payment/pba-payment.component.d.ts +6 -0
  70. package/lib/components/process-refund/process-refund.component.d.ts +5 -1
  71. package/lib/components/refund-status/refund-status.component.d.ts +20 -5
  72. package/lib/components/service-request/service-request.component.d.ts +4 -3
  73. package/lib/components/table/table.component.d.ts +1 -0
  74. package/lib/interfaces/IPutNotificationRequest.d.ts +6 -0
  75. package/lib/interfaces/IRefundContactDetails.d.ts +9 -0
  76. package/lib/interfaces/IRefundList.d.ts +3 -0
  77. package/lib/interfaces/IRefundsNotifications.d.ts +16 -0
  78. package/lib/interfaces/IRemission.d.ts +1 -0
  79. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +2 -1
  80. package/lib/interfaces/PostIssueRefundRetroRemission.d.ts +3 -1
  81. package/lib/interfaces/PostRefundRetroRemission.d.ts +3 -3
  82. package/lib/payment-lib.component.d.ts +2 -0
  83. package/lib/payment-lib.service.d.ts +6 -0
  84. package/lib/services/notification/notification.service.d.ts +15 -0
  85. package/lib/services/refunds/refunds.service.d.ts +2 -0
  86. package/package.json +5 -1
@@ -7,6 +7,7 @@ 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';
@@ -62,6 +63,8 @@ export declare class AddRemissionComponent implements OnInit {
62
63
  other: string;
63
64
  };
64
65
  };
66
+ contactDetailsObj: IRefundContactDetails;
67
+ notification: any;
65
68
  remissionForm: FormGroup;
66
69
  hasErrors: boolean;
67
70
  viewStatus: string;
@@ -113,6 +116,8 @@ export declare class AddRemissionComponent implements OnInit {
113
116
  paymentFees: IFee[];
114
117
  paymentGroup: IPaymentGroup;
115
118
  isStatusAllocated: boolean;
119
+ isFromCheckAnsPage: boolean;
120
+ refundAmtForFeeVolumes: number;
116
121
  component: {
117
122
  account_number: string;
118
123
  amount: number;
@@ -137,29 +142,38 @@ export declare class AddRemissionComponent implements OnInit {
137
142
  refundFeesList(): void;
138
143
  readonly feesList: FormArray;
139
144
  noneSelected(): boolean;
140
- check_en(v1: any): void;
145
+ check_en(i: any, v1: any, AppAmt: any, Volume: any): void;
141
146
  addRemission(): void;
142
147
  confirmRemission(): void;
143
148
  resetRemissionForm(val: any, field: any): void;
144
149
  addRemissionCode(): void;
145
150
  gotoAddRetroRemissionCodePage(): void;
146
151
  gotoCheckRetroRemissionPage(payment: IPayment): void;
152
+ gotoAmountRetroRemission(): void;
147
153
  gotoProcessRetroRemissionPage(): void;
154
+ gotoProcessRetroRemission(note?: IRefundContactDetails): void;
148
155
  confirmRetroRemission(): void;
149
156
  processRefund(): void;
150
157
  gotoIssueRefundConfirmation(payment: IPayment): void;
151
158
  gotoIssueRefundPage(): void;
152
159
  gotoIssuePage(): void;
160
+ calAmtToRefund(value: any, amount: any, volume: any, i: any): void;
161
+ gotoContactDetailsPage(note?: IRefundContactDetails): void;
153
162
  getRefundReasons(): void;
154
163
  getErrorClass(elementId: any): void;
155
164
  changeIssueRefundReason(): void;
156
165
  confirmIssueRefund(): void;
157
- confirmRetroRefund(): void;
166
+ gotoRefundReasonPage(): void;
158
167
  selectRadioButton(key: any, value: any): void;
159
168
  selectchange(args: any): void;
169
+ getContactDetails(obj: IRefundContactDetails, type: any): void;
170
+ gotoPartialFeeRefundScreen(): void;
160
171
  gotoServiceRequestPage(event: any): void;
172
+ gotoAddressPage(note?: IRefundContactDetails): void;
173
+ gotoRemissionSuccess(event: Event): void;
161
174
  gotoCasetransationPage(): void;
162
175
  gotoCasetransationPageCancelBtnClicked(event: Event): void;
163
176
  resetOrderData(): void;
177
+ changeRefundAmount(): void;
164
178
  getFormattedCurrency(currency: number): string | number;
165
179
  }
@@ -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;
@@ -108,6 +109,7 @@ export declare class CaseTransactionsComponent implements OnInit {
108
109
  addRemission(fee: IFee): void;
109
110
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
110
111
  redirectToremissionPage(event: any): void;
112
+ goToServiceRequestPage(): void;
111
113
  redirectToReportsPage(event: any): void;
112
114
  loadFeeSummaryPage(paymentGroup: IPaymentGroup): void;
113
115
  goToPaymentViewComponent(paymentGroup: any): void;
@@ -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
+ }
@@ -64,7 +64,7 @@ export declare class PaymentViewComponent implements OnInit {
64
64
  getRemissionByFeeCode(feeCode: string, remissions: IRemission[]): IRemission;
65
65
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
66
66
  chkForPBAPayment(): boolean;
67
- chkForAddRemission(feeCode: string): boolean;
67
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
68
68
  check4AllowedRoles2AccessRefund: () => boolean;
69
69
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
70
70
  resetOrderData(): void;
@@ -7,6 +7,7 @@ export declare class PbaPaymentComponent implements OnInit {
7
7
  pbaPayOrderRef: any;
8
8
  viewStatus: string;
9
9
  pbaAccountList: string[];
10
+ isPBAAccountHold: boolean;
10
11
  errorMsg: any;
11
12
  isCardPaymentSuccess: boolean;
12
13
  isInSufficiantFund: boolean;
@@ -15,13 +16,18 @@ export declare class PbaPaymentComponent implements OnInit {
15
16
  isGetPBAAccountSucceed: boolean;
16
17
  selectedPbaAccount: string;
17
18
  pbaAccountRef: string;
19
+ isPbaAccountSelected: boolean;
20
+ isCardPaymentSelected: boolean;
21
+ isPBADropdownSelected: boolean;
18
22
  isContinueButtondisabled: boolean;
19
23
  isPBAAccountPaymentSuccess: boolean;
20
24
  pbaAccountrPaymentResult: any;
25
+ orgName: string;
21
26
  constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService);
22
27
  ngOnInit(): void;
23
28
  selectpbaaccount(args: any): void;
24
29
  saveAndContinue(): void;
25
30
  cardPayment(): void;
31
+ selectPaymentMethod(type: string): void;
26
32
  gotoCasetransationPage(): void;
27
33
  }
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { PaymentLibComponent } from '../../payment-lib.component';
3
3
  import { IPayment } from '../../interfaces/IPayment';
4
4
  import { IRemission } from '../../interfaces/IRemission';
@@ -28,6 +28,7 @@ export declare class ServiceRequestComponent implements OnInit {
28
28
  takePayment: boolean;
29
29
  ccdCaseNumber: boolean;
30
30
  isServiceRequest: string;
31
+ goToServiceRquestComponent: EventEmitter<any>;
31
32
  servicerequest: string;
32
33
  excReference: string;
33
34
  paymentGroups: any[];
@@ -86,8 +87,9 @@ export declare class ServiceRequestComponent implements OnInit {
86
87
  remissionFeeAmt: number;
87
88
  constructor(paymentLibComponent: PaymentLibComponent, paymentViewService: PaymentViewService, OrderslistService: OrderslistService, router: Router);
88
89
  ngOnInit(): void;
90
+ goToServiceRequestPage(): void;
89
91
  goToCaseTransationPage(event: any): void;
90
- chkForAddRemission(feeCode: string): boolean;
92
+ chkForAddRemission(feeCode: string, feeId: number): boolean;
91
93
  chkForPBAPayment(): boolean;
92
94
  addRemission(fee: IFee): void;
93
95
  addRefundForRemission(payment: IPayment, remission: IRemission[], fees: any): void;
@@ -98,7 +100,6 @@ export declare class ServiceRequestComponent implements OnInit {
98
100
  check4AllowedRoles2AccessRefund: () => boolean;
99
101
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
100
102
  issueRefund(payment: IPayment): void;
101
- goToServiceRequestPage(event: any): void;
102
103
  goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
103
104
  goToPaymentViewComponent(paymentGroup: any): void;
104
105
  resetOrderData(): 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[];
@@ -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
  }
@@ -3,5 +3,6 @@ export declare class IserviceRequestPbaPayment {
3
3
  amount: string;
4
4
  currency: string;
5
5
  customer_reference: string;
6
- constructor(account_number: string, amount: string, customer_reference: string);
6
+ organisation_name: string;
7
+ constructor(account_number: string, amount: string, customer_reference: string, orgName: string);
7
8
  }
@@ -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,10 +1,10 @@
1
+ import { IRefundContactDetails } from "./IRefundContactDetails";
1
2
  export declare class PostRefundRetroRemission {
2
3
  ccd_case_number: string;
3
4
  payment_reference: string;
4
5
  refund_reason: string;
5
- payment_method: string;
6
- payment_status: string;
7
6
  refund_amount: any;
8
7
  fees: any[];
9
- constructor(ccd_case_number: string, payment_reference: string, refund_reason: string, payment_method: string, payment_status: string, refund_amount: any, 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);
10
10
  }
@@ -10,6 +10,8 @@ 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;
14
+ CARDPAYMENTRETURNURL: string;
13
15
  CCD_CASE_NUMBER: string;
14
16
  EXC_REFERENCE: string;
15
17
  PAYMENT_METHOD: string;
@@ -2,6 +2,8 @@ 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;
6
+ CARDPAYMENTRETURNURL: string;
5
7
  constructor();
6
8
  setApiRootUrl(apiRoot: string): void;
7
9
  getApiRootUrl(): string;
@@ -9,4 +11,8 @@ export declare class PaymentLibService {
9
11
  getBulkScanApiRootUrl(): string;
10
12
  setRefundndsApiRootUrl(refundsapiRoot: string): void;
11
13
  getRefundsApiRootUrl(): string;
14
+ setNoticationApiRootUrl(notificationapiRoot: string): void;
15
+ getNoticationApiRootUrl(): string;
16
+ setCardPaymentReturnUrl(cardPaymentReturnUrl: string): void;
17
+ getCardPaymentReturnUrl(): string;
12
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.1-beta98",
3
+ "version": "5.0.2-beta1",
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"