claimPartnerOffer static method
Claim a partner offer as the authenticated user.
Implementation
static Future<BooleanResponse> claimPartnerOffer (
HttpClient client,
PartnerOfferClaimRequest body
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('POST', '/Tokens/Partner/ClaimOffer/', params);
config.body = await body.asyncToJson();
config.bodyContentType = 'application/json';
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BooleanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}