mercadolibre 4.5.0 → 4.6.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: 1e0db854f33a873cc4a4153b699cd58fdf3d9878b5bce7c2058c780995ad6c86
4
- data.tar.gz: 277ad04d8c01eba6e0a29e4362c054055ec7212b73e0d3d2830b3f225c823d9e
3
+ metadata.gz: '0319c042c61737892354a4687fde0e7a9fece8381c289e2a2c3b69b5aef07a0f'
4
+ data.tar.gz: 6eb9b2fb462a5f40561fe7c0c9a69bf3132d12d7430a1b142c0b2b804dce00fc
5
5
  SHA512:
6
- metadata.gz: df6fdcbfdc3b001bcf8992e5fa43c596c9763d055af21029cce56806030ffbc064ad8e50b79a7f9b3fc104f451653473d600c804e79ec1f93a74248c99fa5c37
7
- data.tar.gz: 7b546631ad683ee59d6e4652e1a1910f5d0bccd61e184e2d0a8070997655952bbf2e1024a60018490eb3a9048a5226a60e0eefae637fee5a67616bc5b04701d4
6
+ metadata.gz: '05965e87c3fd8d3e24b47ace43ef3cf0fe57e0729ddb6612ddff24c76e388c416f6ed9d071920e4c9421ed200f4c2dbbc116828af8e6ed56d24dfcf9124ec543'
7
+ data.tar.gz: bca9852b354d401ddd977967017be22e1a65d42d52cb990a94ae5c06947c4253027334548012e58a819486a0acfa8b75f7c3d1daeb627a60f1951d07c607665a
data/CHANGELOG.md CHANGED
@@ -344,4 +344,8 @@
344
344
 
345
345
  ## v4.5.0
346
346
 
347
- * Added method to search user items
347
+ * Added method to search user items
348
+
349
+ ## v4.6.0
350
+
351
+ * Added method for availability to pickup store variations
@@ -44,7 +44,7 @@ module Mercadolibre
44
44
  put_request("/items/#{item_id}/stores/#{store_id}?access_token=#{@access_token}", payload, headers).body
45
45
  end
46
46
 
47
- def delete_item_pickup_store_from(item_id, store_id)
47
+ def delete_item_pickup_store(item_id, store_id)
48
48
  result = delete_request("/items/#{item_id}/stores/#{store_id}?access_token=#{@access_token}")
49
49
  result.status_code == 200
50
50
  end
@@ -54,6 +54,25 @@ module Mercadolibre
54
54
  get_request("/items/#{item_id}/stores", filters).body
55
55
  end
56
56
 
57
+ def create_item_variation_pickup_store(item_id, variation_id, store_id, attrs)
58
+ payload = attrs.to_json
59
+ headers = { content_type: :json }
60
+
61
+ post_request("/items/#{item_id}/variation/#{variation_id}/stores/#{store_id}?access_token=#{@access_token}", payload, headers).body
62
+ end
63
+
64
+ def update_item_variation_pickup_store(item_id, variation_id, store_id, attrs)
65
+ payload = attrs.to_json
66
+ headers = { content_type: :json, accept: :json }
67
+
68
+ put_request("/items/#{item_id}/variation/#{variation_id}/stores/#{store_id}?access_token=#{@access_token}", payload, headers).body
69
+ end
70
+
71
+ def delete_item_variation_pickup_store(item_id, variation_id, store_id)
72
+ result = delete_request("/items/#{item_id}/variation/#{variation_id}/stores/#{store_id}?access_token=#{@access_token}")
73
+ result.status_code == 200
74
+ end
75
+
57
76
  def get_pickup(pickup_id)
58
77
  filters = { access_token: @access_token }
59
78
  get_request("/pickups/#{pickup_id}", filters).body
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = '4.5.0'
2
+ VERSION = '4.6.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadolibre
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-04 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler