-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2372, 23508 - redirect to direct pay, API and UI updates (#282)
* 23732 - Updating API endpoint for Document Access Request. * 23508 - Adding redirect to direct_pay for users with no pad (cc) * PR updates. * flake8
- Loading branch information
Showing
14 changed files
with
197 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
search-api/tests/unit/mocks/create-invoice-cc-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"_links": { | ||
"collection": "/api/v1/payment-requests?invoice_id=41861", | ||
"self": "/api/v1/payment-requests/41861" | ||
}, | ||
"businessIdentifier": "FM1000026", | ||
"corpTypeCode": "BUS", | ||
"createdBy": "BCSC/ZGCBNHM6U7FPRXI7AJT6KFF7GSKY43TA", | ||
"createdName": "BCREG2 Ayisha FIFTY", | ||
"createdOn": "2024-10-25T21:19:17+00:00", | ||
"details": [ | ||
{ | ||
"label": "Registration Number: ", | ||
"value": "FM1000026" | ||
} | ||
], | ||
"id": 41861, | ||
"isPaymentActionRequired": true, | ||
"lineItems": [ | ||
{ | ||
"description": "Business Summary", | ||
"filingFees": 7.0, | ||
"futureEffectiveFees": 0.0, | ||
"gst": 0.0, | ||
"id": 44464, | ||
"priorityFees": 0.0, | ||
"pst": 0.0, | ||
"quantity": 1, | ||
"serviceFees": 1.5, | ||
"statusCode": "ACTIVE", | ||
"total": 8.5, | ||
"waivedBy": null, | ||
"waivedFees": 0.0 | ||
} | ||
], | ||
"overdueDate": "2024-12-15T08:00:00+00:00", | ||
"paid": 0.0, | ||
"paymentAccount": { | ||
"accountId": "3137", | ||
"accountName": "Kial Dev 3 (BTR test account) - Public search access", | ||
"billable": true, | ||
"branchName": "Public search access" | ||
}, | ||
"paymentMethod": "DIRECT_PAY", | ||
"references": [ | ||
{ | ||
"createdOn": "2024-10-25T21:19:17+00:00", | ||
"id": 34456, | ||
"invoiceNumber": "REGUT00041861", | ||
"statusCode": "ACTIVE" | ||
} | ||
], | ||
"refund": 0.0, | ||
"serviceFees": 1.5, | ||
"statusCode": "CREATED", | ||
"total": 8.5 | ||
} |
49 changes: 49 additions & 0 deletions
49
search-api/tests/unit/mocks/create-invoice-pad-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"_links": { | ||
"collection": "/api/v1/payment-requests?invoice_id=41863", | ||
"self": "/api/v1/payment-requests/41863" | ||
}, | ||
"businessIdentifier": "FM1000026", | ||
"corpTypeCode": "BUS", | ||
"createdBy": "BCSC/ZGCBNHM6U7FPRXI7AJT6KFF7GSKY43TA", | ||
"createdName": "BCREG2 Ayisha FIFTY", | ||
"createdOn": "2024-10-25T21:22:37+00:00", | ||
"details": [ | ||
{ | ||
"label": "Registration Number: ", | ||
"value": "FM1000026" | ||
} | ||
], | ||
"id": 41863, | ||
"isPaymentActionRequired": false, | ||
"lineItems": [ | ||
{ | ||
"description": "Business Summary", | ||
"filingFees": 7.0, | ||
"futureEffectiveFees": 0.0, | ||
"gst": 0.0, | ||
"id": 44466, | ||
"priorityFees": 0.0, | ||
"pst": 0.0, | ||
"quantity": 1, | ||
"serviceFees": 1.5, | ||
"statusCode": "ACTIVE", | ||
"total": 7.0, | ||
"waivedBy": null, | ||
"waivedFees": 0.0 | ||
} | ||
], | ||
"overdueDate": "2024-12-15T08:00:00+00:00", | ||
"paid": 0.0, | ||
"paymentAccount": { | ||
"accountId": "3101", | ||
"accountName": "Kial Dev 2 (BTR test account)-Director search access", | ||
"billable": true, | ||
"branchName": "Director search access" | ||
}, | ||
"paymentMethod": "PAD", | ||
"refund": 0.0, | ||
"serviceFees": 1.5, | ||
"statusCode": "APPROVED", | ||
"total": 8.5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
search-ui/src/enums/document-access-request-payment-status.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum DocumentAccessRequestPaymentStatus { | ||
CREATED = 'CREATED', | ||
PAID = 'PAID' | ||
} |
Oops, something went wrong.