mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
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:
@ -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": [
|
||||
|
||||
@ -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": [
|
||||
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
@ -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")]
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user