zanders 1.4 → 1.4.2

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
  SHA1:
3
- metadata.gz: adef73d9939b9fa6df6714cdf0615047c04ab921
4
- data.tar.gz: 49cec177c254c057848b9431c783d031f637db6f
3
+ metadata.gz: 209a7b270146859b76490ea52877c30f76572506
4
+ data.tar.gz: 6ed210a682c72199d56276c196370b705cacec95
5
5
  SHA512:
6
- metadata.gz: d11724ea604fef52ebfbc3a734ee825dedbaebf33dbf905bdfecc8386bad6d1a583522478830dbed44ad9ee408195eec147add82ba5e2a35617e2087a1905266
7
- data.tar.gz: 84dce9f8c8c3816b5b472a00e6227d9e5ead2147c33a56527048aa44a6a7ddfcd26f2a2b77d93e75a6b0eb28e9ec42772d897267db7fba9f13d8a6f5f36a483e
6
+ metadata.gz: eade27290cfac28a095960f6a9deda39700b978762804933d0eb84b4ef8a77bccd1652349ea564495fb2ecf258869c6dcdc614368287b1b7260dfea56bf0b9cd
7
+ data.tar.gz: ff432821ad5a08abc794e7e91688b1c9b1e1c7780828250864560f00f50cd8f1362731ffd9048144844a570f864e92b514916864a22ae4b41daaed9f0d287181
data/lib/zanders/order.rb CHANGED
@@ -59,7 +59,9 @@ module Zanders
59
59
  { key: 'purchaseOrderNumber', value: purchase_order_number }
60
60
  ])
61
61
 
62
- if address[:fflno].present?
62
+ if address == nil
63
+ shipping_information.push({key: 'shipToNo', value: '0001'})
64
+ elsif address[:fflno].present?
63
65
  ship_to_number = Zanders::Address.ship_to_number(address, @options)
64
66
 
65
67
  if ship_to_number[:success]
@@ -67,8 +69,6 @@ module Zanders
67
69
  else
68
70
  return { success: false, error_code: ship_to_number[:error_code] }
69
71
  end
70
- elsif address == nil
71
- shipping_information.push({key: 'shipToNo', value: '0001'})
72
72
  else
73
73
  shipping_information.push(*[
74
74
  { key: 'shipToAddress1', value: address[:address1] },
@@ -1,3 +1,3 @@
1
1
  module Zanders
2
- VERSION = "1.4"
2
+ VERSION = "1.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zanders
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.4'
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Knight