rock_rms 8.15.1 → 8.16.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: 5a73b786f0737e68809d93e272394afe36c36694cff60610e107da608cb3b806
4
- data.tar.gz: 9914ae85360357639e9234b24d1e7de82c2e36c17f446b3d4b91818aaaa00a65
3
+ metadata.gz: 5c0a94190def4023aaec70bf13cd3691534982a338ea21e9a4e8a73bf99183d9
4
+ data.tar.gz: d349931b6b325f1be9fc634cdaf0d5af69778804c3622eb6344c9579b32385cd
5
5
  SHA512:
6
- metadata.gz: fb403eb1788bbc109da8dc8ca30eb8c76c7091e99218d6391ec8c8ab0ddd65006d388c67db6e582af6882bd0f9dcc317a59e32b9ea80e1cdfe524633d58aad16
7
- data.tar.gz: b3b345272263b2958858e37a09eb736c84e160230deceb9447b029a667738a176cab5df9ccf60f66da14ba88bb882e9621917ef61c77da12fe3e776d378f6472
6
+ metadata.gz: 052ae0fb7b862b3f3a65e9b718f9eeae3e1bab8d3cb2a38f9aab9b5896bd891b1dc591b2775ffbd14cabc08085e8dbda47207be1207e56aa1657314100626944
7
+ data.tar.gz: 8225f87526939f7e0f4d90c676c2e08291059591782575eadad8ebe81893dab8f0cc6b0dc3e95bcd1ff1fdc79ca41e7b29869d41056ce2d8dbecae7b170b50e1
@@ -21,7 +21,8 @@ module RockRMS
21
21
  enabled_lava_commands:,
22
22
  parameters:,
23
23
  tag_name:,
24
- tag_type:
24
+ tag_type:,
25
+ foreign_key: nil
25
26
  )
26
27
  options = {
27
28
  'Name' => name,
@@ -34,6 +35,7 @@ module RockRMS
34
35
  'Parameters' => parameters,
35
36
  'TagName' => tag_name,
36
37
  'TagType' => tag_type,
38
+ 'ForeignKey' => foreign_key
37
39
  }
38
40
 
39
41
  post(lava_shortcodes_path, options)
@@ -50,7 +52,8 @@ module RockRMS
50
52
  enabled_lava_commands: nil,
51
53
  parameters: nil,
52
54
  tag_name: nil,
53
- tag_type: nil
55
+ tag_type: nil,
56
+ foreign_key: nil
54
57
  )
55
58
 
56
59
  options = {}
@@ -64,6 +67,7 @@ module RockRMS
64
67
  options['Parameters'] = parameters if parameters
65
68
  options['TagName'] = tag_name if tag_name
66
69
  options['TagType'] = tag_type if tag_type
70
+ options['ForeignKey'] = foreign_key if foreign_key
67
71
  options['EnabledLavaCommands'] = enabled_lava_commands if enabled_lava_commands
68
72
 
69
73
  patch(lava_shortcodes_path(id), options)
@@ -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 if status_message
76
+ options['StatusMessage'] = status_message if status_message || status_message == ''
77
77
 
78
78
  patch(recurring_donation_path(id), options)
79
79
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.15.1'.freeze
2
+ VERSION = '8.16.0'.freeze
3
3
  end
@@ -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.15.1
4
+ version: 8.16.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: 2023-10-23 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday