Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SELC-4374] feat: added API to start onboarding for new users #313

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading