rock_rms 4.4.0 → 4.5.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
  SHA1:
3
- metadata.gz: 8c716d4cbee155ea3a7949b4a084f06ba13369e7
4
- data.tar.gz: ed4d832e292427589a88bc8cb06ce72d7e5b75fb
3
+ metadata.gz: 59e90862a4b1de48956ca5013d237994dee60ac3
4
+ data.tar.gz: ee44b3c8fdcfe8a733d684f10cfe12cd797c9087
5
5
  SHA512:
6
- metadata.gz: d705796a1412311639807bf29a4a30cb774b0e4ffad25bb4e3d906b8ea7c6eaa4e66d4436291b7d3c95721efbe9967fd9dc82c28fd7dedf216a8266ac9cf62d1
7
- data.tar.gz: c8d0ac7013a2f45e8f65ea263ad7c4951b206c8e779b0818cbb0c83e1c5f46e1dfdcfd03c1b82d03705f226690486cadb429eaade24b32565a1561969f5a746d
6
+ metadata.gz: 4774e516bd2ecb8c093393aa0effd7a4b2c621df478f27096f1705c1c0d1f00b7b852d948bcd2d44d8a269c527647484782ac7f3c92a05845d8eb0c1ce47e8ea
7
+ data.tar.gz: 5741aff3e3087ff2fa0463ecf4dfb90a3616ee1c92e3a59ecbc77ff74b43973528ac14128509dc65ae469e04052c2bfece0a68361aa84b9586e3ffbcb8f6a070
@@ -28,7 +28,8 @@ module RockRMS
28
28
  transaction_code: nil,
29
29
  summary: nil,
30
30
  recurring_donation_id: nil,
31
- gateway_id: nil
31
+ gateway_id: nil,
32
+ transaction_type_value_id: 53 # contribution, registration
32
33
  )
33
34
 
34
35
  options = {
@@ -40,7 +41,7 @@ module RockRMS
40
41
  'TransactionCode' => transaction_code,
41
42
  'TransactionDateTime' => date,
42
43
  'TransactionDetails' => translate_funds(funds),
43
- 'TransactionTypeValueId' => 53, # contribution, registration
44
+ 'TransactionTypeValueId' => transaction_type_value_id,
44
45
  'SourceTypeValueId' => source_type_id, # website, kiosk, mobile app
45
46
  'Summary' => summary
46
47
  }
@@ -54,16 +55,18 @@ module RockRMS
54
55
  recurring_donation_id: nil,
55
56
  gateway_id: nil,
56
57
  source_type_id: nil,
57
- transaction_code: nil
58
+ transaction_code: nil,
59
+ transaction_type_value_id: nil
58
60
  )
59
61
  options = {}
60
62
 
61
63
  options['Summary'] = summary if summary
62
64
  options['BatchId'] = batch_id if batch_id
63
- options['FinancialGatewayId'] = gateway_id if gateway_id
64
- options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
65
- options['SourceTypeValueId'] = source_type_id if source_type_id
66
- options['TransactionCode'] = transaction_code if transaction_code
65
+ options['FinancialGatewayId'] = gateway_id if gateway_id
66
+ options['ScheduledTransactionId'] = recurring_donation_id if recurring_donation_id
67
+ options['SourceTypeValueId'] = source_type_id if source_type_id
68
+ options['TransactionTypeValueId'] = transaction_type_value_id if transaction_type_value_id
69
+ options['TransactionCode'] = transaction_code if transaction_code
67
70
 
68
71
  patch(transaction_path(id), options)
69
72
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '4.4.0'.freeze
2
+ VERSION = '4.5.0'.freeze
3
3
  end
@@ -100,7 +100,9 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
100
100
  client.update_transaction(
101
101
  123,
102
102
  batch_id: 1,
103
- summary: 'taco tuesday'
103
+ summary: 'taco tuesday',
104
+ source_type_id: 5,
105
+ transaction_type_value_id: 54
104
106
  )
105
107
  end
106
108
 
@@ -113,7 +115,9 @@ RSpec.describe RockRMS::Client::Transaction, type: :model do
113
115
  .with(
114
116
  'FinancialTransactions/123',
115
117
  'BatchId' => 1,
116
- 'Summary' => 'taco tuesday'
118
+ 'Summary' => 'taco tuesday',
119
+ 'TransactionTypeValueId' => 54,
120
+ 'SourceTypeValueId' => 5
117
121
  )
118
122
  .and_call_original
119
123
  resource
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: 4.4.0
4
+ version: 4.5.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: 2018-09-12 00:00:00.000000000 Z
11
+ date: 2018-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday