fix: do not allow duplicate organization name (#5919)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Hrithikesh
2024-09-20 13:09:38 +05:30
committed by GitHub
parent a94cf25bb6
commit c8f7232a30
13 changed files with 98 additions and 31 deletions

View File

@ -202,7 +202,8 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::refunds::RefundResponse,
api_models::refunds::RefundStatus,
api_models::refunds::RefundUpdateRequest,
api_models::organization::OrganizationRequest,
api_models::organization::OrganizationCreateRequest,
api_models::organization::OrganizationUpdateRequest,
api_models::organization::OrganizationResponse,
api_models::admin::MerchantAccountCreate,
api_models::admin::MerchantAccountUpdate,

View File

@ -127,7 +127,8 @@ Never share your secret api keys. Keep them guarded and secure.
api_models::refunds::RefundResponse,
api_models::refunds::RefundStatus,
api_models::refunds::RefundUpdateRequest,
api_models::organization::OrganizationRequest,
api_models::organization::OrganizationCreateRequest,
api_models::organization::OrganizationUpdateRequest,
api_models::organization::OrganizationResponse,
api_models::admin::MerchantAccountCreate,
api_models::admin::MerchantAccountUpdate,

View File

@ -6,7 +6,7 @@
post,
path = "/organization",
request_body(
content = OrganizationRequest,
content = OrganizationCreateRequest,
examples(
(
"Create an organization with organization_name" = (
@ -51,7 +51,7 @@ pub async fn organization_retrieve() {}
put,
path = "/organization/{organization_id}",
request_body(
content = OrganizationRequest,
content = OrganizationUpdateRequest,
examples(
(
"Update organization_name of the organization" = (
@ -79,7 +79,7 @@ pub async fn organization_update() {}
post,
path = "/v2/organization",
request_body(
content = OrganizationRequest,
content = OrganizationCreateRequest,
examples(
(
"Create an organization with organization_name" = (
@ -124,7 +124,7 @@ pub async fn organization_retrieve() {}
put,
path = "/v2/organization/{organization_id}",
request_body(
content = OrganizationRequest,
content = OrganizationUpdateRequest,
examples(
(
"Update organization_name of the organization" = (