Skip to content

Commit 6e32f7f

Browse files
committed
latest SDK from API v2
1 parent e01ecae commit 6e32f7f

18 files changed

Lines changed: 177 additions & 58 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ try {
7474

7575
## Documentation for API Endpoints
7676

77-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
77+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
7878

7979
Class | Method | HTTP request | Description
8080
------------ | ------------- | ------------- | -------------

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
@@ -1,6 +1,6 @@
11
# Swagger\Client\AccountApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Swagger\Client\CertsApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
@@ -132,7 +132,7 @@ Name | Type | Description | Notes
132132
133133
ExportCert
134134

135-
Download bank certificate and private key encrypted with stored PGP key. **NOTE**: The previously uploaded `PgpKeyId` must have purpose type `Export`. I.e. purpose type `Authorize` PGP keys can not be used for exporting. **NOTE**: If `export` has been set to `disabled` (see ConfigCerts), then exporting private keys is not possible through API.
135+
Download bank certificate and private key encrypted with stored PGP key. **NOTE**: The previously uploaded `PgpKeyId` must have purpose type `export`. I.e. purpose type `authorize` PGP keys can not be used for exporting. **NOTE**: If `export` has been set to `disabled` (see ConfigCerts), then exporting private keys is not possible through API.
136136

137137
### Example
138138
```php

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Swagger\Client\FilesApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
@@ -191,11 +191,11 @@ Name | Type | Description | Notes
191191
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)
192192

193193
# **uploadFile**
194-
> \Swagger\Client\Model\Response uploadFile($authorization, $upload_file_req)
194+
> \Swagger\Client\Model\Response uploadFile($authorization, $upload_file_req, $bank)
195195
196196
UploadFile
197197

198-
Uploads file to bank. _Filecontents_ is a _Base64_ encoded string parameter. _Filetype_ is bank specific.
198+
Uploads file to bank if PGP signature(s) are valid. _FileContents_ is a _Base64_ encoded string parameter. _FileType_ is bank specific. _Signature_ is detached PGP signature or concatenation of PGP detached signatures in ASCII armor format. PGP signatures are used for authorizing file uploads. Currently one valid PGP authorize registered key signature is enough. _FileName_ is upload filename.
199199

200200
### Example
201201
```php
@@ -214,9 +214,10 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key',
214214
$api_instance = new Swagger\Client\Api\FilesApi();
215215
$authorization = "authorization_example"; // string | Use _IdToken_ from the Login response as the Authorization header
216216
$upload_file_req = new \Swagger\Client\Model\UploadFileReq(); // \Swagger\Client\Model\UploadFileReq | Files parameters
217+
$bank = "bank_example"; // string | *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, `alandsbanken` or `SEB`.
217218

218219
try {
219-
$result = $api_instance->uploadFile($authorization, $upload_file_req);
220+
$result = $api_instance->uploadFile($authorization, $upload_file_req, $bank);
220221
print_r($result);
221222
} catch (Exception $e) {
222223
echo 'Exception when calling FilesApi->uploadFile: ', $e->getMessage(), PHP_EOL;
@@ -230,6 +231,7 @@ Name | Type | Description | Notes
230231
------------- | ------------- | ------------- | -------------
231232
**authorization** | **string**| Use _IdToken_ from the Login response as the Authorization header |
232233
**upload_file_req** | [**\Swagger\Client\Model\UploadFileReq**](../Model/\Swagger\Client\Model\UploadFileReq.md)| Files parameters |
234+
**bank** | **string**| *Bank* used for this operation, can have values of `nordea`, `osuuspankki`, `danskebank`, `aktia`, `sp`, `shb`, `spankki`, `alandsbanken` or `SEB`. |
233235

234236
### Return type
235237

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Swagger\Client\IntegratorApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Swagger\Client\PgpTBDApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
@@ -142,7 +142,7 @@ Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key',
142142

143143
$api_instance = new Swagger\Client\Api\PgpTBDApi();
144144
$authorization = "authorization_example"; // string | Use _IdToken_ from the Login response as the Authorization header
145-
$upload_key_req = new \Swagger\Client\Model\UploadKeyReq(); // \Swagger\Client\Model\UploadKeyReq | ASCII armored PGP Key in `PgpKey` and key purpose, i.e. `Export` (exporting cert private key) or `Authorize` (upload content authorization verification) in `PgpKeyPurpose`.
145+
$upload_key_req = new \Swagger\Client\Model\UploadKeyReq(); // \Swagger\Client\Model\UploadKeyReq | ASCII armored PGP Key in `PgpKey` and key purpose, i.e. `export` (exporting cert private key) or `authorize` (upload content authorization verification) in `PgpKeyPurpose`. **NOTE**: The same PGP key can not be used for both `export` and `authorize` purpose at the same time.
146146

147147
try {
148148
$result = $api_instance->uploadKey($authorization, $upload_key_req);
@@ -158,7 +158,7 @@ try {
158158
Name | Type | Description | Notes
159159
------------- | ------------- | ------------- | -------------
160160
**authorization** | **string**| Use _IdToken_ from the Login response as the Authorization header |
161-
**upload_key_req** | [**\Swagger\Client\Model\UploadKeyReq**](../Model/\Swagger\Client\Model\UploadKeyReq.md)| ASCII armored PGP Key in `PgpKey` and key purpose, i.e. `Export` (exporting cert private key) or `Authorize` (upload content authorization verification) in `PgpKeyPurpose`. |
161+
**upload_key_req** | [**\Swagger\Client\Model\UploadKeyReq**](../Model/\Swagger\Client\Model\UploadKeyReq.md)| ASCII armored PGP Key in `PgpKey` and key purpose, i.e. `export` (exporting cert private key) or `authorize` (upload content authorization verification) in `PgpKeyPurpose`. **NOTE**: The same PGP key can not be used for both `export` and `authorize` purpose at the same time. |
162162

163163
### Return type
164164

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Swagger\Client\SessionApi
22

3-
All URIs are relative to *https://ws-api.test.isecure.fi/v2/*
3+
All URIs are relative to *https://ws-api.test.isecure.fi/v2*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/docs/Model/PgpKeyDescriptor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**pgp_key_id** | **string** | Short version of a PGP Key id idenfiying the key, e.g. `3A3A59B2` |
7+
**pgp_key_purpose** | **string** | PGP Key purpose | [optional]
78

89
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
910

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/docs/Model/UploadFileReq.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**bank** | **string** | Name of the bank |
76
**file_contents** | **string** | Base64 encoded file contents |
7+
**file_name** | **string** | Upload file name |
88
**file_type** | **string** | Bank specific file type |
9+
**signature** | **string** | Detached PGP signature(s) made with registered PGP key(s) |
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1112

wscli-php-sdk/swagger-php-sdk/SwaggerClient-php/docs/Model/UploadKeyReq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**pgp_key** | **string** | ASCII armored PGP Key |
7-
**pgp_key_purpose** | **string** | PGP key purpose, i.e. `Export` (exporting cert private key) or `Authorize` (upload content authorization verification). |
7+
**pgp_key_purpose** | **string** | PGP key purpose, i.e. `export` (exporting cert private key) or `authorize` (upload content authorization verification). |
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

0 commit comments

Comments
 (0)