gun_accessory_supply 0.0.3 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gun_accessory_supply/order.rb +12 -15
- data/lib/gun_accessory_supply/version.rb +1 -1
- data/lib/gun_accessory_supply.rb +0 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16419d71639d7b0f6501701a40de275cc70bb2c2378edef32455df9583c8c79
|
4
|
+
data.tar.gz: a898e1801aeee3f10c56942f056495b43d4f5158e38ceb1527244976c3daa533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c618cc69e640ade4b40952af89e1176ee1d707e7c1e492d1eba2b247f7066a86551fb4bd9bf193242cc7d0c4df85108d2d865a51ce3a0b92b06ba7d54818da6
|
7
|
+
data.tar.gz: 1aaf391a4238b6be337b5d2b65cfb48085d29d875e9ada9769337f4f1ad942d072ad4ea57ecf220b5a2a9d68717bae0811502ff0d58dbeda5d450d9a5522ae67
|
@@ -70,33 +70,30 @@ module GunAccessorySupply
|
|
70
70
|
xml.cXML(timestamp: Time.now) do
|
71
71
|
xml.Header do
|
72
72
|
xml.From do
|
73
|
-
xml.Credential(domain:
|
74
|
-
xml.Identity
|
75
|
-
xml.SharedSecret
|
76
|
-
xml.OrderID @po_number
|
73
|
+
xml.Credential(domain: GunAccessorySupply.config.xml_domain) do
|
74
|
+
xml.Identity GunAccessorySupply.config.xml_domain
|
75
|
+
xml.SharedSecret GunAccessorySupply.config.xml_secret
|
77
76
|
end
|
78
77
|
end
|
79
78
|
xml.To do
|
80
|
-
xml.Credential(domain:
|
81
|
-
xml.Identity
|
82
|
-
xml.SharedSecret
|
83
|
-
xml.OrderID @po_number
|
79
|
+
xml.Credential(domain: GunAccessorySupply.config.xml_domain) do
|
80
|
+
xml.Identity GunAccessorySupply.config.xml_domain
|
81
|
+
xml.SharedSecret GunAccessorySupply.config.xml_secret
|
84
82
|
end
|
85
83
|
end
|
86
84
|
xml.Sender do
|
87
|
-
xml.Credential(domain:
|
88
|
-
xml.Identity
|
89
|
-
xml.SharedSecret
|
90
|
-
xml.OrderID @po_number
|
85
|
+
xml.Credential(domain: GunAccessorySupply.config.xml_domain) do
|
86
|
+
xml.Identity GunAccessorySupply.config.xml_domain
|
87
|
+
xml.SharedSecret GunAccessorySupply.config.xml_secret
|
91
88
|
end
|
92
89
|
end
|
93
90
|
end
|
94
91
|
|
95
92
|
xml.Request do
|
96
93
|
xml.OrderRequest do
|
97
|
-
xml.OrderRequestHeader(orderDate: Time.now, type: 'new') do
|
94
|
+
xml.OrderRequestHeader(orderDate: Time.now, type: 'new', orderID: @po_number) do
|
98
95
|
xml.ShipTo do
|
99
|
-
xml.Address do
|
96
|
+
xml.Address(addressID: @ship_to_id) do
|
100
97
|
xml.Name @recipient[:dealer_name]
|
101
98
|
xml.Email @recipient[:shipping][:email]
|
102
99
|
xml.PostalAddress do
|
@@ -110,7 +107,7 @@ module GunAccessorySupply
|
|
110
107
|
end
|
111
108
|
end
|
112
109
|
xml.BillTo do
|
113
|
-
xml.Address
|
110
|
+
xml.Address do
|
114
111
|
xml.Name @recipient[:dealer_name]
|
115
112
|
xml.Email @recipient[:shipping][:email]
|
116
113
|
xml.PostalAddress do
|
data/lib/gun_accessory_supply.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gun_accessory_supply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony Beninate
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|