#5 feat(API): getCSVForTryton

This commit is contained in:
Mono Mono 2025-03-03 22:06:49 -05:00
parent 4e88477323
commit db8ec154ae
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,10 @@ class Api {
createCustomer(customer) {
return this.apiImplementation.createCustomer(customer);
}
getCSVForTryton() {
return this.apiImplementation.getCSVForTryton();
}
}
export default Api;

View File

@ -58,6 +58,11 @@ class DjangoApi {
return this.postRequest(url, customer);
}
getCSVForTryton() {
const url = this.base + '/don_confiao/api/sales/for_tryton';
return this.getRequest(url);
}
getRequest(url) {
return new Promise ((resolve, reject) => {
fetch(url)