Skip to content

Commit

Permalink
[SELC-4374] feat: added API to start onboarding for new users (#313)
Browse files Browse the repository at this point in the history
Co-authored-by: [email protected] <Aiap1955?^@#>
  • Loading branch information
pierpaolodidato89 and [email protected] authored Jun 17, 2024
1 parent 8841a99 commit 56cef14
Show file tree
Hide file tree
Showing 16 changed files with 1,679 additions and 1,136 deletions.
124 changes: 124 additions & 0 deletions app/src/main/resources/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,91 @@
} ]
}
},
"/v1/users/onboarding" : {
"post" : {
"tags" : [ "user" ],
"summary" : "onboarding",
"description" : "The service allows the onboarding of Users",
"operationId" : "onboardingUsingPOST_4",
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/OnboardingUserDto"
}
}
}
},
"responses" : {
"201" : {
"description" : "Created"
},
"400" : {
"description" : "Bad Request",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"401" : {
"description" : "Unauthorized",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"403" : {
"description" : "Forbidden",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"404" : {
"description" : "Not Found",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"409" : {
"description" : "Conflict",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
},
"500" : {
"description" : "Internal Server Error",
"content" : {
"application/problem+json" : {
"schema" : {
"$ref" : "#/components/schemas/Problem"
}
}
}
}
},
"security" : [ {
"bearerAuth" : [ "global" ]
} ]
}
},
"/v1/users/validate" : {
"post" : {
"tags" : [ "user" ],
Expand Down Expand Up @@ -2760,6 +2845,45 @@
}
}
},
"OnboardingUserDto" : {
"title" : "OnboardingUserDto",
"required" : [ "productId", "users" ],
"type" : "object",
"properties" : {
"institutionType" : {
"type" : "string",
"description" : "Institution's type",
"enum" : [ "AS", "CON", "GSP", "PA", "PG", "PSP", "PT", "REC", "SA", "SCP" ]
},
"origin" : {
"type" : "string",
"description" : "Institution data origin"
},
"originId" : {
"type" : "string",
"description" : "Institution's details origin Id"
},
"productId" : {
"type" : "string",
"description" : "Product's unique identifier"
},
"subunitCode" : {
"type" : "string",
"description" : "Institution's subunitCode"
},
"taxCode" : {
"type" : "string",
"description" : "Institution's taxCode"
},
"users" : {
"type" : "array",
"description" : "List of onboarding users",
"items" : {
"$ref" : "#/components/schemas/UserDto"
}
}
}
},
"OnboardingVerify" : {
"title" : "OnboardingVerify",
"required" : [ "status" ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
import org.springframework.web.multipart.MultipartFile;

public interface OnboardingMsConnector {

void onboarding(OnboardingData onboardingData);

void onboardingUsers(OnboardingData onboardingData);

void onboardingCompany(OnboardingData onboardingData);

void onboardingTokenComplete(String onboardingId, MultipartFile contract);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.List;
import java.util.Optional;


@Data
@NoArgsConstructor
public class OnboardingData {
Expand Down
Loading

0 comments on commit 56cef14

Please sign in to comment.