stbaldricks 12.9.0.alpha.2 → 12.9.0.alpha.4
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/fund.rb +12 -0
- data/lib/stbaldricks/entities/campaign.rb +1 -0
- data/lib/stbaldricks/entities/donation/payment_type.rb +1 -0
- data/lib/stbaldricks/entities/donation.rb +1 -0
- data/lib/stbaldricks/entities/fund.rb +1 -0
- data/lib/stbaldricks/entities/lib/payment.rb +9 -0
- data/lib/stbaldricks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05f2725c1dbebcc787bf9adefd58d81ac72d21d1c049509bb3cd46a5ab51f7df
|
4
|
+
data.tar.gz: 004423e5b5060c8d1e1132f616c58cf4905f9948ac2ca05a90fcbed691746b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 297841f8f48118534618bf652b4c72b824f35a7a093a21800eeee3cd6b89333d52e140f92d0fdcfdf19398f51b858bd1101be9fb2a33ca06c062a48b2779cc30
|
7
|
+
data.tar.gz: 3de58b1520d39f311b779033d793f74c1fb7a976e78879ea6d41df92aa8bafef0105c4d1320af56366760aa80a26f9dfb77402a5bfad2f8feeb8aad76cafba52
|
@@ -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
|
@@ -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
|
]
|
@@ -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
|
|
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.9.0.alpha.
|
4
|
+
version: 12.9.0.alpha.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|