hubrise_client 2.0.10 → 2.0.12
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 +4 -4
- data/README.md +1 -1
- data/V1_ENDPOINTS.md +9 -0
- data/lib/hubrise_client/base.rb +1 -1
- data/lib/hubrise_client/v1.rb +5 -0
- data/lib/hubrise_client/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: a49437a57be7d5e200116c79f69c64ce6d5e5517702911698b2a2b1794b2748b
|
4
|
+
data.tar.gz: 4731c2856b2a7b5420848b30835a522a8f2720da1bf44c5c94c219abc654980c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c0266e7166192756389bbaacb87ab1b56c6843db2742bcf0ad7627165953d853eea48ab0476f805652ae1338c20b2e19b6ee8b3e006b10cfee43622792f7345
|
7
|
+
data.tar.gz: f31a3da704293aa9df30dcacffc778e8da48a3adb742a70ce558939f4dc74d7b55e55e7b2550174d007c3fd01343f420b7e49f9f513afb725857f23e940f3e52
|
data/README.md
CHANGED
data/V1_ENDPOINTS.md
CHANGED
@@ -80,12 +80,21 @@ client = HubriseClient::V1.new(CLIENT_ID, CLIENT_SECRET, client_attrs)
|
|
80
80
|
|
81
81
|
### UPDATE_ORDER
|
82
82
|
|
83
|
+
- This method is deprecated. Use `PATCH_ORDER` instead.
|
83
84
|
- Initialized with `client_attrs = { access_token: "access_token1" }`
|
84
85
|
```ruby
|
85
86
|
client.update_order("zrn61", "wy3xz", { status: "delivered" })
|
86
87
|
# [PUT] /locations/zrn61/orders/wy3xz with { headers: { "Content-Type": "application/json" }, body: "{\"status\":\"delivered\" }" }
|
87
88
|
```
|
88
89
|
|
90
|
+
### PATCH_ORDER
|
91
|
+
|
92
|
+
- Initialized with `client_attrs = { access_token: "access_token1" }`
|
93
|
+
```ruby
|
94
|
+
client.patch_order("zrn61", "wy3xz", { status: "delivered" })
|
95
|
+
# [PATCH] /locations/zrn61/orders/wy3xz with { headers: { "Content-Type": "application/json" }, body: "{\"status\":\"delivered\" }" }
|
96
|
+
```
|
97
|
+
|
89
98
|
### GET_CALLBACK
|
90
99
|
|
91
100
|
- Initialized with `client_attrs = { access_token: "access_token1" }`
|
data/lib/hubrise_client/base.rb
CHANGED
@@ -43,7 +43,7 @@ module HubriseClient
|
|
43
43
|
client_id: @app_id
|
44
44
|
)
|
45
45
|
|
46
|
-
(@use_https ? "https" : "http") + "://" + oauth2_hubrise_hostname_with_version + "/authorize?" + URI.encode_www_form(params) # rubocop:disable
|
46
|
+
(@use_https ? "https" : "http") + "://" + oauth2_hubrise_hostname_with_version + "/authorize?" + URI.encode_www_form(params) # rubocop:disable Layout/LineLength
|
47
47
|
end
|
48
48
|
|
49
49
|
def authorize!(authorization_code)
|
data/lib/hubrise_client/v1.rb
CHANGED
@@ -56,10 +56,15 @@ module HubriseClient
|
|
56
56
|
call_api("/locations/#{location_id}/orders", :post, data: params)
|
57
57
|
end
|
58
58
|
|
59
|
+
# @deprecated Use patch_order instead
|
59
60
|
def update_order(location_id, order_id, params)
|
60
61
|
call_api("/locations/#{location_id}/orders/#{order_id}", :put, data: params)
|
61
62
|
end
|
62
63
|
|
64
|
+
def patch_order(location_id, order_id, params)
|
65
|
+
call_api("/locations/#{location_id}/orders/#{order_id}", :patch, data: params)
|
66
|
+
end
|
67
|
+
|
63
68
|
# --------------------
|
64
69
|
# Callback, events
|
65
70
|
# --------------------
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hubrise_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antoine Monnier
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|