stbaldricks 12.15.0.alpha.3 → 12.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stbaldricks/endpoints/promo.rb +1 -1
- data/lib/stbaldricks/entities/donation/payment_gateway.rb +5 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +4 -0
- data/lib/stbaldricks/entities/donation.rb +5 -1
- data/lib/stbaldricks/entities/lib/payment.rb +33 -0
- 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: 813c14606b5395cdc40253fd5452842c29113080c185196c579a21a1c1563b5c
|
4
|
+
data.tar.gz: 8d233977b90f351e8d339f09a7d77fcc000c19295030c6a62094b3db361aa6de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42d618564cdecc8c6776c4feb06ccb7a8741c63a5d1c1abe0785957c2adc3327697bbd4957c1ae3ef7bda7a13c01ec4e1e4e97c32cc8776d605b90295287f33
|
7
|
+
data.tar.gz: 4ff2946335a23785d19023e76d14c3627961a5cb71543f3b034acb57f9a4f964e145a0d32d5f924e0c8604f6ee348e538cab02f5e5a9334b469d13ed9ff89946
|
@@ -10,6 +10,11 @@ module SBF
|
|
10
10
|
UNKNOWN = 'unknown'
|
11
11
|
BRAINTREE = 'braintree'
|
12
12
|
PAYMENTSPRING = 'paymentspring'
|
13
|
+
GIVING_BLOCK = 'giving_block'
|
14
|
+
WIRE_TRANSFER = 'wire_transfer'
|
15
|
+
SBF_EMPLOYEE_PAYROLL = 'sbf_employee_payroll'
|
16
|
+
EMPLOYEE_FUND = 'employee_fund'
|
17
|
+
DONOR_ADVISED_FUND = 'donor_advised_fund'
|
13
18
|
end
|
14
19
|
end
|
15
20
|
end
|
@@ -415,7 +415,11 @@ module SBF
|
|
415
415
|
[->(v) { v[:type] == SBF::Client::Payment::Type::STRIPE }, 'SBF::Client::Payment::StripeDetails'],
|
416
416
|
[->(v) { v[:type] == SBF::Client::Payment::Type::VENMO }, 'SBF::Client::Payment::VenmoDetails'],
|
417
417
|
[->(v) { v[:type] == SBF::Client::Payment::Type::UNKNOWN }, 'SBF::Client::Payment::UnknownDetails'],
|
418
|
-
[->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails']
|
418
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::WIRE_TRANSFER }, 'SBF::Client::Payment::WireTransferDetails'],
|
419
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::CRYPTO }, 'SBF::Client::Payment::CryptoDetails'],
|
420
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::SQUARE }, 'SBF::Client::Payment::SquareDetails'],
|
421
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::STOCK }, 'SBF::Client::Payment::StockDetails'],
|
422
|
+
[->(v) { v[:type] == SBF::Client::Payment::Type::INSTAGRAM }, 'SBF::Client::Payment::InstagramDetails']
|
419
423
|
]
|
420
424
|
)
|
421
425
|
entity_attr_accessor :tribute, 'SBF::Client::Donation::Tribute'
|
@@ -18,6 +18,10 @@ module SBF
|
|
18
18
|
VENMO = 'venmo'.freeze
|
19
19
|
UNKNOWN = 'unknown'.freeze
|
20
20
|
WIRE_TRANSFER = 'wire_transfer'.freeze
|
21
|
+
CRYPTO = 'crypto'.freeze
|
22
|
+
SQUARE = 'square'.freeze
|
23
|
+
STOCK = 'stock'.freeze
|
24
|
+
INSTAGRAM = 'instagram'.freeze
|
21
25
|
end
|
22
26
|
|
23
27
|
module Gateway
|
@@ -25,6 +29,11 @@ module SBF
|
|
25
29
|
UNKNOWN = 'unknown'.freeze
|
26
30
|
BRAINTREE = 'braintree'.freeze
|
27
31
|
PAYMENTSPRING = 'paymentspring'.freeze
|
32
|
+
GIVING_BLOCK = 'giving_block'.freeze
|
33
|
+
WIRE_TRANSFER = 'wire_transfer'.freeze
|
34
|
+
SBF_EMPLOYEE_PAYROLL = 'sbf_employee_payroll'.freeze
|
35
|
+
EMPLOYEE_FUND = 'employee_fund'.freeze
|
36
|
+
DONOR_ADVISED_FUND = 'donor_advised_fund'.freeze
|
28
37
|
end
|
29
38
|
|
30
39
|
class Details < SBF::Client::BaseEntity
|
@@ -141,6 +150,30 @@ module SBF
|
|
141
150
|
SBF::Client::Payment::Type::GOOGLEPAY
|
142
151
|
end
|
143
152
|
end
|
153
|
+
|
154
|
+
class CryptoDetails < SBF::Client::Payment::Details
|
155
|
+
def type
|
156
|
+
SBF::Client::Payment::Type::CRYPTO
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
class SquareDetails < SBF::Client::Payment::Details
|
161
|
+
def type
|
162
|
+
SBF::Client::Payment::Type::SQUARE
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
class StockDetails < SBF::Client::Payment::Details
|
167
|
+
def type
|
168
|
+
SBF::Client::Payment::Type::STOCK
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
class InstagramDetails < SBF::Client::Payment::Details
|
173
|
+
def type
|
174
|
+
SBF::Client::Payment::Type::INSTAGRAM
|
175
|
+
end
|
176
|
+
end
|
144
177
|
end
|
145
178
|
end
|
146
179
|
end
|
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: 12.15.0
|
4
|
+
version: 12.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -563,9 +563,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
563
563
|
version: '0'
|
564
564
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
565
565
|
requirements:
|
566
|
-
- - "
|
566
|
+
- - ">="
|
567
567
|
- !ruby/object:Gem::Version
|
568
|
-
version:
|
568
|
+
version: '0'
|
569
569
|
requirements: []
|
570
570
|
rubygems_version: 3.0.3.1
|
571
571
|
signing_key:
|