budgea_client 5.5.0 → 5.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b78ebb49596b49a497b81004b640bc804095cbe56184ec446284b9dbb9a183fa
4
- data.tar.gz: eb49d1f1d307c26378cd31dc48910d51b36848329c15b986a6b3eac58fd37073
3
+ metadata.gz: 3405835ae770437364f52a4b4c01f85944bc028af9183a0fcc7216a7f3cedf0e
4
+ data.tar.gz: 1aa21134d1b97c054735adbfd6313d8034214dddd5a032edf3b5e1139edbbe30
5
5
  SHA512:
6
- metadata.gz: c04f604c0d1bf3522210f2dc34054636a5bc8e463655732a726e056dfc92f0a404321b4b2e655ffb61756714ef6d889e4dc05894b42eecffaef8eb34f7ebbb9e
7
- data.tar.gz: f33fc84e069569a1a7ff17259e151d7c798234e77cdce562710f1dbacd8eaf80f97a86cb0e09d0a8ade42477a160bc7880c7bf5ee143445f8e9d5b50fb5273d4
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.5.0)
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.1)
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.4.0
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.4.0.gem
26
+ gem install ./budgea_client-5.6.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./budgea_client-5.4.0.gem` to install the development dependencies)
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.4.0'
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
@@ -7,5 +7,5 @@
7
7
  "gemHomepage": "https://github.com/cashbee-team/budgea_client",
8
8
  "moduleName": "BudgeaClient",
9
9
  "gemLicense": "Apache 2.0",
10
- "gemVersion": "5.4.0"
10
+ "gemVersion": "5.6.0"
11
11
  }
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
- state_validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported'])
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
- validator = EnumAttributeValidator.new('String', ['wrongpass', 'additionalInformationNeeded', 'websiteUnavailable', 'actionNeeded', 'SCARequired', 'decoupled', 'passwordExpired', 'webauthRequired', 'rateLimiting', 'bug', 'validating', 'notSupported'])
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
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.19
11
11
  =end
12
12
 
13
13
  module BudgeaClient
14
- VERSION = '5.5.0'
14
+ VERSION = '5.6.0'
15
15
  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