repull 0.2.15 → 0.2.16

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 (126) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +147 -52
  3. data/lib/repull/api/billing_api.rb +4 -4
  4. data/lib/repull/api/booking_com_api.rb +36 -27
  5. data/lib/repull/api/conversations_api.rb +398 -4
  6. data/lib/repull/api/guests_api.rb +2 -2
  7. data/lib/repull/api/listings_api.rb +4 -4
  8. data/lib/repull/api/reservations_api.rb +157 -6
  9. data/lib/repull/api/webhooks_api.rb +10 -3
  10. data/lib/repull/models/accept_reservation_request200_response.rb +321 -0
  11. data/lib/repull/models/account_created_event.rb +95 -31
  12. data/lib/repull/models/account_disconnected_event.rb +95 -31
  13. data/lib/repull/models/ai_operation_completed_event.rb +95 -31
  14. data/lib/repull/models/ai_operation_failed_event.rb +95 -31
  15. data/lib/repull/models/airbnb_reservation_action200_response.rb +157 -0
  16. data/lib/repull/models/airbnb_reservation_action_request.rb +248 -0
  17. data/lib/repull/models/booking_availability_update.rb +4 -20
  18. data/lib/repull/models/booking_availability_update_date_range.rb +193 -0
  19. data/lib/repull/models/booking_availability_update_request.rb +14 -3
  20. data/lib/repull/models/booking_pricing_rate_update.rb +32 -4
  21. data/lib/repull/models/booking_pricing_rate_update_date_range.rb +3 -0
  22. data/lib/repull/models/booking_pricing_rate_update_restrictions.rb +10 -10
  23. data/lib/repull/models/booking_pricing_response.rb +16 -4
  24. data/lib/repull/models/booking_pricing_update_response.rb +82 -18
  25. data/lib/repull/models/booking_property.rb +107 -36
  26. data/lib/repull/models/booking_property_listings_inner.rb +244 -0
  27. data/lib/repull/models/booking_rate_write_occupancy.rb +187 -0
  28. data/lib/repull/models/booking_rate_write_price_half.rb +188 -0
  29. data/lib/repull/models/booking_rate_write_restriction_half.rb +212 -0
  30. data/lib/repull/models/booking_rate_write_verification.rb +200 -0
  31. data/lib/repull/models/booking_rate_write_verification_row.rb +196 -0
  32. data/lib/repull/models/booking_restriction_request_row.rb +199 -0
  33. data/lib/repull/models/booking_restriction_verification.rb +208 -0
  34. data/lib/repull/models/booking_restriction_verification_row.rb +203 -0
  35. data/lib/repull/models/booking_restriction_verification_row_booking_value.rb +105 -0
  36. data/lib/repull/models/booking_restriction_verification_row_expected.rb +105 -0
  37. data/lib/repull/models/booking_rooms_rates_response.rb +41 -7
  38. data/lib/repull/models/booking_rooms_rates_response_rooms_inner.rb +12 -1
  39. data/lib/repull/models/booking_rooms_rates_response_rooms_inner_rates_inner.rb +1 -0
  40. data/lib/repull/models/booking_upstream_failure.rb +204 -0
  41. data/lib/repull/models/calendar_updated_event.rb +95 -31
  42. data/lib/repull/models/conversation_message_attachment.rb +28 -1
  43. data/lib/repull/models/create_airbnb_offer_request.rb +93 -8
  44. data/lib/repull/models/create_airbnb_offer_request_guest_details.rb +279 -0
  45. data/lib/repull/models/create_conversation_special_offer201_response.rb +293 -0
  46. data/lib/repull/models/create_conversation_special_offer201_response_guests.rb +189 -0
  47. data/lib/repull/models/create_conversation_special_offer_request.rb +263 -0
  48. data/lib/repull/models/create_conversation_special_offer_request_guests.rb +263 -0
  49. data/lib/repull/models/decline_reservation_request_request.rb +234 -0
  50. data/lib/repull/models/get_airbnb_offer200_response.rb +289 -0
  51. data/lib/repull/models/get_usage_summary200_response.rb +10 -1
  52. data/lib/repull/models/get_usage_summary200_response_limits.rb +11 -1
  53. data/lib/repull/models/get_usage_summary200_response_remaining.rb +11 -1
  54. data/lib/repull/models/get_usage_summary200_response_used.rb +10 -1
  55. data/lib/repull/models/get_usage_tier200_response.rb +10 -1
  56. data/lib/repull/models/get_usage_tier200_response_limits.rb +11 -1
  57. data/lib/repull/models/get_usage_tier200_response_remaining.rb +11 -1
  58. data/lib/repull/models/get_usage_tier200_response_used.rb +10 -1
  59. data/lib/repull/models/inquiry_created_event.rb +281 -0
  60. data/lib/repull/models/inquiry_created_payload.rb +185 -0
  61. data/lib/repull/models/inquiry_updated_event.rb +281 -0
  62. data/lib/repull/models/inquiry_updated_payload.rb +213 -0
  63. data/lib/repull/models/inquiry_webhook_object.rb +323 -0
  64. data/lib/repull/models/inquiry_webhook_object_expected_payout.rb +158 -0
  65. data/lib/repull/models/inquiry_webhook_object_guests.rb +188 -0
  66. data/lib/repull/models/list_airbnb_thread_messages200_response.rb +170 -0
  67. data/lib/repull/models/list_airbnb_thread_messages200_response_data_inner.rb +274 -0
  68. data/lib/repull/models/list_airbnb_thread_messages200_response_pagination.rb +158 -0
  69. data/lib/repull/models/list_inquiries200_response.rb +192 -0
  70. data/lib/repull/models/list_inquiries200_response_data_inner.rb +418 -0
  71. data/lib/repull/models/list_inquiries200_response_data_inner_expected_payout.rb +159 -0
  72. data/lib/repull/models/list_inquiries200_response_data_inner_guests.rb +188 -0
  73. data/lib/repull/models/listing_created_event.rb +95 -31
  74. data/lib/repull/models/listing_deleted_event.rb +95 -31
  75. data/lib/repull/models/listing_deleted_payload.rb +55 -21
  76. data/lib/repull/models/listing_reactivated_event.rb +281 -0
  77. data/lib/repull/models/listing_suspended_event.rb +281 -0
  78. data/lib/repull/models/listing_suspension_payload.rb +202 -0
  79. data/lib/repull/models/listing_updated_event.rb +95 -31
  80. data/lib/repull/models/listing_updated_payload.rb +50 -22
  81. data/lib/repull/models/listing_webhook_object.rb +291 -0
  82. data/lib/repull/models/listing_webhook_object_address.rb +168 -0
  83. data/lib/repull/models/listing_webhook_object_channels_inner.rb +184 -0
  84. data/lib/repull/models/message.rb +1 -0
  85. data/lib/repull/models/payment_completed_event.rb +95 -31
  86. data/lib/repull/models/payment_completed_payload.rb +46 -44
  87. data/lib/repull/models/payment_refunded_event.rb +95 -31
  88. data/lib/repull/models/payment_refunded_payload.rb +46 -44
  89. data/lib/repull/models/payment_webhook_object.rb +351 -0
  90. data/lib/repull/models/preapprove_conversation201_response.rb +253 -0
  91. data/lib/repull/models/preapprove_conversation_request.rb +150 -0
  92. data/lib/repull/models/replay_webhook_delivery_request.rb +150 -0
  93. data/lib/repull/models/repull_ping_event.rb +95 -31
  94. data/lib/repull/models/reservation.rb +22 -2
  95. data/lib/repull/models/reservation_alteration_created_event.rb +95 -31
  96. data/lib/repull/models/reservation_alteration_responded_event.rb +95 -31
  97. data/lib/repull/models/reservation_cancelled_event.rb +95 -31
  98. data/lib/repull/models/reservation_created_event.rb +95 -32
  99. data/lib/repull/models/reservation_message_received_event.rb +95 -31
  100. data/lib/repull/models/reservation_message_received_payload.rb +17 -4
  101. data/lib/repull/models/reservation_request_created_event.rb +281 -0
  102. data/lib/repull/models/reservation_request_created_payload.rb +224 -0
  103. data/lib/repull/models/reservation_request_updated_event.rb +281 -0
  104. data/lib/repull/models/reservation_request_updated_payload.rb +251 -0
  105. data/lib/repull/models/reservation_updated_event.rb +95 -31
  106. data/lib/repull/models/review_created_event.rb +95 -31
  107. data/lib/repull/models/review_responded_event.rb +95 -31
  108. data/lib/repull/models/send_airbnb_message201_response.rb +104 -0
  109. data/lib/repull/models/send_airbnb_message_request.rb +4 -20
  110. data/lib/repull/models/send_message_attachment.rb +225 -0
  111. data/lib/repull/models/send_message_part.rb +201 -0
  112. data/lib/repull/models/send_message_request.rb +44 -19
  113. data/lib/repull/models/send_message_response.rb +29 -5
  114. data/lib/repull/models/sent_attachment.rb +196 -0
  115. data/lib/repull/models/usage_quota_warning_event.rb +281 -0
  116. data/lib/repull/models/usage_quota_warning_payload.rb +224 -0
  117. data/lib/repull/models/usage_quota_warning_payload_top_operation.rb +167 -0
  118. data/lib/repull/models/webhook_event.rb +17 -3
  119. data/lib/repull/models/webhook_event_account.rb +171 -0
  120. data/lib/repull/models/webhook_event_type.rb +8 -1
  121. data/lib/repull/models/withdraw_conversation_special_offer200_response.rb +240 -0
  122. data/lib/repull/version.rb +1 -1
  123. data/lib/repull.rb +60 -0
  124. data/openapi/v1.json +19295 -13620
  125. data/scripts/regen.sh +1 -1
  126. metadata +62 -2
@@ -15,23 +15,29 @@ require 'time'
15
15
 
16
16
  module Repull
17
17
  class ReservationUpdatedEvent < ApiModelBase
18
- attr_accessor :id
18
+ # The event name. This field is `event`, not `type`.
19
+ attr_accessor :event
19
20
 
20
- attr_accessor :type
21
-
22
- attr_accessor :created_at
21
+ # Stable across every delivery and replay of this logical event — dedupe on it.
22
+ attr_accessor :event_id
23
23
 
24
24
  attr_accessor :api_version
25
25
 
26
+ # When this delivery was built.
27
+ attr_accessor :timestamp
28
+
29
+ attr_accessor :account
30
+
26
31
  attr_accessor :data
27
32
 
28
33
  # Attribute mapping from ruby-style variable name to JSON key.
29
34
  def self.attribute_map
30
35
  {
31
- :'id' => :'id',
32
- :'type' => :'type',
33
- :'created_at' => :'createdAt',
36
+ :'event' => :'event',
37
+ :'event_id' => :'eventId',
34
38
  :'api_version' => :'apiVersion',
39
+ :'timestamp' => :'timestamp',
40
+ :'account' => :'account',
35
41
  :'data' => :'data'
36
42
  }
37
43
  end
@@ -49,10 +55,11 @@ module Repull
49
55
  # Attribute type mapping.
50
56
  def self.openapi_types
51
57
  {
52
- :'id' => :'String',
53
- :'type' => :'String',
54
- :'created_at' => :'Time',
58
+ :'event' => :'String',
59
+ :'event_id' => :'String',
55
60
  :'api_version' => :'String',
61
+ :'timestamp' => :'Time',
62
+ :'account' => :'WebhookEventAccount',
56
63
  :'data' => :'ReservationUpdatedPayload'
57
64
  }
58
65
  end
@@ -60,6 +67,7 @@ module Repull
60
67
  # List of attributes with nullable: true
61
68
  def self.openapi_nullable
62
69
  Set.new([
70
+ :'account',
63
71
  ])
64
72
  end
65
73
 
@@ -79,22 +87,32 @@ module Repull
79
87
  h[k.to_sym] = v
80
88
  }
81
89
 
82
- if attributes.key?(:'id')
83
- self.id = attributes[:'id']
84
- end
85
-
86
- if attributes.key?(:'type')
87
- self.type = attributes[:'type']
90
+ if attributes.key?(:'event')
91
+ self.event = attributes[:'event']
88
92
  else
89
- self.type = nil
93
+ self.event = nil
90
94
  end
91
95
 
92
- if attributes.key?(:'created_at')
93
- self.created_at = attributes[:'created_at']
96
+ if attributes.key?(:'event_id')
97
+ self.event_id = attributes[:'event_id']
98
+ else
99
+ self.event_id = nil
94
100
  end
95
101
 
96
102
  if attributes.key?(:'api_version')
97
103
  self.api_version = attributes[:'api_version']
104
+ else
105
+ self.api_version = nil
106
+ end
107
+
108
+ if attributes.key?(:'timestamp')
109
+ self.timestamp = attributes[:'timestamp']
110
+ else
111
+ self.timestamp = nil
112
+ end
113
+
114
+ if attributes.key?(:'account')
115
+ self.account = attributes[:'account']
98
116
  end
99
117
 
100
118
  if attributes.key?(:'data')
@@ -109,8 +127,20 @@ module Repull
109
127
  def list_invalid_properties
110
128
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
129
  invalid_properties = Array.new
112
- if @type.nil?
113
- invalid_properties.push('invalid value for "type", type cannot be nil.')
130
+ if @event.nil?
131
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
132
+ end
133
+
134
+ if @event_id.nil?
135
+ invalid_properties.push('invalid value for "event_id", event_id cannot be nil.')
136
+ end
137
+
138
+ if @api_version.nil?
139
+ invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
140
+ end
141
+
142
+ if @timestamp.nil?
143
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
114
144
  end
115
145
 
116
146
  if @data.nil?
@@ -124,19 +154,52 @@ module Repull
124
154
  # @return true if the model is valid
125
155
  def valid?
126
156
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
- return false if @type.nil?
157
+ return false if @event.nil?
158
+ return false if @event_id.nil?
159
+ return false if @api_version.nil?
160
+ return false if @timestamp.nil?
128
161
  return false if @data.nil?
129
162
  true
130
163
  end
131
164
 
132
165
  # Custom attribute writer method with validation
133
- # @param [Object] type Value to be assigned
134
- def type=(type)
135
- if type.nil?
136
- fail ArgumentError, 'type cannot be nil'
166
+ # @param [Object] event Value to be assigned
167
+ def event=(event)
168
+ if event.nil?
169
+ fail ArgumentError, 'event cannot be nil'
170
+ end
171
+
172
+ @event = event
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] event_id Value to be assigned
177
+ def event_id=(event_id)
178
+ if event_id.nil?
179
+ fail ArgumentError, 'event_id cannot be nil'
180
+ end
181
+
182
+ @event_id = event_id
183
+ end
184
+
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] api_version Value to be assigned
187
+ def api_version=(api_version)
188
+ if api_version.nil?
189
+ fail ArgumentError, 'api_version cannot be nil'
190
+ end
191
+
192
+ @api_version = api_version
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] timestamp Value to be assigned
197
+ def timestamp=(timestamp)
198
+ if timestamp.nil?
199
+ fail ArgumentError, 'timestamp cannot be nil'
137
200
  end
138
201
 
139
- @type = type
202
+ @timestamp = timestamp
140
203
  end
141
204
 
142
205
  # Custom attribute writer method with validation
@@ -154,10 +217,11 @@ module Repull
154
217
  def ==(o)
155
218
  return true if self.equal?(o)
156
219
  self.class == o.class &&
157
- id == o.id &&
158
- type == o.type &&
159
- created_at == o.created_at &&
220
+ event == o.event &&
221
+ event_id == o.event_id &&
160
222
  api_version == o.api_version &&
223
+ timestamp == o.timestamp &&
224
+ account == o.account &&
161
225
  data == o.data
162
226
  end
163
227
 
@@ -170,7 +234,7 @@ module Repull
170
234
  # Calculates hash code according to all attributes.
171
235
  # @return [Integer] Hash code
172
236
  def hash
173
- [id, type, created_at, api_version, data].hash
237
+ [event, event_id, api_version, timestamp, account, data].hash
174
238
  end
175
239
 
176
240
  # Builds the object from hash
@@ -15,23 +15,29 @@ require 'time'
15
15
 
16
16
  module Repull
17
17
  class ReviewCreatedEvent < ApiModelBase
18
- attr_accessor :id
18
+ # The event name. This field is `event`, not `type`.
19
+ attr_accessor :event
19
20
 
20
- attr_accessor :type
21
-
22
- attr_accessor :created_at
21
+ # Stable across every delivery and replay of this logical event — dedupe on it.
22
+ attr_accessor :event_id
23
23
 
24
24
  attr_accessor :api_version
25
25
 
26
+ # When this delivery was built.
27
+ attr_accessor :timestamp
28
+
29
+ attr_accessor :account
30
+
26
31
  attr_accessor :data
27
32
 
28
33
  # Attribute mapping from ruby-style variable name to JSON key.
29
34
  def self.attribute_map
30
35
  {
31
- :'id' => :'id',
32
- :'type' => :'type',
33
- :'created_at' => :'createdAt',
36
+ :'event' => :'event',
37
+ :'event_id' => :'eventId',
34
38
  :'api_version' => :'apiVersion',
39
+ :'timestamp' => :'timestamp',
40
+ :'account' => :'account',
35
41
  :'data' => :'data'
36
42
  }
37
43
  end
@@ -49,10 +55,11 @@ module Repull
49
55
  # Attribute type mapping.
50
56
  def self.openapi_types
51
57
  {
52
- :'id' => :'String',
53
- :'type' => :'String',
54
- :'created_at' => :'Time',
58
+ :'event' => :'String',
59
+ :'event_id' => :'String',
55
60
  :'api_version' => :'String',
61
+ :'timestamp' => :'Time',
62
+ :'account' => :'WebhookEventAccount',
56
63
  :'data' => :'ReviewCreatedPayload'
57
64
  }
58
65
  end
@@ -60,6 +67,7 @@ module Repull
60
67
  # List of attributes with nullable: true
61
68
  def self.openapi_nullable
62
69
  Set.new([
70
+ :'account',
63
71
  ])
64
72
  end
65
73
 
@@ -79,22 +87,32 @@ module Repull
79
87
  h[k.to_sym] = v
80
88
  }
81
89
 
82
- if attributes.key?(:'id')
83
- self.id = attributes[:'id']
84
- end
85
-
86
- if attributes.key?(:'type')
87
- self.type = attributes[:'type']
90
+ if attributes.key?(:'event')
91
+ self.event = attributes[:'event']
88
92
  else
89
- self.type = nil
93
+ self.event = nil
90
94
  end
91
95
 
92
- if attributes.key?(:'created_at')
93
- self.created_at = attributes[:'created_at']
96
+ if attributes.key?(:'event_id')
97
+ self.event_id = attributes[:'event_id']
98
+ else
99
+ self.event_id = nil
94
100
  end
95
101
 
96
102
  if attributes.key?(:'api_version')
97
103
  self.api_version = attributes[:'api_version']
104
+ else
105
+ self.api_version = nil
106
+ end
107
+
108
+ if attributes.key?(:'timestamp')
109
+ self.timestamp = attributes[:'timestamp']
110
+ else
111
+ self.timestamp = nil
112
+ end
113
+
114
+ if attributes.key?(:'account')
115
+ self.account = attributes[:'account']
98
116
  end
99
117
 
100
118
  if attributes.key?(:'data')
@@ -109,8 +127,20 @@ module Repull
109
127
  def list_invalid_properties
110
128
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
129
  invalid_properties = Array.new
112
- if @type.nil?
113
- invalid_properties.push('invalid value for "type", type cannot be nil.')
130
+ if @event.nil?
131
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
132
+ end
133
+
134
+ if @event_id.nil?
135
+ invalid_properties.push('invalid value for "event_id", event_id cannot be nil.')
136
+ end
137
+
138
+ if @api_version.nil?
139
+ invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
140
+ end
141
+
142
+ if @timestamp.nil?
143
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
114
144
  end
115
145
 
116
146
  if @data.nil?
@@ -124,19 +154,52 @@ module Repull
124
154
  # @return true if the model is valid
125
155
  def valid?
126
156
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
- return false if @type.nil?
157
+ return false if @event.nil?
158
+ return false if @event_id.nil?
159
+ return false if @api_version.nil?
160
+ return false if @timestamp.nil?
128
161
  return false if @data.nil?
129
162
  true
130
163
  end
131
164
 
132
165
  # Custom attribute writer method with validation
133
- # @param [Object] type Value to be assigned
134
- def type=(type)
135
- if type.nil?
136
- fail ArgumentError, 'type cannot be nil'
166
+ # @param [Object] event Value to be assigned
167
+ def event=(event)
168
+ if event.nil?
169
+ fail ArgumentError, 'event cannot be nil'
170
+ end
171
+
172
+ @event = event
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] event_id Value to be assigned
177
+ def event_id=(event_id)
178
+ if event_id.nil?
179
+ fail ArgumentError, 'event_id cannot be nil'
180
+ end
181
+
182
+ @event_id = event_id
183
+ end
184
+
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] api_version Value to be assigned
187
+ def api_version=(api_version)
188
+ if api_version.nil?
189
+ fail ArgumentError, 'api_version cannot be nil'
190
+ end
191
+
192
+ @api_version = api_version
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] timestamp Value to be assigned
197
+ def timestamp=(timestamp)
198
+ if timestamp.nil?
199
+ fail ArgumentError, 'timestamp cannot be nil'
137
200
  end
138
201
 
139
- @type = type
202
+ @timestamp = timestamp
140
203
  end
141
204
 
142
205
  # Custom attribute writer method with validation
@@ -154,10 +217,11 @@ module Repull
154
217
  def ==(o)
155
218
  return true if self.equal?(o)
156
219
  self.class == o.class &&
157
- id == o.id &&
158
- type == o.type &&
159
- created_at == o.created_at &&
220
+ event == o.event &&
221
+ event_id == o.event_id &&
160
222
  api_version == o.api_version &&
223
+ timestamp == o.timestamp &&
224
+ account == o.account &&
161
225
  data == o.data
162
226
  end
163
227
 
@@ -170,7 +234,7 @@ module Repull
170
234
  # Calculates hash code according to all attributes.
171
235
  # @return [Integer] Hash code
172
236
  def hash
173
- [id, type, created_at, api_version, data].hash
237
+ [event, event_id, api_version, timestamp, account, data].hash
174
238
  end
175
239
 
176
240
  # Builds the object from hash
@@ -15,23 +15,29 @@ require 'time'
15
15
 
16
16
  module Repull
17
17
  class ReviewRespondedEvent < ApiModelBase
18
- attr_accessor :id
18
+ # The event name. This field is `event`, not `type`.
19
+ attr_accessor :event
19
20
 
20
- attr_accessor :type
21
-
22
- attr_accessor :created_at
21
+ # Stable across every delivery and replay of this logical event — dedupe on it.
22
+ attr_accessor :event_id
23
23
 
24
24
  attr_accessor :api_version
25
25
 
26
+ # When this delivery was built.
27
+ attr_accessor :timestamp
28
+
29
+ attr_accessor :account
30
+
26
31
  attr_accessor :data
27
32
 
28
33
  # Attribute mapping from ruby-style variable name to JSON key.
29
34
  def self.attribute_map
30
35
  {
31
- :'id' => :'id',
32
- :'type' => :'type',
33
- :'created_at' => :'createdAt',
36
+ :'event' => :'event',
37
+ :'event_id' => :'eventId',
34
38
  :'api_version' => :'apiVersion',
39
+ :'timestamp' => :'timestamp',
40
+ :'account' => :'account',
35
41
  :'data' => :'data'
36
42
  }
37
43
  end
@@ -49,10 +55,11 @@ module Repull
49
55
  # Attribute type mapping.
50
56
  def self.openapi_types
51
57
  {
52
- :'id' => :'String',
53
- :'type' => :'String',
54
- :'created_at' => :'Time',
58
+ :'event' => :'String',
59
+ :'event_id' => :'String',
55
60
  :'api_version' => :'String',
61
+ :'timestamp' => :'Time',
62
+ :'account' => :'WebhookEventAccount',
56
63
  :'data' => :'ReviewRespondedPayload'
57
64
  }
58
65
  end
@@ -60,6 +67,7 @@ module Repull
60
67
  # List of attributes with nullable: true
61
68
  def self.openapi_nullable
62
69
  Set.new([
70
+ :'account',
63
71
  ])
64
72
  end
65
73
 
@@ -79,22 +87,32 @@ module Repull
79
87
  h[k.to_sym] = v
80
88
  }
81
89
 
82
- if attributes.key?(:'id')
83
- self.id = attributes[:'id']
84
- end
85
-
86
- if attributes.key?(:'type')
87
- self.type = attributes[:'type']
90
+ if attributes.key?(:'event')
91
+ self.event = attributes[:'event']
88
92
  else
89
- self.type = nil
93
+ self.event = nil
90
94
  end
91
95
 
92
- if attributes.key?(:'created_at')
93
- self.created_at = attributes[:'created_at']
96
+ if attributes.key?(:'event_id')
97
+ self.event_id = attributes[:'event_id']
98
+ else
99
+ self.event_id = nil
94
100
  end
95
101
 
96
102
  if attributes.key?(:'api_version')
97
103
  self.api_version = attributes[:'api_version']
104
+ else
105
+ self.api_version = nil
106
+ end
107
+
108
+ if attributes.key?(:'timestamp')
109
+ self.timestamp = attributes[:'timestamp']
110
+ else
111
+ self.timestamp = nil
112
+ end
113
+
114
+ if attributes.key?(:'account')
115
+ self.account = attributes[:'account']
98
116
  end
99
117
 
100
118
  if attributes.key?(:'data')
@@ -109,8 +127,20 @@ module Repull
109
127
  def list_invalid_properties
110
128
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
111
129
  invalid_properties = Array.new
112
- if @type.nil?
113
- invalid_properties.push('invalid value for "type", type cannot be nil.')
130
+ if @event.nil?
131
+ invalid_properties.push('invalid value for "event", event cannot be nil.')
132
+ end
133
+
134
+ if @event_id.nil?
135
+ invalid_properties.push('invalid value for "event_id", event_id cannot be nil.')
136
+ end
137
+
138
+ if @api_version.nil?
139
+ invalid_properties.push('invalid value for "api_version", api_version cannot be nil.')
140
+ end
141
+
142
+ if @timestamp.nil?
143
+ invalid_properties.push('invalid value for "timestamp", timestamp cannot be nil.')
114
144
  end
115
145
 
116
146
  if @data.nil?
@@ -124,19 +154,52 @@ module Repull
124
154
  # @return true if the model is valid
125
155
  def valid?
126
156
  warn '[DEPRECATED] the `valid?` method is obsolete'
127
- return false if @type.nil?
157
+ return false if @event.nil?
158
+ return false if @event_id.nil?
159
+ return false if @api_version.nil?
160
+ return false if @timestamp.nil?
128
161
  return false if @data.nil?
129
162
  true
130
163
  end
131
164
 
132
165
  # Custom attribute writer method with validation
133
- # @param [Object] type Value to be assigned
134
- def type=(type)
135
- if type.nil?
136
- fail ArgumentError, 'type cannot be nil'
166
+ # @param [Object] event Value to be assigned
167
+ def event=(event)
168
+ if event.nil?
169
+ fail ArgumentError, 'event cannot be nil'
170
+ end
171
+
172
+ @event = event
173
+ end
174
+
175
+ # Custom attribute writer method with validation
176
+ # @param [Object] event_id Value to be assigned
177
+ def event_id=(event_id)
178
+ if event_id.nil?
179
+ fail ArgumentError, 'event_id cannot be nil'
180
+ end
181
+
182
+ @event_id = event_id
183
+ end
184
+
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] api_version Value to be assigned
187
+ def api_version=(api_version)
188
+ if api_version.nil?
189
+ fail ArgumentError, 'api_version cannot be nil'
190
+ end
191
+
192
+ @api_version = api_version
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] timestamp Value to be assigned
197
+ def timestamp=(timestamp)
198
+ if timestamp.nil?
199
+ fail ArgumentError, 'timestamp cannot be nil'
137
200
  end
138
201
 
139
- @type = type
202
+ @timestamp = timestamp
140
203
  end
141
204
 
142
205
  # Custom attribute writer method with validation
@@ -154,10 +217,11 @@ module Repull
154
217
  def ==(o)
155
218
  return true if self.equal?(o)
156
219
  self.class == o.class &&
157
- id == o.id &&
158
- type == o.type &&
159
- created_at == o.created_at &&
220
+ event == o.event &&
221
+ event_id == o.event_id &&
160
222
  api_version == o.api_version &&
223
+ timestamp == o.timestamp &&
224
+ account == o.account &&
161
225
  data == o.data
162
226
  end
163
227
 
@@ -170,7 +234,7 @@ module Repull
170
234
  # Calculates hash code according to all attributes.
171
235
  # @return [Integer] Hash code
172
236
  def hash
173
- [id, type, created_at, api_version, data].hash
237
+ [event, event_id, api_version, timestamp, account, data].hash
174
238
  end
175
239
 
176
240
  # Builds the object from hash