tiramizoo 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiramizoo.rb +9 -0
- data/lib/tiramizoo/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: 3e5a27038b4342139186914a9ddd56b18c30d5ecc53c5847afbe5bc45e0acc42
|
4
|
+
data.tar.gz: 581e067259acced3a84425c7864e77798970a84a4b3d9dbda7adda9c529c97e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce146932be25bfcf4f9a6d2bbaf8feab9d5be9b767804b32fd6d31b18ae6ddac9fd1cd53a772bcc522d91a73c3ee27477f19fb05992356efe042ddc2a9e49f4f
|
7
|
+
data.tar.gz: e7b4a36140d0bb8d036ab29d30949863a08161b647d207360b2f16ce33661708bb09ea9bdade773a91ea276cff72bc47973bd6569a8fe0916b65d746438b09a9
|
data/lib/tiramizoo.rb
CHANGED
@@ -93,6 +93,15 @@ module Tiramizoo
|
|
93
93
|
handle_response(response)
|
94
94
|
end
|
95
95
|
|
96
|
+
def get_order_by_external_id(external_id)
|
97
|
+
response = connection.get({
|
98
|
+
:path => "/api/v1/orders/by_external_id/#{external_id}",
|
99
|
+
:headers => {"Api-Token" => api_token, "Content-Type" => "application/json"}
|
100
|
+
})
|
101
|
+
|
102
|
+
handle_response(response)
|
103
|
+
end
|
104
|
+
|
96
105
|
def cancel_order(order_identifier)
|
97
106
|
body = {
|
98
107
|
"state" => "cancelled",
|
data/lib/tiramizoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiramizoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiramizoo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|