stbaldricks 12.8.0 → 12.8.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: 76811a79f7e5fd06a224981a923c236dcadf3eadc206d26b6ab6d8d79472917a
4
- data.tar.gz: 77863b4f330190984fce69f7d493e7f34b0a51a493e0f3d84e0827ac55f21a81
3
+ metadata.gz: 3a2cf14c0abde1d44e37c186e52d28e2bcbcf3e4836589f121a050ec986fb796
4
+ data.tar.gz: cae1276dadd7af98847346cdfc711be61484038b68b09078b514902a2eb56187
5
5
  SHA512:
6
- metadata.gz: c0a189583db3cacbbe8aa85c1fe42700298dc65912ca7af1c2ad499eeb42149ea9b7fa0fb5a585de4bb0bae717368a3729d5c9c86569552c9b9a6fa5c8832e84
7
- data.tar.gz: 780a1290e0f1873a9fdbc026597fed591a69f15975fefbf83e13c85ef91245e3b95097dfb8746d83ddc2c9b6d01f2a1d36990ad71fa83167d1e93797cb117c6d
6
+ metadata.gz: d918e601bafa01566ec4f6af15d282bc385b26f560c0c287c68134f892c3c1036600ab4e6e2f09de4aa9227e2d108fa37d31dd9674bd10b4019c76406cfcdaf3
7
+ data.tar.gz: acf788c0c4e8cbf2abf4fd10f53abaf8184390cbbca4e3e11610420d837da39169bbc61c3622c9a8e351efd48284d314a03c17b6f5e56f8831d6d7bbb09ca98a
@@ -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
@@ -18,6 +18,7 @@ module SBF
18
18
  STRIPE = 'stripe'
19
19
  UNKNOWN = 'unknown'
20
20
  WIRE_TRANSFER = 'wire_transfer'
21
+ VENMO = 'venmo'
21
22
  end
22
23
  end
23
24
  end
@@ -412,6 +412,7 @@ module SBF
412
412
  [->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
413
413
  [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails'],
414
414
  [->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails'],
415
+ [->(v) { v[:type] == SBF::Client::Payment::Type::VENMO }, 'SBF::Client::Payment::VenmoDetails'],
415
416
  [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
416
417
  [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails']
417
418
  ]
@@ -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
@@ -15,6 +15,7 @@ module SBF
15
15
  NONCE = 'nonce'.freeze
16
16
  PAYPAL = 'paypal'.freeze
17
17
  STRIPE = 'stripe'.freeze
18
+ VENMO = 'venmo'.freeze
18
19
  UNKNOWN = 'unknown'.freeze
19
20
  WIRE_TRANSFER = 'wire_transfer'.freeze
20
21
  end
@@ -125,6 +126,14 @@ module SBF
125
126
  end
126
127
  end
127
128
 
129
+ class VenmoDetails < SBF::Client::Payment::Details
130
+ attr_accessor :gateway
131
+
132
+ def type
133
+ SBF::Client::Payment::Type::VENMO
134
+ end
135
+ end
136
+
128
137
  class GooglePayDetails < SBF::Client::Payment::Details
129
138
  attr_accessor :gateway
130
139
 
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.8.0'.freeze
3
+ VERSION = '12.8.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
4
+ version: 12.8.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-08-08 00:00:00.000000000 Z
11
+ date: 2022-09-19 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