feat(vsaas): integrate onboarding flow for vertical saas (#7884)

This commit is contained in:
Apoorv Dixit
2025-05-12 19:19:42 +05:30
committed by GitHub
parent 57cb3a9ff0
commit cf34be1728
22 changed files with 376 additions and 33 deletions

View File

@ -130,6 +130,20 @@ pub struct UserOrgMerchantCreateRequest {
pub merchant_name: Secret<String>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
pub struct PlatformAccountCreateRequest {
pub organization_name: Secret<String>,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct PlatformAccountCreateResponse {
pub org_id: id_type::OrganizationId,
pub org_name: Option<String>,
pub org_type: common_enums::OrganizationType,
pub merchant_id: id_type::MerchantId,
pub merchant_account_type: common_enums::MerchantAccountType,
}
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct UserMerchantCreate {
pub company_name: String,
@ -381,6 +395,7 @@ pub struct UserTransferKeyResponse {
pub struct ListOrgsForUserResponse {
pub org_id: id_type::OrganizationId,
pub org_name: Option<String>,
pub org_type: common_enums::OrganizationType,
}
#[derive(Debug, serde::Serialize)]
@ -388,6 +403,7 @@ pub struct UserMerchantAccountResponse {
pub merchant_id: id_type::MerchantId,
pub merchant_name: OptionalEncryptableName,
pub product_type: Option<common_enums::MerchantProductType>,
pub merchant_account_type: common_enums::MerchantAccountType,
pub version: common_enums::ApiVersion,
}