We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9dccf0 commit 96eef94Copy full SHA for 96eef94
2 files changed
lib/dhl/ecommerce/label.rb
@@ -202,7 +202,9 @@ def self.create_in_batches(attributes)
202
url = "https://api.dhlglobalmail.com/v1/#{self.resource_name.downcase}/US/#{location_id}/zpl"
203
end
204
205
- location_attributes.each_slice(500).collect do |slice|
+ # DHL e-Commerce's documentation says they support creating 500 labels
206
+ # at once but as it turns out, they don't.
207
+ location_attributes.each_slice(1).collect do |slice|
208
labels = slice.map do |slice_attributes|
209
new slice_attributes
210
lib/dhl/ecommerce/version.rb
@@ -1,5 +1,5 @@
1
module DHL
2
module Ecommerce
3
- VERSION = "1.0"
+ VERSION = "1.0.1"
4
5
0 commit comments