zsgf_client 1.0.24 → 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
- metadata +215 -199
- data/docs/UserFollowingResult.md +0 -20
|
@@ -15,15 +15,15 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
17
|
class GeoLocationResponseModel
|
|
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
|
|
|
@@ -84,9 +84,9 @@ module ZSGFClient
|
|
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
85
85
|
def self.attribute_map
|
|
86
86
|
{
|
|
87
|
+
:'location_name' => :'locationName',
|
|
87
88
|
:'latitude' => :'latitude',
|
|
88
89
|
:'longitude' => :'longitude',
|
|
89
|
-
:'location_name' => :'locationName',
|
|
90
90
|
:'location_type' => :'locationType',
|
|
91
91
|
:'recipient_name' => :'recipientName',
|
|
92
92
|
:'phone_number' => :'phoneNumber',
|
|
@@ -122,9 +122,9 @@ module ZSGFClient
|
|
|
122
122
|
# Attribute type mapping.
|
|
123
123
|
def self.openapi_types
|
|
124
124
|
{
|
|
125
|
+
:'location_name' => :'String',
|
|
125
126
|
:'latitude' => :'Float',
|
|
126
127
|
:'longitude' => :'Float',
|
|
127
|
-
:'location_name' => :'String',
|
|
128
128
|
:'location_type' => :'String',
|
|
129
129
|
:'recipient_name' => :'String',
|
|
130
130
|
:'phone_number' => :'String',
|
|
@@ -151,7 +151,6 @@ module ZSGFClient
|
|
|
151
151
|
def self.openapi_nullable
|
|
152
152
|
Set.new([
|
|
153
153
|
:'location_name',
|
|
154
|
-
:'location_type',
|
|
155
154
|
:'recipient_name',
|
|
156
155
|
:'phone_number',
|
|
157
156
|
:'email',
|
|
@@ -165,6 +164,8 @@ module ZSGFClient
|
|
|
165
164
|
:'map_type',
|
|
166
165
|
:'remark',
|
|
167
166
|
:'tags',
|
|
167
|
+
:'enable',
|
|
168
|
+
:'show_index',
|
|
168
169
|
])
|
|
169
170
|
end
|
|
170
171
|
|
|
@@ -184,20 +185,26 @@ module ZSGFClient
|
|
|
184
185
|
h[k.to_sym] = v
|
|
185
186
|
}
|
|
186
187
|
|
|
188
|
+
if attributes.key?(:'location_name')
|
|
189
|
+
self.location_name = attributes[:'location_name']
|
|
190
|
+
end
|
|
191
|
+
|
|
187
192
|
if attributes.key?(:'latitude')
|
|
188
193
|
self.latitude = attributes[:'latitude']
|
|
194
|
+
else
|
|
195
|
+
self.latitude = nil
|
|
189
196
|
end
|
|
190
197
|
|
|
191
198
|
if attributes.key?(:'longitude')
|
|
192
199
|
self.longitude = attributes[:'longitude']
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if attributes.key?(:'location_name')
|
|
196
|
-
self.location_name = attributes[:'location_name']
|
|
200
|
+
else
|
|
201
|
+
self.longitude = nil
|
|
197
202
|
end
|
|
198
203
|
|
|
199
204
|
if attributes.key?(:'location_type')
|
|
200
205
|
self.location_type = attributes[:'location_type']
|
|
206
|
+
else
|
|
207
|
+
self.location_type = nil
|
|
201
208
|
end
|
|
202
209
|
|
|
203
210
|
if attributes.key?(:'recipient_name')
|
|
@@ -278,6 +285,74 @@ module ZSGFClient
|
|
|
278
285
|
def list_invalid_properties
|
|
279
286
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
280
287
|
invalid_properties = Array.new
|
|
288
|
+
if !@location_name.nil? && @location_name.to_s.length > 50
|
|
289
|
+
invalid_properties.push('invalid value for "location_name", the character length must be smaller than or equal to 50.')
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if @latitude.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "latitude", latitude cannot be nil.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if @longitude.nil?
|
|
297
|
+
invalid_properties.push('invalid value for "longitude", longitude cannot be nil.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if @location_type.nil?
|
|
301
|
+
invalid_properties.push('invalid value for "location_type", location_type cannot be nil.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if @location_type.to_s.length > 20
|
|
305
|
+
invalid_properties.push('invalid value for "location_type", the character length must be smaller than or equal to 20.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if @location_type.to_s.length < 1
|
|
309
|
+
invalid_properties.push('invalid value for "location_type", the character length must be great than or equal to 1.')
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if !@recipient_name.nil? && @recipient_name.to_s.length > 50
|
|
313
|
+
invalid_properties.push('invalid value for "recipient_name", the character length must be smaller than or equal to 50.')
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if !@country.nil? && @country.to_s.length > 20
|
|
317
|
+
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 20.')
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if !@state.nil? && @state.to_s.length > 20
|
|
321
|
+
invalid_properties.push('invalid value for "state", the character length must be smaller than or equal to 20.')
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if !@city.nil? && @city.to_s.length > 20
|
|
325
|
+
invalid_properties.push('invalid value for "city", the character length must be smaller than or equal to 20.')
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if !@district.nil? && @district.to_s.length > 50
|
|
329
|
+
invalid_properties.push('invalid value for "district", the character length must be smaller than or equal to 50.')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if !@street.nil? && @street.to_s.length > 255
|
|
333
|
+
invalid_properties.push('invalid value for "street", the character length must be smaller than or equal to 255.')
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if !@zip_code.nil? && @zip_code.to_s.length > 20
|
|
337
|
+
invalid_properties.push('invalid value for "zip_code", the character length must be smaller than or equal to 20.')
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if !@address.nil? && @address.to_s.length > 1000
|
|
341
|
+
invalid_properties.push('invalid value for "address", the character length must be smaller than or equal to 1000.')
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if !@map_type.nil? && @map_type.to_s.length > 20
|
|
345
|
+
invalid_properties.push('invalid value for "map_type", the character length must be smaller than or equal to 20.')
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
if !@remark.nil? && @remark.to_s.length > 5000
|
|
349
|
+
invalid_properties.push('invalid value for "remark", the character length must be smaller than or equal to 5000.')
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if !@tags.nil? && @tags.to_s.length > 1000
|
|
353
|
+
invalid_properties.push('invalid value for "tags", the character length must be smaller than or equal to 1000.')
|
|
354
|
+
end
|
|
355
|
+
|
|
281
356
|
invalid_properties
|
|
282
357
|
end
|
|
283
358
|
|
|
@@ -285,17 +360,192 @@ module ZSGFClient
|
|
|
285
360
|
# @return true if the model is valid
|
|
286
361
|
def valid?
|
|
287
362
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
363
|
+
return false if !@location_name.nil? && @location_name.to_s.length > 50
|
|
364
|
+
return false if @latitude.nil?
|
|
365
|
+
return false if @longitude.nil?
|
|
366
|
+
return false if @location_type.nil?
|
|
367
|
+
return false if @location_type.to_s.length > 20
|
|
368
|
+
return false if @location_type.to_s.length < 1
|
|
369
|
+
return false if !@recipient_name.nil? && @recipient_name.to_s.length > 50
|
|
370
|
+
return false if !@country.nil? && @country.to_s.length > 20
|
|
371
|
+
return false if !@state.nil? && @state.to_s.length > 20
|
|
372
|
+
return false if !@city.nil? && @city.to_s.length > 20
|
|
373
|
+
return false if !@district.nil? && @district.to_s.length > 50
|
|
374
|
+
return false if !@street.nil? && @street.to_s.length > 255
|
|
375
|
+
return false if !@zip_code.nil? && @zip_code.to_s.length > 20
|
|
376
|
+
return false if !@address.nil? && @address.to_s.length > 1000
|
|
377
|
+
return false if !@map_type.nil? && @map_type.to_s.length > 20
|
|
378
|
+
return false if !@remark.nil? && @remark.to_s.length > 5000
|
|
379
|
+
return false if !@tags.nil? && @tags.to_s.length > 1000
|
|
288
380
|
true
|
|
289
381
|
end
|
|
290
382
|
|
|
383
|
+
# Custom attribute writer method with validation
|
|
384
|
+
# @param [Object] location_name Value to be assigned
|
|
385
|
+
def location_name=(location_name)
|
|
386
|
+
if !location_name.nil? && location_name.to_s.length > 50
|
|
387
|
+
fail ArgumentError, 'invalid value for "location_name", the character length must be smaller than or equal to 50.'
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
@location_name = location_name
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
# Custom attribute writer method with validation
|
|
394
|
+
# @param [Object] latitude Value to be assigned
|
|
395
|
+
def latitude=(latitude)
|
|
396
|
+
if latitude.nil?
|
|
397
|
+
fail ArgumentError, 'latitude cannot be nil'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
@latitude = latitude
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# Custom attribute writer method with validation
|
|
404
|
+
# @param [Object] longitude Value to be assigned
|
|
405
|
+
def longitude=(longitude)
|
|
406
|
+
if longitude.nil?
|
|
407
|
+
fail ArgumentError, 'longitude cannot be nil'
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
@longitude = longitude
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Custom attribute writer method with validation
|
|
414
|
+
# @param [Object] location_type Value to be assigned
|
|
415
|
+
def location_type=(location_type)
|
|
416
|
+
if location_type.nil?
|
|
417
|
+
fail ArgumentError, 'location_type cannot be nil'
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
if location_type.to_s.length > 20
|
|
421
|
+
fail ArgumentError, 'invalid value for "location_type", the character length must be smaller than or equal to 20.'
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
if location_type.to_s.length < 1
|
|
425
|
+
fail ArgumentError, 'invalid value for "location_type", the character length must be great than or equal to 1.'
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
@location_type = location_type
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
# Custom attribute writer method with validation
|
|
432
|
+
# @param [Object] recipient_name Value to be assigned
|
|
433
|
+
def recipient_name=(recipient_name)
|
|
434
|
+
if !recipient_name.nil? && recipient_name.to_s.length > 50
|
|
435
|
+
fail ArgumentError, 'invalid value for "recipient_name", the character length must be smaller than or equal to 50.'
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
@recipient_name = recipient_name
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# Custom attribute writer method with validation
|
|
442
|
+
# @param [Object] country Value to be assigned
|
|
443
|
+
def country=(country)
|
|
444
|
+
if !country.nil? && country.to_s.length > 20
|
|
445
|
+
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 20.'
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
@country = country
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Custom attribute writer method with validation
|
|
452
|
+
# @param [Object] state Value to be assigned
|
|
453
|
+
def state=(state)
|
|
454
|
+
if !state.nil? && state.to_s.length > 20
|
|
455
|
+
fail ArgumentError, 'invalid value for "state", the character length must be smaller than or equal to 20.'
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
@state = state
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# Custom attribute writer method with validation
|
|
462
|
+
# @param [Object] city Value to be assigned
|
|
463
|
+
def city=(city)
|
|
464
|
+
if !city.nil? && city.to_s.length > 20
|
|
465
|
+
fail ArgumentError, 'invalid value for "city", the character length must be smaller than or equal to 20.'
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
@city = city
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
# Custom attribute writer method with validation
|
|
472
|
+
# @param [Object] district Value to be assigned
|
|
473
|
+
def district=(district)
|
|
474
|
+
if !district.nil? && district.to_s.length > 50
|
|
475
|
+
fail ArgumentError, 'invalid value for "district", the character length must be smaller than or equal to 50.'
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
@district = district
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
# Custom attribute writer method with validation
|
|
482
|
+
# @param [Object] street Value to be assigned
|
|
483
|
+
def street=(street)
|
|
484
|
+
if !street.nil? && street.to_s.length > 255
|
|
485
|
+
fail ArgumentError, 'invalid value for "street", the character length must be smaller than or equal to 255.'
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
@street = street
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Custom attribute writer method with validation
|
|
492
|
+
# @param [Object] zip_code Value to be assigned
|
|
493
|
+
def zip_code=(zip_code)
|
|
494
|
+
if !zip_code.nil? && zip_code.to_s.length > 20
|
|
495
|
+
fail ArgumentError, 'invalid value for "zip_code", the character length must be smaller than or equal to 20.'
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
@zip_code = zip_code
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
# Custom attribute writer method with validation
|
|
502
|
+
# @param [Object] address Value to be assigned
|
|
503
|
+
def address=(address)
|
|
504
|
+
if !address.nil? && address.to_s.length > 1000
|
|
505
|
+
fail ArgumentError, 'invalid value for "address", the character length must be smaller than or equal to 1000.'
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
@address = address
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
# Custom attribute writer method with validation
|
|
512
|
+
# @param [Object] map_type Value to be assigned
|
|
513
|
+
def map_type=(map_type)
|
|
514
|
+
if !map_type.nil? && map_type.to_s.length > 20
|
|
515
|
+
fail ArgumentError, 'invalid value for "map_type", the character length must be smaller than or equal to 20.'
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
@map_type = map_type
|
|
519
|
+
end
|
|
520
|
+
|
|
521
|
+
# Custom attribute writer method with validation
|
|
522
|
+
# @param [Object] remark Value to be assigned
|
|
523
|
+
def remark=(remark)
|
|
524
|
+
if !remark.nil? && remark.to_s.length > 5000
|
|
525
|
+
fail ArgumentError, 'invalid value for "remark", the character length must be smaller than or equal to 5000.'
|
|
526
|
+
end
|
|
527
|
+
|
|
528
|
+
@remark = remark
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
# Custom attribute writer method with validation
|
|
532
|
+
# @param [Object] tags Value to be assigned
|
|
533
|
+
def tags=(tags)
|
|
534
|
+
if !tags.nil? && tags.to_s.length > 1000
|
|
535
|
+
fail ArgumentError, 'invalid value for "tags", the character length must be smaller than or equal to 1000.'
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
@tags = tags
|
|
539
|
+
end
|
|
540
|
+
|
|
291
541
|
# Checks equality by comparing each attribute.
|
|
292
542
|
# @param [Object] Object to be compared
|
|
293
543
|
def ==(o)
|
|
294
544
|
return true if self.equal?(o)
|
|
295
545
|
self.class == o.class &&
|
|
546
|
+
location_name == o.location_name &&
|
|
296
547
|
latitude == o.latitude &&
|
|
297
548
|
longitude == o.longitude &&
|
|
298
|
-
location_name == o.location_name &&
|
|
299
549
|
location_type == o.location_type &&
|
|
300
550
|
recipient_name == o.recipient_name &&
|
|
301
551
|
phone_number == o.phone_number &&
|
|
@@ -326,7 +576,7 @@ module ZSGFClient
|
|
|
326
576
|
# Calculates hash code according to all attributes.
|
|
327
577
|
# @return [Integer] Hash code
|
|
328
578
|
def hash
|
|
329
|
-
[latitude, longitude,
|
|
579
|
+
[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, id].hash
|
|
330
580
|
end
|
|
331
581
|
|
|
332
582
|
# Builds the object from hash
|
|
@@ -14,16 +14,22 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class GetUserProfileResult
|
|
18
|
+
attr_accessor :user
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :currencies
|
|
21
|
+
|
|
22
|
+
attr_accessor :role
|
|
23
|
+
|
|
24
|
+
attr_accessor :location
|
|
21
25
|
|
|
22
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
27
|
def self.attribute_map
|
|
24
28
|
{
|
|
25
|
-
:'
|
|
26
|
-
:'
|
|
29
|
+
:'user' => :'user',
|
|
30
|
+
:'currencies' => :'currencies',
|
|
31
|
+
:'role' => :'role',
|
|
32
|
+
:'location' => :'location'
|
|
27
33
|
}
|
|
28
34
|
end
|
|
29
35
|
|
|
@@ -40,15 +46,18 @@ module ZSGFClient
|
|
|
40
46
|
# Attribute type mapping.
|
|
41
47
|
def self.openapi_types
|
|
42
48
|
{
|
|
43
|
-
:'
|
|
44
|
-
:'
|
|
49
|
+
:'user' => :'User',
|
|
50
|
+
:'currencies' => :'Array<UserCurrency>',
|
|
51
|
+
:'role' => :'String',
|
|
52
|
+
:'location' => :'GeoLocation'
|
|
45
53
|
}
|
|
46
54
|
end
|
|
47
55
|
|
|
48
56
|
# List of attributes with nullable: true
|
|
49
57
|
def self.openapi_nullable
|
|
50
58
|
Set.new([
|
|
51
|
-
:'
|
|
59
|
+
:'currencies',
|
|
60
|
+
:'role',
|
|
52
61
|
])
|
|
53
62
|
end
|
|
54
63
|
|
|
@@ -56,27 +65,35 @@ module ZSGFClient
|
|
|
56
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
66
|
def initialize(attributes = {})
|
|
58
67
|
if (!attributes.is_a?(Hash))
|
|
59
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::
|
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::GetUserProfileResult` initialize method"
|
|
60
69
|
end
|
|
61
70
|
|
|
62
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
72
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
64
73
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
74
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::
|
|
75
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::GetUserProfileResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
67
76
|
end
|
|
68
77
|
h[k.to_sym] = v
|
|
69
78
|
}
|
|
70
79
|
|
|
71
|
-
if attributes.key?(:'
|
|
72
|
-
self.
|
|
80
|
+
if attributes.key?(:'user')
|
|
81
|
+
self.user = attributes[:'user']
|
|
73
82
|
end
|
|
74
83
|
|
|
75
|
-
if attributes.key?(:'
|
|
76
|
-
if (value = attributes[:'
|
|
77
|
-
self.
|
|
84
|
+
if attributes.key?(:'currencies')
|
|
85
|
+
if (value = attributes[:'currencies']).is_a?(Array)
|
|
86
|
+
self.currencies = value
|
|
78
87
|
end
|
|
79
88
|
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'role')
|
|
91
|
+
self.role = attributes[:'role']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.key?(:'location')
|
|
95
|
+
self.location = attributes[:'location']
|
|
96
|
+
end
|
|
80
97
|
end
|
|
81
98
|
|
|
82
99
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -99,8 +116,10 @@ module ZSGFClient
|
|
|
99
116
|
def ==(o)
|
|
100
117
|
return true if self.equal?(o)
|
|
101
118
|
self.class == o.class &&
|
|
102
|
-
|
|
103
|
-
|
|
119
|
+
user == o.user &&
|
|
120
|
+
currencies == o.currencies &&
|
|
121
|
+
role == o.role &&
|
|
122
|
+
location == o.location
|
|
104
123
|
end
|
|
105
124
|
|
|
106
125
|
# @see the `==` method
|
|
@@ -112,7 +131,7 @@ module ZSGFClient
|
|
|
112
131
|
# Calculates hash code according to all attributes.
|
|
113
132
|
# @return [Integer] Hash code
|
|
114
133
|
def hash
|
|
115
|
-
[
|
|
134
|
+
[user, currencies, role, location].hash
|
|
116
135
|
end
|
|
117
136
|
|
|
118
137
|
# Builds the object from hash
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module ZSGFClient
|
|
17
|
-
class
|
|
17
|
+
class GetUserProfileResultApiResponse
|
|
18
18
|
# 状态码
|
|
19
19
|
attr_accessor :code
|
|
20
20
|
|
|
@@ -46,7 +46,7 @@ module ZSGFClient
|
|
|
46
46
|
def self.openapi_types
|
|
47
47
|
{
|
|
48
48
|
:'code' => :'Integer',
|
|
49
|
-
:'data' => :'
|
|
49
|
+
:'data' => :'GetUserProfileResult',
|
|
50
50
|
:'error' => :'String'
|
|
51
51
|
}
|
|
52
52
|
end
|
|
@@ -62,14 +62,14 @@ module ZSGFClient
|
|
|
62
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
63
|
def initialize(attributes = {})
|
|
64
64
|
if (!attributes.is_a?(Hash))
|
|
65
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::GetUserProfileResultApiResponse` initialize method"
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
69
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
71
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::GetUserProfileResultApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
73
|
end
|
|
74
74
|
h[k.to_sym] = v
|
|
75
75
|
}
|