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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e975f68915ef480c52d02432b7c398e1e3138fea406e95046b19c20afc3c0363
4
- data.tar.gz: b74e8ee0f1c264d8411cf82dc5db99cfe2f118dad8ad71ba4401e9c77d1024cd
3
+ metadata.gz: c16419d71639d7b0f6501701a40de275cc70bb2c2378edef32455df9583c8c79
4
+ data.tar.gz: a898e1801aeee3f10c56942f056495b43d4f5158e38ceb1527244976c3daa533
5
5
  SHA512:
6
- metadata.gz: 6de5bf2dbe16f76c55f1ba25723f25c89968932885149644fcf23260c32203059f44e9d52e1d72b44c67b7582a4f5ca6c71f2a2ab34d5c1f123edb8091a2b27f
7
- data.tar.gz: 7154b5c648b7c9325fa6ffa33d3d1cbeb75c5378a8e024efe9db53d9018d4852c8c7048fdf4d5a5c5f39656730699be3e21bc2754b6f4018c884dac1f3a73f00
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: @xml_domain) do
74
- xml.Identity @xml_domain
75
- xml.SharedSecret @xml_secret
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: @xml_domain) do
81
- xml.Identity @xml_domain
82
- xml.SharedSecret @xml_secret
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: @xml_domain) do
88
- xml.Identity @xml_domain
89
- xml.SharedSecret @xml_secret
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(addressID: @ship_to_id) do
110
+ xml.Address do
114
111
  xml.Name @recipient[:dealer_name]
115
112
  xml.Email @recipient[:shipping][:email]
116
113
  xml.PostalAddress do
@@ -1,3 +1,3 @@
1
1
  module GunAccessorySupply
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.6'.freeze
3
3
  end
@@ -1,11 +1,8 @@
1
1
  require 'gun_accessory_supply/version'
2
-
3
2
  require 'csv'
4
3
  require 'net/sftp'
5
4
  require 'tempfile'
6
-
7
5
  require 'active_support/all'
8
-
9
6
  require 'gun_accessory_supply/base'
10
7
  require 'gun_accessory_supply/catalog'
11
8
  require 'gun_accessory_supply/category'
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.3
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-24 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport