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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc299be5b062c2079511f452ed60b82a9338884da106881c5a91ec8a28abf940
4
- data.tar.gz: b85b449c979668c129b2b533382bbd79189df10d6977aaddbdd0f5090ff8be3f
3
+ metadata.gz: 3e5a27038b4342139186914a9ddd56b18c30d5ecc53c5847afbe5bc45e0acc42
4
+ data.tar.gz: 581e067259acced3a84425c7864e77798970a84a4b3d9dbda7adda9c529c97e1
5
5
  SHA512:
6
- metadata.gz: 74685f78c1b68fccbe98bb9981eeb816ebf283d3d6459272e41ec22536a90c2eda1bd5b10118dc5e8b109d54ad9683c81ceed9a3b5716b116a41df26e155cc1d
7
- data.tar.gz: 06cb1ae01f0c1d7072df13a36b06dd2f46a32fd28f0b71ce9a6bb8681db0ac97fbebc75a23c621d8dc485fb9559e7bf3c0d42db54e81b6a5b14063af92c222ae
6
+ metadata.gz: ce146932be25bfcf4f9a6d2bbaf8feab9d5be9b767804b32fd6d31b18ae6ddac9fd1cd53a772bcc522d91a73c3ee27477f19fb05992356efe042ddc2a9e49f4f
7
+ data.tar.gz: e7b4a36140d0bb8d036ab29d30949863a08161b647d207360b2f16ce33661708bb09ea9bdade773a91ea276cff72bc47973bd6569a8fe0916b65d746438b09a9
@@ -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",
@@ -1,3 +1,3 @@
1
1
  module Tiramizoo
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
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-02-18 00:00:00.000000000 Z
11
+ date: 2019-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon