actionNpcSellItemMyNameActionNpcSellPostWithHttpInfo method

Future<Response> actionNpcSellItemMyNameActionNpcSellPostWithHttpInfo(
  1. String name,
  2. NpcMerchantBuySchema npcMerchantBuySchema
)

Action Npc Sell Item

Sell an item to an NPC on the character's map.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> actionNpcSellItemMyNameActionNpcSellPostWithHttpInfo(
  String name,
  NpcMerchantBuySchema npcMerchantBuySchema,
) async {
  // ignore: prefer_const_declarations
  final path = r'/my/{name}/action/npc/sell'.replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody = npcMerchantBuySchema;

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