Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update php-sdk to v2 #13

Merged
merged 15 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .editorconfig

This file was deleted.

16 changes: 0 additions & 16 deletions .gitattributes

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/test.yaml

This file was deleted.

11 changes: 3 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
.idea
build
composer.lock
vendor
phpcs.xml
phpunit.xml
.phpunit.result.cache
.php_cs.cache
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore

/vendor
25 changes: 25 additions & 0 deletions .openapi-generator-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# OpenAPI Generator Ignore
0-sv marked this conversation as resolved.
Show resolved Hide resolved
# Generated by openapi-generator https://github.com/openapitools/openapi-generator

# Use this file to prevent files from being overwritten by the generator.
# The patterns follow closely to .gitignore or .dockerignore.

# As an example, the C# client generator defines ApiClient.cs.
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
#ApiClient.cs

# You can match any string of characters against a directory, file or extension with a single asterisk (*):
#foo/*/qux
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux

# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
#foo/**/qux
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux

# You can also negate patterns with an exclamation (!).
# For example, you can ignore all files in a docs folder with the file extension .md:
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
git_push.sh
.travis.yml
128 changes: 128 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
.gitignore
.php-cs-fixer.dist.php
.travis.yml
README.md
composer.json
docs/Api/AvailabilityApi.md
docs/Api/BookingsApi.md
docs/Api/OfferApi.md
docs/Api/PropertiesApi.md
docs/Model/AvailabilityAvailabilityAndPrice.md
docs/Model/AvailabilityExtraCharge.md
docs/Model/AvailabilityOffer.md
docs/Model/AvailabilityPrice.md
docs/Model/DtoAmenity.md
docs/Model/DtoBedType.md
docs/Model/DtoCancellationPolicy.md
docs/Model/DtoCreatedBooking.md
docs/Model/DtoCreatedReservation.md
docs/Model/DtoFacility.md
docs/Model/DtoI18NProperty.md
docs/Model/DtoI18NRatePlan.md
docs/Model/DtoI18NUnit.md
docs/Model/DtoNoShowPolicy.md
docs/Model/DtoPayment.md
docs/Model/DtoPerson.md
docs/Model/DtoPrice.md
docs/Model/DtoProperty.md
docs/Model/DtoPropertyImage.md
docs/Model/DtoRatePlan.md
docs/Model/DtoRatePlanService.md
docs/Model/DtoReservation.md
docs/Model/DtoUnit.md
docs/Model/DtoUnitImage.md
docs/Model/GeopointGeoPoint.md
docs/Model/HttpBookingAndReservationLinks.md
docs/Model/HttpBookingCreationRequest.md
docs/Model/HttpBookingData.md
docs/Model/HttpBookingResponse.md
docs/Model/HttpPayment.md
docs/Model/HttpPerson.md
docs/Model/HttpReservationCreationRequest.md
docs/Model/HttpReservationData.md
docs/Model/HttpReservationResponse.md
docs/Model/HttpReservationUpdateRequest.md
docs/Model/ModelAmenity.md
docs/Model/ModelApiError.md
docs/Model/ModelBedType.md
docs/Model/ModelGetAvailabilityResponse.md
docs/Model/ModelGetPropertiesResponse.md
docs/Model/ModelGetPropertyByIdResponse.md
docs/Model/ModelGetRatePlanByIdResponse.md
docs/Model/ModelGetUnitByIdResponse.md
docs/Model/ModelI18NUnit.md
docs/Model/ModelInternalServerError.md
docs/Model/ModelLink.md
docs/Model/ModelOffersData.md
docs/Model/ModelPage.md
docs/Model/ModelPropertiesData.md
docs/Model/ModelPropertiesMeta.md
docs/Model/ModelPropertyData.md
docs/Model/ModelUnit.md
docs/Model/ModelUnitImage.md
docs/Model/OfferGetOfferResponse.md
git_push.sh
lib/Api/AvailabilityApi.php
lib/Api/BookingsApi.php
lib/Api/OfferApi.php
lib/Api/PropertiesApi.php
lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/Model/AvailabilityAvailabilityAndPrice.php
lib/Model/AvailabilityExtraCharge.php
lib/Model/AvailabilityOffer.php
lib/Model/AvailabilityPrice.php
lib/Model/DtoAmenity.php
lib/Model/DtoBedType.php
lib/Model/DtoCancellationPolicy.php
lib/Model/DtoCreatedBooking.php
lib/Model/DtoCreatedReservation.php
lib/Model/DtoFacility.php
lib/Model/DtoI18NProperty.php
lib/Model/DtoI18NRatePlan.php
lib/Model/DtoI18NUnit.php
lib/Model/DtoNoShowPolicy.php
lib/Model/DtoPayment.php
lib/Model/DtoPerson.php
lib/Model/DtoPrice.php
lib/Model/DtoProperty.php
lib/Model/DtoPropertyImage.php
lib/Model/DtoRatePlan.php
lib/Model/DtoRatePlanService.php
lib/Model/DtoReservation.php
lib/Model/DtoUnit.php
lib/Model/DtoUnitImage.php
lib/Model/GeopointGeoPoint.php
lib/Model/HttpBookingAndReservationLinks.php
lib/Model/HttpBookingCreationRequest.php
lib/Model/HttpBookingData.php
lib/Model/HttpBookingResponse.php
lib/Model/HttpPayment.php
lib/Model/HttpPerson.php
lib/Model/HttpReservationCreationRequest.php
lib/Model/HttpReservationData.php
lib/Model/HttpReservationResponse.php
lib/Model/HttpReservationUpdateRequest.php
lib/Model/ModelAmenity.php
lib/Model/ModelApiError.php
lib/Model/ModelBedType.php
lib/Model/ModelGetAvailabilityResponse.php
lib/Model/ModelGetPropertiesResponse.php
lib/Model/ModelGetPropertyByIdResponse.php
lib/Model/ModelGetRatePlanByIdResponse.php
lib/Model/ModelGetUnitByIdResponse.php
lib/Model/ModelI18NUnit.php
lib/Model/ModelInterface.php
lib/Model/ModelInternalServerError.php
lib/Model/ModelLink.php
lib/Model/ModelOffersData.php
lib/Model/ModelPage.php
lib/Model/ModelPropertiesData.php
lib/Model/ModelPropertiesMeta.php
lib/Model/ModelPropertyData.php
lib/Model/ModelUnit.php
lib/Model/ModelUnitImage.php
lib/Model/OfferGetOfferResponse.php
lib/ObjectSerializer.php
phpunit.xml.dist
1 change: 1 addition & 0 deletions .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.4.0
31 changes: 0 additions & 31 deletions .scrutinizer.yml

This file was deleted.

1 change: 0 additions & 1 deletion .styleci.yml

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to `katanox-php` will be documented in this file.

Updates should follow the [Keep a CHANGELOG](https://keepachangelog.com/) principles.

## [4.0.0] - 2021-10-11
### Changed
- Upgraded sdk to our API v2
- The source code will now be generated with `openapi-generator` based on our `swagger.yaml` file.

## [3.2.0] - 2021-10-11
### Changed
- The expiry year should now be a 4 digit number
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gen:
# brew install openapi-generator
openapi-generator generate -i ../api/docs/swagger.yaml -o . -g php -p invokerPackage=Katanox
Loading