stbaldricks 12.4.0.alpha.1 → 12.4.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: e0399d45f772ba00c4c57be1425f323a8709f538aa71aa833a8e55b9f491ec6e
4
- data.tar.gz: 57ee2d0d2d7e70ececb26dd446f9e43d1015babd3c83d89c3d9b3cb697756b4c
3
+ metadata.gz: 332b53e9d20f3b6bbb07016b6d752ae74d05b64d2d11c7651e10ea1837eabeb0
4
+ data.tar.gz: e94ff3ecdfed651feddee672a9999cf1da91512abeeb66d7ca5bdf514ba34e88
5
5
  SHA512:
6
- metadata.gz: 3ddc0e18e2b0e124d2fcb59e8a70d0c3077c22ba6ca046ac9db530374cde2d2b9e2d07a7925eab02867444678fe468ffbb668a7689f991c3311586e38d564749
7
- data.tar.gz: 314c643eec66e8a73b3c1e169245f10019ec66dd5bcbaccad8dfa3eab9fbdc06c8860bc0f5bd969c66a691c1d1c3babeca1f0fd000aba3703d591bea1c85d948
6
+ metadata.gz: fe52f1e5bd5ba4c30d66871e7e69ad922a55058cc8b18a1209c98f65450256ce73329abd189f10e9e0d25f8c8a5107e28e51536cde99b7b79f8ede9f5d78e67c
7
+ data.tar.gz: d2b05c85488e28dc146439e63a459baa6e364ea54840720aa3661d67c86ff780d725733bf4af48e9a793f1f0ce4db9ce6878403843a40a7f7826efb9f4610eea
@@ -0,0 +1,31 @@
1
+ require 'stbaldricks/endpoints/lib/entity'
2
+
3
+ module SBF
4
+ module Client
5
+ class PromoEndpoint < SBF::Client::EntityEndpoint
6
+ def render_template(body, donation_id)
7
+ response = SBF::Client::Api::Request.post_request("#{base_uri}/render_email", body: body, donation_id: donation_id)
8
+
9
+ if ok?(response)
10
+ data = response.body
11
+ else
12
+ error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!)
13
+ end
14
+
15
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
16
+ end
17
+
18
+ def send_promo_email(recipient, body, donation_id)
19
+ response = SBF::Client::Api::Request.post_request("#{base_uri}/send_promo_email", recipient: recipient, body: body, donation_id: donation_id)
20
+
21
+ if ok?(response)
22
+ data = response.body
23
+ else
24
+ error = SBF::Client::ErrorEntity.new(JSON.parse(response.body).symbolize!)
25
+ end
26
+
27
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,11 @@
1
+ require 'stbaldricks/endpoints/promo'
2
+
3
+ module SBF
4
+ module Client
5
+ class Promo < SBF::Client::TopLevelEntity
6
+ endpoint SBF::Client::PromoEndpoint
7
+ action :render_template
8
+ action :send_promo_email
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '12.4.0.alpha.1'.freeze
3
+ VERSION = '12.4.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.4.0.alpha.1
4
+ version: 12.4.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: 2022-04-21 00:00:00.000000000 Z
11
+ date: 2022-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.2.4.5
19
+ version: 5.2.4.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.2.4.5
26
+ version: 5.2.4.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: htmlentities
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -323,6 +323,7 @@ files:
323
323
  - lib/stbaldricks/endpoints/newsletter_recipient.rb
324
324
  - lib/stbaldricks/endpoints/participant.rb
325
325
  - lib/stbaldricks/endpoints/photo.rb
326
+ - lib/stbaldricks/endpoints/promo.rb
326
327
  - lib/stbaldricks/endpoints/recurring_gift.rb
327
328
  - lib/stbaldricks/endpoints/search.rb
328
329
  - lib/stbaldricks/endpoints/shave_schedule.rb
@@ -415,6 +416,7 @@ files:
415
416
  - lib/stbaldricks/entities/person.rb
416
417
  - lib/stbaldricks/entities/person_donation_by_year_summary.rb
417
418
  - lib/stbaldricks/entities/photo.rb
419
+ - lib/stbaldricks/entities/promo.rb
418
420
  - lib/stbaldricks/entities/recurring_gift.rb
419
421
  - lib/stbaldricks/entities/response.rb
420
422
  - lib/stbaldricks/entities/search.rb
@@ -562,105 +564,105 @@ required_rubygems_version: !ruby/object:Gem::Requirement
562
564
  - !ruby/object:Gem::Version
563
565
  version: 1.3.1
564
566
  requirements: []
565
- rubygems_version: 3.0.3.1
567
+ rubygems_version: 3.1.6
566
568
  signing_key:
567
569
  specification_version: 4
568
570
  summary: St. Baldrick's Foundation Ruby Client Library
569
571
  test_files:
570
572
  - lib/stbaldricks_factories.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
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
573
+ - spec/factories/organization/addresses.rb
574
+ - spec/factories/organization/email_addresses.rb
575
+ - spec/factories/organization/phone_numbers.rb
576
+ - spec/factories/payment.rb
577
+ - spec/factories/fundraising_page.rb
588
578
  - 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
599
- - spec/factories/diagnosis.rb
579
+ - spec/factories/challenge.rb
600
580
  - spec/factories/kid_institution.rb
601
- - spec/factories/message.rb
602
- - spec/factories/search_event.rb
603
- - spec/factories/photo.rb
604
- - spec/factories/event.rb
605
- - spec/factories/organization.rb
606
- - spec/factories/campaign.rb
607
- - spec/factories/kid/custom_institution.rb
608
- - spec/factories/fundraising_page.rb
581
+ - spec/factories/memorial/totals.rb
582
+ - spec/factories/memorial/photos.rb
583
+ - spec/factories/memorial/tribute.rb
584
+ - spec/factories/search_kid.rb
609
585
  - 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
586
+ - spec/factories/researcher.rb
587
+ - spec/factories/photos.rb
614
588
  - spec/factories/challenger.rb
615
- - spec/factories/treatment_status.rb
616
- - spec/factories/institution.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
589
+ - spec/factories/name_pieces.rb
590
+ - spec/factories/milestone.rb
623
591
  - spec/factories/person/policies.rb
624
592
  - spec/factories/person/addresses.rb
625
593
  - spec/factories/person/email_addresses.rb
594
+ - spec/factories/person/phone_numbers.rb
595
+ - spec/factories/participant/policies.rb
596
+ - spec/factories/participant/totals.rb
597
+ - spec/factories/participant/photos.rb
598
+ - spec/factories/participant/roles/role.rb
599
+ - spec/factories/participant/rankings/ranking.rb
600
+ - spec/factories/participant/rankings.rb
601
+ - spec/factories/participant/roles.rb
602
+ - spec/factories/donation.rb
603
+ - spec/factories/third_party_media.rb
604
+ - spec/factories/search_team.rb
605
+ - spec/factories/permissions.rb
606
+ - spec/factories/photo.rb
626
607
  - spec/factories/collection.rb
627
- - spec/factories/fundraiser.rb
608
+ - spec/factories/campaign.rb
609
+ - spec/factories/grant.rb
610
+ - spec/factories/location.rb
628
611
  - 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
612
+ - spec/factories/disease.rb
613
+ - spec/factories/participant.rb
614
+ - spec/factories/kid.rb
615
+ - spec/factories/search_participant.rb
616
+ - spec/factories/event_supporter.rb
617
+ - spec/factories/page.rb
618
+ - spec/factories/message.rb
619
+ - spec/factories/response.rb
620
+ - spec/factories/search_event.rb
621
+ - spec/factories/event_application.rb
622
+ - spec/factories/fundraiser.rb
623
+ - spec/factories/team.rb
624
+ - spec/factories/memorial.rb
625
+ - spec/factories/diagnosis.rb
634
626
  - spec/factories/team/totals.rb
627
+ - spec/factories/team/photos.rb
635
628
  - spec/factories/team/rankings/ranking.rb
636
- - spec/factories/kid_honor.rb
637
- - spec/factories/disease.rb
638
- - spec/factories/payment.rb
639
- - spec/factories/search_kid.rb
640
- - spec/factories/user.rb
629
+ - spec/factories/team/rankings.rb
630
+ - spec/factories/newsletter_recipient.rb
631
+ - spec/factories/shave_schedule.rb
632
+ - spec/factories/organization.rb
641
633
  - spec/factories/campaign/totals.rb
642
- - spec/factories/organization/phone_numbers.rb
643
- - spec/factories/organization/addresses.rb
644
- - spec/factories/organization/email_addresses.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
634
+ - spec/factories/lib/helpers.rb
635
+ - spec/factories/lib/faker_patch.rb
636
+ - spec/factories/error.rb
637
+ - spec/factories/donor.rb
638
+ - spec/factories/contact_group.rb
639
+ - spec/factories/recurring_gift.rb
640
+ - spec/factories/person.rb
641
+ - spec/factories/treatment_status.rb
642
+ - spec/factories/fundraiser/policies.rb
643
+ - spec/factories/fundraiser/totals.rb
644
+ - spec/factories/fundraiser/photos.rb
645
+ - spec/factories/venue.rb
646
+ - spec/factories/search_fundraiser.rb
647
+ - spec/factories/institution.rb
648
+ - spec/factories/grant_institution.rb
649
+ - spec/factories/address.rb
650
+ - spec/factories/phone.rb
651
+ - spec/factories/event/totals.rb
652
+ - spec/factories/event/photos.rb
653
+ - spec/factories/event/contacts/contact.rb
654
+ - spec/factories/event/contacts/name_pieces.rb
655
+ - spec/factories/event/coach_tracking/coaching_interactions.rb
651
656
  - spec/factories/event/coach_tracking/proceeds.rb
652
657
  - spec/factories/event/coach_tracking/plaque.rb
653
- - spec/factories/event/coach_tracking/coaching_interactions.rb
654
- - spec/factories/event/photos.rb
655
658
  - spec/factories/event/coach_tracking.rb
656
- - spec/factories/event/contacts/name_pieces.rb
657
- - spec/factories/event/contacts/contact.rb
658
659
  - spec/factories/event/venue/location.rb
659
660
  - 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
666
- - spec/factories/permissions.rb
661
+ - spec/factories/event/contacts.rb
662
+ - spec/factories/event/venue.rb
663
+ - spec/factories/fund.rb
664
+ - spec/factories/event.rb
665
+ - spec/factories/kid/custom_institution.rb
666
+ - spec/factories/shave_schedule/time_selection_permissions.rb
667
+ - spec/factories/user.rb
668
+ - spec/factories/kid_honor.rb