tiny_erp_api 0.1.7 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fc6aa7487ddfbb1254cf3f3d139f6b3146707c3b14c716952473db621b6ac3d
4
- data.tar.gz: bde6e3f169d7df65321d4ab166db5c3627c43621c442749385cb0b4608adbd79
3
+ metadata.gz: 0e30fb0ea25eb461c8f30fbcfadf024060ab30133c4e6ffcfcc5efe4f2ed4475
4
+ data.tar.gz: ea1fe6ea157cc34ef811ddd62f73b391e31fe9dc80d3cd98a6ee19a3e9a3052a
5
5
  SHA512:
6
- metadata.gz: 88bdc3da6fed1c75103c3e048b66cc1449b953694b8941aaf4a0005ad5e833c9c3dcb22a720bafd141aa0798aa8581736ec26fe4b0ca7d30ceac69df0466c657
7
- data.tar.gz: b8fff99625e2cc64c1aac89de6538be9e0276c504fcfb4d4954ce827067f2b9ba94f1eddf605e602eda2f94078996c2e7377dcab8512dc5ecc6ac539c291d80c
6
+ metadata.gz: a0ef8b128ade2d05457ba54abbd8620be21476ecde589b55e4475763596f87c027bbd00f48e4000946c0c12d6ed34ef71bbe3ae673f6317a83db5b9711b676ed
7
+ data.tar.gz: 5441effde03400cbb2d2bd5382ba882b6f934afcaca333791006db4e384f37732c2eb5ac12df79376d2263707b0901ed2c513ed3a0f6732055c9f1da9c913533
@@ -32,7 +32,7 @@ module TinyErpApi
32
32
 
33
33
  def create
34
34
  response = Client.new(TinyErpApi.configuration.access_token).create_order(build_json)
35
- self.class.find_by_id(response["retorno"]["registros"]["registro"]["id"])
35
+ self.class.find_by_id(response.dig("id"))
36
36
  end
37
37
 
38
38
  def build_json
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyErpApi
4
- VERSION = "0.1.7"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_erp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ac