walletsSelectWithHttpInfo method
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.
Note: This method returns the HTTP Response.
Parameters:
- String id (required): Wallet id to select.
Implementation
Future<Response> walletsSelectWithHttpInfo(String id, { Future<void>? abortTrigger, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/b2b/wallets/select/{id}'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}