stbaldricks 12.3.1 → 12.4.0.alpha.3
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: 037abd352030c5bf265a0bb6875f19236d97b8469f7bf6c782a9e9d973ec016c
|
4
|
+
data.tar.gz: 1b5dffcf857a8a46132b55111e92ce34bd529ca372ebb5f054b6677b8d9fe952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6090dc0fd5514796fbad1da58516e82ffaf50f85bdb3d9fea6347ca64185c4a2ba47fbed8b810546871a9472a4464c8a81f9a1f5756dbaba49a7effcb188d244
|
7
|
+
data.tar.gz: f60c3e095a45a8421f743774e6c4c1ba821e3f59e70894926be9516b2f6d7474d520b2330d920b8fedd3e3c1c894c91b982c6b9e5d2d076e4266984933e0bf26
|
@@ -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.3
|
4
|
+
version: 12.4.0.alpha.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 5.2.4.
|
19
|
+
version: 5.2.4.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 5.2.4.
|
26
|
+
version: 5.2.4.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: htmlentities
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -426,6 +426,7 @@ files:
|
|
426
426
|
- lib/stbaldricks/entities/team.rb
|
427
427
|
- lib/stbaldricks/entities/user.rb
|
428
428
|
- lib/stbaldricks/enums/cancer_types.rb
|
429
|
+
- lib/stbaldricks/enums/contact_us_subjects.rb
|
429
430
|
- lib/stbaldricks/enums/country.rb
|
430
431
|
- lib/stbaldricks/enums/feature.rb
|
431
432
|
- lib/stbaldricks/enums/league_status.rb
|
@@ -559,11 +560,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
559
560
|
version: '0'
|
560
561
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
561
562
|
requirements:
|
562
|
-
- - "
|
563
|
+
- - ">"
|
563
564
|
- !ruby/object:Gem::Version
|
564
|
-
version:
|
565
|
+
version: 1.3.1
|
565
566
|
requirements: []
|
566
|
-
rubygems_version: 3.
|
567
|
+
rubygems_version: 3.1.6
|
567
568
|
signing_key:
|
568
569
|
specification_version: 4
|
569
570
|
summary: St. Baldrick's Foundation Ruby Client Library
|