magento 0.8.0 → 0.8.1

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: 105bbf170147d3f2ff496baf63a72cb1f0b53df128190eeb81ac3b7e72fe4350
4
- data.tar.gz: 7acf462751cf0c6de4c2d8a682cbe74da9abc8dcfafc67720b755233d500fa74
3
+ metadata.gz: 8ad71d2a627ff149bce29e8ad50d8f71926a19079c2af86000db29109d305c65
4
+ data.tar.gz: bc2f85e76ff1da204aa8d613a770401763bee486e6dd045af6b4e97df8758f62
5
5
  SHA512:
6
- metadata.gz: 0deb6947369078c57322304294a3b3843454448f5dd949fb787944bc4ee820268e95905e244e91814c951f5bfae1638e41c59c7644f01bde49e86f5c65a0df23
7
- data.tar.gz: c8f9993a9dee4c105041b99d99b911093d37df75ab2553f99e0cca430b1d349e01a738d06c5278f0dfcfcd9d9e315a34771f6869984d573fd37df0804d7f1dbc
6
+ metadata.gz: 2166a5412b4f41a7298efe838d5ad927d60905206af025a745420109ff87700c56d0adaaea49da0d2a4519fb34b2abafcedbabb810bfc6972fe28c92bd29c61a
7
+ data.tar.gz: 400d5d6ef1669fb147a0281312a9504ee252d7d1a46debab0bb61cdc51286d6c0c4956dfeb355a691d49bd4d0f06e044f9fe0f9968a0d3529dcdde8b36ebd732
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Add in your Gemfile
6
6
 
7
7
  ```rb
8
- gem 'magento', '~> 0.8.0'
8
+ gem 'magento', '~> 0.8.1'
9
9
  ```
10
10
 
11
11
  or run
@@ -92,7 +92,7 @@ module Magento
92
92
  #
93
93
  # or
94
94
  #
95
- # Magento::Order.refund(
95
+ # Magento::Invoice.refund(
96
96
  # invoice_id,
97
97
  # items: [
98
98
  # {
@@ -125,7 +125,7 @@ module Magento
125
125
  #
126
126
  # @return {Integer} return the refund id
127
127
  def refund(invoice_id, refund_params=nil)
128
- request.post("invoice/#{order_id}/refund", invoice_params).parse
128
+ request.post("invoice/#{invoice_id}/refund", invoice_params).parse
129
129
  end
130
130
  end
131
131
  end
@@ -1,3 +1,3 @@
1
1
  module Magento
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magento
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wallas Faria
@@ -48,7 +48,6 @@ files:
48
48
  - ".gitignore"
49
49
  - Gemfile
50
50
  - README.md
51
- - atrelar_produto_loja.rb
52
51
  - lib/magento.rb
53
52
  - lib/magento/category.rb
54
53
  - lib/magento/country.rb
@@ -1,20 +0,0 @@
1
- require './lib/magento'
2
-
3
- Magento.url = 'https://maniadagua.com'
4
- Magento.token = 'f44251o3xjijz8ou78hoyh8a06kdtkmh'
5
-
6
- page = 245
7
-
8
- loop do
9
- products = Magento::Product.page(page).per(5).all
10
-
11
- products.each do |product|
12
- Magento::Product.update(product.sku, extension_attributes: { website_ids: [1, 2] })
13
- puts "update page #{page}, product: #{product.name}"
14
- rescue => e
15
- puts "ERRO ao cadastrar: #{product.name}, #{e.message}"
16
- end
17
-
18
- break if products.last_page?
19
- page = products.next_page
20
- end