buySkinGemsShopSkinPostWithHttpInfo method

Future<Response> buySkinGemsShopSkinPostWithHttpInfo(
  1. BuySkinRequestSchema buySkinRequestSchema, {
  2. Future<void>? abortTrigger,
})

Buy Skin

Buy a skin from the gems shop using gems.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> buySkinGemsShopSkinPostWithHttpInfo(
  BuySkinRequestSchema buySkinRequestSchema, {
  Future<void>? abortTrigger,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/gems_shop/skin';

  // ignore: prefer_final_locals
  Object? postBody = buySkinRequestSchema;

  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,
    abortTrigger: abortTrigger,
  );
}