dismiss method

Future<Empty> dismiss({
  1. String? androidId,
  2. String? device,
  3. String? manufacturer,
  4. String? model,
  5. String? offerId,
  6. String? product,
  7. String? serial,
  8. String? $fields,
})

Marks the promo offer as dismissed.

Request parameters:

androidId - device android_id

device - device device

manufacturer - device manufacturer

model - device model

offerId - Offer to dimiss

product - device product

serial - device serial

$fields - Selector specifying which fields to include in a partial response.

Completes with a Empty.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<Empty> dismiss({
  core.String? androidId,
  core.String? device,
  core.String? manufacturer,
  core.String? model,
  core.String? offerId,
  core.String? product,
  core.String? serial,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (androidId != null) 'androidId': [androidId],
    if (device != null) 'device': [device],
    if (manufacturer != null) 'manufacturer': [manufacturer],
    if (model != null) 'model': [model],
    if (offerId != null) 'offerId': [offerId],
    if (product != null) 'product': [product],
    if (serial != null) 'serial': [serial],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'books/v1/promooffer/dismiss';

  final response_ = await _requester.request(
    url_,
    'POST',
    queryParams: queryParams_,
  );
  return Empty.fromJson(response_ as core.Map<core.String, core.dynamic>);
}