walletsSelect method

Future<void> walletsSelect(
  1. String id, {
  2. Future<void>? abortTrigger,
})

Select a wallet

Makes a wallet the partner's selected wallet, which pays for new orders. Exactly one wallet is selected at a time; the previously selected wallet is deselected. An unknown wallet returns 404 with code 10004 and leaves the current selection unchanged.

Parameters:

  • String id (required): Wallet id to select.

Implementation

Future<void> walletsSelect(String id, { Future<void>? abortTrigger, }) async {
  final response = await walletsSelectWithHttpInfo(id, abortTrigger: abortTrigger,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}