createCustomerPaymentWithHttpInfo method

Future<Response> createCustomerPaymentWithHttpInfo()

Create a customer setup payment intent

Creates a customer setup payment intent for the given Mattermost cloud installation. ##### Permissions Must have manage_system permission and be licensed for Cloud. Minimum server version: 5.28 Note:: This is intended for internal use and is subject to change.

Note: This method returns the HTTP Response.

Implementation

Future<Response> createCustomerPaymentWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/cloud/payment';

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}