smartsend-ruby 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: dfa635f002d80cd3e9c99acf407f34ad6e309156
4
- data.tar.gz: 8f09359296a9b5e9efb6f56ac6adbd71e9598bae
3
+ metadata.gz: 71c53eea4d23cd5fdbb44d988a4aa80d1b971ddb
4
+ data.tar.gz: e370c38f2f6c95faedc889116356278e835b405a
5
5
  SHA512:
6
- metadata.gz: 426cc230bee3b8432be7bf81374ad5c44ea56015948b4204de698a0887962ac14eedb06ebcdeb8472095e314f7b1d7d19df4bad5352053813bec0e665b69a1f4
7
- data.tar.gz: dc4b88417955b99438f78f4afa6af3a146127c8130a06586c37cab1d9dcb8d1786c25b81c26d48b9922de1f0654e614aa1e1ddfa0a9b5cf7c7fcb1ef61927b10
6
+ metadata.gz: b2baf4fd35f72dc9cf5e4773aaaebc74d5d52597e1a373f7c9aebc6f241e4078baed5e256421d854c81dc62b6b403e091e109c55132351323fdca95b62bcb0e1
7
+ data.tar.gz: 768aa3279001727ec340bc0dd162d46c1e3c9c76253fb7bfc2e5d186542e145bbebdecf55b701b32fd5d8867c78f77ef66452c4efcd09befc72fb897989999fd
@@ -9,7 +9,7 @@ class Smartsend::Orders
9
9
  def save_all!(account: nil)
10
10
  raise Smartsend::TooManyOrdersError, "You can save a maximum of 10 orders in batch" if count > 10
11
11
 
12
- response = Smartsend::Client.new(account).post('orders', self.serialize)
12
+ response = Smartsend::Client.new(account).post('booking/orders', self.serialize)
13
13
 
14
14
  update_label_url_tracking_codes(response)
15
15
 
@@ -18,7 +18,7 @@ class Smartsend::Orders
18
18
 
19
19
  def update_label_url_tracking_codes(response)
20
20
  @labels_url = response['combine_pdf']
21
-
21
+
22
22
  response['orders'].each do |response_order|
23
23
  if order = @orders.select { |x| x.id.to_s == response_order['reference'].to_s }.first
24
24
  order.update_label_url_tracking_codes(response_order)
@@ -1,3 +1,3 @@
1
1
  module Smartsend
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartsend-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aske Hansen