actionWithdrawBankGoldMyNameActionBankWithdrawGoldPostWithHttpInfo method

Future<Response> actionWithdrawBankGoldMyNameActionBankWithdrawGoldPostWithHttpInfo(
  1. String name,
  2. DepositWithdrawGoldSchema depositWithdrawGoldSchema
)

Action Withdraw Bank Gold

Withdraw gold from your bank.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response>
    actionWithdrawBankGoldMyNameActionBankWithdrawGoldPostWithHttpInfo(
  String name,
  DepositWithdrawGoldSchema depositWithdrawGoldSchema,
) async {
  // ignore: prefer_const_declarations
  final path =
      r'/my/{name}/action/bank/withdraw/gold'.replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody = depositWithdrawGoldSchema;

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