repull 0.2.57 → 0.2.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repull/api/connect_api.rb +137 -6
- data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
- data/lib/repull/models/account_created_event.rb +11 -1
- data/lib/repull/models/account_disconnected_event.rb +11 -1
- data/lib/repull/models/account_import_completed_event.rb +11 -1
- data/lib/repull/models/account_import_failed_event.rb +11 -1
- data/lib/repull/models/account_import_started_event.rb +11 -1
- data/lib/repull/models/account_notifications_missing_event.rb +11 -1
- data/lib/repull/models/account_units_added_event.rb +11 -1
- data/lib/repull/models/ai_operation_completed_event.rb +11 -1
- data/lib/repull/models/ai_operation_failed_event.rb +11 -1
- data/lib/repull/models/app_connection_health.rb +301 -0
- data/lib/repull/models/app_connection_health_recent_errors_inner.rb +184 -0
- data/lib/repull/models/app_connection_health_writes_per_day_inner.rb +156 -0
- data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
- data/lib/repull/models/channel_degraded_event.rb +11 -1
- data/lib/repull/models/channel_sync_failed_event.rb +11 -1
- data/lib/repull/models/connect_provider.rb +2 -2
- data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
- data/lib/repull/models/connect_session_completed_event.rb +11 -1
- data/lib/repull/models/connect_status.rb +1 -1
- data/lib/repull/models/connection.rb +81 -5
- data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
- data/lib/repull/models/create_connection_request.rb +10 -1
- data/lib/repull/models/create_connection_request_workspace.rb +203 -0
- data/lib/repull/models/create_price_labs_key201_response.rb +399 -0
- data/lib/repull/models/create_price_labs_key201_response_all_of_instructions.rb +159 -0
- data/lib/repull/models/create_price_labs_key_request.rb +207 -0
- data/lib/repull/models/get_price_labs_session_status200_response.rb +192 -0
- data/lib/repull/models/inquiry_created_event.rb +11 -1
- data/lib/repull/models/inquiry_updated_event.rb +11 -1
- data/lib/repull/models/listing_created_event.rb +11 -1
- data/lib/repull/models/listing_deleted_event.rb +11 -1
- data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
- data/lib/repull/models/listing_reactivated_event.rb +11 -1
- data/lib/repull/models/listing_suspended_event.rb +11 -1
- data/lib/repull/models/listing_updated_event.rb +11 -1
- data/lib/repull/models/migration_completed_event.rb +1 -1
- data/lib/repull/models/migration_failed_event.rb +1 -1
- data/lib/repull/models/payment_completed_event.rb +11 -1
- data/lib/repull/models/payment_refunded_event.rb +11 -1
- data/lib/repull/models/payout_completed_event.rb +11 -1
- data/lib/repull/models/repull_ping_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
- data/lib/repull/models/reservation_cancelled_event.rb +11 -1
- data/lib/repull/models/reservation_created_event.rb +11 -1
- data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
- data/lib/repull/models/reservation_message_read_event.rb +11 -1
- data/lib/repull/models/reservation_message_received_event.rb +11 -1
- data/lib/repull/models/reservation_message_sent_event.rb +11 -1
- data/lib/repull/models/reservation_message_updated_event.rb +11 -1
- data/lib/repull/models/reservation_request_created_event.rb +11 -1
- data/lib/repull/models/reservation_request_updated_event.rb +11 -1
- data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
- data/lib/repull/models/reservation_updated_event.rb +11 -1
- data/lib/repull/models/review_created_event.rb +11 -1
- data/lib/repull/models/review_responded_event.rb +11 -1
- data/lib/repull/models/usage_quota_warning_event.rb +11 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +8 -0
- data/openapi/v1.json +576 -8
- metadata +10 -2
|
@@ -29,6 +29,9 @@ module Repull
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :account
|
|
31
31
|
|
|
32
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
33
|
+
attr_accessor :workspace_id
|
|
34
|
+
|
|
32
35
|
attr_accessor :data
|
|
33
36
|
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -39,6 +42,7 @@ module Repull
|
|
|
39
42
|
:'api_version' => :'apiVersion',
|
|
40
43
|
:'timestamp' => :'timestamp',
|
|
41
44
|
:'account' => :'account',
|
|
45
|
+
:'workspace_id' => :'workspaceId',
|
|
42
46
|
:'data' => :'data'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
@@ -61,6 +65,7 @@ module Repull
|
|
|
61
65
|
:'api_version' => :'String',
|
|
62
66
|
:'timestamp' => :'Time',
|
|
63
67
|
:'account' => :'WebhookEventAccount',
|
|
68
|
+
:'workspace_id' => :'Integer',
|
|
64
69
|
:'data' => :'AccountUnitsAddedPayload'
|
|
65
70
|
}
|
|
66
71
|
end
|
|
@@ -116,6 +121,10 @@ module Repull
|
|
|
116
121
|
self.account = attributes[:'account']
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
if attributes.key?(:'workspace_id')
|
|
125
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
126
|
+
end
|
|
127
|
+
|
|
119
128
|
if attributes.key?(:'data')
|
|
120
129
|
self.data = attributes[:'data']
|
|
121
130
|
else
|
|
@@ -223,6 +232,7 @@ module Repull
|
|
|
223
232
|
api_version == o.api_version &&
|
|
224
233
|
timestamp == o.timestamp &&
|
|
225
234
|
account == o.account &&
|
|
235
|
+
workspace_id == o.workspace_id &&
|
|
226
236
|
data == o.data
|
|
227
237
|
end
|
|
228
238
|
|
|
@@ -235,7 +245,7 @@ module Repull
|
|
|
235
245
|
# Calculates hash code according to all attributes.
|
|
236
246
|
# @return [Integer] Hash code
|
|
237
247
|
def hash
|
|
238
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
248
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
239
249
|
end
|
|
240
250
|
|
|
241
251
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'AiOperationCompletedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'AiOperationFailedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
# How an app (PriceLabs) is doing on one connection, from its calls with the key.
|
|
18
|
+
class AppConnectionHealth < ApiModelBase
|
|
19
|
+
# `active`: a successful price or minimum-stay push in the last 24 hours. `idle`: the app connected before but has not pushed in the last 24 hours. `failing`: more than 25% of the last 24 hours' requests failed (at least 5 requests); read `recentErrors`. `never_connected`: the app has not used the key yet.
|
|
20
|
+
attr_accessor :status
|
|
21
|
+
|
|
22
|
+
# The app's last request with the key, of any kind.
|
|
23
|
+
attr_accessor :last_request_at
|
|
24
|
+
|
|
25
|
+
# The app's last successful price or minimum-stay push.
|
|
26
|
+
attr_accessor :last_successful_write_at
|
|
27
|
+
|
|
28
|
+
# Successful price and minimum-stay pushes per UTC day, the last 7 days, oldest first.
|
|
29
|
+
attr_accessor :writes_per_day
|
|
30
|
+
|
|
31
|
+
attr_accessor :requests24h
|
|
32
|
+
|
|
33
|
+
attr_accessor :errors24h
|
|
34
|
+
|
|
35
|
+
# `errors24h / requests24h`; 0 when there were no requests.
|
|
36
|
+
attr_accessor :error_rate24h
|
|
37
|
+
|
|
38
|
+
attr_accessor :requests7d
|
|
39
|
+
|
|
40
|
+
attr_accessor :errors7d
|
|
41
|
+
|
|
42
|
+
attr_accessor :error_rate7d
|
|
43
|
+
|
|
44
|
+
# The 10 most recent failed requests, newest first.
|
|
45
|
+
attr_accessor :recent_errors
|
|
46
|
+
|
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
|
+
def self.attribute_map
|
|
49
|
+
{
|
|
50
|
+
:'status' => :'status',
|
|
51
|
+
:'last_request_at' => :'lastRequestAt',
|
|
52
|
+
:'last_successful_write_at' => :'lastSuccessfulWriteAt',
|
|
53
|
+
:'writes_per_day' => :'writesPerDay',
|
|
54
|
+
:'requests24h' => :'requests24h',
|
|
55
|
+
:'errors24h' => :'errors24h',
|
|
56
|
+
:'error_rate24h' => :'errorRate24h',
|
|
57
|
+
:'requests7d' => :'requests7d',
|
|
58
|
+
:'errors7d' => :'errors7d',
|
|
59
|
+
:'error_rate7d' => :'errorRate7d',
|
|
60
|
+
:'recent_errors' => :'recentErrors'
|
|
61
|
+
}
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Returns attribute mapping this model knows about
|
|
65
|
+
def self.acceptable_attribute_map
|
|
66
|
+
attribute_map
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Returns all the JSON keys this model knows about
|
|
70
|
+
def self.acceptable_attributes
|
|
71
|
+
acceptable_attribute_map.values
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute type mapping.
|
|
75
|
+
def self.openapi_types
|
|
76
|
+
{
|
|
77
|
+
:'status' => :'String',
|
|
78
|
+
:'last_request_at' => :'Time',
|
|
79
|
+
:'last_successful_write_at' => :'Time',
|
|
80
|
+
:'writes_per_day' => :'Array<AppConnectionHealthWritesPerDayInner>',
|
|
81
|
+
:'requests24h' => :'Integer',
|
|
82
|
+
:'errors24h' => :'Integer',
|
|
83
|
+
:'error_rate24h' => :'Float',
|
|
84
|
+
:'requests7d' => :'Integer',
|
|
85
|
+
:'errors7d' => :'Integer',
|
|
86
|
+
:'error_rate7d' => :'Float',
|
|
87
|
+
:'recent_errors' => :'Array<AppConnectionHealthRecentErrorsInner>'
|
|
88
|
+
}
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# List of attributes with nullable: true
|
|
92
|
+
def self.openapi_nullable
|
|
93
|
+
Set.new([
|
|
94
|
+
:'last_request_at',
|
|
95
|
+
:'last_successful_write_at',
|
|
96
|
+
])
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Initializes the object
|
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
|
+
def initialize(attributes = {})
|
|
102
|
+
if (!attributes.is_a?(Hash))
|
|
103
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::AppConnectionHealth` initialize method"
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
107
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
108
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
109
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
110
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::AppConnectionHealth`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
111
|
+
end
|
|
112
|
+
h[k.to_sym] = v
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'status')
|
|
116
|
+
self.status = attributes[:'status']
|
|
117
|
+
else
|
|
118
|
+
self.status = nil
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'last_request_at')
|
|
122
|
+
self.last_request_at = attributes[:'last_request_at']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'last_successful_write_at')
|
|
126
|
+
self.last_successful_write_at = attributes[:'last_successful_write_at']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'writes_per_day')
|
|
130
|
+
if (value = attributes[:'writes_per_day']).is_a?(Array)
|
|
131
|
+
self.writes_per_day = value
|
|
132
|
+
end
|
|
133
|
+
else
|
|
134
|
+
self.writes_per_day = nil
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'requests24h')
|
|
138
|
+
self.requests24h = attributes[:'requests24h']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'errors24h')
|
|
142
|
+
self.errors24h = attributes[:'errors24h']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'error_rate24h')
|
|
146
|
+
self.error_rate24h = attributes[:'error_rate24h']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'requests7d')
|
|
150
|
+
self.requests7d = attributes[:'requests7d']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.key?(:'errors7d')
|
|
154
|
+
self.errors7d = attributes[:'errors7d']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'error_rate7d')
|
|
158
|
+
self.error_rate7d = attributes[:'error_rate7d']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'recent_errors')
|
|
162
|
+
if (value = attributes[:'recent_errors']).is_a?(Array)
|
|
163
|
+
self.recent_errors = value
|
|
164
|
+
end
|
|
165
|
+
else
|
|
166
|
+
self.recent_errors = nil
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
171
|
+
# @return Array for valid properties with the reasons
|
|
172
|
+
def list_invalid_properties
|
|
173
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
174
|
+
invalid_properties = Array.new
|
|
175
|
+
if @status.nil?
|
|
176
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if @writes_per_day.nil?
|
|
180
|
+
invalid_properties.push('invalid value for "writes_per_day", writes_per_day cannot be nil.')
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if @recent_errors.nil?
|
|
184
|
+
invalid_properties.push('invalid value for "recent_errors", recent_errors cannot be nil.')
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
invalid_properties
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Check to see if the all the properties in the model are valid
|
|
191
|
+
# @return true if the model is valid
|
|
192
|
+
def valid?
|
|
193
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
194
|
+
return false if @status.nil?
|
|
195
|
+
return false if @writes_per_day.nil?
|
|
196
|
+
return false if @recent_errors.nil?
|
|
197
|
+
true
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Custom attribute writer method with validation
|
|
201
|
+
# @param [Object] status Value to be assigned
|
|
202
|
+
def status=(status)
|
|
203
|
+
if status.nil?
|
|
204
|
+
fail ArgumentError, 'status cannot be nil'
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
@status = status
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Custom attribute writer method with validation
|
|
211
|
+
# @param [Object] writes_per_day Value to be assigned
|
|
212
|
+
def writes_per_day=(writes_per_day)
|
|
213
|
+
if writes_per_day.nil?
|
|
214
|
+
fail ArgumentError, 'writes_per_day cannot be nil'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
@writes_per_day = writes_per_day
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Custom attribute writer method with validation
|
|
221
|
+
# @param [Object] recent_errors Value to be assigned
|
|
222
|
+
def recent_errors=(recent_errors)
|
|
223
|
+
if recent_errors.nil?
|
|
224
|
+
fail ArgumentError, 'recent_errors cannot be nil'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
@recent_errors = recent_errors
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Checks equality by comparing each attribute.
|
|
231
|
+
# @param [Object] Object to be compared
|
|
232
|
+
def ==(o)
|
|
233
|
+
return true if self.equal?(o)
|
|
234
|
+
self.class == o.class &&
|
|
235
|
+
status == o.status &&
|
|
236
|
+
last_request_at == o.last_request_at &&
|
|
237
|
+
last_successful_write_at == o.last_successful_write_at &&
|
|
238
|
+
writes_per_day == o.writes_per_day &&
|
|
239
|
+
requests24h == o.requests24h &&
|
|
240
|
+
errors24h == o.errors24h &&
|
|
241
|
+
error_rate24h == o.error_rate24h &&
|
|
242
|
+
requests7d == o.requests7d &&
|
|
243
|
+
errors7d == o.errors7d &&
|
|
244
|
+
error_rate7d == o.error_rate7d &&
|
|
245
|
+
recent_errors == o.recent_errors
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# @see the `==` method
|
|
249
|
+
# @param [Object] Object to be compared
|
|
250
|
+
def eql?(o)
|
|
251
|
+
self == o
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Calculates hash code according to all attributes.
|
|
255
|
+
# @return [Integer] Hash code
|
|
256
|
+
def hash
|
|
257
|
+
[status, last_request_at, last_successful_write_at, writes_per_day, requests24h, errors24h, error_rate24h, requests7d, errors7d, error_rate7d, recent_errors].hash
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Builds the object from hash
|
|
261
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
262
|
+
# @return [Object] Returns the model itself
|
|
263
|
+
def self.build_from_hash(attributes)
|
|
264
|
+
return nil unless attributes.is_a?(Hash)
|
|
265
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
266
|
+
transformed_hash = {}
|
|
267
|
+
openapi_types.each_pair do |key, type|
|
|
268
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
269
|
+
transformed_hash["#{key}"] = nil
|
|
270
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
271
|
+
# check to ensure the input is an array given that the attribute
|
|
272
|
+
# is documented as an array but the input is not
|
|
273
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
274
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
275
|
+
end
|
|
276
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
277
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
new(transformed_hash)
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Returns the object in the form of hash
|
|
284
|
+
# @return [Hash] Returns the object in the form of hash
|
|
285
|
+
def to_hash
|
|
286
|
+
hash = {}
|
|
287
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
288
|
+
value = self.send(attr)
|
|
289
|
+
if value.nil?
|
|
290
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
291
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
hash[param] = _to_hash(value)
|
|
295
|
+
end
|
|
296
|
+
hash
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
end
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
class AppConnectionHealthRecentErrorsInner < ApiModelBase
|
|
18
|
+
attr_accessor :at
|
|
19
|
+
|
|
20
|
+
attr_accessor :method
|
|
21
|
+
|
|
22
|
+
attr_accessor :endpoint
|
|
23
|
+
|
|
24
|
+
attr_accessor :status_code
|
|
25
|
+
|
|
26
|
+
attr_accessor :message
|
|
27
|
+
|
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
|
+
def self.attribute_map
|
|
30
|
+
{
|
|
31
|
+
:'at' => :'at',
|
|
32
|
+
:'method' => :'method',
|
|
33
|
+
:'endpoint' => :'endpoint',
|
|
34
|
+
:'status_code' => :'statusCode',
|
|
35
|
+
:'message' => :'message'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns attribute mapping this model knows about
|
|
40
|
+
def self.acceptable_attribute_map
|
|
41
|
+
attribute_map
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
|
45
|
+
def self.acceptable_attributes
|
|
46
|
+
acceptable_attribute_map.values
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'at' => :'Time',
|
|
53
|
+
:'method' => :'String',
|
|
54
|
+
:'endpoint' => :'String',
|
|
55
|
+
:'status_code' => :'Integer',
|
|
56
|
+
:'message' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
:'message'
|
|
64
|
+
])
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Initializes the object
|
|
68
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
|
+
def initialize(attributes = {})
|
|
70
|
+
if (!attributes.is_a?(Hash))
|
|
71
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::AppConnectionHealthRecentErrorsInner` initialize method"
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::AppConnectionHealthRecentErrorsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
|
+
end
|
|
80
|
+
h[k.to_sym] = v
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'at')
|
|
84
|
+
self.at = attributes[:'at']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'method')
|
|
88
|
+
self.method = attributes[:'method']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'endpoint')
|
|
92
|
+
self.endpoint = attributes[:'endpoint']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'status_code')
|
|
96
|
+
self.status_code = attributes[:'status_code']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'message')
|
|
100
|
+
self.message = attributes[:'message']
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
108
|
+
invalid_properties = Array.new
|
|
109
|
+
invalid_properties
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Check to see if the all the properties in the model are valid
|
|
113
|
+
# @return true if the model is valid
|
|
114
|
+
def valid?
|
|
115
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
116
|
+
true
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Checks equality by comparing each attribute.
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def ==(o)
|
|
122
|
+
return true if self.equal?(o)
|
|
123
|
+
self.class == o.class &&
|
|
124
|
+
at == o.at &&
|
|
125
|
+
method == o.method &&
|
|
126
|
+
endpoint == o.endpoint &&
|
|
127
|
+
status_code == o.status_code &&
|
|
128
|
+
message == o.message
|
|
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
|
+
[at, method, endpoint, status_code, message].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
|