stbaldricks 12.3.1 → 12.4.0.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec014171b4d2d99e1b9785284c8430353741baccdb1e1f4b2eeb6c9e20f007fa
4
- data.tar.gz: f672a5f8ca03cfa0d7b7b18fb0f5b389e271eb354e3815b52dcacd076e29f878
3
+ metadata.gz: 037abd352030c5bf265a0bb6875f19236d97b8469f7bf6c782a9e9d973ec016c
4
+ data.tar.gz: 1b5dffcf857a8a46132b55111e92ce34bd529ca372ebb5f054b6677b8d9fe952
5
5
  SHA512:
6
- metadata.gz: e08d85a7e2d6ca03ad500846b0798bcf7a2355602fee9aeb802199b1e9b056150fc2b97eee25d01311299cdf7b7b28e27a437367b284080efa58a8cfdfffbe24
7
- data.tar.gz: 0df7991c3523995935860f0748885f8905e81a7d8d940aaf77c346ca045b9c61ad2bda53c9a071c567fffe0569dfabe345f084e474cc9b31c1453f3549832ae0
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
@@ -12,6 +12,7 @@ module SBF
12
12
  actions DEFAULT_CRUD_ACTIONS
13
13
  action :mark_as_read
14
14
  action :mark_as_unread
15
+ action :send_contact_us_message
15
16
 
16
17
  module Type
17
18
  MEMBERS_COMMUNICATION = 'members_communication'.freeze
@@ -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
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.3.1'.freeze
3
+ VERSION = '12.4.0.alpha.3'.freeze
4
4
  end
5
5
  end
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.1
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-26 00:00:00.000000000 Z
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.5
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.5
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: '0'
565
+ version: 1.3.1
565
566
  requirements: []
566
- rubygems_version: 3.0.3.1
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