diff --git a/README.md b/README.md index 248521ae..72166da9 100644 --- a/README.md +++ b/README.md @@ -98,11 +98,19 @@ Class | Method | HTTP request | Description *LegacyDocumentApi* | [**uploadDocumentFile**](docs/Api/LegacyDocumentApi.md#uploaddocumentfile) | **POST** /apps/api/kronos.document.uploadFile | Upload a new file in a document *LegacyProvisioningApi* | [**getOrganization**](docs/Api/LegacyProvisioningApi.md#getorganization) | **GET** /apps/provisioning/kronos.provisioning.getOrganization | Get all informations about an organization. *LegacyProvisioningApi* | [**getOrganizationList**](docs/Api/LegacyProvisioningApi.md#getorganizationlist) | **GET** /apps/provisioning/kronos.provisioning.getOrganizationList | List all organizations +*MovementApi* | [**addMovement**](docs/Api/MovementApi.md#addmovement) | **POST** /crm/api/v1/movements | +*MovementApi* | [**cancelMovement**](docs/Api/MovementApi.md#cancelmovement) | **POST** /crm/api/v1/movements/{movementId}/cancel | +*MovementApi* | [**deleteMovement**](docs/Api/MovementApi.md#deletemovement) | **DELETE** /crm/api/v1/movements/{movementId} | +*MovementApi* | [**getMovementStatus**](docs/Api/MovementApi.md#getmovementstatus) | **GET** /crm/api/v1/movements/{movementId}/status | +*MovementApi* | [**listMovements**](docs/Api/MovementApi.md#listmovements) | **GET** /crm/api/v1/movements | ## Documentation For Models + - [ErrorResponse](docs/Model/ErrorResponse.md) + - [LegacyAddUpdateItem](docs/Model/LegacyAddUpdateItem.md) - [LegacyAddUpdateResponse](docs/Model/LegacyAddUpdateResponse.md) + - [LegacyAddUpdateResponseAllOf](docs/Model/LegacyAddUpdateResponseAllOf.md) - [LegacyContactAddress](docs/Model/LegacyContactAddress.md) - [LegacyContactContact](docs/Model/LegacyContactContact.md) - [LegacyContactContactPayloadItem](docs/Model/LegacyContactContactPayloadItem.md) @@ -135,6 +143,42 @@ Class | Method | HTTP request | Description - [LegacyProvisioningUserPayload](docs/Model/LegacyProvisioningUserPayload.md) - [LegacyResponse](docs/Model/LegacyResponse.md) - [LegacyUser](docs/Model/LegacyUser.md) + - [MovementAddMovementResponse](docs/Model/MovementAddMovementResponse.md) + - [MovementClientBaseUsingDistributionListMovement](docs/Model/MovementClientBaseUsingDistributionListMovement.md) + - [MovementClientBaseUsingDistributionListMovementAllOf](docs/Model/MovementClientBaseUsingDistributionListMovementAllOf.md) + - [MovementClientBaseUsingDistributionListMovementPayload](docs/Model/MovementClientBaseUsingDistributionListMovementPayload.md) + - [MovementClientBaseUsingDistributionListMovementPayloadAllOf](docs/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.md) + - [MovementClientBaseUsingFileMovement](docs/Model/MovementClientBaseUsingFileMovement.md) + - [MovementClientBaseUsingFileMovementAllOf](docs/Model/MovementClientBaseUsingFileMovementAllOf.md) + - [MovementClientBaseUsingFileMovementPayload](docs/Model/MovementClientBaseUsingFileMovementPayload.md) + - [MovementClientBaseUsingFileMovementPayloadAllOf](docs/Model/MovementClientBaseUsingFileMovementPayloadAllOf.md) + - [MovementCopyMovement](docs/Model/MovementCopyMovement.md) + - [MovementCopyMovementAllOf](docs/Model/MovementCopyMovementAllOf.md) + - [MovementCopyMovementPayload](docs/Model/MovementCopyMovementPayload.md) + - [MovementCopyMovementPayloadAllOf](docs/Model/MovementCopyMovementPayloadAllOf.md) + - [MovementDatabase](docs/Model/MovementDatabase.md) + - [MovementDistributionList](docs/Model/MovementDistributionList.md) + - [MovementGatewayAccessCode](docs/Model/MovementGatewayAccessCode.md) + - [MovementGetStatusResponse](docs/Model/MovementGetStatusResponse.md) + - [MovementListMovementResponse](docs/Model/MovementListMovementResponse.md) + - [MovementMoveMovement](docs/Model/MovementMoveMovement.md) + - [MovementMoveMovementAllOf](docs/Model/MovementMoveMovementAllOf.md) + - [MovementMoveMovementPayload](docs/Model/MovementMoveMovementPayload.md) + - [MovementMoveMovementPayloadAllOf](docs/Model/MovementMoveMovementPayloadAllOf.md) + - [MovementMovement](docs/Model/MovementMovement.md) + - [MovementMovementPayload](docs/Model/MovementMovementPayload.md) + - [MovementMovementStatus](docs/Model/MovementMovementStatus.md) + - [MovementMovementType](docs/Model/MovementMovementType.md) + - [MovementReassignmentMovement](docs/Model/MovementReassignmentMovement.md) + - [MovementReassignmentMovementAllOf](docs/Model/MovementReassignmentMovementAllOf.md) + - [MovementReassignmentMovementPayload](docs/Model/MovementReassignmentMovementPayload.md) + - [MovementReassignmentMovementPayloadAllOf](docs/Model/MovementReassignmentMovementPayloadAllOf.md) + - [MovementTransferOption](docs/Model/MovementTransferOption.md) + - [MovementUser](docs/Model/MovementUser.md) + - [MovementUserTuple](docs/Model/MovementUserTuple.md) + - [MovementUserTuplePayload](docs/Model/MovementUserTuplePayload.md) + - [MovementValidationError](docs/Model/MovementValidationError.md) + - [MovementValidationErrorResponse](docs/Model/MovementValidationErrorResponse.md) ## Documentation For Authorization diff --git a/docs/Api/LegacyApi.md b/docs/Api/MovementApi.md similarity index 50% rename from docs/Api/LegacyApi.md rename to docs/Api/MovementApi.md index 482d1e93..a6203a31 100644 --- a/docs/Api/LegacyApi.md +++ b/docs/Api/MovementApi.md @@ -1,21 +1,22 @@ -# Equisoft\SDK\EquisoftConnect\LegacyApi +# Equisoft\SDK\EquisoftConnect\MovementApi All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addDocument**](LegacyApi.md#addDocument) | **POST** /apps/api/kronos.document.add | Create a new document. -[**appsApiPost**](LegacyApi.md#appsApiPost) | **POST** /apps/api/ | Legacy API entrypoint -[**getDocument**](LegacyApi.md#getDocument) | **GET** /apps/api/kronos.document.get | Get all data for a document record. -[**getDocumentList**](LegacyApi.md#getDocumentList) | **GET** /apps/api/kronos.document.getList | Get a list of all documents. This will return basic information about the document. +[**addMovement**](MovementApi.md#addMovement) | **POST** /crm/api/v1/movements | +[**cancelMovement**](MovementApi.md#cancelMovement) | **POST** /crm/api/v1/movements/{movementId}/cancel | +[**deleteMovement**](MovementApi.md#deleteMovement) | **DELETE** /crm/api/v1/movements/{movementId} | +[**getMovementStatus**](MovementApi.md#getMovementStatus) | **GET** /crm/api/v1/movements/{movementId}/status | +[**listMovements**](MovementApi.md#listMovements) | **GET** /crm/api/v1/movements | -## addDocument +## addMovement + +> \Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse addMovement($movementMovementPayload) -> \Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateResponse addDocument($legacyDocumentDocumentPayloadRequest) -Create a new document. ### Example @@ -28,19 +29,19 @@ require_once(__DIR__ . '/vendor/autoload.php'); $config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\LegacyApi( +$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\MovementApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); -$legacyDocumentDocumentPayloadRequest = new \Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentDocumentPayloadRequest(); // \Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentDocumentPayloadRequest | +$movementMovementPayload = new \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload(); // \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload | try { - $result = $apiInstance->addDocument($legacyDocumentDocumentPayloadRequest); + $result = $apiInstance->addMovement($movementMovementPayload); print_r($result); } catch (Exception $e) { - echo 'Exception when calling LegacyApi->addDocument: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling MovementApi->addMovement: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -50,11 +51,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **legacyDocumentDocumentPayloadRequest** | [**\Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentDocumentPayloadRequest**](../Model/LegacyDocumentDocumentPayloadRequest.md)| | + **movementMovementPayload** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload**](../Model/MovementMovementPayload.md)| | ### Return type -[**\Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateResponse**](../Model/LegacyAddUpdateResponse.md) +[**\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse**](../Model/MovementAddMovementResponse.md) ### Authorization @@ -70,11 +71,11 @@ Name | Type | Description | Notes [[Back to README]](../../README.md) -## appsApiPost +## cancelMovement + +> object cancelMovement($movementId) -> \Equisoft\SDK\EquisoftConnect\Model\LegacyResponse appsApiPost($method, $json, $body) -Legacy API entrypoint ### Example @@ -87,21 +88,19 @@ require_once(__DIR__ . '/vendor/autoload.php'); $config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\LegacyApi( +$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\MovementApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); -$method = 'method_example'; // string | Legacy method name -$json = True; // bool | -$body = new \Equisoft\SDK\EquisoftConnect\Model\AnyType(); // AnyType | +$movementId = 56; // int | try { - $result = $apiInstance->appsApiPost($method, $json, $body); + $result = $apiInstance->cancelMovement($movementId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling LegacyApi->appsApiPost: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling MovementApi->cancelMovement: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -111,13 +110,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **method** | **string**| Legacy method name | - **json** | **bool**| | [optional] - **body** | **AnyType**| | [optional] + **movementId** | **int**| | ### Return type -[**\Equisoft\SDK\EquisoftConnect\Model\LegacyResponse**](../Model/LegacyResponse.md) +**object** ### Authorization @@ -125,7 +122,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) @@ -133,11 +130,11 @@ Name | Type | Description | Notes [[Back to README]](../../README.md) -## getDocument +## deleteMovement + +> object deleteMovement($movementId) -> \Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentGetResponse getDocument() -Get all data for a document record. ### Example @@ -150,29 +147,92 @@ require_once(__DIR__ . '/vendor/autoload.php'); $config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\LegacyApi( +$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\MovementApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); +$movementId = 56; // int | try { - $result = $apiInstance->getDocument(); + $result = $apiInstance->deleteMovement($movementId); print_r($result); } catch (Exception $e) { - echo 'Exception when calling LegacyApi->getDocument: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling MovementApi->deleteMovement: ', $e->getMessage(), PHP_EOL; } ?> ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **movementId** | **int**| | + +### Return type + +**object** + +### Authorization + +[OAuth2](../../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[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) + + +## getMovementStatus + +> \Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse getMovementStatus($movementId) + + + +### Example + +```php +setAccessToken('YOUR_ACCESS_TOKEN'); + + +$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\MovementApi( + // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. + // This is optional, `GuzzleHttp\Client` will be used as default. + new GuzzleHttp\Client(), + $config +); +$movementId = 56; // int | + +try { + $result = $apiInstance->getMovementStatus($movementId); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling MovementApi->getMovementStatus: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **movementId** | **int**| | ### Return type -[**\Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentGetResponse**](../Model/LegacyDocumentGetResponse.md) +[**\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse**](../Model/MovementGetStatusResponse.md) ### Authorization @@ -188,13 +248,11 @@ This endpoint does not need any parameter. [[Back to README]](../../README.md) -## getDocumentList +## listMovements -> \Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentGetListResponse getDocumentList() +> \Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse listMovements() -Get a list of all documents. This will return basic information about the document. -Please note that a document is similar to a folder and may contain one or many files. ### Example @@ -207,7 +265,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); $config = Equisoft\SDK\EquisoftConnect\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); -$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\LegacyApi( +$apiInstance = new Equisoft\SDK\EquisoftConnect\Api\MovementApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), @@ -215,10 +273,10 @@ $apiInstance = new Equisoft\SDK\EquisoftConnect\Api\LegacyApi( ); try { - $result = $apiInstance->getDocumentList(); + $result = $apiInstance->listMovements(); print_r($result); } catch (Exception $e) { - echo 'Exception when calling LegacyApi->getDocumentList: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling MovementApi->listMovements: ', $e->getMessage(), PHP_EOL; } ?> ``` @@ -229,7 +287,7 @@ This endpoint does not need any parameter. ### Return type -[**\Equisoft\SDK\EquisoftConnect\Model\LegacyDocumentGetListResponse**](../Model/LegacyDocumentGetListResponse.md) +[**\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse**](../Model/MovementListMovementResponse.md) ### Authorization diff --git a/docs/Model/ErrorResponse.md b/docs/Model/ErrorResponse.md new file mode 100644 index 00000000..25de8441 --- /dev/null +++ b/docs/Model/ErrorResponse.md @@ -0,0 +1,12 @@ +# # ErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **string** | | [optional] +**errorDescription** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/LegacyAddUpdateItem.md b/docs/Model/LegacyAddUpdateItem.md new file mode 100644 index 00000000..05f96531 --- /dev/null +++ b/docs/Model/LegacyAddUpdateItem.md @@ -0,0 +1,13 @@ +# # LegacyAddUpdateItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **string** | id of the added item | [optional] +**externalKey** | **string** | External key assigned to the item | [optional] +**result** | **string** | Status of the Add or Update command (\"inserted\" | \"updated\") | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/LegacyAddUpdateResponse.md b/docs/Model/LegacyAddUpdateResponse.md index 46ff25ac..82a87d9d 100644 --- a/docs/Model/LegacyAddUpdateResponse.md +++ b/docs/Model/LegacyAddUpdateResponse.md @@ -4,6 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**stat** | **string** | Status of the request that has been made. Can be 'ok' or 'fail' | [optional] +**errorCode** | **string** | If the request has failed, this element will contain the error code related to the problem encountered. | [optional] +**errorMsg** | **string** | If the request has failed, this element will contain the error message related to the problem encountered. | [optional] +**items** | [**\Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[]**](LegacyAddUpdateItem.md) | List all items status for the Add or Update operation | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/LegacyAddUpdateResponseAllOf.md b/docs/Model/LegacyAddUpdateResponseAllOf.md new file mode 100644 index 00000000..a8f6625c --- /dev/null +++ b/docs/Model/LegacyAddUpdateResponseAllOf.md @@ -0,0 +1,11 @@ +# # LegacyAddUpdateResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**\Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[]**](LegacyAddUpdateItem.md) | List all items status for the Add or Update operation | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementAddMovementResponse.md b/docs/Model/MovementAddMovementResponse.md new file mode 100644 index 00000000..a02a80b8 --- /dev/null +++ b/docs/Model/MovementAddMovementResponse.md @@ -0,0 +1,11 @@ +# # MovementAddMovementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Unique numerical identifier of the created movement. | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingDistributionListMovement.md b/docs/Model/MovementClientBaseUsingDistributionListMovement.md new file mode 100644 index 00000000..18520b02 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingDistributionListMovement.md @@ -0,0 +1,18 @@ +# # MovementClientBaseUsingDistributionListMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_DISTLIST'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**sourceDistributionList** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList**](MovementDistributionList.md) | | [optional] +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**datagatewayAccessMappings** | **map[string,string]** | | [optional] +**transferOption** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingDistributionListMovementAllOf.md b/docs/Model/MovementClientBaseUsingDistributionListMovementAllOf.md new file mode 100644 index 00000000..27327cbd --- /dev/null +++ b/docs/Model/MovementClientBaseUsingDistributionListMovementAllOf.md @@ -0,0 +1,18 @@ +# # MovementClientBaseUsingDistributionListMovementAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_DISTLIST'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**sourceDistributionList** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList**](MovementDistributionList.md) | | [optional] +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**datagatewayAccessMappings** | **map[string,string]** | | [optional] +**transferOption** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingDistributionListMovementPayload.md b/docs/Model/MovementClientBaseUsingDistributionListMovementPayload.md new file mode 100644 index 00000000..ec407ce0 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingDistributionListMovementPayload.md @@ -0,0 +1,18 @@ +# # MovementClientBaseUsingDistributionListMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_DISTLIST'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**sourceDistributionList** | **string** | | [optional] +**destinationDatabase** | **string** | | +**destinationUser** | **string** | | +**datagatewayAccessMappings** | **map[string,string]** | | [optional] +**transferOption** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.md b/docs/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.md new file mode 100644 index 00000000..20fb3bc6 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.md @@ -0,0 +1,18 @@ +# # MovementClientBaseUsingDistributionListMovementPayloadAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_DISTLIST'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**sourceDistributionList** | **string** | | [optional] +**destinationDatabase** | **string** | | +**destinationUser** | **string** | | +**datagatewayAccessMappings** | **map[string,string]** | | [optional] +**transferOption** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingFileMovement.md b/docs/Model/MovementClientBaseUsingFileMovement.md new file mode 100644 index 00000000..dc41eeb5 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingFileMovement.md @@ -0,0 +1,17 @@ +# # MovementClientBaseUsingFileMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_FILE'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**capsil** | **bool** | | [optional] +**univeris** | **bool** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingFileMovementAllOf.md b/docs/Model/MovementClientBaseUsingFileMovementAllOf.md new file mode 100644 index 00000000..b85bb6ce --- /dev/null +++ b/docs/Model/MovementClientBaseUsingFileMovementAllOf.md @@ -0,0 +1,17 @@ +# # MovementClientBaseUsingFileMovementAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_FILE'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**capsil** | **bool** | | [optional] +**univeris** | **bool** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingFileMovementPayload.md b/docs/Model/MovementClientBaseUsingFileMovementPayload.md new file mode 100644 index 00000000..6205aca9 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingFileMovementPayload.md @@ -0,0 +1,17 @@ +# # MovementClientBaseUsingFileMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_FILE'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**destinationDatabase** | **string** | | +**destinationUser** | **string** | | +**capsilFile** | **string** | | [optional] +**univerisFile** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementClientBaseUsingFileMovementPayloadAllOf.md b/docs/Model/MovementClientBaseUsingFileMovementPayloadAllOf.md new file mode 100644 index 00000000..13dc3343 --- /dev/null +++ b/docs/Model/MovementClientBaseUsingFileMovementPayloadAllOf.md @@ -0,0 +1,17 @@ +# # MovementClientBaseUsingFileMovementPayloadAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'CLIENTBASE_USING_FILE'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**destinationDatabase** | **string** | | +**destinationUser** | **string** | | +**capsilFile** | **string** | | [optional] +**univerisFile** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementCopyMovement.md b/docs/Model/MovementCopyMovement.md new file mode 100644 index 00000000..6a1aa591 --- /dev/null +++ b/docs/Model/MovementCopyMovement.md @@ -0,0 +1,14 @@ +# # MovementCopyMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'COPY'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**userTuples** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[]**](MovementUserTuple.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementCopyMovementAllOf.md b/docs/Model/MovementCopyMovementAllOf.md new file mode 100644 index 00000000..272db475 --- /dev/null +++ b/docs/Model/MovementCopyMovementAllOf.md @@ -0,0 +1,14 @@ +# # MovementCopyMovementAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'COPY'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**userTuples** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[]**](MovementUserTuple.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementCopyMovementPayload.md b/docs/Model/MovementCopyMovementPayload.md new file mode 100644 index 00000000..e38306a2 --- /dev/null +++ b/docs/Model/MovementCopyMovementPayload.md @@ -0,0 +1,14 @@ +# # MovementCopyMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'COPY'] +**sourceDatabase** | **string** | | +**destinationDatabase** | **string** | | +**userTuples** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]**](MovementUserTuplePayload.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementCopyMovementPayloadAllOf.md b/docs/Model/MovementCopyMovementPayloadAllOf.md new file mode 100644 index 00000000..e762cc6b --- /dev/null +++ b/docs/Model/MovementCopyMovementPayloadAllOf.md @@ -0,0 +1,14 @@ +# # MovementCopyMovementPayloadAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'COPY'] +**sourceDatabase** | **string** | | +**destinationDatabase** | **string** | | +**userTuples** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]**](MovementUserTuplePayload.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementDatabase.md b/docs/Model/MovementDatabase.md new file mode 100644 index 00000000..fd55730b --- /dev/null +++ b/docs/Model/MovementDatabase.md @@ -0,0 +1,12 @@ +# # MovementDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **string** | | [optional] +**displayName** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementDistributionList.md b/docs/Model/MovementDistributionList.md new file mode 100644 index 00000000..a4da7234 --- /dev/null +++ b/docs/Model/MovementDistributionList.md @@ -0,0 +1,12 @@ +# # MovementDistributionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**label** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementGatewayAccessCode.md b/docs/Model/MovementGatewayAccessCode.md new file mode 100644 index 00000000..46768c1a --- /dev/null +++ b/docs/Model/MovementGatewayAccessCode.md @@ -0,0 +1,14 @@ +# # MovementGatewayAccessCode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessCode** | **string** | | [optional] +**label** | **string** | | [optional] +**code** | **string** | | [optional] +**system** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/InlineObject.md b/docs/Model/MovementGetStatusResponse.md similarity index 80% rename from docs/Model/InlineObject.md rename to docs/Model/MovementGetStatusResponse.md index aed66158..e872977f 100644 --- a/docs/Model/InlineObject.md +++ b/docs/Model/MovementGetStatusResponse.md @@ -1,10 +1,10 @@ -# # InlineObject +# # MovementGetStatusResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**payload** | [**AnyType**](.md) | | [optional] +**status** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/MovementListMovementResponse.md b/docs/Model/MovementListMovementResponse.md new file mode 100644 index 00000000..91ebd05d --- /dev/null +++ b/docs/Model/MovementListMovementResponse.md @@ -0,0 +1,11 @@ +# # MovementListMovementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementMovement[]**](MovementMovement.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMoveMovement.md b/docs/Model/MovementMoveMovement.md new file mode 100644 index 00000000..5d54f483 --- /dev/null +++ b/docs/Model/MovementMoveMovement.md @@ -0,0 +1,14 @@ +# # MovementMoveMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'MOVE'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**users** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser[]**](MovementUser.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMoveMovementAllOf.md b/docs/Model/MovementMoveMovementAllOf.md new file mode 100644 index 00000000..8d5a4c36 --- /dev/null +++ b/docs/Model/MovementMoveMovementAllOf.md @@ -0,0 +1,14 @@ +# # MovementMoveMovementAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'MOVE'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**destinationDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**users** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser[]**](MovementUser.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMoveMovementPayload.md b/docs/Model/MovementMoveMovementPayload.md new file mode 100644 index 00000000..e46f1759 --- /dev/null +++ b/docs/Model/MovementMoveMovementPayload.md @@ -0,0 +1,14 @@ +# # MovementMoveMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'MOVE'] +**sourceDatabase** | **string** | | +**destinationDatabase** | **string** | | +**users** | **string[]** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMoveMovementPayloadAllOf.md b/docs/Model/MovementMoveMovementPayloadAllOf.md new file mode 100644 index 00000000..08556819 --- /dev/null +++ b/docs/Model/MovementMoveMovementPayloadAllOf.md @@ -0,0 +1,14 @@ +# # MovementMoveMovementPayloadAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'MOVE'] +**sourceDatabase** | **string** | | +**destinationDatabase** | **string** | | +**users** | **string[]** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMovement.md b/docs/Model/MovementMovement.md new file mode 100644 index 00000000..7375d2af --- /dev/null +++ b/docs/Model/MovementMovement.md @@ -0,0 +1,20 @@ +# # MovementMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [optional] +**id** | **int** | | [optional] +**status** | **string** | | [optional] +**availableAction** | **string** | | [optional] +**scheduledDate** | **string** | | [optional] +**processedDate** | **string** | | [optional] +**addedDate** | **string** | | [optional] +**addedBy** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | [optional] +**cancelledDate** | **string** | | [optional] +**cancelledBy** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMovementPayload.md b/docs/Model/MovementMovementPayload.md new file mode 100644 index 00000000..cb5523dd --- /dev/null +++ b/docs/Model/MovementMovementPayload.md @@ -0,0 +1,12 @@ +# # MovementMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | **string** | | [optional] +**now** | **bool** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMovementStatus.md b/docs/Model/MovementMovementStatus.md new file mode 100644 index 00000000..0f5999c9 --- /dev/null +++ b/docs/Model/MovementMovementStatus.md @@ -0,0 +1,10 @@ +# # MovementMovementStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementMovementType.md b/docs/Model/MovementMovementType.md new file mode 100644 index 00000000..49d0cab8 --- /dev/null +++ b/docs/Model/MovementMovementType.md @@ -0,0 +1,10 @@ +# # MovementMovementType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementReassignmentMovement.md b/docs/Model/MovementReassignmentMovement.md new file mode 100644 index 00000000..9546255d --- /dev/null +++ b/docs/Model/MovementReassignmentMovement.md @@ -0,0 +1,15 @@ +# # MovementReassignmentMovement + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'REASSIGNMENT'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**accessCode** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode**](MovementGatewayAccessCode.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementReassignmentMovementAllOf.md b/docs/Model/MovementReassignmentMovementAllOf.md new file mode 100644 index 00000000..e8638be1 --- /dev/null +++ b/docs/Model/MovementReassignmentMovementAllOf.md @@ -0,0 +1,15 @@ +# # MovementReassignmentMovementAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'REASSIGNMENT'] +**sourceDatabase** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase**](MovementDatabase.md) | | +**sourceUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**destinationUser** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**accessCode** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode**](MovementGatewayAccessCode.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementReassignmentMovementPayload.md b/docs/Model/MovementReassignmentMovementPayload.md new file mode 100644 index 00000000..7212fc1b --- /dev/null +++ b/docs/Model/MovementReassignmentMovementPayload.md @@ -0,0 +1,15 @@ +# # MovementReassignmentMovementPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'REASSIGNMENT'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**destinationUser** | **string** | | +**accessCode** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementReassignmentMovementPayloadAllOf.md b/docs/Model/MovementReassignmentMovementPayloadAllOf.md new file mode 100644 index 00000000..dc2c91d5 --- /dev/null +++ b/docs/Model/MovementReassignmentMovementPayloadAllOf.md @@ -0,0 +1,15 @@ +# # MovementReassignmentMovementPayloadAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **string** | | [default to 'REASSIGNMENT'] +**sourceDatabase** | **string** | | +**sourceUser** | **string** | | +**destinationUser** | **string** | | +**accessCode** | **string** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementTransferOption.md b/docs/Model/MovementTransferOption.md new file mode 100644 index 00000000..c7b7aea0 --- /dev/null +++ b/docs/Model/MovementTransferOption.md @@ -0,0 +1,10 @@ +# # MovementTransferOption + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementUser.md b/docs/Model/MovementUser.md new file mode 100644 index 00000000..48990f5a --- /dev/null +++ b/docs/Model/MovementUser.md @@ -0,0 +1,13 @@ +# # MovementUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] +**uuid** | **string** | | [optional] +**displayName** | **string** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementUserTuple.md b/docs/Model/MovementUserTuple.md new file mode 100644 index 00000000..51bff828 --- /dev/null +++ b/docs/Model/MovementUserTuple.md @@ -0,0 +1,12 @@ +# # MovementUserTuple + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | +**to** | [**\Equisoft\SDK\EquisoftConnect\Model\MovementUser**](MovementUser.md) | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementUserTuplePayload.md b/docs/Model/MovementUserTuplePayload.md new file mode 100644 index 00000000..804044f9 --- /dev/null +++ b/docs/Model/MovementUserTuplePayload.md @@ -0,0 +1,12 @@ +# # MovementUserTuplePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**from** | **int** | | +**to** | **int** | | + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementValidationError.md b/docs/Model/MovementValidationError.md new file mode 100644 index 00000000..fcb70809 --- /dev/null +++ b/docs/Model/MovementValidationError.md @@ -0,0 +1,12 @@ +# # MovementValidationError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **string** | | [optional] +**context** | **map[string,string]** | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/docs/Model/MovementValidationErrorResponse.md b/docs/Model/MovementValidationErrorResponse.md new file mode 100644 index 00000000..756bab3e --- /dev/null +++ b/docs/Model/MovementValidationErrorResponse.md @@ -0,0 +1,11 @@ +# # MovementValidationErrorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**errors** | [**map[string,\Equisoft\SDK\EquisoftConnect\Model\MovementValidationError]**](MovementValidationError.md) | | [optional] + +[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) + + diff --git a/lib/Api/MovementApi.php b/lib/Api/MovementApi.php new file mode 100644 index 00000000..a792c4d7 --- /dev/null +++ b/lib/Api/MovementApi.php @@ -0,0 +1,1797 @@ +client = $client ?: new Client(); + $this->config = $config ?: new Configuration(); + $this->headerSelector = $selector ?: new HeaderSelector(); + $this->hostIndex = $host_index; + } + + /** + * Set the host index + * + * @param int Host index (required) + */ + public function setHostIndex($host_index) + { + $this->hostIndex = $host_index; + } + + /** + * Get the host index + * + * @return Host index + */ + public function getHostIndex() + { + return $this->hostIndex; + } + + /** + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + + /** + * Operation addMovement + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload $movementMovementPayload movementMovementPayload (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\MovementValidationErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse + */ + public function addMovement($movementMovementPayload) + { + list($response) = $this->addMovementWithHttpInfo($movementMovementPayload); + return $response; + } + + /** + * Operation addMovementWithHttpInfo + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload $movementMovementPayload (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\MovementValidationErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function addMovementWithHttpInfo($movementMovementPayload) + { + $request = $this->addMovementRequest($movementMovementPayload); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 400: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 401: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 422: + if ('\Equisoft\SDK\EquisoftConnect\Model\MovementValidationErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\MovementValidationErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\MovementValidationErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation addMovementAsync + * + * + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload $movementMovementPayload (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addMovementAsync($movementMovementPayload) + { + return $this->addMovementAsyncWithHttpInfo($movementMovementPayload) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation addMovementAsyncWithHttpInfo + * + * + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload $movementMovementPayload (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function addMovementAsyncWithHttpInfo($movementMovementPayload) + { + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementAddMovementResponse'; + $request = $this->addMovementRequest($movementMovementPayload); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'addMovement' + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovementPayload $movementMovementPayload (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function addMovementRequest($movementMovementPayload) + { + // verify the required parameter 'movementMovementPayload' is set + if ($movementMovementPayload === null || (is_array($movementMovementPayload) && count($movementMovementPayload) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $movementMovementPayload when calling addMovement' + ); + } + + $resourcePath = '/crm/api/v1/movements'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + // body params + $_tempBody = null; + if (isset($movementMovementPayload)) { + $_tempBody = $movementMovementPayload; + } + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + ['application/json'] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation cancelMovement + * + * @param int $movementId movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return object|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse + */ + public function cancelMovement($movementId) + { + list($response) = $this->cancelMovementWithHttpInfo($movementId); + return $response; + } + + /** + * Operation cancelMovementWithHttpInfo + * + * @param int $movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of object|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function cancelMovementWithHttpInfo($movementId) + { + $request = $this->cancelMovementRequest($movementId); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('object' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, 'object', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 401: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 404: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = 'object'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation cancelMovementAsync + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelMovementAsync($movementId) + { + return $this->cancelMovementAsyncWithHttpInfo($movementId) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation cancelMovementAsyncWithHttpInfo + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function cancelMovementAsyncWithHttpInfo($movementId) + { + $returnType = 'object'; + $request = $this->cancelMovementRequest($movementId); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'cancelMovement' + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function cancelMovementRequest($movementId) + { + // verify the required parameter 'movementId' is set + if ($movementId === null || (is_array($movementId) && count($movementId) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $movementId when calling cancelMovement' + ); + } + + $resourcePath = '/crm/api/v1/movements/{movementId}/cancel'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($movementId !== null) { + $resourcePath = str_replace( + '{' . 'movementId' . '}', + ObjectSerializer::toPathValue($movementId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'POST', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation deleteMovement + * + * @param int $movementId movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return object|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse + */ + public function deleteMovement($movementId) + { + list($response) = $this->deleteMovementWithHttpInfo($movementId); + return $response; + } + + /** + * Operation deleteMovementWithHttpInfo + * + * @param int $movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of object|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function deleteMovementWithHttpInfo($movementId) + { + $request = $this->deleteMovementRequest($movementId); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('object' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, 'object', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 401: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 404: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = 'object'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + 'object', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation deleteMovementAsync + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteMovementAsync($movementId) + { + return $this->deleteMovementAsyncWithHttpInfo($movementId) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation deleteMovementAsyncWithHttpInfo + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function deleteMovementAsyncWithHttpInfo($movementId) + { + $returnType = 'object'; + $request = $this->deleteMovementRequest($movementId); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'deleteMovement' + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function deleteMovementRequest($movementId) + { + // verify the required parameter 'movementId' is set + if ($movementId === null || (is_array($movementId) && count($movementId) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $movementId when calling deleteMovement' + ); + } + + $resourcePath = '/crm/api/v1/movements/{movementId}'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($movementId !== null) { + $resourcePath = str_replace( + '{' . 'movementId' . '}', + ObjectSerializer::toPathValue($movementId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'DELETE', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation getMovementStatus + * + * @param int $movementId movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse + */ + public function getMovementStatus($movementId) + { + list($response) = $this->getMovementStatusWithHttpInfo($movementId); + return $response; + } + + /** + * Operation getMovementStatusWithHttpInfo + * + * @param int $movementId (required) + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function getMovementStatusWithHttpInfo($movementId) + { + $request = $this->getMovementStatusRequest($movementId); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 401: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 404: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 404: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation getMovementStatusAsync + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMovementStatusAsync($movementId) + { + return $this->getMovementStatusAsyncWithHttpInfo($movementId) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation getMovementStatusAsyncWithHttpInfo + * + * + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getMovementStatusAsyncWithHttpInfo($movementId) + { + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementGetStatusResponse'; + $request = $this->getMovementStatusRequest($movementId); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'getMovementStatus' + * + * @param int $movementId (required) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function getMovementStatusRequest($movementId) + { + // verify the required parameter 'movementId' is set + if ($movementId === null || (is_array($movementId) && count($movementId) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $movementId when calling getMovementStatus' + ); + } + + $resourcePath = '/crm/api/v1/movements/{movementId}/status'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + // path params + if ($movementId !== null) { + $resourcePath = str_replace( + '{' . 'movementId' . '}', + ObjectSerializer::toPathValue($movementId), + $resourcePath + ); + } + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Operation listMovements + * + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse + */ + public function listMovements() + { + list($response) = $this->listMovementsWithHttpInfo(); + return $response; + } + + /** + * Operation listMovementsWithHttpInfo + * + * + * @throws \Equisoft\SDK\EquisoftConnect\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse|\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse, HTTP status code, HTTP response headers (array of strings) + */ + public function listMovementsWithHttpInfo() + { + $request = $this->listMovementsRequest(); + + try { + $options = $this->createHttpClientOption(); + try { + $response = $this->client->send($request, $options); + } catch (RequestException $e) { + throw new ApiException( + "[{$e->getCode()}] {$e->getMessage()}", + $e->getCode(), + $e->getResponse() ? $e->getResponse()->getHeaders() : null, + $e->getResponse() ? (string) $e->getResponse()->getBody() : null + ); + } + + $statusCode = $response->getStatusCode(); + + if ($statusCode < 200 || $statusCode > 299) { + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $request->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + + $responseBody = $response->getBody(); + switch($statusCode) { + case 200: + if ('\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 400: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 401: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + case 500: + if ('\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse' === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', []), + $response->getStatusCode(), + $response->getHeaders() + ]; + } + + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse'; + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 400: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 401: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 500: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Equisoft\SDK\EquisoftConnect\Model\ErrorResponse', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation listMovementsAsync + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMovementsAsync() + { + return $this->listMovementsAsyncWithHttpInfo() + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation listMovementsAsyncWithHttpInfo + * + * + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function listMovementsAsyncWithHttpInfo() + { + $returnType = '\Equisoft\SDK\EquisoftConnect\Model\MovementListMovementResponse'; + $request = $this->listMovementsRequest(); + + return $this->client + ->sendAsync($request, $this->createHttpClientOption()) + ->then( + function ($response) use ($returnType) { + $responseBody = $response->getBody(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = (string) $responseBody; + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + }, + function ($exception) { + $response = $exception->getResponse(); + $statusCode = $response->getStatusCode(); + throw new ApiException( + sprintf( + '[%d] Error connecting to the API (%s)', + $statusCode, + $exception->getRequest()->getUri() + ), + $statusCode, + $response->getHeaders(), + $response->getBody() + ); + } + ); + } + + /** + * Create request for operation 'listMovements' + * + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function listMovementsRequest() + { + + $resourcePath = '/crm/api/v1/movements'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + + + + // body params + $_tempBody = null; + + if ($multipart) { + $headers = $this->headerSelector->selectHeadersForMultipart( + ['application/json'] + ); + } else { + $headers = $this->headerSelector->selectHeaders( + ['application/json'], + [] + ); + } + + // for model (json/xml) + if (isset($_tempBody)) { + // $_tempBody is the method argument, if present + if ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody)); + } else { + $httpBody = $_tempBody; + } + } elseif (count($formParams) > 0) { + if ($multipart) { + $multipartContents = []; + foreach ($formParams as $formParamName => $formParamValue) { + $multipartContents[] = [ + 'name' => $formParamName, + 'contents' => $formParamValue + ]; + } + // for HTTP post (form) + $httpBody = new MultipartStream($multipartContents); + + } elseif ($headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($formParams); + + } else { + // for HTTP post (form) + $httpBody = \GuzzleHttp\Psr7\build_query($formParams); + } + } + + // this endpoint requires OAuth (access token) + if ($this->config->getAccessToken() !== null) { + $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken(); + } + + $defaultHeaders = []; + if ($this->config->getUserAgent()) { + $defaultHeaders['User-Agent'] = $this->config->getUserAgent(); + } + + $headers = array_merge( + $defaultHeaders, + $headerParams, + $headers + ); + + $query = \GuzzleHttp\Psr7\build_query($queryParams); + return new Request( + 'GET', + $this->config->getHost() . $resourcePath . ($query ? "?{$query}" : ''), + $headers, + $httpBody + ); + } + + /** + * Create http client option + * + * @throws \RuntimeException on file opening failure + * @return array of http client options + */ + protected function createHttpClientOption() + { + $options = []; + if ($this->config->getDebug()) { + $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); + if (!$options[RequestOptions::DEBUG]) { + throw new \RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile()); + } + } + + return $options; + } +} diff --git a/lib/Model/ErrorResponse.php b/lib/Model/ErrorResponse.php new file mode 100644 index 00000000..0e90965d --- /dev/null +++ b/lib/Model/ErrorResponse.php @@ -0,0 +1,337 @@ + 'string', + 'errorDescription' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'error' => null, + 'errorDescription' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error' => 'error', + 'errorDescription' => 'error_description' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error' => 'setError', + 'errorDescription' => 'setErrorDescription' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error' => 'getError', + 'errorDescription' => 'getErrorDescription' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['error'] = isset($data['error']) ? $data['error'] : null; + $this->container['errorDescription'] = isset($data['errorDescription']) ? $data['errorDescription'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets error + * + * @return string|null + */ + public function getError() + { + return $this->container['error']; + } + + /** + * Sets error + * + * @param string|null $error error + * + * @return $this + */ + public function setError($error) + { + $this->container['error'] = $error; + + return $this; + } + + /** + * Gets errorDescription + * + * @return string|null + */ + public function getErrorDescription() + { + return $this->container['errorDescription']; + } + + /** + * Sets errorDescription + * + * @param string|null $errorDescription errorDescription + * + * @return $this + */ + public function setErrorDescription($errorDescription) + { + $this->container['errorDescription'] = $errorDescription; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LegacyAddUpdateItem.php b/lib/Model/LegacyAddUpdateItem.php new file mode 100644 index 00000000..ceb00be3 --- /dev/null +++ b/lib/Model/LegacyAddUpdateItem.php @@ -0,0 +1,367 @@ + 'string', + 'externalKey' => 'string', + 'result' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'externalKey' => null, + 'result' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'externalKey' => 'externalKey', + 'result' => 'result' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'externalKey' => 'setExternalKey', + 'result' => 'setResult' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'externalKey' => 'getExternalKey', + 'result' => 'getResult' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['externalKey'] = isset($data['externalKey']) ? $data['externalKey'] : null; + $this->container['result'] = isset($data['result']) ? $data['result'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return string|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string|null $id id of the added item + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets externalKey + * + * @return string|null + */ + public function getExternalKey() + { + return $this->container['externalKey']; + } + + /** + * Sets externalKey + * + * @param string|null $externalKey External key assigned to the item + * + * @return $this + */ + public function setExternalKey($externalKey) + { + $this->container['externalKey'] = $externalKey; + + return $this; + } + + /** + * Gets result + * + * @return string|null + */ + public function getResult() + { + return $this->container['result']; + } + + /** + * Sets result + * + * @param string|null $result Status of the Add or Update command (\"inserted\" | \"updated\") + * + * @return $this + */ + public function setResult($result) + { + $this->container['result'] = $result; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/LegacyAddUpdateResponse.php b/lib/Model/LegacyAddUpdateResponse.php index dda0566e..b2dc772b 100644 --- a/lib/Model/LegacyAddUpdateResponse.php +++ b/lib/Model/LegacyAddUpdateResponse.php @@ -28,6 +28,8 @@ */ namespace Equisoft\SDK\EquisoftConnect\Model; + +use \ArrayAccess; use \Equisoft\SDK\EquisoftConnect\ObjectSerializer; /** @@ -38,7 +40,7 @@ * @author OpenAPI Generator team * @link https://openapi-generator.tech */ -class LegacyAddUpdateResponse extends LegacyResponse +class LegacyAddUpdateResponse implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; @@ -55,7 +57,10 @@ class LegacyAddUpdateResponse extends LegacyResponse * @var string[] */ protected static $openAPITypes = [ - + 'stat' => 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'items' => '\Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[]' ]; /** @@ -64,7 +69,10 @@ class LegacyAddUpdateResponse extends LegacyResponse * @var string[] */ protected static $openAPIFormats = [ - + 'stat' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'items' => null ]; /** @@ -74,7 +82,7 @@ class LegacyAddUpdateResponse extends LegacyResponse */ public static function openAPITypes() { - return self::$openAPITypes + parent::openAPITypes(); + return self::$openAPITypes; } /** @@ -84,7 +92,7 @@ public static function openAPITypes() */ public static function openAPIFormats() { - return self::$openAPIFormats + parent::openAPIFormats(); + return self::$openAPIFormats; } /** @@ -94,7 +102,10 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - + 'stat' => 'stat', + 'errorCode' => 'error_code', + 'errorMsg' => 'error_msg', + 'items' => 'items' ]; /** @@ -103,7 +114,10 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - + 'stat' => 'setStat', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'items' => 'setItems' ]; /** @@ -112,7 +126,10 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - + 'stat' => 'getStat', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'items' => 'getItems' ]; /** @@ -123,7 +140,7 @@ public static function openAPIFormats() */ public static function attributeMap() { - return parent::attributeMap() + self::$attributeMap; + return self::$attributeMap; } /** @@ -133,7 +150,7 @@ public static function attributeMap() */ public static function setters() { - return parent::setters() + self::$setters; + return self::$setters; } /** @@ -143,7 +160,7 @@ public static function setters() */ public static function getters() { - return parent::getters() + self::$getters; + return self::$getters; } /** @@ -160,6 +177,12 @@ public function getModelName() + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; /** * Constructor @@ -169,8 +192,10 @@ public function getModelName() */ public function __construct(array $data = null) { - parent::__construct($data); - + $this->container['stat'] = isset($data['stat']) ? $data['stat'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; } /** @@ -180,8 +205,11 @@ public function __construct(array $data = null) */ public function listInvalidProperties() { - $invalidProperties = parent::listInvalidProperties(); + $invalidProperties = []; + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } return $invalidProperties; } @@ -196,6 +224,102 @@ public function valid() return count($this->listInvalidProperties()) === 0; } + + /** + * Gets stat + * + * @return string|null + */ + public function getStat() + { + return $this->container['stat']; + } + + /** + * Sets stat + * + * @param string|null $stat Status of the request that has been made. Can be 'ok' or 'fail' + * + * @return $this + */ + public function setStat($stat) + { + $this->container['stat'] = $stat; + + return $this; + } + + /** + * Gets errorCode + * + * @return string|null + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string|null $errorCode If the request has failed, this element will contain the error code related to the problem encountered. + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string|null + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string|null $errorMsg If the request has failed, this element will contain the error message related to the problem encountered. + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + return $this; + } + + /** + * Gets items + * + * @return \Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[] $items List all items status for the Add or Update operation + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/LegacyAddUpdateResponseAllOf.php b/lib/Model/LegacyAddUpdateResponseAllOf.php new file mode 100644 index 00000000..4356c3fb --- /dev/null +++ b/lib/Model/LegacyAddUpdateResponseAllOf.php @@ -0,0 +1,310 @@ + '\Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'items' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'items' => 'items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'items' => 'setItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'items' => 'getItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets items + * + * @return \Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Equisoft\SDK\EquisoftConnect\Model\LegacyAddUpdateItem[] $items List all items status for the Add or Update operation + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/InlineObject.php b/lib/Model/MovementAddMovementResponse.php similarity index 89% rename from lib/Model/InlineObject.php rename to lib/Model/MovementAddMovementResponse.php index ed164055..55abbfe3 100644 --- a/lib/Model/InlineObject.php +++ b/lib/Model/MovementAddMovementResponse.php @@ -1,6 +1,6 @@ 'AnyType' + 'id' => 'int' ]; /** @@ -66,7 +66,7 @@ class InlineObject implements ModelInterface, ArrayAccess * @var string[] */ protected static $openAPIFormats = [ - 'payload' => null + 'id' => null ]; /** @@ -96,7 +96,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'payload' => 'payload' + 'id' => 'id' ]; /** @@ -105,7 +105,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'payload' => 'setPayload' + 'id' => 'setId' ]; /** @@ -114,7 +114,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'payload' => 'getPayload' + 'id' => 'getId' ]; /** @@ -177,7 +177,7 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['payload'] = isset($data['payload']) ? $data['payload'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; } /** @@ -205,25 +205,25 @@ public function valid() /** - * Gets payload + * Gets id * - * @return AnyType|null + * @return int|null */ - public function getPayload() + public function getId() { - return $this->container['payload']; + return $this->container['id']; } /** - * Sets payload + * Sets id * - * @param AnyType|null $payload payload + * @param int|null $id Unique numerical identifier of the created movement. * * @return $this */ - public function setPayload($payload) + public function setId($id) { - $this->container['payload'] = $payload; + $this->container['id'] = $id; return $this; } diff --git a/lib/Model/MovementClientBaseUsingDistributionListMovement.php b/lib/Model/MovementClientBaseUsingDistributionListMovement.php new file mode 100644 index 00000000..1c67918e --- /dev/null +++ b/lib/Model/MovementClientBaseUsingDistributionListMovement.php @@ -0,0 +1,559 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'sourceDistributionList' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'datagatewayAccessMappings' => 'map[string,string]', + 'transferOption' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'sourceDistributionList' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'datagatewayAccessMappings' => null, + 'transferOption' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'sourceDistributionList' => 'sourceDistributionList', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'datagatewayAccessMappings' => 'datagatewayAccessMappings', + 'transferOption' => 'transferOption' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'sourceDistributionList' => 'setSourceDistributionList', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'datagatewayAccessMappings' => 'setDatagatewayAccessMappings', + 'transferOption' => 'setTransferOption' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'sourceDistributionList' => 'getSourceDistributionList', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'datagatewayAccessMappings' => 'getDatagatewayAccessMappings', + 'transferOption' => 'getTransferOption' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_DISTLIST = 'CLIENTBASE_USING_DISTLIST'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_DISTLIST, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_DISTLIST'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['sourceDistributionList'] = isset($data['sourceDistributionList']) ? $data['sourceDistributionList'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['datagatewayAccessMappings'] = isset($data['datagatewayAccessMappings']) ? $data['datagatewayAccessMappings'] : null; + $this->container['transferOption'] = isset($data['transferOption']) ? $data['transferOption'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['transferOption'] === null) { + $invalidProperties[] = "'transferOption' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets sourceDistributionList + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList|null + */ + public function getSourceDistributionList() + { + return $this->container['sourceDistributionList']; + } + + /** + * Sets sourceDistributionList + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList|null $sourceDistributionList sourceDistributionList + * + * @return $this + */ + public function setSourceDistributionList($sourceDistributionList) + { + $this->container['sourceDistributionList'] = $sourceDistributionList; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets datagatewayAccessMappings + * + * @return map[string,string]|null + */ + public function getDatagatewayAccessMappings() + { + return $this->container['datagatewayAccessMappings']; + } + + /** + * Sets datagatewayAccessMappings + * + * @param map[string,string]|null $datagatewayAccessMappings datagatewayAccessMappings + * + * @return $this + */ + public function setDatagatewayAccessMappings($datagatewayAccessMappings) + { + $this->container['datagatewayAccessMappings'] = $datagatewayAccessMappings; + + return $this; + } + + /** + * Gets transferOption + * + * @return string + */ + public function getTransferOption() + { + return $this->container['transferOption']; + } + + /** + * Sets transferOption + * + * @param string $transferOption transferOption + * + * @return $this + */ + public function setTransferOption($transferOption) + { + $this->container['transferOption'] = $transferOption; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingDistributionListMovementAllOf.php b/lib/Model/MovementClientBaseUsingDistributionListMovementAllOf.php new file mode 100644 index 00000000..58163fa0 --- /dev/null +++ b/lib/Model/MovementClientBaseUsingDistributionListMovementAllOf.php @@ -0,0 +1,565 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'sourceDistributionList' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'datagatewayAccessMappings' => 'map[string,string]', + 'transferOption' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'sourceDistributionList' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'datagatewayAccessMappings' => null, + 'transferOption' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'sourceDistributionList' => 'sourceDistributionList', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'datagatewayAccessMappings' => 'datagatewayAccessMappings', + 'transferOption' => 'transferOption' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'sourceDistributionList' => 'setSourceDistributionList', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'datagatewayAccessMappings' => 'setDatagatewayAccessMappings', + 'transferOption' => 'setTransferOption' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'sourceDistributionList' => 'getSourceDistributionList', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'datagatewayAccessMappings' => 'getDatagatewayAccessMappings', + 'transferOption' => 'getTransferOption' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_DISTLIST = 'CLIENTBASE_USING_DISTLIST'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_DISTLIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_DISTLIST'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['sourceDistributionList'] = isset($data['sourceDistributionList']) ? $data['sourceDistributionList'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['datagatewayAccessMappings'] = isset($data['datagatewayAccessMappings']) ? $data['datagatewayAccessMappings'] : null; + $this->container['transferOption'] = isset($data['transferOption']) ? $data['transferOption'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['transferOption'] === null) { + $invalidProperties[] = "'transferOption' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets sourceDistributionList + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList|null + */ + public function getSourceDistributionList() + { + return $this->container['sourceDistributionList']; + } + + /** + * Sets sourceDistributionList + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDistributionList|null $sourceDistributionList sourceDistributionList + * + * @return $this + */ + public function setSourceDistributionList($sourceDistributionList) + { + $this->container['sourceDistributionList'] = $sourceDistributionList; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets datagatewayAccessMappings + * + * @return map[string,string]|null + */ + public function getDatagatewayAccessMappings() + { + return $this->container['datagatewayAccessMappings']; + } + + /** + * Sets datagatewayAccessMappings + * + * @param map[string,string]|null $datagatewayAccessMappings datagatewayAccessMappings + * + * @return $this + */ + public function setDatagatewayAccessMappings($datagatewayAccessMappings) + { + $this->container['datagatewayAccessMappings'] = $datagatewayAccessMappings; + + return $this; + } + + /** + * Gets transferOption + * + * @return string + */ + public function getTransferOption() + { + return $this->container['transferOption']; + } + + /** + * Sets transferOption + * + * @param string $transferOption transferOption + * + * @return $this + */ + public function setTransferOption($transferOption) + { + $this->container['transferOption'] = $transferOption; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingDistributionListMovementPayload.php b/lib/Model/MovementClientBaseUsingDistributionListMovementPayload.php new file mode 100644 index 00000000..f7632322 --- /dev/null +++ b/lib/Model/MovementClientBaseUsingDistributionListMovementPayload.php @@ -0,0 +1,559 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'sourceDistributionList' => 'string', + 'destinationDatabase' => 'string', + 'destinationUser' => 'string', + 'datagatewayAccessMappings' => 'map[string,string]', + 'transferOption' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'sourceDistributionList' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'datagatewayAccessMappings' => null, + 'transferOption' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'sourceDistributionList' => 'sourceDistributionList', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'datagatewayAccessMappings' => 'datagatewayAccessMappings', + 'transferOption' => 'transferOption' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'sourceDistributionList' => 'setSourceDistributionList', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'datagatewayAccessMappings' => 'setDatagatewayAccessMappings', + 'transferOption' => 'setTransferOption' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'sourceDistributionList' => 'getSourceDistributionList', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'datagatewayAccessMappings' => 'getDatagatewayAccessMappings', + 'transferOption' => 'getTransferOption' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_DISTLIST = 'CLIENTBASE_USING_DISTLIST'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_DISTLIST, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_DISTLIST'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['sourceDistributionList'] = isset($data['sourceDistributionList']) ? $data['sourceDistributionList'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['datagatewayAccessMappings'] = isset($data['datagatewayAccessMappings']) ? $data['datagatewayAccessMappings'] : null; + $this->container['transferOption'] = isset($data['transferOption']) ? $data['transferOption'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['transferOption'] === null) { + $invalidProperties[] = "'transferOption' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets sourceDistributionList + * + * @return string|null + */ + public function getSourceDistributionList() + { + return $this->container['sourceDistributionList']; + } + + /** + * Sets sourceDistributionList + * + * @param string|null $sourceDistributionList sourceDistributionList + * + * @return $this + */ + public function setSourceDistributionList($sourceDistributionList) + { + $this->container['sourceDistributionList'] = $sourceDistributionList; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets datagatewayAccessMappings + * + * @return map[string,string]|null + */ + public function getDatagatewayAccessMappings() + { + return $this->container['datagatewayAccessMappings']; + } + + /** + * Sets datagatewayAccessMappings + * + * @param map[string,string]|null $datagatewayAccessMappings datagatewayAccessMappings + * + * @return $this + */ + public function setDatagatewayAccessMappings($datagatewayAccessMappings) + { + $this->container['datagatewayAccessMappings'] = $datagatewayAccessMappings; + + return $this; + } + + /** + * Gets transferOption + * + * @return string + */ + public function getTransferOption() + { + return $this->container['transferOption']; + } + + /** + * Sets transferOption + * + * @param string $transferOption transferOption + * + * @return $this + */ + public function setTransferOption($transferOption) + { + $this->container['transferOption'] = $transferOption; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.php b/lib/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.php new file mode 100644 index 00000000..6ccbf817 --- /dev/null +++ b/lib/Model/MovementClientBaseUsingDistributionListMovementPayloadAllOf.php @@ -0,0 +1,565 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'sourceDistributionList' => 'string', + 'destinationDatabase' => 'string', + 'destinationUser' => 'string', + 'datagatewayAccessMappings' => 'map[string,string]', + 'transferOption' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'sourceDistributionList' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'datagatewayAccessMappings' => null, + 'transferOption' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'sourceDistributionList' => 'sourceDistributionList', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'datagatewayAccessMappings' => 'datagatewayAccessMappings', + 'transferOption' => 'transferOption' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'sourceDistributionList' => 'setSourceDistributionList', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'datagatewayAccessMappings' => 'setDatagatewayAccessMappings', + 'transferOption' => 'setTransferOption' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'sourceDistributionList' => 'getSourceDistributionList', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'datagatewayAccessMappings' => 'getDatagatewayAccessMappings', + 'transferOption' => 'getTransferOption' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_DISTLIST = 'CLIENTBASE_USING_DISTLIST'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_DISTLIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_DISTLIST'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['sourceDistributionList'] = isset($data['sourceDistributionList']) ? $data['sourceDistributionList'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['datagatewayAccessMappings'] = isset($data['datagatewayAccessMappings']) ? $data['datagatewayAccessMappings'] : null; + $this->container['transferOption'] = isset($data['transferOption']) ? $data['transferOption'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['transferOption'] === null) { + $invalidProperties[] = "'transferOption' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets sourceDistributionList + * + * @return string|null + */ + public function getSourceDistributionList() + { + return $this->container['sourceDistributionList']; + } + + /** + * Sets sourceDistributionList + * + * @param string|null $sourceDistributionList sourceDistributionList + * + * @return $this + */ + public function setSourceDistributionList($sourceDistributionList) + { + $this->container['sourceDistributionList'] = $sourceDistributionList; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets datagatewayAccessMappings + * + * @return map[string,string]|null + */ + public function getDatagatewayAccessMappings() + { + return $this->container['datagatewayAccessMappings']; + } + + /** + * Sets datagatewayAccessMappings + * + * @param map[string,string]|null $datagatewayAccessMappings datagatewayAccessMappings + * + * @return $this + */ + public function setDatagatewayAccessMappings($datagatewayAccessMappings) + { + $this->container['datagatewayAccessMappings'] = $datagatewayAccessMappings; + + return $this; + } + + /** + * Gets transferOption + * + * @return string + */ + public function getTransferOption() + { + return $this->container['transferOption']; + } + + /** + * Sets transferOption + * + * @param string $transferOption transferOption + * + * @return $this + */ + public function setTransferOption($transferOption) + { + $this->container['transferOption'] = $transferOption; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingFileMovement.php b/lib/Model/MovementClientBaseUsingFileMovement.php new file mode 100644 index 00000000..c32c3e2d --- /dev/null +++ b/lib/Model/MovementClientBaseUsingFileMovement.php @@ -0,0 +1,526 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'capsil' => 'bool', + 'univeris' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'capsil' => null, + 'univeris' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'capsil' => 'capsil', + 'univeris' => 'univeris' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'capsil' => 'setCapsil', + 'univeris' => 'setUniveris' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'capsil' => 'getCapsil', + 'univeris' => 'getUniveris' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_FILE = 'CLIENTBASE_USING_FILE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_FILE, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_FILE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['capsil'] = isset($data['capsil']) ? $data['capsil'] : null; + $this->container['univeris'] = isset($data['univeris']) ? $data['univeris'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets capsil + * + * @return bool|null + */ + public function getCapsil() + { + return $this->container['capsil']; + } + + /** + * Sets capsil + * + * @param bool|null $capsil capsil + * + * @return $this + */ + public function setCapsil($capsil) + { + $this->container['capsil'] = $capsil; + + return $this; + } + + /** + * Gets univeris + * + * @return bool|null + */ + public function getUniveris() + { + return $this->container['univeris']; + } + + /** + * Sets univeris + * + * @param bool|null $univeris univeris + * + * @return $this + */ + public function setUniveris($univeris) + { + $this->container['univeris'] = $univeris; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingFileMovementAllOf.php b/lib/Model/MovementClientBaseUsingFileMovementAllOf.php new file mode 100644 index 00000000..606d19cc --- /dev/null +++ b/lib/Model/MovementClientBaseUsingFileMovementAllOf.php @@ -0,0 +1,532 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'capsil' => 'bool', + 'univeris' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'capsil' => null, + 'univeris' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'capsil' => 'capsil', + 'univeris' => 'univeris' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'capsil' => 'setCapsil', + 'univeris' => 'setUniveris' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'capsil' => 'getCapsil', + 'univeris' => 'getUniveris' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_FILE = 'CLIENTBASE_USING_FILE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_FILE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_FILE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['capsil'] = isset($data['capsil']) ? $data['capsil'] : null; + $this->container['univeris'] = isset($data['univeris']) ? $data['univeris'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets capsil + * + * @return bool|null + */ + public function getCapsil() + { + return $this->container['capsil']; + } + + /** + * Sets capsil + * + * @param bool|null $capsil capsil + * + * @return $this + */ + public function setCapsil($capsil) + { + $this->container['capsil'] = $capsil; + + return $this; + } + + /** + * Gets univeris + * + * @return bool|null + */ + public function getUniveris() + { + return $this->container['univeris']; + } + + /** + * Sets univeris + * + * @param bool|null $univeris univeris + * + * @return $this + */ + public function setUniveris($univeris) + { + $this->container['univeris'] = $univeris; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingFileMovementPayload.php b/lib/Model/MovementClientBaseUsingFileMovementPayload.php new file mode 100644 index 00000000..fd004241 --- /dev/null +++ b/lib/Model/MovementClientBaseUsingFileMovementPayload.php @@ -0,0 +1,526 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'destinationDatabase' => 'string', + 'destinationUser' => 'string', + 'capsilFile' => 'string', + 'univerisFile' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'capsilFile' => null, + 'univerisFile' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'capsilFile' => 'capsilFile', + 'univerisFile' => 'univerisFile' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'capsilFile' => 'setCapsilFile', + 'univerisFile' => 'setUniverisFile' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'capsilFile' => 'getCapsilFile', + 'univerisFile' => 'getUniverisFile' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_FILE = 'CLIENTBASE_USING_FILE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_FILE, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_FILE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['capsilFile'] = isset($data['capsilFile']) ? $data['capsilFile'] : null; + $this->container['univerisFile'] = isset($data['univerisFile']) ? $data['univerisFile'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets capsilFile + * + * @return string|null + */ + public function getCapsilFile() + { + return $this->container['capsilFile']; + } + + /** + * Sets capsilFile + * + * @param string|null $capsilFile capsilFile + * + * @return $this + */ + public function setCapsilFile($capsilFile) + { + $this->container['capsilFile'] = $capsilFile; + + return $this; + } + + /** + * Gets univerisFile + * + * @return string|null + */ + public function getUniverisFile() + { + return $this->container['univerisFile']; + } + + /** + * Sets univerisFile + * + * @param string|null $univerisFile univerisFile + * + * @return $this + */ + public function setUniverisFile($univerisFile) + { + $this->container['univerisFile'] = $univerisFile; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementClientBaseUsingFileMovementPayloadAllOf.php b/lib/Model/MovementClientBaseUsingFileMovementPayloadAllOf.php new file mode 100644 index 00000000..be598c49 --- /dev/null +++ b/lib/Model/MovementClientBaseUsingFileMovementPayloadAllOf.php @@ -0,0 +1,532 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'destinationDatabase' => 'string', + 'destinationUser' => 'string', + 'capsilFile' => 'string', + 'univerisFile' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationDatabase' => null, + 'destinationUser' => null, + 'capsilFile' => null, + 'univerisFile' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationDatabase' => 'destinationDatabase', + 'destinationUser' => 'destinationUser', + 'capsilFile' => 'capsilFile', + 'univerisFile' => 'univerisFile' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationDatabase' => 'setDestinationDatabase', + 'destinationUser' => 'setDestinationUser', + 'capsilFile' => 'setCapsilFile', + 'univerisFile' => 'setUniverisFile' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationDatabase' => 'getDestinationDatabase', + 'destinationUser' => 'getDestinationUser', + 'capsilFile' => 'getCapsilFile', + 'univerisFile' => 'getUniverisFile' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_CLIENTBASE_USING_FILE = 'CLIENTBASE_USING_FILE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_CLIENTBASE_USING_FILE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'CLIENTBASE_USING_FILE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['capsilFile'] = isset($data['capsilFile']) ? $data['capsilFile'] : null; + $this->container['univerisFile'] = isset($data['univerisFile']) ? $data['univerisFile'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets capsilFile + * + * @return string|null + */ + public function getCapsilFile() + { + return $this->container['capsilFile']; + } + + /** + * Sets capsilFile + * + * @param string|null $capsilFile capsilFile + * + * @return $this + */ + public function setCapsilFile($capsilFile) + { + $this->container['capsilFile'] = $capsilFile; + + return $this; + } + + /** + * Gets univerisFile + * + * @return string|null + */ + public function getUniverisFile() + { + return $this->container['univerisFile']; + } + + /** + * Sets univerisFile + * + * @param string|null $univerisFile univerisFile + * + * @return $this + */ + public function setUniverisFile($univerisFile) + { + $this->container['univerisFile'] = $univerisFile; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementCopyMovement.php b/lib/Model/MovementCopyMovement.php new file mode 100644 index 00000000..3103c795 --- /dev/null +++ b/lib/Model/MovementCopyMovement.php @@ -0,0 +1,433 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'userTuples' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'userTuples' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'userTuples' => 'userTuples' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'userTuples' => 'setUserTuples' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'userTuples' => 'getUserTuples' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_COPY = 'COPY'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_COPY, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'COPY'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['userTuples'] = isset($data['userTuples']) ? $data['userTuples'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['userTuples'] === null) { + $invalidProperties[] = "'userTuples' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets userTuples + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[] + */ + public function getUserTuples() + { + return $this->container['userTuples']; + } + + /** + * Sets userTuples + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[] $userTuples userTuples + * + * @return $this + */ + public function setUserTuples($userTuples) + { + $this->container['userTuples'] = $userTuples; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementCopyMovementAllOf.php b/lib/Model/MovementCopyMovementAllOf.php new file mode 100644 index 00000000..92b814ff --- /dev/null +++ b/lib/Model/MovementCopyMovementAllOf.php @@ -0,0 +1,439 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'userTuples' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'userTuples' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'userTuples' => 'userTuples' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'userTuples' => 'setUserTuples' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'userTuples' => 'getUserTuples' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_COPY = 'COPY'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_COPY, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'COPY'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['userTuples'] = isset($data['userTuples']) ? $data['userTuples'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['userTuples'] === null) { + $invalidProperties[] = "'userTuples' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets userTuples + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[] + */ + public function getUserTuples() + { + return $this->container['userTuples']; + } + + /** + * Sets userTuples + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuple[] $userTuples userTuples + * + * @return $this + */ + public function setUserTuples($userTuples) + { + $this->container['userTuples'] = $userTuples; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementCopyMovementPayload.php b/lib/Model/MovementCopyMovementPayload.php new file mode 100644 index 00000000..9c7ff9d2 --- /dev/null +++ b/lib/Model/MovementCopyMovementPayload.php @@ -0,0 +1,430 @@ + 'string', + 'sourceDatabase' => 'string', + 'destinationDatabase' => 'string', + 'userTuples' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'userTuples' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'userTuples' => 'userTuples' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'userTuples' => 'setUserTuples' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'userTuples' => 'getUserTuples' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_COPY = 'COPY'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_COPY, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'COPY'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['userTuples'] = isset($data['userTuples']) ? $data['userTuples'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets userTuples + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]|null + */ + public function getUserTuples() + { + return $this->container['userTuples']; + } + + /** + * Sets userTuples + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]|null $userTuples userTuples + * + * @return $this + */ + public function setUserTuples($userTuples) + { + $this->container['userTuples'] = $userTuples; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementCopyMovementPayloadAllOf.php b/lib/Model/MovementCopyMovementPayloadAllOf.php new file mode 100644 index 00000000..b8706e51 --- /dev/null +++ b/lib/Model/MovementCopyMovementPayloadAllOf.php @@ -0,0 +1,436 @@ + 'string', + 'sourceDatabase' => 'string', + 'destinationDatabase' => 'string', + 'userTuples' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'userTuples' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'userTuples' => 'userTuples' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'userTuples' => 'setUserTuples' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'userTuples' => 'getUserTuples' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_COPY = 'COPY'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_COPY, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'COPY'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['userTuples'] = isset($data['userTuples']) ? $data['userTuples'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets userTuples + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]|null + */ + public function getUserTuples() + { + return $this->container['userTuples']; + } + + /** + * Sets userTuples + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUserTuplePayload[]|null $userTuples userTuples + * + * @return $this + */ + public function setUserTuples($userTuples) + { + $this->container['userTuples'] = $userTuples; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementDatabase.php b/lib/Model/MovementDatabase.php new file mode 100644 index 00000000..41479b2f --- /dev/null +++ b/lib/Model/MovementDatabase.php @@ -0,0 +1,337 @@ + 'string', + 'displayName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'name' => null, + 'displayName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name', + 'displayName' => 'displayName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'displayName' => 'setDisplayName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'displayName' => 'getDisplayName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['displayName'] = isset($data['displayName']) ? $data['displayName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return string|null + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string|null $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets displayName + * + * @return string|null + */ + public function getDisplayName() + { + return $this->container['displayName']; + } + + /** + * Sets displayName + * + * @param string|null $displayName displayName + * + * @return $this + */ + public function setDisplayName($displayName) + { + $this->container['displayName'] = $displayName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementDistributionList.php b/lib/Model/MovementDistributionList.php new file mode 100644 index 00000000..39e61c6e --- /dev/null +++ b/lib/Model/MovementDistributionList.php @@ -0,0 +1,337 @@ + 'int', + 'label' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'label' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'label' => 'label' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'label' => 'setLabel' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'label' => 'getLabel' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['label'] = isset($data['label']) ? $data['label'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return int|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int|null $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets label + * + * @return string|null + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string|null $label label + * + * @return $this + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementGatewayAccessCode.php b/lib/Model/MovementGatewayAccessCode.php new file mode 100644 index 00000000..2be97c84 --- /dev/null +++ b/lib/Model/MovementGatewayAccessCode.php @@ -0,0 +1,397 @@ + 'string', + 'label' => 'string', + 'code' => 'string', + 'system' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'accessCode' => null, + 'label' => null, + 'code' => null, + 'system' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'accessCode' => 'accessCode', + 'label' => 'label', + 'code' => 'code', + 'system' => 'system' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accessCode' => 'setAccessCode', + 'label' => 'setLabel', + 'code' => 'setCode', + 'system' => 'setSystem' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accessCode' => 'getAccessCode', + 'label' => 'getLabel', + 'code' => 'getCode', + 'system' => 'getSystem' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['accessCode'] = isset($data['accessCode']) ? $data['accessCode'] : null; + $this->container['label'] = isset($data['label']) ? $data['label'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['system'] = isset($data['system']) ? $data['system'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets accessCode + * + * @return string|null + */ + public function getAccessCode() + { + return $this->container['accessCode']; + } + + /** + * Sets accessCode + * + * @param string|null $accessCode accessCode + * + * @return $this + */ + public function setAccessCode($accessCode) + { + $this->container['accessCode'] = $accessCode; + + return $this; + } + + /** + * Gets label + * + * @return string|null + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string|null $label label + * + * @return $this + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + + /** + * Gets code + * + * @return string|null + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string|null $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets system + * + * @return string|null + */ + public function getSystem() + { + return $this->container['system']; + } + + /** + * Sets system + * + * @param string|null $system system + * + * @return $this + */ + public function setSystem($system) + { + $this->container['system'] = $system; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementGetStatusResponse.php b/lib/Model/MovementGetStatusResponse.php new file mode 100644 index 00000000..fa6b406c --- /dev/null +++ b/lib/Model/MovementGetStatusResponse.php @@ -0,0 +1,310 @@ + 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'status' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementListMovementResponse.php b/lib/Model/MovementListMovementResponse.php new file mode 100644 index 00000000..0aa24e5f --- /dev/null +++ b/lib/Model/MovementListMovementResponse.php @@ -0,0 +1,310 @@ + '\Equisoft\SDK\EquisoftConnect\Model\MovementMovement[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'items' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'items' => 'items' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'items' => 'setItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'items' => 'getItems' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['items'] === null) { + $invalidProperties[] = "'items' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets items + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementMovement[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementMovement[] $items items + * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMoveMovement.php b/lib/Model/MovementMoveMovement.php new file mode 100644 index 00000000..01a6ec17 --- /dev/null +++ b/lib/Model/MovementMoveMovement.php @@ -0,0 +1,433 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'users' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'users' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'users' => 'users' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'users' => 'setUsers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'users' => 'getUsers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_MOVE = 'MOVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_MOVE, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'MOVE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['users'] = isset($data['users']) ? $data['users'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['users'] === null) { + $invalidProperties[] = "'users' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets users + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser[] + */ + public function getUsers() + { + return $this->container['users']; + } + + /** + * Sets users + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser[] $users users + * + * @return $this + */ + public function setUsers($users) + { + $this->container['users'] = $users; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMoveMovementAllOf.php b/lib/Model/MovementMoveMovementAllOf.php new file mode 100644 index 00000000..84e11820 --- /dev/null +++ b/lib/Model/MovementMoveMovementAllOf.php @@ -0,0 +1,439 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'destinationDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'users' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'users' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'users' => 'users' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'users' => 'setUsers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'users' => 'getUsers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_MOVE = 'MOVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_MOVE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'MOVE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['users'] = isset($data['users']) ? $data['users'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['users'] === null) { + $invalidProperties[] = "'users' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets users + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser[] + */ + public function getUsers() + { + return $this->container['users']; + } + + /** + * Sets users + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser[] $users users + * + * @return $this + */ + public function setUsers($users) + { + $this->container['users'] = $users; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMoveMovementPayload.php b/lib/Model/MovementMoveMovementPayload.php new file mode 100644 index 00000000..5b01fc39 --- /dev/null +++ b/lib/Model/MovementMoveMovementPayload.php @@ -0,0 +1,433 @@ + 'string', + 'sourceDatabase' => 'string', + 'destinationDatabase' => 'string', + 'users' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'users' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'users' => 'users' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'users' => 'setUsers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'users' => 'getUsers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_MOVE = 'MOVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_MOVE, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'MOVE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['users'] = isset($data['users']) ? $data['users'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['users'] === null) { + $invalidProperties[] = "'users' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets users + * + * @return string[] + */ + public function getUsers() + { + return $this->container['users']; + } + + /** + * Sets users + * + * @param string[] $users users + * + * @return $this + */ + public function setUsers($users) + { + $this->container['users'] = $users; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMoveMovementPayloadAllOf.php b/lib/Model/MovementMoveMovementPayloadAllOf.php new file mode 100644 index 00000000..bc3a2981 --- /dev/null +++ b/lib/Model/MovementMoveMovementPayloadAllOf.php @@ -0,0 +1,439 @@ + 'string', + 'sourceDatabase' => 'string', + 'destinationDatabase' => 'string', + 'users' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'destinationDatabase' => null, + 'users' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'destinationDatabase' => 'destinationDatabase', + 'users' => 'users' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'destinationDatabase' => 'setDestinationDatabase', + 'users' => 'setUsers' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'destinationDatabase' => 'getDestinationDatabase', + 'users' => 'getUsers' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_MOVE = 'MOVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_MOVE, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'MOVE'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['destinationDatabase'] = isset($data['destinationDatabase']) ? $data['destinationDatabase'] : null; + $this->container['users'] = isset($data['users']) ? $data['users'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['destinationDatabase'] === null) { + $invalidProperties[] = "'destinationDatabase' can't be null"; + } + if ($this->container['users'] === null) { + $invalidProperties[] = "'users' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets destinationDatabase + * + * @return string + */ + public function getDestinationDatabase() + { + return $this->container['destinationDatabase']; + } + + /** + * Sets destinationDatabase + * + * @param string $destinationDatabase destinationDatabase + * + * @return $this + */ + public function setDestinationDatabase($destinationDatabase) + { + $this->container['destinationDatabase'] = $destinationDatabase; + + return $this; + } + + /** + * Gets users + * + * @return string[] + */ + public function getUsers() + { + return $this->container['users']; + } + + /** + * Sets users + * + * @param string[] $users users + * + * @return $this + */ + public function setUsers($users) + { + $this->container['users'] = $users; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMovement.php b/lib/Model/MovementMovement.php new file mode 100644 index 00000000..58c1a487 --- /dev/null +++ b/lib/Model/MovementMovement.php @@ -0,0 +1,625 @@ + "MovementMoveMovement", + "COPY" => "MovementCopyMovement", + "REASSIGNMENT" => "MovementReassignmentMovement", + "CLIENTBASE_USING_DISTLIST" => "MovementClientBaseUsingDistributionListMovement", + "CLIENTBASE_USING_FILE" => "MovementClientBaseUsingFileMovement", + ]; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'movement.Movement'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'type' => 'string', + 'id' => 'int', + 'status' => 'string', + 'availableAction' => 'string', + 'scheduledDate' => 'string', + 'processedDate' => 'string', + 'addedDate' => 'string', + 'addedBy' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'cancelledDate' => 'string', + 'cancelledBy' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'id' => null, + 'status' => null, + 'availableAction' => null, + 'scheduledDate' => null, + 'processedDate' => null, + 'addedDate' => null, + 'addedBy' => null, + 'cancelledDate' => null, + 'cancelledBy' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'id' => 'id', + 'status' => 'status', + 'availableAction' => 'availableAction', + 'scheduledDate' => 'scheduledDate', + 'processedDate' => 'processedDate', + 'addedDate' => 'addedDate', + 'addedBy' => 'addedBy', + 'cancelledDate' => 'cancelledDate', + 'cancelledBy' => 'cancelledBy' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'id' => 'setId', + 'status' => 'setStatus', + 'availableAction' => 'setAvailableAction', + 'scheduledDate' => 'setScheduledDate', + 'processedDate' => 'setProcessedDate', + 'addedDate' => 'setAddedDate', + 'addedBy' => 'setAddedBy', + 'cancelledDate' => 'setCancelledDate', + 'cancelledBy' => 'setCancelledBy' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'id' => 'getId', + 'status' => 'getStatus', + 'availableAction' => 'getAvailableAction', + 'scheduledDate' => 'getScheduledDate', + 'processedDate' => 'getProcessedDate', + 'addedDate' => 'getAddedDate', + 'addedBy' => 'getAddedBy', + 'cancelledDate' => 'getCancelledDate', + 'cancelledBy' => 'getCancelledBy' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_MOVE = 'MOVE'; + const TYPE_COPY = 'COPY'; + const TYPE_REASSIGNMENT = 'REASSIGNMENT'; + const TYPE_CLIENTBASE_USING_FILE = 'CLIENTBASE_USING_FILE'; + const TYPE_CLIENTBASE_USING_DISTLIST = 'CLIENTBASE_USING_DISTLIST'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_MOVE, + self::TYPE_COPY, + self::TYPE_REASSIGNMENT, + self::TYPE_CLIENTBASE_USING_FILE, + self::TYPE_CLIENTBASE_USING_DISTLIST, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['availableAction'] = isset($data['availableAction']) ? $data['availableAction'] : null; + $this->container['scheduledDate'] = isset($data['scheduledDate']) ? $data['scheduledDate'] : null; + $this->container['processedDate'] = isset($data['processedDate']) ? $data['processedDate'] : null; + $this->container['addedDate'] = isset($data['addedDate']) ? $data['addedDate'] : null; + $this->container['addedBy'] = isset($data['addedBy']) ? $data['addedBy'] : null; + $this->container['cancelledDate'] = isset($data['cancelledDate']) ? $data['cancelledDate'] : null; + $this->container['cancelledBy'] = isset($data['cancelledBy']) ? $data['cancelledBy'] : null; + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets id + * + * @return int|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int|null $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets status + * + * @return string|null + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string|null $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets availableAction + * + * @return string|null + */ + public function getAvailableAction() + { + return $this->container['availableAction']; + } + + /** + * Sets availableAction + * + * @param string|null $availableAction availableAction + * + * @return $this + */ + public function setAvailableAction($availableAction) + { + $this->container['availableAction'] = $availableAction; + + return $this; + } + + /** + * Gets scheduledDate + * + * @return string|null + */ + public function getScheduledDate() + { + return $this->container['scheduledDate']; + } + + /** + * Sets scheduledDate + * + * @param string|null $scheduledDate scheduledDate + * + * @return $this + */ + public function setScheduledDate($scheduledDate) + { + $this->container['scheduledDate'] = $scheduledDate; + + return $this; + } + + /** + * Gets processedDate + * + * @return string|null + */ + public function getProcessedDate() + { + return $this->container['processedDate']; + } + + /** + * Sets processedDate + * + * @param string|null $processedDate processedDate + * + * @return $this + */ + public function setProcessedDate($processedDate) + { + $this->container['processedDate'] = $processedDate; + + return $this; + } + + /** + * Gets addedDate + * + * @return string|null + */ + public function getAddedDate() + { + return $this->container['addedDate']; + } + + /** + * Sets addedDate + * + * @param string|null $addedDate addedDate + * + * @return $this + */ + public function setAddedDate($addedDate) + { + $this->container['addedDate'] = $addedDate; + + return $this; + } + + /** + * Gets addedBy + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser|null + */ + public function getAddedBy() + { + return $this->container['addedBy']; + } + + /** + * Sets addedBy + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser|null $addedBy addedBy + * + * @return $this + */ + public function setAddedBy($addedBy) + { + $this->container['addedBy'] = $addedBy; + + return $this; + } + + /** + * Gets cancelledDate + * + * @return string|null + */ + public function getCancelledDate() + { + return $this->container['cancelledDate']; + } + + /** + * Sets cancelledDate + * + * @param string|null $cancelledDate cancelledDate + * + * @return $this + */ + public function setCancelledDate($cancelledDate) + { + $this->container['cancelledDate'] = $cancelledDate; + + return $this; + } + + /** + * Gets cancelledBy + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser|null + */ + public function getCancelledBy() + { + return $this->container['cancelledBy']; + } + + /** + * Sets cancelledBy + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser|null $cancelledBy cancelledBy + * + * @return $this + */ + public function setCancelledBy($cancelledBy) + { + $this->container['cancelledBy'] = $cancelledBy; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMovementPayload.php b/lib/Model/MovementMovementPayload.php new file mode 100644 index 00000000..17ec5f39 --- /dev/null +++ b/lib/Model/MovementMovementPayload.php @@ -0,0 +1,347 @@ + "MovementMoveMovementPayload", + "COPY" => "MovementCopyMovementPayload", + "REASSIGNMENT" => "MovementReassignmentMovementPayload", + "CLIENTBASE_USING_DISTLIST" => "MovementClientBaseUsingDistributionListMovementPayload", + "CLIENTBASE_USING_FILE" => "MovementClientBaseUsingFileMovementPayload", + ]; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'movement.MovementPayload'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'date' => 'string', + 'now' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'date' => null, + 'now' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'date' => 'date', + 'now' => 'now' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'date' => 'setDate', + 'now' => 'setNow' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'date' => 'getDate', + 'now' => 'getNow' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['now'] = isset($data['now']) ? $data['now'] : null; + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets date + * + * @return string|null + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param string|null $date date + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets now + * + * @return bool|null + */ + public function getNow() + { + return $this->container['now']; + } + + /** + * Sets now + * + * @param bool|null $now now + * + * @return $this + */ + public function setNow($now) + { + $this->container['now'] = $now; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementMovementStatus.php b/lib/Model/MovementMovementStatus.php new file mode 100644 index 00000000..cdb95d06 --- /dev/null +++ b/lib/Model/MovementMovementStatus.php @@ -0,0 +1,68 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'accessCode' => '\Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationUser' => null, + 'accessCode' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationUser' => 'destinationUser', + 'accessCode' => 'accessCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationUser' => 'setDestinationUser', + 'accessCode' => 'setAccessCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationUser' => 'getDestinationUser', + 'accessCode' => 'getAccessCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_REASSIGNMENT = 'REASSIGNMENT'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_REASSIGNMENT, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'REASSIGNMENT'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['accessCode'] = isset($data['accessCode']) ? $data['accessCode'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['accessCode'] === null) { + $invalidProperties[] = "'accessCode' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets accessCode + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode + */ + public function getAccessCode() + { + return $this->container['accessCode']; + } + + /** + * Sets accessCode + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode $accessCode accessCode + * + * @return $this + */ + public function setAccessCode($accessCode) + { + $this->container['accessCode'] = $accessCode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementReassignmentMovementAllOf.php b/lib/Model/MovementReassignmentMovementAllOf.php new file mode 100644 index 00000000..9fd9de7b --- /dev/null +++ b/lib/Model/MovementReassignmentMovementAllOf.php @@ -0,0 +1,472 @@ + 'string', + 'sourceDatabase' => '\Equisoft\SDK\EquisoftConnect\Model\MovementDatabase', + 'sourceUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'destinationUser' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'accessCode' => '\Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationUser' => null, + 'accessCode' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationUser' => 'destinationUser', + 'accessCode' => 'accessCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationUser' => 'setDestinationUser', + 'accessCode' => 'setAccessCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationUser' => 'getDestinationUser', + 'accessCode' => 'getAccessCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_REASSIGNMENT = 'REASSIGNMENT'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_REASSIGNMENT, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'REASSIGNMENT'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['accessCode'] = isset($data['accessCode']) ? $data['accessCode'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['accessCode'] === null) { + $invalidProperties[] = "'accessCode' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementDatabase $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationUser + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets accessCode + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode + */ + public function getAccessCode() + { + return $this->container['accessCode']; + } + + /** + * Sets accessCode + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementGatewayAccessCode $accessCode accessCode + * + * @return $this + */ + public function setAccessCode($accessCode) + { + $this->container['accessCode'] = $accessCode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementReassignmentMovementPayload.php b/lib/Model/MovementReassignmentMovementPayload.php new file mode 100644 index 00000000..e083f26c --- /dev/null +++ b/lib/Model/MovementReassignmentMovementPayload.php @@ -0,0 +1,466 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'destinationUser' => 'string', + 'accessCode' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationUser' => null, + 'accessCode' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes + parent::openAPITypes(); + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats + parent::openAPIFormats(); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationUser' => 'destinationUser', + 'accessCode' => 'accessCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationUser' => 'setDestinationUser', + 'accessCode' => 'setAccessCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationUser' => 'getDestinationUser', + 'accessCode' => 'getAccessCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return parent::attributeMap() + self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return parent::setters() + self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return parent::getters() + self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_REASSIGNMENT = 'REASSIGNMENT'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_REASSIGNMENT, + ]; + } + + + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + parent::__construct($data); + + $this->container['type'] = isset($data['type']) ? $data['type'] : 'REASSIGNMENT'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['accessCode'] = isset($data['accessCode']) ? $data['accessCode'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = parent::listInvalidProperties(); + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['accessCode'] === null) { + $invalidProperties[] = "'accessCode' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets accessCode + * + * @return string + */ + public function getAccessCode() + { + return $this->container['accessCode']; + } + + /** + * Sets accessCode + * + * @param string $accessCode accessCode + * + * @return $this + */ + public function setAccessCode($accessCode) + { + $this->container['accessCode'] = $accessCode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementReassignmentMovementPayloadAllOf.php b/lib/Model/MovementReassignmentMovementPayloadAllOf.php new file mode 100644 index 00000000..5f94aca2 --- /dev/null +++ b/lib/Model/MovementReassignmentMovementPayloadAllOf.php @@ -0,0 +1,472 @@ + 'string', + 'sourceDatabase' => 'string', + 'sourceUser' => 'string', + 'destinationUser' => 'string', + 'accessCode' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'sourceDatabase' => null, + 'sourceUser' => null, + 'destinationUser' => null, + 'accessCode' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'sourceDatabase' => 'sourceDatabase', + 'sourceUser' => 'sourceUser', + 'destinationUser' => 'destinationUser', + 'accessCode' => 'accessCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'sourceDatabase' => 'setSourceDatabase', + 'sourceUser' => 'setSourceUser', + 'destinationUser' => 'setDestinationUser', + 'accessCode' => 'setAccessCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'sourceDatabase' => 'getSourceDatabase', + 'sourceUser' => 'getSourceUser', + 'destinationUser' => 'getDestinationUser', + 'accessCode' => 'getAccessCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_REASSIGNMENT = 'REASSIGNMENT'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_REASSIGNMENT, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : 'REASSIGNMENT'; + $this->container['sourceDatabase'] = isset($data['sourceDatabase']) ? $data['sourceDatabase'] : null; + $this->container['sourceUser'] = isset($data['sourceUser']) ? $data['sourceUser'] : null; + $this->container['destinationUser'] = isset($data['destinationUser']) ? $data['destinationUser'] : null; + $this->container['accessCode'] = isset($data['accessCode']) ? $data['accessCode'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['sourceDatabase'] === null) { + $invalidProperties[] = "'sourceDatabase' can't be null"; + } + if ($this->container['sourceUser'] === null) { + $invalidProperties[] = "'sourceUser' can't be null"; + } + if ($this->container['destinationUser'] === null) { + $invalidProperties[] = "'destinationUser' can't be null"; + } + if ($this->container['accessCode'] === null) { + $invalidProperties[] = "'accessCode' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets sourceDatabase + * + * @return string + */ + public function getSourceDatabase() + { + return $this->container['sourceDatabase']; + } + + /** + * Sets sourceDatabase + * + * @param string $sourceDatabase sourceDatabase + * + * @return $this + */ + public function setSourceDatabase($sourceDatabase) + { + $this->container['sourceDatabase'] = $sourceDatabase; + + return $this; + } + + /** + * Gets sourceUser + * + * @return string + */ + public function getSourceUser() + { + return $this->container['sourceUser']; + } + + /** + * Sets sourceUser + * + * @param string $sourceUser sourceUser + * + * @return $this + */ + public function setSourceUser($sourceUser) + { + $this->container['sourceUser'] = $sourceUser; + + return $this; + } + + /** + * Gets destinationUser + * + * @return string + */ + public function getDestinationUser() + { + return $this->container['destinationUser']; + } + + /** + * Sets destinationUser + * + * @param string $destinationUser destinationUser + * + * @return $this + */ + public function setDestinationUser($destinationUser) + { + $this->container['destinationUser'] = $destinationUser; + + return $this; + } + + /** + * Gets accessCode + * + * @return string + */ + public function getAccessCode() + { + return $this->container['accessCode']; + } + + /** + * Sets accessCode + * + * @param string $accessCode accessCode + * + * @return $this + */ + public function setAccessCode($accessCode) + { + $this->container['accessCode'] = $accessCode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementTransferOption.php b/lib/Model/MovementTransferOption.php new file mode 100644 index 00000000..c29460c0 --- /dev/null +++ b/lib/Model/MovementTransferOption.php @@ -0,0 +1,62 @@ + 'int', + 'uuid' => 'string', + 'displayName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'id' => null, + 'uuid' => null, + 'displayName' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id' => 'id', + 'uuid' => 'uuid', + 'displayName' => 'displayName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id' => 'setId', + 'uuid' => 'setUuid', + 'displayName' => 'setDisplayName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id' => 'getId', + 'uuid' => 'getUuid', + 'displayName' => 'getDisplayName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null; + $this->container['displayName'] = isset($data['displayName']) ? $data['displayName'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets id + * + * @return int|null + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int|null $id id + * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets uuid + * + * @return string|null + */ + public function getUuid() + { + return $this->container['uuid']; + } + + /** + * Sets uuid + * + * @param string|null $uuid uuid + * + * @return $this + */ + public function setUuid($uuid) + { + $this->container['uuid'] = $uuid; + + return $this; + } + + /** + * Gets displayName + * + * @return string|null + */ + public function getDisplayName() + { + return $this->container['displayName']; + } + + /** + * Sets displayName + * + * @param string|null $displayName displayName + * + * @return $this + */ + public function setDisplayName($displayName) + { + $this->container['displayName'] = $displayName; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementUserTuple.php b/lib/Model/MovementUserTuple.php new file mode 100644 index 00000000..72bd5f07 --- /dev/null +++ b/lib/Model/MovementUserTuple.php @@ -0,0 +1,343 @@ + '\Equisoft\SDK\EquisoftConnect\Model\MovementUser', + 'to' => '\Equisoft\SDK\EquisoftConnect\Model\MovementUser' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'from' => null, + 'to' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'from' => 'from', + 'to' => 'to' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'from' => 'setFrom', + 'to' => 'setTo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'from' => 'getFrom', + 'to' => 'getTo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['from'] = isset($data['from']) ? $data['from'] : null; + $this->container['to'] = isset($data['to']) ? $data['to'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['from'] === null) { + $invalidProperties[] = "'from' can't be null"; + } + if ($this->container['to'] === null) { + $invalidProperties[] = "'to' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets from + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getFrom() + { + return $this->container['from']; + } + + /** + * Sets from + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $from from + * + * @return $this + */ + public function setFrom($from) + { + $this->container['from'] = $from; + + return $this; + } + + /** + * Gets to + * + * @return \Equisoft\SDK\EquisoftConnect\Model\MovementUser + */ + public function getTo() + { + return $this->container['to']; + } + + /** + * Sets to + * + * @param \Equisoft\SDK\EquisoftConnect\Model\MovementUser $to to + * + * @return $this + */ + public function setTo($to) + { + $this->container['to'] = $to; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementUserTuplePayload.php b/lib/Model/MovementUserTuplePayload.php new file mode 100644 index 00000000..e52f830b --- /dev/null +++ b/lib/Model/MovementUserTuplePayload.php @@ -0,0 +1,343 @@ + 'int', + 'to' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'from' => null, + 'to' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'from' => 'from', + 'to' => 'to' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'from' => 'setFrom', + 'to' => 'setTo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'from' => 'getFrom', + 'to' => 'getTo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['from'] = isset($data['from']) ? $data['from'] : null; + $this->container['to'] = isset($data['to']) ? $data['to'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['from'] === null) { + $invalidProperties[] = "'from' can't be null"; + } + if ($this->container['to'] === null) { + $invalidProperties[] = "'to' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets from + * + * @return int + */ + public function getFrom() + { + return $this->container['from']; + } + + /** + * Sets from + * + * @param int $from from + * + * @return $this + */ + public function setFrom($from) + { + $this->container['from'] = $from; + + return $this; + } + + /** + * Gets to + * + * @return int + */ + public function getTo() + { + return $this->container['to']; + } + + /** + * Sets to + * + * @param int $to to + * + * @return $this + */ + public function setTo($to) + { + $this->container['to'] = $to; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementValidationError.php b/lib/Model/MovementValidationError.php new file mode 100644 index 00000000..79169926 --- /dev/null +++ b/lib/Model/MovementValidationError.php @@ -0,0 +1,337 @@ + 'string', + 'context' => 'map[string,string]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'message' => null, + 'context' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'message' => 'message', + 'context' => 'context' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'message' => 'setMessage', + 'context' => 'setContext' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'message' => 'getMessage', + 'context' => 'getContext' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['context'] = isset($data['context']) ? $data['context'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets message + * + * @return string|null + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string|null $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets context + * + * @return map[string,string]|null + */ + public function getContext() + { + return $this->container['context']; + } + + /** + * Sets context + * + * @param map[string,string]|null $context context + * + * @return $this + */ + public function setContext($context) + { + $this->container['context'] = $context; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/MovementValidationErrorResponse.php b/lib/Model/MovementValidationErrorResponse.php new file mode 100644 index 00000000..0625204c --- /dev/null +++ b/lib/Model/MovementValidationErrorResponse.php @@ -0,0 +1,307 @@ + 'map[string,\Equisoft\SDK\EquisoftConnect\Model\MovementValidationError]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'errors' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'errors' => 'errors' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'errors' => 'setErrors' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'errors' => 'getErrors' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['errors'] = isset($data['errors']) ? $data['errors'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets errors + * + * @return map[string,\Equisoft\SDK\EquisoftConnect\Model\MovementValidationError]|null + */ + public function getErrors() + { + return $this->container['errors']; + } + + /** + * Sets errors + * + * @param map[string,\Equisoft\SDK\EquisoftConnect\Model\MovementValidationError]|null $errors errors + * + * @return $this + */ + public function setErrors($errors) + { + $this->container['errors'] = $errors; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index 39b24e99..6a9e3156 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -328,7 +328,11 @@ public static function deserialize($data, $class, $httpHeaders = null) // If a discriminator is defined and points to a valid subclass, use it. $discriminator = $class::DISCRIMINATOR; if (!empty($discriminator) && isset($data->{$discriminator}) && is_string($data->{$discriminator})) { - $subclass = '\Equisoft\SDK\EquisoftConnect\Model\\' . $data->{$discriminator}; + if (isset($class::DISCRIMINATOR_MAP[$data->{$discriminator}])) { + $subclass = '\Equisoft\SDK\EquisoftConnect\Model\\' . $class::DISCRIMINATOR_MAP[$data->{$discriminator}]; + } else { + $subclass = '\Equisoft\SDK\EquisoftConnect\Model\\' . $data->{$discriminator}; + } if (is_subclass_of($subclass, $class)) { $class = $subclass; } diff --git a/test/Api/LegacyDocumentApiTest.php b/test/Api/LegacyDocumentApiTest.php index 3fa842e8..b64518f0 100644 --- a/test/Api/LegacyDocumentApiTest.php +++ b/test/Api/LegacyDocumentApiTest.php @@ -82,6 +82,36 @@ public function testAddDocument() { } + /** + * Test case for deleteDocument + * + * Delete a document and it's related files.. + * + */ + public function testDeleteDocument() + { + } + + /** + * Test case for deleteDocumentFile + * + * Delete one file from a document. + * + */ + public function testDeleteDocumentFile() + { + } + + /** + * Test case for downloadDocumentFile + * + * Download a file. File data is encoded in base64.. + * + */ + public function testDownloadDocumentFile() + { + } + /** * Test case for getDocument * @@ -101,4 +131,24 @@ public function testGetDocument() public function testGetDocumentList() { } + + /** + * Test case for updateDocument + * + * Update a document.. + * + */ + public function testUpdateDocument() + { + } + + /** + * Test case for uploadDocumentFile + * + * Upload a new file in a document. + * + */ + public function testUploadDocumentFile() + { + } } diff --git a/test/Api/LegacyProvisioningApiTest.php b/test/Api/LegacyProvisioningApiTest.php index c08bb241..10a21caa 100644 --- a/test/Api/LegacyProvisioningApiTest.php +++ b/test/Api/LegacyProvisioningApiTest.php @@ -73,12 +73,22 @@ public static function tearDownAfterClass() } /** - * Test case for appsProvisioningPost + * Test case for getOrganization * - * Legacy API entrypoint. + * Get all informations about an organization.. * */ - public function testAppsProvisioningPost() + public function testGetOrganization() + { + } + + /** + * Test case for getOrganizationList + * + * List all organizations. + * + */ + public function testGetOrganizationList() { } } diff --git a/test/Api/LegacyApiTest.php b/test/Api/MovementApiTest.php similarity index 68% rename from test/Api/LegacyApiTest.php rename to test/Api/MovementApiTest.php index 7a3a5f48..f5a08dce 100644 --- a/test/Api/LegacyApiTest.php +++ b/test/Api/MovementApiTest.php @@ -1,6 +1,6 @@