stbaldricks 10.6.0.alpha.1 → 10.8.1.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stbaldricks/configuration.rb +1 -1
- data/lib/stbaldricks/endpoints/photo.rb +1 -3
- data/lib/stbaldricks/entities/batch.rb +2 -2
- data/lib/stbaldricks/entities/challenge.rb +4 -4
- data/lib/stbaldricks/entities/challenger.rb +2 -2
- data/lib/stbaldricks/entities/challenger/model_type.rb +2 -0
- data/lib/stbaldricks/entities/concerns/entity_response_concern.rb +2 -4
- data/lib/stbaldricks/entities/contact.rb +1 -1
- data/lib/stbaldricks/entities/deduplicator_match.rb +5 -5
- data/lib/stbaldricks/entities/donation.rb +3 -3
- data/lib/stbaldricks/entities/donation/donor_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/how_created.rb +2 -0
- data/lib/stbaldricks/entities/donation/payment_gateway.rb +2 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/promo_code.rb +2 -0
- data/lib/stbaldricks/entities/donation/recipient_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/special_donation_type.rb +2 -0
- data/lib/stbaldricks/entities/donation/status.rb +2 -0
- data/lib/stbaldricks/entities/donation/submitter_type.rb +2 -0
- data/lib/stbaldricks/entities/event.rb +10 -10
- data/lib/stbaldricks/entities/event/fund_relationship_type.rb +2 -0
- data/lib/stbaldricks/entities/event/how_created.rb +2 -0
- data/lib/stbaldricks/entities/event/promo_code.rb +2 -0
- data/lib/stbaldricks/entities/event/status.rb +2 -0
- data/lib/stbaldricks/entities/event/sub_type.rb +2 -0
- data/lib/stbaldricks/entities/event/type.rb +2 -0
- data/lib/stbaldricks/entities/event_application/model_type.rb +2 -0
- data/lib/stbaldricks/entities/event_application/status.rb +2 -0
- data/lib/stbaldricks/entities/fundraiser.rb +20 -20
- data/lib/stbaldricks/entities/international_partner.rb +2 -2
- data/lib/stbaldricks/entities/kid.rb +62 -62
- data/lib/stbaldricks/entities/kid_honor.rb +4 -4
- data/lib/stbaldricks/entities/lib/address.rb +2 -2
- data/lib/stbaldricks/entities/lib/alternate_shipping_address.rb +2 -2
- data/lib/stbaldricks/entities/lib/cacheable.rb +1 -3
- data/lib/stbaldricks/entities/lib/email_address.rb +2 -2
- data/lib/stbaldricks/entities/lib/fundraising_page.rb +1 -1
- data/lib/stbaldricks/entities/lib/payment.rb +14 -14
- data/lib/stbaldricks/entities/lib/phone.rb +3 -3
- data/lib/stbaldricks/entities/lib/third_party_media.rb +2 -2
- data/lib/stbaldricks/entities/lib/top_level.rb +2 -2
- data/lib/stbaldricks/entities/memorial.rb +2 -2
- data/lib/stbaldricks/entities/message.rb +8 -8
- data/lib/stbaldricks/entities/organization.rb +21 -21
- data/lib/stbaldricks/entities/page.rb +3 -5
- data/lib/stbaldricks/entities/participant.rb +42 -42
- data/lib/stbaldricks/entities/person.rb +96 -96
- data/lib/stbaldricks/entities/photo.rb +25 -25
- data/lib/stbaldricks/entities/recurring_gift.rb +23 -18
- data/lib/stbaldricks/entities/search.rb +8 -8
- data/lib/stbaldricks/entities/shave_schedule.rb +2 -2
- data/lib/stbaldricks/entities/team.rb +14 -14
- data/lib/stbaldricks/entities/user.rb +7 -5
- data/lib/stbaldricks/enums/cancer_types.rb +2 -0
- data/lib/stbaldricks/enums/country.rb +2 -0
- data/lib/stbaldricks/enums/league_status.rb +2 -0
- data/lib/stbaldricks/enums/model_type.rb +2 -0
- data/lib/stbaldricks/enums/permission_model_type.rb +2 -0
- data/lib/stbaldricks/enums/province.rb +2 -0
- data/lib/stbaldricks/enums/state.rb +2 -0
- data/lib/stbaldricks/enums/top_level_category_type.rb +2 -0
- data/lib/stbaldricks/log.rb +2 -0
- data/lib/stbaldricks/patches/string.rb +1 -1
- data/lib/stbaldricks/version.rb +1 -1
- data/spec/factories/kid.rb +1 -1
- metadata +89 -89
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b9e6c77a59a48a0e7ce00985cbad7218c843444d894721cf30890f61cec975
|
4
|
+
data.tar.gz: a9f61d6be984ab4b3ca0bab2accbdddedce8cba6ac3dd2fccffeb3c72744f007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ba4e388284bc6f2ee0fe05e442d772783a4e4772f5fe07b6f3d8bd5452932a94773dc91668587e113ff165faabb95f624b9c41792c975dde9dbc0b2608172f
|
7
|
+
data.tar.gz: cb32b943fa1e0e93109214014c729811e276533014b5d612c2c6da19a9848107a5326935c5f07a2dd9e47c207f6ddf4f4f043cff69fdb9bdd005ad667266e46b
|
@@ -10,10 +10,10 @@ module SBF
|
|
10
10
|
actions DEFAULT_CRUD_ACTIONS
|
11
11
|
|
12
12
|
module Status
|
13
|
-
PENDING = 'pending'
|
14
|
-
ACCEPTED = 'accepted'
|
15
|
-
CANCELED = 'canceled'
|
16
|
-
DECLINED = 'declined'
|
13
|
+
PENDING = 'pending'.freeze
|
14
|
+
ACCEPTED = 'accepted'.freeze
|
15
|
+
CANCELED = 'canceled'.freeze
|
16
|
+
DECLINED = 'declined'.freeze
|
17
17
|
end
|
18
18
|
|
19
19
|
attr_accessor :id
|
@@ -47,16 +47,14 @@ module EntityResponseConcern
|
|
47
47
|
self
|
48
48
|
end
|
49
49
|
|
50
|
-
private
|
51
|
-
|
52
|
-
def single_active_model_error
|
50
|
+
private def single_active_model_error
|
53
51
|
return if errors.empty?
|
54
52
|
return [:base, errors[:base].first] if errors[:base].any?
|
55
53
|
|
56
54
|
errors.first
|
57
55
|
end
|
58
56
|
|
59
|
-
def log_deprecated(method_name, method_caller = nil)
|
57
|
+
private def log_deprecated(method_name, method_caller = nil)
|
60
58
|
SBF::Client::Configuration.logger.warn do
|
61
59
|
caller_message = method_caller.nil? ? '' : " Called from #{method_caller.first}"
|
62
60
|
|
@@ -20,11 +20,11 @@ module SBF
|
|
20
20
|
action :release_checkout
|
21
21
|
|
22
22
|
module Status
|
23
|
-
READY = 'ready'
|
24
|
-
CHECKED_OUT = 'checked_out'
|
25
|
-
COMPLETED = 'completed'
|
26
|
-
ERROR_OUT_OF_SYNC_ADD = 'error_out_of_sync_add'
|
27
|
-
ERROR_OUT_OF_SYNC_UPDATE = 'error_out_of_sync_update'
|
23
|
+
READY = 'ready'.freeze
|
24
|
+
CHECKED_OUT = 'checked_out'.freeze
|
25
|
+
COMPLETED = 'completed'.freeze
|
26
|
+
ERROR_OUT_OF_SYNC_ADD = 'error_out_of_sync_add'.freeze
|
27
|
+
ERROR_OUT_OF_SYNC_UPDATE = 'error_out_of_sync_update'.freeze
|
28
28
|
end
|
29
29
|
|
30
30
|
attr_accessor :id
|
@@ -44,9 +44,9 @@ module SBF
|
|
44
44
|
entity_attr_accessor :name_pieces, 'SBF::Client::NamePieces'
|
45
45
|
|
46
46
|
module Type
|
47
|
-
HONOR = 'honor'
|
48
|
-
TRIBUTE = 'tribute'
|
49
|
-
MEMORY = 'memory'
|
47
|
+
HONOR = 'honor'.freeze
|
48
|
+
TRIBUTE = 'tribute'.freeze
|
49
|
+
MEMORY = 'memory'.freeze
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -28,7 +28,7 @@ module SBF
|
|
28
28
|
action :invite
|
29
29
|
|
30
30
|
cache_id -> { [id, year] }
|
31
|
-
cache_id_from_hash ->(h) { [h[:
|
31
|
+
cache_id_from_hash ->(h) { [h[:event_id], h[:event_year]] }
|
32
32
|
|
33
33
|
disallow_instantiation
|
34
34
|
|
@@ -121,15 +121,15 @@ module SBF
|
|
121
121
|
|
122
122
|
class Location < SBF::Client::Location
|
123
123
|
module Type
|
124
|
-
RESTAURANT = 'restaurant'
|
125
|
-
SCHOOL = 'school'
|
126
|
-
BUSINESS = 'business'
|
127
|
-
PRIVATE_RESIDENCE = 'private_residence'
|
128
|
-
HOSPITAL = 'hospital'
|
129
|
-
MUNICIPALITY = 'municipality'
|
130
|
-
OTHER = 'other'
|
131
|
-
LEGACY = 'legacy'
|
132
|
-
VIRTUAL = 'virtual'
|
124
|
+
RESTAURANT = 'restaurant'.freeze
|
125
|
+
SCHOOL = 'school'.freeze
|
126
|
+
BUSINESS = 'business'.freeze
|
127
|
+
PRIVATE_RESIDENCE = 'private_residence'.freeze
|
128
|
+
HOSPITAL = 'hospital'.freeze
|
129
|
+
MUNICIPALITY = 'municipality'.freeze
|
130
|
+
OTHER = 'other'.freeze
|
131
|
+
LEGACY = 'legacy'.freeze
|
132
|
+
VIRTUAL = 'virtual'.freeze
|
133
133
|
end
|
134
134
|
|
135
135
|
attr_accessor :type
|
@@ -27,35 +27,35 @@ module SBF
|
|
27
27
|
disallow_instantiation
|
28
28
|
|
29
29
|
module Status
|
30
|
-
ACTIVE = 'active'
|
31
|
-
PENDING = 'pending'
|
30
|
+
ACTIVE = 'active'.freeze
|
31
|
+
PENDING = 'pending'.freeze
|
32
32
|
end
|
33
33
|
|
34
34
|
module Category
|
35
|
-
ATHLETICS = 'athletics'
|
36
|
-
CELEBRATION = 'celebration'
|
37
|
-
SALE = 'sale'
|
38
|
-
OTHER = 'other'
|
35
|
+
ATHLETICS = 'athletics'.freeze
|
36
|
+
CELEBRATION = 'celebration'.freeze
|
37
|
+
SALE = 'sale'.freeze
|
38
|
+
OTHER = 'other'.freeze
|
39
39
|
end
|
40
40
|
|
41
41
|
module HowCreated
|
42
|
-
WEBSITE = 'website'
|
43
|
-
ADMIN_CONTROL_PANEL = 'admin_control_panel'
|
44
|
-
ADMIN_IMPORT = 'admin_import'
|
45
|
-
LEGACY = 'legacy'
|
46
|
-
MOBILE = 'mobile'
|
42
|
+
WEBSITE = 'website'.freeze
|
43
|
+
ADMIN_CONTROL_PANEL = 'admin_control_panel'.freeze
|
44
|
+
ADMIN_IMPORT = 'admin_import'.freeze
|
45
|
+
LEGACY = 'legacy'.freeze
|
46
|
+
MOBILE = 'mobile'.freeze
|
47
47
|
end
|
48
48
|
|
49
49
|
module FundRelationshipType
|
50
|
-
NO_ASSOCIATION = 'no_association'
|
51
|
-
INDIRECT_ONE = 'indirect_one'
|
52
|
-
INDIRECT_MULTIPLE = 'indirect_multiple'
|
53
|
-
DIRECT = 'direct'
|
54
|
-
DIRECT_BUT_LOCKED = 'direct_but_locked'
|
55
|
-
INHERITED_FROM_TEAM = 'inherited_from_team'
|
56
|
-
INHERITED_FROM_EVENT = 'inherited_from_event'
|
57
|
-
INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'
|
58
|
-
INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'
|
50
|
+
NO_ASSOCIATION = 'no_association'.freeze
|
51
|
+
INDIRECT_ONE = 'indirect_one'.freeze
|
52
|
+
INDIRECT_MULTIPLE = 'indirect_multiple'.freeze
|
53
|
+
DIRECT = 'direct'.freeze
|
54
|
+
DIRECT_BUT_LOCKED = 'direct_but_locked'.freeze
|
55
|
+
INHERITED_FROM_TEAM = 'inherited_from_team'.freeze
|
56
|
+
INHERITED_FROM_EVENT = 'inherited_from_event'.freeze
|
57
|
+
INHERITED_FROM_TEAMS_EVENT = 'inherited_from_teams_event'.freeze
|
58
|
+
INHERITED_FROM_BOTH_TEAM_AND_EVENT = 'inherited_from_both_team_and_event'.freeze
|
59
59
|
end
|
60
60
|
|
61
61
|
class Photos < SBF::Client::BaseEntity
|
@@ -16,43 +16,43 @@ module SBF
|
|
16
16
|
attr_accessor :other
|
17
17
|
|
18
18
|
module CancerType
|
19
|
-
ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'acute_lymphoblastic_leukemia'
|
20
|
-
ACUTE_MYELOID_LEUKEMIA = 'acute_myeloid_leukemia'
|
21
|
-
BRAIN_OR_SPINAL_CORD_TUMOR = 'brain_or_spinal_cord_tumor'
|
22
|
-
KIDNEY_SARCOMA = 'kidney_sarcoma'
|
23
|
-
EWING_SARCOMA = 'ewing_sarcoma'
|
24
|
-
GERM_CELL_TUMOR = 'germ_cell_tumor'
|
25
|
-
HEPATOBLASTOMA = 'hepatoblastoma'
|
26
|
-
HODGKIN_LYMPHOMA = 'hodgkin_lymphoma'
|
27
|
-
LANGERHANS_CELL_HISTIOCYTOSIS = 'langerhans_cell_histiocytosis'
|
28
|
-
LYMPHOMA = 'lymphoma'
|
29
|
-
NEUROBLASTOMA = 'neuroblastoma'
|
30
|
-
NON_HODGKIN_LYMPHOMA = 'non_hodgkin_lymphoma'
|
31
|
-
OSTEOSARCOMA = 'osteosarcoma'
|
32
|
-
RETINOBLASTOMA = 'retinoblastoma'
|
33
|
-
RHABDOMYOSARCOMA = 'rhabdomyosarcoma'
|
34
|
-
WILMS_OR_OTHER_KIDNEY_TUMOR = 'wilms_or_other_kidney_tumor'
|
35
|
-
ADULT_WITH_CHILDHOOD_CANCER = 'adult_with_childhood_cancer'
|
36
|
-
OTHER_CHILDHOOD_CANCER = 'other_childhood_cancer'
|
19
|
+
ACUTE_LYMPHOBLASTIC_LEUKEMIA = 'acute_lymphoblastic_leukemia'.freeze
|
20
|
+
ACUTE_MYELOID_LEUKEMIA = 'acute_myeloid_leukemia'.freeze
|
21
|
+
BRAIN_OR_SPINAL_CORD_TUMOR = 'brain_or_spinal_cord_tumor'.freeze
|
22
|
+
KIDNEY_SARCOMA = 'kidney_sarcoma'.freeze
|
23
|
+
EWING_SARCOMA = 'ewing_sarcoma'.freeze
|
24
|
+
GERM_CELL_TUMOR = 'germ_cell_tumor'.freeze
|
25
|
+
HEPATOBLASTOMA = 'hepatoblastoma'.freeze
|
26
|
+
HODGKIN_LYMPHOMA = 'hodgkin_lymphoma'.freeze
|
27
|
+
LANGERHANS_CELL_HISTIOCYTOSIS = 'langerhans_cell_histiocytosis'.freeze
|
28
|
+
LYMPHOMA = 'lymphoma'.freeze
|
29
|
+
NEUROBLASTOMA = 'neuroblastoma'.freeze
|
30
|
+
NON_HODGKIN_LYMPHOMA = 'non_hodgkin_lymphoma'.freeze
|
31
|
+
OSTEOSARCOMA = 'osteosarcoma'.freeze
|
32
|
+
RETINOBLASTOMA = 'retinoblastoma'.freeze
|
33
|
+
RHABDOMYOSARCOMA = 'rhabdomyosarcoma'.freeze
|
34
|
+
WILMS_OR_OTHER_KIDNEY_TUMOR = 'wilms_or_other_kidney_tumor'.freeze
|
35
|
+
ADULT_WITH_CHILDHOOD_CANCER = 'adult_with_childhood_cancer'.freeze
|
36
|
+
OTHER_CHILDHOOD_CANCER = 'other_childhood_cancer'.freeze
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
class Guardian < SBF::Client::BaseEntity
|
41
41
|
module RelationshipType
|
42
|
-
SELF_ADULT = 'adult'
|
43
|
-
SELF_MINOR = 'minor'
|
44
|
-
MOTHER = 'mother'
|
45
|
-
FATHER = 'father'
|
46
|
-
SISTER = 'sister'
|
47
|
-
BROTHER = 'brother'
|
48
|
-
AUNT = 'aunt'
|
49
|
-
UNCLE = 'uncle'
|
50
|
-
GRANDMOTHER = 'grandmother'
|
51
|
-
GRANDFATHER = 'grandfather'
|
52
|
-
STEP_MOTHER = 'stepmother'
|
53
|
-
STEP_FATHER = 'stepfather'
|
54
|
-
FRIEND = 'friend'
|
55
|
-
COUSIN = 'cousin'
|
42
|
+
SELF_ADULT = 'adult'.freeze
|
43
|
+
SELF_MINOR = 'minor'.freeze
|
44
|
+
MOTHER = 'mother'.freeze
|
45
|
+
FATHER = 'father'.freeze
|
46
|
+
SISTER = 'sister'.freeze
|
47
|
+
BROTHER = 'brother'.freeze
|
48
|
+
AUNT = 'aunt'.freeze
|
49
|
+
UNCLE = 'uncle'.freeze
|
50
|
+
GRANDMOTHER = 'grandmother'.freeze
|
51
|
+
GRANDFATHER = 'grandfather'.freeze
|
52
|
+
STEP_MOTHER = 'stepmother'.freeze
|
53
|
+
STEP_FATHER = 'stepfather'.freeze
|
54
|
+
FRIEND = 'friend'.freeze
|
55
|
+
COUSIN = 'cousin'.freeze
|
56
56
|
end
|
57
57
|
|
58
58
|
attr_accessor :name
|
@@ -67,19 +67,19 @@ module SBF
|
|
67
67
|
attr_accessor :other
|
68
68
|
|
69
69
|
module SurvivorState
|
70
|
-
IN_TREATMENT = 'in_treatment'
|
71
|
-
IN_MAINTENANCE = 'in_maintenance'
|
72
|
-
IN_REMISSION = 'in_remission'
|
73
|
-
NED = 'no_evidence_of_disease'
|
74
|
-
CANCER_FREE = 'cancer_free'
|
75
|
-
OTHER_LIVING = 'other_living'
|
70
|
+
IN_TREATMENT = 'in_treatment'.freeze
|
71
|
+
IN_MAINTENANCE = 'in_maintenance'.freeze
|
72
|
+
IN_REMISSION = 'in_remission'.freeze
|
73
|
+
NED = 'no_evidence_of_disease'.freeze
|
74
|
+
CANCER_FREE = 'cancer_free'.freeze
|
75
|
+
OTHER_LIVING = 'other_living'.freeze
|
76
76
|
end
|
77
77
|
|
78
78
|
module DeceasedState
|
79
|
-
ANGEL = 'angel'
|
80
|
-
DECEASED = 'deceased'
|
81
|
-
PASSED_AWAY = 'passed_away'
|
82
|
-
OTHER_DECEASED = 'other_deceased'
|
79
|
+
ANGEL = 'angel'.freeze
|
80
|
+
DECEASED = 'deceased'.freeze
|
81
|
+
PASSED_AWAY = 'passed_away'.freeze
|
82
|
+
OTHER_DECEASED = 'other_deceased'.freeze
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
@@ -102,33 +102,33 @@ module SBF
|
|
102
102
|
disallow_instantiation
|
103
103
|
|
104
104
|
module Status
|
105
|
-
ACTIVE = 'active'
|
106
|
-
PENDING = 'pending'
|
107
|
-
SUSPENDED = 'suspended'
|
105
|
+
ACTIVE = 'active'.freeze
|
106
|
+
PENDING = 'pending'.freeze
|
107
|
+
SUSPENDED = 'suspended'.freeze
|
108
108
|
end
|
109
109
|
|
110
110
|
class Relationship < SBF::Client::BaseEntity
|
111
111
|
module Type
|
112
|
-
SELF_ADULT = 'adult'
|
113
|
-
SELF_MINOR = 'minor'
|
114
|
-
MOTHER = 'mother'
|
115
|
-
FATHER = 'father'
|
116
|
-
SISTER = 'sister'
|
117
|
-
BROTHER = 'brother'
|
118
|
-
AUNT = 'aunt'
|
119
|
-
UNCLE = 'uncle'
|
120
|
-
GRANDMOTHER = 'grandmother'
|
121
|
-
GRANDFATHER = 'grandfather'
|
122
|
-
STEP_MOTHER = 'stepmother'
|
123
|
-
STEP_FATHER = 'stepfather'
|
124
|
-
FRIEND = 'friend'
|
125
|
-
COUSIN = 'cousin'
|
112
|
+
SELF_ADULT = 'adult'.freeze
|
113
|
+
SELF_MINOR = 'minor'.freeze
|
114
|
+
MOTHER = 'mother'.freeze
|
115
|
+
FATHER = 'father'.freeze
|
116
|
+
SISTER = 'sister'.freeze
|
117
|
+
BROTHER = 'brother'.freeze
|
118
|
+
AUNT = 'aunt'.freeze
|
119
|
+
UNCLE = 'uncle'.freeze
|
120
|
+
GRANDMOTHER = 'grandmother'.freeze
|
121
|
+
GRANDFATHER = 'grandfather'.freeze
|
122
|
+
STEP_MOTHER = 'stepmother'.freeze
|
123
|
+
STEP_FATHER = 'stepfather'.freeze
|
124
|
+
FRIEND = 'friend'.freeze
|
125
|
+
COUSIN = 'cousin'.freeze
|
126
126
|
end
|
127
127
|
|
128
128
|
module GuardianType
|
129
|
-
LEGAL_GUARDIAN = 'legal_guardian'
|
130
|
-
NONCUSTODIAL_GUARDIAN = 'non_custodial_guardian'
|
131
|
-
OTHER = 'other'
|
129
|
+
LEGAL_GUARDIAN = 'legal_guardian'.freeze
|
130
|
+
NONCUSTODIAL_GUARDIAN = 'non_custodial_guardian'.freeze
|
131
|
+
OTHER = 'other'.freeze
|
132
132
|
end
|
133
133
|
|
134
134
|
class Permissions < SBF::Client::BaseEntity
|