stbaldricks 12.2.2.alpha.1 → 12.4.0.alpha.1

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: b6b06880d87b41ca451e513e1bac494a43a15105a05d52886c9366c82a01e11e
4
- data.tar.gz: 05bef7f96bea609148ca0fc3bbc0fd7cca1de61a238c060a1f2bdac7a42491d7
3
+ metadata.gz: e0399d45f772ba00c4c57be1425f323a8709f538aa71aa833a8e55b9f491ec6e
4
+ data.tar.gz: 57ee2d0d2d7e70ececb26dd446f9e43d1015babd3c83d89c3d9b3cb697756b4c
5
5
  SHA512:
6
- metadata.gz: f3bd0496ffe9f98050bd49a8ac7c03fbbc5d139d472894359cdb6d499a9d182099525f69d899b0e6e63afdb959629075e24a2ead98b2a9d37be80ec47c9255ff
7
- data.tar.gz: d5226ae54647c5006877663560dbdd2834e0a0cbb1f6324580635d53063e0f917a07a988bb1e5dc529bc842dd949c061b292a5ca152460b0d6f018f6c8e57596
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
@@ -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.2.2.alpha.1'.freeze
3
+ VERSION = '12.4.0.alpha.1'.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.2.2.alpha.1
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-01-28 00:00:00.000000000 Z
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