budgea_client 5.3.2 → 5.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +6 -4
- data/budgea_client.gemspec +1 -1
- data/budgea_openapi.json +53 -34
- data/config.json +1 -1
- data/docs/Transfer.md +1 -0
- data/docs/TransferData.md +12 -0
- data/docs/TransferValidationData.md +8 -0
- data/docs/TransfersApi.md +11 -16
- data/lib/budgea_client.rb +3 -1
- data/lib/budgea_client/api/administration_api.rb +1 -1
- data/lib/budgea_client/api/authentication_api.rb +1 -1
- data/lib/budgea_client/api/banks_api.rb +1 -1
- data/lib/budgea_client/api/connections_api.rb +1 -1
- data/lib/budgea_client/api/documents_api.rb +1 -1
- data/lib/budgea_client/api/ocr_api.rb +1 -1
- data/lib/budgea_client/api/oidc_api.rb +1 -1
- data/lib/budgea_client/api/pfm_api.rb +1 -1
- data/lib/budgea_client/api/providers_api.rb +1 -1
- data/lib/budgea_client/api/recipients_api.rb +1 -1
- data/lib/budgea_client/api/terms_api.rb +1 -1
- data/lib/budgea_client/api/transfer_api.rb +1 -1
- data/lib/budgea_client/api/transfers_api.rb +22 -29
- data/lib/budgea_client/api/users_management_api.rb +1 -1
- data/lib/budgea_client/api/wealth_api.rb +1 -1
- data/lib/budgea_client/api_client.rb +1 -1
- data/lib/budgea_client/api_error.rb +1 -1
- data/lib/budgea_client/configuration.rb +1 -1
- data/lib/budgea_client/models/access.rb +1 -1
- data/lib/budgea_client/models/account.rb +1 -1
- data/lib/budgea_client/models/account_log.rb +1 -1
- data/lib/budgea_client/models/account_type.rb +1 -1
- data/lib/budgea_client/models/alert.rb +1 -1
- data/lib/budgea_client/models/auth_provider.rb +1 -1
- data/lib/budgea_client/models/category.rb +1 -1
- data/lib/budgea_client/models/certificate.rb +1 -1
- data/lib/budgea_client/models/client.rb +1 -1
- data/lib/budgea_client/models/config_log.rb +1 -1
- data/lib/budgea_client/models/connection.rb +1 -1
- data/lib/budgea_client/models/connection_log.rb +1 -1
- data/lib/budgea_client/models/connection_source.rb +1 -1
- data/lib/budgea_client/models/connector.rb +1 -1
- data/lib/budgea_client/models/connector_category.rb +1 -1
- data/lib/budgea_client/models/connector_logo.rb +1 -1
- data/lib/budgea_client/models/connector_source.rb +1 -1
- data/lib/budgea_client/models/currency.rb +1 -1
- data/lib/budgea_client/models/device.rb +1 -1
- data/lib/budgea_client/models/document.rb +1 -1
- data/lib/budgea_client/models/document_type.rb +1 -1
- data/lib/budgea_client/models/field.rb +1 -1
- data/lib/budgea_client/models/field_value.rb +1 -1
- data/lib/budgea_client/models/file.rb +1 -1
- data/lib/budgea_client/models/group.rb +1 -1
- data/lib/budgea_client/models/hash_table.rb +1 -1
- data/lib/budgea_client/models/inline_response_200.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_1.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_10.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_11.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_12.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_13.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_14.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_15.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_16.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_17.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_18.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_19.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_2.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_20.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_21.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_22.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_23.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_24.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_25.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_26.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_27.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_28.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_29.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_3.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_30.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_31.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_32.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_33.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_34.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_35.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_36.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_37.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_38.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_39.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_4.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_40.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_41.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_42.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_5.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_6.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_7.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_8.rb +1 -1
- data/lib/budgea_client/models/inline_response_200_9.rb +1 -1
- data/lib/budgea_client/models/investment.rb +1 -1
- data/lib/budgea_client/models/investment_value.rb +1 -1
- data/lib/budgea_client/models/keyword.rb +1 -1
- data/lib/budgea_client/models/locked_user.rb +1 -1
- data/lib/budgea_client/models/oidc_whitelist.rb +1 -1
- data/lib/budgea_client/models/order.rb +1 -1
- data/lib/budgea_client/models/pocket.rb +1 -1
- data/lib/budgea_client/models/profile.rb +1 -1
- data/lib/budgea_client/models/project.rb +1 -1
- data/lib/budgea_client/models/project_type.rb +1 -1
- data/lib/budgea_client/models/recipient.rb +1 -1
- data/lib/budgea_client/models/recipient_log.rb +1 -1
- data/lib/budgea_client/models/security.rb +1 -1
- data/lib/budgea_client/models/subscription.rb +1 -1
- data/lib/budgea_client/models/subscription_log.rb +1 -1
- data/lib/budgea_client/models/terms_of_service.rb +1 -1
- data/lib/budgea_client/models/transaction.rb +1 -1
- data/lib/budgea_client/models/transaction_information.rb +1 -1
- data/lib/budgea_client/models/transactions_cluster.rb +1 -1
- data/lib/budgea_client/models/transfer.rb +16 -5
- data/lib/budgea_client/models/transfer_data.rb +240 -0
- data/lib/budgea_client/models/transfer_log.rb +1 -1
- data/lib/budgea_client/models/transfer_validation_data.rb +185 -0
- data/lib/budgea_client/models/user.rb +1 -1
- data/lib/budgea_client/models/user_alert.rb +1 -1
- data/lib/budgea_client/models/webhook.rb +1 -1
- data/lib/budgea_client/models/webhook_data.rb +1 -1
- data/lib/budgea_client/models/webhook_log.rb +1 -1
- data/lib/budgea_client/version.rb +2 -2
- data/spec/models/transfer_data_spec.rb +65 -0
- data/spec/models/transfer_validation_data_spec.rb +41 -0
- metadata +11 -4
- data/pkg/budgea_client-5.3.1.gem +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 2.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.4.
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -2835,13 +2835,12 @@ module BudgeaClient
|
|
2835
2835
|
#
|
2836
2836
|
# @param id_user Hint: you can use 'me' or 'all'
|
2837
2837
|
# @param id_transfer
|
2838
|
+
# @param transfer_validation_data
|
2838
2839
|
# @param [Hash] opts the optional parameters
|
2839
|
-
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2840
|
-
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2841
2840
|
# @option opts [String] :expand
|
2842
2841
|
# @return [Transfer]
|
2843
|
-
def users_id_user_transfers_id_transfer_post(id_user, id_transfer, opts = {})
|
2844
|
-
data, _status_code, _headers = users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts)
|
2842
|
+
def users_id_user_transfers_id_transfer_post(id_user, id_transfer, transfer_validation_data, opts = {})
|
2843
|
+
data, _status_code, _headers = users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, transfer_validation_data, opts)
|
2845
2844
|
data
|
2846
2845
|
end
|
2847
2846
|
|
@@ -2849,12 +2848,11 @@ module BudgeaClient
|
|
2849
2848
|
#
|
2850
2849
|
# @param id_user Hint: you can use 'me' or 'all'
|
2851
2850
|
# @param id_transfer
|
2851
|
+
# @param transfer_validation_data
|
2852
2852
|
# @param [Hash] opts the optional parameters
|
2853
|
-
# @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website.
|
2854
|
-
# @option opts [Integer] :id_recipient set the recipient of the transfer
|
2855
2853
|
# @option opts [String] :expand
|
2856
2854
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2857
|
-
def users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, opts = {})
|
2855
|
+
def users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, transfer_validation_data, opts = {})
|
2858
2856
|
if @api_client.config.debugging
|
2859
2857
|
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_id_transfer_post ...'
|
2860
2858
|
end
|
@@ -2866,6 +2864,10 @@ module BudgeaClient
|
|
2866
2864
|
if @api_client.config.client_side_validation && id_transfer.nil?
|
2867
2865
|
fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
|
2868
2866
|
end
|
2867
|
+
# verify the required parameter 'transfer_validation_data' is set
|
2868
|
+
if @api_client.config.client_side_validation && transfer_validation_data.nil?
|
2869
|
+
fail ArgumentError, "Missing the required parameter 'transfer_validation_data' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
|
2870
|
+
end
|
2869
2871
|
# resource path
|
2870
2872
|
local_var_path = '/users/{id_user}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)
|
2871
2873
|
|
@@ -2878,15 +2880,13 @@ module BudgeaClient
|
|
2878
2880
|
# HTTP header 'Accept' (if needed)
|
2879
2881
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2880
2882
|
# HTTP header 'Content-Type'
|
2881
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/
|
2883
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2882
2884
|
|
2883
2885
|
# form parameters
|
2884
2886
|
form_params = {}
|
2885
|
-
form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
|
2886
|
-
form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?
|
2887
2887
|
|
2888
2888
|
# http body (model)
|
2889
|
-
post_body =
|
2889
|
+
post_body = @api_client.object_to_http_body(transfer_validation_data)
|
2890
2890
|
auth_names = ['api_key']
|
2891
2891
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2892
2892
|
:header_params => header_params,
|
@@ -2903,27 +2903,23 @@ module BudgeaClient
|
|
2903
2903
|
# Create a transfer object.
|
2904
2904
|
#
|
2905
2905
|
# @param id_user Hint: you can use 'me' or 'all'
|
2906
|
-
# @param
|
2906
|
+
# @param transfer_data
|
2907
2907
|
# @param [Hash] opts the optional parameters
|
2908
|
-
# @option opts [String] :label reason of transfer
|
2909
|
-
# @option opts [Date] :exec_date excution date of transfer
|
2910
2908
|
# @option opts [String] :expand
|
2911
2909
|
# @return [Transfer]
|
2912
|
-
def users_id_user_transfers_post(id_user,
|
2913
|
-
data, _status_code, _headers = users_id_user_transfers_post_with_http_info(id_user,
|
2910
|
+
def users_id_user_transfers_post(id_user, transfer_data, opts = {})
|
2911
|
+
data, _status_code, _headers = users_id_user_transfers_post_with_http_info(id_user, transfer_data, opts)
|
2914
2912
|
data
|
2915
2913
|
end
|
2916
2914
|
|
2917
2915
|
# Create a transfer object.
|
2918
2916
|
#
|
2919
2917
|
# @param id_user Hint: you can use 'me' or 'all'
|
2920
|
-
# @param
|
2918
|
+
# @param transfer_data
|
2921
2919
|
# @param [Hash] opts the optional parameters
|
2922
|
-
# @option opts [String] :label reason of transfer
|
2923
|
-
# @option opts [Date] :exec_date excution date of transfer
|
2924
2920
|
# @option opts [String] :expand
|
2925
2921
|
# @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers
|
2926
|
-
def users_id_user_transfers_post_with_http_info(id_user,
|
2922
|
+
def users_id_user_transfers_post_with_http_info(id_user, transfer_data, opts = {})
|
2927
2923
|
if @api_client.config.debugging
|
2928
2924
|
@api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_post ...'
|
2929
2925
|
end
|
@@ -2931,9 +2927,9 @@ module BudgeaClient
|
|
2931
2927
|
if @api_client.config.client_side_validation && id_user.nil?
|
2932
2928
|
fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_post"
|
2933
2929
|
end
|
2934
|
-
# verify the required parameter '
|
2935
|
-
if @api_client.config.client_side_validation &&
|
2936
|
-
fail ArgumentError, "Missing the required parameter '
|
2930
|
+
# verify the required parameter 'transfer_data' is set
|
2931
|
+
if @api_client.config.client_side_validation && transfer_data.nil?
|
2932
|
+
fail ArgumentError, "Missing the required parameter 'transfer_data' when calling TransfersApi.users_id_user_transfers_post"
|
2937
2933
|
end
|
2938
2934
|
# resource path
|
2939
2935
|
local_var_path = '/users/{id_user}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s)
|
@@ -2947,16 +2943,13 @@ module BudgeaClient
|
|
2947
2943
|
# HTTP header 'Accept' (if needed)
|
2948
2944
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2949
2945
|
# HTTP header 'Content-Type'
|
2950
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/
|
2946
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2951
2947
|
|
2952
2948
|
# form parameters
|
2953
2949
|
form_params = {}
|
2954
|
-
form_params['amount'] = amount
|
2955
|
-
form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
|
2956
|
-
form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?
|
2957
2950
|
|
2958
2951
|
# http body (model)
|
2959
|
-
post_body =
|
2952
|
+
post_body = @api_client.object_to_http_body(transfer_data)
|
2960
2953
|
auth_names = ['api_key']
|
2961
2954
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2962
2955
|
:header_params => header_params,
|