varejonline 0.2.1 → 0.3.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
  SHA1:
3
- metadata.gz: f89304ed5fadd5d49a2db5eb96dfacd18fafaa35
4
- data.tar.gz: df6c1a32355f9a5b15a70ade7fa8527dd844c0cb
3
+ metadata.gz: 9ca4c72c3774fa99442efaaa802cb79efa1625b4
4
+ data.tar.gz: a27206c71931c22ddb4986fa70a083288c8a7448
5
5
  SHA512:
6
- metadata.gz: b4779615760719fb30a1aac4385b2563084d3c46f2bf48f39ee8adbd1947ea103832a26cdbb2605f1a20d36b4901fd519254edfbb634db2efe5883a0ef76b48a
7
- data.tar.gz: 3a717b8357d3dca847643d87894a8ffa9657e778b7ad6e32842192f1032fcd43ac49d3b0b8603ae7b2fd015b8982d3eea3636548b7927bad28ab6921f69596ce
6
+ metadata.gz: 56aadb38b656282b217c06b1fec13e79ed4cdd20e3d96fb8e98c10a9e99768f847e44c6a10c0fa109913317181bef5ab278e9dffee30225d71cf4f055b89439b
7
+ data.tar.gz: 8f38521e8fe7761ed163abb35b2d812f09686093deb7730fe0b31371ca969f2fad4aede1f56aaf7c91be8133587cc7b068d59deaa01df3e8a704f566e80b6333
data/README.md CHANGED
@@ -37,7 +37,7 @@ With the client instance, you can access the following resources:
37
37
  * Lançamentos Padrões (client.default_entries) **Listing and finding**
38
38
  * Entidades (client.entities) **Listing and finding**
39
39
  * Configuração de crédito (client.installments) **Saving and information**
40
- * Pedidos de venda (client.orders) **Listing, finding and creation**
40
+ * Pedidos de venda (client.orders) **Listing, finding, creation and cancellation**
41
41
  * Planos de pagamento (client.payment_conditions) **Only listing**
42
42
  * Categorias de produtos (client.product_categories) **Only listing**
43
43
  * Produtos (client.products) **Listing, finding, updating and creation**
@@ -24,6 +24,10 @@ module Varejonline
24
24
  raise ArgumentError
25
25
  end
26
26
  alias :create :save
27
+
28
+ def cancel(id)
29
+ return parse_response(self.class.put("/#{id}/cancelar", body: build_body, headers: header))
30
+ end
27
31
  end
28
32
  end
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module Varejonline
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: varejonline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coyô