reactive_freight 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +5 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +166 -0
  5. data/Rakefile +8 -0
  6. data/accessorial_symbols.txt +95 -0
  7. data/lib/reactive_freight.rb +21 -0
  8. data/lib/reactive_freight/carrier.rb +62 -0
  9. data/lib/reactive_freight/carriers.rb +18 -0
  10. data/lib/reactive_freight/carriers/btvp.rb +384 -0
  11. data/lib/reactive_freight/carriers/clni.rb +59 -0
  12. data/lib/reactive_freight/carriers/ctbv.rb +35 -0
  13. data/lib/reactive_freight/carriers/dphe.rb +296 -0
  14. data/lib/reactive_freight/carriers/drrq.rb +303 -0
  15. data/lib/reactive_freight/carriers/fcsy.rb +24 -0
  16. data/lib/reactive_freight/carriers/fwda.rb +243 -0
  17. data/lib/reactive_freight/carriers/jfj_transportation.rb +11 -0
  18. data/lib/reactive_freight/carriers/pens.rb +135 -0
  19. data/lib/reactive_freight/carriers/rdfs.rb +320 -0
  20. data/lib/reactive_freight/carriers/saia.rb +336 -0
  21. data/lib/reactive_freight/carriers/sefl.rb +234 -0
  22. data/lib/reactive_freight/carriers/totl.rb +96 -0
  23. data/lib/reactive_freight/carriers/wrds.rb +218 -0
  24. data/lib/reactive_freight/configuration/carriers/btvp.yml +139 -0
  25. data/lib/reactive_freight/configuration/carriers/clni.yml +107 -0
  26. data/lib/reactive_freight/configuration/carriers/ctbv.yml +117 -0
  27. data/lib/reactive_freight/configuration/carriers/dphe.yml +124 -0
  28. data/lib/reactive_freight/configuration/carriers/drrq.yml +115 -0
  29. data/lib/reactive_freight/configuration/carriers/fcsy.yml +104 -0
  30. data/lib/reactive_freight/configuration/carriers/fwda.yml +117 -0
  31. data/lib/reactive_freight/configuration/carriers/jfj_transportation.yml +2 -0
  32. data/lib/reactive_freight/configuration/carriers/pens.yml +22 -0
  33. data/lib/reactive_freight/configuration/carriers/rdfs.yml +135 -0
  34. data/lib/reactive_freight/configuration/carriers/saia.yml +117 -0
  35. data/lib/reactive_freight/configuration/carriers/sefl.yml +115 -0
  36. data/lib/reactive_freight/configuration/carriers/totl.yml +107 -0
  37. data/lib/reactive_freight/configuration/carriers/wrds.yml +19 -0
  38. data/lib/reactive_freight/configuration/platforms/carrier_logistics.yml +25 -0
  39. data/lib/reactive_freight/configuration/platforms/liftoff.yml +12 -0
  40. data/lib/reactive_freight/package.rb +137 -0
  41. data/lib/reactive_freight/platform.rb +36 -0
  42. data/lib/reactive_freight/platforms.rb +4 -0
  43. data/lib/reactive_freight/platforms/carrier_logistics.rb +317 -0
  44. data/lib/reactive_freight/platforms/liftoff.rb +102 -0
  45. data/lib/reactive_freight/rate_estimate.rb +113 -0
  46. data/lib/reactive_freight/shipment_event.rb +10 -0
  47. data/reactive_freight.gemspec +39 -0
  48. data/service_type_symbols.txt +4 -0
  49. metadata +198 -0
@@ -0,0 +1,107 @@
1
+ :accessorials:
2
+ :mappable:
3
+ :amusement_park_delivery: '&LIMDEL=yes'
4
+ :amusement_park_pickup: '&LIMPU=yes'
5
+ :appointment_delivery: '&DAR=yes&APPT=yes'
6
+ :athletic_facility_delivery: '&LIMDEL=yes'
7
+ :athletic_facility_pickup: '&LIMPU=yes'
8
+ :cemetery_delivery: '&LIMDEL=yes'
9
+ :cemetery_pickup: '&LIMPU=yes'
10
+ :church_delivery: '&LIMDEL=yes'
11
+ :church_pickup: '&LIMPU=yes'
12
+ :construction_delivery: '&CONSDELY=yes'
13
+ :construction_pickup: '&CONSPU=yes'
14
+ :dock_pickup: '&LIMPU=yes'
15
+ :farm_delivery: '&LIMDEL=yes'
16
+ :farm_pickup: '&LIMPU=yes'
17
+ :fitness_center_delivery: '&LIMDEL=yes'
18
+ :fitness_center_pickup: '&LIMPU=yes'
19
+ :golf_course_delivery: '&LIMDEL=yes'
20
+ :golf_course_pickup: '&LIMPU=yes'
21
+ :government_delivery: '&GOVD=yes'
22
+ :government_pickup: '&GOVP=yes'
23
+ :grocery_store_delivery: '&LIMDEL=yes'
24
+ :grocery_store_pickup: '&LIMPU=yes'
25
+ :hospital_delivery: '&LIMDEL=yes'
26
+ :hospital_pickup: '&LIMPU=yes'
27
+ :hotel_delivery: '&LIMDEL=yes'
28
+ :hotel_pickup: '&LIMPU=yes'
29
+ :inside_delivery: '&INSD=yes'
30
+ :inside_pickup: '&INSPU=yes'
31
+ :inspection_site_delivery: '&LIMDEL=yes'
32
+ :inspection_site_pickup: '&LIMPU=yes'
33
+ :jobsite_delivery: '&CONSDELY=yes'
34
+ :jobsite_pickup: '&CONSPU=yes'
35
+ :liftgate_delivery: '&LIFTD=yes'
36
+ :liftgate_pickup: '&LIFTP=yes'
37
+ :mall_delivery: '&LIMDEL=yes'
38
+ :mall_pickup: '&LIMPU=yes'
39
+ :marina_delivery: '&LIMDEL=yes'
40
+ :marina_pickup: '&LIMPU=yes'
41
+ :military_site_delivery: '&LIMDEL=yes'
42
+ :military_site_pickup: '&LIMPU=yes'
43
+ :mine_site_delivery: '&LIMDEL=yes'
44
+ :mine_site_pickup: '&LIMPU=yes'
45
+ :motel_delivery: '&LIMDEL=yes'
46
+ :motel_pickup: '&LIMPU=yes'
47
+ :nursing_home_delivery: '&LIMDEL=yes'
48
+ :nursing_home_pickup: '&LIMPU=yes'
49
+ :park_delivery: '&LIMDEL=yes'
50
+ :park_pickup: '&LIMPU=yes'
51
+ :prison_delivery: '&LIMDEL=yes'
52
+ :prison_pickup: '&LIMPU=yes'
53
+ :ranch_delivery: '&LIMDEL=yes'
54
+ :ranch_pickup: '&LIMPU=yes'
55
+ :reservation_delivery: '&LIMDEL=yes'
56
+ :reservation_pickup: '&LIMPU=yes'
57
+ :residential_delivery: '&RESDLY=yes'
58
+ :residential_pickup: '&RESPU=yes'
59
+ :resort_delivery: '&LIMDEL=yes'
60
+ :resort_pickup: '&LIMPU=yes'
61
+ :restaurant_delivery: '&LIMDEL=yes'
62
+ :restaurant_pickup: '&LIMPU=yes'
63
+ :school_delivery: '&LIMDEL=yes'
64
+ :school_pickup: '&LIMPU=yes'
65
+ :steel_mill_delivery: '&LIMDEL=yes'
66
+ :steel_mill_pickup: '&LIMPU=yes'
67
+ :storage_facility_delivery: '&LIMDEL=yes'
68
+ :storage_facility_pickup: '&LIMPU=yes'
69
+ :university_delivery: '&LIMDEL=yes'
70
+ :university_pickup: '&LIMPU=yes'
71
+ :utility_site_delivery: '&LIMDEL=yes'
72
+ :utility_site_pickup: '&LIMPU=yes'
73
+ # May be inaccurate
74
+ :unquotable:
75
+ - :dock_dropoff
76
+ - :dock_pickup
77
+ # May be inaccurate
78
+ :unserviceable:
79
+ - :airport_delivery
80
+ - :airport_pickup
81
+ - :appointment_pickup
82
+ - :brewery_delivery
83
+ - :brewery_pickup
84
+ - :convention_delivery
85
+ - :convention_pickup
86
+ - :customs_brokerage
87
+ - :driver_assist
88
+ - :early_morning_delivery
89
+ - :fair_delivery
90
+ - :fair_pickup
91
+ - :flatbed_delivery
92
+ - :flatbed_pickup
93
+ - :grocery_warehouse_delivery
94
+ - :grocery_warehouse_pickup
95
+ - :guaranteed_delivery
96
+ - :guaranteed_delivery_am
97
+ - :guaranteed_delivery_pm
98
+ - :winery_delivery
99
+ - :winery_pickup
100
+ :api:
101
+ :carrier_code: clf
102
+ :attributes:
103
+ :rates:
104
+ :with_excessive_length_fees: true
105
+ :services:
106
+ :types:
107
+ - :standard
@@ -0,0 +1,117 @@
1
+ :accessorials:
2
+ :mappable:
3
+ :airport_delivery: '&LA=yes'
4
+ :airport_pickup: '&LA=yes'
5
+ :amusement_park_delivery: '&LA=yes'
6
+ :amusement_park_pickup: '&LA=yes'
7
+ :appointment_delivery: '&NOTIFY=yes'
8
+ :cemetery_delivery: '&LA=yes'
9
+ :cemetery_pickup: '&LA=yes'
10
+ :church_delivery: '&LA=yes'
11
+ :church_pickup: '&LA=yes'
12
+ :construction_delivery: '&CS=yes'
13
+ :construction_pickup: '&CS=yes'
14
+ :farm_delivery: '&LA=yes'
15
+ :farm_pickup: '&LA=yes'
16
+ :fitness_center_delivery: '&LA=yes'
17
+ :fitness_center_pickup: '&LA=yes'
18
+ :golf_course_delivery: '&LA=yes'
19
+ :golf_course_pickup: '&LA=yes'
20
+ :government_delivery: '&LA=yes'
21
+ :government_pickup: '&LA=yes'
22
+ :hotel_delivery: '&LA=yes'
23
+ :hotel_pickup: '&LA=yes'
24
+ :inspection_site_delivery: '&LA=yes'
25
+ :inspection_site_pickup: '&LA=yes'
26
+ :jobsite_delivery: '&CS=yes'
27
+ :jobsite_pickup: '&CS=yes'
28
+ :liftgate_delivery: '&LIFT=yes'
29
+ :liftgate_pickup: '&LIFTP=yes'
30
+ :mall_pickup: '&LA=yes'
31
+ :marina_delivery: '&LA=yes'
32
+ :marina_pickup: '&LA=yes'
33
+ :military_site_delivery: '&LA=yes'
34
+ :military_site_pickup: '&LA=yes'
35
+ :mine_site_delivery: '&LA=yes'
36
+ :mine_site_pickup: '&LA=yes'
37
+ :nursing_home_delivery: '&LA=yes'
38
+ :nursing_home_pickup: '&LA=yes'
39
+ :park_delivery: '&LA=yes'
40
+ :park_pickup: '&LA=yes'
41
+ :prison_delivery: '&LA=yes'
42
+ :prison_pickup: '&LA=yes'
43
+ :ranch_delivery: '&LA=yes'
44
+ :ranch_pickup: '&LA=yes'
45
+ :reservation_delivery: '&LA=yes'
46
+ :reservation_pickup: '&LA=yes'
47
+ :residential_delivery: '&RESDEL=yes'
48
+ :residential_pickup: '&RESPI=yes'
49
+ :resort_delivery: '&LA=yes'
50
+ :resort_pickup: '&LA=yes'
51
+ :school_delivery: '&LA=yes'
52
+ :school_pickup: '&LA=yes'
53
+ :university_delivery: '&LA=yes'
54
+ :university_pickup: '&LA=yes'
55
+ :storage_facility_delivery: '&LA=yes'
56
+ :storage_facility_pickup: '&LA=yes'
57
+ :utility_site_delivery: '&LA=yes'
58
+ :utility_site_pickup: '&LA=yes'
59
+ :inside_delivery: '&INSIDE=yes'
60
+ :inside_pickup: '&INSIDE=yes'
61
+ # May be inaccurate
62
+ :unquotable:
63
+ - :athletic_facility_delivery
64
+ - :athletic_facility_delivery: false
65
+ - :athletic_facility_pickup: false
66
+ - :dock_dropoff: false
67
+ - :dock_pickup: false
68
+ - :grocery_store_delivery: false
69
+ - :grocery_store_pickup: false
70
+ - :hospital_delivery: false
71
+ - :hospital_pickup: false
72
+ - :mall_delivery: false
73
+ - :motel_delivery: false
74
+ - :motel_pickup: false
75
+ - :restaurant_delivery: false
76
+ - :restaurant_pickup: false
77
+ - :steel_mill_delivery: false
78
+ - :steel_mill_pickup: false
79
+ # May be inaccurate
80
+ :unserviceable:
81
+ - :appointment_pickup
82
+ - :brewery_delivery
83
+ - :brewery_pickup
84
+ - :convention_delivery
85
+ - :convention_pickup
86
+ - :customs_brokerage
87
+ - :driver_assist
88
+ - :early_morning_delivery
89
+ - :fair_delivery
90
+ - :fair_pickup
91
+ - :flatbed_delivery
92
+ - :flatbed_pickup
93
+ - :grocery_warehouse_delivery
94
+ - :grocery_warehouse_pickup
95
+ - :guaranteed_delivery_am
96
+ - :guaranteed_delivery_pm
97
+ - :guaranteed_delivery
98
+ - :winery_delivery
99
+ - :winery_pickup
100
+ :api:
101
+ :domain: www.customco.com
102
+ :endpoints:
103
+ :bol: /scripts/cgiip.exe/web-login.htm?
104
+ :pod: /scripts/cgiip.exe/web-login.htm?
105
+ :rates: /scripts/cgiip.exe/ratequote.xml?
106
+ :track: /scripts/cgiip.exe/boldetail.htm?
107
+ :use_ssl:
108
+ :bol: false
109
+ :pod: false
110
+ :rates: false
111
+ :track: true
112
+ :attributes:
113
+ :rates:
114
+ :with_excessive_length_fees: true
115
+ :services:
116
+ :types:
117
+ - :standard
@@ -0,0 +1,124 @@
1
+ :accessorials:
2
+ :mappable:
3
+ :amusement_park_delivery: LMD
4
+ :amusement_park_pickup: LMP
5
+ :appointment_delivery: NTD
6
+ :appointment_pickup: NTP
7
+ :athletic_facility_delivery: LMD
8
+ :athletic_facility_pickup: LMP
9
+ :cemetery_delivery: LMD
10
+ :cemetery_pickup: LMP
11
+ :church_delivery: LMD
12
+ :church_pickup: LMP
13
+ :construction_delivery: LMT
14
+ :construction_pickup: LMT
15
+ :farm_delivery: LMD
16
+ :farm_pickup: LMP
17
+ :fitness_center_delivery: LMD
18
+ :fitness_center_pickup: LMP
19
+ :golf_course_delivery: LMD
20
+ :golf_course_pickup: LMP
21
+ :grocery_store_delivery: LMD
22
+ :grocery_store_pickup: LMP
23
+ :hospital_delivery: LMD
24
+ :hospital_pickup: LMP
25
+ :hotel_delivery: LMD
26
+ :hotel_pickup: LMP
27
+ :inside_delivery: IND
28
+ :inside_pickup: INP
29
+ :jobsite_delivery: LMT
30
+ :jobsite_pickup: LMT
31
+ :liftgate_delivery: LGD
32
+ :liftgate_pickup: LGP
33
+ :mall_delivery: LMD
34
+ :mall_pickup: LMP
35
+ :marina_delivery: LMD
36
+ :marina_pickup: LMP
37
+ :military_site_delivery: LMD
38
+ :military_site_pickup: LMP
39
+ :mine_site_delivery: LMD
40
+ :mine_site_pickup: LMP
41
+ :motel_delivery: LMD
42
+ :motel_pickup: LMP
43
+ :nursing_home_delivery: LMD
44
+ :nursing_home_pickup: LMP
45
+ :park_delivery: LMD
46
+ :park_pickup: LMP
47
+ :prison_delivery: LMD
48
+ :prison_pickup: LMP
49
+ :ranch_delivery: LMD
50
+ :ranch_pickup: LMP
51
+ :reservation_delivery: LMD
52
+ :reservation_pickup: LMP
53
+ :residential_delivery: RDS
54
+ :residential_pickup: RSP
55
+ :resort_delivery: LMD
56
+ :resort_pickup: LMP
57
+ :restaurant_delivery: LMD
58
+ :restaurant_pickup: LMP
59
+ :school_delivery: LMD
60
+ :school_pickup: LMP
61
+ :steel_mill_delivery: LMD
62
+ :steel_mill_pickup: LMP
63
+ :storage_facility_delivery: LMD
64
+ :storage_facility_pickup: LMP
65
+ :university_delivery: LMD
66
+ :university_pickup: LMP
67
+ # May be inaccurate
68
+ :unquotable:
69
+ - :dock_dropoff
70
+ - :dock_pickup
71
+ # May be inaccurate
72
+ :unserviceable:
73
+ - :afterhours_delivery
74
+ - :afterhours_pickup
75
+ - :airport_delivery
76
+ - :airport_pickup
77
+ - :brewery_delivery
78
+ - :brewery_pickup
79
+ - :convention_delivery
80
+ - :convention_pickup
81
+ - :customs_brokerage
82
+ - :driver_assist
83
+ - :early_morning_delivery
84
+ - :fair_delivery
85
+ - :fair_pickup
86
+ - :flatbed_delivery
87
+ - :flatbed_pickup
88
+ - :government_delivery
89
+ - :government_pickup
90
+ - :grocery_warehouse_delivery
91
+ - :grocery_warehouse_pickup
92
+ - :guaranteed_delivery_am
93
+ - :guaranteed_delivery_pm
94
+ - :guaranteed_delivery
95
+ - :inspection_site_delivery
96
+ - :inspection_site_pickup
97
+ - :utility_site_delivery
98
+ - :utility_site_pickup
99
+ - :winery_delivery
100
+ - :winery_pickup
101
+ :api:
102
+ :actions:
103
+ :rates: :get_rates
104
+ :track: :get_tracking
105
+ :domain: www.godependable.com
106
+ :endpoints:
107
+ :rates: /services/rates.asmx?WSDL
108
+ :track: /services/track.asmx?WSDL
109
+ :use_ssl:
110
+ :rates: false
111
+ :attributes:
112
+ :rates:
113
+ :with_excessive_length_fees: true
114
+ :events:
115
+ :types:
116
+ :arrived_at_terminal: linehaul arrived
117
+ :delivered: completed. signed by # "delivery" used often to mean arrived at terminal
118
+ :departed: linehaul departed
119
+ :out_for_delivery: out for delivery
120
+ :trailer_closed: terminal load
121
+ :trailer_unloaded: terminal unload
122
+ :services:
123
+ :types:
124
+ - :standard
@@ -0,0 +1,115 @@
1
+ :accessorials:
2
+ :mappable:
3
+ :airport_delivery: LADAIRP
4
+ :airport_pickup: LAPAIRP
5
+ :amusement_park_delivery: LADFAIR
6
+ :amusement_park_pickup: LAPFAIR
7
+ :appointment_delivery: APPT
8
+ :athletic_facility_delivery: LADRECR
9
+ :athletic_facility_pickup: LAPRECR
10
+ :brewery_delivery: LADWINE
11
+ :brewery_pickup: LAPWINE
12
+ :church_delivery: LADCHUR
13
+ :church_pickup: LAPCHUR
14
+ :construction_delivery: CONSL
15
+ :construction_pickup: LAPCONS
16
+ :convention_delivery: CONV1
17
+ :convention_pickup: CONV2
18
+ :fair_delivery: LADFAIR
19
+ :fair_pickup: LAPFAIR
20
+ :farm_delivery: LADFARM
21
+ :farm_pickup: LAPFARM
22
+ :fitness_center_delivery: LADRECR
23
+ :fitness_center_pickup: LAPRECR
24
+ :golf_course_delivery: LADGOLF
25
+ :golf_course_pickup: LAPGOLF
26
+ :government_delivery: LADGOVE
27
+ :government_pickup: LAPGOVE
28
+ :grocery_warehouse_delivery: LADGROC
29
+ :grocery_warehouse_pickup: LAPGROC
30
+ :guaranteed_delivery_am: GSAM
31
+ :guaranteed_delivery_pm: GSPM
32
+ :guaranteed_delivery: GLTL
33
+ :hospital_delivery: LADHOSP
34
+ :hospital_pickup: LAPHOSP
35
+ :hotel_delivery: LADRESO
36
+ :hotel_pickup: LAPRESO
37
+ :inside_delivery: IDL
38
+ :inside_pickup: IPU
39
+ :inspection_site_delivery: LADINSP
40
+ :inspection_site_pickup: LAPINSP
41
+ :jobsite_delivery: LADCONS
42
+ :jobsite_pickup: LAPCONS
43
+ :liftgate_delivery: LG1
44
+ :liftgate_pickup: LG2
45
+ :mall_delivery: LADMALL
46
+ :mall_pickup: LAPMALL
47
+ :military_site_delivery: LADMILI
48
+ :military_site_pickup: LAPMILI
49
+ :mine_site_delivery: LADMINE
50
+ :mine_site_pickup: LAPMINE
51
+ :motel_delivery: LADRESO
52
+ :motel_pickup: LAPRESO
53
+ :nursing_home_delivery: LADNURS
54
+ :nursing_home_pickup: LAPNURS
55
+ :park_delivery: LADPARK
56
+ :park_pickup: LAPPARK
57
+ :prison_delivery: LADPRIS
58
+ :prison_pickup: LAPPRIS
59
+ :ranch_delivery: LADRANC
60
+ :ranch_pickup: LAPRANC
61
+ :reservation_delivery: LADRESE
62
+ :reservation_pickup: LAPRESE
63
+ :residential_delivery: RES1
64
+ :residential_pickup: RES2
65
+ :resort_delivery: LADRESO
66
+ :resort_pickup: LAPRESO
67
+ :restaurant_delivery: LADREST
68
+ :restaurant_pickup: LAPREST
69
+ :school_delivery: LADSCHO
70
+ :school_pickup: LAPSCHO
71
+ :steel_mill_delivery: LADSTEE
72
+ :steel_mill_pickup: LAPSTEE
73
+ :storage_facility_delivery: LADMINI
74
+ :storage_facility_pickup: LAPMINI
75
+ :university_delivery: LADSCHO
76
+ :university_pickup: LAPSCHO
77
+ :utility_site_delivery: LADUTLI
78
+ :utility_site_pickup: LAPUTLI
79
+ :winery_delivery: LADWINE
80
+ :winery_pickup: LAPWINE
81
+ # May be inaccurate
82
+ :unquotable:
83
+ - :afterhours_delivery
84
+ - :afterhours_pickup
85
+ - :cemetery_delivery
86
+ - :cemetery_pickup
87
+ - :dock_dropoff
88
+ - :dock_pickup
89
+ - :grocery_store_delivery
90
+ - :grocery_store_pickup
91
+ # May be inaccurate
92
+ :unserviceable:
93
+ - :appointment_pickup
94
+ - :customs_brokerage
95
+ - :early_morning_delivery
96
+ - :early_morning_pickup
97
+ - :flatbed_delivery
98
+ - :flatbed_pickup
99
+ - :marina_delivery
100
+ - :marina_pickup
101
+ :api:
102
+ :domains:
103
+ :pod: rrd.mercurygate.net
104
+ :quote: dlsworldwideproxy.rrd.com
105
+ :endpoints:
106
+ :pod: /MercuryGate/login/mgLogin.jsp?inline=true
107
+ :quote: /services/api/v1/RateShop/RateRequest
108
+ :methods:
109
+ :quote: :post
110
+ :use_ssl:
111
+ :pod: true
112
+ :quote: true
113
+ :attributes:
114
+ :rates:
115
+ :with_excessive_length_fees: true