rock_rms 8.19.0 → 8.20.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/refund.rb +3 -1
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/resources/refund_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c691d56692e51a977969f06bdb9a990a42ed6b51e20fedd4b0ad38ff89e85ac1
|
4
|
+
data.tar.gz: e5c8f79f5e471bd1a5ab0d8d1a5144d7ed13bba4ba851a0a6d72c9c6973567f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12d44c778099cd60f59f42ca0a5bc7c19f974db21d91c2946dbeb6e3d80e5c177a2457a5ef9b72cdb05383b5f85cd08bd20e44edc09fc5d556f86ed8c5114426
|
7
|
+
data.tar.gz: f6fe6941f2218816806adcd5429f551db13148d9e79c6b34989479861832dc308dbc7bc256a27ccba2a6040257c562baaf7ccb512f1b96c1c4c7bde132693224
|
@@ -20,6 +20,7 @@ module RockRMS
|
|
20
20
|
|
21
21
|
transaction_amount = old_transaction[:details].map{|d| d[:amount]}.reduce(0.0){|sum,x| sum + x }
|
22
22
|
|
23
|
+
|
23
24
|
refund_amount = amount || transaction_amount
|
24
25
|
|
25
26
|
params = {
|
@@ -34,7 +35,8 @@ module RockRMS
|
|
34
35
|
'TransactionDateTime' => date,
|
35
36
|
'TransactionDetails' => refunded_details(old_transaction[:details], transaction_amount, refund_amount),
|
36
37
|
'TransactionTypeValueId' => old_transaction[:transaction_type_id],
|
37
|
-
'SourceTypeValueId' => old_transaction[:source_type_id]
|
38
|
+
'SourceTypeValueId' => old_transaction[:source_type_id],
|
39
|
+
'ScheduledTransactionId' => old_transaction[:recurring_donation_id]
|
38
40
|
}
|
39
41
|
}
|
40
42
|
post(refund_path, params)
|
data/lib/rock_rms/version.rb
CHANGED
@@ -71,6 +71,7 @@ RSpec.describe RockRMS::Client::Refund, type: :model do
|
|
71
71
|
],
|
72
72
|
'TransactionTypeValueId' => 53,
|
73
73
|
'SourceTypeValueId' => 10,
|
74
|
+
'ScheduledTransactionId' => 1,
|
74
75
|
'TransactionCode' => nil
|
75
76
|
}
|
76
77
|
}
|
@@ -123,6 +124,7 @@ RSpec.describe RockRMS::Client::Refund, type: :model do
|
|
123
124
|
"EntityId" => nil
|
124
125
|
}
|
125
126
|
],
|
127
|
+
'ScheduledTransactionId' => 1,
|
126
128
|
'TransactionTypeValueId' => 53,
|
127
129
|
'SourceTypeValueId' => 10,
|
128
130
|
'TransactionCode' => nil
|
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: 8.
|
4
|
+
version: 8.20.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: 2024-03-
|
11
|
+
date: 2024-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|