lipseys 2.0.1 → 2.0.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 +4 -4
- data/lib/lipseys/catalog.rb +2 -2
- data/lib/lipseys/inventory.rb +1 -1
- data/lib/lipseys/invoice.rb +2 -2
- data/lib/lipseys/order.rb +2 -2
- data/lib/lipseys/user.rb +2 -2
- data/lib/lipseys/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d93d4168c1ac6b1c0f5ca60f534794dc3b2b1b0
|
4
|
+
data.tar.gz: 9661e4f1621476a8e88e71e0121201391c3b166c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71e2f3e26e1b789a69f10eeaf277f199ed7ce4ab48205159dd382106e7d75147e67500f90f105987c9226cc5f7b2db59429a93069e6a02e2fc526ceb5662c798
|
7
|
+
data.tar.gz: f72e879257ded8a7347c03ce929de849117a3a2ad551e646beed4ea22e5cf15625fcbe2d93c5a01611a2a9d406ef97af89be45dc0360d26969f46e9b89006333
|
data/lib/lipseys/catalog.rb
CHANGED
@@ -4,13 +4,13 @@ module Lipseys
|
|
4
4
|
API_URL = 'https://www.lipseys.com/API/catalog.ashx'
|
5
5
|
|
6
6
|
def initialize(options = {})
|
7
|
-
requires!(options, :
|
7
|
+
requires!(options, :username, :password)
|
8
8
|
|
9
9
|
@options = options
|
10
10
|
end
|
11
11
|
|
12
12
|
def self.all(chunk_size = 15, options = {}, &block)
|
13
|
-
requires!(options, :
|
13
|
+
requires!(options, :username, :password)
|
14
14
|
new(options).all(chunk_size, &block)
|
15
15
|
end
|
16
16
|
|
data/lib/lipseys/inventory.rb
CHANGED
data/lib/lipseys/invoice.rb
CHANGED
@@ -29,8 +29,8 @@ module Lipseys
|
|
29
29
|
class Invoice < SoapClient
|
30
30
|
|
31
31
|
def initialize(options = {})
|
32
|
-
requires!(options, :
|
33
|
-
@email = options[:
|
32
|
+
requires!(options, :username, :password)
|
33
|
+
@email = options[:username]
|
34
34
|
@password = options[:password]
|
35
35
|
|
36
36
|
@order_number = options[:order_number]
|
data/lib/lipseys/order.rb
CHANGED
@@ -13,8 +13,8 @@ module Lipseys
|
|
13
13
|
class Order < SoapClient
|
14
14
|
|
15
15
|
def initialize(options = {})
|
16
|
-
requires!(options, :
|
17
|
-
@email = options[:
|
16
|
+
requires!(options, :username, :password, :quantity, :purchase_order)
|
17
|
+
@email = options[:username]
|
18
18
|
@password = options[:password]
|
19
19
|
@quantity = options[:quantity]
|
20
20
|
|
data/lib/lipseys/user.rb
CHANGED
@@ -4,7 +4,7 @@ module Lipseys
|
|
4
4
|
API_URL = 'https://www.lipseys.com/API/validate.asmx?WSDL'
|
5
5
|
|
6
6
|
def initialize(options = {})
|
7
|
-
requires!(options, :
|
7
|
+
requires!(options, :username, :password)
|
8
8
|
@options = options
|
9
9
|
end
|
10
10
|
|
@@ -13,7 +13,7 @@ module Lipseys
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def validate
|
16
|
-
body = { Credentials: { EmailAddress: @options[:
|
16
|
+
body = { Credentials: { EmailAddress: @options[:username], Password: @options[:password] } }
|
17
17
|
response = soap_client(API_URL).call(:validate_dealer, message: body)
|
18
18
|
|
19
19
|
result = response.body[:validate_dealer_response][:validate_dealer_result]
|
data/lib/lipseys/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lipseys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|