stbaldricks 1.5.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/lib/stbaldricks.rb +2 -0
- data/lib/stbaldricks/api.rb +7 -0
- data/lib/stbaldricks/api_connector.rb +47 -0
- data/lib/stbaldricks/client.rb +7 -0
- data/lib/stbaldricks/configuration.rb +47 -0
- data/lib/stbaldricks/default_logger.rb +24 -0
- data/lib/stbaldricks/endpoints/communicate.rb +67 -0
- data/lib/stbaldricks/endpoints/config.rb +18 -0
- data/lib/stbaldricks/endpoints/contact.rb +12 -0
- data/lib/stbaldricks/endpoints/event.rb +39 -0
- data/lib/stbaldricks/endpoints/event_application.rb +32 -0
- data/lib/stbaldricks/endpoints/fund.rb +24 -0
- data/lib/stbaldricks/endpoints/kid.rb +24 -0
- data/lib/stbaldricks/endpoints/kid_honor.rb +17 -0
- data/lib/stbaldricks/endpoints/lib/entity.rb +247 -0
- data/lib/stbaldricks/endpoints/message.rb +27 -0
- data/lib/stbaldricks/endpoints/newsletter_recipient.rb +41 -0
- data/lib/stbaldricks/endpoints/participant.rb +66 -0
- data/lib/stbaldricks/endpoints/photo.rb +51 -0
- data/lib/stbaldricks/endpoints/recurring_gift.rb +18 -0
- data/lib/stbaldricks/endpoints/search.rb +63 -0
- data/lib/stbaldricks/endpoints/shave_schedule.rb +28 -0
- data/lib/stbaldricks/endpoints/user.rb +106 -0
- data/lib/stbaldricks/entities/batch.rb +29 -0
- data/lib/stbaldricks/entities/campaign.rb +37 -0
- data/lib/stbaldricks/entities/communicate.rb +20 -0
- data/lib/stbaldricks/entities/config.rb +41 -0
- data/lib/stbaldricks/entities/contact.rb +40 -0
- data/lib/stbaldricks/entities/contact_group.rb +29 -0
- data/lib/stbaldricks/entities/document_library.rb +19 -0
- data/lib/stbaldricks/entities/document_library_category.rb +14 -0
- data/lib/stbaldricks/entities/donation.rb +372 -0
- data/lib/stbaldricks/entities/donation/donor_type.rb +13 -0
- data/lib/stbaldricks/entities/donation/how_created.rb +22 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +17 -0
- data/lib/stbaldricks/entities/donation/promo_code.rb +22 -0
- data/lib/stbaldricks/entities/donation/recipient_type.rb +17 -0
- data/lib/stbaldricks/entities/donation/special_donation_type.rb +78 -0
- data/lib/stbaldricks/entities/donation/status.rb +12 -0
- data/lib/stbaldricks/entities/donation/submitter_type.rb +13 -0
- data/lib/stbaldricks/entities/donor.rb +15 -0
- data/lib/stbaldricks/entities/event.rb +173 -0
- data/lib/stbaldricks/entities/event/fund_relationship_type.rb +15 -0
- data/lib/stbaldricks/entities/event/how_created.rb +14 -0
- data/lib/stbaldricks/entities/event/promo_code.rb +11 -0
- data/lib/stbaldricks/entities/event/status.rb +13 -0
- data/lib/stbaldricks/entities/event/sub_type.rb +16 -0
- data/lib/stbaldricks/entities/event/type.rb +12 -0
- data/lib/stbaldricks/entities/event_application.rb +135 -0
- data/lib/stbaldricks/entities/event_application/model_type.rb +15 -0
- data/lib/stbaldricks/entities/event_application/status.rb +23 -0
- data/lib/stbaldricks/entities/event_donation_summary.rb +18 -0
- data/lib/stbaldricks/entities/event_participant_summary.rb +17 -0
- data/lib/stbaldricks/entities/event_supporter.rb +24 -0
- data/lib/stbaldricks/entities/fund.rb +98 -0
- data/lib/stbaldricks/entities/fundraiser.rb +124 -0
- data/lib/stbaldricks/entities/international_partner.rb +58 -0
- data/lib/stbaldricks/entities/kid.rb +190 -0
- data/lib/stbaldricks/entities/kid_honor.rb +123 -0
- data/lib/stbaldricks/entities/lib/address.rb +25 -0
- data/lib/stbaldricks/entities/lib/base.rb +505 -0
- data/lib/stbaldricks/entities/lib/cacheable.rb +43 -0
- data/lib/stbaldricks/entities/lib/default_cacheable.rb +17 -0
- data/lib/stbaldricks/entities/lib/email_address.rb +15 -0
- data/lib/stbaldricks/entities/lib/error.rb +38 -0
- data/lib/stbaldricks/entities/lib/fundraising_page.rb +20 -0
- data/lib/stbaldricks/entities/lib/geo_location.rb +9 -0
- data/lib/stbaldricks/entities/lib/location.rb +27 -0
- data/lib/stbaldricks/entities/lib/name.rb +17 -0
- data/lib/stbaldricks/entities/lib/not_implemented_object.rb +32 -0
- data/lib/stbaldricks/entities/lib/opt_out_settings.rb +21 -0
- data/lib/stbaldricks/entities/lib/payment.rb +86 -0
- data/lib/stbaldricks/entities/lib/permissions.rb +33 -0
- data/lib/stbaldricks/entities/lib/phone.rb +29 -0
- data/lib/stbaldricks/entities/lib/third_party_media.rb +20 -0
- data/lib/stbaldricks/entities/lib/top_level.rb +99 -0
- data/lib/stbaldricks/entities/lib/venue.rb +18 -0
- data/lib/stbaldricks/entities/memorial.rb +61 -0
- data/lib/stbaldricks/entities/message.rb +65 -0
- data/lib/stbaldricks/entities/newsletter_recipient.rb +17 -0
- data/lib/stbaldricks/entities/organization.rb +90 -0
- data/lib/stbaldricks/entities/page.rb +49 -0
- data/lib/stbaldricks/entities/participant.rb +216 -0
- data/lib/stbaldricks/entities/person.rb +403 -0
- data/lib/stbaldricks/entities/photo.rb +260 -0
- data/lib/stbaldricks/entities/recurring_gift.rb +215 -0
- data/lib/stbaldricks/entities/response.rb +37 -0
- data/lib/stbaldricks/entities/search.rb +223 -0
- data/lib/stbaldricks/entities/section.rb +15 -0
- data/lib/stbaldricks/entities/shave_schedule.rb +69 -0
- data/lib/stbaldricks/entities/summary.rb +32 -0
- data/lib/stbaldricks/entities/team.rb +95 -0
- data/lib/stbaldricks/entities/user.rb +76 -0
- data/lib/stbaldricks/enums/country.rb +223 -0
- data/lib/stbaldricks/enums/feature.rb +29 -0
- data/lib/stbaldricks/enums/league_status.rb +16 -0
- data/lib/stbaldricks/enums/model_type.rb +39 -0
- data/lib/stbaldricks/enums/permission.rb +223 -0
- data/lib/stbaldricks/enums/permission_model_type.rb +21 -0
- data/lib/stbaldricks/enums/province.rb +39 -0
- data/lib/stbaldricks/enums/state.rb +137 -0
- data/lib/stbaldricks/enums/top_level_category_type.rb +25 -0
- data/lib/stbaldricks/errors.rb +18 -0
- data/lib/stbaldricks/log.rb +16 -0
- data/lib/stbaldricks/patches/array.rb +6 -0
- data/lib/stbaldricks/patches/boolean.rb +25 -0
- data/lib/stbaldricks/patches/class.rb +13 -0
- data/lib/stbaldricks/patches/float.rb +9 -0
- data/lib/stbaldricks/patches/hash.rb +16 -0
- data/lib/stbaldricks/patches/integer.rb +9 -0
- data/lib/stbaldricks/patches/nil.rb +25 -0
- data/lib/stbaldricks/patches/string.rb +54 -0
- data/lib/stbaldricks/request.rb +146 -0
- data/lib/stbaldricks/version.rb +5 -0
- metadata +215 -0
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module DonorType
|
7
|
+
INDIVIDUAL = 'individual'
|
8
|
+
BUSINESS = 'business'
|
9
|
+
ORGANIZATION_FOUNDATION = 'foundation'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module HowCreated
|
7
|
+
WEBSITE = 'website'
|
8
|
+
ADMIN_IMPORT = 'admin_import'
|
9
|
+
ADMIN_CONTROL_PANEL = 'admin_control_panel'
|
10
|
+
SUBMIT_CASH = 'submit_cash'
|
11
|
+
MOBILE = 'mobile'
|
12
|
+
PARTICIPANT_REGISTRATION = 'participant_registration'
|
13
|
+
FUNDRAISER_REGISTRATION = 'fundraiser_registration'
|
14
|
+
FAST_DONATION = 'fast_donation'
|
15
|
+
FAST_REGISTRATION = 'fast_registration'
|
16
|
+
RECURRING_GIFTS = 'recurring'
|
17
|
+
GIVE_ONCE = 'give_once'
|
18
|
+
DONATE = 'donate'
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module PaymentType
|
7
|
+
UNKNOWN = 'unknown'
|
8
|
+
CREDIT_CARD = 'credit_card'
|
9
|
+
CHECK = 'check'
|
10
|
+
CASH = 'cash'
|
11
|
+
MONEY_ORDER = 'money_order'
|
12
|
+
WIRE_TRANSFER = 'wire_transfer'
|
13
|
+
RECURRING_GIFTS = 'recurring'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module PromoCode
|
7
|
+
HOLIDAY_GIVING = 'holiday_giving'
|
8
|
+
IN_PLAY = 'in_play'
|
9
|
+
MOTHERS_DAY = 'mothers_day'
|
10
|
+
PHINEAS = 'phineas'
|
11
|
+
SEPTEMBER = 'september'
|
12
|
+
FALL_IMPACT = 'fall_impact'
|
13
|
+
GIVING_TUESDAY = 'giving_tuesday'
|
14
|
+
|
15
|
+
def self.to_a
|
16
|
+
# Defining the array explicitly, in order rather than const_getting since some things in website-ruby depend on the order
|
17
|
+
[HOLIDAY_GIVING, IN_PLAY, MOTHERS_DAY, PHINEAS, SEPTEMBER, FALL_IMPACT, GIVING_TUESDAY]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module RecipientType
|
7
|
+
FUND = 'fund'
|
8
|
+
EVENT = 'event'
|
9
|
+
TEAM = 'team'
|
10
|
+
PARTICIPANT = 'participant'
|
11
|
+
FUNDRAISER = 'fundraiser'
|
12
|
+
MEMORIAL = 'memorial'
|
13
|
+
SBF_GENERAL_FUND = 'sbf_general_fund'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module SpecialDonationType
|
7
|
+
NOT_APPLICABLE = 'not_applicable'
|
8
|
+
T_SHIRT = 't_shirt'
|
9
|
+
WRISTBAND = 'wristband'
|
10
|
+
LUCKY_CHARM = 'lucky_charm'
|
11
|
+
GENERAL_EVENT = 'general_event'
|
12
|
+
RAFFLE = 'raffle'
|
13
|
+
AUCTION = 'auction'
|
14
|
+
HAT_AND_SUNGLASSES = 'hat_and_sunglasses'
|
15
|
+
INTERNATIONAL = 'int'
|
16
|
+
INT_VI = 'int_vi'
|
17
|
+
INT_UK = 'int_uk'
|
18
|
+
INT_CA = 'int_ca'
|
19
|
+
INT_BM = 'int_bm'
|
20
|
+
INT_HK = 'int_hk'
|
21
|
+
NO_STATE = 'no_state'
|
22
|
+
AL = 'AL'
|
23
|
+
AK = 'AK'
|
24
|
+
AZ = 'AZ'
|
25
|
+
AR = 'AR'
|
26
|
+
CA = 'CA'
|
27
|
+
CO = 'CO'
|
28
|
+
CT = 'CT'
|
29
|
+
DC = 'DC'
|
30
|
+
DE = 'DE'
|
31
|
+
FL = 'FL'
|
32
|
+
GA = 'GA'
|
33
|
+
GU = 'GU'
|
34
|
+
HI = 'HI'
|
35
|
+
ID = 'ID'
|
36
|
+
IL = 'IL'
|
37
|
+
IN = 'IN'
|
38
|
+
IA = 'IA'
|
39
|
+
KS = 'KS'
|
40
|
+
KY = 'KY'
|
41
|
+
LA = 'LA'
|
42
|
+
ME = 'ME'
|
43
|
+
MD = 'MD'
|
44
|
+
MA = 'MA'
|
45
|
+
MI = 'MI'
|
46
|
+
MN = 'MN'
|
47
|
+
MS = 'MS'
|
48
|
+
MO = 'MO'
|
49
|
+
MT = 'MT'
|
50
|
+
NE = 'NE'
|
51
|
+
NV = 'NV'
|
52
|
+
NH = 'NH'
|
53
|
+
NJ = 'NJ'
|
54
|
+
NM = 'NM'
|
55
|
+
NY = 'NY'
|
56
|
+
NC = 'NC'
|
57
|
+
ND = 'ND'
|
58
|
+
OH = 'OH'
|
59
|
+
OK = 'OK'
|
60
|
+
OR = 'OR'
|
61
|
+
PA = 'PA'
|
62
|
+
PR = 'PR'
|
63
|
+
RI = 'RI'
|
64
|
+
SC = 'SC'
|
65
|
+
SD = 'SD'
|
66
|
+
TN = 'TN'
|
67
|
+
TX = 'TX'
|
68
|
+
UT = 'UT'
|
69
|
+
VT = 'VT'
|
70
|
+
VA = 'VA'
|
71
|
+
WA = 'WA'
|
72
|
+
WV = 'WV'
|
73
|
+
WI = 'WI'
|
74
|
+
WY = 'WY'
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donation < SBF::Client::TopLevelEntity
|
6
|
+
module SubmitterType
|
7
|
+
INDIVIDUAL = 'individual'
|
8
|
+
BUSINESS = 'business'
|
9
|
+
ORGANIZATION_FOUNDATION = 'foundation'
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Donor < SBF::Client::TopLevelEntity
|
6
|
+
action :find
|
7
|
+
action :find_first
|
8
|
+
|
9
|
+
attr_accessor :donor_name
|
10
|
+
attr_accessor :amount
|
11
|
+
attr_accessor :count
|
12
|
+
attr_accessor :donation_created_at
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
require 'stbaldricks/endpoints/event'
|
2
|
+
require 'stbaldricks/entities/fund'
|
3
|
+
require 'stbaldricks/entities/campaign'
|
4
|
+
require 'stbaldricks/entities/person'
|
5
|
+
require 'stbaldricks/entities/participant'
|
6
|
+
require 'stbaldricks/entities/shave_schedule'
|
7
|
+
require 'stbaldricks/entities/lib/top_level'
|
8
|
+
require 'stbaldricks/entities/lib/cacheable'
|
9
|
+
require 'stbaldricks/entities/lib/email_address'
|
10
|
+
require 'stbaldricks/entities/lib/fundraising_page'
|
11
|
+
require 'stbaldricks/entities/lib/name'
|
12
|
+
require 'stbaldricks/entities/lib/phone'
|
13
|
+
require 'stbaldricks/entities/lib/venue'
|
14
|
+
require 'stbaldricks/entities/lib/geo_location'
|
15
|
+
require 'stbaldricks/entities/lib/permissions'
|
16
|
+
require 'stbaldricks/entities/lib/third_party_media'
|
17
|
+
require 'htmlentities'
|
18
|
+
|
19
|
+
module SBF
|
20
|
+
module Client
|
21
|
+
class Event < SBF::Client::TopLevelEntity
|
22
|
+
include Entities::Cacheable
|
23
|
+
endpoint SBF::Client::EventEndpoint
|
24
|
+
actions DEFAULT_CRUD_ACTIONS
|
25
|
+
action :invite
|
26
|
+
|
27
|
+
cache_id -> { [id, year] }
|
28
|
+
cache_id_from_hash ->(h) { [h[:id], h[:event_year]] }
|
29
|
+
|
30
|
+
disallow_instantiation
|
31
|
+
|
32
|
+
def update(with = {})
|
33
|
+
endpoint.update(id, year, self, with)
|
34
|
+
end
|
35
|
+
|
36
|
+
class Photos < SBF::Client::BaseEntity
|
37
|
+
attr_reader :avatar, :default
|
38
|
+
end
|
39
|
+
|
40
|
+
class Contacts < SBF::Client::BaseEntity
|
41
|
+
class Contact < SBF::Client::BaseEntity
|
42
|
+
attr_reader :name
|
43
|
+
entity_attr_accessor :name_pieces, 'SBF::Client::NamePieces'
|
44
|
+
entity_attr_accessor :phone, 'SBF::Client::Phone'
|
45
|
+
entity_attr_accessor :email_address, 'SBF::Client::EmailAddress'
|
46
|
+
end
|
47
|
+
|
48
|
+
entity_attr_accessor :primary, 'SBF::Client::Event::Contacts::Contact'
|
49
|
+
entity_attr_accessor :secondary, 'SBF::Client::Event::Contacts::Contact'
|
50
|
+
end
|
51
|
+
|
52
|
+
class Activity < SBF::Client::BaseEntity
|
53
|
+
attr_reader :id
|
54
|
+
entity_attr_accessor :event, 'SBF::Client::FullEvent', 'SBF::Client::PartialEvent', true
|
55
|
+
attr_accessor :start_time
|
56
|
+
attr_accessor :end_time
|
57
|
+
attr_accessor :activity
|
58
|
+
attr_accessor :sort_order
|
59
|
+
end
|
60
|
+
|
61
|
+
class CoachTracking < SBF::Client::BaseEntity
|
62
|
+
class Proceeds < SBF::Client::BaseEntity
|
63
|
+
attr_accessor :received_date, :notification_email_sent_date
|
64
|
+
end
|
65
|
+
|
66
|
+
class CoachingInteractions < SBF::Client::BaseEntity
|
67
|
+
attr_accessor :introductory_conversation_date, :post_event_conversation_date
|
68
|
+
end
|
69
|
+
|
70
|
+
class Plaque < SBF::Client::BaseEntity
|
71
|
+
attr_accessor :issued_to, :sent_date
|
72
|
+
end
|
73
|
+
|
74
|
+
attr_accessor :host_agreement_date, :activated_date, :proceeds, :coaching_interactions, :plaque
|
75
|
+
entity_attr_accessor :proceeds, 'SBF::Client::Event::CoachTracking::Proceeds'
|
76
|
+
entity_attr_accessor :coaching_interactions, 'SBF::Client::Event::CoachTracking::CoachingInteractions'
|
77
|
+
entity_attr_accessor :plaque, 'SBF::Client::Event::CoachTracking::Plaque'
|
78
|
+
end
|
79
|
+
|
80
|
+
class Totals < SBF::Client::BaseEntity
|
81
|
+
attr_reader :fundraisers, :participants, :shavees, :amount_raised
|
82
|
+
attr_reader :current_year_ytd, :previous_year_ytd, :previous_year_total
|
83
|
+
attr_reader :current_year_shavees_ytd, :previous_year_shavees_ytd, :previous_year_shavees_total
|
84
|
+
end
|
85
|
+
|
86
|
+
class Agreement < SBF::Client::BaseEntity
|
87
|
+
module Checkbox
|
88
|
+
CHECKED = 1
|
89
|
+
end
|
90
|
+
|
91
|
+
module AmentityAnswerOption
|
92
|
+
NONE = 0
|
93
|
+
PROVIDED_BY_VENUE = 1
|
94
|
+
ARRANGED_FOR_BY_ORGANIZER_OR_TEAM = 2
|
95
|
+
DONATED = 3
|
96
|
+
end
|
97
|
+
|
98
|
+
class Question < SBF::Client::BaseEntity
|
99
|
+
attr_accessor :question_id, :question, :answer
|
100
|
+
end
|
101
|
+
|
102
|
+
attr_accessor :agreement_received_date
|
103
|
+
entity_collection_attr_accessor :questions, 'SBF::Client::Event::Agreement::Question'
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
class PartialEvent < Event
|
108
|
+
attr_accessor :id, :year
|
109
|
+
|
110
|
+
# TODO: Having this check be different between partial/full is bad and should be fixed.
|
111
|
+
def virtual?
|
112
|
+
(id == 1)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
class FullEvent < Event
|
117
|
+
attr_accessor :id, :year
|
118
|
+
attr_accessor :status
|
119
|
+
attr_reader :display_name
|
120
|
+
attr_accessor :event_title
|
121
|
+
attr_accessor :type
|
122
|
+
attr_accessor :sub_type
|
123
|
+
attr_accessor :is_private
|
124
|
+
attr_accessor :date, :is_date_confirmed
|
125
|
+
attr_accessor :start_time, :end_time, :is_time_confirmed
|
126
|
+
attr_accessor :is_open_for_registration, :is_open_for_fast_registration
|
127
|
+
attr_accessor :offline_donation_uuid, :offline_donation_form
|
128
|
+
attr_accessor :fundraising_goal, :fundraising_message
|
129
|
+
entity_attr_accessor :geo_location, 'SBF::Client::GeoLocation'
|
130
|
+
entity_attr_accessor :fundraising_page, 'SBF::Client::FundraisingPage', nil, true
|
131
|
+
entity_attr_accessor :campaign, 'SBF::Client::FullCampaign', 'SBF::Client::PartialCampaign', true
|
132
|
+
entity_attr_accessor :fund, 'SBF::Client::FullFund', 'SBF::Client::PartialFund', true
|
133
|
+
entity_attr_accessor :venue, 'SBF::Client::Venue'
|
134
|
+
entity_attr_accessor :photos, 'SBF::Client::Event::Photos'
|
135
|
+
entity_attr_accessor :contacts, 'SBF::Client::Event::Contacts', nil, true
|
136
|
+
entity_attr_accessor :coach_tracking, 'SBF::Client::Event::CoachTracking'
|
137
|
+
entity_attr_accessor :shave_schedule, 'SBF::Client::ShaveSchedule', nil, true
|
138
|
+
entity_attr_reader :totals, 'SBF::Client::Event::Totals', nil, true
|
139
|
+
entity_attr_accessor :coach, 'SBF::Client::FullPerson', nil, true
|
140
|
+
entity_collection_attr_accessor :closed_roles, 'SBF::Client::Participant::Roles::Type', nil, true
|
141
|
+
attr_reader :created_at, :modified_at
|
142
|
+
attr_accessor :modified_by
|
143
|
+
attr_accessor :how_created
|
144
|
+
attr_accessor :promotional_code
|
145
|
+
entity_attr_reader :permissions, 'SBF::Client::Permissions', nil, true
|
146
|
+
entity_attr_reader :agreement, 'SBF::Client::Event::Agreement', nil, true
|
147
|
+
entity_collection_attr_accessor :organizers, 'SBF::Client::FullParticipant', nil, true
|
148
|
+
entity_collection_attr_accessor :activities, 'SBF::Client::Event::Activity', nil, true
|
149
|
+
entity_attr_accessor :third_party_media, 'SBF::Client::ThirdPartyMedia', nil, true
|
150
|
+
entity_collection_attr_accessor :supporters, 'SBF::Client::FullEventSupporter', nil, true
|
151
|
+
|
152
|
+
def active?
|
153
|
+
status == SBF::Client::Event::Status::ACTIVE
|
154
|
+
end
|
155
|
+
|
156
|
+
def virtual?
|
157
|
+
(id == 1) && (sub_type == SBF::Client::Event::SubType::VIRTUAL)
|
158
|
+
end
|
159
|
+
|
160
|
+
def open_for_registration?
|
161
|
+
is_open_for_registration
|
162
|
+
end
|
163
|
+
|
164
|
+
def open_for_fast_registration?
|
165
|
+
is_open_for_fast_registration
|
166
|
+
end
|
167
|
+
|
168
|
+
def display_name
|
169
|
+
HTMLEntities.new.decode(@display_name)
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Event < SBF::Client::TopLevelEntity
|
6
|
+
module FundRelationshipType
|
7
|
+
NO_ASSOCIATION = 'no_association'
|
8
|
+
INDIRECT_ONE = 'indirect_one'
|
9
|
+
INDIRECT_MULTIPLE = 'indirect_multiple'
|
10
|
+
DIRECT = 'direct'
|
11
|
+
DIRECT_BUT_LOCKED = 'direct_but_locked'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'stbaldricks/entities/lib/top_level'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class Event < SBF::Client::TopLevelEntity
|
6
|
+
module HowCreated
|
7
|
+
WEBSITE = 'website'
|
8
|
+
ADMIN_CONTROL_PANEL = 'admin_control_panel'
|
9
|
+
ADMIN_IMPORT = 'admin_import'
|
10
|
+
LEGACY = 'legacy'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|