tiny_erp_api 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1aa38b1b932ac49ac8edeca5403ef4cc67d75198d770a461dab5776e9d730bd
4
- data.tar.gz: 5819c0e66ccf3d38455ab2a7252f75e8c25d8a8669e0af5112efee42acd20a36
3
+ metadata.gz: 061e1977b5acd5e21514462cea6ce4190794d3d8482d4fc1844d1abb5c4d69c1
4
+ data.tar.gz: 644f1d8e97e129ab7f193e62b54f72dd0f8aaf56be6f6c54ca1d1aa5fda65854
5
5
  SHA512:
6
- metadata.gz: 5348c57b25c31b4a8623fef29e06341c7885a3d0445e125b574fa2de1bde288494baa3b046d4c0cd42104446314e3e88697f45ca64cf6e068dc3f858976a0b53
7
- data.tar.gz: 23c22ac1c35ab92800e921485b02b80ed0facff84c9db06fb4e5429b583b10f73e47e876f6186c6101b22e182b84b0214448d81471589fe76eb99ac11b0a0d07
6
+ metadata.gz: a673234487115e8dc4281fae04335535b7d50c45629395bf064c5a9fbd8b1bb403db87b4040a74ca882bbf7244466e3c3925019d923718edeab288a2c545db87
7
+ data.tar.gz: 3a40c8f75a925e83e3eaa985fb8a2fbe110183cb54728b1f385a8fa71866bc00613447635fa9cdf55bd9c6ad945e62ea1d27e81ecef6b52a3046b763aea8d730
@@ -399,6 +399,11 @@ module TinyErpApi
399
399
  post("/pedidos", body: deep_compact(body))
400
400
  end
401
401
 
402
+ def add_order_tags(order_id, tags)
403
+ body = tags.map { |tag| { descricao: tag } }
404
+ post("/pedidos/#{order_id}/marcadores", body: JSON.dump(body))
405
+ end
406
+
402
407
  # A API não aceita campos nulos, então precisamos remover recursivamente os campos que são nil ou hashes vazias
403
408
  def deep_compact(hash)
404
409
  hash.each_with_object({}) do |(k, v), new_hash|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyErpApi
4
- VERSION = "2.0.0"
4
+ VERSION = "2.1.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: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-27 00:00:00.000000000 Z
11
+ date: 2026-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ac