mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-30 14:16:38 +00:00
remove reseller invite link + priceID fix
This commit is contained in:
@@ -3795,7 +3795,7 @@ components:
|
||||
type: string
|
||||
description: The domain for the MSP
|
||||
example: "new-partner.com"
|
||||
price_id:
|
||||
priceID:
|
||||
type: string
|
||||
description: Stripe price ID to set up managed subscription for the MSP
|
||||
example: "price_1234"
|
||||
@@ -8662,37 +8662,6 @@ paths:
|
||||
$ref: "#/components/responses/requires_authentication"
|
||||
"500":
|
||||
$ref: "#/components/responses/internal_error"
|
||||
post:
|
||||
summary: Activate Reseller account
|
||||
description: Activates the authenticated account as a reseller
|
||||
tags:
|
||||
- MSP
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
invite:
|
||||
type: string
|
||||
description: The invite code
|
||||
example: "705860a1-27a3-4976-bf63-c5cd2fc1582b"
|
||||
required:
|
||||
- invite
|
||||
responses:
|
||||
"200":
|
||||
description: Reseller account activated or already exists
|
||||
"400":
|
||||
$ref: "#/components/responses/bad_request"
|
||||
"401":
|
||||
$ref: "#/components/responses/requires_authentication"
|
||||
"403":
|
||||
$ref: "#/components/responses/forbidden"
|
||||
"412":
|
||||
description: Reseller account requirements not met
|
||||
"500":
|
||||
$ref: "#/components/responses/internal_error"
|
||||
/api/integrations/msp/reseller/msps:
|
||||
get:
|
||||
summary: List MSPs under reseller
|
||||
@@ -9120,11 +9089,11 @@ paths:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
price_id:
|
||||
priceID:
|
||||
type: string
|
||||
description: The Stripe price ID for the plan
|
||||
required:
|
||||
- price_id
|
||||
- priceID
|
||||
responses:
|
||||
"200":
|
||||
description: Subscription created successfully
|
||||
@@ -9159,11 +9128,11 @@ paths:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
price_id:
|
||||
priceID:
|
||||
type: string
|
||||
description: The new Stripe price ID
|
||||
required:
|
||||
- price_id
|
||||
- priceID
|
||||
responses:
|
||||
"200":
|
||||
description: Subscription updated successfully
|
||||
|
||||
@@ -1641,8 +1641,8 @@ type CreateResellerMSPRequest struct {
|
||||
// Name The name for the MSP
|
||||
Name string `json:"name"`
|
||||
|
||||
// PriceId Stripe price ID to set up managed subscription for the MSP
|
||||
PriceId *string `json:"price_id,omitempty"`
|
||||
// PriceID Stripe price ID to set up managed subscription for the MSP
|
||||
PriceID *string `json:"priceID,omitempty"`
|
||||
|
||||
// ResellerCustomerId Reseller's internal customer reference for this MSP
|
||||
ResellerCustomerId *string `json:"reseller_customer_id,omitempty"`
|
||||
@@ -4681,12 +4681,6 @@ type PostApiIntegrationsMspJSONBody struct {
|
||||
Invite string `json:"invite"`
|
||||
}
|
||||
|
||||
// PostApiIntegrationsMspResellerJSONBody defines parameters for PostApiIntegrationsMspReseller.
|
||||
type PostApiIntegrationsMspResellerJSONBody struct {
|
||||
// Invite The invite code
|
||||
Invite string `json:"invite"`
|
||||
}
|
||||
|
||||
// PutApiIntegrationsMspResellerMspsIdInviteJSONBody defines parameters for PutApiIntegrationsMspResellerMspsIdInvite.
|
||||
type PutApiIntegrationsMspResellerMspsIdInviteJSONBody struct {
|
||||
// Value Accept or decline the invitation
|
||||
@@ -4698,14 +4692,14 @@ type PutApiIntegrationsMspResellerMspsIdInviteJSONBodyValue string
|
||||
|
||||
// PostApiIntegrationsMspResellerMspsIdSubscriptionJSONBody defines parameters for PostApiIntegrationsMspResellerMspsIdSubscription.
|
||||
type PostApiIntegrationsMspResellerMspsIdSubscriptionJSONBody struct {
|
||||
// PriceId The Stripe price ID for the plan
|
||||
PriceId string `json:"price_id"`
|
||||
// PriceID The Stripe price ID for the plan
|
||||
PriceID string `json:"priceID"`
|
||||
}
|
||||
|
||||
// PutApiIntegrationsMspResellerMspsIdSubscriptionJSONBody defines parameters for PutApiIntegrationsMspResellerMspsIdSubscription.
|
||||
type PutApiIntegrationsMspResellerMspsIdSubscriptionJSONBody struct {
|
||||
// PriceId The new Stripe price ID
|
||||
PriceId string `json:"price_id"`
|
||||
// PriceID The new Stripe price ID
|
||||
PriceID string `json:"priceID"`
|
||||
}
|
||||
|
||||
// PutApiIntegrationsMspTenantsIdInviteJSONBody defines parameters for PutApiIntegrationsMspTenantsIdInvite.
|
||||
@@ -4837,9 +4831,6 @@ type UpdateSentinelOneEDRIntegrationJSONRequestBody = EDRSentinelOneRequest
|
||||
// PostApiIntegrationsMspJSONRequestBody defines body for PostApiIntegrationsMsp for application/json ContentType.
|
||||
type PostApiIntegrationsMspJSONRequestBody PostApiIntegrationsMspJSONBody
|
||||
|
||||
// PostApiIntegrationsMspResellerJSONRequestBody defines body for PostApiIntegrationsMspReseller for application/json ContentType.
|
||||
type PostApiIntegrationsMspResellerJSONRequestBody PostApiIntegrationsMspResellerJSONBody
|
||||
|
||||
// PostApiIntegrationsMspResellerMspsJSONRequestBody defines body for PostApiIntegrationsMspResellerMsps for application/json ContentType.
|
||||
type PostApiIntegrationsMspResellerMspsJSONRequestBody = CreateResellerMSPRequest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user