mirakl 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6942e6e263587e61320b614bf44f68e7d07ca4814a44471e70301c391368e076
4
- data.tar.gz: cea3eacf41a186218902e74c2403a406bc1575d695885e38994894005cf62ebd
3
+ metadata.gz: 42bc1a8d535857ed0f14976f864b65087fea54f388dd3e561243ec85970886c7
4
+ data.tar.gz: f4f5f26f2c330864e16f158432bd786751fcbe083ab2291ec3c05b311d714638
5
5
  SHA512:
6
- metadata.gz: 369e4667d542baed4d8c15cc8700d25e932122a9385f66c79f1c091ad6c0404e74297f4a50cb5d73deb80f7c650cc11d3471827e71a0fad1dd31af86d7827775
7
- data.tar.gz: 076d59736ad7a8bc6f50f99b65e34a4c8bfda03183c9713c93c9b7eff98a6e5e60b99cfe038637d9359b77c63ef32cf74149063c75bd446ff468c1621d49d0bc
6
+ metadata.gz: eb71670d265833cf3ff86ad5a0ac44f412da9f282d09fd8ee2fa56a0f6220e3028cb43ad78ef35cf92018b1a453a1f3155b62e522aaf0e7162c72f5eee635cb6
7
+ data.tar.gz: 79a2167a1431a4824dad07e22ad0a42138ba037d088f131f16292db95354322710e36b34bd01feeb2fdb7f436454b86c725b8bbd1019cdd7c8e9510c7324814c
@@ -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 params[:document_request_id].blank?
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` parameter to call the DR12 API endpoint"
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mirakl
4
- VERSION = "0.0.2".freeze
4
+ VERSION = "0.0.3".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirakl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mirakl