mirakl 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mirakl/requests/dr12.rb +3 -4
- data/lib/mirakl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42bc1a8d535857ed0f14976f864b65087fea54f388dd3e561243ec85970886c7
|
4
|
+
data.tar.gz: f4f5f26f2c330864e16f158432bd786751fcbe083ab2291ec3c05b311d714638
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb71670d265833cf3ff86ad5a0ac44f412da9f282d09fd8ee2fa56a0f6220e3028cb43ad78ef35cf92018b1a453a1f3155b62e522aaf0e7162c72f5eee635cb6
|
7
|
+
data.tar.gz: 79a2167a1431a4824dad07e22ad0a42138ba037d088f131f16292db95354322710e36b34bd01feeb2fdb7f436454b86c725b8bbd1019cdd7c8e9510c7324814c
|
data/lib/mirakl/requests/dr12.rb
CHANGED
@@ -5,13 +5,12 @@ module Mirakl
|
|
5
5
|
class DR12
|
6
6
|
include Mirakl::ApiOperations::Request
|
7
7
|
|
8
|
-
def self.call(params = {}, opts = {})
|
9
|
-
if
|
8
|
+
def self.call(document_request_id, params = {}, opts = {})
|
9
|
+
if document_request_id.blank?
|
10
10
|
raise ArgumentError,
|
11
|
-
"You must fill the `document_request_id`
|
11
|
+
"You must fill the `document_request_id` value to call the DR12 API endpoint"
|
12
12
|
end
|
13
13
|
|
14
|
-
document_request_id = params.delete(:document_request_id)
|
15
14
|
api_path = "document-request/#{document_request_id}/lines"
|
16
15
|
|
17
16
|
resp, opts = request(:get, api_path, params, opts)
|
data/lib/mirakl/version.rb
CHANGED