+
+ showComponent = verified"/>
+
+
+
+
diff --git a/src/services/api.js b/src/services/api.js
index 2e6ef11..f100ab3 100644
--- a/src/services/api.js
+++ b/src/services/api.js
@@ -46,6 +46,10 @@ class Api {
createCustomer(customer) {
return this.apiImplementation.createCustomer(customer);
}
+
+ getCSVForTryton() {
+ return this.apiImplementation.getCSVForTryton();
+ }
}
export default Api;
diff --git a/src/services/django-api.js b/src/services/django-api.js
index 389aa0e..b760b75 100644
--- a/src/services/django-api.js
+++ b/src/services/django-api.js
@@ -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)