mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
chore: updated open api spec documentation for create platform account (#8692)
Co-authored-by: Gitanjli Chopra <gitanjli.chopra@Gitanjli-Chopra-DC62KJQFX6.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sandeep Kumar <83278309+tsdk02@users.noreply.github.com>
This commit is contained in:
@ -3,6 +3,7 @@ use std::fmt::Debug;
|
||||
use common_enums::{EntityType, TokenPurpose};
|
||||
use common_utils::{crypto::OptionalEncryptableName, id_type, pii};
|
||||
use masking::Secret;
|
||||
use utoipa::ToSchema;
|
||||
|
||||
use crate::user_role::UserStatus;
|
||||
pub mod dashboard_metadata;
|
||||
@ -150,17 +151,24 @@ pub struct UserOrgMerchantCreateRequest {
|
||||
pub merchant_name: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]
|
||||
pub struct PlatformAccountCreateRequest {
|
||||
#[schema(max_length = 64, value_type = String, example = "organization_abc")]
|
||||
pub organization_name: Secret<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize)]
|
||||
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
pub struct PlatformAccountCreateResponse {
|
||||
#[schema(value_type = String, max_length = 64, min_length = 1, example = "org_abc")]
|
||||
pub org_id: id_type::OrganizationId,
|
||||
#[schema(value_type = Option<String>, example = "organization_abc")]
|
||||
pub org_name: Option<String>,
|
||||
|
||||
#[schema(value_type = OrganizationType, example = "standard")]
|
||||
pub org_type: common_enums::OrganizationType,
|
||||
#[schema(value_type = String, example = "merchant_abc")]
|
||||
pub merchant_id: id_type::MerchantId,
|
||||
#[schema(value_type = MerchantAccountType, example = "standard")]
|
||||
pub merchant_account_type: common_enums::MerchantAccountType,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user