apiV1BillingSubscribePostWithHttpInfo method
Create subscription checkout
Create a checkout session to subscribe to a plan
Note: This method returns the HTTP Response.
Parameters:
- BillingSubscribe billingSubscribe:
Implementation
Future<Response> apiV1BillingSubscribePostWithHttpInfo({ BillingSubscribe? billingSubscribe, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/billing/subscribe';
// ignore: prefer_final_locals
Object? postBody = billingSubscribe;
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,
);
}