budgea_client 5.3.8 → 5.4.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/Gemfile.lock +11 -10
- data/README.md +14 -4
- data/budgea_openapi.json +329 -27
- data/config.json +1 -1
- data/docs/AuthenticationApi.md +62 -0
- data/docs/Connector.md +1 -0
- data/docs/ConnectorSource.md +7 -0
- data/docs/Field.md +2 -1
- data/docs/InlineResponse2005.md +1 -3
- data/docs/PFMApi.md +9 -12
- data/docs/Payment.md +15 -0
- data/docs/PaymentBeneficiary.md +13 -0
- data/docs/PaymentBeneficiaryRequest.md +12 -0
- data/docs/PaymentData.md +13 -0
- data/docs/PaymentErrorCode.md +7 -0
- data/docs/PaymentInstruction.md +12 -0
- data/docs/PaymentInstructionRequest.md +13 -0
- data/docs/PaymentRequest.md +13 -0
- data/docs/PaymentState.md +7 -0
- data/docs/PaymentsApi.md +61 -0
- data/lib/budgea_client.rb +9 -0
- data/lib/budgea_client/api/authentication_api.rb +60 -0
- data/lib/budgea_client/api/payments_api.rb +75 -0
- data/lib/budgea_client/api/pfm_api.rb +14 -26
- data/lib/budgea_client/models/connection.rb +2 -4
- data/lib/budgea_client/models/connector.rb +15 -4
- data/lib/budgea_client/models/connector_source.rb +79 -4
- data/lib/budgea_client/models/field.rb +18 -5
- data/lib/budgea_client/models/inline_response_200_5.rb +7 -37
- data/lib/budgea_client/models/payment.rb +255 -0
- data/lib/budgea_client/models/payment_beneficiary.rb +235 -0
- data/lib/budgea_client/models/payment_beneficiary_request.rb +240 -0
- data/lib/budgea_client/models/payment_data.rb +246 -0
- data/lib/budgea_client/models/payment_error_code.rb +44 -0
- data/lib/budgea_client/models/payment_instruction.rb +224 -0
- data/lib/budgea_client/models/payment_instruction_request.rb +254 -0
- data/lib/budgea_client/models/payment_request.rb +246 -0
- data/lib/budgea_client/models/payment_state.rb +35 -0
- data/lib/budgea_client/version.rb +1 -1
- data/spec/api/payments_api_spec.rb +46 -0
- data/spec/models/payment_beneficiary_request_spec.rb +65 -0
- data/spec/models/payment_beneficiary_spec.rb +35 -0
- data/spec/models/payment_data_spec.rb +71 -0
- data/spec/models/payment_error_code_spec.rb +35 -0
- data/spec/models/payment_instruction_request_spec.rb +35 -0
- data/spec/models/payment_instruction_spec.rb +35 -0
- data/spec/models/payment_request_spec.rb +71 -0
- data/spec/models/payment_spec.rb +35 -0
- data/spec/models/payment_state_spec.rb +35 -0
- metadata +42 -3
- data/pkg/budgea_client-5.3.7.gem +0 -0
data/config.json
CHANGED
data/docs/AuthenticationApi.md
CHANGED
@@ -10,6 +10,7 @@ Method | HTTP request | Description
|
|
10
10
|
[**auth_token_access_post**](AuthenticationApi.md#auth_token_access_post) | **POST** /auth/token/access | Transform a temporary code to a access_token
|
11
11
|
[**auth_token_code_get**](AuthenticationApi.md#auth_token_code_get) | **GET** /auth/token/code | Generate a user temporary token
|
12
12
|
[**auth_token_delete**](AuthenticationApi.md#auth_token_delete) | **DELETE** /auth/token | Remove user access
|
13
|
+
[**auth_token_post**](AuthenticationApi.md#auth_token_post) | **POST** /auth/token | Login to API with credentials
|
13
14
|
[**certificate_type_get**](AuthenticationApi.md#certificate_type_get) | **GET** /certificate/{type} | Get the latest certificate of a type
|
14
15
|
[**hash_delete**](AuthenticationApi.md#hash_delete) | **DELETE** /hash | Delete the user's connections
|
15
16
|
[**users_id_user_delete**](AuthenticationApi.md#users_id_user_delete) | **DELETE** /users/{id_user} | Delete the user
|
@@ -356,6 +357,67 @@ nil (empty response body)
|
|
356
357
|
|
357
358
|
|
358
359
|
|
360
|
+
# **auth_token_post**
|
361
|
+
> InlineResponse2005 auth_token_post(opts)
|
362
|
+
|
363
|
+
Login to API with credentials
|
364
|
+
|
365
|
+
Request a new token by giving the client_id and client_secret
|
366
|
+
|
367
|
+
### Example
|
368
|
+
```ruby
|
369
|
+
# load the gem
|
370
|
+
require 'budgea_client'
|
371
|
+
# setup authorization
|
372
|
+
BudgeaClient.configure do |config|
|
373
|
+
# Configure API key authorization: api_key
|
374
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
375
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
376
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
377
|
+
end
|
378
|
+
|
379
|
+
api_instance = BudgeaClient::AuthenticationApi.new
|
380
|
+
|
381
|
+
opts = {
|
382
|
+
client_id: 'client_id_example', # String |
|
383
|
+
client_secret: 'client_secret_example', # String |
|
384
|
+
grant_type: 'grant_type_example', # String | grant type
|
385
|
+
scope: 'scope_example' # String | scope requested for the token
|
386
|
+
}
|
387
|
+
|
388
|
+
begin
|
389
|
+
#Login to API with credentials
|
390
|
+
result = api_instance.auth_token_post(opts)
|
391
|
+
p result
|
392
|
+
rescue BudgeaClient::ApiError => e
|
393
|
+
puts "Exception when calling AuthenticationApi->auth_token_post: #{e}"
|
394
|
+
end
|
395
|
+
```
|
396
|
+
|
397
|
+
### Parameters
|
398
|
+
|
399
|
+
Name | Type | Description | Notes
|
400
|
+
------------- | ------------- | ------------- | -------------
|
401
|
+
**client_id** | **String**| | [optional]
|
402
|
+
**client_secret** | **String**| | [optional]
|
403
|
+
**grant_type** | **String**| grant type | [optional]
|
404
|
+
**scope** | **String**| scope requested for the token | [optional]
|
405
|
+
|
406
|
+
### Return type
|
407
|
+
|
408
|
+
[**InlineResponse2005**](InlineResponse2005.md)
|
409
|
+
|
410
|
+
### Authorization
|
411
|
+
|
412
|
+
[api_key](../README.md#api_key)
|
413
|
+
|
414
|
+
### HTTP request headers
|
415
|
+
|
416
|
+
- **Content-Type**: application/x-www-form-urlencoded
|
417
|
+
- **Accept**: application/json
|
418
|
+
|
419
|
+
|
420
|
+
|
359
421
|
# **certificate_type_get**
|
360
422
|
> Certificate certificate_type_get(type, opts)
|
361
423
|
|
data/docs/Connector.md
CHANGED
@@ -20,5 +20,6 @@ Name | Type | Description | Notes
|
|
20
20
|
**restricted** | **BOOLEAN** | If true, new connections cannot be added with this connector | [default to false]
|
21
21
|
**fields** | [**Array<Field>**](Field.md) | | [optional]
|
22
22
|
**capabilities** | **Array<String>** | | [optional]
|
23
|
+
**sources** | [**Array<ConnectorSource>**](ConnectorSource.md) | | [optional]
|
23
24
|
|
24
25
|
|
data/docs/ConnectorSource.md
CHANGED
@@ -11,5 +11,12 @@ Name | Type | Description | Notes
|
|
11
11
|
**fallback** | **String** | Name of the source this fallback is for | [optional]
|
12
12
|
**disabled** | **DateTime** | This source is not used to synchronize the connection | [optional]
|
13
13
|
**priority** | **Integer** | The source priority order for the synchronization | [optional]
|
14
|
+
**capabilities** | **Array<String>** | | [optional]
|
15
|
+
**available_auth_mechanisms** | **Array<String>** | | [optional]
|
16
|
+
**urls** | **Array<String>** | | [optional]
|
17
|
+
**available_transfer_mechanisms** | **Array<String>** | | [optional]
|
18
|
+
**transfer_validate_mechanism** | **String** | | [optional]
|
19
|
+
**transfer_execution_date_types** | **Array<String>** | | [optional]
|
20
|
+
**transfer_execution_frequencies** | **Array<String>** | | [optional]
|
14
21
|
|
15
22
|
|
data/docs/Field.md
CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**value** | **String** | Default value of the field | [optional]
|
14
14
|
**values** | [**Array<FieldValue>**](FieldValue.md) | | [optional]
|
15
15
|
**required** | **BOOLEAN** | If true, field has to be set to synchronize the connection | [optional] [default to true]
|
16
|
-
**auth_mechanisms** | **String
|
16
|
+
**auth_mechanisms** | **Array<String>** | Authentication mechanisms this field is used for | [optional]
|
17
|
+
**connector_sources** | **Array<String>** | | [optional]
|
17
18
|
|
18
19
|
|
data/docs/InlineResponse2005.md
CHANGED
@@ -3,10 +3,8 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**profile** | **Object** | the user profile data object |
|
7
6
|
**scope** | **String** | the token scope |
|
8
7
|
**token** | **String** | the requested token |
|
9
|
-
**
|
10
|
-
**user** | **Object** | the user data object |
|
8
|
+
**expire_in** | **Integer** | duration in seconds of the token validity | [optional]
|
11
9
|
|
12
10
|
|
data/docs/PFMApi.md
CHANGED
@@ -380,11 +380,11 @@ nil (empty response body)
|
|
380
380
|
|
381
381
|
|
382
382
|
# **auth_token_post**
|
383
|
-
> InlineResponse2005 auth_token_post(
|
383
|
+
> InlineResponse2005 auth_token_post(opts)
|
384
384
|
|
385
385
|
Login to API with credentials
|
386
386
|
|
387
|
-
Request a new
|
387
|
+
Request a new token by giving the client_id and client_secret
|
388
388
|
|
389
389
|
### Example
|
390
390
|
```ruby
|
@@ -400,19 +400,16 @@ end
|
|
400
400
|
|
401
401
|
api_instance = BudgeaClient::PFMApi.new
|
402
402
|
|
403
|
-
username = 'username_example' # String | username
|
404
|
-
|
405
|
-
password = 'password_example' # String | password
|
406
|
-
|
407
|
-
application = 'application_example' # String | application name
|
408
|
-
|
409
403
|
opts = {
|
404
|
+
client_id: 'client_id_example', # String |
|
405
|
+
client_secret: 'client_secret_example', # String |
|
406
|
+
grant_type: 'grant_type_example', # String | grant type
|
410
407
|
scope: 'scope_example' # String | scope requested for the token
|
411
408
|
}
|
412
409
|
|
413
410
|
begin
|
414
411
|
#Login to API with credentials
|
415
|
-
result = api_instance.auth_token_post(
|
412
|
+
result = api_instance.auth_token_post(opts)
|
416
413
|
p result
|
417
414
|
rescue BudgeaClient::ApiError => e
|
418
415
|
puts "Exception when calling PFMApi->auth_token_post: #{e}"
|
@@ -423,9 +420,9 @@ end
|
|
423
420
|
|
424
421
|
Name | Type | Description | Notes
|
425
422
|
------------- | ------------- | ------------- | -------------
|
426
|
-
**
|
427
|
-
**
|
428
|
-
**
|
423
|
+
**client_id** | **String**| | [optional]
|
424
|
+
**client_secret** | **String**| | [optional]
|
425
|
+
**grant_type** | **String**| grant type | [optional]
|
429
426
|
**scope** | **String**| scope requested for the token | [optional]
|
430
427
|
|
431
428
|
### Return type
|
data/docs/Payment.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# BudgeaClient::Payment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **Integer** | The ID of the created payment request. | [optional]
|
7
|
+
**state** | **String** | | [optional]
|
8
|
+
**error_code** | **String** | | [optional]
|
9
|
+
**error_description** | **String** | Error message in case of an error. | [optional]
|
10
|
+
**id_connector** | **Integer** | ID of the bank connector to use to initiate the payment. | [optional]
|
11
|
+
**validate_uri** | **String** | The URL that must be presented to the PSU to validate the payment request. The URL is only available after the transfer has been validated. | [optional]
|
12
|
+
**client_redirect_uri** | **String** | The validate_uri callback URL that was provided when configuring the transfer request. | [optional]
|
13
|
+
**instructions** | [**Array<PaymentInstruction>**](PaymentInstruction.md) | The list of payment instructions. | [optional]
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# BudgeaClient::PaymentBeneficiary
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**scheme_name** | **String** | The beneficiary number type: iban for IBAN, bban for BBAN. | [optional]
|
7
|
+
**identification** | **String** | The beneficiary account number, of type matching the scheme_name. | [optional]
|
8
|
+
**label** | **String** | Display name of the beneficiary. | [optional]
|
9
|
+
**merchant_scheme_name** | **String** | For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna. | [optional]
|
10
|
+
**merchant_identification** | **String** | For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name. | [optional]
|
11
|
+
**bic** | **String** | The BIC of the beneficiary if it could be determined from the IBAN, null otherwise. | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# BudgeaClient::PaymentBeneficiaryRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**scheme_name** | **String** | The beneficiary number type: iban for IBAN, bban for BBAN (please note that BBAN is not supported by any connector yet). |
|
7
|
+
**identification** | **String** | The beneficiary account number, of type matching the scheme_name. |
|
8
|
+
**label** | **String** | Display name of the beneficiary. |
|
9
|
+
**merchant_scheme_name** | **String** | For merchant beneficiaries, the type of identifier: siret, siren, rcs, rna. | [optional]
|
10
|
+
**merchant_identification** | **String** | For merchant beneficiaries, the identifier, of type matching the merchant_scheme_name. | [optional]
|
11
|
+
|
12
|
+
|
data/docs/PaymentData.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# BudgeaClient::PaymentData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id_connector** | **Integer** | ID of the bank connector to use to initiate the payment. The bank connector must be eligible to payments creation. The id_connector can be submitted later on if validated is false when you initiate the payment request. | [optional]
|
7
|
+
**client_redirect_uri** | **String** | The redirect URL to use when building the validation URL. The provided URL must not contain any query parameter, rely on the client_state parameter for state management. |
|
8
|
+
**client_state** | **String** | Optional value that will be added as a state query parameter to the redirect URL after validation. | [optional]
|
9
|
+
**beneficiary** | [**PaymentBeneficiaryRequest**](PaymentBeneficiaryRequest.md) | | [optional]
|
10
|
+
**instructions** | [**Array<PaymentInstructionRequest>**](PaymentInstructionRequest.md) | The payment information. |
|
11
|
+
**validated** | **BOOLEAN** | Provide true to acknowledge payment validation at once. Otherwise, validation is deferred. | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# BudgeaClient::PaymentInstruction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**reference_id** | **String** | An identifier for the transaction. | [optional]
|
7
|
+
**currency** | **String** | The currency of the payment amount. | [optional]
|
8
|
+
**label** | **String** | Label of the payment. | [optional]
|
9
|
+
**execution_date_type** | **String** | The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later. | [optional]
|
10
|
+
**beneficiary** | [**PaymentBeneficiary**](PaymentBeneficiary.md) | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# BudgeaClient::PaymentInstructionRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**reference_id** | **String** | An identifier for the transaction, set by the emitter client. If not provided, a random UUID value will be generated. | [optional]
|
7
|
+
**amount** | **Integer** | The amount of the payment. |
|
8
|
+
**currency** | **String** | The currency code of the payment amount, a per ISO 4217. |
|
9
|
+
**label** | **String** | Label of the payment. |
|
10
|
+
**execution_date_type** | **String** | The execution date type of the payment: first_open_day for a standard banking transfer, deferred for a scheduled transfer, instant for instant payment. Other values might be supported later. |
|
11
|
+
**beneficiary** | [**PaymentBeneficiaryRequest**](PaymentBeneficiaryRequest.md) | | [optional]
|
12
|
+
|
13
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# BudgeaClient::PaymentRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id_connector** | **Integer** | ID of the bank connector to use to initiate the payment. The bank connector must be eligible to payments creation. The id_connector can be submitted later on if validated is false when you initiate the payment request. | [optional]
|
7
|
+
**client_redirect_uri** | **String** | The redirect URL to use when building the validation URL. The provided URL must not contain any query parameter, rely on the client_state parameter for state management. |
|
8
|
+
**client_state** | **String** | Optional value that will be added as a state query parameter to the redirect URL after validation. | [optional]
|
9
|
+
**beneficiary** | [**PaymentBeneficiaryRequest**](PaymentBeneficiaryRequest.md) | | [optional]
|
10
|
+
**instructions** | [**Array<PaymentInstructionRequest>**](PaymentInstructionRequest.md) | The payment information. |
|
11
|
+
**validated** | **BOOLEAN** | Provide true to acknowledge payment validation at once. Otherwise, validation is deferred. | [optional]
|
12
|
+
|
13
|
+
|
data/docs/PaymentsApi.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# BudgeaClient::PaymentsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://demo.biapi.pro/2.0/*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**payments_post**](PaymentsApi.md#payments_post) | **POST** /payments | Create and validate a payment request
|
8
|
+
|
9
|
+
|
10
|
+
# **payments_post**
|
11
|
+
> Payment payments_post(payment_data)
|
12
|
+
|
13
|
+
Create and validate a payment request
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'budgea_client'
|
19
|
+
# setup authorization
|
20
|
+
BudgeaClient.configure do |config|
|
21
|
+
# Configure API key authorization: api_key
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = BudgeaClient::PaymentsApi.new
|
28
|
+
|
29
|
+
payment_data = BudgeaClient::PaymentRequest.new # PaymentRequest |
|
30
|
+
|
31
|
+
|
32
|
+
begin
|
33
|
+
#Create and validate a payment request
|
34
|
+
result = api_instance.payments_post(payment_data)
|
35
|
+
p result
|
36
|
+
rescue BudgeaClient::ApiError => e
|
37
|
+
puts "Exception when calling PaymentsApi->payments_post: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
### Parameters
|
42
|
+
|
43
|
+
Name | Type | Description | Notes
|
44
|
+
------------- | ------------- | ------------- | -------------
|
45
|
+
**payment_data** | [**PaymentRequest**](PaymentRequest.md)| |
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**Payment**](Payment.md)
|
50
|
+
|
51
|
+
### Authorization
|
52
|
+
|
53
|
+
[api_key](../README.md#api_key)
|
54
|
+
|
55
|
+
### HTTP request headers
|
56
|
+
|
57
|
+
- **Content-Type**: application/json
|
58
|
+
- **Accept**: application/json
|
59
|
+
|
60
|
+
|
61
|
+
|
data/lib/budgea_client.rb
CHANGED
@@ -92,6 +92,14 @@ require 'budgea_client/models/keyword'
|
|
92
92
|
require 'budgea_client/models/locked_user'
|
93
93
|
require 'budgea_client/models/oidc_whitelist'
|
94
94
|
require 'budgea_client/models/order'
|
95
|
+
require 'budgea_client/models/payment'
|
96
|
+
require 'budgea_client/models/payment_beneficiary'
|
97
|
+
require 'budgea_client/models/payment_beneficiary_request'
|
98
|
+
require 'budgea_client/models/payment_error_code'
|
99
|
+
require 'budgea_client/models/payment_instruction'
|
100
|
+
require 'budgea_client/models/payment_instruction_request'
|
101
|
+
require 'budgea_client/models/payment_request'
|
102
|
+
require 'budgea_client/models/payment_state'
|
95
103
|
require 'budgea_client/models/pocket'
|
96
104
|
require 'budgea_client/models/profile'
|
97
105
|
require 'budgea_client/models/project'
|
@@ -124,6 +132,7 @@ require 'budgea_client/api/documents_api'
|
|
124
132
|
require 'budgea_client/api/ocr_api'
|
125
133
|
require 'budgea_client/api/oidc_api'
|
126
134
|
require 'budgea_client/api/pfm_api'
|
135
|
+
require 'budgea_client/api/payments_api'
|
127
136
|
require 'budgea_client/api/providers_api'
|
128
137
|
require 'budgea_client/api/recipients_api'
|
129
138
|
require 'budgea_client/api/terms_api'
|
@@ -360,6 +360,66 @@ module BudgeaClient
|
|
360
360
|
end
|
361
361
|
return data, status_code, headers
|
362
362
|
end
|
363
|
+
# Login to API with credentials
|
364
|
+
# Request a new token by giving the client_id and client_secret
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @option opts [String] :client_id
|
367
|
+
# @option opts [String] :client_secret
|
368
|
+
# @option opts [String] :grant_type grant type
|
369
|
+
# @option opts [String] :scope scope requested for the token
|
370
|
+
# @return [InlineResponse2005]
|
371
|
+
def auth_token_post(opts = {})
|
372
|
+
data, _status_code, _headers = auth_token_post_with_http_info(opts)
|
373
|
+
data
|
374
|
+
end
|
375
|
+
|
376
|
+
# Login to API with credentials
|
377
|
+
# Request a new token by giving the client_id and client_secret
|
378
|
+
# @param [Hash] opts the optional parameters
|
379
|
+
# @option opts [String] :client_id
|
380
|
+
# @option opts [String] :client_secret
|
381
|
+
# @option opts [String] :grant_type grant type
|
382
|
+
# @option opts [String] :scope scope requested for the token
|
383
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
384
|
+
def auth_token_post_with_http_info(opts = {})
|
385
|
+
if @api_client.config.debugging
|
386
|
+
@api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_token_post ...'
|
387
|
+
end
|
388
|
+
# resource path
|
389
|
+
local_var_path = '/auth/token'
|
390
|
+
|
391
|
+
# query parameters
|
392
|
+
query_params = {}
|
393
|
+
|
394
|
+
# header parameters
|
395
|
+
header_params = {}
|
396
|
+
# HTTP header 'Accept' (if needed)
|
397
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
398
|
+
# HTTP header 'Content-Type'
|
399
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
400
|
+
|
401
|
+
# form parameters
|
402
|
+
form_params = {}
|
403
|
+
form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
|
404
|
+
form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
|
405
|
+
form_params['grant_type'] = opts[:'grant_type'] if !opts[:'grant_type'].nil?
|
406
|
+
form_params['scope'] = opts[:'scope'] if !opts[:'scope'].nil?
|
407
|
+
|
408
|
+
# http body (model)
|
409
|
+
post_body = nil
|
410
|
+
auth_names = ['api_key']
|
411
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
412
|
+
:header_params => header_params,
|
413
|
+
:query_params => query_params,
|
414
|
+
:form_params => form_params,
|
415
|
+
:body => post_body,
|
416
|
+
:auth_names => auth_names,
|
417
|
+
:return_type => 'InlineResponse2005')
|
418
|
+
if @api_client.config.debugging
|
419
|
+
@api_client.config.logger.debug "API called: AuthenticationApi#auth_token_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
420
|
+
end
|
421
|
+
return data, status_code, headers
|
422
|
+
end
|
363
423
|
# Get the latest certificate of a type
|
364
424
|
#
|
365
425
|
# @param type
|