apiV2CustomerSerialCoursesEnroll2CreateWithHttpInfo method
Future<Response>
apiV2CustomerSerialCoursesEnroll2CreateWithHttpInfo(
- String id,
- SerialCourseCustomer serialCourseCustomer
Performs an HTTP 'POST /api/v2/customer/serial_courses/enroll2/{id}/' operation and returns the Response.
Parameters:
-
String id (required):
-
SerialCourseCustomer serialCourseCustomer (required):
Implementation
Future<Response> apiV2CustomerSerialCoursesEnroll2CreateWithHttpInfo(String id, SerialCourseCustomer serialCourseCustomer,) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/customer/serial_courses/enroll2/{id}/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = serialCourseCustomer;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}