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,445 @@
|
|
|
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 Settings
|
|
19
|
+
# 配置项的唯一标识符。
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# 配置项所属的业务代码,用于分类管理。
|
|
23
|
+
attr_accessor :biz_code
|
|
24
|
+
|
|
25
|
+
# 配置项所属的业务标识,用于唯一标识业务。
|
|
26
|
+
attr_accessor :biz_identity
|
|
27
|
+
|
|
28
|
+
# 配置项的提供者代码,用于标识配置来源。
|
|
29
|
+
attr_accessor :provider_code
|
|
30
|
+
|
|
31
|
+
# 配置项的分组代码,用于组织和管理相关配置。
|
|
32
|
+
attr_accessor :group_code
|
|
33
|
+
|
|
34
|
+
# 配置项的唯一代码,用于标识具体的配置项。
|
|
35
|
+
attr_accessor :code
|
|
36
|
+
|
|
37
|
+
# 配置项的具体值,存储配置内容。
|
|
38
|
+
attr_accessor :value
|
|
39
|
+
|
|
40
|
+
# 用于分类或标记配置项的标签。
|
|
41
|
+
attr_accessor :tags
|
|
42
|
+
|
|
43
|
+
# 配置项的详细描述,说明其用途和作用。
|
|
44
|
+
attr_accessor :description
|
|
45
|
+
|
|
46
|
+
# 指示该配置项是否可供前端使用。
|
|
47
|
+
attr_accessor :frontend_usable
|
|
48
|
+
|
|
49
|
+
# 配置项的创建日期,默认为当前时间。
|
|
50
|
+
attr_accessor :create_date
|
|
51
|
+
|
|
52
|
+
# 配置项的最后更新日期,默认为当前时间。
|
|
53
|
+
attr_accessor :last_update
|
|
54
|
+
|
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'id' => :'id',
|
|
59
|
+
:'biz_code' => :'bizCode',
|
|
60
|
+
:'biz_identity' => :'bizIdentity',
|
|
61
|
+
:'provider_code' => :'providerCode',
|
|
62
|
+
:'group_code' => :'groupCode',
|
|
63
|
+
:'code' => :'code',
|
|
64
|
+
:'value' => :'value',
|
|
65
|
+
:'tags' => :'tags',
|
|
66
|
+
:'description' => :'description',
|
|
67
|
+
:'frontend_usable' => :'frontendUsable',
|
|
68
|
+
:'create_date' => :'createDate',
|
|
69
|
+
:'last_update' => :'lastUpdate'
|
|
70
|
+
}
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Returns attribute mapping this model knows about
|
|
74
|
+
def self.acceptable_attribute_map
|
|
75
|
+
attribute_map
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Returns all the JSON keys this model knows about
|
|
79
|
+
def self.acceptable_attributes
|
|
80
|
+
acceptable_attribute_map.values
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Attribute type mapping.
|
|
84
|
+
def self.openapi_types
|
|
85
|
+
{
|
|
86
|
+
:'id' => :'Integer',
|
|
87
|
+
:'biz_code' => :'String',
|
|
88
|
+
:'biz_identity' => :'String',
|
|
89
|
+
:'provider_code' => :'String',
|
|
90
|
+
:'group_code' => :'String',
|
|
91
|
+
:'code' => :'String',
|
|
92
|
+
:'value' => :'String',
|
|
93
|
+
:'tags' => :'String',
|
|
94
|
+
:'description' => :'String',
|
|
95
|
+
:'frontend_usable' => :'Boolean',
|
|
96
|
+
:'create_date' => :'Time',
|
|
97
|
+
:'last_update' => :'Time'
|
|
98
|
+
}
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# List of attributes with nullable: true
|
|
102
|
+
def self.openapi_nullable
|
|
103
|
+
Set.new([
|
|
104
|
+
:'biz_code',
|
|
105
|
+
:'biz_identity',
|
|
106
|
+
:'provider_code',
|
|
107
|
+
:'group_code',
|
|
108
|
+
:'code',
|
|
109
|
+
:'value',
|
|
110
|
+
:'tags',
|
|
111
|
+
:'description',
|
|
112
|
+
])
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Initializes the object
|
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
117
|
+
def initialize(attributes = {})
|
|
118
|
+
if (!attributes.is_a?(Hash))
|
|
119
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::Settings` initialize method"
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
123
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
124
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
125
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
126
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::Settings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
127
|
+
end
|
|
128
|
+
h[k.to_sym] = v
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if attributes.key?(:'id')
|
|
132
|
+
self.id = attributes[:'id']
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if attributes.key?(:'biz_code')
|
|
136
|
+
self.biz_code = attributes[:'biz_code']
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.key?(:'biz_identity')
|
|
140
|
+
self.biz_identity = attributes[:'biz_identity']
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
if attributes.key?(:'provider_code')
|
|
144
|
+
self.provider_code = attributes[:'provider_code']
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
if attributes.key?(:'group_code')
|
|
148
|
+
self.group_code = attributes[:'group_code']
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
if attributes.key?(:'code')
|
|
152
|
+
self.code = attributes[:'code']
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
if attributes.key?(:'value')
|
|
156
|
+
self.value = attributes[:'value']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'tags')
|
|
160
|
+
self.tags = attributes[:'tags']
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.key?(:'description')
|
|
164
|
+
self.description = attributes[:'description']
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
if attributes.key?(:'frontend_usable')
|
|
168
|
+
self.frontend_usable = attributes[:'frontend_usable']
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
if attributes.key?(:'create_date')
|
|
172
|
+
self.create_date = attributes[:'create_date']
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.key?(:'last_update')
|
|
176
|
+
self.last_update = attributes[:'last_update']
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
181
|
+
# @return Array for valid properties with the reasons
|
|
182
|
+
def list_invalid_properties
|
|
183
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
184
|
+
invalid_properties = Array.new
|
|
185
|
+
if !@biz_code.nil? && @biz_code.to_s.length > 100
|
|
186
|
+
invalid_properties.push('invalid value for "biz_code", the character length must be smaller than or equal to 100.')
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if !@biz_identity.nil? && @biz_identity.to_s.length > 100
|
|
190
|
+
invalid_properties.push('invalid value for "biz_identity", the character length must be smaller than or equal to 100.')
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if !@provider_code.nil? && @provider_code.to_s.length > 100
|
|
194
|
+
invalid_properties.push('invalid value for "provider_code", the character length must be smaller than or equal to 100.')
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if !@group_code.nil? && @group_code.to_s.length > 100
|
|
198
|
+
invalid_properties.push('invalid value for "group_code", the character length must be smaller than or equal to 100.')
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if !@code.nil? && @code.to_s.length > 100
|
|
202
|
+
invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 100.')
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if !@tags.nil? && @tags.to_s.length > 255
|
|
206
|
+
invalid_properties.push('invalid value for "tags", the character length must be smaller than or equal to 255.')
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if !@description.nil? && @description.to_s.length > 1024
|
|
210
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 1024.')
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
invalid_properties
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Check to see if the all the properties in the model are valid
|
|
217
|
+
# @return true if the model is valid
|
|
218
|
+
def valid?
|
|
219
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
220
|
+
return false if !@biz_code.nil? && @biz_code.to_s.length > 100
|
|
221
|
+
return false if !@biz_identity.nil? && @biz_identity.to_s.length > 100
|
|
222
|
+
return false if !@provider_code.nil? && @provider_code.to_s.length > 100
|
|
223
|
+
return false if !@group_code.nil? && @group_code.to_s.length > 100
|
|
224
|
+
return false if !@code.nil? && @code.to_s.length > 100
|
|
225
|
+
return false if !@tags.nil? && @tags.to_s.length > 255
|
|
226
|
+
return false if !@description.nil? && @description.to_s.length > 1024
|
|
227
|
+
true
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Custom attribute writer method with validation
|
|
231
|
+
# @param [Object] biz_code Value to be assigned
|
|
232
|
+
def biz_code=(biz_code)
|
|
233
|
+
if !biz_code.nil? && biz_code.to_s.length > 100
|
|
234
|
+
fail ArgumentError, 'invalid value for "biz_code", the character length must be smaller than or equal to 100.'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
@biz_code = biz_code
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Custom attribute writer method with validation
|
|
241
|
+
# @param [Object] biz_identity Value to be assigned
|
|
242
|
+
def biz_identity=(biz_identity)
|
|
243
|
+
if !biz_identity.nil? && biz_identity.to_s.length > 100
|
|
244
|
+
fail ArgumentError, 'invalid value for "biz_identity", the character length must be smaller than or equal to 100.'
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
@biz_identity = biz_identity
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] provider_code Value to be assigned
|
|
252
|
+
def provider_code=(provider_code)
|
|
253
|
+
if !provider_code.nil? && provider_code.to_s.length > 100
|
|
254
|
+
fail ArgumentError, 'invalid value for "provider_code", the character length must be smaller than or equal to 100.'
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
@provider_code = provider_code
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Custom attribute writer method with validation
|
|
261
|
+
# @param [Object] group_code Value to be assigned
|
|
262
|
+
def group_code=(group_code)
|
|
263
|
+
if !group_code.nil? && group_code.to_s.length > 100
|
|
264
|
+
fail ArgumentError, 'invalid value for "group_code", the character length must be smaller than or equal to 100.'
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
@group_code = group_code
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Custom attribute writer method with validation
|
|
271
|
+
# @param [Object] code Value to be assigned
|
|
272
|
+
def code=(code)
|
|
273
|
+
if !code.nil? && code.to_s.length > 100
|
|
274
|
+
fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 100.'
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
@code = code
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Custom attribute writer method with validation
|
|
281
|
+
# @param [Object] tags Value to be assigned
|
|
282
|
+
def tags=(tags)
|
|
283
|
+
if !tags.nil? && tags.to_s.length > 255
|
|
284
|
+
fail ArgumentError, 'invalid value for "tags", the character length must be smaller than or equal to 255.'
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
@tags = tags
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Custom attribute writer method with validation
|
|
291
|
+
# @param [Object] description Value to be assigned
|
|
292
|
+
def description=(description)
|
|
293
|
+
if !description.nil? && description.to_s.length > 1024
|
|
294
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 1024.'
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
@description = description
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Checks equality by comparing each attribute.
|
|
301
|
+
# @param [Object] Object to be compared
|
|
302
|
+
def ==(o)
|
|
303
|
+
return true if self.equal?(o)
|
|
304
|
+
self.class == o.class &&
|
|
305
|
+
id == o.id &&
|
|
306
|
+
biz_code == o.biz_code &&
|
|
307
|
+
biz_identity == o.biz_identity &&
|
|
308
|
+
provider_code == o.provider_code &&
|
|
309
|
+
group_code == o.group_code &&
|
|
310
|
+
code == o.code &&
|
|
311
|
+
value == o.value &&
|
|
312
|
+
tags == o.tags &&
|
|
313
|
+
description == o.description &&
|
|
314
|
+
frontend_usable == o.frontend_usable &&
|
|
315
|
+
create_date == o.create_date &&
|
|
316
|
+
last_update == o.last_update
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# @see the `==` method
|
|
320
|
+
# @param [Object] Object to be compared
|
|
321
|
+
def eql?(o)
|
|
322
|
+
self == o
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# Calculates hash code according to all attributes.
|
|
326
|
+
# @return [Integer] Hash code
|
|
327
|
+
def hash
|
|
328
|
+
[id, biz_code, biz_identity, provider_code, group_code, code, value, tags, description, frontend_usable, create_date, last_update].hash
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# Builds the object from hash
|
|
332
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
333
|
+
# @return [Object] Returns the model itself
|
|
334
|
+
def self.build_from_hash(attributes)
|
|
335
|
+
return nil unless attributes.is_a?(Hash)
|
|
336
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
337
|
+
transformed_hash = {}
|
|
338
|
+
openapi_types.each_pair do |key, type|
|
|
339
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
340
|
+
transformed_hash["#{key}"] = nil
|
|
341
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
342
|
+
# check to ensure the input is an array given that the attribute
|
|
343
|
+
# is documented as an array but the input is not
|
|
344
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
345
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
346
|
+
end
|
|
347
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
348
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
349
|
+
end
|
|
350
|
+
end
|
|
351
|
+
new(transformed_hash)
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Deserializes the data based on type
|
|
355
|
+
# @param string type Data type
|
|
356
|
+
# @param string value Value to be deserialized
|
|
357
|
+
# @return [Object] Deserialized data
|
|
358
|
+
def self._deserialize(type, value)
|
|
359
|
+
case type.to_sym
|
|
360
|
+
when :Time
|
|
361
|
+
Time.parse(value)
|
|
362
|
+
when :Date
|
|
363
|
+
Date.parse(value)
|
|
364
|
+
when :String
|
|
365
|
+
value.to_s
|
|
366
|
+
when :Integer
|
|
367
|
+
value.to_i
|
|
368
|
+
when :Float
|
|
369
|
+
value.to_f
|
|
370
|
+
when :Boolean
|
|
371
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
372
|
+
true
|
|
373
|
+
else
|
|
374
|
+
false
|
|
375
|
+
end
|
|
376
|
+
when :Object
|
|
377
|
+
# generic object (usually a Hash), return directly
|
|
378
|
+
value
|
|
379
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
380
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
381
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
382
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
383
|
+
k_type = Regexp.last_match[:k_type]
|
|
384
|
+
v_type = Regexp.last_match[:v_type]
|
|
385
|
+
{}.tap do |hash|
|
|
386
|
+
value.each do |k, v|
|
|
387
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
388
|
+
end
|
|
389
|
+
end
|
|
390
|
+
else # model
|
|
391
|
+
# models (e.g. Pet) or oneOf
|
|
392
|
+
klass = ZSGFClient.const_get(type)
|
|
393
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Returns the string representation of the object
|
|
398
|
+
# @return [String] String presentation of the object
|
|
399
|
+
def to_s
|
|
400
|
+
to_hash.to_s
|
|
401
|
+
end
|
|
402
|
+
|
|
403
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
404
|
+
# @return [Hash] Returns the object in the form of hash
|
|
405
|
+
def to_body
|
|
406
|
+
to_hash
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Returns the object in the form of hash
|
|
410
|
+
# @return [Hash] Returns the object in the form of hash
|
|
411
|
+
def to_hash
|
|
412
|
+
hash = {}
|
|
413
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
414
|
+
value = self.send(attr)
|
|
415
|
+
if value.nil?
|
|
416
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
417
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
hash[param] = _to_hash(value)
|
|
421
|
+
end
|
|
422
|
+
hash
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Outputs non-array value in the form of hash
|
|
426
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
427
|
+
# @param [Object] value Any valid value
|
|
428
|
+
# @return [Hash] Returns the value in the form of hash
|
|
429
|
+
def _to_hash(value)
|
|
430
|
+
if value.is_a?(Array)
|
|
431
|
+
value.compact.map { |v| _to_hash(v) }
|
|
432
|
+
elsif value.is_a?(Hash)
|
|
433
|
+
{}.tap do |hash|
|
|
434
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
435
|
+
end
|
|
436
|
+
elsif value.respond_to? :to_hash
|
|
437
|
+
value.to_hash
|
|
438
|
+
else
|
|
439
|
+
value
|
|
440
|
+
end
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
end
|
|
@@ -0,0 +1,245 @@
|
|
|
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
|
+
class SettingsApiResponse
|
|
18
|
+
# 状态码
|
|
19
|
+
attr_accessor :code
|
|
20
|
+
|
|
21
|
+
attr_accessor :data
|
|
22
|
+
|
|
23
|
+
# 错误信息
|
|
24
|
+
attr_accessor :error
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'code' => :'code',
|
|
30
|
+
:'data' => :'data',
|
|
31
|
+
:'error' => :'error'
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
acceptable_attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'code' => :'Integer',
|
|
49
|
+
:'data' => :'Settings',
|
|
50
|
+
:'error' => :'String'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# List of attributes with nullable: true
|
|
55
|
+
def self.openapi_nullable
|
|
56
|
+
Set.new([
|
|
57
|
+
:'error'
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `ZSGFClient::SettingsApiResponse` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ZSGFClient::SettingsApiResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
|
+
end
|
|
74
|
+
h[k.to_sym] = v
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'code')
|
|
78
|
+
self.code = attributes[:'code']
|
|
79
|
+
else
|
|
80
|
+
self.code = 200
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'data')
|
|
84
|
+
self.data = attributes[:'data']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'error')
|
|
88
|
+
self.error = attributes[:'error']
|
|
89
|
+
else
|
|
90
|
+
self.error = ''
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
|
+
invalid_properties = Array.new
|
|
99
|
+
invalid_properties
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Check to see if the all the properties in the model are valid
|
|
103
|
+
# @return true if the model is valid
|
|
104
|
+
def valid?
|
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
106
|
+
true
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Checks equality by comparing each attribute.
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
code == o.code &&
|
|
115
|
+
data == o.data &&
|
|
116
|
+
error == o.error
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Integer] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[code, data, error].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Builds the object from hash
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
# @return [Object] Returns the model itself
|
|
134
|
+
def self.build_from_hash(attributes)
|
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
|
136
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
137
|
+
transformed_hash = {}
|
|
138
|
+
openapi_types.each_pair do |key, type|
|
|
139
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = nil
|
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
145
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
148
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
new(transformed_hash)
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Deserializes the data based on type
|
|
155
|
+
# @param string type Data type
|
|
156
|
+
# @param string value Value to be deserialized
|
|
157
|
+
# @return [Object] Deserialized data
|
|
158
|
+
def self._deserialize(type, value)
|
|
159
|
+
case type.to_sym
|
|
160
|
+
when :Time
|
|
161
|
+
Time.parse(value)
|
|
162
|
+
when :Date
|
|
163
|
+
Date.parse(value)
|
|
164
|
+
when :String
|
|
165
|
+
value.to_s
|
|
166
|
+
when :Integer
|
|
167
|
+
value.to_i
|
|
168
|
+
when :Float
|
|
169
|
+
value.to_f
|
|
170
|
+
when :Boolean
|
|
171
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
172
|
+
true
|
|
173
|
+
else
|
|
174
|
+
false
|
|
175
|
+
end
|
|
176
|
+
when :Object
|
|
177
|
+
# generic object (usually a Hash), return directly
|
|
178
|
+
value
|
|
179
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
180
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
181
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
182
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
183
|
+
k_type = Regexp.last_match[:k_type]
|
|
184
|
+
v_type = Regexp.last_match[:v_type]
|
|
185
|
+
{}.tap do |hash|
|
|
186
|
+
value.each do |k, v|
|
|
187
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
else # model
|
|
191
|
+
# models (e.g. Pet) or oneOf
|
|
192
|
+
klass = ZSGFClient.const_get(type)
|
|
193
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Returns the string representation of the object
|
|
198
|
+
# @return [String] String presentation of the object
|
|
199
|
+
def to_s
|
|
200
|
+
to_hash.to_s
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
204
|
+
# @return [Hash] Returns the object in the form of hash
|
|
205
|
+
def to_body
|
|
206
|
+
to_hash
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Returns the object in the form of hash
|
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
|
211
|
+
def to_hash
|
|
212
|
+
hash = {}
|
|
213
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
214
|
+
value = self.send(attr)
|
|
215
|
+
if value.nil?
|
|
216
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
217
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
hash[param] = _to_hash(value)
|
|
221
|
+
end
|
|
222
|
+
hash
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Outputs non-array value in the form of hash
|
|
226
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
227
|
+
# @param [Object] value Any valid value
|
|
228
|
+
# @return [Hash] Returns the value in the form of hash
|
|
229
|
+
def _to_hash(value)
|
|
230
|
+
if value.is_a?(Array)
|
|
231
|
+
value.compact.map { |v| _to_hash(v) }
|
|
232
|
+
elsif value.is_a?(Hash)
|
|
233
|
+
{}.tap do |hash|
|
|
234
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
235
|
+
end
|
|
236
|
+
elsif value.respond_to? :to_hash
|
|
237
|
+
value.to_hash
|
|
238
|
+
else
|
|
239
|
+
value
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
end
|