createGatewayWithHttpInfo method

Future<Response> createGatewayWithHttpInfo(
  1. GatewayRequestBody GatewayRequestBody
)

Create a new gateway

Note: This method returns the HTTP Response.

Parameters:

  • GaGatewaysPostRequest gaGatewaysPostRequest (required):

Implementation

Future<Response> createGatewayWithHttpInfo(
  GatewayRequestBody GatewayRequestBody,
) async {
  // ignore: prefer_const_declarations
  final path = r'/ga/gateways';

  // ignore: prefer_final_locals
  Object? postBody = GatewayRequestBody;

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

  const contentTypes = <String>['application/json'];

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