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 +4 -4
- data/lib/rock_rms/client.rb +2 -0
- data/lib/rock_rms/resources/exception_log.rb +17 -0
- data/lib/rock_rms/resources/lava_shortcodes.rb +67 -0
- data/lib/rock_rms/resources/recurring_donation.rb +11 -3
- data/lib/rock_rms/response/exception_log.rb +17 -0
- data/lib/rock_rms/response/lava_shortcode.rb +20 -0
- data/lib/rock_rms/response/recurring_donation.rb +3 -1
- data/lib/rock_rms/version.rb +1 -1
- data/spec/rock_rms/resources/recurring_donation_spec.rb +2 -0
- data/spec/rock_rms/response/recurring_donation_spec.rb +2 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92beee8a5c17475ed71b6bf688ae9f31dcb32348bb2a9d62ed4ba4702e9d82cc
|
4
|
+
data.tar.gz: 43634e5e1f99308672c93b2630fedfc0f5a4883dc8b34d83a75edbff17c5b0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64abb56ec232a60dd1c79f76c8a378dd5c2124006d59d2e6e9f7c1936d47f5a66357564b43826f0160b243cd15a47bf0a1cbd7a8f2d48a492008e9052fb201a8
|
7
|
+
data.tar.gz: 2672b0a568e05a81c6607a74cb0391446ad629bf3c9099512a630e6a87f26049c61dd8ab2ea0ea7c77b80dc5e33d477237d78500ee24d35b4e9628ec9105a036
|
data/lib/rock_rms/client.rb
CHANGED
@@ -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)
|
data/lib/rock_rms/version.rb
CHANGED
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.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-
|
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
|