applyGiftCode method
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>();
}