stbaldricks 1.5.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/lib/stbaldricks.rb +2 -0
  4. data/lib/stbaldricks/api.rb +7 -0
  5. data/lib/stbaldricks/api_connector.rb +47 -0
  6. data/lib/stbaldricks/client.rb +7 -0
  7. data/lib/stbaldricks/configuration.rb +47 -0
  8. data/lib/stbaldricks/default_logger.rb +24 -0
  9. data/lib/stbaldricks/endpoints/communicate.rb +67 -0
  10. data/lib/stbaldricks/endpoints/config.rb +18 -0
  11. data/lib/stbaldricks/endpoints/contact.rb +12 -0
  12. data/lib/stbaldricks/endpoints/event.rb +39 -0
  13. data/lib/stbaldricks/endpoints/event_application.rb +32 -0
  14. data/lib/stbaldricks/endpoints/fund.rb +24 -0
  15. data/lib/stbaldricks/endpoints/kid.rb +24 -0
  16. data/lib/stbaldricks/endpoints/kid_honor.rb +17 -0
  17. data/lib/stbaldricks/endpoints/lib/entity.rb +247 -0
  18. data/lib/stbaldricks/endpoints/message.rb +27 -0
  19. data/lib/stbaldricks/endpoints/newsletter_recipient.rb +41 -0
  20. data/lib/stbaldricks/endpoints/participant.rb +66 -0
  21. data/lib/stbaldricks/endpoints/photo.rb +51 -0
  22. data/lib/stbaldricks/endpoints/recurring_gift.rb +18 -0
  23. data/lib/stbaldricks/endpoints/search.rb +63 -0
  24. data/lib/stbaldricks/endpoints/shave_schedule.rb +28 -0
  25. data/lib/stbaldricks/endpoints/user.rb +106 -0
  26. data/lib/stbaldricks/entities/batch.rb +29 -0
  27. data/lib/stbaldricks/entities/campaign.rb +37 -0
  28. data/lib/stbaldricks/entities/communicate.rb +20 -0
  29. data/lib/stbaldricks/entities/config.rb +41 -0
  30. data/lib/stbaldricks/entities/contact.rb +40 -0
  31. data/lib/stbaldricks/entities/contact_group.rb +29 -0
  32. data/lib/stbaldricks/entities/document_library.rb +19 -0
  33. data/lib/stbaldricks/entities/document_library_category.rb +14 -0
  34. data/lib/stbaldricks/entities/donation.rb +372 -0
  35. data/lib/stbaldricks/entities/donation/donor_type.rb +13 -0
  36. data/lib/stbaldricks/entities/donation/how_created.rb +22 -0
  37. data/lib/stbaldricks/entities/donation/payment_type.rb +17 -0
  38. data/lib/stbaldricks/entities/donation/promo_code.rb +22 -0
  39. data/lib/stbaldricks/entities/donation/recipient_type.rb +17 -0
  40. data/lib/stbaldricks/entities/donation/special_donation_type.rb +78 -0
  41. data/lib/stbaldricks/entities/donation/status.rb +12 -0
  42. data/lib/stbaldricks/entities/donation/submitter_type.rb +13 -0
  43. data/lib/stbaldricks/entities/donor.rb +15 -0
  44. data/lib/stbaldricks/entities/event.rb +173 -0
  45. data/lib/stbaldricks/entities/event/fund_relationship_type.rb +15 -0
  46. data/lib/stbaldricks/entities/event/how_created.rb +14 -0
  47. data/lib/stbaldricks/entities/event/promo_code.rb +11 -0
  48. data/lib/stbaldricks/entities/event/status.rb +13 -0
  49. data/lib/stbaldricks/entities/event/sub_type.rb +16 -0
  50. data/lib/stbaldricks/entities/event/type.rb +12 -0
  51. data/lib/stbaldricks/entities/event_application.rb +135 -0
  52. data/lib/stbaldricks/entities/event_application/model_type.rb +15 -0
  53. data/lib/stbaldricks/entities/event_application/status.rb +23 -0
  54. data/lib/stbaldricks/entities/event_donation_summary.rb +18 -0
  55. data/lib/stbaldricks/entities/event_participant_summary.rb +17 -0
  56. data/lib/stbaldricks/entities/event_supporter.rb +24 -0
  57. data/lib/stbaldricks/entities/fund.rb +98 -0
  58. data/lib/stbaldricks/entities/fundraiser.rb +124 -0
  59. data/lib/stbaldricks/entities/international_partner.rb +58 -0
  60. data/lib/stbaldricks/entities/kid.rb +190 -0
  61. data/lib/stbaldricks/entities/kid_honor.rb +123 -0
  62. data/lib/stbaldricks/entities/lib/address.rb +25 -0
  63. data/lib/stbaldricks/entities/lib/base.rb +505 -0
  64. data/lib/stbaldricks/entities/lib/cacheable.rb +43 -0
  65. data/lib/stbaldricks/entities/lib/default_cacheable.rb +17 -0
  66. data/lib/stbaldricks/entities/lib/email_address.rb +15 -0
  67. data/lib/stbaldricks/entities/lib/error.rb +38 -0
  68. data/lib/stbaldricks/entities/lib/fundraising_page.rb +20 -0
  69. data/lib/stbaldricks/entities/lib/geo_location.rb +9 -0
  70. data/lib/stbaldricks/entities/lib/location.rb +27 -0
  71. data/lib/stbaldricks/entities/lib/name.rb +17 -0
  72. data/lib/stbaldricks/entities/lib/not_implemented_object.rb +32 -0
  73. data/lib/stbaldricks/entities/lib/opt_out_settings.rb +21 -0
  74. data/lib/stbaldricks/entities/lib/payment.rb +86 -0
  75. data/lib/stbaldricks/entities/lib/permissions.rb +33 -0
  76. data/lib/stbaldricks/entities/lib/phone.rb +29 -0
  77. data/lib/stbaldricks/entities/lib/third_party_media.rb +20 -0
  78. data/lib/stbaldricks/entities/lib/top_level.rb +99 -0
  79. data/lib/stbaldricks/entities/lib/venue.rb +18 -0
  80. data/lib/stbaldricks/entities/memorial.rb +61 -0
  81. data/lib/stbaldricks/entities/message.rb +65 -0
  82. data/lib/stbaldricks/entities/newsletter_recipient.rb +17 -0
  83. data/lib/stbaldricks/entities/organization.rb +90 -0
  84. data/lib/stbaldricks/entities/page.rb +49 -0
  85. data/lib/stbaldricks/entities/participant.rb +216 -0
  86. data/lib/stbaldricks/entities/person.rb +403 -0
  87. data/lib/stbaldricks/entities/photo.rb +260 -0
  88. data/lib/stbaldricks/entities/recurring_gift.rb +215 -0
  89. data/lib/stbaldricks/entities/response.rb +37 -0
  90. data/lib/stbaldricks/entities/search.rb +223 -0
  91. data/lib/stbaldricks/entities/section.rb +15 -0
  92. data/lib/stbaldricks/entities/shave_schedule.rb +69 -0
  93. data/lib/stbaldricks/entities/summary.rb +32 -0
  94. data/lib/stbaldricks/entities/team.rb +95 -0
  95. data/lib/stbaldricks/entities/user.rb +76 -0
  96. data/lib/stbaldricks/enums/country.rb +223 -0
  97. data/lib/stbaldricks/enums/feature.rb +29 -0
  98. data/lib/stbaldricks/enums/league_status.rb +16 -0
  99. data/lib/stbaldricks/enums/model_type.rb +39 -0
  100. data/lib/stbaldricks/enums/permission.rb +223 -0
  101. data/lib/stbaldricks/enums/permission_model_type.rb +21 -0
  102. data/lib/stbaldricks/enums/province.rb +39 -0
  103. data/lib/stbaldricks/enums/state.rb +137 -0
  104. data/lib/stbaldricks/enums/top_level_category_type.rb +25 -0
  105. data/lib/stbaldricks/errors.rb +18 -0
  106. data/lib/stbaldricks/log.rb +16 -0
  107. data/lib/stbaldricks/patches/array.rb +6 -0
  108. data/lib/stbaldricks/patches/boolean.rb +25 -0
  109. data/lib/stbaldricks/patches/class.rb +13 -0
  110. data/lib/stbaldricks/patches/float.rb +9 -0
  111. data/lib/stbaldricks/patches/hash.rb +16 -0
  112. data/lib/stbaldricks/patches/integer.rb +9 -0
  113. data/lib/stbaldricks/patches/nil.rb +25 -0
  114. data/lib/stbaldricks/patches/string.rb +54 -0
  115. data/lib/stbaldricks/request.rb +146 -0
  116. data/lib/stbaldricks/version.rb +5 -0
  117. metadata +215 -0
@@ -0,0 +1,29 @@
1
+ module SBF
2
+ module Client
3
+ module Feature
4
+ # Features added to this enum list will be toggleable by sbf users with a members account
5
+ # This allows users to opt in or out of specific features which is useful when rolling out a large new feature gradually to ensure the
6
+ # new feature is stable and user's are able to acclimate gradually to a new interface.
7
+ # When a feature is fully rolled out the data for the feature should be cleared from the rollout db and the enum removed.
8
+ # Only add features here if you intend to allow users a choice.
9
+
10
+ # EXAMPLE_FEATURE = 'the_rollout_feature_name'
11
+
12
+ @list = {
13
+ # EXAMPLE_FEATURE => :the_rollout_feature_name
14
+ }.freeze
15
+
16
+ @descriptions = {
17
+ # EXAMPLE_FEATURE => "The description of the feature which displays on the user's settings page"
18
+ }.freeze
19
+
20
+ def self.description(feature)
21
+ @descriptions[feature]
22
+ end
23
+
24
+ class << self
25
+ attr_reader :list
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,16 @@
1
+ module SBF
2
+ module Client
3
+ module LeagueStatus
4
+ NOT_APPLICABLE = 'not_applicable'
5
+ SQUIRE = 'squire'
6
+ KNIGHT = 'knight'
7
+ KNIGHT_COMMANDER = 'knight_commander'
8
+ CRUSADER = 'crusader'
9
+
10
+ # Modifying this array has a direct affect the person entity and its league status methods
11
+ def self.to_a
12
+ [NOT_APPLICABLE, SQUIRE, KNIGHT, KNIGHT_COMMANDER, CRUSADER]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,39 @@
1
+ module SBF
2
+ module Client
3
+ module ModelType
4
+ CAMPAIGN = 'c'
5
+ EVENT = 'e'
6
+ EVENT_APPLICATION = 'ea'
7
+ EVENT_SUPPORTER = 'es'
8
+ FUND = 'f'
9
+ FUNDRAISER = 'fr'
10
+ KID = 'k'
11
+ MEMORIAL = 'me'
12
+ PARTICIPANT = 'p'
13
+ PROFILE = 'pr'
14
+ TEAM = 't'
15
+ USER = 'u'
16
+ RECURRING_GIFT = 'r'
17
+
18
+ @list = {
19
+ CAMPAIGN => 'campaign',
20
+ EVENT => 'event',
21
+ EVENT_APPLICATION => 'event_application',
22
+ EVENT_SUPPORTER => 'event_supporter',
23
+ FUND => 'fund',
24
+ FUNDRAISER => 'fundraiser',
25
+ KID => 'kid',
26
+ MEMORIAL => 'memorial',
27
+ PARTICIPANT => 'participant',
28
+ PROFILE => 'profile',
29
+ TEAM => 'team',
30
+ USER => 'user',
31
+ RECURRING_GIFT => 'recurring_gift'
32
+ }.freeze
33
+
34
+ class << self
35
+ attr_reader :list
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,223 @@
1
+ module SBF
2
+ module Client
3
+ module Permission
4
+ PUBLIC_ACCESS = 3
5
+ ADMIN = 1
6
+ MEMBERS = 2
7
+ REGISTRATION = 4
8
+
9
+ MANAGE_USERS = 101
10
+ ADD_USERS = 102
11
+ DELETE_USERS = 103
12
+ EDIT_USERS = 104
13
+
14
+ MANAGE_GROUPS = 108
15
+ ADD_GROUPS = 105
16
+ DELETE_GROUPS = 106
17
+ EDIT_GROUPS = 107
18
+
19
+ MANAGE_SYSTEM = 109
20
+
21
+ #Event permissions
22
+ EVENT_MANAGE = 200
23
+ EVENT_MANAGE_INFO = 201
24
+ EVENT_MANAGE_ACTIVITIES = 202
25
+ EVENT_ADD_ACTIVITIES = 203
26
+ EVENT_DELETE_ACTIVITIES = 204
27
+ EVENT_MANAGE_PHOTOS = 205
28
+ EVENT_ADD_PHOTOS = 206
29
+ EVENT_DELETE_PHOTOS = 207
30
+ EVENT_MANAGE_SUPPORTERS = 208
31
+ EVENT_ADD_SUPPORTERS = 209
32
+ EVENT_DELETE_SUPPORTERS = 210
33
+ EVENT_MANAGE_PARTICIPANTS = 211
34
+ EVENT_MANAGE_VOLUNTEERS = 212
35
+ EVENT_MANAGE_KIDS = 213
36
+ EVENT_ADD_KID = 214
37
+ EVENT_DELETE_KID = 215
38
+ EVENT_VIEW_DONATIONS = 216
39
+ EVENT_CASH_DONATIONS = 217
40
+ EVENT_MATERIALS = 218
41
+ EVENT_MASS_PASSWORD_RESET = 219
42
+ EVENT_FAST_REGISTRATION = 220
43
+ EVENT_DELETE_EVENT = 221
44
+
45
+ #text descriptions found in LookupUtility
46
+ EVENT_MEMBER_UPDATE_EVENT_INFORMATION = 300
47
+ EVENT_MEMBER_ACTIVITIES = 301
48
+ EVENT_MEMBER_PHOTO_GALLERY = 302
49
+ EVENT_MEMBER_SUPPORTERS = 303
50
+ EVENT_MEMBER_MANAGE_VOLUNTEERS_AND_ORGANIZERS = 305
51
+ EVENT_MEMBER_MANAGE_HONORED_KIDS_WITH_CANCER = 306
52
+ EVENT_MEMBER_VIEW_FUNDRAISING_REPORTS = 307
53
+ EVENT_MEMBER_DOWNLOAD_EVENT_PLANNING_MATERIALS = 308
54
+ EVENT_MEMBER_VIEW_PARTICIPANT_CONTACT_LIST = 309
55
+ EVENT_MEMBER_MANAGE_PARTICIPANT_ROLES = 310
56
+ EVENT_MEMBER_MANAGE_PARTICIPANT_PHOTOS = 311
57
+ EVENT_MEMBER_MANAGE_PARTICIPANT_PERMISSIONS = 312
58
+ EVENT_MEMBER_SUBMIT_CASH_DONATIONS = 313
59
+ EVENT_MEMBER_VIEW_TEAM_TOTALS_LIST = 314
60
+ EVENT_MEMBER_COMMUNICATE = 315
61
+ EVENT_MEMBER_FAST_DONATION = 316
62
+
63
+ #Participant Role Permissions
64
+ EVENT_ORGANIZER = 1905
65
+ EVENT_BARBER_COORDINATOR = 1911
66
+
67
+ MOVE_PARTICIPANT_TO_NEW_PROFILE = 1912
68
+
69
+ COACH_MANAGE = 401
70
+
71
+ DONATION_VIEW = 501
72
+
73
+ DONATION_EDIT = 502
74
+
75
+ FIRESPRING_EMPLOYEE = 666
76
+
77
+ EVENT_SUPPLY_ORDER_MANAGE = 701
78
+
79
+ VIEW_EVENT_SUPPLY_ORDERS = 702
80
+
81
+ KID_MANAGE = 801
82
+
83
+ PARTICIPANT_MANAGE = 901
84
+
85
+ PROFILE_MANAGE = 1001
86
+
87
+ TEAM_MANAGE = 1101
88
+
89
+ DEDUPLICATOR_MANAGE = 1201
90
+
91
+ DOCUMENT_LIBRARY_MANAGE = 1501
92
+
93
+ FEEDBACK_MANAGE = 1601
94
+
95
+ MESSAGES_MANAGE = 1701
96
+
97
+ MANAGE_MEDIA_MANAGER = 1801
98
+ CONTENT_MANAGE = 2203
99
+
100
+ TRIGGER_MANAGE = 2001
101
+ TRIGGER_DELETE = 2002
102
+ TRIGGER_EDIT = 2003
103
+ TRIGGER_ADD = 2004
104
+
105
+ INTERNATIONAL_PARTNER_MANAGE = 2301
106
+
107
+ GRANTS_MANAGE = 2601
108
+ GRANTS_VIEW = 2602
109
+
110
+ CAMPAIGNS_MANAGE = 2701
111
+
112
+ FUNDS_MANAGE = 2801
113
+
114
+ FUNDRAISER_MANAGE = 2901
115
+ FUNDRAISER_DELETE_FUNDRAISER = 2902
116
+
117
+ EVENT_APPLICATION_MANAGE = 2202
118
+
119
+ #Team Permissions
120
+ TEAM_TEAM_CAPTAIN = 2101
121
+
122
+ # Memorial Permissions
123
+ MEMORIAL_VIEW = 3001
124
+ MEMORIAL_MANAGE = 3002
125
+
126
+ @list = {
127
+ PUBLIC_ACCESS => :PUBLIC_ACCESS,
128
+ ADMIN => :ADMIN,
129
+ MEMBERS => :MEMBERS,
130
+ REGISTRATION => :REGISTRATION,
131
+ MANAGE_USERS => :MANAGE_USERS,
132
+ ADD_USERS => :ADD_USERS,
133
+ DELETE_USERS => :DELETE_USERS,
134
+ EDIT_USERS => :EDIT_USERS,
135
+ MANAGE_GROUPS => :MANAGE_GROUPS,
136
+ ADD_GROUPS => :ADD_GROUPS,
137
+ DELETE_GROUPS => :DELETE_GROUPS,
138
+ EDIT_GROUPS => :EDIT_GROUPS,
139
+ MANAGE_SYSTEM => :MANAGE_SYSTEM,
140
+ #Event permissions
141
+ EVENT_MANAGE => :EVENT_MANAGE,
142
+ EVENT_MANAGE_INFO => :EVENT_MANAGE_INFO,
143
+ EVENT_MANAGE_ACTIVITIES => :EVENT_MANAGE_ACTIVITIES,
144
+ EVENT_ADD_ACTIVITIES => :EVENT_ADD_ACTIVITIES,
145
+ EVENT_DELETE_ACTIVITIES => :EVENT_DELETE_ACTIVITIES,
146
+ EVENT_MANAGE_PHOTOS => :EVENT_MANAGE_PHOTOS,
147
+ EVENT_ADD_PHOTOS => :EVENT_ADD_PHOTOS,
148
+ EVENT_DELETE_PHOTOS => :EVENT_DELETE_PHOTOS,
149
+ EVENT_MANAGE_SUPPORTERS => :EVENT_MANAGE_SUPPORTERS,
150
+ EVENT_ADD_SUPPORTERS => :EVENT_ADD_SUPPORTERS,
151
+ EVENT_DELETE_SUPPORTERS => :EVENT_DELETE_SUPPORTERS,
152
+ EVENT_MANAGE_PARTICIPANTS => :EVENT_MANAGE_PARTICIPANTS,
153
+ EVENT_MANAGE_VOLUNTEERS => :EVENT_MANAGE_VOLUNTEERS,
154
+ EVENT_MANAGE_KIDS => :EVENT_MANAGE_KIDS,
155
+ EVENT_ADD_KID => :EVENT_ADD_KID,
156
+ EVENT_DELETE_KID => :EVENT_DELETE_KID,
157
+ EVENT_VIEW_DONATIONS => :EVENT_VIEW_DONATIONS,
158
+ EVENT_CASH_DONATIONS => :EVENT_CASH_DONATIONS,
159
+ EVENT_MATERIALS => :EVENT_MATERIALS,
160
+ EVENT_MASS_PASSWORD_RESET => :EVENT_MASS_PASSWORD_RESET,
161
+ EVENT_FAST_REGISTRATION => :EVENT_FAST_REGISTRATION,
162
+ EVENT_DELETE_EVENT => :EVENT_DELETE_EVENT,
163
+ EVENT_MEMBER_UPDATE_EVENT_INFORMATION => :EVENT_MEMBER_UPDATE_EVENT_INFORMATION,
164
+ EVENT_MEMBER_ACTIVITIES => :EVENT_MEMBER_ACTIVITIES,
165
+ EVENT_MEMBER_PHOTO_GALLERY => :EVENT_MEMBER_PHOTO_GALLERY,
166
+ EVENT_MEMBER_SUPPORTERS => :EVENT_MEMBER_SUPPORTERS,
167
+ EVENT_MEMBER_MANAGE_VOLUNTEERS_AND_ORGANIZERS => :EVENT_MEMBER_MANAGE_VOLUNTEERS_AND_ORGANIZERS,
168
+ EVENT_MEMBER_MANAGE_HONORED_KIDS_WITH_CANCER => :EVENT_MEMBER_MANAGE_HONORED_KIDS_WITH_CANCER,
169
+ EVENT_MEMBER_VIEW_FUNDRAISING_REPORTS => :EVENT_MEMBER_VIEW_FUNDRAISING_REPORTS,
170
+ EVENT_MEMBER_DOWNLOAD_EVENT_PLANNING_MATERIALS => :EVENT_MEMBER_DOWNLOAD_EVENT_PLANNING_MATERIALS,
171
+ EVENT_MEMBER_VIEW_PARTICIPANT_CONTACT_LIST => :EVENT_MEMBER_VIEW_PARTICIPANT_CONTACT_LIST,
172
+ EVENT_MEMBER_MANAGE_PARTICIPANT_ROLES => :EVENT_MEMBER_MANAGE_PARTICIPANT_ROLES,
173
+ EVENT_MEMBER_MANAGE_PARTICIPANT_PHOTOS => :EVENT_MEMBER_MANAGE_PARTICIPANT_PHOTOS,
174
+ EVENT_MEMBER_MANAGE_PARTICIPANT_PERMISSIONS => :EVENT_MEMBER_MANAGE_PARTICIPANT_PERMISSIONS,
175
+ EVENT_MEMBER_SUBMIT_CASH_DONATIONS => :EVENT_MEMBER_SUBMIT_CASH_DONATIONS,
176
+ EVENT_MEMBER_VIEW_TEAM_TOTALS_LIST => :EVENT_MEMBER_VIEW_TEAM_TOTALS_LIST,
177
+ EVENT_MEMBER_COMMUNICATE => :EVENT_MEMBER_COMMUNICATE,
178
+ EVENT_MEMBER_FAST_DONATION => :EVENT_MEMBER_FAST_DONATION,
179
+ #Participant Role Permissions
180
+ EVENT_ORGANIZER => :EVENT_ORGANIZER,
181
+ EVENT_BARBER_COORDINATOR => :EVENT_BARBER_COORDINATOR,
182
+ MOVE_PARTICIPANT_TO_NEW_PROFILE => :MOVE_PARTICIPANT_TO_NEW_PROFILE,
183
+ COACH_MANAGE => :COACH_MANAGE,
184
+ DONATION_VIEW => :DONATION_VIEW,
185
+ DONATION_EDIT => :DONATION_EDIT,
186
+ FIRESPRING_EMPLOYEE => :FIRESPRING_EMPLOYEE,
187
+ EVENT_SUPPLY_ORDER_MANAGE => :EVENT_SUPPLY_ORDER_MANAGE,
188
+ VIEW_EVENT_SUPPLY_ORDERS => :VIEW_EVENT_SUPPLY_ORDERS,
189
+ KID_MANAGE => :KID_MANAGE,
190
+ PARTICIPANT_MANAGE => :PARTICIPANT_MANAGE,
191
+ PROFILE_MANAGE => :PROFILE_MANAGE,
192
+ TEAM_MANAGE => :TEAM_MANAGE,
193
+ DEDUPLICATOR_MANAGE => :DEDUPLICATOR_MANAGE,
194
+ DOCUMENT_LIBRARY_MANAGE => :DOCUMENT_LIBRARY_MANAGE,
195
+ FEEDBACK_MANAGE => :FEEDBACK_MANAGE,
196
+ MESSAGES_MANAGE => :MESSAGES_MANAGE,
197
+ MANAGE_MEDIA_MANAGER => :MANAGE_MEDIA_MANAGER,
198
+ CONTENT_MANAGE => :CONTENT_MANAGE,
199
+ TRIGGER_MANAGE => :TRIGGER_MANAGE,
200
+ TRIGGER_DELETE => :TRIGGER_DELETE,
201
+ TRIGGER_EDIT => :TRIGGER_EDIT,
202
+ TRIGGER_ADD => :TRIGGER_ADD,
203
+ INTERNATIONAL_PARTNER_MANAGE => :INTERNATIONAL_PARTNER_MANAGE,
204
+ GRANTS_MANAGE => :GRANTS_MANAGE,
205
+ GRANTS_VIEW => :GRANTS_VIEW,
206
+ CAMPAIGNS_MANAGE => :CAMPAIGNS_MANAGE,
207
+ FUNDS_MANAGE => :FUNDS_MANAGE,
208
+ FUNDRAISER_MANAGE => :FUNDRAISER_MANAGE,
209
+ FUNDRAISER_DELETE_FUNDRAISER => :FUNDRAISER_DELETE_FUNDRAISER,
210
+ EVENT_APPLICATION_MANAGE => :EVENT_APPLICATION_MANAGE,
211
+ #Team Permissions
212
+ TEAM_TEAM_CAPTAIN => :TEAM_TEAM_CAPTAIN,
213
+ #Memorial Permissions
214
+ MEMORIAL_VIEW => :MEMORIAL_VIEW,
215
+ MEMORIAL_MANAGE => :MEMORIAL_MANAGE
216
+ }.freeze
217
+
218
+ class << self
219
+ attr_reader :list
220
+ end
221
+ end
222
+ end
223
+ end
@@ -0,0 +1,21 @@
1
+ module SBF
2
+ module Client
3
+ module PermissionModelType
4
+ NO_TARGET = 'n'
5
+ MEMBERS = 'm'
6
+ EVENT = 'e'
7
+ TEAM = 't'
8
+
9
+ @list = {
10
+ NO_TARGET => 'no_target',
11
+ MEMBERS => 'members',
12
+ EVENT => 'event',
13
+ TEAM => 'team'
14
+ }.freeze
15
+
16
+ class << self
17
+ attr_reader :list
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,39 @@
1
+ module SBF
2
+ module Client
3
+ module Province
4
+ ALBERTA = 'Alberta'
5
+ BRITISH_COLUMBIA = 'British Columbia'
6
+ MANITOBA = 'Manitoba'
7
+ NEW_BRUNSWICK = 'New Brunswick'
8
+ NEWFOUNDLAND = 'Newfoundland and Labrador'
9
+ NORTHWEST_TERRITORIES = 'Northwest Territories'
10
+ NOVA_SCOTIA = 'Nova Scotia'
11
+ NUNAVUT = 'Nunavut'
12
+ ONTARIO = 'Ontario'
13
+ PRINCE_EDWARD_ISLAND = 'Prince Edward Island'
14
+ QUEBEC = 'Quebec'
15
+ SASKATCHEWAN = 'Saskatchewan'
16
+ YUKON = 'Yukon'
17
+
18
+ @list = {
19
+ ALBERTA => 'AB',
20
+ BRITISH_COLUMBIA => 'BC',
21
+ MANITOBA => 'MB',
22
+ NEW_BRUNSWICK => 'NB',
23
+ NEWFOUNDLAND => 'NL',
24
+ NORTHWEST_TERRITORIES => 'NT',
25
+ NOVA_SCOTIA => 'NS',
26
+ NUNAVUT => 'NU',
27
+ ONTARIO => 'ON',
28
+ PRINCE_EDWARD_ISLAND => 'PE',
29
+ QUEBEC => 'QC',
30
+ SASKATCHEWAN => 'SK',
31
+ YUKON => 'YT'
32
+ }.freeze
33
+
34
+ class << self
35
+ attr_reader :list
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,137 @@
1
+ module SBF
2
+ module Client
3
+ module State
4
+ ALABAMA = 'Alabama'
5
+ ALASKA = 'Alaska'
6
+ AMERICAN_SAMOA = 'American Samoa'
7
+ ARIZONA = 'Arizona'
8
+ ARKANSAS = 'Arkansas'
9
+ ARMED_FORCES_AMERICAS = 'Armed Forces Americas'
10
+ ARMED_FORCES_CANADA = 'Armed Forces Africa/Canada/Europe/Middle East'
11
+ ARMED_FORCES_PACIFIC = 'Armed Forces Pacific'
12
+ CALIFORNIA = 'California'
13
+ COLORADO = 'Colorado'
14
+ CONNECTICUT = 'Connecticut'
15
+ DELAWARE = 'Delaware'
16
+ WASHINGTON_DC = 'D.C.'
17
+ MICRONESIA = 'Federated States of Micronesia'
18
+ FLORIDA = 'Florida'
19
+ GEORGIA = 'Georgia'
20
+ GUAM = 'Guam'
21
+ HAWAII = 'Hawaii'
22
+ IDAHO = 'Idaho'
23
+ ILLINOIS = 'Illinois'
24
+ INDIANA = 'Indiana'
25
+ IOWA = 'Iowa'
26
+ KANSAS = 'Kansas'
27
+ KENTUCKY = 'Kentucky'
28
+ LOUISIANA = 'Louisiana'
29
+ MAINE = 'Maine'
30
+ MARSHALL_ISLANDS = 'Marshall Islands'
31
+ MARYLAND = 'Maryland'
32
+ MASSACHUSETTS = 'Massachusetts'
33
+ MICHIGAN = 'Michigan'
34
+ MINNESOTA = 'Minnesota'
35
+ MISSISSIPPI = 'Mississippi'
36
+ MISSOURI = 'Missouri'
37
+ MONTANA = 'Montana'
38
+ NEBRASKA = 'Nebraska'
39
+ NEVADA = 'Nevada'
40
+ NEW_HAMPSHIRE = 'New Hampshire'
41
+ NEW_JERSEY = 'New Jersey'
42
+ NEW_MEXICO = 'New Mexico'
43
+ NEW_YORK = 'New York'
44
+ NORTH_CAROLINA = 'North Carolina'
45
+ NORTH_DAKOTA = 'North Dakota'
46
+ NORTHERN_MARINA_ISLANDS = 'Northern Marina Islands'
47
+ OHIO = 'Ohio'
48
+ OKLAHOMA = 'Oklahoma'
49
+ OREGON = 'Oregon'
50
+ PALAU = 'Palau'
51
+ PENNSYLVANIA = 'Pennsylvania'
52
+ PUERTO_RICO = 'Puerto Rico'
53
+ RHODE_ISLAND = 'Rhode Island'
54
+ SOUTH_CAROLINA = 'South Carolina'
55
+ SOUTH_DAKOTA = 'South Dakota'
56
+ TENNESSEE = 'Tennessee'
57
+ TEXAS = 'Texas'
58
+ UTAH = 'Utah'
59
+ VERMONT = 'Vermont'
60
+ VIRGIN_ISLANDS = 'Virgin Islands'
61
+ VIRGINIA = 'Virginia'
62
+ WASHINGTON = 'Washington'
63
+ WEST_VIRGINIA = 'West Virginia'
64
+ WICONSIN = 'Wisconsin'
65
+ WYOMING = 'Wyoming'
66
+
67
+ @list = {
68
+ ALABAMA => 'AL',
69
+ ALASKA => 'AK',
70
+ AMERICAN_SAMOA => 'AS',
71
+ ARIZONA => 'AZ',
72
+ ARKANSAS => 'AR',
73
+ ARMED_FORCES_AMERICAS => 'AA',
74
+ ARMED_FORCES_CANADA => 'AE',
75
+ ARMED_FORCES_PACIFIC => 'AP',
76
+ CALIFORNIA => 'CA',
77
+ COLORADO => 'CO',
78
+ CONNECTICUT => 'CT',
79
+ DELAWARE => 'DE',
80
+ WASHINGTON_DC => 'DC',
81
+ MICRONESIA => 'FM',
82
+ FLORIDA => 'FL',
83
+ GEORGIA => 'GA',
84
+ GUAM => 'GU',
85
+ HAWAII => 'HI',
86
+ IDAHO => 'ID',
87
+ ILLINOIS => 'IL',
88
+ INDIANA => 'IN',
89
+ IOWA => 'IA',
90
+ KANSAS => 'KS',
91
+ KENTUCKY => 'KY',
92
+ LOUISIANA => 'LA',
93
+ MAINE => 'ME',
94
+ MARSHALL_ISLANDS => 'MH',
95
+ MARYLAND => 'MD',
96
+ MASSACHUSETTS => 'MA',
97
+ MICHIGAN => 'MI',
98
+ MINNESOTA => 'MN',
99
+ MISSISSIPPI => 'MS',
100
+ MISSOURI => 'MO',
101
+ MONTANA => 'MT',
102
+ NEBRASKA => 'NE',
103
+ NEVADA => 'NV',
104
+ NEW_HAMPSHIRE => 'NH',
105
+ NEW_JERSEY => 'NJ',
106
+ NEW_MEXICO => 'NM',
107
+ NEW_YORK => 'NY',
108
+ NORTH_CAROLINA => 'NC',
109
+ NORTH_DAKOTA => 'ND',
110
+ NORTHERN_MARINA_ISLANDS => 'MP',
111
+ OHIO => 'OH',
112
+ OKLAHOMA => 'OK',
113
+ OREGON => 'OR',
114
+ PALAU => 'PW',
115
+ PENNSYLVANIA => 'PA',
116
+ PUERTO_RICO => 'PR',
117
+ RHODE_ISLAND => 'RI',
118
+ SOUTH_CAROLINA => 'SC',
119
+ SOUTH_DAKOTA => 'SD',
120
+ TENNESSEE => 'TN',
121
+ TEXAS => 'TX',
122
+ UTAH => 'UT',
123
+ VERMONT => 'VT',
124
+ VIRGIN_ISLANDS => 'VI',
125
+ VIRGINIA => 'VA',
126
+ WASHINGTON => 'WA',
127
+ WEST_VIRGINIA => 'WV',
128
+ WICONSIN => 'WI',
129
+ WYOMING => 'WY'
130
+ }.freeze
131
+
132
+ class << self
133
+ attr_reader :list
134
+ end
135
+ end
136
+ end
137
+ end