Этот коммит содержится в:
Conor Macpherson
2023-03-24 14:48:47 -04:00
родитель bb939e28c9
Коммит 6afe8ce9b3
24 изменённых файлов: 2113 добавлений и 35 удалений

Просмотреть файл

@@ -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`,