stbaldricks 12.2.2.alpha.1 → 12.4.0.alpha.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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0399d45f772ba00c4c57be1425f323a8709f538aa71aa833a8e55b9f491ec6e
|
4
|
+
data.tar.gz: 57ee2d0d2d7e70ececb26dd446f9e43d1015babd3c83d89c3d9b3cb697756b4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ddc0e18e2b0e124d2fcb59e8a70d0c3077c22ba6ca046ac9db530374cde2d2b9e2d07a7925eab02867444678fe468ffbb668a7689f991c3311586e38d564749
|
7
|
+
data.tar.gz: 314c643eec66e8a73b3c1e169245f10019ec66dd5bcbaccad8dfa3eab9fbdc06c8860bc0f5bd969c66a691c1d1c3babeca1f0fd000aba3703d591bea1c85d948
|
@@ -22,6 +22,24 @@ module SBF
|
|
22
22
|
|
23
23
|
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
24
24
|
end
|
25
|
+
|
26
|
+
# rubocop:disable Metrics/ParameterLists
|
27
|
+
def send_contact_us_message(name, sender_email, phone, subject, body, sender_profile_id)
|
28
|
+
response = SBF::Client::Api::Request.post_request(
|
29
|
+
"#{base_uri}/send_contact_us_message",
|
30
|
+
name: name,
|
31
|
+
sender_email: sender_email,
|
32
|
+
phone: phone,
|
33
|
+
subject: subject,
|
34
|
+
body: body,
|
35
|
+
sender_profile_id: sender_profile_id
|
36
|
+
)
|
37
|
+
|
38
|
+
error = SBF::Client::ErrorEntity.new(response) unless ok?(response)
|
39
|
+
|
40
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
41
|
+
end
|
42
|
+
# rubocop:enable Metrics/ParameterLists
|
25
43
|
end
|
26
44
|
end
|
27
45
|
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
module ContactUsSubjects
|
6
|
+
MY_DONATION = 'MY_DONATION'
|
7
|
+
MY_REGISTRATION = 'MY_REGISTRATION'
|
8
|
+
THE_WEBSITE = 'THE_WEBSITE'
|
9
|
+
ORGANIZING_AN_EVENT = 'ORGANIZING_AN_EVENT'
|
10
|
+
AN_HONORED_CHILD = 'AN_HONORED_CHILD'
|
11
|
+
A_MEDIA_INQUIRY = 'A_MEDIA_INQUIRY'
|
12
|
+
GENERAL_INFORMATION = 'GENERAL_INFORMATION'
|
13
|
+
GRANTS = 'GRANTS'
|
14
|
+
PARTNERSHIPS = 'PARTNERSHIPS'
|
15
|
+
MISSING_DATA = 'MISSING_DATA'
|
16
|
+
|
17
|
+
@list = {
|
18
|
+
MY_DONATION => 'My Donation',
|
19
|
+
MY_REGISTRATION => 'My Registration',
|
20
|
+
THE_WEBSITE => 'The Website',
|
21
|
+
ORGANIZING_AN_EVENT => 'Organizing an event',
|
22
|
+
AN_HONORED_CHILD => 'An Honored Child',
|
23
|
+
A_MEDIA_INQUIRY => 'A Media Inquiry',
|
24
|
+
GENERAL_INFORMATION => 'General Information',
|
25
|
+
GRANTS => 'Grants',
|
26
|
+
PARTNERSHIPS => 'Partnerships',
|
27
|
+
MISSING_DATA => 'Missing Data'
|
28
|
+
}.freeze
|
29
|
+
|
30
|
+
class << self
|
31
|
+
attr_reader :list
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/stbaldricks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stbaldricks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.4.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -424,6 +424,7 @@ files:
|
|
424
424
|
- lib/stbaldricks/entities/team.rb
|
425
425
|
- lib/stbaldricks/entities/user.rb
|
426
426
|
- lib/stbaldricks/enums/cancer_types.rb
|
427
|
+
- lib/stbaldricks/enums/contact_us_subjects.rb
|
427
428
|
- lib/stbaldricks/enums/country.rb
|
428
429
|
- lib/stbaldricks/enums/feature.rb
|
429
430
|
- lib/stbaldricks/enums/league_status.rb
|