Skip to content

Commit

Permalink
Merge pull request #860 from sumesh-aot/fas_tech
Browse files Browse the repository at this point in the history
FAS integration documentation
  • Loading branch information
sumesh-aot authored Jan 24, 2022
2 parents 4ce1c1a + 37fcb85 commit 823a730
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 0 deletions.
205 changes: 205 additions & 0 deletions docs/docs/architecture/FAS_Intgeration.md
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)

26 changes: 26 additions & 0 deletions docs/docs/architecture/fas/cancel_transaction.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions docs/docs/architecture/fas/cancel_transaction_partial.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions docs/docs/architecture/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

0 comments on commit 823a730

Please sign in to comment.