rock_rms 5.14.0 → 5.15.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: 6d6e5cdc46e8c8afcfc54b75b7e4ecf8e057e7c933975eb849dd6cf815a4fedf
4
- data.tar.gz: 24bf2e6efd6cc45fe66c0da6ae219012f7220a7237aab44a1175ff35b4d8f119
3
+ metadata.gz: 38a5f0a7bc780afd9b9b3115d567198b1d44314f3d66ba51ec3d8102ea8a1b89
4
+ data.tar.gz: d741e1c8f38e8a58f32155932cc2f0e6b385b66d34fe44b58e270b77019246ca
5
5
  SHA512:
6
- metadata.gz: c96edbd507f6513d133a638d454402db9ae33b3b7e4871e3a48d6c165f176b232fba6f7e3302a26b433813fa3dc7101a286132a0781d8e145076875a378f5799
7
- data.tar.gz: 938b7c5549980dd11a7837cece05973a61eaca2bf9ed8b1788d40d45141d6d6e8dfefdeacd7884c51f2a8d7449562cdea110896de2d4ea7eafe867201337a15c
6
+ metadata.gz: c8d6f9707b40172016072805389d42a675e6ea250be0d8dc0bb9db9a202ef0192a78aec34af59789dddc2e45391c79a3cce6de2f06e0b03210940eac4e536ff2
7
+ data.tar.gz: 3bb11888fde235dacff1b9fa590217186fbacb4aca7579de2f7c055114d8fb4160e8ef16e2138e2654809733ab72b91f164b6ccc911dfa7bd4a1c8c6243afab5
@@ -17,6 +17,7 @@ module RockRMS
17
17
  foreign_key: nil,
18
18
  frequency:,
19
19
  funds:,
20
+ end_date: nil,
20
21
  gateway_id: nil,
21
22
  gateway_schedule_id: nil,
22
23
  next_payment_date:,
@@ -40,6 +41,9 @@ module RockRMS
40
41
  'SourceTypeValueId' => source_type_id,
41
42
  'ForeignKey' => foreign_key
42
43
  }
44
+
45
+ options['EndDate'] = end_date if end_date
46
+
43
47
  post(recurring_donation_path, options)
44
48
  end
45
49
 
@@ -49,13 +53,15 @@ module RockRMS
49
53
  transaction_code: nil,
50
54
  payment_detail_id: nil,
51
55
  active: nil,
52
- frequency: nil
56
+ frequency: nil,
57
+ end_date: nil
53
58
  )
54
59
  options = { 'NextPaymentDate' => next_payment_date }
55
60
  options['FinancialPaymentDetailId'] = payment_detail_id if payment_detail_id
56
61
  options['TransactionCode'] = transaction_code if transaction_code
57
62
  options['IsActive'] = active if !active.nil?
58
63
  options['TransactionFrequencyValueId'] = RecurringFrequencies::RECURRING_FREQUENCIES[frequency] if !frequency.nil?
64
+ options['EndDate'] = end_date if end_date
59
65
 
60
66
  patch(recurring_donation_path(id), options)
61
67
  end
@@ -7,6 +7,7 @@ module RockRMS
7
7
  financial_gateway_id: 'FinancialGatewayId',
8
8
  foreign_key: 'ForeignKey',
9
9
  frequency: 'TransactionFrequencyValueId',
10
+ end_date: 'EndDate',
10
11
  gateway_schedule_id: 'GatewayScheduleId',
11
12
  next_payment_date: 'NextPaymentDate',
12
13
  payment_details: 'FinancialPaymentDetail',
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '5.14.0'.freeze
2
+ VERSION = '5.15.0'.freeze
3
3
  end
@@ -20,6 +20,7 @@ RSpec.describe RockRMS::Response::RecurringDonation, type: :model do
20
20
  financial_gateway_id
21
21
  foreign_key
22
22
  frequency
23
+ end_date
23
24
  gateway_schedule_id
24
25
  next_payment_date
25
26
  payment_details
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: 5.14.0
4
+ version: 5.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -339,7 +339,7 @@ homepage: https://github.com/taylorbrooks/rock_rms
339
339
  licenses:
340
340
  - MIT
341
341
  metadata: {}
342
- post_install_message:
342
+ post_install_message:
343
343
  rdoc_options: []
344
344
  require_paths:
345
345
  - lib
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  requirements: []
357
357
  rubygems_version: 3.1.4
358
- signing_key:
358
+ signing_key:
359
359
  specification_version: 4
360
360
  summary: A Ruby wrapper for the Rock RMS API
361
361
  test_files: []