atrium-ruby 2.8.4 → 2.8.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/docs/TransactionCleanseAndCategorizeRequest.md +1 -0
- data/docs/TransactionCleanseAndCategorizeResponse.md +3 -0
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_request.rb +10 -1
- data/lib/atrium-ruby/models/transaction_cleanse_and_categorize_response.rb +31 -4
- data/lib/atrium-ruby/version.rb +1 -1
- data/spec/models/transaction_cleanse_and_categorize_request_spec.rb +6 -0
- data/spec/models/transaction_cleanse_and_categorize_response_spec.rb +18 -0
- metadata +37 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a610289014355dca342894a1e5ea60e9ff67ab778744c33fbe0511200e02a255
|
4
|
+
data.tar.gz: ea45acd5c98cbcd7c3d8fe9e684233c73a82af45e3284548c8a591debe290543
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c61a95bfd9372b8a7e5a78b27de9db845186cd9c6c76f4257c1f33ef888e1c77a74fc178c26a42e45e6602c887c0ba2cf0d1bce4413b52f5ef9e086ec337a8c
|
7
|
+
data.tar.gz: 51b0036bc1c27679532440e917b456c23d60b769aef2c84af47e78bc70277e56b5bfb9b86a7f80d56e16736a21585ec3fe060c6d281a57012539e04bcaf909e5
|
data/README.md
CHANGED
@@ -17,12 +17,12 @@ gem build atrium-ruby.gemspec
|
|
17
17
|
Then either install the gem locally:
|
18
18
|
|
19
19
|
```shell
|
20
|
-
gem install ./atrium-ruby-2.8.
|
20
|
+
gem install ./atrium-ruby-2.8.5.gem
|
21
21
|
```
|
22
22
|
|
23
23
|
Finally add this to the Gemfile:
|
24
24
|
|
25
|
-
gem 'atrium-ruby', '~> 2.8.
|
25
|
+
gem 'atrium-ruby', '~> 2.8.5'
|
26
26
|
|
27
27
|
### Install from Git
|
28
28
|
|
@@ -16,5 +16,8 @@ Name | Type | Description | Notes
|
|
16
16
|
**is_international** | **BOOLEAN** | | [optional]
|
17
17
|
**is_overdraft_fee** | **BOOLEAN** | | [optional]
|
18
18
|
**is_payroll_advance** | **BOOLEAN** | | [optional]
|
19
|
+
**merchant_category_code** | **Float** | | [optional]
|
20
|
+
**merchant_guid** | **String** | | [optional]
|
21
|
+
**original_description** | **String** | | [optional]
|
19
22
|
|
20
23
|
|
@@ -16,6 +16,8 @@ module Atrium
|
|
16
16
|
|
17
17
|
attr_accessor :identifier
|
18
18
|
|
19
|
+
attr_accessor :merchant_category_code
|
20
|
+
|
19
21
|
attr_accessor :type
|
20
22
|
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,6 +26,7 @@ module Atrium
|
|
24
26
|
:'amount' => :'amount',
|
25
27
|
:'description' => :'description',
|
26
28
|
:'identifier' => :'identifier',
|
29
|
+
:'merchant_category_code' => :'merchant_category_code',
|
27
30
|
:'type' => :'type'
|
28
31
|
}
|
29
32
|
end
|
@@ -34,6 +37,7 @@ module Atrium
|
|
34
37
|
:'amount' => :'Float',
|
35
38
|
:'description' => :'String',
|
36
39
|
:'identifier' => :'String',
|
40
|
+
:'merchant_category_code' => :'Float',
|
37
41
|
:'type' => :'String'
|
38
42
|
}
|
39
43
|
end
|
@@ -58,6 +62,10 @@ module Atrium
|
|
58
62
|
self.identifier = attributes[:'identifier']
|
59
63
|
end
|
60
64
|
|
65
|
+
if attributes.has_key?(:'merchant_category_code')
|
66
|
+
self.merchant_category_code = attributes[:'merchant_category_code']
|
67
|
+
end
|
68
|
+
|
61
69
|
if attributes.has_key?(:'type')
|
62
70
|
self.type = attributes[:'type']
|
63
71
|
end
|
@@ -84,6 +92,7 @@ module Atrium
|
|
84
92
|
amount == o.amount &&
|
85
93
|
description == o.description &&
|
86
94
|
identifier == o.identifier &&
|
95
|
+
merchant_category_code == o.merchant_category_code &&
|
87
96
|
type == o.type
|
88
97
|
end
|
89
98
|
|
@@ -96,7 +105,7 @@ module Atrium
|
|
96
105
|
# Calculates hash code according to all attributes.
|
97
106
|
# @return [Fixnum] Hash code
|
98
107
|
def hash
|
99
|
-
[amount, description, identifier, type].hash
|
108
|
+
[amount, description, identifier, merchant_category_code, type].hash
|
100
109
|
end
|
101
110
|
|
102
111
|
# Builds the object from hash
|
@@ -36,6 +36,12 @@ module Atrium
|
|
36
36
|
|
37
37
|
attr_accessor :is_payroll_advance
|
38
38
|
|
39
|
+
attr_accessor :merchant_category_code
|
40
|
+
|
41
|
+
attr_accessor :merchant_guid
|
42
|
+
|
43
|
+
attr_accessor :original_description
|
44
|
+
|
39
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
46
|
def self.attribute_map
|
41
47
|
{
|
@@ -51,7 +57,10 @@ module Atrium
|
|
51
57
|
:'is_income' => :'is_income',
|
52
58
|
:'is_international' => :'is_international',
|
53
59
|
:'is_overdraft_fee' => :'is_overdraft_fee',
|
54
|
-
:'is_payroll_advance' => :'is_payroll_advance'
|
60
|
+
:'is_payroll_advance' => :'is_payroll_advance',
|
61
|
+
:'merchant_category_code' => :'merchant_category_code',
|
62
|
+
:'merchant_guid' => :'merchant_guid',
|
63
|
+
:'original_description' => :'original_description'
|
55
64
|
}
|
56
65
|
end
|
57
66
|
|
@@ -70,7 +79,10 @@ module Atrium
|
|
70
79
|
:'is_income' => :'BOOLEAN',
|
71
80
|
:'is_international' => :'BOOLEAN',
|
72
81
|
:'is_overdraft_fee' => :'BOOLEAN',
|
73
|
-
:'is_payroll_advance' => :'BOOLEAN'
|
82
|
+
:'is_payroll_advance' => :'BOOLEAN',
|
83
|
+
:'merchant_category_code' => :'Float',
|
84
|
+
:'merchant_guid' => :'String',
|
85
|
+
:'original_description' => :'String'
|
74
86
|
}
|
75
87
|
end
|
76
88
|
|
@@ -133,6 +145,18 @@ module Atrium
|
|
133
145
|
if attributes.has_key?(:'is_payroll_advance')
|
134
146
|
self.is_payroll_advance = attributes[:'is_payroll_advance']
|
135
147
|
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'merchant_category_code')
|
150
|
+
self.merchant_category_code = attributes[:'merchant_category_code']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'merchant_guid')
|
154
|
+
self.merchant_guid = attributes[:'merchant_guid']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'original_description')
|
158
|
+
self.original_description = attributes[:'original_description']
|
159
|
+
end
|
136
160
|
end
|
137
161
|
|
138
162
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -165,7 +189,10 @@ module Atrium
|
|
165
189
|
is_income == o.is_income &&
|
166
190
|
is_international == o.is_international &&
|
167
191
|
is_overdraft_fee == o.is_overdraft_fee &&
|
168
|
-
is_payroll_advance == o.is_payroll_advance
|
192
|
+
is_payroll_advance == o.is_payroll_advance &&
|
193
|
+
merchant_category_code == o.merchant_category_code &&
|
194
|
+
merchant_guid == o.merchant_guid &&
|
195
|
+
original_description == o.original_description
|
169
196
|
end
|
170
197
|
|
171
198
|
# @see the `==` method
|
@@ -177,7 +204,7 @@ module Atrium
|
|
177
204
|
# Calculates hash code according to all attributes.
|
178
205
|
# @return [Fixnum] Hash code
|
179
206
|
def hash
|
180
|
-
[amount, category, description, identifier, type, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance].hash
|
207
|
+
[amount, category, description, identifier, type, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, merchant_category_code, merchant_guid, original_description].hash
|
181
208
|
end
|
182
209
|
|
183
210
|
# Builds the object from hash
|
data/lib/atrium-ruby/version.rb
CHANGED
@@ -45,6 +45,12 @@ describe 'TransactionCleanseAndCategorizeRequest' do
|
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
|
+
describe 'test attribute "merchant_category_code"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
48
54
|
describe 'test attribute "type"' do
|
49
55
|
it 'should work' do
|
50
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -105,4 +105,22 @@ describe 'TransactionCleanseAndCategorizeResponse' do
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
+
describe 'test attribute "merchant_category_code"' do
|
109
|
+
it 'should work' do
|
110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
describe 'test attribute "merchant_guid"' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
describe 'test attribute "original_description"' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
108
126
|
end
|
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atrium-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MX
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: typhoeus
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
@@ -20,8 +19,9 @@ dependencies:
|
|
20
19
|
- - ">="
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 1.0.1
|
23
|
-
|
22
|
+
name: typhoeus
|
24
23
|
prerelease: false
|
24
|
+
type: :runtime
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
@@ -31,47 +31,46 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name: json
|
35
34
|
requirement: !ruby/object:Gem::Requirement
|
36
35
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.0
|
40
36
|
- - "~>"
|
41
37
|
- !ruby/object:Gem::Version
|
42
38
|
version: '2.1'
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
39
|
- - ">="
|
48
40
|
- !ruby/object:Gem::Version
|
49
41
|
version: 2.1.0
|
42
|
+
name: json
|
43
|
+
prerelease: false
|
44
|
+
type: :runtime
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
50
47
|
- - "~>"
|
51
48
|
- !ruby/object:Gem::Version
|
52
49
|
version: '2.1'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.1.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
|
-
name: rspec
|
55
54
|
requirement: !ruby/object:Gem::Requirement
|
56
55
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 3.6.0
|
60
56
|
- - "~>"
|
61
57
|
- !ruby/object:Gem::Version
|
62
58
|
version: '3.6'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
59
|
- - ">="
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 3.6.0
|
62
|
+
name: rspec
|
63
|
+
prerelease: false
|
64
|
+
type: :development
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
70
67
|
- - "~>"
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: '3.6'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 3.6.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
|
-
name: vcr
|
75
74
|
requirement: !ruby/object:Gem::Requirement
|
76
75
|
requirements:
|
77
76
|
- - "~>"
|
@@ -80,8 +79,9 @@ dependencies:
|
|
80
79
|
- - ">="
|
81
80
|
- !ruby/object:Gem::Version
|
82
81
|
version: 3.0.1
|
83
|
-
|
82
|
+
name: vcr
|
84
83
|
prerelease: false
|
84
|
+
type: :development
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
@@ -91,7 +91,6 @@ dependencies:
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 3.0.1
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
|
-
name: webmock
|
95
94
|
requirement: !ruby/object:Gem::Requirement
|
96
95
|
requirements:
|
97
96
|
- - "~>"
|
@@ -100,8 +99,9 @@ dependencies:
|
|
100
99
|
- - ">="
|
101
100
|
- !ruby/object:Gem::Version
|
102
101
|
version: 1.24.3
|
103
|
-
|
102
|
+
name: webmock
|
104
103
|
prerelease: false
|
104
|
+
type: :development
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
@@ -111,7 +111,6 @@ dependencies:
|
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: 1.24.3
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
|
-
name: autotest
|
115
114
|
requirement: !ruby/object:Gem::Requirement
|
116
115
|
requirements:
|
117
116
|
- - "~>"
|
@@ -120,8 +119,9 @@ dependencies:
|
|
120
119
|
- - ">="
|
121
120
|
- !ruby/object:Gem::Version
|
122
121
|
version: 4.4.6
|
123
|
-
|
122
|
+
name: autotest
|
124
123
|
prerelease: false
|
124
|
+
type: :development
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
127
|
- - "~>"
|
@@ -131,7 +131,6 @@ dependencies:
|
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: 4.4.6
|
133
133
|
- !ruby/object:Gem::Dependency
|
134
|
-
name: autotest-rails-pure
|
135
134
|
requirement: !ruby/object:Gem::Requirement
|
136
135
|
requirements:
|
137
136
|
- - "~>"
|
@@ -140,8 +139,9 @@ dependencies:
|
|
140
139
|
- - ">="
|
141
140
|
- !ruby/object:Gem::Version
|
142
141
|
version: 4.1.2
|
143
|
-
|
142
|
+
name: autotest-rails-pure
|
144
143
|
prerelease: false
|
144
|
+
type: :development
|
145
145
|
version_requirements: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
@@ -151,7 +151,6 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 4.1.2
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name: autotest-growl
|
155
154
|
requirement: !ruby/object:Gem::Requirement
|
156
155
|
requirements:
|
157
156
|
- - "~>"
|
@@ -160,8 +159,9 @@ dependencies:
|
|
160
159
|
- - ">="
|
161
160
|
- !ruby/object:Gem::Version
|
162
161
|
version: 0.2.16
|
163
|
-
|
162
|
+
name: autotest-growl
|
164
163
|
prerelease: false
|
164
|
+
type: :development
|
165
165
|
version_requirements: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
167
|
- - "~>"
|
@@ -171,7 +171,6 @@ dependencies:
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: 0.2.16
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
|
-
name: autotest-fsevent
|
175
174
|
requirement: !ruby/object:Gem::Requirement
|
176
175
|
requirements:
|
177
176
|
- - "~>"
|
@@ -180,8 +179,9 @@ dependencies:
|
|
180
179
|
- - ">="
|
181
180
|
- !ruby/object:Gem::Version
|
182
181
|
version: 0.2.12
|
183
|
-
|
182
|
+
name: autotest-fsevent
|
184
183
|
prerelease: false
|
184
|
+
type: :development
|
185
185
|
version_requirements: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - "~>"
|
@@ -408,7 +408,7 @@ homepage: https://atrium.mx.com
|
|
408
408
|
licenses:
|
409
409
|
- MIT
|
410
410
|
metadata: {}
|
411
|
-
post_install_message:
|
411
|
+
post_install_message:
|
412
412
|
rdoc_options: []
|
413
413
|
require_paths:
|
414
414
|
- lib
|
@@ -423,8 +423,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
423
423
|
- !ruby/object:Gem::Version
|
424
424
|
version: '0'
|
425
425
|
requirements: []
|
426
|
-
|
427
|
-
|
426
|
+
rubyforge_project:
|
427
|
+
rubygems_version: 2.7.6
|
428
|
+
signing_key:
|
428
429
|
specification_version: 4
|
429
430
|
summary: Ruby wrapper for the Atrium API by MX
|
430
431
|
test_files:
|