repull 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repull/api/airbnb_api.rb +1443 -182
- data/lib/repull/api/availability_api.rb +24 -92
- data/lib/repull/api/billing_api.rb +186 -15
- data/lib/repull/api/booking_com_api.rb +532 -41
- data/lib/repull/api/listings_api.rb +74 -0
- data/lib/repull/api/plumguide_api.rb +245 -0
- data/lib/repull/api/reservations_api.rb +0 -197
- data/lib/repull/api/sandbox_api.rb +136 -0
- data/lib/repull/api/vrbo_api.rb +0 -126
- data/lib/repull/models/acknowledge_booking_reservations_request.rb +176 -0
- data/lib/repull/models/{create_studio_project201_response_data.rb → airbnb_alteration.rb} +44 -52
- data/lib/repull/models/airbnb_amenity.rb +171 -0
- data/lib/repull/models/{get_studio_deployment200_response.rb → airbnb_availability_write_request.rb} +52 -10
- data/lib/repull/models/airbnb_calendar_operation.rb +250 -0
- data/lib/repull/models/airbnb_listing_action_request.rb +198 -0
- data/lib/repull/models/{update_availability_request.rb → airbnb_pricing_write_request.rb} +100 -11
- data/lib/repull/models/booking_availability_update.rb +276 -0
- data/lib/repull/models/booking_availability_update_request.rb +230 -0
- data/lib/repull/models/{generate_studio_completion_request_project_id.rb → booking_availability_update_request_property_id.rb} +2 -2
- data/lib/repull/models/booking_availability_update_request_updates_inner.rb +104 -0
- data/lib/repull/models/booking_pricing_rate_update.rb +1 -0
- data/lib/repull/models/booking_pricing_rate_update_restrictions.rb +65 -6
- data/lib/repull/models/booking_setup_request.rb +220 -0
- data/lib/repull/models/create_airbnb_alteration_request.rb +195 -0
- data/lib/repull/models/{create_studio_deployment201_response_data.rb → create_airbnb_offer_request.rb} +42 -30
- data/lib/repull/models/{create_studio_project_request.rb → create_booking_webhook_request.rb} +36 -47
- data/lib/repull/models/{generate_studio_completion200_response.rb → delete_airbnb_listing_photo200_response.rb} +10 -10
- data/lib/repull/models/{delete_studio_project200_response.rb → get_airbnb_alteration200_response.rb} +50 -7
- data/lib/repull/models/{delete_studio_project_file200_response.rb → get_airbnb_listing_quality200_response.rb} +37 -7
- data/lib/repull/models/{create_studio_project_generation201_response.rb → get_airbnb_listing_settings200_response.rb} +37 -7
- data/lib/repull/models/{delete_studio_deployment200_response.rb → get_airbnb_thread200_response.rb} +50 -7
- data/lib/repull/models/{list_studio_deployments200_response.rb → get_usage_logs200_response.rb} +17 -8
- data/lib/repull/models/get_usage_logs200_response_data_inner.rb +264 -0
- data/lib/repull/models/{create_studio_deployment201_response.rb → get_usage_logs200_response_pagination.rb} +29 -10
- data/lib/repull/models/get_usage_summary200_response.rb +232 -0
- data/lib/repull/models/get_usage_summary200_response_breakdown_inner.rb +183 -0
- data/lib/repull/models/{delete_studio_deployment200_response_data.rb → get_usage_summary200_response_limits.rb} +18 -16
- data/lib/repull/models/{delete_studio_project200_response_data.rb → get_usage_summary200_response_remaining.rb} +18 -16
- data/lib/repull/models/{create_studio_project_generation201_response_data.rb → get_usage_summary200_response_status_distribution.rb} +31 -22
- data/lib/repull/models/{upsert_studio_project_file_request.rb → get_usage_summary200_response_timeline_inner.rb} +28 -28
- data/lib/repull/models/{create_studio_project_generation_request.rb → get_usage_summary200_response_totals.rb} +28 -28
- data/lib/repull/models/{create_studio_project201_response.rb → get_usage_summary200_response_used.rb} +19 -10
- data/lib/repull/models/get_usage_tier200_response.rb +183 -0
- data/lib/repull/models/{list_studio_projects200_response.rb → get_usage_tier200_response_limits.rb} +31 -12
- data/lib/repull/models/{update_reservation_request.rb → get_usage_tier200_response_remaining.rb} +25 -31
- data/lib/repull/models/{get_studio_project200_response.rb → get_usage_tier200_response_used.rb} +28 -10
- data/lib/repull/models/list_airbnb_alterations200_response.rb +192 -0
- data/lib/repull/models/list_airbnb_listing_amenities200_response.rb +190 -0
- data/lib/repull/models/{create_studio_deployment_request.rb → list_airbnb_listing_amenities200_response_data.rb} +23 -28
- data/lib/repull/models/{list_studio_project_files200_response.rb → list_airbnb_transactions200_response.rb} +50 -7
- data/lib/repull/models/listing_content_update_request.rb +243 -0
- data/lib/repull/models/{upsert_studio_project_file200_response.rb → listing_content_update_request_address.rb} +53 -10
- data/lib/repull/models/listing_content_update_request_amenities.rb +105 -0
- data/lib/repull/models/listing_content_update_request_amenities_one_of_inner.rb +196 -0
- data/lib/repull/models/listing_content_update_request_occupancy.rb +179 -0
- data/lib/repull/{api/ai_api.rb → models/listing_content_update_request_photos_inner.rb} +77 -59
- data/lib/repull/models/{generate_studio_completion200_response_data.rb → listing_content_update_request_photos_inner_one_of.rb} +81 -66
- data/lib/repull/models/listing_content_update_request_policies.rb +253 -0
- data/lib/repull/models/{create_ai_operation200_response.rb → listing_content_update_response.rb} +32 -16
- data/lib/repull/models/map_airbnb_listing_request.rb +215 -0
- data/lib/repull/models/{create_reservation_request.rb → map_airbnb_listing_response.rb} +137 -116
- data/lib/repull/models/property.rb +42 -69
- data/lib/repull/models/property_availability.rb +222 -0
- data/lib/repull/models/property_availability_day.rb +247 -0
- data/lib/repull/models/reservation.rb +28 -1
- data/lib/repull/models/sandbox_fixture_ref.rb +193 -0
- data/lib/repull/models/{delete_studio_project_file200_response_data.rb → sandbox_reset_result.rb} +72 -11
- data/lib/repull/models/sandbox_reset_result_deleted.rb +216 -0
- data/lib/repull/models/sandbox_seed_result.rb +278 -0
- data/lib/repull/models/{update_studio_project_request.rb → update_airbnb_message_request.rb} +43 -24
- data/lib/repull/models/update_booking_charges_request.rb +194 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +59 -34
- data/openapi/v1.json +3956 -2522
- metadata +61 -36
- data/lib/repull/api/studio_api.rb +0 -1094
- data/lib/repull/models/generate_studio_completion_request.rb +0 -305
- data/lib/repull/models/upsert_studio_project_file200_response_data.rb +0 -147
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect to 50+ PMS platforms and 4 OTA channels through one REST API. Built-in AI operations for guest communication, pricing, and listing optimization. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_test_YOUR_API_KEY ``` Sandbox keys start with `sk_test_`, production with `sk_live_`. ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, and `resets_at` fields. ## Plan Limits (402 — `listings_limit_exceeded`) The Repull API also enforces a per-tier cap on **active listings**: | Tier | Active listings cap | |---|---| | `free` | 3 | | `starter` | 50 | | `custom` | unlimited | When a customer's active-listing count is above their tier cap, the API returns **`402 Payment Required`** with `error.code = \"listings_limit_exceeded\"` on every route EXCEPT: - `/v1/health` — uptime probes are never gated. - `/v1/usage/*` — so dashboards can render the over-cap state. - Any `DELETE` — so the customer can trim listings to get back under the cap without paying. Unlike 429, 402 is NOT a \"wait and retry\" condition — `Retry-After` is not set. The only paths back to 200 are: 1. `DELETE` enough listings to come back under the cap, or 2. Upgrade at `https://repull.dev/dashboard/billing`. The server-side usage cache is 60s, so the first 200 after an upgrade may take up to a minute. The envelope mirrors `rate_limit_exceeded` for SDK ergonomics: `tier`, `limit`, `active_listings`, `upgrade_url`, plus the standard `code` / `message` / `fix` / `docs_url` / `request_id`.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: ivan@vanio.ai
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
class ListAirbnbListingAmenities200Response < ApiModelBase
|
|
18
|
+
attr_accessor :data
|
|
19
|
+
|
|
20
|
+
attr_accessor :data_freshness
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'data' => :'data',
|
|
26
|
+
:'data_freshness' => :'data_freshness'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Returns attribute mapping this model knows about
|
|
31
|
+
def self.acceptable_attribute_map
|
|
32
|
+
attribute_map
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
|
36
|
+
def self.acceptable_attributes
|
|
37
|
+
acceptable_attribute_map.values
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Attribute type mapping.
|
|
41
|
+
def self.openapi_types
|
|
42
|
+
{
|
|
43
|
+
:'data' => :'ListAirbnbListingAmenities200ResponseData',
|
|
44
|
+
:'data_freshness' => :'AirbnbDataFreshness'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# List of attributes with nullable: true
|
|
49
|
+
def self.openapi_nullable
|
|
50
|
+
Set.new([
|
|
51
|
+
])
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
if (!attributes.is_a?(Hash))
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::ListAirbnbListingAmenities200Response` initialize method"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
62
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::ListAirbnbListingAmenities200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
|
+
end
|
|
67
|
+
h[k.to_sym] = v
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'data')
|
|
71
|
+
self.data = attributes[:'data']
|
|
72
|
+
else
|
|
73
|
+
self.data = nil
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'data_freshness')
|
|
77
|
+
self.data_freshness = attributes[:'data_freshness']
|
|
78
|
+
else
|
|
79
|
+
self.data_freshness = nil
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
|
+
# @return Array for valid properties with the reasons
|
|
85
|
+
def list_invalid_properties
|
|
86
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
if @data.nil?
|
|
89
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if @data_freshness.nil?
|
|
93
|
+
invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
invalid_properties
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Check to see if the all the properties in the model are valid
|
|
100
|
+
# @return true if the model is valid
|
|
101
|
+
def valid?
|
|
102
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
103
|
+
return false if @data.nil?
|
|
104
|
+
return false if @data_freshness.nil?
|
|
105
|
+
true
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param [Object] data Value to be assigned
|
|
110
|
+
def data=(data)
|
|
111
|
+
if data.nil?
|
|
112
|
+
fail ArgumentError, 'data cannot be nil'
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
@data = data
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Custom attribute writer method with validation
|
|
119
|
+
# @param [Object] data_freshness Value to be assigned
|
|
120
|
+
def data_freshness=(data_freshness)
|
|
121
|
+
if data_freshness.nil?
|
|
122
|
+
fail ArgumentError, 'data_freshness cannot be nil'
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
@data_freshness = data_freshness
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Checks equality by comparing each attribute.
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def ==(o)
|
|
131
|
+
return true if self.equal?(o)
|
|
132
|
+
self.class == o.class &&
|
|
133
|
+
data == o.data &&
|
|
134
|
+
data_freshness == o.data_freshness
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @see the `==` method
|
|
138
|
+
# @param [Object] Object to be compared
|
|
139
|
+
def eql?(o)
|
|
140
|
+
self == o
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Calculates hash code according to all attributes.
|
|
144
|
+
# @return [Integer] Hash code
|
|
145
|
+
def hash
|
|
146
|
+
[data, data_freshness].hash
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Builds the object from hash
|
|
150
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
151
|
+
# @return [Object] Returns the model itself
|
|
152
|
+
def self.build_from_hash(attributes)
|
|
153
|
+
return nil unless attributes.is_a?(Hash)
|
|
154
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
155
|
+
transformed_hash = {}
|
|
156
|
+
openapi_types.each_pair do |key, type|
|
|
157
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
158
|
+
transformed_hash["#{key}"] = nil
|
|
159
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
160
|
+
# check to ensure the input is an array given that the attribute
|
|
161
|
+
# is documented as an array but the input is not
|
|
162
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
163
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
164
|
+
end
|
|
165
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
166
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
new(transformed_hash)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the object in the form of hash
|
|
173
|
+
# @return [Hash] Returns the object in the form of hash
|
|
174
|
+
def to_hash
|
|
175
|
+
hash = {}
|
|
176
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
177
|
+
value = self.send(attr)
|
|
178
|
+
if value.nil?
|
|
179
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
180
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
hash[param] = _to_hash(value)
|
|
184
|
+
end
|
|
185
|
+
hash
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
@@ -14,14 +14,16 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
class ListAirbnbListingAmenities200ResponseData < ApiModelBase
|
|
18
|
+
attr_accessor :amenities
|
|
19
|
+
|
|
20
|
+
attr_accessor :accessibility_amenities
|
|
20
21
|
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
23
|
def self.attribute_map
|
|
23
24
|
{
|
|
24
|
-
:'
|
|
25
|
+
:'amenities' => :'amenities',
|
|
26
|
+
:'accessibility_amenities' => :'accessibility_amenities'
|
|
25
27
|
}
|
|
26
28
|
end
|
|
27
29
|
|
|
@@ -38,7 +40,8 @@ module Repull
|
|
|
38
40
|
# Attribute type mapping.
|
|
39
41
|
def self.openapi_types
|
|
40
42
|
{
|
|
41
|
-
:'
|
|
43
|
+
:'amenities' => :'Array<AirbnbAmenity>',
|
|
44
|
+
:'accessibility_amenities' => :'Array<AirbnbAmenity>'
|
|
42
45
|
}
|
|
43
46
|
end
|
|
44
47
|
|
|
@@ -52,22 +55,28 @@ module Repull
|
|
|
52
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
56
|
def initialize(attributes = {})
|
|
54
57
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::ListAirbnbListingAmenities200ResponseData` initialize method"
|
|
56
59
|
end
|
|
57
60
|
|
|
58
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
62
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
64
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::ListAirbnbListingAmenities200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
66
|
end
|
|
64
67
|
h[k.to_sym] = v
|
|
65
68
|
}
|
|
66
69
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
if attributes.key?(:'amenities')
|
|
71
|
+
if (value = attributes[:'amenities']).is_a?(Array)
|
|
72
|
+
self.amenities = value
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'accessibility_amenities')
|
|
77
|
+
if (value = attributes[:'accessibility_amenities']).is_a?(Array)
|
|
78
|
+
self.accessibility_amenities = value
|
|
79
|
+
end
|
|
71
80
|
end
|
|
72
81
|
end
|
|
73
82
|
|
|
@@ -76,10 +85,6 @@ module Repull
|
|
|
76
85
|
def list_invalid_properties
|
|
77
86
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
87
|
invalid_properties = Array.new
|
|
79
|
-
if @project_id.nil?
|
|
80
|
-
invalid_properties.push('invalid value for "project_id", project_id cannot be nil.')
|
|
81
|
-
end
|
|
82
|
-
|
|
83
88
|
invalid_properties
|
|
84
89
|
end
|
|
85
90
|
|
|
@@ -87,26 +92,16 @@ module Repull
|
|
|
87
92
|
# @return true if the model is valid
|
|
88
93
|
def valid?
|
|
89
94
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
-
return false if @project_id.nil?
|
|
91
95
|
true
|
|
92
96
|
end
|
|
93
97
|
|
|
94
|
-
# Custom attribute writer method with validation
|
|
95
|
-
# @param [Object] project_id Value to be assigned
|
|
96
|
-
def project_id=(project_id)
|
|
97
|
-
if project_id.nil?
|
|
98
|
-
fail ArgumentError, 'project_id cannot be nil'
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
@project_id = project_id
|
|
102
|
-
end
|
|
103
|
-
|
|
104
98
|
# Checks equality by comparing each attribute.
|
|
105
99
|
# @param [Object] Object to be compared
|
|
106
100
|
def ==(o)
|
|
107
101
|
return true if self.equal?(o)
|
|
108
102
|
self.class == o.class &&
|
|
109
|
-
|
|
103
|
+
amenities == o.amenities &&
|
|
104
|
+
accessibility_amenities == o.accessibility_amenities
|
|
110
105
|
end
|
|
111
106
|
|
|
112
107
|
# @see the `==` method
|
|
@@ -118,7 +113,7 @@ module Repull
|
|
|
118
113
|
# Calculates hash code according to all attributes.
|
|
119
114
|
# @return [Integer] Hash code
|
|
120
115
|
def hash
|
|
121
|
-
[
|
|
116
|
+
[amenities, accessibility_amenities].hash
|
|
122
117
|
end
|
|
123
118
|
|
|
124
119
|
# Builds the object from hash
|
|
@@ -14,13 +14,16 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
class
|
|
17
|
+
class ListAirbnbTransactions200Response < ApiModelBase
|
|
18
18
|
attr_accessor :data
|
|
19
19
|
|
|
20
|
+
attr_accessor :data_freshness
|
|
21
|
+
|
|
20
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
23
|
def self.attribute_map
|
|
22
24
|
{
|
|
23
|
-
:'data' => :'data'
|
|
25
|
+
:'data' => :'data',
|
|
26
|
+
:'data_freshness' => :'data_freshness'
|
|
24
27
|
}
|
|
25
28
|
end
|
|
26
29
|
|
|
@@ -37,7 +40,8 @@ module Repull
|
|
|
37
40
|
# Attribute type mapping.
|
|
38
41
|
def self.openapi_types
|
|
39
42
|
{
|
|
40
|
-
:'data' => :'Array<
|
|
43
|
+
:'data' => :'Array<Hash<String, Object>>',
|
|
44
|
+
:'data_freshness' => :'AirbnbDataFreshness'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
43
47
|
|
|
@@ -51,14 +55,14 @@ module Repull
|
|
|
51
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
56
|
def initialize(attributes = {})
|
|
53
57
|
if (!attributes.is_a?(Hash))
|
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
58
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::ListAirbnbTransactions200Response` initialize method"
|
|
55
59
|
end
|
|
56
60
|
|
|
57
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
62
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
63
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
64
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
65
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::ListAirbnbTransactions200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
66
|
end
|
|
63
67
|
h[k.to_sym] = v
|
|
64
68
|
}
|
|
@@ -67,6 +71,14 @@ module Repull
|
|
|
67
71
|
if (value = attributes[:'data']).is_a?(Array)
|
|
68
72
|
self.data = value
|
|
69
73
|
end
|
|
74
|
+
else
|
|
75
|
+
self.data = nil
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'data_freshness')
|
|
79
|
+
self.data_freshness = attributes[:'data_freshness']
|
|
80
|
+
else
|
|
81
|
+
self.data_freshness = nil
|
|
70
82
|
end
|
|
71
83
|
end
|
|
72
84
|
|
|
@@ -75,6 +87,14 @@ module Repull
|
|
|
75
87
|
def list_invalid_properties
|
|
76
88
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
89
|
invalid_properties = Array.new
|
|
90
|
+
if @data.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @data_freshness.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
78
98
|
invalid_properties
|
|
79
99
|
end
|
|
80
100
|
|
|
@@ -82,15 +102,38 @@ module Repull
|
|
|
82
102
|
# @return true if the model is valid
|
|
83
103
|
def valid?
|
|
84
104
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
|
+
return false if @data.nil?
|
|
106
|
+
return false if @data_freshness.nil?
|
|
85
107
|
true
|
|
86
108
|
end
|
|
87
109
|
|
|
110
|
+
# Custom attribute writer method with validation
|
|
111
|
+
# @param [Object] data Value to be assigned
|
|
112
|
+
def data=(data)
|
|
113
|
+
if data.nil?
|
|
114
|
+
fail ArgumentError, 'data cannot be nil'
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
@data = data
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] data_freshness Value to be assigned
|
|
122
|
+
def data_freshness=(data_freshness)
|
|
123
|
+
if data_freshness.nil?
|
|
124
|
+
fail ArgumentError, 'data_freshness cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@data_freshness = data_freshness
|
|
128
|
+
end
|
|
129
|
+
|
|
88
130
|
# Checks equality by comparing each attribute.
|
|
89
131
|
# @param [Object] Object to be compared
|
|
90
132
|
def ==(o)
|
|
91
133
|
return true if self.equal?(o)
|
|
92
134
|
self.class == o.class &&
|
|
93
|
-
data == o.data
|
|
135
|
+
data == o.data &&
|
|
136
|
+
data_freshness == o.data_freshness
|
|
94
137
|
end
|
|
95
138
|
|
|
96
139
|
# @see the `==` method
|
|
@@ -102,7 +145,7 @@ module Repull
|
|
|
102
145
|
# Calculates hash code according to all attributes.
|
|
103
146
|
# @return [Integer] Hash code
|
|
104
147
|
def hash
|
|
105
|
-
[data].hash
|
|
148
|
+
[data, data_freshness].hash
|
|
106
149
|
end
|
|
107
150
|
|
|
108
151
|
# Builds the object from hash
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect to 50+ PMS platforms and 4 OTA channels through one REST API. Built-in AI operations for guest communication, pricing, and listing optimization. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_test_YOUR_API_KEY ``` Sandbox keys start with `sk_test_`, production with `sk_live_`. ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, and `resets_at` fields. ## Plan Limits (402 — `listings_limit_exceeded`) The Repull API also enforces a per-tier cap on **active listings**: | Tier | Active listings cap | |---|---| | `free` | 3 | | `starter` | 50 | | `custom` | unlimited | When a customer's active-listing count is above their tier cap, the API returns **`402 Payment Required`** with `error.code = \"listings_limit_exceeded\"` on every route EXCEPT: - `/v1/health` — uptime probes are never gated. - `/v1/usage/*` — so dashboards can render the over-cap state. - Any `DELETE` — so the customer can trim listings to get back under the cap without paying. Unlike 429, 402 is NOT a \"wait and retry\" condition — `Retry-After` is not set. The only paths back to 200 are: 1. `DELETE` enough listings to come back under the cap, or 2. Upgrade at `https://repull.dev/dashboard/billing`. The server-side usage cache is 60s, so the first 200 after an upgrade may take up to a minute. The envelope mirrors `rate_limit_exceeded` for SDK ergonomics: `tier`, `limit`, `active_listings`, `upgrade_url`, plus the standard `code` / `message` / `fix` / `docs_url` / `request_id`.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: ivan@vanio.ai
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
# Canonical PMS-owned listing content. Every field is optional — this is a partial update, only the fields you send are written; absent fields are left untouched. This is a LOCAL write only: it does NOT push to Airbnb/Booking.com. Distribution is a separate explicit publish step. `photos` are ingested by URL and attached to the listing in order (full-replace by default, or append via `photosMode`).
|
|
18
|
+
class ListingContentUpdateRequest < ApiModelBase
|
|
19
|
+
# Guest-facing title. Written to the listing name and the `en` description.
|
|
20
|
+
attr_accessor :title
|
|
21
|
+
|
|
22
|
+
# Alias for `title`.
|
|
23
|
+
attr_accessor :name
|
|
24
|
+
|
|
25
|
+
# Long-form listing description.
|
|
26
|
+
attr_accessor :description
|
|
27
|
+
|
|
28
|
+
# Short summary / tagline.
|
|
29
|
+
attr_accessor :summary
|
|
30
|
+
|
|
31
|
+
attr_accessor :amenities
|
|
32
|
+
|
|
33
|
+
attr_accessor :address
|
|
34
|
+
|
|
35
|
+
attr_accessor :occupancy
|
|
36
|
+
|
|
37
|
+
attr_accessor :policies
|
|
38
|
+
|
|
39
|
+
# Photo set — full replacement by default (pass `photosMode: \"append\"` to add after existing photos, or `[]` to clear; omit to leave untouched). Each entry is a hosted image URL (string) or a structured ref. URL-ingest only: the URL is persisted and attached to the listing in order — the OTA push downloads it at publish time. Binary/multipart upload is a follow-up. A non-empty array with no valid http(s) URL is reported in `deferred` (existing photos left untouched).
|
|
40
|
+
attr_accessor :photos
|
|
41
|
+
|
|
42
|
+
# How `photos` is applied: `replace` (full replacement of the photo set) or `append` (add after the existing photos). Ignored when `photos` is absent.
|
|
43
|
+
attr_accessor :photos_mode
|
|
44
|
+
|
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'title' => :'title',
|
|
49
|
+
:'name' => :'name',
|
|
50
|
+
:'description' => :'description',
|
|
51
|
+
:'summary' => :'summary',
|
|
52
|
+
:'amenities' => :'amenities',
|
|
53
|
+
:'address' => :'address',
|
|
54
|
+
:'occupancy' => :'occupancy',
|
|
55
|
+
:'policies' => :'policies',
|
|
56
|
+
:'photos' => :'photos',
|
|
57
|
+
:'photos_mode' => :'photosMode'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns attribute mapping this model knows about
|
|
62
|
+
def self.acceptable_attribute_map
|
|
63
|
+
attribute_map
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Returns all the JSON keys this model knows about
|
|
67
|
+
def self.acceptable_attributes
|
|
68
|
+
acceptable_attribute_map.values
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Attribute type mapping.
|
|
72
|
+
def self.openapi_types
|
|
73
|
+
{
|
|
74
|
+
:'title' => :'String',
|
|
75
|
+
:'name' => :'String',
|
|
76
|
+
:'description' => :'String',
|
|
77
|
+
:'summary' => :'String',
|
|
78
|
+
:'amenities' => :'ListingContentUpdateRequestAmenities',
|
|
79
|
+
:'address' => :'ListingContentUpdateRequestAddress',
|
|
80
|
+
:'occupancy' => :'ListingContentUpdateRequestOccupancy',
|
|
81
|
+
:'policies' => :'ListingContentUpdateRequestPolicies',
|
|
82
|
+
:'photos' => :'Array<ListingContentUpdateRequestPhotosInner>',
|
|
83
|
+
:'photos_mode' => :'String'
|
|
84
|
+
}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# List of attributes with nullable: true
|
|
88
|
+
def self.openapi_nullable
|
|
89
|
+
Set.new([
|
|
90
|
+
:'title',
|
|
91
|
+
:'name',
|
|
92
|
+
:'description',
|
|
93
|
+
:'summary',
|
|
94
|
+
])
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Initializes the object
|
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
99
|
+
def initialize(attributes = {})
|
|
100
|
+
if (!attributes.is_a?(Hash))
|
|
101
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::ListingContentUpdateRequest` initialize method"
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
106
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
107
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::ListingContentUpdateRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
109
|
+
end
|
|
110
|
+
h[k.to_sym] = v
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if attributes.key?(:'title')
|
|
114
|
+
self.title = attributes[:'title']
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
if attributes.key?(:'name')
|
|
118
|
+
self.name = attributes[:'name']
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
if attributes.key?(:'description')
|
|
122
|
+
self.description = attributes[:'description']
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:'summary')
|
|
126
|
+
self.summary = attributes[:'summary']
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.key?(:'amenities')
|
|
130
|
+
self.amenities = attributes[:'amenities']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.key?(:'address')
|
|
134
|
+
self.address = attributes[:'address']
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if attributes.key?(:'occupancy')
|
|
138
|
+
self.occupancy = attributes[:'occupancy']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'policies')
|
|
142
|
+
self.policies = attributes[:'policies']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.key?(:'photos')
|
|
146
|
+
if (value = attributes[:'photos']).is_a?(Array)
|
|
147
|
+
self.photos = value
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'photos_mode')
|
|
152
|
+
self.photos_mode = attributes[:'photos_mode']
|
|
153
|
+
else
|
|
154
|
+
self.photos_mode = 'replace'
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
159
|
+
# @return Array for valid properties with the reasons
|
|
160
|
+
def list_invalid_properties
|
|
161
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
162
|
+
invalid_properties = Array.new
|
|
163
|
+
invalid_properties
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Check to see if the all the properties in the model are valid
|
|
167
|
+
# @return true if the model is valid
|
|
168
|
+
def valid?
|
|
169
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
170
|
+
true
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Checks equality by comparing each attribute.
|
|
174
|
+
# @param [Object] Object to be compared
|
|
175
|
+
def ==(o)
|
|
176
|
+
return true if self.equal?(o)
|
|
177
|
+
self.class == o.class &&
|
|
178
|
+
title == o.title &&
|
|
179
|
+
name == o.name &&
|
|
180
|
+
description == o.description &&
|
|
181
|
+
summary == o.summary &&
|
|
182
|
+
amenities == o.amenities &&
|
|
183
|
+
address == o.address &&
|
|
184
|
+
occupancy == o.occupancy &&
|
|
185
|
+
policies == o.policies &&
|
|
186
|
+
photos == o.photos &&
|
|
187
|
+
photos_mode == o.photos_mode
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# @see the `==` method
|
|
191
|
+
# @param [Object] Object to be compared
|
|
192
|
+
def eql?(o)
|
|
193
|
+
self == o
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Calculates hash code according to all attributes.
|
|
197
|
+
# @return [Integer] Hash code
|
|
198
|
+
def hash
|
|
199
|
+
[title, name, description, summary, amenities, address, occupancy, policies, photos, photos_mode].hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Builds the object from hash
|
|
203
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
204
|
+
# @return [Object] Returns the model itself
|
|
205
|
+
def self.build_from_hash(attributes)
|
|
206
|
+
return nil unless attributes.is_a?(Hash)
|
|
207
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
208
|
+
transformed_hash = {}
|
|
209
|
+
openapi_types.each_pair do |key, type|
|
|
210
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
211
|
+
transformed_hash["#{key}"] = nil
|
|
212
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
213
|
+
# check to ensure the input is an array given that the attribute
|
|
214
|
+
# is documented as an array but the input is not
|
|
215
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
216
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
217
|
+
end
|
|
218
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
219
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
new(transformed_hash)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Returns the object in the form of hash
|
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
|
227
|
+
def to_hash
|
|
228
|
+
hash = {}
|
|
229
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
230
|
+
value = self.send(attr)
|
|
231
|
+
if value.nil?
|
|
232
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
233
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
hash[param] = _to_hash(value)
|
|
237
|
+
end
|
|
238
|
+
hash
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
end
|