purchase screen coupons list final

This commit is contained in:
Semyon Babushkin
2017-10-11 18:32:59 +03:00
parent 3f9afd5569
commit 7b20747157
4 changed files with 123 additions and 114 deletions

View File

@@ -58,6 +58,17 @@ getPurchaseRequest(String endpoint, Map body, String token) async {
return httpClient.post(endpoint, body: body, headers: headers);
}
getCouponsRequest(String endpoint, String token) async {
var headers = {
'DM-Authorization': 'dmapptoken ${await getToken()}',
'Authorization': 'dmtoken ${token}',
'Accept-Language': Intl.defaultLocale
};
return httpClient.get(endpoint, headers: headers);
}
getEndpoint() async {
return await platform.invokeMethod('getEndpoint');
}