repull 0.2.9 → 0.2.10

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 (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +1391 -117
  3. data/lib/repull/api/availability_api.rb +99 -0
  4. data/lib/repull/api/billing_api.rb +226 -0
  5. data/lib/repull/api/booking_com_api.rb +590 -0
  6. data/lib/repull/api/plumguide_api.rb +245 -0
  7. data/lib/repull/models/acknowledge_booking_reservations_request.rb +176 -0
  8. data/lib/repull/models/airbnb_alteration.rb +191 -0
  9. data/lib/repull/models/airbnb_amenity.rb +171 -0
  10. data/lib/repull/models/booking_setup_request.rb +220 -0
  11. data/lib/repull/models/create_airbnb_alteration_request.rb +195 -0
  12. data/lib/repull/models/create_airbnb_offer_request.rb +211 -0
  13. data/lib/repull/models/create_booking_webhook_request.rb +192 -0
  14. data/lib/repull/models/delete_airbnb_listing_photo200_response.rb +147 -0
  15. data/lib/repull/models/get_airbnb_alteration200_response.rb +190 -0
  16. data/lib/repull/models/get_airbnb_listing_quality200_response.rb +177 -0
  17. data/lib/repull/models/get_airbnb_listing_settings200_response.rb +177 -0
  18. data/lib/repull/models/get_airbnb_thread200_response.rb +190 -0
  19. data/lib/repull/models/get_usage_logs200_response.rb +167 -0
  20. data/lib/repull/models/get_usage_logs200_response_data_inner.rb +264 -0
  21. data/lib/repull/models/get_usage_logs200_response_pagination.rb +166 -0
  22. data/lib/repull/models/get_usage_summary200_response.rb +232 -0
  23. data/lib/repull/models/get_usage_summary200_response_breakdown_inner.rb +183 -0
  24. data/lib/repull/models/get_usage_summary200_response_limits.rb +158 -0
  25. data/lib/repull/models/get_usage_summary200_response_remaining.rb +158 -0
  26. data/lib/repull/models/get_usage_summary200_response_status_distribution.rb +174 -0
  27. data/lib/repull/models/get_usage_summary200_response_timeline_inner.rb +165 -0
  28. data/lib/repull/models/get_usage_summary200_response_totals.rb +165 -0
  29. data/lib/repull/models/get_usage_summary200_response_used.rb +156 -0
  30. data/lib/repull/models/get_usage_tier200_response.rb +183 -0
  31. data/lib/repull/models/get_usage_tier200_response_limits.rb +168 -0
  32. data/lib/repull/models/get_usage_tier200_response_remaining.rb +168 -0
  33. data/lib/repull/models/get_usage_tier200_response_used.rb +165 -0
  34. data/lib/repull/models/list_airbnb_alterations200_response.rb +192 -0
  35. data/lib/repull/models/list_airbnb_listing_amenities200_response.rb +190 -0
  36. data/lib/repull/models/list_airbnb_listing_amenities200_response_data.rb +160 -0
  37. data/lib/repull/models/list_airbnb_transactions200_response.rb +192 -0
  38. data/lib/repull/models/property_availability.rb +222 -0
  39. data/lib/repull/models/property_availability_day.rb +247 -0
  40. data/lib/repull/models/update_airbnb_message_request.rb +209 -0
  41. data/lib/repull/models/update_booking_charges_request.rb +194 -0
  42. data/lib/repull/version.rb +1 -1
  43. data/lib/repull.rb +36 -0
  44. data/openapi/v1.json +3297 -1000
  45. metadata +37 -1
@@ -0,0 +1,209 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect to 50+ PMS platforms and 4 OTA channels through one REST API. Built-in AI operations for guest communication, pricing, and listing optimization. ## 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_test_YOUR_API_KEY ``` Sandbox keys start with `sk_test_`, production with `sk_live_`. ## 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`, and `resets_at` fields. ## Plan Limits (402 — `listings_limit_exceeded`) The Repull API also enforces a per-tier cap on **active listings**: | Tier | Active listings cap | |---|---| | `free` | 3 | | `starter` | 50 | | `custom` | unlimited | When a customer's active-listing count is above their tier cap, the API returns **`402 Payment Required`** with `error.code = \"listings_limit_exceeded\"` on every route EXCEPT: - `/v1/health` — uptime probes are never gated. - `/v1/usage/*` — so dashboards can render the over-cap state. - Any `DELETE` — so the customer can trim listings to get back under the cap without paying. Unlike 429, 402 is NOT a \"wait and retry\" condition — `Retry-After` is not set. The only paths back to 200 are: 1. `DELETE` enough listings to come back under the cap, or 2. Upgrade at `https://repull.dev/dashboard/billing`. The server-side usage cache is 60s, so the first 200 after an upgrade may take up to a minute. The envelope mirrors `rate_limit_exceeded` for SDK ergonomics: `tier`, `limit`, `active_listings`, `upgrade_url`, plus the standard `code` / `message` / `fix` / `docs_url` / `request_id`.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: ivan@vanio.ai
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 UpdateAirbnbMessageRequest < ApiModelBase
18
+ # Operation to perform on the message.
19
+ attr_accessor :action
20
+
21
+ # New message text. Required when `action` is `edit`.
22
+ attr_accessor :message
23
+
24
+ # Reaction to add. Required when `action` is `react`.
25
+ attr_accessor :reaction
26
+
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'action' => :'action',
53
+ :'message' => :'message',
54
+ :'reaction' => :'reaction'
55
+ }
56
+ end
57
+
58
+ # Returns attribute mapping this model knows about
59
+ def self.acceptable_attribute_map
60
+ attribute_map
61
+ end
62
+
63
+ # Returns all the JSON keys this model knows about
64
+ def self.acceptable_attributes
65
+ acceptable_attribute_map.values
66
+ end
67
+
68
+ # Attribute type mapping.
69
+ def self.openapi_types
70
+ {
71
+ :'action' => :'String',
72
+ :'message' => :'String',
73
+ :'reaction' => :'String'
74
+ }
75
+ end
76
+
77
+ # List of attributes with nullable: true
78
+ def self.openapi_nullable
79
+ Set.new([
80
+ ])
81
+ end
82
+
83
+ # Initializes the object
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ def initialize(attributes = {})
86
+ if (!attributes.is_a?(Hash))
87
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateAirbnbMessageRequest` initialize method"
88
+ end
89
+
90
+ # check to see if the attribute exists and convert string to symbol for hash key
91
+ acceptable_attribute_map = self.class.acceptable_attribute_map
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!acceptable_attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateAirbnbMessageRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'action')
100
+ self.action = attributes[:'action']
101
+ else
102
+ self.action = nil
103
+ end
104
+
105
+ if attributes.key?(:'message')
106
+ self.message = attributes[:'message']
107
+ end
108
+
109
+ if attributes.key?(:'reaction')
110
+ self.reaction = attributes[:'reaction']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
+ invalid_properties = Array.new
119
+ if @action.nil?
120
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
121
+ end
122
+
123
+ invalid_properties
124
+ end
125
+
126
+ # Check to see if the all the properties in the model are valid
127
+ # @return true if the model is valid
128
+ def valid?
129
+ warn '[DEPRECATED] the `valid?` method is obsolete'
130
+ return false if @action.nil?
131
+ action_validator = EnumAttributeValidator.new('String', ["edit", "unsend", "read", "react"])
132
+ return false unless action_validator.valid?(@action)
133
+ true
134
+ end
135
+
136
+ # Custom attribute writer method checking allowed values (enum).
137
+ # @param [Object] action Object to be assigned
138
+ def action=(action)
139
+ validator = EnumAttributeValidator.new('String', ["edit", "unsend", "read", "react"])
140
+ unless validator.valid?(action)
141
+ fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
142
+ end
143
+ @action = action
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param [Object] Object to be compared
148
+ def ==(o)
149
+ return true if self.equal?(o)
150
+ self.class == o.class &&
151
+ action == o.action &&
152
+ message == o.message &&
153
+ reaction == o.reaction
154
+ end
155
+
156
+ # @see the `==` method
157
+ # @param [Object] Object to be compared
158
+ def eql?(o)
159
+ self == o
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ def hash
165
+ [action, message, reaction].hash
166
+ end
167
+
168
+ # Builds the object from hash
169
+ # @param [Hash] attributes Model attributes in the form of hash
170
+ # @return [Object] Returns the model itself
171
+ def self.build_from_hash(attributes)
172
+ return nil unless attributes.is_a?(Hash)
173
+ attributes = attributes.transform_keys(&:to_sym)
174
+ transformed_hash = {}
175
+ openapi_types.each_pair do |key, type|
176
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = nil
178
+ elsif type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the attribute
180
+ # is documented as an array but the input is not
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
183
+ end
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
186
+ end
187
+ end
188
+ new(transformed_hash)
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -0,0 +1,194 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect to 50+ PMS platforms and 4 OTA channels through one REST API. Built-in AI operations for guest communication, pricing, and listing optimization. ## 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_test_YOUR_API_KEY ``` Sandbox keys start with `sk_test_`, production with `sk_live_`. ## 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`, and `resets_at` fields. ## Plan Limits (402 — `listings_limit_exceeded`) The Repull API also enforces a per-tier cap on **active listings**: | Tier | Active listings cap | |---|---| | `free` | 3 | | `starter` | 50 | | `custom` | unlimited | When a customer's active-listing count is above their tier cap, the API returns **`402 Payment Required`** with `error.code = \"listings_limit_exceeded\"` on every route EXCEPT: - `/v1/health` — uptime probes are never gated. - `/v1/usage/*` — so dashboards can render the over-cap state. - Any `DELETE` — so the customer can trim listings to get back under the cap without paying. Unlike 429, 402 is NOT a \"wait and retry\" condition — `Retry-After` is not set. The only paths back to 200 are: 1. `DELETE` enough listings to come back under the cap, or 2. Upgrade at `https://repull.dev/dashboard/billing`. The server-side usage cache is 60s, so the first 200 after an upgrade may take up to a minute. The envelope mirrors `rate_limit_exceeded` for SDK ergonomics: `tier`, `limit`, `active_listings`, `upgrade_url`, plus the standard `code` / `message` / `fix` / `docs_url` / `request_id`.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: ivan@vanio.ai
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 UpdateBookingChargesRequest < ApiModelBase
18
+ # Booking.com hotel/property id.
19
+ attr_accessor :property_id
20
+
21
+ # Full charge set to apply.
22
+ attr_accessor :charges
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'property_id' => :'property_id',
28
+ :'charges' => :'charges'
29
+ }
30
+ end
31
+
32
+ # Returns attribute mapping this model knows about
33
+ def self.acceptable_attribute_map
34
+ attribute_map
35
+ end
36
+
37
+ # Returns all the JSON keys this model knows about
38
+ def self.acceptable_attributes
39
+ acceptable_attribute_map.values
40
+ end
41
+
42
+ # Attribute type mapping.
43
+ def self.openapi_types
44
+ {
45
+ :'property_id' => :'String',
46
+ :'charges' => :'Array<Hash<String, Object>>'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateBookingChargesRequest` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateBookingChargesRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'property_id')
73
+ self.property_id = attributes[:'property_id']
74
+ else
75
+ self.property_id = nil
76
+ end
77
+
78
+ if attributes.key?(:'charges')
79
+ if (value = attributes[:'charges']).is_a?(Array)
80
+ self.charges = value
81
+ end
82
+ else
83
+ self.charges = nil
84
+ end
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
91
+ invalid_properties = Array.new
92
+ if @property_id.nil?
93
+ invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
94
+ end
95
+
96
+ if @charges.nil?
97
+ invalid_properties.push('invalid value for "charges", charges cannot be nil.')
98
+ end
99
+
100
+ invalid_properties
101
+ end
102
+
103
+ # Check to see if the all the properties in the model are valid
104
+ # @return true if the model is valid
105
+ def valid?
106
+ warn '[DEPRECATED] the `valid?` method is obsolete'
107
+ return false if @property_id.nil?
108
+ return false if @charges.nil?
109
+ true
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] property_id Value to be assigned
114
+ def property_id=(property_id)
115
+ if property_id.nil?
116
+ fail ArgumentError, 'property_id cannot be nil'
117
+ end
118
+
119
+ @property_id = property_id
120
+ end
121
+
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] charges Value to be assigned
124
+ def charges=(charges)
125
+ if charges.nil?
126
+ fail ArgumentError, 'charges cannot be nil'
127
+ end
128
+
129
+ @charges = charges
130
+ end
131
+
132
+ # Checks equality by comparing each attribute.
133
+ # @param [Object] Object to be compared
134
+ def ==(o)
135
+ return true if self.equal?(o)
136
+ self.class == o.class &&
137
+ property_id == o.property_id &&
138
+ charges == o.charges
139
+ end
140
+
141
+ # @see the `==` method
142
+ # @param [Object] Object to be compared
143
+ def eql?(o)
144
+ self == o
145
+ end
146
+
147
+ # Calculates hash code according to all attributes.
148
+ # @return [Integer] Hash code
149
+ def hash
150
+ [property_id, charges].hash
151
+ end
152
+
153
+ # Builds the object from hash
154
+ # @param [Hash] attributes Model attributes in the form of hash
155
+ # @return [Object] Returns the model itself
156
+ def self.build_from_hash(attributes)
157
+ return nil unless attributes.is_a?(Hash)
158
+ attributes = attributes.transform_keys(&:to_sym)
159
+ transformed_hash = {}
160
+ openapi_types.each_pair do |key, type|
161
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
162
+ transformed_hash["#{key}"] = nil
163
+ elsif type =~ /\AArray<(.*)>/i
164
+ # check to ensure the input is an array given that the attribute
165
+ # is documented as an array but the input is not
166
+ if attributes[attribute_map[key]].is_a?(Array)
167
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
168
+ end
169
+ elsif !attributes[attribute_map[key]].nil?
170
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
171
+ end
172
+ end
173
+ new(transformed_hash)
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ if value.nil?
183
+ is_nullable = self.class.openapi_nullable.include?(attr)
184
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
185
+ end
186
+
187
+ hash[param] = _to_hash(value)
188
+ end
189
+ hash
190
+ end
191
+
192
+ end
193
+
194
+ end
@@ -11,5 +11,5 @@ Generator version: 7.22.0
11
11
  =end
12
12
 
13
13
  module Repull
14
- VERSION = '0.2.9'
14
+ VERSION = '0.2.10'
15
15
  end
data/lib/repull.rb CHANGED
@@ -23,11 +23,14 @@ require 'repull/models/account_created_event'
23
23
  require 'repull/models/account_created_payload'
24
24
  require 'repull/models/account_disconnected_event'
25
25
  require 'repull/models/account_disconnected_payload'
26
+ require 'repull/models/acknowledge_booking_reservations_request'
26
27
  require 'repull/models/ai_operation_completed_event'
27
28
  require 'repull/models/ai_operation_completed_payload'
28
29
  require 'repull/models/ai_operation_failed_event'
29
30
  require 'repull/models/ai_operation_failed_payload'
30
31
  require 'repull/models/ai_operation_failed_payload_error'
32
+ require 'repull/models/airbnb_alteration'
33
+ require 'repull/models/airbnb_amenity'
31
34
  require 'repull/models/airbnb_availability_write_request'
32
35
  require 'repull/models/airbnb_calendar_operation'
33
36
  require 'repull/models/airbnb_connection'
@@ -65,6 +68,7 @@ require 'repull/models/booking_pricing_update_response'
65
68
  require 'repull/models/booking_property'
66
69
  require 'repull/models/booking_property_list_response'
67
70
  require 'repull/models/booking_room_mapping'
71
+ require 'repull/models/booking_setup_request'
68
72
  require 'repull/models/booking_verify_hotel_request'
69
73
  require 'repull/models/booking_verify_hotel_response'
70
74
  require 'repull/models/bulk_pricing_failure'
@@ -91,7 +95,10 @@ require 'repull/models/conversation_guest_contact'
91
95
  require 'repull/models/conversation_host'
92
96
  require 'repull/models/conversation_list_response'
93
97
  require 'repull/models/conversation_message_attachment'
98
+ require 'repull/models/create_airbnb_alteration_request'
99
+ require 'repull/models/create_airbnb_offer_request'
94
100
  require 'repull/models/create_billing_checkout_request'
101
+ require 'repull/models/create_booking_webhook_request'
95
102
  require 'repull/models/create_connect_session_request'
96
103
  require 'repull/models/create_connection_request'
97
104
  require 'repull/models/create_webhook_request'
@@ -102,11 +109,31 @@ require 'repull/models/custom_schema_delete_response'
102
109
  require 'repull/models/custom_schema_list_response'
103
110
  require 'repull/models/custom_schema_summary'
104
111
  require 'repull/models/custom_schema_update'
112
+ require 'repull/models/delete_airbnb_listing_photo200_response'
105
113
  require 'repull/models/delete_kv200_response'
106
114
  require 'repull/models/error'
107
115
  require 'repull/models/error_error'
108
116
  require 'repull/models/error_error_support'
117
+ require 'repull/models/get_airbnb_alteration200_response'
118
+ require 'repull/models/get_airbnb_listing_quality200_response'
119
+ require 'repull/models/get_airbnb_listing_settings200_response'
120
+ require 'repull/models/get_airbnb_thread200_response'
109
121
  require 'repull/models/get_health200_response'
122
+ require 'repull/models/get_usage_logs200_response'
123
+ require 'repull/models/get_usage_logs200_response_data_inner'
124
+ require 'repull/models/get_usage_logs200_response_pagination'
125
+ require 'repull/models/get_usage_summary200_response'
126
+ require 'repull/models/get_usage_summary200_response_breakdown_inner'
127
+ require 'repull/models/get_usage_summary200_response_limits'
128
+ require 'repull/models/get_usage_summary200_response_remaining'
129
+ require 'repull/models/get_usage_summary200_response_status_distribution'
130
+ require 'repull/models/get_usage_summary200_response_timeline_inner'
131
+ require 'repull/models/get_usage_summary200_response_totals'
132
+ require 'repull/models/get_usage_summary200_response_used'
133
+ require 'repull/models/get_usage_tier200_response'
134
+ require 'repull/models/get_usage_tier200_response_limits'
135
+ require 'repull/models/get_usage_tier200_response_remaining'
136
+ require 'repull/models/get_usage_tier200_response_used'
110
137
  require 'repull/models/guest'
111
138
  require 'repull/models/guest_contact'
112
139
  require 'repull/models/guest_flag'
@@ -114,6 +141,10 @@ require 'repull/models/guest_list_response'
114
141
  require 'repull/models/guest_note'
115
142
  require 'repull/models/guest_profile'
116
143
  require 'repull/models/guest_reservations_summary'
144
+ require 'repull/models/list_airbnb_alterations200_response'
145
+ require 'repull/models/list_airbnb_listing_amenities200_response'
146
+ require 'repull/models/list_airbnb_listing_amenities200_response_data'
147
+ require 'repull/models/list_airbnb_transactions200_response'
117
148
  require 'repull/models/list_kv200_response'
118
149
  require 'repull/models/list_kv200_response_data_inner'
119
150
  require 'repull/models/list_kv200_response_pagination'
@@ -205,6 +236,8 @@ require 'repull/models/payment_refunded_payload'
205
236
  require 'repull/models/plumguide_listing'
206
237
  require 'repull/models/plumguide_listing_list_response'
207
238
  require 'repull/models/property'
239
+ require 'repull/models/property_availability'
240
+ require 'repull/models/property_availability_day'
208
241
  require 'repull/models/property_list_response'
209
242
  require 'repull/models/reply_booking_review200_response'
210
243
  require 'repull/models/reply_booking_review_request'
@@ -245,6 +278,8 @@ require 'repull/models/studio_file'
245
278
  require 'repull/models/studio_generation'
246
279
  require 'repull/models/studio_project'
247
280
  require 'repull/models/test_webhook_request'
281
+ require 'repull/models/update_airbnb_message_request'
282
+ require 'repull/models/update_booking_charges_request'
248
283
  require 'repull/models/update_listing_pricing_strategy200_response'
249
284
  require 'repull/models/update_webhook_request'
250
285
  require 'repull/models/vrbo_listing'
@@ -265,6 +300,7 @@ require 'repull/models/webhook_subscription'
265
300
  # APIs
266
301
  require 'repull/api/airbnb_api'
267
302
  require 'repull/api/atlas_api'
303
+ require 'repull/api/availability_api'
268
304
  require 'repull/api/billing_api'
269
305
  require 'repull/api/booking_com_api'
270
306
  require 'repull/api/connect_api'