stbaldricks 10.10.0 → 10.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/stbaldricks/entities/donation.rb +6 -4
- data/lib/stbaldricks/entities/donation/payment_type.rb +8 -6
- data/lib/stbaldricks/entities/event.rb +3 -1
- data/lib/stbaldricks/entities/lib/payment.rb +22 -6
- data/lib/stbaldricks/entities/recurring_gift.rb +11 -6
- data/lib/stbaldricks/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d8c71b51246cc67c24a9f9a6e5f3c666d66b7b28c159a7dce158cf5605b64d6
|
4
|
+
data.tar.gz: aa4afac633a4ccdb5c7ddb29197204e3be0d315cf7446e80fbf409d8aa797305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d1b41ff9efd9ae85e3a13c3f665580daba1257482085f1eabc816f8398c896fd5beb5073f0d7d14bab117ad5ad3763025cc969591287399df4f6d60fbc01221
|
7
|
+
data.tar.gz: 791a4fbab98c6fd1f2395435b3f9730ed6b8e376c7bb33966456acfdd3acaeb7beb7a4d593e78020d121ffc3081a87b8e9240ac38e2330f5c9c98587f562347b
|
data/README.md
CHANGED
@@ -182,7 +182,7 @@ or the expected API response data for a successful request.
|
|
182
182
|
Tests are broken out into unit and integration tests. Test coverage thresholds are enforced and test additions or modifications are
|
183
183
|
required for nearly any client library change.
|
184
184
|
|
185
|
-
More detail on understanding and writing Rspec tests can be found in the [Rspec Guide](https://github.com/firespring/sbf/tree/master/documentation/guides/rspec).
|
185
|
+
More detail on understanding and writing Rspec tests can be found in the [Rspec Guide](https://github.com/firespring/sbf/tree/master/documentation/guides/training/rspec).
|
186
186
|
|
187
187
|
#### Running Tests
|
188
188
|
* use `rake client:ruby:test:all` to run all tests
|
@@ -402,16 +402,18 @@ module SBF
|
|
402
402
|
multitype_attr_accessor(
|
403
403
|
:payment_details,
|
404
404
|
[
|
405
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY }, 'SBF::Client::Payment::ApplepayDetails'],
|
405
406
|
[->(v) { v[:type] == SBF::Client::Payment::Type::CREDIT_CARD }, 'SBF::Client::Payment::CreditCardDetails'],
|
406
407
|
[->(v) { v[:type] == SBF::Client::Payment::Type::CASH }, 'SBF::Client::Payment::CashDetails'],
|
407
408
|
[->(v) { v[:type] == SBF::Client::Payment::Type::CHECK }, 'SBF::Client::Payment::CheckDetails'],
|
409
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::FACEBOOK }, 'SBF::Client::Payment::FacebookDetails'],
|
410
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::GOOGLEPAY }, 'SBF::Client::Payment::GooglePayDetails'],
|
408
411
|
[->(v) { v[:type] == SBF::Client::Payment::Type::MONEY_ORDER }, 'SBF::Client::Payment::MoneyOrderDetails'],
|
409
412
|
[->(v) { v[:type] == SBF::Client::Payment::Type::NONCE }, 'SBF::Client::Payment::NonceDetails'],
|
410
|
-
[->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails'],
|
411
|
-
[->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
|
412
413
|
[->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL }, 'SBF::Client::Payment::PaypalDetails'],
|
413
|
-
[->(v) { v[:type] == SBF::Client::Payment::Type::
|
414
|
-
[->(v) { v[:type] == SBF::Client::Payment::Type::
|
414
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails'],
|
415
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
|
416
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails']
|
415
417
|
]
|
416
418
|
)
|
417
419
|
entity_attr_accessor :tribute, 'SBF::Client::Donation::Tribute'
|
@@ -6,16 +6,18 @@ module SBF
|
|
6
6
|
module Client
|
7
7
|
class Donation < SBF::Client::TopLevelEntity
|
8
8
|
module PaymentType
|
9
|
-
|
10
|
-
CREDIT_CARD = 'credit_card'
|
11
|
-
CHECK = 'check'
|
9
|
+
APPLEPAY = 'applepay'
|
12
10
|
CASH = 'cash'
|
11
|
+
CHECK = 'check'
|
12
|
+
CREDIT_CARD = 'credit_card'
|
13
|
+
FACEBOOK = 'facebook'
|
14
|
+
GOOGLE_PAY = 'google_pay'
|
13
15
|
MONEY_ORDER = 'money_order'
|
14
|
-
WIRE_TRANSFER = 'wire_transfer'
|
15
16
|
PAYPAL = 'paypal'
|
16
17
|
STORED = 'stored'
|
17
|
-
|
18
|
-
|
18
|
+
STRIPE = 'stripe'
|
19
|
+
UNKNOWN = 'unknown'
|
20
|
+
WIRE_TRANSFER = 'wire_transfer'
|
19
21
|
end
|
20
22
|
end
|
21
23
|
end
|
@@ -130,6 +130,7 @@ module SBF
|
|
130
130
|
OTHER = 'other'.freeze
|
131
131
|
LEGACY = 'legacy'.freeze
|
132
132
|
VIRTUAL = 'virtual'.freeze
|
133
|
+
HYBRID = 'hybrid'.freeze
|
133
134
|
end
|
134
135
|
|
135
136
|
attr_accessor :type
|
@@ -199,7 +200,8 @@ module SBF
|
|
199
200
|
end
|
200
201
|
|
201
202
|
def venue_virtual?
|
202
|
-
|
203
|
+
[SBF::Client::Event::Venue::Location::Type::VIRTUAL,
|
204
|
+
SBF::Client::Event::Venue::Location::Type::HYBRID].include? venue.location.type
|
203
205
|
end
|
204
206
|
|
205
207
|
def virtual?
|
@@ -5,16 +5,18 @@ module SBF
|
|
5
5
|
module Client
|
6
6
|
class Payment
|
7
7
|
module Type
|
8
|
-
|
9
|
-
CREDIT_CARD = 'credit_card'.freeze
|
10
|
-
CHECK = 'check'.freeze
|
8
|
+
APPLEPAY = 'applepay'.freeze
|
11
9
|
CASH = 'cash'.freeze
|
10
|
+
CHECK = 'check'.freeze
|
11
|
+
CREDIT_CARD = 'credit_card'.freeze
|
12
|
+
FACEBOOK = 'facebook'.freeze
|
13
|
+
GOOGLEPAY = 'google_pay'.freeze
|
12
14
|
MONEY_ORDER = 'money_order'.freeze
|
13
15
|
NONCE = 'nonce'.freeze
|
14
|
-
WIRE_TRANSFER = 'wire_transfer'.freeze
|
15
16
|
PAYPAL = 'paypal'.freeze
|
16
|
-
|
17
|
-
|
17
|
+
STRIPE = 'stripe'.freeze
|
18
|
+
UNKNOWN = 'unknown'.freeze
|
19
|
+
WIRE_TRANSFER = 'wire_transfer'.freeze
|
18
20
|
end
|
19
21
|
|
20
22
|
module Gateway
|
@@ -116,6 +118,20 @@ module SBF
|
|
116
118
|
SBF::Client::Payment::Type::APPLEPAY
|
117
119
|
end
|
118
120
|
end
|
121
|
+
|
122
|
+
class StripeDetails < SBF::Client::Payment::Details
|
123
|
+
def type
|
124
|
+
SBF::Client::Payment::Type::STRIPE
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
class GooglePayDetails < SBF::Client::Payment::Details
|
129
|
+
attr_accessor :gateway
|
130
|
+
|
131
|
+
def type
|
132
|
+
SBF::Client::Payment::Type::GOOGLEPAY
|
133
|
+
end
|
134
|
+
end
|
119
135
|
end
|
120
136
|
end
|
121
137
|
end
|
@@ -53,6 +53,7 @@ module SBF
|
|
53
53
|
module FundingType
|
54
54
|
APPLEPAY = 'applepay'.freeze
|
55
55
|
CREDIT_CARD = 'credit_card'.freeze
|
56
|
+
GOOGLE_PAY = 'google_pay'.freeze
|
56
57
|
PAYPAL = 'paypal'.freeze
|
57
58
|
end
|
58
59
|
|
@@ -203,20 +204,24 @@ module SBF
|
|
203
204
|
:payment_details,
|
204
205
|
[
|
205
206
|
[
|
206
|
-
->(v) { v[:type] == SBF::Client::Payment::Type::
|
207
|
-
'SBF::Client::Payment::
|
207
|
+
->(v) { v[:type] == SBF::Client::Payment::Type::APPLEPAY },
|
208
|
+
'SBF::Client::Payment::ApplepayDetails'
|
208
209
|
],
|
209
210
|
[
|
210
211
|
->(v) { v[:type] == SBF::Client::Payment::Type::CREDIT_CARD },
|
211
212
|
'SBF::Client::Payment::SubscriptionCreditCardDetails'
|
212
213
|
],
|
213
214
|
[
|
214
|
-
->(v) { v[:type] == SBF::Client::Payment::Type::
|
215
|
-
'SBF::Client::Payment::
|
215
|
+
->(v) { v[:type] == SBF::Client::Payment::Type::GOOGLEPAY },
|
216
|
+
'SBF::Client::Payment::GooglePayDetails'
|
216
217
|
],
|
217
218
|
[
|
218
|
-
->(v) { v[:type] == SBF::Client::Payment::Type::
|
219
|
-
'SBF::Client::Payment::
|
219
|
+
->(v) { v[:type] == SBF::Client::Payment::Type::NONCE },
|
220
|
+
'SBF::Client::Payment::NonceDetails'
|
221
|
+
],
|
222
|
+
[
|
223
|
+
->(v) { v[:type] == SBF::Client::Payment::Type::PAYPAL },
|
224
|
+
'SBF::Client::Payment::PaypalDetails'
|
220
225
|
]
|
221
226
|
]
|
222
227
|
)
|
data/lib/stbaldricks/version.rb
CHANGED
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: 10.
|
4
|
+
version: 10.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-28 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.
|
19
|
+
version: 5.2.4.5
|
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.
|
26
|
+
version: 5.2.4.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: htmlentities
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|