39 lines
1.1 KiB
Markdown
39 lines
1.1 KiB
Markdown
# KYC: Selfie
|
|
###### Sprint: 3
|
|
|
|
### Outcome:
|
|
Users can upload image for certification (the image includes selfie and signed text of the agreement )
|
|
|
|
|
|
### Implementation description:
|
|
|
|
#### Endpoints:
|
|
POST{$domain}/api/v2/barong/resource/profiles/selfie
|
|
|
|
#### File destination:
|
|
{$Dalan_Path}/app/api/v2/resource/profiles.rb
|
|
|
|
#### Commits:
|
|
ac083d21
|
|
ea79c211
|
|
|
|
#### What did we implement:
|
|
Users can upload images for the Selfie KYC step. In the first place that image is in a `pending` state.
|
|
In the Admin panel, this image must be change state from `pending` to `confirm` or `reject`
|
|
|
|
|
|
|
|
```mermaid
|
|
sequenceDiagram
|
|
|
|
Title: KYC - Selfie
|
|
|
|
note over User,Ranj: **upload** must be valid format of image (jpg, jpeg, png)
|
|
User->>Ranj: upload
|
|
Ranj->>Dalan:Post: after client side checking
|
|
Dalan->>Ranj:4xx if does not exist verified profile for the current user
|
|
Dalan->>Ranj:4xx if before exist verified selfie image for the current user
|
|
Dalan->>Ranj:2xx update (if exist unconfirmed ) or create new selfie
|
|
Ranj->>User:notify user that password changed
|
|
```
|