Migrate to mono-repo
Этот коммит содержится в:
@@ -32,6 +32,7 @@ import {
|
||||
SelfHostedSignupCustomerResponse,
|
||||
SelfHostedSignupSuccessResponse,
|
||||
SelfHostedSignupBootstrapResponse,
|
||||
SelfHostedExpansionRequest,
|
||||
} from '@mattermost/types/hosted_customer';
|
||||
import {ChannelCategory, OrderedChannelCategories} from '@mattermost/types/channel_categories';
|
||||
|
||||
@@ -3892,6 +3893,13 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
confirmSelfHostedExpansion = (setupIntentId: string, expandRequest: SelfHostedExpansionRequest) => {
|
||||
return this.doFetch<SelfHostedSignupSuccessResponse>(
|
||||
`${this.getHostedCustomerRoute()}/confirm?expand=true`,
|
||||
{method: 'post', body: JSON.stringify({stripe_setup_intent_id: setupIntentId, subscription: expandRequest})},
|
||||
);
|
||||
}
|
||||
|
||||
createPaymentMethod = async () => {
|
||||
return this.doFetch(
|
||||
`${this.getCloudRoute()}/payment`,
|
||||
|
||||
Ссылка в новой задаче
Block a user