repull 0.2.31 → 0.2.33

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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/repull/api/booking_com_api.rb +80 -0
  4. data/lib/repull/api/connections_api.rb +77 -0
  5. data/lib/repull/api/resolutions_api.rb +236 -0
  6. data/lib/repull/api/transactions_api.rb +182 -0
  7. data/lib/repull/models/account_import.rb +237 -0
  8. data/lib/repull/models/account_import_completed_event.rb +282 -0
  9. data/lib/repull/models/account_import_counts.rb +193 -0
  10. data/lib/repull/models/account_import_failed_event.rb +282 -0
  11. data/lib/repull/models/account_import_finished_payload.rb +224 -0
  12. data/lib/repull/models/account_import_stage.rb +177 -0
  13. data/lib/repull/models/account_import_started_event.rb +282 -0
  14. data/lib/repull/models/account_import_started_payload.rb +177 -0
  15. data/lib/repull/models/connection.rb +16 -5
  16. data/lib/repull/models/list_airbnb_resolutions200_response.rb +192 -0
  17. data/lib/repull/models/list_booking_transactions200_response.rb +158 -0
  18. data/lib/repull/models/list_connection_imports200_response.rb +158 -0
  19. data/lib/repull/models/refresh_airbnb_resolutions200_response.rb +219 -0
  20. data/lib/repull/models/refresh_airbnb_resolutions200_response_accounts_inner.rb +200 -0
  21. data/lib/repull/models/refresh_airbnb_resolutions200_response_accounts_inner_error.rb +156 -0
  22. data/lib/repull/models/refresh_airbnb_resolutions_request.rb +192 -0
  23. data/lib/repull/models/reservation.rb +45 -1
  24. data/lib/repull/models/reservation_webhook_object.rb +49 -5
  25. data/lib/repull/models/resolution.rb +329 -0
  26. data/lib/repull/models/transaction.rb +349 -0
  27. data/lib/repull/models/transaction_fees.rb +176 -0
  28. data/lib/repull/models/transaction_payout.rb +209 -0
  29. data/lib/repull/models/webhook_event.rb +6 -0
  30. data/lib/repull/models/webhook_event_type.rb +4 -1
  31. data/lib/repull/version.rb +1 -1
  32. data/lib/repull.rb +21 -0
  33. data/openapi/v1.json +1295 -153
  34. data/scripts/regen.sh +1 -1
  35. metadata +23 -2
@@ -0,0 +1,176 @@
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 TransactionFees < ApiModelBase
18
+ # Channel commission deducted.
19
+ attr_accessor :commission
20
+
21
+ # Payments service fee deducted.
22
+ attr_accessor :service_fee
23
+
24
+ attr_accessor :processing_fee
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'commission' => :'commission',
30
+ :'service_fee' => :'serviceFee',
31
+ :'processing_fee' => :'processingFee'
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
+ :'commission' => :'Float',
49
+ :'service_fee' => :'Float',
50
+ :'processing_fee' => :'Float'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ :'commission',
58
+ :'service_fee',
59
+ :'processing_fee'
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::TransactionFees` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!acceptable_attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::TransactionFees`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'commission')
80
+ self.commission = attributes[:'commission']
81
+ else
82
+ self.commission = nil
83
+ end
84
+
85
+ if attributes.key?(:'service_fee')
86
+ self.service_fee = attributes[:'service_fee']
87
+ else
88
+ self.service_fee = nil
89
+ end
90
+
91
+ if attributes.key?(:'processing_fee')
92
+ self.processing_fee = attributes[:'processing_fee']
93
+ else
94
+ self.processing_fee = nil
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
102
+ invalid_properties = Array.new
103
+ invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ warn '[DEPRECATED] the `valid?` method is obsolete'
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ commission == o.commission &&
119
+ service_fee == o.service_fee &&
120
+ processing_fee == o.processing_fee
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [commission, service_fee, processing_fee].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ attributes = attributes.transform_keys(&:to_sym)
141
+ transformed_hash = {}
142
+ openapi_types.each_pair do |key, type|
143
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = nil
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[attribute_map[key]].is_a?(Array)
149
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
+ end
151
+ elsif !attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
+ end
154
+ end
155
+ new(transformed_hash)
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ if value.nil?
165
+ is_nullable = self.class.openapi_nullable.include?(attr)
166
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
167
+ end
168
+
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ end
175
+
176
+ end
@@ -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_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 TransactionPayout < ApiModelBase
18
+ # Reference of the payout this row belongs to.
19
+ attr_accessor :payout_id
20
+
21
+ attr_accessor :payout_date
22
+
23
+ # On a payout row: the net paid out to the host.
24
+ attr_accessor :paid_out_amount
25
+
26
+ # Masked destination bank account the payout was sent to (Booking.com payouts, from the statement PDF). Null on channels/rows without one.
27
+ attr_accessor :bank_destination
28
+
29
+ # Repull-hosted download link for the original payout statement PDF (the authoritative settlement record). Add `?format=csv` for the CSV. Served by `GET /v1/transactions/{id}/statement` — no channel session needed. Null when none is stored.
30
+ attr_accessor :statement_url
31
+
32
+ # The channel's own numeric statement id (Booking.com, e.g. \"010747030095\"). Null when none.
33
+ attr_accessor :statement_id
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'payout_id' => :'payoutId',
39
+ :'payout_date' => :'payoutDate',
40
+ :'paid_out_amount' => :'paidOutAmount',
41
+ :'bank_destination' => :'bankDestination',
42
+ :'statement_url' => :'statementUrl',
43
+ :'statement_id' => :'statementId'
44
+ }
45
+ end
46
+
47
+ # Returns attribute mapping this model knows about
48
+ def self.acceptable_attribute_map
49
+ attribute_map
50
+ end
51
+
52
+ # Returns all the JSON keys this model knows about
53
+ def self.acceptable_attributes
54
+ acceptable_attribute_map.values
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.openapi_types
59
+ {
60
+ :'payout_id' => :'String',
61
+ :'payout_date' => :'String',
62
+ :'paid_out_amount' => :'Float',
63
+ :'bank_destination' => :'String',
64
+ :'statement_url' => :'String',
65
+ :'statement_id' => :'String'
66
+ }
67
+ end
68
+
69
+ # List of attributes with nullable: true
70
+ def self.openapi_nullable
71
+ Set.new([
72
+ :'payout_id',
73
+ :'payout_date',
74
+ :'paid_out_amount',
75
+ :'bank_destination',
76
+ :'statement_url',
77
+ :'statement_id'
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::TransactionPayout` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ acceptable_attribute_map = self.class.acceptable_attribute_map
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!acceptable_attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::TransactionPayout`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
93
+ end
94
+ h[k.to_sym] = v
95
+ }
96
+
97
+ if attributes.key?(:'payout_id')
98
+ self.payout_id = attributes[:'payout_id']
99
+ else
100
+ self.payout_id = nil
101
+ end
102
+
103
+ if attributes.key?(:'payout_date')
104
+ self.payout_date = attributes[:'payout_date']
105
+ else
106
+ self.payout_date = nil
107
+ end
108
+
109
+ if attributes.key?(:'paid_out_amount')
110
+ self.paid_out_amount = attributes[:'paid_out_amount']
111
+ else
112
+ self.paid_out_amount = nil
113
+ end
114
+
115
+ if attributes.key?(:'bank_destination')
116
+ self.bank_destination = attributes[:'bank_destination']
117
+ end
118
+
119
+ if attributes.key?(:'statement_url')
120
+ self.statement_url = attributes[:'statement_url']
121
+ end
122
+
123
+ if attributes.key?(:'statement_id')
124
+ self.statement_id = attributes[:'statement_id']
125
+ end
126
+ end
127
+
128
+ # Show invalid properties with the reasons. Usually used together with valid?
129
+ # @return Array for valid properties with the reasons
130
+ def list_invalid_properties
131
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
132
+ invalid_properties = Array.new
133
+ invalid_properties
134
+ end
135
+
136
+ # Check to see if the all the properties in the model are valid
137
+ # @return true if the model is valid
138
+ def valid?
139
+ warn '[DEPRECATED] the `valid?` method is obsolete'
140
+ true
141
+ end
142
+
143
+ # Checks equality by comparing each attribute.
144
+ # @param [Object] Object to be compared
145
+ def ==(o)
146
+ return true if self.equal?(o)
147
+ self.class == o.class &&
148
+ payout_id == o.payout_id &&
149
+ payout_date == o.payout_date &&
150
+ paid_out_amount == o.paid_out_amount &&
151
+ bank_destination == o.bank_destination &&
152
+ statement_url == o.statement_url &&
153
+ statement_id == o.statement_id
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
+ [payout_id, payout_date, paid_out_amount, bank_destination, statement_url, statement_id].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
@@ -22,6 +22,9 @@ module Repull
22
22
  [
23
23
  :'AccountCreatedEvent',
24
24
  :'AccountDisconnectedEvent',
25
+ :'AccountImportCompletedEvent',
26
+ :'AccountImportFailedEvent',
27
+ :'AccountImportStartedEvent',
25
28
  :'AiOperationCompletedEvent',
26
29
  :'AiOperationFailedEvent',
27
30
  :'CalendarUpdatedEvent',
@@ -65,6 +68,9 @@ module Repull
65
68
  {
66
69
  :'account.created' => :'AccountCreatedEvent',
67
70
  :'account.disconnected' => :'AccountDisconnectedEvent',
71
+ :'account.import.completed' => :'AccountImportCompletedEvent',
72
+ :'account.import.failed' => :'AccountImportFailedEvent',
73
+ :'account.import.started' => :'AccountImportStartedEvent',
68
74
  :'ai.operation.completed' => :'AiOperationCompletedEvent',
69
75
  :'ai.operation.failed' => :'AiOperationFailedEvent',
70
76
  :'calendar.updated' => :'CalendarUpdatedEvent',
@@ -36,6 +36,9 @@ module Repull
36
36
  ACCOUNT_CREATED = "account.created".freeze
37
37
  CONNECT_SESSION_COMPLETED = "connect.session.completed".freeze
38
38
  ACCOUNT_DISCONNECTED = "account.disconnected".freeze
39
+ ACCOUNT_IMPORT_STARTED = "account.import.started".freeze
40
+ ACCOUNT_IMPORT_COMPLETED = "account.import.completed".freeze
41
+ ACCOUNT_IMPORT_FAILED = "account.import.failed".freeze
39
42
  REVIEW_CREATED = "review.created".freeze
40
43
  REVIEW_RESPONDED = "review.responded".freeze
41
44
  AI_OPERATION_COMPLETED = "ai.operation.completed".freeze
@@ -49,7 +52,7 @@ module Repull
49
52
  USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
50
53
 
51
54
  def self.all_vars
52
- @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, CALENDAR_UPDATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, ACCOUNT_DISCONNECTED, 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
+ @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, CALENDAR_UPDATED, 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
53
56
  end
54
57
 
55
58
  # 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.31'
14
+ VERSION = '0.2.33'
15
15
  end
data/lib/repull.rb CHANGED
@@ -24,6 +24,14 @@ 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_import'
28
+ require 'repull/models/account_import_completed_event'
29
+ require 'repull/models/account_import_counts'
30
+ require 'repull/models/account_import_failed_event'
31
+ require 'repull/models/account_import_finished_payload'
32
+ require 'repull/models/account_import_stage'
33
+ require 'repull/models/account_import_started_event'
34
+ require 'repull/models/account_import_started_payload'
27
35
  require 'repull/models/acknowledge_booking_reservations_request'
28
36
  require 'repull/models/ai_operation_completed_event'
29
37
  require 'repull/models/ai_operation_completed_payload'
@@ -294,11 +302,14 @@ require 'repull/models/list_airbnb_listing_amenities200_response'
294
302
  require 'repull/models/list_airbnb_listing_amenities200_response_data'
295
303
  require 'repull/models/list_airbnb_listing_permits200_response'
296
304
  require 'repull/models/list_airbnb_listing_safety_disclosures200_response'
305
+ require 'repull/models/list_airbnb_resolutions200_response'
297
306
  require 'repull/models/list_airbnb_thread_messages200_response'
298
307
  require 'repull/models/list_airbnb_thread_messages200_response_data_inner'
299
308
  require 'repull/models/list_airbnb_thread_messages200_response_pagination'
300
309
  require 'repull/models/list_airbnb_transactions200_response'
301
310
  require 'repull/models/list_booking_reservations200_response'
311
+ require 'repull/models/list_booking_transactions200_response'
312
+ require 'repull/models/list_connection_imports200_response'
302
313
  require 'repull/models/list_connection_units200_response'
303
314
  require 'repull/models/list_connection_units200_response_listing_options_inner'
304
315
  require 'repull/models/list_connection_units200_response_units_inner'
@@ -486,6 +497,10 @@ require 'repull/models/quote_pricing'
486
497
  require 'repull/models/recheck_booking_extranet_login200_response'
487
498
  require 'repull/models/recheck_booking_extranet_login_request'
488
499
  require 'repull/models/record_account'
500
+ require 'repull/models/refresh_airbnb_resolutions200_response'
501
+ require 'repull/models/refresh_airbnb_resolutions200_response_accounts_inner'
502
+ require 'repull/models/refresh_airbnb_resolutions200_response_accounts_inner_error'
503
+ require 'repull/models/refresh_airbnb_resolutions_request'
489
504
  require 'repull/models/reorder_airbnb_listing_photos200_response'
490
505
  require 'repull/models/reorder_airbnb_listing_photos200_response_data'
491
506
  require 'repull/models/reorder_airbnb_listing_photos_request'
@@ -542,6 +557,7 @@ require 'repull/models/reservation_update_response'
542
557
  require 'repull/models/reservation_updated_event'
543
558
  require 'repull/models/reservation_updated_payload'
544
559
  require 'repull/models/reservation_webhook_object'
560
+ require 'repull/models/resolution'
545
561
  require 'repull/models/respond_airbnb_review_request'
546
562
  require 'repull/models/resume_connect400_response'
547
563
  require 'repull/models/resume_connect500_response'
@@ -611,6 +627,9 @@ require 'repull/models/sync_airbnb_transactions200_response_accounts_inner'
611
627
  require 'repull/models/sync_airbnb_transactions200_response_accounts_inner_error'
612
628
  require 'repull/models/sync_airbnb_transactions_request'
613
629
  require 'repull/models/test_webhook_request'
630
+ require 'repull/models/transaction'
631
+ require 'repull/models/transaction_fees'
632
+ require 'repull/models/transaction_payout'
614
633
  require 'repull/models/update_airbnb_booking_settings200_response'
615
634
  require 'repull/models/update_airbnb_booking_settings200_response_data'
616
635
  require 'repull/models/update_airbnb_booking_settings_request'
@@ -699,9 +718,11 @@ require 'repull/api/pricing_api'
699
718
  require 'repull/api/properties_api'
700
719
  require 'repull/api/quotes_api'
701
720
  require 'repull/api/reservations_api'
721
+ require 'repull/api/resolutions_api'
702
722
  require 'repull/api/reviews_api'
703
723
  require 'repull/api/schema_api'
704
724
  require 'repull/api/system_api'
725
+ require 'repull/api/transactions_api'
705
726
  require 'repull/api/vrbo_api'
706
727
  require 'repull/api/webhooks_api'
707
728
  require 'repull/api/workspaces_api'