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 +4 -4
- data/lib/rock_rms/client.rb +1 -0
- data/lib/rock_rms/resources/donation.rb +5 -2
- data/lib/rock_rms/resources/transaction_detail.rb +27 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23113f01b7defa277cffc1e533afbb5b5e66228b
|
4
|
+
data.tar.gz: 993da8f297b8fe77b92fec906c3f6fc5a37966a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc4a42c7b34a498335b1d6400b6bc240993dafe440bebd612c733043635361a838027030e1068de826d18c5403eee282fd3ee53c04c337281efaf1954b7b710
|
7
|
+
data.tar.gz: d0a6f3e8db3426ef01290c332be080117c4b05f72faab52902919a4d4fd693942018a975da9e9fa7a1e16e216515deb81d4b43d9ac9d655bcfd2bd71f4138b61
|
data/lib/rock_rms/client.rb
CHANGED
@@ -32,11 +32,14 @@ module RockRMS
|
|
32
32
|
post(transaction_path, options)
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
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
|
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
|
data/lib/rock_rms/version.rb
CHANGED
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.
|
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
|
+
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.
|
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
|