actionGeCancelOrderMyNameActionGrandexchangeCancelPostWithHttpInfo method

Future<Response> actionGeCancelOrderMyNameActionGrandexchangeCancelPostWithHttpInfo(
  1. String name,
  2. GECancelOrderSchema gECancelOrderSchema
)

Action Ge Cancel Order

Cancel an order (sell or buy) at the Grand Exchange on the character's map. For sell orders: Items are returned to your inventory. For buy orders: Gold is refunded to your character.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response>
    actionGeCancelOrderMyNameActionGrandexchangeCancelPostWithHttpInfo(
  String name,
  GECancelOrderSchema gECancelOrderSchema,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/my/{name}/action/grandexchange/cancel'.replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody = gECancelOrderSchema;

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