quandoo 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +197 -0
- data/Rakefile +8 -0
- data/config.json +8 -0
- data/docs/AgentTracking.md +8 -0
- data/docs/AreaDto.md +10 -0
- data/docs/AvailabilitiesApi.md +132 -0
- data/docs/ChainDto.md +9 -0
- data/docs/ChangedReviewDto.md +10 -0
- data/docs/CoordinatesDto.md +9 -0
- data/docs/CreateReviewDto.md +10 -0
- data/docs/CreatedMasterCustomer.md +8 -0
- data/docs/CreatedReservation.md +11 -0
- data/docs/CreatedReservationData.md +10 -0
- data/docs/CreatedReservationEnquiry.md +8 -0
- data/docs/CreatedReservationEnquiryData.md +10 -0
- data/docs/CustomerDataList.md +10 -0
- data/docs/CustomerDto.md +10 -0
- data/docs/CustomerResponse.md +17 -0
- data/docs/CustomerReviewData.md +11 -0
- data/docs/CustomerStatisticsData.md +10 -0
- data/docs/CustomersApi.md +183 -0
- data/docs/DealData.md +10 -0
- data/docs/DocumentDto.md +11 -0
- data/docs/ErrorResponse.md +9 -0
- data/docs/GetReservationEnquiryData.md +14 -0
- data/docs/GetReviewDto.md +14 -0
- data/docs/GetReviewsDto.md +11 -0
- data/docs/ImageDto.md +8 -0
- data/docs/LinkRelationDto.md +10 -0
- data/docs/LocationDto.md +9 -0
- data/docs/MarketingSettingDto.md +9 -0
- data/docs/MenusApi.md +300 -0
- data/docs/MerchantAddressDto.md +12 -0
- data/docs/MerchantAvailabilityDaysDto.md +9 -0
- data/docs/MerchantAvailabilityDto.md +11 -0
- data/docs/MerchantAvailabilityDtoList.md +10 -0
- data/docs/MerchantCustomer.md +15 -0
- data/docs/MerchantCustomerData.md +21 -0
- data/docs/MerchantDetailsDto.md +24 -0
- data/docs/MerchantDetailsDtoList.md +11 -0
- data/docs/MerchantMenuCategoryDto.md +10 -0
- data/docs/MerchantMenuDto.md +13 -0
- data/docs/MerchantMenuItemDto.md +11 -0
- data/docs/MerchantMenusDto.md +8 -0
- data/docs/MerchantReservation.md +18 -0
- data/docs/MerchantReservationData.md +10 -0
- data/docs/MerchantReservationEnquiry.md +13 -0
- data/docs/MerchantReservationEnquiryData.md +10 -0
- data/docs/MerchantReservationSettingsDto.md +18 -0
- data/docs/MerchantSubscription.md +8 -0
- data/docs/MerchantVaultSettingsDto.md +11 -0
- data/docs/MerchantWithRecommendationsDto.md +10 -0
- data/docs/MerchantsApi.md +334 -0
- data/docs/OpeningTimesDto.md +8 -0
- data/docs/ReservationData.md +18 -0
- data/docs/ReservationDataList.md +8 -0
- data/docs/ReservationDetails.md +11 -0
- data/docs/ReservationEnquiriesApi.md +230 -0
- data/docs/ReservationEnquiryMessageData.md +10 -0
- data/docs/ReservationEnquiryMessageList.md +8 -0
- data/docs/ReservationMenuData.md +8 -0
- data/docs/ReservationMenuItemData.md +12 -0
- data/docs/ReservationSettingsApi.md +56 -0
- data/docs/ReservationsApi.md +168 -0
- data/docs/RestCookie.md +9 -0
- data/docs/ReviewDto.md +12 -0
- data/docs/ReviewDtoList.md +11 -0
- data/docs/ReviewsApi.md +235 -0
- data/docs/StandardOpeningTimesDto.md +7 -0
- data/docs/StatusApi.md +90 -0
- data/docs/TagGroupDto.md +9 -0
- data/docs/Tracking.md +9 -0
- data/docs/TranslatedTagDto.md +9 -0
- data/docs/UpdateReservationData.md +8 -0
- data/docs/UpdateReservationEnquiryData.md +8 -0
- data/docs/UpdateReviewDto.md +10 -0
- data/docs/ValidationsApi.md +59 -0
- data/git_push.sh +55 -0
- data/lib/quandoo.rb +113 -0
- data/lib/quandoo/api/availabilities_api.rb +171 -0
- data/lib/quandoo/api/customers_api.rb +185 -0
- data/lib/quandoo/api/menus_api.rb +301 -0
- data/lib/quandoo/api/merchants_api.rb +357 -0
- data/lib/quandoo/api/reservation_enquiries_api.rb +232 -0
- data/lib/quandoo/api/reservation_settings_api.rb +73 -0
- data/lib/quandoo/api/reservations_api.rb +178 -0
- data/lib/quandoo/api/reviews_api.rb +241 -0
- data/lib/quandoo/api/status_api.rb +111 -0
- data/lib/quandoo/api/validations_api.rb +76 -0
- data/lib/quandoo/api_client.rb +389 -0
- data/lib/quandoo/api_error.rb +38 -0
- data/lib/quandoo/configuration.rb +216 -0
- data/lib/quandoo/models/agent_tracking.rb +189 -0
- data/lib/quandoo/models/area_dto.rb +204 -0
- data/lib/quandoo/models/chain_dto.rb +192 -0
- data/lib/quandoo/models/changed_review_dto.rb +250 -0
- data/lib/quandoo/models/coordinates_dto.rb +192 -0
- data/lib/quandoo/models/create_review_dto.rb +214 -0
- data/lib/quandoo/models/created_master_customer.rb +189 -0
- data/lib/quandoo/models/created_reservation.rb +229 -0
- data/lib/quandoo/models/created_reservation_data.rb +221 -0
- data/lib/quandoo/models/created_reservation_enquiry.rb +189 -0
- data/lib/quandoo/models/created_reservation_enquiry_data.rb +221 -0
- data/lib/quandoo/models/customer_data_list.rb +203 -0
- data/lib/quandoo/models/customer_dto.rb +201 -0
- data/lib/quandoo/models/customer_response.rb +362 -0
- data/lib/quandoo/models/customer_review_data.rb +214 -0
- data/lib/quandoo/models/customer_statistics_data.rb +219 -0
- data/lib/quandoo/models/deal_data.rb +253 -0
- data/lib/quandoo/models/document_dto.rb +210 -0
- data/lib/quandoo/models/error_response.rb +226 -0
- data/lib/quandoo/models/get_reservation_enquiry_data.rb +249 -0
- data/lib/quandoo/models/get_review_dto.rb +288 -0
- data/lib/quandoo/models/get_reviews_dto.rb +216 -0
- data/lib/quandoo/models/image_dto.rb +183 -0
- data/lib/quandoo/models/link_relation_dto.rb +235 -0
- data/lib/quandoo/models/location_dto.rb +192 -0
- data/lib/quandoo/models/marketing_setting_dto.rb +238 -0
- data/lib/quandoo/models/merchant_address_dto.rb +219 -0
- data/lib/quandoo/models/merchant_availability_days_dto.rb +198 -0
- data/lib/quandoo/models/merchant_availability_dto.rb +226 -0
- data/lib/quandoo/models/merchant_availability_dto_list.rb +215 -0
- data/lib/quandoo/models/merchant_customer.rb +271 -0
- data/lib/quandoo/models/merchant_customer_data.rb +390 -0
- data/lib/quandoo/models/merchant_details_dto.rb +402 -0
- data/lib/quandoo/models/merchant_details_dto_list.rb +218 -0
- data/lib/quandoo/models/merchant_menu_category_dto.rb +216 -0
- data/lib/quandoo/models/merchant_menu_dto.rb +251 -0
- data/lib/quandoo/models/merchant_menu_item_dto.rb +224 -0
- data/lib/quandoo/models/merchant_menus_dto.rb +185 -0
- data/lib/quandoo/models/merchant_reservation.rb +301 -0
- data/lib/quandoo/models/merchant_reservation_data.rb +219 -0
- data/lib/quandoo/models/merchant_reservation_enquiry.rb +311 -0
- data/lib/quandoo/models/merchant_reservation_enquiry_data.rb +219 -0
- data/lib/quandoo/models/merchant_reservation_settings_dto.rb +290 -0
- data/lib/quandoo/models/merchant_subscription.rb +217 -0
- data/lib/quandoo/models/merchant_vault_settings_dto.rb +231 -0
- data/lib/quandoo/models/merchant_with_recommendations_dto.rb +248 -0
- data/lib/quandoo/models/opening_times_dto.rb +189 -0
- data/lib/quandoo/models/reservation_data.rb +331 -0
- data/lib/quandoo/models/reservation_data_list.rb +185 -0
- data/lib/quandoo/models/reservation_details.rb +229 -0
- data/lib/quandoo/models/reservation_enquiry_message_data.rb +241 -0
- data/lib/quandoo/models/reservation_enquiry_message_list.rb +185 -0
- data/lib/quandoo/models/reservation_menu_data.rb +190 -0
- data/lib/quandoo/models/reservation_menu_item_data.rb +219 -0
- data/lib/quandoo/models/rest_cookie.rb +194 -0
- data/lib/quandoo/models/review_dto.rb +238 -0
- data/lib/quandoo/models/review_dto_list.rb +218 -0
- data/lib/quandoo/models/standard_opening_times_dto.rb +174 -0
- data/lib/quandoo/models/tag_group_dto.rb +228 -0
- data/lib/quandoo/models/tracking.rb +199 -0
- data/lib/quandoo/models/translated_tag_dto.rb +192 -0
- data/lib/quandoo/models/update_reservation_data.rb +189 -0
- data/lib/quandoo/models/update_reservation_enquiry_data.rb +184 -0
- data/lib/quandoo/models/update_review_dto.rb +209 -0
- data/lib/quandoo/version.rb +15 -0
- data/quandoo.gemspec +45 -0
- data/spec/api/availabilities_api_spec.rb +69 -0
- data/spec/api/customers_api_spec.rb +75 -0
- data/spec/api/menus_api_spec.rb +100 -0
- data/spec/api/merchants_api_spec.rb +119 -0
- data/spec/api/reservation_enquiries_api_spec.rb +84 -0
- data/spec/api/reservation_settings_api_spec.rb +47 -0
- data/spec/api/reservations_api_spec.rb +72 -0
- data/spec/api/reviews_api_spec.rb +86 -0
- data/spec/api/status_api_spec.rb +57 -0
- data/spec/api/validations_api_spec.rb +48 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/agent_tracking_spec.rb +41 -0
- data/spec/models/area_dto_spec.rb +53 -0
- data/spec/models/chain_dto_spec.rb +47 -0
- data/spec/models/changed_review_dto_spec.rb +57 -0
- data/spec/models/coordinates_dto_spec.rb +47 -0
- data/spec/models/create_review_dto_spec.rb +53 -0
- data/spec/models/created_master_customer_spec.rb +41 -0
- data/spec/models/created_reservation_data_spec.rb +53 -0
- data/spec/models/created_reservation_enquiry_data_spec.rb +53 -0
- data/spec/models/created_reservation_enquiry_spec.rb +41 -0
- data/spec/models/created_reservation_spec.rb +59 -0
- data/spec/models/customer_data_list_spec.rb +53 -0
- data/spec/models/customer_dto_spec.rb +53 -0
- data/spec/models/customer_response_spec.rb +99 -0
- data/spec/models/customer_review_data_spec.rb +59 -0
- data/spec/models/customer_statistics_data_spec.rb +53 -0
- data/spec/models/deal_data_spec.rb +57 -0
- data/spec/models/document_dto_spec.rb +59 -0
- data/spec/models/error_response_spec.rb +51 -0
- data/spec/models/get_reservation_enquiry_data_spec.rb +77 -0
- data/spec/models/get_review_dto_spec.rb +81 -0
- data/spec/models/get_reviews_dto_spec.rb +59 -0
- data/spec/models/image_dto_spec.rb +41 -0
- data/spec/models/link_relation_dto_spec.rb +57 -0
- data/spec/models/location_dto_spec.rb +47 -0
- data/spec/models/marketing_setting_dto_spec.rb +55 -0
- data/spec/models/merchant_address_dto_spec.rb +65 -0
- data/spec/models/merchant_availability_days_dto_spec.rb +47 -0
- data/spec/models/merchant_availability_dto_list_spec.rb +53 -0
- data/spec/models/merchant_availability_dto_spec.rb +59 -0
- data/spec/models/merchant_customer_data_spec.rb +119 -0
- data/spec/models/merchant_customer_spec.rb +83 -0
- data/spec/models/merchant_details_dto_list_spec.rb +59 -0
- data/spec/models/merchant_details_dto_spec.rb +137 -0
- data/spec/models/merchant_menu_category_dto_spec.rb +53 -0
- data/spec/models/merchant_menu_dto_spec.rb +71 -0
- data/spec/models/merchant_menu_item_dto_spec.rb +59 -0
- data/spec/models/merchant_menus_dto_spec.rb +41 -0
- data/spec/models/merchant_reservation_data_spec.rb +53 -0
- data/spec/models/merchant_reservation_enquiry_data_spec.rb +53 -0
- data/spec/models/merchant_reservation_enquiry_spec.rb +71 -0
- data/spec/models/merchant_reservation_settings_dto_spec.rb +101 -0
- data/spec/models/merchant_reservation_spec.rb +101 -0
- data/spec/models/merchant_subscription_spec.rb +45 -0
- data/spec/models/merchant_vault_settings_dto_spec.rb +59 -0
- data/spec/models/merchant_with_recommendations_dto_spec.rb +57 -0
- data/spec/models/opening_times_dto_spec.rb +41 -0
- data/spec/models/reservation_data_list_spec.rb +41 -0
- data/spec/models/reservation_data_spec.rb +101 -0
- data/spec/models/reservation_details_spec.rb +59 -0
- data/spec/models/reservation_enquiry_message_data_spec.rb +57 -0
- data/spec/models/reservation_enquiry_message_list_spec.rb +41 -0
- data/spec/models/reservation_menu_data_spec.rb +41 -0
- data/spec/models/reservation_menu_item_data_spec.rb +65 -0
- data/spec/models/rest_cookie_spec.rb +47 -0
- data/spec/models/review_dto_list_spec.rb +59 -0
- data/spec/models/review_dto_spec.rb +65 -0
- data/spec/models/standard_opening_times_dto_spec.rb +35 -0
- data/spec/models/tag_group_dto_spec.rb +51 -0
- data/spec/models/tracking_spec.rb +47 -0
- data/spec/models/translated_tag_dto_spec.rb +47 -0
- data/spec/models/update_reservation_data_spec.rb +41 -0
- data/spec/models/update_reservation_enquiry_data_spec.rb +41 -0
- data/spec/models/update_review_dto_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- metadata +538 -0
data/docs/RestCookie.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Quandoo::RestCookie
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**tracking** | **String** | A tracking string to be stored with the reservation. Optional. | [optional]
|
7
|
+
**reference_id** | **String** | A reference id to be stored with the reservation. Optional. | [optional]
|
8
|
+
|
9
|
+
|
data/docs/ReviewDto.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Quandoo::ReviewDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**customer** | [**CustomerDto**](CustomerDto.md) | The customer who wrote the review. |
|
7
|
+
**rating** | **Integer** | Possible values: 1 to 6. |
|
8
|
+
**description** | **String** | The description of the review. | [optional]
|
9
|
+
**locale** | **String** | | [optional]
|
10
|
+
**date** | **Date** | The date when the review was written. |
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Quandoo::ReviewDtoList
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**reviews** | [**Array<ReviewDto>**](ReviewDto.md) | Merchant customer review collection. |
|
7
|
+
**size** | **Integer** | | [optional]
|
8
|
+
**offset** | **Integer** | | [optional]
|
9
|
+
**limit** | **Integer** | | [optional]
|
10
|
+
|
11
|
+
|
data/docs/ReviewsApi.md
ADDED
@@ -0,0 +1,235 @@
|
|
1
|
+
# Quandoo::ReviewsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.quandoo.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**create_review1**](ReviewsApi.md#create_review1) | **PUT** /v1/reviews | Create a review for a reservation
|
8
|
+
[**get_review1**](ReviewsApi.md#get_review1) | **GET** /v1/reviews/{reviewId} | Get details for a specific review
|
9
|
+
[**get_reviews2**](ReviewsApi.md#get_reviews2) | **GET** /v1/reviews | Get information from reviews in a list
|
10
|
+
[**update_review1**](ReviewsApi.md#update_review1) | **PATCH** /v1/reviews | Updated a review
|
11
|
+
|
12
|
+
|
13
|
+
# **create_review1**
|
14
|
+
> ChangedReviewDto create_review1(body)
|
15
|
+
|
16
|
+
Create a review for a reservation
|
17
|
+
|
18
|
+
This resource manages the creation of reviews for a particular agent and a reservation. Reviews must have a description, rating and a reservation public identifier. The agent must be the one that created the reservation, otherwise it is forbidden. ####Request: The request needs to have 3 parameters for review reviewId, description and rating. * **reservationId**: Public ID of the reservation where to add a review. **Required**. * **description**: Text content of the review to be set. Optional. A review requires a minimum of a rating. * **rating**: Integer value from 1 to 6 with the new rating given. **Required**. ####Response: The response is a review object containing information about the review. * **reviewId**: The Id of the created review. * **status**: Status of the created review. Can be 'PENDING', 'PUBLISHED' or 'WITHHELD'. After a successful creation, 'PENDING' is returned. * **links**: A series of links where to get details of the created review; Example curl: ``` curl -H \"Content-Type: application/json\" -X POST -d ' { \"reservationId\": \"07f53b36-3f48-11e5-a151-feff819cdc9f\", \"description\": \"Some description of the review\", \"rating\": 1 } ``` Example response: ``` { \"reviewId\": \"01a53b36-3f48-11e5-a151-feff819cdc9f\", \"status\": \"PENDING\", \"links\": [{ \"href\": \"http://localhost:39250/v1/reviews/01a53b36-3f48-11e5-a151-feff819cdc9f\", \"method\": \"GET\", \"rel\": \"get-review\" }] } ```
|
19
|
+
|
20
|
+
### Example
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'quandoo'
|
24
|
+
# setup authorization
|
25
|
+
Quandoo.configure do |config|
|
26
|
+
# Configure API key authorization: API_TOKEN
|
27
|
+
config.api_key['X-Quandoo-AuthToken'] = 'YOUR API KEY'
|
28
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
29
|
+
#config.api_key_prefix['X-Quandoo-AuthToken'] = 'Bearer'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = Quandoo::ReviewsApi.new
|
33
|
+
|
34
|
+
body = Quandoo::CreateReviewDto.new # CreateReviewDto | Review for this reservation
|
35
|
+
|
36
|
+
|
37
|
+
begin
|
38
|
+
#Create a review for a reservation
|
39
|
+
result = api_instance.create_review1(body)
|
40
|
+
p result
|
41
|
+
rescue Quandoo::ApiError => e
|
42
|
+
puts "Exception when calling ReviewsApi->create_review1: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
### Parameters
|
47
|
+
|
48
|
+
Name | Type | Description | Notes
|
49
|
+
------------- | ------------- | ------------- | -------------
|
50
|
+
**body** | [**CreateReviewDto**](CreateReviewDto.md)| Review for this reservation |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**ChangedReviewDto**](ChangedReviewDto.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[API_TOKEN](../README.md#API_TOKEN)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
# **get_review1**
|
68
|
+
> GetReviewDto get_review1(review_id)
|
69
|
+
|
70
|
+
Get details for a specific review
|
71
|
+
|
72
|
+
This resource return details from reviews upon request. The result obtained depends on whether the agent is the owner of the reservation that owns the review or not. * If the user owns the reservation of the requested review, a detailed review is returned with all the information shown below. * If the user does not own the reservation of the requested review, a simplified review is returned with only the values marked below. * If the user does not own the reservation of the requested review AND the review is in a 'WITHHELD' status, an empty review is returned. ####Request: The request needs 1 path parameter, the review ID to get details from. * **reviewId**: ID of the review to get the details from. **Required**. ####Response: The response is a user review object containing information about the review depending on whether the agent used is the owner of the review or not. The different outcomes are **detailed** if the agent owns the review or **simplified** if not. * **reviewId**: review UUID. Same as the one used in the request. * **rating**: rating associated to this review. * **description**: description of the review. * **status**: current review status. Possible values are 'PENDING', 'WITHHELD', 'PUBLISHED'. * **merchantId**: merchant id associated to this review. **Only in the detailed view**. * **customerId**: customer id associated to this review. **DEPPRECATED, NOT USED**. * **publicCustomerId**: public customer id associated to this review. **Only in the detailed view**. * **customerFirstName**: review associated customer first name. **Only in the detailed view**. * **customerLastName**: first character of the customer last name. **Only in the detailed view**. * **customerProfileImage**: customer profile image URL. **Only in the detailed view**. * **locale**: locale associated to the review. **Only in the detailed view**. Example curl: ``` curl https://{host}/v{X}/reviews/07f53b36-3f48-11e5-a151-feff819cdc9f ``` Example response: ``` { \"reviewId\": \"01a53b36-3f48-11e5-a151-feff819cdc9f\", \"status\": \"PUBLISHED\", \"description\": \"Description of the review\", \"rating\": 3 } ```
|
73
|
+
|
74
|
+
### Example
|
75
|
+
```ruby
|
76
|
+
# load the gem
|
77
|
+
require 'quandoo'
|
78
|
+
# setup authorization
|
79
|
+
Quandoo.configure do |config|
|
80
|
+
# Configure API key authorization: API_TOKEN
|
81
|
+
config.api_key['X-Quandoo-AuthToken'] = 'YOUR API KEY'
|
82
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
83
|
+
#config.api_key_prefix['X-Quandoo-AuthToken'] = 'Bearer'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = Quandoo::ReviewsApi.new
|
87
|
+
|
88
|
+
review_id = 'review_id_example' # String | Review reviewId (UUID) to get details from
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Get details for a specific review
|
93
|
+
result = api_instance.get_review1(review_id)
|
94
|
+
p result
|
95
|
+
rescue Quandoo::ApiError => e
|
96
|
+
puts "Exception when calling ReviewsApi->get_review1: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**review_id** | [**String**](.md)| Review reviewId (UUID) to get details from |
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
[**GetReviewDto**](GetReviewDto.md)
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[API_TOKEN](../README.md#API_TOKEN)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: Not defined
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **get_reviews2**
|
122
|
+
> GetReviewsDto get_reviews2(opts)
|
123
|
+
|
124
|
+
Get information from reviews in a list
|
125
|
+
|
126
|
+
This resource return a list of reviews. The result obtained depends on the different query parameters provided. It is able to return three different results: * **Reviews associated to an agent:** if neither 'merchantId' nor 'reservationId' query parameters are provided, then the available reviews for the current agent are returned. * **Reviews associated to a merchant:** if the parameter 'merchantId' is provided, all the reviews for the given merchant and agent are provided. The agent is the one associated with the reservations. * **Reviews associated to a reservation:** if the parameter 'reservationId' is provided, all the reviews for the given reservation and agent are provided. The agent is the one associated with the reservation. **NOTE:** For the second and third cases, the current agent must be the owner of the reservations used to get the reviews. In the specific case of the search by the merchants, the current agent id is the one realated to the reservations associated to the specified merchant's reviews. ####Request: The request needs 4 optional query parameters. Pagination is controlled by the usage of the 'limit' and 'offset' parameters. * **limit**: maximum number of results to be returned. Value must be between 1 and 10. Defaults to 10 when unset, malformed or outside bounds. Ignored when 'reservationId' is enabled. * **offset**: sets the starting element to be returned. Defaults to 0 when unset or malformed. Ignored when 'reservationId' is enabled. * **reservationId**: Public ID of the reservation from which to get the reviews. Cannot be used in combination with 'merchantId'. Can be null. Does not consider 'limit' and/or 'offset'. * **merchantId**: ID of the merchant from wich to get the reviews. Cannot be used in combination with 'reservationId'. Can be null. ####Response: The response is a user review object containing a list of user reviews. * **size**: the number of reviews retrieved in this request. Can be any positive value between 0 and 10 (the maximum value for limit); * **offset**: echoes the offset value used in the request. Returns 0 in case 'reservationId' is used. * **limit**: echoes the limit value used in the request. Returns 0 in case 'reservationId' is used. * **reviews**: list of reviews retrieved, each review containing the following properties: * **reviewId**: review UUID. Same as the one used in the request. * **rating**: rating associated to this review. * **description**: description of the review. * **status**: current review status. Possible values are 'PENDING', 'WITHHELD', 'PUBLISHED'. * **merchantId**: merchant id associated to this review. **Only in the detailed view**. * **customerId**: customer id associated to this review. **DEPPRECATED, NOT USED**. * **publicCustomerId**: public customer id associated to this review. **Only in the detailed view**. * **customerFirstName**: review associated customer first name. **Only in the detailed view**. * **customerLastName**: first character of the customer last name. **Only in the detailed view**. * **customerProfileImage**: customer profile image URL. **Only in the detailed view**. * **locale**: locale associated to the review. **Only in the detailed view**. Example curl: ``` curl https://{host}/v{X}/reviews?merchantId=5124 ``` Example response: ``` { \"reviews\": [{ \"reviewId\": \"e94c5f9b-e61f-486a-bfa7-48abb1e42f93\", \"merchantId\": 5124, \"publicCustomerId\": \"a10fbb9a-df04-407c-9568-2e79bd620b41\", \"customerFirstName\": \"Perico\", \"customerLastName\": \"d\", \"customerProfileImage\": \"http://test.bla\", \"rating\": 6, \"description\": \"Description 8\", \"status\": \"PUBLISHED\", \"locale\": \"de_DE\" }, { \"reviewId\": \"65472403-7968-4ccf-b389-fe7e6e70ee27\", \"merchantId\": 5124, \"publicCustomerId\": \"a10fbb9a-df04-407c-9568-2e79bd620b41\", \"customerFirstName\": \"Perico\", \"customerLastName\": \"d\", \"customerProfileImage\": \"http://test.bla\", \"rating\": 6, \"description\": \"Description 9\", \"status\": \"PUBLISHED\", \"locale\": \"de_DE\" } ], \"size\": 2, \"offset\": 0, \"limit\": 10 } ```
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'quandoo'
|
132
|
+
# setup authorization
|
133
|
+
Quandoo.configure do |config|
|
134
|
+
# Configure API key authorization: API_TOKEN
|
135
|
+
config.api_key['X-Quandoo-AuthToken'] = 'YOUR API KEY'
|
136
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
137
|
+
#config.api_key_prefix['X-Quandoo-AuthToken'] = 'Bearer'
|
138
|
+
end
|
139
|
+
|
140
|
+
api_instance = Quandoo::ReviewsApi.new
|
141
|
+
|
142
|
+
opts = {
|
143
|
+
merchant_id: 56, # Integer | MerchantId to get the reviews from. Cannot be used in combination with 'reservationId'
|
144
|
+
reservation_id: 'reservation_id_example', # String | Public reservation id to get the reviews from. Cannot be used in combination with 'merchantId'. When set, 'offset' and 'limit' are ignored. All reviews for a reservation are returned.
|
145
|
+
offset: 0, # Integer | Skip first n reviews
|
146
|
+
limit: 10 # Integer | Max number to retrieve
|
147
|
+
}
|
148
|
+
|
149
|
+
begin
|
150
|
+
#Get information from reviews in a list
|
151
|
+
result = api_instance.get_reviews2(opts)
|
152
|
+
p result
|
153
|
+
rescue Quandoo::ApiError => e
|
154
|
+
puts "Exception when calling ReviewsApi->get_reviews2: #{e}"
|
155
|
+
end
|
156
|
+
```
|
157
|
+
|
158
|
+
### Parameters
|
159
|
+
|
160
|
+
Name | Type | Description | Notes
|
161
|
+
------------- | ------------- | ------------- | -------------
|
162
|
+
**merchant_id** | **Integer**| MerchantId to get the reviews from. Cannot be used in combination with 'reservationId' | [optional]
|
163
|
+
**reservation_id** | [**String**](.md)| Public reservation id to get the reviews from. Cannot be used in combination with 'merchantId'. When set, 'offset' and 'limit' are ignored. All reviews for a reservation are returned. | [optional]
|
164
|
+
**offset** | **Integer**| Skip first n reviews | [optional] [default to 0]
|
165
|
+
**limit** | **Integer**| Max number to retrieve | [optional] [default to 10]
|
166
|
+
|
167
|
+
### Return type
|
168
|
+
|
169
|
+
[**GetReviewsDto**](GetReviewsDto.md)
|
170
|
+
|
171
|
+
### Authorization
|
172
|
+
|
173
|
+
[API_TOKEN](../README.md#API_TOKEN)
|
174
|
+
|
175
|
+
### HTTP request headers
|
176
|
+
|
177
|
+
- **Content-Type**: Not defined
|
178
|
+
- **Accept**: application/json
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
# **update_review1**
|
183
|
+
> ChangedReviewDto update_review1(body)
|
184
|
+
|
185
|
+
Updated a review
|
186
|
+
|
187
|
+
This resource manages the update of reviews for a given review ID. Description and rating can be updated on a review. The agent must be the one that owns the reservation associated to the review to modify, otherwise a forbidden response is returned. **NOTE**: Reviews in state 'PUBLISHED' or 'WITHHELD' cannot be updated. Only those in status 'PENDING' are allowed to be updated. ####Request: The request needs to have 3 parameters for reservation reviewId (public reviewId), description and rating. * **reviewId**: Id of the review. **Required**. * **description**: Text content of the review. If not set (null value) it won't be considered for update. * **rating**: Integer value from 1 to 6 with the rating given. If not set (null value) it won't be considered for update. In case both description and rating are set to null, nothing happens to the review: it is not updated and its state remains. ####Response: The response is a review object containing information about the review. * **reviewId**: The Id of the updated review. * **status**: Status of the updated review. Can be 'PENDING', 'PUBLISHED' or 'WITHHELD'. Upon a successful update, the status 'PENDING' is returned. * **links**: A series of links where to get details of the updated review. Example curl: ``` curl -H \"Content-Type: application/json\" -X POST -d ' { \"reviewId\": \"01a53b36-3f48-11e5-a151-feff819cdc9f\", \"description\": \"Some updated description for the review\", \"rating\": 2 } ``` Example response: ``` { \"reviewId\": \"01a53b36-3f48-11e5-a151-feff819cdc9f\", \"status\": \"PENDING\", \"links\": [{ \"href\": \"http://localhost:39250/v1/reviews/01a53b36-3f48-11e5-a151-feff819cdc9f\", \"method\": \"GET\", \"rel\": \"get-review\" }] } ```
|
188
|
+
|
189
|
+
### Example
|
190
|
+
```ruby
|
191
|
+
# load the gem
|
192
|
+
require 'quandoo'
|
193
|
+
# setup authorization
|
194
|
+
Quandoo.configure do |config|
|
195
|
+
# Configure API key authorization: API_TOKEN
|
196
|
+
config.api_key['X-Quandoo-AuthToken'] = 'YOUR API KEY'
|
197
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
+
#config.api_key_prefix['X-Quandoo-AuthToken'] = 'Bearer'
|
199
|
+
end
|
200
|
+
|
201
|
+
api_instance = Quandoo::ReviewsApi.new
|
202
|
+
|
203
|
+
body = Quandoo::UpdateReviewDto.new # UpdateReviewDto | Review for this reservation
|
204
|
+
|
205
|
+
|
206
|
+
begin
|
207
|
+
#Updated a review
|
208
|
+
result = api_instance.update_review1(body)
|
209
|
+
p result
|
210
|
+
rescue Quandoo::ApiError => e
|
211
|
+
puts "Exception when calling ReviewsApi->update_review1: #{e}"
|
212
|
+
end
|
213
|
+
```
|
214
|
+
|
215
|
+
### Parameters
|
216
|
+
|
217
|
+
Name | Type | Description | Notes
|
218
|
+
------------- | ------------- | ------------- | -------------
|
219
|
+
**body** | [**UpdateReviewDto**](UpdateReviewDto.md)| Review for this reservation |
|
220
|
+
|
221
|
+
### Return type
|
222
|
+
|
223
|
+
[**ChangedReviewDto**](ChangedReviewDto.md)
|
224
|
+
|
225
|
+
### Authorization
|
226
|
+
|
227
|
+
[API_TOKEN](../README.md#API_TOKEN)
|
228
|
+
|
229
|
+
### HTTP request headers
|
230
|
+
|
231
|
+
- **Content-Type**: application/json
|
232
|
+
- **Accept**: application/json
|
233
|
+
|
234
|
+
|
235
|
+
|
data/docs/StatusApi.md
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
# Quandoo::StatusApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.quandoo.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_status_by_get1**](StatusApi.md#get_status_by_get1) | **GET** /v1/status | Provides information on the status of the service
|
8
|
+
[**get_status_by_head1**](StatusApi.md#get_status_by_head1) | **HEAD** /v1/status | Provides information on the status of the service
|
9
|
+
|
10
|
+
|
11
|
+
# **get_status_by_get1**
|
12
|
+
> get_status_by_get1
|
13
|
+
|
14
|
+
Provides information on the status of the service
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'quandoo'
|
22
|
+
|
23
|
+
api_instance = Quandoo::StatusApi.new
|
24
|
+
|
25
|
+
begin
|
26
|
+
#Provides information on the status of the service
|
27
|
+
api_instance.get_status_by_get1
|
28
|
+
rescue Quandoo::ApiError => e
|
29
|
+
puts "Exception when calling StatusApi->get_status_by_get1: #{e}"
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
### Parameters
|
34
|
+
This endpoint does not need any parameter.
|
35
|
+
|
36
|
+
### Return type
|
37
|
+
|
38
|
+
nil (empty response body)
|
39
|
+
|
40
|
+
### Authorization
|
41
|
+
|
42
|
+
No authorization required
|
43
|
+
|
44
|
+
### HTTP request headers
|
45
|
+
|
46
|
+
- **Content-Type**: Not defined
|
47
|
+
- **Accept**: application/json
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
# **get_status_by_head1**
|
52
|
+
> get_status_by_head1
|
53
|
+
|
54
|
+
Provides information on the status of the service
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
### Example
|
59
|
+
```ruby
|
60
|
+
# load the gem
|
61
|
+
require 'quandoo'
|
62
|
+
|
63
|
+
api_instance = Quandoo::StatusApi.new
|
64
|
+
|
65
|
+
begin
|
66
|
+
#Provides information on the status of the service
|
67
|
+
api_instance.get_status_by_head1
|
68
|
+
rescue Quandoo::ApiError => e
|
69
|
+
puts "Exception when calling StatusApi->get_status_by_head1: #{e}"
|
70
|
+
end
|
71
|
+
```
|
72
|
+
|
73
|
+
### Parameters
|
74
|
+
This endpoint does not need any parameter.
|
75
|
+
|
76
|
+
### Return type
|
77
|
+
|
78
|
+
nil (empty response body)
|
79
|
+
|
80
|
+
### Authorization
|
81
|
+
|
82
|
+
No authorization required
|
83
|
+
|
84
|
+
### HTTP request headers
|
85
|
+
|
86
|
+
- **Content-Type**: Not defined
|
87
|
+
- **Accept**: Not defined
|
88
|
+
|
89
|
+
|
90
|
+
|
data/docs/TagGroupDto.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Quandoo::TagGroupDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**type** | **String** | | [optional]
|
7
|
+
**tags** | [**Array<TranslatedTagDto>**](TranslatedTagDto.md) | | [optional]
|
8
|
+
|
9
|
+
|
data/docs/Tracking.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# Quandoo::Tracking
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**agent** | [**AgentTracking**](AgentTracking.md) | The id of the agent creating this request and partner references if any. Required. |
|
7
|
+
**cookie** | [**RestCookie**](RestCookie.md) | Cookie information to be stored with this reservation. Optional. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Quandoo::UpdateReservationData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**reservation** | [**ReservationDetails**](ReservationDetails.md) | The reservation status of the reservation. |
|
7
|
+
|
8
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Quandoo::UpdateReviewDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**review_id** | **String** | UUID identifying the review. |
|
7
|
+
**rating** | **Integer** | Rating associated to this review. Possible values: 1 to 6. | [optional]
|
8
|
+
**description** | **String** | Description associated to this review. | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# Quandoo::ValidationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.quandoo.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**validate_phone_number1**](ValidationsApi.md#validate_phone_number1) | **GET** /v1/validations/phone-numbers | Validate phone number
|
8
|
+
|
9
|
+
|
10
|
+
# **validate_phone_number1**
|
11
|
+
> validate_phone_number1(phone_number, opts)
|
12
|
+
|
13
|
+
Validate phone number
|
14
|
+
|
15
|
+
This endpoint validates a phone number. If optional 2-letter country code `country` is not specified, the `phoneNumber` should be formatted according to E164, which means it is expected to be in the international format with a leading `\"+\"` and no spaces or dashes, e.g. `+4930120765890`. Otherwise it may have leading zero instead of country code, e.g. `030120765890`. The endpoint will return a status `HTTP 200` which means the `phoneNumber` is successfully validated. The endpoint will return a status `HTTP 400` which means the `phoneNumber` is missing or invalid. Example curl: ``` curl https://{host}/v{X}/validations/phone-numbers?phoneNumber=030120765890&country=IT ``` Example response: ``` { \"errorMessage\": \"phoneNumber is invalid: 030120765890, country specified is: IT\", \"errorType\": \"PHONE_NUMBER_INVALID\" } ```
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'quandoo'
|
21
|
+
|
22
|
+
api_instance = Quandoo::ValidationsApi.new
|
23
|
+
|
24
|
+
phone_number = 'phone_number_example' # String | Phone number
|
25
|
+
|
26
|
+
opts = {
|
27
|
+
country: 'country_example' # String | Country code
|
28
|
+
}
|
29
|
+
|
30
|
+
begin
|
31
|
+
#Validate phone number
|
32
|
+
api_instance.validate_phone_number1(phone_number, opts)
|
33
|
+
rescue Quandoo::ApiError => e
|
34
|
+
puts "Exception when calling ValidationsApi->validate_phone_number1: #{e}"
|
35
|
+
end
|
36
|
+
```
|
37
|
+
|
38
|
+
### Parameters
|
39
|
+
|
40
|
+
Name | Type | Description | Notes
|
41
|
+
------------- | ------------- | ------------- | -------------
|
42
|
+
**phone_number** | **String**| Phone number |
|
43
|
+
**country** | **String**| Country code | [optional]
|
44
|
+
|
45
|
+
### Return type
|
46
|
+
|
47
|
+
nil (empty response body)
|
48
|
+
|
49
|
+
### Authorization
|
50
|
+
|
51
|
+
No authorization required
|
52
|
+
|
53
|
+
### HTTP request headers
|
54
|
+
|
55
|
+
- **Content-Type**: Not defined
|
56
|
+
- **Accept**: Not defined
|
57
|
+
|
58
|
+
|
59
|
+
|