-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #860 from sumesh-aot/fas_tech
FAS integration documentation
- Loading branch information
Showing
9 changed files
with
420 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,205 @@ | ||
# FAS Integration points with CFS | ||
|
||
## Endpoints to call when routing slip is created | ||
|
||
<!-- | ||
``` | ||
@startuml fas/routing_slip | ||
Pay_API -> CFS_API: /parties | ||
CFS_API -> Pay_API : | ||
note right | ||
Send customer name as the entity number or unique number ? | ||
end note | ||
Pay_API -> CFS_API: /accs | ||
CFS_API -> Pay_API : | ||
note right | ||
Create account with name BCR ? | ||
end note | ||
Pay_API -> CFS_API: /sites | ||
CFS_API -> Pay_API : | ||
note right | ||
Create site with hard coded values as no address is provided ? | ||
end note | ||
Pay_API -> CFS_API: /rcpts | ||
CFS_API -> Pay_API : | ||
note right | ||
Create receipt with number as RS number | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/routing_slip.svg) | ||
|
||
## Endpoints to call on invoice (transaction) creation | ||
|
||
<!-- | ||
``` | ||
@startuml fas/routing_slip_transaction | ||
Pay_API -> CFS_API: /invs | ||
CFS_API -> Pay_API : | ||
note right | ||
Create invoice against the site. | ||
end note | ||
Pay_API -> CFS_API: /rcpts/apply | ||
CFS_API -> Pay_API : | ||
note right | ||
Call apply receipt with the routing slip receipt and invoice as payload. | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/routing_slip_transaction.svg) | ||
|
||
|
||
## Endpoints to call when invoice (transaction) is cancelled | ||
|
||
<!-- | ||
``` | ||
@startuml fas/cancel_transaction | ||
Pay_API -> CFS_API: /rcpts/unapply | ||
CFS_API -> Pay_API : | ||
note right | ||
Unapply the receipt on the invoice. | ||
end note | ||
Pay_API -> CFS_API: /invs/adjs | ||
CFS_API -> Pay_API : | ||
note right | ||
Adjust invoice to zero | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/cancel_transaction.svg) | ||
|
||
## Endpoints to call when invoice (transaction) is partially cancelled | ||
|
||
<!-- | ||
``` | ||
@startuml fas/cancel_transaction_partial | ||
Pay_API -> CFS_API: /rcpts/unapply | ||
CFS_API -> Pay_API : | ||
note right | ||
Unapply the receipt on the invoice. | ||
end note | ||
Pay_API -> CFS_API: /invs/adjs | ||
CFS_API -> Pay_API : | ||
note right | ||
Adjust invoice to partial | ||
end note | ||
Pay_API -> CFS_API: /rcpts/apply | ||
CFS_API -> Pay_API : | ||
note right | ||
Apply the receipt to invoice | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/cancel_transaction_partial.svg) | ||
|
||
|
||
## Endpoints to call when refund is approved. | ||
|
||
<!-- | ||
``` | ||
@startuml fas/refund_approved | ||
Pay_API -> CFS_API: /rcpts/adjs ? | ||
CFS_API -> Pay_API : | ||
note right | ||
Adjust the invoice to zero using an activity_name to move the fund to refund revenue account. | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/refund_approved.svg) | ||
|
||
|
||
## Endpoints to call to write off a routing slip (< $10) | ||
|
||
<!-- | ||
``` | ||
@startuml fas/write_off | ||
Pay_API -> CFS_API: /rcpts/adjs | ||
CFS_API -> Pay_API : | ||
note right | ||
Adjust the invoice to zero using an activity_name to move the fund to write off revenue account. | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/write_off.svg) | ||
|
||
|
||
## Endpoints to call when cheque is bounced | ||
|
||
<!-- | ||
``` | ||
@startuml fas/nsf | ||
Pay_API -> CFS_API: /rcpts/reverse ? | ||
CFS_API -> Pay_API : | ||
note right | ||
Reverse the receipt. Which will unapply all invoices. | ||
end note | ||
Pay_API -> CFS_API: /invs | ||
CFS_API -> Pay_API : | ||
note right | ||
New invoice for NSF fees | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/nsf.svg) | ||
|
||
## Endpoints to call when RS is linked | ||
|
||
<!-- | ||
``` | ||
@startuml fas/link | ||
Pay_API -> CFS_API: /rcpts/reverse ? | ||
CFS_API -> Pay_API : | ||
note right | ||
Reverse the receipt child routing slip. | ||
end note | ||
Pay_API -> CFS_API: /rcpts | ||
CFS_API -> Pay_API : | ||
note right | ||
Create receipt to the parent. | ||
end note | ||
@enduml | ||
``` | ||
--> | ||
![CFS](fas/link.svg) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.