rock_rms 0.0.9 → 0.0.10
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/rock_rms/resources/donation.rb +12 -3
- data/lib/rock_rms/resources/payment_method.rb +9 -0
- data/lib/rock_rms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f91cc63d34c6ffff2362373c6ccf1e039f615fff
|
4
|
+
data.tar.gz: b1daf2cb7f116f061a0943f9e0bf310953644dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2a7917f9c621012d0b59a23b7cd33231fca966ae0c2f9c2b84188aa891ae5e4600ee502395d46a48c6d8b1490a85fe56402f64c72af04f48526c4b7655aae22
|
7
|
+
data.tar.gz: d14d491ff89b2696313f567deb772fa6d9bb4ce2988e8babe8777c75eb4f5841c643da975a45ea475e3c9d454ebea5553de4a70090cf2af12bc5f8ab1bd0ac27
|
@@ -16,7 +16,16 @@ module RockRMS
|
|
16
16
|
RockRMS::Donation.format(res)
|
17
17
|
end
|
18
18
|
|
19
|
-
def create_donation(
|
19
|
+
def create_donation(
|
20
|
+
amount:,
|
21
|
+
authorized_person_id:,
|
22
|
+
batch_id:,
|
23
|
+
date:,
|
24
|
+
fund_id:,
|
25
|
+
payment_type:,
|
26
|
+
source_type_id: 10,
|
27
|
+
transaction_code: nil
|
28
|
+
)
|
20
29
|
options = {
|
21
30
|
'AuthorizedPersonAliasId' => authorized_person_id,
|
22
31
|
'BatchId' => batch_id,
|
@@ -27,8 +36,8 @@ module RockRMS
|
|
27
36
|
'Amount' => amount,
|
28
37
|
'AccountId' => fund_id
|
29
38
|
}],
|
30
|
-
'TransactionTypeValueId' => 53,
|
31
|
-
'SourceTypeValueId' =>
|
39
|
+
'TransactionTypeValueId' => 53, # contribution, registration
|
40
|
+
'SourceTypeValueId' => source_type_id, # website, kiosk, mobile app
|
32
41
|
}
|
33
42
|
post(transaction_path, options)
|
34
43
|
end
|
@@ -5,6 +5,15 @@ module RockRMS
|
|
5
5
|
get(payment_method_path, options)
|
6
6
|
end
|
7
7
|
|
8
|
+
def create_payment_method(currency_type:, foreign_key: nil)
|
9
|
+
options = {
|
10
|
+
'CurrencyTypeValueId' => currency_type,
|
11
|
+
'ForeignKey' => foreign_key
|
12
|
+
}
|
13
|
+
|
14
|
+
post(payment_method_path, options)
|
15
|
+
end
|
16
|
+
|
8
17
|
private
|
9
18
|
|
10
19
|
def payment_method_path(id = nil)
|
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.10
|
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-
|
11
|
+
date: 2017-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|