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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/mercadolibre/core/pickup_stores.rb +20 -1
- data/lib/mercadolibre/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0319c042c61737892354a4687fde0e7a9fece8381c289e2a2c3b69b5aef07a0f'
|
4
|
+
data.tar.gz: 6eb9b2fb462a5f40561fe7c0c9a69bf3132d12d7430a1b142c0b2b804dce00fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '05965e87c3fd8d3e24b47ace43ef3cf0fe57e0729ddb6612ddff24c76e388c416f6ed9d071920e4c9421ed200f4c2dbbc116828af8e6ed56d24dfcf9124ec543'
|
7
|
+
data.tar.gz: bca9852b354d401ddd977967017be22e1a65d42d52cb990a94ae5c06947c4253027334548012e58a819486a0acfa8b75f7c3d1daeb627a60f1951d07c607665a
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
data/lib/mercadolibre/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|