Skip to content

Commit

Permalink
Update metatada product objects (#280)
Browse files Browse the repository at this point in the history
* Update version numbers in files

* Update OpenAPI URL in Makefile

* add new fields
  • Loading branch information
fcarrero authored Apr 24, 2024
1 parent 948c492 commit 1c39365
Show file tree
Hide file tree
Showing 214 changed files with 357 additions and 239 deletions.
1 change: 0 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,3 @@ lib/Model/WhitelistlistRuleResponse.php
lib/ObjectSerializer.php
lib/ssl_data/ca_bundle.crt
phpunit.xml.dist
test/Api/PayoutOrdersApiTest.php
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.5.0
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ php:
rm -rf docs && \
rm -rf lib/Model && \
docker run --rm \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.3.0 generate \
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
-g php \
-o /local \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,6 @@ engineering@conekta.com
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `2.1.0`
- Package version: `6.0.7`
- Package version: `6.0.8`
- Generator version: `7.5.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.7
6.0.8
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "conekta/conekta-php",
"version": "6.0.7",
"version": "6.0.8",
"description": "Conekta PHP Library",
"type": "library",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions config-php.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"packageName": "conekta",
"generateSourceCodeOnly": "false",
"artifactVersion": "6.0.7",
"artifactVersion": "6.0.8",
"packageUrl": "https://developers.conekta.com/",
"projectName": "conekta-php",
"appDescriptionV2" : "Conekta PHP Library",
"useOneOfDiscriminatorLookup" : true,
"nonCompliantUseDiscriminatorIfCompositionFails" : false,
"httpUserAgent": "Conekta/v2 PhpBindings/6.0.7",
"httpUserAgent": "Conekta/v2 PhpBindings/6.0.8",
"packageAuthors" : "engineering@conekta.com",
"files": {
"/local/CODE_OF_CONDUCT.md" : {},
Expand Down
18 changes: 16 additions & 2 deletions docs/Api/OrdersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ try {
## `getOrders()`

```php
getOrders($accept_language, $x_child_company_id, $limit, $search, $next, $previous): \Conekta\Model\GetOrdersResponse
getOrders($accept_language, $x_child_company_id, $limit, $search, $next, $previous, $payment_status, $last_payment_info_status, $created_at, $created_at_gte, $created_at_lte, $updated_at_gte, $updated_at_lte): \Conekta\Model\GetOrdersResponse
```

Get a list of Orders
Expand Down Expand Up @@ -239,9 +239,16 @@ $limit = 20; // int | The numbers of items to return, the maximum value is 250
$search = 'search_example'; // string | General order search, e.g. by mail, reference etc.
$next = 'next_example'; // string | next page
$previous = 'previous_example'; // string | previous page
$payment_status = paid; // string | Filters by order status
$last_payment_info_status = pending_payment; // string | Filters by last payment info status
$created_at = 1612137600; // int | created equal to
$created_at_gte = 1612137600; // int | created at greater than or equal to
$created_at_lte = 1612137600; // int | created at less than or equal to
$updated_at_gte = 1612137600; // int | updated at greater than or equal to
$updated_at_lte = 1612137600; // int | updated at less than or equal to

try {
$result = $apiInstance->getOrders($accept_language, $x_child_company_id, $limit, $search, $next, $previous);
$result = $apiInstance->getOrders($accept_language, $x_child_company_id, $limit, $search, $next, $previous, $payment_status, $last_payment_info_status, $created_at, $created_at_gte, $created_at_lte, $updated_at_gte, $updated_at_lte);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling OrdersApi->getOrders: ', $e->getMessage(), PHP_EOL;
Expand All @@ -258,6 +265,13 @@ try {
| **search** | **string**| General order search, e.g. by mail, reference etc. | [optional] |
| **next** | **string**| next page | [optional] |
| **previous** | **string**| previous page | [optional] |
| **payment_status** | **string**| Filters by order status | [optional] |
| **last_payment_info_status** | **string**| Filters by last payment info status | [optional] |
| **created_at** | **int**| created equal to | [optional] |
| **created_at_gte** | **int**| created at greater than or equal to | [optional] |
| **created_at_lte** | **int**| created at less than or equal to | [optional] |
| **updated_at_gte** | **int**| updated at greater than or equal to | [optional] |
| **updated_at_lte** | **int**| updated at less than or equal to | [optional] |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/Product.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**antifraud_info** | **array<string,mixed>** | | [optional]
**brand** | **string** | The brand of the item. | [optional]
**description** | **string** | Short description of the item | [optional]
**metadata** | **array<string,string>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**metadata** | **array<string,mixed>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**name** | **string** | The name of the item. It will be displayed in the order. |
**quantity** | **int** | The quantity of the item in the order. |
**sku** | **string** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/ProductDataResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**antifraud_info** | **array<string,mixed>** | | [optional]
**brand** | **string** | The brand of the item. | [optional]
**description** | **string** | Short description of the item | [optional]
**metadata** | **array<string,string>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**metadata** | **array<string,mixed>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**name** | **string** | The name of the item. It will be displayed in the order. |
**quantity** | **int** | The quantity of the item in the order. |
**sku** | **string** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/ProductOrderResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**antifraud_info** | **array<string,mixed>** | | [optional]
**brand** | **string** | The brand of the item. | [optional]
**description** | **string** | Short description of the item | [optional]
**metadata** | **array<string,string>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**metadata** | **array<string,mixed>** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional]
**name** | **string** | The name of the item. It will be displayed in the order. |
**quantity** | **int** | The quantity of the item in the order. |
**sku** | **string** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/AntifraudApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ApiKeysApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/BalancesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/ChargesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/CompaniesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/CustomersApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/DiscountsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/EventsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Api/LogsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@conekta.com
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.3.0
* Generator version: 7.5.0
*/

/**
Expand Down
Loading

0 comments on commit 1c39365

Please sign in to comment.