Skip to content

Commit 5a55aee

Browse files
committed
Update SDK to wsapi-v2 v2.4.0
1 parent 7008c1f commit 5a55aee

93 files changed

Lines changed: 238 additions & 274 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

wscli-php-sdk/src/WsCli.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,6 @@ private function getBodyParams()
734734
'Name' => array_key_exists('name', $this->opts) ? $this->opts['name'] : '',
735735
'Phone' => array_key_exists('phone', $this->opts) ? $this->opts['phone'] : '',
736736
'WsUserId' => array_key_exists('wsuserid', $this->opts) ? $this->opts['wsuserid'] : '',
737-
'WsTargetId' => array_key_exists('wstargetid', $this->opts) ? $this->opts['wstargetid'] : '',
738737
'Certificate' => array_key_exists('certificate', $this->opts) ? $this->opts['certificate'] : '',
739738
'PrivateKey' => array_key_exists('privatekey', $this->opts) ? $this->opts['privatekey'] : '',
740739
'EncCertificate' => array_key_exists('enccertificate', $this->opts) ? $this->opts['enccertificate'] : '',

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ The API provides normal file based access to all common banks in Finland via Web
33

44
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

6-
- API version: v2.3.1
6+
- API version: v2.4.0
77
- Package version: 0.1.0
88
- Build package: io.swagger.codegen.languages.PhpClientCodegen
99
For more information, please visit [https://www.isecure.fi/](https://www.isecure.fi/)

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* The API provides normal file based access to all common banks in Finland via WebServices channel on the service side, including certificate enrollment (PKI) with automatic renewals. Additionally, user account management, password recovery, and SMS based 2nd or Multi Factor Authentication (MFA) are provided (AWS Cognito Your User Pool). Access is secured with HTTPS/TLS (AWS API Gateway), using email address as username and password. On login, password is RSA encrypted along with dynamic parameters fetched from the service (username specific challenge response). Every integrator has own API Key and every user account belongs to one integrator. Certificate sharing between accounts is possible under the same integrator API Key, meaning that the enrolled bank connection certificates are shared. Under the same email address / username, both *admin* and *data* accounts must be used as they have separate passwords and differing functions.
77
*
8-
* OpenAPI spec version: v2.3.1
8+
* OpenAPI spec version: v2.4.0
99
* Contact: dan.forsberg@isecure.fi
1010
* Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
*

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/docs/Api/AccountApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ No authorization required
160160
161161
Register
162162

163-
You need to register both *admin* and *data* accounts with the same email address. Both accounts share the same data, but are used for different purposes. *Admin* account must be registered first, then *data* account. *Admin* account is used to configure setup with **Certs** and **Pgp** operations, while the *data* account is used with **Files** operations only. Both accounts use **Account** and **Session** operations. *Admin* account always requires SMS MFA during login, whilst *data* account does not. Generally, the *data* account is considered *read-noly* when no PGP keys are configured, since PGP Keys are used to verify file upload signatures and are thus required to successfully upload files with **Files** *UploadFile* operation. Registrations are independent for both accounts, *admin* and *data* and both require phone number and email verifications. `email` is the login username for both accounts and `mode` defines the selected "mode" for the login, i.e. *admin* or *data*. Before registration client must fetch challenge from server (see Account InitRegister operation) and pass it back within the `ChResp` parameter. The following parameters `name`, `phone`, and `company` are required and must be valid (`phone`, `email`) as they need to be confirmed before registration becomes successful and login possible. Client must RSA encrypt (OAEP padding) the _password_ and the challenge _timestamp_ as string in the form `password||timestamp`, base64 encode it and provide the resulting string as `Encrypted` parameter. The RSA encryption can be done e.g. for illustration purposes within command line with openssl rsautl: ``` echo -n 'Toddler_..123456789012345||1475175151231' | openssl rsautl -oaep -encrypt -pubin -inkey server_rsa_public_key.pem | base64 ``` The server's RSA public key is as follows: ``` -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkuSaoSZztGAIGDTY7Rff psBHJJT1k207UodOJbYFhHAq0lWJnvMPLl5Q1DUUZdTGtTdL8Dsaj/Bo2+gSykMM R5QiKewvQsLfvqjwOO8JDItnhJl0lUqcPpdQV4M/Ai3YNRjNcVy4a+pichqtSAWl 9S1HV01MNeouk8PEr/zoUasmgfO3mz6N6XTUtF/tIi8K2kBOsLAtqltihFSd/zT8 ifYZE9cZTJ09lUs7kMz1wxFIsiegaE1jUYV+VSLu3PJ97oKhQpqop8EnkBAoBl6r mdmFryBQIdakPIdd4rO5Yg+to10n4u7Wij9ePIwWMfbqY4QoW5nXqMgFJQkIt4TG eQIDAQAB -----END PUBLIC KEY----- ``` - **NOTE:** Password must be at least 20 characters long, have lower and upper case letters, numbers, and special characters. - **NOTE:** Phone number must be provided with country code, e.g. `+358404982201`.
163+
You need to register both *admin* and *data* accounts with the same email address. Both accounts share the same data, but are used for different purposes. *Admin* account must be registered first, then *data* account. *Admin* account is used to configure setup with **Certs** and **Pgp** operations, while the *data* account is used with **Files** operations only. Both accounts use **Account** and **Session** operations. *Admin* account always requires SMS MFA during login, whilst *data* account does not. Generally, the *data* account is considered *read-noly* when no PGP keys are configured, since PGP Keys are used to verify file upload signatures and are thus required to successfully upload files with **Files** *UploadFile* operation. Registrations are independent for both accounts, *admin* and *data* and both require phone number and email verifications. `email` is the login username for both accounts and `mode` defines the selected "mode" for the login, i.e. *admin* or *data*. Before registration client must fetch challenge from server (see Account InitRegister operation) and pass it back within the `ChResp` parameter. The following parameters `name`, `phone`, and `company` are required and must be valid (`phone`, `email`) as they need to be confirmed before registration becomes successful and login possible. Client must RSA encrypt (OAEP padding) the _password_ and the challenge _timestamp_ as string in the form `password||timestamp`, base64 encode it and provide the resulting string as `Encrypted` parameter. The RSA encryption can be done e.g. for illustration purposes within command line with openssl rsautl: ``` echo -n 'Toddler_..123456789012345||1475175151231' | openssl rsautl -oaep -encrypt -pubin -inkey server_rsa_public_key.pem | base64 ``` The **test** server's RSA public key is as follows: ``` -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkuSaoSZztGAIGDTY7Rff psBHJJT1k207UodOJbYFhHAq0lWJnvMPLl5Q1DUUZdTGtTdL8Dsaj/Bo2+gSykMM R5QiKewvQsLfvqjwOO8JDItnhJl0lUqcPpdQV4M/Ai3YNRjNcVy4a+pichqtSAWl 9S1HV01MNeouk8PEr/zoUasmgfO3mz6N6XTUtF/tIi8K2kBOsLAtqltihFSd/zT8 ifYZE9cZTJ09lUs7kMz1wxFIsiegaE1jUYV+VSLu3PJ97oKhQpqop8EnkBAoBl6r mdmFryBQIdakPIdd4rO5Yg+to10n4u7Wij9ePIwWMfbqY4QoW5nXqMgFJQkIt4TG eQIDAQAB -----END PUBLIC KEY----- ``` The **production** server's RSA public key is as follows: ``` -----BEGIN PUBLIC KEY----- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ EA7wx4l7P3eLsaEyK7ZRMEg5urEHwaEoY9LjkYcpMw 9gmPIi3RoGjQX7HzPad2D7ES2yIGdmyxjN8R2LyFa8 keEE+VY3ISYzP2cOjd/zDkX01yjDXQLRxntXbtqIyp GQAzmZbCyIB226ZKEE+ldh6MYyM41YWYikfocYssFE jY7fpPGeUg4FOmHmyWIZeMkXYovskoi1jZ1Ay1qn95 XlpA/Ptru2efro4T1xksv4WBBrj8bMNwdDpf4oyzH2 PKYkn3/KlNTBCHlAmzP0jd4pIaN0tAf2m8TcNq7kuB zyfs8AcCUj870p8SEiko0PMx6K+zVsTVWsxfUX+/+k mapmp/AwIDAQAB -----END PUBLIC KEY----- ``` - **NOTE:** Password must be at least 20 characters long, have lower and upper case letters, numbers, and special characters. - **NOTE:** Phone number must be provided with country code, e.g. `+358404982201`.
164164

165165
### Example
166166
```php

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/docs/Api/CertsApi.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Name | Type | Description | Notes
7474
7575
EnrollCert
7676

77-
Provide WS-Channel user id, _WsUserId_, _WsTargetId_, _Company_, and PIN _Code_ for _Bank_ certificate enrollment. _Company_ must match with the contract with the bank and is part of enrollment process. Note that certificate private key is securely generated and stored encrypted on service side and never leaves from there. Certificates are automatically renewed when needed.
77+
Provide WS-Channel user id, _WsUserId_, _Company_, and PIN _Code_ for _Bank_ certificate enrollment. _Company_ must match with the contract with the bank and is part of enrollment process. Note that certificate private key is securely generated and stored encrypted on service side and never leaves from there. Certificates are automatically renewed when needed.
7878

7979
### Example
8080
```php
@@ -93,7 +93,7 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key',
9393
$api_instance = new Swagger\Client\Api\CertsApi();
9494
$authorization = "authorization_example"; // string | Use _IdToken_ from the Login response as the Authorization header
9595
$enroll_cert_req = new \Swagger\Client\Model\EnrollCertReq(); // \Swagger\Client\Model\EnrollCertReq | Certs parameters
96-
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`.
96+
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`.
9797

9898
try {
9999
$result = $api_instance->enrollCert($authorization, $enroll_cert_req, $bank);
@@ -110,7 +110,7 @@ Name | Type | Description | Notes
110110
------------- | ------------- | ------------- | -------------
111111
**authorization** | **string**| Use _IdToken_ from the Login response as the Authorization header |
112112
**enroll_cert_req** | [**\Swagger\Client\Model\EnrollCertReq**](../Model/\Swagger\Client\Model\EnrollCertReq.md)| Certs parameters |
113-
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`. |
113+
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`. |
114114

115115
### Return type
116116

@@ -150,7 +150,7 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key',
150150

151151
$api_instance = new Swagger\Client\Api\CertsApi();
152152
$authorization = "authorization_example"; // string | Use _IdToken_ from the Login response as the Authorization header
153-
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`.
153+
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`.
154154
$pgp_key_id = "pgp_key_id_example"; // string | Short version of a PGP Key id idenfiying the exported Private Key, e.g. `3A3A59B2`
155155

156156
try {
@@ -167,7 +167,7 @@ try {
167167
Name | Type | Description | Notes
168168
------------- | ------------- | ------------- | -------------
169169
**authorization** | **string**| Use _IdToken_ from the Login response as the Authorization header |
170-
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`. |
170+
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`. |
171171
**pgp_key_id** | **string**| Short version of a PGP Key id idenfiying the exported Private Key, e.g. `3A3A59B2` |
172172

173173
### Return type
@@ -190,7 +190,7 @@ Name | Type | Description | Notes
190190
191191
ImportCert
192192

193-
Provide _WsUserId_, _WsTargetId_, _Company_, _PrivateKey_, and _Certificate_ for importing existing WS Channel certificate and private key. _Company_ must match with the contract with the bank. Certificate(s) and private key(s) must be PEM formatted. - **NOTE:** _EncCcertificate_ and _EncPrivatekey_ are for DanskeBank only.
193+
Provide _WsUserId_, _Company_, _PrivateKey_, and _Certificate_ for importing existing WS Channel certificate and private key. _Company_ must match with the contract with the bank. Certificate(s) and private key(s) must be PEM formatted. - **NOTE:** _EncCcertificate_ and _EncPrivatekey_ are for DanskeBank only.
194194

195195
### Example
196196
```php
@@ -209,7 +209,7 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key',
209209
$api_instance = new Swagger\Client\Api\CertsApi();
210210
$authorization = "authorization_example"; // string | Use _IdToken_ from the Login response as the Authorization header
211211
$import_cert_req = new \Swagger\Client\Model\ImportCertReq(); // \Swagger\Client\Model\ImportCertReq | Certs parameters
212-
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`.
212+
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`.
213213

214214
try {
215215
$result = $api_instance->importCert($authorization, $import_cert_req, $bank);
@@ -226,7 +226,7 @@ Name | Type | Description | Notes
226226
------------- | ------------- | ------------- | -------------
227227
**authorization** | **string**| Use _IdToken_ from the Login response as the Authorization header |
228228
**import_cert_req** | [**\Swagger\Client\Model\ImportCertReq**](../Model/\Swagger\Client\Model\ImportCertReq.md)| Certs parameters |
229-
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, or `alandsbanken`. |
229+
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `pop`, `spankki`, or `alandsbanken`. |
230230

231231
### Return type
232232

0 commit comments

Comments
 (0)