rock_rms 8.15.2 → 8.17.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f0b9900cba329642e56b5e6ea5f12f4615bfdf737c0f51d27fb28daa353cc31
|
4
|
+
data.tar.gz: 25dc0750f38a452ab7970ce4d34d1ec3c0058bce7490e851c9c6c17190ab73bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 756481b8f9c1953457345897a0bb5c9398b376af75484af3e36a0537e7396dafb421507defd9f41e2ff3f28f2a2e9ac5d2f4422c9212ec02296ebaa37a505889
|
7
|
+
data.tar.gz: e24a14d946607953e7e7997e591e26c71c622b128d0fecddf9337123e43e80bfda6dbb770169e5ab53cba3b0f0b95883c33bb175ef137a03a6cc25a10b7f931e
|
@@ -63,7 +63,7 @@ module RockRMS
|
|
63
63
|
end_date: nil,
|
64
64
|
summary: nil,
|
65
65
|
status: nil,
|
66
|
-
status_message:
|
66
|
+
status_message: :default_value
|
67
67
|
)
|
68
68
|
options = { 'NextPaymentDate' => next_payment_date }
|
69
69
|
options['FinancialPaymentDetailId'] = payment_detail_id if payment_detail_id
|
@@ -73,7 +73,7 @@ module RockRMS
|
|
73
73
|
options['EndDate'] = end_date if end_date
|
74
74
|
options['Summary'] = summary if summary
|
75
75
|
options['Status'] = status if status
|
76
|
-
options['StatusMessage'] = status_message
|
76
|
+
options['StatusMessage'] = status_message unless status_message == :default_value
|
77
77
|
|
78
78
|
patch(recurring_donation_path(id), options)
|
79
79
|
end
|
data/lib/rock_rms/version.rb
CHANGED
@@ -66,6 +66,25 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
|
|
66
66
|
expect(resource).to be_nil
|
67
67
|
end
|
68
68
|
|
69
|
+
it 'updates status_message with nil' do
|
70
|
+
expect(client).to receive(:patch)
|
71
|
+
.with(
|
72
|
+
'FinancialScheduledTransactions/123',
|
73
|
+
{
|
74
|
+
'NextPaymentDate' => '2018-01-01',
|
75
|
+
'StatusMessage' => ''
|
76
|
+
}
|
77
|
+
).and_call_original
|
78
|
+
|
79
|
+
resource = client.update_recurring_donation(
|
80
|
+
123,
|
81
|
+
next_payment_date: '2018-01-01',
|
82
|
+
status_message: ''
|
83
|
+
)
|
84
|
+
|
85
|
+
expect(resource).to be_nil
|
86
|
+
end
|
87
|
+
|
69
88
|
context 'arguments' do
|
70
89
|
it 'require `id`' do
|
71
90
|
expect { client.update_recurring_donation }
|
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.17.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:
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|