rock_rms 8.18.0 → 8.20.0

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
  SHA256:
3
- metadata.gz: b7e99fc8409c0d590cb572fb128150b77d957a72cf1675b53df7519d94c05790
4
- data.tar.gz: 379e1b22537833b6984a6817707923b23a592880633847c091a835f47edf5f30
3
+ metadata.gz: c691d56692e51a977969f06bdb9a990a42ed6b51e20fedd4b0ad38ff89e85ac1
4
+ data.tar.gz: e5c8f79f5e471bd1a5ab0d8d1a5144d7ed13bba4ba851a0a6d72c9c6973567f4
5
5
  SHA512:
6
- metadata.gz: d2bd36bb32306724434c43bef67c8af7b721100fe3993507ac7150a643d43711093b23f959763e16f0f589d9d67f6307dd8343c4f9d1c55c796dff5976928161
7
- data.tar.gz: e4c9b6577f2d4a05afc8d5867f2f908bbfd3635d196fc91db6d00f007d673272f2e4b8033eb3b69b67dd68366dc1932fe40ff1669fb29baab824cdd19f497d8a
6
+ metadata.gz: 12d44c778099cd60f59f42ca0a5bc7c19f974db21d91c2946dbeb6e3d80e5c177a2457a5ef9b72cdb05383b5f85cd08bd20e44edc09fc5d556f86ed8c5114426
7
+ data.tar.gz: f6fe6941f2218816806adcd5429f551db13148d9e79c6b34989479861832dc308dbc7bc256a27ccba2a6040257c562baaf7ccb512f1b96c1c4c7bde132693224
@@ -11,6 +11,15 @@ module RockRMS
11
11
  Response::Fund.format(res)
12
12
  end
13
13
 
14
+ def create_fund(name:, is_tax_deductible:)
15
+ options = {
16
+ 'Name' => name,
17
+ 'IsTaxDeductible' => is_tax_deductible,
18
+ }
19
+
20
+ post(fund_path, options)
21
+ end
22
+
14
23
  private
15
24
 
16
25
  def fund_path(id = nil)
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.18.0'.freeze
2
+ VERSION = '8.20.0'.freeze
3
3
  end
@@ -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.18.0
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-05 00:00:00.000000000 Z
11
+ date: 2024-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday