stbaldricks 9.3.0.alpha.1 → 9.3.0.alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stbaldricks/endpoints/donation.rb +18 -0
- data/lib/stbaldricks/entities/donation.rb +3 -0
- data/lib/stbaldricks/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e632b45bf30f399e4b3e9d791fc4f1aeef094298ed529cbc023bb2a94a95500
|
4
|
+
data.tar.gz: '08cd3af4c02bc078135c096c4b8e81bb7fc0ee0679d786f9192d4d98a9f6a633'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c713295276e65140e67ba4b30914a82b678eda7a2f5e511edaee56ab39ade600ce82513657e5fa4cd593e3f5520956129ec131394b75dda36860fbd298ae736
|
7
|
+
data.tar.gz: 1e7fa9d1c7048a3098307551a28dc2441713ebce1ea3b80d0324a1be2f5329e1fc6237780d649e09f570abcbe542e4bd94e6bf5be40fb9dd33feba28682db96c
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'stbaldricks/endpoints/lib/entity'
|
2
|
+
|
3
|
+
module SBF
|
4
|
+
module Client
|
5
|
+
class DonationEndpoint < SBF::Client::EntityEndpoint
|
6
|
+
def external_sync(data)
|
7
|
+
response = SBF::Client::Api::Request.post_request("#{base_uri}/external_sync", data)
|
8
|
+
|
9
|
+
unless ok?(response)
|
10
|
+
parsed_response_body = JSON.parse(response.body).symbolize!
|
11
|
+
error = SBF::Client::ErrorEntity.new(parsed_response_body)
|
12
|
+
end
|
13
|
+
|
14
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'stbaldricks/endpoints/donation'
|
1
2
|
require 'stbaldricks/entities/fund'
|
2
3
|
require 'stbaldricks/entities/event'
|
3
4
|
require 'stbaldricks/entities/team'
|
@@ -18,7 +19,9 @@ module SBF
|
|
18
19
|
module Client
|
19
20
|
class Donation < SBF::Client::TopLevelEntity
|
20
21
|
include Entities::DefaultCacheable
|
22
|
+
endpoint SBF::Client::DonationEndpoint
|
21
23
|
actions DEFAULT_CRUD_ACTIONS
|
24
|
+
action :external_sync
|
22
25
|
|
23
26
|
disallow_instantiation
|
24
27
|
|
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: 9.3.0.alpha.
|
4
|
+
version: 9.3.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: 2019-10-
|
11
|
+
date: 2019-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -294,6 +294,7 @@ files:
|
|
294
294
|
- lib/stbaldricks/endpoints/config.rb
|
295
295
|
- lib/stbaldricks/endpoints/contact.rb
|
296
296
|
- lib/stbaldricks/endpoints/deduplicator_match.rb
|
297
|
+
- lib/stbaldricks/endpoints/donation.rb
|
297
298
|
- lib/stbaldricks/endpoints/event.rb
|
298
299
|
- lib/stbaldricks/endpoints/facebook/user.rb
|
299
300
|
- lib/stbaldricks/endpoints/fund.rb
|