disconnectLicense method

Future<void> disconnectLicense(
  1. String id,
  2. GatewayDisconnectLicenseRequestBody gatewayDisconnectLicenseRequestBody
)

Disconnect a license from a gateway

Parameters:

Implementation

Future<void> disconnectLicense(
  String id,
  GatewayDisconnectLicenseRequestBody gatewayDisconnectLicenseRequestBody,
) async {
  final response = await disconnectLicenseWithHttpInfo(
    id,
    gatewayDisconnectLicenseRequestBody,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}