budgea_client 5.5.0 → 5.6.0
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 +5 -4
- data/budgea_openapi.json +24 -0
- data/config.json +1 -1
- data/docs/PaymentsApi.md +53 -0
- data/lib/budgea_client/api/payments_api.rb +52 -0
- data/lib/budgea_client/models/connection.rb +4 -2
- data/lib/budgea_client/version.rb +1 -1
- data/patches/01_allow_enum_nil.patch +4 -4
- data/tags +2875 -0
- metadata +4 -7
- data/pkg/budgea_client-5.3.1.gem +0 -0
- data/pkg/budgea_client-5.3.2.gem +0 -0
- data/pkg/budgea_client-5.3.5.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3405835ae770437364f52a4b4c01f85944bc028af9183a0fcc7216a7f3cedf0e
|
4
|
+
data.tar.gz: 1aa21134d1b97c054735adbfd6313d8034214dddd5a032edf3b5e1139edbbe30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9c2ad0db9179d9724f7255601406c370954084b0d47b290d45b4def7cb1e745b05576205e3c4e9c837ca9505984d5e807ed10e76bd85ea4462fe9dae189499f
|
7
|
+
data.tar.gz: 33b583def4737334e9e59a05333c24d485bc1fcbd1226fc7c5667f0d85f335bde036582c69926786f5ed7f046de7aa3867f0e402433f7d634d7c7672a2f6d836
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
budgea_client (5.
|
4
|
+
budgea_client (5.6.0)
|
5
5
|
addressable (~> 2.3, >= 2.3.0)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
typhoeus (~> 1.0, >= 1.0.1)
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
ffi (>= 1.15.0)
|
26
26
|
ffi (1.15.3)
|
27
27
|
hashdiff (0.3.7)
|
28
|
-
json (2.6.
|
28
|
+
json (2.6.2)
|
29
29
|
public_suffix (4.0.6)
|
30
30
|
rake (12.3.3)
|
31
31
|
rspec (3.8.0)
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Swagger Codegen https://github.com/swagger
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0
|
10
|
-
- Package version: 5.
|
10
|
+
- Package version: 5.6.0
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build budgea_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./budgea_client-5.
|
26
|
+
gem install ./budgea_client-5.6.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./budgea_client-5.
|
28
|
+
(for development, run `gem install --dev ./budgea_client-5.6.0.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'budgea_client', '~> 5.
|
34
|
+
gem 'budgea_client', '~> 5.6.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -422,6 +422,7 @@ Class | Method | HTTP request | Description
|
|
422
422
|
*BudgeaClient::PFMApi* | [**users_id_user_profiles_me_put**](docs/PFMApi.md#users_id_user_profiles_me_put) | **PUT** /users/{id_user}/profiles/me | Change settings of the profile.
|
423
423
|
*BudgeaClient::PFMApi* | [**users_id_user_resume_get**](docs/PFMApi.md#users_id_user_resume_get) | **GET** /users/{id_user}/resume | Get synthesis configuration of a specific user
|
424
424
|
*BudgeaClient::PFMApi* | [**users_id_user_resume_post**](docs/PFMApi.md#users_id_user_resume_post) | **POST** /users/{id_user}/resume | Update synthesis configuration
|
425
|
+
*BudgeaClient::PaymentsApi* | [**payments_id_payment_get**](docs/PaymentsApi.md#payments_id_payment_get) | **GET** /payments/{id_payment} | Retrieve a payment request
|
425
426
|
*BudgeaClient::PaymentsApi* | [**payments_post**](docs/PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request
|
426
427
|
*BudgeaClient::ProvidersApi* | [**banks_get**](docs/ProvidersApi.md#banks_get) | **GET** /banks | Get list of connectors
|
427
428
|
*BudgeaClient::ProvidersApi* | [**banks_id_connector_logos_get**](docs/ProvidersApi.md#banks_id_connector_logos_get) | **GET** /banks/{id_connector}/logos | Get all links to the files associated with this connector.
|
data/budgea_openapi.json
CHANGED
@@ -3470,6 +3470,30 @@
|
|
3470
3470
|
]
|
3471
3471
|
}
|
3472
3472
|
},
|
3473
|
+
"/payments/{id_payment}": {
|
3474
|
+
"get": {
|
3475
|
+
"responses": {
|
3476
|
+
"200": {
|
3477
|
+
"description": "Successful GET on Payment resource",
|
3478
|
+
"schema": {
|
3479
|
+
"$ref": "#/definitions/Payment"
|
3480
|
+
}
|
3481
|
+
}
|
3482
|
+
},
|
3483
|
+
"tags": [
|
3484
|
+
"Payments"
|
3485
|
+
],
|
3486
|
+
"summary": "Retrieve a payment request",
|
3487
|
+
"parameters": [
|
3488
|
+
{
|
3489
|
+
"required": true,
|
3490
|
+
"type": "integer",
|
3491
|
+
"name": "id_payment",
|
3492
|
+
"in": "path"
|
3493
|
+
}
|
3494
|
+
]
|
3495
|
+
}
|
3496
|
+
},
|
3473
3497
|
"/providers": {
|
3474
3498
|
"get": {
|
3475
3499
|
"responses": {
|
data/config.json
CHANGED
data/docs/PaymentsApi.md
CHANGED
@@ -4,9 +4,62 @@ All URIs are relative to *https://demo.biapi.pro/2.0/*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
+
[**payments_id_payment_get**](PaymentsApi.md#payments_id_payment_get) | **GET** /payments/{id_payment} | Retrieve a payment request
|
7
8
|
[**payments_post**](PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request
|
8
9
|
|
9
10
|
|
11
|
+
# **payments_id_payment_get**
|
12
|
+
> Payment payments_id_payment_get(id_payment)
|
13
|
+
|
14
|
+
Retrieve a payment request
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'budgea_client'
|
20
|
+
# setup authorization
|
21
|
+
BudgeaClient.configure do |config|
|
22
|
+
# Configure API key authorization: api_key
|
23
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
24
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
25
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = BudgeaClient::PaymentsApi.new
|
29
|
+
|
30
|
+
id_payment = 56 # Integer |
|
31
|
+
|
32
|
+
|
33
|
+
begin
|
34
|
+
#Retrieve a payment request
|
35
|
+
result = api_instance.payments_id_payment_get(id_payment)
|
36
|
+
p result
|
37
|
+
rescue BudgeaClient::ApiError => e
|
38
|
+
puts "Exception when calling PaymentsApi->payments_id_payment_get: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**id_payment** | **Integer**| |
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
[**Payment**](Payment.md)
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
[api_key](../README.md#api_key)
|
55
|
+
|
56
|
+
### HTTP request headers
|
57
|
+
|
58
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
59
|
+
- **Accept**: application/json
|
60
|
+
|
61
|
+
|
62
|
+
|
10
63
|
# **payments_post**
|
11
64
|
> Payment payments_post(payment_data)
|
12
65
|
|
@@ -19,6 +19,58 @@ module BudgeaClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Retrieve a payment request
|
23
|
+
# @param id_payment
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @return [Payment]
|
26
|
+
def payments_id_payment_get(id_payment, opts = {})
|
27
|
+
data, _status_code, _headers = payments_id_payment_get_with_http_info(id_payment, opts)
|
28
|
+
data
|
29
|
+
end
|
30
|
+
|
31
|
+
# Retrieve a payment request
|
32
|
+
# @param id_payment
|
33
|
+
# @param [Hash] opts the optional parameters
|
34
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
35
|
+
def payments_id_payment_get_with_http_info(id_payment, opts = {})
|
36
|
+
if @api_client.config.debugging
|
37
|
+
@api_client.config.logger.debug 'Calling API: PaymentsApi.payments_id_payment_get ...'
|
38
|
+
end
|
39
|
+
# verify the required parameter 'id_payment' is set
|
40
|
+
if @api_client.config.client_side_validation && id_payment.nil?
|
41
|
+
fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentsApi.payments_id_payment_get"
|
42
|
+
end
|
43
|
+
# resource path
|
44
|
+
local_var_path = '/payments/{id_payment}'.sub('{' + 'id_payment' + '}', id_payment.to_s)
|
45
|
+
|
46
|
+
# query parameters
|
47
|
+
query_params = {}
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = {}
|
51
|
+
# HTTP header 'Accept' (if needed)
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
53
|
+
# HTTP header 'Content-Type'
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = nil
|
61
|
+
auth_names = ['api_key']
|
62
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
63
|
+
:header_params => header_params,
|
64
|
+
:query_params => query_params,
|
65
|
+
:form_params => form_params,
|
66
|
+
:body => post_body,
|
67
|
+
:auth_names => auth_names,
|
68
|
+
:return_type => 'Payment')
|
69
|
+
if @api_client.config.debugging
|
70
|
+
@api_client.config.logger.debug "API called: PaymentsApi#payments_id_payment_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
+
end
|
72
|
+
return data, status_code, headers
|
73
|
+
end
|
22
74
|
# Create and validate a payment request
|
23
75
|
# @param payment_data
|
24
76
|
# @param [Hash] opts the optional parameters
|
@@ -248,7 +248,8 @@ module BudgeaClient
|
|
248
248
|
return false if @id.nil?
|
249
249
|
return false if @id_connector.nil?
|
250
250
|
return false if @active.nil?
|
251
|
-
|
251
|
+
# Nil on validator is a monkey patch since swagger 2.0 does not allow nullable Enum
|
252
|
+
state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported', nil])
|
252
253
|
return false unless state_validator.valid?(@state)
|
253
254
|
true
|
254
255
|
end
|
@@ -256,7 +257,8 @@ module BudgeaClient
|
|
256
257
|
# Custom attribute writer method checking allowed values (enum).
|
257
258
|
# @param [Object] state Object to be assigned
|
258
259
|
def state=(state)
|
259
|
-
|
260
|
+
# Nil on validator is a monkey patch since swagger 2.0 does not allow nullable Enum
|
261
|
+
validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported', nil])
|
260
262
|
unless validator.valid?(state)
|
261
263
|
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
262
264
|
end
|
@@ -6,9 +6,9 @@ index 6c79b96..96c830c 100644
|
|
6
6
|
return false if @id.nil?
|
7
7
|
return false if @id_connector.nil?
|
8
8
|
return false if @active.nil?
|
9
|
-
- state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug'])
|
9
|
+
- state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported'])
|
10
10
|
+ # Nil on validator is a monkey patch since swagger 2.0 does not allow nullable Enum
|
11
|
-
+ state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', nil])
|
11
|
+
+ state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported', nil])
|
12
12
|
return false unless state_validator.valid?(@state)
|
13
13
|
true
|
14
14
|
end
|
@@ -16,9 +16,9 @@ index 6c79b96..96c830c 100644
|
|
16
16
|
# Custom attribute writer method checking allowed values (enum).
|
17
17
|
# @param [Object] state Object to be assigned
|
18
18
|
def state=(state)
|
19
|
-
- validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug'])
|
19
|
+
- validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported'])
|
20
20
|
+ # Nil on validator is a monkey patch since swagger 2.0 does not allow nullable Enum
|
21
|
-
+ validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', nil])
|
21
|
+
+ validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported', nil])
|
22
22
|
unless validator.valid?(state)
|
23
23
|
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
24
24
|
end
|