@hmcts/ccpay-web-component 5.0.1-beta98 → 5.0.3

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 (55) hide show
  1. package/bundles/hmcts-ccpay-web-component.umd.js +85 -646
  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 +31 -32
  6. package/esm2015/lib/components/add-remission/add-remission.component.js +7 -328
  7. package/esm2015/lib/components/case-transactions/case-transactions.component.js +4 -33
  8. package/esm2015/lib/components/fee-summary/fee-summary.component.js +1 -3
  9. package/esm2015/lib/components/payment-view/payment-view.component.js +3 -6
  10. package/esm2015/lib/components/process-refund/process-refund.component.js +3 -3
  11. package/esm2015/lib/components/service-request/service-request.component.js +9 -28
  12. package/esm2015/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  13. package/esm2015/lib/interfaces/PostRefundRetroRemission.js +2 -22
  14. package/esm2015/lib/payment-lib.component.js +4 -6
  15. package/esm2015/lib/payment-lib.module.js +3 -3
  16. package/esm2015/lib/services/payment-view/payment-view.service.js +1 -29
  17. package/esm2015/lib/services/refunds/refunds.service.js +16 -3
  18. package/esm2015/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  19. package/esm5/hmcts-ccpay-web-component.js +31 -32
  20. package/esm5/lib/components/add-remission/add-remission.component.js +7 -353
  21. package/esm5/lib/components/case-transactions/case-transactions.component.js +4 -39
  22. package/esm5/lib/components/fee-summary/fee-summary.component.js +1 -3
  23. package/esm5/lib/components/payment-view/payment-view.component.js +3 -6
  24. package/esm5/lib/components/process-refund/process-refund.component.js +3 -3
  25. package/esm5/lib/components/service-request/service-request.component.js +9 -32
  26. package/esm5/lib/components/unprocessed-payments/unprocessed-payments.component.js +1 -2
  27. package/esm5/lib/interfaces/PostRefundRetroRemission.js +2 -17
  28. package/esm5/lib/payment-lib.component.js +3 -4
  29. package/esm5/lib/payment-lib.module.js +3 -3
  30. package/esm5/lib/services/payment-view/payment-view.service.js +1 -42
  31. package/esm5/lib/services/refunds/refunds.service.js +16 -3
  32. package/esm5/lib/services/shared/httpclient/webcomponent.http.client.js +16 -3
  33. package/fesm2015/hmcts-ccpay-web-component.js +58 -587
  34. package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
  35. package/fesm5/hmcts-ccpay-web-component.js +57 -637
  36. package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
  37. package/hmcts-ccpay-web-component.d.ts +30 -31
  38. package/hmcts-ccpay-web-component.metadata.json +1 -1
  39. package/lib/components/add-remission/add-remission.component.d.ts +1 -22
  40. package/lib/components/case-transactions/case-transactions.component.d.ts +0 -5
  41. package/lib/components/payment-view/payment-view.component.d.ts +0 -1
  42. package/lib/components/service-request/service-request.component.d.ts +0 -2
  43. package/lib/interfaces/PostRefundRetroRemission.d.ts +1 -6
  44. package/lib/payment-lib.component.d.ts +0 -2
  45. package/lib/services/payment-view/payment-view.service.d.ts +0 -5
  46. package/package.json +1 -1
  47. package/esm2015/lib/components/pba-payment/pba-payment.component.js +0 -199
  48. package/esm2015/lib/interfaces/IserviceRequestCardPayment.js +0 -23
  49. package/esm2015/lib/interfaces/IserviceRequestPbaPayment.js +0 -28
  50. package/esm5/lib/components/pba-payment/pba-payment.component.js +0 -216
  51. package/esm5/lib/interfaces/IserviceRequestCardPayment.js +0 -22
  52. package/esm5/lib/interfaces/IserviceRequestPbaPayment.js +0 -25
  53. package/lib/components/pba-payment/pba-payment.component.d.ts +0 -27
  54. package/lib/interfaces/IserviceRequestCardPayment.d.ts +0 -6
  55. package/lib/interfaces/IserviceRequestPbaPayment.d.ts +0 -7
@@ -1,5 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
- import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
2
+ import { FormBuilder, FormGroup } 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';
@@ -10,7 +10,6 @@ import { IRefundReasons } from '../../interfaces/IRefundReasons';
10
10
  import { ChangeDetectorRef } from '@angular/core';
11
11
  import { IRemission } from '../../interfaces/IRemission';
12
12
  import { OrderslistService } from '../../services/orderslist.service';
13
- import { IPaymentGroup } from '../../interfaces/IPaymentGroup';
14
13
  export declare class AddRemissionComponent implements OnInit {
15
14
  private formBuilder;
16
15
  private router;
@@ -20,7 +19,6 @@ export declare class AddRemissionComponent implements OnInit {
20
19
  private cd;
21
20
  private OrderslistService;
22
21
  fee: IFee;
23
- fees: any[];
24
22
  payment: IPayment;
25
23
  remission: IRemission;
26
24
  ccdCaseNumber: string;
@@ -91,7 +89,6 @@ export declare class AddRemissionComponent implements OnInit {
91
89
  isPaymentSuccess: boolean;
92
90
  isRemissionApplied: boolean;
93
91
  remissionamt: number;
94
- elementId: any;
95
92
  commonRefundReasons: any[];
96
93
  showReasonText: boolean;
97
94
  isRefundReasonsSelected: boolean;
@@ -102,17 +99,6 @@ export declare class AddRemissionComponent implements OnInit {
102
99
  pattern2: string;
103
100
  sendOrderDetail: any[];
104
101
  sendOrderRef: string;
105
- paymentReference: string;
106
- class: string;
107
- errorMsg: any[];
108
- totalRefundAmount: number;
109
- quantityUpdated: number;
110
- fullRefund: boolean;
111
- allowedRefundAmount: number;
112
- isRemissionsMatch: boolean;
113
- paymentFees: IFee[];
114
- paymentGroup: IPaymentGroup;
115
- isStatusAllocated: boolean;
116
102
  component: {
117
103
  account_number: string;
118
104
  amount: number;
@@ -134,10 +120,6 @@ export declare class AddRemissionComponent implements OnInit {
134
120
  };
135
121
  constructor(formBuilder: FormBuilder, router: Router, paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, refundService: RefundsService, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
136
122
  ngOnInit(): void;
137
- refundFeesList(): void;
138
- readonly feesList: FormArray;
139
- noneSelected(): boolean;
140
- check_en(v1: any): void;
141
123
  addRemission(): void;
142
124
  confirmRemission(): void;
143
125
  resetRemissionForm(val: any, field: any): void;
@@ -149,9 +131,6 @@ export declare class AddRemissionComponent implements OnInit {
149
131
  processRefund(): void;
150
132
  gotoIssueRefundConfirmation(payment: IPayment): void;
151
133
  gotoIssueRefundPage(): void;
152
- gotoIssuePage(): void;
153
- getRefundReasons(): void;
154
- getErrorClass(elementId: any): void;
155
134
  changeIssueRefundReason(): void;
156
135
  confirmIssueRefund(): void;
157
136
  confirmRetroRefund(): void;
@@ -67,7 +67,6 @@ export declare class CaseTransactionsComponent implements OnInit {
67
67
  isAddRemissionEnable: boolean;
68
68
  orderRemissionDetails: any[];
69
69
  orderLevelFees: IOrderReferenceFee[];
70
- ispaymentGroupApisuccess: boolean;
71
70
  cpoDetails: any;
72
71
  orderRef: string;
73
72
  orderStatus: string;
@@ -87,8 +86,6 @@ export declare class CaseTransactionsComponent implements OnInit {
87
86
  isAddRemissionBtnEnabled: boolean;
88
87
  isRefundRemissionBtnEnable: boolean;
89
88
  allowedRolesToAccessRefund: string[];
90
- isEligible4PBAPayment: string[];
91
- currentDate: Date;
92
89
  isFromServiceRequestPage: boolean;
93
90
  navigationpage: string;
94
91
  remissionFeeAmt: number;
@@ -125,7 +122,5 @@ export declare class CaseTransactionsComponent implements OnInit {
125
122
  chkIssueRefundBtnEnable(payment: IPayment): boolean;
126
123
  chkIsRefundRemissionBtnEnable(): boolean;
127
124
  check4AllowedRoles2AccessRefund: () => boolean;
128
- check4AllowedRoles2AccessPBApayment: () => boolean;
129
125
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
130
- loadPBAAccountPage(orderRef: IPayment): void;
131
126
  }
@@ -48,7 +48,6 @@ export declare class PaymentViewComponent implements OnInit {
48
48
  serviceReference: string;
49
49
  isFromServiceRequestPage: boolean;
50
50
  isFromPaymentDetailPage: boolean;
51
- paymentFees: IFee[];
52
51
  constructor(paymentViewService: PaymentViewService, paymentLibComponent: PaymentLibComponent, cd: ChangeDetectorRef, OrderslistService: OrderslistService);
53
52
  ngAfterContentChecked(): void;
54
53
  ngOnInit(): void;
@@ -27,7 +27,6 @@ export declare class ServiceRequestComponent implements OnInit {
27
27
  orderRemissionTotal: number;
28
28
  takePayment: boolean;
29
29
  ccdCaseNumber: boolean;
30
- isServiceRequest: string;
31
30
  servicerequest: string;
32
31
  excReference: string;
33
32
  paymentGroups: any[];
@@ -98,7 +97,6 @@ export declare class ServiceRequestComponent implements OnInit {
98
97
  check4AllowedRoles2AccessRefund: () => boolean;
99
98
  allowFurtherAccessAfter4Days: (payment: IPayment) => boolean;
100
99
  issueRefund(payment: IPayment): void;
101
- goToServiceRequestPage(event: any): void;
102
100
  goToPayementView(paymentGroupReference: string, paymentReference: string, paymentMethod: string): void;
103
101
  goToPaymentViewComponent(paymentGroup: any): void;
104
102
  resetOrderData(): void;
@@ -1,10 +1,5 @@
1
1
  export declare class PostRefundRetroRemission {
2
- ccd_case_number: string;
3
2
  payment_reference: string;
4
3
  refund_reason: string;
5
- payment_method: string;
6
- payment_status: string;
7
- refund_amount: any;
8
- 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[]);
4
+ constructor(payment_reference: string, refund_reason: string);
10
5
  }
@@ -2,7 +2,6 @@ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { PaymentLibService } from './payment-lib.service';
3
3
  import { IBSPayments } from './interfaces/IBSPayments';
4
4
  import { OrderslistService } from './services/orderslist.service';
5
- import { IPayment } from './interfaces/IPayment';
6
5
  export declare class PaymentLibComponent implements OnInit {
7
6
  private paymentLibService;
8
7
  private cd;
@@ -51,7 +50,6 @@ export declare class PaymentLibComponent implements OnInit {
51
50
  isFromRefundStatusPage: boolean;
52
51
  iscancelClicked: boolean;
53
52
  isFromPaymentDetailPage: boolean;
54
- pbaPayOrderRef: IPayment;
55
53
  isTakePayment: boolean;
56
54
  orderDetail: any[];
57
55
  orderRef: string;
@@ -15,8 +15,6 @@ 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';
20
18
  import { AddRetroRemissionRequest } from '../../interfaces/AddRetroRemissionRequest';
21
19
  import { PostRefundRetroRemission } from '../../interfaces/PostRefundRetroRemission';
22
20
  import { PostIssueRefundRetroRemission } from '../../interfaces/PostIssueRefundRetroRemission';
@@ -32,9 +30,6 @@ export declare class PaymentViewService {
32
30
  getPaymentDetails(paymentReference: string, paymentMethod: string): Observable<IPayment>;
33
31
  getPaymentGroupDetails(paymentGroupReference: string): Observable<IPaymentGroup>;
34
32
  getApportionPaymentDetails(paymentReference: string): Observable<IPaymentGroup>;
35
- getPBAaccountDetails(): Observable<any>;
36
- postWays2PayCardPayment(serviceRef: string, body: IserviceRequestCardPayment): Observable<any>;
37
- postPBAaccountPayment(serviceRef: string, body: IserviceRequestPbaPayment): Observable<any>;
38
33
  postBSPayments(body: AllocatePaymentRequest): Observable<any>;
39
34
  postBSUnidentifiedPayments(body: UnidentifiedPaymentsRequest): Observable<any>;
40
35
  postBSUnsolicitedPayments(body: UnsolicitedPaymentsRequest): Observable<any>;
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.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,199 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- import { Component, Input } from '@angular/core';
6
- import { PaymentViewService } from '../../services/payment-view/payment-view.service';
7
- import { PaymentLibComponent } from '../../payment-lib.component';
8
- import { IserviceRequestCardPayment } from '../../interfaces/IserviceRequestCardPayment';
9
- import { IserviceRequestPbaPayment } from '../../interfaces/IserviceRequestPbaPayment';
10
- /** @type {?} */
11
- const BS_ENABLE_FLAG = 'bulk-scan-enabling-fe';
12
- export class PbaPaymentComponent {
13
- /**
14
- * @param {?} paymentLibComponent
15
- * @param {?} paymentViewService
16
- */
17
- constructor(paymentLibComponent, paymentViewService) {
18
- this.paymentLibComponent = paymentLibComponent;
19
- this.paymentViewService = paymentViewService;
20
- this.isCardPaymentSuccess = true;
21
- this.isInSufficiantFund = false;
22
- this.isPBAAccountNotExist = false;
23
- this.isPBAServerError = false;
24
- this.isGetPBAAccountSucceed = false;
25
- this.selectedPbaAccount = '';
26
- this.pbaAccountRef = '';
27
- this.isContinueButtondisabled = true;
28
- this.isPBAAccountPaymentSuccess = false;
29
- }
30
- /**
31
- * @return {?}
32
- */
33
- ngOnInit() {
34
- this.pbaPayOrderRef = this.paymentLibComponent.pbaPayOrderRef;
35
- this.viewStatus = 'pba-payment';
36
- this.errorMsg = null;
37
- this.paymentViewService.getPBAaccountDetails()
38
- .subscribe((/**
39
- * @param {?} result
40
- * @return {?}
41
- */
42
- result => {
43
- this.isGetPBAAccountSucceed = true;
44
- this.pbaAccountList = result.organisationEntityResponse.paymentAccount;
45
- }), (/**
46
- * @param {?} error
47
- * @return {?}
48
- */
49
- error => {
50
- this.errorMsg = error;
51
- }));
52
- }
53
- /**
54
- * @param {?} args
55
- * @return {?}
56
- */
57
- selectpbaaccount(args) {
58
- if (args.currentTarget.id === 'pbaAccountNumber') {
59
- this.selectedPbaAccount = args.target.value;
60
- }
61
- if (args.currentTarget.id === 'pbaAccountRef') {
62
- this.pbaAccountRef = args.target.value;
63
- }
64
- if (this.selectedPbaAccount !== '' && this.pbaAccountRef !== "") {
65
- this.isContinueButtondisabled = false;
66
- }
67
- else {
68
- this.isContinueButtondisabled = true;
69
- }
70
- }
71
- /**
72
- * @return {?}
73
- */
74
- saveAndContinue() {
75
- this.isInSufficiantFund = false;
76
- this.isPBAAccountNotExist = false;
77
- this.isPBAServerError = false;
78
- this.isPBAAccountPaymentSuccess = false;
79
- if (this.pbaAccountList.indexOf(this.selectedPbaAccount) !== -1) {
80
- /** @type {?} */
81
- const requestBody = new IserviceRequestPbaPayment(this.selectedPbaAccount, this.pbaPayOrderRef.orderTotalFees, this.pbaAccountRef);
82
- this.paymentViewService.postPBAaccountPayment(this.pbaPayOrderRef.orderRefId, requestBody)
83
- .subscribe((/**
84
- * @param {?} r
85
- * @return {?}
86
- */
87
- r => {
88
- this.pbaAccountrPaymentResult = JSON.parse(r).data;
89
- this.isPBAAccountPaymentSuccess = true;
90
- }), (/**
91
- * @param {?} e
92
- * @return {?}
93
- */
94
- e => {
95
- if (e.status == '402') {
96
- this.isInSufficiantFund = true;
97
- }
98
- else if (e.status == '410' || e.status == '412') {
99
- this.isPBAAccountNotExist = true;
100
- }
101
- else {
102
- this.isPBAServerError = true;
103
- }
104
- }));
105
- }
106
- else {
107
- this.isPBAServerError = true;
108
- }
109
- }
110
- /**
111
- * @return {?}
112
- */
113
- cardPayment() {
114
- this.isCardPaymentSuccess = true;
115
- /** @type {?} */
116
- const requestBody = new IserviceRequestCardPayment(this.pbaPayOrderRef.orderTotalFees);
117
- this.paymentViewService.postWays2PayCardPayment(this.pbaPayOrderRef.orderRefId, requestBody)
118
- .subscribe((/**
119
- * @param {?} result
120
- * @return {?}
121
- */
122
- result => {
123
- /** @type {?} */
124
- const paymentUrl = JSON.parse(result).next_url;
125
- window.location.href = paymentUrl;
126
- }), (/**
127
- * @param {?} error
128
- * @return {?}
129
- */
130
- error => {
131
- this.isCardPaymentSuccess = false;
132
- }));
133
- }
134
- /**
135
- * @return {?}
136
- */
137
- gotoCasetransationPage() {
138
- this.paymentLibComponent.viewName = 'case-transactions';
139
- this.paymentLibComponent.TAKEPAYMENT = false;
140
- this.paymentLibComponent.ISBSENABLE = true;
141
- this.paymentLibComponent.isFromServiceRequestPage = true;
142
- }
143
- }
144
- PbaPaymentComponent.decorators = [
145
- { type: Component, args: [{
146
- selector: 'ccpay-pba-payment',
147
- template: "<ng-container *ngIf=\"viewStatus === 'pba-payment'\">\n\n <div class=\"govuk-breadcrumbs\" *ngIf=\"!errorMsg && !isPBAAccountPaymentSuccess && !isCardPaymentSuccess\">\n <ol class=\"govuk-breadcrumbs__list\">\n <li class=\"govuk-breadcrumbs__list-item\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\" class=\"govuk-back-link pba-payments-16-font\">Back</a>\n </li>\n </ol>\n </div>\n <div class=\"pba-payment\" *ngIf=\"(pbaAccountList?.length > 0 || errorMsg) && !isInSufficiantFund && !isPBAAccountNotExist && !isPBAServerError && !isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n \n <div *ngIf=\"errorMsg\" class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\" >\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account cannot be found.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you know your organisation has a PBA, try again.\n </li>\n <li class=\"pba-payments-error-16-font\">\n You can also pay by credit or debit card.\n </li>\n </ul>\n </div>\n </div>\n <h1 class=\"heading-medium margin-top-10-px\">Pay fee using Payment by Account (PBA)</h1>\n <div class=\"govuk-form-group\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\">\n Amount to pay \n </label>\n <span class=\"pba-payments-19-font\">{{pbaPayOrderRef.orderTotalFees | currency :'GBP':'symbol':'1.2-2'}}</span>\n </div>\n\n <div class=\"govuk-form-group pba-payments-select-box--size\" *ngIf=\"!errorMsg\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-19-font\" for=\"pbaAccountNumber\">\n Select a PBA \n </label>\n <select class=\"form-control short-input\" id=\"pbaAccountNumber\" (change)=\"selectpbaaccount($event)\">\n <option value=\"\" selected='selected'>Select option</option>\n <option *ngFor=\"let pbaAccount of pbaAccountList;\" value=\"{{pbaAccount}}\">{{pbaAccount}}</option>\n </select>\n </div>\n <div class=\"govuk-form-group\" *ngIf=\"!errorMsg && selectedPbaAccount\">\n <label class=\"govuk-label pba-payments-govuk__label pba-payments-24-font\" for=\"pbaAccountNumber\">\n Enter a reference for your PBA account statements \n </label>\n <div id=\"event-name-hint\" class=\"govuk-hint pba-payments-19-font pba-payment-width\">\n This should be your own unique reference to identify the case. It will appear on your statements.\n </div>\n <input class=\"govuk-input pba-payments-ref-box--size pba-payments-19-font\" id=\"pbaAccountRef\" (change)=\"selectpbaaccount($event)\" name=\"pbaAccountRef\" type=\"text\" aria-describedby=\"pbaAccountRef-hint\">\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"errorMsg\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n <div class=\"govuk-button--group\" *ngIf=\"!errorMsg\">\n <button type=\"submit\" [disabled]=\"isContinueButtondisabled\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"saveAndContinue()\">\n Continue\n </button>\n </div>\n </div>\n<ng-container *ngIf=\"pbaAccountList?.length <= 0 && !errorMsg && isGetPBAAccountSucceed && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-warning-text\">\n <span class=\"govuk-warning-text__icon\" aria-hidden=\"true\">!</span>\n <strong class=\"govuk-warning-text__text\">\n <span class=\"govuk-warning-text__assistive\">Warning</span>\n <h2 class=\"warning-heading-m\">You don\u2019t have a registered PBA.</h2>\n </strong>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Pay by credit or debit card</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n We recommend that you apply to get a new PBA to pay for fees.\n </p>\n <p class=\"govuk-bod ypba-payments-19-font\">\n you can also pay by credit or debit card if you need to pay now\n </p>\n <p class=\"govuk-body\">\n <button type=\"submit\" (click)=\"cardPayment()\" class=\"button pba-payments-19-font pba-payments-20-margin\">\n Pay by card\n </button>\n </p>\n \n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Register an existing PBA with MyHMCTS</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You may find it easier in future to pay by PBA, your organisation administrator will need to \n email <a href=\"mailto: MyHMCTSsupport@justice.gov.uk\">MyHMCTSsupport@justice.gov.uk</a> to ask for your PBA to be registered with your \n MyHMCTS account. You should include your organisation name and PBA number.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n It can then take up to 3 days for your account to be updated. You\u2019ll need to start your claim \n again to pay the fee.\n </p>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Apply to get a new PBA </h2>\n <p class=\"govuk-body pba-payments-19-font\">\n You\u2019ll need to provide details for you and your organisation, including the required credit\n limit for your account.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Once your account has been registered, you\u2019ll need to start your claim again to pay the fee.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n Read more information on <a target=\"_blank\" href=\"https://www.gov.uk/guidance/hmcts-payment-by-account-for-online-services\">registering for PBA</a>.\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isInSufficiantFund && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n You don't have enough funds in your PBA account to pay for this fee.\n </li>\n <li class=\"pba-payments-error-16-font\">\n If you have already topped up your PBA account, wait up to 24 hours for the new balance to become available.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a>or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAAccountNotExist && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-error-summary pba-payments-error-box--size\" aria-labelledby=\"error-summary-title\">\n <h2 class=\"govuk-error-summary__title govuk-error-summary__title-custom pba-payments-24-font\" id=\"error-summary-title\">\n There is a problem\n </h2>\n <div class=\"govuk-error-summary__body\">\n <ul class=\"govuk-list govuk-error-summary__list\">\n <li class=\"pba-payments-error-16-font\">\n Your PBA account ({{selectedPbaAccount}}) no longer exists.\n </li>\n </ul>\n </div>\n </div>\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"heading-medium\">Should you need any further advice</h2>\n <p class=\"govuk-body pba-payments-19-font govuk-body-width\">\n Email <a href=\"mailto:MiddleOffice.DDservices@liberata.com\">MiddleOffice.DDservices@liberata.com</a>or call <a href=\"tel:01633-652-125\">01633 652 125</a> (option 3) to try to fix the issue.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n<ng-container *ngIf=\"isPBAServerError && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <p class=\"govuk-body pba-payments-19-font\">\n you can also pay by credit or debit card.\n </p>\n <div class=\"govuk-button--group\">\n <button type=\"button\" class=\"button pba-payments-19-font govuk-button--secondary pba-payments-margin-10\" (click)=\"gotoCasetransationPage()\">\n View Service Request\n </button>\n <button type=\"submit\" class=\"button pba-payments-19-font pba-payments-20-margin\" (click)=\"cardPayment()\">\n Pay by card\n </button>\n </div>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"isPBAAccountPaymentSuccess && isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"govuk-panel govuk-panel--confirmation pba-payments--confirmation\">\n <h1 class=\"govuk-panel__title pba-payments--title\">\n Payment successful\n </h1>\n <div class=\"govuk-panel__body pba-payments__body\">\n Your payment reference is <br><strong>{{pbaAccountrPaymentResult.payment_reference}}</strong>\n </div>\n </div>\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </main>\n </div>\n</ng-container>\n\n<ng-container *ngIf=\"!isCardPaymentSuccess\">\n <div class=\"govuk-width-container\">\n <main class=\"govuk-main-wrapper govuk-main-wrapper--l\" id=\"main-content\" role=\"main\">\n <div class=\"govuk-grid-row\">\n <div class=\"pba-payments-margin-top-10\">\n <h2 class=\"pba-payments-heading-lg\">Sorry, there is a problem with the service</h2>\n <p class=\"govuk-body pba-payments-19-font\">\n Try again later.\n </p>\n <!-- <p class=\"govuk-body pba-payments-19-font\">\n you can also <a href=\"javascript:void(0)\" (click)=\"cardPayment()\" >pay by credit or debit card</a>.\n </p> -->\n <p class=\"govuk-body pba-payments-19-font\">\n <a href=\"javascript:void(0)\" (click)=\"gotoCasetransationPage()\">View service requests</a>\n </p>\n </div>\n </div>\n </main>\n </div>\n</ng-container>\n</ng-container>\n\n\n\n",
148
- styles: [".pba-payments-govuk__label{font-weight:700;line-height:1.31578947}.pba-payments-19-font{font-size:19px}.pba-payments-16-font{font-size:16px}.pba-payments-24-font{font-size:24px}.pba-payments-20-margin{margin-bottom:20px}.pba-payments-select-box--size{width:40%}.pba-payments-error-box--size{width:80%}.pba-payments-ref-box--size{width:60%}.pba-payments-error-16-font{font-size:16px;line-height:34px}.pba-payments-margin-10{margin-right:10px}.pba-payments-margin-top-10{margin-top:15px}.pba-payments-heading-lg{font-size:40px;font-weight:700;line-height:72px}.pba-payments--confirmation{background:#00703c!important}.pba-payments__body{font-size:36px!important}.pba-payments--title{font-size:48px!important}.warning-heading-m{font-size:29px;font-weight:700}.pba-payment-width{width:75%}.margin-top-10-px{margin-top:10px}.govuk-error-summary:focus{outline:#fd0 solid 3px}.govuk-body-width{width:650px}"]
149
- }] }
150
- ];
151
- /** @nocollapse */
152
- PbaPaymentComponent.ctorParameters = () => [
153
- { type: PaymentLibComponent },
154
- { type: PaymentViewService }
155
- ];
156
- PbaPaymentComponent.propDecorators = {
157
- pbaPayOrderRef: [{ type: Input }]
158
- };
159
- if (false) {
160
- /** @type {?} */
161
- PbaPaymentComponent.prototype.pbaPayOrderRef;
162
- /** @type {?} */
163
- PbaPaymentComponent.prototype.viewStatus;
164
- /** @type {?} */
165
- PbaPaymentComponent.prototype.pbaAccountList;
166
- /** @type {?} */
167
- PbaPaymentComponent.prototype.errorMsg;
168
- /** @type {?} */
169
- PbaPaymentComponent.prototype.isCardPaymentSuccess;
170
- /** @type {?} */
171
- PbaPaymentComponent.prototype.isInSufficiantFund;
172
- /** @type {?} */
173
- PbaPaymentComponent.prototype.isPBAAccountNotExist;
174
- /** @type {?} */
175
- PbaPaymentComponent.prototype.isPBAServerError;
176
- /** @type {?} */
177
- PbaPaymentComponent.prototype.isGetPBAAccountSucceed;
178
- /** @type {?} */
179
- PbaPaymentComponent.prototype.selectedPbaAccount;
180
- /** @type {?} */
181
- PbaPaymentComponent.prototype.pbaAccountRef;
182
- /** @type {?} */
183
- PbaPaymentComponent.prototype.isContinueButtondisabled;
184
- /** @type {?} */
185
- PbaPaymentComponent.prototype.isPBAAccountPaymentSuccess;
186
- /** @type {?} */
187
- PbaPaymentComponent.prototype.pbaAccountrPaymentResult;
188
- /**
189
- * @type {?}
190
- * @private
191
- */
192
- PbaPaymentComponent.prototype.paymentLibComponent;
193
- /**
194
- * @type {?}
195
- * @private
196
- */
197
- PbaPaymentComponent.prototype.paymentViewService;
198
- }
199
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIj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F5bWVudFN1Y2Nlc3MgPSBmYWxzZTtcbiAgICAgIH1cbiAgICApO1xuXG4gIH1cbiAgZ290b0Nhc2V0cmFuc2F0aW9uUGFnZSgpIHtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQudmlld05hbWUgPSAnY2FzZS10cmFuc2FjdGlvbnMnO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5UQUtFUEFZTUVOVCA9IGZhbHNlO1xuICAgIHRoaXMucGF5bWVudExpYkNvbXBvbmVudC5JU0JTRU5BQkxFID0gdHJ1ZTtcbiAgICB0aGlzLnBheW1lbnRMaWJDb21wb25lbnQuaXNGcm9tU2VydmljZVJlcXVlc3RQYWdlID0gdHJ1ZTtcbiAgfVxufVxuIl19
@@ -1,23 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- export class IserviceRequestCardPayment {
6
- /**
7
- * @param {?} amount
8
- */
9
- constructor(amount) {
10
- this.amount = amount;
11
- this.currency = 'GBP';
12
- this.language = 'string';
13
- }
14
- }
15
- if (false) {
16
- /** @type {?} */
17
- IserviceRequestCardPayment.prototype.amount;
18
- /** @type {?} */
19
- IserviceRequestCardPayment.prototype.currency;
20
- /** @type {?} */
21
- IserviceRequestCardPayment.prototype.language;
22
- }
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSXNlcnZpY2VSZXF1ZXN0Q2FyZFBheW1lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaG1jdHMvY2NwYXktd2ViLWNvbXBvbmVudC8iLCJzb3VyY2VzIjpbImxpYi9pbnRlcmZhY2VzL0lzZXJ2aWNlUmVxdWVzdENhcmRQYXltZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxNQUFNLE9BQU8sMEJBQTBCOzs7O0lBS25DLFlBQVksTUFBZTtRQUN2QixJQUFJLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQztRQUNyQixJQUFJLENBQUMsUUFBUSxHQUFHLEtBQUssQ0FBQztRQUN0QixJQUFJLENBQUMsUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUM3QixDQUFDO0NBQ0o7OztJQVRHLDRDQUFjOztJQUNkLDhDQUFnQjs7SUFDaEIsOENBQWdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIElzZXJ2aWNlUmVxdWVzdENhcmRQYXltZW50IHtcbiAgICBhbW91bnQ6IHN0cmluZ1xuICAgIGN1cnJlbmN5OiBzdHJpbmdcbiAgICBsYW5ndWFnZTogc3RyaW5nXG4gICAgXG4gICAgY29uc3RydWN0b3IoYW1vdW50IDogc3RyaW5nKSB7XG4gICAgICAgIHRoaXMuYW1vdW50ID0gYW1vdW50O1xuICAgICAgICB0aGlzLmN1cnJlbmN5ID0gJ0dCUCc7XG4gICAgICAgIHRoaXMubGFuZ3VhZ2UgPSAnc3RyaW5nJztcbiAgICB9IFxufVxuICAgICJdfQ==
@@ -1,28 +0,0 @@
1
- /**
2
- * @fileoverview added by tsickle
3
- * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4
- */
5
- export class IserviceRequestPbaPayment {
6
- /**
7
- * @param {?} account_number
8
- * @param {?} amount
9
- * @param {?} customer_reference
10
- */
11
- constructor(account_number, amount, customer_reference) {
12
- this.account_number = account_number;
13
- this.amount = amount;
14
- this.currency = 'GBP';
15
- this.customer_reference = customer_reference;
16
- }
17
- }
18
- if (false) {
19
- /** @type {?} */
20
- IserviceRequestPbaPayment.prototype.account_number;
21
- /** @type {?} */
22
- IserviceRequestPbaPayment.prototype.amount;
23
- /** @type {?} */
24
- IserviceRequestPbaPayment.prototype.currency;
25
- /** @type {?} */
26
- IserviceRequestPbaPayment.prototype.customer_reference;
27
- }
28
- //# sourceMappingURL=data:application/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