diff --git a/README.md b/README.md deleted file mode 100644 index 71a20e8..0000000 --- a/README.md +++ /dev/null @@ -1,279 +0,0 @@ -# SwaggerClient-php -PAYCOMET API REST for customers. - -This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: 2.16 -- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen -For more information, please visit [https://www.paycomet.com](https://www.paycomet.com) - -## Requirements - -PHP 5.5 and later - -## Installation & Usage -### Composer - -To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`: - -``` -{ - "repositories": [ - { - "type": "git", - "url": "https://github.com/ciltocruz/swagger-bankstore-api-rest.git" - } - ], - "require": { - "ciltocruz/swagger-bankstore-api-rest": "*@dev" - } -} -``` - -Then run `composer install` - -### Manual Installation - -Download the files and include `autoload.php`: - -```php - require_once('/path/to/SwaggerClient-php/vendor/autoload.php'); -``` - -## Tests - -To run the unit tests: - -``` -composer install -./vendor/bin/phpunit -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```php -setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); - -$apiInstance = new Swagger\Client\Api\BalanceApi( - // 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 -); -$body = new \Swagger\Client\Model\Body6(); // \Swagger\Client\Model\Body6 | -$paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) - -try { - $result = $apiInstance->productBalance($body, $paycomet_api_token); - print_r($result); -} catch (Exception $e) { - echo 'Exception when calling BalanceApi->productBalance: ', $e->getMessage(), PHP_EOL; -} -?> -``` - -## Documentation for API Endpoints - -All URIs are relative to *https://rest.paycomet.com* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*BalanceApi* | [**productBalance**](docs/Api/BalanceApi.md#productbalance) | **POST** /v1/balance | Get balance info -*CardsApi* | [**addUser**](docs/Api/CardsApi.md#adduser) | **POST** /v1/cards | Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. -*CardsApi* | [**editUser**](docs/Api/CardsApi.md#edituser) | **POST** /v1/cards/edit | Changes the expiry date, cvc2 or both -*CardsApi* | [**infoUser**](docs/Api/CardsApi.md#infouser) | **POST** /v1/cards/info | Get card info -*CardsApi* | [**physicalAddCard**](docs/Api/CardsApi.md#physicaladdcard) | **POST** /v1/cards/physical | Tokenize a card by physical encrypted data -*CardsApi* | [**removeUser**](docs/Api/CardsApi.md#removeuser) | **POST** /v1/cards/delete | Removes a card -*DccApi* | [**dccPurchaseConfirm**](docs/Api/DccApi.md#dccpurchaseconfirm) | **POST** /v1/payments/dcc/{order}/confirm | Confirm previous DCC payment -*DccApi* | [**dccPurchaseCreate**](docs/Api/DccApi.md#dccpurchasecreate) | **POST** /v1/payments/dcc | Create an DCC payment -*ErrorApi* | [**infoError**](docs/Api/ErrorApi.md#infoerror) | **POST** /v1/errors | Gets an error description -*ExchangeApi* | [**exchange**](docs/Api/ExchangeApi.md#exchange) | **POST** /v1/exchange | Converts a certain amount from a currency to another. -*FormApi* | [**form**](docs/Api/FormApi.md#form) | **POST** /v1/form | Create form view for user capture -*HeartbeatApi* | [**heartbeat**](docs/Api/HeartbeatApi.md#heartbeat) | **POST** /v1/heartbeat | Check the system -*IVRApi* | [**checkSession**](docs/Api/IVRApi.md#checksession) | **POST** /v1/ivr/session-state | Checks an IVR session -*IVRApi* | [**getSession**](docs/Api/IVRApi.md#getsession) | **POST** /v1/ivr/get-session | Creates an IVR session -*IVRApi* | [**sessionCancel**](docs/Api/IVRApi.md#sessioncancel) | **POST** /v1/ivr/session-cancel | Cancel an IVR session -*IpApi* | [**getCountrybyIP**](docs/Api/IpApi.md#getcountrybyip) | **POST** /v1/ip | Retrieves country info by IP -*LaunchpadApi* | [**launchAuthorization**](docs/Api/LaunchpadApi.md#launchauthorization) | **POST** /v1/launchpad/authorization | Creates a payment link and sends it to customer -*LaunchpadApi* | [**launchPreauthorization**](docs/Api/LaunchpadApi.md#launchpreauthorization) | **POST** /v1/launchpad/preauthorization | Executes a preauthorization link and sends it to customer -*LaunchpadApi* | [**launchSubscription**](docs/Api/LaunchpadApi.md#launchsubscription) | **POST** /v1/launchpad/subscription | Creates a subscription link and sends it to customer -*MarketplaceApi* | [**splitTransfer**](docs/Api/MarketplaceApi.md#splittransfer) | **POST** /v1/marketplace/split-transfer | Make a transfer to other accounts on PAYCOMET -*MarketplaceApi* | [**splitTransferReversal**](docs/Api/MarketplaceApi.md#splittransferreversal) | **POST** /v1/marketplace/split-transfer-reversal | Run a split transfer reversal based on a previous split transfer -*MarketplaceApi* | [**transfer**](docs/Api/MarketplaceApi.md#transfer) | **POST** /v1/marketplace/transfer | Run a transfer -*MarketplaceApi* | [**transferReversal**](docs/Api/MarketplaceApi.md#transferreversal) | **POST** /v1/marketplace/transfer-reversal | Make a transfer reversal based on a previous transfer -*MethodsApi* | [**getUserPaymentMethods**](docs/Api/MethodsApi.md#getuserpaymentmethods) | **POST** /v1/methods | Retrieves product methods -*MiraklApi* | [**miraklInvoicesSearch**](docs/Api/MiraklApi.md#miraklinvoicessearch) | **POST** /v1/invoices | Search Mirakl invoices -*PaymentsApi* | [**executePurchase**](docs/Api/PaymentsApi.md#executepurchase) | **POST** /v1/payments | Executes a payment -*PaymentsApi* | [**executePurchaseRtoken**](docs/Api/PaymentsApi.md#executepurchasertoken) | **POST** /v1/payments/rtoken | Executes a payment by refence -*PaymentsApi* | [**operationInfo**](docs/Api/PaymentsApi.md#operationinfo) | **POST** /v1/payments/{order}/info | Get info of a order -*PaymentsApi* | [**operationSearch**](docs/Api/PaymentsApi.md#operationsearch) | **POST** /v1/payments/search | Search orders -*PreauthorizationsApi* | [**cancelPreauthorization**](docs/Api/PreauthorizationsApi.md#cancelpreauthorization) | **POST** /v1/payments/{order}/preauth/cancel | Cancel previous preauthorization -*PreauthorizationsApi* | [**confirmPreauthorization**](docs/Api/PreauthorizationsApi.md#confirmpreauthorization) | **POST** /v1/payments/{order}/preauth/confirm | Confirm previous preauthorization -*PreauthorizationsApi* | [**createPreauthoritation**](docs/Api/PreauthorizationsApi.md#createpreauthoritation) | **POST** /v1/payments/preauth | Create preauthorization -*RefundApi* | [**executeRefund**](docs/Api/RefundApi.md#executerefund) | **POST** /v1/payments/{order}/refund | Perform a refund -*SepaApi* | [**addDocument**](docs/Api/SepaApi.md#adddocument) | **POST** /v1/sepa/add-document | Adds a SEPA document -*SepaApi* | [**checkCustomer**](docs/Api/SepaApi.md#checkcustomer) | **POST** /v1/sepa/check-customer | Check a customers SEPA documentation -*SepaApi* | [**checkDocument**](docs/Api/SepaApi.md#checkdocument) | **POST** /v1/sepa/check-document | Check a SEPA document -*SepaApi* | [**sepaOperations**](docs/Api/SepaApi.md#sepaoperations) | **POST** /v1/sepa/operations | Send SEPA operations -*SusbcriptionsApi* | [**createSubscription**](docs/Api/SusbcriptionsApi.md#createsubscription) | **POST** /v1/subscription | Create susbcription payment -*SusbcriptionsApi* | [**editSubscription**](docs/Api/SusbcriptionsApi.md#editsubscription) | **POST** /v1/subscription/edit | Edit susbcription payment -*SusbcriptionsApi* | [**removeSubscription**](docs/Api/SusbcriptionsApi.md#removesubscription) | **POST** /v1/subscription/remove | Remove susbcription payment - -## Documentation For Models - - - [Body](docs/Model/Body.md) - - [Body1](docs/Model/Body1.md) - - [Body10](docs/Model/Body10.md) - - [Body11](docs/Model/Body11.md) - - [Body12](docs/Model/Body12.md) - - [Body13](docs/Model/Body13.md) - - [Body14](docs/Model/Body14.md) - - [Body15](docs/Model/Body15.md) - - [Body16](docs/Model/Body16.md) - - [Body17](docs/Model/Body17.md) - - [Body18](docs/Model/Body18.md) - - [Body19](docs/Model/Body19.md) - - [Body2](docs/Model/Body2.md) - - [Body20](docs/Model/Body20.md) - - [Body21](docs/Model/Body21.md) - - [Body22](docs/Model/Body22.md) - - [Body23](docs/Model/Body23.md) - - [Body24](docs/Model/Body24.md) - - [Body25](docs/Model/Body25.md) - - [Body26](docs/Model/Body26.md) - - [Body27](docs/Model/Body27.md) - - [Body28](docs/Model/Body28.md) - - [Body29](docs/Model/Body29.md) - - [Body3](docs/Model/Body3.md) - - [Body30](docs/Model/Body30.md) - - [Body31](docs/Model/Body31.md) - - [Body32](docs/Model/Body32.md) - - [Body33](docs/Model/Body33.md) - - [Body34](docs/Model/Body34.md) - - [Body35](docs/Model/Body35.md) - - [Body36](docs/Model/Body36.md) - - [Body37](docs/Model/Body37.md) - - [Body38](docs/Model/Body38.md) - - [Body39](docs/Model/Body39.md) - - [Body4](docs/Model/Body4.md) - - [Body5](docs/Model/Body5.md) - - [Body6](docs/Model/Body6.md) - - [Body7](docs/Model/Body7.md) - - [Body8](docs/Model/Body8.md) - - [Body9](docs/Model/Body9.md) - - [InlineResponse200](docs/Model/InlineResponse200.md) - - [InlineResponse2001](docs/Model/InlineResponse2001.md) - - [InlineResponse20010](docs/Model/InlineResponse20010.md) - - [InlineResponse20011](docs/Model/InlineResponse20011.md) - - [InlineResponse20012](docs/Model/InlineResponse20012.md) - - [InlineResponse20013](docs/Model/InlineResponse20013.md) - - [InlineResponse20014](docs/Model/InlineResponse20014.md) - - [InlineResponse20014Payment](docs/Model/InlineResponse20014Payment.md) - - [InlineResponse20014PaymentHistory](docs/Model/InlineResponse20014PaymentHistory.md) - - [InlineResponse20015](docs/Model/InlineResponse20015.md) - - [InlineResponse20015Payment](docs/Model/InlineResponse20015Payment.md) - - [InlineResponse20016](docs/Model/InlineResponse20016.md) - - [InlineResponse20017](docs/Model/InlineResponse20017.md) - - [InlineResponse20018](docs/Model/InlineResponse20018.md) - - [InlineResponse20019](docs/Model/InlineResponse20019.md) - - [InlineResponse20019Subscription](docs/Model/InlineResponse20019Subscription.md) - - [InlineResponse2002](docs/Model/InlineResponse2002.md) - - [InlineResponse20020](docs/Model/InlineResponse20020.md) - - [InlineResponse20021](docs/Model/InlineResponse20021.md) - - [InlineResponse20022](docs/Model/InlineResponse20022.md) - - [InlineResponse20022Dcc](docs/Model/InlineResponse20022Dcc.md) - - [InlineResponse20023](docs/Model/InlineResponse20023.md) - - [InlineResponse20024](docs/Model/InlineResponse20024.md) - - [InlineResponse20024Submerchant](docs/Model/InlineResponse20024Submerchant.md) - - [InlineResponse20025](docs/Model/InlineResponse20025.md) - - [InlineResponse20025Submerchant](docs/Model/InlineResponse20025Submerchant.md) - - [InlineResponse20026](docs/Model/InlineResponse20026.md) - - [InlineResponse20027](docs/Model/InlineResponse20027.md) - - [InlineResponse20028](docs/Model/InlineResponse20028.md) - - [InlineResponse20028Operations](docs/Model/InlineResponse20028Operations.md) - - [InlineResponse20029](docs/Model/InlineResponse20029.md) - - [InlineResponse2003](docs/Model/InlineResponse2003.md) - - [InlineResponse20030](docs/Model/InlineResponse20030.md) - - [InlineResponse20031](docs/Model/InlineResponse20031.md) - - [InlineResponse2004](docs/Model/InlineResponse2004.md) - - [InlineResponse2005](docs/Model/InlineResponse2005.md) - - [InlineResponse2006](docs/Model/InlineResponse2006.md) - - [InlineResponse2007](docs/Model/InlineResponse2007.md) - - [InlineResponse2008](docs/Model/InlineResponse2008.md) - - [InlineResponse2008Invoices](docs/Model/InlineResponse2008Invoices.md) - - [InlineResponse2009](docs/Model/InlineResponse2009.md) - - [InlineResponse403](docs/Model/InlineResponse403.md) - - [InlineResponse422](docs/Model/InlineResponse422.md) - - [InlineResponse4221](docs/Model/InlineResponse4221.md) - - [InlineResponse4222](docs/Model/InlineResponse4222.md) - - [InlineResponse4222Error](docs/Model/InlineResponse4222Error.md) - - [InlineResponse4223](docs/Model/InlineResponse4223.md) - - [InlineResponse4223Error](docs/Model/InlineResponse4223Error.md) - - [InlineResponse4224](docs/Model/InlineResponse4224.md) - - [InlineResponse4224Error](docs/Model/InlineResponse4224Error.md) - - [InlineResponse4225](docs/Model/InlineResponse4225.md) - - [InlineResponse4225Error](docs/Model/InlineResponse4225Error.md) - - [InlineResponse4226](docs/Model/InlineResponse4226.md) - - [InlineResponse4226Error](docs/Model/InlineResponse4226Error.md) - - [InlineResponse422Error](docs/Model/InlineResponse422Error.md) - - [V1formPayment](docs/Model/V1formPayment.md) - - [V1formPaymentEscrowTargets](docs/Model/V1formPaymentEscrowTargets.md) - - [V1formPaymentMerchantData](docs/Model/V1formPaymentMerchantData.md) - - [V1formPaymentMerchantDataAcctInfo](docs/Model/V1formPaymentMerchantDataAcctInfo.md) - - [V1formPaymentMerchantDataBilling](docs/Model/V1formPaymentMerchantDataBilling.md) - - [V1formPaymentMerchantDataCustomer](docs/Model/V1formPaymentMerchantDataCustomer.md) - - [V1formPaymentMerchantDataCustomerHomePhone](docs/Model/V1formPaymentMerchantDataCustomerHomePhone.md) - - [V1formPaymentMerchantDataCustomerMobilePhone](docs/Model/V1formPaymentMerchantDataCustomerMobilePhone.md) - - [V1formPaymentMerchantDataCustomerWorkPhone](docs/Model/V1formPaymentMerchantDataCustomerWorkPhone.md) - - [V1formPaymentMerchantDataMerchantRiskIndicator](docs/Model/V1formPaymentMerchantDataMerchantRiskIndicator.md) - - [V1formPaymentMerchantDataShipping](docs/Model/V1formPaymentMerchantDataShipping.md) - - [V1formPaymentMerchantDataShoppingCart](docs/Model/V1formPaymentMerchantDataShoppingCart.md) - - [V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo](docs/Model/V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.md) - - [V1formSubscription](docs/Model/V1formSubscription.md) - - [V1invoicesPayment](docs/Model/V1invoicesPayment.md) - - [V1launchpadauthorizationMerchantData](docs/Model/V1launchpadauthorizationMerchantData.md) - - [V1launchpadauthorizationMerchantDataCustomer](docs/Model/V1launchpadauthorizationMerchantDataCustomer.md) - - [V1launchpadsubscriptionMerchantData](docs/Model/V1launchpadsubscriptionMerchantData.md) - - [V1launchpadsubscriptionMerchantDataShipping](docs/Model/V1launchpadsubscriptionMerchantDataShipping.md) - - [V1marketplacesplittransferPayment](docs/Model/V1marketplacesplittransferPayment.md) - - [V1marketplacesplittransferSubmerchant](docs/Model/V1marketplacesplittransferSubmerchant.md) - - [V1marketplacesplittransferreversalPayment](docs/Model/V1marketplacesplittransferreversalPayment.md) - - [V1marketplacesplittransferreversalSubmerchant](docs/Model/V1marketplacesplittransferreversalSubmerchant.md) - - [V1marketplacetransferPayment](docs/Model/V1marketplacetransferPayment.md) - - [V1marketplacetransferreversalSubmerchant](docs/Model/V1marketplacetransferreversalSubmerchant.md) - - [V1paymentsPayment](docs/Model/V1paymentsPayment.md) - - [V1paymentsdccPayment](docs/Model/V1paymentsdccPayment.md) - - [V1paymentsdccorderconfirmDcc](docs/Model/V1paymentsdccorderconfirmDcc.md) - - [V1paymentsorderinfoPayment](docs/Model/V1paymentsorderinfoPayment.md) - - [V1paymentsorderpreauthcancelPayment](docs/Model/V1paymentsorderpreauthcancelPayment.md) - - [V1paymentsorderpreauthconfirmPayment](docs/Model/V1paymentsorderpreauthconfirmPayment.md) - - [V1paymentsorderrefundPayment](docs/Model/V1paymentsorderrefundPayment.md) - - [V1paymentspreauthPayment](docs/Model/V1paymentspreauthPayment.md) - - [V1paymentsrtokenPayment](docs/Model/V1paymentsrtokenPayment.md) - - [V1sepaoperationsOperations](docs/Model/V1sepaoperationsOperations.md) - - [V1subscriptionPayment](docs/Model/V1subscriptionPayment.md) - - [V1subscriptionSubscription](docs/Model/V1subscriptionSubscription.md) - - [V1subscriptioneditPayment](docs/Model/V1subscriptioneditPayment.md) - -## Documentation For Authorization - - -## paycometApiKey - -- **Type**: API key -- **API key parameter name**: PAYCOMET-API-TOKEN -- **Location**: HTTP header - - -## Author - -tecnico@paycomet.com - diff --git a/docs/Api/BalanceApi.md b/docs/Api/BalanceApi.md index 26f74ef..c9332d4 100644 --- a/docs/Api/BalanceApi.md +++ b/docs/Api/BalanceApi.md @@ -17,18 +17,13 @@ Gets the balance of a product. Restricted. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\BalanceApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body6(); // \Swagger\Client\Model\Body6 | +$body = new \Swagger\Client\Model\V1BalanceBody(); // \Swagger\Client\Model\V1BalanceBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body6**](../Model/Body6.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1BalanceBody**](../Model/V1BalanceBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/CardsApi.md b/docs/Api/CardsApi.md index 1ef10b6..7c68efd 100644 --- a/docs/Api/CardsApi.md +++ b/docs/Api/CardsApi.md @@ -15,24 +15,19 @@ Method | HTTP request | Description Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. -add_user +This method supposes the registration of the card in PAYCOMET, it is not valid for subsequent charges with the exception of MIT. To register the card against the processor for subsequent recurring charges, it is necessary to charge for a secure environment, regardless of the amount. ### Example ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\CardsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body1(); // \Swagger\Client\Model\Body1 | +$body = new \Swagger\Client\Model\V1CardsBody(); // \Swagger\Client\Model\V1CardsBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required) try { @@ -48,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body1**](../Model/Body1.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1CardsBody**](../Model/V1CardsBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional] ### Return type @@ -57,7 +52,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -77,18 +72,13 @@ edit_user ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\CardsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body4(); // \Swagger\Client\Model\Body4 | +$body = new \Swagger\Client\Model\CardsEditBody(); // \Swagger\Client\Model\CardsEditBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required) try { @@ -104,7 +94,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body4**](../Model/Body4.md)| | [optional] + **body** | [**\Swagger\Client\Model\CardsEditBody**](../Model/CardsEditBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional] ### Return type @@ -113,7 +103,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -133,18 +123,13 @@ Info about an user card. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\CardsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body2(); // \Swagger\Client\Model\Body2 | +$body = new \Swagger\Client\Model\CardsInfoBody(); // \Swagger\Client\Model\CardsInfoBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -160,7 +145,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body2**](../Model/Body2.md)| | [optional] + **body** | [**\Swagger\Client\Model\CardsInfoBody**](../Model/CardsInfoBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -169,7 +154,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -189,18 +174,13 @@ cards_physical ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\CardsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body5(); // \Swagger\Client\Model\Body5 | +$body = new \Swagger\Client\Model\CardsPhysicalBody(); // \Swagger\Client\Model\CardsPhysicalBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required) try { @@ -216,7 +196,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body5**](../Model/Body5.md)| | [optional] + **body** | [**\Swagger\Client\Model\CardsPhysicalBody**](../Model/CardsPhysicalBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional] ### Return type @@ -225,7 +205,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -245,18 +225,13 @@ Deletes the user. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\CardsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body3(); // \Swagger\Client\Model\Body3 | +$body = new \Swagger\Client\Model\CardsDeleteBody(); // \Swagger\Client\Model\CardsDeleteBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Token actions privilege required) try { @@ -272,7 +247,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body3**](../Model/Body3.md)| | [optional] + **body** | [**\Swagger\Client\Model\CardsDeleteBody**](../Model/CardsDeleteBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Token actions privilege required) | [optional] ### Return type @@ -281,7 +256,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/DccApi.md b/docs/Api/DccApi.md index d59d6b3..a5cf811 100644 --- a/docs/Api/DccApi.md +++ b/docs/Api/DccApi.md @@ -8,7 +8,7 @@ Method | HTTP request | Description [**dccPurchaseCreate**](DccApi.md#dccpurchasecreate) | **POST** /v1/payments/dcc | Create an DCC payment # **dccPurchaseConfirm** -> \Swagger\Client\Model\InlineResponse20023 dccPurchaseConfirm($paycomet_api_token, $order, $body) +> \Swagger\Client\Model\InlineResponse20024 dccPurchaseConfirm($paycomet_api_token, $order, $body) Confirm previous DCC payment @@ -18,20 +18,15 @@ confirm_purchase_dcc ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\DccApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) $order = "order_example"; // string | -$body = new \Swagger\Client\Model\Body25(); // \Swagger\Client\Model\Body25 | +$body = new \Swagger\Client\Model\OrderConfirmBody(); // \Swagger\Client\Model\OrderConfirmBody | try { $result = $apiInstance->dccPurchaseConfirm($paycomet_api_token, $order, $body); @@ -48,15 +43,15 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | **order** | **string**| | - **body** | [**\Swagger\Client\Model\Body25**](../Model/Body25.md)| | [optional] + **body** | [**\Swagger\Client\Model\OrderConfirmBody**](../Model/OrderConfirmBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20023**](../Model/InlineResponse20023.md) +[**\Swagger\Client\Model\InlineResponse20024**](../Model/InlineResponse20024.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -66,7 +61,7 @@ Name | Type | Description | Notes [[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) # **dccPurchaseCreate** -> \Swagger\Client\Model\InlineResponse20022 dccPurchaseCreate($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20023 dccPurchaseCreate($paycomet_api_token, $body) Create an DCC payment @@ -76,19 +71,14 @@ execute_purchase_dcc ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\DccApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body24(); // \Swagger\Client\Model\Body24 | +$body = new \Swagger\Client\Model\PaymentsDccBody(); // \Swagger\Client\Model\PaymentsDccBody | try { $result = $apiInstance->dccPurchaseCreate($paycomet_api_token, $body); @@ -104,15 +94,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body24**](../Model/Body24.md)| | [optional] + **body** | [**\Swagger\Client\Model\PaymentsDccBody**](../Model/PaymentsDccBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) +[**\Swagger\Client\Model\InlineResponse20023**](../Model/InlineResponse20023.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/ErrorApi.md b/docs/Api/ErrorApi.md index 18a081d..a8eff35 100644 --- a/docs/Api/ErrorApi.md +++ b/docs/Api/ErrorApi.md @@ -17,18 +17,13 @@ info_error ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\ErrorApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body(); // \Swagger\Client\Model\Body | +$body = new \Swagger\Client\Model\V1ErrorsBody(); // \Swagger\Client\Model\V1ErrorsBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body**](../Model/Body.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1ErrorsBody**](../Model/V1ErrorsBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/ExchangeApi.md b/docs/Api/ExchangeApi.md index 66f5cdc..b933051 100644 --- a/docs/Api/ExchangeApi.md +++ b/docs/Api/ExchangeApi.md @@ -17,18 +17,13 @@ Gets the exchange of an amount. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\ExchangeApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body7(); // \Swagger\Client\Model\Body7 | +$body = new \Swagger\Client\Model\V1ExchangeBody(); // \Swagger\Client\Model\V1ExchangeBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body7**](../Model/Body7.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1ExchangeBody**](../Model/V1ExchangeBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/FormApi.md b/docs/Api/FormApi.md index 465a25e..217d39a 100644 --- a/docs/Api/FormApi.md +++ b/docs/Api/FormApi.md @@ -17,18 +17,13 @@ Create form for user capture. Set operationType and attach the default request, ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\FormApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body12(); // \Swagger\Client\Model\Body12 | +$body = new \Swagger\Client\Model\V1FormBody(); // \Swagger\Client\Model\V1FormBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body12**](../Model/Body12.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1FormBody**](../Model/V1FormBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/HeartbeatApi.md b/docs/Api/HeartbeatApi.md index 8cc3957..6a563ba 100644 --- a/docs/Api/HeartbeatApi.md +++ b/docs/Api/HeartbeatApi.md @@ -17,18 +17,13 @@ Get heartbeat of API ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\HeartbeatApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body8(); // \Swagger\Client\Model\Body8 | +$body = new \Swagger\Client\Model\V1HeartbeatBody(); // \Swagger\Client\Model\V1HeartbeatBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body8**](../Model/Body8.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1HeartbeatBody**](../Model/V1HeartbeatBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/IVRApi.md b/docs/Api/IVRApi.md index 0e323d1..dd0a979 100644 --- a/docs/Api/IVRApi.md +++ b/docs/Api/IVRApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description [**sessionCancel**](IVRApi.md#sessioncancel) | **POST** /v1/ivr/session-cancel | Cancel an IVR session # **checkSession** -> \Swagger\Client\Model\InlineResponse20030 checkSession($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20031 checkSession($paycomet_api_token, $body) Checks an IVR session @@ -19,19 +19,14 @@ check_session ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\IVRApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body35(); // \Swagger\Client\Model\Body35 | +$body = new \Swagger\Client\Model\IvrSessionstateBody(); // \Swagger\Client\Model\IvrSessionstateBody | try { $result = $apiInstance->checkSession($paycomet_api_token, $body); @@ -47,15 +42,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body35**](../Model/Body35.md)| | [optional] + **body** | [**\Swagger\Client\Model\IvrSessionstateBody**](../Model/IvrSessionstateBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20030**](../Model/InlineResponse20030.md) +[**\Swagger\Client\Model\InlineResponse20031**](../Model/InlineResponse20031.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -65,7 +60,7 @@ Name | Type | Description | Notes [[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) # **getSession** -> \Swagger\Client\Model\InlineResponse20029 getSession($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20030 getSession($paycomet_api_token, $body) Creates an IVR session @@ -75,19 +70,14 @@ get_session ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\IVRApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body34(); // \Swagger\Client\Model\Body34 | +$body = new \Swagger\Client\Model\IvrGetsessionBody(); // \Swagger\Client\Model\IvrGetsessionBody | try { $result = $apiInstance->getSession($paycomet_api_token, $body); @@ -103,15 +93,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body34**](../Model/Body34.md)| | [optional] + **body** | [**\Swagger\Client\Model\IvrGetsessionBody**](../Model/IvrGetsessionBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20029**](../Model/InlineResponse20029.md) +[**\Swagger\Client\Model\InlineResponse20030**](../Model/InlineResponse20030.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -121,7 +111,7 @@ Name | Type | Description | Notes [[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) # **sessionCancel** -> \Swagger\Client\Model\InlineResponse20031 sessionCancel($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20032 sessionCancel($paycomet_api_token, $body) Cancel an IVR session @@ -131,19 +121,14 @@ session_cancell ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\IVRApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body36(); // \Swagger\Client\Model\Body36 | +$body = new \Swagger\Client\Model\IvrSessioncancelBody(); // \Swagger\Client\Model\IvrSessioncancelBody | try { $result = $apiInstance->sessionCancel($paycomet_api_token, $body); @@ -159,15 +144,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body36**](../Model/Body36.md)| | [optional] + **body** | [**\Swagger\Client\Model\IvrSessioncancelBody**](../Model/IvrSessioncancelBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20031**](../Model/InlineResponse20031.md) +[**\Swagger\Client\Model\InlineResponse20032**](../Model/InlineResponse20032.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/IpApi.md b/docs/Api/IpApi.md index 26fd208..4363198 100644 --- a/docs/Api/IpApi.md +++ b/docs/Api/IpApi.md @@ -17,18 +17,13 @@ Country by IP ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\IpApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body10(); // \Swagger\Client\Model\Body10 | +$body = new \Swagger\Client\Model\V1IpBody(); // \Swagger\Client\Model\V1IpBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body10**](../Model/Body10.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1IpBody**](../Model/V1IpBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/LaunchpadApi.md b/docs/Api/LaunchpadApi.md index 077ad41..27da65b 100644 --- a/docs/Api/LaunchpadApi.md +++ b/docs/Api/LaunchpadApi.md @@ -9,7 +9,7 @@ Method | HTTP request | Description [**launchSubscription**](LaunchpadApi.md#launchsubscription) | **POST** /v1/launchpad/subscription | Creates a subscription link and sends it to customer # **launchAuthorization** -> \Swagger\Client\Model\InlineResponse20021 launchAuthorization($body, $paycomet_api_token) +> \Swagger\Client\Model\InlineResponse20022 launchAuthorization($body, $paycomet_api_token) Creates a payment link and sends it to customer @@ -19,18 +19,13 @@ Generate a authorization link. It will send a challenge URL to the client. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\LaunchpadApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body37(); // \Swagger\Client\Model\Body37 | +$body = new \Swagger\Client\Model\LaunchpadAuthorizationBody(); // \Swagger\Client\Model\LaunchpadAuthorizationBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) try { @@ -46,16 +41,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body37**](../Model/Body37.md)| | [optional] + **body** | [**\Swagger\Client\Model\LaunchpadAuthorizationBody**](../Model/LaunchpadAuthorizationBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) +[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -65,7 +60,7 @@ Name | Type | Description | Notes [[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) # **launchPreauthorization** -> \Swagger\Client\Model\InlineResponse20021 launchPreauthorization($body, $paycomet_api_token) +> \Swagger\Client\Model\InlineResponse20022 launchPreauthorization($body, $paycomet_api_token) Executes a preauthorization link and sends it to customer @@ -75,18 +70,13 @@ Generate a preauthorization link. It will send a challenge URL to the client. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\LaunchpadApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body38(); // \Swagger\Client\Model\Body38 | +$body = new \Swagger\Client\Model\LaunchpadPreauthorizationBody(); // \Swagger\Client\Model\LaunchpadPreauthorizationBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) try { @@ -102,16 +92,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body38**](../Model/Body38.md)| | [optional] + **body** | [**\Swagger\Client\Model\LaunchpadPreauthorizationBody**](../Model/LaunchpadPreauthorizationBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) +[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -121,7 +111,7 @@ Name | Type | Description | Notes [[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) # **launchSubscription** -> \Swagger\Client\Model\InlineResponse20021 launchSubscription($body, $paycomet_api_token) +> \Swagger\Client\Model\InlineResponse20022 launchSubscription($body, $paycomet_api_token) Creates a subscription link and sends it to customer @@ -131,18 +121,13 @@ Generate a subscription link. It will send a challenge URL to the client. ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\LaunchpadApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body39(); // \Swagger\Client\Model\Body39 | +$body = new \Swagger\Client\Model\LaunchpadSubscriptionBody(); // \Swagger\Client\Model\LaunchpadSubscriptionBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) try { @@ -158,16 +143,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body39**](../Model/Body39.md)| | [optional] + **body** | [**\Swagger\Client\Model\LaunchpadSubscriptionBody**](../Model/LaunchpadSubscriptionBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) +[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/MarketplaceApi.md b/docs/Api/MarketplaceApi.md index dce91bd..a7f61d9 100644 --- a/docs/Api/MarketplaceApi.md +++ b/docs/Api/MarketplaceApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description [**transferReversal**](MarketplaceApi.md#transferreversal) | **POST** /v1/marketplace/transfer-reversal | Make a transfer reversal based on a previous transfer # **splitTransfer** -> \Swagger\Client\Model\InlineResponse20024 splitTransfer($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20025 splitTransfer($paycomet_api_token, $body) Make a transfer to other accounts on PAYCOMET @@ -20,19 +20,14 @@ Make a deposit in a destination account ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MarketplaceApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body26(); // \Swagger\Client\Model\Body26 | +$body = new \Swagger\Client\Model\MarketplaceSplittransferBody(); // \Swagger\Client\Model\MarketplaceSplittransferBody | try { $result = $apiInstance->splitTransfer($paycomet_api_token, $body); @@ -48,15 +43,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body26**](../Model/Body26.md)| | [optional] + **body** | [**\Swagger\Client\Model\MarketplaceSplittransferBody**](../Model/MarketplaceSplittransferBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20024**](../Model/InlineResponse20024.md) +[**\Swagger\Client\Model\InlineResponse20025**](../Model/InlineResponse20025.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -66,7 +61,7 @@ Name | Type | Description | Notes [[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) # **splitTransferReversal** -> \Swagger\Client\Model\InlineResponse20024 splitTransferReversal($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20025 splitTransferReversal($paycomet_api_token, $body) Run a split transfer reversal based on a previous split transfer @@ -76,19 +71,14 @@ Make a split transfer reversal request ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MarketplaceApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body27(); // \Swagger\Client\Model\Body27 | +$body = new \Swagger\Client\Model\MarketplaceSplittransferreversalBody(); // \Swagger\Client\Model\MarketplaceSplittransferreversalBody | try { $result = $apiInstance->splitTransferReversal($paycomet_api_token, $body); @@ -104,15 +94,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body27**](../Model/Body27.md)| | [optional] + **body** | [**\Swagger\Client\Model\MarketplaceSplittransferreversalBody**](../Model/MarketplaceSplittransferreversalBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20024**](../Model/InlineResponse20024.md) +[**\Swagger\Client\Model\InlineResponse20025**](../Model/InlineResponse20025.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -122,7 +112,7 @@ Name | Type | Description | Notes [[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) # **transfer** -> \Swagger\Client\Model\InlineResponse20025 transfer($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20026 transfer($paycomet_api_token, $body) Run a transfer @@ -132,19 +122,14 @@ Run a transfer in a destination account ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MarketplaceApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body28(); // \Swagger\Client\Model\Body28 | +$body = new \Swagger\Client\Model\MarketplaceTransferBody(); // \Swagger\Client\Model\MarketplaceTransferBody | try { $result = $apiInstance->transfer($paycomet_api_token, $body); @@ -160,15 +145,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body28**](../Model/Body28.md)| | [optional] + **body** | [**\Swagger\Client\Model\MarketplaceTransferBody**](../Model/MarketplaceTransferBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20025**](../Model/InlineResponse20025.md) +[**\Swagger\Client\Model\InlineResponse20026**](../Model/InlineResponse20026.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -178,7 +163,7 @@ Name | Type | Description | Notes [[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) # **transferReversal** -> \Swagger\Client\Model\InlineResponse20025 transferReversal($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20026 transferReversal($paycomet_api_token, $body) Make a transfer reversal based on a previous transfer @@ -188,19 +173,14 @@ Make a transfer reversal based on a previous transfer ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MarketplaceApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body29(); // \Swagger\Client\Model\Body29 | +$body = new \Swagger\Client\Model\MarketplaceTransferreversalBody(); // \Swagger\Client\Model\MarketplaceTransferreversalBody | try { $result = $apiInstance->transferReversal($paycomet_api_token, $body); @@ -216,15 +196,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body29**](../Model/Body29.md)| | [optional] + **body** | [**\Swagger\Client\Model\MarketplaceTransferreversalBody**](../Model/MarketplaceTransferreversalBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20025**](../Model/InlineResponse20025.md) +[**\Swagger\Client\Model\InlineResponse20026**](../Model/InlineResponse20026.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/MethodsApi.md b/docs/Api/MethodsApi.md index 29a95ff..65206c7 100644 --- a/docs/Api/MethodsApi.md +++ b/docs/Api/MethodsApi.md @@ -17,18 +17,13 @@ Payment methods of the client ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MethodsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body11(); // \Swagger\Client\Model\Body11 | +$body = new \Swagger\Client\Model\V1MethodsBody(); // \Swagger\Client\Model\V1MethodsBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) try { @@ -44,7 +39,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body11**](../Model/Body11.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1MethodsBody**](../Model/V1MethodsBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/MiraklApi.md b/docs/Api/MiraklApi.md index ad112b2..17c46f0 100644 --- a/docs/Api/MiraklApi.md +++ b/docs/Api/MiraklApi.md @@ -17,19 +17,14 @@ nirakl_invoice_search ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\MiraklApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) -$body = new \Swagger\Client\Model\Body9(); // \Swagger\Client\Model\Body9 | +$body = new \Swagger\Client\Model\V1InvoicesBody(); // \Swagger\Client\Model\V1InvoicesBody | try { $result = $apiInstance->miraklInvoicesSearch($paycomet_api_token, $body); @@ -45,7 +40,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | - **body** | [**\Swagger\Client\Model\Body9**](../Model/Body9.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1InvoicesBody**](../Model/V1InvoicesBody.md)| | [optional] ### Return type @@ -53,7 +48,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/PaymentsApi.md b/docs/Api/PaymentsApi.md index 67d7268..e7ce657 100644 --- a/docs/Api/PaymentsApi.md +++ b/docs/Api/PaymentsApi.md @@ -20,18 +20,13 @@ Generate a purchase. It will confirms a charge or send a challenge URL to the co ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PaymentsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body13(); // \Swagger\Client\Model\Body13 | +$body = new \Swagger\Client\Model\V1PaymentsBody(); // \Swagger\Client\Model\V1PaymentsBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) try { @@ -47,7 +42,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body13**](../Model/Body13.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1PaymentsBody**](../Model/V1PaymentsBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] ### Return type @@ -56,7 +51,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -76,18 +71,13 @@ Generate a purchase with reference. It will confirms a charge or send a challeng ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PaymentsApi( // 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 + new GuzzleHttp\Client() ); -$body = new \Swagger\Client\Model\Body20(); // \Swagger\Client\Model\Body20 | +$body = new \Swagger\Client\Model\PaymentsRtokenBody(); // \Swagger\Client\Model\PaymentsRtokenBody | $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) try { @@ -103,7 +93,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**\Swagger\Client\Model\Body20**](../Model/Body20.md)| | [optional] + **body** | [**\Swagger\Client\Model\PaymentsRtokenBody**](../Model/PaymentsRtokenBody.md)| | [optional] **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] ### Return type @@ -112,7 +102,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -132,20 +122,15 @@ operation_info ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PaymentsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) $order = "order_example"; // string | -$body = new \Swagger\Client\Model\Body15(); // \Swagger\Client\Model\Body15 | +$body = new \Swagger\Client\Model\OrderInfoBody(); // \Swagger\Client\Model\OrderInfoBody | try { $result = $apiInstance->operationInfo($paycomet_api_token, $order, $body); @@ -162,7 +147,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | **order** | **string**| | - **body** | [**\Swagger\Client\Model\Body15**](../Model/Body15.md)| | [optional] + **body** | [**\Swagger\Client\Model\OrderInfoBody**](../Model/OrderInfoBody.md)| | [optional] ### Return type @@ -170,7 +155,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -190,19 +175,14 @@ operation_search ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PaymentsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Query privilege required) -$body = new \Swagger\Client\Model\Body16(); // \Swagger\Client\Model\Body16 | +$body = new \Swagger\Client\Model\PaymentsSearchBody(); // \Swagger\Client\Model\PaymentsSearchBody | try { $result = $apiInstance->operationSearch($paycomet_api_token, $body); @@ -218,7 +198,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Query privilege required) | - **body** | [**\Swagger\Client\Model\Body16**](../Model/Body16.md)| | [optional] + **body** | [**\Swagger\Client\Model\PaymentsSearchBody**](../Model/PaymentsSearchBody.md)| | [optional] ### Return type @@ -226,7 +206,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/PreauthorizationsApi.md b/docs/Api/PreauthorizationsApi.md index a4dea7a..c262c80 100644 --- a/docs/Api/PreauthorizationsApi.md +++ b/docs/Api/PreauthorizationsApi.md @@ -7,6 +7,7 @@ Method | HTTP request | Description [**cancelPreauthorization**](PreauthorizationsApi.md#cancelpreauthorization) | **POST** /v1/payments/{order}/preauth/cancel | Cancel previous preauthorization [**confirmPreauthorization**](PreauthorizationsApi.md#confirmpreauthorization) | **POST** /v1/payments/{order}/preauth/confirm | Confirm previous preauthorization [**createPreauthoritation**](PreauthorizationsApi.md#createpreauthoritation) | **POST** /v1/payments/preauth | Create preauthorization +[**createPreauthorizationRtoken**](PreauthorizationsApi.md#createpreauthorizationrtoken) | **POST** /v1/payments/preauthrtoken | Creates a preauthorization by reference # **cancelPreauthorization** > \Swagger\Client\Model\InlineResponse20016 cancelPreauthorization($paycomet_api_token, $order, $body) @@ -19,20 +20,15 @@ cancel_preauthorization ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PreauthorizationsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required) $order = "order_example"; // string | -$body = new \Swagger\Client\Model\Body18(); // \Swagger\Client\Model\Body18 | +$body = new \Swagger\Client\Model\PreauthCancelBody(); // \Swagger\Client\Model\PreauthCancelBody | try { $result = $apiInstance->cancelPreauthorization($paycomet_api_token, $order, $body); @@ -49,7 +45,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Preauthorization privilege required) | **order** | **string**| | - **body** | [**\Swagger\Client\Model\Body18**](../Model/Body18.md)| | [optional] + **body** | [**\Swagger\Client\Model\PreauthCancelBody**](../Model/PreauthCancelBody.md)| | [optional] ### Return type @@ -57,7 +53,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -77,20 +73,15 @@ confirm_preauthorization ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PreauthorizationsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required) $order = "order_example"; // string | -$body = new \Swagger\Client\Model\Body19(); // \Swagger\Client\Model\Body19 | +$body = new \Swagger\Client\Model\PreauthConfirmBody(); // \Swagger\Client\Model\PreauthConfirmBody | try { $result = $apiInstance->confirmPreauthorization($paycomet_api_token, $order, $body); @@ -107,7 +98,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Preauthorization privilege required) | **order** | **string**| | - **body** | [**\Swagger\Client\Model\Body19**](../Model/Body19.md)| | [optional] + **body** | [**\Swagger\Client\Model\PreauthConfirmBody**](../Model/PreauthConfirmBody.md)| | [optional] ### Return type @@ -115,7 +106,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -135,19 +126,14 @@ create_preauthorization ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\PreauthorizationsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Preauthorization privilege required) -$body = new \Swagger\Client\Model\Body17(); // \Swagger\Client\Model\Body17 | +$body = new \Swagger\Client\Model\PaymentsPreauthBody(); // \Swagger\Client\Model\PaymentsPreauthBody | try { $result = $apiInstance->createPreauthoritation($paycomet_api_token, $body); @@ -163,7 +149,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Preauthorization privilege required) | - **body** | [**\Swagger\Client\Model\Body17**](../Model/Body17.md)| | [optional] + **body** | [**\Swagger\Client\Model\PaymentsPreauthBody**](../Model/PaymentsPreauthBody.md)| | [optional] ### Return type @@ -171,7 +157,58 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **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) + +# **createPreauthorizationRtoken** +> \Swagger\Client\Model\InlineResponse20018 createPreauthorizationRtoken($body, $paycomet_api_token) + +Creates a preauthorization by reference + +Creates a preauthorization with reference. + +### Example +```php +createPreauthorizationRtoken($body, $paycomet_api_token); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling PreauthorizationsApi->createPreauthorizationRtoken: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**\Swagger\Client\Model\PaymentsPreauthrtokenBody**](../Model/PaymentsPreauthrtokenBody.md)| | [optional] + **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | [optional] + +### Return type + +[**\Swagger\Client\Model\InlineResponse20018**](../Model/InlineResponse20018.md) + +### Authorization + +No authorization required ### HTTP request headers diff --git a/docs/Api/RefundApi.md b/docs/Api/RefundApi.md index 6e82b72..78be78c 100644 --- a/docs/Api/RefundApi.md +++ b/docs/Api/RefundApi.md @@ -17,20 +17,15 @@ execute_refund ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\RefundApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Refund privilege required) $order = "order_example"; // string | -$body = new \Swagger\Client\Model\Body14(); // \Swagger\Client\Model\Body14 | +$body = new \Swagger\Client\Model\OrderRefundBody(); // \Swagger\Client\Model\OrderRefundBody | try { $result = $apiInstance->executeRefund($paycomet_api_token, $order, $body); @@ -47,7 +42,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Refund privilege required) | **order** | **string**| | - **body** | [**\Swagger\Client\Model\Body14**](../Model/Body14.md)| | [optional] + **body** | [**\Swagger\Client\Model\OrderRefundBody**](../Model/OrderRefundBody.md)| | [optional] ### Return type @@ -55,7 +50,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/SepaApi.md b/docs/Api/SepaApi.md index d56dda8..93c8142 100644 --- a/docs/Api/SepaApi.md +++ b/docs/Api/SepaApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description [**sepaOperations**](SepaApi.md#sepaoperations) | **POST** /v1/sepa/operations | Send SEPA operations # **addDocument** -> \Swagger\Client\Model\InlineResponse20026 addDocument($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20027 addDocument($paycomet_api_token, $body) Adds a SEPA document @@ -20,19 +20,14 @@ add_document ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SepaApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body30(); // \Swagger\Client\Model\Body30 | +$body = new \Swagger\Client\Model\SepaAdddocumentBody(); // \Swagger\Client\Model\SepaAdddocumentBody | try { $result = $apiInstance->addDocument($paycomet_api_token, $body); @@ -48,15 +43,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body30**](../Model/Body30.md)| | [optional] + **body** | [**\Swagger\Client\Model\SepaAdddocumentBody**](../Model/SepaAdddocumentBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20026**](../Model/InlineResponse20026.md) +[**\Swagger\Client\Model\InlineResponse20027**](../Model/InlineResponse20027.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -66,7 +61,7 @@ Name | Type | Description | Notes [[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) # **checkCustomer** -> \Swagger\Client\Model\InlineResponse20027 checkCustomer($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20028 checkCustomer($paycomet_api_token, $body) Check a customers SEPA documentation @@ -76,19 +71,14 @@ check_customer ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SepaApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body32(); // \Swagger\Client\Model\Body32 | +$body = new \Swagger\Client\Model\SepaCheckcustomerBody(); // \Swagger\Client\Model\SepaCheckcustomerBody | try { $result = $apiInstance->checkCustomer($paycomet_api_token, $body); @@ -104,15 +94,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body32**](../Model/Body32.md)| | [optional] + **body** | [**\Swagger\Client\Model\SepaCheckcustomerBody**](../Model/SepaCheckcustomerBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20027**](../Model/InlineResponse20027.md) +[**\Swagger\Client\Model\InlineResponse20028**](../Model/InlineResponse20028.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -122,7 +112,7 @@ Name | Type | Description | Notes [[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) # **checkDocument** -> \Swagger\Client\Model\InlineResponse20026 checkDocument($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20027 checkDocument($paycomet_api_token, $body) Check a SEPA document @@ -132,19 +122,14 @@ check_document ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SepaApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body31(); // \Swagger\Client\Model\Body31 | +$body = new \Swagger\Client\Model\SepaCheckdocumentBody(); // \Swagger\Client\Model\SepaCheckdocumentBody | try { $result = $apiInstance->checkDocument($paycomet_api_token, $body); @@ -160,15 +145,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body31**](../Model/Body31.md)| | [optional] + **body** | [**\Swagger\Client\Model\SepaCheckdocumentBody**](../Model/SepaCheckdocumentBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20026**](../Model/InlineResponse20026.md) +[**\Swagger\Client\Model\InlineResponse20027**](../Model/InlineResponse20027.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -178,7 +163,7 @@ Name | Type | Description | Notes [[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) # **sepaOperations** -> \Swagger\Client\Model\InlineResponse20028 sepaOperations($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20029 sepaOperations($paycomet_api_token, $body) Send SEPA operations @@ -188,19 +173,14 @@ sepa_operations ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SepaApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body33(); // \Swagger\Client\Model\Body33 | +$body = new \Swagger\Client\Model\SepaOperationsBody(); // \Swagger\Client\Model\SepaOperationsBody | try { $result = $apiInstance->sepaOperations($paycomet_api_token, $body); @@ -216,15 +196,15 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body33**](../Model/Body33.md)| | [optional] + **body** | [**\Swagger\Client\Model\SepaOperationsBody**](../Model/SepaOperationsBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20028**](../Model/InlineResponse20028.md) +[**\Swagger\Client\Model\InlineResponse20029**](../Model/InlineResponse20029.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Api/SusbcriptionsApi.md b/docs/Api/SusbcriptionsApi.md index 66366f5..72712df 100644 --- a/docs/Api/SusbcriptionsApi.md +++ b/docs/Api/SusbcriptionsApi.md @@ -5,8 +5,9 @@ All URIs are relative to *https://rest.paycomet.com* Method | HTTP request | Description ------------- | ------------- | ------------- [**createSubscription**](SusbcriptionsApi.md#createsubscription) | **POST** /v1/subscription | Create susbcription payment -[**editSubscription**](SusbcriptionsApi.md#editsubscription) | **POST** /v1/subscription/edit | Edit susbcription payment -[**removeSubscription**](SusbcriptionsApi.md#removesubscription) | **POST** /v1/subscription/remove | Remove susbcription payment +[**editSubscription**](SusbcriptionsApi.md#editsubscription) | **POST** /v1/subscription/{order}/edit | Edit susbcription payment. +[**executeSubscription**](SusbcriptionsApi.md#executesubscription) | **POST** /v1/subscription/{order}/execute | Excute a susbcription payment. +[**removeSubscription**](SusbcriptionsApi.md#removesubscription) | **POST** /v1/subscription/{order}/remove | Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. # **createSubscription** > \Swagger\Client\Model\InlineResponse20019 createSubscription($paycomet_api_token, $body) @@ -19,19 +20,14 @@ Create subscription, create subscription token ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SusbcriptionsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body21(); // \Swagger\Client\Model\Body21 | +$body = new \Swagger\Client\Model\V1SubscriptionBody(); // \Swagger\Client\Model\V1SubscriptionBody | try { $result = $apiInstance->createSubscription($paycomet_api_token, $body); @@ -47,7 +43,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body21**](../Model/Body21.md)| | [optional] + **body** | [**\Swagger\Client\Model\V1SubscriptionBody**](../Model/V1SubscriptionBody.md)| | [optional] ### Return type @@ -55,7 +51,7 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers @@ -65,32 +61,28 @@ Name | Type | Description | Notes [[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) # **editSubscription** -> \Swagger\Client\Model\InlineResponse20020 editSubscription($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20020 editSubscription($paycomet_api_token, $order, $body) -Edit susbcription payment +Edit susbcription payment. -Edit subscription, modify subscription token +Edit a subscription. The subscription is identified by the terminal, the payment method, the iduser and the original reference. The rest of the fields can be changed. Please note that changing an amount in a subscription may result in the bank rejecting the payment as the initial payment will not match the new one. To change the amount it is recommended to use the execute parameter. Even if the amount and currency are not changed they should be indicated with the original values. ### Example ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SusbcriptionsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body22(); // \Swagger\Client\Model\Body22 | +$order = "order_example"; // string | +$body = new \Swagger\Client\Model\OrderEditBody(); // \Swagger\Client\Model\OrderEditBody | try { - $result = $apiInstance->editSubscription($paycomet_api_token, $body); + $result = $apiInstance->editSubscription($paycomet_api_token, $order, $body); print_r($result); } catch (Exception $e) { echo 'Exception when calling SusbcriptionsApi->editSubscription: ', $e->getMessage(), PHP_EOL; @@ -103,7 +95,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body22**](../Model/Body22.md)| | [optional] + **order** | **string**| | + **body** | [**\Swagger\Client\Model\OrderEditBody**](../Model/OrderEditBody.md)| | [optional] ### Return type @@ -111,7 +104,60 @@ Name | Type | Description | Notes ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **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) + +# **executeSubscription** +> \Swagger\Client\Model\InlineResponse20021 executeSubscription($paycomet_api_token, $order, $body) + +Excute a susbcription payment. + +This command excecutes a payment of the subscription. This payment does not affect the rest of the subscription payments. However, as it doesn´t belongs to the recurrency it may be denied if the amount is different or even just because of the date of execution as it is not the expected by the bank. + +### Example +```php +executeSubscription($paycomet_api_token, $order, $body); + print_r($result); +} catch (Exception $e) { + echo 'Exception when calling SusbcriptionsApi->executeSubscription: ', $e->getMessage(), PHP_EOL; +} +?> +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | + **order** | **string**| | + **body** | [**\Swagger\Client\Model\OrderExecuteBody**](../Model/OrderExecuteBody.md)| | [optional] + +### Return type + +[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) + +### Authorization + +No authorization required ### HTTP request headers @@ -121,32 +167,28 @@ Name | Type | Description | Notes [[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) # **removeSubscription** -> \Swagger\Client\Model\InlineResponse20021 removeSubscription($paycomet_api_token, $body) +> \Swagger\Client\Model\InlineResponse20022 removeSubscription($paycomet_api_token, $order, $body) -Remove susbcription payment +Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. -Delete subscription, remove subscription token +Delete a subscription. The subscription is identified by the terminal, the payment method, the iduser and the original reference. ### Example ```php setApiKey('PAYCOMET-API-TOKEN', 'YOUR_API_KEY'); -// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed -// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('PAYCOMET-API-TOKEN', 'Bearer'); $apiInstance = new Swagger\Client\Api\SusbcriptionsApi( // 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 + new GuzzleHttp\Client() ); $paycomet_api_token = "paycomet_api_token_example"; // string | PAYCOMET API key (Authorization privilege required) -$body = new \Swagger\Client\Model\Body23(); // \Swagger\Client\Model\Body23 | +$order = "order_example"; // string | +$body = new \Swagger\Client\Model\OrderRemoveBody(); // \Swagger\Client\Model\OrderRemoveBody | try { - $result = $apiInstance->removeSubscription($paycomet_api_token, $body); + $result = $apiInstance->removeSubscription($paycomet_api_token, $order, $body); print_r($result); } catch (Exception $e) { echo 'Exception when calling SusbcriptionsApi->removeSubscription: ', $e->getMessage(), PHP_EOL; @@ -159,15 +201,16 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **paycomet_api_token** | **string**| PAYCOMET API key (Authorization privilege required) | - **body** | [**\Swagger\Client\Model\Body23**](../Model/Body23.md)| | [optional] + **order** | **string**| | + **body** | [**\Swagger\Client\Model\OrderRemoveBody**](../Model/OrderRemoveBody.md)| | [optional] ### Return type -[**\Swagger\Client\Model\InlineResponse20021**](../Model/InlineResponse20021.md) +[**\Swagger\Client\Model\InlineResponse20022**](../Model/InlineResponse20022.md) ### Authorization -[paycometApiKey](../../README.md#paycometApiKey) +No authorization required ### HTTP request headers diff --git a/docs/Model/CardsDeleteBody.md b/docs/Model/CardsDeleteBody.md new file mode 100644 index 0000000..0f7d800 --- /dev/null +++ b/docs/Model/CardsDeleteBody.md @@ -0,0 +1,11 @@ +# CardsDeleteBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | + +[[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/CardsEditBody.md b/docs/Model/CardsEditBody.md new file mode 100644 index 0000000..a2e5db2 --- /dev/null +++ b/docs/Model/CardsEditBody.md @@ -0,0 +1,14 @@ +# CardsEditBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**cvc2** | **string** | cvc2. Mandatory if no JetToken provided | [optional] +**expiry_year** | **string** | Expiry year. Mandatory if no JetToken provided. | +**expiry_month** | **string** | Expiry month. Mandatory if no JetToken provided. | + +[[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/CardsInfoBody.md b/docs/Model/CardsInfoBody.md new file mode 100644 index 0000000..2559b21 --- /dev/null +++ b/docs/Model/CardsInfoBody.md @@ -0,0 +1,11 @@ +# CardsInfoBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**terminal** | **int** | Product or terminal Id. | + +[[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/CardsPhysicalBody.md b/docs/Model/CardsPhysicalBody.md new file mode 100644 index 0000000..d086a98 --- /dev/null +++ b/docs/Model/CardsPhysicalBody.md @@ -0,0 +1,15 @@ +# CardsPhysicalBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**provider_id** | **int** | Provider identifier for physical operations given by PAYCOMET | +**merchant_id** | **string** | Merchant identifier code for physical operations given by PAYCOMET | +**terminal_id** | **string** | Terminal identifier | +**device_ksn** | **string** | Card KSN info | +**device_dukpt** | **string** | Card DUKPT info | +**original_ip** | **string** | IP Address of the customer | + +[[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/InlineResponse20010.md b/docs/Model/InlineResponse20010.md index 556f0ed..0d16be6 100644 --- a/docs/Model/InlineResponse20010.md +++ b/docs/Model/InlineResponse20010.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **name** | **string** | | [optional] **description** | **string** | | [optional] **active** | **string** | | [optional] +**allow_api_refunds** | **int** | | [optional] **logo_square** | **string** | encoded image of squared logo in base64 format | [optional] **logo_landscape** | **string** | encoded image of landscape logo in base64 format | [optional] diff --git a/docs/Model/InlineResponse20020.md b/docs/Model/InlineResponse20020.md index 8abe43e..dfdcaa8 100644 --- a/docs/Model/InlineResponse20020.md +++ b/docs/Model/InlineResponse20020.md @@ -7,6 +7,10 @@ Name | Type | Description | Notes **amount** | **string** | | [optional] **currency** | **string** | | [optional] **method_id** | **int** | | [optional] +**auth_code** | **string** | | [optional] +**id_user** | **int** | | [optional] +**token_user** | **string** | | [optional] +**card_country** | **string** | | [optional] **subscription** | [**\Swagger\Client\Model\InlineResponse20019Subscription**](InlineResponse20019Subscription.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/InlineResponse20021.md b/docs/Model/InlineResponse20021.md index 058c423..205ae07 100644 --- a/docs/Model/InlineResponse20021.md +++ b/docs/Model/InlineResponse20021.md @@ -4,6 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | | [optional] +**amount** | **string** | | [optional] +**currency** | **string** | | [optional] +**method_id** | **int** | | [optional] +**auth_code** | **string** | | [optional] +**challenge_url** | **string** | | [optional] +**id_user** | **int** | | [optional] +**token_user** | **string** | | [optional] +**card_country** | **string** | | [optional] +**subscription** | [**\Swagger\Client\Model\InlineResponse20019Subscription**](InlineResponse20019Subscription.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/InlineResponse20022.md b/docs/Model/InlineResponse20022.md index 668bc1b..30da32d 100644 --- a/docs/Model/InlineResponse20022.md +++ b/docs/Model/InlineResponse20022.md @@ -4,16 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | | [optional] -**amount** | **string** | | [optional] -**currency** | **string** | | [optional] -**method_id** | **int** | | [optional] -**order** | **string** | | [optional] -**auth_code** | **string** | | [optional] -**challenge_url** | **string** | | [optional] -**id_user** | **int** | | [optional] -**token_user** | **string** | | [optional] -**card_country** | **string** | | [optional] -**dcc** | [**\Swagger\Client\Model\InlineResponse20022Dcc**](InlineResponse20022Dcc.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/InlineResponse20023.md b/docs/Model/InlineResponse20023.md index 78206a0..a4b92a2 100644 --- a/docs/Model/InlineResponse20023.md +++ b/docs/Model/InlineResponse20023.md @@ -3,12 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | [optional] -**order** | **string** | Reference of the operation. | [optional] -**currency** | **string** | Currency of the transaction. | [optional] -**auth_code** | **string** | Authorization bank code of the transaction (required to execute a return). | [optional] -**card_country** | **string** | Country of the issuer of the card in ISO3 Code (ex.: 724 = Spain). May be left empty. | [optional] +**error_code** | **int** | | [optional] +**amount** | **string** | | [optional] +**currency** | **string** | | [optional] +**method_id** | **int** | | [optional] +**order** | **string** | | [optional] +**auth_code** | **string** | | [optional] **challenge_url** | **string** | | [optional] +**id_user** | **int** | | [optional] +**token_user** | **string** | | [optional] +**card_country** | **string** | | [optional] +**dcc** | [**\Swagger\Client\Model\InlineResponse20023Dcc**](InlineResponse20023Dcc.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/InlineResponse20023Dcc.md b/docs/Model/InlineResponse20023Dcc.md new file mode 100644 index 0000000..1c4c7b7 --- /dev/null +++ b/docs/Model/InlineResponse20023Dcc.md @@ -0,0 +1,16 @@ +# InlineResponse20023Dcc + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**session** | **string** | | [optional] +**currency** | **string** | | [optional] +**currency_iso3** | **string** | | [optional] +**currency_name** | **string** | | [optional] +**exchange** | **float** | | [optional] +**amount** | **string** | | [optional] +**date** | **string** | | [optional] +**markup** | **float** | | [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/InlineResponse20024.md b/docs/Model/InlineResponse20024.md index 27c3301..02a6c11 100644 --- a/docs/Model/InlineResponse20024.md +++ b/docs/Model/InlineResponse20024.md @@ -3,9 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error_code** | **int** | | [optional] -**order** | **string** | | [optional] -**submerchant** | [**\Swagger\Client\Model\InlineResponse20024Submerchant**](InlineResponse20024Submerchant.md) | | [optional] +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | [optional] +**order** | **string** | Reference of the operation. | [optional] +**currency** | **string** | Currency of the transaction. | [optional] +**auth_code** | **string** | Authorization bank code of the transaction (required to execute a return). | [optional] +**card_country** | **string** | Country of the issuer of the card in ISO3 Code (ex.: 724 = Spain). May be left empty. | [optional] +**challenge_url** | **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/InlineResponse20026.md b/docs/Model/InlineResponse20026.md index c4c435e..5a9918f 100644 --- a/docs/Model/InlineResponse20026.md +++ b/docs/Model/InlineResponse20026.md @@ -4,10 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | | [optional] -**merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | [optional] -**merchant_customer_iban** | **string** | Account number of the client in IBAN format. | [optional] -**document_type** | **int** | Identifier of the type of document on PAYCOMET. | [optional] -**document_status** | **int** | Identifier of the document status. | [optional] +**order** | **string** | | [optional] +**submerchant** | [**\Swagger\Client\Model\InlineResponse20026Submerchant**](InlineResponse20026Submerchant.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/InlineResponse20026Submerchant.md b/docs/Model/InlineResponse20026Submerchant.md new file mode 100644 index 0000000..ea69ed2 --- /dev/null +++ b/docs/Model/InlineResponse20026Submerchant.md @@ -0,0 +1,11 @@ +# InlineResponse20026Submerchant + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **float** | | [optional] +**currency** | **string** | | [optional] +**split_auth_code** | **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/InlineResponse20027.md b/docs/Model/InlineResponse20027.md index fd83ce5..e8d522c 100644 --- a/docs/Model/InlineResponse20027.md +++ b/docs/Model/InlineResponse20027.md @@ -6,7 +6,8 @@ Name | Type | Description | Notes **error_code** | **int** | | [optional] **merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | [optional] **merchant_customer_iban** | **string** | Account number of the client in IBAN format. | [optional] -**documents** | **object** | Object with a pair key value to identify if a document type is verified or not. | [optional] +**document_type** | **int** | Identifier of the type of document on PAYCOMET. | [optional] +**document_status** | **int** | Identifier of the document status. | [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/InlineResponse20028.md b/docs/Model/InlineResponse20028.md index 8e0aa35..97a7413 100644 --- a/docs/Model/InlineResponse20028.md +++ b/docs/Model/InlineResponse20028.md @@ -4,7 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | | [optional] -**operations** | [**\Swagger\Client\Model\InlineResponse20028Operations[]**](InlineResponse20028Operations.md) | | [optional] +**merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | [optional] +**merchant_customer_iban** | **string** | Account number of the client in IBAN format. | [optional] +**documents** | **object** | Object with a pair key value to identify if a document type is verified or not. | [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/InlineResponse20029.md b/docs/Model/InlineResponse20029.md index 1711de5..d53c485 100644 --- a/docs/Model/InlineResponse20029.md +++ b/docs/Model/InlineResponse20029.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error_code** | **int** | The error code if something went wrong. 0 means no error. | [optional] -**ivr_response** | **bool** | Indicates the session has been created. | [optional] +**error_code** | **int** | | [optional] +**operations** | [**\Swagger\Client\Model\InlineResponse20029Operations[]**](InlineResponse20029Operations.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/InlineResponse20029Operations.md b/docs/Model/InlineResponse20029Operations.md new file mode 100644 index 0000000..35e2a97 --- /dev/null +++ b/docs/Model/InlineResponse20029Operations.md @@ -0,0 +1,11 @@ +# InlineResponse20029Operations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_result** | **string** | Operation result OK/KO | [optional] +**operation_error_code** | **int** | Error code given by PAYCOMET for that operation | [optional] +**operation_order** | **string** | Order reference | [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/InlineResponse20030.md b/docs/Model/InlineResponse20030.md index ee8d931..eabb7b7 100644 --- a/docs/Model/InlineResponse20030.md +++ b/docs/Model/InlineResponse20030.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | The error code if something went wrong. 0 means no error. | [optional] -**ivr_response** | **bool** | Result of the session consultation. 0 -> It will indicate that it was not possible to localise the IVR session. 1 -> The session information have been found and will be returned afterwards. | [optional] -**ivr_session_state** | **int** | The possible values are the following. 0 Waiting. 1 Processing. 2 Finalised. OK. 3 Finalised. KO. 4 Communication time exceeded. 5 Reference not found. 6 Operation cancelled by the agent. 7 Call ended. Waiting for next call | [optional] -**ivr_session_result** | **int** | The possible values are the following. 0 No error. 1 Payment operation error. 2 Error entering card data. 3 Error entering expiration month. 4 Error entering expiration year. 5 Error entering CVV | [optional] -**ivr_time_left** | **int** | Time remaining expressed in seconds for finishing the IVR session. In state 0, the established maximum time will be returned. In state 1 the remaining time will be returned. In states 2, 3, 4 and 5 0 will be returned. | [optional] -**ivr_digit_pan** | **int** | When the IVR session is underway, the number of digits of the credit card that the client has entered will be returned. 0 will be returned if this information is not available. | [optional] -**ivr_digit_exp** | **int** | When the IVR session is underway, the number of digits of the expiry date that the client has entered will be returned. 0 will be returned if this information is not available. | [optional] -**ivr_digit_cvc** | **int** | When the IVR session is underway, the number of digits of the CVC2 that the client has entered will be returned. 0 will be shown if this information is not available. | [optional] +**ivr_response** | **bool** | Indicates the session has been created. | [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/InlineResponse20031.md b/docs/Model/InlineResponse20031.md index a5e80fd..5346289 100644 --- a/docs/Model/InlineResponse20031.md +++ b/docs/Model/InlineResponse20031.md @@ -4,8 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error_code** | **int** | The error code if something went wrong. 0 means no error. | [optional] -**ivr_response** | **bool** | Result of the session consultation. 0 -> It will indicate that it was not possible to localise the IVR session. 1 -> The session information have been found and will be returned afterwards. | [optional] +**ivr_response** | **bool** | Result of the session consultation. 0 -> It will indicate that it was not possible to localize the IVR session. 1 -> The session information have been found and will be returned afterwards. | [optional] **ivr_session_state** | **int** | The possible values are the following. 0 Waiting. 1 Processing. 2 Finalised. OK. 3 Finalised. KO. 4 Communication time exceeded. 5 Reference not found. 6 Operation cancelled by the agent. 7 Call ended. Waiting for next call | [optional] +**ivr_session_result** | **int** | The possible values are the following. 0 No error. 1 Payment operation error. 2 Error entering card data. 3 Error entering expiration month. 4 Error entering expiration year. 5 Error entering CVV | [optional] +**ivr_time_left** | **int** | Time remaining expressed in seconds for finishing the IVR session. In state 0, the established maximum time will be returned. In state 1 the remaining time will be returned. In states 2, 3, 4 and 5 0 will be returned. | [optional] +**ivr_digit_pan** | **int** | When the IVR session is underway, the number of digits of the credit card that the client has entered will be returned. 0 will be returned if this information is not available. | [optional] +**ivr_digit_exp** | **int** | When the IVR session is underway, the number of digits of the expiry date that the client has entered will be returned. 0 will be returned if this information is not available. | [optional] +**ivr_digit_cvc** | **int** | When the IVR session is underway, the number of digits of the CVC2 that the client has entered will be returned. 0 will be shown if this information is not available. | [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/InlineResponse20032.md b/docs/Model/InlineResponse20032.md new file mode 100644 index 0000000..e4c048b --- /dev/null +++ b/docs/Model/InlineResponse20032.md @@ -0,0 +1,11 @@ +# InlineResponse20032 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error_code** | **int** | The error code if something went wrong. 0 means no error. | [optional] +**ivr_response** | **bool** | Result of the session consultation. 0 -> It will indicate that it was not possible to localize the IVR session. 1 -> The session information have been found and will be returned afterwards. | [optional] +**ivr_session_state** | **int** | The possible values are the following. 0 Waiting. 1 Processing. 2 Finalised. OK. 3 Finalised. KO. 4 Communication time exceeded. 5 Reference not found. 6 Operation cancelled by the agent. 7 Call ended. Waiting for next call | [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/InlineResponse2007.md b/docs/Model/InlineResponse2007.md index 01ae979..eeb12a8 100644 --- a/docs/Model/InlineResponse2007.md +++ b/docs/Model/InlineResponse2007.md @@ -3,8 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**error_code** | **int** | | [optional] -**time** | **string** | | [optional] +**error_code** | **int** | Error code. | [optional] +**time** | **string** | PING time to PAYCOMET services | [optional] +**processor_time** | **string** | PING time to payment processor | [optional] +**processor_status** | **string** | General processor status (false if unreachable) | [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/IvrGetsessionBody.md b/docs/Model/IvrGetsessionBody.md new file mode 100644 index 0000000..84a594b --- /dev/null +++ b/docs/Model/IvrGetsessionBody.md @@ -0,0 +1,31 @@ +# IvrGetsessionBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**ivr_provider_id** | **int** | Supplier / IVR integrator code. | +**ivr_station_id** | **string** | Location identifier. | +**ivr_merchant_amount** | **int** | Amount of the operation in full format. 1,00 EURO = 100, 4,50 EUROS = 450... | +**ivr_merchant_currency** | **string** | Transaction currency. | +**ivr_merchant_order** | **string** | Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. | +**ivr_merchant_language** | **string** | Language (iso2) in which the IVR phrases will be sent | +**ivr_transaction_type** | **string** | Possible types 107 Bankstore user registration 1 Authorization 3 Pre-authorization 9 Subscription | +**ivr_merchant_concept** | **string** | Operation concept. | [optional] +**ivr_subscription_startdate** | **string** | Mandatory in subscriptions. Subscription start date. | [optional] +**ivr_subscription_enddate** | **string** | Mandatory in subscriptions. Subscription end date. | [optional] +**ivr_subscription_periodicity** | **int** | Mandatory in subscriptions. Frequency of the payment from the start date. The number is expressed in Days. It cannot be more than 365 days. | [optional] +**ivr_max_retries** | **int** | Number of attempts permitted. | [optional] +**ivr_session_timeout** | **int** | Maximum session time. In seconds. | [optional] +**ivr_callback_station_timeout** | **string** | Extension of return in case of timeout. | [optional] +**ivr_callback_station_ok** | **string** | Extension of return in case of operation OK. | [optional] +**ivr_callback_station_ko** | **string** | Extension of return in case of operation KO. | [optional] +**ivr_caller_phone_number** | **string** | Number of incoming call. | [optional] +**ivr_provider_data01** | **string** | Optional field. | [optional] +**vr_provider_data02** | **string** | Optional field. | [optional] +**ivr_provider_data03** | **string** | Optional field. | [optional] +**ivr_provider_data04** | **string** | Optional field. | [optional] +**ivr_provider_data05** | **string** | Optional field. | [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/IvrSessioncancelBody.md b/docs/Model/IvrSessioncancelBody.md new file mode 100644 index 0000000..e3cbf80 --- /dev/null +++ b/docs/Model/IvrSessioncancelBody.md @@ -0,0 +1,11 @@ +# IvrSessioncancelBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**ivr_provider_id** | **int** | Supplier / IVR integrator code. | +**ivr_merchant_order** | **string** | Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. | + +[[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/IvrSessionstateBody.md b/docs/Model/IvrSessionstateBody.md new file mode 100644 index 0000000..642e871 --- /dev/null +++ b/docs/Model/IvrSessionstateBody.md @@ -0,0 +1,11 @@ +# IvrSessionstateBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**ivr_provider_id** | **int** | Supplier / IVR integrator code. | +**ivr_merchant_order** | **string** | Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. | + +[[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/LaunchpadAuthorizationBody.md b/docs/Model/LaunchpadAuthorizationBody.md new file mode 100644 index 0000000..6214ff4 --- /dev/null +++ b/docs/Model/LaunchpadAuthorizationBody.md @@ -0,0 +1,28 @@ +# LaunchpadAuthorizationBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**order** | **string** | Unique reference for merchant's purchase | +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | +**currency** | **string** | Currency of the transaction. | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | +**secure** | **int** | 0 or 1. Indicates if the transaction is secure. | +**language** | **string** | ISO2 code of language. | [default to 'es'] +**sms_email** | **string** | Sending channel of the payment url. Should be \"sms\" or \"email\". | +**template_id** | **int** | Email or SMS template id to be sent. You can get it in the Control panel. | +**email_address** | **string** | Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent | [optional] +**email_name** | **string** | Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent | [optional] +**sms_prefix** | **string** | Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent | [optional] +**sms_number** | **string** | Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent | [optional] +**scoring** | **string** | Risk scoring value from 0 to 100. | [optional] +**product_description** | **string** | Description of the product sold. | [optional] +**escrow_targets** | [**\Swagger\Client\Model\V1formPaymentEscrowTargets[]**](V1formPaymentEscrowTargets.md) | | [optional] +**trx_type** | **string** | Obligatory only if an MIT exception has been selected in scaException | [optional] +**sca_exception** | **string** | TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible | [optional] +**merchant_data** | [**\Swagger\Client\Model\V1launchpadauthorizationMerchantData**](V1launchpadauthorizationMerchantData.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/LaunchpadPreauthorizationBody.md b/docs/Model/LaunchpadPreauthorizationBody.md new file mode 100644 index 0000000..270e05a --- /dev/null +++ b/docs/Model/LaunchpadPreauthorizationBody.md @@ -0,0 +1,28 @@ +# LaunchpadPreauthorizationBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**order** | **string** | Unique reference for merchant's purchase | +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | +**currency** | **string** | Currency of the transaction. | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | +**secure** | **int** | 0 or 1. Indicates if the transaction is secure. | +**language** | **string** | ISO2 code of language. | [default to 'es'] +**sms_email** | **string** | Sending channel of the payment url. Should be \"sms\" or \"email\". | +**template_id** | **int** | Email or SMS template id to be sent. You can get it in the Control panel. | +**email_address** | **string** | Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent | [optional] +**email_name** | **string** | Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent | [optional] +**sms_prefix** | **string** | Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent | [optional] +**sms_number** | **string** | Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent | [optional] +**scoring** | **string** | Risk scoring value from 0 to 100. | [optional] +**product_description** | **string** | Description of the product sold. | [optional] +**escrow_targets** | [**\Swagger\Client\Model\V1formPaymentEscrowTargets[]**](V1formPaymentEscrowTargets.md) | | [optional] +**trx_type** | **string** | Obligatory only if an MIT exception has been selected in scaException | [optional] +**sca_exception** | **string** | TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible | [optional] +**merchant_data** | [**\Swagger\Client\Model\V1launchpadauthorizationMerchantData**](V1launchpadauthorizationMerchantData.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/LaunchpadSubscriptionBody.md b/docs/Model/LaunchpadSubscriptionBody.md new file mode 100644 index 0000000..ad08a2e --- /dev/null +++ b/docs/Model/LaunchpadSubscriptionBody.md @@ -0,0 +1,27 @@ +# LaunchpadSubscriptionBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**order** | **string** | Unique reference for merchant's purchase | +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | +**currency** | **string** | Currency of the transaction. | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | +**secure** | **int** | 0 or 1. Indicates if the transaction is secure. | +**language** | **string** | ISO2 code of language. | [default to 'es'] +**sms_email** | **string** | Sending channel of the payment url. Should be \"sms\" or \"email\". | +**template_id** | **int** | Email or SMS template id to be sent. You can get it in the Control panel. | +**email_address** | **string** | Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent | [optional] +**email_name** | **string** | Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent | [optional] +**sms_prefix** | **string** | Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent | [optional] +**sms_number** | **string** | Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent | [optional] +**scoring** | **string** | Risk scoring value from 0 to 100. | [optional] +**start_date** | **string** | Subscription start date yyyymmdd. IMPORTANT Subscriptions are charged on the first run if this field has value it will be taken into account for future charges. | [optional] +**end_date** | **string** | Subscription end date yyyymmdd | [optional] +**periodicity** | **string** | Subscription periodicity in days. Maximum 365. | [optional] +**merchant_data** | [**\Swagger\Client\Model\V1launchpadsubscriptionMerchantData**](V1launchpadsubscriptionMerchantData.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/MarketplaceSplittransferBody.md b/docs/Model/MarketplaceSplittransferBody.md new file mode 100644 index 0000000..55d06e7 --- /dev/null +++ b/docs/Model/MarketplaceSplittransferBody.md @@ -0,0 +1,10 @@ +# MarketplaceSplittransferBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submerchant** | [**\Swagger\Client\Model\V1marketplacesplittransferSubmerchant**](V1marketplacesplittransferSubmerchant.md) | | +**payment** | [**\Swagger\Client\Model\V1marketplacesplittransferPayment**](V1marketplacesplittransferPayment.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/MarketplaceSplittransferreversalBody.md b/docs/Model/MarketplaceSplittransferreversalBody.md new file mode 100644 index 0000000..50d16b3 --- /dev/null +++ b/docs/Model/MarketplaceSplittransferreversalBody.md @@ -0,0 +1,10 @@ +# MarketplaceSplittransferreversalBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submerchant** | [**\Swagger\Client\Model\V1marketplacesplittransferreversalSubmerchant**](V1marketplacesplittransferreversalSubmerchant.md) | | +**payment** | [**\Swagger\Client\Model\V1marketplacesplittransferreversalPayment**](V1marketplacesplittransferreversalPayment.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/MarketplaceTransferBody.md b/docs/Model/MarketplaceTransferBody.md new file mode 100644 index 0000000..dac1f95 --- /dev/null +++ b/docs/Model/MarketplaceTransferBody.md @@ -0,0 +1,10 @@ +# MarketplaceTransferBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submerchant** | [**\Swagger\Client\Model\V1marketplacesplittransferSubmerchant**](V1marketplacesplittransferSubmerchant.md) | | +**payment** | [**\Swagger\Client\Model\V1marketplacetransferPayment**](V1marketplacetransferPayment.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/MarketplaceTransferreversalBody.md b/docs/Model/MarketplaceTransferreversalBody.md new file mode 100644 index 0000000..c0fe466 --- /dev/null +++ b/docs/Model/MarketplaceTransferreversalBody.md @@ -0,0 +1,10 @@ +# MarketplaceTransferreversalBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**submerchant** | [**\Swagger\Client\Model\V1marketplacetransferreversalSubmerchant**](V1marketplacetransferreversalSubmerchant.md) | | +**payment** | [**\Swagger\Client\Model\V1marketplacetransferPayment**](V1marketplacetransferPayment.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/OrderConfirmBody.md b/docs/Model/OrderConfirmBody.md new file mode 100644 index 0000000..3d7a7c9 --- /dev/null +++ b/docs/Model/OrderConfirmBody.md @@ -0,0 +1,29 @@ +# OrderConfirmBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**order** | **string** | Unique reference for merchant's purchase | [optional] +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | [optional] +**currency** | **string** | Currency of the transaction. | [optional] +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | [optional] +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | [optional] +**secure** | **string** | 0 or 1. Indicates if the transaction is secure. | [optional] +**id_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [optional] +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [optional] +**scoring** | **string** | Risk scoring value from 0 to 100. | [optional] +**product_description** | **string** | Description of the product sold. | [optional] +**merchant_descriptor** | **string** | Allows the business to send a text up to 25 characters that will be printed on the customer invoice. Limited to simple characters, no accents or special characters. | [optional] +**user_interaction** | **int** | Indicates wether the business can interact with the customer | [optional] +**escrow_targets** | [**\Swagger\Client\Model\V1formPaymentEscrowTargets[]**](V1formPaymentEscrowTargets.md) | | [optional] +**trx_type** | **string** | Obligatory only if an MIT exception has been selected in scaException | [optional] +**sca_exception** | **string** | TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible | [optional] +**url_ok** | **string** | Url where the customer will be redirected after finishing a correct transaction. | [optional] +**url_ko** | **string** | Url where the customer will be redirected after finishing a failed transaction. | [optional] +**notify_direct_payment** | **int** | Configurate POST notification of the operation result in frictionless payment (possible values: 1 - force notify, 2 - not notify). It will notify if is not informed | [optional] +**merchant_data** | [**\Swagger\Client\Model\V1formPaymentMerchantData**](V1formPaymentMerchantData.md) | | [optional] +**dcc** | [**\Swagger\Client\Model\V1paymentsdccorderconfirmDcc**](V1paymentsdccorderconfirmDcc.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/OrderEditBody.md b/docs/Model/OrderEditBody.md new file mode 100644 index 0000000..22eeb39 --- /dev/null +++ b/docs/Model/OrderEditBody.md @@ -0,0 +1,10 @@ +# OrderEditBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**\Swagger\Client\Model\V1subscriptionordereditSubscription**](V1subscriptionordereditSubscription.md) | | +**payment** | [**\Swagger\Client\Model\V1subscriptionordereditPayment**](V1subscriptionordereditPayment.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/OrderExecuteBody.md b/docs/Model/OrderExecuteBody.md new file mode 100644 index 0000000..fac61ad --- /dev/null +++ b/docs/Model/OrderExecuteBody.md @@ -0,0 +1,10 @@ +# OrderExecuteBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**\Swagger\Client\Model\V1subscriptionSubscription**](V1subscriptionSubscription.md) | | +**payment** | [**\Swagger\Client\Model\V1subscriptionorderexecutePayment**](V1subscriptionorderexecutePayment.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/OrderInfoBody.md b/docs/Model/OrderInfoBody.md new file mode 100644 index 0000000..0ba7724 --- /dev/null +++ b/docs/Model/OrderInfoBody.md @@ -0,0 +1,9 @@ +# OrderInfoBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsorderinfoPayment**](V1paymentsorderinfoPayment.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/OrderRefundBody.md b/docs/Model/OrderRefundBody.md new file mode 100644 index 0000000..06c6659 --- /dev/null +++ b/docs/Model/OrderRefundBody.md @@ -0,0 +1,9 @@ +# OrderRefundBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsorderrefundPayment**](V1paymentsorderrefundPayment.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/OrderRemoveBody.md b/docs/Model/OrderRemoveBody.md new file mode 100644 index 0000000..1782b44 --- /dev/null +++ b/docs/Model/OrderRemoveBody.md @@ -0,0 +1,9 @@ +# OrderRemoveBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1subscriptionorderremovePayment**](V1subscriptionorderremovePayment.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/PaymentsDccBody.md b/docs/Model/PaymentsDccBody.md new file mode 100644 index 0000000..6a879a6 --- /dev/null +++ b/docs/Model/PaymentsDccBody.md @@ -0,0 +1,9 @@ +# PaymentsDccBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsdccPayment**](V1paymentsdccPayment.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/PaymentsPreauthBody.md b/docs/Model/PaymentsPreauthBody.md new file mode 100644 index 0000000..4b34d71 --- /dev/null +++ b/docs/Model/PaymentsPreauthBody.md @@ -0,0 +1,9 @@ +# PaymentsPreauthBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentspreauthPayment**](V1paymentspreauthPayment.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/PaymentsPreauthrtokenBody.md b/docs/Model/PaymentsPreauthrtokenBody.md new file mode 100644 index 0000000..d7c3b94 --- /dev/null +++ b/docs/Model/PaymentsPreauthrtokenBody.md @@ -0,0 +1,9 @@ +# PaymentsPreauthrtokenBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsrtokenPayment**](V1paymentsrtokenPayment.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/PaymentsRtokenBody.md b/docs/Model/PaymentsRtokenBody.md new file mode 100644 index 0000000..666b1c7 --- /dev/null +++ b/docs/Model/PaymentsRtokenBody.md @@ -0,0 +1,9 @@ +# PaymentsRtokenBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsrtokenPayment**](V1paymentsrtokenPayment.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/PaymentsSearchBody.md b/docs/Model/PaymentsSearchBody.md new file mode 100644 index 0000000..1389265 --- /dev/null +++ b/docs/Model/PaymentsSearchBody.md @@ -0,0 +1,21 @@ +# PaymentsSearchBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**sort_type** | **int** | Sorting type (0 No sorting, 1 date, 2 order, 3 type, 4 state, 5 terminal, 6 amount, 7 user). | +**sort_order** | **string** | Sort results ASC = Ascending, DESC = Descending. | +**operations** | **int[]** | | +**min_amount** | **int** | Minimum amount of the operation in whole format | +**max_amount** | **int** | Maximum amount of the operation in whole format | +**state** | **int** | Result of operation. 0 is operation failed, 1 operation correct and 2 operation unfinished (for pending operations from an SCA or 3DS). | +**from_date** | **string** | Start datetime limit (format: YmdHis) | +**to_date** | **string** | Finish datetime limit (format: YmdHis) | +**currency** | **string** | Currency of the transaction. | +**limit** | **int** | Results limit. | [optional] [default to 10000] +**order** | **string** | Unique reference for merchant's purchase | [optional] +**search_type** | **int** | Comparison type. 0 LIKE comparison (%xxx%) , 1 exact comparison (=) | [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/PreauthCancelBody.md b/docs/Model/PreauthCancelBody.md new file mode 100644 index 0000000..4602a72 --- /dev/null +++ b/docs/Model/PreauthCancelBody.md @@ -0,0 +1,9 @@ +# PreauthCancelBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsorderpreauthcancelPayment**](V1paymentsorderpreauthcancelPayment.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/PreauthConfirmBody.md b/docs/Model/PreauthConfirmBody.md new file mode 100644 index 0000000..3b4e864 --- /dev/null +++ b/docs/Model/PreauthConfirmBody.md @@ -0,0 +1,9 @@ +# PreauthConfirmBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsorderpreauthconfirmPayment**](V1paymentsorderpreauthconfirmPayment.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/SepaAdddocumentBody.md b/docs/Model/SepaAdddocumentBody.md new file mode 100644 index 0000000..ac93ee1 --- /dev/null +++ b/docs/Model/SepaAdddocumentBody.md @@ -0,0 +1,15 @@ +# SepaAdddocumentBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**sepa_provider_id** | **int** | Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. | +**merchant_code** | **string** | Unique identifier as PAYCOMET account. Available on the client control panel. | +**merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | +**merchant_customer_iban** | **string** | Account number of the client in IBAN format. | +**document_type** | **int** | Identifier of the type of document on PAYCOMET. | +**file_content** | **string** | Binary content of the file to send, codified in base 64. | [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/SepaCheckcustomerBody.md b/docs/Model/SepaCheckcustomerBody.md new file mode 100644 index 0000000..904008f --- /dev/null +++ b/docs/Model/SepaCheckcustomerBody.md @@ -0,0 +1,14 @@ +# SepaCheckcustomerBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**sepa_provider_id** | **int** | Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. | +**merchant_code** | **string** | Unique identifier as PAYCOMET account. Available on the client control panel. | +**merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | +**merchant_customer_iban** | **string** | Account number of the client in IBAN format. | +**merchant_customer_type** | **int** | Identifier of the type of company on PAYCOMET. | + +[[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/SepaCheckdocumentBody.md b/docs/Model/SepaCheckdocumentBody.md new file mode 100644 index 0000000..7a9e2b2 --- /dev/null +++ b/docs/Model/SepaCheckdocumentBody.md @@ -0,0 +1,14 @@ +# SepaCheckdocumentBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**sepa_provider_id** | **int** | Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. | +**merchant_code** | **string** | Unique identifier as PAYCOMET account. Available on the client control panel. | +**merchant_customer_id** | **string** | Unique identifier of the client of the supplier. | +**merchant_customer_iban** | **string** | Account number of the client in IBAN format. | +**document_type** | **int** | Identifier of the type of document on PAYCOMET. | + +[[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/SepaOperationsBody.md b/docs/Model/SepaOperationsBody.md new file mode 100644 index 0000000..080331b --- /dev/null +++ b/docs/Model/SepaOperationsBody.md @@ -0,0 +1,11 @@ +# SepaOperationsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**sepa_provider_id** | **int** | Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. | +**operations** | [**\Swagger\Client\Model\V1sepaoperationsOperations[]**](V1sepaoperationsOperations.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/V1BalanceBody.md b/docs/Model/V1BalanceBody.md new file mode 100644 index 0000000..a9cfc29 --- /dev/null +++ b/docs/Model/V1BalanceBody.md @@ -0,0 +1,9 @@ +# V1BalanceBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | + +[[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/V1CardsBody.md b/docs/Model/V1CardsBody.md new file mode 100644 index 0000000..6a59000 --- /dev/null +++ b/docs/Model/V1CardsBody.md @@ -0,0 +1,18 @@ +# V1CardsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**cvc2** | **string** | cvc2. Mandatory if no JetToken provided | [optional] +**jet_token** | **string** | Temporary token provided from PAYCOMET. Mandatory if no card provided. | [optional] +**expiry_year** | **string** | Expiry year. Mandatory if no JetToken provided | [optional] +**expiry_month** | **string** | Expiry month. Mandatory if no JetToken provided. | [optional] +**pan** | **string** | Card number. Mandatory if no JetToken provided | [optional] +**order** | **string** | Reference, will be included in callback. | [optional] +**product_description** | **string** | Concept, will be included in callback. | [optional] +**language** | **string** | Language for callback translation. | [optional] [default to 'es'] +**notify** | **int** | Configure POST notification of the card tokenization result (possible values: 1 - force notify, 2 - not notify). Default product value will be used if notify is not informed | [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/V1ErrorsBody.md b/docs/Model/V1ErrorsBody.md new file mode 100644 index 0000000..d9e7f5f --- /dev/null +++ b/docs/Model/V1ErrorsBody.md @@ -0,0 +1,11 @@ +# V1ErrorsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**error_code** | **int** | Error code given by PAYCOMET. | +**lang** | **string** | ISO2 code of language. | [optional] [default to 'es'] + +[[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/V1ExchangeBody.md b/docs/Model/V1ExchangeBody.md new file mode 100644 index 0000000..7ac180c --- /dev/null +++ b/docs/Model/V1ExchangeBody.md @@ -0,0 +1,12 @@ +# V1ExchangeBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**amount** | **string** | Amount to convert | +**original_currency** | **string** | Currency to convert from | +**final_currency** | **string** | Currency to convert to | + +[[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/V1FormBody.md b/docs/Model/V1FormBody.md new file mode 100644 index 0000000..13234b5 --- /dev/null +++ b/docs/Model/V1FormBody.md @@ -0,0 +1,14 @@ +# V1FormBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operation_type** | **int** | PAYCOMET operation type (ID 1 - authorization, 3 - preauthorization, 9 - subscription, 107 - tokenization, 114 - authorization by reference, 116 - dcc authorization). | +**language** | **string** | Language for user interface. | [optional] +**terminal** | **int** | Product or terminal Id | [optional] +**product_description** | **string** | Product description (only in 107 - tokenization). | [optional] +**payment** | [**\Swagger\Client\Model\V1formPayment**](V1formPayment.md) | | [optional] +**subscription** | [**\Swagger\Client\Model\V1formSubscription**](V1formSubscription.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/V1HeartbeatBody.md b/docs/Model/V1HeartbeatBody.md new file mode 100644 index 0000000..3095416 --- /dev/null +++ b/docs/Model/V1HeartbeatBody.md @@ -0,0 +1,9 @@ +# V1HeartbeatBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **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/V1InvoicesBody.md b/docs/Model/V1InvoicesBody.md new file mode 100644 index 0000000..5037c29 --- /dev/null +++ b/docs/Model/V1InvoicesBody.md @@ -0,0 +1,9 @@ +# V1InvoicesBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1invoicesPayment**](V1invoicesPayment.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/V1IpBody.md b/docs/Model/V1IpBody.md new file mode 100644 index 0000000..321ab82 --- /dev/null +++ b/docs/Model/V1IpBody.md @@ -0,0 +1,10 @@ +# V1IpBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | | +**ip** | **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/V1MethodsBody.md b/docs/Model/V1MethodsBody.md new file mode 100644 index 0000000..0aa5650 --- /dev/null +++ b/docs/Model/V1MethodsBody.md @@ -0,0 +1,9 @@ +# V1MethodsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **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/V1PaymentsBody.md b/docs/Model/V1PaymentsBody.md new file mode 100644 index 0000000..c1b50d7 --- /dev/null +++ b/docs/Model/V1PaymentsBody.md @@ -0,0 +1,9 @@ +# V1PaymentsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**payment** | [**\Swagger\Client\Model\V1paymentsPayment**](V1paymentsPayment.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/V1SubscriptionBody.md b/docs/Model/V1SubscriptionBody.md new file mode 100644 index 0000000..7cf226a --- /dev/null +++ b/docs/Model/V1SubscriptionBody.md @@ -0,0 +1,10 @@ +# V1SubscriptionBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription** | [**\Swagger\Client\Model\V1subscriptionSubscription**](V1subscriptionSubscription.md) | | +**payment** | [**\Swagger\Client\Model\V1subscriptionPayment**](V1subscriptionPayment.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/V1formPayment.md b/docs/Model/V1formPayment.md index 604395f..549ceb3 100644 --- a/docs/Model/V1formPayment.md +++ b/docs/Model/V1formPayment.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **order** | **string** | Unique reference for merchant's purchase | [optional] **amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | [optional] **currency** | **string** | Currency of the transaction. | [optional] -**id_user** | **int** | Identification of user card given by PAYCOMET | [optional] -**token_user** | **string** | Identification of user card given by PAYCOMET | [optional] +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [optional] +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [optional] **secure** | **int** | 0 or 1. Indicates if the transaction is secure. | [optional] **scoring** | **string** | Risk scoring value from 0 to 100. | [optional] **product_description** | **string** | Description of the product sold. | [optional] diff --git a/docs/Model/V1formPaymentMerchantData.md b/docs/Model/V1formPaymentMerchantData.md index afa4668..742f400 100644 --- a/docs/Model/V1formPaymentMerchantData.md +++ b/docs/Model/V1formPaymentMerchantData.md @@ -12,9 +12,9 @@ Name | Type | Description | Notes **three_ds_requestor_authentication_info** | [**\Swagger\Client\Model\V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo**](V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.md) | | [optional] **shopping_cart** | [**\Swagger\Client\Model\V1formPaymentMerchantDataShoppingCart[]**](V1formPaymentMerchantDataShoppingCart.md) | | [optional] **addr_match** | **string** | Indicates whether the delivery address is the same as the invoice address. Y = The delivery address is the same as the invoicing address, N = The delivery and invoice addresses are different | [optional] -**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 | [optional] -**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD | [optional] -**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations | [optional] +**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 | [optional] +**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD | [optional] +**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations | [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/V1formPaymentMerchantDataBilling.md b/docs/Model/V1formPaymentMerchantDataBilling.md index 763e374..073c23c 100644 --- a/docs/Model/V1formPaymentMerchantDataBilling.md +++ b/docs/Model/V1formPaymentMerchantDataBilling.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **bill_addr_line2** | **string** | Delivery address, line 2 | [optional] **bill_addr_line3** | **string** | Delivery address, line 3 | [optional] **bill_addr_post_code** | **string** | Post code of the delivery address | [optional] -**bill_addr_state** | **string** | State or province of the delivery address | [optional] +**bill_addr_state** | **string** | State or province of the delivery address. Must comply with ISO 3166-2. | [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/V1formPaymentMerchantDataShipping.md b/docs/Model/V1formPaymentMerchantDataShipping.md index 8affbde..07b1bde 100644 --- a/docs/Model/V1formPaymentMerchantDataShipping.md +++ b/docs/Model/V1formPaymentMerchantDataShipping.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **ship_addr_line2** | **string** | Delivery address, line 2 | [optional] **ship_addr_line3** | **string** | Delivery address, line 3 | [optional] **ship_addr_post_code** | **string** | Post code of the delivery address | [optional] -**ship_addr_state** | **string** | State or province of the delivery address | [optional] +**ship_addr_state** | **string** | State or province of the delivery address. Must comply with ISO 3166-2. | [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/V1launchpadauthorizationMerchantData.md b/docs/Model/V1launchpadauthorizationMerchantData.md index 95db805..40c7b6e 100644 --- a/docs/Model/V1launchpadauthorizationMerchantData.md +++ b/docs/Model/V1launchpadauthorizationMerchantData.md @@ -12,9 +12,9 @@ Name | Type | Description | Notes **three_ds_requestor_authentication_info** | [**\Swagger\Client\Model\V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo**](V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.md) | | [optional] **shopping_cart** | [**\Swagger\Client\Model\V1formPaymentMerchantDataShoppingCart[]**](V1formPaymentMerchantDataShoppingCart.md) | | [optional] **addr_match** | **string** | Indicates whether the delivery address is the same as the invoice address. Y = The delivery address is the same as the invoicing address, N = The delivery and invoice addresses are different | [optional] -**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 | [optional] -**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD | [optional] -**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations | [optional] +**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 | [optional] +**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD | [optional] +**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations | [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/V1launchpadsubscriptionMerchantData.md b/docs/Model/V1launchpadsubscriptionMerchantData.md index 133a487..4baf116 100644 --- a/docs/Model/V1launchpadsubscriptionMerchantData.md +++ b/docs/Model/V1launchpadsubscriptionMerchantData.md @@ -12,9 +12,9 @@ Name | Type | Description | Notes **three_ds_requestor_authentication_info** | [**\Swagger\Client\Model\V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo**](V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.md) | | [optional] **shopping_cart** | [**\Swagger\Client\Model\V1formPaymentMerchantDataShoppingCart[]**](V1formPaymentMerchantDataShoppingCart.md) | | [optional] **addr_match** | **string** | Indicates whether the delivery address is the same as the invoice address. Y = The delivery address is the same as the invoicing address, N = The delivery and invoice addresses are different | [optional] -**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 | [optional] -**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD | [optional] -**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations | [optional] +**purchase_instal_data** | **int** | Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 | [optional] +**recurring_expiry** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD | [optional] +**recurring_frequency** | **string** | Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations | [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/V1launchpadsubscriptionMerchantDataShipping.md b/docs/Model/V1launchpadsubscriptionMerchantDataShipping.md index a9ef37c..cc026e1 100644 --- a/docs/Model/V1launchpadsubscriptionMerchantDataShipping.md +++ b/docs/Model/V1launchpadsubscriptionMerchantDataShipping.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **ship_addr_line2** | **string** | Delivery address, line 2 | [optional] **ship_addr_line3** | **string** | Delivery address, line 3 | [optional] **ship_addr_post_code** | **string** | Post code of the delivery address | [optional] -**ship_addr_state** | **string** | State or province of the delivery address | [optional] +**ship_addr_state** | **string** | State or province of the delivery address. Must comply with ISO 3166-2. | [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/V1paymentsPayment.md b/docs/Model/V1paymentsPayment.md index bd78950..2e362c7 100644 --- a/docs/Model/V1paymentsPayment.md +++ b/docs/Model/V1paymentsPayment.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | **original_ip** | **string** | IP Address of the customer that initiated the payment transaction | **secure** | **int** | 0 or 1. Indicates if the transaction is secure. | -**id_user** | **int** | Identification of user card given by PAYCOMET | [optional] -**token_user** | **string** | Identification of user card given by PAYCOMET | [optional] +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | **scoring** | **string** | Risk scoring value from 0 to 100. | [optional] **product_description** | **string** | Description of the product sold. | [optional] **merchant_descriptor** | **string** | Allows the business to send a text up to 25 characters that will be printed on the customer invoice. Limited to simple characters, no accents or special characters. | [optional] diff --git a/docs/Model/V1paymentspreauthPayment.md b/docs/Model/V1paymentspreauthPayment.md index 3bd757f..b19177c 100644 --- a/docs/Model/V1paymentspreauthPayment.md +++ b/docs/Model/V1paymentspreauthPayment.md @@ -21,8 +21,8 @@ Name | Type | Description | Notes **url_ko** | **string** | Url where the customer will be redirected after finishing a failed transaction. | [optional] **notify_direct_payment** | **int** | Configurate POST notification of the operation result in frictionless payment (possible values: 1 - force notify, 2 - not notify). It will notify if is not informed | [optional] **merchant_data** | [**\Swagger\Client\Model\V1formPaymentMerchantData**](V1formPaymentMerchantData.md) | | [optional] -**id_user** | **int** | Identification of user card given by PAYCOMET | [optional] -**token_user** | **string** | Identification of user card given by PAYCOMET | [optional] +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | **deferred** | **int** | Identify the preauthorization as deferred | [optional] [default to 0] [[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/V1subscriptionPayment.md b/docs/Model/V1subscriptionPayment.md index 444164d..808e652 100644 --- a/docs/Model/V1subscriptionPayment.md +++ b/docs/Model/V1subscriptionPayment.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | **currency** | **string** | Currency of the transaction. | **original_ip** | **string** | IP Address of the customer that initiated the payment transaction | -**id_user** | **int** | Identification of user card given by PAYCOMET | -**token_user** | **string** | Identification of user card given by PAYCOMET | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | **secure** | **int** | 0 or 1. Indicates if the transaction is secure. | **scoring** | **string** | Risk scoring value from 0 to 100. | [optional] **product_description** | **string** | Description of the product sold. | [optional] diff --git a/docs/Model/V1subscriptionordereditPayment.md b/docs/Model/V1subscriptionordereditPayment.md new file mode 100644 index 0000000..96e892e --- /dev/null +++ b/docs/Model/V1subscriptionordereditPayment.md @@ -0,0 +1,14 @@ +# V1subscriptionordereditPayment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [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/V1subscriptionordereditSubscription.md b/docs/Model/V1subscriptionordereditSubscription.md new file mode 100644 index 0000000..860f2f5 --- /dev/null +++ b/docs/Model/V1subscriptionordereditSubscription.md @@ -0,0 +1,12 @@ +# V1subscriptionordereditSubscription + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | **string** | First day of subscription | +**end_date** | **string** | Last day of subscription | +**periodicity** | **string** | In days, time between purchases | +**active** | **int** | 1 to activate subscription, 0 to desactivate. | [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/V1subscriptionorderexecutePayment.md b/docs/Model/V1subscriptionorderexecutePayment.md new file mode 100644 index 0000000..2473420 --- /dev/null +++ b/docs/Model/V1subscriptionorderexecutePayment.md @@ -0,0 +1,15 @@ +# V1subscriptionorderexecutePayment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**amount** | **string** | Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... | +**currency** | **string** | | +**original_ip** | **string** | IP Address of the customer that initiated the payment transaction | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [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/V1subscriptionorderremovePayment.md b/docs/Model/V1subscriptionorderremovePayment.md new file mode 100644 index 0000000..16d1374 --- /dev/null +++ b/docs/Model/V1subscriptionorderremovePayment.md @@ -0,0 +1,13 @@ +# V1subscriptionorderremovePayment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**terminal** | **int** | Product or terminal Id. | +**order** | **string** | | +**method_id** | **string** | PAYCOMET payment method ID. 1 is for card. | +**id_user** | **int** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | +**token_user** | **string** | Identification of user card given by PAYCOMET. Mandatory if is a card payment. | [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/BalanceApi.php b/lib/Api/BalanceApi.php index 3fbdeeb..bfa0ea8 100644 --- a/lib/Api/BalanceApi.php +++ b/lib/Api/BalanceApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Get balance info * - * @param \Swagger\Client\Model\Body6 $body body (optional) + * @param \Swagger\Client\Model\V1BalanceBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function productBalance($body = null, $paycomet_api_token = null) * * Get balance info * - * @param \Swagger\Client\Model\Body6 $body (optional) + * @param \Swagger\Client\Model\V1BalanceBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -201,7 +201,7 @@ public function productBalanceWithHttpInfo($body = null, $paycomet_api_token = n * * Get balance info * - * @param \Swagger\Client\Model\Body6 $body (optional) + * @param \Swagger\Client\Model\V1BalanceBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -222,7 +222,7 @@ function ($response) { * * Get balance info * - * @param \Swagger\Client\Model\Body6 $body (optional) + * @param \Swagger\Client\Model\V1BalanceBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -273,7 +273,7 @@ function ($exception) { /** * Create request for operation 'productBalance' * - * @param \Swagger\Client\Model\Body6 $body (optional) + * @param \Swagger\Client\Model\V1BalanceBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -341,11 +341,6 @@ protected function productBalanceRequest($body = null, $paycomet_api_token = nul } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/CardsApi.php b/lib/Api/CardsApi.php index 29830e6..718ad0d 100644 --- a/lib/Api/CardsApi.php +++ b/lib/Api/CardsApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. * - * @param \Swagger\Client\Model\Body1 $body body (optional) + * @param \Swagger\Client\Model\V1CardsBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function addUser($body = null, $paycomet_api_token = null) * * Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. * - * @param \Swagger\Client\Model\Body1 $body (optional) + * @param \Swagger\Client\Model\V1CardsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function addUserWithHttpInfo($body = null, $paycomet_api_token = null) * * Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. * - * @param \Swagger\Client\Model\Body1 $body (optional) + * @param \Swagger\Client\Model\V1CardsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Tokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST. * - * @param \Swagger\Client\Model\Body1 $body (optional) + * @param \Swagger\Client\Model\V1CardsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'addUser' * - * @param \Swagger\Client\Model\Body1 $body (optional) + * @param \Swagger\Client\Model\V1CardsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function addUserRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -364,7 +359,7 @@ protected function addUserRequest($body = null, $paycomet_api_token = null) * * Changes the expiry date, cvc2 or both * - * @param \Swagger\Client\Model\Body4 $body body (optional) + * @param \Swagger\Client\Model\CardsEditBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -382,7 +377,7 @@ public function editUser($body = null, $paycomet_api_token = null) * * Changes the expiry date, cvc2 or both * - * @param \Swagger\Client\Model\Body4 $body (optional) + * @param \Swagger\Client\Model\CardsEditBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -466,7 +461,7 @@ public function editUserWithHttpInfo($body = null, $paycomet_api_token = null) * * Changes the expiry date, cvc2 or both * - * @param \Swagger\Client\Model\Body4 $body (optional) + * @param \Swagger\Client\Model\CardsEditBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -487,7 +482,7 @@ function ($response) { * * Changes the expiry date, cvc2 or both * - * @param \Swagger\Client\Model\Body4 $body (optional) + * @param \Swagger\Client\Model\CardsEditBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -538,7 +533,7 @@ function ($exception) { /** * Create request for operation 'editUser' * - * @param \Swagger\Client\Model\Body4 $body (optional) + * @param \Swagger\Client\Model\CardsEditBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -606,11 +601,6 @@ protected function editUserRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -637,7 +627,7 @@ protected function editUserRequest($body = null, $paycomet_api_token = null) * * Get card info * - * @param \Swagger\Client\Model\Body2 $body body (optional) + * @param \Swagger\Client\Model\CardsInfoBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -655,7 +645,7 @@ public function infoUser($body = null, $paycomet_api_token = null) * * Get card info * - * @param \Swagger\Client\Model\Body2 $body (optional) + * @param \Swagger\Client\Model\CardsInfoBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -747,7 +737,7 @@ public function infoUserWithHttpInfo($body = null, $paycomet_api_token = null) * * Get card info * - * @param \Swagger\Client\Model\Body2 $body (optional) + * @param \Swagger\Client\Model\CardsInfoBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -768,7 +758,7 @@ function ($response) { * * Get card info * - * @param \Swagger\Client\Model\Body2 $body (optional) + * @param \Swagger\Client\Model\CardsInfoBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -819,7 +809,7 @@ function ($exception) { /** * Create request for operation 'infoUser' * - * @param \Swagger\Client\Model\Body2 $body (optional) + * @param \Swagger\Client\Model\CardsInfoBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -887,11 +877,6 @@ protected function infoUserRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -918,7 +903,7 @@ protected function infoUserRequest($body = null, $paycomet_api_token = null) * * Tokenize a card by physical encrypted data * - * @param \Swagger\Client\Model\Body5 $body body (optional) + * @param \Swagger\Client\Model\CardsPhysicalBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -936,7 +921,7 @@ public function physicalAddCard($body = null, $paycomet_api_token = null) * * Tokenize a card by physical encrypted data * - * @param \Swagger\Client\Model\Body5 $body (optional) + * @param \Swagger\Client\Model\CardsPhysicalBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -1020,7 +1005,7 @@ public function physicalAddCardWithHttpInfo($body = null, $paycomet_api_token = * * Tokenize a card by physical encrypted data * - * @param \Swagger\Client\Model\Body5 $body (optional) + * @param \Swagger\Client\Model\CardsPhysicalBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1041,7 +1026,7 @@ function ($response) { * * Tokenize a card by physical encrypted data * - * @param \Swagger\Client\Model\Body5 $body (optional) + * @param \Swagger\Client\Model\CardsPhysicalBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1092,7 +1077,7 @@ function ($exception) { /** * Create request for operation 'physicalAddCard' * - * @param \Swagger\Client\Model\Body5 $body (optional) + * @param \Swagger\Client\Model\CardsPhysicalBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1160,11 +1145,6 @@ protected function physicalAddCardRequest($body = null, $paycomet_api_token = nu } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -1191,7 +1171,7 @@ protected function physicalAddCardRequest($body = null, $paycomet_api_token = nu * * Removes a card * - * @param \Swagger\Client\Model\Body3 $body body (optional) + * @param \Swagger\Client\Model\CardsDeleteBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -1209,7 +1189,7 @@ public function removeUser($body = null, $paycomet_api_token = null) * * Removes a card * - * @param \Swagger\Client\Model\Body3 $body (optional) + * @param \Swagger\Client\Model\CardsDeleteBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -1301,7 +1281,7 @@ public function removeUserWithHttpInfo($body = null, $paycomet_api_token = null) * * Removes a card * - * @param \Swagger\Client\Model\Body3 $body (optional) + * @param \Swagger\Client\Model\CardsDeleteBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1322,7 +1302,7 @@ function ($response) { * * Removes a card * - * @param \Swagger\Client\Model\Body3 $body (optional) + * @param \Swagger\Client\Model\CardsDeleteBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1373,7 +1353,7 @@ function ($exception) { /** * Create request for operation 'removeUser' * - * @param \Swagger\Client\Model\Body3 $body (optional) + * @param \Swagger\Client\Model\CardsDeleteBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Token actions privilege required) (optional) * * @throws \InvalidArgumentException @@ -1441,11 +1421,6 @@ protected function removeUserRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/DccApi.php b/lib/Api/DccApi.php index e8a0890..cae09fd 100644 --- a/lib/Api/DccApi.php +++ b/lib/Api/DccApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -93,11 +93,11 @@ public function getConfig() * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) * @param string $order order (required) - * @param \Swagger\Client\Model\Body25 $body body (optional) + * @param \Swagger\Client\Model\OrderConfirmBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20023 + * @return \Swagger\Client\Model\InlineResponse20024 */ public function dccPurchaseConfirm($paycomet_api_token, $order, $body = null) { @@ -112,15 +112,15 @@ public function dccPurchaseConfirm($paycomet_api_token, $order, $body = null) * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body25 $body (optional) + * @param \Swagger\Client\Model\OrderConfirmBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20023, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20024, HTTP status code, HTTP response headers (array of strings) */ public function dccPurchaseConfirmWithHttpInfo($paycomet_api_token, $order, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20023'; + $returnType = '\Swagger\Client\Model\InlineResponse20024'; $request = $this->dccPurchaseConfirmRequest($paycomet_api_token, $order, $body); try { @@ -172,7 +172,7 @@ public function dccPurchaseConfirmWithHttpInfo($paycomet_api_token, $order, $bod case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20023', + '\Swagger\Client\Model\InlineResponse20024', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -197,7 +197,7 @@ public function dccPurchaseConfirmWithHttpInfo($paycomet_api_token, $order, $bod * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body25 $body (optional) + * @param \Swagger\Client\Model\OrderConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -219,14 +219,14 @@ function ($response) { * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body25 $body (optional) + * @param \Swagger\Client\Model\OrderConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function dccPurchaseConfirmAsyncWithHttpInfo($paycomet_api_token, $order, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20023'; + $returnType = '\Swagger\Client\Model\InlineResponse20024'; $request = $this->dccPurchaseConfirmRequest($paycomet_api_token, $order, $body); return $this->client @@ -271,7 +271,7 @@ function ($exception) { * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body25 $body (optional) + * @param \Swagger\Client\Model\OrderConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -358,11 +358,6 @@ protected function dccPurchaseConfirmRequest($paycomet_api_token, $order, $body } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -390,11 +385,11 @@ protected function dccPurchaseConfirmRequest($paycomet_api_token, $order, $body * Create an DCC payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body24 $body body (optional) + * @param \Swagger\Client\Model\PaymentsDccBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20022 + * @return \Swagger\Client\Model\InlineResponse20023 */ public function dccPurchaseCreate($paycomet_api_token, $body = null) { @@ -408,15 +403,15 @@ public function dccPurchaseCreate($paycomet_api_token, $body = null) * Create an DCC payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body24 $body (optional) + * @param \Swagger\Client\Model\PaymentsDccBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20023, HTTP status code, HTTP response headers (array of strings) */ public function dccPurchaseCreateWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20022'; + $returnType = '\Swagger\Client\Model\InlineResponse20023'; $request = $this->dccPurchaseCreateRequest($paycomet_api_token, $body); try { @@ -468,7 +463,7 @@ public function dccPurchaseCreateWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20022', + '\Swagger\Client\Model\InlineResponse20023', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -492,7 +487,7 @@ public function dccPurchaseCreateWithHttpInfo($paycomet_api_token, $body = null) * Create an DCC payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body24 $body (optional) + * @param \Swagger\Client\Model\PaymentsDccBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -513,14 +508,14 @@ function ($response) { * Create an DCC payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body24 $body (optional) + * @param \Swagger\Client\Model\PaymentsDccBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function dccPurchaseCreateAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20022'; + $returnType = '\Swagger\Client\Model\InlineResponse20023'; $request = $this->dccPurchaseCreateRequest($paycomet_api_token, $body); return $this->client @@ -564,7 +559,7 @@ function ($exception) { * Create request for operation 'dccPurchaseCreate' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body24 $body (optional) + * @param \Swagger\Client\Model\PaymentsDccBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -637,11 +632,6 @@ protected function dccPurchaseCreateRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/ErrorApi.php b/lib/Api/ErrorApi.php index 40473b5..ff153dd 100644 --- a/lib/Api/ErrorApi.php +++ b/lib/Api/ErrorApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Gets an error description * - * @param \Swagger\Client\Model\Body $body body (optional) + * @param \Swagger\Client\Model\V1ErrorsBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function infoError($body = null, $paycomet_api_token = null) * * Gets an error description * - * @param \Swagger\Client\Model\Body $body (optional) + * @param \Swagger\Client\Model\V1ErrorsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function infoErrorWithHttpInfo($body = null, $paycomet_api_token = null) * * Gets an error description * - * @param \Swagger\Client\Model\Body $body (optional) + * @param \Swagger\Client\Model\V1ErrorsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Gets an error description * - * @param \Swagger\Client\Model\Body $body (optional) + * @param \Swagger\Client\Model\V1ErrorsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'infoError' * - * @param \Swagger\Client\Model\Body $body (optional) + * @param \Swagger\Client\Model\V1ErrorsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function infoErrorRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/ExchangeApi.php b/lib/Api/ExchangeApi.php index 521a3bc..02c9f4e 100644 --- a/lib/Api/ExchangeApi.php +++ b/lib/Api/ExchangeApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Converts a certain amount from a currency to another. * - * @param \Swagger\Client\Model\Body7 $body body (optional) + * @param \Swagger\Client\Model\V1ExchangeBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function exchange($body = null, $paycomet_api_token = null) * * Converts a certain amount from a currency to another. * - * @param \Swagger\Client\Model\Body7 $body (optional) + * @param \Swagger\Client\Model\V1ExchangeBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -201,7 +201,7 @@ public function exchangeWithHttpInfo($body = null, $paycomet_api_token = null) * * Converts a certain amount from a currency to another. * - * @param \Swagger\Client\Model\Body7 $body (optional) + * @param \Swagger\Client\Model\V1ExchangeBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -222,7 +222,7 @@ function ($response) { * * Converts a certain amount from a currency to another. * - * @param \Swagger\Client\Model\Body7 $body (optional) + * @param \Swagger\Client\Model\V1ExchangeBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -273,7 +273,7 @@ function ($exception) { /** * Create request for operation 'exchange' * - * @param \Swagger\Client\Model\Body7 $body (optional) + * @param \Swagger\Client\Model\V1ExchangeBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -341,11 +341,6 @@ protected function exchangeRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/FormApi.php b/lib/Api/FormApi.php index ba12304..2a74548 100644 --- a/lib/Api/FormApi.php +++ b/lib/Api/FormApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Create form view for user capture * - * @param \Swagger\Client\Model\Body12 $body body (optional) + * @param \Swagger\Client\Model\V1FormBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function form($body = null, $paycomet_api_token = null) * * Create form view for user capture * - * @param \Swagger\Client\Model\Body12 $body (optional) + * @param \Swagger\Client\Model\V1FormBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function formWithHttpInfo($body = null, $paycomet_api_token = null) * * Create form view for user capture * - * @param \Swagger\Client\Model\Body12 $body (optional) + * @param \Swagger\Client\Model\V1FormBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Create form view for user capture * - * @param \Swagger\Client\Model\Body12 $body (optional) + * @param \Swagger\Client\Model\V1FormBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'form' * - * @param \Swagger\Client\Model\Body12 $body (optional) + * @param \Swagger\Client\Model\V1FormBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required, token actions privilege required in case of tokenization) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function formRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/HeartbeatApi.php b/lib/Api/HeartbeatApi.php index a6f79a3..5da3975 100644 --- a/lib/Api/HeartbeatApi.php +++ b/lib/Api/HeartbeatApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Check the system * - * @param \Swagger\Client\Model\Body8 $body body (optional) + * @param \Swagger\Client\Model\V1HeartbeatBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function heartbeat($body = null, $paycomet_api_token = null) * * Check the system * - * @param \Swagger\Client\Model\Body8 $body (optional) + * @param \Swagger\Client\Model\V1HeartbeatBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function heartbeatWithHttpInfo($body = null, $paycomet_api_token = null) * * Check the system * - * @param \Swagger\Client\Model\Body8 $body (optional) + * @param \Swagger\Client\Model\V1HeartbeatBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Check the system * - * @param \Swagger\Client\Model\Body8 $body (optional) + * @param \Swagger\Client\Model\V1HeartbeatBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'heartbeat' * - * @param \Swagger\Client\Model\Body8 $body (optional) + * @param \Swagger\Client\Model\V1HeartbeatBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function heartbeatRequest($body = null, $paycomet_api_token = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/IVRApi.php b/lib/Api/IVRApi.php index d2ef6c1..1a42bae 100644 --- a/lib/Api/IVRApi.php +++ b/lib/Api/IVRApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -92,11 +92,11 @@ public function getConfig() * Checks an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body35 $body body (optional) + * @param \Swagger\Client\Model\IvrSessionstateBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20030 + * @return \Swagger\Client\Model\InlineResponse20031 */ public function checkSession($paycomet_api_token, $body = null) { @@ -110,15 +110,15 @@ public function checkSession($paycomet_api_token, $body = null) * Checks an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body35 $body (optional) + * @param \Swagger\Client\Model\IvrSessionstateBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20030, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20031, HTTP status code, HTTP response headers (array of strings) */ public function checkSessionWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20030'; + $returnType = '\Swagger\Client\Model\InlineResponse20031'; $request = $this->checkSessionRequest($paycomet_api_token, $body); try { @@ -170,7 +170,7 @@ public function checkSessionWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20030', + '\Swagger\Client\Model\InlineResponse20031', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -194,7 +194,7 @@ public function checkSessionWithHttpInfo($paycomet_api_token, $body = null) * Checks an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body35 $body (optional) + * @param \Swagger\Client\Model\IvrSessionstateBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -215,14 +215,14 @@ function ($response) { * Checks an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body35 $body (optional) + * @param \Swagger\Client\Model\IvrSessionstateBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function checkSessionAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20030'; + $returnType = '\Swagger\Client\Model\InlineResponse20031'; $request = $this->checkSessionRequest($paycomet_api_token, $body); return $this->client @@ -266,7 +266,7 @@ function ($exception) { * Create request for operation 'checkSession' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body35 $body (optional) + * @param \Swagger\Client\Model\IvrSessionstateBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -339,11 +339,6 @@ protected function checkSessionRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -371,11 +366,11 @@ protected function checkSessionRequest($paycomet_api_token, $body = null) * Creates an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body34 $body body (optional) + * @param \Swagger\Client\Model\IvrGetsessionBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20029 + * @return \Swagger\Client\Model\InlineResponse20030 */ public function getSession($paycomet_api_token, $body = null) { @@ -389,15 +384,15 @@ public function getSession($paycomet_api_token, $body = null) * Creates an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body34 $body (optional) + * @param \Swagger\Client\Model\IvrGetsessionBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20029, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20030, HTTP status code, HTTP response headers (array of strings) */ public function getSessionWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20029'; + $returnType = '\Swagger\Client\Model\InlineResponse20030'; $request = $this->getSessionRequest($paycomet_api_token, $body); try { @@ -449,7 +444,7 @@ public function getSessionWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20029', + '\Swagger\Client\Model\InlineResponse20030', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -473,7 +468,7 @@ public function getSessionWithHttpInfo($paycomet_api_token, $body = null) * Creates an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body34 $body (optional) + * @param \Swagger\Client\Model\IvrGetsessionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -494,14 +489,14 @@ function ($response) { * Creates an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body34 $body (optional) + * @param \Swagger\Client\Model\IvrGetsessionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function getSessionAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20029'; + $returnType = '\Swagger\Client\Model\InlineResponse20030'; $request = $this->getSessionRequest($paycomet_api_token, $body); return $this->client @@ -545,7 +540,7 @@ function ($exception) { * Create request for operation 'getSession' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body34 $body (optional) + * @param \Swagger\Client\Model\IvrGetsessionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -618,11 +613,6 @@ protected function getSessionRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -650,11 +640,11 @@ protected function getSessionRequest($paycomet_api_token, $body = null) * Cancel an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body36 $body body (optional) + * @param \Swagger\Client\Model\IvrSessioncancelBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20031 + * @return \Swagger\Client\Model\InlineResponse20032 */ public function sessionCancel($paycomet_api_token, $body = null) { @@ -668,15 +658,15 @@ public function sessionCancel($paycomet_api_token, $body = null) * Cancel an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body36 $body (optional) + * @param \Swagger\Client\Model\IvrSessioncancelBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20031, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20032, HTTP status code, HTTP response headers (array of strings) */ public function sessionCancelWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20031'; + $returnType = '\Swagger\Client\Model\InlineResponse20032'; $request = $this->sessionCancelRequest($paycomet_api_token, $body); try { @@ -728,7 +718,7 @@ public function sessionCancelWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20031', + '\Swagger\Client\Model\InlineResponse20032', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -752,7 +742,7 @@ public function sessionCancelWithHttpInfo($paycomet_api_token, $body = null) * Cancel an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body36 $body (optional) + * @param \Swagger\Client\Model\IvrSessioncancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -773,14 +763,14 @@ function ($response) { * Cancel an IVR session * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body36 $body (optional) + * @param \Swagger\Client\Model\IvrSessioncancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function sessionCancelAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20031'; + $returnType = '\Swagger\Client\Model\InlineResponse20032'; $request = $this->sessionCancelRequest($paycomet_api_token, $body); return $this->client @@ -824,7 +814,7 @@ function ($exception) { * Create request for operation 'sessionCancel' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body36 $body (optional) + * @param \Swagger\Client\Model\IvrSessioncancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -897,11 +887,6 @@ protected function sessionCancelRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/IpApi.php b/lib/Api/IpApi.php index 5599b5f..6ba2f65 100644 --- a/lib/Api/IpApi.php +++ b/lib/Api/IpApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Retrieves country info by IP * - * @param \Swagger\Client\Model\Body10 $body body (optional) + * @param \Swagger\Client\Model\V1IpBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function getCountrybyIP($body = null, $paycomet_api_token = null) * * Retrieves country info by IP * - * @param \Swagger\Client\Model\Body10 $body (optional) + * @param \Swagger\Client\Model\V1IpBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function getCountrybyIPWithHttpInfo($body = null, $paycomet_api_token = n * * Retrieves country info by IP * - * @param \Swagger\Client\Model\Body10 $body (optional) + * @param \Swagger\Client\Model\V1IpBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Retrieves country info by IP * - * @param \Swagger\Client\Model\Body10 $body (optional) + * @param \Swagger\Client\Model\V1IpBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'getCountrybyIP' * - * @param \Swagger\Client\Model\Body10 $body (optional) + * @param \Swagger\Client\Model\V1IpBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function getCountrybyIPRequest($body = null, $paycomet_api_token = nul } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/LaunchpadApi.php b/lib/Api/LaunchpadApi.php index 35258f5..3c32610 100644 --- a/lib/Api/LaunchpadApi.php +++ b/lib/Api/LaunchpadApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,12 +91,12 @@ public function getConfig() * * Creates a payment link and sends it to customer * - * @param \Swagger\Client\Model\Body37 $body body (optional) + * @param \Swagger\Client\Model\LaunchpadAuthorizationBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20021 + * @return \Swagger\Client\Model\InlineResponse20022 */ public function launchAuthorization($body = null, $paycomet_api_token = null) { @@ -109,16 +109,16 @@ public function launchAuthorization($body = null, $paycomet_api_token = null) * * Creates a payment link and sends it to customer * - * @param \Swagger\Client\Model\Body37 $body (optional) + * @param \Swagger\Client\Model\LaunchpadAuthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20021, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) */ public function launchAuthorizationWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchAuthorizationRequest($body, $paycomet_api_token); try { @@ -170,7 +170,7 @@ public function launchAuthorizationWithHttpInfo($body = null, $paycomet_api_toke case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20021', + '\Swagger\Client\Model\InlineResponse20022', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -193,7 +193,7 @@ public function launchAuthorizationWithHttpInfo($body = null, $paycomet_api_toke * * Creates a payment link and sends it to customer * - * @param \Swagger\Client\Model\Body37 $body (optional) + * @param \Swagger\Client\Model\LaunchpadAuthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Creates a payment link and sends it to customer * - * @param \Swagger\Client\Model\Body37 $body (optional) + * @param \Swagger\Client\Model\LaunchpadAuthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -222,7 +222,7 @@ function ($response) { */ public function launchAuthorizationAsyncWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchAuthorizationRequest($body, $paycomet_api_token); return $this->client @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'launchAuthorization' * - * @param \Swagger\Client\Model\Body37 $body (optional) + * @param \Swagger\Client\Model\LaunchpadAuthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function launchAuthorizationRequest($body = null, $paycomet_api_token } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -364,12 +359,12 @@ protected function launchAuthorizationRequest($body = null, $paycomet_api_token * * Executes a preauthorization link and sends it to customer * - * @param \Swagger\Client\Model\Body38 $body body (optional) + * @param \Swagger\Client\Model\LaunchpadPreauthorizationBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20021 + * @return \Swagger\Client\Model\InlineResponse20022 */ public function launchPreauthorization($body = null, $paycomet_api_token = null) { @@ -382,16 +377,16 @@ public function launchPreauthorization($body = null, $paycomet_api_token = null) * * Executes a preauthorization link and sends it to customer * - * @param \Swagger\Client\Model\Body38 $body (optional) + * @param \Swagger\Client\Model\LaunchpadPreauthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20021, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) */ public function launchPreauthorizationWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchPreauthorizationRequest($body, $paycomet_api_token); try { @@ -443,7 +438,7 @@ public function launchPreauthorizationWithHttpInfo($body = null, $paycomet_api_t case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20021', + '\Swagger\Client\Model\InlineResponse20022', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -466,7 +461,7 @@ public function launchPreauthorizationWithHttpInfo($body = null, $paycomet_api_t * * Executes a preauthorization link and sends it to customer * - * @param \Swagger\Client\Model\Body38 $body (optional) + * @param \Swagger\Client\Model\LaunchpadPreauthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -487,7 +482,7 @@ function ($response) { * * Executes a preauthorization link and sends it to customer * - * @param \Swagger\Client\Model\Body38 $body (optional) + * @param \Swagger\Client\Model\LaunchpadPreauthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -495,7 +490,7 @@ function ($response) { */ public function launchPreauthorizationAsyncWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchPreauthorizationRequest($body, $paycomet_api_token); return $this->client @@ -538,7 +533,7 @@ function ($exception) { /** * Create request for operation 'launchPreauthorization' * - * @param \Swagger\Client\Model\Body38 $body (optional) + * @param \Swagger\Client\Model\LaunchpadPreauthorizationBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -606,11 +601,6 @@ protected function launchPreauthorizationRequest($body = null, $paycomet_api_tok } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -637,12 +627,12 @@ protected function launchPreauthorizationRequest($body = null, $paycomet_api_tok * * Creates a subscription link and sends it to customer * - * @param \Swagger\Client\Model\Body39 $body body (optional) + * @param \Swagger\Client\Model\LaunchpadSubscriptionBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20021 + * @return \Swagger\Client\Model\InlineResponse20022 */ public function launchSubscription($body = null, $paycomet_api_token = null) { @@ -655,16 +645,16 @@ public function launchSubscription($body = null, $paycomet_api_token = null) * * Creates a subscription link and sends it to customer * - * @param \Swagger\Client\Model\Body39 $body (optional) + * @param \Swagger\Client\Model\LaunchpadSubscriptionBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20021, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) */ public function launchSubscriptionWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchSubscriptionRequest($body, $paycomet_api_token); try { @@ -716,7 +706,7 @@ public function launchSubscriptionWithHttpInfo($body = null, $paycomet_api_token case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20021', + '\Swagger\Client\Model\InlineResponse20022', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -739,7 +729,7 @@ public function launchSubscriptionWithHttpInfo($body = null, $paycomet_api_token * * Creates a subscription link and sends it to customer * - * @param \Swagger\Client\Model\Body39 $body (optional) + * @param \Swagger\Client\Model\LaunchpadSubscriptionBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -760,7 +750,7 @@ function ($response) { * * Creates a subscription link and sends it to customer * - * @param \Swagger\Client\Model\Body39 $body (optional) + * @param \Swagger\Client\Model\LaunchpadSubscriptionBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -768,7 +758,7 @@ function ($response) { */ public function launchSubscriptionAsyncWithHttpInfo($body = null, $paycomet_api_token = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $returnType = '\Swagger\Client\Model\InlineResponse20022'; $request = $this->launchSubscriptionRequest($body, $paycomet_api_token); return $this->client @@ -811,7 +801,7 @@ function ($exception) { /** * Create request for operation 'launchSubscription' * - * @param \Swagger\Client\Model\Body39 $body (optional) + * @param \Swagger\Client\Model\LaunchpadSubscriptionBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -879,11 +869,6 @@ protected function launchSubscriptionRequest($body = null, $paycomet_api_token = } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/MarketplaceApi.php b/lib/Api/MarketplaceApi.php index ccf2873..fe208b9 100644 --- a/lib/Api/MarketplaceApi.php +++ b/lib/Api/MarketplaceApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -92,11 +92,11 @@ public function getConfig() * Make a transfer to other accounts on PAYCOMET * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body26 $body body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20024 + * @return \Swagger\Client\Model\InlineResponse20025 */ public function splitTransfer($paycomet_api_token, $body = null) { @@ -110,15 +110,15 @@ public function splitTransfer($paycomet_api_token, $body = null) * Make a transfer to other accounts on PAYCOMET * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body26 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20024, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20025, HTTP status code, HTTP response headers (array of strings) */ public function splitTransferWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20024'; + $returnType = '\Swagger\Client\Model\InlineResponse20025'; $request = $this->splitTransferRequest($paycomet_api_token, $body); try { @@ -170,7 +170,7 @@ public function splitTransferWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20024', + '\Swagger\Client\Model\InlineResponse20025', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -194,7 +194,7 @@ public function splitTransferWithHttpInfo($paycomet_api_token, $body = null) * Make a transfer to other accounts on PAYCOMET * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body26 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -215,14 +215,14 @@ function ($response) { * Make a transfer to other accounts on PAYCOMET * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body26 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function splitTransferAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20024'; + $returnType = '\Swagger\Client\Model\InlineResponse20025'; $request = $this->splitTransferRequest($paycomet_api_token, $body); return $this->client @@ -266,7 +266,7 @@ function ($exception) { * Create request for operation 'splitTransfer' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body26 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -339,11 +339,6 @@ protected function splitTransferRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -371,11 +366,11 @@ protected function splitTransferRequest($paycomet_api_token, $body = null) * Run a split transfer reversal based on a previous split transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body27 $body body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferreversalBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20024 + * @return \Swagger\Client\Model\InlineResponse20025 */ public function splitTransferReversal($paycomet_api_token, $body = null) { @@ -389,15 +384,15 @@ public function splitTransferReversal($paycomet_api_token, $body = null) * Run a split transfer reversal based on a previous split transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body27 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferreversalBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20024, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20025, HTTP status code, HTTP response headers (array of strings) */ public function splitTransferReversalWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20024'; + $returnType = '\Swagger\Client\Model\InlineResponse20025'; $request = $this->splitTransferReversalRequest($paycomet_api_token, $body); try { @@ -449,7 +444,7 @@ public function splitTransferReversalWithHttpInfo($paycomet_api_token, $body = n case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20024', + '\Swagger\Client\Model\InlineResponse20025', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -473,7 +468,7 @@ public function splitTransferReversalWithHttpInfo($paycomet_api_token, $body = n * Run a split transfer reversal based on a previous split transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body27 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -494,14 +489,14 @@ function ($response) { * Run a split transfer reversal based on a previous split transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body27 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function splitTransferReversalAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20024'; + $returnType = '\Swagger\Client\Model\InlineResponse20025'; $request = $this->splitTransferReversalRequest($paycomet_api_token, $body); return $this->client @@ -545,7 +540,7 @@ function ($exception) { * Create request for operation 'splitTransferReversal' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body27 $body (optional) + * @param \Swagger\Client\Model\MarketplaceSplittransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -618,11 +613,6 @@ protected function splitTransferReversalRequest($paycomet_api_token, $body = nul } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -650,11 +640,11 @@ protected function splitTransferReversalRequest($paycomet_api_token, $body = nul * Run a transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body28 $body body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20025 + * @return \Swagger\Client\Model\InlineResponse20026 */ public function transfer($paycomet_api_token, $body = null) { @@ -668,15 +658,15 @@ public function transfer($paycomet_api_token, $body = null) * Run a transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body28 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20025, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20026, HTTP status code, HTTP response headers (array of strings) */ public function transferWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20025'; + $returnType = '\Swagger\Client\Model\InlineResponse20026'; $request = $this->transferRequest($paycomet_api_token, $body); try { @@ -728,7 +718,7 @@ public function transferWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20025', + '\Swagger\Client\Model\InlineResponse20026', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -752,7 +742,7 @@ public function transferWithHttpInfo($paycomet_api_token, $body = null) * Run a transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body28 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -773,14 +763,14 @@ function ($response) { * Run a transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body28 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function transferAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20025'; + $returnType = '\Swagger\Client\Model\InlineResponse20026'; $request = $this->transferRequest($paycomet_api_token, $body); return $this->client @@ -824,7 +814,7 @@ function ($exception) { * Create request for operation 'transfer' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body28 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -897,11 +887,6 @@ protected function transferRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -929,11 +914,11 @@ protected function transferRequest($paycomet_api_token, $body = null) * Make a transfer reversal based on a previous transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body29 $body body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferreversalBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20025 + * @return \Swagger\Client\Model\InlineResponse20026 */ public function transferReversal($paycomet_api_token, $body = null) { @@ -947,15 +932,15 @@ public function transferReversal($paycomet_api_token, $body = null) * Make a transfer reversal based on a previous transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body29 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferreversalBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20025, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20026, HTTP status code, HTTP response headers (array of strings) */ public function transferReversalWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20025'; + $returnType = '\Swagger\Client\Model\InlineResponse20026'; $request = $this->transferReversalRequest($paycomet_api_token, $body); try { @@ -1007,7 +992,7 @@ public function transferReversalWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20025', + '\Swagger\Client\Model\InlineResponse20026', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1031,7 +1016,7 @@ public function transferReversalWithHttpInfo($paycomet_api_token, $body = null) * Make a transfer reversal based on a previous transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body29 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1052,14 +1037,14 @@ function ($response) { * Make a transfer reversal based on a previous transfer * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body29 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function transferReversalAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20025'; + $returnType = '\Swagger\Client\Model\InlineResponse20026'; $request = $this->transferReversalRequest($paycomet_api_token, $body); return $this->client @@ -1103,7 +1088,7 @@ function ($exception) { * Create request for operation 'transferReversal' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body29 $body (optional) + * @param \Swagger\Client\Model\MarketplaceTransferreversalBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1176,11 +1161,6 @@ protected function transferReversalRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/MethodsApi.php b/lib/Api/MethodsApi.php index 9760de7..31db8e5 100644 --- a/lib/Api/MethodsApi.php +++ b/lib/Api/MethodsApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Retrieves product methods * - * @param \Swagger\Client\Model\Body11 $body body (optional) + * @param \Swagger\Client\Model\V1MethodsBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function getUserPaymentMethods($body = null, $paycomet_api_token = null) * * Retrieves product methods * - * @param \Swagger\Client\Model\Body11 $body (optional) + * @param \Swagger\Client\Model\V1MethodsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function getUserPaymentMethodsWithHttpInfo($body = null, $paycomet_api_to * * Retrieves product methods * - * @param \Swagger\Client\Model\Body11 $body (optional) + * @param \Swagger\Client\Model\V1MethodsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Retrieves product methods * - * @param \Swagger\Client\Model\Body11 $body (optional) + * @param \Swagger\Client\Model\V1MethodsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'getUserPaymentMethods' * - * @param \Swagger\Client\Model\Body11 $body (optional) + * @param \Swagger\Client\Model\V1MethodsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function getUserPaymentMethodsRequest($body = null, $paycomet_api_toke } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/MiraklApi.php b/lib/Api/MiraklApi.php index 4f5afb5..4a90a4a 100644 --- a/lib/Api/MiraklApi.php +++ b/lib/Api/MiraklApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -92,7 +92,7 @@ public function getConfig() * Search Mirakl invoices * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body9 $body body (optional) + * @param \Swagger\Client\Model\V1InvoicesBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -110,7 +110,7 @@ public function miraklInvoicesSearch($paycomet_api_token, $body = null) * Search Mirakl invoices * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body9 $body (optional) + * @param \Swagger\Client\Model\V1InvoicesBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -194,7 +194,7 @@ public function miraklInvoicesSearchWithHttpInfo($paycomet_api_token, $body = nu * Search Mirakl invoices * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body9 $body (optional) + * @param \Swagger\Client\Model\V1InvoicesBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -215,7 +215,7 @@ function ($response) { * Search Mirakl invoices * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body9 $body (optional) + * @param \Swagger\Client\Model\V1InvoicesBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -266,7 +266,7 @@ function ($exception) { * Create request for operation 'miraklInvoicesSearch' * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body9 $body (optional) + * @param \Swagger\Client\Model\V1InvoicesBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -339,11 +339,6 @@ protected function miraklInvoicesSearchRequest($paycomet_api_token, $body = null } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/PaymentsApi.php b/lib/Api/PaymentsApi.php index 4795a3e..27f8672 100644 --- a/lib/Api/PaymentsApi.php +++ b/lib/Api/PaymentsApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -91,7 +91,7 @@ public function getConfig() * * Executes a payment * - * @param \Swagger\Client\Model\Body13 $body body (optional) + * @param \Swagger\Client\Model\V1PaymentsBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -109,7 +109,7 @@ public function executePurchase($body = null, $paycomet_api_token = null) * * Executes a payment * - * @param \Swagger\Client\Model\Body13 $body (optional) + * @param \Swagger\Client\Model\V1PaymentsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -193,7 +193,7 @@ public function executePurchaseWithHttpInfo($body = null, $paycomet_api_token = * * Executes a payment * - * @param \Swagger\Client\Model\Body13 $body (optional) + * @param \Swagger\Client\Model\V1PaymentsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -214,7 +214,7 @@ function ($response) { * * Executes a payment * - * @param \Swagger\Client\Model\Body13 $body (optional) + * @param \Swagger\Client\Model\V1PaymentsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -265,7 +265,7 @@ function ($exception) { /** * Create request for operation 'executePurchase' * - * @param \Swagger\Client\Model\Body13 $body (optional) + * @param \Swagger\Client\Model\V1PaymentsBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -333,11 +333,6 @@ protected function executePurchaseRequest($body = null, $paycomet_api_token = nu } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -364,7 +359,7 @@ protected function executePurchaseRequest($body = null, $paycomet_api_token = nu * * Executes a payment by refence * - * @param \Swagger\Client\Model\Body20 $body body (optional) + * @param \Swagger\Client\Model\PaymentsRtokenBody $body body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -382,7 +377,7 @@ public function executePurchaseRtoken($body = null, $paycomet_api_token = null) * * Executes a payment by refence * - * @param \Swagger\Client\Model\Body20 $body (optional) + * @param \Swagger\Client\Model\PaymentsRtokenBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \Swagger\Client\ApiException on non-2xx response @@ -466,7 +461,7 @@ public function executePurchaseRtokenWithHttpInfo($body = null, $paycomet_api_to * * Executes a payment by refence * - * @param \Swagger\Client\Model\Body20 $body (optional) + * @param \Swagger\Client\Model\PaymentsRtokenBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -487,7 +482,7 @@ function ($response) { * * Executes a payment by refence * - * @param \Swagger\Client\Model\Body20 $body (optional) + * @param \Swagger\Client\Model\PaymentsRtokenBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -538,7 +533,7 @@ function ($exception) { /** * Create request for operation 'executePurchaseRtoken' * - * @param \Swagger\Client\Model\Body20 $body (optional) + * @param \Swagger\Client\Model\PaymentsRtokenBody $body (optional) * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) * * @throws \InvalidArgumentException @@ -606,11 +601,6 @@ protected function executePurchaseRtokenRequest($body = null, $paycomet_api_toke } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -639,7 +629,7 @@ protected function executePurchaseRtokenRequest($body = null, $paycomet_api_toke * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) * @param string $order order (required) - * @param \Swagger\Client\Model\Body15 $body body (optional) + * @param \Swagger\Client\Model\OrderInfoBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -658,7 +648,7 @@ public function operationInfo($paycomet_api_token, $order, $body = null) * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body15 $body (optional) + * @param \Swagger\Client\Model\OrderInfoBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -743,7 +733,7 @@ public function operationInfoWithHttpInfo($paycomet_api_token, $order, $body = n * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body15 $body (optional) + * @param \Swagger\Client\Model\OrderInfoBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -765,7 +755,7 @@ function ($response) { * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body15 $body (optional) + * @param \Swagger\Client\Model\OrderInfoBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -817,7 +807,7 @@ function ($exception) { * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body15 $body (optional) + * @param \Swagger\Client\Model\OrderInfoBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -904,11 +894,6 @@ protected function operationInfoRequest($paycomet_api_token, $order, $body = nul } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -936,7 +921,7 @@ protected function operationInfoRequest($paycomet_api_token, $order, $body = nul * Search orders * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body16 $body body (optional) + * @param \Swagger\Client\Model\PaymentsSearchBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -954,7 +939,7 @@ public function operationSearch($paycomet_api_token, $body = null) * Search orders * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body16 $body (optional) + * @param \Swagger\Client\Model\PaymentsSearchBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1038,7 +1023,7 @@ public function operationSearchWithHttpInfo($paycomet_api_token, $body = null) * Search orders * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body16 $body (optional) + * @param \Swagger\Client\Model\PaymentsSearchBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1059,7 +1044,7 @@ function ($response) { * Search orders * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body16 $body (optional) + * @param \Swagger\Client\Model\PaymentsSearchBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1110,7 +1095,7 @@ function ($exception) { * Create request for operation 'operationSearch' * * @param string $paycomet_api_token PAYCOMET API key (Query privilege required) (required) - * @param \Swagger\Client\Model\Body16 $body (optional) + * @param \Swagger\Client\Model\PaymentsSearchBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1183,11 +1168,6 @@ protected function operationSearchRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/PreauthorizationsApi.php b/lib/Api/PreauthorizationsApi.php index 0f366d0..02679be 100644 --- a/lib/Api/PreauthorizationsApi.php +++ b/lib/Api/PreauthorizationsApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -93,7 +93,7 @@ public function getConfig() * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order order (required) - * @param \Swagger\Client\Model\Body18 $body body (optional) + * @param \Swagger\Client\Model\PreauthCancelBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -112,7 +112,7 @@ public function cancelPreauthorization($paycomet_api_token, $order, $body = null * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body18 $body (optional) + * @param \Swagger\Client\Model\PreauthCancelBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -197,7 +197,7 @@ public function cancelPreauthorizationWithHttpInfo($paycomet_api_token, $order, * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body18 $body (optional) + * @param \Swagger\Client\Model\PreauthCancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -219,7 +219,7 @@ function ($response) { * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body18 $body (optional) + * @param \Swagger\Client\Model\PreauthCancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -271,7 +271,7 @@ function ($exception) { * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body18 $body (optional) + * @param \Swagger\Client\Model\PreauthCancelBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -358,11 +358,6 @@ protected function cancelPreauthorizationRequest($paycomet_api_token, $order, $b } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -391,7 +386,7 @@ protected function cancelPreauthorizationRequest($paycomet_api_token, $order, $b * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order order (required) - * @param \Swagger\Client\Model\Body19 $body body (optional) + * @param \Swagger\Client\Model\PreauthConfirmBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -410,7 +405,7 @@ public function confirmPreauthorization($paycomet_api_token, $order, $body = nul * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body19 $body (optional) + * @param \Swagger\Client\Model\PreauthConfirmBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -495,7 +490,7 @@ public function confirmPreauthorizationWithHttpInfo($paycomet_api_token, $order, * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body19 $body (optional) + * @param \Swagger\Client\Model\PreauthConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -517,7 +512,7 @@ function ($response) { * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body19 $body (optional) + * @param \Swagger\Client\Model\PreauthConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -569,7 +564,7 @@ function ($exception) { * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body19 $body (optional) + * @param \Swagger\Client\Model\PreauthConfirmBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -656,11 +651,6 @@ protected function confirmPreauthorizationRequest($paycomet_api_token, $order, $ } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -688,7 +678,7 @@ protected function confirmPreauthorizationRequest($paycomet_api_token, $order, $ * Create preauthorization * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) - * @param \Swagger\Client\Model\Body17 $body body (optional) + * @param \Swagger\Client\Model\PaymentsPreauthBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -706,7 +696,7 @@ public function createPreauthoritation($paycomet_api_token, $body = null) * Create preauthorization * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) - * @param \Swagger\Client\Model\Body17 $body (optional) + * @param \Swagger\Client\Model\PaymentsPreauthBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -790,7 +780,7 @@ public function createPreauthoritationWithHttpInfo($paycomet_api_token, $body = * Create preauthorization * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) - * @param \Swagger\Client\Model\Body17 $body (optional) + * @param \Swagger\Client\Model\PaymentsPreauthBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -811,7 +801,7 @@ function ($response) { * Create preauthorization * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) - * @param \Swagger\Client\Model\Body17 $body (optional) + * @param \Swagger\Client\Model\PaymentsPreauthBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -862,7 +852,7 @@ function ($exception) { * Create request for operation 'createPreauthoritation' * * @param string $paycomet_api_token PAYCOMET API key (Preauthorization privilege required) (required) - * @param \Swagger\Client\Model\Body17 $body (optional) + * @param \Swagger\Client\Model\PaymentsPreauthBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -935,11 +925,274 @@ protected function createPreauthoritationRequest($paycomet_api_token, $body = nu } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; + + $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 createPreauthorizationRtoken + * + * Creates a preauthorization by reference + * + * @param \Swagger\Client\Model\PaymentsPreauthrtokenBody $body body (optional) + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\InlineResponse20018 + */ + public function createPreauthorizationRtoken($body = null, $paycomet_api_token = null) + { + list($response) = $this->createPreauthorizationRtokenWithHttpInfo($body, $paycomet_api_token); + return $response; + } + + /** + * Operation createPreauthorizationRtokenWithHttpInfo + * + * Creates a preauthorization by reference + * + * @param \Swagger\Client\Model\PaymentsPreauthrtokenBody $body (optional) + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\InlineResponse20018, HTTP status code, HTTP response headers (array of strings) + */ + public function createPreauthorizationRtokenWithHttpInfo($body = null, $paycomet_api_token = null) + { + $returnType = '\Swagger\Client\Model\InlineResponse20018'; + $request = $this->createPreauthorizationRtokenRequest($body, $paycomet_api_token); + + 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() ? $e->getResponse()->getBody()->getContents() : 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(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\InlineResponse20018', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\InlineResponse422', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; } + } + + /** + * Operation createPreauthorizationRtokenAsync + * + * Creates a preauthorization by reference + * + * @param \Swagger\Client\Model\PaymentsPreauthrtokenBody $body (optional) + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createPreauthorizationRtokenAsync($body = null, $paycomet_api_token = null) + { + return $this->createPreauthorizationRtokenAsyncWithHttpInfo($body, $paycomet_api_token) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation createPreauthorizationRtokenAsyncWithHttpInfo + * + * Creates a preauthorization by reference + * + * @param \Swagger\Client\Model\PaymentsPreauthrtokenBody $body (optional) + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function createPreauthorizationRtokenAsyncWithHttpInfo($body = null, $paycomet_api_token = null) + { + $returnType = '\Swagger\Client\Model\InlineResponse20018'; + $request = $this->createPreauthorizationRtokenRequest($body, $paycomet_api_token); + + 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 = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + 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 'createPreauthorizationRtoken' + * + * @param \Swagger\Client\Model\PaymentsPreauthrtokenBody $body (optional) + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function createPreauthorizationRtokenRequest($body = null, $paycomet_api_token = null) + { + + $resourcePath = '/v1/payments/preauthrtoken'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($paycomet_api_token !== null) { + $headerParams['PAYCOMET-API-TOKEN'] = ObjectSerializer::toHeaderValue($paycomet_api_token); + } + + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + 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 + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } 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); + } + } + $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/RefundApi.php b/lib/Api/RefundApi.php index 6516583..1ca638a 100644 --- a/lib/Api/RefundApi.php +++ b/lib/Api/RefundApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -93,7 +93,7 @@ public function getConfig() * * @param string $paycomet_api_token PAYCOMET API key (Refund privilege required) (required) * @param string $order order (required) - * @param \Swagger\Client\Model\Body14 $body body (optional) + * @param \Swagger\Client\Model\OrderRefundBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -112,7 +112,7 @@ public function executeRefund($paycomet_api_token, $order, $body = null) * * @param string $paycomet_api_token PAYCOMET API key (Refund privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body14 $body (optional) + * @param \Swagger\Client\Model\OrderRefundBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -197,7 +197,7 @@ public function executeRefundWithHttpInfo($paycomet_api_token, $order, $body = n * * @param string $paycomet_api_token PAYCOMET API key (Refund privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body14 $body (optional) + * @param \Swagger\Client\Model\OrderRefundBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -219,7 +219,7 @@ function ($response) { * * @param string $paycomet_api_token PAYCOMET API key (Refund privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body14 $body (optional) + * @param \Swagger\Client\Model\OrderRefundBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -271,7 +271,7 @@ function ($exception) { * * @param string $paycomet_api_token PAYCOMET API key (Refund privilege required) (required) * @param string $order (required) - * @param \Swagger\Client\Model\Body14 $body (optional) + * @param \Swagger\Client\Model\OrderRefundBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -358,11 +358,6 @@ protected function executeRefundRequest($paycomet_api_token, $order, $body = nul } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/SepaApi.php b/lib/Api/SepaApi.php index 406af96..14e79bf 100644 --- a/lib/Api/SepaApi.php +++ b/lib/Api/SepaApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -92,11 +92,11 @@ public function getConfig() * Adds a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body30 $body body (optional) + * @param \Swagger\Client\Model\SepaAdddocumentBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20026 + * @return \Swagger\Client\Model\InlineResponse20027 */ public function addDocument($paycomet_api_token, $body = null) { @@ -110,15 +110,15 @@ public function addDocument($paycomet_api_token, $body = null) * Adds a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body30 $body (optional) + * @param \Swagger\Client\Model\SepaAdddocumentBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20026, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20027, HTTP status code, HTTP response headers (array of strings) */ public function addDocumentWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20026'; + $returnType = '\Swagger\Client\Model\InlineResponse20027'; $request = $this->addDocumentRequest($paycomet_api_token, $body); try { @@ -170,7 +170,7 @@ public function addDocumentWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20026', + '\Swagger\Client\Model\InlineResponse20027', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -194,7 +194,7 @@ public function addDocumentWithHttpInfo($paycomet_api_token, $body = null) * Adds a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body30 $body (optional) + * @param \Swagger\Client\Model\SepaAdddocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -215,14 +215,14 @@ function ($response) { * Adds a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body30 $body (optional) + * @param \Swagger\Client\Model\SepaAdddocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function addDocumentAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20026'; + $returnType = '\Swagger\Client\Model\InlineResponse20027'; $request = $this->addDocumentRequest($paycomet_api_token, $body); return $this->client @@ -266,7 +266,7 @@ function ($exception) { * Create request for operation 'addDocument' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body30 $body (optional) + * @param \Swagger\Client\Model\SepaAdddocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -339,11 +339,6 @@ protected function addDocumentRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -371,11 +366,11 @@ protected function addDocumentRequest($paycomet_api_token, $body = null) * Check a customers SEPA documentation * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body32 $body body (optional) + * @param \Swagger\Client\Model\SepaCheckcustomerBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20027 + * @return \Swagger\Client\Model\InlineResponse20028 */ public function checkCustomer($paycomet_api_token, $body = null) { @@ -389,15 +384,15 @@ public function checkCustomer($paycomet_api_token, $body = null) * Check a customers SEPA documentation * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body32 $body (optional) + * @param \Swagger\Client\Model\SepaCheckcustomerBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20027, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20028, HTTP status code, HTTP response headers (array of strings) */ public function checkCustomerWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20027'; + $returnType = '\Swagger\Client\Model\InlineResponse20028'; $request = $this->checkCustomerRequest($paycomet_api_token, $body); try { @@ -449,7 +444,7 @@ public function checkCustomerWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20027', + '\Swagger\Client\Model\InlineResponse20028', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -473,7 +468,7 @@ public function checkCustomerWithHttpInfo($paycomet_api_token, $body = null) * Check a customers SEPA documentation * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body32 $body (optional) + * @param \Swagger\Client\Model\SepaCheckcustomerBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -494,14 +489,14 @@ function ($response) { * Check a customers SEPA documentation * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body32 $body (optional) + * @param \Swagger\Client\Model\SepaCheckcustomerBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function checkCustomerAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20027'; + $returnType = '\Swagger\Client\Model\InlineResponse20028'; $request = $this->checkCustomerRequest($paycomet_api_token, $body); return $this->client @@ -545,7 +540,7 @@ function ($exception) { * Create request for operation 'checkCustomer' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body32 $body (optional) + * @param \Swagger\Client\Model\SepaCheckcustomerBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -618,11 +613,6 @@ protected function checkCustomerRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -650,11 +640,11 @@ protected function checkCustomerRequest($paycomet_api_token, $body = null) * Check a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body31 $body body (optional) + * @param \Swagger\Client\Model\SepaCheckdocumentBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20026 + * @return \Swagger\Client\Model\InlineResponse20027 */ public function checkDocument($paycomet_api_token, $body = null) { @@ -668,15 +658,15 @@ public function checkDocument($paycomet_api_token, $body = null) * Check a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body31 $body (optional) + * @param \Swagger\Client\Model\SepaCheckdocumentBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20026, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20027, HTTP status code, HTTP response headers (array of strings) */ public function checkDocumentWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20026'; + $returnType = '\Swagger\Client\Model\InlineResponse20027'; $request = $this->checkDocumentRequest($paycomet_api_token, $body); try { @@ -728,7 +718,7 @@ public function checkDocumentWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20026', + '\Swagger\Client\Model\InlineResponse20027', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -752,7 +742,7 @@ public function checkDocumentWithHttpInfo($paycomet_api_token, $body = null) * Check a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body31 $body (optional) + * @param \Swagger\Client\Model\SepaCheckdocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -773,14 +763,14 @@ function ($response) { * Check a SEPA document * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body31 $body (optional) + * @param \Swagger\Client\Model\SepaCheckdocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function checkDocumentAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20026'; + $returnType = '\Swagger\Client\Model\InlineResponse20027'; $request = $this->checkDocumentRequest($paycomet_api_token, $body); return $this->client @@ -824,7 +814,7 @@ function ($exception) { * Create request for operation 'checkDocument' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body31 $body (optional) + * @param \Swagger\Client\Model\SepaCheckdocumentBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -897,11 +887,6 @@ protected function checkDocumentRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -929,11 +914,11 @@ protected function checkDocumentRequest($paycomet_api_token, $body = null) * Send SEPA operations * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body33 $body body (optional) + * @param \Swagger\Client\Model\SepaOperationsBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Swagger\Client\Model\InlineResponse20028 + * @return \Swagger\Client\Model\InlineResponse20029 */ public function sepaOperations($paycomet_api_token, $body = null) { @@ -947,15 +932,15 @@ public function sepaOperations($paycomet_api_token, $body = null) * Send SEPA operations * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body33 $body (optional) + * @param \Swagger\Client\Model\SepaOperationsBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Swagger\Client\Model\InlineResponse20028, HTTP status code, HTTP response headers (array of strings) + * @return array of \Swagger\Client\Model\InlineResponse20029, HTTP status code, HTTP response headers (array of strings) */ public function sepaOperationsWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20028'; + $returnType = '\Swagger\Client\Model\InlineResponse20029'; $request = $this->sepaOperationsRequest($paycomet_api_token, $body); try { @@ -1007,7 +992,7 @@ public function sepaOperationsWithHttpInfo($paycomet_api_token, $body = null) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Swagger\Client\Model\InlineResponse20028', + '\Swagger\Client\Model\InlineResponse20029', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -1031,7 +1016,7 @@ public function sepaOperationsWithHttpInfo($paycomet_api_token, $body = null) * Send SEPA operations * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body33 $body (optional) + * @param \Swagger\Client\Model\SepaOperationsBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1052,14 +1037,14 @@ function ($response) { * Send SEPA operations * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body33 $body (optional) + * @param \Swagger\Client\Model\SepaOperationsBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ public function sepaOperationsAsyncWithHttpInfo($paycomet_api_token, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20028'; + $returnType = '\Swagger\Client\Model\InlineResponse20029'; $request = $this->sepaOperationsRequest($paycomet_api_token, $body); return $this->client @@ -1103,7 +1088,7 @@ function ($exception) { * Create request for operation 'sepaOperations' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body33 $body (optional) + * @param \Swagger\Client\Model\SepaOperationsBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -1176,11 +1161,6 @@ protected function sepaOperationsRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/Api/SusbcriptionsApi.php b/lib/Api/SusbcriptionsApi.php index 7921798..c558965 100644 --- a/lib/Api/SusbcriptionsApi.php +++ b/lib/Api/SusbcriptionsApi.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -92,7 +92,7 @@ public function getConfig() * Create susbcription payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body21 $body body (optional) + * @param \Swagger\Client\Model\V1SubscriptionBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -110,7 +110,7 @@ public function createSubscription($paycomet_api_token, $body = null) * Create susbcription payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body21 $body (optional) + * @param \Swagger\Client\Model\V1SubscriptionBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -194,7 +194,7 @@ public function createSubscriptionWithHttpInfo($paycomet_api_token, $body = null * Create susbcription payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body21 $body (optional) + * @param \Swagger\Client\Model\V1SubscriptionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -215,7 +215,7 @@ function ($response) { * Create susbcription payment * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body21 $body (optional) + * @param \Swagger\Client\Model\V1SubscriptionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -266,7 +266,7 @@ function ($exception) { * Create request for operation 'createSubscription' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body21 $body (optional) + * @param \Swagger\Client\Model\V1SubscriptionBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -339,11 +339,6 @@ protected function createSubscriptionRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -368,37 +363,39 @@ protected function createSubscriptionRequest($paycomet_api_token, $body = null) /** * Operation editSubscription * - * Edit susbcription payment + * Edit susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body22 $body body (optional) + * @param string $order order (required) + * @param \Swagger\Client\Model\OrderEditBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Swagger\Client\Model\InlineResponse20020 */ - public function editSubscription($paycomet_api_token, $body = null) + public function editSubscription($paycomet_api_token, $order, $body = null) { - list($response) = $this->editSubscriptionWithHttpInfo($paycomet_api_token, $body); + list($response) = $this->editSubscriptionWithHttpInfo($paycomet_api_token, $order, $body); return $response; } /** * Operation editSubscriptionWithHttpInfo * - * Edit susbcription payment + * Edit susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body22 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderEditBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Swagger\Client\Model\InlineResponse20020, HTTP status code, HTTP response headers (array of strings) */ - public function editSubscriptionWithHttpInfo($paycomet_api_token, $body = null) + public function editSubscriptionWithHttpInfo($paycomet_api_token, $order, $body = null) { $returnType = '\Swagger\Client\Model\InlineResponse20020'; - $request = $this->editSubscriptionRequest($paycomet_api_token, $body); + $request = $this->editSubscriptionRequest($paycomet_api_token, $order, $body); try { $options = $this->createHttpClientOption(); @@ -470,17 +467,18 @@ public function editSubscriptionWithHttpInfo($paycomet_api_token, $body = null) /** * Operation editSubscriptionAsync * - * Edit susbcription payment + * Edit susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body22 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderEditBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editSubscriptionAsync($paycomet_api_token, $body = null) + public function editSubscriptionAsync($paycomet_api_token, $order, $body = null) { - return $this->editSubscriptionAsyncWithHttpInfo($paycomet_api_token, $body) + return $this->editSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body) ->then( function ($response) { return $response[0]; @@ -491,18 +489,19 @@ function ($response) { /** * Operation editSubscriptionAsyncWithHttpInfo * - * Edit susbcription payment + * Edit susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body22 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderEditBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function editSubscriptionAsyncWithHttpInfo($paycomet_api_token, $body = null) + public function editSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body = null) { $returnType = '\Swagger\Client\Model\InlineResponse20020'; - $request = $this->editSubscriptionRequest($paycomet_api_token, $body); + $request = $this->editSubscriptionRequest($paycomet_api_token, $order, $body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -545,12 +544,13 @@ function ($exception) { * Create request for operation 'editSubscription' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body22 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderEditBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function editSubscriptionRequest($paycomet_api_token, $body = null) + protected function editSubscriptionRequest($paycomet_api_token, $order, $body = null) { // verify the required parameter 'paycomet_api_token' is set if ($paycomet_api_token === null || (is_array($paycomet_api_token) && count($paycomet_api_token) === 0)) { @@ -558,8 +558,14 @@ protected function editSubscriptionRequest($paycomet_api_token, $body = null) 'Missing the required parameter $paycomet_api_token when calling editSubscription' ); } + // verify the required parameter 'order' is set + if ($order === null || (is_array($order) && count($order) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $order when calling editSubscription' + ); + } - $resourcePath = '/v1/subscription/edit'; + $resourcePath = '/v1/subscription/{order}/edit'; $formParams = []; $queryParams = []; $headerParams = []; @@ -571,6 +577,14 @@ protected function editSubscriptionRequest($paycomet_api_token, $body = null) $headerParams['PAYCOMET-API-TOKEN'] = ObjectSerializer::toHeaderValue($paycomet_api_token); } + // path params + if ($order !== null) { + $resourcePath = str_replace( + '{' . 'order' . '}', + ObjectSerializer::toPathValue($order), + $resourcePath + ); + } // body params $_tempBody = null; @@ -618,11 +632,6 @@ protected function editSubscriptionRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { @@ -645,39 +654,41 @@ protected function editSubscriptionRequest($paycomet_api_token, $body = null) } /** - * Operation removeSubscription + * Operation executeSubscription * - * Remove susbcription payment + * Excute a susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body23 $body body (optional) + * @param string $order order (required) + * @param \Swagger\Client\Model\OrderExecuteBody $body body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Swagger\Client\Model\InlineResponse20021 */ - public function removeSubscription($paycomet_api_token, $body = null) + public function executeSubscription($paycomet_api_token, $order, $body = null) { - list($response) = $this->removeSubscriptionWithHttpInfo($paycomet_api_token, $body); + list($response) = $this->executeSubscriptionWithHttpInfo($paycomet_api_token, $order, $body); return $response; } /** - * Operation removeSubscriptionWithHttpInfo + * Operation executeSubscriptionWithHttpInfo * - * Remove susbcription payment + * Excute a susbcription payment. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body23 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderExecuteBody $body (optional) * * @throws \Swagger\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Swagger\Client\Model\InlineResponse20021, HTTP status code, HTTP response headers (array of strings) */ - public function removeSubscriptionWithHttpInfo($paycomet_api_token, $body = null) + public function executeSubscriptionWithHttpInfo($paycomet_api_token, $order, $body = null) { $returnType = '\Swagger\Client\Model\InlineResponse20021'; - $request = $this->removeSubscriptionRequest($paycomet_api_token, $body); + $request = $this->executeSubscriptionRequest($paycomet_api_token, $order, $body); try { $options = $this->createHttpClientOption(); @@ -733,6 +744,299 @@ public function removeSubscriptionWithHttpInfo($paycomet_api_token, $body = null ); $e->setResponseObject($data); break; + case 422: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\InlineResponse4222', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; + } + throw $e; + } + } + + /** + * Operation executeSubscriptionAsync + * + * Excute a susbcription payment. + * + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderExecuteBody $body (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function executeSubscriptionAsync($paycomet_api_token, $order, $body = null) + { + return $this->executeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body) + ->then( + function ($response) { + return $response[0]; + } + ); + } + + /** + * Operation executeSubscriptionAsyncWithHttpInfo + * + * Excute a susbcription payment. + * + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderExecuteBody $body (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function executeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body = null) + { + $returnType = '\Swagger\Client\Model\InlineResponse20021'; + $request = $this->executeSubscriptionRequest($paycomet_api_token, $order, $body); + + 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 = $responseBody->getContents(); + if ($returnType !== 'string') { + $content = json_decode($content); + } + } + + 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 'executeSubscription' + * + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderExecuteBody $body (optional) + * + * @throws \InvalidArgumentException + * @return \GuzzleHttp\Psr7\Request + */ + protected function executeSubscriptionRequest($paycomet_api_token, $order, $body = null) + { + // verify the required parameter 'paycomet_api_token' is set + if ($paycomet_api_token === null || (is_array($paycomet_api_token) && count($paycomet_api_token) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $paycomet_api_token when calling executeSubscription' + ); + } + // verify the required parameter 'order' is set + if ($order === null || (is_array($order) && count($order) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $order when calling executeSubscription' + ); + } + + $resourcePath = '/v1/subscription/{order}/execute'; + $formParams = []; + $queryParams = []; + $headerParams = []; + $httpBody = ''; + $multipart = false; + + // header params + if ($paycomet_api_token !== null) { + $headerParams['PAYCOMET-API-TOKEN'] = ObjectSerializer::toHeaderValue($paycomet_api_token); + } + + // path params + if ($order !== null) { + $resourcePath = str_replace( + '{' . 'order' . '}', + ObjectSerializer::toPathValue($order), + $resourcePath + ); + } + + // body params + $_tempBody = null; + if (isset($body)) { + $_tempBody = $body; + } + + 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 + $httpBody = $_tempBody; + // \stdClass has no __toString(), so we should encode it manually + if ($httpBody instanceof \stdClass && $headers['Content-Type'] === 'application/json') { + $httpBody = \GuzzleHttp\json_encode($httpBody); + } + } 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); + } + } + + + $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 removeSubscription + * + * Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. + * + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) + * @param string $order order (required) + * @param \Swagger\Client\Model\OrderRemoveBody $body body (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return \Swagger\Client\Model\InlineResponse20022 + */ + public function removeSubscription($paycomet_api_token, $order, $body = null) + { + list($response) = $this->removeSubscriptionWithHttpInfo($paycomet_api_token, $order, $body); + return $response; + } + + /** + * Operation removeSubscriptionWithHttpInfo + * + * Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. + * + * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderRemoveBody $body (optional) + * + * @throws \Swagger\Client\ApiException on non-2xx response + * @throws \InvalidArgumentException + * @return array of \Swagger\Client\Model\InlineResponse20022, HTTP status code, HTTP response headers (array of strings) + */ + public function removeSubscriptionWithHttpInfo($paycomet_api_token, $order, $body = null) + { + $returnType = '\Swagger\Client\Model\InlineResponse20022'; + $request = $this->removeSubscriptionRequest($paycomet_api_token, $order, $body); + + 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() ? $e->getResponse()->getBody()->getContents() : 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(); + if ($returnType === '\SplFileObject') { + $content = $responseBody; //stream goes to serializer + } else { + $content = $responseBody->getContents(); + if (!in_array($returnType, ['string','integer','bool'])) { + $content = json_decode($content); + } + } + + return [ + ObjectSerializer::deserialize($content, $returnType, []), + $response->getStatusCode(), + $response->getHeaders() + ]; + + } catch (ApiException $e) { + switch ($e->getCode()) { + case 200: + $data = ObjectSerializer::deserialize( + $e->getResponseBody(), + '\Swagger\Client\Model\InlineResponse20022', + $e->getResponseHeaders() + ); + $e->setResponseObject($data); + break; case 422: $data = ObjectSerializer::deserialize( $e->getResponseBody(), @@ -749,17 +1053,18 @@ public function removeSubscriptionWithHttpInfo($paycomet_api_token, $body = null /** * Operation removeSubscriptionAsync * - * Remove susbcription payment + * Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body23 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderRemoveBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function removeSubscriptionAsync($paycomet_api_token, $body = null) + public function removeSubscriptionAsync($paycomet_api_token, $order, $body = null) { - return $this->removeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $body) + return $this->removeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body) ->then( function ($response) { return $response[0]; @@ -770,18 +1075,19 @@ function ($response) { /** * Operation removeSubscriptionAsyncWithHttpInfo * - * Remove susbcription payment + * Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions. * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body23 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderRemoveBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function removeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $body = null) + public function removeSubscriptionAsyncWithHttpInfo($paycomet_api_token, $order, $body = null) { - $returnType = '\Swagger\Client\Model\InlineResponse20021'; - $request = $this->removeSubscriptionRequest($paycomet_api_token, $body); + $returnType = '\Swagger\Client\Model\InlineResponse20022'; + $request = $this->removeSubscriptionRequest($paycomet_api_token, $order, $body); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -824,12 +1130,13 @@ function ($exception) { * Create request for operation 'removeSubscription' * * @param string $paycomet_api_token PAYCOMET API key (Authorization privilege required) (required) - * @param \Swagger\Client\Model\Body23 $body (optional) + * @param string $order (required) + * @param \Swagger\Client\Model\OrderRemoveBody $body (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function removeSubscriptionRequest($paycomet_api_token, $body = null) + protected function removeSubscriptionRequest($paycomet_api_token, $order, $body = null) { // verify the required parameter 'paycomet_api_token' is set if ($paycomet_api_token === null || (is_array($paycomet_api_token) && count($paycomet_api_token) === 0)) { @@ -837,8 +1144,14 @@ protected function removeSubscriptionRequest($paycomet_api_token, $body = null) 'Missing the required parameter $paycomet_api_token when calling removeSubscription' ); } + // verify the required parameter 'order' is set + if ($order === null || (is_array($order) && count($order) === 0)) { + throw new \InvalidArgumentException( + 'Missing the required parameter $order when calling removeSubscription' + ); + } - $resourcePath = '/v1/subscription/remove'; + $resourcePath = '/v1/subscription/{order}/remove'; $formParams = []; $queryParams = []; $headerParams = []; @@ -850,6 +1163,14 @@ protected function removeSubscriptionRequest($paycomet_api_token, $body = null) $headerParams['PAYCOMET-API-TOKEN'] = ObjectSerializer::toHeaderValue($paycomet_api_token); } + // path params + if ($order !== null) { + $resourcePath = str_replace( + '{' . 'order' . '}', + ObjectSerializer::toPathValue($order), + $resourcePath + ); + } // body params $_tempBody = null; @@ -897,11 +1218,6 @@ protected function removeSubscriptionRequest($paycomet_api_token, $body = null) } } - // this endpoint requires API key authentication - $apiKey = $this->config->getApiKeyWithPrefix('PAYCOMET-API-TOKEN'); - if ($apiKey !== null) { - $headers['PAYCOMET-API-TOKEN'] = $apiKey; - } $defaultHeaders = []; if ($this->config->getUserAgent()) { diff --git a/lib/ApiException.php b/lib/ApiException.php index 7bfdeb0..e19b2f0 100644 --- a/lib/ApiException.php +++ b/lib/ApiException.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Configuration.php b/lib/Configuration.php index 1a217b3..8377200 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -395,7 +395,7 @@ public static function toDebugReport() $report = 'PHP SDK (Swagger\Client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' OpenAPI Spec Version: 2.16' . PHP_EOL; + $report .= ' OpenAPI Spec Version: 2.37.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/HeaderSelector.php b/lib/HeaderSelector.php index 5ca7e1a..ea62f4b 100644 --- a/lib/HeaderSelector.php +++ b/lib/HeaderSelector.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/CardsDeleteBody.php b/lib/Model/CardsDeleteBody.php new file mode 100644 index 0000000..85b9cee --- /dev/null +++ b/lib/Model/CardsDeleteBody.php @@ -0,0 +1,360 @@ + 'int', +'id_user' => 'int', +'token_user' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'id_user' => null, +'token_user' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'id_user' => 'idUser', +'token_user' => 'tokenUser' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' can't be null"; + } + if ($this->container['token_user'] === null) { + $invalidProperties[] = "'token_user' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/CardsEditBody.php b/lib/Model/CardsEditBody.php new file mode 100644 index 0000000..a8b3445 --- /dev/null +++ b/lib/Model/CardsEditBody.php @@ -0,0 +1,456 @@ + 'int', +'id_user' => 'int', +'token_user' => 'string', +'cvc2' => 'string', +'expiry_year' => 'string', +'expiry_month' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'id_user' => null, +'token_user' => null, +'cvc2' => null, +'expiry_year' => null, +'expiry_month' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'id_user' => 'idUser', +'token_user' => 'tokenUser', +'cvc2' => 'cvc2', +'expiry_year' => 'expiryYear', +'expiry_month' => 'expiryMonth' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', +'cvc2' => 'setCvc2', +'expiry_year' => 'setExpiryYear', +'expiry_month' => 'setExpiryMonth' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', +'cvc2' => 'getCvc2', +'expiry_year' => 'getExpiryYear', +'expiry_month' => 'getExpiryMonth' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['cvc2'] = isset($data['cvc2']) ? $data['cvc2'] : null; + $this->container['expiry_year'] = isset($data['expiry_year']) ? $data['expiry_year'] : null; + $this->container['expiry_month'] = isset($data['expiry_month']) ? $data['expiry_month'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' can't be null"; + } + if ($this->container['token_user'] === null) { + $invalidProperties[] = "'token_user' can't be null"; + } + if ($this->container['expiry_year'] === null) { + $invalidProperties[] = "'expiry_year' can't be null"; + } + if ($this->container['expiry_month'] === null) { + $invalidProperties[] = "'expiry_month' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + + /** + * Gets cvc2 + * + * @return string + */ + public function getCvc2() + { + return $this->container['cvc2']; + } + + /** + * Sets cvc2 + * + * @param string $cvc2 cvc2. Mandatory if no JetToken provided + * + * @return $this + */ + public function setCvc2($cvc2) + { + $this->container['cvc2'] = $cvc2; + + return $this; + } + + /** + * Gets expiry_year + * + * @return string + */ + public function getExpiryYear() + { + return $this->container['expiry_year']; + } + + /** + * Sets expiry_year + * + * @param string $expiry_year Expiry year. Mandatory if no JetToken provided. + * + * @return $this + */ + public function setExpiryYear($expiry_year) + { + $this->container['expiry_year'] = $expiry_year; + + return $this; + } + + /** + * Gets expiry_month + * + * @return string + */ + public function getExpiryMonth() + { + return $this->container['expiry_month']; + } + + /** + * Sets expiry_month + * + * @param string $expiry_month Expiry month. Mandatory if no JetToken provided. + * + * @return $this + */ + public function setExpiryMonth($expiry_month) + { + $this->container['expiry_month'] = $expiry_month; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/CardsInfoBody.php b/lib/Model/CardsInfoBody.php new file mode 100644 index 0000000..5d8fe23 --- /dev/null +++ b/lib/Model/CardsInfoBody.php @@ -0,0 +1,360 @@ + 'int', +'token_user' => 'string', +'terminal' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'id_user' => null, +'token_user' => null, +'terminal' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'id_user' => 'idUser', +'token_user' => 'tokenUser', +'terminal' => 'terminal' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', +'terminal' => 'setTerminal' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', +'terminal' => 'getTerminal' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' can't be null"; + } + if ($this->container['token_user'] === null) { + $invalidProperties[] = "'token_user' can't be null"; + } + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' 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 id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + + /** + * Gets terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/CardsPhysicalBody.php b/lib/Model/CardsPhysicalBody.php new file mode 100644 index 0000000..f593cfc --- /dev/null +++ b/lib/Model/CardsPhysicalBody.php @@ -0,0 +1,492 @@ + 'int', +'provider_id' => 'int', +'merchant_id' => 'string', +'terminal_id' => 'string', +'device_ksn' => 'string', +'device_dukpt' => 'string', +'original_ip' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'provider_id' => null, +'merchant_id' => null, +'terminal_id' => null, +'device_ksn' => null, +'device_dukpt' => null, +'original_ip' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'provider_id' => 'providerId', +'merchant_id' => 'merchantId', +'terminal_id' => 'terminalId', +'device_ksn' => 'deviceKsn', +'device_dukpt' => 'deviceDukpt', +'original_ip' => 'originalIp' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'provider_id' => 'setProviderId', +'merchant_id' => 'setMerchantId', +'terminal_id' => 'setTerminalId', +'device_ksn' => 'setDeviceKsn', +'device_dukpt' => 'setDeviceDukpt', +'original_ip' => 'setOriginalIp' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'provider_id' => 'getProviderId', +'merchant_id' => 'getMerchantId', +'terminal_id' => 'getTerminalId', +'device_ksn' => 'getDeviceKsn', +'device_dukpt' => 'getDeviceDukpt', +'original_ip' => 'getOriginalIp' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['provider_id'] = isset($data['provider_id']) ? $data['provider_id'] : null; + $this->container['merchant_id'] = isset($data['merchant_id']) ? $data['merchant_id'] : null; + $this->container['terminal_id'] = isset($data['terminal_id']) ? $data['terminal_id'] : null; + $this->container['device_ksn'] = isset($data['device_ksn']) ? $data['device_ksn'] : null; + $this->container['device_dukpt'] = isset($data['device_dukpt']) ? $data['device_dukpt'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['provider_id'] === null) { + $invalidProperties[] = "'provider_id' can't be null"; + } + if ($this->container['merchant_id'] === null) { + $invalidProperties[] = "'merchant_id' can't be null"; + } + if ($this->container['terminal_id'] === null) { + $invalidProperties[] = "'terminal_id' can't be null"; + } + if ($this->container['device_ksn'] === null) { + $invalidProperties[] = "'device_ksn' can't be null"; + } + if ($this->container['device_dukpt'] === null) { + $invalidProperties[] = "'device_dukpt' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets provider_id + * + * @return int + */ + public function getProviderId() + { + return $this->container['provider_id']; + } + + /** + * Sets provider_id + * + * @param int $provider_id Provider identifier for physical operations given by PAYCOMET + * + * @return $this + */ + public function setProviderId($provider_id) + { + $this->container['provider_id'] = $provider_id; + + return $this; + } + + /** + * Gets merchant_id + * + * @return string + */ + public function getMerchantId() + { + return $this->container['merchant_id']; + } + + /** + * Sets merchant_id + * + * @param string $merchant_id Merchant identifier code for physical operations given by PAYCOMET + * + * @return $this + */ + public function setMerchantId($merchant_id) + { + $this->container['merchant_id'] = $merchant_id; + + return $this; + } + + /** + * Gets terminal_id + * + * @return string + */ + public function getTerminalId() + { + return $this->container['terminal_id']; + } + + /** + * Sets terminal_id + * + * @param string $terminal_id Terminal identifier + * + * @return $this + */ + public function setTerminalId($terminal_id) + { + $this->container['terminal_id'] = $terminal_id; + + return $this; + } + + /** + * Gets device_ksn + * + * @return string + */ + public function getDeviceKsn() + { + return $this->container['device_ksn']; + } + + /** + * Sets device_ksn + * + * @param string $device_ksn Card KSN info + * + * @return $this + */ + public function setDeviceKsn($device_ksn) + { + $this->container['device_ksn'] = $device_ksn; + + return $this; + } + + /** + * Gets device_dukpt + * + * @return string + */ + public function getDeviceDukpt() + { + return $this->container['device_dukpt']; + } + + /** + * Sets device_dukpt + * + * @param string $device_dukpt Card DUKPT info + * + * @return $this + */ + public function setDeviceDukpt($device_dukpt) + { + $this->container['device_dukpt'] = $device_dukpt; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/InlineResponse200.php b/lib/Model/InlineResponse200.php index f3983c6..58a1e76 100644 --- a/lib/Model/InlineResponse200.php +++ b/lib/Model/InlineResponse200.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2001.php b/lib/Model/InlineResponse2001.php index f268730..9e8df33 100644 --- a/lib/Model/InlineResponse2001.php +++ b/lib/Model/InlineResponse2001.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20010.php b/lib/Model/InlineResponse20010.php index 0190dfc..98be322 100644 --- a/lib/Model/InlineResponse20010.php +++ b/lib/Model/InlineResponse20010.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -60,6 +60,7 @@ class InlineResponse20010 implements ModelInterface, ArrayAccess 'name' => 'string', 'description' => 'string', 'active' => 'string', +'allow_api_refunds' => 'int', 'logo_square' => 'string', 'logo_landscape' => 'string' ]; @@ -73,6 +74,7 @@ class InlineResponse20010 implements ModelInterface, ArrayAccess 'name' => null, 'description' => null, 'active' => null, +'allow_api_refunds' => null, 'logo_square' => null, 'logo_landscape' => null ]; @@ -107,6 +109,7 @@ public static function swaggerFormats() 'name' => 'name', 'description' => 'description', 'active' => 'active', +'allow_api_refunds' => 'allowAPIRefunds', 'logo_square' => 'logo_square', 'logo_landscape' => 'logo_landscape' ]; @@ -120,6 +123,7 @@ public static function swaggerFormats() 'name' => 'setName', 'description' => 'setDescription', 'active' => 'setActive', +'allow_api_refunds' => 'setAllowApiRefunds', 'logo_square' => 'setLogoSquare', 'logo_landscape' => 'setLogoLandscape' ]; @@ -133,6 +137,7 @@ public static function swaggerFormats() 'name' => 'getName', 'description' => 'getDescription', 'active' => 'getActive', +'allow_api_refunds' => 'getAllowApiRefunds', 'logo_square' => 'getLogoSquare', 'logo_landscape' => 'getLogoLandscape' ]; @@ -198,6 +203,7 @@ public function __construct(array $data = null) $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['active'] = isset($data['active']) ? $data['active'] : null; + $this->container['allow_api_refunds'] = isset($data['allow_api_refunds']) ? $data['allow_api_refunds'] : null; $this->container['logo_square'] = isset($data['logo_square']) ? $data['logo_square'] : null; $this->container['logo_landscape'] = isset($data['logo_landscape']) ? $data['logo_landscape'] : null; } @@ -322,6 +328,30 @@ public function setActive($active) return $this; } + /** + * Gets allow_api_refunds + * + * @return int + */ + public function getAllowApiRefunds() + { + return $this->container['allow_api_refunds']; + } + + /** + * Sets allow_api_refunds + * + * @param int $allow_api_refunds allow_api_refunds + * + * @return $this + */ + public function setAllowApiRefunds($allow_api_refunds) + { + $this->container['allow_api_refunds'] = $allow_api_refunds; + + return $this; + } + /** * Gets logo_square * diff --git a/lib/Model/InlineResponse20011.php b/lib/Model/InlineResponse20011.php index cbee628..cf65b15 100644 --- a/lib/Model/InlineResponse20011.php +++ b/lib/Model/InlineResponse20011.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20012.php b/lib/Model/InlineResponse20012.php index fc6856a..1ddf59b 100644 --- a/lib/Model/InlineResponse20012.php +++ b/lib/Model/InlineResponse20012.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20013.php b/lib/Model/InlineResponse20013.php index 8b6022e..d416430 100644 --- a/lib/Model/InlineResponse20013.php +++ b/lib/Model/InlineResponse20013.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20014.php b/lib/Model/InlineResponse20014.php index 1150b78..43e8e45 100644 --- a/lib/Model/InlineResponse20014.php +++ b/lib/Model/InlineResponse20014.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20014Payment.php b/lib/Model/InlineResponse20014Payment.php index 557be7f..a6fd1f9 100644 --- a/lib/Model/InlineResponse20014Payment.php +++ b/lib/Model/InlineResponse20014Payment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20014PaymentHistory.php b/lib/Model/InlineResponse20014PaymentHistory.php index 165fd04..37d4e5b 100644 --- a/lib/Model/InlineResponse20014PaymentHistory.php +++ b/lib/Model/InlineResponse20014PaymentHistory.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20015.php b/lib/Model/InlineResponse20015.php index ba7c4e3..e45a5c0 100644 --- a/lib/Model/InlineResponse20015.php +++ b/lib/Model/InlineResponse20015.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20015Payment.php b/lib/Model/InlineResponse20015Payment.php index af2accd..d0c8f80 100644 --- a/lib/Model/InlineResponse20015Payment.php +++ b/lib/Model/InlineResponse20015Payment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20016.php b/lib/Model/InlineResponse20016.php index fab4fdc..0091719 100644 --- a/lib/Model/InlineResponse20016.php +++ b/lib/Model/InlineResponse20016.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20017.php b/lib/Model/InlineResponse20017.php index 3f61798..fb1049e 100644 --- a/lib/Model/InlineResponse20017.php +++ b/lib/Model/InlineResponse20017.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20018.php b/lib/Model/InlineResponse20018.php index fd45ded..ca47f35 100644 --- a/lib/Model/InlineResponse20018.php +++ b/lib/Model/InlineResponse20018.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20019.php b/lib/Model/InlineResponse20019.php index 07ac5bd..2b0d893 100644 --- a/lib/Model/InlineResponse20019.php +++ b/lib/Model/InlineResponse20019.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20019Subscription.php b/lib/Model/InlineResponse20019Subscription.php index 8db5588..e79d4a5 100644 --- a/lib/Model/InlineResponse20019Subscription.php +++ b/lib/Model/InlineResponse20019Subscription.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2002.php b/lib/Model/InlineResponse2002.php index efee488..9b9cb3f 100644 --- a/lib/Model/InlineResponse2002.php +++ b/lib/Model/InlineResponse2002.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20020.php b/lib/Model/InlineResponse20020.php index 01001f7..7bfdf71 100644 --- a/lib/Model/InlineResponse20020.php +++ b/lib/Model/InlineResponse20020.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -60,6 +60,10 @@ class InlineResponse20020 implements ModelInterface, ArrayAccess 'amount' => 'string', 'currency' => 'string', 'method_id' => 'int', +'auth_code' => 'string', +'id_user' => 'int', +'token_user' => 'string', +'card_country' => 'string', 'subscription' => '\Swagger\Client\Model\InlineResponse20019Subscription' ]; /** @@ -72,6 +76,10 @@ class InlineResponse20020 implements ModelInterface, ArrayAccess 'amount' => null, 'currency' => null, 'method_id' => null, +'auth_code' => null, +'id_user' => null, +'token_user' => null, +'card_country' => null, 'subscription' => null ]; /** @@ -105,6 +113,10 @@ public static function swaggerFormats() 'amount' => 'amount', 'currency' => 'currency', 'method_id' => 'methodId', +'auth_code' => 'authCode', +'id_user' => 'idUser', +'token_user' => 'tokenUser', +'card_country' => 'cardCountry', 'subscription' => 'subscription' ]; /** @@ -117,6 +129,10 @@ public static function swaggerFormats() 'amount' => 'setAmount', 'currency' => 'setCurrency', 'method_id' => 'setMethodId', +'auth_code' => 'setAuthCode', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', +'card_country' => 'setCardCountry', 'subscription' => 'setSubscription' ]; /** @@ -129,6 +145,10 @@ public static function swaggerFormats() 'amount' => 'getAmount', 'currency' => 'getCurrency', 'method_id' => 'getMethodId', +'auth_code' => 'getAuthCode', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', +'card_country' => 'getCardCountry', 'subscription' => 'getSubscription' ]; /** @@ -193,6 +213,10 @@ public function __construct(array $data = null) $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['auth_code'] = isset($data['auth_code']) ? $data['auth_code'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; $this->container['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; } @@ -316,6 +340,102 @@ public function setMethodId($method_id) return $this; } + /** + * Gets auth_code + * + * @return string + */ + public function getAuthCode() + { + return $this->container['auth_code']; + } + + /** + * Sets auth_code + * + * @param string $auth_code auth_code + * + * @return $this + */ + public function setAuthCode($auth_code) + { + $this->container['auth_code'] = $auth_code; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user id_user + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user token_user + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + + /** + * Gets card_country + * + * @return string + */ + public function getCardCountry() + { + return $this->container['card_country']; + } + + /** + * Sets card_country + * + * @param string $card_country card_country + * + * @return $this + */ + public function setCardCountry($card_country) + { + $this->container['card_country'] = $card_country; + + return $this; + } + /** * Gets subscription * diff --git a/lib/Model/InlineResponse20021.php b/lib/Model/InlineResponse20021.php index c8bb75f..3c3a7fd 100644 --- a/lib/Model/InlineResponse20021.php +++ b/lib/Model/InlineResponse20021.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -56,7 +56,16 @@ class InlineResponse20021 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'error_code' => 'int' ]; + 'error_code' => 'int', +'amount' => 'string', +'currency' => 'string', +'method_id' => 'int', +'auth_code' => 'string', +'challenge_url' => 'string', +'id_user' => 'int', +'token_user' => 'string', +'card_country' => 'string', +'subscription' => '\Swagger\Client\Model\InlineResponse20019Subscription' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -64,7 +73,16 @@ class InlineResponse20021 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'error_code' => null ]; + 'error_code' => null, +'amount' => null, +'currency' => null, +'method_id' => null, +'auth_code' => null, +'challenge_url' => null, +'id_user' => null, +'token_user' => null, +'card_country' => null, +'subscription' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -93,7 +111,16 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'error_code' => 'errorCode' ]; + 'error_code' => 'errorCode', +'amount' => 'amount', +'currency' => 'currency', +'method_id' => 'methodId', +'auth_code' => 'authCode', +'challenge_url' => 'challengeUrl', +'id_user' => 'idUser', +'token_user' => 'tokenUser', +'card_country' => 'cardCountry', +'subscription' => 'subscription' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -101,7 +128,16 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'error_code' => 'setErrorCode' ]; + 'error_code' => 'setErrorCode', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'auth_code' => 'setAuthCode', +'challenge_url' => 'setChallengeUrl', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', +'card_country' => 'setCardCountry', +'subscription' => 'setSubscription' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -109,7 +145,16 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'error_code' => 'getErrorCode' ]; + 'error_code' => 'getErrorCode', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'auth_code' => 'getAuthCode', +'challenge_url' => 'getChallengeUrl', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', +'card_country' => 'getCardCountry', +'subscription' => 'getSubscription' ]; /** * Array of attributes where the key is the local name, @@ -170,6 +215,15 @@ public function getModelName() public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['auth_code'] = isset($data['auth_code']) ? $data['auth_code'] : null; + $this->container['challenge_url'] = isset($data['challenge_url']) ? $data['challenge_url'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; + $this->container['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; } /** @@ -219,6 +273,222 @@ public function setErrorCode($error_code) return $this; } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets method_id + * + * @return int + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param int $method_id method_id + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets auth_code + * + * @return string + */ + public function getAuthCode() + { + return $this->container['auth_code']; + } + + /** + * Sets auth_code + * + * @param string $auth_code auth_code + * + * @return $this + */ + public function setAuthCode($auth_code) + { + $this->container['auth_code'] = $auth_code; + + return $this; + } + + /** + * Gets challenge_url + * + * @return string + */ + public function getChallengeUrl() + { + return $this->container['challenge_url']; + } + + /** + * Sets challenge_url + * + * @param string $challenge_url challenge_url + * + * @return $this + */ + public function setChallengeUrl($challenge_url) + { + $this->container['challenge_url'] = $challenge_url; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user id_user + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user token_user + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + + /** + * Gets card_country + * + * @return string + */ + public function getCardCountry() + { + return $this->container['card_country']; + } + + /** + * Sets card_country + * + * @param string $card_country card_country + * + * @return $this + */ + public function setCardCountry($card_country) + { + $this->container['card_country'] = $card_country; + + return $this; + } + + /** + * Gets subscription + * + * @return \Swagger\Client\Model\InlineResponse20019Subscription + */ + public function getSubscription() + { + return $this->container['subscription']; + } + + /** + * Sets subscription + * + * @param \Swagger\Client\Model\InlineResponse20019Subscription $subscription subscription + * + * @return $this + */ + public function setSubscription($subscription) + { + $this->container['subscription'] = $subscription; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/InlineResponse20022.php b/lib/Model/InlineResponse20022.php index 6dab669..ecba2a6 100644 --- a/lib/Model/InlineResponse20022.php +++ b/lib/Model/InlineResponse20022.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -56,17 +56,7 @@ class InlineResponse20022 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'error_code' => 'int', -'amount' => 'string', -'currency' => 'string', -'method_id' => 'int', -'order' => 'string', -'auth_code' => 'string', -'challenge_url' => 'string', -'id_user' => 'int', -'token_user' => 'string', -'card_country' => 'string', -'dcc' => '\Swagger\Client\Model\InlineResponse20022Dcc' ]; + 'error_code' => 'int' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -74,17 +64,7 @@ class InlineResponse20022 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'error_code' => null, -'amount' => null, -'currency' => null, -'method_id' => null, -'order' => null, -'auth_code' => null, -'challenge_url' => null, -'id_user' => null, -'token_user' => null, -'card_country' => null, -'dcc' => null ]; + 'error_code' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -113,17 +93,7 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'error_code' => 'errorCode', -'amount' => 'amount', -'currency' => 'currency', -'method_id' => 'methodId', -'order' => 'order', -'auth_code' => 'authCode', -'challenge_url' => 'challengeUrl', -'id_user' => 'idUser', -'token_user' => 'tokenUser', -'card_country' => 'cardCountry', -'dcc' => 'dcc' ]; + 'error_code' => 'errorCode' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -131,17 +101,7 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'error_code' => 'setErrorCode', -'amount' => 'setAmount', -'currency' => 'setCurrency', -'method_id' => 'setMethodId', -'order' => 'setOrder', -'auth_code' => 'setAuthCode', -'challenge_url' => 'setChallengeUrl', -'id_user' => 'setIdUser', -'token_user' => 'setTokenUser', -'card_country' => 'setCardCountry', -'dcc' => 'setDcc' ]; + 'error_code' => 'setErrorCode' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -149,17 +109,7 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'error_code' => 'getErrorCode', -'amount' => 'getAmount', -'currency' => 'getCurrency', -'method_id' => 'getMethodId', -'order' => 'getOrder', -'auth_code' => 'getAuthCode', -'challenge_url' => 'getChallengeUrl', -'id_user' => 'getIdUser', -'token_user' => 'getTokenUser', -'card_country' => 'getCardCountry', -'dcc' => 'getDcc' ]; + 'error_code' => 'getErrorCode' ]; /** * Array of attributes where the key is the local name, @@ -220,16 +170,6 @@ public function getModelName() public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; - $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; - $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; - $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; - $this->container['order'] = isset($data['order']) ? $data['order'] : null; - $this->container['auth_code'] = isset($data['auth_code']) ? $data['auth_code'] : null; - $this->container['challenge_url'] = isset($data['challenge_url']) ? $data['challenge_url'] : null; - $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; - $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; - $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; - $this->container['dcc'] = isset($data['dcc']) ? $data['dcc'] : null; } /** @@ -279,246 +219,6 @@ public function setErrorCode($error_code) return $this; } - - /** - * Gets amount - * - * @return string - */ - public function getAmount() - { - return $this->container['amount']; - } - - /** - * Sets amount - * - * @param string $amount amount - * - * @return $this - */ - public function setAmount($amount) - { - $this->container['amount'] = $amount; - - return $this; - } - - /** - * Gets currency - * - * @return string - */ - public function getCurrency() - { - return $this->container['currency']; - } - - /** - * Sets currency - * - * @param string $currency currency - * - * @return $this - */ - public function setCurrency($currency) - { - $this->container['currency'] = $currency; - - return $this; - } - - /** - * Gets method_id - * - * @return int - */ - public function getMethodId() - { - return $this->container['method_id']; - } - - /** - * Sets method_id - * - * @param int $method_id method_id - * - * @return $this - */ - public function setMethodId($method_id) - { - $this->container['method_id'] = $method_id; - - return $this; - } - - /** - * Gets order - * - * @return string - */ - public function getOrder() - { - return $this->container['order']; - } - - /** - * Sets order - * - * @param string $order order - * - * @return $this - */ - public function setOrder($order) - { - $this->container['order'] = $order; - - return $this; - } - - /** - * Gets auth_code - * - * @return string - */ - public function getAuthCode() - { - return $this->container['auth_code']; - } - - /** - * Sets auth_code - * - * @param string $auth_code auth_code - * - * @return $this - */ - public function setAuthCode($auth_code) - { - $this->container['auth_code'] = $auth_code; - - return $this; - } - - /** - * Gets challenge_url - * - * @return string - */ - public function getChallengeUrl() - { - return $this->container['challenge_url']; - } - - /** - * Sets challenge_url - * - * @param string $challenge_url challenge_url - * - * @return $this - */ - public function setChallengeUrl($challenge_url) - { - $this->container['challenge_url'] = $challenge_url; - - return $this; - } - - /** - * Gets id_user - * - * @return int - */ - public function getIdUser() - { - return $this->container['id_user']; - } - - /** - * Sets id_user - * - * @param int $id_user id_user - * - * @return $this - */ - public function setIdUser($id_user) - { - $this->container['id_user'] = $id_user; - - return $this; - } - - /** - * Gets token_user - * - * @return string - */ - public function getTokenUser() - { - return $this->container['token_user']; - } - - /** - * Sets token_user - * - * @param string $token_user token_user - * - * @return $this - */ - public function setTokenUser($token_user) - { - $this->container['token_user'] = $token_user; - - return $this; - } - - /** - * Gets card_country - * - * @return string - */ - public function getCardCountry() - { - return $this->container['card_country']; - } - - /** - * Sets card_country - * - * @param string $card_country card_country - * - * @return $this - */ - public function setCardCountry($card_country) - { - $this->container['card_country'] = $card_country; - - return $this; - } - - /** - * Gets dcc - * - * @return \Swagger\Client\Model\InlineResponse20022Dcc - */ - public function getDcc() - { - return $this->container['dcc']; - } - - /** - * Sets dcc - * - * @param \Swagger\Client\Model\InlineResponse20022Dcc $dcc dcc - * - * @return $this - */ - public function setDcc($dcc) - { - $this->container['dcc'] = $dcc; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/InlineResponse20023.php b/lib/Model/InlineResponse20023.php index 7f6260b..925a447 100644 --- a/lib/Model/InlineResponse20023.php +++ b/lib/Model/InlineResponse20023.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -56,12 +56,17 @@ class InlineResponse20023 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'amount' => 'string', -'order' => 'string', + 'error_code' => 'int', +'amount' => 'string', 'currency' => 'string', +'method_id' => 'int', +'order' => 'string', 'auth_code' => 'string', +'challenge_url' => 'string', +'id_user' => 'int', +'token_user' => 'string', 'card_country' => 'string', -'challenge_url' => 'string' ]; +'dcc' => '\Swagger\Client\Model\InlineResponse20023Dcc' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -69,12 +74,17 @@ class InlineResponse20023 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'amount' => null, -'order' => null, + 'error_code' => null, +'amount' => null, 'currency' => null, +'method_id' => null, +'order' => null, 'auth_code' => null, +'challenge_url' => null, +'id_user' => null, +'token_user' => null, 'card_country' => null, -'challenge_url' => null ]; +'dcc' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -103,12 +113,17 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'amount' => 'amount', -'order' => 'order', + 'error_code' => 'errorCode', +'amount' => 'amount', 'currency' => 'currency', +'method_id' => 'methodId', +'order' => 'order', 'auth_code' => 'authCode', +'challenge_url' => 'challengeUrl', +'id_user' => 'idUser', +'token_user' => 'tokenUser', 'card_country' => 'cardCountry', -'challenge_url' => 'challengeUrl' ]; +'dcc' => 'dcc' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -116,12 +131,17 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'amount' => 'setAmount', -'order' => 'setOrder', + 'error_code' => 'setErrorCode', +'amount' => 'setAmount', 'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'order' => 'setOrder', 'auth_code' => 'setAuthCode', +'challenge_url' => 'setChallengeUrl', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', 'card_country' => 'setCardCountry', -'challenge_url' => 'setChallengeUrl' ]; +'dcc' => 'setDcc' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -129,12 +149,17 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'amount' => 'getAmount', -'order' => 'getOrder', + 'error_code' => 'getErrorCode', +'amount' => 'getAmount', 'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'order' => 'getOrder', 'auth_code' => 'getAuthCode', +'challenge_url' => 'getChallengeUrl', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', 'card_country' => 'getCardCountry', -'challenge_url' => 'getChallengeUrl' ]; +'dcc' => 'getDcc' ]; /** * Array of attributes where the key is the local name, @@ -194,12 +219,17 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; - $this->container['order'] = isset($data['order']) ? $data['order'] : null; $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; $this->container['auth_code'] = isset($data['auth_code']) ? $data['auth_code'] : null; - $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; $this->container['challenge_url'] = isset($data['challenge_url']) ? $data['challenge_url'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; + $this->container['dcc'] = isset($data['dcc']) ? $data['dcc'] : null; } /** @@ -226,6 +256,30 @@ public function valid() } + /** + * Gets error_code + * + * @return int + */ + public function getErrorCode() + { + return $this->container['error_code']; + } + + /** + * Sets error_code + * + * @param int $error_code error_code + * + * @return $this + */ + public function setErrorCode($error_code) + { + $this->container['error_code'] = $error_code; + + return $this; + } + /** * Gets amount * @@ -239,7 +293,7 @@ public function getAmount() /** * Sets amount * - * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * @param string $amount amount * * @return $this */ @@ -251,49 +305,73 @@ public function setAmount($amount) } /** - * Gets order + * Gets currency * * @return string */ - public function getOrder() + public function getCurrency() { - return $this->container['order']; + return $this->container['currency']; } /** - * Sets order + * Sets currency * - * @param string $order Reference of the operation. + * @param string $currency currency * * @return $this */ - public function setOrder($order) + public function setCurrency($currency) { - $this->container['order'] = $order; + $this->container['currency'] = $currency; return $this; } /** - * Gets currency + * Gets method_id + * + * @return int + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param int $method_id method_id + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets order * * @return string */ - public function getCurrency() + public function getOrder() { - return $this->container['currency']; + return $this->container['order']; } /** - * Sets currency + * Sets order * - * @param string $currency Currency of the transaction. + * @param string $order order * * @return $this */ - public function setCurrency($currency) + public function setOrder($order) { - $this->container['currency'] = $currency; + $this->container['order'] = $order; return $this; } @@ -311,7 +389,7 @@ public function getAuthCode() /** * Sets auth_code * - * @param string $auth_code Authorization bank code of the transaction (required to execute a return). + * @param string $auth_code auth_code * * @return $this */ @@ -322,6 +400,78 @@ public function setAuthCode($auth_code) return $this; } + /** + * Gets challenge_url + * + * @return string + */ + public function getChallengeUrl() + { + return $this->container['challenge_url']; + } + + /** + * Sets challenge_url + * + * @param string $challenge_url challenge_url + * + * @return $this + */ + public function setChallengeUrl($challenge_url) + { + $this->container['challenge_url'] = $challenge_url; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user id_user + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user token_user + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + /** * Gets card_country * @@ -335,7 +485,7 @@ public function getCardCountry() /** * Sets card_country * - * @param string $card_country Country of the issuer of the card in ISO3 Code (ex.: 724 = Spain). May be left empty. + * @param string $card_country card_country * * @return $this */ @@ -347,25 +497,25 @@ public function setCardCountry($card_country) } /** - * Gets challenge_url + * Gets dcc * - * @return string + * @return \Swagger\Client\Model\InlineResponse20023Dcc */ - public function getChallengeUrl() + public function getDcc() { - return $this->container['challenge_url']; + return $this->container['dcc']; } /** - * Sets challenge_url + * Sets dcc * - * @param string $challenge_url challenge_url + * @param \Swagger\Client\Model\InlineResponse20023Dcc $dcc dcc * * @return $this */ - public function setChallengeUrl($challenge_url) + public function setDcc($dcc) { - $this->container['challenge_url'] = $challenge_url; + $this->container['dcc'] = $dcc; return $this; } diff --git a/lib/Model/InlineResponse20023Dcc.php b/lib/Model/InlineResponse20023Dcc.php new file mode 100644 index 0000000..86b51ae --- /dev/null +++ b/lib/Model/InlineResponse20023Dcc.php @@ -0,0 +1,501 @@ + 'string', +'currency' => 'string', +'currency_iso3' => 'string', +'currency_name' => 'string', +'exchange' => 'float', +'amount' => 'string', +'date' => 'string', +'markup' => 'float' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'session' => null, +'currency' => null, +'currency_iso3' => null, +'currency_name' => null, +'exchange' => null, +'amount' => null, +'date' => null, +'markup' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'session' => 'session', +'currency' => 'currency', +'currency_iso3' => 'currencyIso3', +'currency_name' => 'currencyName', +'exchange' => 'exchange', +'amount' => 'amount', +'date' => 'date', +'markup' => 'markup' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'session' => 'setSession', +'currency' => 'setCurrency', +'currency_iso3' => 'setCurrencyIso3', +'currency_name' => 'setCurrencyName', +'exchange' => 'setExchange', +'amount' => 'setAmount', +'date' => 'setDate', +'markup' => 'setMarkup' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'session' => 'getSession', +'currency' => 'getCurrency', +'currency_iso3' => 'getCurrencyIso3', +'currency_name' => 'getCurrencyName', +'exchange' => 'getExchange', +'amount' => 'getAmount', +'date' => 'getDate', +'markup' => 'getMarkup' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['session'] = isset($data['session']) ? $data['session'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['currency_iso3'] = isset($data['currency_iso3']) ? $data['currency_iso3'] : null; + $this->container['currency_name'] = isset($data['currency_name']) ? $data['currency_name'] : null; + $this->container['exchange'] = isset($data['exchange']) ? $data['exchange'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['markup'] = isset($data['markup']) ? $data['markup'] : 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 session + * + * @return string + */ + public function getSession() + { + return $this->container['session']; + } + + /** + * Sets session + * + * @param string $session session + * + * @return $this + */ + public function setSession($session) + { + $this->container['session'] = $session; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets currency_iso3 + * + * @return string + */ + public function getCurrencyIso3() + { + return $this->container['currency_iso3']; + } + + /** + * Sets currency_iso3 + * + * @param string $currency_iso3 currency_iso3 + * + * @return $this + */ + public function setCurrencyIso3($currency_iso3) + { + $this->container['currency_iso3'] = $currency_iso3; + + return $this; + } + + /** + * Gets currency_name + * + * @return string + */ + public function getCurrencyName() + { + return $this->container['currency_name']; + } + + /** + * Sets currency_name + * + * @param string $currency_name currency_name + * + * @return $this + */ + public function setCurrencyName($currency_name) + { + $this->container['currency_name'] = $currency_name; + + return $this; + } + + /** + * Gets exchange + * + * @return float + */ + public function getExchange() + { + return $this->container['exchange']; + } + + /** + * Sets exchange + * + * @param float $exchange exchange + * + * @return $this + */ + public function setExchange($exchange) + { + $this->container['exchange'] = $exchange; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets date + * + * @return string + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param string $date date + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets markup + * + * @return float + */ + public function getMarkup() + { + return $this->container['markup']; + } + + /** + * Sets markup + * + * @param float $markup markup + * + * @return $this + */ + public function setMarkup($markup) + { + $this->container['markup'] = $markup; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/InlineResponse20024.php b/lib/Model/InlineResponse20024.php index 1855f95..4e198d2 100644 --- a/lib/Model/InlineResponse20024.php +++ b/lib/Model/InlineResponse20024.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -56,9 +56,12 @@ class InlineResponse20024 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerTypes = [ - 'error_code' => 'int', + 'amount' => 'string', 'order' => 'string', -'submerchant' => '\Swagger\Client\Model\InlineResponse20024Submerchant' ]; +'currency' => 'string', +'auth_code' => 'string', +'card_country' => 'string', +'challenge_url' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -66,9 +69,12 @@ class InlineResponse20024 implements ModelInterface, ArrayAccess * @var string[] */ protected static $swaggerFormats = [ - 'error_code' => null, + 'amount' => null, 'order' => null, -'submerchant' => null ]; +'currency' => null, +'auth_code' => null, +'card_country' => null, +'challenge_url' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -97,9 +103,12 @@ public static function swaggerFormats() * @var string[] */ protected static $attributeMap = [ - 'error_code' => 'errorCode', + 'amount' => 'amount', 'order' => 'order', -'submerchant' => 'submerchant' ]; +'currency' => 'currency', +'auth_code' => 'authCode', +'card_country' => 'cardCountry', +'challenge_url' => 'challengeUrl' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -107,9 +116,12 @@ public static function swaggerFormats() * @var string[] */ protected static $setters = [ - 'error_code' => 'setErrorCode', + 'amount' => 'setAmount', 'order' => 'setOrder', -'submerchant' => 'setSubmerchant' ]; +'currency' => 'setCurrency', +'auth_code' => 'setAuthCode', +'card_country' => 'setCardCountry', +'challenge_url' => 'setChallengeUrl' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -117,9 +129,12 @@ public static function swaggerFormats() * @var string[] */ protected static $getters = [ - 'error_code' => 'getErrorCode', + 'amount' => 'getAmount', 'order' => 'getOrder', -'submerchant' => 'getSubmerchant' ]; +'currency' => 'getCurrency', +'auth_code' => 'getAuthCode', +'card_country' => 'getCardCountry', +'challenge_url' => 'getChallengeUrl' ]; /** * Array of attributes where the key is the local name, @@ -179,9 +194,12 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; $this->container['order'] = isset($data['order']) ? $data['order'] : null; - $this->container['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['auth_code'] = isset($data['auth_code']) ? $data['auth_code'] : null; + $this->container['card_country'] = isset($data['card_country']) ? $data['card_country'] : null; + $this->container['challenge_url'] = isset($data['challenge_url']) ? $data['challenge_url'] : null; } /** @@ -209,25 +227,25 @@ public function valid() /** - * Gets error_code + * Gets amount * - * @return int + * @return string */ - public function getErrorCode() + public function getAmount() { - return $this->container['error_code']; + return $this->container['amount']; } /** - * Sets error_code + * Sets amount * - * @param int $error_code error_code + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... * * @return $this */ - public function setErrorCode($error_code) + public function setAmount($amount) { - $this->container['error_code'] = $error_code; + $this->container['amount'] = $amount; return $this; } @@ -245,7 +263,7 @@ public function getOrder() /** * Sets order * - * @param string $order order + * @param string $order Reference of the operation. * * @return $this */ @@ -257,25 +275,97 @@ public function setOrder($order) } /** - * Gets submerchant + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. * - * @return \Swagger\Client\Model\InlineResponse20024Submerchant + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets auth_code + * + * @return string + */ + public function getAuthCode() + { + return $this->container['auth_code']; + } + + /** + * Sets auth_code + * + * @param string $auth_code Authorization bank code of the transaction (required to execute a return). + * + * @return $this + */ + public function setAuthCode($auth_code) + { + $this->container['auth_code'] = $auth_code; + + return $this; + } + + /** + * Gets card_country + * + * @return string + */ + public function getCardCountry() + { + return $this->container['card_country']; + } + + /** + * Sets card_country + * + * @param string $card_country Country of the issuer of the card in ISO3 Code (ex.: 724 = Spain). May be left empty. + * + * @return $this + */ + public function setCardCountry($card_country) + { + $this->container['card_country'] = $card_country; + + return $this; + } + + /** + * Gets challenge_url + * + * @return string */ - public function getSubmerchant() + public function getChallengeUrl() { - return $this->container['submerchant']; + return $this->container['challenge_url']; } /** - * Sets submerchant + * Sets challenge_url * - * @param \Swagger\Client\Model\InlineResponse20024Submerchant $submerchant submerchant + * @param string $challenge_url challenge_url * * @return $this */ - public function setSubmerchant($submerchant) + public function setChallengeUrl($challenge_url) { - $this->container['submerchant'] = $submerchant; + $this->container['challenge_url'] = $challenge_url; return $this; } diff --git a/lib/Model/InlineResponse20025.php b/lib/Model/InlineResponse20025.php index b30080e..fdd5ad8 100644 --- a/lib/Model/InlineResponse20025.php +++ b/lib/Model/InlineResponse20025.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20025Submerchant.php b/lib/Model/InlineResponse20025Submerchant.php index 4ce77a6..50a9cdb 100644 --- a/lib/Model/InlineResponse20025Submerchant.php +++ b/lib/Model/InlineResponse20025Submerchant.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20026.php b/lib/Model/InlineResponse20026.php index ab63b05..7c4c3a4 100644 --- a/lib/Model/InlineResponse20026.php +++ b/lib/Model/InlineResponse20026.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -57,10 +57,8 @@ class InlineResponse20026 implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'error_code' => 'int', -'merchant_customer_id' => 'string', -'merchant_customer_iban' => 'string', -'document_type' => 'int', -'document_status' => 'int' ]; +'order' => 'string', +'submerchant' => '\Swagger\Client\Model\InlineResponse20026Submerchant' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -69,10 +67,8 @@ class InlineResponse20026 implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'error_code' => null, -'merchant_customer_id' => null, -'merchant_customer_iban' => null, -'document_type' => null, -'document_status' => null ]; +'order' => null, +'submerchant' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -102,10 +98,8 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'error_code' => 'errorCode', -'merchant_customer_id' => 'merchantCustomerId', -'merchant_customer_iban' => 'merchantCustomerIban', -'document_type' => 'documentType', -'document_status' => 'documentStatus' ]; +'order' => 'order', +'submerchant' => 'submerchant' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -114,10 +108,8 @@ public static function swaggerFormats() */ protected static $setters = [ 'error_code' => 'setErrorCode', -'merchant_customer_id' => 'setMerchantCustomerId', -'merchant_customer_iban' => 'setMerchantCustomerIban', -'document_type' => 'setDocumentType', -'document_status' => 'setDocumentStatus' ]; +'order' => 'setOrder', +'submerchant' => 'setSubmerchant' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -126,10 +118,8 @@ public static function swaggerFormats() */ protected static $getters = [ 'error_code' => 'getErrorCode', -'merchant_customer_id' => 'getMerchantCustomerId', -'merchant_customer_iban' => 'getMerchantCustomerIban', -'document_type' => 'getDocumentType', -'document_status' => 'getDocumentStatus' ]; +'order' => 'getOrder', +'submerchant' => 'getSubmerchant' ]; /** * Array of attributes where the key is the local name, @@ -190,10 +180,8 @@ public function getModelName() public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; - $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; - $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; - $this->container['document_type'] = isset($data['document_type']) ? $data['document_type'] : null; - $this->container['document_status'] = isset($data['document_status']) ? $data['document_status'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; } /** @@ -245,97 +233,49 @@ public function setErrorCode($error_code) } /** - * Gets merchant_customer_id + * Gets order * * @return string */ - public function getMerchantCustomerId() + public function getOrder() { - return $this->container['merchant_customer_id']; + return $this->container['order']; } /** - * Sets merchant_customer_id + * Sets order * - * @param string $merchant_customer_id Unique identifier of the client of the supplier. + * @param string $order order * * @return $this */ - public function setMerchantCustomerId($merchant_customer_id) + public function setOrder($order) { - $this->container['merchant_customer_id'] = $merchant_customer_id; + $this->container['order'] = $order; return $this; } /** - * Gets merchant_customer_iban + * Gets submerchant * - * @return string - */ - public function getMerchantCustomerIban() - { - return $this->container['merchant_customer_iban']; - } - - /** - * Sets merchant_customer_iban - * - * @param string $merchant_customer_iban Account number of the client in IBAN format. - * - * @return $this - */ - public function setMerchantCustomerIban($merchant_customer_iban) - { - $this->container['merchant_customer_iban'] = $merchant_customer_iban; - - return $this; - } - - /** - * Gets document_type - * - * @return int - */ - public function getDocumentType() - { - return $this->container['document_type']; - } - - /** - * Sets document_type - * - * @param int $document_type Identifier of the type of document on PAYCOMET. - * - * @return $this - */ - public function setDocumentType($document_type) - { - $this->container['document_type'] = $document_type; - - return $this; - } - - /** - * Gets document_status - * - * @return int + * @return \Swagger\Client\Model\InlineResponse20026Submerchant */ - public function getDocumentStatus() + public function getSubmerchant() { - return $this->container['document_status']; + return $this->container['submerchant']; } /** - * Sets document_status + * Sets submerchant * - * @param int $document_status Identifier of the document status. + * @param \Swagger\Client\Model\InlineResponse20026Submerchant $submerchant submerchant * * @return $this */ - public function setDocumentStatus($document_status) + public function setSubmerchant($submerchant) { - $this->container['document_status'] = $document_status; + $this->container['submerchant'] = $submerchant; return $this; } diff --git a/lib/Model/InlineResponse20026Submerchant.php b/lib/Model/InlineResponse20026Submerchant.php new file mode 100644 index 0000000..268e122 --- /dev/null +++ b/lib/Model/InlineResponse20026Submerchant.php @@ -0,0 +1,351 @@ + 'float', +'currency' => 'string', +'split_auth_code' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'amount' => null, +'currency' => null, +'split_auth_code' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'amount' => 'amount', +'currency' => 'currency', +'split_auth_code' => 'splitAuthCode' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', +'currency' => 'setCurrency', +'split_auth_code' => 'setSplitAuthCode' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', +'currency' => 'getCurrency', +'split_auth_code' => 'getSplitAuthCode' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['split_auth_code'] = isset($data['split_auth_code']) ? $data['split_auth_code'] : 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 amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets split_auth_code + * + * @return string + */ + public function getSplitAuthCode() + { + return $this->container['split_auth_code']; + } + + /** + * Sets split_auth_code + * + * @param string $split_auth_code split_auth_code + * + * @return $this + */ + public function setSplitAuthCode($split_auth_code) + { + $this->container['split_auth_code'] = $split_auth_code; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/InlineResponse20027.php b/lib/Model/InlineResponse20027.php index 9d997d5..9d8a323 100644 --- a/lib/Model/InlineResponse20027.php +++ b/lib/Model/InlineResponse20027.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -59,7 +59,8 @@ class InlineResponse20027 implements ModelInterface, ArrayAccess 'error_code' => 'int', 'merchant_customer_id' => 'string', 'merchant_customer_iban' => 'string', -'documents' => 'object' ]; +'document_type' => 'int', +'document_status' => 'int' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -70,7 +71,8 @@ class InlineResponse20027 implements ModelInterface, ArrayAccess 'error_code' => null, 'merchant_customer_id' => null, 'merchant_customer_iban' => null, -'documents' => null ]; +'document_type' => null, +'document_status' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -102,7 +104,8 @@ public static function swaggerFormats() 'error_code' => 'errorCode', 'merchant_customer_id' => 'merchantCustomerId', 'merchant_customer_iban' => 'merchantCustomerIban', -'documents' => 'documents' ]; +'document_type' => 'documentType', +'document_status' => 'documentStatus' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -113,7 +116,8 @@ public static function swaggerFormats() 'error_code' => 'setErrorCode', 'merchant_customer_id' => 'setMerchantCustomerId', 'merchant_customer_iban' => 'setMerchantCustomerIban', -'documents' => 'setDocuments' ]; +'document_type' => 'setDocumentType', +'document_status' => 'setDocumentStatus' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -124,7 +128,8 @@ public static function swaggerFormats() 'error_code' => 'getErrorCode', 'merchant_customer_id' => 'getMerchantCustomerId', 'merchant_customer_iban' => 'getMerchantCustomerIban', -'documents' => 'getDocuments' ]; +'document_type' => 'getDocumentType', +'document_status' => 'getDocumentStatus' ]; /** * Array of attributes where the key is the local name, @@ -187,7 +192,8 @@ public function __construct(array $data = null) $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; - $this->container['documents'] = isset($data['documents']) ? $data['documents'] : null; + $this->container['document_type'] = isset($data['document_type']) ? $data['document_type'] : null; + $this->container['document_status'] = isset($data['document_status']) ? $data['document_status'] : null; } /** @@ -287,25 +293,49 @@ public function setMerchantCustomerIban($merchant_customer_iban) } /** - * Gets documents + * Gets document_type * - * @return object + * @return int + */ + public function getDocumentType() + { + return $this->container['document_type']; + } + + /** + * Sets document_type + * + * @param int $document_type Identifier of the type of document on PAYCOMET. + * + * @return $this + */ + public function setDocumentType($document_type) + { + $this->container['document_type'] = $document_type; + + return $this; + } + + /** + * Gets document_status + * + * @return int */ - public function getDocuments() + public function getDocumentStatus() { - return $this->container['documents']; + return $this->container['document_status']; } /** - * Sets documents + * Sets document_status * - * @param object $documents Object with a pair key value to identify if a document type is verified or not. + * @param int $document_status Identifier of the document status. * * @return $this */ - public function setDocuments($documents) + public function setDocumentStatus($document_status) { - $this->container['documents'] = $documents; + $this->container['document_status'] = $document_status; return $this; } diff --git a/lib/Model/InlineResponse20028.php b/lib/Model/InlineResponse20028.php index 3a6e2c5..48f2630 100644 --- a/lib/Model/InlineResponse20028.php +++ b/lib/Model/InlineResponse20028.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -57,7 +57,9 @@ class InlineResponse20028 implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'error_code' => 'int', -'operations' => '\Swagger\Client\Model\InlineResponse20028Operations[]' ]; +'merchant_customer_id' => 'string', +'merchant_customer_iban' => 'string', +'documents' => 'object' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -66,7 +68,9 @@ class InlineResponse20028 implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'error_code' => null, -'operations' => null ]; +'merchant_customer_id' => null, +'merchant_customer_iban' => null, +'documents' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -96,7 +100,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'error_code' => 'errorCode', -'operations' => 'operations' ]; +'merchant_customer_id' => 'merchantCustomerId', +'merchant_customer_iban' => 'merchantCustomerIban', +'documents' => 'documents' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -105,7 +111,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'error_code' => 'setErrorCode', -'operations' => 'setOperations' ]; +'merchant_customer_id' => 'setMerchantCustomerId', +'merchant_customer_iban' => 'setMerchantCustomerIban', +'documents' => 'setDocuments' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -114,7 +122,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'error_code' => 'getErrorCode', -'operations' => 'getOperations' ]; +'merchant_customer_id' => 'getMerchantCustomerId', +'merchant_customer_iban' => 'getMerchantCustomerIban', +'documents' => 'getDocuments' ]; /** * Array of attributes where the key is the local name, @@ -175,7 +185,9 @@ public function getModelName() public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; - $this->container['operations'] = isset($data['operations']) ? $data['operations'] : null; + $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; + $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; + $this->container['documents'] = isset($data['documents']) ? $data['documents'] : null; } /** @@ -227,25 +239,73 @@ public function setErrorCode($error_code) } /** - * Gets operations + * Gets merchant_customer_id * - * @return \Swagger\Client\Model\InlineResponse20028Operations[] + * @return string + */ + public function getMerchantCustomerId() + { + return $this->container['merchant_customer_id']; + } + + /** + * Sets merchant_customer_id + * + * @param string $merchant_customer_id Unique identifier of the client of the supplier. + * + * @return $this + */ + public function setMerchantCustomerId($merchant_customer_id) + { + $this->container['merchant_customer_id'] = $merchant_customer_id; + + return $this; + } + + /** + * Gets merchant_customer_iban + * + * @return string + */ + public function getMerchantCustomerIban() + { + return $this->container['merchant_customer_iban']; + } + + /** + * Sets merchant_customer_iban + * + * @param string $merchant_customer_iban Account number of the client in IBAN format. + * + * @return $this + */ + public function setMerchantCustomerIban($merchant_customer_iban) + { + $this->container['merchant_customer_iban'] = $merchant_customer_iban; + + return $this; + } + + /** + * Gets documents + * + * @return object */ - public function getOperations() + public function getDocuments() { - return $this->container['operations']; + return $this->container['documents']; } /** - * Sets operations + * Sets documents * - * @param \Swagger\Client\Model\InlineResponse20028Operations[] $operations operations + * @param object $documents Object with a pair key value to identify if a document type is verified or not. * * @return $this */ - public function setOperations($operations) + public function setDocuments($documents) { - $this->container['operations'] = $operations; + $this->container['documents'] = $documents; return $this; } diff --git a/lib/Model/InlineResponse20029.php b/lib/Model/InlineResponse20029.php index a48d9b4..2c2d253 100644 --- a/lib/Model/InlineResponse20029.php +++ b/lib/Model/InlineResponse20029.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -57,7 +57,7 @@ class InlineResponse20029 implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'error_code' => 'int', -'ivr_response' => 'bool' ]; +'operations' => '\Swagger\Client\Model\InlineResponse20029Operations[]' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -66,7 +66,7 @@ class InlineResponse20029 implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'error_code' => null, -'ivr_response' => null ]; +'operations' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -96,7 +96,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'error_code' => 'errorCode', -'ivr_response' => 'ivrResponse' ]; +'operations' => 'operations' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -105,7 +105,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'error_code' => 'setErrorCode', -'ivr_response' => 'setIvrResponse' ]; +'operations' => 'setOperations' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -114,7 +114,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'error_code' => 'getErrorCode', -'ivr_response' => 'getIvrResponse' ]; +'operations' => 'getOperations' ]; /** * Array of attributes where the key is the local name, @@ -175,7 +175,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; - $this->container['ivr_response'] = isset($data['ivr_response']) ? $data['ivr_response'] : null; + $this->container['operations'] = isset($data['operations']) ? $data['operations'] : null; } /** @@ -215,7 +215,7 @@ public function getErrorCode() /** * Sets error_code * - * @param int $error_code The error code if something went wrong. 0 means no error. + * @param int $error_code error_code * * @return $this */ @@ -227,25 +227,25 @@ public function setErrorCode($error_code) } /** - * Gets ivr_response + * Gets operations * - * @return bool + * @return \Swagger\Client\Model\InlineResponse20029Operations[] */ - public function getIvrResponse() + public function getOperations() { - return $this->container['ivr_response']; + return $this->container['operations']; } /** - * Sets ivr_response + * Sets operations * - * @param bool $ivr_response Indicates the session has been created. + * @param \Swagger\Client\Model\InlineResponse20029Operations[] $operations operations * * @return $this */ - public function setIvrResponse($ivr_response) + public function setOperations($operations) { - $this->container['ivr_response'] = $ivr_response; + $this->container['operations'] = $operations; return $this; } diff --git a/lib/Model/InlineResponse20029Operations.php b/lib/Model/InlineResponse20029Operations.php new file mode 100644 index 0000000..727c1a8 --- /dev/null +++ b/lib/Model/InlineResponse20029Operations.php @@ -0,0 +1,352 @@ + 'string', +'operation_error_code' => 'int', +'operation_order' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'operation_result' => null, +'operation_error_code' => null, +'operation_order' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'operation_result' => 'operationResult', +'operation_error_code' => 'operationErrorCode', +'operation_order' => 'operationOrder' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operation_result' => 'setOperationResult', +'operation_error_code' => 'setOperationErrorCode', +'operation_order' => 'setOperationOrder' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operation_result' => 'getOperationResult', +'operation_error_code' => 'getOperationErrorCode', +'operation_order' => 'getOperationOrder' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['operation_result'] = isset($data['operation_result']) ? $data['operation_result'] : null; + $this->container['operation_error_code'] = isset($data['operation_error_code']) ? $data['operation_error_code'] : null; + $this->container['operation_order'] = isset($data['operation_order']) ? $data['operation_order'] : 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 operation_result + * + * @return string + */ + public function getOperationResult() + { + return $this->container['operation_result']; + } + + /** + * Sets operation_result + * + * @param string $operation_result Operation result OK/KO + * + * @return $this + */ + public function setOperationResult($operation_result) + { + $this->container['operation_result'] = $operation_result; + + return $this; + } + + /** + * Gets operation_error_code + * + * @return int + */ + public function getOperationErrorCode() + { + return $this->container['operation_error_code']; + } + + /** + * Sets operation_error_code + * + * @param int $operation_error_code Error code given by PAYCOMET for that operation + * + * @return $this + */ + public function setOperationErrorCode($operation_error_code) + { + $this->container['operation_error_code'] = $operation_error_code; + + return $this; + } + + /** + * Gets operation_order + * + * @return string + */ + public function getOperationOrder() + { + return $this->container['operation_order']; + } + + /** + * Sets operation_order + * + * @param string $operation_order Order reference + * + * @return $this + */ + public function setOperationOrder($operation_order) + { + $this->container['operation_order'] = $operation_order; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/InlineResponse2003.php b/lib/Model/InlineResponse2003.php index d7a833c..744f8ab 100644 --- a/lib/Model/InlineResponse2003.php +++ b/lib/Model/InlineResponse2003.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse20030.php b/lib/Model/InlineResponse20030.php index 95e9224..0f51c6a 100644 --- a/lib/Model/InlineResponse20030.php +++ b/lib/Model/InlineResponse20030.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -57,13 +57,7 @@ class InlineResponse20030 implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'error_code' => 'int', -'ivr_response' => 'bool', -'ivr_session_state' => 'int', -'ivr_session_result' => 'int', -'ivr_time_left' => 'int', -'ivr_digit_pan' => 'int', -'ivr_digit_exp' => 'int', -'ivr_digit_cvc' => 'int' ]; +'ivr_response' => 'bool' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -72,13 +66,7 @@ class InlineResponse20030 implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'error_code' => null, -'ivr_response' => null, -'ivr_session_state' => null, -'ivr_session_result' => null, -'ivr_time_left' => null, -'ivr_digit_pan' => null, -'ivr_digit_exp' => null, -'ivr_digit_cvc' => null ]; +'ivr_response' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -108,13 +96,7 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'error_code' => 'errorCode', -'ivr_response' => 'ivrResponse', -'ivr_session_state' => 'ivrSessionState', -'ivr_session_result' => 'ivrSessionResult', -'ivr_time_left' => 'ivrTimeLeft', -'ivr_digit_pan' => 'ivrDigitPan', -'ivr_digit_exp' => 'ivrDigitExp', -'ivr_digit_cvc' => 'ivrDigitCvc' ]; +'ivr_response' => 'ivrResponse' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -123,13 +105,7 @@ public static function swaggerFormats() */ protected static $setters = [ 'error_code' => 'setErrorCode', -'ivr_response' => 'setIvrResponse', -'ivr_session_state' => 'setIvrSessionState', -'ivr_session_result' => 'setIvrSessionResult', -'ivr_time_left' => 'setIvrTimeLeft', -'ivr_digit_pan' => 'setIvrDigitPan', -'ivr_digit_exp' => 'setIvrDigitExp', -'ivr_digit_cvc' => 'setIvrDigitCvc' ]; +'ivr_response' => 'setIvrResponse' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -138,13 +114,7 @@ public static function swaggerFormats() */ protected static $getters = [ 'error_code' => 'getErrorCode', -'ivr_response' => 'getIvrResponse', -'ivr_session_state' => 'getIvrSessionState', -'ivr_session_result' => 'getIvrSessionResult', -'ivr_time_left' => 'getIvrTimeLeft', -'ivr_digit_pan' => 'getIvrDigitPan', -'ivr_digit_exp' => 'getIvrDigitExp', -'ivr_digit_cvc' => 'getIvrDigitCvc' ]; +'ivr_response' => 'getIvrResponse' ]; /** * Array of attributes where the key is the local name, @@ -206,12 +176,6 @@ public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['ivr_response'] = isset($data['ivr_response']) ? $data['ivr_response'] : null; - $this->container['ivr_session_state'] = isset($data['ivr_session_state']) ? $data['ivr_session_state'] : null; - $this->container['ivr_session_result'] = isset($data['ivr_session_result']) ? $data['ivr_session_result'] : null; - $this->container['ivr_time_left'] = isset($data['ivr_time_left']) ? $data['ivr_time_left'] : null; - $this->container['ivr_digit_pan'] = isset($data['ivr_digit_pan']) ? $data['ivr_digit_pan'] : null; - $this->container['ivr_digit_exp'] = isset($data['ivr_digit_exp']) ? $data['ivr_digit_exp'] : null; - $this->container['ivr_digit_cvc'] = isset($data['ivr_digit_cvc']) ? $data['ivr_digit_cvc'] : null; } /** @@ -275,7 +239,7 @@ public function getIvrResponse() /** * Sets ivr_response * - * @param bool $ivr_response Result of the session consultation. 0 -> It will indicate that it was not possible to localise the IVR session. 1 -> The session information have been found and will be returned afterwards. + * @param bool $ivr_response Indicates the session has been created. * * @return $this */ @@ -285,150 +249,6 @@ public function setIvrResponse($ivr_response) return $this; } - - /** - * Gets ivr_session_state - * - * @return int - */ - public function getIvrSessionState() - { - return $this->container['ivr_session_state']; - } - - /** - * Sets ivr_session_state - * - * @param int $ivr_session_state The possible values are the following. 0 Waiting. 1 Processing. 2 Finalised. OK. 3 Finalised. KO. 4 Communication time exceeded. 5 Reference not found. 6 Operation cancelled by the agent. 7 Call ended. Waiting for next call - * - * @return $this - */ - public function setIvrSessionState($ivr_session_state) - { - $this->container['ivr_session_state'] = $ivr_session_state; - - return $this; - } - - /** - * Gets ivr_session_result - * - * @return int - */ - public function getIvrSessionResult() - { - return $this->container['ivr_session_result']; - } - - /** - * Sets ivr_session_result - * - * @param int $ivr_session_result The possible values are the following. 0 No error. 1 Payment operation error. 2 Error entering card data. 3 Error entering expiration month. 4 Error entering expiration year. 5 Error entering CVV - * - * @return $this - */ - public function setIvrSessionResult($ivr_session_result) - { - $this->container['ivr_session_result'] = $ivr_session_result; - - return $this; - } - - /** - * Gets ivr_time_left - * - * @return int - */ - public function getIvrTimeLeft() - { - return $this->container['ivr_time_left']; - } - - /** - * Sets ivr_time_left - * - * @param int $ivr_time_left Time remaining expressed in seconds for finishing the IVR session. In state 0, the established maximum time will be returned. In state 1 the remaining time will be returned. In states 2, 3, 4 and 5 0 will be returned. - * - * @return $this - */ - public function setIvrTimeLeft($ivr_time_left) - { - $this->container['ivr_time_left'] = $ivr_time_left; - - return $this; - } - - /** - * Gets ivr_digit_pan - * - * @return int - */ - public function getIvrDigitPan() - { - return $this->container['ivr_digit_pan']; - } - - /** - * Sets ivr_digit_pan - * - * @param int $ivr_digit_pan When the IVR session is underway, the number of digits of the credit card that the client has entered will be returned. 0 will be returned if this information is not available. - * - * @return $this - */ - public function setIvrDigitPan($ivr_digit_pan) - { - $this->container['ivr_digit_pan'] = $ivr_digit_pan; - - return $this; - } - - /** - * Gets ivr_digit_exp - * - * @return int - */ - public function getIvrDigitExp() - { - return $this->container['ivr_digit_exp']; - } - - /** - * Sets ivr_digit_exp - * - * @param int $ivr_digit_exp When the IVR session is underway, the number of digits of the expiry date that the client has entered will be returned. 0 will be returned if this information is not available. - * - * @return $this - */ - public function setIvrDigitExp($ivr_digit_exp) - { - $this->container['ivr_digit_exp'] = $ivr_digit_exp; - - return $this; - } - - /** - * Gets ivr_digit_cvc - * - * @return int - */ - public function getIvrDigitCvc() - { - return $this->container['ivr_digit_cvc']; - } - - /** - * Sets ivr_digit_cvc - * - * @param int $ivr_digit_cvc When the IVR session is underway, the number of digits of the CVC2 that the client has entered will be returned. 0 will be shown if this information is not available. - * - * @return $this - */ - public function setIvrDigitCvc($ivr_digit_cvc) - { - $this->container['ivr_digit_cvc'] = $ivr_digit_cvc; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/InlineResponse20031.php b/lib/Model/InlineResponse20031.php index c8dc4d3..bf381f0 100644 --- a/lib/Model/InlineResponse20031.php +++ b/lib/Model/InlineResponse20031.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -58,7 +58,12 @@ class InlineResponse20031 implements ModelInterface, ArrayAccess protected static $swaggerTypes = [ 'error_code' => 'int', 'ivr_response' => 'bool', -'ivr_session_state' => 'int' ]; +'ivr_session_state' => 'int', +'ivr_session_result' => 'int', +'ivr_time_left' => 'int', +'ivr_digit_pan' => 'int', +'ivr_digit_exp' => 'int', +'ivr_digit_cvc' => 'int' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -68,7 +73,12 @@ class InlineResponse20031 implements ModelInterface, ArrayAccess protected static $swaggerFormats = [ 'error_code' => null, 'ivr_response' => null, -'ivr_session_state' => null ]; +'ivr_session_state' => null, +'ivr_session_result' => null, +'ivr_time_left' => null, +'ivr_digit_pan' => null, +'ivr_digit_exp' => null, +'ivr_digit_cvc' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -99,7 +109,12 @@ public static function swaggerFormats() protected static $attributeMap = [ 'error_code' => 'errorCode', 'ivr_response' => 'ivrResponse', -'ivr_session_state' => 'ivrSessionState' ]; +'ivr_session_state' => 'ivrSessionState', +'ivr_session_result' => 'ivrSessionResult', +'ivr_time_left' => 'ivrTimeLeft', +'ivr_digit_pan' => 'ivrDigitPan', +'ivr_digit_exp' => 'ivrDigitExp', +'ivr_digit_cvc' => 'ivrDigitCvc' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -109,7 +124,12 @@ public static function swaggerFormats() protected static $setters = [ 'error_code' => 'setErrorCode', 'ivr_response' => 'setIvrResponse', -'ivr_session_state' => 'setIvrSessionState' ]; +'ivr_session_state' => 'setIvrSessionState', +'ivr_session_result' => 'setIvrSessionResult', +'ivr_time_left' => 'setIvrTimeLeft', +'ivr_digit_pan' => 'setIvrDigitPan', +'ivr_digit_exp' => 'setIvrDigitExp', +'ivr_digit_cvc' => 'setIvrDigitCvc' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -119,7 +139,12 @@ public static function swaggerFormats() protected static $getters = [ 'error_code' => 'getErrorCode', 'ivr_response' => 'getIvrResponse', -'ivr_session_state' => 'getIvrSessionState' ]; +'ivr_session_state' => 'getIvrSessionState', +'ivr_session_result' => 'getIvrSessionResult', +'ivr_time_left' => 'getIvrTimeLeft', +'ivr_digit_pan' => 'getIvrDigitPan', +'ivr_digit_exp' => 'getIvrDigitExp', +'ivr_digit_cvc' => 'getIvrDigitCvc' ]; /** * Array of attributes where the key is the local name, @@ -182,6 +207,11 @@ public function __construct(array $data = null) $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['ivr_response'] = isset($data['ivr_response']) ? $data['ivr_response'] : null; $this->container['ivr_session_state'] = isset($data['ivr_session_state']) ? $data['ivr_session_state'] : null; + $this->container['ivr_session_result'] = isset($data['ivr_session_result']) ? $data['ivr_session_result'] : null; + $this->container['ivr_time_left'] = isset($data['ivr_time_left']) ? $data['ivr_time_left'] : null; + $this->container['ivr_digit_pan'] = isset($data['ivr_digit_pan']) ? $data['ivr_digit_pan'] : null; + $this->container['ivr_digit_exp'] = isset($data['ivr_digit_exp']) ? $data['ivr_digit_exp'] : null; + $this->container['ivr_digit_cvc'] = isset($data['ivr_digit_cvc']) ? $data['ivr_digit_cvc'] : null; } /** @@ -245,7 +275,7 @@ public function getIvrResponse() /** * Sets ivr_response * - * @param bool $ivr_response Result of the session consultation. 0 -> It will indicate that it was not possible to localise the IVR session. 1 -> The session information have been found and will be returned afterwards. + * @param bool $ivr_response Result of the session consultation. 0 -> It will indicate that it was not possible to localize the IVR session. 1 -> The session information have been found and will be returned afterwards. * * @return $this */ @@ -279,6 +309,126 @@ public function setIvrSessionState($ivr_session_state) return $this; } + + /** + * Gets ivr_session_result + * + * @return int + */ + public function getIvrSessionResult() + { + return $this->container['ivr_session_result']; + } + + /** + * Sets ivr_session_result + * + * @param int $ivr_session_result The possible values are the following. 0 No error. 1 Payment operation error. 2 Error entering card data. 3 Error entering expiration month. 4 Error entering expiration year. 5 Error entering CVV + * + * @return $this + */ + public function setIvrSessionResult($ivr_session_result) + { + $this->container['ivr_session_result'] = $ivr_session_result; + + return $this; + } + + /** + * Gets ivr_time_left + * + * @return int + */ + public function getIvrTimeLeft() + { + return $this->container['ivr_time_left']; + } + + /** + * Sets ivr_time_left + * + * @param int $ivr_time_left Time remaining expressed in seconds for finishing the IVR session. In state 0, the established maximum time will be returned. In state 1 the remaining time will be returned. In states 2, 3, 4 and 5 0 will be returned. + * + * @return $this + */ + public function setIvrTimeLeft($ivr_time_left) + { + $this->container['ivr_time_left'] = $ivr_time_left; + + return $this; + } + + /** + * Gets ivr_digit_pan + * + * @return int + */ + public function getIvrDigitPan() + { + return $this->container['ivr_digit_pan']; + } + + /** + * Sets ivr_digit_pan + * + * @param int $ivr_digit_pan When the IVR session is underway, the number of digits of the credit card that the client has entered will be returned. 0 will be returned if this information is not available. + * + * @return $this + */ + public function setIvrDigitPan($ivr_digit_pan) + { + $this->container['ivr_digit_pan'] = $ivr_digit_pan; + + return $this; + } + + /** + * Gets ivr_digit_exp + * + * @return int + */ + public function getIvrDigitExp() + { + return $this->container['ivr_digit_exp']; + } + + /** + * Sets ivr_digit_exp + * + * @param int $ivr_digit_exp When the IVR session is underway, the number of digits of the expiry date that the client has entered will be returned. 0 will be returned if this information is not available. + * + * @return $this + */ + public function setIvrDigitExp($ivr_digit_exp) + { + $this->container['ivr_digit_exp'] = $ivr_digit_exp; + + return $this; + } + + /** + * Gets ivr_digit_cvc + * + * @return int + */ + public function getIvrDigitCvc() + { + return $this->container['ivr_digit_cvc']; + } + + /** + * Sets ivr_digit_cvc + * + * @param int $ivr_digit_cvc When the IVR session is underway, the number of digits of the CVC2 that the client has entered will be returned. 0 will be shown if this information is not available. + * + * @return $this + */ + public function setIvrDigitCvc($ivr_digit_cvc) + { + $this->container['ivr_digit_cvc'] = $ivr_digit_cvc; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/InlineResponse20032.php b/lib/Model/InlineResponse20032.php new file mode 100644 index 0000000..39da8f3 --- /dev/null +++ b/lib/Model/InlineResponse20032.php @@ -0,0 +1,351 @@ + 'int', +'ivr_response' => 'bool', +'ivr_session_state' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'error_code' => null, +'ivr_response' => null, +'ivr_session_state' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'error_code' => 'errorCode', +'ivr_response' => 'ivrResponse', +'ivr_session_state' => 'ivrSessionState' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'error_code' => 'setErrorCode', +'ivr_response' => 'setIvrResponse', +'ivr_session_state' => 'setIvrSessionState' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'error_code' => 'getErrorCode', +'ivr_response' => 'getIvrResponse', +'ivr_session_state' => 'getIvrSessionState' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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_code'] = isset($data['error_code']) ? $data['error_code'] : null; + $this->container['ivr_response'] = isset($data['ivr_response']) ? $data['ivr_response'] : null; + $this->container['ivr_session_state'] = isset($data['ivr_session_state']) ? $data['ivr_session_state'] : 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_code + * + * @return int + */ + public function getErrorCode() + { + return $this->container['error_code']; + } + + /** + * Sets error_code + * + * @param int $error_code The error code if something went wrong. 0 means no error. + * + * @return $this + */ + public function setErrorCode($error_code) + { + $this->container['error_code'] = $error_code; + + return $this; + } + + /** + * Gets ivr_response + * + * @return bool + */ + public function getIvrResponse() + { + return $this->container['ivr_response']; + } + + /** + * Sets ivr_response + * + * @param bool $ivr_response Result of the session consultation. 0 -> It will indicate that it was not possible to localize the IVR session. 1 -> The session information have been found and will be returned afterwards. + * + * @return $this + */ + public function setIvrResponse($ivr_response) + { + $this->container['ivr_response'] = $ivr_response; + + return $this; + } + + /** + * Gets ivr_session_state + * + * @return int + */ + public function getIvrSessionState() + { + return $this->container['ivr_session_state']; + } + + /** + * Sets ivr_session_state + * + * @param int $ivr_session_state The possible values are the following. 0 Waiting. 1 Processing. 2 Finalised. OK. 3 Finalised. KO. 4 Communication time exceeded. 5 Reference not found. 6 Operation cancelled by the agent. 7 Call ended. Waiting for next call + * + * @return $this + */ + public function setIvrSessionState($ivr_session_state) + { + $this->container['ivr_session_state'] = $ivr_session_state; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/InlineResponse2004.php b/lib/Model/InlineResponse2004.php index 7743380..f81b64d 100644 --- a/lib/Model/InlineResponse2004.php +++ b/lib/Model/InlineResponse2004.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2005.php b/lib/Model/InlineResponse2005.php index cde15d4..c352d72 100644 --- a/lib/Model/InlineResponse2005.php +++ b/lib/Model/InlineResponse2005.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2006.php b/lib/Model/InlineResponse2006.php index f1e7beb..cf704eb 100644 --- a/lib/Model/InlineResponse2006.php +++ b/lib/Model/InlineResponse2006.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2007.php b/lib/Model/InlineResponse2007.php index ed9399c..88e4ff4 100644 --- a/lib/Model/InlineResponse2007.php +++ b/lib/Model/InlineResponse2007.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -57,7 +57,9 @@ class InlineResponse2007 implements ModelInterface, ArrayAccess */ protected static $swaggerTypes = [ 'error_code' => 'int', -'time' => 'string' ]; +'time' => 'string', +'processor_time' => 'string', +'processor_status' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization @@ -66,7 +68,9 @@ class InlineResponse2007 implements ModelInterface, ArrayAccess */ protected static $swaggerFormats = [ 'error_code' => null, -'time' => null ]; +'time' => null, +'processor_time' => null, +'processor_status' => null ]; /** * Array of property to type mappings. Used for (de)serialization @@ -96,7 +100,9 @@ public static function swaggerFormats() */ protected static $attributeMap = [ 'error_code' => 'errorCode', -'time' => 'time' ]; +'time' => 'time', +'processor_time' => 'processorTime', +'processor_status' => 'processorStatus' ]; /** * Array of attributes to setter functions (for deserialization of responses) @@ -105,7 +111,9 @@ public static function swaggerFormats() */ protected static $setters = [ 'error_code' => 'setErrorCode', -'time' => 'setTime' ]; +'time' => 'setTime', +'processor_time' => 'setProcessorTime', +'processor_status' => 'setProcessorStatus' ]; /** * Array of attributes to getter functions (for serialization of requests) @@ -114,7 +122,9 @@ public static function swaggerFormats() */ protected static $getters = [ 'error_code' => 'getErrorCode', -'time' => 'getTime' ]; +'time' => 'getTime', +'processor_time' => 'getProcessorTime', +'processor_status' => 'getProcessorStatus' ]; /** * Array of attributes where the key is the local name, @@ -176,6 +186,8 @@ public function __construct(array $data = null) { $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; $this->container['time'] = isset($data['time']) ? $data['time'] : null; + $this->container['processor_time'] = isset($data['processor_time']) ? $data['processor_time'] : null; + $this->container['processor_status'] = isset($data['processor_status']) ? $data['processor_status'] : null; } /** @@ -215,7 +227,7 @@ public function getErrorCode() /** * Sets error_code * - * @param int $error_code error_code + * @param int $error_code Error code. * * @return $this */ @@ -239,7 +251,7 @@ public function getTime() /** * Sets time * - * @param string $time time + * @param string $time PING time to PAYCOMET services * * @return $this */ @@ -249,6 +261,54 @@ public function setTime($time) return $this; } + + /** + * Gets processor_time + * + * @return string + */ + public function getProcessorTime() + { + return $this->container['processor_time']; + } + + /** + * Sets processor_time + * + * @param string $processor_time PING time to payment processor + * + * @return $this + */ + public function setProcessorTime($processor_time) + { + $this->container['processor_time'] = $processor_time; + + return $this; + } + + /** + * Gets processor_status + * + * @return string + */ + public function getProcessorStatus() + { + return $this->container['processor_status']; + } + + /** + * Sets processor_status + * + * @param string $processor_status General processor status (false if unreachable) + * + * @return $this + */ + public function setProcessorStatus($processor_status) + { + $this->container['processor_status'] = $processor_status; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/lib/Model/InlineResponse2008.php b/lib/Model/InlineResponse2008.php index dcd6c85..2b260af 100644 --- a/lib/Model/InlineResponse2008.php +++ b/lib/Model/InlineResponse2008.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2008Invoices.php b/lib/Model/InlineResponse2008Invoices.php index 459f0dd..5aa70fd 100644 --- a/lib/Model/InlineResponse2008Invoices.php +++ b/lib/Model/InlineResponse2008Invoices.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse2009.php b/lib/Model/InlineResponse2009.php index 71f6bd3..b06d21f 100644 --- a/lib/Model/InlineResponse2009.php +++ b/lib/Model/InlineResponse2009.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse403.php b/lib/Model/InlineResponse403.php index 819e747..256ef63 100644 --- a/lib/Model/InlineResponse403.php +++ b/lib/Model/InlineResponse403.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse422.php b/lib/Model/InlineResponse422.php index afba95a..c2e4cb6 100644 --- a/lib/Model/InlineResponse422.php +++ b/lib/Model/InlineResponse422.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4221.php b/lib/Model/InlineResponse4221.php index 75c5e0a..5f826df 100644 --- a/lib/Model/InlineResponse4221.php +++ b/lib/Model/InlineResponse4221.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4222.php b/lib/Model/InlineResponse4222.php index 07fd8d9..e4001fe 100644 --- a/lib/Model/InlineResponse4222.php +++ b/lib/Model/InlineResponse4222.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4222Error.php b/lib/Model/InlineResponse4222Error.php index 7869f2e..06f45df 100644 --- a/lib/Model/InlineResponse4222Error.php +++ b/lib/Model/InlineResponse4222Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4223.php b/lib/Model/InlineResponse4223.php index d64008b..a54d839 100644 --- a/lib/Model/InlineResponse4223.php +++ b/lib/Model/InlineResponse4223.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4223Error.php b/lib/Model/InlineResponse4223Error.php index 4729b2c..b1fa501 100644 --- a/lib/Model/InlineResponse4223Error.php +++ b/lib/Model/InlineResponse4223Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4224.php b/lib/Model/InlineResponse4224.php index 86d2b8c..addb76a 100644 --- a/lib/Model/InlineResponse4224.php +++ b/lib/Model/InlineResponse4224.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4224Error.php b/lib/Model/InlineResponse4224Error.php index 3276fc6..1602795 100644 --- a/lib/Model/InlineResponse4224Error.php +++ b/lib/Model/InlineResponse4224Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4225.php b/lib/Model/InlineResponse4225.php index cfe3229..a87baf6 100644 --- a/lib/Model/InlineResponse4225.php +++ b/lib/Model/InlineResponse4225.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4225Error.php b/lib/Model/InlineResponse4225Error.php index 216ac48..18c3a8b 100644 --- a/lib/Model/InlineResponse4225Error.php +++ b/lib/Model/InlineResponse4225Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4226.php b/lib/Model/InlineResponse4226.php index dceec18..1a51202 100644 --- a/lib/Model/InlineResponse4226.php +++ b/lib/Model/InlineResponse4226.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse4226Error.php b/lib/Model/InlineResponse4226Error.php index 5b0a08a..f23c38c 100644 --- a/lib/Model/InlineResponse4226Error.php +++ b/lib/Model/InlineResponse4226Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/InlineResponse422Error.php b/lib/Model/InlineResponse422Error.php index b5f6997..7dce3a6 100644 --- a/lib/Model/InlineResponse422Error.php +++ b/lib/Model/InlineResponse422Error.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/IvrGetsessionBody.php b/lib/Model/IvrGetsessionBody.php new file mode 100644 index 0000000..8220ee2 --- /dev/null +++ b/lib/Model/IvrGetsessionBody.php @@ -0,0 +1,975 @@ + 'int', +'ivr_provider_id' => 'int', +'ivr_station_id' => 'string', +'ivr_merchant_amount' => 'int', +'ivr_merchant_currency' => 'string', +'ivr_merchant_order' => 'string', +'ivr_merchant_language' => 'string', +'ivr_transaction_type' => 'string', +'ivr_merchant_concept' => 'string', +'ivr_subscription_startdate' => 'string', +'ivr_subscription_enddate' => 'string', +'ivr_subscription_periodicity' => 'int', +'ivr_max_retries' => 'int', +'ivr_session_timeout' => 'int', +'ivr_callback_station_timeout' => 'string', +'ivr_callback_station_ok' => 'string', +'ivr_callback_station_ko' => 'string', +'ivr_caller_phone_number' => 'string', +'ivr_provider_data01' => 'string', +'vr_provider_data02' => 'string', +'ivr_provider_data03' => 'string', +'ivr_provider_data04' => 'string', +'ivr_provider_data05' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'ivr_provider_id' => null, +'ivr_station_id' => null, +'ivr_merchant_amount' => null, +'ivr_merchant_currency' => null, +'ivr_merchant_order' => null, +'ivr_merchant_language' => null, +'ivr_transaction_type' => null, +'ivr_merchant_concept' => null, +'ivr_subscription_startdate' => null, +'ivr_subscription_enddate' => null, +'ivr_subscription_periodicity' => null, +'ivr_max_retries' => null, +'ivr_session_timeout' => null, +'ivr_callback_station_timeout' => null, +'ivr_callback_station_ok' => null, +'ivr_callback_station_ko' => null, +'ivr_caller_phone_number' => null, +'ivr_provider_data01' => null, +'vr_provider_data02' => null, +'ivr_provider_data03' => null, +'ivr_provider_data04' => null, +'ivr_provider_data05' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'ivr_provider_id' => 'ivrProviderId', +'ivr_station_id' => 'ivrStationId', +'ivr_merchant_amount' => 'ivrMerchantAmount', +'ivr_merchant_currency' => 'ivrMerchantCurrency', +'ivr_merchant_order' => 'ivrMerchantOrder', +'ivr_merchant_language' => 'ivrMerchantLanguage', +'ivr_transaction_type' => 'ivrTransactionType', +'ivr_merchant_concept' => 'ivrMerchantConcept', +'ivr_subscription_startdate' => 'ivrSubscriptionStartdate', +'ivr_subscription_enddate' => 'ivrSubscriptionEnddate', +'ivr_subscription_periodicity' => 'ivrSubscriptionPeriodicity', +'ivr_max_retries' => 'ivrMaxRetries', +'ivr_session_timeout' => 'ivrSessionTimeout', +'ivr_callback_station_timeout' => 'ivrCallbackStationTimeout', +'ivr_callback_station_ok' => 'ivrCallbackStationOk', +'ivr_callback_station_ko' => 'ivrCallbackStationKo', +'ivr_caller_phone_number' => 'ivrCallerPhoneNumber', +'ivr_provider_data01' => 'ivrProviderData01', +'vr_provider_data02' => 'vrProviderData02', +'ivr_provider_data03' => 'ivrProviderData03', +'ivr_provider_data04' => 'ivrProviderData04', +'ivr_provider_data05' => 'ivrProviderData05' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'ivr_provider_id' => 'setIvrProviderId', +'ivr_station_id' => 'setIvrStationId', +'ivr_merchant_amount' => 'setIvrMerchantAmount', +'ivr_merchant_currency' => 'setIvrMerchantCurrency', +'ivr_merchant_order' => 'setIvrMerchantOrder', +'ivr_merchant_language' => 'setIvrMerchantLanguage', +'ivr_transaction_type' => 'setIvrTransactionType', +'ivr_merchant_concept' => 'setIvrMerchantConcept', +'ivr_subscription_startdate' => 'setIvrSubscriptionStartdate', +'ivr_subscription_enddate' => 'setIvrSubscriptionEnddate', +'ivr_subscription_periodicity' => 'setIvrSubscriptionPeriodicity', +'ivr_max_retries' => 'setIvrMaxRetries', +'ivr_session_timeout' => 'setIvrSessionTimeout', +'ivr_callback_station_timeout' => 'setIvrCallbackStationTimeout', +'ivr_callback_station_ok' => 'setIvrCallbackStationOk', +'ivr_callback_station_ko' => 'setIvrCallbackStationKo', +'ivr_caller_phone_number' => 'setIvrCallerPhoneNumber', +'ivr_provider_data01' => 'setIvrProviderData01', +'vr_provider_data02' => 'setVrProviderData02', +'ivr_provider_data03' => 'setIvrProviderData03', +'ivr_provider_data04' => 'setIvrProviderData04', +'ivr_provider_data05' => 'setIvrProviderData05' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'ivr_provider_id' => 'getIvrProviderId', +'ivr_station_id' => 'getIvrStationId', +'ivr_merchant_amount' => 'getIvrMerchantAmount', +'ivr_merchant_currency' => 'getIvrMerchantCurrency', +'ivr_merchant_order' => 'getIvrMerchantOrder', +'ivr_merchant_language' => 'getIvrMerchantLanguage', +'ivr_transaction_type' => 'getIvrTransactionType', +'ivr_merchant_concept' => 'getIvrMerchantConcept', +'ivr_subscription_startdate' => 'getIvrSubscriptionStartdate', +'ivr_subscription_enddate' => 'getIvrSubscriptionEnddate', +'ivr_subscription_periodicity' => 'getIvrSubscriptionPeriodicity', +'ivr_max_retries' => 'getIvrMaxRetries', +'ivr_session_timeout' => 'getIvrSessionTimeout', +'ivr_callback_station_timeout' => 'getIvrCallbackStationTimeout', +'ivr_callback_station_ok' => 'getIvrCallbackStationOk', +'ivr_callback_station_ko' => 'getIvrCallbackStationKo', +'ivr_caller_phone_number' => 'getIvrCallerPhoneNumber', +'ivr_provider_data01' => 'getIvrProviderData01', +'vr_provider_data02' => 'getVrProviderData02', +'ivr_provider_data03' => 'getIvrProviderData03', +'ivr_provider_data04' => 'getIvrProviderData04', +'ivr_provider_data05' => 'getIvrProviderData05' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['ivr_provider_id'] = isset($data['ivr_provider_id']) ? $data['ivr_provider_id'] : null; + $this->container['ivr_station_id'] = isset($data['ivr_station_id']) ? $data['ivr_station_id'] : null; + $this->container['ivr_merchant_amount'] = isset($data['ivr_merchant_amount']) ? $data['ivr_merchant_amount'] : null; + $this->container['ivr_merchant_currency'] = isset($data['ivr_merchant_currency']) ? $data['ivr_merchant_currency'] : null; + $this->container['ivr_merchant_order'] = isset($data['ivr_merchant_order']) ? $data['ivr_merchant_order'] : null; + $this->container['ivr_merchant_language'] = isset($data['ivr_merchant_language']) ? $data['ivr_merchant_language'] : null; + $this->container['ivr_transaction_type'] = isset($data['ivr_transaction_type']) ? $data['ivr_transaction_type'] : null; + $this->container['ivr_merchant_concept'] = isset($data['ivr_merchant_concept']) ? $data['ivr_merchant_concept'] : null; + $this->container['ivr_subscription_startdate'] = isset($data['ivr_subscription_startdate']) ? $data['ivr_subscription_startdate'] : null; + $this->container['ivr_subscription_enddate'] = isset($data['ivr_subscription_enddate']) ? $data['ivr_subscription_enddate'] : null; + $this->container['ivr_subscription_periodicity'] = isset($data['ivr_subscription_periodicity']) ? $data['ivr_subscription_periodicity'] : null; + $this->container['ivr_max_retries'] = isset($data['ivr_max_retries']) ? $data['ivr_max_retries'] : null; + $this->container['ivr_session_timeout'] = isset($data['ivr_session_timeout']) ? $data['ivr_session_timeout'] : null; + $this->container['ivr_callback_station_timeout'] = isset($data['ivr_callback_station_timeout']) ? $data['ivr_callback_station_timeout'] : null; + $this->container['ivr_callback_station_ok'] = isset($data['ivr_callback_station_ok']) ? $data['ivr_callback_station_ok'] : null; + $this->container['ivr_callback_station_ko'] = isset($data['ivr_callback_station_ko']) ? $data['ivr_callback_station_ko'] : null; + $this->container['ivr_caller_phone_number'] = isset($data['ivr_caller_phone_number']) ? $data['ivr_caller_phone_number'] : null; + $this->container['ivr_provider_data01'] = isset($data['ivr_provider_data01']) ? $data['ivr_provider_data01'] : null; + $this->container['vr_provider_data02'] = isset($data['vr_provider_data02']) ? $data['vr_provider_data02'] : null; + $this->container['ivr_provider_data03'] = isset($data['ivr_provider_data03']) ? $data['ivr_provider_data03'] : null; + $this->container['ivr_provider_data04'] = isset($data['ivr_provider_data04']) ? $data['ivr_provider_data04'] : null; + $this->container['ivr_provider_data05'] = isset($data['ivr_provider_data05']) ? $data['ivr_provider_data05'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['ivr_provider_id'] === null) { + $invalidProperties[] = "'ivr_provider_id' can't be null"; + } + if ($this->container['ivr_station_id'] === null) { + $invalidProperties[] = "'ivr_station_id' can't be null"; + } + if ($this->container['ivr_merchant_amount'] === null) { + $invalidProperties[] = "'ivr_merchant_amount' can't be null"; + } + if ($this->container['ivr_merchant_currency'] === null) { + $invalidProperties[] = "'ivr_merchant_currency' can't be null"; + } + if ($this->container['ivr_merchant_order'] === null) { + $invalidProperties[] = "'ivr_merchant_order' can't be null"; + } + if ($this->container['ivr_merchant_language'] === null) { + $invalidProperties[] = "'ivr_merchant_language' can't be null"; + } + if ($this->container['ivr_transaction_type'] === null) { + $invalidProperties[] = "'ivr_transaction_type' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets ivr_provider_id + * + * @return int + */ + public function getIvrProviderId() + { + return $this->container['ivr_provider_id']; + } + + /** + * Sets ivr_provider_id + * + * @param int $ivr_provider_id Supplier / IVR integrator code. + * + * @return $this + */ + public function setIvrProviderId($ivr_provider_id) + { + $this->container['ivr_provider_id'] = $ivr_provider_id; + + return $this; + } + + /** + * Gets ivr_station_id + * + * @return string + */ + public function getIvrStationId() + { + return $this->container['ivr_station_id']; + } + + /** + * Sets ivr_station_id + * + * @param string $ivr_station_id Location identifier. + * + * @return $this + */ + public function setIvrStationId($ivr_station_id) + { + $this->container['ivr_station_id'] = $ivr_station_id; + + return $this; + } + + /** + * Gets ivr_merchant_amount + * + * @return int + */ + public function getIvrMerchantAmount() + { + return $this->container['ivr_merchant_amount']; + } + + /** + * Sets ivr_merchant_amount + * + * @param int $ivr_merchant_amount Amount of the operation in full format. 1,00 EURO = 100, 4,50 EUROS = 450... + * + * @return $this + */ + public function setIvrMerchantAmount($ivr_merchant_amount) + { + $this->container['ivr_merchant_amount'] = $ivr_merchant_amount; + + return $this; + } + + /** + * Gets ivr_merchant_currency + * + * @return string + */ + public function getIvrMerchantCurrency() + { + return $this->container['ivr_merchant_currency']; + } + + /** + * Sets ivr_merchant_currency + * + * @param string $ivr_merchant_currency Transaction currency. + * + * @return $this + */ + public function setIvrMerchantCurrency($ivr_merchant_currency) + { + $this->container['ivr_merchant_currency'] = $ivr_merchant_currency; + + return $this; + } + + /** + * Gets ivr_merchant_order + * + * @return string + */ + public function getIvrMerchantOrder() + { + return $this->container['ivr_merchant_order']; + } + + /** + * Sets ivr_merchant_order + * + * @param string $ivr_merchant_order Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. + * + * @return $this + */ + public function setIvrMerchantOrder($ivr_merchant_order) + { + $this->container['ivr_merchant_order'] = $ivr_merchant_order; + + return $this; + } + + /** + * Gets ivr_merchant_language + * + * @return string + */ + public function getIvrMerchantLanguage() + { + return $this->container['ivr_merchant_language']; + } + + /** + * Sets ivr_merchant_language + * + * @param string $ivr_merchant_language Language (iso2) in which the IVR phrases will be sent + * + * @return $this + */ + public function setIvrMerchantLanguage($ivr_merchant_language) + { + $this->container['ivr_merchant_language'] = $ivr_merchant_language; + + return $this; + } + + /** + * Gets ivr_transaction_type + * + * @return string + */ + public function getIvrTransactionType() + { + return $this->container['ivr_transaction_type']; + } + + /** + * Sets ivr_transaction_type + * + * @param string $ivr_transaction_type Possible types 107 Bankstore user registration 1 Authorization 3 Pre-authorization 9 Subscription + * + * @return $this + */ + public function setIvrTransactionType($ivr_transaction_type) + { + $this->container['ivr_transaction_type'] = $ivr_transaction_type; + + return $this; + } + + /** + * Gets ivr_merchant_concept + * + * @return string + */ + public function getIvrMerchantConcept() + { + return $this->container['ivr_merchant_concept']; + } + + /** + * Sets ivr_merchant_concept + * + * @param string $ivr_merchant_concept Operation concept. + * + * @return $this + */ + public function setIvrMerchantConcept($ivr_merchant_concept) + { + $this->container['ivr_merchant_concept'] = $ivr_merchant_concept; + + return $this; + } + + /** + * Gets ivr_subscription_startdate + * + * @return string + */ + public function getIvrSubscriptionStartdate() + { + return $this->container['ivr_subscription_startdate']; + } + + /** + * Sets ivr_subscription_startdate + * + * @param string $ivr_subscription_startdate Mandatory in subscriptions. Subscription start date. + * + * @return $this + */ + public function setIvrSubscriptionStartdate($ivr_subscription_startdate) + { + $this->container['ivr_subscription_startdate'] = $ivr_subscription_startdate; + + return $this; + } + + /** + * Gets ivr_subscription_enddate + * + * @return string + */ + public function getIvrSubscriptionEnddate() + { + return $this->container['ivr_subscription_enddate']; + } + + /** + * Sets ivr_subscription_enddate + * + * @param string $ivr_subscription_enddate Mandatory in subscriptions. Subscription end date. + * + * @return $this + */ + public function setIvrSubscriptionEnddate($ivr_subscription_enddate) + { + $this->container['ivr_subscription_enddate'] = $ivr_subscription_enddate; + + return $this; + } + + /** + * Gets ivr_subscription_periodicity + * + * @return int + */ + public function getIvrSubscriptionPeriodicity() + { + return $this->container['ivr_subscription_periodicity']; + } + + /** + * Sets ivr_subscription_periodicity + * + * @param int $ivr_subscription_periodicity Mandatory in subscriptions. Frequency of the payment from the start date. The number is expressed in Days. It cannot be more than 365 days. + * + * @return $this + */ + public function setIvrSubscriptionPeriodicity($ivr_subscription_periodicity) + { + $this->container['ivr_subscription_periodicity'] = $ivr_subscription_periodicity; + + return $this; + } + + /** + * Gets ivr_max_retries + * + * @return int + */ + public function getIvrMaxRetries() + { + return $this->container['ivr_max_retries']; + } + + /** + * Sets ivr_max_retries + * + * @param int $ivr_max_retries Number of attempts permitted. + * + * @return $this + */ + public function setIvrMaxRetries($ivr_max_retries) + { + $this->container['ivr_max_retries'] = $ivr_max_retries; + + return $this; + } + + /** + * Gets ivr_session_timeout + * + * @return int + */ + public function getIvrSessionTimeout() + { + return $this->container['ivr_session_timeout']; + } + + /** + * Sets ivr_session_timeout + * + * @param int $ivr_session_timeout Maximum session time. In seconds. + * + * @return $this + */ + public function setIvrSessionTimeout($ivr_session_timeout) + { + $this->container['ivr_session_timeout'] = $ivr_session_timeout; + + return $this; + } + + /** + * Gets ivr_callback_station_timeout + * + * @return string + */ + public function getIvrCallbackStationTimeout() + { + return $this->container['ivr_callback_station_timeout']; + } + + /** + * Sets ivr_callback_station_timeout + * + * @param string $ivr_callback_station_timeout Extension of return in case of timeout. + * + * @return $this + */ + public function setIvrCallbackStationTimeout($ivr_callback_station_timeout) + { + $this->container['ivr_callback_station_timeout'] = $ivr_callback_station_timeout; + + return $this; + } + + /** + * Gets ivr_callback_station_ok + * + * @return string + */ + public function getIvrCallbackStationOk() + { + return $this->container['ivr_callback_station_ok']; + } + + /** + * Sets ivr_callback_station_ok + * + * @param string $ivr_callback_station_ok Extension of return in case of operation OK. + * + * @return $this + */ + public function setIvrCallbackStationOk($ivr_callback_station_ok) + { + $this->container['ivr_callback_station_ok'] = $ivr_callback_station_ok; + + return $this; + } + + /** + * Gets ivr_callback_station_ko + * + * @return string + */ + public function getIvrCallbackStationKo() + { + return $this->container['ivr_callback_station_ko']; + } + + /** + * Sets ivr_callback_station_ko + * + * @param string $ivr_callback_station_ko Extension of return in case of operation KO. + * + * @return $this + */ + public function setIvrCallbackStationKo($ivr_callback_station_ko) + { + $this->container['ivr_callback_station_ko'] = $ivr_callback_station_ko; + + return $this; + } + + /** + * Gets ivr_caller_phone_number + * + * @return string + */ + public function getIvrCallerPhoneNumber() + { + return $this->container['ivr_caller_phone_number']; + } + + /** + * Sets ivr_caller_phone_number + * + * @param string $ivr_caller_phone_number Number of incoming call. + * + * @return $this + */ + public function setIvrCallerPhoneNumber($ivr_caller_phone_number) + { + $this->container['ivr_caller_phone_number'] = $ivr_caller_phone_number; + + return $this; + } + + /** + * Gets ivr_provider_data01 + * + * @return string + */ + public function getIvrProviderData01() + { + return $this->container['ivr_provider_data01']; + } + + /** + * Sets ivr_provider_data01 + * + * @param string $ivr_provider_data01 Optional field. + * + * @return $this + */ + public function setIvrProviderData01($ivr_provider_data01) + { + $this->container['ivr_provider_data01'] = $ivr_provider_data01; + + return $this; + } + + /** + * Gets vr_provider_data02 + * + * @return string + */ + public function getVrProviderData02() + { + return $this->container['vr_provider_data02']; + } + + /** + * Sets vr_provider_data02 + * + * @param string $vr_provider_data02 Optional field. + * + * @return $this + */ + public function setVrProviderData02($vr_provider_data02) + { + $this->container['vr_provider_data02'] = $vr_provider_data02; + + return $this; + } + + /** + * Gets ivr_provider_data03 + * + * @return string + */ + public function getIvrProviderData03() + { + return $this->container['ivr_provider_data03']; + } + + /** + * Sets ivr_provider_data03 + * + * @param string $ivr_provider_data03 Optional field. + * + * @return $this + */ + public function setIvrProviderData03($ivr_provider_data03) + { + $this->container['ivr_provider_data03'] = $ivr_provider_data03; + + return $this; + } + + /** + * Gets ivr_provider_data04 + * + * @return string + */ + public function getIvrProviderData04() + { + return $this->container['ivr_provider_data04']; + } + + /** + * Sets ivr_provider_data04 + * + * @param string $ivr_provider_data04 Optional field. + * + * @return $this + */ + public function setIvrProviderData04($ivr_provider_data04) + { + $this->container['ivr_provider_data04'] = $ivr_provider_data04; + + return $this; + } + + /** + * Gets ivr_provider_data05 + * + * @return string + */ + public function getIvrProviderData05() + { + return $this->container['ivr_provider_data05']; + } + + /** + * Sets ivr_provider_data05 + * + * @param string $ivr_provider_data05 Optional field. + * + * @return $this + */ + public function setIvrProviderData05($ivr_provider_data05) + { + $this->container['ivr_provider_data05'] = $ivr_provider_data05; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/IvrSessioncancelBody.php b/lib/Model/IvrSessioncancelBody.php new file mode 100644 index 0000000..96e7abd --- /dev/null +++ b/lib/Model/IvrSessioncancelBody.php @@ -0,0 +1,360 @@ + 'int', +'ivr_provider_id' => 'int', +'ivr_merchant_order' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'ivr_provider_id' => null, +'ivr_merchant_order' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'ivr_provider_id' => 'ivrProviderId', +'ivr_merchant_order' => 'ivrMerchantOrder' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'ivr_provider_id' => 'setIvrProviderId', +'ivr_merchant_order' => 'setIvrMerchantOrder' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'ivr_provider_id' => 'getIvrProviderId', +'ivr_merchant_order' => 'getIvrMerchantOrder' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['ivr_provider_id'] = isset($data['ivr_provider_id']) ? $data['ivr_provider_id'] : null; + $this->container['ivr_merchant_order'] = isset($data['ivr_merchant_order']) ? $data['ivr_merchant_order'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['ivr_provider_id'] === null) { + $invalidProperties[] = "'ivr_provider_id' can't be null"; + } + if ($this->container['ivr_merchant_order'] === null) { + $invalidProperties[] = "'ivr_merchant_order' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets ivr_provider_id + * + * @return int + */ + public function getIvrProviderId() + { + return $this->container['ivr_provider_id']; + } + + /** + * Sets ivr_provider_id + * + * @param int $ivr_provider_id Supplier / IVR integrator code. + * + * @return $this + */ + public function setIvrProviderId($ivr_provider_id) + { + $this->container['ivr_provider_id'] = $ivr_provider_id; + + return $this; + } + + /** + * Gets ivr_merchant_order + * + * @return string + */ + public function getIvrMerchantOrder() + { + return $this->container['ivr_merchant_order']; + } + + /** + * Sets ivr_merchant_order + * + * @param string $ivr_merchant_order Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. + * + * @return $this + */ + public function setIvrMerchantOrder($ivr_merchant_order) + { + $this->container['ivr_merchant_order'] = $ivr_merchant_order; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/IvrSessionstateBody.php b/lib/Model/IvrSessionstateBody.php new file mode 100644 index 0000000..dba1af8 --- /dev/null +++ b/lib/Model/IvrSessionstateBody.php @@ -0,0 +1,360 @@ + 'int', +'ivr_provider_id' => 'int', +'ivr_merchant_order' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'ivr_provider_id' => null, +'ivr_merchant_order' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'ivr_provider_id' => 'ivrProviderId', +'ivr_merchant_order' => 'ivrMerchantOrder' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'ivr_provider_id' => 'setIvrProviderId', +'ivr_merchant_order' => 'setIvrMerchantOrder' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'ivr_provider_id' => 'getIvrProviderId', +'ivr_merchant_order' => 'getIvrMerchantOrder' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['ivr_provider_id'] = isset($data['ivr_provider_id']) ? $data['ivr_provider_id'] : null; + $this->container['ivr_merchant_order'] = isset($data['ivr_merchant_order']) ? $data['ivr_merchant_order'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['ivr_provider_id'] === null) { + $invalidProperties[] = "'ivr_provider_id' can't be null"; + } + if ($this->container['ivr_merchant_order'] === null) { + $invalidProperties[] = "'ivr_merchant_order' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets ivr_provider_id + * + * @return int + */ + public function getIvrProviderId() + { + return $this->container['ivr_provider_id']; + } + + /** + * Sets ivr_provider_id + * + * @param int $ivr_provider_id Supplier / IVR integrator code. + * + * @return $this + */ + public function setIvrProviderId($ivr_provider_id) + { + $this->container['ivr_provider_id'] = $ivr_provider_id; + + return $this; + } + + /** + * Gets ivr_merchant_order + * + * @return string + */ + public function getIvrMerchantOrder() + { + return $this->container['ivr_merchant_order']; + } + + /** + * Sets ivr_merchant_order + * + * @param string $ivr_merchant_order Operation reference. It must be unique in each valid transaction. IMPORTANT IN CASE OF SUBSCRIPTIONS Do not include the characters “[“ or “]”, they will be used to recognise the business idUser. + * + * @return $this + */ + public function setIvrMerchantOrder($ivr_merchant_order) + { + $this->container['ivr_merchant_order'] = $ivr_merchant_order; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/LaunchpadAuthorizationBody.php b/lib/Model/LaunchpadAuthorizationBody.php new file mode 100644 index 0000000..a1c387b --- /dev/null +++ b/lib/Model/LaunchpadAuthorizationBody.php @@ -0,0 +1,891 @@ + 'int', +'order' => 'string', +'amount' => 'string', +'currency' => 'string', +'method_id' => 'string', +'original_ip' => 'string', +'secure' => 'int', +'language' => 'string', +'sms_email' => 'string', +'template_id' => 'int', +'email_address' => 'string', +'email_name' => 'string', +'sms_prefix' => 'string', +'sms_number' => 'string', +'scoring' => 'string', +'product_description' => 'string', +'escrow_targets' => '\Swagger\Client\Model\V1formPaymentEscrowTargets[]', +'trx_type' => 'string', +'sca_exception' => 'string', +'merchant_data' => '\Swagger\Client\Model\V1launchpadauthorizationMerchantData' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'order' => null, +'amount' => null, +'currency' => null, +'method_id' => null, +'original_ip' => null, +'secure' => null, +'language' => null, +'sms_email' => null, +'template_id' => null, +'email_address' => null, +'email_name' => null, +'sms_prefix' => null, +'sms_number' => null, +'scoring' => null, +'product_description' => null, +'escrow_targets' => null, +'trx_type' => null, +'sca_exception' => null, +'merchant_data' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'order' => 'order', +'amount' => 'amount', +'currency' => 'currency', +'method_id' => 'methodId', +'original_ip' => 'originalIp', +'secure' => 'secure', +'language' => 'language', +'sms_email' => 'smsEmail', +'template_id' => 'templateId', +'email_address' => 'emailAddress', +'email_name' => 'emailName', +'sms_prefix' => 'smsPrefix', +'sms_number' => 'smsNumber', +'scoring' => 'scoring', +'product_description' => 'productDescription', +'escrow_targets' => 'escrowTargets', +'trx_type' => 'trxType', +'sca_exception' => 'scaException', +'merchant_data' => 'merchantData' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'order' => 'setOrder', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'original_ip' => 'setOriginalIp', +'secure' => 'setSecure', +'language' => 'setLanguage', +'sms_email' => 'setSmsEmail', +'template_id' => 'setTemplateId', +'email_address' => 'setEmailAddress', +'email_name' => 'setEmailName', +'sms_prefix' => 'setSmsPrefix', +'sms_number' => 'setSmsNumber', +'scoring' => 'setScoring', +'product_description' => 'setProductDescription', +'escrow_targets' => 'setEscrowTargets', +'trx_type' => 'setTrxType', +'sca_exception' => 'setScaException', +'merchant_data' => 'setMerchantData' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'order' => 'getOrder', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'original_ip' => 'getOriginalIp', +'secure' => 'getSecure', +'language' => 'getLanguage', +'sms_email' => 'getSmsEmail', +'template_id' => 'getTemplateId', +'email_address' => 'getEmailAddress', +'email_name' => 'getEmailName', +'sms_prefix' => 'getSmsPrefix', +'sms_number' => 'getSmsNumber', +'scoring' => 'getScoring', +'product_description' => 'getProductDescription', +'escrow_targets' => 'getEscrowTargets', +'trx_type' => 'getTrxType', +'sca_exception' => 'getScaException', +'merchant_data' => 'getMerchantData' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['secure'] = isset($data['secure']) ? $data['secure'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : 'es'; + $this->container['sms_email'] = isset($data['sms_email']) ? $data['sms_email'] : null; + $this->container['template_id'] = isset($data['template_id']) ? $data['template_id'] : null; + $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; + $this->container['email_name'] = isset($data['email_name']) ? $data['email_name'] : null; + $this->container['sms_prefix'] = isset($data['sms_prefix']) ? $data['sms_prefix'] : null; + $this->container['sms_number'] = isset($data['sms_number']) ? $data['sms_number'] : null; + $this->container['scoring'] = isset($data['scoring']) ? $data['scoring'] : null; + $this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null; + $this->container['escrow_targets'] = isset($data['escrow_targets']) ? $data['escrow_targets'] : null; + $this->container['trx_type'] = isset($data['trx_type']) ? $data['trx_type'] : null; + $this->container['sca_exception'] = isset($data['sca_exception']) ? $data['sca_exception'] : null; + $this->container['merchant_data'] = isset($data['merchant_data']) ? $data['merchant_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['order'] === null) { + $invalidProperties[] = "'order' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' can't be null"; + } + if ($this->container['secure'] === null) { + $invalidProperties[] = "'secure' can't be null"; + } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + if ($this->container['sms_email'] === null) { + $invalidProperties[] = "'sms_email' can't be null"; + } + if ($this->container['template_id'] === null) { + $invalidProperties[] = "'template_id' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Unique reference for merchant's purchase + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets secure + * + * @return int + */ + public function getSecure() + { + return $this->container['secure']; + } + + /** + * Sets secure + * + * @param int $secure 0 or 1. Indicates if the transaction is secure. + * + * @return $this + */ + public function setSecure($secure) + { + $this->container['secure'] = $secure; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language ISO2 code of language. + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets sms_email + * + * @return string + */ + public function getSmsEmail() + { + return $this->container['sms_email']; + } + + /** + * Sets sms_email + * + * @param string $sms_email Sending channel of the payment url. Should be \"sms\" or \"email\". + * + * @return $this + */ + public function setSmsEmail($sms_email) + { + $this->container['sms_email'] = $sms_email; + + return $this; + } + + /** + * Gets template_id + * + * @return int + */ + public function getTemplateId() + { + return $this->container['template_id']; + } + + /** + * Sets template_id + * + * @param int $template_id Email or SMS template id to be sent. You can get it in the Control panel. + * + * @return $this + */ + public function setTemplateId($template_id) + { + $this->container['template_id'] = $template_id; + + return $this; + } + + /** + * Gets email_address + * + * @return string + */ + public function getEmailAddress() + { + return $this->container['email_address']; + } + + /** + * Sets email_address + * + * @param string $email_address Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent + * + * @return $this + */ + public function setEmailAddress($email_address) + { + $this->container['email_address'] = $email_address; + + return $this; + } + + /** + * Gets email_name + * + * @return string + */ + public function getEmailName() + { + return $this->container['email_name']; + } + + /** + * Sets email_name + * + * @param string $email_name Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent + * + * @return $this + */ + public function setEmailName($email_name) + { + $this->container['email_name'] = $email_name; + + return $this; + } + + /** + * Gets sms_prefix + * + * @return string + */ + public function getSmsPrefix() + { + return $this->container['sms_prefix']; + } + + /** + * Sets sms_prefix + * + * @param string $sms_prefix Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent + * + * @return $this + */ + public function setSmsPrefix($sms_prefix) + { + $this->container['sms_prefix'] = $sms_prefix; + + return $this; + } + + /** + * Gets sms_number + * + * @return string + */ + public function getSmsNumber() + { + return $this->container['sms_number']; + } + + /** + * Sets sms_number + * + * @param string $sms_number Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent + * + * @return $this + */ + public function setSmsNumber($sms_number) + { + $this->container['sms_number'] = $sms_number; + + return $this; + } + + /** + * Gets scoring + * + * @return string + */ + public function getScoring() + { + return $this->container['scoring']; + } + + /** + * Sets scoring + * + * @param string $scoring Risk scoring value from 0 to 100. + * + * @return $this + */ + public function setScoring($scoring) + { + $this->container['scoring'] = $scoring; + + return $this; + } + + /** + * Gets product_description + * + * @return string + */ + public function getProductDescription() + { + return $this->container['product_description']; + } + + /** + * Sets product_description + * + * @param string $product_description Description of the product sold. + * + * @return $this + */ + public function setProductDescription($product_description) + { + $this->container['product_description'] = $product_description; + + return $this; + } + + /** + * Gets escrow_targets + * + * @return \Swagger\Client\Model\V1formPaymentEscrowTargets[] + */ + public function getEscrowTargets() + { + return $this->container['escrow_targets']; + } + + /** + * Sets escrow_targets + * + * @param \Swagger\Client\Model\V1formPaymentEscrowTargets[] $escrow_targets escrow_targets + * + * @return $this + */ + public function setEscrowTargets($escrow_targets) + { + $this->container['escrow_targets'] = $escrow_targets; + + return $this; + } + + /** + * Gets trx_type + * + * @return string + */ + public function getTrxType() + { + return $this->container['trx_type']; + } + + /** + * Sets trx_type + * + * @param string $trx_type Obligatory only if an MIT exception has been selected in scaException + * + * @return $this + */ + public function setTrxType($trx_type) + { + $this->container['trx_type'] = $trx_type; + + return $this; + } + + /** + * Gets sca_exception + * + * @return string + */ + public function getScaException() + { + return $this->container['sca_exception']; + } + + /** + * Sets sca_exception + * + * @param string $sca_exception TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible + * + * @return $this + */ + public function setScaException($sca_exception) + { + $this->container['sca_exception'] = $sca_exception; + + return $this; + } + + /** + * Gets merchant_data + * + * @return \Swagger\Client\Model\V1launchpadauthorizationMerchantData + */ + public function getMerchantData() + { + return $this->container['merchant_data']; + } + + /** + * Sets merchant_data + * + * @param \Swagger\Client\Model\V1launchpadauthorizationMerchantData $merchant_data merchant_data + * + * @return $this + */ + public function setMerchantData($merchant_data) + { + $this->container['merchant_data'] = $merchant_data; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/LaunchpadPreauthorizationBody.php b/lib/Model/LaunchpadPreauthorizationBody.php new file mode 100644 index 0000000..658a9a6 --- /dev/null +++ b/lib/Model/LaunchpadPreauthorizationBody.php @@ -0,0 +1,891 @@ + 'int', +'order' => 'string', +'amount' => 'string', +'currency' => 'string', +'method_id' => 'string', +'original_ip' => 'string', +'secure' => 'int', +'language' => 'string', +'sms_email' => 'string', +'template_id' => 'int', +'email_address' => 'string', +'email_name' => 'string', +'sms_prefix' => 'string', +'sms_number' => 'string', +'scoring' => 'string', +'product_description' => 'string', +'escrow_targets' => '\Swagger\Client\Model\V1formPaymentEscrowTargets[]', +'trx_type' => 'string', +'sca_exception' => 'string', +'merchant_data' => '\Swagger\Client\Model\V1launchpadauthorizationMerchantData' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'order' => null, +'amount' => null, +'currency' => null, +'method_id' => null, +'original_ip' => null, +'secure' => null, +'language' => null, +'sms_email' => null, +'template_id' => null, +'email_address' => null, +'email_name' => null, +'sms_prefix' => null, +'sms_number' => null, +'scoring' => null, +'product_description' => null, +'escrow_targets' => null, +'trx_type' => null, +'sca_exception' => null, +'merchant_data' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'order' => 'order', +'amount' => 'amount', +'currency' => 'currency', +'method_id' => 'methodId', +'original_ip' => 'originalIp', +'secure' => 'secure', +'language' => 'language', +'sms_email' => 'smsEmail', +'template_id' => 'templateId', +'email_address' => 'emailAddress', +'email_name' => 'emailName', +'sms_prefix' => 'smsPrefix', +'sms_number' => 'smsNumber', +'scoring' => 'scoring', +'product_description' => 'productDescription', +'escrow_targets' => 'escrowTargets', +'trx_type' => 'trxType', +'sca_exception' => 'scaException', +'merchant_data' => 'merchantData' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'order' => 'setOrder', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'original_ip' => 'setOriginalIp', +'secure' => 'setSecure', +'language' => 'setLanguage', +'sms_email' => 'setSmsEmail', +'template_id' => 'setTemplateId', +'email_address' => 'setEmailAddress', +'email_name' => 'setEmailName', +'sms_prefix' => 'setSmsPrefix', +'sms_number' => 'setSmsNumber', +'scoring' => 'setScoring', +'product_description' => 'setProductDescription', +'escrow_targets' => 'setEscrowTargets', +'trx_type' => 'setTrxType', +'sca_exception' => 'setScaException', +'merchant_data' => 'setMerchantData' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'order' => 'getOrder', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'original_ip' => 'getOriginalIp', +'secure' => 'getSecure', +'language' => 'getLanguage', +'sms_email' => 'getSmsEmail', +'template_id' => 'getTemplateId', +'email_address' => 'getEmailAddress', +'email_name' => 'getEmailName', +'sms_prefix' => 'getSmsPrefix', +'sms_number' => 'getSmsNumber', +'scoring' => 'getScoring', +'product_description' => 'getProductDescription', +'escrow_targets' => 'getEscrowTargets', +'trx_type' => 'getTrxType', +'sca_exception' => 'getScaException', +'merchant_data' => 'getMerchantData' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['secure'] = isset($data['secure']) ? $data['secure'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : 'es'; + $this->container['sms_email'] = isset($data['sms_email']) ? $data['sms_email'] : null; + $this->container['template_id'] = isset($data['template_id']) ? $data['template_id'] : null; + $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; + $this->container['email_name'] = isset($data['email_name']) ? $data['email_name'] : null; + $this->container['sms_prefix'] = isset($data['sms_prefix']) ? $data['sms_prefix'] : null; + $this->container['sms_number'] = isset($data['sms_number']) ? $data['sms_number'] : null; + $this->container['scoring'] = isset($data['scoring']) ? $data['scoring'] : null; + $this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null; + $this->container['escrow_targets'] = isset($data['escrow_targets']) ? $data['escrow_targets'] : null; + $this->container['trx_type'] = isset($data['trx_type']) ? $data['trx_type'] : null; + $this->container['sca_exception'] = isset($data['sca_exception']) ? $data['sca_exception'] : null; + $this->container['merchant_data'] = isset($data['merchant_data']) ? $data['merchant_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['order'] === null) { + $invalidProperties[] = "'order' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' can't be null"; + } + if ($this->container['secure'] === null) { + $invalidProperties[] = "'secure' can't be null"; + } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + if ($this->container['sms_email'] === null) { + $invalidProperties[] = "'sms_email' can't be null"; + } + if ($this->container['template_id'] === null) { + $invalidProperties[] = "'template_id' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Unique reference for merchant's purchase + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets secure + * + * @return int + */ + public function getSecure() + { + return $this->container['secure']; + } + + /** + * Sets secure + * + * @param int $secure 0 or 1. Indicates if the transaction is secure. + * + * @return $this + */ + public function setSecure($secure) + { + $this->container['secure'] = $secure; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language ISO2 code of language. + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets sms_email + * + * @return string + */ + public function getSmsEmail() + { + return $this->container['sms_email']; + } + + /** + * Sets sms_email + * + * @param string $sms_email Sending channel of the payment url. Should be \"sms\" or \"email\". + * + * @return $this + */ + public function setSmsEmail($sms_email) + { + $this->container['sms_email'] = $sms_email; + + return $this; + } + + /** + * Gets template_id + * + * @return int + */ + public function getTemplateId() + { + return $this->container['template_id']; + } + + /** + * Sets template_id + * + * @param int $template_id Email or SMS template id to be sent. You can get it in the Control panel. + * + * @return $this + */ + public function setTemplateId($template_id) + { + $this->container['template_id'] = $template_id; + + return $this; + } + + /** + * Gets email_address + * + * @return string + */ + public function getEmailAddress() + { + return $this->container['email_address']; + } + + /** + * Sets email_address + * + * @param string $email_address Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent + * + * @return $this + */ + public function setEmailAddress($email_address) + { + $this->container['email_address'] = $email_address; + + return $this; + } + + /** + * Gets email_name + * + * @return string + */ + public function getEmailName() + { + return $this->container['email_name']; + } + + /** + * Sets email_name + * + * @param string $email_name Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent + * + * @return $this + */ + public function setEmailName($email_name) + { + $this->container['email_name'] = $email_name; + + return $this; + } + + /** + * Gets sms_prefix + * + * @return string + */ + public function getSmsPrefix() + { + return $this->container['sms_prefix']; + } + + /** + * Sets sms_prefix + * + * @param string $sms_prefix Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent + * + * @return $this + */ + public function setSmsPrefix($sms_prefix) + { + $this->container['sms_prefix'] = $sms_prefix; + + return $this; + } + + /** + * Gets sms_number + * + * @return string + */ + public function getSmsNumber() + { + return $this->container['sms_number']; + } + + /** + * Sets sms_number + * + * @param string $sms_number Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent + * + * @return $this + */ + public function setSmsNumber($sms_number) + { + $this->container['sms_number'] = $sms_number; + + return $this; + } + + /** + * Gets scoring + * + * @return string + */ + public function getScoring() + { + return $this->container['scoring']; + } + + /** + * Sets scoring + * + * @param string $scoring Risk scoring value from 0 to 100. + * + * @return $this + */ + public function setScoring($scoring) + { + $this->container['scoring'] = $scoring; + + return $this; + } + + /** + * Gets product_description + * + * @return string + */ + public function getProductDescription() + { + return $this->container['product_description']; + } + + /** + * Sets product_description + * + * @param string $product_description Description of the product sold. + * + * @return $this + */ + public function setProductDescription($product_description) + { + $this->container['product_description'] = $product_description; + + return $this; + } + + /** + * Gets escrow_targets + * + * @return \Swagger\Client\Model\V1formPaymentEscrowTargets[] + */ + public function getEscrowTargets() + { + return $this->container['escrow_targets']; + } + + /** + * Sets escrow_targets + * + * @param \Swagger\Client\Model\V1formPaymentEscrowTargets[] $escrow_targets escrow_targets + * + * @return $this + */ + public function setEscrowTargets($escrow_targets) + { + $this->container['escrow_targets'] = $escrow_targets; + + return $this; + } + + /** + * Gets trx_type + * + * @return string + */ + public function getTrxType() + { + return $this->container['trx_type']; + } + + /** + * Sets trx_type + * + * @param string $trx_type Obligatory only if an MIT exception has been selected in scaException + * + * @return $this + */ + public function setTrxType($trx_type) + { + $this->container['trx_type'] = $trx_type; + + return $this; + } + + /** + * Gets sca_exception + * + * @return string + */ + public function getScaException() + { + return $this->container['sca_exception']; + } + + /** + * Sets sca_exception + * + * @param string $sca_exception TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible + * + * @return $this + */ + public function setScaException($sca_exception) + { + $this->container['sca_exception'] = $sca_exception; + + return $this; + } + + /** + * Gets merchant_data + * + * @return \Swagger\Client\Model\V1launchpadauthorizationMerchantData + */ + public function getMerchantData() + { + return $this->container['merchant_data']; + } + + /** + * Sets merchant_data + * + * @param \Swagger\Client\Model\V1launchpadauthorizationMerchantData $merchant_data merchant_data + * + * @return $this + */ + public function setMerchantData($merchant_data) + { + $this->container['merchant_data'] = $merchant_data; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/LaunchpadSubscriptionBody.php b/lib/Model/LaunchpadSubscriptionBody.php new file mode 100644 index 0000000..2280d63 --- /dev/null +++ b/lib/Model/LaunchpadSubscriptionBody.php @@ -0,0 +1,861 @@ + 'int', +'order' => 'string', +'amount' => 'string', +'currency' => 'string', +'method_id' => 'string', +'original_ip' => 'string', +'secure' => 'int', +'language' => 'string', +'sms_email' => 'string', +'template_id' => 'int', +'email_address' => 'string', +'email_name' => 'string', +'sms_prefix' => 'string', +'sms_number' => 'string', +'scoring' => 'string', +'start_date' => 'string', +'end_date' => 'string', +'periodicity' => 'string', +'merchant_data' => '\Swagger\Client\Model\V1launchpadsubscriptionMerchantData' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'order' => null, +'amount' => null, +'currency' => null, +'method_id' => null, +'original_ip' => null, +'secure' => null, +'language' => null, +'sms_email' => null, +'template_id' => null, +'email_address' => null, +'email_name' => null, +'sms_prefix' => null, +'sms_number' => null, +'scoring' => null, +'start_date' => null, +'end_date' => null, +'periodicity' => null, +'merchant_data' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'order' => 'order', +'amount' => 'amount', +'currency' => 'currency', +'method_id' => 'methodId', +'original_ip' => 'originalIp', +'secure' => 'secure', +'language' => 'language', +'sms_email' => 'smsEmail', +'template_id' => 'templateId', +'email_address' => 'emailAddress', +'email_name' => 'emailName', +'sms_prefix' => 'smsPrefix', +'sms_number' => 'smsNumber', +'scoring' => 'scoring', +'start_date' => 'startDate', +'end_date' => 'endDate', +'periodicity' => 'periodicity', +'merchant_data' => 'merchantData' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'order' => 'setOrder', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'original_ip' => 'setOriginalIp', +'secure' => 'setSecure', +'language' => 'setLanguage', +'sms_email' => 'setSmsEmail', +'template_id' => 'setTemplateId', +'email_address' => 'setEmailAddress', +'email_name' => 'setEmailName', +'sms_prefix' => 'setSmsPrefix', +'sms_number' => 'setSmsNumber', +'scoring' => 'setScoring', +'start_date' => 'setStartDate', +'end_date' => 'setEndDate', +'periodicity' => 'setPeriodicity', +'merchant_data' => 'setMerchantData' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'order' => 'getOrder', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'original_ip' => 'getOriginalIp', +'secure' => 'getSecure', +'language' => 'getLanguage', +'sms_email' => 'getSmsEmail', +'template_id' => 'getTemplateId', +'email_address' => 'getEmailAddress', +'email_name' => 'getEmailName', +'sms_prefix' => 'getSmsPrefix', +'sms_number' => 'getSmsNumber', +'scoring' => 'getScoring', +'start_date' => 'getStartDate', +'end_date' => 'getEndDate', +'periodicity' => 'getPeriodicity', +'merchant_data' => 'getMerchantData' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['secure'] = isset($data['secure']) ? $data['secure'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : 'es'; + $this->container['sms_email'] = isset($data['sms_email']) ? $data['sms_email'] : null; + $this->container['template_id'] = isset($data['template_id']) ? $data['template_id'] : null; + $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; + $this->container['email_name'] = isset($data['email_name']) ? $data['email_name'] : null; + $this->container['sms_prefix'] = isset($data['sms_prefix']) ? $data['sms_prefix'] : null; + $this->container['sms_number'] = isset($data['sms_number']) ? $data['sms_number'] : null; + $this->container['scoring'] = isset($data['scoring']) ? $data['scoring'] : null; + $this->container['start_date'] = isset($data['start_date']) ? $data['start_date'] : null; + $this->container['end_date'] = isset($data['end_date']) ? $data['end_date'] : null; + $this->container['periodicity'] = isset($data['periodicity']) ? $data['periodicity'] : null; + $this->container['merchant_data'] = isset($data['merchant_data']) ? $data['merchant_data'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['order'] === null) { + $invalidProperties[] = "'order' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' can't be null"; + } + if ($this->container['secure'] === null) { + $invalidProperties[] = "'secure' can't be null"; + } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + if ($this->container['sms_email'] === null) { + $invalidProperties[] = "'sms_email' can't be null"; + } + if ($this->container['template_id'] === null) { + $invalidProperties[] = "'template_id' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Unique reference for merchant's purchase + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets secure + * + * @return int + */ + public function getSecure() + { + return $this->container['secure']; + } + + /** + * Sets secure + * + * @param int $secure 0 or 1. Indicates if the transaction is secure. + * + * @return $this + */ + public function setSecure($secure) + { + $this->container['secure'] = $secure; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language ISO2 code of language. + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets sms_email + * + * @return string + */ + public function getSmsEmail() + { + return $this->container['sms_email']; + } + + /** + * Sets sms_email + * + * @param string $sms_email Sending channel of the payment url. Should be \"sms\" or \"email\". + * + * @return $this + */ + public function setSmsEmail($sms_email) + { + $this->container['sms_email'] = $sms_email; + + return $this; + } + + /** + * Gets template_id + * + * @return int + */ + public function getTemplateId() + { + return $this->container['template_id']; + } + + /** + * Sets template_id + * + * @param int $template_id Email or SMS template id to be sent. You can get it in the Control panel. + * + * @return $this + */ + public function setTemplateId($template_id) + { + $this->container['template_id'] = $template_id; + + return $this; + } + + /** + * Gets email_address + * + * @return string + */ + public function getEmailAddress() + { + return $this->container['email_address']; + } + + /** + * Sets email_address + * + * @param string $email_address Conditional. Mandatory in sending method is EMAIL. Email address where link must be sent + * + * @return $this + */ + public function setEmailAddress($email_address) + { + $this->container['email_address'] = $email_address; + + return $this; + } + + /** + * Gets email_name + * + * @return string + */ + public function getEmailName() + { + return $this->container['email_name']; + } + + /** + * Sets email_name + * + * @param string $email_name Conditional. Mandatory in sending method is EMAIL. Email recipient of the email address where link must be sent + * + * @return $this + */ + public function setEmailName($email_name) + { + $this->container['email_name'] = $email_name; + + return $this; + } + + /** + * Gets sms_prefix + * + * @return string + */ + public function getSmsPrefix() + { + return $this->container['sms_prefix']; + } + + /** + * Sets sms_prefix + * + * @param string $sms_prefix Conditional. Mandatory in sending method is SMS. International mobile prefix where link must be sent + * + * @return $this + */ + public function setSmsPrefix($sms_prefix) + { + $this->container['sms_prefix'] = $sms_prefix; + + return $this; + } + + /** + * Gets sms_number + * + * @return string + */ + public function getSmsNumber() + { + return $this->container['sms_number']; + } + + /** + * Sets sms_number + * + * @param string $sms_number Conditional. Mandatory in sending method is SMS. Mobile number where link must be sent + * + * @return $this + */ + public function setSmsNumber($sms_number) + { + $this->container['sms_number'] = $sms_number; + + return $this; + } + + /** + * Gets scoring + * + * @return string + */ + public function getScoring() + { + return $this->container['scoring']; + } + + /** + * Sets scoring + * + * @param string $scoring Risk scoring value from 0 to 100. + * + * @return $this + */ + public function setScoring($scoring) + { + $this->container['scoring'] = $scoring; + + return $this; + } + + /** + * Gets start_date + * + * @return string + */ + public function getStartDate() + { + return $this->container['start_date']; + } + + /** + * Sets start_date + * + * @param string $start_date Subscription start date yyyymmdd. IMPORTANT Subscriptions are charged on the first run if this field has value it will be taken into account for future charges. + * + * @return $this + */ + public function setStartDate($start_date) + { + $this->container['start_date'] = $start_date; + + return $this; + } + + /** + * Gets end_date + * + * @return string + */ + public function getEndDate() + { + return $this->container['end_date']; + } + + /** + * Sets end_date + * + * @param string $end_date Subscription end date yyyymmdd + * + * @return $this + */ + public function setEndDate($end_date) + { + $this->container['end_date'] = $end_date; + + return $this; + } + + /** + * Gets periodicity + * + * @return string + */ + public function getPeriodicity() + { + return $this->container['periodicity']; + } + + /** + * Sets periodicity + * + * @param string $periodicity Subscription periodicity in days. Maximum 365. + * + * @return $this + */ + public function setPeriodicity($periodicity) + { + $this->container['periodicity'] = $periodicity; + + return $this; + } + + /** + * Gets merchant_data + * + * @return \Swagger\Client\Model\V1launchpadsubscriptionMerchantData + */ + public function getMerchantData() + { + return $this->container['merchant_data']; + } + + /** + * Sets merchant_data + * + * @param \Swagger\Client\Model\V1launchpadsubscriptionMerchantData $merchant_data merchant_data + * + * @return $this + */ + public function setMerchantData($merchant_data) + { + $this->container['merchant_data'] = $merchant_data; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/MarketplaceSplittransferBody.php b/lib/Model/MarketplaceSplittransferBody.php new file mode 100644 index 0000000..465b0e6 --- /dev/null +++ b/lib/Model/MarketplaceSplittransferBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1marketplacesplittransferSubmerchant', +'payment' => '\Swagger\Client\Model\V1marketplacesplittransferPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'submerchant' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'submerchant' => 'submerchant', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'submerchant' => 'setSubmerchant', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'submerchant' => 'getSubmerchant', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['submerchant'] === null) { + $invalidProperties[] = "'submerchant' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 submerchant + * + * @return \Swagger\Client\Model\V1marketplacesplittransferSubmerchant + */ + public function getSubmerchant() + { + return $this->container['submerchant']; + } + + /** + * Sets submerchant + * + * @param \Swagger\Client\Model\V1marketplacesplittransferSubmerchant $submerchant submerchant + * + * @return $this + */ + public function setSubmerchant($submerchant) + { + $this->container['submerchant'] = $submerchant; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1marketplacesplittransferPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1marketplacesplittransferPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/MarketplaceSplittransferreversalBody.php b/lib/Model/MarketplaceSplittransferreversalBody.php new file mode 100644 index 0000000..e219c18 --- /dev/null +++ b/lib/Model/MarketplaceSplittransferreversalBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1marketplacesplittransferreversalSubmerchant', +'payment' => '\Swagger\Client\Model\V1marketplacesplittransferreversalPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'submerchant' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'submerchant' => 'submerchant', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'submerchant' => 'setSubmerchant', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'submerchant' => 'getSubmerchant', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['submerchant'] === null) { + $invalidProperties[] = "'submerchant' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 submerchant + * + * @return \Swagger\Client\Model\V1marketplacesplittransferreversalSubmerchant + */ + public function getSubmerchant() + { + return $this->container['submerchant']; + } + + /** + * Sets submerchant + * + * @param \Swagger\Client\Model\V1marketplacesplittransferreversalSubmerchant $submerchant submerchant + * + * @return $this + */ + public function setSubmerchant($submerchant) + { + $this->container['submerchant'] = $submerchant; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1marketplacesplittransferreversalPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1marketplacesplittransferreversalPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/MarketplaceTransferBody.php b/lib/Model/MarketplaceTransferBody.php new file mode 100644 index 0000000..655f789 --- /dev/null +++ b/lib/Model/MarketplaceTransferBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1marketplacesplittransferSubmerchant', +'payment' => '\Swagger\Client\Model\V1marketplacetransferPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'submerchant' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'submerchant' => 'submerchant', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'submerchant' => 'setSubmerchant', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'submerchant' => 'getSubmerchant', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['submerchant'] === null) { + $invalidProperties[] = "'submerchant' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 submerchant + * + * @return \Swagger\Client\Model\V1marketplacesplittransferSubmerchant + */ + public function getSubmerchant() + { + return $this->container['submerchant']; + } + + /** + * Sets submerchant + * + * @param \Swagger\Client\Model\V1marketplacesplittransferSubmerchant $submerchant submerchant + * + * @return $this + */ + public function setSubmerchant($submerchant) + { + $this->container['submerchant'] = $submerchant; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1marketplacetransferPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1marketplacetransferPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/MarketplaceTransferreversalBody.php b/lib/Model/MarketplaceTransferreversalBody.php new file mode 100644 index 0000000..4824491 --- /dev/null +++ b/lib/Model/MarketplaceTransferreversalBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1marketplacetransferreversalSubmerchant', +'payment' => '\Swagger\Client\Model\V1marketplacetransferPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'submerchant' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'submerchant' => 'submerchant', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'submerchant' => 'setSubmerchant', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'submerchant' => 'getSubmerchant', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['submerchant'] = isset($data['submerchant']) ? $data['submerchant'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['submerchant'] === null) { + $invalidProperties[] = "'submerchant' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 submerchant + * + * @return \Swagger\Client\Model\V1marketplacetransferreversalSubmerchant + */ + public function getSubmerchant() + { + return $this->container['submerchant']; + } + + /** + * Sets submerchant + * + * @param \Swagger\Client\Model\V1marketplacetransferreversalSubmerchant $submerchant submerchant + * + * @return $this + */ + public function setSubmerchant($submerchant) + { + $this->container['submerchant'] = $submerchant; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1marketplacetransferPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1marketplacetransferPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/ModelInterface.php b/lib/Model/ModelInterface.php index db31666..5c098eb 100644 --- a/lib/Model/ModelInterface.php +++ b/lib/Model/ModelInterface.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/OrderConfirmBody.php b/lib/Model/OrderConfirmBody.php new file mode 100644 index 0000000..487cc88 --- /dev/null +++ b/lib/Model/OrderConfirmBody.php @@ -0,0 +1,897 @@ + 'int', +'order' => 'string', +'amount' => 'string', +'currency' => 'string', +'method_id' => 'string', +'original_ip' => 'string', +'secure' => 'string', +'id_user' => 'string', +'token_user' => 'string', +'scoring' => 'string', +'product_description' => 'string', +'merchant_descriptor' => 'string', +'user_interaction' => 'int', +'escrow_targets' => '\Swagger\Client\Model\V1formPaymentEscrowTargets[]', +'trx_type' => 'string', +'sca_exception' => 'string', +'url_ok' => 'string', +'url_ko' => 'string', +'notify_direct_payment' => 'int', +'merchant_data' => '\Swagger\Client\Model\V1formPaymentMerchantData', +'dcc' => '\Swagger\Client\Model\V1paymentsdccorderconfirmDcc' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'order' => null, +'amount' => null, +'currency' => null, +'method_id' => null, +'original_ip' => null, +'secure' => null, +'id_user' => null, +'token_user' => null, +'scoring' => null, +'product_description' => null, +'merchant_descriptor' => null, +'user_interaction' => null, +'escrow_targets' => null, +'trx_type' => null, +'sca_exception' => null, +'url_ok' => null, +'url_ko' => null, +'notify_direct_payment' => null, +'merchant_data' => null, +'dcc' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'order' => 'order', +'amount' => 'amount', +'currency' => 'currency', +'method_id' => 'methodId', +'original_ip' => 'originalIp', +'secure' => 'secure', +'id_user' => 'idUser', +'token_user' => 'tokenUser', +'scoring' => 'scoring', +'product_description' => 'productDescription', +'merchant_descriptor' => 'merchantDescriptor', +'user_interaction' => 'userInteraction', +'escrow_targets' => 'escrowTargets', +'trx_type' => 'trxType', +'sca_exception' => 'scaException', +'url_ok' => 'urlOk', +'url_ko' => 'urlKo', +'notify_direct_payment' => 'notifyDirectPayment', +'merchant_data' => 'merchantData', +'dcc' => 'dcc' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'order' => 'setOrder', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'method_id' => 'setMethodId', +'original_ip' => 'setOriginalIp', +'secure' => 'setSecure', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser', +'scoring' => 'setScoring', +'product_description' => 'setProductDescription', +'merchant_descriptor' => 'setMerchantDescriptor', +'user_interaction' => 'setUserInteraction', +'escrow_targets' => 'setEscrowTargets', +'trx_type' => 'setTrxType', +'sca_exception' => 'setScaException', +'url_ok' => 'setUrlOk', +'url_ko' => 'setUrlKo', +'notify_direct_payment' => 'setNotifyDirectPayment', +'merchant_data' => 'setMerchantData', +'dcc' => 'setDcc' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'order' => 'getOrder', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'method_id' => 'getMethodId', +'original_ip' => 'getOriginalIp', +'secure' => 'getSecure', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser', +'scoring' => 'getScoring', +'product_description' => 'getProductDescription', +'merchant_descriptor' => 'getMerchantDescriptor', +'user_interaction' => 'getUserInteraction', +'escrow_targets' => 'getEscrowTargets', +'trx_type' => 'getTrxType', +'sca_exception' => 'getScaException', +'url_ok' => 'getUrlOk', +'url_ko' => 'getUrlKo', +'notify_direct_payment' => 'getNotifyDirectPayment', +'merchant_data' => 'getMerchantData', +'dcc' => 'getDcc' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['secure'] = isset($data['secure']) ? $data['secure'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + $this->container['scoring'] = isset($data['scoring']) ? $data['scoring'] : null; + $this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null; + $this->container['merchant_descriptor'] = isset($data['merchant_descriptor']) ? $data['merchant_descriptor'] : null; + $this->container['user_interaction'] = isset($data['user_interaction']) ? $data['user_interaction'] : null; + $this->container['escrow_targets'] = isset($data['escrow_targets']) ? $data['escrow_targets'] : null; + $this->container['trx_type'] = isset($data['trx_type']) ? $data['trx_type'] : null; + $this->container['sca_exception'] = isset($data['sca_exception']) ? $data['sca_exception'] : null; + $this->container['url_ok'] = isset($data['url_ok']) ? $data['url_ok'] : null; + $this->container['url_ko'] = isset($data['url_ko']) ? $data['url_ko'] : null; + $this->container['notify_direct_payment'] = isset($data['notify_direct_payment']) ? $data['notify_direct_payment'] : null; + $this->container['merchant_data'] = isset($data['merchant_data']) ? $data['merchant_data'] : null; + $this->container['dcc'] = isset($data['dcc']) ? $data['dcc'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['dcc'] === null) { + $invalidProperties[] = "'dcc' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Unique reference for merchant's purchase + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets secure + * + * @return string + */ + public function getSecure() + { + return $this->container['secure']; + } + + /** + * Sets secure + * + * @param string $secure 0 or 1. Indicates if the transaction is secure. + * + * @return $this + */ + public function setSecure($secure) + { + $this->container['secure'] = $secure; + + return $this; + } + + /** + * Gets id_user + * + * @return string + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param string $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + return $this; + } + + /** + * Gets scoring + * + * @return string + */ + public function getScoring() + { + return $this->container['scoring']; + } + + /** + * Sets scoring + * + * @param string $scoring Risk scoring value from 0 to 100. + * + * @return $this + */ + public function setScoring($scoring) + { + $this->container['scoring'] = $scoring; + + return $this; + } + + /** + * Gets product_description + * + * @return string + */ + public function getProductDescription() + { + return $this->container['product_description']; + } + + /** + * Sets product_description + * + * @param string $product_description Description of the product sold. + * + * @return $this + */ + public function setProductDescription($product_description) + { + $this->container['product_description'] = $product_description; + + return $this; + } + + /** + * Gets merchant_descriptor + * + * @return string + */ + public function getMerchantDescriptor() + { + return $this->container['merchant_descriptor']; + } + + /** + * Sets merchant_descriptor + * + * @param string $merchant_descriptor Allows the business to send a text up to 25 characters that will be printed on the customer invoice. Limited to simple characters, no accents or special characters. + * + * @return $this + */ + public function setMerchantDescriptor($merchant_descriptor) + { + $this->container['merchant_descriptor'] = $merchant_descriptor; + + return $this; + } + + /** + * Gets user_interaction + * + * @return int + */ + public function getUserInteraction() + { + return $this->container['user_interaction']; + } + + /** + * Sets user_interaction + * + * @param int $user_interaction Indicates wether the business can interact with the customer + * + * @return $this + */ + public function setUserInteraction($user_interaction) + { + $this->container['user_interaction'] = $user_interaction; + + return $this; + } + + /** + * Gets escrow_targets + * + * @return \Swagger\Client\Model\V1formPaymentEscrowTargets[] + */ + public function getEscrowTargets() + { + return $this->container['escrow_targets']; + } + + /** + * Sets escrow_targets + * + * @param \Swagger\Client\Model\V1formPaymentEscrowTargets[] $escrow_targets escrow_targets + * + * @return $this + */ + public function setEscrowTargets($escrow_targets) + { + $this->container['escrow_targets'] = $escrow_targets; + + return $this; + } + + /** + * Gets trx_type + * + * @return string + */ + public function getTrxType() + { + return $this->container['trx_type']; + } + + /** + * Sets trx_type + * + * @param string $trx_type Obligatory only if an MIT exception has been selected in scaException + * + * @return $this + */ + public function setTrxType($trx_type) + { + $this->container['trx_type'] = $trx_type; + + return $this; + } + + /** + * Gets sca_exception + * + * @return string + */ + public function getScaException() + { + return $this->container['sca_exception']; + } + + /** + * Sets sca_exception + * + * @param string $sca_exception TYPE OF EXCEPTION TO THE SECURE PAYMENT. If not specified, PAYCOMET will try to assign it the most appropriate possible + * + * @return $this + */ + public function setScaException($sca_exception) + { + $this->container['sca_exception'] = $sca_exception; + + return $this; + } + + /** + * Gets url_ok + * + * @return string + */ + public function getUrlOk() + { + return $this->container['url_ok']; + } + + /** + * Sets url_ok + * + * @param string $url_ok Url where the customer will be redirected after finishing a correct transaction. + * + * @return $this + */ + public function setUrlOk($url_ok) + { + $this->container['url_ok'] = $url_ok; + + return $this; + } + + /** + * Gets url_ko + * + * @return string + */ + public function getUrlKo() + { + return $this->container['url_ko']; + } + + /** + * Sets url_ko + * + * @param string $url_ko Url where the customer will be redirected after finishing a failed transaction. + * + * @return $this + */ + public function setUrlKo($url_ko) + { + $this->container['url_ko'] = $url_ko; + + return $this; + } + + /** + * Gets notify_direct_payment + * + * @return int + */ + public function getNotifyDirectPayment() + { + return $this->container['notify_direct_payment']; + } + + /** + * Sets notify_direct_payment + * + * @param int $notify_direct_payment Configurate POST notification of the operation result in frictionless payment (possible values: 1 - force notify, 2 - not notify). It will notify if is not informed + * + * @return $this + */ + public function setNotifyDirectPayment($notify_direct_payment) + { + $this->container['notify_direct_payment'] = $notify_direct_payment; + + return $this; + } + + /** + * Gets merchant_data + * + * @return \Swagger\Client\Model\V1formPaymentMerchantData + */ + public function getMerchantData() + { + return $this->container['merchant_data']; + } + + /** + * Sets merchant_data + * + * @param \Swagger\Client\Model\V1formPaymentMerchantData $merchant_data merchant_data + * + * @return $this + */ + public function setMerchantData($merchant_data) + { + $this->container['merchant_data'] = $merchant_data; + + return $this; + } + + /** + * Gets dcc + * + * @return \Swagger\Client\Model\V1paymentsdccorderconfirmDcc + */ + public function getDcc() + { + return $this->container['dcc']; + } + + /** + * Sets dcc + * + * @param \Swagger\Client\Model\V1paymentsdccorderconfirmDcc $dcc dcc + * + * @return $this + */ + public function setDcc($dcc) + { + $this->container['dcc'] = $dcc; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/OrderEditBody.php b/lib/Model/OrderEditBody.php new file mode 100644 index 0000000..e871921 --- /dev/null +++ b/lib/Model/OrderEditBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1subscriptionordereditSubscription', +'payment' => '\Swagger\Client\Model\V1subscriptionordereditPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subscription' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'subscription' => 'subscription', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subscription' => 'setSubscription', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subscription' => 'getSubscription', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['subscription'] === null) { + $invalidProperties[] = "'subscription' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 subscription + * + * @return \Swagger\Client\Model\V1subscriptionordereditSubscription + */ + public function getSubscription() + { + return $this->container['subscription']; + } + + /** + * Sets subscription + * + * @param \Swagger\Client\Model\V1subscriptionordereditSubscription $subscription subscription + * + * @return $this + */ + public function setSubscription($subscription) + { + $this->container['subscription'] = $subscription; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1subscriptionordereditPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1subscriptionordereditPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/OrderExecuteBody.php b/lib/Model/OrderExecuteBody.php new file mode 100644 index 0000000..906ff84 --- /dev/null +++ b/lib/Model/OrderExecuteBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1subscriptionSubscription', +'payment' => '\Swagger\Client\Model\V1subscriptionorderexecutePayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subscription' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'subscription' => 'subscription', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subscription' => 'setSubscription', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subscription' => 'getSubscription', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['subscription'] === null) { + $invalidProperties[] = "'subscription' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 subscription + * + * @return \Swagger\Client\Model\V1subscriptionSubscription + */ + public function getSubscription() + { + return $this->container['subscription']; + } + + /** + * Sets subscription + * + * @param \Swagger\Client\Model\V1subscriptionSubscription $subscription subscription + * + * @return $this + */ + public function setSubscription($subscription) + { + $this->container['subscription'] = $subscription; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1subscriptionorderexecutePayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1subscriptionorderexecutePayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/OrderInfoBody.php b/lib/Model/OrderInfoBody.php new file mode 100644 index 0000000..b5eee80 --- /dev/null +++ b/lib/Model/OrderInfoBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsorderinfoPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsorderinfoPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsorderinfoPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/OrderRefundBody.php b/lib/Model/OrderRefundBody.php new file mode 100644 index 0000000..9a4c51e --- /dev/null +++ b/lib/Model/OrderRefundBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsorderrefundPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsorderrefundPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsorderrefundPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/OrderRemoveBody.php b/lib/Model/OrderRemoveBody.php new file mode 100644 index 0000000..84096b9 --- /dev/null +++ b/lib/Model/OrderRemoveBody.php @@ -0,0 +1,294 @@ + '\Swagger\Client\Model\V1subscriptionorderremovePayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 payment + * + * @return \Swagger\Client\Model\V1subscriptionorderremovePayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1subscriptionorderremovePayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PaymentsDccBody.php b/lib/Model/PaymentsDccBody.php new file mode 100644 index 0000000..d1c7620 --- /dev/null +++ b/lib/Model/PaymentsDccBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsdccPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsdccPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsdccPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PaymentsPreauthBody.php b/lib/Model/PaymentsPreauthBody.php new file mode 100644 index 0000000..19f0040 --- /dev/null +++ b/lib/Model/PaymentsPreauthBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentspreauthPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentspreauthPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentspreauthPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PaymentsPreauthrtokenBody.php b/lib/Model/PaymentsPreauthrtokenBody.php new file mode 100644 index 0000000..a8b896b --- /dev/null +++ b/lib/Model/PaymentsPreauthrtokenBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsrtokenPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsrtokenPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsrtokenPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PaymentsRtokenBody.php b/lib/Model/PaymentsRtokenBody.php new file mode 100644 index 0000000..bde8e56 --- /dev/null +++ b/lib/Model/PaymentsRtokenBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsrtokenPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsrtokenPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsrtokenPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PaymentsSearchBody.php b/lib/Model/PaymentsSearchBody.php new file mode 100644 index 0000000..a505d83 --- /dev/null +++ b/lib/Model/PaymentsSearchBody.php @@ -0,0 +1,681 @@ + 'int', +'sort_type' => 'int', +'sort_order' => 'string', +'operations' => 'int[]', +'min_amount' => 'int', +'max_amount' => 'int', +'state' => 'int', +'from_date' => 'string', +'to_date' => 'string', +'currency' => 'string', +'limit' => 'int', +'order' => 'string', +'search_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'sort_type' => null, +'sort_order' => null, +'operations' => null, +'min_amount' => null, +'max_amount' => null, +'state' => null, +'from_date' => null, +'to_date' => null, +'currency' => null, +'limit' => null, +'order' => null, +'search_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'sort_type' => 'sortType', +'sort_order' => 'sortOrder', +'operations' => 'operations', +'min_amount' => 'minAmount', +'max_amount' => 'maxAmount', +'state' => 'state', +'from_date' => 'fromDate', +'to_date' => 'toDate', +'currency' => 'currency', +'limit' => 'limit', +'order' => 'order', +'search_type' => 'searchType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'sort_type' => 'setSortType', +'sort_order' => 'setSortOrder', +'operations' => 'setOperations', +'min_amount' => 'setMinAmount', +'max_amount' => 'setMaxAmount', +'state' => 'setState', +'from_date' => 'setFromDate', +'to_date' => 'setToDate', +'currency' => 'setCurrency', +'limit' => 'setLimit', +'order' => 'setOrder', +'search_type' => 'setSearchType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'sort_type' => 'getSortType', +'sort_order' => 'getSortOrder', +'operations' => 'getOperations', +'min_amount' => 'getMinAmount', +'max_amount' => 'getMaxAmount', +'state' => 'getState', +'from_date' => 'getFromDate', +'to_date' => 'getToDate', +'currency' => 'getCurrency', +'limit' => 'getLimit', +'order' => 'getOrder', +'search_type' => 'getSearchType' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['sort_type'] = isset($data['sort_type']) ? $data['sort_type'] : null; + $this->container['sort_order'] = isset($data['sort_order']) ? $data['sort_order'] : null; + $this->container['operations'] = isset($data['operations']) ? $data['operations'] : null; + $this->container['min_amount'] = isset($data['min_amount']) ? $data['min_amount'] : null; + $this->container['max_amount'] = isset($data['max_amount']) ? $data['max_amount'] : null; + $this->container['state'] = isset($data['state']) ? $data['state'] : null; + $this->container['from_date'] = isset($data['from_date']) ? $data['from_date'] : null; + $this->container['to_date'] = isset($data['to_date']) ? $data['to_date'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['limit'] = isset($data['limit']) ? $data['limit'] : 10000; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['search_type'] = isset($data['search_type']) ? $data['search_type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['sort_type'] === null) { + $invalidProperties[] = "'sort_type' can't be null"; + } + if ($this->container['sort_order'] === null) { + $invalidProperties[] = "'sort_order' can't be null"; + } + if ($this->container['operations'] === null) { + $invalidProperties[] = "'operations' can't be null"; + } + if ($this->container['min_amount'] === null) { + $invalidProperties[] = "'min_amount' can't be null"; + } + if ($this->container['max_amount'] === null) { + $invalidProperties[] = "'max_amount' can't be null"; + } + if ($this->container['state'] === null) { + $invalidProperties[] = "'state' can't be null"; + } + if ($this->container['from_date'] === null) { + $invalidProperties[] = "'from_date' can't be null"; + } + if ($this->container['to_date'] === null) { + $invalidProperties[] = "'to_date' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets sort_type + * + * @return int + */ + public function getSortType() + { + return $this->container['sort_type']; + } + + /** + * Sets sort_type + * + * @param int $sort_type Sorting type (0 No sorting, 1 date, 2 order, 3 type, 4 state, 5 terminal, 6 amount, 7 user). + * + * @return $this + */ + public function setSortType($sort_type) + { + $this->container['sort_type'] = $sort_type; + + return $this; + } + + /** + * Gets sort_order + * + * @return string + */ + public function getSortOrder() + { + return $this->container['sort_order']; + } + + /** + * Sets sort_order + * + * @param string $sort_order Sort results ASC = Ascending, DESC = Descending. + * + * @return $this + */ + public function setSortOrder($sort_order) + { + $this->container['sort_order'] = $sort_order; + + return $this; + } + + /** + * Gets operations + * + * @return int[] + */ + public function getOperations() + { + return $this->container['operations']; + } + + /** + * Sets operations + * + * @param int[] $operations operations + * + * @return $this + */ + public function setOperations($operations) + { + $this->container['operations'] = $operations; + + return $this; + } + + /** + * Gets min_amount + * + * @return int + */ + public function getMinAmount() + { + return $this->container['min_amount']; + } + + /** + * Sets min_amount + * + * @param int $min_amount Minimum amount of the operation in whole format + * + * @return $this + */ + public function setMinAmount($min_amount) + { + $this->container['min_amount'] = $min_amount; + + return $this; + } + + /** + * Gets max_amount + * + * @return int + */ + public function getMaxAmount() + { + return $this->container['max_amount']; + } + + /** + * Sets max_amount + * + * @param int $max_amount Maximum amount of the operation in whole format + * + * @return $this + */ + public function setMaxAmount($max_amount) + { + $this->container['max_amount'] = $max_amount; + + return $this; + } + + /** + * Gets state + * + * @return int + */ + public function getState() + { + return $this->container['state']; + } + + /** + * Sets state + * + * @param int $state Result of operation. 0 is operation failed, 1 operation correct and 2 operation unfinished (for pending operations from an SCA or 3DS). + * + * @return $this + */ + public function setState($state) + { + $this->container['state'] = $state; + + return $this; + } + + /** + * Gets from_date + * + * @return string + */ + public function getFromDate() + { + return $this->container['from_date']; + } + + /** + * Sets from_date + * + * @param string $from_date Start datetime limit (format: YmdHis) + * + * @return $this + */ + public function setFromDate($from_date) + { + $this->container['from_date'] = $from_date; + + return $this; + } + + /** + * Gets to_date + * + * @return string + */ + public function getToDate() + { + return $this->container['to_date']; + } + + /** + * Sets to_date + * + * @param string $to_date Finish datetime limit (format: YmdHis) + * + * @return $this + */ + public function setToDate($to_date) + { + $this->container['to_date'] = $to_date; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency Currency of the transaction. + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets limit + * + * @return int + */ + public function getLimit() + { + return $this->container['limit']; + } + + /** + * Sets limit + * + * @param int $limit Results limit. + * + * @return $this + */ + public function setLimit($limit) + { + $this->container['limit'] = $limit; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Unique reference for merchant's purchase + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets search_type + * + * @return int + */ + public function getSearchType() + { + return $this->container['search_type']; + } + + /** + * Sets search_type + * + * @param int $search_type Comparison type. 0 LIKE comparison (%xxx%) , 1 exact comparison (=) + * + * @return $this + */ + public function setSearchType($search_type) + { + $this->container['search_type'] = $search_type; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PreauthCancelBody.php b/lib/Model/PreauthCancelBody.php new file mode 100644 index 0000000..e7d1f3b --- /dev/null +++ b/lib/Model/PreauthCancelBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsorderpreauthcancelPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsorderpreauthcancelPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsorderpreauthcancelPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/PreauthConfirmBody.php b/lib/Model/PreauthConfirmBody.php new file mode 100644 index 0000000..6e14273 --- /dev/null +++ b/lib/Model/PreauthConfirmBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsorderpreauthconfirmPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsorderpreauthconfirmPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsorderpreauthconfirmPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/SepaAdddocumentBody.php b/lib/Model/SepaAdddocumentBody.php new file mode 100644 index 0000000..0405cc5 --- /dev/null +++ b/lib/Model/SepaAdddocumentBody.php @@ -0,0 +1,489 @@ + 'int', +'sepa_provider_id' => 'int', +'merchant_code' => 'string', +'merchant_customer_id' => 'string', +'merchant_customer_iban' => 'string', +'document_type' => 'int', +'file_content' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'sepa_provider_id' => null, +'merchant_code' => null, +'merchant_customer_id' => null, +'merchant_customer_iban' => null, +'document_type' => null, +'file_content' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'sepa_provider_id' => 'sepaProviderId', +'merchant_code' => 'merchantCode', +'merchant_customer_id' => 'merchantCustomerId', +'merchant_customer_iban' => 'merchantCustomerIban', +'document_type' => 'documentType', +'file_content' => 'fileContent' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'sepa_provider_id' => 'setSepaProviderId', +'merchant_code' => 'setMerchantCode', +'merchant_customer_id' => 'setMerchantCustomerId', +'merchant_customer_iban' => 'setMerchantCustomerIban', +'document_type' => 'setDocumentType', +'file_content' => 'setFileContent' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'sepa_provider_id' => 'getSepaProviderId', +'merchant_code' => 'getMerchantCode', +'merchant_customer_id' => 'getMerchantCustomerId', +'merchant_customer_iban' => 'getMerchantCustomerIban', +'document_type' => 'getDocumentType', +'file_content' => 'getFileContent' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['sepa_provider_id'] = isset($data['sepa_provider_id']) ? $data['sepa_provider_id'] : null; + $this->container['merchant_code'] = isset($data['merchant_code']) ? $data['merchant_code'] : null; + $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; + $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; + $this->container['document_type'] = isset($data['document_type']) ? $data['document_type'] : null; + $this->container['file_content'] = isset($data['file_content']) ? $data['file_content'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['sepa_provider_id'] === null) { + $invalidProperties[] = "'sepa_provider_id' can't be null"; + } + if ($this->container['merchant_code'] === null) { + $invalidProperties[] = "'merchant_code' can't be null"; + } + if ($this->container['merchant_customer_id'] === null) { + $invalidProperties[] = "'merchant_customer_id' can't be null"; + } + if ($this->container['merchant_customer_iban'] === null) { + $invalidProperties[] = "'merchant_customer_iban' can't be null"; + } + if ($this->container['document_type'] === null) { + $invalidProperties[] = "'document_type' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets sepa_provider_id + * + * @return int + */ + public function getSepaProviderId() + { + return $this->container['sepa_provider_id']; + } + + /** + * Sets sepa_provider_id + * + * @param int $sepa_provider_id Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. + * + * @return $this + */ + public function setSepaProviderId($sepa_provider_id) + { + $this->container['sepa_provider_id'] = $sepa_provider_id; + + return $this; + } + + /** + * Gets merchant_code + * + * @return string + */ + public function getMerchantCode() + { + return $this->container['merchant_code']; + } + + /** + * Sets merchant_code + * + * @param string $merchant_code Unique identifier as PAYCOMET account. Available on the client control panel. + * + * @return $this + */ + public function setMerchantCode($merchant_code) + { + $this->container['merchant_code'] = $merchant_code; + + return $this; + } + + /** + * Gets merchant_customer_id + * + * @return string + */ + public function getMerchantCustomerId() + { + return $this->container['merchant_customer_id']; + } + + /** + * Sets merchant_customer_id + * + * @param string $merchant_customer_id Unique identifier of the client of the supplier. + * + * @return $this + */ + public function setMerchantCustomerId($merchant_customer_id) + { + $this->container['merchant_customer_id'] = $merchant_customer_id; + + return $this; + } + + /** + * Gets merchant_customer_iban + * + * @return string + */ + public function getMerchantCustomerIban() + { + return $this->container['merchant_customer_iban']; + } + + /** + * Sets merchant_customer_iban + * + * @param string $merchant_customer_iban Account number of the client in IBAN format. + * + * @return $this + */ + public function setMerchantCustomerIban($merchant_customer_iban) + { + $this->container['merchant_customer_iban'] = $merchant_customer_iban; + + return $this; + } + + /** + * Gets document_type + * + * @return int + */ + public function getDocumentType() + { + return $this->container['document_type']; + } + + /** + * Sets document_type + * + * @param int $document_type Identifier of the type of document on PAYCOMET. + * + * @return $this + */ + public function setDocumentType($document_type) + { + $this->container['document_type'] = $document_type; + + return $this; + } + + /** + * Gets file_content + * + * @return string + */ + public function getFileContent() + { + return $this->container['file_content']; + } + + /** + * Sets file_content + * + * @param string $file_content Binary content of the file to send, codified in base 64. + * + * @return $this + */ + public function setFileContent($file_content) + { + $this->container['file_content'] = $file_content; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/SepaCheckcustomerBody.php b/lib/Model/SepaCheckcustomerBody.php new file mode 100644 index 0000000..11bb726 --- /dev/null +++ b/lib/Model/SepaCheckcustomerBody.php @@ -0,0 +1,459 @@ + 'int', +'sepa_provider_id' => 'int', +'merchant_code' => 'string', +'merchant_customer_id' => 'string', +'merchant_customer_iban' => 'string', +'merchant_customer_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'sepa_provider_id' => null, +'merchant_code' => null, +'merchant_customer_id' => null, +'merchant_customer_iban' => null, +'merchant_customer_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'sepa_provider_id' => 'sepaProviderId', +'merchant_code' => 'merchantCode', +'merchant_customer_id' => 'merchantCustomerId', +'merchant_customer_iban' => 'merchantCustomerIban', +'merchant_customer_type' => 'merchantCustomerType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'sepa_provider_id' => 'setSepaProviderId', +'merchant_code' => 'setMerchantCode', +'merchant_customer_id' => 'setMerchantCustomerId', +'merchant_customer_iban' => 'setMerchantCustomerIban', +'merchant_customer_type' => 'setMerchantCustomerType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'sepa_provider_id' => 'getSepaProviderId', +'merchant_code' => 'getMerchantCode', +'merchant_customer_id' => 'getMerchantCustomerId', +'merchant_customer_iban' => 'getMerchantCustomerIban', +'merchant_customer_type' => 'getMerchantCustomerType' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['sepa_provider_id'] = isset($data['sepa_provider_id']) ? $data['sepa_provider_id'] : null; + $this->container['merchant_code'] = isset($data['merchant_code']) ? $data['merchant_code'] : null; + $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; + $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; + $this->container['merchant_customer_type'] = isset($data['merchant_customer_type']) ? $data['merchant_customer_type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['sepa_provider_id'] === null) { + $invalidProperties[] = "'sepa_provider_id' can't be null"; + } + if ($this->container['merchant_code'] === null) { + $invalidProperties[] = "'merchant_code' can't be null"; + } + if ($this->container['merchant_customer_id'] === null) { + $invalidProperties[] = "'merchant_customer_id' can't be null"; + } + if ($this->container['merchant_customer_iban'] === null) { + $invalidProperties[] = "'merchant_customer_iban' can't be null"; + } + if ($this->container['merchant_customer_type'] === null) { + $invalidProperties[] = "'merchant_customer_type' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets sepa_provider_id + * + * @return int + */ + public function getSepaProviderId() + { + return $this->container['sepa_provider_id']; + } + + /** + * Sets sepa_provider_id + * + * @param int $sepa_provider_id Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. + * + * @return $this + */ + public function setSepaProviderId($sepa_provider_id) + { + $this->container['sepa_provider_id'] = $sepa_provider_id; + + return $this; + } + + /** + * Gets merchant_code + * + * @return string + */ + public function getMerchantCode() + { + return $this->container['merchant_code']; + } + + /** + * Sets merchant_code + * + * @param string $merchant_code Unique identifier as PAYCOMET account. Available on the client control panel. + * + * @return $this + */ + public function setMerchantCode($merchant_code) + { + $this->container['merchant_code'] = $merchant_code; + + return $this; + } + + /** + * Gets merchant_customer_id + * + * @return string + */ + public function getMerchantCustomerId() + { + return $this->container['merchant_customer_id']; + } + + /** + * Sets merchant_customer_id + * + * @param string $merchant_customer_id Unique identifier of the client of the supplier. + * + * @return $this + */ + public function setMerchantCustomerId($merchant_customer_id) + { + $this->container['merchant_customer_id'] = $merchant_customer_id; + + return $this; + } + + /** + * Gets merchant_customer_iban + * + * @return string + */ + public function getMerchantCustomerIban() + { + return $this->container['merchant_customer_iban']; + } + + /** + * Sets merchant_customer_iban + * + * @param string $merchant_customer_iban Account number of the client in IBAN format. + * + * @return $this + */ + public function setMerchantCustomerIban($merchant_customer_iban) + { + $this->container['merchant_customer_iban'] = $merchant_customer_iban; + + return $this; + } + + /** + * Gets merchant_customer_type + * + * @return int + */ + public function getMerchantCustomerType() + { + return $this->container['merchant_customer_type']; + } + + /** + * Sets merchant_customer_type + * + * @param int $merchant_customer_type Identifier of the type of company on PAYCOMET. + * + * @return $this + */ + public function setMerchantCustomerType($merchant_customer_type) + { + $this->container['merchant_customer_type'] = $merchant_customer_type; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/SepaCheckdocumentBody.php b/lib/Model/SepaCheckdocumentBody.php new file mode 100644 index 0000000..350f722 --- /dev/null +++ b/lib/Model/SepaCheckdocumentBody.php @@ -0,0 +1,459 @@ + 'int', +'sepa_provider_id' => 'int', +'merchant_code' => 'string', +'merchant_customer_id' => 'string', +'merchant_customer_iban' => 'string', +'document_type' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'sepa_provider_id' => null, +'merchant_code' => null, +'merchant_customer_id' => null, +'merchant_customer_iban' => null, +'document_type' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'sepa_provider_id' => 'sepaProviderId', +'merchant_code' => 'merchantCode', +'merchant_customer_id' => 'merchantCustomerId', +'merchant_customer_iban' => 'merchantCustomerIban', +'document_type' => 'documentType' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'sepa_provider_id' => 'setSepaProviderId', +'merchant_code' => 'setMerchantCode', +'merchant_customer_id' => 'setMerchantCustomerId', +'merchant_customer_iban' => 'setMerchantCustomerIban', +'document_type' => 'setDocumentType' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'sepa_provider_id' => 'getSepaProviderId', +'merchant_code' => 'getMerchantCode', +'merchant_customer_id' => 'getMerchantCustomerId', +'merchant_customer_iban' => 'getMerchantCustomerIban', +'document_type' => 'getDocumentType' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['sepa_provider_id'] = isset($data['sepa_provider_id']) ? $data['sepa_provider_id'] : null; + $this->container['merchant_code'] = isset($data['merchant_code']) ? $data['merchant_code'] : null; + $this->container['merchant_customer_id'] = isset($data['merchant_customer_id']) ? $data['merchant_customer_id'] : null; + $this->container['merchant_customer_iban'] = isset($data['merchant_customer_iban']) ? $data['merchant_customer_iban'] : null; + $this->container['document_type'] = isset($data['document_type']) ? $data['document_type'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['sepa_provider_id'] === null) { + $invalidProperties[] = "'sepa_provider_id' can't be null"; + } + if ($this->container['merchant_code'] === null) { + $invalidProperties[] = "'merchant_code' can't be null"; + } + if ($this->container['merchant_customer_id'] === null) { + $invalidProperties[] = "'merchant_customer_id' can't be null"; + } + if ($this->container['merchant_customer_iban'] === null) { + $invalidProperties[] = "'merchant_customer_iban' can't be null"; + } + if ($this->container['document_type'] === null) { + $invalidProperties[] = "'document_type' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets sepa_provider_id + * + * @return int + */ + public function getSepaProviderId() + { + return $this->container['sepa_provider_id']; + } + + /** + * Sets sepa_provider_id + * + * @param int $sepa_provider_id Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. + * + * @return $this + */ + public function setSepaProviderId($sepa_provider_id) + { + $this->container['sepa_provider_id'] = $sepa_provider_id; + + return $this; + } + + /** + * Gets merchant_code + * + * @return string + */ + public function getMerchantCode() + { + return $this->container['merchant_code']; + } + + /** + * Sets merchant_code + * + * @param string $merchant_code Unique identifier as PAYCOMET account. Available on the client control panel. + * + * @return $this + */ + public function setMerchantCode($merchant_code) + { + $this->container['merchant_code'] = $merchant_code; + + return $this; + } + + /** + * Gets merchant_customer_id + * + * @return string + */ + public function getMerchantCustomerId() + { + return $this->container['merchant_customer_id']; + } + + /** + * Sets merchant_customer_id + * + * @param string $merchant_customer_id Unique identifier of the client of the supplier. + * + * @return $this + */ + public function setMerchantCustomerId($merchant_customer_id) + { + $this->container['merchant_customer_id'] = $merchant_customer_id; + + return $this; + } + + /** + * Gets merchant_customer_iban + * + * @return string + */ + public function getMerchantCustomerIban() + { + return $this->container['merchant_customer_iban']; + } + + /** + * Sets merchant_customer_iban + * + * @param string $merchant_customer_iban Account number of the client in IBAN format. + * + * @return $this + */ + public function setMerchantCustomerIban($merchant_customer_iban) + { + $this->container['merchant_customer_iban'] = $merchant_customer_iban; + + return $this; + } + + /** + * Gets document_type + * + * @return int + */ + public function getDocumentType() + { + return $this->container['document_type']; + } + + /** + * Sets document_type + * + * @param int $document_type Identifier of the type of document on PAYCOMET. + * + * @return $this + */ + public function setDocumentType($document_type) + { + $this->container['document_type'] = $document_type; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/SepaOperationsBody.php b/lib/Model/SepaOperationsBody.php new file mode 100644 index 0000000..7bb11d1 --- /dev/null +++ b/lib/Model/SepaOperationsBody.php @@ -0,0 +1,360 @@ + 'int', +'sepa_provider_id' => 'int', +'operations' => '\Swagger\Client\Model\V1sepaoperationsOperations[]' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'sepa_provider_id' => null, +'operations' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'sepa_provider_id' => 'sepaProviderId', +'operations' => 'operations' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'sepa_provider_id' => 'setSepaProviderId', +'operations' => 'setOperations' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'sepa_provider_id' => 'getSepaProviderId', +'operations' => 'getOperations' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['sepa_provider_id'] = isset($data['sepa_provider_id']) ? $data['sepa_provider_id'] : null; + $this->container['operations'] = isset($data['operations']) ? $data['operations'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['sepa_provider_id'] === null) { + $invalidProperties[] = "'sepa_provider_id' can't be null"; + } + if ($this->container['operations'] === null) { + $invalidProperties[] = "'operations' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets sepa_provider_id + * + * @return int + */ + public function getSepaProviderId() + { + return $this->container['sepa_provider_id']; + } + + /** + * Sets sepa_provider_id + * + * @param int $sepa_provider_id Unique identifier assigned by PAYCOMET for the supplier sending SEPA operations. Available on the client control panel. + * + * @return $this + */ + public function setSepaProviderId($sepa_provider_id) + { + $this->container['sepa_provider_id'] = $sepa_provider_id; + + return $this; + } + + /** + * Gets operations + * + * @return \Swagger\Client\Model\V1sepaoperationsOperations[] + */ + public function getOperations() + { + return $this->container['operations']; + } + + /** + * Sets operations + * + * @param \Swagger\Client\Model\V1sepaoperationsOperations[] $operations operations + * + * @return $this + */ + public function setOperations($operations) + { + $this->container['operations'] = $operations; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1BalanceBody.php b/lib/Model/V1BalanceBody.php new file mode 100644 index 0000000..c9d4c6e --- /dev/null +++ b/lib/Model/V1BalanceBody.php @@ -0,0 +1,294 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1CardsBody.php b/lib/Model/V1CardsBody.php new file mode 100644 index 0000000..2466f65 --- /dev/null +++ b/lib/Model/V1CardsBody.php @@ -0,0 +1,564 @@ + 'int', +'cvc2' => 'string', +'jet_token' => 'string', +'expiry_year' => 'string', +'expiry_month' => 'string', +'pan' => 'string', +'order' => 'string', +'product_description' => 'string', +'language' => 'string', +'notify' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'cvc2' => null, +'jet_token' => null, +'expiry_year' => null, +'expiry_month' => null, +'pan' => null, +'order' => null, +'product_description' => null, +'language' => null, +'notify' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'cvc2' => 'cvc2', +'jet_token' => 'jetToken', +'expiry_year' => 'expiryYear', +'expiry_month' => 'expiryMonth', +'pan' => 'pan', +'order' => 'order', +'product_description' => 'productDescription', +'language' => 'language', +'notify' => 'notify' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'cvc2' => 'setCvc2', +'jet_token' => 'setJetToken', +'expiry_year' => 'setExpiryYear', +'expiry_month' => 'setExpiryMonth', +'pan' => 'setPan', +'order' => 'setOrder', +'product_description' => 'setProductDescription', +'language' => 'setLanguage', +'notify' => 'setNotify' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'cvc2' => 'getCvc2', +'jet_token' => 'getJetToken', +'expiry_year' => 'getExpiryYear', +'expiry_month' => 'getExpiryMonth', +'pan' => 'getPan', +'order' => 'getOrder', +'product_description' => 'getProductDescription', +'language' => 'getLanguage', +'notify' => 'getNotify' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['cvc2'] = isset($data['cvc2']) ? $data['cvc2'] : null; + $this->container['jet_token'] = isset($data['jet_token']) ? $data['jet_token'] : null; + $this->container['expiry_year'] = isset($data['expiry_year']) ? $data['expiry_year'] : null; + $this->container['expiry_month'] = isset($data['expiry_month']) ? $data['expiry_month'] : null; + $this->container['pan'] = isset($data['pan']) ? $data['pan'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : 'es'; + $this->container['notify'] = isset($data['notify']) ? $data['notify'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets cvc2 + * + * @return string + */ + public function getCvc2() + { + return $this->container['cvc2']; + } + + /** + * Sets cvc2 + * + * @param string $cvc2 cvc2. Mandatory if no JetToken provided + * + * @return $this + */ + public function setCvc2($cvc2) + { + $this->container['cvc2'] = $cvc2; + + return $this; + } + + /** + * Gets jet_token + * + * @return string + */ + public function getJetToken() + { + return $this->container['jet_token']; + } + + /** + * Sets jet_token + * + * @param string $jet_token Temporary token provided from PAYCOMET. Mandatory if no card provided. + * + * @return $this + */ + public function setJetToken($jet_token) + { + $this->container['jet_token'] = $jet_token; + + return $this; + } + + /** + * Gets expiry_year + * + * @return string + */ + public function getExpiryYear() + { + return $this->container['expiry_year']; + } + + /** + * Sets expiry_year + * + * @param string $expiry_year Expiry year. Mandatory if no JetToken provided + * + * @return $this + */ + public function setExpiryYear($expiry_year) + { + $this->container['expiry_year'] = $expiry_year; + + return $this; + } + + /** + * Gets expiry_month + * + * @return string + */ + public function getExpiryMonth() + { + return $this->container['expiry_month']; + } + + /** + * Sets expiry_month + * + * @param string $expiry_month Expiry month. Mandatory if no JetToken provided. + * + * @return $this + */ + public function setExpiryMonth($expiry_month) + { + $this->container['expiry_month'] = $expiry_month; + + return $this; + } + + /** + * Gets pan + * + * @return string + */ + public function getPan() + { + return $this->container['pan']; + } + + /** + * Sets pan + * + * @param string $pan Card number. Mandatory if no JetToken provided + * + * @return $this + */ + public function setPan($pan) + { + $this->container['pan'] = $pan; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order Reference, will be included in callback. + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets product_description + * + * @return string + */ + public function getProductDescription() + { + return $this->container['product_description']; + } + + /** + * Sets product_description + * + * @param string $product_description Concept, will be included in callback. + * + * @return $this + */ + public function setProductDescription($product_description) + { + $this->container['product_description'] = $product_description; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language Language for callback translation. + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets notify + * + * @return int + */ + public function getNotify() + { + return $this->container['notify']; + } + + /** + * Sets notify + * + * @param int $notify Configure POST notification of the card tokenization result (possible values: 1 - force notify, 2 - not notify). Default product value will be used if notify is not informed + * + * @return $this + */ + public function setNotify($notify) + { + $this->container['notify'] = $notify; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1ErrorsBody.php b/lib/Model/V1ErrorsBody.php new file mode 100644 index 0000000..2106929 --- /dev/null +++ b/lib/Model/V1ErrorsBody.php @@ -0,0 +1,357 @@ + 'int', +'error_code' => 'int', +'lang' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'error_code' => null, +'lang' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'error_code' => 'errorCode', +'lang' => 'lang' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'error_code' => 'setErrorCode', +'lang' => 'setLang' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'error_code' => 'getErrorCode', +'lang' => 'getLang' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['error_code'] = isset($data['error_code']) ? $data['error_code'] : null; + $this->container['lang'] = isset($data['lang']) ? $data['lang'] : 'es'; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['error_code'] === null) { + $invalidProperties[] = "'error_code' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets error_code + * + * @return int + */ + public function getErrorCode() + { + return $this->container['error_code']; + } + + /** + * Sets error_code + * + * @param int $error_code Error code given by PAYCOMET. + * + * @return $this + */ + public function setErrorCode($error_code) + { + $this->container['error_code'] = $error_code; + + return $this; + } + + /** + * Gets lang + * + * @return string + */ + public function getLang() + { + return $this->container['lang']; + } + + /** + * Sets lang + * + * @param string $lang ISO2 code of language. + * + * @return $this + */ + public function setLang($lang) + { + $this->container['lang'] = $lang; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1ExchangeBody.php b/lib/Model/V1ExchangeBody.php new file mode 100644 index 0000000..76f4135 --- /dev/null +++ b/lib/Model/V1ExchangeBody.php @@ -0,0 +1,393 @@ + 'int', +'amount' => 'string', +'original_currency' => 'string', +'final_currency' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'amount' => null, +'original_currency' => null, +'final_currency' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'amount' => 'amount', +'original_currency' => 'originalCurrency', +'final_currency' => 'finalCurrency' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'amount' => 'setAmount', +'original_currency' => 'setOriginalCurrency', +'final_currency' => 'setFinalCurrency' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'amount' => 'getAmount', +'original_currency' => 'getOriginalCurrency', +'final_currency' => 'getFinalCurrency' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['original_currency'] = isset($data['original_currency']) ? $data['original_currency'] : null; + $this->container['final_currency'] = isset($data['final_currency']) ? $data['final_currency'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['original_currency'] === null) { + $invalidProperties[] = "'original_currency' can't be null"; + } + if ($this->container['final_currency'] === null) { + $invalidProperties[] = "'final_currency' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount to convert + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets original_currency + * + * @return string + */ + public function getOriginalCurrency() + { + return $this->container['original_currency']; + } + + /** + * Sets original_currency + * + * @param string $original_currency Currency to convert from + * + * @return $this + */ + public function setOriginalCurrency($original_currency) + { + $this->container['original_currency'] = $original_currency; + + return $this; + } + + /** + * Gets final_currency + * + * @return string + */ + public function getFinalCurrency() + { + return $this->container['final_currency']; + } + + /** + * Sets final_currency + * + * @param string $final_currency Currency to convert to + * + * @return $this + */ + public function setFinalCurrency($final_currency) + { + $this->container['final_currency'] = $final_currency; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1FormBody.php b/lib/Model/V1FormBody.php new file mode 100644 index 0000000..f1bd48b --- /dev/null +++ b/lib/Model/V1FormBody.php @@ -0,0 +1,444 @@ + 'int', +'language' => 'string', +'terminal' => 'int', +'product_description' => 'string', +'payment' => '\Swagger\Client\Model\V1formPayment', +'subscription' => '\Swagger\Client\Model\V1formSubscription' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'operation_type' => null, +'language' => null, +'terminal' => null, +'product_description' => null, +'payment' => null, +'subscription' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'operation_type' => 'operationType', +'language' => 'language', +'terminal' => 'terminal', +'product_description' => 'productDescription', +'payment' => 'payment', +'subscription' => 'subscription' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'operation_type' => 'setOperationType', +'language' => 'setLanguage', +'terminal' => 'setTerminal', +'product_description' => 'setProductDescription', +'payment' => 'setPayment', +'subscription' => 'setSubscription' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'operation_type' => 'getOperationType', +'language' => 'getLanguage', +'terminal' => 'getTerminal', +'product_description' => 'getProductDescription', +'payment' => 'getPayment', +'subscription' => 'getSubscription' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['operation_type'] = isset($data['operation_type']) ? $data['operation_type'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : null; + $this->container['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['product_description'] = isset($data['product_description']) ? $data['product_description'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + $this->container['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['operation_type'] === null) { + $invalidProperties[] = "'operation_type' 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 operation_type + * + * @return int + */ + public function getOperationType() + { + return $this->container['operation_type']; + } + + /** + * Sets operation_type + * + * @param int $operation_type PAYCOMET operation type (ID 1 - authorization, 3 - preauthorization, 9 - subscription, 107 - tokenization, 114 - authorization by reference, 116 - dcc authorization). + * + * @return $this + */ + public function setOperationType($operation_type) + { + $this->container['operation_type'] = $operation_type; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language Language for user interface. + * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets product_description + * + * @return string + */ + public function getProductDescription() + { + return $this->container['product_description']; + } + + /** + * Sets product_description + * + * @param string $product_description Product description (only in 107 - tokenization). + * + * @return $this + */ + public function setProductDescription($product_description) + { + $this->container['product_description'] = $product_description; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1formPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1formPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + return $this; + } + + /** + * Gets subscription + * + * @return \Swagger\Client\Model\V1formSubscription + */ + public function getSubscription() + { + return $this->container['subscription']; + } + + /** + * Sets subscription + * + * @param \Swagger\Client\Model\V1formSubscription $subscription subscription + * + * @return $this + */ + public function setSubscription($subscription) + { + $this->container['subscription'] = $subscription; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1HeartbeatBody.php b/lib/Model/V1HeartbeatBody.php new file mode 100644 index 0000000..d7fb4d1 --- /dev/null +++ b/lib/Model/V1HeartbeatBody.php @@ -0,0 +1,294 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal terminal + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1InvoicesBody.php b/lib/Model/V1InvoicesBody.php new file mode 100644 index 0000000..aea775f --- /dev/null +++ b/lib/Model/V1InvoicesBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1invoicesPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1invoicesPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1invoicesPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1IpBody.php b/lib/Model/V1IpBody.php new file mode 100644 index 0000000..6e9abcc --- /dev/null +++ b/lib/Model/V1IpBody.php @@ -0,0 +1,327 @@ + 'int', +'ip' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'ip' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'ip' => 'ip' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'ip' => 'setIp' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'ip' => 'getIp' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['ip'] = isset($data['ip']) ? $data['ip'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['ip'] === null) { + $invalidProperties[] = "'ip' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal terminal + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets ip + * + * @return string + */ + public function getIp() + { + return $this->container['ip']; + } + + /** + * Sets ip + * + * @param string $ip ip + * + * @return $this + */ + public function setIp($ip) + { + $this->container['ip'] = $ip; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1MethodsBody.php b/lib/Model/V1MethodsBody.php new file mode 100644 index 0000000..39f42b5 --- /dev/null +++ b/lib/Model/V1MethodsBody.php @@ -0,0 +1,294 @@ + 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal terminal + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1PaymentsBody.php b/lib/Model/V1PaymentsBody.php new file mode 100644 index 0000000..29dcde6 --- /dev/null +++ b/lib/Model/V1PaymentsBody.php @@ -0,0 +1,291 @@ + '\Swagger\Client\Model\V1paymentsPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['payment'] = isset($data['payment']) ? $data['payment'] : 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 payment + * + * @return \Swagger\Client\Model\V1paymentsPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1paymentsPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1SubscriptionBody.php b/lib/Model/V1SubscriptionBody.php new file mode 100644 index 0000000..16d06fb --- /dev/null +++ b/lib/Model/V1SubscriptionBody.php @@ -0,0 +1,327 @@ + '\Swagger\Client\Model\V1subscriptionSubscription', +'payment' => '\Swagger\Client\Model\V1subscriptionPayment' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subscription' => null, +'payment' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'subscription' => 'subscription', +'payment' => 'payment' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subscription' => 'setSubscription', +'payment' => 'setPayment' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subscription' => 'getSubscription', +'payment' => 'getPayment' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['subscription'] = isset($data['subscription']) ? $data['subscription'] : null; + $this->container['payment'] = isset($data['payment']) ? $data['payment'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['subscription'] === null) { + $invalidProperties[] = "'subscription' can't be null"; + } + if ($this->container['payment'] === null) { + $invalidProperties[] = "'payment' 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 subscription + * + * @return \Swagger\Client\Model\V1subscriptionSubscription + */ + public function getSubscription() + { + return $this->container['subscription']; + } + + /** + * Sets subscription + * + * @param \Swagger\Client\Model\V1subscriptionSubscription $subscription subscription + * + * @return $this + */ + public function setSubscription($subscription) + { + $this->container['subscription'] = $subscription; + + return $this; + } + + /** + * Gets payment + * + * @return \Swagger\Client\Model\V1subscriptionPayment + */ + public function getPayment() + { + return $this->container['payment']; + } + + /** + * Sets payment + * + * @param \Swagger\Client\Model\V1subscriptionPayment $payment payment + * + * @return $this + */ + public function setPayment($payment) + { + $this->container['payment'] = $payment; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1formPayment.php b/lib/Model/V1formPayment.php index 7ec6456..72e9c39 100644 --- a/lib/Model/V1formPayment.php +++ b/lib/Model/V1formPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -462,7 +462,7 @@ public function getIdUser() /** * Sets id_user * - * @param int $id_user Identification of user card given by PAYCOMET + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ @@ -486,7 +486,7 @@ public function getTokenUser() /** * Sets token_user * - * @param string $token_user Identification of user card given by PAYCOMET + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ diff --git a/lib/Model/V1formPaymentEscrowTargets.php b/lib/Model/V1formPaymentEscrowTargets.php index c135b7e..b5073a0 100644 --- a/lib/Model/V1formPaymentEscrowTargets.php +++ b/lib/Model/V1formPaymentEscrowTargets.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantData.php b/lib/Model/V1formPaymentMerchantData.php index 1fd3dd6..f12d70d 100644 --- a/lib/Model/V1formPaymentMerchantData.php +++ b/lib/Model/V1formPaymentMerchantData.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -35,7 +35,7 @@ * V1formPaymentMerchantData Class Doc Comment * * @category Class - * @description Client authentication information. The more information is provided in this field, the more likely the authorisation of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. + * @description Client authentication information. The more information is provided in this field, the more likely the authorization of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -492,7 +492,7 @@ public function getPurchaseInstalData() /** * Sets purchase_instal_data * - * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 + * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 * * @return $this */ @@ -516,7 +516,7 @@ public function getRecurringExpiry() /** * Sets recurring_expiry * - * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD + * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD * * @return $this */ @@ -540,7 +540,7 @@ public function getRecurringFrequency() /** * Sets recurring_frequency * - * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations + * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations * * @return $this */ diff --git a/lib/Model/V1formPaymentMerchantDataAcctInfo.php b/lib/Model/V1formPaymentMerchantDataAcctInfo.php index 84634fd..9cb5267 100644 --- a/lib/Model/V1formPaymentMerchantDataAcctInfo.php +++ b/lib/Model/V1formPaymentMerchantDataAcctInfo.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataBilling.php b/lib/Model/V1formPaymentMerchantDataBilling.php index cf4d849..c58a098 100644 --- a/lib/Model/V1formPaymentMerchantDataBilling.php +++ b/lib/Model/V1formPaymentMerchantDataBilling.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -389,7 +389,7 @@ public function getBillAddrState() /** * Sets bill_addr_state * - * @param string $bill_addr_state State or province of the delivery address + * @param string $bill_addr_state State or province of the delivery address. Must comply with ISO 3166-2. * * @return $this */ diff --git a/lib/Model/V1formPaymentMerchantDataCustomer.php b/lib/Model/V1formPaymentMerchantDataCustomer.php index 804dfdc..0df9f7c 100644 --- a/lib/Model/V1formPaymentMerchantDataCustomer.php +++ b/lib/Model/V1formPaymentMerchantDataCustomer.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataCustomerHomePhone.php b/lib/Model/V1formPaymentMerchantDataCustomerHomePhone.php index 7ae8711..16087e3 100644 --- a/lib/Model/V1formPaymentMerchantDataCustomerHomePhone.php +++ b/lib/Model/V1formPaymentMerchantDataCustomerHomePhone.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataCustomerMobilePhone.php b/lib/Model/V1formPaymentMerchantDataCustomerMobilePhone.php index 8e4a176..d5080f1 100644 --- a/lib/Model/V1formPaymentMerchantDataCustomerMobilePhone.php +++ b/lib/Model/V1formPaymentMerchantDataCustomerMobilePhone.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataCustomerWorkPhone.php b/lib/Model/V1formPaymentMerchantDataCustomerWorkPhone.php index 6e612a8..b535a5f 100644 --- a/lib/Model/V1formPaymentMerchantDataCustomerWorkPhone.php +++ b/lib/Model/V1formPaymentMerchantDataCustomerWorkPhone.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataMerchantRiskIndicator.php b/lib/Model/V1formPaymentMerchantDataMerchantRiskIndicator.php index bde62d4..4f83a33 100644 --- a/lib/Model/V1formPaymentMerchantDataMerchantRiskIndicator.php +++ b/lib/Model/V1formPaymentMerchantDataMerchantRiskIndicator.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataShipping.php b/lib/Model/V1formPaymentMerchantDataShipping.php index 63abd3e..c6af303 100644 --- a/lib/Model/V1formPaymentMerchantDataShipping.php +++ b/lib/Model/V1formPaymentMerchantDataShipping.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -390,7 +390,7 @@ public function getShipAddrState() /** * Sets ship_addr_state * - * @param string $ship_addr_state State or province of the delivery address + * @param string $ship_addr_state State or province of the delivery address. Must comply with ISO 3166-2. * * @return $this */ diff --git a/lib/Model/V1formPaymentMerchantDataShoppingCart.php b/lib/Model/V1formPaymentMerchantDataShoppingCart.php index 82bd29e..2fa1995 100644 --- a/lib/Model/V1formPaymentMerchantDataShoppingCart.php +++ b/lib/Model/V1formPaymentMerchantDataShoppingCart.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.php b/lib/Model/V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.php index 556098a..f071800 100644 --- a/lib/Model/V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.php +++ b/lib/Model/V1formPaymentMerchantDataThreeDSRequestorAuthenticationInfo.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1formSubscription.php b/lib/Model/V1formSubscription.php index d669bee..0407e88 100644 --- a/lib/Model/V1formSubscription.php +++ b/lib/Model/V1formSubscription.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1invoicesPayment.php b/lib/Model/V1invoicesPayment.php index ae64639..151bd71 100644 --- a/lib/Model/V1invoicesPayment.php +++ b/lib/Model/V1invoicesPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1launchpadauthorizationMerchantData.php b/lib/Model/V1launchpadauthorizationMerchantData.php index 89a2904..174f531 100644 --- a/lib/Model/V1launchpadauthorizationMerchantData.php +++ b/lib/Model/V1launchpadauthorizationMerchantData.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -35,7 +35,7 @@ * V1launchpadauthorizationMerchantData Class Doc Comment * * @category Class - * @description Client authentication information. The more information is provided in this field, the more likely the authorisation of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. + * @description Client authentication information. The more information is provided in this field, the more likely the authorization of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -492,7 +492,7 @@ public function getPurchaseInstalData() /** * Sets purchase_instal_data * - * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 + * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 * * @return $this */ @@ -516,7 +516,7 @@ public function getRecurringExpiry() /** * Sets recurring_expiry * - * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD + * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD * * @return $this */ @@ -540,7 +540,7 @@ public function getRecurringFrequency() /** * Sets recurring_frequency * - * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations + * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations * * @return $this */ diff --git a/lib/Model/V1launchpadauthorizationMerchantDataCustomer.php b/lib/Model/V1launchpadauthorizationMerchantDataCustomer.php index 5856a94..72f3dbc 100644 --- a/lib/Model/V1launchpadauthorizationMerchantDataCustomer.php +++ b/lib/Model/V1launchpadauthorizationMerchantDataCustomer.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1launchpadsubscriptionMerchantData.php b/lib/Model/V1launchpadsubscriptionMerchantData.php index 2cd2ac5..a0103e1 100644 --- a/lib/Model/V1launchpadsubscriptionMerchantData.php +++ b/lib/Model/V1launchpadsubscriptionMerchantData.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -35,7 +35,7 @@ * V1launchpadsubscriptionMerchantData Class Doc Comment * * @category Class - * @description Client authentication information. The more information is provided in this field, the more likely the authorisation of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. + * @description Client authentication information. The more information is provided in this field, the more likely the authorization of the operation will be without requiring additional authentication. For this reason, it is recommended to send as much information as possible. * @package Swagger\Client * @author Swagger Codegen team * @link https://github.com/swagger-api/swagger-codegen @@ -492,7 +492,7 @@ public function getPurchaseInstalData() /** * Sets purchase_instal_data * - * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorisations. Accepted values: The value must be greater than 1 + * @param int $purchase_instal_data Mandatory for Instalment operations (MERCHANT_TRX_TYPE = I). Indicates the maximum number of deferred payment authorizations. Accepted values: The value must be greater than 1 * * @return $this */ @@ -516,7 +516,7 @@ public function getRecurringExpiry() /** * Sets recurring_expiry * - * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorisations. Accepted format: YYYYMMDD + * @param string $recurring_expiry Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). The date from which there will be no more authorizations. Accepted format: YYYYMMDD * * @return $this */ @@ -540,7 +540,7 @@ public function getRecurringFrequency() /** * Sets recurring_frequency * - * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorisations + * @param string $recurring_frequency Mandatory for Recurring and Instalment operations (MERCHANT_TRX_TYPE = I or R). Indicates the minimum number of days between authorizations * * @return $this */ diff --git a/lib/Model/V1launchpadsubscriptionMerchantDataShipping.php b/lib/Model/V1launchpadsubscriptionMerchantDataShipping.php index da3ec0a..3f5a83e 100644 --- a/lib/Model/V1launchpadsubscriptionMerchantDataShipping.php +++ b/lib/Model/V1launchpadsubscriptionMerchantDataShipping.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -390,7 +390,7 @@ public function getShipAddrState() /** * Sets ship_addr_state * - * @param string $ship_addr_state State or province of the delivery address + * @param string $ship_addr_state State or province of the delivery address. Must comply with ISO 3166-2. * * @return $this */ diff --git a/lib/Model/V1marketplacesplittransferPayment.php b/lib/Model/V1marketplacesplittransferPayment.php index 258c808..7db5dab 100644 --- a/lib/Model/V1marketplacesplittransferPayment.php +++ b/lib/Model/V1marketplacesplittransferPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1marketplacesplittransferSubmerchant.php b/lib/Model/V1marketplacesplittransferSubmerchant.php index 9f97c95..d71d5bd 100644 --- a/lib/Model/V1marketplacesplittransferSubmerchant.php +++ b/lib/Model/V1marketplacesplittransferSubmerchant.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1marketplacesplittransferreversalPayment.php b/lib/Model/V1marketplacesplittransferreversalPayment.php index d99fde3..e78cd46 100644 --- a/lib/Model/V1marketplacesplittransferreversalPayment.php +++ b/lib/Model/V1marketplacesplittransferreversalPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1marketplacesplittransferreversalSubmerchant.php b/lib/Model/V1marketplacesplittransferreversalSubmerchant.php index 17f1942..91cd3a0 100644 --- a/lib/Model/V1marketplacesplittransferreversalSubmerchant.php +++ b/lib/Model/V1marketplacesplittransferreversalSubmerchant.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1marketplacetransferPayment.php b/lib/Model/V1marketplacetransferPayment.php index 2bf17d1..b79b9ae 100644 --- a/lib/Model/V1marketplacetransferPayment.php +++ b/lib/Model/V1marketplacetransferPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1marketplacetransferreversalSubmerchant.php b/lib/Model/V1marketplacetransferreversalSubmerchant.php index 582d1f0..68d652f 100644 --- a/lib/Model/V1marketplacetransferreversalSubmerchant.php +++ b/lib/Model/V1marketplacetransferreversalSubmerchant.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsPayment.php b/lib/Model/V1paymentsPayment.php index 4be95be..7d906bc 100644 --- a/lib/Model/V1paymentsPayment.php +++ b/lib/Model/V1paymentsPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -316,6 +316,12 @@ public function listInvalidProperties() if ($this->container['secure'] === null) { $invalidProperties[] = "'secure' can't be null"; } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' can't be null"; + } + if ($this->container['token_user'] === null) { + $invalidProperties[] = "'token_user' can't be null"; + } return $invalidProperties; } @@ -512,7 +518,7 @@ public function getIdUser() /** * Sets id_user * - * @param int $id_user Identification of user card given by PAYCOMET + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ @@ -536,7 +542,7 @@ public function getTokenUser() /** * Sets token_user * - * @param string $token_user Identification of user card given by PAYCOMET + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ diff --git a/lib/Model/V1paymentsdccPayment.php b/lib/Model/V1paymentsdccPayment.php index bf076ba..a8dd049 100644 --- a/lib/Model/V1paymentsdccPayment.php +++ b/lib/Model/V1paymentsdccPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsdccorderconfirmDcc.php b/lib/Model/V1paymentsdccorderconfirmDcc.php index 353eb3f..7948324 100644 --- a/lib/Model/V1paymentsdccorderconfirmDcc.php +++ b/lib/Model/V1paymentsdccorderconfirmDcc.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsorderinfoPayment.php b/lib/Model/V1paymentsorderinfoPayment.php index 884316f..8f7c6f0 100644 --- a/lib/Model/V1paymentsorderinfoPayment.php +++ b/lib/Model/V1paymentsorderinfoPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsorderpreauthcancelPayment.php b/lib/Model/V1paymentsorderpreauthcancelPayment.php index 9c36c00..53fa142 100644 --- a/lib/Model/V1paymentsorderpreauthcancelPayment.php +++ b/lib/Model/V1paymentsorderpreauthcancelPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsorderpreauthconfirmPayment.php b/lib/Model/V1paymentsorderpreauthconfirmPayment.php index 2488eee..f7f4610 100644 --- a/lib/Model/V1paymentsorderpreauthconfirmPayment.php +++ b/lib/Model/V1paymentsorderpreauthconfirmPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentsorderrefundPayment.php b/lib/Model/V1paymentsorderrefundPayment.php index 6e3238b..60690c0 100644 --- a/lib/Model/V1paymentsorderrefundPayment.php +++ b/lib/Model/V1paymentsorderrefundPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1paymentspreauthPayment.php b/lib/Model/V1paymentspreauthPayment.php index 0c40e14..bb8d008 100644 --- a/lib/Model/V1paymentspreauthPayment.php +++ b/lib/Model/V1paymentspreauthPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -322,6 +322,12 @@ public function listInvalidProperties() if ($this->container['secure'] === null) { $invalidProperties[] = "'secure' can't be null"; } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' can't be null"; + } + if ($this->container['token_user'] === null) { + $invalidProperties[] = "'token_user' can't be null"; + } return $invalidProperties; } @@ -782,7 +788,7 @@ public function getIdUser() /** * Sets id_user * - * @param int $id_user Identification of user card given by PAYCOMET + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ @@ -806,7 +812,7 @@ public function getTokenUser() /** * Sets token_user * - * @param string $token_user Identification of user card given by PAYCOMET + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ diff --git a/lib/Model/V1paymentsrtokenPayment.php b/lib/Model/V1paymentsrtokenPayment.php index 682ba27..436f4b5 100644 --- a/lib/Model/V1paymentsrtokenPayment.php +++ b/lib/Model/V1paymentsrtokenPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1sepaoperationsOperations.php b/lib/Model/V1sepaoperationsOperations.php index 08a4b7a..b84b55a 100644 --- a/lib/Model/V1sepaoperationsOperations.php +++ b/lib/Model/V1sepaoperationsOperations.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1subscriptionPayment.php b/lib/Model/V1subscriptionPayment.php index 745fc9e..edac5a2 100644 --- a/lib/Model/V1subscriptionPayment.php +++ b/lib/Model/V1subscriptionPayment.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -494,7 +494,7 @@ public function getIdUser() /** * Sets id_user * - * @param int $id_user Identification of user card given by PAYCOMET + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ @@ -518,7 +518,7 @@ public function getTokenUser() /** * Sets token_user * - * @param string $token_user Identification of user card given by PAYCOMET + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. * * @return $this */ diff --git a/lib/Model/V1subscriptionSubscription.php b/lib/Model/V1subscriptionSubscription.php index c6f1ca5..32a6082 100644 --- a/lib/Model/V1subscriptionSubscription.php +++ b/lib/Model/V1subscriptionSubscription.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/lib/Model/V1subscriptionordereditPayment.php b/lib/Model/V1subscriptionordereditPayment.php new file mode 100644 index 0000000..4576f92 --- /dev/null +++ b/lib/Model/V1subscriptionordereditPayment.php @@ -0,0 +1,456 @@ + 'int', +'amount' => 'string', +'original_ip' => 'string', +'method_id' => 'string', +'id_user' => 'int', +'token_user' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'amount' => null, +'original_ip' => null, +'method_id' => null, +'id_user' => null, +'token_user' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'amount' => 'amount', +'original_ip' => 'originalIp', +'method_id' => 'methodId', +'id_user' => 'idUser', +'token_user' => 'tokenUser' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'amount' => 'setAmount', +'original_ip' => 'setOriginalIp', +'method_id' => 'setMethodId', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'amount' => 'getAmount', +'original_ip' => 'getOriginalIp', +'method_id' => 'getMethodId', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1subscriptionordereditSubscription.php b/lib/Model/V1subscriptionordereditSubscription.php new file mode 100644 index 0000000..c14aa3e --- /dev/null +++ b/lib/Model/V1subscriptionordereditSubscription.php @@ -0,0 +1,390 @@ + 'string', +'end_date' => 'string', +'periodicity' => 'string', +'active' => 'int' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'start_date' => null, +'end_date' => null, +'periodicity' => null, +'active' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'start_date' => 'startDate', +'end_date' => 'endDate', +'periodicity' => 'periodicity', +'active' => 'active' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'start_date' => 'setStartDate', +'end_date' => 'setEndDate', +'periodicity' => 'setPeriodicity', +'active' => 'setActive' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'start_date' => 'getStartDate', +'end_date' => 'getEndDate', +'periodicity' => 'getPeriodicity', +'active' => 'getActive' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['start_date'] = isset($data['start_date']) ? $data['start_date'] : null; + $this->container['end_date'] = isset($data['end_date']) ? $data['end_date'] : null; + $this->container['periodicity'] = isset($data['periodicity']) ? $data['periodicity'] : null; + $this->container['active'] = isset($data['active']) ? $data['active'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['start_date'] === null) { + $invalidProperties[] = "'start_date' can't be null"; + } + if ($this->container['end_date'] === null) { + $invalidProperties[] = "'end_date' can't be null"; + } + if ($this->container['periodicity'] === null) { + $invalidProperties[] = "'periodicity' 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 start_date + * + * @return string + */ + public function getStartDate() + { + return $this->container['start_date']; + } + + /** + * Sets start_date + * + * @param string $start_date First day of subscription + * + * @return $this + */ + public function setStartDate($start_date) + { + $this->container['start_date'] = $start_date; + + return $this; + } + + /** + * Gets end_date + * + * @return string + */ + public function getEndDate() + { + return $this->container['end_date']; + } + + /** + * Sets end_date + * + * @param string $end_date Last day of subscription + * + * @return $this + */ + public function setEndDate($end_date) + { + $this->container['end_date'] = $end_date; + + return $this; + } + + /** + * Gets periodicity + * + * @return string + */ + public function getPeriodicity() + { + return $this->container['periodicity']; + } + + /** + * Sets periodicity + * + * @param string $periodicity In days, time between purchases + * + * @return $this + */ + public function setPeriodicity($periodicity) + { + $this->container['periodicity'] = $periodicity; + + return $this; + } + + /** + * Gets active + * + * @return int + */ + public function getActive() + { + return $this->container['active']; + } + + /** + * Sets active + * + * @param int $active 1 to activate subscription, 0 to desactivate. + * + * @return $this + */ + public function setActive($active) + { + $this->container['active'] = $active; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1subscriptionorderexecutePayment.php b/lib/Model/V1subscriptionorderexecutePayment.php new file mode 100644 index 0000000..d8dd72b --- /dev/null +++ b/lib/Model/V1subscriptionorderexecutePayment.php @@ -0,0 +1,489 @@ + 'int', +'amount' => 'string', +'currency' => 'string', +'original_ip' => 'string', +'method_id' => 'string', +'id_user' => 'int', +'token_user' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'amount' => null, +'currency' => null, +'original_ip' => null, +'method_id' => null, +'id_user' => null, +'token_user' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'amount' => 'amount', +'currency' => 'currency', +'original_ip' => 'originalIp', +'method_id' => 'methodId', +'id_user' => 'idUser', +'token_user' => 'tokenUser' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'amount' => 'setAmount', +'currency' => 'setCurrency', +'original_ip' => 'setOriginalIp', +'method_id' => 'setMethodId', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'amount' => 'getAmount', +'currency' => 'getCurrency', +'original_ip' => 'getOriginalIp', +'method_id' => 'getMethodId', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['currency'] = isset($data['currency']) ? $data['currency'] : null; + $this->container['original_ip'] = isset($data['original_ip']) ? $data['original_ip'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; + } + if ($this->container['original_ip'] === null) { + $invalidProperties[] = "'original_ip' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount Amount of the operation in number format. 1.00 EURO = 100, 4.50 EUROS = 450... + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets currency + * + * @return string + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string $currency currency + * + * @return $this + */ + public function setCurrency($currency) + { + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets original_ip + * + * @return string + */ + public function getOriginalIp() + { + return $this->container['original_ip']; + } + + /** + * Sets original_ip + * + * @param string $original_ip IP Address of the customer that initiated the payment transaction + * + * @return $this + */ + public function setOriginalIp($original_ip) + { + $this->container['original_ip'] = $original_ip; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/Model/V1subscriptionorderremovePayment.php b/lib/Model/V1subscriptionorderremovePayment.php new file mode 100644 index 0000000..96ba27c --- /dev/null +++ b/lib/Model/V1subscriptionorderremovePayment.php @@ -0,0 +1,423 @@ + 'int', +'order' => 'string', +'method_id' => 'string', +'id_user' => 'int', +'token_user' => 'string' ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminal' => null, +'order' => null, +'method_id' => null, +'id_user' => null, +'token_user' => null ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerTypes() + { + return self::$swaggerTypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function swaggerFormats() + { + return self::$swaggerFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'terminal' => 'terminal', +'order' => 'order', +'method_id' => 'methodId', +'id_user' => 'idUser', +'token_user' => 'tokenUser' ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminal' => 'setTerminal', +'order' => 'setOrder', +'method_id' => 'setMethodId', +'id_user' => 'setIdUser', +'token_user' => 'setTokenUser' ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminal' => 'getTerminal', +'order' => 'getOrder', +'method_id' => 'getMethodId', +'id_user' => 'getIdUser', +'token_user' => 'getTokenUser' ]; + + /** + * 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::$swaggerModelName; + } + + + + /** + * 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['terminal'] = isset($data['terminal']) ? $data['terminal'] : null; + $this->container['order'] = isset($data['order']) ? $data['order'] : null; + $this->container['method_id'] = isset($data['method_id']) ? $data['method_id'] : null; + $this->container['id_user'] = isset($data['id_user']) ? $data['id_user'] : null; + $this->container['token_user'] = isset($data['token_user']) ? $data['token_user'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminal'] === null) { + $invalidProperties[] = "'terminal' can't be null"; + } + if ($this->container['order'] === null) { + $invalidProperties[] = "'order' can't be null"; + } + if ($this->container['method_id'] === null) { + $invalidProperties[] = "'method_id' can't be null"; + } + if ($this->container['id_user'] === null) { + $invalidProperties[] = "'id_user' 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 terminal + * + * @return int + */ + public function getTerminal() + { + return $this->container['terminal']; + } + + /** + * Sets terminal + * + * @param int $terminal Product or terminal Id. + * + * @return $this + */ + public function setTerminal($terminal) + { + $this->container['terminal'] = $terminal; + + return $this; + } + + /** + * Gets order + * + * @return string + */ + public function getOrder() + { + return $this->container['order']; + } + + /** + * Sets order + * + * @param string $order order + * + * @return $this + */ + public function setOrder($order) + { + $this->container['order'] = $order; + + return $this; + } + + /** + * Gets method_id + * + * @return string + */ + public function getMethodId() + { + return $this->container['method_id']; + } + + /** + * Sets method_id + * + * @param string $method_id PAYCOMET payment method ID. 1 is for card. + * + * @return $this + */ + public function setMethodId($method_id) + { + $this->container['method_id'] = $method_id; + + return $this; + } + + /** + * Gets id_user + * + * @return int + */ + public function getIdUser() + { + return $this->container['id_user']; + } + + /** + * Sets id_user + * + * @param int $id_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setIdUser($id_user) + { + $this->container['id_user'] = $id_user; + + return $this; + } + + /** + * Gets token_user + * + * @return string + */ + public function getTokenUser() + { + return $this->container['token_user']; + } + + /** + * Sets token_user + * + * @param string $token_user Identification of user card given by PAYCOMET. Mandatory if is a card payment. + * + * @return $this + */ + public function setTokenUser($token_user) + { + $this->container['token_user'] = $token_user; + + 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() + { + if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} diff --git a/lib/ObjectSerializer.php b/lib/ObjectSerializer.php index d1ddd74..3202eea 100644 --- a/lib/ObjectSerializer.php +++ b/lib/ObjectSerializer.php @@ -15,10 +15,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/BalanceApiTest.php b/test/Api/BalanceApiTest.php index 347e19c..d7b2041 100644 --- a/test/Api/BalanceApiTest.php +++ b/test/Api/BalanceApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/CardsApiTest.php b/test/Api/CardsApiTest.php index 6ace292..fcca28b 100644 --- a/test/Api/CardsApiTest.php +++ b/test/Api/CardsApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/DccApiTest.php b/test/Api/DccApiTest.php index 8c7808c..063dee7 100644 --- a/test/Api/DccApiTest.php +++ b/test/Api/DccApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/ErrorApiTest.php b/test/Api/ErrorApiTest.php index 7a30ebe..060ac2d 100644 --- a/test/Api/ErrorApiTest.php +++ b/test/Api/ErrorApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/ExchangeApiTest.php b/test/Api/ExchangeApiTest.php index c1a4685..987d282 100644 --- a/test/Api/ExchangeApiTest.php +++ b/test/Api/ExchangeApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/FormApiTest.php b/test/Api/FormApiTest.php index 4087826..adaf76d 100644 --- a/test/Api/FormApiTest.php +++ b/test/Api/FormApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/HeartbeatApiTest.php b/test/Api/HeartbeatApiTest.php index d7b3334..a292329 100644 --- a/test/Api/HeartbeatApiTest.php +++ b/test/Api/HeartbeatApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/IVRApiTest.php b/test/Api/IVRApiTest.php index 8a27c37..49964f0 100644 --- a/test/Api/IVRApiTest.php +++ b/test/Api/IVRApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/IpApiTest.php b/test/Api/IpApiTest.php index 751ce91..3954fdf 100644 --- a/test/Api/IpApiTest.php +++ b/test/Api/IpApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/LaunchpadApiTest.php b/test/Api/LaunchpadApiTest.php index a9df3e0..33a7be7 100644 --- a/test/Api/LaunchpadApiTest.php +++ b/test/Api/LaunchpadApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/MarketplaceApiTest.php b/test/Api/MarketplaceApiTest.php index f547722..58a0e60 100644 --- a/test/Api/MarketplaceApiTest.php +++ b/test/Api/MarketplaceApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/MethodsApiTest.php b/test/Api/MethodsApiTest.php index b5ed702..2b1a8a9 100644 --- a/test/Api/MethodsApiTest.php +++ b/test/Api/MethodsApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/MiraklApiTest.php b/test/Api/MiraklApiTest.php index a1e3a87..0500426 100644 --- a/test/Api/MiraklApiTest.php +++ b/test/Api/MiraklApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/PaymentsApiTest.php b/test/Api/PaymentsApiTest.php index 48e65fe..e8491a5 100644 --- a/test/Api/PaymentsApiTest.php +++ b/test/Api/PaymentsApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/PreauthorizationsApiTest.php b/test/Api/PreauthorizationsApiTest.php index ad88f26..9513248 100644 --- a/test/Api/PreauthorizationsApiTest.php +++ b/test/Api/PreauthorizationsApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -99,4 +99,14 @@ public function testConfirmPreauthorization() public function testCreatePreauthoritation() { } + + /** + * Test case for createPreauthorizationRtoken + * + * Creates a preauthorization by reference. + * + */ + public function testCreatePreauthorizationRtoken() + { + } } diff --git a/test/Api/RefundApiTest.php b/test/Api/RefundApiTest.php index 425ed99..6f724a5 100644 --- a/test/Api/RefundApiTest.php +++ b/test/Api/RefundApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/SepaApiTest.php b/test/Api/SepaApiTest.php index 49ab14a..1b3f414 100644 --- a/test/Api/SepaApiTest.php +++ b/test/Api/SepaApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. diff --git a/test/Api/SusbcriptionsApiTest.php b/test/Api/SusbcriptionsApiTest.php index 4d35948..3dca8e0 100644 --- a/test/Api/SusbcriptionsApiTest.php +++ b/test/Api/SusbcriptionsApiTest.php @@ -14,10 +14,10 @@ * * PAYCOMET API REST for customers. * - * OpenAPI spec version: 2.16 + * OpenAPI spec version: 2.37.0 * Contact: tecnico@paycomet.com * Generated by: https://github.com/swagger-api/swagger-codegen.git - * Swagger Codegen version: 3.0.25-SNAPSHOT + * Swagger Codegen version: 3.0.29 */ /** * NOTE: This class is auto generated by the swagger code generator program. @@ -83,17 +83,27 @@ public function testCreateSubscription() /** * Test case for editSubscription * - * Edit susbcription payment. + * Edit susbcription payment.. * */ public function testEditSubscription() { } + /** + * Test case for executeSubscription + * + * Excute a susbcription payment.. + * + */ + public function testExecuteSubscription() + { + } + /** * Test case for removeSubscription * - * Remove susbcription payment. + * Remove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions.. * */ public function testRemoveSubscription() diff --git a/test/Model/CardsDeleteBodyTest.php b/test/Model/CardsDeleteBodyTest.php new file mode 100644 index 0000000..2390e65 --- /dev/null +++ b/test/Model/CardsDeleteBodyTest.php @@ -0,0 +1,98 @@ +