zsgf_client 1.0.20 → 1.0.25
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/docs/AccessTokenApi.md +14 -14
- data/docs/AccessTokenPutRequest.md +2 -2
- data/docs/AppUserListResponse.md +12 -12
- data/docs/AppUserResetEmailRequest.md +20 -0
- data/docs/AppUserResetPhoneRequest.md +20 -0
- data/docs/AppUserResetPwdRequest.md +4 -8
- data/docs/CommonFriendModel.md +3 -3
- data/docs/EmailSignInRequest.md +3 -3
- data/docs/EmailSignUpRequest.md +5 -5
- data/docs/FileApi.md +4 -4
- data/docs/FollowerModel.md +12 -12
- data/docs/FollowerPutModel.md +6 -6
- data/docs/GeoLocation.md +62 -0
- data/docs/GeoLocationModel.md +4 -4
- data/docs/GeoLocationResponseModel.md +4 -4
- data/docs/GetUserProfileResult.md +24 -0
- data/docs/{UserFollowingResultApiResponse.md → GetUserProfileResultApiResponse.md} +3 -3
- data/docs/MySqlGeometry.md +26 -0
- data/docs/OAuthAccountSignInRequest.md +3 -3
- data/docs/PhoneSignInRequest.md +3 -3
- data/docs/PhoneSignUpRequest.md +7 -7
- data/docs/QRCodePreSignInRequest.md +3 -3
- data/docs/QRCodeScanRequest.md +1 -1
- data/docs/QRCodeSignInRequest.md +1 -1
- data/docs/QRCodeSignUpRequest.md +8 -8
- data/docs/RecommendFriend.md +21 -11
- data/docs/SendEmailCodeRequest.md +2 -2
- data/docs/SendSMSCodeRequest.md +2 -2
- data/docs/SignInRequest.md +3 -3
- data/docs/SignUpRequest.md +8 -8
- data/docs/StorageApi.md +86 -6
- data/docs/UnionIDSignInRequest.md +3 -3
- data/docs/UnionIDSignUpRequest.md +10 -10
- data/docs/UpdateProfileRequest.md +27 -15
- data/docs/UserApi.md +358 -54
- data/docs/UserFriendsNearByResult.md +3 -3
- data/docs/UserProfileResult.md +2 -28
- data/docs/WechatApi.md +86 -12
- data/lib/zsgf_client/api/access_token_api.rb +14 -14
- data/lib/zsgf_client/api/file_api.rb +3 -3
- data/lib/zsgf_client/api/storage_api.rb +105 -6
- data/lib/zsgf_client/api/user_api.rb +349 -60
- data/lib/zsgf_client/api/wechat_api.rb +88 -18
- data/lib/zsgf_client/models/access_token_put_request.rb +3 -27
- data/lib/zsgf_client/models/app_user_list_response.rb +12 -0
- data/lib/zsgf_client/models/app_user_reset_email_request.rb +269 -0
- data/lib/zsgf_client/models/app_user_reset_phone_request.rb +269 -0
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +52 -70
- data/lib/zsgf_client/models/common_friend_model.rb +3 -0
- data/lib/zsgf_client/models/email_sign_in_request.rb +38 -1
- data/lib/zsgf_client/models/email_sign_up_request.rb +30 -8
- data/lib/zsgf_client/models/follower_model.rb +12 -0
- data/lib/zsgf_client/models/follower_put_model.rb +6 -0
- data/lib/zsgf_client/models/geo_location.rb +750 -0
- data/lib/zsgf_client/models/geo_location_model.rb +262 -12
- data/lib/zsgf_client/models/geo_location_response_model.rb +262 -12
- data/lib/zsgf_client/models/{user_following_result.rb → get_user_profile_result.rb} +37 -18
- data/lib/zsgf_client/models/{user_following_result_api_response.rb → get_user_profile_result_api_response.rb} +4 -4
- data/lib/zsgf_client/models/my_sql_geometry.rb +260 -0
- data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +78 -1
- data/lib/zsgf_client/models/phone_sign_in_request.rb +49 -1
- data/lib/zsgf_client/models/phone_sign_up_request.rb +29 -24
- data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +97 -0
- data/lib/zsgf_client/models/qr_code_scan_request.rb +1 -0
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +1 -0
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +38 -33
- data/lib/zsgf_client/models/recommend_friend.rb +69 -4
- data/lib/zsgf_client/models/send_email_code_request.rb +2 -1
- data/lib/zsgf_client/models/send_sms_code_request.rb +2 -2
- data/lib/zsgf_client/models/sign_in_request.rb +77 -11
- data/lib/zsgf_client/models/sign_up_request.rb +47 -35
- data/lib/zsgf_client/models/union_id_sign_in_request.rb +78 -1
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +92 -45
- data/lib/zsgf_client/models/update_profile_request.rb +99 -24
- data/lib/zsgf_client/models/user_friends_near_by_result.rb +10 -7
- data/lib/zsgf_client/models/user_profile_result.rb +7 -133
- data/lib/zsgf_client/version.rb +1 -1
- data/lib/zsgf_client.rb +6 -2
- data/spec/api/access_token_api_spec.rb +7 -7
- data/spec/api/file_api_spec.rb +1 -1
- data/spec/api/storage_api_spec.rb +17 -1
- data/spec/api/user_api_spec.rb +81 -23
- data/spec/api/wechat_api_spec.rb +19 -6
- data/spec/models/{user_following_result_spec.rb → app_user_reset_email_request_spec.rb} +8 -8
- data/spec/models/app_user_reset_phone_request_spec.rb +42 -0
- data/spec/models/app_user_reset_pwd_request_spec.rb +2 -14
- data/spec/models/geo_location_model_spec.rb +3 -3
- data/spec/models/geo_location_response_model_spec.rb +3 -3
- data/spec/models/geo_location_spec.rb +168 -0
- data/spec/models/{user_following_result_api_response_spec.rb → get_user_profile_result_api_response_spec.rb} +6 -6
- data/spec/models/get_user_profile_result_spec.rb +54 -0
- data/spec/models/my_sql_geometry_spec.rb +60 -0
- data/spec/models/recommend_friend_spec.rb +30 -0
- data/spec/models/update_profile_request_spec.rb +36 -0
- data/spec/models/user_friends_near_by_result_spec.rb +1 -1
- data/spec/models/user_profile_result_spec.rb +1 -79
- data/zsgf_client.gemspec +3 -3
- metadata +214 -198
- data/docs/UserFollowingResult.md +0 -20
|
@@ -15,15 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
17
|
class GeoLocationModel
|
|
18
|
+
# 地点的名称
|
|
19
|
+
attr_accessor :location_name
|
|
20
|
+
|
|
18
21
|
# 纬度
|
|
19
22
|
attr_accessor :latitude
|
|
20
23
|
|
|
21
24
|
# 经度
|
|
22
25
|
attr_accessor :longitude
|
|
23
26
|
|
|
24
|
-
# 地点的名称
|
|
25
|
-
attr_accessor :location_name
|
|
26
|
-
|
|
27
27
|
# 地点的类型,如家庭、工作、学校等
|
|
28
28
|
attr_accessor :location_type
|
|
29
29
|
|
|
@@ -81,9 +81,9 @@ module ZSGFClient
|
|
|
81
81
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
82
82
|
def self.attribute_map
|
|
83
83
|
{
|
|
84
|
+
:'location_name' => :'locationName',
|
|
84
85
|
:'latitude' => :'latitude',
|
|
85
86
|
:'longitude' => :'longitude',
|
|
86
|
-
:'location_name' => :'locationName',
|
|
87
87
|
:'location_type' => :'locationType',
|
|
88
88
|
:'recipient_name' => :'recipientName',
|
|
89
89
|
:'phone_number' => :'phoneNumber',
|
|
@@ -118,9 +118,9 @@ module ZSGFClient
|
|
|
118
118
|
# Attribute type mapping.
|
|
119
119
|
def self.openapi_types
|
|
120
120
|
{
|
|
121
|
+
:'location_name' => :'String',
|
|
121
122
|
:'latitude' => :'Float',
|
|
122
123
|
:'longitude' => :'Float',
|
|
123
|
-
:'location_name' => :'String',
|
|
124
124
|
:'location_type' => :'String',
|
|
125
125
|
:'recipient_name' => :'String',
|
|
126
126
|
:'phone_number' => :'String',
|
|
@@ -146,7 +146,6 @@ module ZSGFClient
|
|
|
146
146
|
def self.openapi_nullable
|
|
147
147
|
Set.new([
|
|
148
148
|
:'location_name',
|
|
149
|
-
:'location_type',
|
|
150
149
|
:'recipient_name',
|
|
151
150
|
:'phone_number',
|
|
152
151
|
:'email',
|
|
@@ -160,6 +159,8 @@ module ZSGFClient
|
|
|
160
159
|
:'map_type',
|
|
161
160
|
:'remark',
|
|
162
161
|
:'tags',
|
|
162
|
+
:'enable',
|
|
163
|
+
:'show_index',
|
|
163
164
|
])
|
|
164
165
|
end
|
|
165
166
|
|
|
@@ -179,20 +180,26 @@ module ZSGFClient
|
|
|
179
180
|
h[k.to_sym] = v
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
if attributes.key?(:'location_name')
|
|
184
|
+
self.location_name = attributes[:'location_name']
|
|
185
|
+
end
|
|
186
|
+
|
|
182
187
|
if attributes.key?(:'latitude')
|
|
183
188
|
self.latitude = attributes[:'latitude']
|
|
189
|
+
else
|
|
190
|
+
self.latitude = nil
|
|
184
191
|
end
|
|
185
192
|
|
|
186
193
|
if attributes.key?(:'longitude')
|
|
187
194
|
self.longitude = attributes[:'longitude']
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
if attributes.key?(:'location_name')
|
|
191
|
-
self.location_name = attributes[:'location_name']
|
|
195
|
+
else
|
|
196
|
+
self.longitude = nil
|
|
192
197
|
end
|
|
193
198
|
|
|
194
199
|
if attributes.key?(:'location_type')
|
|
195
200
|
self.location_type = attributes[:'location_type']
|
|
201
|
+
else
|
|
202
|
+
self.location_type = nil
|
|
196
203
|
end
|
|
197
204
|
|
|
198
205
|
if attributes.key?(:'recipient_name')
|
|
@@ -269,6 +276,74 @@ module ZSGFClient
|
|
|
269
276
|
def list_invalid_properties
|
|
270
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
271
278
|
invalid_properties = Array.new
|
|
279
|
+
if !@location_name.nil? && @location_name.to_s.length > 50
|
|
280
|
+
invalid_properties.push('invalid value for "location_name", the character length must be smaller than or equal to 50.')
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
if @latitude.nil?
|
|
284
|
+
invalid_properties.push('invalid value for "latitude", latitude cannot be nil.')
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if @longitude.nil?
|
|
288
|
+
invalid_properties.push('invalid value for "longitude", longitude cannot be nil.')
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if @location_type.nil?
|
|
292
|
+
invalid_properties.push('invalid value for "location_type", location_type cannot be nil.')
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if @location_type.to_s.length > 20
|
|
296
|
+
invalid_properties.push('invalid value for "location_type", the character length must be smaller than or equal to 20.')
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
if @location_type.to_s.length < 1
|
|
300
|
+
invalid_properties.push('invalid value for "location_type", the character length must be great than or equal to 1.')
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
if !@recipient_name.nil? && @recipient_name.to_s.length > 50
|
|
304
|
+
invalid_properties.push('invalid value for "recipient_name", the character length must be smaller than or equal to 50.')
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if !@country.nil? && @country.to_s.length > 20
|
|
308
|
+
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 20.')
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if !@state.nil? && @state.to_s.length > 20
|
|
312
|
+
invalid_properties.push('invalid value for "state", the character length must be smaller than or equal to 20.')
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if !@city.nil? && @city.to_s.length > 20
|
|
316
|
+
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 20.')
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if !@district.nil? && @district.to_s.length > 50
|
|
320
|
+
invalid_properties.push('invalid value for "district", the character length must be smaller than or equal to 50.')
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
if !@street.nil? && @street.to_s.length > 255
|
|
324
|
+
invalid_properties.push('invalid value for "street", the character length must be smaller than or equal to 255.')
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if !@zip_code.nil? && @zip_code.to_s.length > 20
|
|
328
|
+
invalid_properties.push('invalid value for "zip_code", the character length must be smaller than or equal to 20.')
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if !@address.nil? && @address.to_s.length > 1000
|
|
332
|
+
invalid_properties.push('invalid value for "address", the character length must be smaller than or equal to 1000.')
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if !@map_type.nil? && @map_type.to_s.length > 20
|
|
336
|
+
invalid_properties.push('invalid value for "map_type", the character length must be smaller than or equal to 20.')
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
if !@remark.nil? && @remark.to_s.length > 5000
|
|
340
|
+
invalid_properties.push('invalid value for "remark", the character length must be smaller than or equal to 5000.')
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
if !@tags.nil? && @tags.to_s.length > 1000
|
|
344
|
+
invalid_properties.push('invalid value for "tags", the character length must be smaller than or equal to 1000.')
|
|
345
|
+
end
|
|
346
|
+
|
|
272
347
|
invalid_properties
|
|
273
348
|
end
|
|
274
349
|
|
|
@@ -276,17 +351,192 @@ module ZSGFClient
|
|
|
276
351
|
# @return true if the model is valid
|
|
277
352
|
def valid?
|
|
278
353
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
354
|
+
return false if !@location_name.nil? && @location_name.to_s.length > 50
|
|
355
|
+
return false if @latitude.nil?
|
|
356
|
+
return false if @longitude.nil?
|
|
357
|
+
return false if @location_type.nil?
|
|
358
|
+
return false if @location_type.to_s.length > 20
|
|
359
|
+
return false if @location_type.to_s.length < 1
|
|
360
|
+
return false if !@recipient_name.nil? && @recipient_name.to_s.length > 50
|
|
361
|
+
return false if !@country.nil? && @country.to_s.length > 20
|
|
362
|
+
return false if !@state.nil? && @state.to_s.length > 20
|
|
363
|
+
return false if !@city.nil? && @city.to_s.length > 20
|
|
364
|
+
return false if !@district.nil? && @district.to_s.length > 50
|
|
365
|
+
return false if !@street.nil? && @street.to_s.length > 255
|
|
366
|
+
return false if !@zip_code.nil? && @zip_code.to_s.length > 20
|
|
367
|
+
return false if !@address.nil? && @address.to_s.length > 1000
|
|
368
|
+
return false if !@map_type.nil? && @map_type.to_s.length > 20
|
|
369
|
+
return false if !@remark.nil? && @remark.to_s.length > 5000
|
|
370
|
+
return false if !@tags.nil? && @tags.to_s.length > 1000
|
|
279
371
|
true
|
|
280
372
|
end
|
|
281
373
|
|
|
374
|
+
# Custom attribute writer method with validation
|
|
375
|
+
# @param [Object] location_name Value to be assigned
|
|
376
|
+
def location_name=(location_name)
|
|
377
|
+
if !location_name.nil? && location_name.to_s.length > 50
|
|
378
|
+
fail ArgumentError, 'invalid value for "location_name", the character length must be smaller than or equal to 50.'
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
@location_name = location_name
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# Custom attribute writer method with validation
|
|
385
|
+
# @param [Object] latitude Value to be assigned
|
|
386
|
+
def latitude=(latitude)
|
|
387
|
+
if latitude.nil?
|
|
388
|
+
fail ArgumentError, 'latitude cannot be nil'
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
@latitude = latitude
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# Custom attribute writer method with validation
|
|
395
|
+
# @param [Object] longitude Value to be assigned
|
|
396
|
+
def longitude=(longitude)
|
|
397
|
+
if longitude.nil?
|
|
398
|
+
fail ArgumentError, 'longitude cannot be nil'
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
@longitude = longitude
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
# Custom attribute writer method with validation
|
|
405
|
+
# @param [Object] location_type Value to be assigned
|
|
406
|
+
def location_type=(location_type)
|
|
407
|
+
if location_type.nil?
|
|
408
|
+
fail ArgumentError, 'location_type cannot be nil'
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if location_type.to_s.length > 20
|
|
412
|
+
fail ArgumentError, 'invalid value for "location_type", the character length must be smaller than or equal to 20.'
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
if location_type.to_s.length < 1
|
|
416
|
+
fail ArgumentError, 'invalid value for "location_type", the character length must be great than or equal to 1.'
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
@location_type = location_type
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Custom attribute writer method with validation
|
|
423
|
+
# @param [Object] recipient_name Value to be assigned
|
|
424
|
+
def recipient_name=(recipient_name)
|
|
425
|
+
if !recipient_name.nil? && recipient_name.to_s.length > 50
|
|
426
|
+
fail ArgumentError, 'invalid value for "recipient_name", the character length must be smaller than or equal to 50.'
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
@recipient_name = recipient_name
|
|
430
|
+
end
|
|
431
|
+
|
|
432
|
+
# Custom attribute writer method with validation
|
|
433
|
+
# @param [Object] country Value to be assigned
|
|
434
|
+
def country=(country)
|
|
435
|
+
if !country.nil? && country.to_s.length > 20
|
|
436
|
+
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 20.'
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
@country = country
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
# Custom attribute writer method with validation
|
|
443
|
+
# @param [Object] state Value to be assigned
|
|
444
|
+
def state=(state)
|
|
445
|
+
if !state.nil? && state.to_s.length > 20
|
|
446
|
+
fail ArgumentError, 'invalid value for "state", the character length must be smaller than or equal to 20.'
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
@state = state
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Custom attribute writer method with validation
|
|
453
|
+
# @param [Object] city Value to be assigned
|
|
454
|
+
def city=(city)
|
|
455
|
+
if !city.nil? && city.to_s.length > 20
|
|
456
|
+
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 20.'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
@city = city
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Custom attribute writer method with validation
|
|
463
|
+
# @param [Object] district Value to be assigned
|
|
464
|
+
def district=(district)
|
|
465
|
+
if !district.nil? && district.to_s.length > 50
|
|
466
|
+
fail ArgumentError, 'invalid value for "district", the character length must be smaller than or equal to 50.'
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
@district = district
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Custom attribute writer method with validation
|
|
473
|
+
# @param [Object] street Value to be assigned
|
|
474
|
+
def street=(street)
|
|
475
|
+
if !street.nil? && street.to_s.length > 255
|
|
476
|
+
fail ArgumentError, 'invalid value for "street", the character length must be smaller than or equal to 255.'
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
@street = street
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Custom attribute writer method with validation
|
|
483
|
+
# @param [Object] zip_code Value to be assigned
|
|
484
|
+
def zip_code=(zip_code)
|
|
485
|
+
if !zip_code.nil? && zip_code.to_s.length > 20
|
|
486
|
+
fail ArgumentError, 'invalid value for "zip_code", the character length must be smaller than or equal to 20.'
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
@zip_code = zip_code
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Custom attribute writer method with validation
|
|
493
|
+
# @param [Object] address Value to be assigned
|
|
494
|
+
def address=(address)
|
|
495
|
+
if !address.nil? && address.to_s.length > 1000
|
|
496
|
+
fail ArgumentError, 'invalid value for "address", the character length must be smaller than or equal to 1000.'
|
|
497
|
+
end
|
|
498
|
+
|
|
499
|
+
@address = address
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# Custom attribute writer method with validation
|
|
503
|
+
# @param [Object] map_type Value to be assigned
|
|
504
|
+
def map_type=(map_type)
|
|
505
|
+
if !map_type.nil? && map_type.to_s.length > 20
|
|
506
|
+
fail ArgumentError, 'invalid value for "map_type", the character length must be smaller than or equal to 20.'
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
@map_type = map_type
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Custom attribute writer method with validation
|
|
513
|
+
# @param [Object] remark Value to be assigned
|
|
514
|
+
def remark=(remark)
|
|
515
|
+
if !remark.nil? && remark.to_s.length > 5000
|
|
516
|
+
fail ArgumentError, 'invalid value for "remark", the character length must be smaller than or equal to 5000.'
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
@remark = remark
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# Custom attribute writer method with validation
|
|
523
|
+
# @param [Object] tags Value to be assigned
|
|
524
|
+
def tags=(tags)
|
|
525
|
+
if !tags.nil? && tags.to_s.length > 1000
|
|
526
|
+
fail ArgumentError, 'invalid value for "tags", the character length must be smaller than or equal to 1000.'
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
@tags = tags
|
|
530
|
+
end
|
|
531
|
+
|
|
282
532
|
# Checks equality by comparing each attribute.
|
|
283
533
|
# @param [Object] Object to be compared
|
|
284
534
|
def ==(o)
|
|
285
535
|
return true if self.equal?(o)
|
|
286
536
|
self.class == o.class &&
|
|
537
|
+
location_name == o.location_name &&
|
|
287
538
|
latitude == o.latitude &&
|
|
288
539
|
longitude == o.longitude &&
|
|
289
|
-
location_name == o.location_name &&
|
|
290
540
|
location_type == o.location_type &&
|
|
291
541
|
recipient_name == o.recipient_name &&
|
|
292
542
|
phone_number == o.phone_number &&
|
|
@@ -316,7 +566,7 @@ module ZSGFClient
|
|
|
316
566
|
# Calculates hash code according to all attributes.
|
|
317
567
|
# @return [Integer] Hash code
|
|
318
568
|
def hash
|
|
319
|
-
[latitude, longitude,
|
|
569
|
+
[location_name, latitude, longitude, location_type, recipient_name, phone_number, email, country, state, city, district, street, zip_code, address, map_type, remark, tags, enable, show_index, create_date, last_update].hash
|
|
320
570
|
end
|
|
321
571
|
|
|
322
572
|
# Builds the object from hash
|