stbaldricks 12.3.0 → 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: 3c031b82545a452644e576d669071e387a8d9b0523943fb8e5bfa0c4d9e22788
4
- data.tar.gz: 6d7e6874655bffb32f6e64030b45605adfcb0a881916615bfbc805fbff47f197
3
+ metadata.gz: e0399d45f772ba00c4c57be1425f323a8709f538aa71aa833a8e55b9f491ec6e
4
+ data.tar.gz: 57ee2d0d2d7e70ececb26dd446f9e43d1015babd3c83d89c3d9b3cb697756b4c
5
5
  SHA512:
6
- metadata.gz: 1e6e2a26dcd90a49135dde10e918a9f1352690393d8c7951787f47ebc4115a017d3f129700042c4c9294a75b83f4e430d54be19f5e8298753e9030569132192f
7
- data.tar.gz: 913b334fc9593a628e592283aeaefa7b126e3f73ba9ad05c08ebd81332eb2c124624db70b5881017279c95500384d3297a5d8f1241acf11158e22e774189f725
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.3.0'.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.3.0
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-02-04 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
@@ -557,9 +558,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
557
558
  version: '0'
558
559
  required_rubygems_version: !ruby/object:Gem::Requirement
559
560
  requirements:
560
- - - ">="
561
+ - - ">"
561
562
  - !ruby/object:Gem::Version
562
- version: '0'
563
+ version: 1.3.1
563
564
  requirements: []
564
565
  rubygems_version: 3.0.3.1
565
566
  signing_key:
@@ -567,99 +568,99 @@ specification_version: 4
567
568
  summary: St. Baldrick's Foundation Ruby Client Library
568
569
  test_files:
569
570
  - lib/stbaldricks_factories.rb
570
- - spec/factories/photo.rb
571
- - spec/factories/participant.rb
572
- - spec/factories/search_team.rb
573
- - spec/factories/fund.rb
574
- - spec/factories/kid_institution.rb
571
+ - spec/factories/participant/rankings.rb
572
+ - spec/factories/participant/photos.rb
573
+ - spec/factories/participant/roles/role.rb
574
+ - spec/factories/participant/policies.rb
575
+ - spec/factories/participant/totals.rb
576
+ - spec/factories/participant/roles.rb
577
+ - spec/factories/participant/rankings/ranking.rb
578
+ - spec/factories/search_fundraiser.rb
579
+ - spec/factories/newsletter_recipient.rb
575
580
  - spec/factories/phone.rb
581
+ - spec/factories/contact_group.rb
582
+ - spec/factories/fundraiser/photos.rb
583
+ - spec/factories/fundraiser/policies.rb
584
+ - spec/factories/fundraiser/totals.rb
585
+ - spec/factories/team.rb
586
+ - spec/factories/venue.rb
587
+ - spec/factories/recurring_gift.rb
588
+ - spec/factories/donation/participant.rb
589
+ - spec/factories/error.rb
590
+ - spec/factories/grant_institution.rb
591
+ - spec/factories/page.rb
592
+ - spec/factories/grant.rb
593
+ - spec/factories/search_team.rb
594
+ - spec/factories/search_participant.rb
595
+ - spec/factories/name_pieces.rb
596
+ - spec/factories/researcher.rb
597
+ - spec/factories/photos.rb
598
+ - spec/factories/donor.rb
576
599
  - spec/factories/diagnosis.rb
577
- - spec/factories/location.rb
578
- - spec/factories/event_application.rb
600
+ - spec/factories/kid_institution.rb
601
+ - spec/factories/message.rb
579
602
  - spec/factories/search_event.rb
580
- - spec/factories/shave_schedule/time_selection_permissions.rb
581
- - spec/factories/collection.rb
603
+ - spec/factories/photo.rb
582
604
  - spec/factories/event.rb
583
- - spec/factories/challenger.rb
584
- - spec/factories/campaign/totals.rb
585
- - spec/factories/kid_honor.rb
586
- - spec/factories/response.rb
587
- - spec/factories/grant_institution.rb
588
605
  - spec/factories/organization.rb
589
- - spec/factories/researcher.rb
590
- - spec/factories/treatment_status.rb
591
- - spec/factories/event/totals.rb
592
- - spec/factories/event/contacts.rb
593
- - spec/factories/event/photos.rb
594
- - spec/factories/event/venue/location.rb
595
- - spec/factories/event/venue/social.rb
596
- - spec/factories/event/coach_tracking.rb
597
- - spec/factories/event/venue.rb
598
- - spec/factories/event/coach_tracking/coaching_interactions.rb
599
- - spec/factories/event/coach_tracking/proceeds.rb
600
- - spec/factories/event/coach_tracking/plaque.rb
601
- - spec/factories/event/contacts/name_pieces.rb
602
- - spec/factories/event/contacts/contact.rb
603
- - spec/factories/fundraiser/totals.rb
604
- - spec/factories/fundraiser/policies.rb
605
- - spec/factories/fundraiser/photos.rb
606
- - spec/factories/shave_schedule.rb
607
- - spec/factories/event_supporter.rb
608
- - spec/factories/participant/totals.rb
609
- - spec/factories/participant/policies.rb
610
- - spec/factories/participant/roles/role.rb
611
- - spec/factories/participant/photos.rb
612
- - spec/factories/participant/rankings.rb
613
- - spec/factories/participant/rankings/ranking.rb
614
- - spec/factories/participant/roles.rb
615
- - spec/factories/error.rb
616
- - spec/factories/recurring_gift.rb
617
- - spec/factories/challenge.rb
618
- - spec/factories/address.rb
606
+ - spec/factories/campaign.rb
619
607
  - spec/factories/kid/custom_institution.rb
620
- - spec/factories/person.rb
621
- - spec/factories/search_participant.rb
622
- - spec/factories/milestone.rb
623
608
  - spec/factories/fundraising_page.rb
624
- - spec/factories/photos.rb
625
- - spec/factories/team/totals.rb
626
- - spec/factories/team/photos.rb
627
- - spec/factories/team/rankings.rb
628
- - spec/factories/team/rankings/ranking.rb
629
- - spec/factories/donation.rb
630
- - spec/factories/memorial.rb
609
+ - spec/factories/contact.rb
610
+ - spec/factories/event_application.rb
611
+ - spec/factories/location.rb
612
+ - spec/factories/response.rb
613
+ - spec/factories/kid.rb
614
+ - spec/factories/challenger.rb
615
+ - spec/factories/treatment_status.rb
631
616
  - spec/factories/institution.rb
632
- - spec/factories/memorial/totals.rb
633
- - spec/factories/memorial/tribute.rb
634
- - spec/factories/memorial/photos.rb
617
+ - spec/factories/lib/helpers.rb
618
+ - spec/factories/lib/faker_patch.rb
619
+ - spec/factories/shave_schedule.rb
620
+ - spec/factories/address.rb
621
+ - spec/factories/shave_schedule/time_selection_permissions.rb
622
+ - spec/factories/person/phone_numbers.rb
635
623
  - spec/factories/person/policies.rb
636
624
  - spec/factories/person/addresses.rb
637
- - spec/factories/person/phone_numbers.rb
638
625
  - spec/factories/person/email_addresses.rb
639
- - spec/factories/donor.rb
640
- - spec/factories/kid.rb
641
- - spec/factories/name_pieces.rb
642
- - spec/factories/team.rb
643
- - spec/factories/user.rb
626
+ - spec/factories/collection.rb
627
+ - spec/factories/fundraiser.rb
628
+ - spec/factories/email_address.rb
629
+ - spec/factories/third_party_media.rb
630
+ - spec/factories/donation.rb
631
+ - spec/factories/person.rb
632
+ - spec/factories/team/rankings.rb
633
+ - spec/factories/team/photos.rb
634
+ - spec/factories/team/totals.rb
635
+ - spec/factories/team/rankings/ranking.rb
636
+ - spec/factories/kid_honor.rb
644
637
  - spec/factories/disease.rb
638
+ - spec/factories/payment.rb
645
639
  - spec/factories/search_kid.rb
646
- - spec/factories/page.rb
647
- - spec/factories/venue.rb
648
- - spec/factories/organization/addresses.rb
640
+ - spec/factories/user.rb
641
+ - spec/factories/campaign/totals.rb
649
642
  - spec/factories/organization/phone_numbers.rb
643
+ - spec/factories/organization/addresses.rb
650
644
  - spec/factories/organization/email_addresses.rb
651
- - spec/factories/lib/faker_patch.rb
652
- - spec/factories/lib/helpers.rb
653
- - spec/factories/newsletter_recipient.rb
654
- - spec/factories/payment.rb
655
- - spec/factories/contact.rb
656
- - spec/factories/message.rb
657
- - spec/factories/search_fundraiser.rb
658
- - spec/factories/third_party_media.rb
659
- - spec/factories/donation/participant.rb
660
- - spec/factories/grant.rb
661
- - spec/factories/fundraiser.rb
662
- - spec/factories/contact_group.rb
663
- - spec/factories/email_address.rb
645
+ - spec/factories/fund.rb
646
+ - spec/factories/milestone.rb
647
+ - spec/factories/memorial.rb
648
+ - spec/factories/challenge.rb
649
+ - spec/factories/event/contacts.rb
650
+ - spec/factories/event/venue.rb
651
+ - spec/factories/event/coach_tracking/proceeds.rb
652
+ - spec/factories/event/coach_tracking/plaque.rb
653
+ - spec/factories/event/coach_tracking/coaching_interactions.rb
654
+ - spec/factories/event/photos.rb
655
+ - spec/factories/event/coach_tracking.rb
656
+ - spec/factories/event/contacts/name_pieces.rb
657
+ - spec/factories/event/contacts/contact.rb
658
+ - spec/factories/event/venue/location.rb
659
+ - spec/factories/event/venue/social.rb
660
+ - spec/factories/event/totals.rb
661
+ - spec/factories/participant.rb
662
+ - spec/factories/event_supporter.rb
663
+ - spec/factories/memorial/photos.rb
664
+ - spec/factories/memorial/totals.rb
665
+ - spec/factories/memorial/tribute.rb
664
666
  - spec/factories/permissions.rb
665
- - spec/factories/campaign.rb