repull 0.2.60 → 0.2.62

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +8 -8
  3. data/lib/repull/api/connect_api.rb +205 -5
  4. data/lib/repull/api/connections_api.rb +4 -4
  5. data/lib/repull/api/listings_api.rb +70 -0
  6. data/lib/repull/api/properties_api.rb +3 -3
  7. data/lib/repull/api/tiket_api.rb +885 -0
  8. data/lib/repull/models/account_import.rb +1 -1
  9. data/lib/repull/models/airbnb_reservation.rb +346 -6
  10. data/lib/repull/models/airbnb_reservation_detail.rb +679 -0
  11. data/lib/repull/models/airbnb_reservation_detail_response.rb +173 -0
  12. data/lib/repull/models/connect_provider_session.rb +266 -0
  13. data/lib/repull/models/create_connect_session_request.rb +2 -2
  14. data/lib/repull/models/create_connection_request.rb +3 -2
  15. data/lib/repull/models/guest.rb +4 -2
  16. data/lib/repull/models/listing_publish_tiket_response.rb +165 -0
  17. data/lib/repull/models/listing_publish_tiket_response_result.rb +182 -0
  18. data/lib/repull/models/map_tiket_connect_rooms_request.rb +201 -0
  19. data/lib/repull/models/map_tiket_connect_rooms_request_mappings_inner.rb +184 -0
  20. data/lib/repull/models/publish_listing_tiket_request.rb +148 -0
  21. data/lib/repull/models/reservation.rb +1 -1
  22. data/lib/repull/models/start_connection_import202_response_data.rb +32 -6
  23. data/lib/repull/models/start_connection_import_request.rb +3 -5
  24. data/lib/repull/models/sync_tiket_request.rb +160 -0
  25. data/lib/repull/models/tiket_ari_day.rb +347 -0
  26. data/lib/repull/models/tiket_ari_mismatch.rb +198 -0
  27. data/lib/repull/models/tiket_ari_update.rb +468 -0
  28. data/lib/repull/models/tiket_ari_write_response.rb +357 -0
  29. data/lib/repull/models/tiket_availability_response.rb +269 -0
  30. data/lib/repull/models/tiket_availability_update_request.rb +241 -0
  31. data/lib/repull/models/tiket_child_price.rb +217 -0
  32. data/lib/repull/models/tiket_connect_claim_response.rb +216 -0
  33. data/lib/repull/models/tiket_connect_map_rooms_response.rb +204 -0
  34. data/lib/repull/models/tiket_connect_rooms_response.rb +295 -0
  35. data/lib/repull/models/tiket_connect_rooms_response_rooms_inner.rb +199 -0
  36. data/lib/repull/models/tiket_content_response.rb +202 -0
  37. data/lib/repull/models/tiket_content_response_objects_inner.rb +237 -0
  38. data/lib/repull/models/tiket_listing_pricing_response.rb +321 -0
  39. data/lib/repull/models/tiket_listing_pricing_update_request.rb +209 -0
  40. data/lib/repull/models/tiket_map_listings_request.rb +202 -0
  41. data/lib/repull/models/tiket_map_listings_request_mappings_inner.rb +186 -0
  42. data/lib/repull/models/tiket_map_listings_response.rb +169 -0
  43. data/lib/repull/models/tiket_map_listings_response_results_inner.rb +176 -0
  44. data/lib/repull/models/tiket_occupancy_price.rb +201 -0
  45. data/lib/repull/models/tiket_property.rb +278 -0
  46. data/lib/repull/models/tiket_property_list_response.rb +166 -0
  47. data/lib/repull/models/tiket_property_listings_inner.rb +175 -0
  48. data/lib/repull/models/tiket_property_rooms_response.rb +192 -0
  49. data/lib/repull/models/tiket_rate_plan.rb +178 -0
  50. data/lib/repull/models/tiket_reservation.rb +421 -0
  51. data/lib/repull/models/tiket_reservation_list_response.rb +192 -0
  52. data/lib/repull/models/tiket_reservation_list_response_pagination.rb +165 -0
  53. data/lib/repull/models/tiket_room.rb +232 -0
  54. data/lib/repull/models/tiket_setup_request.rb +469 -0
  55. data/lib/repull/models/tiket_setup_request_contacts_inner.rb +192 -0
  56. data/lib/repull/models/tiket_setup_request_properties_inner.rb +174 -0
  57. data/lib/repull/models/tiket_setup_response.rb +159 -0
  58. data/lib/repull/models/tiket_sync_response.rb +167 -0
  59. data/lib/repull/models/tiket_sync_response_results_inner.rb +239 -0
  60. data/lib/repull/models/verify_tiket_claim_request.rb +212 -0
  61. data/lib/repull/version.rb +1 -1
  62. data/lib/repull.rb +46 -0
  63. data/openapi/v1.json +10004 -6945
  64. data/spec/api/tiket_api_spec.rb +56 -0
  65. metadata +50 -2
@@ -0,0 +1,239 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Repull
17
+ class TiketSyncResponseResultsInner < ApiModelBase
18
+ attr_accessor :property_id
19
+
20
+ attr_accessor :listing_id
21
+
22
+ attr_accessor :step
23
+
24
+ attr_accessor :ok
25
+
26
+ # `listing_inactive` — an inactive listing is not sold, so its calendar is not sent.
27
+ attr_accessor :skipped
28
+
29
+ attr_accessor :result
30
+
31
+ attr_accessor :error
32
+
33
+ class EnumAttributeValidator
34
+ attr_reader :datatype
35
+ attr_reader :allowable_values
36
+
37
+ def initialize(datatype, allowable_values)
38
+ @allowable_values = allowable_values.map do |value|
39
+ case datatype.to_s
40
+ when /Integer/i
41
+ value.to_i
42
+ when /Float/i
43
+ value.to_f
44
+ else
45
+ value
46
+ end
47
+ end
48
+ end
49
+
50
+ def valid?(value)
51
+ !value || allowable_values.include?(value)
52
+ end
53
+ end
54
+
55
+ # Attribute mapping from ruby-style variable name to JSON key.
56
+ def self.attribute_map
57
+ {
58
+ :'property_id' => :'propertyId',
59
+ :'listing_id' => :'listingId',
60
+ :'step' => :'step',
61
+ :'ok' => :'ok',
62
+ :'skipped' => :'skipped',
63
+ :'result' => :'result',
64
+ :'error' => :'error'
65
+ }
66
+ end
67
+
68
+ # Returns attribute mapping this model knows about
69
+ def self.acceptable_attribute_map
70
+ attribute_map
71
+ end
72
+
73
+ # Returns all the JSON keys this model knows about
74
+ def self.acceptable_attributes
75
+ acceptable_attribute_map.values
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.openapi_types
80
+ {
81
+ :'property_id' => :'String',
82
+ :'listing_id' => :'String',
83
+ :'step' => :'String',
84
+ :'ok' => :'Boolean',
85
+ :'skipped' => :'String',
86
+ :'result' => :'Hash<String, Object>',
87
+ :'error' => :'String'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ :'result',
95
+ ])
96
+ end
97
+
98
+ # Initializes the object
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ def initialize(attributes = {})
101
+ if (!attributes.is_a?(Hash))
102
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::TiketSyncResponseResultsInner` initialize method"
103
+ end
104
+
105
+ # check to see if the attribute exists and convert string to symbol for hash key
106
+ acceptable_attribute_map = self.class.acceptable_attribute_map
107
+ attributes = attributes.each_with_object({}) { |(k, v), h|
108
+ if (!acceptable_attribute_map.key?(k.to_sym))
109
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::TiketSyncResponseResultsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
110
+ end
111
+ h[k.to_sym] = v
112
+ }
113
+
114
+ if attributes.key?(:'property_id')
115
+ self.property_id = attributes[:'property_id']
116
+ end
117
+
118
+ if attributes.key?(:'listing_id')
119
+ self.listing_id = attributes[:'listing_id']
120
+ end
121
+
122
+ if attributes.key?(:'step')
123
+ self.step = attributes[:'step']
124
+ end
125
+
126
+ if attributes.key?(:'ok')
127
+ self.ok = attributes[:'ok']
128
+ end
129
+
130
+ if attributes.key?(:'skipped')
131
+ self.skipped = attributes[:'skipped']
132
+ end
133
+
134
+ if attributes.key?(:'result')
135
+ if (value = attributes[:'result']).is_a?(Hash)
136
+ self.result = value
137
+ end
138
+ end
139
+
140
+ if attributes.key?(:'error')
141
+ self.error = attributes[:'error']
142
+ end
143
+ end
144
+
145
+ # Show invalid properties with the reasons. Usually used together with valid?
146
+ # @return Array for valid properties with the reasons
147
+ def list_invalid_properties
148
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
+ invalid_properties = Array.new
150
+ invalid_properties
151
+ end
152
+
153
+ # Check to see if the all the properties in the model are valid
154
+ # @return true if the model is valid
155
+ def valid?
156
+ warn '[DEPRECATED] the `valid?` method is obsolete'
157
+ step_validator = EnumAttributeValidator.new('String', ["refresh_products", "calendar"])
158
+ return false unless step_validator.valid?(@step)
159
+ true
160
+ end
161
+
162
+ # Custom attribute writer method checking allowed values (enum).
163
+ # @param [Object] step Object to be assigned
164
+ def step=(step)
165
+ validator = EnumAttributeValidator.new('String', ["refresh_products", "calendar"])
166
+ unless validator.valid?(step)
167
+ fail ArgumentError, "invalid value for \"step\", must be one of #{validator.allowable_values}."
168
+ end
169
+ @step = step
170
+ end
171
+
172
+ # Checks equality by comparing each attribute.
173
+ # @param [Object] Object to be compared
174
+ def ==(o)
175
+ return true if self.equal?(o)
176
+ self.class == o.class &&
177
+ property_id == o.property_id &&
178
+ listing_id == o.listing_id &&
179
+ step == o.step &&
180
+ ok == o.ok &&
181
+ skipped == o.skipped &&
182
+ result == o.result &&
183
+ error == o.error
184
+ end
185
+
186
+ # @see the `==` method
187
+ # @param [Object] Object to be compared
188
+ def eql?(o)
189
+ self == o
190
+ end
191
+
192
+ # Calculates hash code according to all attributes.
193
+ # @return [Integer] Hash code
194
+ def hash
195
+ [property_id, listing_id, step, ok, skipped, result, error].hash
196
+ end
197
+
198
+ # Builds the object from hash
199
+ # @param [Hash] attributes Model attributes in the form of hash
200
+ # @return [Object] Returns the model itself
201
+ def self.build_from_hash(attributes)
202
+ return nil unless attributes.is_a?(Hash)
203
+ attributes = attributes.transform_keys(&:to_sym)
204
+ transformed_hash = {}
205
+ openapi_types.each_pair do |key, type|
206
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
207
+ transformed_hash["#{key}"] = nil
208
+ elsif type =~ /\AArray<(.*)>/i
209
+ # check to ensure the input is an array given that the attribute
210
+ # is documented as an array but the input is not
211
+ if attributes[attribute_map[key]].is_a?(Array)
212
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
213
+ end
214
+ elsif !attributes[attribute_map[key]].nil?
215
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
216
+ end
217
+ end
218
+ new(transformed_hash)
219
+ end
220
+
221
+ # Returns the object in the form of hash
222
+ # @return [Hash] Returns the object in the form of hash
223
+ def to_hash
224
+ hash = {}
225
+ self.class.attribute_map.each_pair do |attr, param|
226
+ value = self.send(attr)
227
+ if value.nil?
228
+ is_nullable = self.class.openapi_nullable.include?(attr)
229
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
230
+ end
231
+
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -0,0 +1,212 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Repull
17
+ class VerifyTiketClaimRequest < ApiModelBase
18
+ attr_accessor :session_id
19
+
20
+ # tiket.com Hotel ID.
21
+ attr_accessor :hotel_id
22
+
23
+ # Optional property name to show until tiket.com's is read.
24
+ attr_accessor :name
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'session_id' => :'sessionId',
30
+ :'hotel_id' => :'hotelId',
31
+ :'name' => :'name'
32
+ }
33
+ end
34
+
35
+ # Returns attribute mapping this model knows about
36
+ def self.acceptable_attribute_map
37
+ attribute_map
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ acceptable_attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'session_id' => :'String',
49
+ :'hotel_id' => :'String',
50
+ :'name' => :'String'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::VerifyTiketClaimRequest` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ acceptable_attribute_map = self.class.acceptable_attribute_map
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!acceptable_attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::VerifyTiketClaimRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ end
73
+ h[k.to_sym] = v
74
+ }
75
+
76
+ if attributes.key?(:'session_id')
77
+ self.session_id = attributes[:'session_id']
78
+ else
79
+ self.session_id = nil
80
+ end
81
+
82
+ if attributes.key?(:'hotel_id')
83
+ self.hotel_id = attributes[:'hotel_id']
84
+ else
85
+ self.hotel_id = nil
86
+ end
87
+
88
+ if attributes.key?(:'name')
89
+ self.name = attributes[:'name']
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
97
+ invalid_properties = Array.new
98
+ if @session_id.nil?
99
+ invalid_properties.push('invalid value for "session_id", session_id cannot be nil.')
100
+ end
101
+
102
+ if @hotel_id.nil?
103
+ invalid_properties.push('invalid value for "hotel_id", hotel_id cannot be nil.')
104
+ end
105
+
106
+ pattern = Regexp.new(/^[0-9]{1,20}$/)
107
+ if @hotel_id !~ pattern
108
+ invalid_properties.push("invalid value for \"hotel_id\", must conform to the pattern #{pattern}.")
109
+ end
110
+
111
+ invalid_properties
112
+ end
113
+
114
+ # Check to see if the all the properties in the model are valid
115
+ # @return true if the model is valid
116
+ def valid?
117
+ warn '[DEPRECATED] the `valid?` method is obsolete'
118
+ return false if @session_id.nil?
119
+ return false if @hotel_id.nil?
120
+ return false if @hotel_id !~ Regexp.new(/^[0-9]{1,20}$/)
121
+ true
122
+ end
123
+
124
+ # Custom attribute writer method with validation
125
+ # @param [Object] session_id Value to be assigned
126
+ def session_id=(session_id)
127
+ if session_id.nil?
128
+ fail ArgumentError, 'session_id cannot be nil'
129
+ end
130
+
131
+ @session_id = session_id
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] hotel_id Value to be assigned
136
+ def hotel_id=(hotel_id)
137
+ if hotel_id.nil?
138
+ fail ArgumentError, 'hotel_id cannot be nil'
139
+ end
140
+
141
+ pattern = Regexp.new(/^[0-9]{1,20}$/)
142
+ if hotel_id !~ pattern
143
+ fail ArgumentError, "invalid value for \"hotel_id\", must conform to the pattern #{pattern}."
144
+ end
145
+
146
+ @hotel_id = hotel_id
147
+ end
148
+
149
+ # Checks equality by comparing each attribute.
150
+ # @param [Object] Object to be compared
151
+ def ==(o)
152
+ return true if self.equal?(o)
153
+ self.class == o.class &&
154
+ session_id == o.session_id &&
155
+ hotel_id == o.hotel_id &&
156
+ name == o.name
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [session_id, hotel_id, name].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ return nil unless attributes.is_a?(Hash)
176
+ attributes = attributes.transform_keys(&:to_sym)
177
+ transformed_hash = {}
178
+ openapi_types.each_pair do |key, type|
179
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
180
+ transformed_hash["#{key}"] = nil
181
+ elsif type =~ /\AArray<(.*)>/i
182
+ # check to ensure the input is an array given that the attribute
183
+ # is documented as an array but the input is not
184
+ if attributes[attribute_map[key]].is_a?(Array)
185
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
186
+ end
187
+ elsif !attributes[attribute_map[key]].nil?
188
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
189
+ end
190
+ end
191
+ new(transformed_hash)
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ end
211
+
212
+ end
@@ -11,5 +11,5 @@ Generator version: 7.22.0
11
11
  =end
12
12
 
13
13
  module Repull
14
- VERSION = '0.2.60'
14
+ VERSION = '0.2.62'
15
15
  end
data/lib/repull.rb CHANGED
@@ -99,6 +99,8 @@ require 'repull/models/airbnb_publish_result'
99
99
  require 'repull/models/airbnb_reservation'
100
100
  require 'repull/models/airbnb_reservation_action200_response'
101
101
  require 'repull/models/airbnb_reservation_action_request'
102
+ require 'repull/models/airbnb_reservation_detail'
103
+ require 'repull/models/airbnb_reservation_detail_response'
102
104
  require 'repull/models/airbnb_reservation_list_response'
103
105
  require 'repull/models/airbnb_review'
104
106
  require 'repull/models/airbnb_review_list_response'
@@ -206,6 +208,7 @@ require 'repull/models/clear_kv200_response'
206
208
  require 'repull/models/connect_host'
207
209
  require 'repull/models/connect_provider'
208
210
  require 'repull/models/connect_provider_list_response'
211
+ require 'repull/models/connect_provider_session'
209
212
  require 'repull/models/connect_session'
210
213
  require 'repull/models/connect_session_abandoned_event'
211
214
  require 'repull/models/connect_session_abandoned_payload'
@@ -650,6 +653,8 @@ require 'repull/models/listing_publish_booking_response'
650
653
  require 'repull/models/listing_publish_status_channel'
651
654
  require 'repull/models/listing_publish_status_connection'
652
655
  require 'repull/models/listing_publish_status_response'
656
+ require 'repull/models/listing_publish_tiket_response'
657
+ require 'repull/models/listing_publish_tiket_response_result'
653
658
  require 'repull/models/listing_pull_airbnb_request'
654
659
  require 'repull/models/listing_pull_response'
655
660
  require 'repull/models/listing_quality_tier'
@@ -679,6 +684,8 @@ require 'repull/models/map_booking_room_response'
679
684
  require 'repull/models/map_connect_booking_rooms_request'
680
685
  require 'repull/models/map_connect_booking_rooms_response'
681
686
  require 'repull/models/map_connect_booking_rooms_response_property_status'
687
+ require 'repull/models/map_tiket_connect_rooms_request'
688
+ require 'repull/models/map_tiket_connect_rooms_request_mappings_inner'
682
689
  require 'repull/models/map_vrbo_listing200_response'
683
690
  require 'repull/models/map_vrbo_listing_request'
684
691
  require 'repull/models/market_browse_category'
@@ -787,6 +794,7 @@ require 'repull/models/property_availability_coverage'
787
794
  require 'repull/models/property_availability_day'
788
795
  require 'repull/models/property_availability_unit'
789
796
  require 'repull/models/property_list_response'
797
+ require 'repull/models/publish_listing_tiket_request'
790
798
  require 'repull/models/publish_listing_to_vrbo_request'
791
799
  require 'repull/models/publish_section_error'
792
800
  require 'repull/models/pull_listing_from_vrbo200_response'
@@ -951,11 +959,47 @@ require 'repull/models/sync_airbnb_transactions200_response'
951
959
  require 'repull/models/sync_airbnb_transactions200_response_accounts_inner'
952
960
  require 'repull/models/sync_airbnb_transactions200_response_accounts_inner_error'
953
961
  require 'repull/models/sync_airbnb_transactions_request'
962
+ require 'repull/models/sync_tiket_request'
954
963
  require 'repull/models/sync_vrbo_transactions200_response'
955
964
  require 'repull/models/sync_vrbo_transactions200_response_accounts_inner'
956
965
  require 'repull/models/sync_vrbo_transactions200_response_accounts_inner_error'
957
966
  require 'repull/models/sync_vrbo_transactions_request'
958
967
  require 'repull/models/test_webhook_request'
968
+ require 'repull/models/tiket_ari_day'
969
+ require 'repull/models/tiket_ari_mismatch'
970
+ require 'repull/models/tiket_ari_update'
971
+ require 'repull/models/tiket_ari_write_response'
972
+ require 'repull/models/tiket_availability_response'
973
+ require 'repull/models/tiket_availability_update_request'
974
+ require 'repull/models/tiket_child_price'
975
+ require 'repull/models/tiket_connect_claim_response'
976
+ require 'repull/models/tiket_connect_map_rooms_response'
977
+ require 'repull/models/tiket_connect_rooms_response'
978
+ require 'repull/models/tiket_connect_rooms_response_rooms_inner'
979
+ require 'repull/models/tiket_content_response'
980
+ require 'repull/models/tiket_content_response_objects_inner'
981
+ require 'repull/models/tiket_listing_pricing_response'
982
+ require 'repull/models/tiket_listing_pricing_update_request'
983
+ require 'repull/models/tiket_map_listings_request'
984
+ require 'repull/models/tiket_map_listings_request_mappings_inner'
985
+ require 'repull/models/tiket_map_listings_response'
986
+ require 'repull/models/tiket_map_listings_response_results_inner'
987
+ require 'repull/models/tiket_occupancy_price'
988
+ require 'repull/models/tiket_property'
989
+ require 'repull/models/tiket_property_list_response'
990
+ require 'repull/models/tiket_property_listings_inner'
991
+ require 'repull/models/tiket_property_rooms_response'
992
+ require 'repull/models/tiket_rate_plan'
993
+ require 'repull/models/tiket_reservation'
994
+ require 'repull/models/tiket_reservation_list_response'
995
+ require 'repull/models/tiket_reservation_list_response_pagination'
996
+ require 'repull/models/tiket_room'
997
+ require 'repull/models/tiket_setup_request'
998
+ require 'repull/models/tiket_setup_request_contacts_inner'
999
+ require 'repull/models/tiket_setup_request_properties_inner'
1000
+ require 'repull/models/tiket_setup_response'
1001
+ require 'repull/models/tiket_sync_response'
1002
+ require 'repull/models/tiket_sync_response_results_inner'
959
1003
  require 'repull/models/transaction'
960
1004
  require 'repull/models/transaction_fees'
961
1005
  require 'repull/models/transaction_payout'
@@ -1105,6 +1149,7 @@ require 'repull/models/upload_airbnb_listing_photos_request_photos_inner_listing
1105
1149
  require 'repull/models/usage_quota_warning_event'
1106
1150
  require 'repull/models/usage_quota_warning_payload'
1107
1151
  require 'repull/models/usage_quota_warning_payload_top_operation'
1152
+ require 'repull/models/verify_tiket_claim_request'
1108
1153
  require 'repull/models/vrbo_calendar_access'
1109
1154
  require 'repull/models/vrbo_import_status'
1110
1155
  require 'repull/models/vrbo_listing'
@@ -1163,6 +1208,7 @@ require 'repull/api/resolutions_api'
1163
1208
  require 'repull/api/reviews_api'
1164
1209
  require 'repull/api/schema_api'
1165
1210
  require 'repull/api/system_api'
1211
+ require 'repull/api/tiket_api'
1166
1212
  require 'repull/api/transactions_api'
1167
1213
  require 'repull/api/vrbo_api'
1168
1214
  require 'repull/api/webhooks_api'