rsr_group 1.1.1 → 1.2.0
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/rsr_group/constants.rb +72 -72
- data/lib/rsr_group/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: 2f41eb4b1611ec09440bdc83c80ceebe5dfadc72
|
|
4
|
+
data.tar.gz: c145e6638d7a68a847099ea2e2bb282bc030f5b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bdff1469f0d70cfd3e3aa240e2bcf28cc46062a30761e60c02ed9bf76706770427f64ae70691d962776476f84d3f909b53d7e83e7d17efde3603c1b7539f01e
|
|
7
|
+
data.tar.gz: 2fa4f0001113a71bc03ebc8676ceea6a1eab719962be1d816872178a065552210cc38a71cd8a011a0944515d16ff315fb74d4882da09a5a032bef5285cb1d27d
|
data/lib/rsr_group/constants.rb
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
module RsrGroup
|
|
2
2
|
|
|
3
3
|
FILE_TYPES = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
'EERR' => 'Error',
|
|
5
|
+
'ECONF' => 'Confirmation',
|
|
6
|
+
'ESHIP' => 'Shipping',
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
LINE_TYPES = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
10
|
+
'00' => 'file_header',
|
|
11
|
+
'10' => 'order_header',
|
|
12
|
+
'11' => 'ffl_dealer',
|
|
13
|
+
'20' => 'order_detail',
|
|
14
|
+
'30' => 'confirmation_header',
|
|
15
|
+
'40' => 'confirmation_detail',
|
|
16
|
+
'50' => 'confirmation_trailer',
|
|
17
|
+
'60' => 'shipping_header',
|
|
18
|
+
'70' => 'shipping_detail',
|
|
19
|
+
'80' => 'shipping_trailer',
|
|
20
|
+
'90' => 'order_trailer',
|
|
21
|
+
'99' => 'file_trailer',
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
SHIPPING_CARRIERS = %w(UPS USPS)
|
|
25
25
|
|
|
26
26
|
SHIPPING_METHODS = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
'Grnd' => 'Ground',
|
|
28
|
+
'1Day' => 'Next Day Air',
|
|
29
|
+
'2Day' => '2nd Day Air',
|
|
30
|
+
'3Day' => '3 Day Select',
|
|
31
|
+
'NDam' => 'Next Day Early AM',
|
|
32
|
+
'NDAS' => 'Next Day Air Saver',
|
|
33
|
+
'PRIO' => 'Priority'
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
ERROR_CODES = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
37
|
+
'00001' => 'File Header record missing',
|
|
38
|
+
'00002' => 'Invalid date',
|
|
39
|
+
'00003' => 'Duplicate file',
|
|
40
|
+
'00004' => 'Invalid Etailer number',
|
|
41
|
+
'00005' => 'Empty file',
|
|
42
|
+
'00006' => 'Invalid Sequence number',
|
|
43
|
+
'10001' => 'Order Header record missing',
|
|
44
|
+
'10002' => 'Invalid ship‐to name',
|
|
45
|
+
'10003' => 'Missing ship‐to address',
|
|
46
|
+
'10004' => 'Invalid ship‐to city',
|
|
47
|
+
'10005' => 'Invalid ship‐to state',
|
|
48
|
+
'10006' => 'Invalid ship‐to zip',
|
|
49
|
+
'10007' => 'Invalid phone',
|
|
50
|
+
'10008' => 'Invalid email option',
|
|
51
|
+
'10009' => 'Invalid email address',
|
|
52
|
+
'10010' => 'Duplicate order',
|
|
53
|
+
'10011' => 'No orders found ',
|
|
54
|
+
'10012' => 'Invalid ship‐to address ',
|
|
55
|
+
'10013' => 'Invalid ship‐to county ',
|
|
56
|
+
'10014' => 'Order Cancelled',
|
|
57
|
+
'10099' => 'No quantity available',
|
|
58
|
+
'10999' => 'Miscellaneous',
|
|
59
|
+
'11000' => 'FFL Dealer record missing',
|
|
60
|
+
'11001' => 'Account is not setup for firearm shipments',
|
|
61
|
+
'11002' => 'Dealer FFL not found',
|
|
62
|
+
'11003' => 'Dealer zip code mismatch',
|
|
63
|
+
'11004' => 'Dealer name mismatch',
|
|
64
|
+
'11005' => 'Dealer state mismatch',
|
|
65
|
+
'11006' => 'Dealer FFL expired',
|
|
66
|
+
'11007' => 'Firearms combined with accessories',
|
|
67
|
+
'11008' => 'Dealer deactivated',
|
|
68
|
+
'11999' => 'Miscellaneous',
|
|
69
|
+
'20001' => 'Order Detail record missing',
|
|
70
|
+
'20002' => 'Invalid RSR stock number',
|
|
71
|
+
'20003' => 'Invalid quantity ordered',
|
|
72
|
+
'20004' => 'Invalid shipping carrier',
|
|
73
|
+
'20005' => 'Invalid shipping method',
|
|
74
|
+
'20006' => 'Duplicate item in order',
|
|
75
|
+
'20007' => 'Item out of stock',
|
|
76
|
+
'20008' => 'Item prohibited',
|
|
77
|
+
'20009' => 'Phone number required',
|
|
78
|
+
'20010' => 'RSR allocated',
|
|
79
|
+
'20011' => 'Case quantity required',
|
|
80
|
+
'20999' => 'Miscellaneous',
|
|
81
|
+
'30001' => 'OrderTrailerrecordmissing',
|
|
82
|
+
'30002' => 'Invalid total order amount',
|
|
83
|
+
'30003' => 'Mismatch on number of items ordered and number specified on order trailer record',
|
|
84
|
+
'99001' => 'File Trailer record missing',
|
|
85
|
+
'99002' => 'Invalid quantity ordered',
|
|
86
|
+
'99003' => 'Mismatch on number of orders found and total quantity specified on file trailer record',
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
end
|
data/lib/rsr_group/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rsr_group
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
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-02-
|
|
11
|
+
date: 2017-02-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|