zsgf_client 1.0.18
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 +7 -0
- data/Gemfile +9 -0
- data/README.md +430 -0
- data/Rakefile +10 -0
- data/docs/AccessTokenApi.md +307 -0
- data/docs/AccessTokenListResult.md +20 -0
- data/docs/AccessTokenListResultApiResponse.md +22 -0
- data/docs/AccessTokenPostRequest.md +28 -0
- data/docs/AccessTokenPutRequest.md +26 -0
- data/docs/AlipayApi.md +453 -0
- data/docs/AlipayCreateOrderPagePayRequest.md +24 -0
- data/docs/AlipayCreateOrderRequest.md +24 -0
- data/docs/AlipayCreateOrderWapPayRequest.md +24 -0
- data/docs/AlipayTradeQueryResponse.md +154 -0
- data/docs/AlipayTradeQueryResponseApiResponse.md +22 -0
- data/docs/AlipayTradeRefundResponse.md +76 -0
- data/docs/AlipayTradeRefundResponseApiResponse.md +22 -0
- data/docs/App.md +50 -0
- data/docs/AppApi.md +735 -0
- data/docs/AppApiResponse.md +22 -0
- data/docs/AppCheckVersionResult.md +20 -0
- data/docs/AppCheckVersionResultApiResponse.md +22 -0
- data/docs/AppInfoItem.md +32 -0
- data/docs/AppInfoResult.md +20 -0
- data/docs/AppInfoResultApiResponse.md +22 -0
- data/docs/AppListResult.md +20 -0
- data/docs/AppListResultApiResponse.md +22 -0
- data/docs/AppPostResult.md +20 -0
- data/docs/AppPostResultApiResponse.md +22 -0
- data/docs/AppProperty.md +22 -0
- data/docs/AppSetting.md +36 -0
- data/docs/AppSettingApi.md +1495 -0
- data/docs/AppSettingApiResponse.md +22 -0
- data/docs/AppSettingGroupPostResult.md +18 -0
- data/docs/AppSettingGroupPostResultApiResponse.md +22 -0
- data/docs/AppSettingItemPostResult.md +18 -0
- data/docs/AppSettingItemPostResultApiResponse.md +22 -0
- data/docs/AppSettingListApiResponse.md +22 -0
- data/docs/AppSettingProviderPostResult.md +18 -0
- data/docs/AppSettingProviderPostResultApiResponse.md +22 -0
- data/docs/AppSettingSettingPostResult.md +18 -0
- data/docs/AppSettingSettingPostResultApiResponse.md +22 -0
- data/docs/AppUserConsentModel.md +30 -0
- data/docs/AppUserConsentModelListApiResponse.md +22 -0
- data/docs/AppUserListResponse.md +40 -0
- data/docs/AppUserResetPwdRequest.md +24 -0
- data/docs/AuthorizePolicy.md +28 -0
- data/docs/AuthorizePolicyApi.md +377 -0
- data/docs/AuthorizePolicyApiResponse.md +22 -0
- data/docs/AuthorizePolicyListApiResponse.md +22 -0
- data/docs/AuthorizeResult.md +26 -0
- data/docs/AuthorizeResultApiResponse.md +22 -0
- data/docs/BkAgentRespInfo.md +26 -0
- data/docs/BooleanApiResponse.md +22 -0
- data/docs/ChargeInfo.md +30 -0
- data/docs/CommonFriendModel.md +22 -0
- data/docs/ContributeDetail.md +20 -0
- data/docs/CreateOrderRequest.md +24 -0
- data/docs/CreateOrderResult.md +20 -0
- data/docs/CreateOrderResultApiResponse.md +22 -0
- data/docs/CreatePostResult.md +18 -0
- data/docs/CreatePostResultApiResponse.md +22 -0
- data/docs/Currency.md +48 -0
- data/docs/CurrencyApi.md +677 -0
- data/docs/CurrencyApiResponse.md +22 -0
- data/docs/CurrencyConsumeRequest.md +26 -0
- data/docs/CurrencyExchangeRate.md +30 -0
- data/docs/CurrencyExchangeRateApiResponse.md +22 -0
- data/docs/CurrencyListApiResponse.md +22 -0
- data/docs/CurrencyTransaction.md +40 -0
- data/docs/CurrencyTransactionListApiResponse.md +22 -0
- data/docs/DingTalkApi.md +81 -0
- data/docs/DirectoryItem.md +24 -0
- data/docs/EmailSignInRequest.md +22 -0
- data/docs/EmailSignUpRequest.md +32 -0
- data/docs/EnterprisePayInfo.md +22 -0
- data/docs/ExchangeCurrencyRequest.md +28 -0
- data/docs/ExchangeRatePutRequest.md +22 -0
- data/docs/ExecuteFunctionRequest.md +18 -0
- data/docs/FileApi.md +385 -0
- data/docs/FileItem.md +24 -0
- data/docs/FileListResult.md +26 -0
- data/docs/FileListResultApiResponse.md +22 -0
- data/docs/FollowerModel.md +40 -0
- data/docs/FollowerPutModel.md +28 -0
- data/docs/FulfillmentDetail.md +22 -0
- data/docs/GeoLocationModel.md +58 -0
- data/docs/GeoLocationModelApiResponse.md +22 -0
- data/docs/GeoLocationResponseModel.md +60 -0
- data/docs/GoodsDetail.md +38 -0
- data/docs/GrantRequest.md +32 -0
- data/docs/GrantResult.md +24 -0
- data/docs/GrantResultApiResponse.md +22 -0
- data/docs/HbFqPayInfo.md +20 -0
- data/docs/Int64ApiResponse.md +22 -0
- data/docs/IntactChargeInfo.md +40 -0
- data/docs/ListResponseItem.md +36 -0
- data/docs/ListResponseItemListApiResponse.md +22 -0
- data/docs/OAuthAccountBindRequest.md +26 -0
- data/docs/OAuthAccountPutBindRequest.md +22 -0
- data/docs/OAuthAccountSignInRequest.md +22 -0
- data/docs/OAuthApi.md +361 -0
- data/docs/ObjectApiResponse.md +22 -0
- data/docs/ObjectListApiResponse.md +22 -0
- data/docs/Order.md +54 -0
- data/docs/OrderApi.md +243 -0
- data/docs/OrderApiResponse.md +22 -0
- data/docs/OrderListResult.md +20 -0
- data/docs/OrderListResultApiResponse.md +22 -0
- data/docs/PaymentInfoWithId.md +20 -0
- data/docs/PhoneSignInRequest.md +22 -0
- data/docs/PhoneSignUpRequest.md +32 -0
- data/docs/PostIndexRequest.md +20 -0
- data/docs/PostResult.md +18 -0
- data/docs/PostResultApiResponse.md +22 -0
- data/docs/PresetPayToolInfo.md +20 -0
- data/docs/ProfileResult.md +44 -0
- data/docs/ProfileResultApiResponse.md +22 -0
- data/docs/Project.md +34 -0
- data/docs/ProjectApi.md +367 -0
- data/docs/ProjectApiResponse.md +22 -0
- data/docs/ProjectListResult.md +20 -0
- data/docs/ProjectListResultApiResponse.md +22 -0
- data/docs/QRCodePreSignInRequest.md +22 -0
- data/docs/QRCodeScanRequest.md +18 -0
- data/docs/QRCodeSignInRequest.md +18 -0
- data/docs/QRCodeSignUpRequest.md +34 -0
- data/docs/RechargePointRequest.md +26 -0
- data/docs/RecommendFriend.md +36 -0
- data/docs/RefundChargeInfo.md +24 -0
- data/docs/RefundSubFee.md +20 -0
- data/docs/ReturnPageNotifyRequest.md +40 -0
- data/docs/SendEmailCodeRequest.md +20 -0
- data/docs/SendSMSCodeRequest.md +20 -0
- data/docs/ServiceGroup.md +36 -0
- data/docs/ServiceGroupApiResponse.md +22 -0
- data/docs/ServiceGroupListApiResponse.md +22 -0
- data/docs/ServiceItem.md +48 -0
- data/docs/ServiceItemApiResponse.md +22 -0
- data/docs/ServiceItemListApiResponse.md +22 -0
- data/docs/ServiceProvider.md +38 -0
- data/docs/ServiceProviderApiResponse.md +22 -0
- data/docs/ServiceProviderListApiResponse.md +22 -0
- data/docs/ServiceSettingApi.md +1459 -0
- data/docs/ServiceSettingGroupPostResult.md +18 -0
- data/docs/ServiceSettingGroupPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingItemPostResult.md +18 -0
- data/docs/ServiceSettingItemPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingProviderPostResult.md +18 -0
- data/docs/ServiceSettingProviderPostResultApiResponse.md +22 -0
- data/docs/ServiceSettingSettingPostResult.md +18 -0
- data/docs/ServiceSettingSettingPostResultApiResponse.md +22 -0
- data/docs/Settings.md +40 -0
- data/docs/SettingsApiResponse.md +22 -0
- data/docs/SettingsListApiResponse.md +22 -0
- data/docs/SetupCode.md +22 -0
- data/docs/SetupCodeApiResponse.md +22 -0
- data/docs/SignInRequest.md +22 -0
- data/docs/SignUpRequest.md +34 -0
- data/docs/StorageApi.md +1229 -0
- data/docs/StorageListResult.md +26 -0
- data/docs/StorageListResultApiResponse.md +22 -0
- data/docs/StringApiResponse.md +22 -0
- data/docs/StringListApiResponse.md +22 -0
- data/docs/SubFee.md +22 -0
- data/docs/SystemDirectoryItem.md +24 -0
- data/docs/SystemFileApi.md +371 -0
- data/docs/SystemFileItem.md +24 -0
- data/docs/SystemFileListResult.md +22 -0
- data/docs/SystemFileListResultApiResponse.md +22 -0
- data/docs/TapPayInfo.md +18 -0
- data/docs/Team.md +36 -0
- data/docs/TeamApi.md +297 -0
- data/docs/TokenModel.md +22 -0
- data/docs/TokenModelApiResponse.md +22 -0
- data/docs/TradeFundBill.md +26 -0
- data/docs/TradeSettleDetail.md +32 -0
- data/docs/TradeSettleInfo.md +20 -0
- data/docs/UnionIDSignInRequest.md +22 -0
- data/docs/UnionIDSignUpRequest.md +38 -0
- data/docs/UpdateProfileRequest.md +50 -0
- data/docs/User.md +90 -0
- data/docs/UserAccessToken.md +38 -0
- data/docs/UserApi.md +3303 -0
- data/docs/UserApiResponse.md +22 -0
- data/docs/UserCommonInterestsResult.md +20 -0
- data/docs/UserCommonInterestsResultApiResponse.md +22 -0
- data/docs/UserCurrency.md +24 -0
- data/docs/UserCurrencyApi.md +403 -0
- data/docs/UserCurrencyCurrencyTransResult.md +20 -0
- data/docs/UserCurrencyCurrencyTransResultApiResponse.md +22 -0
- data/docs/UserCurrencyListApiResponse.md +22 -0
- data/docs/UserFollowersResult.md +20 -0
- data/docs/UserFollowersResultApiResponse.md +22 -0
- data/docs/UserFollowingResult.md +20 -0
- data/docs/UserFollowingResultApiResponse.md +22 -0
- data/docs/UserFriendsNearByResult.md +20 -0
- data/docs/UserFriendsNearByResultApiResponse.md +22 -0
- data/docs/UserListResult.md +20 -0
- data/docs/UserListResultApiResponse.md +22 -0
- data/docs/UserLocationPostResult.md +18 -0
- data/docs/UserLocationPostResultApiResponse.md +22 -0
- data/docs/UserLocationsResult.md +20 -0
- data/docs/UserLocationsResultApiResponse.md +22 -0
- data/docs/UserLogins.md +36 -0
- data/docs/UserLoginsListApiResponse.md +22 -0
- data/docs/UserMutualFollowersResult.md +20 -0
- data/docs/UserMutualFollowersResultApiResponse.md +22 -0
- data/docs/UserMutualFollowingsResult.md +20 -0
- data/docs/UserMutualFollowingsResultApiResponse.md +22 -0
- data/docs/UserProfileResult.md +48 -0
- data/docs/UserProfileResultApiResponse.md +22 -0
- data/docs/UserQRCodeScanResult.md +34 -0
- data/docs/UserQRCodeScanResultApiResponse.md +22 -0
- data/docs/UserSetting.md +38 -0
- data/docs/UserSettingApi.md +379 -0
- data/docs/UserSettingApiResponse.md +22 -0
- data/docs/UserSettingListApiResponse.md +22 -0
- data/docs/UserSettingPostResult.md +18 -0
- data/docs/UserSettingPostResultApiResponse.md +22 -0
- data/docs/VoucherDetail.md +40 -0
- data/docs/WechatApi.md +751 -0
- data/docs/WechatJSConfigResult.md +26 -0
- data/docs/WechatJSConfigResultApiResponse.md +22 -0
- data/lib/zsgf_client/api/access_token_api.rb +309 -0
- data/lib/zsgf_client/api/alipay_api.rb +437 -0
- data/lib/zsgf_client/api/app_api.rb +675 -0
- data/lib/zsgf_client/api/app_setting_api.rb +1446 -0
- data/lib/zsgf_client/api/authorize_policy_api.rb +375 -0
- data/lib/zsgf_client/api/currency_api.rb +667 -0
- data/lib/zsgf_client/api/ding_talk_api.rb +88 -0
- data/lib/zsgf_client/api/file_api.rb +369 -0
- data/lib/zsgf_client/api/o_auth_api.rb +349 -0
- data/lib/zsgf_client/api/order_api.rb +251 -0
- data/lib/zsgf_client/api/project_api.rb +345 -0
- data/lib/zsgf_client/api/service_setting_api.rb +1340 -0
- data/lib/zsgf_client/api/storage_api.rb +1311 -0
- data/lib/zsgf_client/api/system_file_api.rb +333 -0
- data/lib/zsgf_client/api/team_api.rb +282 -0
- data/lib/zsgf_client/api/user_api.rb +3164 -0
- data/lib/zsgf_client/api/user_currency_api.rb +445 -0
- data/lib/zsgf_client/api/user_setting_api.rb +378 -0
- data/lib/zsgf_client/api/wechat_api.rb +712 -0
- data/lib/zsgf_client/api_client.rb +393 -0
- data/lib/zsgf_client/api_error.rb +58 -0
- data/lib/zsgf_client/configuration.rb +312 -0
- data/lib/zsgf_client/models/access_token_list_result.rb +232 -0
- data/lib/zsgf_client/models/access_token_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/access_token_post_request.rb +322 -0
- data/lib/zsgf_client/models/access_token_put_request.rb +299 -0
- data/lib/zsgf_client/models/alipay_create_order_page_pay_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_create_order_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_create_order_wap_pay_request.rb +330 -0
- data/lib/zsgf_client/models/alipay_trade_query_response.rb +909 -0
- data/lib/zsgf_client/models/alipay_trade_query_response_api_response.rb +245 -0
- data/lib/zsgf_client/models/alipay_trade_refund_response.rb +515 -0
- data/lib/zsgf_client/models/alipay_trade_refund_response_api_response.rb +245 -0
- data/lib/zsgf_client/models/app.rb +583 -0
- data/lib/zsgf_client/models/app_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_check_version_result.rb +235 -0
- data/lib/zsgf_client/models/app_check_version_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_info_item.rb +289 -0
- data/lib/zsgf_client/models/app_info_result.rb +232 -0
- data/lib/zsgf_client/models/app_info_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_list_result.rb +232 -0
- data/lib/zsgf_client/models/app_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_post_result.rb +230 -0
- data/lib/zsgf_client/models/app_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_property.rb +241 -0
- data/lib/zsgf_client/models/app_setting.rb +437 -0
- data/lib/zsgf_client/models/app_setting_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_group_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_group_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_item_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_item_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/app_setting_provider_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_provider_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_setting_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/app_setting_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/app_user_consent_model.rb +278 -0
- data/lib/zsgf_client/models/app_user_consent_model_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/app_user_list_response.rb +327 -0
- data/lib/zsgf_client/models/app_user_reset_pwd_request.rb +323 -0
- data/lib/zsgf_client/models/authorize_policy.rb +290 -0
- data/lib/zsgf_client/models/authorize_policy_api_response.rb +245 -0
- data/lib/zsgf_client/models/authorize_policy_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/authorize_result.rb +259 -0
- data/lib/zsgf_client/models/authorize_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/bk_agent_resp_info.rb +261 -0
- data/lib/zsgf_client/models/boolean_api_response.rb +246 -0
- data/lib/zsgf_client/models/charge_info.rb +283 -0
- data/lib/zsgf_client/models/common_friend_model.rb +240 -0
- data/lib/zsgf_client/models/contribute_detail.rb +231 -0
- data/lib/zsgf_client/models/create_order_request.rb +351 -0
- data/lib/zsgf_client/models/create_order_result.rb +230 -0
- data/lib/zsgf_client/models/create_order_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/create_post_result.rb +220 -0
- data/lib/zsgf_client/models/create_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency.rb +484 -0
- data/lib/zsgf_client/models/currency_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency_consume_request.rb +307 -0
- data/lib/zsgf_client/models/currency_exchange_rate.rb +330 -0
- data/lib/zsgf_client/models/currency_exchange_rate_api_response.rb +245 -0
- data/lib/zsgf_client/models/currency_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/currency_transaction.rb +413 -0
- data/lib/zsgf_client/models/currency_transaction_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/directory_item.rb +249 -0
- data/lib/zsgf_client/models/email_sign_in_request.rb +303 -0
- data/lib/zsgf_client/models/email_sign_up_request.rb +452 -0
- data/lib/zsgf_client/models/enterprise_pay_info.rb +240 -0
- data/lib/zsgf_client/models/exchange_currency_request.rb +343 -0
- data/lib/zsgf_client/models/exchange_rate_put_request.rb +240 -0
- data/lib/zsgf_client/models/execute_function_request.rb +222 -0
- data/lib/zsgf_client/models/file_item.rb +249 -0
- data/lib/zsgf_client/models/file_list_result.rb +262 -0
- data/lib/zsgf_client/models/file_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/follower_model.rb +325 -0
- data/lib/zsgf_client/models/follower_put_model.rb +269 -0
- data/lib/zsgf_client/models/fulfillment_detail.rb +241 -0
- data/lib/zsgf_client/models/geo_location_model.rb +436 -0
- data/lib/zsgf_client/models/geo_location_model_api_response.rb +245 -0
- data/lib/zsgf_client/models/geo_location_response_model.rb +446 -0
- data/lib/zsgf_client/models/goods_detail.rb +320 -0
- data/lib/zsgf_client/models/grant_request.rb +387 -0
- data/lib/zsgf_client/models/grant_result.rb +249 -0
- data/lib/zsgf_client/models/grant_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/hb_fq_pay_info.rb +231 -0
- data/lib/zsgf_client/models/int64_api_response.rb +246 -0
- data/lib/zsgf_client/models/intact_charge_info.rb +330 -0
- data/lib/zsgf_client/models/list_response_item.rb +308 -0
- data/lib/zsgf_client/models/list_response_item_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/o_auth_account_bind_request.rb +336 -0
- data/lib/zsgf_client/models/o_auth_account_put_bind_request.rb +243 -0
- data/lib/zsgf_client/models/o_auth_account_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/object_api_response.rb +247 -0
- data/lib/zsgf_client/models/object_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/order.rb +547 -0
- data/lib/zsgf_client/models/order_api_response.rb +245 -0
- data/lib/zsgf_client/models/order_list_result.rb +232 -0
- data/lib/zsgf_client/models/order_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/payment_info_with_id.rb +233 -0
- data/lib/zsgf_client/models/phone_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/phone_sign_up_request.rb +471 -0
- data/lib/zsgf_client/models/post_index_request.rb +251 -0
- data/lib/zsgf_client/models/post_result.rb +220 -0
- data/lib/zsgf_client/models/post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/preset_pay_tool_info.rb +233 -0
- data/lib/zsgf_client/models/profile_result.rb +346 -0
- data/lib/zsgf_client/models/profile_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/project.rb +353 -0
- data/lib/zsgf_client/models/project_api_response.rb +245 -0
- data/lib/zsgf_client/models/project_list_result.rb +232 -0
- data/lib/zsgf_client/models/project_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/qr_code_pre_sign_in_request.rb +241 -0
- data/lib/zsgf_client/models/qr_code_scan_request.rb +237 -0
- data/lib/zsgf_client/models/qr_code_sign_in_request.rb +237 -0
- data/lib/zsgf_client/models/qr_code_sign_up_request.rb +454 -0
- data/lib/zsgf_client/models/recharge_point_request.rb +307 -0
- data/lib/zsgf_client/models/recommend_friend.rb +306 -0
- data/lib/zsgf_client/models/refund_charge_info.rb +253 -0
- data/lib/zsgf_client/models/refund_sub_fee.rb +231 -0
- data/lib/zsgf_client/models/return_page_notify_request.rb +344 -0
- data/lib/zsgf_client/models/send_email_code_request.rb +282 -0
- data/lib/zsgf_client/models/send_sms_code_request.rb +283 -0
- data/lib/zsgf_client/models/service_group.rb +361 -0
- data/lib/zsgf_client/models/service_group_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_group_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_item.rb +502 -0
- data/lib/zsgf_client/models/service_item_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_item_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_provider.rb +403 -0
- data/lib/zsgf_client/models/service_provider_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_provider_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/service_setting_group_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_group_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_item_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_item_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_provider_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_provider_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/service_setting_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/service_setting_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/settings.rb +445 -0
- data/lib/zsgf_client/models/settings_api_response.rb +245 -0
- data/lib/zsgf_client/models/settings_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/setup_code.rb +241 -0
- data/lib/zsgf_client/models/setup_code_api_response.rb +245 -0
- data/lib/zsgf_client/models/sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/sign_up_request.rb +482 -0
- data/lib/zsgf_client/models/storage_list_result.rb +258 -0
- data/lib/zsgf_client/models/storage_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/string_api_response.rb +247 -0
- data/lib/zsgf_client/models/string_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/sub_fee.rb +241 -0
- data/lib/zsgf_client/models/system_directory_item.rb +249 -0
- data/lib/zsgf_client/models/system_file_item.rb +249 -0
- data/lib/zsgf_client/models/system_file_list_result.rb +244 -0
- data/lib/zsgf_client/models/system_file_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/tap_pay_info.rb +221 -0
- data/lib/zsgf_client/models/team.rb +376 -0
- data/lib/zsgf_client/models/token_model.rb +240 -0
- data/lib/zsgf_client/models/token_model_api_response.rb +245 -0
- data/lib/zsgf_client/models/trade_fund_bill.rb +261 -0
- data/lib/zsgf_client/models/trade_settle_detail.rb +291 -0
- data/lib/zsgf_client/models/trade_settle_info.rb +233 -0
- data/lib/zsgf_client/models/union_id_sign_in_request.rb +292 -0
- data/lib/zsgf_client/models/union_id_sign_up_request.rb +549 -0
- data/lib/zsgf_client/models/update_profile_request.rb +608 -0
- data/lib/zsgf_client/models/user.rb +906 -0
- data/lib/zsgf_client/models/user_access_token.rb +357 -0
- data/lib/zsgf_client/models/user_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_common_interests_result.rb +232 -0
- data/lib/zsgf_client/models/user_common_interests_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_currency.rb +268 -0
- data/lib/zsgf_client/models/user_currency_currency_trans_result.rb +232 -0
- data/lib/zsgf_client/models/user_currency_currency_trans_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_currency_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_followers_result.rb +232 -0
- data/lib/zsgf_client/models/user_followers_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_following_result.rb +232 -0
- data/lib/zsgf_client/models/user_following_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_friends_near_by_result.rb +232 -0
- data/lib/zsgf_client/models/user_friends_near_by_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_list_result.rb +232 -0
- data/lib/zsgf_client/models/user_list_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_location_post_result.rb +220 -0
- data/lib/zsgf_client/models/user_location_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_locations_result.rb +232 -0
- data/lib/zsgf_client/models/user_locations_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_logins.rb +377 -0
- data/lib/zsgf_client/models/user_logins_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_mutual_followers_result.rb +232 -0
- data/lib/zsgf_client/models/user_mutual_followers_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_mutual_followings_result.rb +232 -0
- data/lib/zsgf_client/models/user_mutual_followings_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_profile_result.rb +368 -0
- data/lib/zsgf_client/models/user_profile_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_qr_code_scan_result.rb +300 -0
- data/lib/zsgf_client/models/user_qr_code_scan_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_setting.rb +464 -0
- data/lib/zsgf_client/models/user_setting_api_response.rb +245 -0
- data/lib/zsgf_client/models/user_setting_list_api_response.rb +249 -0
- data/lib/zsgf_client/models/user_setting_post_result.rb +220 -0
- data/lib/zsgf_client/models/user_setting_post_result_api_response.rb +245 -0
- data/lib/zsgf_client/models/voucher_detail.rb +333 -0
- data/lib/zsgf_client/models/wechat_js_config_result.rb +263 -0
- data/lib/zsgf_client/models/wechat_js_config_result_api_response.rb +245 -0
- data/lib/zsgf_client/version.rb +15 -0
- data/lib/zsgf_client.rb +259 -0
- data/spec/api/access_token_api_spec.rb +90 -0
- data/spec/api/alipay_api_spec.rb +114 -0
- data/spec/api/app_api_spec.rb +162 -0
- data/spec/api/app_setting_api_spec.rb +307 -0
- data/spec/api/authorize_policy_api_spec.rb +102 -0
- data/spec/api/currency_api_spec.rb +159 -0
- data/spec/api/ding_talk_api_spec.rb +48 -0
- data/spec/api/file_api_spec.rb +104 -0
- data/spec/api/o_auth_api_spec.rb +95 -0
- data/spec/api/order_api_spec.rb +82 -0
- data/spec/api/project_api_spec.rb +97 -0
- data/spec/api/service_setting_api_spec.rb +289 -0
- data/spec/api/storage_api_spec.rb +268 -0
- data/spec/api/system_file_api_spec.rb +97 -0
- data/spec/api/team_api_spec.rb +85 -0
- data/spec/api/user_api_spec.rb +639 -0
- data/spec/api/user_currency_api_spec.rb +114 -0
- data/spec/api/user_setting_api_spec.rb +103 -0
- data/spec/api/wechat_api_spec.rb +167 -0
- data/spec/models/access_token_list_result_api_response_spec.rb +48 -0
- data/spec/models/access_token_list_result_spec.rb +42 -0
- data/spec/models/access_token_post_request_spec.rb +66 -0
- data/spec/models/access_token_put_request_spec.rb +60 -0
- data/spec/models/alipay_create_order_page_pay_request_spec.rb +54 -0
- data/spec/models/alipay_create_order_request_spec.rb +54 -0
- data/spec/models/alipay_create_order_wap_pay_request_spec.rb +54 -0
- data/spec/models/alipay_trade_query_response_api_response_spec.rb +48 -0
- data/spec/models/alipay_trade_query_response_spec.rb +444 -0
- data/spec/models/alipay_trade_refund_response_api_response_spec.rb +48 -0
- data/spec/models/alipay_trade_refund_response_spec.rb +210 -0
- data/spec/models/app_api_response_spec.rb +48 -0
- data/spec/models/app_check_version_result_api_response_spec.rb +48 -0
- data/spec/models/app_check_version_result_spec.rb +42 -0
- data/spec/models/app_info_item_spec.rb +78 -0
- data/spec/models/app_info_result_api_response_spec.rb +48 -0
- data/spec/models/app_info_result_spec.rb +42 -0
- data/spec/models/app_list_result_api_response_spec.rb +48 -0
- data/spec/models/app_list_result_spec.rb +42 -0
- data/spec/models/app_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_post_result_spec.rb +42 -0
- data/spec/models/app_property_spec.rb +48 -0
- data/spec/models/app_setting_api_response_spec.rb +48 -0
- data/spec/models/app_setting_group_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_group_post_result_spec.rb +36 -0
- data/spec/models/app_setting_item_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_item_post_result_spec.rb +36 -0
- data/spec/models/app_setting_list_api_response_spec.rb +48 -0
- data/spec/models/app_setting_provider_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_provider_post_result_spec.rb +36 -0
- data/spec/models/app_setting_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/app_setting_setting_post_result_spec.rb +36 -0
- data/spec/models/app_setting_spec.rb +90 -0
- data/spec/models/app_spec.rb +132 -0
- data/spec/models/app_user_consent_model_list_api_response_spec.rb +48 -0
- data/spec/models/app_user_consent_model_spec.rb +72 -0
- data/spec/models/app_user_list_response_spec.rb +102 -0
- data/spec/models/app_user_reset_pwd_request_spec.rb +54 -0
- data/spec/models/authorize_policy_api_response_spec.rb +48 -0
- data/spec/models/authorize_policy_list_api_response_spec.rb +48 -0
- data/spec/models/authorize_policy_spec.rb +66 -0
- data/spec/models/authorize_result_api_response_spec.rb +48 -0
- data/spec/models/authorize_result_spec.rb +60 -0
- data/spec/models/bk_agent_resp_info_spec.rb +60 -0
- data/spec/models/boolean_api_response_spec.rb +48 -0
- data/spec/models/charge_info_spec.rb +72 -0
- data/spec/models/common_friend_model_spec.rb +48 -0
- data/spec/models/contribute_detail_spec.rb +42 -0
- data/spec/models/create_order_request_spec.rb +54 -0
- data/spec/models/create_order_result_api_response_spec.rb +48 -0
- data/spec/models/create_order_result_spec.rb +42 -0
- data/spec/models/create_post_result_api_response_spec.rb +48 -0
- data/spec/models/create_post_result_spec.rb +36 -0
- data/spec/models/currency_api_response_spec.rb +48 -0
- data/spec/models/currency_consume_request_spec.rb +60 -0
- data/spec/models/currency_exchange_rate_api_response_spec.rb +48 -0
- data/spec/models/currency_exchange_rate_spec.rb +72 -0
- data/spec/models/currency_list_api_response_spec.rb +48 -0
- data/spec/models/currency_spec.rb +126 -0
- data/spec/models/currency_transaction_list_api_response_spec.rb +48 -0
- data/spec/models/currency_transaction_spec.rb +102 -0
- data/spec/models/directory_item_spec.rb +54 -0
- data/spec/models/email_sign_in_request_spec.rb +48 -0
- data/spec/models/email_sign_up_request_spec.rb +78 -0
- data/spec/models/enterprise_pay_info_spec.rb +48 -0
- data/spec/models/exchange_currency_request_spec.rb +66 -0
- data/spec/models/exchange_rate_put_request_spec.rb +48 -0
- data/spec/models/execute_function_request_spec.rb +36 -0
- data/spec/models/file_item_spec.rb +54 -0
- data/spec/models/file_list_result_api_response_spec.rb +48 -0
- data/spec/models/file_list_result_spec.rb +60 -0
- data/spec/models/follower_model_spec.rb +102 -0
- data/spec/models/follower_put_model_spec.rb +66 -0
- data/spec/models/fulfillment_detail_spec.rb +48 -0
- data/spec/models/geo_location_model_api_response_spec.rb +48 -0
- data/spec/models/geo_location_model_spec.rb +156 -0
- data/spec/models/geo_location_response_model_spec.rb +162 -0
- data/spec/models/goods_detail_spec.rb +96 -0
- data/spec/models/grant_request_spec.rb +78 -0
- data/spec/models/grant_result_api_response_spec.rb +48 -0
- data/spec/models/grant_result_spec.rb +54 -0
- data/spec/models/hb_fq_pay_info_spec.rb +42 -0
- data/spec/models/int64_api_response_spec.rb +48 -0
- data/spec/models/intact_charge_info_spec.rb +102 -0
- data/spec/models/list_response_item_list_api_response_spec.rb +48 -0
- data/spec/models/list_response_item_spec.rb +90 -0
- data/spec/models/o_auth_account_bind_request_spec.rb +60 -0
- data/spec/models/o_auth_account_put_bind_request_spec.rb +48 -0
- data/spec/models/o_auth_account_sign_in_request_spec.rb +48 -0
- data/spec/models/object_api_response_spec.rb +48 -0
- data/spec/models/object_list_api_response_spec.rb +48 -0
- data/spec/models/order_api_response_spec.rb +48 -0
- data/spec/models/order_list_result_api_response_spec.rb +48 -0
- data/spec/models/order_list_result_spec.rb +42 -0
- data/spec/models/order_spec.rb +144 -0
- data/spec/models/payment_info_with_id_spec.rb +42 -0
- data/spec/models/phone_sign_in_request_spec.rb +48 -0
- data/spec/models/phone_sign_up_request_spec.rb +78 -0
- data/spec/models/post_index_request_spec.rb +42 -0
- data/spec/models/post_result_api_response_spec.rb +48 -0
- data/spec/models/post_result_spec.rb +36 -0
- data/spec/models/preset_pay_tool_info_spec.rb +42 -0
- data/spec/models/profile_result_api_response_spec.rb +48 -0
- data/spec/models/profile_result_spec.rb +114 -0
- data/spec/models/project_api_response_spec.rb +48 -0
- data/spec/models/project_list_result_api_response_spec.rb +48 -0
- data/spec/models/project_list_result_spec.rb +42 -0
- data/spec/models/project_spec.rb +84 -0
- data/spec/models/qr_code_pre_sign_in_request_spec.rb +48 -0
- data/spec/models/qr_code_scan_request_spec.rb +36 -0
- data/spec/models/qr_code_sign_in_request_spec.rb +36 -0
- data/spec/models/qr_code_sign_up_request_spec.rb +84 -0
- data/spec/models/recharge_point_request_spec.rb +60 -0
- data/spec/models/recommend_friend_spec.rb +90 -0
- data/spec/models/refund_charge_info_spec.rb +54 -0
- data/spec/models/refund_sub_fee_spec.rb +42 -0
- data/spec/models/return_page_notify_request_spec.rb +102 -0
- data/spec/models/send_email_code_request_spec.rb +42 -0
- data/spec/models/send_sms_code_request_spec.rb +42 -0
- data/spec/models/service_group_api_response_spec.rb +48 -0
- data/spec/models/service_group_list_api_response_spec.rb +48 -0
- data/spec/models/service_group_spec.rb +90 -0
- data/spec/models/service_item_api_response_spec.rb +48 -0
- data/spec/models/service_item_list_api_response_spec.rb +48 -0
- data/spec/models/service_item_spec.rb +126 -0
- data/spec/models/service_provider_api_response_spec.rb +48 -0
- data/spec/models/service_provider_list_api_response_spec.rb +48 -0
- data/spec/models/service_provider_spec.rb +96 -0
- data/spec/models/service_setting_group_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_group_post_result_spec.rb +36 -0
- data/spec/models/service_setting_item_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_item_post_result_spec.rb +36 -0
- data/spec/models/service_setting_provider_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_provider_post_result_spec.rb +36 -0
- data/spec/models/service_setting_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/service_setting_setting_post_result_spec.rb +36 -0
- data/spec/models/settings_api_response_spec.rb +48 -0
- data/spec/models/settings_list_api_response_spec.rb +48 -0
- data/spec/models/settings_spec.rb +102 -0
- data/spec/models/setup_code_api_response_spec.rb +48 -0
- data/spec/models/setup_code_spec.rb +48 -0
- data/spec/models/sign_in_request_spec.rb +48 -0
- data/spec/models/sign_up_request_spec.rb +84 -0
- data/spec/models/storage_list_result_api_response_spec.rb +48 -0
- data/spec/models/storage_list_result_spec.rb +60 -0
- data/spec/models/string_api_response_spec.rb +48 -0
- data/spec/models/string_list_api_response_spec.rb +48 -0
- data/spec/models/sub_fee_spec.rb +48 -0
- data/spec/models/system_directory_item_spec.rb +54 -0
- data/spec/models/system_file_item_spec.rb +54 -0
- data/spec/models/system_file_list_result_api_response_spec.rb +48 -0
- data/spec/models/system_file_list_result_spec.rb +48 -0
- data/spec/models/tap_pay_info_spec.rb +36 -0
- data/spec/models/team_spec.rb +90 -0
- data/spec/models/token_model_api_response_spec.rb +48 -0
- data/spec/models/token_model_spec.rb +48 -0
- data/spec/models/trade_fund_bill_spec.rb +60 -0
- data/spec/models/trade_settle_detail_spec.rb +78 -0
- data/spec/models/trade_settle_info_spec.rb +42 -0
- data/spec/models/union_id_sign_in_request_spec.rb +48 -0
- data/spec/models/union_id_sign_up_request_spec.rb +96 -0
- data/spec/models/update_profile_request_spec.rb +132 -0
- data/spec/models/user_access_token_spec.rb +96 -0
- data/spec/models/user_api_response_spec.rb +48 -0
- data/spec/models/user_common_interests_result_api_response_spec.rb +48 -0
- data/spec/models/user_common_interests_result_spec.rb +42 -0
- data/spec/models/user_currency_currency_trans_result_api_response_spec.rb +48 -0
- data/spec/models/user_currency_currency_trans_result_spec.rb +42 -0
- data/spec/models/user_currency_list_api_response_spec.rb +48 -0
- data/spec/models/user_currency_spec.rb +54 -0
- data/spec/models/user_followers_result_api_response_spec.rb +48 -0
- data/spec/models/user_followers_result_spec.rb +42 -0
- data/spec/models/user_following_result_api_response_spec.rb +48 -0
- data/spec/models/user_following_result_spec.rb +42 -0
- data/spec/models/user_friends_near_by_result_api_response_spec.rb +48 -0
- data/spec/models/user_friends_near_by_result_spec.rb +42 -0
- data/spec/models/user_list_result_api_response_spec.rb +48 -0
- data/spec/models/user_list_result_spec.rb +42 -0
- data/spec/models/user_location_post_result_api_response_spec.rb +48 -0
- data/spec/models/user_location_post_result_spec.rb +36 -0
- data/spec/models/user_locations_result_api_response_spec.rb +48 -0
- data/spec/models/user_locations_result_spec.rb +42 -0
- data/spec/models/user_logins_list_api_response_spec.rb +48 -0
- data/spec/models/user_logins_spec.rb +90 -0
- data/spec/models/user_mutual_followers_result_api_response_spec.rb +48 -0
- data/spec/models/user_mutual_followers_result_spec.rb +42 -0
- data/spec/models/user_mutual_followings_result_api_response_spec.rb +48 -0
- data/spec/models/user_mutual_followings_result_spec.rb +42 -0
- data/spec/models/user_profile_result_api_response_spec.rb +48 -0
- data/spec/models/user_profile_result_spec.rb +126 -0
- data/spec/models/user_qr_code_scan_result_api_response_spec.rb +48 -0
- data/spec/models/user_qr_code_scan_result_spec.rb +84 -0
- data/spec/models/user_setting_api_response_spec.rb +48 -0
- data/spec/models/user_setting_list_api_response_spec.rb +48 -0
- data/spec/models/user_setting_post_result_api_response_spec.rb +48 -0
- data/spec/models/user_setting_post_result_spec.rb +36 -0
- data/spec/models/user_setting_spec.rb +96 -0
- data/spec/models/user_spec.rb +252 -0
- data/spec/models/voucher_detail_spec.rb +102 -0
- data/spec/models/wechat_js_config_result_api_response_spec.rb +48 -0
- data/spec/models/wechat_js_config_result_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- data/zsgf_client.gemspec +39 -0
- metadata +974 -0
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#全部 API 文档
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v1
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module ZSGFClient
|
|
17
|
+
# 用户
|
|
18
|
+
class User
|
|
19
|
+
# 用户唯一标识
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# 用户所在平台
|
|
23
|
+
attr_accessor :platform
|
|
24
|
+
|
|
25
|
+
# 用户所在平台的唯一标识
|
|
26
|
+
attr_accessor :union_id
|
|
27
|
+
|
|
28
|
+
# 昵称
|
|
29
|
+
attr_accessor :nick_name
|
|
30
|
+
|
|
31
|
+
# 头像
|
|
32
|
+
attr_accessor :avatar
|
|
33
|
+
|
|
34
|
+
# 其他数据
|
|
35
|
+
attr_accessor :data
|
|
36
|
+
|
|
37
|
+
# 用户名
|
|
38
|
+
attr_accessor :user_name
|
|
39
|
+
|
|
40
|
+
# 用户密码
|
|
41
|
+
attr_accessor :pwd
|
|
42
|
+
|
|
43
|
+
# 邮箱地址
|
|
44
|
+
attr_accessor :email
|
|
45
|
+
|
|
46
|
+
# 邮箱已验证
|
|
47
|
+
attr_accessor :email_is_valid
|
|
48
|
+
|
|
49
|
+
# 手机号码
|
|
50
|
+
attr_accessor :phone
|
|
51
|
+
|
|
52
|
+
# 手机号码已验证
|
|
53
|
+
attr_accessor :phone_is_valid
|
|
54
|
+
|
|
55
|
+
# 关系链
|
|
56
|
+
attr_accessor :relation_chain
|
|
57
|
+
|
|
58
|
+
# 兴趣标签
|
|
59
|
+
attr_accessor :interest_tags
|
|
60
|
+
|
|
61
|
+
# 个人简介
|
|
62
|
+
attr_accessor :biography
|
|
63
|
+
|
|
64
|
+
# 性别
|
|
65
|
+
attr_accessor :gender
|
|
66
|
+
|
|
67
|
+
# 生日
|
|
68
|
+
attr_accessor :birthday
|
|
69
|
+
|
|
70
|
+
# 职业
|
|
71
|
+
attr_accessor :occupation
|
|
72
|
+
|
|
73
|
+
# 学历
|
|
74
|
+
attr_accessor :education
|
|
75
|
+
|
|
76
|
+
# 联系方式
|
|
77
|
+
attr_accessor :contact
|
|
78
|
+
|
|
79
|
+
# 语言
|
|
80
|
+
attr_accessor :languages
|
|
81
|
+
|
|
82
|
+
# 社交网络链接
|
|
83
|
+
attr_accessor :social_links
|
|
84
|
+
|
|
85
|
+
# 婚姻状态
|
|
86
|
+
attr_accessor :relationship_status
|
|
87
|
+
|
|
88
|
+
# 公司
|
|
89
|
+
attr_accessor :company
|
|
90
|
+
|
|
91
|
+
# 行业
|
|
92
|
+
attr_accessor :industry
|
|
93
|
+
|
|
94
|
+
# 行业职位
|
|
95
|
+
attr_accessor :company_position
|
|
96
|
+
|
|
97
|
+
# 私密设置
|
|
98
|
+
attr_accessor :private_settings
|
|
99
|
+
|
|
100
|
+
# 账户是否锁定
|
|
101
|
+
attr_accessor :is_lock
|
|
102
|
+
|
|
103
|
+
# 账户锁定截止时间
|
|
104
|
+
attr_accessor :lock_until
|
|
105
|
+
|
|
106
|
+
# 能使用用户名登录
|
|
107
|
+
attr_accessor :enable_user_name_sign_in
|
|
108
|
+
|
|
109
|
+
# 能使用邮箱登录
|
|
110
|
+
attr_accessor :enable_email_sign_in
|
|
111
|
+
|
|
112
|
+
# 能使用电话号码登录
|
|
113
|
+
attr_accessor :enable_phone_sign_in
|
|
114
|
+
|
|
115
|
+
# 能使用联合身份标识登录
|
|
116
|
+
attr_accessor :enable_union_id_sign_in
|
|
117
|
+
|
|
118
|
+
# 能使用OAuth认证方式登录
|
|
119
|
+
attr_accessor :enable_o_auth
|
|
120
|
+
|
|
121
|
+
# 启用双因素认证登录
|
|
122
|
+
attr_accessor :enable2_fa_auth
|
|
123
|
+
|
|
124
|
+
# 创建时间
|
|
125
|
+
attr_accessor :create_date
|
|
126
|
+
|
|
127
|
+
# 最后更新时间
|
|
128
|
+
attr_accessor :last_update
|
|
129
|
+
|
|
130
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
131
|
+
def self.attribute_map
|
|
132
|
+
{
|
|
133
|
+
:'id' => :'id',
|
|
134
|
+
:'platform' => :'platform',
|
|
135
|
+
:'union_id' => :'unionID',
|
|
136
|
+
:'nick_name' => :'nickName',
|
|
137
|
+
:'avatar' => :'avatar',
|
|
138
|
+
:'data' => :'data',
|
|
139
|
+
:'user_name' => :'userName',
|
|
140
|
+
:'pwd' => :'pwd',
|
|
141
|
+
:'email' => :'email',
|
|
142
|
+
:'email_is_valid' => :'emailIsValid',
|
|
143
|
+
:'phone' => :'phone',
|
|
144
|
+
:'phone_is_valid' => :'phoneIsValid',
|
|
145
|
+
:'relation_chain' => :'relationChain',
|
|
146
|
+
:'interest_tags' => :'interestTags',
|
|
147
|
+
:'biography' => :'biography',
|
|
148
|
+
:'gender' => :'gender',
|
|
149
|
+
:'birthday' => :'birthday',
|
|
150
|
+
:'occupation' => :'occupation',
|
|
151
|
+
:'education' => :'education',
|
|
152
|
+
:'contact' => :'contact',
|
|
153
|
+
:'languages' => :'languages',
|
|
154
|
+
:'social_links' => :'socialLinks',
|
|
155
|
+
:'relationship_status' => :'relationshipStatus',
|
|
156
|
+
:'company' => :'company',
|
|
157
|
+
:'industry' => :'industry',
|
|
158
|
+
:'company_position' => :'companyPosition',
|
|
159
|
+
:'private_settings' => :'privateSettings',
|
|
160
|
+
:'is_lock' => :'isLock',
|
|
161
|
+
:'lock_until' => :'lockUntil',
|
|
162
|
+
:'enable_user_name_sign_in' => :'enableUserNameSignIn',
|
|
163
|
+
:'enable_email_sign_in' => :'enableEmailSignIn',
|
|
164
|
+
:'enable_phone_sign_in' => :'enablePhoneSignIn',
|
|
165
|
+
:'enable_union_id_sign_in' => :'enableUnionIDSignIn',
|
|
166
|
+
:'enable_o_auth' => :'enableOAuth',
|
|
167
|
+
:'enable2_fa_auth' => :'enable2FAAuth',
|
|
168
|
+
:'create_date' => :'createDate',
|
|
169
|
+
:'last_update' => :'lastUpdate'
|
|
170
|
+
}
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# Returns attribute mapping this model knows about
|
|
174
|
+
def self.acceptable_attribute_map
|
|
175
|
+
attribute_map
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns all the JSON keys this model knows about
|
|
179
|
+
def self.acceptable_attributes
|
|
180
|
+
acceptable_attribute_map.values
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Attribute type mapping.
|
|
184
|
+
def self.openapi_types
|
|
185
|
+
{
|
|
186
|
+
:'id' => :'Integer',
|
|
187
|
+
:'platform' => :'String',
|
|
188
|
+
:'union_id' => :'String',
|
|
189
|
+
:'nick_name' => :'String',
|
|
190
|
+
:'avatar' => :'String',
|
|
191
|
+
:'data' => :'String',
|
|
192
|
+
:'user_name' => :'String',
|
|
193
|
+
:'pwd' => :'String',
|
|
194
|
+
:'email' => :'String',
|
|
195
|
+
:'email_is_valid' => :'Boolean',
|
|
196
|
+
:'phone' => :'String',
|
|
197
|
+
:'phone_is_valid' => :'Boolean',
|
|
198
|
+
:'relation_chain' => :'String',
|
|
199
|
+
:'interest_tags' => :'String',
|
|
200
|
+
:'biography' => :'String',
|
|
201
|
+
:'gender' => :'String',
|
|
202
|
+
:'birthday' => :'Time',
|
|
203
|
+
:'occupation' => :'String',
|
|
204
|
+
:'education' => :'String',
|
|
205
|
+
:'contact' => :'String',
|
|
206
|
+
:'languages' => :'String',
|
|
207
|
+
:'social_links' => :'String',
|
|
208
|
+
:'relationship_status' => :'String',
|
|
209
|
+
:'company' => :'String',
|
|
210
|
+
:'industry' => :'String',
|
|
211
|
+
:'company_position' => :'String',
|
|
212
|
+
:'private_settings' => :'String',
|
|
213
|
+
:'is_lock' => :'Boolean',
|
|
214
|
+
:'lock_until' => :'Time',
|
|
215
|
+
:'enable_user_name_sign_in' => :'Boolean',
|
|
216
|
+
:'enable_email_sign_in' => :'Boolean',
|
|
217
|
+
:'enable_phone_sign_in' => :'Boolean',
|
|
218
|
+
:'enable_union_id_sign_in' => :'Boolean',
|
|
219
|
+
:'enable_o_auth' => :'Boolean',
|
|
220
|
+
:'enable2_fa_auth' => :'Boolean',
|
|
221
|
+
:'create_date' => :'Time',
|
|
222
|
+
:'last_update' => :'Time'
|
|
223
|
+
}
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# List of attributes with nullable: true
|
|
227
|
+
def self.openapi_nullable
|
|
228
|
+
Set.new([
|
|
229
|
+
:'platform',
|
|
230
|
+
:'union_id',
|
|
231
|
+
:'nick_name',
|
|
232
|
+
:'avatar',
|
|
233
|
+
:'data',
|
|
234
|
+
:'user_name',
|
|
235
|
+
:'pwd',
|
|
236
|
+
:'email',
|
|
237
|
+
:'phone',
|
|
238
|
+
:'relation_chain',
|
|
239
|
+
:'interest_tags',
|
|
240
|
+
:'biography',
|
|
241
|
+
:'gender',
|
|
242
|
+
:'birthday',
|
|
243
|
+
:'occupation',
|
|
244
|
+
:'education',
|
|
245
|
+
:'contact',
|
|
246
|
+
:'languages',
|
|
247
|
+
:'social_links',
|
|
248
|
+
:'relationship_status',
|
|
249
|
+
:'company',
|
|
250
|
+
:'industry',
|
|
251
|
+
:'company_position',
|
|
252
|
+
:'private_settings',
|
|
253
|
+
])
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Initializes the object
|
|
257
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
258
|
+
def initialize(attributes = {})
|
|
259
|
+
if (!attributes.is_a?(Hash))
|
|
260
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::User` initialize method"
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
264
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
265
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
266
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
267
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::User`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
268
|
+
end
|
|
269
|
+
h[k.to_sym] = v
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'id')
|
|
273
|
+
self.id = attributes[:'id']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'platform')
|
|
277
|
+
self.platform = attributes[:'platform']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'union_id')
|
|
281
|
+
self.union_id = attributes[:'union_id']
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if attributes.key?(:'nick_name')
|
|
285
|
+
self.nick_name = attributes[:'nick_name']
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if attributes.key?(:'avatar')
|
|
289
|
+
self.avatar = attributes[:'avatar']
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if attributes.key?(:'data')
|
|
293
|
+
self.data = attributes[:'data']
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.key?(:'user_name')
|
|
297
|
+
self.user_name = attributes[:'user_name']
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if attributes.key?(:'pwd')
|
|
301
|
+
self.pwd = attributes[:'pwd']
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if attributes.key?(:'email')
|
|
305
|
+
self.email = attributes[:'email']
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if attributes.key?(:'email_is_valid')
|
|
309
|
+
self.email_is_valid = attributes[:'email_is_valid']
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if attributes.key?(:'phone')
|
|
313
|
+
self.phone = attributes[:'phone']
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if attributes.key?(:'phone_is_valid')
|
|
317
|
+
self.phone_is_valid = attributes[:'phone_is_valid']
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
if attributes.key?(:'relation_chain')
|
|
321
|
+
self.relation_chain = attributes[:'relation_chain']
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
if attributes.key?(:'interest_tags')
|
|
325
|
+
self.interest_tags = attributes[:'interest_tags']
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
if attributes.key?(:'biography')
|
|
329
|
+
self.biography = attributes[:'biography']
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if attributes.key?(:'gender')
|
|
333
|
+
self.gender = attributes[:'gender']
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if attributes.key?(:'birthday')
|
|
337
|
+
self.birthday = attributes[:'birthday']
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
if attributes.key?(:'occupation')
|
|
341
|
+
self.occupation = attributes[:'occupation']
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
if attributes.key?(:'education')
|
|
345
|
+
self.education = attributes[:'education']
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
if attributes.key?(:'contact')
|
|
349
|
+
self.contact = attributes[:'contact']
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
if attributes.key?(:'languages')
|
|
353
|
+
self.languages = attributes[:'languages']
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if attributes.key?(:'social_links')
|
|
357
|
+
self.social_links = attributes[:'social_links']
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if attributes.key?(:'relationship_status')
|
|
361
|
+
self.relationship_status = attributes[:'relationship_status']
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
if attributes.key?(:'company')
|
|
365
|
+
self.company = attributes[:'company']
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
if attributes.key?(:'industry')
|
|
369
|
+
self.industry = attributes[:'industry']
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
if attributes.key?(:'company_position')
|
|
373
|
+
self.company_position = attributes[:'company_position']
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
if attributes.key?(:'private_settings')
|
|
377
|
+
self.private_settings = attributes[:'private_settings']
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
if attributes.key?(:'is_lock')
|
|
381
|
+
self.is_lock = attributes[:'is_lock']
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
if attributes.key?(:'lock_until')
|
|
385
|
+
self.lock_until = attributes[:'lock_until']
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
if attributes.key?(:'enable_user_name_sign_in')
|
|
389
|
+
self.enable_user_name_sign_in = attributes[:'enable_user_name_sign_in']
|
|
390
|
+
end
|
|
391
|
+
|
|
392
|
+
if attributes.key?(:'enable_email_sign_in')
|
|
393
|
+
self.enable_email_sign_in = attributes[:'enable_email_sign_in']
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
if attributes.key?(:'enable_phone_sign_in')
|
|
397
|
+
self.enable_phone_sign_in = attributes[:'enable_phone_sign_in']
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
if attributes.key?(:'enable_union_id_sign_in')
|
|
401
|
+
self.enable_union_id_sign_in = attributes[:'enable_union_id_sign_in']
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
if attributes.key?(:'enable_o_auth')
|
|
405
|
+
self.enable_o_auth = attributes[:'enable_o_auth']
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
if attributes.key?(:'enable2_fa_auth')
|
|
409
|
+
self.enable2_fa_auth = attributes[:'enable2_fa_auth']
|
|
410
|
+
end
|
|
411
|
+
|
|
412
|
+
if attributes.key?(:'create_date')
|
|
413
|
+
self.create_date = attributes[:'create_date']
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
if attributes.key?(:'last_update')
|
|
417
|
+
self.last_update = attributes[:'last_update']
|
|
418
|
+
end
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
422
|
+
# @return Array for valid properties with the reasons
|
|
423
|
+
def list_invalid_properties
|
|
424
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
425
|
+
invalid_properties = Array.new
|
|
426
|
+
if !@platform.nil? && @platform.to_s.length > 50
|
|
427
|
+
invalid_properties.push('invalid value for "platform", the character length must be smaller than or equal to 50.')
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
if !@union_id.nil? && @union_id.to_s.length > 100
|
|
431
|
+
invalid_properties.push('invalid value for "union_id", the character length must be smaller than or equal to 100.')
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
if !@nick_name.nil? && @nick_name.to_s.length > 50
|
|
435
|
+
invalid_properties.push('invalid value for "nick_name", the character length must be smaller than or equal to 50.')
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
if !@avatar.nil? && @avatar.to_s.length > 255
|
|
439
|
+
invalid_properties.push('invalid value for "avatar", the character length must be smaller than or equal to 255.')
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
if !@user_name.nil? && @user_name.to_s.length > 50
|
|
443
|
+
invalid_properties.push('invalid value for "user_name", the character length must be smaller than or equal to 50.')
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
if !@pwd.nil? && @pwd.to_s.length > 255
|
|
447
|
+
invalid_properties.push('invalid value for "pwd", the character length must be smaller than or equal to 255.')
|
|
448
|
+
end
|
|
449
|
+
|
|
450
|
+
if !@email.nil? && @email.to_s.length > 255
|
|
451
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
if !@phone.nil? && @phone.to_s.length > 20
|
|
455
|
+
invalid_properties.push('invalid value for "phone", the character length must be smaller than or equal to 20.')
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
if !@biography.nil? && @biography.to_s.length > 500
|
|
459
|
+
invalid_properties.push('invalid value for "biography", the character length must be smaller than or equal to 500.')
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
if !@gender.nil? && @gender.to_s.length > 15
|
|
463
|
+
invalid_properties.push('invalid value for "gender", the character length must be smaller than or equal to 15.')
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
if !@occupation.nil? && @occupation.to_s.length > 50
|
|
467
|
+
invalid_properties.push('invalid value for "occupation", the character length must be smaller than or equal to 50.')
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
if !@education.nil? && @education.to_s.length > 50
|
|
471
|
+
invalid_properties.push('invalid value for "education", the character length must be smaller than or equal to 50.')
|
|
472
|
+
end
|
|
473
|
+
|
|
474
|
+
if !@contact.nil? && @contact.to_s.length > 255
|
|
475
|
+
invalid_properties.push('invalid value for "contact", the character length must be smaller than or equal to 255.')
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
if !@languages.nil? && @languages.to_s.length > 50
|
|
479
|
+
invalid_properties.push('invalid value for "languages", the character length must be smaller than or equal to 50.')
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
if !@social_links.nil? && @social_links.to_s.length > 255
|
|
483
|
+
invalid_properties.push('invalid value for "social_links", the character length must be smaller than or equal to 255.')
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
if !@relationship_status.nil? && @relationship_status.to_s.length > 20
|
|
487
|
+
invalid_properties.push('invalid value for "relationship_status", the character length must be smaller than or equal to 20.')
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
if !@company.nil? && @company.to_s.length > 100
|
|
491
|
+
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 100.')
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
if !@industry.nil? && @industry.to_s.length > 50
|
|
495
|
+
invalid_properties.push('invalid value for "industry", the character length must be smaller than or equal to 50.')
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
if !@company_position.nil? && @company_position.to_s.length > 50
|
|
499
|
+
invalid_properties.push('invalid value for "company_position", the character length must be smaller than or equal to 50.')
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
if !@private_settings.nil? && @private_settings.to_s.length > 500
|
|
503
|
+
invalid_properties.push('invalid value for "private_settings", the character length must be smaller than or equal to 500.')
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
invalid_properties
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
# Check to see if the all the properties in the model are valid
|
|
510
|
+
# @return true if the model is valid
|
|
511
|
+
def valid?
|
|
512
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
513
|
+
return false if !@platform.nil? && @platform.to_s.length > 50
|
|
514
|
+
return false if !@union_id.nil? && @union_id.to_s.length > 100
|
|
515
|
+
return false if !@nick_name.nil? && @nick_name.to_s.length > 50
|
|
516
|
+
return false if !@avatar.nil? && @avatar.to_s.length > 255
|
|
517
|
+
return false if !@user_name.nil? && @user_name.to_s.length > 50
|
|
518
|
+
return false if !@pwd.nil? && @pwd.to_s.length > 255
|
|
519
|
+
return false if !@email.nil? && @email.to_s.length > 255
|
|
520
|
+
return false if !@phone.nil? && @phone.to_s.length > 20
|
|
521
|
+
return false if !@biography.nil? && @biography.to_s.length > 500
|
|
522
|
+
return false if !@gender.nil? && @gender.to_s.length > 15
|
|
523
|
+
return false if !@occupation.nil? && @occupation.to_s.length > 50
|
|
524
|
+
return false if !@education.nil? && @education.to_s.length > 50
|
|
525
|
+
return false if !@contact.nil? && @contact.to_s.length > 255
|
|
526
|
+
return false if !@languages.nil? && @languages.to_s.length > 50
|
|
527
|
+
return false if !@social_links.nil? && @social_links.to_s.length > 255
|
|
528
|
+
return false if !@relationship_status.nil? && @relationship_status.to_s.length > 20
|
|
529
|
+
return false if !@company.nil? && @company.to_s.length > 100
|
|
530
|
+
return false if !@industry.nil? && @industry.to_s.length > 50
|
|
531
|
+
return false if !@company_position.nil? && @company_position.to_s.length > 50
|
|
532
|
+
return false if !@private_settings.nil? && @private_settings.to_s.length > 500
|
|
533
|
+
true
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
# Custom attribute writer method with validation
|
|
537
|
+
# @param [Object] platform Value to be assigned
|
|
538
|
+
def platform=(platform)
|
|
539
|
+
if !platform.nil? && platform.to_s.length > 50
|
|
540
|
+
fail ArgumentError, 'invalid value for "platform", the character length must be smaller than or equal to 50.'
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
@platform = platform
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# Custom attribute writer method with validation
|
|
547
|
+
# @param [Object] union_id Value to be assigned
|
|
548
|
+
def union_id=(union_id)
|
|
549
|
+
if !union_id.nil? && union_id.to_s.length > 100
|
|
550
|
+
fail ArgumentError, 'invalid value for "union_id", the character length must be smaller than or equal to 100.'
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
@union_id = union_id
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Custom attribute writer method with validation
|
|
557
|
+
# @param [Object] nick_name Value to be assigned
|
|
558
|
+
def nick_name=(nick_name)
|
|
559
|
+
if !nick_name.nil? && nick_name.to_s.length > 50
|
|
560
|
+
fail ArgumentError, 'invalid value for "nick_name", the character length must be smaller than or equal to 50.'
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
@nick_name = nick_name
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
# Custom attribute writer method with validation
|
|
567
|
+
# @param [Object] avatar Value to be assigned
|
|
568
|
+
def avatar=(avatar)
|
|
569
|
+
if !avatar.nil? && avatar.to_s.length > 255
|
|
570
|
+
fail ArgumentError, 'invalid value for "avatar", the character length must be smaller than or equal to 255.'
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
@avatar = avatar
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
# Custom attribute writer method with validation
|
|
577
|
+
# @param [Object] user_name Value to be assigned
|
|
578
|
+
def user_name=(user_name)
|
|
579
|
+
if !user_name.nil? && user_name.to_s.length > 50
|
|
580
|
+
fail ArgumentError, 'invalid value for "user_name", the character length must be smaller than or equal to 50.'
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
@user_name = user_name
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
# Custom attribute writer method with validation
|
|
587
|
+
# @param [Object] pwd Value to be assigned
|
|
588
|
+
def pwd=(pwd)
|
|
589
|
+
if !pwd.nil? && pwd.to_s.length > 255
|
|
590
|
+
fail ArgumentError, 'invalid value for "pwd", the character length must be smaller than or equal to 255.'
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
@pwd = pwd
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
# Custom attribute writer method with validation
|
|
597
|
+
# @param [Object] email Value to be assigned
|
|
598
|
+
def email=(email)
|
|
599
|
+
if !email.nil? && email.to_s.length > 255
|
|
600
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 255.'
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
@email = email
|
|
604
|
+
end
|
|
605
|
+
|
|
606
|
+
# Custom attribute writer method with validation
|
|
607
|
+
# @param [Object] phone Value to be assigned
|
|
608
|
+
def phone=(phone)
|
|
609
|
+
if !phone.nil? && phone.to_s.length > 20
|
|
610
|
+
fail ArgumentError, 'invalid value for "phone", the character length must be smaller than or equal to 20.'
|
|
611
|
+
end
|
|
612
|
+
|
|
613
|
+
@phone = phone
|
|
614
|
+
end
|
|
615
|
+
|
|
616
|
+
# Custom attribute writer method with validation
|
|
617
|
+
# @param [Object] biography Value to be assigned
|
|
618
|
+
def biography=(biography)
|
|
619
|
+
if !biography.nil? && biography.to_s.length > 500
|
|
620
|
+
fail ArgumentError, 'invalid value for "biography", the character length must be smaller than or equal to 500.'
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
@biography = biography
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# Custom attribute writer method with validation
|
|
627
|
+
# @param [Object] gender Value to be assigned
|
|
628
|
+
def gender=(gender)
|
|
629
|
+
if !gender.nil? && gender.to_s.length > 15
|
|
630
|
+
fail ArgumentError, 'invalid value for "gender", the character length must be smaller than or equal to 15.'
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
@gender = gender
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
# Custom attribute writer method with validation
|
|
637
|
+
# @param [Object] occupation Value to be assigned
|
|
638
|
+
def occupation=(occupation)
|
|
639
|
+
if !occupation.nil? && occupation.to_s.length > 50
|
|
640
|
+
fail ArgumentError, 'invalid value for "occupation", the character length must be smaller than or equal to 50.'
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
@occupation = occupation
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
# Custom attribute writer method with validation
|
|
647
|
+
# @param [Object] education Value to be assigned
|
|
648
|
+
def education=(education)
|
|
649
|
+
if !education.nil? && education.to_s.length > 50
|
|
650
|
+
fail ArgumentError, 'invalid value for "education", the character length must be smaller than or equal to 50.'
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
@education = education
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
# Custom attribute writer method with validation
|
|
657
|
+
# @param [Object] contact Value to be assigned
|
|
658
|
+
def contact=(contact)
|
|
659
|
+
if !contact.nil? && contact.to_s.length > 255
|
|
660
|
+
fail ArgumentError, 'invalid value for "contact", the character length must be smaller than or equal to 255.'
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
@contact = contact
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# Custom attribute writer method with validation
|
|
667
|
+
# @param [Object] languages Value to be assigned
|
|
668
|
+
def languages=(languages)
|
|
669
|
+
if !languages.nil? && languages.to_s.length > 50
|
|
670
|
+
fail ArgumentError, 'invalid value for "languages", the character length must be smaller than or equal to 50.'
|
|
671
|
+
end
|
|
672
|
+
|
|
673
|
+
@languages = languages
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Custom attribute writer method with validation
|
|
677
|
+
# @param [Object] social_links Value to be assigned
|
|
678
|
+
def social_links=(social_links)
|
|
679
|
+
if !social_links.nil? && social_links.to_s.length > 255
|
|
680
|
+
fail ArgumentError, 'invalid value for "social_links", the character length must be smaller than or equal to 255.'
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
@social_links = social_links
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# Custom attribute writer method with validation
|
|
687
|
+
# @param [Object] relationship_status Value to be assigned
|
|
688
|
+
def relationship_status=(relationship_status)
|
|
689
|
+
if !relationship_status.nil? && relationship_status.to_s.length > 20
|
|
690
|
+
fail ArgumentError, 'invalid value for "relationship_status", the character length must be smaller than or equal to 20.'
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
@relationship_status = relationship_status
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
# Custom attribute writer method with validation
|
|
697
|
+
# @param [Object] company Value to be assigned
|
|
698
|
+
def company=(company)
|
|
699
|
+
if !company.nil? && company.to_s.length > 100
|
|
700
|
+
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 100.'
|
|
701
|
+
end
|
|
702
|
+
|
|
703
|
+
@company = company
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Custom attribute writer method with validation
|
|
707
|
+
# @param [Object] industry Value to be assigned
|
|
708
|
+
def industry=(industry)
|
|
709
|
+
if !industry.nil? && industry.to_s.length > 50
|
|
710
|
+
fail ArgumentError, 'invalid value for "industry", the character length must be smaller than or equal to 50.'
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
@industry = industry
|
|
714
|
+
end
|
|
715
|
+
|
|
716
|
+
# Custom attribute writer method with validation
|
|
717
|
+
# @param [Object] company_position Value to be assigned
|
|
718
|
+
def company_position=(company_position)
|
|
719
|
+
if !company_position.nil? && company_position.to_s.length > 50
|
|
720
|
+
fail ArgumentError, 'invalid value for "company_position", the character length must be smaller than or equal to 50.'
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
@company_position = company_position
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Custom attribute writer method with validation
|
|
727
|
+
# @param [Object] private_settings Value to be assigned
|
|
728
|
+
def private_settings=(private_settings)
|
|
729
|
+
if !private_settings.nil? && private_settings.to_s.length > 500
|
|
730
|
+
fail ArgumentError, 'invalid value for "private_settings", the character length must be smaller than or equal to 500.'
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
@private_settings = private_settings
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
# Checks equality by comparing each attribute.
|
|
737
|
+
# @param [Object] Object to be compared
|
|
738
|
+
def ==(o)
|
|
739
|
+
return true if self.equal?(o)
|
|
740
|
+
self.class == o.class &&
|
|
741
|
+
id == o.id &&
|
|
742
|
+
platform == o.platform &&
|
|
743
|
+
union_id == o.union_id &&
|
|
744
|
+
nick_name == o.nick_name &&
|
|
745
|
+
avatar == o.avatar &&
|
|
746
|
+
data == o.data &&
|
|
747
|
+
user_name == o.user_name &&
|
|
748
|
+
pwd == o.pwd &&
|
|
749
|
+
email == o.email &&
|
|
750
|
+
email_is_valid == o.email_is_valid &&
|
|
751
|
+
phone == o.phone &&
|
|
752
|
+
phone_is_valid == o.phone_is_valid &&
|
|
753
|
+
relation_chain == o.relation_chain &&
|
|
754
|
+
interest_tags == o.interest_tags &&
|
|
755
|
+
biography == o.biography &&
|
|
756
|
+
gender == o.gender &&
|
|
757
|
+
birthday == o.birthday &&
|
|
758
|
+
occupation == o.occupation &&
|
|
759
|
+
education == o.education &&
|
|
760
|
+
contact == o.contact &&
|
|
761
|
+
languages == o.languages &&
|
|
762
|
+
social_links == o.social_links &&
|
|
763
|
+
relationship_status == o.relationship_status &&
|
|
764
|
+
company == o.company &&
|
|
765
|
+
industry == o.industry &&
|
|
766
|
+
company_position == o.company_position &&
|
|
767
|
+
private_settings == o.private_settings &&
|
|
768
|
+
is_lock == o.is_lock &&
|
|
769
|
+
lock_until == o.lock_until &&
|
|
770
|
+
enable_user_name_sign_in == o.enable_user_name_sign_in &&
|
|
771
|
+
enable_email_sign_in == o.enable_email_sign_in &&
|
|
772
|
+
enable_phone_sign_in == o.enable_phone_sign_in &&
|
|
773
|
+
enable_union_id_sign_in == o.enable_union_id_sign_in &&
|
|
774
|
+
enable_o_auth == o.enable_o_auth &&
|
|
775
|
+
enable2_fa_auth == o.enable2_fa_auth &&
|
|
776
|
+
create_date == o.create_date &&
|
|
777
|
+
last_update == o.last_update
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# @see the `==` method
|
|
781
|
+
# @param [Object] Object to be compared
|
|
782
|
+
def eql?(o)
|
|
783
|
+
self == o
|
|
784
|
+
end
|
|
785
|
+
|
|
786
|
+
# Calculates hash code according to all attributes.
|
|
787
|
+
# @return [Integer] Hash code
|
|
788
|
+
def hash
|
|
789
|
+
[id, platform, union_id, nick_name, avatar, data, user_name, pwd, email, email_is_valid, phone, phone_is_valid, relation_chain, interest_tags, biography, gender, birthday, occupation, education, contact, languages, social_links, relationship_status, company, industry, company_position, private_settings, is_lock, lock_until, enable_user_name_sign_in, enable_email_sign_in, enable_phone_sign_in, enable_union_id_sign_in, enable_o_auth, enable2_fa_auth, create_date, last_update].hash
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Builds the object from hash
|
|
793
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
794
|
+
# @return [Object] Returns the model itself
|
|
795
|
+
def self.build_from_hash(attributes)
|
|
796
|
+
return nil unless attributes.is_a?(Hash)
|
|
797
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
798
|
+
transformed_hash = {}
|
|
799
|
+
openapi_types.each_pair do |key, type|
|
|
800
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
801
|
+
transformed_hash["#{key}"] = nil
|
|
802
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
803
|
+
# check to ensure the input is an array given that the attribute
|
|
804
|
+
# is documented as an array but the input is not
|
|
805
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
806
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
807
|
+
end
|
|
808
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
809
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
810
|
+
end
|
|
811
|
+
end
|
|
812
|
+
new(transformed_hash)
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Deserializes the data based on type
|
|
816
|
+
# @param string type Data type
|
|
817
|
+
# @param string value Value to be deserialized
|
|
818
|
+
# @return [Object] Deserialized data
|
|
819
|
+
def self._deserialize(type, value)
|
|
820
|
+
case type.to_sym
|
|
821
|
+
when :Time
|
|
822
|
+
Time.parse(value)
|
|
823
|
+
when :Date
|
|
824
|
+
Date.parse(value)
|
|
825
|
+
when :String
|
|
826
|
+
value.to_s
|
|
827
|
+
when :Integer
|
|
828
|
+
value.to_i
|
|
829
|
+
when :Float
|
|
830
|
+
value.to_f
|
|
831
|
+
when :Boolean
|
|
832
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
833
|
+
true
|
|
834
|
+
else
|
|
835
|
+
false
|
|
836
|
+
end
|
|
837
|
+
when :Object
|
|
838
|
+
# generic object (usually a Hash), return directly
|
|
839
|
+
value
|
|
840
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
841
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
842
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
843
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
844
|
+
k_type = Regexp.last_match[:k_type]
|
|
845
|
+
v_type = Regexp.last_match[:v_type]
|
|
846
|
+
{}.tap do |hash|
|
|
847
|
+
value.each do |k, v|
|
|
848
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
else # model
|
|
852
|
+
# models (e.g. Pet) or oneOf
|
|
853
|
+
klass = ZSGFClient.const_get(type)
|
|
854
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
# Returns the string representation of the object
|
|
859
|
+
# @return [String] String presentation of the object
|
|
860
|
+
def to_s
|
|
861
|
+
to_hash.to_s
|
|
862
|
+
end
|
|
863
|
+
|
|
864
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
865
|
+
# @return [Hash] Returns the object in the form of hash
|
|
866
|
+
def to_body
|
|
867
|
+
to_hash
|
|
868
|
+
end
|
|
869
|
+
|
|
870
|
+
# Returns the object in the form of hash
|
|
871
|
+
# @return [Hash] Returns the object in the form of hash
|
|
872
|
+
def to_hash
|
|
873
|
+
hash = {}
|
|
874
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
875
|
+
value = self.send(attr)
|
|
876
|
+
if value.nil?
|
|
877
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
878
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
hash[param] = _to_hash(value)
|
|
882
|
+
end
|
|
883
|
+
hash
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
# Outputs non-array value in the form of hash
|
|
887
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
888
|
+
# @param [Object] value Any valid value
|
|
889
|
+
# @return [Hash] Returns the value in the form of hash
|
|
890
|
+
def _to_hash(value)
|
|
891
|
+
if value.is_a?(Array)
|
|
892
|
+
value.compact.map { |v| _to_hash(v) }
|
|
893
|
+
elsif value.is_a?(Hash)
|
|
894
|
+
{}.tap do |hash|
|
|
895
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
896
|
+
end
|
|
897
|
+
elsif value.respond_to? :to_hash
|
|
898
|
+
value.to_hash
|
|
899
|
+
else
|
|
900
|
+
value
|
|
901
|
+
end
|
|
902
|
+
end
|
|
903
|
+
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
end
|