stbaldricks 10.5.0 → 10.7.1

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stbaldricks/configuration.rb +1 -1
  3. data/lib/stbaldricks/endpoints/photo.rb +1 -3
  4. data/lib/stbaldricks/entities/batch.rb +2 -2
  5. data/lib/stbaldricks/entities/challenge.rb +4 -4
  6. data/lib/stbaldricks/entities/challenger.rb +2 -2
  7. data/lib/stbaldricks/entities/challenger/model_type.rb +2 -0
  8. data/lib/stbaldricks/entities/concerns/entity_response_concern.rb +2 -4
  9. data/lib/stbaldricks/entities/contact.rb +1 -1
  10. data/lib/stbaldricks/entities/deduplicator_match.rb +5 -5
  11. data/lib/stbaldricks/entities/donation.rb +3 -3
  12. data/lib/stbaldricks/entities/donation/donor_type.rb +2 -0
  13. data/lib/stbaldricks/entities/donation/how_created.rb +2 -0
  14. data/lib/stbaldricks/entities/donation/payment_gateway.rb +2 -0
  15. data/lib/stbaldricks/entities/donation/payment_type.rb +2 -0
  16. data/lib/stbaldricks/entities/donation/promo_code.rb +5 -3
  17. data/lib/stbaldricks/entities/donation/recipient_type.rb +2 -0
  18. data/lib/stbaldricks/entities/donation/special_donation_type.rb +2 -0
  19. data/lib/stbaldricks/entities/donation/status.rb +2 -0
  20. data/lib/stbaldricks/entities/donation/submitter_type.rb +2 -0
  21. data/lib/stbaldricks/entities/event.rb +9 -9
  22. data/lib/stbaldricks/entities/event/fund_relationship_type.rb +2 -0
  23. data/lib/stbaldricks/entities/event/how_created.rb +2 -0
  24. data/lib/stbaldricks/entities/event/promo_code.rb +2 -0
  25. data/lib/stbaldricks/entities/event/status.rb +2 -0
  26. data/lib/stbaldricks/entities/event/sub_type.rb +2 -0
  27. data/lib/stbaldricks/entities/event/type.rb +2 -0
  28. data/lib/stbaldricks/entities/event_application/model_type.rb +2 -0
  29. data/lib/stbaldricks/entities/event_application/status.rb +2 -0
  30. data/lib/stbaldricks/entities/fundraiser.rb +20 -20
  31. data/lib/stbaldricks/entities/international_partner.rb +2 -2
  32. data/lib/stbaldricks/entities/kid.rb +62 -62
  33. data/lib/stbaldricks/entities/kid_honor.rb +4 -4
  34. data/lib/stbaldricks/entities/lib/address.rb +2 -2
  35. data/lib/stbaldricks/entities/lib/alternate_shipping_address.rb +2 -2
  36. data/lib/stbaldricks/entities/lib/cacheable.rb +1 -3
  37. data/lib/stbaldricks/entities/lib/email_address.rb +2 -2
  38. data/lib/stbaldricks/entities/lib/fundraising_page.rb +1 -1
  39. data/lib/stbaldricks/entities/lib/payment.rb +14 -14
  40. data/lib/stbaldricks/entities/lib/phone.rb +3 -3
  41. data/lib/stbaldricks/entities/lib/third_party_media.rb +2 -2
  42. data/lib/stbaldricks/entities/lib/top_level.rb +2 -2
  43. data/lib/stbaldricks/entities/memorial.rb +2 -2
  44. data/lib/stbaldricks/entities/message.rb +8 -8
  45. data/lib/stbaldricks/entities/organization.rb +21 -21
  46. data/lib/stbaldricks/entities/page.rb +3 -5
  47. data/lib/stbaldricks/entities/participant.rb +42 -42
  48. data/lib/stbaldricks/entities/person.rb +96 -96
  49. data/lib/stbaldricks/entities/photo.rb +25 -25
  50. data/lib/stbaldricks/entities/recurring_gift.rb +23 -18
  51. data/lib/stbaldricks/entities/search.rb +8 -8
  52. data/lib/stbaldricks/entities/shave_schedule.rb +2 -2
  53. data/lib/stbaldricks/entities/team.rb +14 -14
  54. data/lib/stbaldricks/entities/user.rb +7 -5
  55. data/lib/stbaldricks/enums/cancer_types.rb +2 -0
  56. data/lib/stbaldricks/enums/country.rb +2 -0
  57. data/lib/stbaldricks/enums/league_status.rb +2 -0
  58. data/lib/stbaldricks/enums/model_type.rb +2 -0
  59. data/lib/stbaldricks/enums/permission_model_type.rb +2 -0
  60. data/lib/stbaldricks/enums/province.rb +2 -0
  61. data/lib/stbaldricks/enums/state.rb +2 -0
  62. data/lib/stbaldricks/enums/top_level_category_type.rb +2 -0
  63. data/lib/stbaldricks/log.rb +2 -0
  64. data/lib/stbaldricks/patches/string.rb +1 -1
  65. data/lib/stbaldricks/version.rb +1 -1
  66. data/spec/factories/kid.rb +1 -1
  67. metadata +89 -89
@@ -44,10 +44,10 @@ module SBF
44
44
  )
45
45
 
46
46
  module HonorerType
47
- EVENT = 'event'
48
- TEAM = 'team'
49
- PARTICIPANT = 'participant'
50
- FUNDRAISER = 'fundraiser'
47
+ EVENT = 'event'.freeze
48
+ TEAM = 'team'.freeze
49
+ PARTICIPANT = 'participant'.freeze
50
+ FUNDRAISER = 'fundraiser'.freeze
51
51
  end
52
52
 
53
53
  class PartialKid < SBF::Client::PartialKid
@@ -4,8 +4,8 @@ module SBF
4
4
  module Client
5
5
  class Address < SBF::Client::BaseEntity
6
6
  module Type
7
- HOME = 'home'
8
- BUSINESS = 'business'
7
+ HOME = 'home'.freeze
8
+ BUSINESS = 'business'.freeze
9
9
  end
10
10
 
11
11
  attr_accessor :type
@@ -4,8 +4,8 @@ module SBF
4
4
  module Client
5
5
  class AlternateShippingAddress < SBF::Client::BaseEntity
6
6
  module Type
7
- HOME = 'home'
8
- BUSINESS = 'business'
7
+ HOME = 'home'.freeze
8
+ BUSINESS = 'business'.freeze
9
9
  end
10
10
 
11
11
  attr_accessor :type
@@ -31,9 +31,7 @@ module SBF
31
31
  id
32
32
  end
33
33
 
34
- private
35
-
36
- def cache_id_from_hash_func(proc)
34
+ private def cache_id_from_hash_func(proc)
37
35
  raise ArgumentError, "Unable to re-set cache_id_from_hash on #{name}" if @cache_id_proc
38
36
 
39
37
  @cache_id_proc = proc
@@ -4,8 +4,8 @@ module SBF
4
4
  module Client
5
5
  class EmailAddress < SBF::Client::BaseEntity
6
6
  module Type
7
- PERSONAL = 'personal'
8
- BUSINESS = 'business'
7
+ PERSONAL = 'personal'.freeze
8
+ BUSINESS = 'business'.freeze
9
9
  end
10
10
 
11
11
  attr_accessor :type
@@ -7,7 +7,7 @@ module SBF
7
7
  attr_accessor :custom_url_segment
8
8
  attr_reader :url
9
9
 
10
- HTTP_REGEX = %r{^https?://}
10
+ HTTP_REGEX = %r{^https?://}.freeze
11
11
 
12
12
  def url_with_scheme
13
13
  url.insert(0, 'https:') unless url.empty? || HTTP_REGEX.match(url)
@@ -5,23 +5,23 @@ module SBF
5
5
  module Client
6
6
  class Payment
7
7
  module Type
8
- UNKNOWN = 'unknown'
9
- CREDIT_CARD = 'credit_card'
10
- CHECK = 'check'
11
- CASH = 'cash'
12
- MONEY_ORDER = 'money_order'
13
- NONCE = 'nonce'
14
- WIRE_TRANSFER = 'wire_transfer'
15
- PAYPAL = 'paypal'
16
- FACEBOOK = 'facebook'
17
- APPLEPAY = 'applepay'
8
+ UNKNOWN = 'unknown'.freeze
9
+ CREDIT_CARD = 'credit_card'.freeze
10
+ CHECK = 'check'.freeze
11
+ CASH = 'cash'.freeze
12
+ MONEY_ORDER = 'money_order'.freeze
13
+ NONCE = 'nonce'.freeze
14
+ WIRE_TRANSFER = 'wire_transfer'.freeze
15
+ PAYPAL = 'paypal'.freeze
16
+ FACEBOOK = 'facebook'.freeze
17
+ APPLEPAY = 'applepay'.freeze
18
18
  end
19
19
 
20
20
  module Gateway
21
- NONE = 'none'
22
- UNKNOWN = 'unknown'
23
- BRAINTREE = 'braintree'
24
- PAYMENTSPRING = 'paymentspring'
21
+ NONE = 'none'.freeze
22
+ UNKNOWN = 'unknown'.freeze
23
+ BRAINTREE = 'braintree'.freeze
24
+ PAYMENTSPRING = 'paymentspring'.freeze
25
25
  end
26
26
 
27
27
  class Details < SBF::Client::BaseEntity
@@ -4,9 +4,9 @@ module SBF
4
4
  module Client
5
5
  class Phone < SBF::Client::BaseEntity
6
6
  module Type
7
- HOME = 'home'
8
- BUSINESS = 'business'
9
- MOBILE = 'mobile'
7
+ HOME = 'home'.freeze
8
+ BUSINESS = 'business'.freeze
9
+ MOBILE = 'mobile'.freeze
10
10
  end
11
11
 
12
12
  attr_accessor :type
@@ -8,8 +8,8 @@ module SBF
8
8
  include Entities::DefaultCacheable
9
9
 
10
10
  module Type
11
- YOUTUBE = 'youtube'
12
- VIMEO = 'vimeo'
11
+ YOUTUBE = 'youtube'.freeze
12
+ VIMEO = 'vimeo'.freeze
13
13
  end
14
14
 
15
15
  attr_accessor :id
@@ -8,8 +8,8 @@ module SBF
8
8
  include Entities::Cacheable
9
9
 
10
10
  DEFAULT_ENDPOINT = SBF::Client::EntityEndpoint
11
- DEFAULT_INSTANCE_ACTIONS = %i(save create update delete)
12
- DEFAULT_CLASS_ACTIONS = %i(get find find_first aggregate update delete)
11
+ DEFAULT_INSTANCE_ACTIONS = %i(save create update delete).freeze
12
+ DEFAULT_CLASS_ACTIONS = %i(get find find_first aggregate update delete).freeze
13
13
  DEFAULT_CRUD_ACTIONS = DEFAULT_INSTANCE_ACTIONS + DEFAULT_CLASS_ACTIONS
14
14
 
15
15
  class << self
@@ -16,8 +16,8 @@ module SBF
16
16
  disallow_instantiation
17
17
 
18
18
  module Status
19
- ACTIVE = 'active'
20
- PENDING = 'pending'
19
+ ACTIVE = 'active'.freeze
20
+ PENDING = 'pending'.freeze
21
21
  end
22
22
 
23
23
  class Tribute < SBF::Client::BaseEntity
@@ -14,21 +14,21 @@ module SBF
14
14
  action :mark_as_unread
15
15
 
16
16
  module Type
17
- MEMBERS_COMMUNICATION = 'members_communication'
18
- REPLY = 'reply'
17
+ MEMBERS_COMMUNICATION = 'members_communication'.freeze
18
+ REPLY = 'reply'.freeze
19
19
  end
20
20
 
21
21
  module Status
22
- PENDING = 'pending'
23
- SENT = 'sent'
24
- DELETED = 'deleted'
22
+ PENDING = 'pending'.freeze
23
+ SENT = 'sent'.freeze
24
+ DELETED = 'deleted'.freeze
25
25
  end
26
26
 
27
27
  class Recipient < SBF::Client::BaseEntity
28
28
  module Status
29
- UNREAD = 'unread'
30
- READ = 'read'
31
- DELETED = 'deleted'
29
+ UNREAD = 'unread'.freeze
30
+ READ = 'read'.freeze
31
+ DELETED = 'deleted'.freeze
32
32
  end
33
33
 
34
34
  attr_accessor :id
@@ -16,39 +16,39 @@ module SBF
16
16
  disallow_instantiation
17
17
 
18
18
  module Status
19
- PENDING = 'pending'
20
- ACTIVE = 'active'
21
- DECEASED = 'deceased'
19
+ PENDING = 'pending'.freeze
20
+ ACTIVE = 'active'.freeze
21
+ DECEASED = 'deceased'.freeze
22
22
  end
23
23
 
24
24
  module Type
25
- BUSINESS = 'business'
26
- ORGANIZATION_FOUNDATION = 'foundation'
25
+ BUSINESS = 'business'.freeze
26
+ ORGANIZATION_FOUNDATION = 'foundation'.freeze
27
27
  end
28
28
 
29
29
  module Gender
30
- NOT_SELECTED = 'not_selected'
30
+ NOT_SELECTED = 'not_selected'.freeze
31
31
  end
32
32
 
33
33
  module HowCreated
34
- WEBSITE = 'website'
35
- ADMIN_IMPORT = 'admin_import'
36
- ADMIN_CONTROL_PANEL = 'admin_control_panel'
37
- SUBMIT_CASH = 'submit_cash'
38
- MOBILE = 'mobile'
39
- PARTICIPANT_REGISTRATION = 'participant_registration'
40
- FUNDRAISER_REGISTRATION = 'fundraiser_registration'
41
- FAST_DONATION = 'fast_donation'
42
- RECURRING_GIFTS = 'recurring'
43
- GIVE_ONCE = 'give_once'
44
- DONATE = 'donate'
45
- PAYMENT_SPRING_APP = 'payment_spring_app'
34
+ WEBSITE = 'website'.freeze
35
+ ADMIN_IMPORT = 'admin_import'.freeze
36
+ ADMIN_CONTROL_PANEL = 'admin_control_panel'.freeze
37
+ SUBMIT_CASH = 'submit_cash'.freeze
38
+ MOBILE = 'mobile'.freeze
39
+ PARTICIPANT_REGISTRATION = 'participant_registration'.freeze
40
+ FUNDRAISER_REGISTRATION = 'fundraiser_registration'.freeze
41
+ FAST_DONATION = 'fast_donation'.freeze
42
+ RECURRING_GIFTS = 'recurring'.freeze
43
+ GIVE_ONCE = 'give_once'.freeze
44
+ DONATE = 'donate'.freeze
45
+ PAYMENT_SPRING_APP = 'payment_spring_app'.freeze
46
46
  end
47
47
 
48
48
  module ShippingPreference
49
- USE_PRIMARY_ADDRESS = 'use_primary_address'
50
- USE_VENUE_ADDRESS = 'use_venue_address'
51
- USE_ALTERNATE_ADDRESS = 'use_alternate_address'
49
+ USE_PRIMARY_ADDRESS = 'use_primary_address'.freeze
50
+ USE_VENUE_ADDRESS = 'use_venue_address'.freeze
51
+ USE_ALTERNATE_ADDRESS = 'use_alternate_address'.freeze
52
52
  end
53
53
 
54
54
  class Addresses < SBF::Client::BaseEntity
@@ -18,8 +18,8 @@ module SBF
18
18
  attr_reader :date_modified
19
19
 
20
20
  module Type
21
- TEXT = 'text'
22
- META = 'meta'
21
+ TEXT = 'text'.freeze
22
+ META = 'meta'.freeze
23
23
  end
24
24
  end
25
25
 
@@ -69,9 +69,7 @@ module SBF
69
69
  end
70
70
  end
71
71
 
72
- private
73
-
74
- def update_draft_content_section(content, data, cid)
72
+ private def update_draft_content_section(content, data, cid)
75
73
  # update or create draft version of content
76
74
  draft = draft_content.find { |d| d.id == cid }
77
75
  if draft.nil?
@@ -30,25 +30,25 @@ module SBF
30
30
  disallow_instantiation
31
31
 
32
32
  module Status
33
- ACTIVE = 'active'
34
- PENDING = 'pending'
33
+ ACTIVE = 'active'.freeze
34
+ PENDING = 'pending'.freeze
35
35
  end
36
36
 
37
37
  module ShirtSize
38
- FAST_REG_UNSPECIFIED = 'fast_reg_unspecified'
39
- NOT_SPECIFIED = 'not specified'
40
- YOUTH_SMALL = 'youth_small'
41
- YOUTH_MEDIUM = 'youth_medium'
42
- YOUTH_LARGE = 'youth_large'
43
- XS = 'xs'
44
- SMALL = 'small'
45
- MEDIUM = 'medium'
46
- LARGE = 'large'
47
- XL = 'xl'
48
- XXL = 'xxl'
49
- XXXL = '3x'
50
- XXXXL = '4x'
51
- XXXXXL = '5x'
38
+ FAST_REG_UNSPECIFIED = 'fast_reg_unspecified'.freeze
39
+ NOT_SPECIFIED = 'not specified'.freeze
40
+ YOUTH_SMALL = 'youth_small'.freeze
41
+ YOUTH_MEDIUM = 'youth_medium'.freeze
42
+ YOUTH_LARGE = 'youth_large'.freeze
43
+ XS = 'xs'.freeze
44
+ SMALL = 'small'.freeze
45
+ MEDIUM = 'medium'.freeze
46
+ LARGE = 'large'.freeze
47
+ XL = 'xl'.freeze
48
+ XXL = 'xxl'.freeze
49
+ XXXL = '3x'.freeze
50
+ XXXXL = '4x'.freeze
51
+ XXXXXL = '5x'.freeze
52
52
 
53
53
  def self.list
54
54
  %i(
@@ -70,21 +70,21 @@ module SBF
70
70
  end
71
71
 
72
72
  module HowCreated
73
- WEBSITE = 'website'
74
- ADMIN_IMPORT = 'admin_import'
75
- ADMIN_CONTROL_PANEL = 'admin_control_panel'
76
- MOBILE = 'mobile'
77
- FAST_REGISTRATION = 'fast_registration'
73
+ WEBSITE = 'website'.freeze
74
+ ADMIN_IMPORT = 'admin_import'.freeze
75
+ ADMIN_CONTROL_PANEL = 'admin_control_panel'.freeze
76
+ MOBILE = 'mobile'.freeze
77
+ FAST_REGISTRATION = 'fast_registration'.freeze
78
78
  end
79
79
 
80
80
  module FundRelationshipType
81
- NO_ASSOCIATION = 'no_association'
82
- DIRECT = 'direct'
83
- DIRECT_BUT_LOCKED = 'direct_but_locked'
84
- INHERITED_FROM_TEAM = 'inherited_from_team'
85
- INHERITED_FROM_EVENT = 'inherited_from_event'
86
- INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'
87
- INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'
81
+ NO_ASSOCIATION = 'no_association'.freeze
82
+ DIRECT = 'direct'.freeze
83
+ DIRECT_BUT_LOCKED = 'direct_but_locked'.freeze
84
+ INHERITED_FROM_TEAM = 'inherited_from_team'.freeze
85
+ INHERITED_FROM_EVENT = 'inherited_from_event'.freeze
86
+ INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'.freeze
87
+ INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'.freeze
88
88
  end
89
89
 
90
90
  class Photos < SBF::Client::BaseEntity
@@ -101,25 +101,25 @@ module SBF
101
101
 
102
102
  class Roles < SBF::Client::BaseEntity
103
103
  module Status
104
- ACTIVE = 'active'
105
- PENDING = 'pending'
106
- SUSPENDED = 'suspended'
104
+ ACTIVE = 'active'.freeze
105
+ PENDING = 'pending'.freeze
106
+ SUSPENDED = 'suspended'.freeze
107
107
  end
108
108
 
109
109
  module Type
110
- SHAVEE = 'shavee'
111
- BARBER = 'barber'
112
- TREASURER = 'treasurer'
113
- SHAVEE_RECRUITER = 'shavee_recruiter'
114
- ORGANIZER = 'organizer'
115
- TEAM_CAPTAIN = 'team_captain'
116
- LEAD_TREASURER = 'lead_treasurer'
117
- LEAD_ORGANIZER = 'lead_organizer'
118
- BARBER_COORDINATOR = 'barber_coordinator'
119
- VOLUNTEER = 'volunteer'
110
+ SHAVEE = 'shavee'.freeze
111
+ BARBER = 'barber'.freeze
112
+ TREASURER = 'treasurer'.freeze
113
+ SHAVEE_RECRUITER = 'shavee_recruiter'.freeze
114
+ ORGANIZER = 'organizer'.freeze
115
+ TEAM_CAPTAIN = 'team_captain'.freeze
116
+ LEAD_TREASURER = 'lead_treasurer'.freeze
117
+ LEAD_ORGANIZER = 'lead_organizer'.freeze
118
+ BARBER_COORDINATOR = 'barber_coordinator'.freeze
119
+ VOLUNTEER = 'volunteer'.freeze
120
120
  end
121
121
 
122
- CORE_COMMITTEE_TYPES = [Type::ORGANIZER, Type::TREASURER, Type::BARBER_COORDINATOR, Type::SHAVEE_RECRUITER]
122
+ CORE_COMMITTEE_TYPES = [Type::ORGANIZER, Type::TREASURER, Type::BARBER_COORDINATOR, Type::SHAVEE_RECRUITER].freeze
123
123
 
124
124
  class Role < SBF::Client::BaseEntity
125
125
  attr_accessor :status
@@ -20,21 +20,21 @@ module SBF
20
20
  blacklist_action :delete
21
21
 
22
22
  module Status
23
- PENDING = 'pending' # 1
24
- ACTIVE = 'active' # 2
25
- DECEASED = 'deceased' # 7 (may be deprecated: working on this with SBF)
23
+ PENDING = 'pending'.freeze # 1
24
+ ACTIVE = 'active'.freeze # 2
25
+ DECEASED = 'deceased'.freeze # 7 (may be deprecated: working on this with SBF)
26
26
  end
27
27
 
28
28
  module Type
29
- INDIVIDUAL = 'individual'
30
- BUSINESS = 'business'
31
- FOUNDATION = 'foundation'
29
+ INDIVIDUAL = 'individual'.freeze
30
+ BUSINESS = 'business'.freeze
31
+ FOUNDATION = 'foundation'.freeze
32
32
 
33
33
  IDS = {
34
34
  INDIVIDUAL => 1,
35
35
  BUSINESS => 2,
36
36
  FOUNDATION => 3
37
- }
37
+ }.freeze
38
38
  IDS.freeze
39
39
 
40
40
  def self.to_s(type_id)
@@ -47,32 +47,32 @@ module SBF
47
47
  end
48
48
 
49
49
  module Gender
50
- NOT_SELECTED = 'not_selected'
51
- CHOSE_NOT_TO_SPECIFY = 'chose_not_to_specify'
52
- MALE = 'male'
53
- FEMALE = 'female'
50
+ NOT_SELECTED = 'not_selected'.freeze
51
+ CHOSE_NOT_TO_SPECIFY = 'chose_not_to_specify'.freeze
52
+ MALE = 'male'.freeze
53
+ FEMALE = 'female'.freeze
54
54
  end
55
55
 
56
56
  module HowCreated
57
- WEBSITE = 'website'
58
- ADMIN_IMPORT = 'admin_import'
59
- ADMIN_CONTROL_PANEL = 'admin_control_panel'
60
- SUBMIT_CASH = 'submit_cash'
61
- MOBILE = 'mobile'
62
- PARTICIPANT_REGISTRATION = 'participant_registration'
63
- FUNDRAISER_REGISTRATION = 'fundraiser_registration'
64
- FAST_REGISTRATION = 'fast_registration'
65
- FAST_DONATION = 'fast_donation'
66
- RECURRING_GIFTS = 'recurring'
67
- GIVE_ONCE = 'give_once'
68
- DONATE = 'donate'
69
- PAYMENT_SPRING_APP = 'payment_spring_app'
57
+ WEBSITE = 'website'.freeze
58
+ ADMIN_IMPORT = 'admin_import'.freeze
59
+ ADMIN_CONTROL_PANEL = 'admin_control_panel'.freeze
60
+ SUBMIT_CASH = 'submit_cash'.freeze
61
+ MOBILE = 'mobile'.freeze
62
+ PARTICIPANT_REGISTRATION = 'participant_registration'.freeze
63
+ FUNDRAISER_REGISTRATION = 'fundraiser_registration'.freeze
64
+ FAST_REGISTRATION = 'fast_registration'.freeze
65
+ FAST_DONATION = 'fast_donation'.freeze
66
+ RECURRING_GIFTS = 'recurring'.freeze
67
+ GIVE_ONCE = 'give_once'.freeze
68
+ DONATE = 'donate'.freeze
69
+ PAYMENT_SPRING_APP = 'payment_spring_app'.freeze
70
70
  end
71
71
 
72
72
  module ShippingPreference
73
- USE_PRIMARY_ADDRESS = 'use_primary_address'
74
- USE_VENUE_ADDRESS = 'use_venue_address'
75
- USE_ALTERNATE_ADDRESS = 'use_alternate_address'
73
+ USE_PRIMARY_ADDRESS = 'use_primary_address'.freeze
74
+ USE_VENUE_ADDRESS = 'use_venue_address'.freeze
75
+ USE_ALTERNATE_ADDRESS = 'use_alternate_address'.freeze
76
76
  end
77
77
 
78
78
  class Addresses < SBF::Client::BaseEntity
@@ -109,24 +109,24 @@ module SBF
109
109
  attr_reader :is_child_survivor, :is_child_family, :is_child_friend, :is_adult_survivor, :is_adult_friend_or_family, :is_none
110
110
 
111
111
  module CancerType
112
- ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'Acute lymphoblastic leukemia (ALL)'
113
- ACUTE_MYELOID_LEUKEMIA = 'Acute myeloid leukemia (AML)'
114
- BRAIN_OR_SPINAL_CORD_TUMOR = 'Brain or spinal cord tumor'
115
- CLEAR_CELL_SARCOMA_OF_THE_KIDNEY = 'Clear cell sarcoma of the kidney'
116
- EWING_SARCOMA = 'Ewing sarcoma'
117
- GERM_CELL_TUMOR = 'Germ cell tumor'
118
- HEPATOBLASTOMA = 'Hepatoblastoma'
119
- HODGKIN_LYMPHOMA = 'Hodgkin lymphoma'
120
- LANGERHANS_CELL_HISTIOCYTOSIS = 'Langerhans Cell Histiocytosis (LCH)'
121
- LYMPHOMA = 'Lymphoma'
122
- NEUROBLASTOMA = 'Neuroblastoma'
123
- NON_HODGKIN_LYMPHOMA = 'Non-Hodgkin lymphoma'
124
- OSTEOSARCOMA = 'Osteosarcoma'
125
- RETINOBLASTOMA = 'Retinoblastoma'
126
- RHABDOMYOSARCOMA = 'Rhabdomyosarcoma'
127
- WILMS_OR_OTHER_KIDNEY_TUMOR = 'Wilms or other kidney tumor'
128
- ADULT_WITH_A_TYPE_OF_CHILDHOOD_CANCER = 'Adult with a type of childhood cancer'
129
- OTHER_CHILDHOOD_CANCER = 'Other childhood cancer'
112
+ ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'Acute lymphoblastic leukemia (ALL)'.freeze
113
+ ACUTE_MYELOID_LEUKEMIA = 'Acute myeloid leukemia (AML)'.freeze
114
+ BRAIN_OR_SPINAL_CORD_TUMOR = 'Brain or spinal cord tumor'.freeze
115
+ CLEAR_CELL_SARCOMA_OF_THE_KIDNEY = 'Clear cell sarcoma of the kidney'.freeze
116
+ EWING_SARCOMA = 'Ewing sarcoma'.freeze
117
+ GERM_CELL_TUMOR = 'Germ cell tumor'.freeze
118
+ HEPATOBLASTOMA = 'Hepatoblastoma'.freeze
119
+ HODGKIN_LYMPHOMA = 'Hodgkin lymphoma'.freeze
120
+ LANGERHANS_CELL_HISTIOCYTOSIS = 'Langerhans Cell Histiocytosis (LCH)'.freeze
121
+ LYMPHOMA = 'Lymphoma'.freeze
122
+ NEUROBLASTOMA = 'Neuroblastoma'.freeze
123
+ NON_HODGKIN_LYMPHOMA = 'Non-Hodgkin lymphoma'.freeze
124
+ OSTEOSARCOMA = 'Osteosarcoma'.freeze
125
+ RETINOBLASTOMA = 'Retinoblastoma'.freeze
126
+ RHABDOMYOSARCOMA = 'Rhabdomyosarcoma'.freeze
127
+ WILMS_OR_OTHER_KIDNEY_TUMOR = 'Wilms or other kidney tumor'.freeze
128
+ ADULT_WITH_A_TYPE_OF_CHILDHOOD_CANCER = 'Adult with a type of childhood cancer'.freeze
129
+ OTHER_CHILDHOOD_CANCER = 'Other childhood cancer'.freeze
130
130
  @list = {
131
131
  ACUTE_LYMPHOBLASTIC_LEUKEMIA => 'acute_lymphoblastic_leukemia',
132
132
  ACUTE_MYELOID_LEUKEMIA => 'acute_myeloid_leukemia',
@@ -154,18 +154,18 @@ module SBF
154
154
  end
155
155
 
156
156
  module FamilyRelationship
157
- NONE = 'None'
158
- MOTHER = 'Mother'
159
- FATHER = 'Father'
160
- SISTER = 'Sister'
161
- BROTHER = 'Brother'
162
- AUNT = 'Aunt'
163
- UNCLE = 'Uncle'
164
- GRANDMOTHER = 'Grandmother'
165
- GRANDFATHER = 'Grandfather'
166
- STEP_MOTHER = 'Step-Mother'
167
- STEP_FATHER = 'Step-Father'
168
- LEGAL_GUARDIAN = 'Legal-Guardian'
157
+ NONE = 'None'.freeze
158
+ MOTHER = 'Mother'.freeze
159
+ FATHER = 'Father'.freeze
160
+ SISTER = 'Sister'.freeze
161
+ BROTHER = 'Brother'.freeze
162
+ AUNT = 'Aunt'.freeze
163
+ UNCLE = 'Uncle'.freeze
164
+ GRANDMOTHER = 'Grandmother'.freeze
165
+ GRANDFATHER = 'Grandfather'.freeze
166
+ STEP_MOTHER = 'Step-Mother'.freeze
167
+ STEP_FATHER = 'Step-Father'.freeze
168
+ LEGAL_GUARDIAN = 'Legal-Guardian'.freeze
169
169
  @list = {
170
170
  NONE => 'none',
171
171
  MOTHER => 'mother',
@@ -187,11 +187,11 @@ module SBF
187
187
  end
188
188
 
189
189
  module CancerStatus
190
- CANCER_FREE = 'Cancer free'
191
- IN_REMISSION = 'In remission'
192
- IN_TREATMENT = 'In treatment'
193
- IN_MAINTENANCE = 'In maintenance'
194
- LOST_TO_CANCER = 'Lost to cancer'
190
+ CANCER_FREE = 'Cancer free'.freeze
191
+ IN_REMISSION = 'In remission'.freeze
192
+ IN_TREATMENT = 'In treatment'.freeze
193
+ IN_MAINTENANCE = 'In maintenance'.freeze
194
+ LOST_TO_CANCER = 'Lost to cancer'.freeze
195
195
  @list = {
196
196
  CANCER_FREE => 'cancer_free',
197
197
  IN_REMISSION => 'in_remission',
@@ -207,22 +207,22 @@ module SBF
207
207
  end
208
208
  class Occupation < SBF::Client::BaseEntity
209
209
  module Type
210
- STUDENT = 'Student'
211
- EDUCATOR = 'Educator'
212
- PHYSICIAN = 'Physician'
213
- NURSE = 'Nurse'
214
- RESEARCHER = 'Researcher'
215
- SOCIAL_WORKER = 'Social Worker'
216
- OTHER_CARE_GIVER = 'Other Caregiver'
217
- CHILDHOOD_HEALTH_ADVOCATE = 'Childhood Health Advocate'
218
- FIREFIGHTER = 'Firefighter'
219
- POLICE_OFFICER = 'Police Officer'
220
- MILITARY = 'Military'
221
- INSURANCE_INDUSTRIES = 'Insurance Industries'
222
- BANKING_FINANCE = 'Banking & Finance'
223
- SECURITIES_TRADING = 'Securities & Trading'
224
- BARBER_COSMETOLOGIST = 'Barber or Cosmetologist'
225
- OTHER = 'Other'
210
+ STUDENT = 'Student'.freeze
211
+ EDUCATOR = 'Educator'.freeze
212
+ PHYSICIAN = 'Physician'.freeze
213
+ NURSE = 'Nurse'.freeze
214
+ RESEARCHER = 'Researcher'.freeze
215
+ SOCIAL_WORKER = 'Social Worker'.freeze
216
+ OTHER_CARE_GIVER = 'Other Caregiver'.freeze
217
+ CHILDHOOD_HEALTH_ADVOCATE = 'Childhood Health Advocate'.freeze
218
+ FIREFIGHTER = 'Firefighter'.freeze
219
+ POLICE_OFFICER = 'Police Officer'.freeze
220
+ MILITARY = 'Military'.freeze
221
+ INSURANCE_INDUSTRIES = 'Insurance Industries'.freeze
222
+ BANKING_FINANCE = 'Banking & Finance'.freeze
223
+ SECURITIES_TRADING = 'Securities & Trading'.freeze
224
+ BARBER_COSMETOLOGIST = 'Barber or Cosmetologist'.freeze
225
+ OTHER = 'Other'.freeze
226
226
 
227
227
  @list = {
228
228
  STUDENT => 'student',
@@ -249,11 +249,11 @@ module SBF
249
249
  end
250
250
 
251
251
  module EducatorType
252
- PRESCHOOL = 'Preschool'
253
- ELEMENTARY_SCHOOL = 'Elementary School'
254
- MIDDLE_SCHOOL = 'Middle School'
255
- HIGH_SCHOOL = 'High School'
256
- COLLEGE = 'College'
252
+ PRESCHOOL = 'Preschool'.freeze
253
+ ELEMENTARY_SCHOOL = 'Elementary School'.freeze
254
+ MIDDLE_SCHOOL = 'Middle School'.freeze
255
+ HIGH_SCHOOL = 'High School'.freeze
256
+ COLLEGE = 'College'.freeze
257
257
 
258
258
  @list = {
259
259
  PRESCHOOL => 'preschool',
@@ -269,10 +269,10 @@ module SBF
269
269
  end
270
270
 
271
271
  module StudentType
272
- ELEMENTARY_SCHOOL = 'Elementary School'
273
- MIDDLE_SCHOOL = 'Middle School'
274
- HIGH_SCHOOL = 'High School'
275
- COLLEGE = 'College'
272
+ ELEMENTARY_SCHOOL = 'Elementary School'.freeze
273
+ MIDDLE_SCHOOL = 'Middle School'.freeze
274
+ HIGH_SCHOOL = 'High School'.freeze
275
+ COLLEGE = 'College'.freeze
276
276
  @list = {
277
277
  ELEMENTARY_SCHOOL => 'elementary_school',
278
278
  MIDDLE_SCHOOL => 'middle_school',
@@ -286,12 +286,12 @@ module SBF
286
286
  end
287
287
 
288
288
  module MilitaryBranchType
289
- ARMY = 'Army'
290
- NAVY = 'Navy'
291
- AIR_FORCE = 'Air Force'
292
- MARINES = 'Marines'
293
- COAST_GUARD = 'Coast Guard'
294
- NATIONAL_GUARD = 'National Guard'
289
+ ARMY = 'Army'.freeze
290
+ NAVY = 'Navy'.freeze
291
+ AIR_FORCE = 'Air Force'.freeze
292
+ MARINES = 'Marines'.freeze
293
+ COAST_GUARD = 'Coast Guard'.freeze
294
+ NATIONAL_GUARD = 'National Guard'.freeze
295
295
 
296
296
  @list = {
297
297
  ARMY => 'army',
@@ -308,9 +308,9 @@ module SBF
308
308
  end
309
309
 
310
310
  module MilitaryStatusType
311
- ACTIVE_DUTY = 'Active Duty'
312
- RESERVES = 'Reserves'
313
- RETIRED = 'Retired'
311
+ ACTIVE_DUTY = 'Active Duty'.freeze
312
+ RESERVES = 'Reserves'.freeze
313
+ RETIRED = 'Retired'.freeze
314
314
 
315
315
  @list = {
316
316
  ACTIVE_DUTY => 'active_duty',