stbaldricks 12.12.0 → 12.13.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: d02819f8acc7f8c7feac0bbe0208b2abd20bc8077a5126e95d20119d7132d768
4
- data.tar.gz: 26f43c53a869711e1891e9c450dbb50963830dbc9909365dc5c1aab4d5d3c2c1
3
+ metadata.gz: b0b2e60b416d7ca4badb0f0f513c88fea4a2cb95fdbc21dc156d3961cbb66561
4
+ data.tar.gz: 463f554fc38e1ca5143b0e6647e0fcd18f625ed3276fbbbea590f475a964c5c0
5
5
  SHA512:
6
- metadata.gz: 54866211921b359cfd993abce7689813b56a726ce8ac838e48faa5c51cac037c2f09decfebaeca5391f97882c5891af7a31c7e913eb346e8e9321d855ff34a28
7
- data.tar.gz: 48785dbb05cc04fc6320e579f99f02061315a459de7f9dc2ba956fd06b34370010f7224aef27630f0493c7939441c6e7b7264ac078fd013feaecf804b3ddb38e
6
+ metadata.gz: f88d6d38f27ce3a7c8cb8a50ca5c371210389f80138758ccf7fada2c2f78deb6c21521a65ba7a68d7b095f32c57c008cb95b27d90d1f190bab2ae562869ce9a8
7
+ data.tar.gz: effac8958624769f3668274e0db21474925e14cf7e66c04851173d63c87a901136674aec30d0035ad3f276a80a70b6a93c585f8d79f529e1953a6630f966f056
@@ -23,6 +23,7 @@ module SBF
23
23
  SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
24
24
  end
25
25
 
26
+ # Contact Us Form - SBF Notification Message
26
27
  # rubocop:disable Metrics/ParameterLists
27
28
  def send_contact_us_message(name, sender_email, phone, subject, body, sender_profile_id)
28
29
  response = SBF::Client::Api::Request.post_request(
@@ -40,6 +41,25 @@ module SBF
40
41
  SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
41
42
  end
42
43
  # rubocop:enable Metrics/ParameterLists
44
+
45
+ # Contact Us Form - Submitter Response Message
46
+ # rubocop:disable Metrics/ParameterLists
47
+ def send_contact_us_response_message(name, sender_email, phone, subject, body, sender_profile_id)
48
+ response = SBF::Client::Api::Request.post_request(
49
+ "#{base_uri}/send_contact_us_response_message",
50
+ name: name,
51
+ sender_email: sender_email,
52
+ phone: phone,
53
+ subject: subject,
54
+ body: body,
55
+ sender_profile_id: sender_profile_id
56
+ )
57
+
58
+ error = SBF::Client::ErrorEntity.new(response) unless ok?(response)
59
+
60
+ SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
61
+ end
62
+ # rubocop:enable Metrics/ParameterLists
43
63
  end
44
64
  end
45
65
  end
@@ -92,6 +92,7 @@ module SBF
92
92
  attr_reader :fundraisers, :participants, :shavees, :amount_raised
93
93
  attr_reader :current_year_ytd, :previous_year_ytd, :previous_year_total
94
94
  attr_reader :current_year_shavees_ytd, :previous_year_shavees_ytd, :previous_year_shavees_total
95
+ attr_reader :cumulative_number_of_participants, :cumulative_number_of_shavees, :cumulative_fundraising, :number_of_active_event_years
95
96
  end
96
97
 
97
98
  class Agreement < SBF::Client::BaseEntity
@@ -13,6 +13,7 @@ module SBF
13
13
  action :mark_as_read
14
14
  action :mark_as_unread
15
15
  action :send_contact_us_message
16
+ action :send_contact_us_response_message
16
17
 
17
18
  module Type
18
19
  MEMBERS_COMMUNICATION = 'members_communication'.freeze
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.12.0'.freeze
3
+ VERSION = '12.13.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.12.0
4
+ version: 12.13.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: 2023-03-20 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
563
563
  version: '0'
564
564
  required_rubygems_version: !ruby/object:Gem::Requirement
565
565
  requirements:
566
- - - ">="
566
+ - - ">"
567
567
  - !ruby/object:Gem::Version
568
- version: '0'
568
+ version: 1.3.1
569
569
  requirements: []
570
570
  rubygems_version: 3.0.3.1
571
571
  signing_key:
@@ -573,99 +573,99 @@ specification_version: 4
573
573
  summary: St. Baldrick's Foundation Ruby Client Library
574
574
  test_files:
575
575
  - lib/stbaldricks_factories.rb
576
- - spec/factories/organization/addresses.rb
577
- - spec/factories/organization/email_addresses.rb
578
- - spec/factories/organization/phone_numbers.rb
579
- - spec/factories/payment.rb
580
- - spec/factories/fundraising_page.rb
581
- - spec/factories/donation/participant.rb
582
- - spec/factories/challenge.rb
583
- - spec/factories/kid_institution.rb
584
- - spec/factories/memorial/totals.rb
585
- - spec/factories/memorial/photos.rb
586
- - spec/factories/memorial/tribute.rb
587
- - spec/factories/search_kid.rb
588
- - spec/factories/contact.rb
589
- - spec/factories/researcher.rb
590
- - spec/factories/photos.rb
591
- - spec/factories/challenger.rb
592
- - spec/factories/name_pieces.rb
593
- - spec/factories/milestone.rb
594
- - spec/factories/person/policies.rb
595
- - spec/factories/person/addresses.rb
596
- - spec/factories/person/email_addresses.rb
597
- - spec/factories/person/phone_numbers.rb
598
- - spec/factories/participant/policies.rb
599
- - spec/factories/participant/totals.rb
576
+ - spec/factories/participant/rankings.rb
600
577
  - spec/factories/participant/photos.rb
601
578
  - spec/factories/participant/roles/role.rb
602
- - spec/factories/participant/rankings/ranking.rb
603
- - spec/factories/participant/rankings.rb
579
+ - spec/factories/participant/policies.rb
580
+ - spec/factories/participant/totals.rb
604
581
  - spec/factories/participant/roles.rb
605
- - spec/factories/donation.rb
606
- - spec/factories/third_party_media.rb
607
- - spec/factories/search_team.rb
608
- - spec/factories/permissions.rb
609
- - spec/factories/photo.rb
610
- - spec/factories/collection.rb
611
- - spec/factories/campaign.rb
582
+ - spec/factories/participant/rankings/ranking.rb
583
+ - spec/factories/search_fundraiser.rb
584
+ - spec/factories/newsletter_recipient.rb
585
+ - spec/factories/phone.rb
586
+ - spec/factories/contact_group.rb
587
+ - spec/factories/fundraiser/photos.rb
588
+ - spec/factories/fundraiser/policies.rb
589
+ - spec/factories/fundraiser/totals.rb
590
+ - spec/factories/team.rb
591
+ - spec/factories/venue.rb
592
+ - spec/factories/recurring_gift.rb
593
+ - spec/factories/donation/participant.rb
594
+ - spec/factories/error.rb
595
+ - spec/factories/grant_institution.rb
596
+ - spec/factories/page.rb
612
597
  - spec/factories/grant.rb
613
- - spec/factories/location.rb
614
- - spec/factories/email_address.rb
615
- - spec/factories/disease.rb
616
- - spec/factories/participant.rb
617
- - spec/factories/kid.rb
598
+ - spec/factories/search_team.rb
618
599
  - spec/factories/search_participant.rb
619
- - spec/factories/event_supporter.rb
620
- - spec/factories/page.rb
600
+ - spec/factories/name_pieces.rb
601
+ - spec/factories/researcher.rb
602
+ - spec/factories/photos.rb
603
+ - spec/factories/donor.rb
604
+ - spec/factories/diagnosis.rb
605
+ - spec/factories/kid_institution.rb
621
606
  - spec/factories/message.rb
622
- - spec/factories/response.rb
623
607
  - spec/factories/search_event.rb
608
+ - spec/factories/photo.rb
609
+ - spec/factories/event.rb
610
+ - spec/factories/organization.rb
611
+ - spec/factories/campaign.rb
612
+ - spec/factories/kid/custom_institution.rb
613
+ - spec/factories/fundraising_page.rb
614
+ - spec/factories/contact.rb
624
615
  - spec/factories/event_application.rb
616
+ - spec/factories/location.rb
617
+ - spec/factories/response.rb
618
+ - spec/factories/kid.rb
619
+ - spec/factories/challenger.rb
620
+ - spec/factories/treatment_status.rb
621
+ - spec/factories/institution.rb
622
+ - spec/factories/lib/helpers.rb
623
+ - spec/factories/lib/faker_patch.rb
624
+ - spec/factories/shave_schedule.rb
625
+ - spec/factories/address.rb
626
+ - spec/factories/shave_schedule/time_selection_permissions.rb
627
+ - spec/factories/person/phone_numbers.rb
628
+ - spec/factories/person/policies.rb
629
+ - spec/factories/person/addresses.rb
630
+ - spec/factories/person/email_addresses.rb
631
+ - spec/factories/collection.rb
625
632
  - spec/factories/fundraiser.rb
626
- - spec/factories/team.rb
627
- - spec/factories/memorial.rb
628
- - spec/factories/diagnosis.rb
629
- - spec/factories/team/totals.rb
633
+ - spec/factories/email_address.rb
634
+ - spec/factories/third_party_media.rb
635
+ - spec/factories/donation.rb
636
+ - spec/factories/person.rb
637
+ - spec/factories/team/rankings.rb
630
638
  - spec/factories/team/photos.rb
639
+ - spec/factories/team/totals.rb
631
640
  - spec/factories/team/rankings/ranking.rb
632
- - spec/factories/team/rankings.rb
633
- - spec/factories/newsletter_recipient.rb
634
- - spec/factories/shave_schedule.rb
635
- - spec/factories/organization.rb
641
+ - spec/factories/kid_honor.rb
642
+ - spec/factories/disease.rb
643
+ - spec/factories/payment.rb
644
+ - spec/factories/search_kid.rb
645
+ - spec/factories/user.rb
636
646
  - spec/factories/campaign/totals.rb
637
- - spec/factories/lib/helpers.rb
638
- - spec/factories/lib/faker_patch.rb
639
- - spec/factories/error.rb
640
- - spec/factories/donor.rb
641
- - spec/factories/contact_group.rb
642
- - spec/factories/recurring_gift.rb
643
- - spec/factories/person.rb
644
- - spec/factories/treatment_status.rb
645
- - spec/factories/fundraiser/policies.rb
646
- - spec/factories/fundraiser/totals.rb
647
- - spec/factories/fundraiser/photos.rb
648
- - spec/factories/venue.rb
649
- - spec/factories/search_fundraiser.rb
650
- - spec/factories/institution.rb
651
- - spec/factories/grant_institution.rb
652
- - spec/factories/address.rb
653
- - spec/factories/phone.rb
654
- - spec/factories/event/totals.rb
655
- - spec/factories/event/photos.rb
656
- - spec/factories/event/contacts/contact.rb
657
- - spec/factories/event/contacts/name_pieces.rb
658
- - spec/factories/event/coach_tracking/coaching_interactions.rb
647
+ - spec/factories/organization/phone_numbers.rb
648
+ - spec/factories/organization/addresses.rb
649
+ - spec/factories/organization/email_addresses.rb
650
+ - spec/factories/fund.rb
651
+ - spec/factories/milestone.rb
652
+ - spec/factories/memorial.rb
653
+ - spec/factories/challenge.rb
654
+ - spec/factories/event/contacts.rb
655
+ - spec/factories/event/venue.rb
659
656
  - spec/factories/event/coach_tracking/proceeds.rb
660
657
  - spec/factories/event/coach_tracking/plaque.rb
658
+ - spec/factories/event/coach_tracking/coaching_interactions.rb
659
+ - spec/factories/event/photos.rb
661
660
  - spec/factories/event/coach_tracking.rb
661
+ - spec/factories/event/contacts/name_pieces.rb
662
+ - spec/factories/event/contacts/contact.rb
662
663
  - spec/factories/event/venue/location.rb
663
664
  - spec/factories/event/venue/social.rb
664
- - spec/factories/event/contacts.rb
665
- - spec/factories/event/venue.rb
666
- - spec/factories/fund.rb
667
- - spec/factories/event.rb
668
- - spec/factories/kid/custom_institution.rb
669
- - spec/factories/shave_schedule/time_selection_permissions.rb
670
- - spec/factories/user.rb
671
- - spec/factories/kid_honor.rb
665
+ - spec/factories/event/totals.rb
666
+ - spec/factories/participant.rb
667
+ - spec/factories/event_supporter.rb
668
+ - spec/factories/memorial/photos.rb
669
+ - spec/factories/memorial/totals.rb
670
+ - spec/factories/memorial/tribute.rb
671
+ - spec/factories/permissions.rb