rsr_group 1.1.1 → 1.2.0

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
  SHA1:
3
- metadata.gz: 7495e1c6862ffae5063283ebee596d090a40d9d6
4
- data.tar.gz: c3549f49928138049c60d541ee48b25b2257a8c5
3
+ metadata.gz: 2f41eb4b1611ec09440bdc83c80ceebe5dfadc72
4
+ data.tar.gz: c145e6638d7a68a847099ea2e2bb282bc030f5b5
5
5
  SHA512:
6
- metadata.gz: b8a71af82d7189b4a1c7c49e501036ce7ecfd40cebe63be365cdbbd457ba1596115b31e8f2c9b45b111663762e42448af9f49f477760da6d169c8c90a51c593a
7
- data.tar.gz: 93aba6a6ebdc077748d55e07137520c581d35578cca9e8b68b062b66519b3f605c45b32b243f4fd8a040781bebd4197b5e21a52a1c1198eb1e3a8a87a76b4948
6
+ metadata.gz: 9bdff1469f0d70cfd3e3aa240e2bcf28cc46062a30761e60c02ed9bf76706770427f64ae70691d962776476f84d3f909b53d7e83e7d17efde3603c1b7539f01e
7
+ data.tar.gz: 2fa4f0001113a71bc03ebc8676ceea6a1eab719962be1d816872178a065552210cc38a71cd8a011a0944515d16ff315fb74d4882da09a5a032bef5285cb1d27d
@@ -1,89 +1,89 @@
1
1
  module RsrGroup
2
2
 
3
3
  FILE_TYPES = {
4
- "EERR" => "Error",
5
- "ECONF" => "Confirmation",
6
- "ESHIP" => "Shipping",
4
+ 'EERR' => 'Error',
5
+ 'ECONF' => 'Confirmation',
6
+ 'ESHIP' => 'Shipping',
7
7
  }
8
8
 
9
9
  LINE_TYPES = {
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,
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
- "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"
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
- "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",
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
@@ -1,3 +1,3 @@
1
1
  module RsrGroup
2
- VERSION = "1.1.1"
2
+ VERSION = '1.2.0'
3
3
  end
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.1.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-17 00:00:00.000000000 Z
11
+ date: 2017-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler