diff --git a/docs/src/payer_read.plantuml b/docs/src/payer_read.plantuml new file mode 100644 index 000000000..fc6e69544 --- /dev/null +++ b/docs/src/payer_read.plantuml @@ -0,0 +1,29 @@ +@startuml + +' Defining payer for read operation + +#LightGreen:Owner: by default; + +if (Is allocation.Payer field set?) then (yes) + #LightGreen:Payer; +else (no) +endif + +if (Is rx_pay flag set?) then (yes) + #LightGreen:Client; +else (no) +endif + +if (Is payer Owner, Repairer or Collaborator?) then (no) + if (Is auth token provided and valid?) then (no) + #Pink:Error; + else (yes) + if (Is a file attr set to WhoPays3rdParty?) then (yes) + #LightGreen:Client; + else (no) + endif + endif +else (yes) +endif + +@enduml diff --git a/docs/src/payer_read.png b/docs/src/payer_read.png new file mode 100644 index 000000000..9b7fe28c4 Binary files /dev/null and b/docs/src/payer_read.png differ