Skip to content

Commit

Permalink
add EventTypes.php (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarrero authored Jan 17, 2024
1 parent b6f1e75 commit 41822c9
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ docs/Model/DiscountLinesResponse.md
docs/Model/EmailCheckoutRequest.md
docs/Model/Error.md
docs/Model/EventResponse.md
docs/Model/EventTypes.md
docs/Model/EventsResendResponse.md
docs/Model/FiscalEntityAddress.md
docs/Model/GetApiKeysResponse.md
Expand Down Expand Up @@ -289,6 +290,7 @@ lib/Model/DiscountLinesResponse.php
lib/Model/EmailCheckoutRequest.php
lib/Model/Error.php
lib/Model/EventResponse.php
lib/Model/EventTypes.php
lib/Model/EventsResendResponse.php
lib/Model/FiscalEntityAddress.php
lib/Model/GetApiKeysResponse.php
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Class | Method | HTTP request | Description
- [EmailCheckoutRequest](docs/Model/EmailCheckoutRequest.md)
- [Error](docs/Model/Error.md)
- [EventResponse](docs/Model/EventResponse.md)
- [EventTypes](docs/Model/EventTypes.md)
- [EventsResendResponse](docs/Model/EventsResendResponse.md)
- [FiscalEntityAddress](docs/Model/FiscalEntityAddress.md)
- [GetApiKeysResponse](docs/Model/GetApiKeysResponse.md)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^3.5",
"phpstan/phpstan": "1.10.55"
"phpstan/phpstan": "1.10.56"
},
"autoload": {
"psr-4": { "Conekta\\" : "lib/" }
Expand Down
8 changes: 8 additions & 0 deletions docs/Model/EventTypes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# # EventTypes

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
70 changes: 70 additions & 0 deletions lib/Model/EventTypes.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php
/**
* EventTypes
*
* PHP version 7.4
*
* @category Class
* @package Conekta
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/

/**
* Conekta API
*
* Conekta sdk
*
* The version of the OpenAPI document: 2.1.0
* Contact: [email protected]
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.2.0
*/

/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

namespace Conekta\Model;
use \Conekta\ObjectSerializer;

/**
* EventTypes Class Doc Comment
*
* @category Class
* @description It is a parameter that allows to identify in the response, the type of event that is being generated.
* @package Conekta
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class EventTypes
{
/**
* Possible values of this enum
*/
public const WEBHOOK_PING = 'webhook_ping';

public const ORDER_PAID = 'order.paid';

public const ORDER_EXPIRED = 'order.expired';

public const ORDER_CANCELED = 'order.canceled';

/**
* Gets allowable values of the enum
* @return string[]
*/
public static function getAllowableEnumValues()
{
return [
self::WEBHOOK_PING,
self::ORDER_PAID,
self::ORDER_EXPIRED,
self::ORDER_CANCELED
];
}
}


2 changes: 1 addition & 1 deletion templates/php/composer.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^3.5",
"phpstan/phpstan": "1.10.55"
"phpstan/phpstan": "1.10.56"
},
"autoload": {
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }
Expand Down

0 comments on commit 41822c9

Please sign in to comment.