{"openapi":"3.1.0","info":{"title":"DIGITAL WALLET API","version":"1.0.1"},"paths":{"/user/signup":{"post":{"tags":["User"],"summary":"Create User","operationId":"create_user_user_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateSchema"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/send-otp":{"post":{"tags":["User"],"summary":"Send Email","operationId":"send_email_user_send_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_send_email_user_send_otp_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Email User Send Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/verify-otp":{"post":{"tags":["User"],"summary":"Verify Otp","operationId":"verify_otp_user_verify_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_otp_user_verify_otp_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Otp User Verify Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/resend-otp":{"post":{"tags":["User"],"summary":"Resend Otp","operationId":"resend_otp_user_resend_otp_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_resend_otp_user_resend_otp_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Resend Otp User Resend Otp Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/change-password":{"post":{"tags":["User"],"summary":"Change Password","operationId":"change_password_user_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_change_password_user_change_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Change Password User Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/user/forget-password":{"post":{"tags":["User"],"summary":"Forget Password","operationId":"forget_password_user_forget_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_forget_password_user_forget_password_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Forget Password User Forget Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/user/profile-image":{"get":{"tags":["User"],"summary":"Profile Image","operationId":"profile_image_user_profile_image_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]},"post":{"tags":["User"],"summary":"Upload Image","operationId":"upload_image_user_profile_image_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_image_user_profile_image_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/login":{"post":{"tags":["Auth"],"summary":"Token","operationId":"token_auth_login_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_token_auth_login_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TokenResponseSchema"},{"$ref":"#/components/schemas/Token2FAResponseSchema"}],"title":"Response Token Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/logout":{"post":{"tags":["Auth"],"summary":"Logout","operationId":"logout_auth_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/me":{"get":{"tags":["Auth"],"summary":"Get User Profile","operationId":"get_user_profile_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserProfileResponseSchema"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/refresh":{"post":{"tags":["Auth"],"summary":"Refresh Token","operationId":"refresh_token_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_refresh_token_auth_refresh_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/enable-2fa":{"post":{"tags":["Auth"],"summary":"Enable 2Fa","operationId":"enable_2fa_auth_enable_2fa_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/confirm-2fa":{"post":{"tags":["Auth"],"summary":"Confirm 2Fa","operationId":"confirm_2fa_auth_confirm_2fa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_confirm_2fa_auth_confirm_2fa_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Confirm 2Fa Auth Confirm 2Fa Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/auth/verify-2fa":{"post":{"tags":["Auth"],"summary":"Verify 2Fa","operationId":"verify_2fa_auth_verify_2fa_post","parameters":[{"name":"X-Auth-Token","in":"header","required":true,"schema":{"type":"string","title":"X-Auth-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Body_verify_2fa_auth_verify_2fa_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/disable-2fa":{"post":{"tags":["Auth"],"summary":"Disable 2Fa","operationId":"disable_2fa_auth_disable_2fa_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Disable 2Fa Auth Disable 2Fa Post"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/manage/users":{"get":{"tags":["Admin"],"summary":"Get Users","operationId":"get_users_manage_users_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":5,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponseSchema_UserResponseSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/{id}/details":{"get":{"tags":["Admin"],"summary":"Get User","operationId":"get_user_manage__id__details_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponseSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/inactive-user/{id}":{"post":{"tags":["Admin"],"summary":"Inactive User","operationId":"inactive_user_manage_inactive_user__id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/reactivate-user/{id}":{"post":{"tags":["Admin"],"summary":"Reactivate User","operationId":"reactivate_user_manage_reactivate_user__id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/user-wallet/{id}":{"get":{"tags":["Admin"],"summary":"User Wallets","operationId":"user_wallets_manage_user_wallet__id__get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletListReadSchema"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/wallet-activate/{id}":{"post":{"tags":["Admin"],"summary":"Activate","operationId":"activate_manage_wallet_activate__id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Activate Manage Wallet Activate  Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/manage/wallet-deactivate/{id}":{"post":{"tags":["Admin"],"summary":"Deactivate","operationId":"deactivate_manage_wallet_deactivate__id__post","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deactivate Manage Wallet Deactivate  Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/wallet/create":{"post":{"tags":["Wallet"],"summary":"Create","operationId":"create_wallet_create_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWalletFormSchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Create Wallet Create Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/wallet/check-balance":{"get":{"tags":["Wallet"],"summary":"Check Balance","operationId":"check_balance_wallet_check_balance_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailableBalanceReadSchema"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/transaction/deposit":{"post":{"tags":["Transaction"],"summary":"Deposit","operationId":"deposit_transaction_deposit_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositMoneySchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Deposit Transaction Deposit Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/transaction/withdraw":{"post":{"tags":["Transaction"],"summary":"Withdraw","operationId":"withdraw_transaction_withdraw_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawnMoneySchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Withdraw Transaction Withdraw Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/transaction/send-money":{"post":{"tags":["Transaction"],"summary":"Send Money","operationId":"send_money_transaction_send_money_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMoneySchema"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Send Money Transaction Send Money Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"OAuth2PasswordBearer":[]}]}},"/transaction/recent-transaction":{"get":{"tags":["Transaction"],"summary":"Recent Transaction","operationId":"recent_transaction_transaction_recent_transaction_get","security":[{"OAuth2PasswordBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":5,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponseSchema_RecentTransactionSchema_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health-check":{"get":{"summary":"Health Check","operationId":"health_check_health_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Status","operationId":"status__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AvailableBalanceReadSchema":{"properties":{"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"hold_amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Hold Amount","default":"0"},"is_active":{"type":"boolean","title":"Is Active"}},"additionalProperties":false,"type":"object","required":["currency","balance","is_active"],"title":"AvailableBalanceReadSchema","example":{"balance":"100.00","currency":"NPR","hold_amount":0,"is_active":true}},"Body_change_password_user_change_password_post":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"Body_change_password_user_change_password_post"},"Body_confirm_2fa_auth_confirm_2fa_post":{"properties":{"totp":{"type":"string","title":"Totp"}},"type":"object","required":["totp"],"title":"Body_confirm_2fa_auth_confirm_2fa_post"},"Body_forget_password_user_forget_password_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_forget_password_user_forget_password_post"},"Body_refresh_token_auth_refresh_post":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"Body_refresh_token_auth_refresh_post"},"Body_resend_otp_user_resend_otp_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_resend_otp_user_resend_otp_post"},"Body_send_email_user_send_otp_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"Body_send_email_user_send_otp_post"},"Body_token_auth_login_post":{"properties":{"grant_type":{"anyOf":[{"type":"string","pattern":"^password$"},{"type":"null"}],"title":"Grant Type"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password"},"scope":{"type":"string","title":"Scope","default":""},"client_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Id"},"client_secret":{"anyOf":[{"type":"string"},{"type":"null"}],"format":"password","title":"Client Secret"}},"type":"object","required":["username","password"],"title":"Body_token_auth_login_post"},"Body_upload_image_user_profile_image_post":{"properties":{"image":{"type":"string","contentMediaType":"application/octet-stream","title":"Image"}},"type":"object","required":["image"],"title":"Body_upload_image_user_profile_image_post"},"Body_verify_2fa_auth_verify_2fa_post":{"properties":{"totp":{"type":"string","title":"Totp"}},"type":"object","required":["totp"],"title":"Body_verify_2fa_auth_verify_2fa_post"},"Body_verify_otp_user_verify_otp_post":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"otp":{"type":"string","title":"Otp"}},"type":"object","required":["email","otp"],"title":"Body_verify_otp_user_verify_otp_post"},"CreateWalletFormSchema":{"properties":{"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"balance":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Balance"}},"additionalProperties":false,"type":"object","required":["currency","balance"],"title":"CreateWalletFormSchema","example":{"balance":"100.00","currency":"NPR"}},"DepositMoneySchema":{"properties":{"type":{"type":"string","enum":["deposit","withdraw"],"title":"Type"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"},"currency":{"type":"string","title":"Currency","default":"NPR"}},"additionalProperties":false,"type":"object","required":["type","amount"],"title":"DepositMoneySchema","example":{"amount":"100.00","currency":"NPR","type":"deposit"}},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PaginatedResponseSchema_RecentTransactionSchema_":{"properties":{"pagination":{"$ref":"#/components/schemas/PaginationSchema"},"results":{"items":{"$ref":"#/components/schemas/RecentTransactionSchema"},"type":"array","title":"Results"}},"type":"object","required":["pagination","results"],"title":"PaginatedResponseSchema[RecentTransactionSchema]"},"PaginatedResponseSchema_UserResponseSchema_":{"properties":{"pagination":{"$ref":"#/components/schemas/PaginationSchema"},"results":{"items":{"$ref":"#/components/schemas/UserResponseSchema"},"type":"array","title":"Results"}},"type":"object","required":["pagination","results"],"title":"PaginatedResponseSchema[UserResponseSchema]"},"PaginationSchema":{"properties":{"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"total":{"type":"integer","title":"Total"},"total_pages":{"type":"integer","title":"Total Pages"}},"type":"object","required":["page","page_size","total","total_pages"],"title":"PaginationSchema"},"RecentTransactionSchema":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"amount":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Amount"},"type":{"type":"string","enum":["deposit","withdraw"],"title":"Type"},"status":{"type":"string","enum":["pending","failed","success"],"title":"Status"},"reference_id":{"type":"string","title":"Reference Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"additionalProperties":false,"type":"object","required":["id","amount","type","status","reference_id","created_at"],"title":"RecentTransactionSchema"},"SendMoneySchema":{"properties":{"receiver_phone_number":{"type":"string","maxLength":10,"minLength":10,"title":"Receiver Phone Number"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"}},"additionalProperties":false,"type":"object","required":["receiver_phone_number","amount"],"title":"SendMoneySchema","example":{"amount":"100.00","receiver_phone_number":"9857698786"}},"Token2FAResponseSchema":{"properties":{"is_2fa_enable":{"type":"boolean","title":"Is 2Fa Enable"},"token":{"type":"string","title":"Token"},"required_2fa_verification":{"type":"boolean","title":"Required 2Fa Verification"}},"additionalProperties":false,"type":"object","required":["is_2fa_enable","token","required_2fa_verification"],"title":"Token2FAResponseSchema"},"TokenResponseSchema":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"type":{"type":"string","title":"Type","default":"bearer"}},"additionalProperties":false,"type":"object","required":["access_token","refresh_token"],"title":"TokenResponseSchema","example":{"access_token":"eyJhbG.eyJzdLCJ0eXAi.eyJfh12XX","refresh_token":"eyJhbG.eyJzdWIiOi.eyJfh12XX","type":"bearer"}},"UserCreateSchema":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","title":"Password"},"phone_number":{"type":"string","maxLength":10,"minLength":10,"title":"Phone Number"},"gender":{"type":"string","title":"Gender"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"}},"additionalProperties":false,"type":"object","required":["name","email","password","phone_number","gender","date_of_birth"],"title":"UserCreateSchema","example":{"date_of_birth":"1999-01-01","email":"test@gmail.com","gender":"male","name":"Ram Sharma","password":"myp@ss45WoRD@!","phone_number":"9847284181"}},"UserProfileResponseSchema":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"phone_number":{"type":"string","title":"Phone Number"},"gender":{"type":"string","title":"Gender"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"status":{"type":"string","enum":["active","inactive"],"title":"Status"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_2fa_enable":{"type":"boolean","title":"Is 2Fa Enable"},"wallet":{"anyOf":[{"$ref":"#/components/schemas/WalletProfileSchema"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["name","email","phone_number","gender","date_of_birth","status","is_admin","is_2fa_enable","wallet"],"title":"UserProfileResponseSchema","example":{"date_of_birth":"1999-01-01","email":"test@gmail.com","gender":"male","is_2fa_enable":false,"is_admin":false,"name":"Ram Sharma","phone_number":"9847284181","status":"active","wallet":{"is_active":true}}},"UserResponseSchema":{"properties":{"name":{"type":"string","title":"Name"},"email":{"type":"string","format":"email","title":"Email"},"phone_number":{"type":"string","title":"Phone Number"},"gender":{"type":"string","title":"Gender"},"date_of_birth":{"type":"string","format":"date","title":"Date Of Birth"},"status":{"type":"string","enum":["active","inactive"],"title":"Status"},"is_admin":{"type":"boolean","title":"Is Admin"},"is_2fa_enable":{"type":"boolean","title":"Is 2Fa Enable"},"wallet":{"anyOf":[{"$ref":"#/components/schemas/WalletProfileSchema"},{"type":"null"}]},"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"additionalProperties":false,"type":"object","required":["name","email","phone_number","gender","date_of_birth","status","is_admin","is_2fa_enable","wallet","id","created_at","updated_at"],"title":"UserResponseSchema","example":{"date_of_birth":"1999-01-01","email":"test@gmail.com","gender":"male","is_2fa_enable":false,"is_admin":false,"name":"Ram Sharma","phone_number":"9847284181","status":"active","wallet":{"is_active":true}}},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WalletListReadSchema":{"properties":{"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency"},"balance":{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$","title":"Balance"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"is_active":{"type":"boolean","title":"Is Active"}},"additionalProperties":false,"type":"object","required":["currency","balance","user_id","is_active"],"title":"WalletListReadSchema","example":{"balance":"100.00","currency":"NPR","is_active":true,"user_id":"069730e8-c7d1-73b7-8000-36a999eee3b0"}},"WalletProfileSchema":{"properties":{"is_active":{"type":"boolean","title":"Is Active"}},"additionalProperties":false,"type":"object","required":["is_active"],"title":"WalletProfileSchema"},"WithdrawnMoneySchema":{"properties":{"type":{"type":"string","enum":["deposit","withdraw"],"title":"Type"},"amount":{"anyOf":[{"type":"number"},{"type":"string","pattern":"^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"}],"title":"Amount"}},"additionalProperties":false,"type":"object","required":["type","amount"],"title":"WithdrawnMoneySchema","example":{"amount":"100.00","type":"withdraw"}}},"securitySchemes":{"OAuth2PasswordBearer":{"type":"oauth2","flows":{"password":{"scopes":{},"tokenUrl":"/auth/login"}}}}}}