stbaldricks 9.2.1.alpha.1 → 9.3.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: 84670336c7d203c7b99f03c054fff7bfaf1ecc9462fafb7e9eefd06617efe758
4
- data.tar.gz: d886ad9cf936cf9031f6283981566a5fd5d5f9a555b50fcc6df65af64d89803d
3
+ metadata.gz: 58315bd0b3cd96554154c7f355a4c284b2b3a348898d13baac7699a681ffd5f4
4
+ data.tar.gz: e90b1b9da4697e003022681f2c9d6df94d5f3969f57814bca06f8e2622a7e0ea
5
5
  SHA512:
6
- metadata.gz: e497c6380e6e4d56a521c4854151298b048d918057f837150aa4f07beae80dfe73355295ce280e68767179cf204275bf184b8611e983a21aa75f7a1cc83ffcbc
7
- data.tar.gz: 3fffbd3aa4152e30ca4419124d5cf44235637603e39355a8e83ba73548c8aa6725bb42283ca74f1c7f874e9fe59d810be63a72f91f882ea35083521608c79080
6
+ metadata.gz: 9ac71566a6bca198bc4fa7693d6fc36810e9a03ae505fceb263c801dce54a90052d2500dcbc32f0b3addcbbc049f521d4b357759a3f7f551c30c8b43b9c004ae
7
+ data.tar.gz: b2700167869734319e399d57308493fef02bb8a0588776acc37148bb9f8b53720dfe744b9d4dc6aef3b45cdd0b88ea57e7201f4bb942f57c1cc358cc4d49142c
@@ -408,7 +408,8 @@ module SBF
408
408
  [->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
409
409
  [->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails'],
410
410
  [->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
411
- [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails']
411
+ [->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails'],
412
+ [->(v) { v[:type] == SBF::Client::Payment::Type::FACEBOOK }, 'SBF::Client::Payment::FacebookDetails']
412
413
  ]
413
414
  )
414
415
  entity_attr_accessor :tribute, 'SBF::Client::Donation::Tribute'
@@ -17,6 +17,7 @@ module SBF
17
17
  GIVE_ONCE = 'give_once'
18
18
  DONATE = 'donate'
19
19
  PAYMENT_SPRING_APP = 'payment_spring_app'
20
+ FACEBOOK_FUNDRAISER = 'facebook_fundraiser'
20
21
  end
21
22
  end
22
23
  end
@@ -12,6 +12,7 @@ module SBF
12
12
  WIRE_TRANSFER = 'wire_transfer'
13
13
  PAYPAL = 'paypal'
14
14
  STORED = 'stored'
15
+ FACEBOOK = 'facebook'
15
16
  end
16
17
  end
17
18
  end
@@ -13,6 +13,7 @@ module SBF
13
13
  NONCE = 'nonce'
14
14
  WIRE_TRANSFER = 'wire_transfer'
15
15
  PAYPAL = 'paypal'
16
+ FACEBOOK = 'facebook'
16
17
  end
17
18
 
18
19
  module Gateway
@@ -98,6 +99,14 @@ module SBF
98
99
  SBF::Client::Payment::Type::PAYPAL
99
100
  end
100
101
  end
102
+
103
+ class FacebookDetails < SBF::Client::Payment::Details
104
+ attr_accessor :number, :authorization_id
105
+
106
+ def type
107
+ SBF::Client::Payment::Type::FACEBOOK
108
+ end
109
+ end
101
110
  end
102
111
  end
103
112
  end
@@ -41,6 +41,7 @@ module SBF
41
41
  TEAM = 'team'
42
42
  PARTICIPANT = 'participant'
43
43
  FUNDRAISER = 'fundraiser'
44
+ MEMORIAL = 'memorial'
44
45
  end
45
46
 
46
47
  module DonorType
@@ -143,6 +144,24 @@ module SBF
143
144
  SBF::Client::RecurringGift::RecipientType::FUND
144
145
  end
145
146
  end
147
+
148
+ class FullMemorial < SBF::Client::FullMemorial
149
+ include ModelTypeConcern
150
+ attr_reader :model_type
151
+
152
+ def model_type
153
+ SBF::Client::RecurringGift::RecipientType::MEMORIAL
154
+ end
155
+ end
156
+
157
+ class PartialMemorial < SBF::Client::PartialMemorial
158
+ include ModelTypeConcern
159
+ attr_reader :model_type
160
+
161
+ def model_type
162
+ SBF::Client::RecurringGift::RecipientType::MEMORIAL
163
+ end
164
+ end
146
165
  end
147
166
 
148
167
  class PartialRecurringGift < SBF::Client::RecurringGift
@@ -212,6 +231,11 @@ module SBF
212
231
  ->(v) { v[:model_type] == SBF::Client::RecurringGift::RecipientType::FUND },
213
232
  'SBF::Client::RecurringGift::FullFund',
214
233
  'SBF::Client::RecurringGift::PartialFund'
234
+ ],
235
+ [
236
+ ->(v) { v[:model_type] == SBF::Client::RecurringGift::RecipientType::MEMORIAL },
237
+ 'SBF::Client::RecurringGift::FullMemorial',
238
+ 'SBF::Client::RecurringGift::PartialMemorial'
215
239
  ]
216
240
  ],
217
241
  optional: true
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '9.2.1.alpha.1'
3
+ VERSION = '9.3.0.alpha.1'
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: 9.2.1.alpha.1
4
+ version: 9.3.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: 2019-10-22 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -547,98 +547,98 @@ specification_version: 4
547
547
  summary: St. Baldrick's Foundation Ruby Client Library
548
548
  test_files:
549
549
  - lib/stbaldricks_factories.rb
550
- - spec/factories/response.rb
550
+ - spec/factories/organization/addresses.rb
551
+ - spec/factories/organization/email_addresses.rb
552
+ - spec/factories/organization/phone_numbers.rb
553
+ - spec/factories/payment.rb
554
+ - spec/factories/fundraising_page.rb
555
+ - spec/factories/donation/participant.rb
556
+ - spec/factories/challenge.rb
557
+ - spec/factories/kid_institution.rb
558
+ - spec/factories/memorial/totals.rb
559
+ - spec/factories/memorial/photos.rb
560
+ - spec/factories/memorial/tribute.rb
561
+ - spec/factories/search_kid.rb
551
562
  - spec/factories/contact.rb
563
+ - spec/factories/researcher.rb
564
+ - spec/factories/photos.rb
565
+ - spec/factories/challenger.rb
566
+ - spec/factories/name_pieces.rb
567
+ - spec/factories/person/policies.rb
568
+ - spec/factories/person/addresses.rb
569
+ - spec/factories/person/email_addresses.rb
570
+ - spec/factories/person/phone_numbers.rb
571
+ - spec/factories/participant/policies.rb
572
+ - spec/factories/participant/totals.rb
573
+ - spec/factories/participant/photos.rb
574
+ - spec/factories/participant/roles/role.rb
575
+ - spec/factories/participant/rankings/ranking.rb
576
+ - spec/factories/participant/rankings.rb
577
+ - spec/factories/participant/roles.rb
578
+ - spec/factories/donation.rb
579
+ - spec/factories/third_party_media.rb
580
+ - spec/factories/search_team.rb
581
+ - spec/factories/permissions.rb
582
+ - spec/factories/photo.rb
583
+ - spec/factories/collection.rb
584
+ - spec/factories/campaign.rb
552
585
  - spec/factories/grant.rb
553
- - spec/factories/lib/faker_patch.rb
554
- - spec/factories/lib/helpers.rb
586
+ - spec/factories/location.rb
587
+ - spec/factories/email_address.rb
555
588
  - spec/factories/disease.rb
556
- - spec/factories/permissions.rb
589
+ - spec/factories/participant.rb
590
+ - spec/factories/kid.rb
591
+ - spec/factories/search_participant.rb
557
592
  - spec/factories/event_supporter.rb
558
- - spec/factories/campaign.rb
559
- - spec/factories/team/rankings/ranking.rb
560
- - spec/factories/team/rankings.rb
561
- - spec/factories/team/totals.rb
562
- - spec/factories/team/photos.rb
593
+ - spec/factories/page.rb
594
+ - spec/factories/message.rb
595
+ - spec/factories/response.rb
563
596
  - spec/factories/search_event.rb
564
- - spec/factories/shave_schedule/time_selection_permissions.rb
565
- - spec/factories/kid/custom_institution.rb
597
+ - spec/factories/event_application.rb
566
598
  - spec/factories/fundraiser.rb
567
- - spec/factories/search_kid.rb
568
- - spec/factories/photo.rb
569
- - spec/factories/donor.rb
570
- - spec/factories/page.rb
599
+ - spec/factories/team.rb
600
+ - spec/factories/memorial.rb
601
+ - spec/factories/diagnosis.rb
602
+ - spec/factories/team/totals.rb
603
+ - spec/factories/team/photos.rb
604
+ - spec/factories/team/rankings/ranking.rb
605
+ - spec/factories/team/rankings.rb
571
606
  - spec/factories/newsletter_recipient.rb
572
- - spec/factories/email_address.rb
573
- - spec/factories/recurring_gift.rb
574
607
  - spec/factories/shave_schedule.rb
575
- - spec/factories/grant_institution.rb
576
- - spec/factories/message.rb
577
- - spec/factories/collection.rb
578
- - spec/factories/participant/rankings/ranking.rb
579
- - spec/factories/participant/policies.rb
580
- - spec/factories/participant/rankings.rb
581
- - spec/factories/participant/roles/role.rb
582
- - spec/factories/participant/roles.rb
583
- - spec/factories/participant/totals.rb
584
- - spec/factories/participant/photos.rb
608
+ - spec/factories/organization.rb
585
609
  - spec/factories/campaign/totals.rb
586
- - spec/factories/person/policies.rb
587
- - spec/factories/person/email_addresses.rb
588
- - spec/factories/person/phone_numbers.rb
589
- - spec/factories/person/addresses.rb
590
- - spec/factories/diagnosis.rb
591
- - spec/factories/address.rb
592
- - spec/factories/venue.rb
593
- - spec/factories/memorial.rb
594
- - spec/factories/participant.rb
595
- - spec/factories/challenge.rb
610
+ - spec/factories/lib/helpers.rb
611
+ - spec/factories/lib/faker_patch.rb
612
+ - spec/factories/error.rb
613
+ - spec/factories/donor.rb
614
+ - spec/factories/contact_group.rb
615
+ - spec/factories/recurring_gift.rb
616
+ - spec/factories/person.rb
617
+ - spec/factories/treatment_status.rb
596
618
  - spec/factories/fundraiser/policies.rb
597
619
  - spec/factories/fundraiser/totals.rb
598
620
  - spec/factories/fundraiser/photos.rb
599
- - spec/factories/challenger.rb
600
- - spec/factories/treatment_status.rb
601
- - spec/factories/contact_group.rb
602
- - spec/factories/person.rb
603
- - spec/factories/third_party_media.rb
604
- - spec/factories/search_team.rb
605
- - spec/factories/search_participant.rb
606
- - spec/factories/event.rb
607
- - spec/factories/organization.rb
621
+ - spec/factories/venue.rb
622
+ - spec/factories/search_fundraiser.rb
608
623
  - spec/factories/institution.rb
609
- - spec/factories/donation/participant.rb
610
- - spec/factories/name_pieces.rb
624
+ - spec/factories/grant_institution.rb
625
+ - spec/factories/address.rb
626
+ - spec/factories/phone.rb
627
+ - spec/factories/event/totals.rb
628
+ - spec/factories/event/photos.rb
629
+ - spec/factories/event/contacts/contact.rb
630
+ - spec/factories/event/contacts/name_pieces.rb
611
631
  - spec/factories/event/coach_tracking/coaching_interactions.rb
612
632
  - spec/factories/event/coach_tracking/proceeds.rb
613
633
  - spec/factories/event/coach_tracking/plaque.rb
614
- - spec/factories/event/contacts/contact.rb
615
- - spec/factories/event/contacts/name_pieces.rb
634
+ - spec/factories/event/coach_tracking.rb
616
635
  - spec/factories/event/venue/location.rb
617
636
  - spec/factories/event/venue/social.rb
618
- - spec/factories/event/coach_tracking.rb
619
- - spec/factories/event/venue.rb
620
- - spec/factories/event/totals.rb
621
- - spec/factories/event/photos.rb
622
637
  - spec/factories/event/contacts.rb
623
- - spec/factories/event_application.rb
624
- - spec/factories/payment.rb
625
- - spec/factories/kid_institution.rb
626
- - spec/factories/error.rb
627
- - spec/factories/kid.rb
628
- - spec/factories/organization/email_addresses.rb
629
- - spec/factories/organization/phone_numbers.rb
630
- - spec/factories/organization/addresses.rb
631
- - spec/factories/search_fundraiser.rb
632
- - spec/factories/kid_honor.rb
633
- - spec/factories/photos.rb
634
- - spec/factories/phone.rb
635
- - spec/factories/fundraising_page.rb
636
- - spec/factories/user.rb
637
- - spec/factories/team.rb
638
+ - spec/factories/event/venue.rb
638
639
  - spec/factories/fund.rb
639
- - spec/factories/memorial/totals.rb
640
- - spec/factories/memorial/photos.rb
641
- - spec/factories/memorial/tribute.rb
642
- - spec/factories/location.rb
643
- - spec/factories/researcher.rb
644
- - spec/factories/donation.rb
640
+ - spec/factories/event.rb
641
+ - spec/factories/kid/custom_institution.rb
642
+ - spec/factories/shave_schedule/time_selection_permissions.rb
643
+ - spec/factories/user.rb
644
+ - spec/factories/kid_honor.rb