atrium-ruby 2.8.5 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/docs/AccountNumber.md +2 -0
- data/docs/MerchantLocation.md +17 -0
- data/docs/MerchantLocationResponseBody.md +8 -0
- data/docs/MerchantLocationsResponseBody.md +9 -0
- data/docs/MerchantsApi.md +107 -2
- data/docs/MerchantsResponseBody.md +9 -0
- data/lib/atrium-ruby.rb +4 -0
- data/lib/atrium-ruby/api/merchants_api.rb +156 -0
- data/lib/atrium-ruby/models/account_number.rb +19 -1
- data/lib/atrium-ruby/models/merchant_location.rb +260 -0
- data/lib/atrium-ruby/models/merchant_location_response_body.rb +179 -0
- data/lib/atrium-ruby/models/merchant_locations_response_body.rb +190 -0
- data/lib/atrium-ruby/models/merchants_response_body.rb +190 -0
- data/lib/atrium-ruby/version.rb +1 -1
- data/spec/api/merchants_api_spec.rb +36 -0
- data/spec/models/account_number_spec.rb +12 -0
- data/spec/models/merchant_location_response_body_spec.rb +36 -0
- data/spec/models/merchant_location_spec.rb +90 -0
- data/spec/models/merchant_locations_response_body_spec.rb +42 -0
- data/spec/models/merchants_response_body_spec.rb +42 -0
- metadata +52 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48c3fc574a543cce206566163be272ed59cfab1d05b121fb7eb8922cf33a92a5
|
4
|
+
data.tar.gz: 0370ce6f952bbff330fc3e4ea6970b88a377f5d350f84fe577af02d67ed6683e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 237f2ca0ce1da387f18e2bb770db636ba6b15c4a639ef5361efbab58e5f3fd6d60f0fc58c20af7ebb04b072fb115714d743bd6549896f16fdd1257be88087900
|
7
|
+
data.tar.gz: 61ea35786ba0ab7e502dedcf83968cc0e48874758219080e6efb00c4b20b1e08e0e54b70a7fc4de67a8e56bffd163b04b5cf43b05b84497bb26f3a2aebf7842f
|
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.
|
20
|
+
gem install ./atrium-ruby-2.9.0.gem
|
21
21
|
```
|
22
22
|
|
23
23
|
Finally add this to the Gemfile:
|
24
24
|
|
25
|
-
gem 'atrium-ruby', '~> 2.
|
25
|
+
gem 'atrium-ruby', '~> 2.9.0'
|
26
26
|
|
27
27
|
### Install from Git
|
28
28
|
|
@@ -98,7 +98,10 @@ Class | Method | HTTP request | Description
|
|
98
98
|
*Atrium::MembersApi* | [**read_member_status**](docs/MembersApi.md#read_member_status) | **GET** /users/{user_guid}/members/{member_guid}/status | Read member connection status
|
99
99
|
*Atrium::MembersApi* | [**resume_member**](docs/MembersApi.md#resume_member) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation from MFA
|
100
100
|
*Atrium::MembersApi* | [**update_member**](docs/MembersApi.md#update_member) | **PUT** /users/{user_guid}/members/{member_guid} | Update member
|
101
|
+
*Atrium::MerchantsApi* | [**list_merchant_locations**](docs/MerchantsApi.md#list_merchant_locations) | **GET** /merchants/{merchant_guid}/merchant_locations | List merchant locations
|
102
|
+
*Atrium::MerchantsApi* | [**list_merchants**](docs/MerchantsApi.md#list_merchants) | **GET** /merchants | List merchants
|
101
103
|
*Atrium::MerchantsApi* | [**read_merchant**](docs/MerchantsApi.md#read_merchant) | **GET** /merchants/{merchant_guid} | Read merchant
|
104
|
+
*Atrium::MerchantsApi* | [**read_merchant_location**](docs/MerchantsApi.md#read_merchant_location) | **GET** /merchants/{merchant_guid}/merchant_locations/{merchant_location_guid} | Read merchant location
|
102
105
|
*Atrium::StatementsApi* | [**download_statement_pdf**](docs/StatementsApi.md#download_statement_pdf) | **GET** /users/{user_guid}/members/{member_guid}/statements/{statement_guid}.pdf | Download statement PDF
|
103
106
|
*Atrium::StatementsApi* | [**fetch_statements**](docs/StatementsApi.md#fetch_statements) | **POST** /users/{user_guid}/members/{member_guid}/fetch_statements | Fetch statements
|
104
107
|
*Atrium::StatementsApi* | [**list_member_statements**](docs/StatementsApi.md#list_member_statements) | **GET** /users/{user_guid}/members/{member_guid}/statements | List member statements
|
@@ -154,7 +157,11 @@ Class | Method | HTTP request | Description
|
|
154
157
|
- [Atrium::MemberUpdateRequestBody](docs/MemberUpdateRequestBody.md)
|
155
158
|
- [Atrium::MembersResponseBody](docs/MembersResponseBody.md)
|
156
159
|
- [Atrium::Merchant](docs/Merchant.md)
|
160
|
+
- [Atrium::MerchantLocation](docs/MerchantLocation.md)
|
161
|
+
- [Atrium::MerchantLocationResponseBody](docs/MerchantLocationResponseBody.md)
|
162
|
+
- [Atrium::MerchantLocationsResponseBody](docs/MerchantLocationsResponseBody.md)
|
157
163
|
- [Atrium::MerchantResponseBody](docs/MerchantResponseBody.md)
|
164
|
+
- [Atrium::MerchantsResponseBody](docs/MerchantsResponseBody.md)
|
158
165
|
- [Atrium::Pagination](docs/Pagination.md)
|
159
166
|
- [Atrium::Statement](docs/Statement.md)
|
160
167
|
- [Atrium::StatementResponseBody](docs/StatementResponseBody.md)
|
data/docs/AccountNumber.md
CHANGED
@@ -5,8 +5,10 @@ Name | Type | Description | Notes
|
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**account_guid** | **String** | | [optional]
|
7
7
|
**account_number** | **String** | | [optional]
|
8
|
+
**institution_number** | **String** | | [optional]
|
8
9
|
**member_guid** | **String** | | [optional]
|
9
10
|
**routing_number** | **String** | | [optional]
|
11
|
+
**transit_number** | **String** | | [optional]
|
10
12
|
**user_guid** | **String** | | [optional]
|
11
13
|
|
12
14
|
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# Atrium::MerchantLocation
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**city** | **String** | | [optional]
|
7
|
+
**guid** | **String** | | [optional]
|
8
|
+
**latitude** | **Float** | | [optional]
|
9
|
+
**longitude** | **Float** | | [optional]
|
10
|
+
**merchant_guid** | **String** | | [optional]
|
11
|
+
**phone_number** | **String** | | [optional]
|
12
|
+
**postal_code** | **String** | | [optional]
|
13
|
+
**state** | **String** | | [optional]
|
14
|
+
**store_number** | **String** | | [optional]
|
15
|
+
**street_address** | **String** | | [optional]
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Atrium::MerchantLocationsResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**merchant_locations** | [**Array<MerchantLocation>**](MerchantLocation.md) | | [optional]
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/MerchantsApi.md
CHANGED
@@ -2,11 +2,79 @@
|
|
2
2
|
|
3
3
|
Method | HTTP request | Description
|
4
4
|
------------- | ------------- | -------------
|
5
|
+
[**list_merchant_locations**](MerchantsApi.md#list_merchant_locations) | **GET** /merchants/{merchant_guid}/merchant_locations | List merchant locations
|
6
|
+
[**list_merchants**](MerchantsApi.md#list_merchants) | **GET** /merchants | List merchants
|
5
7
|
[**read_merchant**](MerchantsApi.md#read_merchant) | **GET** /merchants/{merchant_guid} | Read merchant
|
8
|
+
[**read_merchant_location**](MerchantsApi.md#read_merchant_location) | **GET** /merchants/{merchant_guid}/merchant_locations/{merchant_location_guid} | Read merchant location
|
6
9
|
|
7
10
|
|
11
|
+
# **list_merchant_locations**
|
12
|
+
> MerchantLocationsResponseBody list_merchant_locations(merchant_guid, )
|
13
|
+
|
14
|
+
List merchant locations
|
15
|
+
|
16
|
+
Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'atrium-ruby'
|
22
|
+
|
23
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
24
|
+
|
25
|
+
merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
|
26
|
+
|
27
|
+
begin
|
28
|
+
#List merchant locations
|
29
|
+
response = client.merchants.list_merchant_locations(merchant_guid, )
|
30
|
+
p response
|
31
|
+
rescue Atrium::ApiError => e
|
32
|
+
puts "Exception when calling MerchantsApi->list_merchant_locations: #{e}"
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
### Parameters
|
37
|
+
|
38
|
+
Name | Type | Description | Notes
|
39
|
+
------------- | ------------- | ------------- | -------------
|
40
|
+
**merchant_guid** | **String**| The unique identifier for a `merchant`. |
|
41
|
+
|
42
|
+
### Return type
|
43
|
+
|
44
|
+
[**MerchantLocationsResponseBody**](MerchantLocationsResponseBody.md)
|
45
|
+
|
46
|
+
# **list_merchants**
|
47
|
+
> MerchantsResponseBody list_merchants
|
48
|
+
|
49
|
+
List merchants
|
50
|
+
|
51
|
+
Returns a list of merchnants.
|
52
|
+
|
53
|
+
### Example
|
54
|
+
```ruby
|
55
|
+
# load the gem
|
56
|
+
require 'atrium-ruby'
|
57
|
+
|
58
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
59
|
+
|
60
|
+
begin
|
61
|
+
#List merchants
|
62
|
+
response = client.merchants.list_merchants
|
63
|
+
p response
|
64
|
+
rescue Atrium::ApiError => e
|
65
|
+
puts "Exception when calling MerchantsApi->list_merchants: #{e}"
|
66
|
+
end
|
67
|
+
```
|
68
|
+
|
69
|
+
### Parameters
|
70
|
+
This endpoint does not need any parameter.
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**MerchantsResponseBody**](MerchantsResponseBody.md)
|
75
|
+
|
8
76
|
# **read_merchant**
|
9
|
-
> MerchantResponseBody read_merchant(merchant_guid)
|
77
|
+
> MerchantResponseBody read_merchant(merchant_guid, )
|
10
78
|
|
11
79
|
Read merchant
|
12
80
|
|
@@ -23,7 +91,7 @@ merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
|
|
23
91
|
|
24
92
|
begin
|
25
93
|
#Read merchant
|
26
|
-
response = client.merchants.read_merchant(merchant_guid)
|
94
|
+
response = client.merchants.read_merchant(merchant_guid, )
|
27
95
|
p response
|
28
96
|
rescue Atrium::ApiError => e
|
29
97
|
puts "Exception when calling MerchantsApi->read_merchant: #{e}"
|
@@ -40,3 +108,40 @@ Name | Type | Description | Notes
|
|
40
108
|
|
41
109
|
[**MerchantResponseBody**](MerchantResponseBody.md)
|
42
110
|
|
111
|
+
# **read_merchant_location**
|
112
|
+
> MerchantLocationResponseBody read_merchant_location(merchant_guid, merchant_location_guid)
|
113
|
+
|
114
|
+
Read merchant location
|
115
|
+
|
116
|
+
Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
|
117
|
+
|
118
|
+
### Example
|
119
|
+
```ruby
|
120
|
+
# load the gem
|
121
|
+
require 'atrium-ruby'
|
122
|
+
|
123
|
+
client = Atrium::AtriumClient.new("YOUR_API_KEY", "YOUR_CLIENT_ID")
|
124
|
+
|
125
|
+
merchant_guid = "MCH-123" # String | The unique identifier for a `merchant`.
|
126
|
+
merchant_location_guid = "MCL-123" # String | The unique identifier for a `merchant_location`.
|
127
|
+
|
128
|
+
begin
|
129
|
+
#Read merchant location
|
130
|
+
response = client.merchants.read_merchant_location(merchant_guid, merchant_location_guid)
|
131
|
+
p response
|
132
|
+
rescue Atrium::ApiError => e
|
133
|
+
puts "Exception when calling MerchantsApi->read_merchant_location: #{e}"
|
134
|
+
end
|
135
|
+
```
|
136
|
+
|
137
|
+
### Parameters
|
138
|
+
|
139
|
+
Name | Type | Description | Notes
|
140
|
+
------------- | ------------- | ------------- | -------------
|
141
|
+
**merchant_guid** | **String**| The unique identifier for a `merchant`. |
|
142
|
+
**merchant_location_guid** | **String**| The unique identifier for a `merchant_location`. |
|
143
|
+
|
144
|
+
### Return type
|
145
|
+
|
146
|
+
[**MerchantLocationResponseBody**](MerchantLocationResponseBody.md)
|
147
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Atrium::MerchantsResponseBody
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**merchant** | [**Array<Merchant>**](Merchant.md) | | [optional]
|
7
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/lib/atrium-ruby.rb
CHANGED
@@ -49,7 +49,11 @@ require 'atrium-ruby/models/member_update_request'
|
|
49
49
|
require 'atrium-ruby/models/member_update_request_body'
|
50
50
|
require 'atrium-ruby/models/members_response_body'
|
51
51
|
require 'atrium-ruby/models/merchant'
|
52
|
+
require 'atrium-ruby/models/merchant_location'
|
53
|
+
require 'atrium-ruby/models/merchant_location_response_body'
|
54
|
+
require 'atrium-ruby/models/merchant_locations_response_body'
|
52
55
|
require 'atrium-ruby/models/merchant_response_body'
|
56
|
+
require 'atrium-ruby/models/merchants_response_body'
|
53
57
|
require 'atrium-ruby/models/pagination'
|
54
58
|
require 'atrium-ruby/models/statement'
|
55
59
|
require 'atrium-ruby/models/statement_response_body'
|
@@ -15,6 +15,25 @@ module Atrium
|
|
15
15
|
def initialize(api_client = ApiClient.default)
|
16
16
|
@api_client = api_client
|
17
17
|
end
|
18
|
+
# List merchant locations
|
19
|
+
# Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
|
20
|
+
# @param merchant_guid The unique identifier for a `merchant`.
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [MerchantLocationsResponseBody]
|
23
|
+
def list_merchant_locations(merchant_guid, opts = {})
|
24
|
+
data, _status_code, _headers = list_merchant_locations_with_http_info(merchant_guid, opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# List merchants
|
29
|
+
# Returns a list of merchnants.
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [MerchantsResponseBody]
|
32
|
+
def list_merchants(opts = {})
|
33
|
+
data, _status_code, _headers = list_merchants_with_http_info(opts)
|
34
|
+
data
|
35
|
+
end
|
36
|
+
|
18
37
|
# Read merchant
|
19
38
|
# Returns information about a particular merchant, such as a logo, name, and website.
|
20
39
|
# @param merchant_guid The unique identifier for a `merchant`.
|
@@ -25,9 +44,99 @@ module Atrium
|
|
25
44
|
data
|
26
45
|
end
|
27
46
|
|
47
|
+
# Read merchant location
|
48
|
+
# Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
|
49
|
+
# @param merchant_guid The unique identifier for a `merchant`.
|
50
|
+
# @param merchant_location_guid The unique identifier for a `merchant_location`.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [MerchantLocationResponseBody]
|
53
|
+
def read_merchant_location(merchant_guid, merchant_location_guid, opts = {})
|
54
|
+
data, _status_code, _headers = read_merchant_location_with_http_info(merchant_guid, merchant_location_guid, opts)
|
55
|
+
data
|
56
|
+
end
|
57
|
+
|
28
58
|
|
29
59
|
private
|
30
60
|
|
61
|
+
# List merchant locations
|
62
|
+
# Returns a list of all the merchant locations associated with a merchant, including physical location, latitude, longitude, etc.
|
63
|
+
# @param merchant_guid The unique identifier for a `merchant`.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [Array<(MerchantLocationsResponseBody, Fixnum, Hash)>] MerchantLocationsResponseBody data, response status code and response headers
|
66
|
+
def list_merchant_locations_with_http_info(merchant_guid, opts = {})
|
67
|
+
if @api_client.config.debugging
|
68
|
+
@api_client.config.logger.debug 'Calling API: MerchantsApi.list_merchant_locations ...'
|
69
|
+
end
|
70
|
+
# verify the required parameter 'merchant_guid' is set
|
71
|
+
if @api_client.config.client_side_validation && merchant_guid.nil?
|
72
|
+
fail ArgumentError, "Missing the required parameter 'merchant_guid' when calling MerchantsApi.list_merchant_locations"
|
73
|
+
end
|
74
|
+
# resource path
|
75
|
+
local_var_path = '/merchants/{merchant_guid}/merchant_locations'.sub('{' + 'merchant_guid' + '}', merchant_guid.to_s)
|
76
|
+
|
77
|
+
# query parameters
|
78
|
+
query_params = {}
|
79
|
+
|
80
|
+
# header parameters
|
81
|
+
header_params = {}
|
82
|
+
# HTTP header 'Accept' (if needed)
|
83
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
|
84
|
+
|
85
|
+
# form parameters
|
86
|
+
form_params = {}
|
87
|
+
|
88
|
+
# http body (model)
|
89
|
+
post_body = nil
|
90
|
+
auth_names = ['apiKey', 'clientID']
|
91
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
92
|
+
:header_params => header_params,
|
93
|
+
:query_params => query_params,
|
94
|
+
:form_params => form_params,
|
95
|
+
:body => post_body,
|
96
|
+
:auth_names => auth_names,
|
97
|
+
:return_type => 'MerchantLocationsResponseBody')
|
98
|
+
if @api_client.config.debugging
|
99
|
+
@api_client.config.logger.debug "API called: MerchantsApi#list_merchant_locations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
100
|
+
end
|
101
|
+
return data, status_code, headers
|
102
|
+
end
|
103
|
+
# List merchants
|
104
|
+
# Returns a list of merchnants.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(MerchantsResponseBody, Fixnum, Hash)>] MerchantsResponseBody data, response status code and response headers
|
107
|
+
def list_merchants_with_http_info(opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: MerchantsApi.list_merchants ...'
|
110
|
+
end
|
111
|
+
# resource path
|
112
|
+
local_var_path = '/merchants'
|
113
|
+
|
114
|
+
# query parameters
|
115
|
+
query_params = {}
|
116
|
+
|
117
|
+
# header parameters
|
118
|
+
header_params = {}
|
119
|
+
# HTTP header 'Accept' (if needed)
|
120
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = nil
|
127
|
+
auth_names = ['apiKey', 'clientID']
|
128
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
129
|
+
:header_params => header_params,
|
130
|
+
:query_params => query_params,
|
131
|
+
:form_params => form_params,
|
132
|
+
:body => post_body,
|
133
|
+
:auth_names => auth_names,
|
134
|
+
:return_type => 'MerchantsResponseBody')
|
135
|
+
if @api_client.config.debugging
|
136
|
+
@api_client.config.logger.debug "API called: MerchantsApi#list_merchants\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
137
|
+
end
|
138
|
+
return data, status_code, headers
|
139
|
+
end
|
31
140
|
# Read merchant
|
32
141
|
# Returns information about a particular merchant, such as a logo, name, and website.
|
33
142
|
# @param merchant_guid The unique identifier for a `merchant`.
|
@@ -70,5 +179,52 @@ module Atrium
|
|
70
179
|
end
|
71
180
|
return data, status_code, headers
|
72
181
|
end
|
182
|
+
# Read merchant location
|
183
|
+
# Retuns a specific location associated with a merchant, including physical location, latitude, longitude, etc.
|
184
|
+
# @param merchant_guid The unique identifier for a `merchant`.
|
185
|
+
# @param merchant_location_guid The unique identifier for a `merchant_location`.
|
186
|
+
# @param [Hash] opts the optional parameters
|
187
|
+
# @return [Array<(MerchantLocationResponseBody, Fixnum, Hash)>] MerchantLocationResponseBody data, response status code and response headers
|
188
|
+
def read_merchant_location_with_http_info(merchant_guid, merchant_location_guid, opts = {})
|
189
|
+
if @api_client.config.debugging
|
190
|
+
@api_client.config.logger.debug 'Calling API: MerchantsApi.read_merchant_location ...'
|
191
|
+
end
|
192
|
+
# verify the required parameter 'merchant_guid' is set
|
193
|
+
if @api_client.config.client_side_validation && merchant_guid.nil?
|
194
|
+
fail ArgumentError, "Missing the required parameter 'merchant_guid' when calling MerchantsApi.read_merchant_location"
|
195
|
+
end
|
196
|
+
# verify the required parameter 'merchant_location_guid' is set
|
197
|
+
if @api_client.config.client_side_validation && merchant_location_guid.nil?
|
198
|
+
fail ArgumentError, "Missing the required parameter 'merchant_location_guid' when calling MerchantsApi.read_merchant_location"
|
199
|
+
end
|
200
|
+
# resource path
|
201
|
+
local_var_path = '/merchants/{merchant_guid}/merchant_locations/{merchant_location_guid}'.sub('{' + 'merchant_guid' + '}', merchant_guid.to_s).sub('{' + 'merchant_location_guid' + '}', merchant_location_guid.to_s)
|
202
|
+
|
203
|
+
# query parameters
|
204
|
+
query_params = {}
|
205
|
+
|
206
|
+
# header parameters
|
207
|
+
header_params = {}
|
208
|
+
# HTTP header 'Accept' (if needed)
|
209
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
|
210
|
+
|
211
|
+
# form parameters
|
212
|
+
form_params = {}
|
213
|
+
|
214
|
+
# http body (model)
|
215
|
+
post_body = nil
|
216
|
+
auth_names = ['apiKey', 'clientID']
|
217
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
218
|
+
:header_params => header_params,
|
219
|
+
:query_params => query_params,
|
220
|
+
:form_params => form_params,
|
221
|
+
:body => post_body,
|
222
|
+
:auth_names => auth_names,
|
223
|
+
:return_type => 'MerchantLocationResponseBody')
|
224
|
+
if @api_client.config.debugging
|
225
|
+
@api_client.config.logger.debug "API called: MerchantsApi#read_merchant_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
226
|
+
end
|
227
|
+
return data, status_code, headers
|
228
|
+
end
|
73
229
|
end
|
74
230
|
end
|
@@ -14,10 +14,14 @@ module Atrium
|
|
14
14
|
|
15
15
|
attr_accessor :account_number
|
16
16
|
|
17
|
+
attr_accessor :institution_number
|
18
|
+
|
17
19
|
attr_accessor :member_guid
|
18
20
|
|
19
21
|
attr_accessor :routing_number
|
20
22
|
|
23
|
+
attr_accessor :transit_number
|
24
|
+
|
21
25
|
attr_accessor :user_guid
|
22
26
|
|
23
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -25,8 +29,10 @@ module Atrium
|
|
25
29
|
{
|
26
30
|
:'account_guid' => :'account_guid',
|
27
31
|
:'account_number' => :'account_number',
|
32
|
+
:'institution_number' => :'institution_number',
|
28
33
|
:'member_guid' => :'member_guid',
|
29
34
|
:'routing_number' => :'routing_number',
|
35
|
+
:'transit_number' => :'transit_number',
|
30
36
|
:'user_guid' => :'user_guid'
|
31
37
|
}
|
32
38
|
end
|
@@ -36,8 +42,10 @@ module Atrium
|
|
36
42
|
{
|
37
43
|
:'account_guid' => :'String',
|
38
44
|
:'account_number' => :'String',
|
45
|
+
:'institution_number' => :'String',
|
39
46
|
:'member_guid' => :'String',
|
40
47
|
:'routing_number' => :'String',
|
48
|
+
:'transit_number' => :'String',
|
41
49
|
:'user_guid' => :'String'
|
42
50
|
}
|
43
51
|
end
|
@@ -58,6 +66,10 @@ module Atrium
|
|
58
66
|
self.account_number = attributes[:'account_number']
|
59
67
|
end
|
60
68
|
|
69
|
+
if attributes.has_key?(:'institution_number')
|
70
|
+
self.institution_number = attributes[:'institution_number']
|
71
|
+
end
|
72
|
+
|
61
73
|
if attributes.has_key?(:'member_guid')
|
62
74
|
self.member_guid = attributes[:'member_guid']
|
63
75
|
end
|
@@ -66,6 +78,10 @@ module Atrium
|
|
66
78
|
self.routing_number = attributes[:'routing_number']
|
67
79
|
end
|
68
80
|
|
81
|
+
if attributes.has_key?(:'transit_number')
|
82
|
+
self.transit_number = attributes[:'transit_number']
|
83
|
+
end
|
84
|
+
|
69
85
|
if attributes.has_key?(:'user_guid')
|
70
86
|
self.user_guid = attributes[:'user_guid']
|
71
87
|
end
|
@@ -91,8 +107,10 @@ module Atrium
|
|
91
107
|
self.class == o.class &&
|
92
108
|
account_guid == o.account_guid &&
|
93
109
|
account_number == o.account_number &&
|
110
|
+
institution_number == o.institution_number &&
|
94
111
|
member_guid == o.member_guid &&
|
95
112
|
routing_number == o.routing_number &&
|
113
|
+
transit_number == o.transit_number &&
|
96
114
|
user_guid == o.user_guid
|
97
115
|
end
|
98
116
|
|
@@ -105,7 +123,7 @@ module Atrium
|
|
105
123
|
# Calculates hash code according to all attributes.
|
106
124
|
# @return [Fixnum] Hash code
|
107
125
|
def hash
|
108
|
-
[account_guid, account_number, member_guid, routing_number, user_guid].hash
|
126
|
+
[account_guid, account_number, institution_number, member_guid, routing_number, transit_number, user_guid].hash
|
109
127
|
end
|
110
128
|
|
111
129
|
# Builds the object from hash
|