rock_rms 8.12.0 → 8.14.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: 764cdf12fa7e05329069c42db1d4946080b8703a48463658ac61ee855a203c22
4
- data.tar.gz: 1f8bf03b7e1a3c36cd07cd4e86267615c7e90d994948d9b9d6192ae239638c46
3
+ metadata.gz: 92beee8a5c17475ed71b6bf688ae9f31dcb32348bb2a9d62ed4ba4702e9d82cc
4
+ data.tar.gz: 43634e5e1f99308672c93b2630fedfc0f5a4883dc8b34d83a75edbff17c5b0cc
5
5
  SHA512:
6
- metadata.gz: f70ed6086fb9d7b4ad3a28ced83ccece10f1828fc0b697d402282757dc256575d65844c46bf98a2098c8600fe15d04860a310e93dfb886dbc56695b5b864b449
7
- data.tar.gz: 44ef4d8ac411af8899f5c75f942c9d430f705c56725966e45ade6f2c2a9d69ce9fd52edb78afb80ad25c437ae741ef351f2f266427249645868f5a2936b09872
6
+ metadata.gz: 64abb56ec232a60dd1c79f76c8a378dd5c2124006d59d2e6e9f7c1936d47f5a66357564b43826f0160b243cd15a47bf0a1cbd7a8f2d48a492008e9052fb201a8
7
+ data.tar.gz: 2672b0a568e05a81c6607a74cb0391446ad629bf3c9099512a630e6a87f26049c61dd8ab2ea0ea7c77b80dc5e33d477237d78500ee24d35b4e9628ec9105a036
@@ -21,10 +21,12 @@ module RockRMS
21
21
  include RockRMS::Client::Campus
22
22
  include RockRMS::Client::DefinedType
23
23
  include RockRMS::Client::DefinedValue
24
+ include RockRMS::Client::ExceptionLog
24
25
  include RockRMS::Client::Gateway
25
26
  include RockRMS::Client::Group
26
27
  include RockRMS::Client::GroupMember
27
28
  include RockRMS::Client::History
29
+ include RockRMS::Client::LavaShortcode
28
30
  include RockRMS::Client::Page
29
31
  include RockRMS::Client::PaymentDetail
30
32
  include RockRMS::Client::Person
@@ -0,0 +1,17 @@
1
+ module RockRMS
2
+ class Client
3
+ module ExceptionLog
4
+ def list_exception_logs(options = {})
5
+ Response::ExceptionLog.format(
6
+ get(exception_logs_path, options)
7
+ )
8
+ end
9
+
10
+ private
11
+
12
+ def exception_logs_path
13
+ 'ExceptionLogs'.freeze
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,67 @@
1
+ module RockRMS
2
+ class Client
3
+ module LavaShortcode
4
+ def list_lava_shortcodes(options = {})
5
+ res = get(lava_shortcodes_path, options)
6
+ Response::LavaShortcode.format(res)
7
+ end
8
+
9
+ def find_lava_shortcode(id)
10
+ res = get(lava_shortcodes_path(id))
11
+ Response::LavaShortcode.format(res)
12
+ end
13
+
14
+ def create_lava_shortcode(
15
+ name:,
16
+ description:,
17
+ documentation:,
18
+ active:,
19
+ is_system:,
20
+ markup:,
21
+ parameters:
22
+ )
23
+ options = {
24
+ 'Name' => name,
25
+ 'Description' => description,
26
+ 'Documentation' => documentation,
27
+ 'IsActive' => active,
28
+ 'IsSystem' => is_system,
29
+ 'Markup' => markup,
30
+ 'Parameters' => parameters
31
+ }
32
+
33
+ post(lava_shortcodes_path, options)
34
+ end
35
+
36
+ def update_lava_shortcode(
37
+ id,
38
+ name: nil,
39
+ description: nil,
40
+ documentation: nil,
41
+ active: nil,
42
+ is_system: nil,
43
+ markup: nil,
44
+ parameters: nil
45
+ )
46
+
47
+ options = {}
48
+
49
+ options['Name'] = name if name
50
+ options['Description'] = description if description
51
+ options['Documentation'] = documentation if documentation
52
+ options['IsActive'] = active if active
53
+ options['IsSystem'] = is_system if is_system
54
+ options['Markup'] = markup if markup
55
+ options['Parameters'] = parameters if parameters
56
+
57
+ patch(lava_shortcodes_path(id), options)
58
+ end
59
+
60
+ private
61
+
62
+ def lava_shortcodes_path(id = nil)
63
+ id ? "LavaShortcodes/#{id}" : 'LavaShortcodes'
64
+ end
65
+ end
66
+ end
67
+ end
@@ -25,7 +25,9 @@ module RockRMS
25
25
  source_type_id: 10,
26
26
  transaction_code: nil,
27
27
  start_date:,
28
- summary: nil
28
+ summary: nil,
29
+ status: nil,
30
+ status_message: nil
29
31
  )
30
32
 
31
33
  options = {
@@ -41,7 +43,9 @@ module RockRMS
41
43
  'GatewayScheduleId' => gateway_schedule_id,
42
44
  'SourceTypeValueId' => source_type_id,
43
45
  'ForeignKey' => foreign_key,
44
- 'Summary' => summary
46
+ 'Summary' => summary,
47
+ 'Status' => status,
48
+ 'StatusMessage' => status_message
45
49
  }
46
50
 
47
51
  options['EndDate'] = end_date if end_date
@@ -57,7 +61,9 @@ module RockRMS
57
61
  active: nil,
58
62
  frequency: nil,
59
63
  end_date: nil,
60
- summary: nil
64
+ summary: nil,
65
+ status: nil,
66
+ status_message: nil
61
67
  )
62
68
  options = { 'NextPaymentDate' => next_payment_date }
63
69
  options['FinancialPaymentDetailId'] = payment_detail_id if payment_detail_id
@@ -66,6 +72,8 @@ module RockRMS
66
72
  options['TransactionFrequencyValueId'] = RecurringFrequencies::RECURRING_FREQUENCIES[frequency] if !frequency.nil?
67
73
  options['EndDate'] = end_date if end_date
68
74
  options['Summary'] = summary if summary
75
+ options['Status'] = status if status
76
+ options['StatusMessage'] = status_message if status_message
69
77
 
70
78
  patch(recurring_donation_path(id), options)
71
79
  end
@@ -0,0 +1,17 @@
1
+ module RockRMS
2
+ module Response
3
+ class ExceptionLog < Base
4
+ MAP = {
5
+ exception_type: 'ExceptionType',
6
+ description: 'Description',
7
+ stack_trace: 'StackTrace',
8
+ page_url: 'PageUrl',
9
+ source: 'Source',
10
+ }.freeze
11
+
12
+ def format_single(data)
13
+ to_h(MAP, data)
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,20 @@
1
+ module RockRMS
2
+ module Response
3
+ class LavaShortcode < Base
4
+ MAP = {
5
+ name: 'Name',
6
+ description: 'Description',
7
+ documentation: 'Documentation',
8
+ active: 'IsActive',
9
+ is_system: 'IsSystem',
10
+ tag_name: 'TagName',
11
+ markup: 'Markup',
12
+ parameters: 'Parameters'
13
+ }.freeze
14
+
15
+ def format_single(data)
16
+ to_h(MAP, data)
17
+ end
18
+ end
19
+ end
20
+ end
@@ -15,7 +15,9 @@ module RockRMS
15
15
  transaction_details: 'ScheduledTransactionDetails',
16
16
  transaction_code: 'TransactionCode',
17
17
  transaction_type_id: 'TransactionTypeValueId',
18
- summary: 'Summary'
18
+ summary: 'Summary',
19
+ status: 'Status',
20
+ status_message: 'StatusMessage',
19
21
  }.freeze
20
22
 
21
23
  def format_single(data)
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '8.12.0'.freeze
2
+ VERSION = '8.14.0'.freeze
3
3
  end
@@ -147,6 +147,8 @@ RSpec.describe RockRMS::Client::RecurringDonation, type: :model do
147
147
  'SourceTypeValueId' => 10,
148
148
  'ForeignKey' => nil,
149
149
  'Summary' => nil,
150
+ 'Status' => nil,
151
+ 'StatusMessage' => nil
150
152
  }
151
153
  )
152
154
  .and_call_original
@@ -29,6 +29,8 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
29
29
  transaction_code
30
30
  transaction_type_id
31
31
  summary
32
+ status
33
+ status_message
32
34
  id
33
35
  guid
34
36
  created_date_time
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.12.0
4
+ version: 8.14.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-08-06 00:00:00.000000000 Z
11
+ date: 2023-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -196,11 +196,13 @@ files:
196
196
  - lib/rock_rms/resources/campus.rb
197
197
  - lib/rock_rms/resources/defined_type.rb
198
198
  - lib/rock_rms/resources/defined_value.rb
199
+ - lib/rock_rms/resources/exception_log.rb
199
200
  - lib/rock_rms/resources/fund.rb
200
201
  - lib/rock_rms/resources/gateway.rb
201
202
  - lib/rock_rms/resources/group.rb
202
203
  - lib/rock_rms/resources/group_member.rb
203
204
  - lib/rock_rms/resources/history.rb
205
+ - lib/rock_rms/resources/lava_shortcodes.rb
204
206
  - lib/rock_rms/resources/page.rb
205
207
  - lib/rock_rms/resources/payment_detail.rb
206
208
  - lib/rock_rms/resources/person.rb
@@ -231,12 +233,14 @@ files:
231
233
  - lib/rock_rms/response/campus.rb
232
234
  - lib/rock_rms/response/defined_type.rb
233
235
  - lib/rock_rms/response/defined_value.rb
236
+ - lib/rock_rms/response/exception_log.rb
234
237
  - lib/rock_rms/response/fund.rb
235
238
  - lib/rock_rms/response/gateway.rb
236
239
  - lib/rock_rms/response/group.rb
237
240
  - lib/rock_rms/response/group_location.rb
238
241
  - lib/rock_rms/response/group_member.rb
239
242
  - lib/rock_rms/response/history.rb
243
+ - lib/rock_rms/response/lava_shortcode.rb
240
244
  - lib/rock_rms/response/location.rb
241
245
  - lib/rock_rms/response/page.rb
242
246
  - lib/rock_rms/response/payment_detail.rb