stbaldricks 12.8.0.alpha.1 → 12.8.1.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: 98c2e2208f381a6abad419b67ef39b5b7c6c0a76c299edaf900e22cc0c51c657
4
- data.tar.gz: 8602203d51fb0609fc0f091392e0248a68f2ad3a7abed305ea349e9e04172ecc
3
+ metadata.gz: ed05e41b2072101f69ebc2c725b922010a616b4a3c7fa610a938280d6cf9c4c2
4
+ data.tar.gz: 42c5b738de5116ac688e05d8913180da08dba069e5e4c46cea714642190d5632
5
5
  SHA512:
6
- metadata.gz: 368c6e1e5c49bf934009116fdd1d90418213700f08680178dc02d951e70f174138d1b08e6b41731479582a9a6a51caaade13fdfbb3039b4eb7a29c9f5ab40fd2
7
- data.tar.gz: b1aa5bfa3dba91d6914c2664a01fe478f50735b137ea6da25406a366d4b3a7f77ea3791bbba8d809cec6dae325406150fed0bb47e286bafa8c9d61ca25d12493
6
+ metadata.gz: 87963e1471b72f6849c540deee97c579aa2a75f5db0e338e62f9c7398cf743a9b4ccbdb54de7eef7c9a1095023b787079fd1bd3609ed3f9b7353a8fdb200b3d1
7
+ data.tar.gz: e2c49970cb6816ef5f78d27a03523d16cf08c8591024245b9e2a60255ed59ac032f157aa467b1f9ad12e76e6f36cd4c911aa3eec2bd4bb41293b9a8ab7154e7f
@@ -19,6 +19,18 @@ module SBF
19
19
 
20
20
  SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
21
21
  end
22
+
23
+ def direct_donation_years(params)
24
+ response = SBF::Client::Api::Request.post_request("#{base_uri}/direct_donation_years", params)
25
+ data = JSON.parse(response.body).symbolize!
26
+
27
+ unless ok?(response)
28
+ error = SBF::Client::ErrorEntity.new(data)
29
+ data = nil
30
+ end
31
+
32
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
33
+ end
22
34
  end
23
35
  end
24
36
  end
@@ -17,6 +17,7 @@ module SBF
17
17
  attr_reader :all_years_amount_raised
18
18
  attr_reader :participants
19
19
  attr_reader :shavees
20
+ attr_reader :number_of_events
20
21
  end
21
22
  end
22
23
 
@@ -11,6 +11,7 @@ module SBF
11
11
  include DonationRecipientConcern, Entities::DefaultCacheable
12
12
  endpoint SBF::Client::FundEndpoint
13
13
  action :allowed_entities
14
+ action :direct_donation_years
14
15
  action :get
15
16
  action :find
16
17
  action :find_first
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.8.0.alpha.1'.freeze
3
+ VERSION = '12.8.1.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.8.0.alpha.1
4
+ version: 12.8.1.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-07-26 00:00:00.000000000 Z
11
+ date: 2022-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -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