tiny_erp_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_erp_api/order.rb +3 -3
- data/lib/tiny_erp_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27c613bb32418309d7b0bfb195cf68786dac372d95b75e91fe90f659764cb6bb
|
4
|
+
data.tar.gz: 4d5a077f5c5c852a4deef29442b2034bf89b1ab99928b0475e687bc34e0f79ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6105ac206247ae1f6ff00bd71988a4aa15ee7e8f94d374280527c07f713e057243cdc4544ce8c008765a47e3e6b377c7483d7afaf1ff63a39ea7295b6627004
|
7
|
+
data.tar.gz: 45390e0c8088d7728d6e6d058fbdc8f60b4e42f702092663228600e8db6605534a82d809a92d60742f8a822760821f59eb9a7825d778e838cd9f67a8e9b3b748
|
data/lib/tiny_erp_api/order.rb
CHANGED
@@ -14,7 +14,7 @@ module TinyErpApi
|
|
14
14
|
@observacoes = observacoes
|
15
15
|
@observacoes_internas = observacoes_internas
|
16
16
|
@forma_envio = forma_envio
|
17
|
-
@
|
17
|
+
@forma_frete = form_frete
|
18
18
|
@parcelas = parcelas
|
19
19
|
@cliente = cliente
|
20
20
|
@itens = itens
|
@@ -30,7 +30,7 @@ module TinyErpApi
|
|
30
30
|
new(**build_hash(response_json))
|
31
31
|
end
|
32
32
|
|
33
|
-
def create
|
33
|
+
def create
|
34
34
|
response = Client.new(TinyErpApi.configuration.access_token).create_order(build_json)
|
35
35
|
self.class.find_by_id(response["retorno"]["registros"]["registro"]["id"])
|
36
36
|
end
|
@@ -84,4 +84,4 @@ module TinyErpApi
|
|
84
84
|
end
|
85
85
|
|
86
86
|
end
|
87
|
-
end
|
87
|
+
end
|
data/lib/tiny_erp_api/version.rb
CHANGED