applyGiftCode method

Future<Result<UpdatesBase>> applyGiftCode({
  1. required String slug,
})

Apply Gift Code.

ID: f6e26854.

Implementation

Future<Result<UpdatesBase>> applyGiftCode({
  required String slug,
}) async {
  // Preparing the request.
  final request = PaymentsApplyGiftCode(
    slug: slug,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<UpdatesBase>();
}