From b7c58dfdfb9935132bf64efdb2e3b7a5763add65 Mon Sep 17 00:00:00 2001 From: crn4 Date: Fri, 24 Apr 2026 18:27:03 +0200 Subject: [PATCH] add email to msp model --- shared/management/http/api/openapi.yml | 12 ++++++++++++ shared/management/http/api/types.gen.go | 9 +++++++++ 2 files changed, 21 insertions(+) diff --git a/shared/management/http/api/openapi.yml b/shared/management/http/api/openapi.yml index 65785979d..7796b95a0 100644 --- a/shared/management/http/api/openapi.yml +++ b/shared/management/http/api/openapi.yml @@ -3767,6 +3767,10 @@ components: type: string description: Reseller's internal customer reference for this MSP example: "CUST-12345" + owner_email: + type: string + description: Expected owner email for the MSP account (set by reseller at creation) + example: "owner@partner-msp.com" activated_at: type: string description: MSP activation timestamp in RFC3339 format @@ -3803,6 +3807,10 @@ components: type: string description: Reseller's internal customer reference for this MSP example: "CUST-12345" + owner_email: + type: string + description: Expected owner email for the MSP account + example: "owner@partner-msp.com" required: - name - domain @@ -3813,6 +3821,10 @@ components: type: string description: Reseller's internal customer reference for this MSP example: "CUST-12345" + owner_email: + type: string + description: Expected owner email for the MSP account + example: "owner@partner-msp.com" CreateTenantRequest: type: object properties: diff --git a/shared/management/http/api/types.gen.go b/shared/management/http/api/types.gen.go index 3eba594c9..a1a9ea91a 100644 --- a/shared/management/http/api/types.gen.go +++ b/shared/management/http/api/types.gen.go @@ -1641,6 +1641,9 @@ type CreateResellerMSPRequest struct { // Name The name for the MSP Name string `json:"name"` + // OwnerEmail Expected owner email for the MSP account + OwnerEmail *string `json:"owner_email,omitempty"` + // PriceId Stripe price ID to set up managed subscription for the MSP PriceId *string `json:"price_id,omitempty"` @@ -3599,6 +3602,9 @@ type ResellerMSPResponse struct { // Name The MSP name Name string `json:"name"` + // OwnerEmail Expected owner email for the MSP account (set by reseller at creation) + OwnerEmail *string `json:"owner_email,omitempty"` + // ResellerCustomerId Reseller's internal customer reference for this MSP ResellerCustomerId *string `json:"reseller_customer_id,omitempty"` } @@ -4234,6 +4240,9 @@ type TenantResponseStatus string // UpdateResellerMSPRequest defines model for UpdateResellerMSPRequest. type UpdateResellerMSPRequest struct { + // OwnerEmail Expected owner email for the MSP account + OwnerEmail *string `json:"owner_email,omitempty"` + // ResellerCustomerId Reseller's internal customer reference for this MSP ResellerCustomerId *string `json:"reseller_customer_id,omitempty"` }