lib/atrium-ruby/api/members_api.rb in atrium-ruby-2.2.2 vs lib/atrium-ruby/api/members_api.rb in atrium-ruby-2.3.0
- old
+ new
@@ -18,10 +18,11 @@
# Aggregate member
# Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
# @param member_guid The unique identifier for a `member`.
# @param user_guid The unique identifier for a `user`.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :type An optional parameter which determines the type of aggregation to be peformed. Possible values are `statement` and `history`.
# @return [MemberResponseBody]
def aggregate_member(member_guid, user_guid, opts = {})
data, _status_code, _headers = aggregate_member_with_http_info(member_guid, user_guid, opts)
data
end
@@ -81,10 +82,23 @@
def list_member_mfa_challenges(member_guid, user_guid, opts = {})
data, _status_code, _headers = list_member_mfa_challenges_with_http_info(member_guid, user_guid, opts)
data
end
+ # List member statements
+ # Certain institutions in Atrium allow developers to access account statements associated with a particular `member`. Use this endpoint to get an array of available statements. Before this endpoint can be used, an aggregation of type `statement` should be performed on the relevant `member`.
+ # @param member_guid The unique identifier for a `member`.
+ # @param user_guid The unique identifier for a `user`.
+ # @param [Hash] opts the optional parameters
+ # @option opts [Integer] :page Specify current page.
+ # @option opts [Integer] :records_per_page Specify records per page.
+ # @return [StatementsResponseBody]
+ def list_member_statements(member_guid, user_guid, opts = {})
+ data, _status_code, _headers = list_member_statements_with_http_info(member_guid, user_guid, opts)
+ data
+ end
+
# List member transactions
# Use this endpoint to get all transactions from all accounts associated with a specific member.<br> This endpoint accepts optional URL query parameters — from_date and to_date — which are used to filter transactions according to the date they were posted. If no values are given for the query parameters, from_date will default to 90 days prior to the request and to_date will default to 5 days from the time of the request.
# @param member_guid The unique identifier for a `member`.
# @param user_guid The unique identifier for a `user`.
# @param [Hash] opts the optional parameters
@@ -162,10 +176,11 @@
# Aggregate member
# Calling this endpoint initiates an aggregation event for the member. This brings in the latest account and transaction data from the connected institution. If this data has recently been updated, MX may not initiate an aggregation event.
# @param member_guid The unique identifier for a `member`.
# @param user_guid The unique identifier for a `user`.
# @param [Hash] opts the optional parameters
+ # @option opts [String] :type An optional parameter which determines the type of aggregation to be peformed. Possible values are `statement` and `history`.
# @return [Array<(MemberResponseBody, Fixnum, Hash)>] MemberResponseBody data, response status code and response headers
def aggregate_member_with_http_info(member_guid, user_guid, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: MembersApi.aggregate_member ...'
end
@@ -180,15 +195,18 @@
# resource path
local_var_path = '/users/{user_guid}/members/{member_guid}/aggregate'.sub('{' + 'member_guid' + '}', member_guid.to_s).sub('{' + 'user_guid' + '}', user_guid.to_s)
# query parameters
query_params = {}
+ query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
# header parameters
header_params = {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
+ # HTTP header 'Content-Type'
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
# form parameters
form_params = {}
# http body (model)
@@ -441,9 +459,60 @@
:body => post_body,
:auth_names => auth_names,
:return_type => 'ChallengesResponseBody')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: MembersApi#list_member_mfa_challenges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
+ end
+ return data, status_code, headers
+ end
+ # List member statements
+ # Certain institutions in Atrium allow developers to access account statements associated with a particular `member`. Use this endpoint to get an array of available statements. Before this endpoint can be used, an aggregation of type `statement` should be performed on the relevant `member`.
+ # @param member_guid The unique identifier for a `member`.
+ # @param user_guid The unique identifier for a `user`.
+ # @param [Hash] opts the optional parameters
+ # @option opts [Integer] :page Specify current page.
+ # @option opts [Integer] :records_per_page Specify records per page.
+ # @return [Array<(StatementsResponseBody, Fixnum, Hash)>] StatementsResponseBody data, response status code and response headers
+ def list_member_statements_with_http_info(member_guid, user_guid, opts = {})
+ if @api_client.config.debugging
+ @api_client.config.logger.debug 'Calling API: MembersApi.list_member_statements ...'
+ end
+ # verify the required parameter 'member_guid' is set
+ if @api_client.config.client_side_validation && member_guid.nil?
+ fail ArgumentError, "Missing the required parameter 'member_guid' when calling MembersApi.list_member_statements"
+ end
+ # verify the required parameter 'user_guid' is set
+ if @api_client.config.client_side_validation && user_guid.nil?
+ fail ArgumentError, "Missing the required parameter 'user_guid' when calling MembersApi.list_member_statements"
+ end
+ # resource path
+ local_var_path = '/users/{user_guid}/members/{member_guid}/statements'.sub('{' + 'member_guid' + '}', member_guid.to_s).sub('{' + 'user_guid' + '}', user_guid.to_s)
+
+ # query parameters
+ query_params = {}
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
+ query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
+
+ # header parameters
+ header_params = {}
+ # HTTP header 'Accept' (if needed)
+ header_params['Accept'] = @api_client.select_header_accept(['application/vnd.mx.atrium.v1+json'])
+
+ # form parameters
+ form_params = {}
+
+ # http body (model)
+ post_body = nil
+ auth_names = ['apiKey', 'clientID']
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
+ :header_params => header_params,
+ :query_params => query_params,
+ :form_params => form_params,
+ :body => post_body,
+ :auth_names => auth_names,
+ :return_type => 'StatementsResponseBody')
+ if @api_client.config.debugging
+ @api_client.config.logger.debug "API called: MembersApi#list_member_statements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end
# List member transactions
# Use this endpoint to get all transactions from all accounts associated with a specific member.<br> This endpoint accepts optional URL query parameters — from_date and to_date — which are used to filter transactions according to the date they were posted. If no values are given for the query parameters, from_date will default to 90 days prior to the request and to_date will default to 5 days from the time of the request.