chore: update org retrieve api response to include org type (#8660)

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>
This commit is contained in:
Gitanjli
2025-07-18 15:38:54 +05:30
committed by GitHub
parent 126018e217
commit a75af8b3e6
7 changed files with 42 additions and 0 deletions

View File

@ -18423,9 +18423,24 @@
"created_at": {
"type": "string",
"format": "date-time"
},
"organization_type": {
"allOf": [
{
"$ref": "#/components/schemas/OrganizationType"
}
],
"nullable": true
}
}
},
"OrganizationType": {
"type": "string",
"enum": [
"standard",
"platform"
]
},
"OrganizationUpdateRequest": {
"type": "object",
"required": [

View File

@ -14971,9 +14971,24 @@
"created_at": {
"type": "string",
"format": "date-time"
},
"organization_type": {
"allOf": [
{
"$ref": "#/components/schemas/OrganizationType"
}
],
"nullable": true
}
}
},
"OrganizationType": {
"type": "string",
"enum": [
"standard",
"platform"
]
},
"OrganizationUpdateRequest": {
"type": "object",
"required": [

View File

@ -74,6 +74,10 @@ pub struct OrganizationResponse {
pub metadata: Option<pii::SecretSerdeValue>,
pub modified_at: time::PrimitiveDateTime,
pub created_at: time::PrimitiveDateTime,
/// Organization Type of the organization
#[schema(value_type = Option<OrganizationType>, example = "standard")]
pub organization_type: Option<OrganizationType>,
}
#[cfg(feature = "v2")]
@ -95,4 +99,8 @@ pub struct OrganizationResponse {
pub metadata: Option<pii::SecretSerdeValue>,
pub modified_at: time::PrimitiveDateTime,
pub created_at: time::PrimitiveDateTime,
/// Organization Type of the organization
#[schema(value_type = Option<OrganizationType>, example = "standard")]
pub organization_type: Option<OrganizationType>,
}

View File

@ -61,6 +61,7 @@ pub enum MerchantAccountType {
serde::Serialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[router_derive::diesel_enum(storage_type = "text")]
#[strum(serialize_all = "snake_case")]

View File

@ -363,6 +363,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::enums::CtpServiceProvider,
api_models::enums::PaymentLinkSdkLabelType,
api_models::enums::PaymentLinkShowSdkTerms,
api_models::enums::OrganizationType,
api_models::admin::MerchantConnectorCreate,
api_models::admin::AdditionalMerchantData,
api_models::admin::ConnectorWalletDetails,

View File

@ -319,6 +319,7 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::enums::CtpServiceProvider,
api_models::enums::PaymentLinkSdkLabelType,
api_models::enums::PaymentLinkShowSdkTerms,
api_models::enums::OrganizationType,
api_models::admin::MerchantConnectorCreate,
api_models::admin::AdditionalMerchantData,
api_models::admin::CardTestingGuardConfig,

View File

@ -75,6 +75,7 @@ impl ForeignFrom<diesel_models::organization::Organization> for OrganizationResp
metadata: org.metadata,
modified_at: org.modified_at,
created_at: org.created_at,
organization_type: org.organization_type,
}
}
}