long_thanh_sdk 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +3 -0
- data/README.md +106 -0
- data/docs/Business.md +34 -0
- data/docs/BusinessAddress.md +24 -0
- data/docs/BusinessOpeningHours.md +28 -0
- data/docs/BusinessOrdering.md +26 -0
- data/docs/DefaultApi.md +198 -0
- data/docs/Menu.md +30 -0
- data/docs/MenuItem.md +28 -0
- data/docs/MenuSection.md +22 -0
- data/docs/Problem.md +30 -0
- data/lib/long_thanh_sdk/api/default_api.rb +200 -0
- data/lib/long_thanh_sdk/api_client.rb +441 -0
- data/lib/long_thanh_sdk/api_error.rb +58 -0
- data/lib/long_thanh_sdk/api_model_base.rb +88 -0
- data/lib/long_thanh_sdk/configuration.rb +385 -0
- data/lib/long_thanh_sdk/models/business.rb +411 -0
- data/lib/long_thanh_sdk/models/business_address.rb +279 -0
- data/lib/long_thanh_sdk/models/business_opening_hours.rb +357 -0
- data/lib/long_thanh_sdk/models/business_ordering.rb +309 -0
- data/lib/long_thanh_sdk/models/menu.rb +365 -0
- data/lib/long_thanh_sdk/models/menu_item.rb +320 -0
- data/lib/long_thanh_sdk/models/menu_section.rb +231 -0
- data/lib/long_thanh_sdk/models/problem.rb +362 -0
- data/lib/long_thanh_sdk/version.rb +15 -0
- data/lib/long_thanh_sdk.rb +49 -0
- metadata +136 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 37a88f4c2cf477ec1767db891d63573c2d0fc4addbe0ec23a24c7b7ac0823969
|
|
4
|
+
data.tar.gz: 2b0a7a36194e711d264d162990fe1848bfe4377430637b4fc4a994803ebfb25f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 7a98208724d9ffe8d8fc5268aaecf6e195f005279dea504f595a2fd1c744ae810862d513cff6cbba79be4df2b9fccf245f68c5ff977a442308a372b91d2121bb
|
|
7
|
+
data.tar.gz: 78a90f6e494b0de7382be73de9c39b2b9ad26932ec17720902fd11720cc4038e77e8ee73e8e311cf32fb2dbbca5c3ebce4436a04b852f73ff4b6314ed9882049
|
data/LICENSE.txt
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Long Thanh Imbiss ruby SDK
|
|
2
|
+
|
|
3
|
+
Publisher: SWL Services. Product homepage: https://longthanh-imbiss.com
|
|
4
|
+
|
|
5
|
+
Generated from https://longthanh-imbiss.com/openapi.json. This SDK is read-only; it cannot place orders, take payments or confirm live availability. Cache facts for five minutes and honor RateLimit / Retry-After.
|
|
6
|
+
|
|
7
|
+
Copyright (c) 2026 SWL Services. All rights reserved. See LICENSE.txt.
|
|
8
|
+
|
|
9
|
+
# long_thanh_sdk
|
|
10
|
+
|
|
11
|
+
LongThanhSdk - the Ruby gem for the Long Thanh Imbiss Public Information API
|
|
12
|
+
|
|
13
|
+
Anonymous read-only published menu and business information. /api/v1/ is the stable major-version namespace. Breaking changes require a new namespace. No orders, reservations or payments. Deprecated versions receive at least 90 days notice in /api/, a Deprecation header and a Sunset header before removal. No version is currently deprecated.
|
|
14
|
+
|
|
15
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
|
+
|
|
17
|
+
- API version: 1.1.1
|
|
18
|
+
- Package version: 0.1.0
|
|
19
|
+
- Generator version: 7.26.0
|
|
20
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
21
|
+
|
|
22
|
+
## Installation
|
|
23
|
+
|
|
24
|
+
### Build a gem
|
|
25
|
+
|
|
26
|
+
To build the Ruby code into a gem:
|
|
27
|
+
|
|
28
|
+
```shell
|
|
29
|
+
gem build long_thanh_sdk.gemspec
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then either install the gem locally:
|
|
33
|
+
|
|
34
|
+
```shell
|
|
35
|
+
gem install ./long_thanh_sdk-0.1.0.gem
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
(for development, run `gem install --dev ./long_thanh_sdk-0.1.0.gem` to install the development dependencies)
|
|
39
|
+
|
|
40
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
41
|
+
|
|
42
|
+
Finally add this to the Gemfile:
|
|
43
|
+
|
|
44
|
+
gem 'long_thanh_sdk', '~> 0.1.0'
|
|
45
|
+
|
|
46
|
+
### Install from Git
|
|
47
|
+
|
|
48
|
+
If the Ruby gem is hosted at a git repository: https://github.com/Moinsachsen1234/long-thanh-sdks, then add the following in the Gemfile:
|
|
49
|
+
|
|
50
|
+
gem 'long_thanh_sdk', :git => 'https://github.com/Moinsachsen1234/long-thanh-sdks.git'
|
|
51
|
+
|
|
52
|
+
### Include the Ruby code directly
|
|
53
|
+
|
|
54
|
+
Include the Ruby code directly using `-I` as follows:
|
|
55
|
+
|
|
56
|
+
```shell
|
|
57
|
+
ruby -Ilib script.rb
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Getting Started
|
|
61
|
+
|
|
62
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
63
|
+
|
|
64
|
+
```ruby
|
|
65
|
+
# Load the gem
|
|
66
|
+
require 'long_thanh_sdk'
|
|
67
|
+
|
|
68
|
+
api_instance = LongThanhSdk::DefaultApi.new
|
|
69
|
+
|
|
70
|
+
begin
|
|
71
|
+
#Read the existing German plain-text menu
|
|
72
|
+
result = api_instance.get_menu
|
|
73
|
+
p result
|
|
74
|
+
rescue LongThanhSdk::ApiError => e
|
|
75
|
+
puts "Exception when calling DefaultApi->get_menu: #{e}"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Documentation for API Endpoints
|
|
81
|
+
|
|
82
|
+
All URIs are relative to *https://longthanh-imbiss.com*
|
|
83
|
+
|
|
84
|
+
Class | Method | HTTP request | Description
|
|
85
|
+
------------ | ------------- | ------------- | -------------
|
|
86
|
+
*LongThanhSdk::DefaultApi* | [**get_menu**](docs/DefaultApi.md#get_menu) | **GET** /speisekarte.txt | Read the existing German plain-text menu
|
|
87
|
+
*LongThanhSdk::DefaultApi* | [**get_public_business_v1**](docs/DefaultApi.md#get_public_business_v1) | **GET** /api/v1/business | Read business contact, hours and ordering policy as JSON
|
|
88
|
+
*LongThanhSdk::DefaultApi* | [**get_public_menu_v1**](docs/DefaultApi.md#get_public_menu_v1) | **GET** /api/v1/menu | Read the published menu and prices as JSON
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
## Documentation for Models
|
|
92
|
+
|
|
93
|
+
- [LongThanhSdk::Business](docs/Business.md)
|
|
94
|
+
- [LongThanhSdk::BusinessAddress](docs/BusinessAddress.md)
|
|
95
|
+
- [LongThanhSdk::BusinessOpeningHours](docs/BusinessOpeningHours.md)
|
|
96
|
+
- [LongThanhSdk::BusinessOrdering](docs/BusinessOrdering.md)
|
|
97
|
+
- [LongThanhSdk::Menu](docs/Menu.md)
|
|
98
|
+
- [LongThanhSdk::MenuItem](docs/MenuItem.md)
|
|
99
|
+
- [LongThanhSdk::MenuSection](docs/MenuSection.md)
|
|
100
|
+
- [LongThanhSdk::Problem](docs/Problem.md)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
## Documentation for Authorization
|
|
104
|
+
|
|
105
|
+
Endpoints do not require authorization.
|
|
106
|
+
|
data/docs/Business.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# LongThanhSdk::Business
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **version** | **String** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **description** | **String** | | |
|
|
10
|
+
| **url** | **String** | | |
|
|
11
|
+
| **telephone** | **String** | | |
|
|
12
|
+
| **address** | [**BusinessAddress**](BusinessAddress.md) | | |
|
|
13
|
+
| **opening_hours** | [**BusinessOpeningHours**](BusinessOpeningHours.md) | | |
|
|
14
|
+
| **ordering** | [**BusinessOrdering**](BusinessOrdering.md) | | |
|
|
15
|
+
| **limitations** | **Array<String>** | | |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'long_thanh_sdk'
|
|
21
|
+
|
|
22
|
+
instance = LongThanhSdk::Business.new(
|
|
23
|
+
version: null,
|
|
24
|
+
name: null,
|
|
25
|
+
description: null,
|
|
26
|
+
url: null,
|
|
27
|
+
telephone: null,
|
|
28
|
+
address: null,
|
|
29
|
+
opening_hours: null,
|
|
30
|
+
ordering: null,
|
|
31
|
+
limitations: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# LongThanhSdk::BusinessAddress
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **street_address** | **String** | | |
|
|
8
|
+
| **postal_code** | **String** | | |
|
|
9
|
+
| **address_locality** | **String** | | |
|
|
10
|
+
| **address_country** | **String** | | |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'long_thanh_sdk'
|
|
16
|
+
|
|
17
|
+
instance = LongThanhSdk::BusinessAddress.new(
|
|
18
|
+
street_address: null,
|
|
19
|
+
postal_code: null,
|
|
20
|
+
address_locality: null,
|
|
21
|
+
address_country: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# LongThanhSdk::BusinessOpeningHours
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **days** | **Array<String>** | | |
|
|
8
|
+
| **opens** | **String** | | |
|
|
9
|
+
| **closes** | **String** | | |
|
|
10
|
+
| **closed** | **Array<String>** | | |
|
|
11
|
+
| **time_zone** | **String** | | |
|
|
12
|
+
| **holiday_hours** | **String** | | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'long_thanh_sdk'
|
|
18
|
+
|
|
19
|
+
instance = LongThanhSdk::BusinessOpeningHours.new(
|
|
20
|
+
days: null,
|
|
21
|
+
opens: null,
|
|
22
|
+
closes: null,
|
|
23
|
+
closed: null,
|
|
24
|
+
time_zone: null,
|
|
25
|
+
holiday_hours: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# LongThanhSdk::BusinessOrdering
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **channel** | **String** | | |
|
|
8
|
+
| **steps** | **Array<String>** | | |
|
|
9
|
+
| **online_checkout** | **Boolean** | | |
|
|
10
|
+
| **agent_can_place_orders** | **Boolean** | | |
|
|
11
|
+
| **delivery** | **String** | | |
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```ruby
|
|
16
|
+
require 'long_thanh_sdk'
|
|
17
|
+
|
|
18
|
+
instance = LongThanhSdk::BusinessOrdering.new(
|
|
19
|
+
channel: null,
|
|
20
|
+
steps: null,
|
|
21
|
+
online_checkout: null,
|
|
22
|
+
agent_can_place_orders: null,
|
|
23
|
+
delivery: null
|
|
24
|
+
)
|
|
25
|
+
```
|
|
26
|
+
|
data/docs/DefaultApi.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
# LongThanhSdk::DefaultApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://longthanh-imbiss.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_menu**](DefaultApi.md#get_menu) | **GET** /speisekarte.txt | Read the existing German plain-text menu |
|
|
8
|
+
| [**get_public_business_v1**](DefaultApi.md#get_public_business_v1) | **GET** /api/v1/business | Read business contact, hours and ordering policy as JSON |
|
|
9
|
+
| [**get_public_menu_v1**](DefaultApi.md#get_public_menu_v1) | **GET** /api/v1/menu | Read the published menu and prices as JSON |
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## get_menu
|
|
13
|
+
|
|
14
|
+
> String get_menu
|
|
15
|
+
|
|
16
|
+
Read the existing German plain-text menu
|
|
17
|
+
|
|
18
|
+
Compatibility feed with UTF-8 Markdown-style headings and EUR prices. Rebuilt with the website; not live inventory. Static feeds do not emit application quota headers. Use /api/v1/menu for typed JSON and structured API errors.
|
|
19
|
+
|
|
20
|
+
### Examples
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'time'
|
|
24
|
+
require 'long_thanh_sdk'
|
|
25
|
+
|
|
26
|
+
api_instance = LongThanhSdk::DefaultApi.new
|
|
27
|
+
|
|
28
|
+
begin
|
|
29
|
+
# Read the existing German plain-text menu
|
|
30
|
+
result = api_instance.get_menu
|
|
31
|
+
p result
|
|
32
|
+
rescue LongThanhSdk::ApiError => e
|
|
33
|
+
puts "Error when calling DefaultApi->get_menu: #{e}"
|
|
34
|
+
end
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### Using the get_menu_with_http_info variant
|
|
38
|
+
|
|
39
|
+
This returns an Array which contains the response data, status code and headers.
|
|
40
|
+
|
|
41
|
+
> <Array(String, Integer, Hash)> get_menu_with_http_info
|
|
42
|
+
|
|
43
|
+
```ruby
|
|
44
|
+
begin
|
|
45
|
+
# Read the existing German plain-text menu
|
|
46
|
+
data, status_code, headers = api_instance.get_menu_with_http_info
|
|
47
|
+
p status_code # => 2xx
|
|
48
|
+
p headers # => { ... }
|
|
49
|
+
p data # => String
|
|
50
|
+
rescue LongThanhSdk::ApiError => e
|
|
51
|
+
puts "Error when calling DefaultApi->get_menu_with_http_info: #{e}"
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
This endpoint does not need any parameter.
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
**String**
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
No authorization required
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: Not defined
|
|
70
|
+
- **Accept**: text/plain, application/problem+json, application/json, text/html, text/markdown
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
## get_public_business_v1
|
|
74
|
+
|
|
75
|
+
> <Business> get_public_business_v1
|
|
76
|
+
|
|
77
|
+
Read business contact, hours and ordering policy as JSON
|
|
78
|
+
|
|
79
|
+
Use when a user asks where Long Thanh Imbiss is, how to contact it, its regular opening hours or how to order. Hours use Europe/Berlin time; holidays and changes require telephone confirmation. No parameters. Returns the complete resource without pagination. HEAD returns the same status and headers without a body.
|
|
80
|
+
|
|
81
|
+
### Examples
|
|
82
|
+
|
|
83
|
+
```ruby
|
|
84
|
+
require 'time'
|
|
85
|
+
require 'long_thanh_sdk'
|
|
86
|
+
|
|
87
|
+
api_instance = LongThanhSdk::DefaultApi.new
|
|
88
|
+
|
|
89
|
+
begin
|
|
90
|
+
# Read business contact, hours and ordering policy as JSON
|
|
91
|
+
result = api_instance.get_public_business_v1
|
|
92
|
+
p result
|
|
93
|
+
rescue LongThanhSdk::ApiError => e
|
|
94
|
+
puts "Error when calling DefaultApi->get_public_business_v1: #{e}"
|
|
95
|
+
end
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### Using the get_public_business_v1_with_http_info variant
|
|
99
|
+
|
|
100
|
+
This returns an Array which contains the response data, status code and headers.
|
|
101
|
+
|
|
102
|
+
> <Array(<Business>, Integer, Hash)> get_public_business_v1_with_http_info
|
|
103
|
+
|
|
104
|
+
```ruby
|
|
105
|
+
begin
|
|
106
|
+
# Read business contact, hours and ordering policy as JSON
|
|
107
|
+
data, status_code, headers = api_instance.get_public_business_v1_with_http_info
|
|
108
|
+
p status_code # => 2xx
|
|
109
|
+
p headers # => { ... }
|
|
110
|
+
p data # => <Business>
|
|
111
|
+
rescue LongThanhSdk::ApiError => e
|
|
112
|
+
puts "Error when calling DefaultApi->get_public_business_v1_with_http_info: #{e}"
|
|
113
|
+
end
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Parameters
|
|
117
|
+
|
|
118
|
+
This endpoint does not need any parameter.
|
|
119
|
+
|
|
120
|
+
### Return type
|
|
121
|
+
|
|
122
|
+
[**Business**](Business.md)
|
|
123
|
+
|
|
124
|
+
### Authorization
|
|
125
|
+
|
|
126
|
+
No authorization required
|
|
127
|
+
|
|
128
|
+
### HTTP request headers
|
|
129
|
+
|
|
130
|
+
- **Content-Type**: Not defined
|
|
131
|
+
- **Accept**: application/json, application/problem+json
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
## get_public_menu_v1
|
|
135
|
+
|
|
136
|
+
> <Menu> get_public_menu_v1(opts)
|
|
137
|
+
|
|
138
|
+
Read the published menu and prices as JSON
|
|
139
|
+
|
|
140
|
+
Use when answering questions about Long Thanh Imbiss dishes or published EUR prices. Returns all sections without pagination. Confirm availability, ingredients and orders by telephone. HEAD returns the same status and headers without a body.
|
|
141
|
+
|
|
142
|
+
### Examples
|
|
143
|
+
|
|
144
|
+
```ruby
|
|
145
|
+
require 'time'
|
|
146
|
+
require 'long_thanh_sdk'
|
|
147
|
+
|
|
148
|
+
api_instance = LongThanhSdk::DefaultApi.new
|
|
149
|
+
opts = {
|
|
150
|
+
language: 'de' # String | Menu translation; omit for German. Repeated or unsupported query parameters return 400.
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
begin
|
|
154
|
+
# Read the published menu and prices as JSON
|
|
155
|
+
result = api_instance.get_public_menu_v1(opts)
|
|
156
|
+
p result
|
|
157
|
+
rescue LongThanhSdk::ApiError => e
|
|
158
|
+
puts "Error when calling DefaultApi->get_public_menu_v1: #{e}"
|
|
159
|
+
end
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
#### Using the get_public_menu_v1_with_http_info variant
|
|
163
|
+
|
|
164
|
+
This returns an Array which contains the response data, status code and headers.
|
|
165
|
+
|
|
166
|
+
> <Array(<Menu>, Integer, Hash)> get_public_menu_v1_with_http_info(opts)
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
begin
|
|
170
|
+
# Read the published menu and prices as JSON
|
|
171
|
+
data, status_code, headers = api_instance.get_public_menu_v1_with_http_info(opts)
|
|
172
|
+
p status_code # => 2xx
|
|
173
|
+
p headers # => { ... }
|
|
174
|
+
p data # => <Menu>
|
|
175
|
+
rescue LongThanhSdk::ApiError => e
|
|
176
|
+
puts "Error when calling DefaultApi->get_public_menu_v1_with_http_info: #{e}"
|
|
177
|
+
end
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
|
|
182
|
+
| Name | Type | Description | Notes |
|
|
183
|
+
| ---- | ---- | ----------- | ----- |
|
|
184
|
+
| **language** | **String** | Menu translation; omit for German. Repeated or unsupported query parameters return 400. | [optional][default to 'de'] |
|
|
185
|
+
|
|
186
|
+
### Return type
|
|
187
|
+
|
|
188
|
+
[**Menu**](Menu.md)
|
|
189
|
+
|
|
190
|
+
### Authorization
|
|
191
|
+
|
|
192
|
+
No authorization required
|
|
193
|
+
|
|
194
|
+
### HTTP request headers
|
|
195
|
+
|
|
196
|
+
- **Content-Type**: Not defined
|
|
197
|
+
- **Accept**: application/json, application/problem+json
|
|
198
|
+
|
data/docs/Menu.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# LongThanhSdk::Menu
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **version** | **String** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **language** | **String** | | |
|
|
10
|
+
| **currency** | **String** | | |
|
|
11
|
+
| **source** | **String** | | |
|
|
12
|
+
| **limitations** | **Array<String>** | | |
|
|
13
|
+
| **sections** | [**Array<MenuSection>**](MenuSection.md) | | |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'long_thanh_sdk'
|
|
19
|
+
|
|
20
|
+
instance = LongThanhSdk::Menu.new(
|
|
21
|
+
version: null,
|
|
22
|
+
name: null,
|
|
23
|
+
language: null,
|
|
24
|
+
currency: null,
|
|
25
|
+
source: null,
|
|
26
|
+
limitations: null,
|
|
27
|
+
sections: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
data/docs/MenuItem.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# LongThanhSdk::MenuItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **number** | **String** | | |
|
|
9
|
+
| **name** | **String** | | |
|
|
10
|
+
| **description** | **String** | | |
|
|
11
|
+
| **price** | **String** | Decimal EUR amount including VAT. Extras may cost more. | |
|
|
12
|
+
| **vegetarian_marked** | **Boolean** | True only when labelled vegetarian on the published menu; false means no label, not a dietary assessment. Never infer allergen safety or vegan suitability. | |
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'long_thanh_sdk'
|
|
18
|
+
|
|
19
|
+
instance = LongThanhSdk::MenuItem.new(
|
|
20
|
+
id: null,
|
|
21
|
+
number: null,
|
|
22
|
+
name: null,
|
|
23
|
+
description: null,
|
|
24
|
+
price: null,
|
|
25
|
+
vegetarian_marked: null
|
|
26
|
+
)
|
|
27
|
+
```
|
|
28
|
+
|
data/docs/MenuSection.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# LongThanhSdk::MenuSection
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | | |
|
|
8
|
+
| **name** | **String** | | |
|
|
9
|
+
| **items** | [**Array<MenuItem>**](MenuItem.md) | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'long_thanh_sdk'
|
|
15
|
+
|
|
16
|
+
instance = LongThanhSdk::MenuSection.new(
|
|
17
|
+
id: null,
|
|
18
|
+
name: null,
|
|
19
|
+
items: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/docs/Problem.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# LongThanhSdk::Problem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **type** | **String** | | |
|
|
8
|
+
| **title** | **String** | | |
|
|
9
|
+
| **status** | **Integer** | | |
|
|
10
|
+
| **detail** | **String** | | |
|
|
11
|
+
| **code** | **String** | | |
|
|
12
|
+
| **resolution** | **String** | | |
|
|
13
|
+
| **instance** | **String** | Requested path. Query values are omitted. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'long_thanh_sdk'
|
|
19
|
+
|
|
20
|
+
instance = LongThanhSdk::Problem.new(
|
|
21
|
+
type: null,
|
|
22
|
+
title: null,
|
|
23
|
+
status: null,
|
|
24
|
+
detail: null,
|
|
25
|
+
code: null,
|
|
26
|
+
resolution: null,
|
|
27
|
+
instance: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|