rock_rms 5.11.0 → 5.12.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: 61f5253a37866cd7066b265bd4fd005abc144f9f332b6687359ec814b6a9d8d8
4
- data.tar.gz: da5df5d17ce802f4a1d805852d972f31b3f6a80a5f995b308b1d3d5f3a676c73
3
+ metadata.gz: d0846074cb7439ee86aa25cab5c121e34b9f1486447a9caf12cd70ddd9fcee2f
4
+ data.tar.gz: 278d4f04e65c1c9c4db8fdd81121afc9bd5b7ecf45d27ad344d1336ef245e6bc
5
5
  SHA512:
6
- metadata.gz: d7897dfc323efcacecf20d7c226fe3a45150afb4578411c2a0657bb7edaa9e7b4b8654b8e768dfb2bcaeb77da7e91e6c55165e99c6108e508e46ea0ae1a9c3df
7
- data.tar.gz: d4bfc24c2617b35dd8f905adcdd13ebcc4f92cb6d31b75cff59dc07b8e2e84da0d9675d42414d681093c572b89f6a3100c5c5cf963fe6cea87d938ab8ff0678d
6
+ metadata.gz: cf6d0f78e700c9c1f855001eab1421b923e549b9e8734ba9c8a5c26200dba355c9a4cd18f58b69a29d3cf09e37c4c8fac7fa6d90ed914f26d62cb6bc73324b15
7
+ data.tar.gz: 3d3ba0082dc04fbd03aadba0cbe0a439f767593d57234e744c52c09ccd7a8603570321f7f87bb8a7096c3bd2eb8c3a5ca1022e813e504a68fc59ab91b9704bc2
@@ -45,7 +45,9 @@ module RockRMS
45
45
  apportion_refund_amount_over_accounts(details, transaction_amount, refund_amount).map do |dt|
46
46
  {
47
47
  'Amount' => -dt[:amount],
48
- 'AccountId' => dt[:fund_id]
48
+ 'AccountId' => dt[:fund_id],
49
+ 'EntityTypeId' => dt[:entity_type_id],
50
+ 'EntityId' => dt[:entity_id]
49
51
  }
50
52
  end
51
53
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '5.11.0'.freeze
2
+ VERSION = '5.12.0'.freeze
3
3
  end
@@ -54,7 +54,20 @@ RSpec.describe RockRMS::Client::Refund, type: :model do
54
54
  'FinancialGatewayId' => nil,
55
55
  'FinancialPaymentDetailId' => 156,
56
56
  'TransactionDateTime' => '2018-02-01',
57
- 'TransactionDetails' => [{"Amount"=>-10.0, "AccountId"=>23}, {"Amount"=>-90.0, "AccountId"=>24}],
57
+ 'TransactionDetails' => [
58
+ {
59
+ "Amount"=>-10.0,
60
+ "AccountId"=>23,
61
+ "EntityTypeId" => nil,
62
+ "EntityId" => nil
63
+ },
64
+ {
65
+ "Amount"=> -90.0,
66
+ "AccountId"=>24,
67
+ "EntityTypeId" => nil,
68
+ "EntityId" => nil
69
+ }
70
+ ],
58
71
  'TransactionTypeValueId' => 53,
59
72
  'TransactionCode' => nil
60
73
  }
@@ -93,7 +106,20 @@ RSpec.describe RockRMS::Client::Refund, type: :model do
93
106
  'FinancialGatewayId' => nil,
94
107
  'FinancialPaymentDetailId' => 156,
95
108
  'TransactionDateTime' => '2018-02-01',
96
- 'TransactionDetails' => [{"Amount"=>-7.56, "AccountId"=>23}, {"Amount"=>-67.99, "AccountId"=>24}],
109
+ 'TransactionDetails' => [
110
+ {
111
+ "Amount"=>-7.56,
112
+ "AccountId"=>23,
113
+ "EntityTypeId" => nil,
114
+ "EntityId" => nil
115
+ },
116
+ {
117
+ "Amount"=>-67.99,
118
+ "AccountId"=>24,
119
+ "EntityTypeId" => nil,
120
+ "EntityId" => nil
121
+ }
122
+ ],
97
123
  'TransactionTypeValueId' => 53,
98
124
  'TransactionCode' => nil
99
125
  }
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.11.0
4
+ version: 5.12.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-05-05 00:00:00.000000000 Z
11
+ date: 2021-07-01 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: []