stbaldricks 9.3.0.alpha.1 → 9.3.0.alpha.2

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: 58315bd0b3cd96554154c7f355a4c284b2b3a348898d13baac7699a681ffd5f4
4
- data.tar.gz: e90b1b9da4697e003022681f2c9d6df94d5f3969f57814bca06f8e2622a7e0ea
3
+ metadata.gz: 2e632b45bf30f399e4b3e9d791fc4f1aeef094298ed529cbc023bb2a94a95500
4
+ data.tar.gz: '08cd3af4c02bc078135c096c4b8e81bb7fc0ee0679d786f9192d4d98a9f6a633'
5
5
  SHA512:
6
- metadata.gz: 9ac71566a6bca198bc4fa7693d6fc36810e9a03ae505fceb263c801dce54a90052d2500dcbc32f0b3addcbbc049f521d4b357759a3f7f551c30c8b43b9c004ae
7
- data.tar.gz: b2700167869734319e399d57308493fef02bb8a0588776acc37148bb9f8b53720dfe744b9d4dc6aef3b45cdd0b88ea57e7201f4bb942f57c1cc358cc4d49142c
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
 
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '9.3.0.alpha.1'
3
+ VERSION = '9.3.0.alpha.2'
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.3.0.alpha.1
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-23 00:00:00.000000000 Z
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