createBillingPriceWithHttpInfo method
Future<Response>
createBillingPriceWithHttpInfo(
- CreateBillingPriceRequest createBillingPriceRequest
Create a custom billing price
Creates a custom price for a billing plan. Custom prices allow you to offer different pricing to specific customers while maintaining the same plan structure.
Note: This method returns the HTTP Response.
Parameters:
- CreateBillingPriceRequest createBillingPriceRequest (required): Parameters for creating a custom price
Implementation
Future<http.Response> createBillingPriceWithHttpInfo(
CreateBillingPriceRequest createBillingPriceRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/billing/prices';
// ignore: prefer_final_locals
Object? postBody = createBillingPriceRequest;
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,
);
}