rock_rms 4.4.0 → 4.5.0
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/resources/transaction.rb +10 -7
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/resources/transaction_spec.rb +6 -2
- 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: 59e90862a4b1de48956ca5013d237994dee60ac3
|
4
|
+
data.tar.gz: ee44b3c8fdcfe8a733d684f10cfe12cd797c9087
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4774e516bd2ecb8c093393aa0effd7a4b2c621df478f27096f1705c1c0d1f00b7b852d948bcd2d44d8a269c527647484782ac7f3c92a05845d8eb0c1ce47e8ea
|
7
|
+
data.tar.gz: 5741aff3e3087ff2fa0463ecf4dfb90a3616ee1c92e3a59ecbc77ff74b43973528ac14128509dc65ae469e04052c2bfece0a68361aa84b9586e3ffbcb8f6a070
|
@@ -28,7 +28,8 @@ module RockRMS
|
|
28
28
|
transaction_code: nil,
|
29
29
|
summary: nil,
|
30
30
|
recurring_donation_id: nil,
|
31
|
-
gateway_id: nil
|
31
|
+
gateway_id: nil,
|
32
|
+
transaction_type_value_id: 53 # contribution, registration
|
32
33
|
)
|
33
34
|
|
34
35
|
options = {
|
@@ -40,7 +41,7 @@ module RockRMS
|
|
40
41
|
'TransactionCode' => transaction_code,
|
41
42
|
'TransactionDateTime' => date,
|
42
43
|
'TransactionDetails' => translate_funds(funds),
|
43
|
-
'TransactionTypeValueId' =>
|
44
|
+
'TransactionTypeValueId' => transaction_type_value_id,
|
44
45
|
'SourceTypeValueId' => source_type_id, # website, kiosk, mobile app
|
45
46
|
'Summary' => summary
|
46
47
|
}
|
@@ -54,16 +55,18 @@ module RockRMS
|
|
54
55
|
recurring_donation_id: nil,
|
55
56
|
gateway_id: nil,
|
56
57
|
source_type_id: nil,
|
57
|
-
transaction_code: nil
|
58
|
+
transaction_code: nil,
|
59
|
+
transaction_type_value_id: nil
|
58
60
|
)
|
59
61
|
options = {}
|
60
62
|
|
61
63
|
options['Summary'] = summary if summary
|
62
64
|
options['BatchId'] = batch_id if batch_id
|
63
|
-
options['FinancialGatewayId'] = gateway_id
|
64
|
-
options['ScheduledTransactionId'] = recurring_donation_id
|
65
|
-
options['SourceTypeValueId'] = source_type_id
|
66
|
-
options['
|
65
|
+
options['FinancialGatewayId'] = gateway_id if gateway_id
|
66
|
+
options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
|
67
|
+
options['SourceTypeValueId'] = source_type_id if source_type_id
|
68
|
+
options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
|
69
|
+
options['TransactionCode'] = transaction_code if transaction_code
|
67
70
|
|
68
71
|
patch(transaction_path(id), options)
|
69
72
|
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -100,7 +100,9 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
|
|
100
100
|
client.update_transaction(
|
101
101
|
123,
|
102
102
|
batch_id: 1,
|
103
|
-
summary: 'taco tuesday'
|
103
|
+
summary: 'taco tuesday',
|
104
|
+
source_type_id: 5,
|
105
|
+
transaction_type_value_id: 54
|
104
106
|
)
|
105
107
|
end
|
106
108
|
|
@@ -113,7 +115,9 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
|
|
113
115
|
.with(
|
114
116
|
'FinancialTransactions/123',
|
115
117
|
'BatchId' => 1,
|
116
|
-
'Summary' => 'taco tuesday'
|
118
|
+
'Summary' => 'taco tuesday',
|
119
|
+
'TransactionTypeValueId' => 54,
|
120
|
+
'SourceTypeValueId' => 5
|
117
121
|
)
|
118
122
|
.and_call_original
|
119
123
|
resource
|
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: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|