stbaldricks 12.3.1.alpha.1 → 12.4.0.alpha.2

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: 4bcf64a14b2d045c9189ab0a9731f2d95d9808b0cb879bf0db4d1130ba5fa404
4
- data.tar.gz: b80570cb25f9e5abe79566c165941e89d4376b4498f1d861ae36f93feea6d80b
3
+ metadata.gz: 332b53e9d20f3b6bbb07016b6d752ae74d05b64d2d11c7651e10ea1837eabeb0
4
+ data.tar.gz: e94ff3ecdfed651feddee672a9999cf1da91512abeeb66d7ca5bdf514ba34e88
5
5
  SHA512:
6
- metadata.gz: 8b7a415ead27a2159a70f9b81bbe834d73198a821ccb04bea55682e2619686bd338ceb54b2885ce8a27298b9a47f393cc4138ac083e825975d0c349914c197a9
7
- data.tar.gz: 3e6c9c92d6460ccf74d3a47adc43201c0b4a280574fad34a073b91c637ee8d390c3c457d8fdf62403465d35060df697465cda5651c1632df5376b74e73b67b6d
6
+ metadata.gz: fe52f1e5bd5ba4c30d66871e7e69ad922a55058cc8b18a1209c98f65450256ce73329abd189f10e9e0d25f8c8a5107e28e51536cde99b7b79f8ede9f5d78e67c
7
+ data.tar.gz: d2b05c85488e28dc146439e63a459baa6e364ea54840720aa3661d67c86ff780d725733bf4af48e9a793f1f0ce4db9ce6878403843a40a7f7826efb9f4610eea
@@ -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.alpha.1'.freeze
3
+ VERSION = '12.4.0.alpha.2'.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.alpha.1
4
+ version: 12.4.0.alpha.2
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
@@ -563,7 +564,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
563
564
  - !ruby/object:Gem::Version
564
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