#5 feat(API): getCSVForTryton
This commit is contained in:
parent
4e88477323
commit
db8ec154ae
@ -46,6 +46,10 @@ class Api {
|
||||
createCustomer(customer) {
|
||||
return this.apiImplementation.createCustomer(customer);
|
||||
}
|
||||
|
||||
getCSVForTryton() {
|
||||
return this.apiImplementation.getCSVForTryton();
|
||||
}
|
||||
}
|
||||
|
||||
export default Api;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user