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 +4 -4
- data/lib/smartsend/orders.rb +2 -2
- data/lib/smartsend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71c53eea4d23cd5fdbb44d988a4aa80d1b971ddb
|
4
|
+
data.tar.gz: e370c38f2f6c95faedc889116356278e835b405a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2baf4fd35f72dc9cf5e4773aaaebc74d5d52597e1a373f7c9aebc6f241e4078baed5e256421d854c81dc62b6b403e091e109c55132351323fdca95b62bcb0e1
|
7
|
+
data.tar.gz: 768aa3279001727ec340bc0dd162d46c1e3c9c76253fb7bfc2e5d186542e145bbebdecf55b701b32fd5d8867c78f77ef66452c4efcd09befc72fb897989999fd
|
data/lib/smartsend/orders.rb
CHANGED
@@ -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)
|
data/lib/smartsend/version.rb
CHANGED