createDocument method
Implementation
@override
Future<Map> createDocument(String? accessToken, Map data, DocumentTypes type) async {
switch (type) {
case DocumentTypes.invoice:
Map response = await apiController.post(accessToken, 'api/ubl2.1/invoice', data);
return response['data'] ?? response;
default: return {};
}
}