createStatementLetter method
Implementation
@override
Future<Map> createStatementLetter(String token, String globalAccountId,
Map<String, dynamic> statementInfo) async {
final baseUrl = await getBaseUrl;
var url = Uri.parse(
"$baseUrl/api/v1/global_accounts/$globalAccountId/generate_statement_letter");
var jsonBody = jsonEncode(statementInfo);
var response = await http.post(
url,
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer $token"
},
body: jsonBody,
);
var data = jsonDecode(response.body);
return data;
}