repull 0.2.35 → 0.2.37

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/connect_api.rb +70 -2
  3. data/lib/repull/api/conversations_api.rb +2 -2
  4. data/lib/repull/api/listings_api.rb +8 -8
  5. data/lib/repull/api/migrate_api.rb +68 -0
  6. data/lib/repull/api/reservations_api.rb +4 -4
  7. data/lib/repull/models/account_disconnected_payload.rb +16 -4
  8. data/lib/repull/models/account_disconnected_payload_listings_inner.rb +157 -0
  9. data/lib/repull/models/airbnb_calendar_operation.rb +12 -12
  10. data/lib/repull/models/booking_unacknowledged_event.rb +281 -0
  11. data/lib/repull/models/booking_unacknowledged_payload.rb +229 -0
  12. data/lib/repull/models/channel_degraded_event.rb +279 -0
  13. data/lib/repull/models/channel_degraded_payload.rb +174 -0
  14. data/lib/repull/models/channel_degraded_payload_object.rb +262 -0
  15. data/lib/repull/models/channel_sync_failed_event.rb +280 -0
  16. data/lib/repull/models/channel_sync_failure_payload.rb +214 -0
  17. data/lib/repull/models/channel_sync_failure_payload_failures_inner.rb +213 -0
  18. data/lib/repull/models/channel_sync_failure_payload_object.rb +289 -0
  19. data/lib/repull/models/charge_per.rb +42 -0
  20. data/lib/repull/models/create_connect_session_request.rb +2 -2
  21. data/lib/repull/models/create_connection_request.rb +1 -1
  22. data/lib/repull/models/import_from_channex200_response.rb +147 -0
  23. data/lib/repull/models/import_from_channex200_response_data.rb +324 -0
  24. data/lib/repull/models/import_from_channex200_response_data_channels_inner.rb +263 -0
  25. data/lib/repull/models/import_from_channex200_response_data_properties_inner.rb +222 -0
  26. data/lib/repull/models/import_from_channex200_response_data_summary.rb +201 -0
  27. data/lib/repull/models/import_from_channex200_response_data_summary_bookings.rb +165 -0
  28. data/lib/repull/models/import_from_channex200_response_data_summary_properties.rb +165 -0
  29. data/lib/repull/models/import_from_channex_request.rb +223 -0
  30. data/lib/repull/models/inquiry_webhook_object.rb +10 -1
  31. data/lib/repull/models/inquiry_webhook_object_guest.rb +159 -0
  32. data/lib/repull/models/list_inquiries200_response_data_inner.rb +27 -1
  33. data/lib/repull/models/list_inquiries200_response_data_inner_guest.rb +160 -0
  34. data/lib/repull/models/listing.rb +82 -1
  35. data/lib/repull/models/listing_channel.rb +15 -4
  36. data/lib/repull/models/listing_content_photo.rb +206 -0
  37. data/lib/repull/models/listing_fee.rb +229 -0
  38. data/lib/repull/models/listing_policies.rb +257 -0
  39. data/lib/repull/models/listing_policies_check_in.rb +179 -0
  40. data/lib/repull/models/listing_policies_check_out.rb +148 -0
  41. data/lib/repull/models/listing_policies_quiet_hours.rb +156 -0
  42. data/lib/repull/models/listing_pricing_settings.rb +233 -0
  43. data/lib/repull/models/listing_room.rb +190 -0
  44. data/lib/repull/models/listing_room_beds_inner.rb +156 -0
  45. data/lib/repull/models/listing_rules.rb +212 -0
  46. data/lib/repull/models/listing_tax.rb +241 -0
  47. data/lib/repull/models/listing_webhook_object_channels_inner.rb +16 -5
  48. data/lib/repull/models/reservation.rb +25 -1
  49. data/lib/repull/models/reservation_access_code.rb +301 -0
  50. data/lib/repull/models/reservation_access_code_locks_inner.rb +190 -0
  51. data/lib/repull/models/reservation_thread_assigned_event.rb +279 -0
  52. data/lib/repull/models/reservation_thread_assigned_payload.rb +174 -0
  53. data/lib/repull/models/reservation_thread_assigned_payload_object.rb +249 -0
  54. data/lib/repull/models/submit_ciirus_credentials200_response.rb +213 -0
  55. data/lib/repull/models/submit_ciirus_credentials200_response_account_info.rb +159 -0
  56. data/lib/repull/models/submit_ciirus_credentials_request.rb +184 -0
  57. data/lib/repull/models/submit_ciirus_credentials_request_credentials.rb +203 -0
  58. data/lib/repull/models/webhook_event.rb +8 -0
  59. data/lib/repull/models/webhook_event_type.rb +5 -1
  60. data/lib/repull/version.rb +1 -1
  61. data/lib/repull.rb +41 -0
  62. data/openapi/v1.json +1937 -32
  63. data/scripts/regen.sh +1 -1
  64. metadata +43 -4
  65. data/spec/api/plumguide_api_spec.rb +0 -85
@@ -0,0 +1,184 @@
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_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`, and `resetsAt` 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` | unlimited (10 included, then billed per listing) | | `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
+
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 SubmitCiirusCredentialsRequest < ApiModelBase
18
+ # Connect session id from `POST /v1/connect/ciirus`. Omit when calling with your API key.
19
+ attr_accessor :session_id
20
+
21
+ # Optional: what the app may change in CiiRUS, set before the first sync. Same shape as `PATCH /v1/connect/{provider}/write-policy`; switches you leave out keep the provider default (everything on).
22
+ attr_accessor :write_policy
23
+
24
+ attr_accessor :credentials
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'session_id' => :'sessionId',
30
+ :'write_policy' => :'writePolicy',
31
+ :'credentials' => :'credentials'
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
+ :'write_policy' => :'Object',
50
+ :'credentials' => :'SubmitCiirusCredentialsRequestCredentials'
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::SubmitCiirusCredentialsRequest` 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::SubmitCiirusCredentialsRequest`. 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
+ end
79
+
80
+ if attributes.key?(:'write_policy')
81
+ self.write_policy = attributes[:'write_policy']
82
+ end
83
+
84
+ if attributes.key?(:'credentials')
85
+ self.credentials = attributes[:'credentials']
86
+ else
87
+ self.credentials = nil
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ if @credentials.nil?
97
+ invalid_properties.push('invalid value for "credentials", credentials 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 @credentials.nil?
108
+ true
109
+ end
110
+
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] credentials Value to be assigned
113
+ def credentials=(credentials)
114
+ if credentials.nil?
115
+ fail ArgumentError, 'credentials cannot be nil'
116
+ end
117
+
118
+ @credentials = credentials
119
+ end
120
+
121
+ # Checks equality by comparing each attribute.
122
+ # @param [Object] Object to be compared
123
+ def ==(o)
124
+ return true if self.equal?(o)
125
+ self.class == o.class &&
126
+ session_id == o.session_id &&
127
+ write_policy == o.write_policy &&
128
+ credentials == o.credentials
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Integer] Hash code
139
+ def hash
140
+ [session_id, write_policy, credentials].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def self.build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ attributes = attributes.transform_keys(&:to_sym)
149
+ transformed_hash = {}
150
+ openapi_types.each_pair do |key, type|
151
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = nil
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[attribute_map[key]].is_a?(Array)
157
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
+ end
159
+ elsif !attributes[attribute_map[key]].nil?
160
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
+ end
162
+ end
163
+ new(transformed_hash)
164
+ end
165
+
166
+ # Returns the object in the form of hash
167
+ # @return [Hash] Returns the object in the form of hash
168
+ def to_hash
169
+ hash = {}
170
+ self.class.attribute_map.each_pair do |attr, param|
171
+ value = self.send(attr)
172
+ if value.nil?
173
+ is_nullable = self.class.openapi_nullable.include?(attr)
174
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
175
+ end
176
+
177
+ hash[param] = _to_hash(value)
178
+ end
179
+ hash
180
+ end
181
+
182
+ end
183
+
184
+ end
@@ -0,0 +1,203 @@
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_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`, and `resetsAt` 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` | unlimited (10 included, then billed per listing) | | `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
+
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
+ # The CiiRUS API username and password.
18
+ class SubmitCiirusCredentialsRequestCredentials < ApiModelBase
19
+ # CiiRUS API username, from the CiiRUS API Explorer or CiiRUS support.
20
+ attr_accessor :api_username
21
+
22
+ # CiiRUS API password.
23
+ attr_accessor :api_password
24
+
25
+ # The CiiRUS supplier (management company) id, the MCUserID. Only needed when the credentials see several suppliers.
26
+ attr_accessor :management_company_user_id
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'api_username' => :'apiUsername',
32
+ :'api_password' => :'apiPassword',
33
+ :'management_company_user_id' => :'managementCompanyUserId'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'api_username' => :'String',
51
+ :'api_password' => :'String',
52
+ :'management_company_user_id' => :'Integer'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::SubmitCiirusCredentialsRequestCredentials` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::SubmitCiirusCredentialsRequestCredentials`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'api_username')
79
+ self.api_username = attributes[:'api_username']
80
+ else
81
+ self.api_username = nil
82
+ end
83
+
84
+ if attributes.key?(:'api_password')
85
+ self.api_password = attributes[:'api_password']
86
+ else
87
+ self.api_password = nil
88
+ end
89
+
90
+ if attributes.key?(:'management_company_user_id')
91
+ self.management_company_user_id = attributes[:'management_company_user_id']
92
+ end
93
+ end
94
+
95
+ # Show invalid properties with the reasons. Usually used together with valid?
96
+ # @return Array for valid properties with the reasons
97
+ def list_invalid_properties
98
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
99
+ invalid_properties = Array.new
100
+ if @api_username.nil?
101
+ invalid_properties.push('invalid value for "api_username", api_username cannot be nil.')
102
+ end
103
+
104
+ if @api_password.nil?
105
+ invalid_properties.push('invalid value for "api_password", api_password cannot be nil.')
106
+ end
107
+
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ return false if @api_username.nil?
116
+ return false if @api_password.nil?
117
+ true
118
+ end
119
+
120
+ # Custom attribute writer method with validation
121
+ # @param [Object] api_username Value to be assigned
122
+ def api_username=(api_username)
123
+ if api_username.nil?
124
+ fail ArgumentError, 'api_username cannot be nil'
125
+ end
126
+
127
+ @api_username = api_username
128
+ end
129
+
130
+ # Custom attribute writer method with validation
131
+ # @param [Object] api_password Value to be assigned
132
+ def api_password=(api_password)
133
+ if api_password.nil?
134
+ fail ArgumentError, 'api_password cannot be nil'
135
+ end
136
+
137
+ @api_password = api_password
138
+ end
139
+
140
+ # Checks equality by comparing each attribute.
141
+ # @param [Object] Object to be compared
142
+ def ==(o)
143
+ return true if self.equal?(o)
144
+ self.class == o.class &&
145
+ api_username == o.api_username &&
146
+ api_password == o.api_password &&
147
+ management_company_user_id == o.management_company_user_id
148
+ end
149
+
150
+ # @see the `==` method
151
+ # @param [Object] Object to be compared
152
+ def eql?(o)
153
+ self == o
154
+ end
155
+
156
+ # Calculates hash code according to all attributes.
157
+ # @return [Integer] Hash code
158
+ def hash
159
+ [api_username, api_password, management_company_user_id].hash
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def self.build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ attributes = attributes.transform_keys(&:to_sym)
168
+ transformed_hash = {}
169
+ openapi_types.each_pair do |key, type|
170
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = nil
172
+ elsif type =~ /\AArray<(.*)>/i
173
+ # check to ensure the input is an array given that the attribute
174
+ # is documented as an array but the input is not
175
+ if attributes[attribute_map[key]].is_a?(Array)
176
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
177
+ end
178
+ elsif !attributes[attribute_map[key]].nil?
179
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
180
+ end
181
+ end
182
+ new(transformed_hash)
183
+ end
184
+
185
+ # Returns the object in the form of hash
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_hash
188
+ hash = {}
189
+ self.class.attribute_map.each_pair do |attr, param|
190
+ value = self.send(attr)
191
+ if value.nil?
192
+ is_nullable = self.class.openapi_nullable.include?(attr)
193
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
+ end
195
+
196
+ hash[param] = _to_hash(value)
197
+ end
198
+ hash
199
+ end
200
+
201
+ end
202
+
203
+ end
@@ -27,6 +27,9 @@ module Repull
27
27
  :'AccountImportStartedEvent',
28
28
  :'AiOperationCompletedEvent',
29
29
  :'AiOperationFailedEvent',
30
+ :'BookingUnacknowledgedEvent',
31
+ :'ChannelDegradedEvent',
32
+ :'ChannelSyncFailedEvent',
30
33
  :'ConnectSessionCompletedEvent',
31
34
  :'InquiryCreatedEvent',
32
35
  :'InquiryUpdatedEvent',
@@ -50,6 +53,7 @@ module Repull
50
53
  :'ReservationMessageUpdatedEvent',
51
54
  :'ReservationRequestCreatedEvent',
52
55
  :'ReservationRequestUpdatedEvent',
56
+ :'ReservationThreadAssignedEvent',
53
57
  :'ReservationUpdatedEvent',
54
58
  :'ReviewCreatedEvent',
55
59
  :'ReviewRespondedEvent',
@@ -72,6 +76,9 @@ module Repull
72
76
  :'account.import.started' => :'AccountImportStartedEvent',
73
77
  :'ai.operation.completed' => :'AiOperationCompletedEvent',
74
78
  :'ai.operation.failed' => :'AiOperationFailedEvent',
79
+ :'booking.unacknowledged' => :'BookingUnacknowledgedEvent',
80
+ :'channel.degraded' => :'ChannelDegradedEvent',
81
+ :'channel.sync.failed' => :'ChannelSyncFailedEvent',
75
82
  :'connect.session.completed' => :'ConnectSessionCompletedEvent',
76
83
  :'inquiry.created' => :'InquiryCreatedEvent',
77
84
  :'inquiry.updated' => :'InquiryUpdatedEvent',
@@ -95,6 +102,7 @@ module Repull
95
102
  :'reservation.message.updated' => :'ReservationMessageUpdatedEvent',
96
103
  :'reservation.request.created' => :'ReservationRequestCreatedEvent',
97
104
  :'reservation.request.updated' => :'ReservationRequestUpdatedEvent',
105
+ :'reservation.thread.assigned' => :'ReservationThreadAssignedEvent',
98
106
  :'reservation.updated' => :'ReservationUpdatedEvent',
99
107
  :'review.created' => :'ReviewCreatedEvent',
100
108
  :'review.responded' => :'ReviewRespondedEvent',
@@ -25,6 +25,10 @@ module Repull
25
25
  RESERVATION_ALTERATION_RESPONDED = "reservation.alteration.responded".freeze
26
26
  RESERVATION_REQUEST_CREATED = "reservation.request.created".freeze
27
27
  RESERVATION_REQUEST_UPDATED = "reservation.request.updated".freeze
28
+ BOOKING_UNACKNOWLEDGED = "booking.unacknowledged".freeze
29
+ CHANNEL_SYNC_FAILED = "channel.sync.failed".freeze
30
+ CHANNEL_DEGRADED = "channel.degraded".freeze
31
+ RESERVATION_THREAD_ASSIGNED = "reservation.thread.assigned".freeze
28
32
  INQUIRY_CREATED = "inquiry.created".freeze
29
33
  INQUIRY_UPDATED = "inquiry.updated".freeze
30
34
  LISTING_CREATED = "listing.created".freeze
@@ -51,7 +55,7 @@ module Repull
51
55
  USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
52
56
 
53
57
  def self.all_vars
54
- @all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, REVIEW_CREATED, REVIEW_RESPONDED, AI_OPERATION_COMPLETED, AI_OPERATION_FAILED, PAYMENT_COMPLETED, PAYMENT_REFUNDED, PAYOUT_COMPLETED, MIGRATION_COMPLETED, MIGRATION_FAILED, REPULL_PING, USAGE_QUOTA_WARNING].freeze
58
+ @all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, BOOKING_UNACKNOWLEDGED, CHANNEL_SYNC_FAILED, CHANNEL_DEGRADED, RESERVATION_THREAD_ASSIGNED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, REVIEW_CREATED, REVIEW_RESPONDED, AI_OPERATION_COMPLETED, AI_OPERATION_FAILED, PAYMENT_COMPLETED, PAYMENT_REFUNDED, PAYOUT_COMPLETED, MIGRATION_COMPLETED, MIGRATION_FAILED, REPULL_PING, USAGE_QUOTA_WARNING].freeze
55
59
  end
56
60
 
57
61
  # Builds the enum from string
@@ -11,5 +11,5 @@ Generator version: 7.22.0
11
11
  =end
12
12
 
13
13
  module Repull
14
- VERSION = '0.2.35'
14
+ VERSION = '0.2.37'
15
15
  end
data/lib/repull.rb CHANGED
@@ -24,6 +24,7 @@ require 'repull/models/account_created_event'
24
24
  require 'repull/models/account_created_payload'
25
25
  require 'repull/models/account_disconnected_event'
26
26
  require 'repull/models/account_disconnected_payload'
27
+ require 'repull/models/account_disconnected_payload_listings_inner'
27
28
  require 'repull/models/account_import'
28
29
  require 'repull/models/account_import_completed_event'
29
30
  require 'repull/models/account_import_counts'
@@ -143,6 +144,8 @@ require 'repull/models/booking_rooms_rates_response_rooms_inner'
143
144
  require 'repull/models/booking_rooms_rates_response_rooms_inner_rates_inner'
144
145
  require 'repull/models/booking_setup_request'
145
146
  require 'repull/models/booking_setup_request_legal_entity'
147
+ require 'repull/models/booking_unacknowledged_event'
148
+ require 'repull/models/booking_unacknowledged_payload'
146
149
  require 'repull/models/booking_upstream_failure'
147
150
  require 'repull/models/booking_verify_hotel_request'
148
151
  require 'repull/models/booking_verify_hotel_response'
@@ -154,7 +157,15 @@ require 'repull/models/calendar_day'
154
157
  require 'repull/models/calendar_response'
155
158
  require 'repull/models/cancel_reservation200_response'
156
159
  require 'repull/models/cancel_reservation_request'
160
+ require 'repull/models/channel_degraded_event'
161
+ require 'repull/models/channel_degraded_payload'
162
+ require 'repull/models/channel_degraded_payload_object'
157
163
  require 'repull/models/channel_market_state_item'
164
+ require 'repull/models/channel_sync_failed_event'
165
+ require 'repull/models/channel_sync_failure_payload'
166
+ require 'repull/models/channel_sync_failure_payload_failures_inner'
167
+ require 'repull/models/channel_sync_failure_payload_object'
168
+ require 'repull/models/charge_per'
158
169
  require 'repull/models/check_migration_cutover200_response'
159
170
  require 'repull/models/check_migration_cutover_request'
160
171
  require 'repull/models/check_migration_cutover_request_reservations_inner'
@@ -285,12 +296,21 @@ require 'repull/models/guest_update_request'
285
296
  require 'repull/models/guest_update_response'
286
297
  require 'repull/models/guest_update_response_contacts_inner'
287
298
  require 'repull/models/guest_update_response_pms_inner'
299
+ require 'repull/models/import_from_channex200_response'
300
+ require 'repull/models/import_from_channex200_response_data'
301
+ require 'repull/models/import_from_channex200_response_data_channels_inner'
302
+ require 'repull/models/import_from_channex200_response_data_properties_inner'
303
+ require 'repull/models/import_from_channex200_response_data_summary'
304
+ require 'repull/models/import_from_channex200_response_data_summary_bookings'
305
+ require 'repull/models/import_from_channex200_response_data_summary_properties'
306
+ require 'repull/models/import_from_channex_request'
288
307
  require 'repull/models/inquiry_created_event'
289
308
  require 'repull/models/inquiry_created_payload'
290
309
  require 'repull/models/inquiry_updated_event'
291
310
  require 'repull/models/inquiry_updated_payload'
292
311
  require 'repull/models/inquiry_webhook_object'
293
312
  require 'repull/models/inquiry_webhook_object_expected_payout'
313
+ require 'repull/models/inquiry_webhook_object_guest'
294
314
  require 'repull/models/inquiry_webhook_object_guests'
295
315
  require 'repull/models/invite_booking_extranet_user200_response'
296
316
  require 'repull/models/invite_booking_extranet_user_request'
@@ -315,6 +335,7 @@ require 'repull/models/list_hotels200_response_data_inner'
315
335
  require 'repull/models/list_inquiries200_response'
316
336
  require 'repull/models/list_inquiries200_response_data_inner'
317
337
  require 'repull/models/list_inquiries200_response_data_inner_expected_payout'
338
+ require 'repull/models/list_inquiries200_response_data_inner_guest'
318
339
  require 'repull/models/list_inquiries200_response_data_inner_guests'
319
340
  require 'repull/models/list_kv200_response'
320
341
  require 'repull/models/list_kv200_response_data_inner'
@@ -336,6 +357,7 @@ require 'repull/models/listing_comp_nightly'
336
357
  require 'repull/models/listing_comp_ratings'
337
358
  require 'repull/models/listing_comps_response'
338
359
  require 'repull/models/listing_content'
360
+ require 'repull/models/listing_content_photo'
339
361
  require 'repull/models/listing_content_update_request'
340
362
  require 'repull/models/listing_content_update_request_address'
341
363
  require 'repull/models/listing_content_update_request_amenities'
@@ -360,6 +382,7 @@ require 'repull/models/listing_created_payload_address'
360
382
  require 'repull/models/listing_deleted_event'
361
383
  require 'repull/models/listing_deleted_payload'
362
384
  require 'repull/models/listing_details'
385
+ require 'repull/models/listing_fee'
363
386
  require 'repull/models/listing_generate_content_request'
364
387
  require 'repull/models/listing_generate_content_response'
365
388
  require 'repull/models/listing_hotel'
@@ -372,6 +395,10 @@ require 'repull/models/listing_photo_delete_response'
372
395
  require 'repull/models/listing_photo_upload_url_request'
373
396
  require 'repull/models/listing_photo_upload_url_response'
374
397
  require 'repull/models/listing_photos_response'
398
+ require 'repull/models/listing_policies'
399
+ require 'repull/models/listing_policies_check_in'
400
+ require 'repull/models/listing_policies_check_out'
401
+ require 'repull/models/listing_policies_quiet_hours'
375
402
  require 'repull/models/listing_pricing_apply_request'
376
403
  require 'repull/models/listing_pricing_apply_response'
377
404
  require 'repull/models/listing_pricing_history_entry'
@@ -381,6 +408,7 @@ require 'repull/models/listing_pricing_response'
381
408
  require 'repull/models/listing_pricing_response_comp_summary'
382
409
  require 'repull/models/listing_pricing_response_date_range'
383
410
  require 'repull/models/listing_pricing_response_listing'
411
+ require 'repull/models/listing_pricing_settings'
384
412
  require 'repull/models/listing_pricing_strategy'
385
413
  require 'repull/models/listing_pricing_strategy_input'
386
414
  require 'repull/models/listing_publish_airbnb_request'
@@ -394,6 +422,9 @@ require 'repull/models/listing_pull_airbnb_request'
394
422
  require 'repull/models/listing_pull_response'
395
423
  require 'repull/models/listing_quality_tier'
396
424
  require 'repull/models/listing_reactivated_event'
425
+ require 'repull/models/listing_room'
426
+ require 'repull/models/listing_room_beds_inner'
427
+ require 'repull/models/listing_rules'
397
428
  require 'repull/models/listing_segment'
398
429
  require 'repull/models/listing_segment_recommendation'
399
430
  require 'repull/models/listing_segments_response'
@@ -402,6 +433,7 @@ require 'repull/models/listing_status_batch_request'
402
433
  require 'repull/models/listing_status_batch_response'
403
434
  require 'repull/models/listing_suspended_event'
404
435
  require 'repull/models/listing_suspension_payload'
436
+ require 'repull/models/listing_tax'
405
437
  require 'repull/models/listing_units_inner'
406
438
  require 'repull/models/listing_updated_event'
407
439
  require 'repull/models/listing_updated_payload'
@@ -538,6 +570,8 @@ require 'repull/models/reply_to_review_request'
538
570
  require 'repull/models/repull_ping_event'
539
571
  require 'repull/models/repull_ping_payload'
540
572
  require 'repull/models/reservation'
573
+ require 'repull/models/reservation_access_code'
574
+ require 'repull/models/reservation_access_code_locks_inner'
541
575
  require 'repull/models/reservation_alteration_created_event'
542
576
  require 'repull/models/reservation_alteration_created_payload'
543
577
  require 'repull/models/reservation_alteration_responded_event'
@@ -577,6 +611,9 @@ require 'repull/models/reservation_request_created_event'
577
611
  require 'repull/models/reservation_request_created_payload'
578
612
  require 'repull/models/reservation_request_updated_event'
579
613
  require 'repull/models/reservation_request_updated_payload'
614
+ require 'repull/models/reservation_thread_assigned_event'
615
+ require 'repull/models/reservation_thread_assigned_payload'
616
+ require 'repull/models/reservation_thread_assigned_payload_object'
580
617
  require 'repull/models/reservation_unit'
581
618
  require 'repull/models/reservation_update_request'
582
619
  require 'repull/models/reservation_update_response'
@@ -624,6 +661,10 @@ require 'repull/models/start_booking_extranet_login_request'
624
661
  require 'repull/models/submit_beds24_credentials200_response'
625
662
  require 'repull/models/submit_beds24_credentials_request'
626
663
  require 'repull/models/submit_bookingsync_credentials_request'
664
+ require 'repull/models/submit_ciirus_credentials200_response'
665
+ require 'repull/models/submit_ciirus_credentials200_response_account_info'
666
+ require 'repull/models/submit_ciirus_credentials_request'
667
+ require 'repull/models/submit_ciirus_credentials_request_credentials'
627
668
  require 'repull/models/submit_cloudbeds_credentials200_response'
628
669
  require 'repull/models/submit_cloudbeds_credentials200_response_account_info'
629
670
  require 'repull/models/submit_cloudbeds_credentials200_response_webhooks'