rock_rms 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: f0c0996813ffc7e0636d2834dddb8fc1148b9fbb
4
- data.tar.gz: 1913e2ff7ff366cbf357abd2a1864552d1a28615
3
+ metadata.gz: 23113f01b7defa277cffc1e533afbb5b5e66228b
4
+ data.tar.gz: 993da8f297b8fe77b92fec906c3f6fc5a37966a6
5
5
  SHA512:
6
- metadata.gz: 2e51f64bc3d59fa2563887d5d374a4cd81a9909c076088c4afe89b5ae6b55e31de5ed98ecee8871b6773ef0bf9e758c98ba94665c9daf8b5892dc313652a17a0
7
- data.tar.gz: 30a8b82fa6ebe72923b5f6388455c4af2b9353b06cd57c2263e654ebc8d133dab94f7758c41c616e5716ef6c03fe419c6e0b2f221d119e53ab21eb448207d267
6
+ metadata.gz: 9dc4a42c7b34a498335b1d6400b6bc240993dafe440bebd612c733043635361a838027030e1068de826d18c5403eee282fd3ee53c04c337281efaf1954b7b710
7
+ data.tar.gz: d0a6f3e8db3426ef01290c332be080117c4b05f72faab52902919a4d4fd693942018a975da9e9fa7a1e16e216515deb81d4b43d9ac9d655bcfd2bd71f4138b61
@@ -14,6 +14,7 @@ module RockRMS
14
14
  include RockRMS::Client::Fund
15
15
  include RockRMS::Client::PaymentMethod
16
16
  include RockRMS::Client::Person
17
+ include RockRMS::Client::TransactionDetail
17
18
 
18
19
  attr_reader :url, :username, :password, :logger, :cookie, :connection
19
20
 
@@ -32,11 +32,14 @@ module RockRMS
32
32
  post(transaction_path, options)
33
33
  end
34
34
 
35
- def update_transaction(id, options={})
35
+ def update_donation(id, batch_id:)
36
+ options = {
37
+ "BatchId" => batch_id
38
+ }
36
39
  patch(transaction_path(id), options)
37
40
  end
38
41
 
39
- def delete_transaction(id)
42
+ def delete_donation(id)
40
43
  delete(transaction_path(id))
41
44
  end
42
45
 
@@ -0,0 +1,27 @@
1
+ module RockRMS
2
+ class Client
3
+ module TransactionDetail
4
+
5
+ def list_transaction_details(options={})
6
+ get(transaction_detail_path, options)
7
+ end
8
+
9
+ def find_transaction_detail(id)
10
+ get(transaction_detail_path(id))
11
+ end
12
+
13
+ def update_transaction_detail(id, account_id:)
14
+ options = {
15
+ "AccountId" => account_id
16
+ }
17
+ patch(transaction_detail_path(id), options)
18
+ end
19
+
20
+ private
21
+
22
+ def transaction_detail_path(id = nil)
23
+ id ? "FinancialTransactionDetails/#{id}" : "FinancialTransactionDetails"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-11 00:00:00.000000000 Z
11
+ date: 2017-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -100,6 +100,7 @@ files:
100
100
  - lib/rock_rms/resources/fund.rb
101
101
  - lib/rock_rms/resources/payment_method.rb
102
102
  - lib/rock_rms/resources/person.rb
103
+ - lib/rock_rms/resources/transaction_detail.rb
103
104
  - lib/rock_rms/responses/donation.rb
104
105
  - lib/rock_rms/responses/fund.rb
105
106
  - lib/rock_rms/responses/person.rb
@@ -125,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
126
  version: '0'
126
127
  requirements: []
127
128
  rubyforge_project:
128
- rubygems_version: 2.5.1
129
+ rubygems_version: 2.4.8
129
130
  signing_key:
130
131
  specification_version: 4
131
132
  summary: A Ruby wrapper for the Rock RMS API