first commit

This commit is contained in:
2026-02-07 15:57:09 +07:00
commit 157096f164
1153 changed files with 415766 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import 'package:http/http.dart' as http;
import '../../Const/api_config.dart';
import '../../http_client/customer_http_client_get.dart';
import '../constant_functions.dart';
class FutureInvoice {
Future<String> getFutureInvoice({required String tag}) async {
CustomHttpClientGet clientGet = CustomHttpClientGet(client: http.Client());
try {
final response = await clientGet.get(
url: Uri.parse('${APIConfig.url}/new-invoice?platform=$tag'),
);
if (response.statusCode == 200) {
return response.body;
} else {
return '';
}
} catch (error) {
return '';
}
}
}