{"openapi":"3.0.1","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"http://app.locoldeal.com","description":"Generated server url"}],"paths":{"/v2/partner/business":{"post":{"tags":["Partner Profile v2"],"summary":"Update only the business/brand fields (businessName, website, about, category).","operationId":"updateBusiness","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/service-areas":{"get":{"tags":["Partner Profile v2"],"summary":"Where the business is visible: nationwide, states or cities. No rows = nationwide US, unconfirmed.","operationId":"getServiceAreas","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Partner Profile v2"],"summary":"Replace the business's service areas (also marks them confirmed).","operationId":"saveServiceAreas","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/service-areas/confirm":{"post":{"tags":["Partner Profile v2"],"summary":"Keep the current service area as is and stop asking the partner to confirm it.","operationId":"confirmServiceAreas","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/username-available":{"get":{"tags":["Partner Profile v2"],"summary":"Check whether a username is free (3-20 chars, no spaces).","operationId":"isUsernameAvailable","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/username":{"post":{"tags":["Partner Profile v2"],"summary":"Change the signed-in user's username; returns a new token.","operationId":"changeUsername","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/logo":{"delete":{"tags":["Partner Profile v2"],"summary":"Soft-delete the brand logo (nullifies photopath; S3 object kept).","operationId":"deleteLogo","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/default-banner":{"post":{"tags":["Partner Profile v2"],"summary":"Pick the ready-made banner (4, 7, 9 or 15) shown while the business has no banner photos. Body: {\"defaultBanner\": 7}","operationId":"saveDefaultBanner","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/seller-photo":{"delete":{"tags":["Partner Profile v2"],"summary":"Soft-delete a single seller photo by its URL (S3 object kept).","operationId":"deleteSellerPhoto","parameters":[{"name":"imageUrl","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/banner/{bannerId}":{"delete":{"tags":["Partner Profile v2"],"summary":"Soft-delete a banner image by id (row removed; S3 object kept). Owner-checked.","operationId":"deleteBanner","parameters":[{"name":"bannerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/banner":{"delete":{"tags":["Partner Profile v2"],"summary":"Soft-delete a banner image by its URL (row removed; S3 object kept). Owner-checked. Used by the partner dashboard, which has banner URLs but not ids.","operationId":"deleteBannerByUrl","parameters":[{"name":"imageUrl","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/profile":{"post":{"tags":["Partner Profile v2"],"summary":"Update only the personal profile fields (firstname, lastname, phone, email).","operationId":"updateProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/business/{userId}/sub-categories":{"get":{"tags":["Business claim"],"summary":"Services (sub-categories) a business offers.","operationId":"services","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/claim/request":{"post":{"tags":["Business claim"],"summary":"Ask super admin for the listing when its email isn't yours. {userId, name, email, phone, message}","operationId":"request","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/claim/code":{"post":{"tags":["Business claim"],"summary":"Email a 6-digit claim code to the listing's email. {userId}","operationId":"sendCode","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/claim/invite":{"get":{"tags":["Business claim"],"summary":"Check an emailed claim link.","operationId":"checkInvite","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Business claim"],"summary":"Claim with an emailed link: set a password, get signed in. {token, password}","operationId":"completeInvite","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/claim/listing/{userId}":{"get":{"tags":["Business claim"],"summary":"What the claim page shows for a listing.","operationId":"listing","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/claim/verify":{"post":{"tags":["Business claim"],"summary":"Claim with the emailed code: set a password, get signed in. {userId, code, password}","operationId":"verify","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/storeBizHrs/{locationId}":{"post":{"tags":["Store Business Hours"],"operationId":"saveBizHrs","parameters":[{"name":"locationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeBizHrs":{"get":{"tags":["Store Business Hours"],"operationId":"storeBizHrs","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"put":{"tags":["Store Business Hours"],"summary":"Update business hours enitry denoted by storeBizHoursId for location","operationId":"updateBizHrs","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBusinessHoursDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Store Business Hours"],"summary":"Create a new business hours entry for deal, for location (denoted by locationId)","operationId":"saveBizHrs_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBusinessHoursDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeBizHrs/{Id}":{"get":{"tags":["Store Business Hours"],"summary":"Get business hours entry by Id","operationId":"getBizHrs","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeBizHrs/byLocationId/{Id}":{"get":{"tags":["Store Business Hours"],"summary":"Get business hours entry for location denoted by locationId in path parameter","operationId":"storeBizHrsByLocationId","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/coupon/{couponId}":{"delete":{"tags":["Admin Coupon"],"summary":"Delete a coupon by admin","operationId":"deleteCoupon","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/coupon/{id}":{"get":{"tags":["Admin Coupon"],"summary":"Get a coupon by ID (Admin)","operationId":"getCouponById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/coupon/search":{"post":{"tags":["Admin Coupon"],"summary":"Get all coupons with search (Admin)","operationId":"getAllCouponsWithSearch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponSearchRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}}},"/admin/coupon":{"put":{"tags":["Admin Coupon"],"summary":"Update an existing coupon on behalf of a partner","operationId":"updateCoupon","parameters":[{"name":"partnerUsername","in":"query","description":"The username of the partner who owns the coupon","required":true,"schema":{"type":"string"}},{"name":"jsondata","in":"query","description":"CouponDto JSON","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"brandLogoFile":{"type":"string","format":"binary"},"bannerImageFile":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Admin Coupon"],"summary":"Create a new coupon on behalf of a partner","operationId":"createCoupon","parameters":[{"name":"partnerUsername","in":"query","description":"The username of the partner who owns the coupon","required":true,"schema":{"type":"string"}},{"name":"jsondata","in":"query","description":"CouponDto JSON","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"brandLogoFile":{"type":"string","format":"binary"},"bannerImageFile":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v2/business/{userId}/videos":{"get":{"tags":["Business videos"],"summary":"Public: the business's videos that still play (empty when none).","operationId":"publicVideos","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BusinessVideoResponse"}}}}}}}},"/v2/partner/videos":{"get":{"tags":["Business videos"],"summary":"The signed-in partner's videos, including ones YouTube no longer plays.","operationId":"myVideos","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Business videos"],"summary":"Add a YouTube video or Short by link (max 3). Body: {url}","operationId":"add","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/partner/videos/{id}":{"put":{"tags":["Business videos"],"summary":"Replace a saved video with another link. Body: {url}","operationId":"replace","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Business videos"],"summary":"Remove a saved video.","operationId":"remove","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/message":{"get":{"tags":["Message"],"operationId":"getAllmsgs","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"post":{"tags":["Message"],"summary":"New message from a customer by selecting a deal","operationId":"createMessageChat","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/byDealId/{id}":{"get":{"tags":["Message"],"summary":"List messages by Deal ID","operationId":"getMessageByDealId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/byDealId/{id}/list":{"get":{"tags":["Message"],"summary":"List messages Objects by Deal ID","operationId":"getMessageObjectsByDealId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/msgThread":{"post":{"tags":["Message"],"summary":"Send a message for a thread","operationId":"saveMsgThread","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MsgThreadDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/msgThread/attachment":{"post":{"tags":["Message"],"summary":"Send message as an attachment for a thread","operationId":"saveMsgThreadWithAttachment","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/providerMsgs/{provider}":{"get":{"tags":["Message"],"summary":"Get Messages for a provider by username","operationId":"getAllProviderMsgs","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/consumerMsgs/{consumer}":{"get":{"tags":["Message"],"summary":"Get Messages for a customer by username","operationId":"getAllConsumerMsgs","parameters":[{"name":"consumer","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/msgById/{Id}":{"get":{"tags":["Message"],"summary":"Get whole message thread with all messages by ID","operationId":"getMsgById","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/check-existing-chat/{dealId}/{customerName}":{"get":{"tags":["Message"],"summary":"Returns message room between partner's single deal with a customer","operationId":"checkExistingChat","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerName","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/message/msgConRead/{Id}":{"put":{"tags":["Message"],"summary":"Mark message (main message) as read by ID for customer","operationId":"msgConsumerRead","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/msgProRead/{Id}":{"put":{"tags":["Message"],"summary":"Mark message (main message) as read by ID for partner","operationId":"msgProviderRead","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/unread":{"get":{"tags":["Message"],"summary":"Get Unread messageId","operationId":"msgConsumerUnRead","parameters":[{"name":"userName","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"isPartner","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/msgConUnRead/{Id}":{"put":{"tags":["Message"],"summary":"Mark message (main message) as unread by ID for customer","operationId":"msgConsumerUnRead_1","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/message/msgProUnRead/{Id}":{"put":{"tags":["Message"],"summary":"Mark message (main message) as unread by ID for partner","operationId":"msgProviderUnRead","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/msgThread/attachment/chat":{"post":{"tags":["Message"],"summary":"Send message as an attachment for a thread and return only the received message","operationId":"saveMsgThreadWithAttachmentChat","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/getAllStatesByCountryName":{"get":{"tags":["Country"],"description":"Get all states by country name","operationId":"getStatesByCountry","parameters":[{"name":"countryName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json;charset=UTF-8":{"schema":{"type":"object"}}}}}}},"/getAllStatesByCountries":{"get":{"tags":["Country"],"description":"Get all states by country name","operationId":"getStatesByCountrys","parameters":[{"name":"countryName","in":"query","required":true,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"OK","content":{"application/json;charset=UTF-8":{"schema":{"type":"object"}}}}}}},"/getAllCountries":{"get":{"tags":["Country"],"description":"All country list","operationId":"getAllCountries","responses":{"200":{"description":"OK","content":{"application/json;charset=UTF-8":{"schema":{"type":"object"}}}}}}},"/address/{username}":{"get":{"tags":["Customer Address"],"summary":"Gets list of customer addresses","operationId":"getAddresses","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"put":{"tags":["Customer Address"],"summary":"Update an address","operationId":"updateAddress","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Customer Address"],"summary":"Create a new address","operationId":"createAddress","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/address/{id}":{"delete":{"tags":["Customer Address"],"summary":"Delete an address","operationId":"deleteAddress","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/business/review/add":{"post":{"tags":["business-review-controller"],"summary":"Add Review to any business","operationId":"addReview","parameters":[{"name":"businessId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"rating","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"comment","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/business/getReviews/{id}":{"get":{"tags":["business-review-controller"],"summary":"get full Review details of any business","operationId":"getBusinessReviews","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"createdAt"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/BusinessReviewPageDTO"}}}}}}},"/api/v1/chat/conversations":{"get":{"tags":["Chat"],"summary":"User inbox","operationId":"getUserInbox","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Chat"],"summary":"Open or create a conversation","operationId":"createConversation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateConversationRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/conversations/{id}/messages":{"get":{"tags":["Chat"],"summary":"Paginated messages","operationId":"getMessages","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"beforeId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"afterId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Chat"],"summary":"Send a message","operationId":"sendMessage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/uploads":{"post":{"tags":["Chat"],"summary":"Upload chat attachment (any file type, per-user S3 directory: chat/{userId}/...)","operationId":"uploadChatMedia","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/conversations/{id}/messages/{messageId}":{"delete":{"tags":["Chat"],"summary":"Soft delete a message","operationId":"deleteMessage","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"messageId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/conversations/{id}":{"get":{"tags":["Chat"],"summary":"Conversation detail","operationId":"getConversation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Chat"],"summary":"Soft delete a conversation","operationId":"deleteConversation","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/conversations/{id}/read":{"post":{"tags":["Chat"],"summary":"Mark conversation read","operationId":"markRead","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarkReadRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/api/v1/chat/partner/conversations":{"get":{"tags":["Chat"],"summary":"Partner inbox with direct and store sections","operationId":"getPartnerInbox","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":20}},{"name":"locationId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/users/{id}/service-areas":{"get":{"tags":["Admin"],"summary":"A business's service area (Admin only). No rows = nationwide US.","operationId":"getServiceAreas_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Admin"],"summary":"Replace a business's service area (Admin only); saved areas count as confirmed.","operationId":"saveServiceAreas_1","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/users":{"put":{"tags":["Admin"],"summary":"Update User","description":"Update an existing user (Admin only)","operationId":"updateUser","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"User Updated","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Admin"],"summary":"Create User","description":"Create a new user/partner (Admin only)","operationId":"createUser","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"201":{"description":"User Created","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/partners":{"get":{"tags":["Admin"],"summary":"Get All Partners","description":"Retrieves a list of all partners.","operationId":"getPartners","responses":{"200":{"description":"Successfully retrieved list","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/PartnerDetailsDTO"}}}}}}}},"/admin/check-affiliate":{"get":{"tags":["Admin"],"summary":"Check Affiliate Partner by Email","description":"Checks if an affiliate partner exists with the given email and returns their details.","operationId":"checkAffiliatePartner","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"User exists but is not an affiliate","content":{"*/*":{"schema":{"type":"object"}}}},"200":{"description":"Affiliate partner found","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"User not found","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/":{"get":{"tags":["Admin"],"operationId":"defaultPageHandler","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin":{"put":{"tags":["Admin"],"operationId":"updateAdminUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"post":{"tags":["Admin"],"operationId":"saveUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/isLoggedIn/{username}":{"get":{"tags":["Admin"],"operationId":"getloginUser","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"put":{"tags":["Admin"],"operationId":"setloginUser","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"delete":{"tags":["Admin"],"operationId":"unSetloginUser","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/admin/users/search":{"get":{"tags":["Admin"],"summary":"Search Users","description":"Search users with pagination and sorting.","operationId":"getUsersWithSearch","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"CREATED_DT"}},{"name":"sortDir","in":"query","required":false,"schema":{"type":"string","default":"desc"}},{"name":"isPartner","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Successfully retrieved page","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PageRegisterUser"}}}}}}},"/admin/users/{id}":{"get":{"tags":["Admin"],"summary":"Get User","description":"Get user details by ID","operationId":"getUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"User Found","content":{"*/*":{"schema":{"type":"object"}}}},"404":{"description":"User Not Found","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Admin"],"summary":"Delete User","description":"Delete user by ID","operationId":"deleteUser","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"User Deleted","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/dashboard/stats":{"get":{"tags":["Admin"],"summary":"Get Dashboard Stats","description":"Get statistics for admin dashboard","operationId":"getDashboardStats","responses":{"200":{"description":"Stats Retrieved","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/cart/{username}":{"get":{"tags":["Shopping Cart"],"summary":"Get current cart of user (customer) ","operationId":"getCart","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Cart"}}}}}}},"/cart":{"post":{"tags":["Shopping Cart"],"summary":"Add a product to cart","operationId":"addProductToCart","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Cart"}}}}}},"delete":{"tags":["Shopping Cart"],"operationId":"removeCartProduct_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Cart"}}}}}}},"/cart/quantity":{"put":{"tags":["Shopping Cart"],"summary":"Update quantity of a product in cart","operationId":"updateCartProductQuantity","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Cart"}}}}}}},"/cart/{username}/{cartId}/{productId}":{"delete":{"tags":["Shopping Cart"],"summary":"Remove a product from customer's cart denoted by 'cartId' ","operationId":"removeCartProduct","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"cartId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"productId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/Cart"}}}}}}},"/cart/check/add-to-cart":{"get":{"tags":["Shopping Cart"],"summary":"Validate weather the customer can add the deal to his cart or not.","operationId":"canAddProductToCart","parameters":[{"name":"dealId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerUsername","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/cart/saved-deals":{"get":{"tags":["Shopping Cart"],"summary":"Get saved deals of customer","operationId":"getSavedDeals","parameters":[{"name":"customerUsername","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Shopping Cart"],"summary":"Add the deal to the saved deals list of customer","operationId":"saveDealForLater","parameters":[{"name":"customerUsername","in":"query","required":false,"schema":{"type":"string"}},{"name":"dealId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Shopping Cart"],"summary":"Remove the deal from the saved deals list of customer","operationId":"deleteDealFromSaved","parameters":[{"name":"customerUsername","in":"query","required":true,"schema":{"type":"string"}},{"name":"dealId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/subCategory":{"get":{"tags":["Admin Category"],"summary":"Get all sub-categories (Admin)","operationId":"getAllSubCategoriesForAdmin","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubCategory"}}}}}}},"post":{"tags":["Admin Category"],"summary":"Create a new sub-category (Admin)","operationId":"createSubCategory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubCategoryDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/category/{id}/status":{"put":{"tags":["Admin Category"],"summary":"Update category status (Admin)","operationId":"updateCategoryStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"isActive","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/subCategory/{id}/status":{"put":{"tags":["Admin Category"],"summary":"Update sub-category status (Admin)","operationId":"updateSubCategoryStatus","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"isActive","in":"query","required":true,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/category":{"get":{"tags":["Admin Category"],"summary":"Get all categories (Admin)","operationId":"getAllCategoriesForAdmin","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Category"}}}}}}},"post":{"tags":["Admin Category"],"summary":"Create a new category (Admin)","operationId":"createCategory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/storeLocation/image/{imageId}":{"delete":{"tags":["Store Location"],"summary":"Delete a store image from an individual store location","operationId":"deleteStoreImage","parameters":[{"name":"imageId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/banner":{"post":{"tags":["Store Location"],"summary":"Step 2: Add multiple banner images to an individual store location","operationId":"saveBannerImage","parameters":[{"name":"locationId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation":{"get":{"tags":["Store Location"],"operationId":"getAllstoreLocations","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"put":{"tags":["Store Location"],"summary":"Update a store location entry","operationId":"updateStoreLocation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreLocationDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Store Location"],"summary":"Create new Store location for deal","operationId":"saveStoreLocation","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StoreLocationDTO"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocationForSeller":{"get":{"tags":["Store Location"],"summary":"Get Store locations for seller","operationId":"getStoreLocationsForSeller","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Store Location"],"summary":"Create new Store location for seller","operationId":"saveStoreLocationForSeller","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SellerStoreLocation"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/individual":{"post":{"tags":["Store Location"],"summary":"Save and update an individual store location","operationId":"saveIndividualStoreLocation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreLocationDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/banner/{bannerId}":{"delete":{"tags":["Store Location"],"summary":"Delete a banner image from an individual store location","operationId":"deleteBannerImage","parameters":[{"name":"bannerId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/image":{"post":{"tags":["Store Location"],"summary":"Step 2: Add multiple store images to an individual store location","operationId":"saveStoreImage","parameters":[{"name":"locationId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/{locationId}/mainImage":{"put":{"tags":["Store Location"],"summary":"Step 2: Update main image of an individual store location","operationId":"updateMainImage","parameters":[{"name":"locationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/byUserId/{userId}":{"get":{"tags":["Store Location"],"summary":"Get Store locations by userId including business hours","operationId":"getStoreLocationsByUserId","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mStoreLocation":{"post":{"tags":["Store Location"],"operationId":"saveMProduct","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/storeLocation/byOwner/{dealOwner}":{"get":{"tags":["Store Location"],"summary":"Get list of all store locations for provider by username","operationId":"getAllStoreLocationsByOwner","parameters":[{"name":"dealOwner","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/byDeal/{dealID}":{"get":{"tags":["Store Location"],"summary":"Get list of store locations for deal denoted by dealID in path parameter","operationId":"getAllStoreLocationsByDeal","parameters":[{"name":"dealID","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/byId/{locationId}":{"get":{"tags":["Store Location"],"summary":"Get store location by location Id","operationId":"getStoreLocationsById","parameters":[{"name":"locationId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/storeLocation/{Id}":{"delete":{"tags":["Store Location"],"summary":"Soft delete a store location by its Id (deactivates store and associated coupons)","operationId":"deleteStoreLocation","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v2/partner/default-hours":{"get":{"tags":["Partner Profile v2"],"summary":"The business's default store hours ({\"hours\": null} when none are set).","operationId":"getDefaultHours","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Partner Profile v2"],"summary":"Set the business's default store hours (same fields as a store's hours).","operationId":"saveDefaultHours","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreBusinessHoursDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/user-query/list":{"get":{"tags":["User Query"],"summary":"All user queries for the super admin, newest first","operationId":"listUserQueries","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/UserQueryDto"}}}}}}}},"/admin/user-query/{id}":{"put":{"tags":["User Query"],"summary":"Update a user query's status / additional notes (closing requires notes)","operationId":"updateUserQuery","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserQueryDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserQueryDto"}}}}}}},"/user-query":{"post":{"tags":["User Query"],"summary":"Create a new User Query","operationId":"saveUserQuery","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserQueryDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserQueryDto"}}}}}}},"/mRating":{"post":{"tags":["Rating"],"summary":"Submit a new rating by customer (was created duplicate API for mobile)","operationId":"saveMRating","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/rating":{"get":{"tags":["Rating"],"operationId":"getAllRatings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true},"put":{"tags":["Rating"],"summary":"Update a rating, if found with dealId, author and ratingId","operationId":"updateRating","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatingDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Rating"],"summary":"Submit a new rating by customer","operationId":"saveRating","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RatingDTO"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/rating/{Id}":{"delete":{"tags":["Rating"],"summary":"Delete a rating by id","operationId":"deleteRating","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/rating/list/{dealId}":{"get":{"tags":["Rating"],"summary":"List ratings for a deal denoted by dealId in path parameter","operationId":"getProductRatings","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/rating/{dealId}/{author}":{"get":{"tags":["Rating"],"summary":"Get rating for a deal denoted by dealId in path parameter submitted by the user","operationId":"getProductRatingByAuthor","parameters":[{"name":"dealId","in":"path","required":true,"schema":{"minimum":1,"type":"integer","format":"int64"}},{"name":"author","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal-view-rating":{"get":{"tags":["Rating"],"summary":"get rating with pagination for a deal","operationId":"getRatingOfDeal","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":4}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string","default":"any"}},{"name":"dealId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"rating","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/partner":{"post":{"tags":["Partner Register"],"summary":"Register a new partner","operationId":"saveUser_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/registerPhotoNew":{"post":{"tags":["Partner Register"],"summary":"Update user's avatar. Multipart request. {file, jsondata} and jsondata={username}","operationId":"userPhotoUpload","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/updateRegisterUser":{"post":{"tags":["Partner Register"],"operationId":"updateRegisterUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/support":{"get":{"tags":["Support"],"operationId":"getAllSupports","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Support"],"operationId":"saveSupport","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/brands-search":{"get":{"tags":["brand-controller"],"operationId":"getBrandsByNameMatch","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/BrandDTO"}}}}}}}},"/notifications/{username}":{"get":{"tags":["Notifications"],"summary":"Get notifications for a user","operationId":"getNotifications","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MobileNotificationsResponse"}}}}}}},"/category/byId/{Id}":{"get":{"tags":["Product Category"],"summary":"Get a category by ID","operationId":"getCategory","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/category":{"get":{"tags":["Product Category"],"summary":"Get all deal categories","operationId":"getAllCategories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Product Category"],"summary":"Create a new deal category","operationId":"saveCategory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/subCategory/byCatName":{"get":{"tags":["Product Category"],"summary":"Get deal sub-categories by Category-Name","operationId":"getSubCategoryByCategoryName","parameters":[{"name":"categoryName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/subCategory":{"get":{"tags":["Product Category"],"summary":"Get all deal sub-categories","operationId":"getAllSubCategories","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Product Category"],"summary":"Create a new deal sub-category","operationId":"saveSubCategory","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubCategoryDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/onlycategory":{"get":{"tags":["Product Category"],"summary":"Get all deal categories without sub categories","operationId":"getAllCategoriesWithoutSubCategory","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/subCategory/byId/{Id}":{"get":{"tags":["Product Category"],"summary":"Get a deal sub-category by ID","operationId":"getSubCategoryById","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/subCategory/{categoryId}":{"get":{"tags":["Product Category"],"summary":"Get deal sub-categories by Category-ID","operationId":"getSubCategory","parameters":[{"name":"categoryId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/city/getAllCities":{"get":{"tags":["City"],"summary":"Get All Cities","description":"Fetches a list of all cities.","operationId":"getCities","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityResponse"}}}}}}}},"/city/getByStateIds":{"post":{"tags":["City"],"summary":"Get Cities by State ID","description":"Fetches a list of cities based on the provided state ID.","operationId":"getCitiesByStateId","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityResponse"}}}}}}}},"/city/findCity":{"post":{"tags":["City"],"summary":"Find Cities by Name","description":"Fetches a list of cities whose names contain the provided substring, case-insensitive.","operationId":"findCityByName","parameters":[{"name":"cityName","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CityResponse"}}}}}}}},"/api/thirdparty-brand-logos":{"get":{"tags":["Third Party Brand Logo"],"summary":"List all third-party brand logos","operationId":"getAllThirdPartyBrandLogos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ThirdPartyBrandLogo"}}}}}}},"post":{"tags":["Third Party Brand Logo"],"summary":"Create a third-party brand logo","operationId":"createThirdPartyBrandLogo","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"logo":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/thirdparty-brand-logos/{id}":{"put":{"tags":["Third Party Brand Logo"],"summary":"Update a third-party brand logo","operationId":"updateThirdPartyBrandLogo","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"logo":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/verifyCode":{"put":{"tags":["Authentication"],"summary":"Verify the 2 factor authentication code. {username, twoFaCode}. Returns Success if verified.","operationId":"validate2FACode","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/verify":{"put":{"tags":["Authentication"],"summary":"Generate a verification (2-factor-auth) code. {username, emailId}","operationId":"send2FaCodeviaEmail","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/states":{"get":{"tags":["States / Provinces"],"description":"Lists subdivisions (states or provinces) for the given country. Defaults to United States (countryId=1) so existing US-only callers keep working unchanged. Pass ?countryId=<id> from /getAllCountries to fetch another country's subdivisions.","operationId":"getAllStates","parameters":[{"name":"countryId","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1}}],"responses":{"200":{"description":"OK","content":{"application/json;charset=UTF-8":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/StateDTO"}}}}}}}},"/deal/multisearch":{"post":{"tags":["Deal"],"summary":"added multisearch functionality to /deal/search API also modified it return total and filter based on partnerId","operationId":"searchMultiDeals","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealSearchDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/allDeals":{"get":{"tags":["Deal"],"summary":"Get all active deals by sort order","operationId":"getAllActiveDeals","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1000}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string","enum":["PRICE_LOW_TO_HIGH","PRICE_HIGH_TO_LOW"],"default":"PRICE_LOW_TO_HIGH"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal":{"get":{"tags":["Deal"],"operationId":"getAllProducts","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"put":{"tags":["Deal"],"summary":"Update a deal","operationId":"updateDeal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Deal"],"summary":"Create a new deal","operationId":"saveDeal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/byOwner/{dealOwner}":{"get":{"tags":["Deal"],"summary":"List deals for provider by username","operationId":"getDealByOwner","parameters":[{"name":"dealOwner","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"active"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/byId/{Id}":{"get":{"tags":["Deal"],"summary":"Get a deal by ID","operationId":"getDeal","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/{Id}":{"delete":{"tags":["Deal"],"summary":"Delete a deal by ID","operationId":"deleteDeal","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/byCategory/{categoryId}":{"get":{"tags":["Deal"],"operationId":"getDealByCategory","parameters":[{"name":"categoryId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/byLocation/{startlng}/{startlat}":{"get":{"tags":["Deal"],"operationId":"getDealbyLocation","parameters":[{"name":"startlat","in":"path","required":true,"schema":{"type":"number","format":"double"}},{"name":"startlng","in":"path","required":true,"schema":{"type":"number","format":"double"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/deal/activate/{Id}":{"put":{"tags":["Deal"],"summary":"Activate a deal by ID","operationId":"dealActivate","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/agreement/{Id}":{"put":{"tags":["Deal"],"summary":"Set flag true for partner-agreement for a deal by ID","operationId":"dealAgree","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/deactivate/{Id}":{"put":{"tags":["Deal"],"summary":"De-Activate a deal by ID","operationId":"dealDeActivate","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/publish/{Id}":{"put":{"tags":["Deal"],"summary":"Publish a deal by ID","operationId":"dealPublish","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/unPublish/{Id}":{"put":{"tags":["Deal"],"summary":"Unpublish a deal by ID","operationId":"dealUnPublish","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/keywords-search":{"get":{"tags":["Deal"],"summary":"Search keywords by text. This API used while create deal and deal search page.","operationId":"searchKeywords","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/deal/by-keyword":{"get":{"tags":["Deal"],"operationId":"searchByKeyword","parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/deal/all":{"get":{"tags":["Deal"],"operationId":"getAllDeals","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/deal/search":{"get":{"tags":["Deal"],"summary":"Search deals by text, price range, ratings, keyword(id), categoryName. All are optional search parameters.","operationId":"searchDeals","parameters":[{"name":"searchText","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"priceRangeStart","in":"query","required":false,"schema":{"type":"number","format":"double","default":-1}},{"name":"priceRangeEnd","in":"query","required":false,"schema":{"type":"number","format":"double","default":-1}},{"name":"minRatings","in":"query","required":false,"schema":{"type":"number","format":"double","default":-1.0}},{"name":"keywordId","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":-1}},{"name":"categoryName","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"location","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":1000}},{"name":"sortOrder","in":"query","required":false,"schema":{"type":"string","enum":["PRICE_LOW_TO_HIGH","PRICE_HIGH_TO_LOW"],"default":"PRICE_LOW_TO_HIGH"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mConsumerRegistration":{"post":{"tags":["Mobile APIs"],"operationId":"saveUser_2","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mlogin/{username}":{"get":{"tags":["Mobile APIs"],"operationId":"mobileLogin","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}},"deprecated":true}},"/mToken/update/{username}":{"post":{"tags":["Mobile APIs"],"summary":"Update mobile token for push notification for username","operationId":"updateToken","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Token"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mProviderRegistration":{"post":{"tags":["Mobile APIs"],"operationId":"saveProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/test/notification":{"post":{"tags":["Mobile APIs"],"operationId":"testNotification","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationTestRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/api/coupons/bulk":{"post":{"tags":["Mass Coupon"],"summary":"Bulk create coupons for a brand/partner","operationId":"createBulkCoupons","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"request":{"type":"string"},"defaultImage":{"type":"string","format":"binary"},"itemImages":{"type":"array","items":{"type":"string","format":"binary"}},"partnerPhoto":{"type":"string","format":"binary"},"sellerPhotos":{"type":"array","items":{"type":"string","format":"binary"}},"bannerImages":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/coupons/bulk-disable":{"put":{"tags":["Mass Coupon"],"summary":"Bulk disable coupons for admins","operationId":"bulkDisableCoupons","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int64"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/partner/photos":{"post":{"tags":["Mass Coupon"],"summary":"Upload/update photos (partnerPhoto, sellerPhotos, bannerImages) for an existing partner by userId","operationId":"updatePartnerPhotos","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"partnerPhoto":{"type":"string","format":"binary"},"sellerPhotos":{"type":"array","items":{"type":"string","format":"binary"}},"bannerImages":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/sitemap-businesses.xml":{"get":{"tags":["business-sitemap-controller"],"operationId":"businessSitemap","parameters":[{"name":"shard","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/xml;charset=UTF-8":{"schema":{"type":"string"}}}}}}},"/admin/business-imports/template":{"get":{"tags":["Admin"],"summary":"The import file template (CSV, one row per location).","operationId":"template","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"type":"string","format":"byte"}}}}}}}},"/admin/claim-requests":{"get":{"tags":["Admin"],"summary":"Claim requests from owners who can't use the listing's email.","operationId":"requests","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"pending"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports/{id}":{"get":{"tags":["Admin"],"summary":"One batch: progress, per-business report and each listing's claim status.","operationId":"batch","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/claim-requests/{id}/reject":{"post":{"tags":["Admin"],"summary":"Reject a claim request.","operationId":"reject","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports/stats":{"get":{"tags":["Admin"],"summary":"Imported / unclaimed / invited / claimed per source, and pending claim requests.","operationId":"stats","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports/preview":{"post":{"tags":["Admin"],"summary":"Check the rows and find existing businesses. Nothing is saved.","operationId":"preview","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports":{"get":{"tags":["Admin"],"summary":"Recent import batches.","operationId":"batches","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Admin"],"summary":"Import the rows (runs in the background); returns the batch id to follow.","operationId":"start","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports/categories":{"get":{"tags":["Admin"],"summary":"Active categories and the services (sub-categories) each one accepts.","operationId":"categories","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/claim-requests/{id}/approve":{"post":{"tags":["Admin"],"summary":"Approve: the listing's email becomes the requester's and a claim link is emailed to it.","operationId":"approve","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/admin/business-imports/{id}/invites":{"post":{"tags":["Admin"],"summary":"Email claim invites for a batch: the given listings, or every one not invited yet.","operationId":"invites","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/homePageAds/{id}/deactivate":{"put":{"tags":["Home Page Ads"],"summary":"Deactivate ad by ID","operationId":"deactivateAd","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/homePageAds/{id}/activate":{"put":{"tags":["Home Page Ads"],"summary":"Activate ad by ID","operationId":"activateAd","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/homePageAds/{id}":{"get":{"tags":["Home Page Ads"],"summary":"Get ad by ID","operationId":"getAdById","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/HomePageAdsDTO"}}}}}},"delete":{"tags":["Home Page Ads"],"summary":"Delete ad by ID","operationId":"deleteAd","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/homePageAds":{"get":{"tags":["Home Page Ads"],"summary":"Get all ads","operationId":"getAllAds","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HomePageAdsDTO"}}}}}}},"put":{"tags":["Home Page Ads"],"summary":"Update an existing ad","operationId":"updateAd","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HomePageAdsDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/HomePageAdsDTO"}}}}}},"post":{"tags":["Home Page Ads"],"summary":"Create a new ad. Multipart request. {file, jsondata}","operationId":"createAd","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/HomePageAdsDTO"}}}}}}},"/homePageAds/active":{"get":{"tags":["Home Page Ads"],"summary":"Get active ads","operationId":"getActiveAds","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HomePageAdsDTO"}}}}}}}},"/business-verification/document/{documentId}":{"delete":{"tags":["Business Verification"],"summary":"Remove a specific document from business verification","operationId":"removeDocument","parameters":[{"name":"documentId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/business-verification/submit":{"put":{"tags":["Business Verification"],"summary":"Update business verification (multipart: files + JSON)","operationId":"updateVerification","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Business Verification"],"summary":"Submit business verification (multipart: files + JSON)","operationId":"submitVerification","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/business-verification/approve/{userId}":{"post":{"tags":["Business Verification"],"summary":"Admin: Approve business verification","operationId":"approveVerification","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"adminNotes","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/business-verification/reject/{userId}":{"post":{"tags":["Business Verification"],"summary":"Admin: Reject business verification","operationId":"rejectVerification","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"adminNotes","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/business-verification":{"get":{"tags":["Business Verification"],"summary":"Get business verification details for logged-in user","operationId":"getVerificationByUserId","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Business Verification"],"summary":"Delete business verification submission","operationId":"deleteVerification","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/business-verification/list":{"get":{"tags":["Business Verification"],"summary":"Admin: List all business verifications (optionally filter by status)","operationId":"getAllVerifications","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/business-verification/{userId}":{"get":{"tags":["Business Verification"],"summary":"Admin: Get business verification details by userId","operationId":"getVerificationDetailForAdmin","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/mProduct":{"post":{"tags":["Product"],"summary":"Create new product for a deal","operationId":"saveMProduct_1","requestBody":{"content":{"application/json":{"schema":{"type":"string"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/product":{"get":{"tags":["Product"],"summary":"Create new product for a deal","operationId":"getAllProducts_1","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"put":{"tags":["Product"],"summary":"Update a product","operationId":"updateProduct","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Product"],"summary":"Create new product for a deal","operationId":"saveProduct","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProductDTO"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/product/{Id}":{"delete":{"tags":["Product"],"summary":"Delete a product","operationId":"deleteProduct","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/images/optimize":{"get":{"tags":["Admin images"],"summary":"Progress / result of the current or last image backfill run.","operationId":"status","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}},"post":{"tags":["Admin images"],"summary":"Start the image backfill in the background. dryRun=true (default) only measures; limit = how many stored images this run (max 2000); retryFailed re-tries earlier failures.","operationId":"start_1","parameters":[{"name":"dryRun","in":"query","required":false,"schema":{"type":"boolean","default":true}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":200}},{"name":"retryFailed","in":"query","required":false,"schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/order/{id}":{"get":{"tags":["Order"],"summary":"Get an order by Id","operationId":"getOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}}},"/order/token-for-payment/{orderId}":{"get":{"tags":["Order"],"summary":"Generates Payment token for Order, then Client Connects to Gateway for proceeding for payment.","operationId":"getTokenForPayment","parameters":[{"name":"orderId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/order/{id}/refund-to-customer":{"post":{"tags":["Order"],"summary":"Refund customer","operationId":"refundTransactionForOrder","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefundRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/pay":{"post":{"tags":["Order"],"summary":"Make payment for Order, and place if success","operationId":"payForOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPaymentRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}},"deprecated":true}},"/order/bycart/{id}":{"get":{"tags":["Order"],"summary":"Get order by cart ID, if no order found with cartId, it will give error","operationId":"orderByCartId","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}}},"/order/{id}/invoice/download/":{"get":{"tags":["Order"],"summary":"Download invoice for an order by order ID","operationId":"downloadOrderInvoice","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}}}},"/order/{id}/update-status/packed":{"put":{"tags":["Order"],"summary":"Update order status as 'PACKED' ","operationId":"updateOrderStatusPacked","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/{id}/update-status/shipped":{"put":{"tags":["Order"],"summary":"Update order status as 'SHIPPED' ","operationId":"updateOrderStatusShipped","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/{id}/update-status/delivered":{"put":{"tags":["Order"],"summary":"Update order status as 'DELIVERED' ","operationId":"updateOrderStatusDelivered","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/{id}/update-status/cancelled":{"put":{"tags":["Order"],"summary":"Update order status as 'CANCELLED' ","operationId":"updateOrderStatusCancelled","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/{id}/update-status/return-requested":{"put":{"tags":["Order"],"summary":"Update order status as 'RETURN_REQUESTED' ","operationId":"updateOrderStatusReturnRequested","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/{id}/update-status/returned":{"put":{"tags":["Order"],"summary":"Update order status as 'RETURNED' ","operationId":"updateOrderStatusReturned","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/orders-stats":{"get":{"tags":["Order"],"summary":"Order statistics for Partner","operationId":"getOrderStatsForPartner","parameters":[{"name":"partnerUsername","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order":{"put":{"tags":["Order"],"summary":"Update an order, address(s) in order","operationId":"updateOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOrderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}},"post":{"tags":["Order"],"summary":"Create a new order","operationId":"createOrder","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}}},"/order/place/fail":{"post":{"tags":["Order"],"summary":"Mark order as failed payment","operationId":"placeOrderFail","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentFailedOrderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}}},"/order/place/success":{"post":{"tags":["Order"],"summary":"Confirm order by success payment confirmation","operationId":"placeOrderSuccess","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaceOrderRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderDTO"}}}}}}},"/order/byProvider/{username}":{"get":{"tags":["Order"],"summary":"Get orders for provider by username","operationId":"ordersByProvider","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"null"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/order/byConsumer/{username}":{"get":{"tags":["Order"],"summary":"Get orders for customer by username","operationId":"ordersByConsumer","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/get-user-info":{"get":{"tags":["Authentication"],"summary":"Get user (customer/partner) details by email. Gives basic info username, names etc.","operationId":"getUserName","parameters":[{"name":"email","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/role":{"get":{"tags":["Authentication"],"summary":"Get list of roles","operationId":"getAllRoles","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Authentication"],"summary":"Create a new role","operationId":"saveRole","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/register":{"post":{"tags":["Authentication"],"summary":"Register a customer","operationId":"saveUser_3","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Authentication"],"operationId":"deleteUser_1","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUser"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/register/{username}":{"get":{"tags":["Authentication"],"summary":"Get user (customer/partner) details by username","operationId":"getUser_1","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"put":{"tags":["Authentication"],"summary":"Update user info by username","operationId":"updateRegisterUser_1","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Authentication"],"operationId":"getRegisterUser","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/token-for-cc":{"get":{"tags":["Authentication"],"summary":"Generates Payment token for Order, then Client Connects to Gateway for proceeding for payment.","operationId":"getTokenForPayment_1","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","required":true,"schema":{"type":"string"}},{"name":"Origin","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/register/account-setup":{"put":{"tags":["Authentication"],"summary":"Update Partner Account setup.","operationId":"updatePartnerAccountSetup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/registerUsers":{"get":{"tags":["Authentication"],"operationId":"getAllRegisterUsers","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/deleteARegisteredUser/{Id}":{"delete":{"tags":["Authentication"],"summary":"Delete a registered user","operationId":"deleteARegisteredUser","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/authenticate":{"post":{"tags":["Authentication"],"summary":"Authenticate a user by username,password and generate a token","operationId":"createAuthenticationToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/authenticate-via-gtoken":{"post":{"tags":["Authentication"],"summary":"Authenticate a user by Google Auth Token. {username:email, password:gtoken}","operationId":"createAuthenticationTokenFromGoogleToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JwtRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/getUser/{username}":{"get":{"tags":["Authentication"],"operationId":"getchkUser","parameters":[{"name":"username","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}},"deprecated":true}},"/regpwd":{"put":{"tags":["Authentication"],"summary":"Update the caller's own password (requires the current password)","operationId":"updatePwd","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/resetpwd":{"put":{"tags":["Authentication"],"summary":"Reset user password with Two factor auth code","operationId":"resetPwd","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/forgot-password":{"get":{"tags":["Authentication"],"summary":"this is for new forgot password","operationId":"forgotPassword","parameters":[{"name":"name","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/coupons":{"get":{"tags":["Coupon"],"summary":"Get My coupons","operationId":"getMyCoupons","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":5}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}},"put":{"tags":["Coupon"],"summary":"Update an existing coupon","description":"Multipart request (similar to /dealPhotoUpload). {brandLogoFile, jsondata, username} and jsondata={all fields of CouponDTO}","operationId":"updateCoupon_1","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}},{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"brandLogoFile":{"type":"string","format":"binary"},"bannerImageFile":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Coupon"],"summary":"Create a new coupon","description":"Multipart request (similar to /dealPhotoUpload). {brandLogoFile, jsondata, username} and jsondata={all fields of CouponDTO}","operationId":"createCoupon_1","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}},{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"brandLogoFile":{"type":"string","format":"binary"},"bannerImageFile":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/filterCoupons/all":{"get":{"tags":["Coupon"],"summary":"Get all coupons with only necessary data","operationId":"getAllCoupons","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"zipCode","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"partnerId","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilteredCouponsResponse"}}}}}}},"/coupons/{couponId}/renew":{"put":{"tags":["Coupon"],"summary":"Re-new a coupon","operationId":"renewCoupon","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/usage":{"get":{"tags":["Coupon"],"summary":"Get usage of coupon for partner","operationId":"getCouponUsage","parameters":[{"name":"partnerId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/{couponId}/enable":{"put":{"tags":["Coupon"],"summary":"Enable a coupon","operationId":"enableCoupon","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/{couponId}/disable":{"put":{"tags":["Coupon"],"summary":"Disable a coupon","operationId":"disableCoupon","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/multi/offers":{"post":{"tags":["Coupon"],"summary":"Get Offer coupons for customer with multi category filter","operationId":"getOfferCoupons","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponMultiSearchDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}}},"/coupons/offers":{"get":{"tags":["Coupon"],"summary":"Get Offer coupons for customer","operationId":"getOfferCoupons_1","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"zipCode","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"partnerId","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}},"post":{"tags":["Coupon"],"summary":"Get Offer coupons for customer (POST)","operationId":"getOfferCouponsPost","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponOfferSearchDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}}},"/coupons/random-code":{"get":{"tags":["Coupon"],"summary":"Generate Random coupon code","operationId":"generateRandomCouponCode","parameters":[{"name":"partnerId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/coupons/{couponId}/use":{"put":{"tags":["Coupon"],"summary":"Use a coupon","operationId":"useCoupon","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"customerId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/popularOffers":{"get":{"tags":["Coupon"],"summary":"Get Offer coupons for landing page","operationId":"getPopularCoupons","parameters":[{"name":"page","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"size","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"city","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"zipCode","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"cityId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateName","in":"query","required":false,"schema":{"type":"string"}},{"name":"countryCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CouponsResponse"}}}}}}},"/coupons/customer-saved":{"get":{"tags":["Coupon"],"summary":"Save a coupon in Customer Saved Coupon","operationId":"getSavedCouponsForCustomer","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Coupon"],"summary":"Save a coupon in Customer Saved Coupon","operationId":"saveCouponForCustomer","parameters":[{"name":"couponId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"delete":{"tags":["Coupon"],"summary":"Delete a coupon from Customer Saved Coupon","operationId":"deleteSavedCouponForCustomer","parameters":[{"name":"couponId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/topCouponCategory":{"get":{"tags":["Coupon"],"summary":"Returns top 5 category with coupon","operationId":"findTopCoupons","parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"city","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"cityId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateName","in":"query","required":false,"schema":{"type":"string"}},{"name":"countryCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/{couponId}":{"delete":{"tags":["Coupon"],"summary":"Delete a coupon for Partner (owned)","operationId":"deleteCouponForPartner","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/{couponId}/increment-usage":{"post":{"tags":["Coupon"],"summary":"Increment coupon usage","operationId":"increaseCouponUsageCount","parameters":[{"name":"couponId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/coupons/{id}":{"get":{"tags":["Coupon"],"summary":"Get a coupon by ID (Partner)","operationId":"getCouponByIdForPartner","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/v2/home/businesses":{"get":{"tags":["home-business-controller"],"summary":"Random real businesses (not affiliates; logo, banner or business photo, phone and address) with rating, services, phone and directions, following the customer's location like the directory","operationId":"randomBusinesses","parameters":[{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"city","in":"query","required":false,"schema":{"type":"string"}},{"name":"cityId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateId","in":"query","required":false,"schema":{"type":"integer","format":"int64"}},{"name":"stateName","in":"query","required":false,"schema":{"type":"string"}},{"name":"countryCode","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/HomeBusinessResponse"}}}}}}}},"/dealPhoto":{"get":{"tags":["Deal - Photo"],"operationId":"getAllProductPhotos","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["Deal - Photo"],"operationId":"saveDealPhoto","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DealPhotoDTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/dealPhotoR/{Id}":{"delete":{"tags":["Deal - Photo"],"operationId":"deleteProductPhotoRelation","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK"}},"deprecated":true}},"/dealPhoto/{Id}":{"delete":{"tags":["Deal - Photo"],"operationId":"deletePhoto","parameters":[{"name":"Id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/kyc/submit":{"put":{"tags":["KYC"],"summary":"Update KYC details","operationId":"updateKYCData","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"identificationType","in":"query","required":true,"schema":{"type":"string"}},{"name":"identificationNumber","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}},"post":{"tags":["KYC"],"summary":"Add KYC details","operationId":"submitKYC","parameters":[{"name":"userId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"identificationType","in":"query","required":true,"schema":{"type":"string"}},{"name":"identificationNumber","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"string"}}}}}}},"/kyc/{userId}":{"get":{"tags":["KYC"],"summary":"Get KYC details by userId","operationId":"getKycDetailsByUserId","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/deleteKYCData/{userId}":{"delete":{"tags":["KYC"],"summary":"Delete KYC data for a registered user","operationId":"deleteKYCData","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/admin/verifyKYC/{userId}":{"post":{"tags":["KYC"],"summary":"Set KYC data as verified by admin","operationId":"setKYCVerifiedByAdmin","parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/store/review/add":{"post":{"tags":["store-review-controller"],"summary":"Add review to a store","operationId":"addReview_1","parameters":[{"name":"locationId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"rating","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"comment","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/store/getReviews/{id}":{"get":{"tags":["store-review-controller"],"summary":"get review details of a single store","operationId":"getStoreReviews","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":0}},{"name":"size","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"sortBy","in":"query","required":false,"schema":{"type":"string","default":"createdAt"}},{"name":"direction","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StoreReviewPageDTO"}}}}}}},"/registerPhoto":{"post":{"tags":["aws-controller"],"summary":"Update user's avatar. Multipart request. {file, jsondata} and jsondata={username}","operationId":"userPhotoUpload_1","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/dealPhotoUpload":{"post":{"tags":["aws-controller"],"summary":"Upload a deal photo. Multipart request. {file, jsondata} and jsondata={username, dealId, photoname}","operationId":"productPhotoUpload","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/sellerByBrand":{"get":{"tags":["aws-controller"],"summary":"Get seller info by business name","operationId":"getSellerByBusinessName","parameters":[{"name":"brand","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/partnerByUsername":{"get":{"tags":["aws-controller"],"summary":"Get partner data by username (public)","operationId":"getPartnerByUsername","parameters":[{"name":"username","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/getAllBusinessData/{size}/{page}":{"get":{"tags":["aws-controller"],"summary":"fetches data for all business owner with Count of coupons and Deals","operationId":"getAllBusinessDataWithCountOfCouponAndDeal","parameters":[{"name":"size","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"path","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"category","in":"query","required":false,"schema":{"type":"string","default":""}},{"name":"sortField","in":"query","required":false,"schema":{"type":"string","default":"average_rating"}},{"name":"sortDirection","in":"query","required":false,"schema":{"type":"string","default":"desc"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/v2/getAllBusinessDataMultiCategory":{"post":{"tags":["aws-controller"],"summary":"Fetches data for all business owners (multiple categories) - V2 with pagination metadata","operationId":"getAllBusinessDataWithCountOfCouponAndDealV2","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/PaginatedBusinessResponse"}}}}}}},"/registerPhoto-SellerProfile":{"post":{"tags":["aws-controller"],"summary":"Add seller profile photos. Multipart request. {file, jsondata} and jsondata={username}","operationId":"userPhotoForSellerProfile","parameters":[{"name":"jsondata","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}},"/uploadPartnerBanner":{"post":{"tags":["aws-controller"],"summary":"Upload partner banner images. Multipart request","operationId":"uploadPartnerBanner","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}}}}},"/getAllBusinessDataMultiCategory":{"post":{"tags":["aws-controller"],"summary":"Fetches data for all business owners (multiple categories)","operationId":"getAllBusinessDataWithCountOfCouponAndDealNewOne","requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"object"}}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AllStoreResponse"}}}}}}}},"/getAllExclusiveStores":{"get":{"tags":["aws-controller"],"summary":"Returns List of Exclusive stores","operationId":"getAllExclusiveStores","responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"RegisterUserDTO":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"username":{"type":"string"},"password":{"type":"string","writeOnly":true},"oldPassword":{"type":"string","writeOnly":true},"email":{"type":"string"},"phone":{"type":"string"},"description":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"photopath":{"type":"string"},"role":{"$ref":"#/components/schemas/RoleDTO"},"tfa_code":{"type":"string"},"tfa_expire_time":{"type":"integer","format":"int64"},"tfa_default_type":{"type":"string"},"betacode":{"type":"string"},"website":{"type":"string"},"businessName":{"type":"string"},"partnerType":{"type":"string"},"accountSetup":{"type":"boolean"},"loginToken":{"type":"string"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"zip":{"type":"string"},"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"distance":{"type":"number","format":"double"},"businessCategory":{"type":"string"},"usernameGenerated":{"type":"boolean"},"businessContactNumber":{"type":"string"},"businessAddress":{"type":"string"},"businessVerificationStatus":{"type":"string"},"socialMediaLinks":{"type":"array","items":{"$ref":"#/components/schemas/SocialMediaLinkDTO"}},"subCategoryIds":{"type":"array","items":{"type":"integer","format":"int64"}},"hideStreetAddress":{"type":"boolean"},"categoriesInterested":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"sellerPhotos":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"active":{"type":"boolean"},"loggedIn":{"type":"boolean"},"verified":{"type":"boolean"},"photoUploaded":{"type":"boolean"},"is_tfa_enabled":{"type":"boolean"}}},"RoleDTO":{"type":"object","properties":{"roleName":{"type":"string"},"description":{"type":"string"}}},"SocialMediaLinkDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"platform":{"type":"string"},"url":{"type":"string"}}},"SaveRequest":{"type":"object","properties":{"areas":{"type":"array","items":{"$ref":"#/components/schemas/ServiceAreaDTO"}}}},"ServiceAreaDTO":{"type":"object","properties":{"scope":{"type":"string"},"countryId":{"type":"integer","format":"int64"},"stateId":{"type":"integer","format":"int64"},"cityId":{"type":"integer","format":"int64"}}},"StoreBusinessHoursDTO":{"type":"object","properties":{"storeBusinessHourId":{"type":"integer","format":"int64"},"locationId":{"type":"integer","format":"int64"},"mondayOpen":{"type":"boolean"},"tuesdayOpen":{"type":"boolean"},"wednesdayOpen":{"type":"boolean"},"thursdayOpen":{"type":"boolean"},"fridayOpen":{"type":"boolean"},"saturdayOpen":{"type":"boolean"},"sundayOpen":{"type":"boolean"},"mondayOpenTime":{"type":"string"},"tuesdayOpenTime":{"type":"string"},"wednesdayOpenTime":{"type":"string"},"thursdayOpenTime":{"type":"string"},"fridayOpenTime":{"type":"string"},"saturdayOpenTime":{"type":"string"},"sundayOpenTime":{"type":"string"},"mondayCloseTime":{"type":"string"},"tuesdayCloseTime":{"type":"string"},"wednesdayCloseTime":{"type":"string"},"thursdayCloseTime":{"type":"string"},"fridayCloseTime":{"type":"string"},"saturdayCloseTime":{"type":"string"},"sundayCloseTime":{"type":"string"}}},"CouponSearchRequest":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"state":{"type":"string"},"city":{"type":"string"},"zipCode":{"type":"string"},"category":{"type":"string"},"searchText":{"type":"string"},"sortBy":{"type":"string"},"sortDir":{"type":"string"},"currentlyActive":{"type":"boolean"},"subCategoryIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CouponDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"couponCode":{"type":"string"},"effectiveFrom":{"type":"string","format":"date-time"},"validUpTo":{"type":"string","format":"date-time"},"shortTitle":{"type":"string"},"longDescription":{"type":"string"},"termsAndConditions":{"type":"string"},"partnerId":{"type":"integer","format":"int64"},"category":{"type":"string"},"subCategory":{"type":"string"},"discount":{"type":"number","format":"float"},"isAffiliate":{"type":"boolean"},"states":{"type":"array","items":{"type":"string"}},"cities":{"type":"array","items":{"type":"string"}},"zipCodes":{"type":"array","items":{"type":"string"}},"brandName":{"type":"string"},"brandLogo":{"type":"string"},"bannerImageUrl":{"type":"string"},"useLogoAsBanner":{"type":"boolean"},"isFlatDiscount":{"type":"boolean"},"maxUsages":{"type":"integer","format":"int32"},"maxUsagePerUser":{"type":"integer","format":"int32"},"enabled":{"type":"boolean"},"weblink":{"type":"string"},"count":{"type":"integer","format":"int64"},"popularity":{"type":"number","format":"double"},"disclaimer":{"type":"string"},"isSaved":{"type":"boolean"},"isUsed":{"type":"boolean"},"isOffline":{"type":"boolean"},"storeLocationIds":{"type":"array","items":{"type":"integer","format":"int64"}},"hasCouponCode":{"type":"boolean"},"usedCount":{"type":"integer","format":"int64"}}},"CouponsResponse":{"type":"object","properties":{"coupons":{"type":"array","items":{"$ref":"#/components/schemas/CouponDto"}},"total":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"BusinessVideoResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"platform":{"type":"string"},"videoId":{"type":"string"},"kind":{"type":"string"},"title":{"type":"string"},"url":{"type":"string"},"embedUrl":{"type":"string"},"thumbnailUrl":{"type":"string"},"available":{"type":"boolean"},"position":{"type":"integer","format":"int32"}}},"Category":{"type":"object","properties":{"categoryId":{"type":"integer","format":"int64"},"categoryName":{"type":"string"},"subCategories":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/SubCategory"}},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date-time"},"last_MODIFIED_DT":{"type":"string","format":"date-time"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"GrantedAuthority":{"type":"object","properties":{"authority":{"type":"string"}}},"KYC":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"identificationType":{"type":"string"},"identificationNumber":{"type":"string"},"fileName":{"type":"string"},"filePath":{"type":"string"},"isVerified":{"type":"boolean"}}},"MessageDTO":{"type":"object","properties":{"messageId":{"type":"integer","format":"int64"},"consumerName":{"type":"string"},"consumer":{"$ref":"#/components/schemas/RegisterUser"},"providerName":{"type":"string"},"provider":{"$ref":"#/components/schemas/RegisterUser"},"dealId":{"type":"integer","format":"int64"},"dealName":{"type":"string"},"subject":{"type":"string"},"message":{"type":"string"},"messageProviderRead":{"type":"boolean"},"messageConsumerRead":{"type":"boolean"},"msgThreads":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/MsgThread"}},"created_DT":{"type":"string","format":"date-time"}}},"MsgThread":{"type":"object","properties":{"msgThreadId":{"type":"integer","format":"int64"},"messageId":{"type":"integer","format":"int64"},"consumerName":{"type":"string"},"providerName":{"type":"string"},"senderName":{"type":"string"},"message":{"type":"string"},"messageRead":{"type":"boolean"},"attachmentPath":{"type":"string"},"created_DT":{"type":"string","format":"date-time"},"last_MODIFIED_DT":{"type":"string","format":"date-time"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"RegisterUser":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"username":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"description":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"businessName":{"type":"string"},"partnerType":{"type":"string"},"website":{"type":"string"},"photopath":{"type":"string"},"tfa_code":{"$ref":"#/components/schemas/RegisterUser"},"tfa_expire_time":{"$ref":"#/components/schemas/RegisterUser"},"tfa_default_type":{"type":"string"},"accountSetup":{"type":"boolean"},"usernameGenerated":{"type":"boolean"},"loginToken":{"$ref":"#/components/schemas/RegisterUser"},"mobileToken":{"$ref":"#/components/schemas/RegisterUser"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"zip":{"type":"string"},"serviceAreaConfirmed":{"type":"boolean"},"businessCategory":{"type":"string"},"businessContactNumber":{"type":"string"},"businessAddress":{"type":"string"},"hideStreetAddress":{"type":"boolean"},"defaultBanner":{"type":"integer","format":"int32","readOnly":true},"claimStatus":{"type":"string"},"listingSource":{"type":"string","readOnly":true},"socialMediaLinks":{"type":"array","items":{"$ref":"#/components/schemas/SocialMediaLinkDTO"}},"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"distance":{"type":"number","format":"double"},"role":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/Role"}},"categoriesInterested":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/Category"}},"sellerPhotos":{"uniqueItems":true,"type":"array","items":{"type":"string"}},"kycDetails":{"$ref":"#/components/schemas/KYC"},"bannerImageUrls":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"fullName":{"type":"string"},"active":{"type":"boolean"},"loggedIn":{"type":"boolean"},"verified":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"authorities":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/GrantedAuthority"}},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"},"photoUploaded":{"type":"boolean"},"is_tfa_enabled":{"type":"boolean"},"businessVerificationStatus":{"type":"object"},"accountNonLocked":{"type":"boolean"},"accountNonExpired":{"type":"boolean"},"credentialsNonExpired":{"type":"boolean"}}},"Role":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"roleName":{"type":"string"},"description":{"type":"string"}}},"SubCategory":{"type":"object","properties":{"subCategoryId":{"type":"integer","format":"int64"},"categoryId":{"type":"integer","format":"int64"},"subCategoryName":{"type":"string"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date-time"},"last_MODIFIED_DT":{"type":"string","format":"date-time"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"MsgThreadDTO":{"type":"object","properties":{"msgThreadId":{"type":"integer","format":"int64"},"messageId":{"type":"integer","format":"int64"},"consumerName":{"type":"string"},"providerName":{"type":"string"},"senderName":{"type":"string"},"message":{"type":"string"},"attachmentPath":{"type":"string"},"messageRead":{"type":"boolean"},"created_DT":{"type":"string","format":"date-time"}}},"AddressDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"zip":{"type":"string"},"type":{"type":"string"},"name":{"type":"string"},"contactNo":{"type":"string"}}},"BusinessReviewDTO":{"type":"object","properties":{"reviewerFirstName":{"type":"string"},"reviewerLastName":{"type":"string"},"reviewerPhotoPath":{"type":"string"},"rating":{"type":"integer","format":"int32"},"comment":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"BusinessReviewPageDTO":{"type":"object","properties":{"reviews":{"type":"array","items":{"$ref":"#/components/schemas/BusinessReviewDTO"}},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"numberOfElements":{"type":"integer","format":"int32"},"averageRating":{"type":"number","format":"double"}}},"CreateConversationRequest":{"type":"object","properties":{"type":{"type":"string","enum":["DIRECT","STORE"]},"partnerId":{"type":"integer","format":"int64"},"locationId":{"type":"integer","format":"int64"}}},"MarkReadRequest":{"type":"object","properties":{"lastReadMessageId":{"type":"integer","format":"int64"}}},"SendMessageRequest":{"type":"object","properties":{"contentType":{"type":"string","enum":["TEXT","IMAGE","FILE","SYSTEM"]},"body":{"type":"string"},"mediaUrl":{"type":"string"},"clientMessageId":{"type":"string"}}},"PartnerDetailsDTO":{"type":"object","properties":{"username":{"type":"string"},"firstname":{"type":"string"},"lastname":{"type":"string"},"email":{"type":"string"},"userId":{"type":"integer","format":"int64"},"businessCategory":{"type":"string"},"businessName":{"type":"string"}}},"PageRegisterUser":{"type":"object","properties":{"totalPages":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"},"first":{"type":"boolean"},"sort":{"$ref":"#/components/schemas/Sort"},"last":{"type":"boolean"},"numberOfElements":{"type":"integer","format":"int32"},"pageable":{"$ref":"#/components/schemas/Pageable"},"size":{"type":"integer","format":"int32"},"content":{"type":"array","items":{"$ref":"#/components/schemas/RegisterUser"}},"number":{"type":"integer","format":"int32"},"empty":{"type":"boolean"}}},"Pageable":{"type":"object","properties":{"pageSize":{"type":"integer","format":"int32"},"pageNumber":{"type":"integer","format":"int32"},"sort":{"$ref":"#/components/schemas/Sort"},"unpaged":{"type":"boolean"},"paged":{"type":"boolean"},"offset":{"type":"integer","format":"int64"}}},"Sort":{"type":"object","properties":{"sorted":{"type":"boolean"},"unsorted":{"type":"boolean"},"empty":{"type":"boolean"}}},"Cart":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"items":{"type":"array","items":{"$ref":"#/components/schemas/CartItem"}},"username":{"type":"string"},"totalPrice":{"type":"number","format":"double"},"discountPrice":{"type":"number","format":"double"},"payablePrice":{"type":"number","format":"double"}}},"CartItem":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"product":{"$ref":"#/components/schemas/Product"},"deal":{"$ref":"#/components/schemas/Deal"},"quantity":{"type":"integer","format":"int32"}}},"Deal":{"type":"object","properties":{"dealId":{"type":"integer","format":"int64"},"dealName":{"type":"string"},"dealType":{"type":"string"},"description":{"type":"string"},"categoryName":{"type":"string"},"subCategoryName":{"type":"string"},"dealOwner":{"type":"string"},"businessName":{"type":"string"},"website":{"type":"string"},"tags":{"type":"string"},"featured":{"type":"boolean"},"highlights":{"type":"string"},"categoryId":{"type":"integer","format":"int64"},"subCategoryId":{"type":"integer","format":"int64"},"published":{"type":"boolean"},"productKey":{"type":"string"},"effectiveDate":{"type":"string","format":"date"},"expiryDate":{"type":"string","format":"date"},"personLimitRule":{"type":"boolean"},"reorderRule":{"type":"boolean"},"expiryRule":{"type":"boolean"},"personLimit":{"type":"integer","format":"int32"},"reorderdays":{"type":"integer","format":"int32"},"expiryDays":{"type":"integer","format":"int32"},"agreement":{"type":"boolean"},"noStoreLocation":{"type":"boolean"},"products":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/Product"}},"photos":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/DealPhoto"}},"address":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/StoreLocation"}},"ratings":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/Rating"}},"keywords":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/Keyword"}},"registerUser":{"$ref":"#/components/schemas/RegisterUser"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"DealPhoto":{"type":"object","properties":{"dealPhotoId":{"type":"integer","format":"int64"},"caption":{"type":"string"},"photopath":{"type":"string"},"photoname":{"type":"string"},"dealId":{"type":"integer","format":"int64"},"dealOwner":{"type":"string"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date-time"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"Keyword":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"Product":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"productDescription":{"type":"string"},"normalPrice":{"type":"number","format":"double"},"dealPrice":{"type":"number","format":"double"},"unit":{"type":"integer","format":"int32"},"dealId":{"type":"integer","format":"int64"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"Rating":{"type":"object","properties":{"ratingId":{"type":"integer","format":"int64"},"rating":{"type":"integer","format":"int32"},"ratingComment":{"type":"string"},"dealId":{"type":"integer","format":"int64"},"productId":{"type":"integer","format":"int64"},"ratingAuthor":{"type":"string"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"StoreBannerImage":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"imageUrl":{"type":"string"}}},"StoreBusinessHours":{"type":"object","properties":{"storeBusinessHourId":{"type":"integer","format":"int64"},"locationId":{"type":"integer","format":"int64"},"mondayOpen":{"type":"boolean"},"tuesdayOpen":{"type":"boolean"},"wednesdayOpen":{"type":"boolean"},"thursdayOpen":{"type":"boolean"},"fridayOpen":{"type":"boolean"},"saturdayOpen":{"type":"boolean"},"sundayOpen":{"type":"boolean"},"mondayOpenTime":{"type":"string"},"tuesdayOpenTime":{"type":"string"},"wednesdayOpenTime":{"type":"string"},"thursdayOpenTime":{"type":"string"},"fridayOpenTime":{"type":"string"},"saturdayOpenTime":{"type":"string"},"sundayOpenTime":{"type":"string"},"mondayCloseTime":{"type":"string"},"tuesdayCloseTime":{"type":"string"},"wednesdayCloseTime":{"type":"string"},"thursdayCloseTime":{"type":"string"},"fridayCloseTime":{"type":"string"},"saturdayCloseTime":{"type":"string"},"sundayCloseTime":{"type":"string"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"StoreImage":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"imageUrl":{"type":"string"}}},"StoreLocation":{"type":"object","properties":{"locationId":{"type":"integer","format":"int64"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"locationType":{"type":"string"},"zip":{"type":"string"},"storePhoneNumber":{"type":"string"},"storeName":{"type":"string"},"email":{"type":"string"},"weblink":{"type":"string"},"unit":{"type":"integer","format":"int32"},"dealId":{"type":"integer","format":"int64"},"sellerUsername":{"type":"string"},"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"distance":{"type":"number","format":"double"},"isDeleted":{"type":"boolean"},"storeBusinessHour":{"$ref":"#/components/schemas/StoreBusinessHours"},"mainImageUrl":{"type":"string"},"bannerImages":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/StoreBannerImage"}},"storeImages":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/StoreImage"}},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"},"last_MODIFIED_DT":{"type":"string","format":"date"},"created_USER_NM":{"type":"string"},"last_MODIFIED_USER_NM":{"type":"string"}}},"CartRequest":{"type":"object","properties":{"cartId":{"type":"integer","description":"ID of cart. Optional for Add Product to cart","format":"int64"},"productId":{"type":"integer","format":"int64"},"username":{"type":"string"},"quantity":{"type":"integer","format":"int32"}}},"CategoryDTO":{"type":"object","properties":{"categoryId":{"type":"integer","format":"int64"},"categoryName":{"type":"string"},"userName":{"type":"string"}}},"SubCategoryDTO":{"type":"object","properties":{"subCategoryId":{"type":"integer","format":"int64"},"categoryId":{"type":"integer","format":"int64"},"subCategoryName":{"type":"string"},"userName":{"type":"string"}}},"StoreBannerImageDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"locationId":{"type":"integer","format":"int64"},"imageUrl":{"type":"string"}}},"StoreImageDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"locationId":{"type":"integer","format":"int64"},"imageUrl":{"type":"string"}}},"StoreLocationDTO":{"type":"object","properties":{"locationId":{"type":"integer","format":"int64"},"addressLine1":{"type":"string"},"addressLine2":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"country":{"type":"string"},"zip":{"type":"string"},"storePhoneNumber":{"type":"string"},"storeName":{"type":"string"},"email":{"type":"string"},"weblink":{"type":"string"},"unit":{"type":"integer","format":"int32"},"dealId":{"type":"integer","format":"int64"},"longitude":{"type":"number","format":"double"},"latitude":{"type":"number","format":"double"},"distance":{"type":"number","format":"double"},"storeBusinessHour":{"$ref":"#/components/schemas/StoreBusinessHoursDTO"},"locationType":{"type":"string"},"mainImageUrl":{"type":"string"},"bannerImages":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/StoreBannerImageDTO"}},"storeImages":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/StoreImageDTO"}},"active":{"type":"boolean"}}},"SellerStoreLocation":{"type":"object","properties":{"username":{"type":"string"},"locations":{"type":"array","items":{"$ref":"#/components/schemas/StoreLocationDTO"}}}},"UserQueryDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"userrole":{"type":"string"},"email":{"type":"string"},"queryText":{"type":"string"},"fullName":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"phoneNumber":{"type":"string"},"status":{"type":"string","enum":["OPEN","PROCESSING","CLOSED"]},"additionalNotes":{"type":"string"},"createdDate":{"type":"string","format":"date"}}},"RatingDTO":{"type":"object","properties":{"ratingId":{"type":"integer","format":"int64"},"rating":{"type":"integer","format":"int32"},"ratingComment":{"type":"string"},"dealId":{"type":"integer","format":"int64"},"productId":{"type":"integer","format":"int64"},"ratingAuthor":{"type":"string"},"active":{"type":"boolean"},"created_DT":{"type":"string","format":"date"}}},"SupportDTO":{"type":"object","properties":{"caseid":{"type":"integer","format":"int64"},"username":{"type":"string"},"useremail":{"type":"string"},"subject":{"type":"string"},"message":{"type":"string"},"status":{"type":"string"}}},"BrandDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"logoFilePath":{"type":"string"}}},"MobileNotificationDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"title":{"type":"string"},"message":{"type":"string"},"notifType":{"type":"string"},"sentOn":{"type":"string","format":"date-time"},"toUser":{"type":"string"},"toUserName":{"type":"string"}}},"MobileNotificationsResponse":{"type":"object","properties":{"notifications":{"type":"array","items":{"$ref":"#/components/schemas/MobileNotificationDTO"}},"total":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CityResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"stateId":{"type":"integer","format":"int64"},"countryCode":{"type":"string"},"stateName":{"type":"string"}}},"ThirdPartyBrandLogo":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"bannerUrl":{"type":"string"}}},"StateDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"},"code":{"type":"string"}}},"DealSearchDTO":{"type":"object","properties":{"searchText":{"type":"string"},"priceRangeStart":{"type":"number","format":"double"},"priceRangeEnd":{"type":"number","format":"double"},"minRatings":{"type":"number","format":"double"},"keywordId":{"type":"integer","format":"int32"},"categories":{"type":"array","items":{"type":"string"}},"location":{"type":"string"},"sortOrder":{"type":"string","enum":["PRICE_LOW_TO_HIGH","PRICE_HIGH_TO_LOW"]},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"partnerId":{"type":"integer","format":"int64"},"subCategories":{"type":"array","items":{"type":"string"}},"state":{"type":"string"},"subCategoryIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"DealDTO":{"type":"object","properties":{"dealId":{"type":"integer","format":"int64"},"dealName":{"type":"string"},"dealType":{"type":"string"},"description":{"type":"string"},"tags":{"type":"string"},"featured":{"type":"boolean"},"categoryId":{"type":"integer","format":"int64"},"subCategoryId":{"type":"integer","format":"int64"},"userName":{"type":"string"},"dealOwner":{"type":"string"},"businessName":{"type":"string"},"website":{"type":"string"},"categoryName":{"type":"string"},"subCategoryName":{"type":"string"},"registerUser":{"$ref":"#/components/schemas/RegisterUser"},"highlights":{"type":"string"},"productKey":{"type":"string"},"effectiveDate":{"type":"string","format":"date"},"expiryDate":{"type":"string","format":"date"},"personLimitRule":{"type":"boolean"},"reorderRule":{"type":"boolean"},"expiryRule":{"type":"boolean"},"personLimit":{"type":"integer","format":"int32"},"reorderdays":{"type":"integer","format":"int32"},"expiryDays":{"type":"integer","format":"int32"},"published":{"type":"boolean"},"agreement":{"type":"boolean"},"noStoreLocation":{"type":"boolean"},"photos":{"type":"array","items":{"$ref":"#/components/schemas/DealPhotoDTO"}},"address":{"type":"array","items":{"$ref":"#/components/schemas/StoreLocationDTO"}},"products":{"type":"array","items":{"$ref":"#/components/schemas/ProductDTO"}},"ratings":{"type":"array","items":{"$ref":"#/components/schemas/RatingDTO"}},"keywords":{"type":"array","items":{"$ref":"#/components/schemas/KeywordDTO"}},"active":{"type":"boolean"}}},"DealPhotoDTO":{"type":"object","properties":{"dealPhotoId":{"type":"integer","format":"int64"},"caption":{"type":"string"},"photopath":{"type":"string"},"photoname":{"type":"string"},"dealId":{"type":"integer","format":"int64"},"username":{"type":"string"},"dealOwner":{"type":"string"}}},"KeywordDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"name":{"type":"string"}}},"ProductDTO":{"type":"object","properties":{"productId":{"type":"integer","format":"int64"},"productName":{"type":"string"},"productDescription":{"type":"string"},"normalPrice":{"type":"number","format":"double"},"dealPrice":{"type":"number","format":"double"},"unit":{"type":"integer","format":"int32"},"dealId":{"type":"integer","format":"int64"},"active":{"type":"boolean"}}},"Token":{"type":"object","properties":{"token":{"type":"string"}}},"NotificationTestRequest":{"type":"object","properties":{"notifType":{"type":"string"},"title":{"type":"string"},"text":{"type":"string"},"token":{"type":"string"},"messageId":{"type":"string"}}},"Request":{"type":"object","properties":{"source":{"type":"string"},"fileName":{"type":"string"},"defaultCategory":{"type":"string"},"rows":{"type":"array","items":{"type":"object","additionalProperties":{"type":"string"}}},"decisions":{"type":"object","additionalProperties":{"type":"string"}}}},"HomePageAdsDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"adsUrl":{"type":"string"},"description":{"type":"string"},"title":{"type":"string"},"redirectUrl":{"type":"string"},"adsType":{"type":"integer","format":"int32"},"active":{"type":"boolean"}}},"OrderDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"orderNo":{"type":"string"},"cartId":{"type":"integer","format":"int64"},"totalPayableAmount":{"type":"number","format":"double"},"totalDiscountAmount":{"type":"number","format":"double"},"totalGrossAmount":{"type":"number","format":"double"},"totalPaidAmount":{"type":"number","format":"double"},"totalRefundAmount":{"type":"number","format":"double"},"orderDate":{"type":"string","format":"date-time"},"deliveryDate":{"type":"string","format":"date-time"},"cancelDate":{"type":"string","format":"date-time"},"refundDate":{"type":"string","format":"date-time"},"shippingAddress":{"$ref":"#/components/schemas/AddressDTO"},"billingAddress":{"$ref":"#/components/schemas/AddressDTO"},"orderStatus":{"type":"string","enum":["DRAFT","ORDERED","CONFIRMED","PACKED","SHIPPED","DELIVERED","RETURN_REQUESTED","RETURNED","REFUNDED","CANCELLED","PAYMENT_FAILED","DELETED"]},"isPickup":{"type":"boolean"},"customerUser":{"type":"string"},"customerId":{"type":"integer","format":"int64"},"orderItems":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/OrderItemDTO"}},"payments":{"uniqueItems":true,"type":"array","items":{"$ref":"#/components/schemas/OrderPaymentDTO"}}}},"OrderItemDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"deal":{"$ref":"#/components/schemas/DealDTO"},"product":{"$ref":"#/components/schemas/ProductDTO"},"quantity":{"type":"integer","format":"int32"},"dealPrice":{"type":"number","format":"double"},"grossAmount":{"type":"number","format":"double"},"discountAmount":{"type":"number","format":"double"},"payableAmount":{"type":"number","format":"double"},"refundedAmount":{"type":"number","format":"double"},"partnerUserId":{"type":"integer","format":"int64"},"orderStatus":{"type":"string","enum":["DRAFT","ORDERED","CONFIRMED","PACKED","SHIPPED","DELIVERED","RETURN_REQUESTED","RETURNED","REFUNDED","CANCELLED","PAYMENT_FAILED","DELETED"]},"shippedDate":{"type":"string","format":"date-time"},"deliveredDate":{"type":"string","format":"date-time"},"cancelDate":{"type":"string","format":"date-time"},"returnDate":{"type":"string","format":"date-time"},"refundDate":{"type":"string","format":"date-time"}}},"OrderPaymentDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"paymentAmount":{"type":"number","format":"double"},"gatewayTransId":{"type":"string"},"paymentMethod":{"type":"string","enum":["CASH","CARD","CREDIT_CARD","DEBIT_CARD","NET_BANKING","WALLET"]},"paymentRefNo":{"type":"string"},"paymentFailReason":{"type":"string"},"paymentStatus":{"type":"string","enum":["SUCCESS","FAILED","REFUNDED","PENDING"]}}},"OrderRefundRequest":{"type":"object","properties":{"orderNumber":{"type":"string"},"cardNumber":{"type":"string"},"cardExpiry":{"type":"string"},"accountType":{"type":"string"},"accountNumber":{"type":"string"},"routingNumber":{"type":"string"},"nameOnAccount":{"type":"string"},"bankName":{"type":"string"}}},"OrderPaymentRequest":{"type":"object","properties":{"orderNo":{"type":"string"},"username":{"type":"string"},"creditCardNo":{"type":"string"},"creditCardSecCode":{"type":"string"},"creditCardExpDate":{"type":"string"}}},"CreateOrderRequest":{"type":"object","properties":{"cartId":{"type":"integer","format":"int64"},"shippingAddressId":{"type":"integer","format":"int64"},"billingAddressId":{"type":"integer","format":"int64"}}},"UpdateOrderRequest":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"},"shippingAddressId":{"type":"integer","format":"int64"},"billingAddressId":{"type":"integer","format":"int64"}}},"PaymentFailedOrderRequest":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"},"paymentRefNo":{"type":"string"},"failureReason":{"type":"string"}}},"PlaceOrderRequest":{"type":"object","properties":{"orderId":{"type":"integer","format":"int64"},"paymentRefNo":{"type":"string"},"paymentMethod":{"type":"string","enum":["CASH","CARD","CREDIT_CARD","DEBIT_CARD","NET_BANKING","WALLET"]},"failed":{"type":"boolean"}}},"JwtRequest":{"type":"object","properties":{"username":{"type":"string"},"password":{"type":"string"},"isBusiness":{"type":"boolean"}}},"FilteredCouponDTO":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"couponCode":{"type":"string"},"effectiveFrom":{"type":"string","format":"date-time"},"validUpTo":{"type":"string","format":"date-time"},"shortTitle":{"type":"string"},"longDescription":{"type":"string"},"category":{"type":"string"},"subCategory":{"type":"string"},"discount":{"type":"number","format":"float"},"brandName":{"type":"string"},"brandLogo":{"type":"string"},"bannerImageUrl":{"type":"string"},"weblink":{"type":"string"}}},"FilteredCouponsResponse":{"type":"object","properties":{"coupons":{"type":"array","items":{"$ref":"#/components/schemas/FilteredCouponDTO"}},"total":{"type":"integer","format":"int32"},"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"}}},"CouponMultiSearchDTO":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"state":{"type":"string"},"zipCode":{"type":"string"},"categories":{"type":"array","items":{"type":"string"}},"search":{"type":"string"},"partnerId":{"type":"integer","format":"int32"},"storeLocationIds":{"type":"array","items":{"type":"integer","format":"int64"}}}},"CouponOfferSearchDTO":{"type":"object","properties":{"page":{"type":"integer","format":"int32"},"size":{"type":"integer","format":"int32"},"state":{"type":"string"},"city":{"type":"string"},"zipCode":{"type":"string"},"category":{"type":"string"},"search":{"type":"string"},"partnerId":{"type":"integer","format":"int32"},"subCategoryIds":{"type":"array","items":{"type":"integer","format":"int64"}},"cityId":{"type":"integer","format":"int64"},"stateId":{"type":"integer","format":"int64"},"stateName":{"type":"string"},"countryCode":{"type":"string"}}},"HomeBusinessResponse":{"type":"object","properties":{"userId":{"type":"integer","format":"int64"},"username":{"type":"string"},"businessName":{"type":"string"},"businessCategory":{"type":"string"},"subCategories":{"type":"array","items":{"type":"string"}},"logo":{"type":"string"},"images":{"type":"array","items":{"type":"string"}},"averageRating":{"type":"number","format":"double"},"reviewCount":{"type":"integer","format":"int64"},"phone":{"type":"string"},"address":{"type":"string"},"directionsUrl":{"type":"string"},"city":{"type":"string"},"state":{"type":"string"},"verified":{"type":"boolean"},"couponCount":{"type":"integer","format":"int64"}}},"StoreReviewDTO":{"type":"object","properties":{"reviewerFirstName":{"type":"string"},"reviewerLastName":{"type":"string"},"reviewerPhotoPath":{"type":"string"},"rating":{"type":"integer","format":"int32"},"comment":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"StoreReviewPageDTO":{"type":"object","properties":{"reviews":{"type":"array","items":{"$ref":"#/components/schemas/StoreReviewDTO"}},"total":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"numberOfElements":{"type":"integer","format":"int32"},"averageRating":{"type":"number","format":"double"}}},"AllStoreResponse":{"type":"object","properties":{"businessName":{"type":"string"},"city":{"type":"string"},"businessCategory":{"type":"string"},"businessPhoto":{"type":"string"},"totalCoupons":{"type":"integer"},"totalDeals":{"type":"integer"},"totalImages":{"type":"integer"},"totalReviews":{"type":"integer"},"averageRating":{"type":"number","format":"double"},"sellerPhotos":{"type":"array","items":{"type":"string"}},"description":{"type":"string"},"username":{"type":"string"},"businessContactNumber":{"type":"string"},"businessAddress":{"type":"string"},"email":{"type":"string"},"isVerified":{"type":"boolean"},"hideStreetAddress":{"type":"boolean"},"storeLocations":{"type":"array","items":{"$ref":"#/components/schemas/StoreLocation"}}}},"PaginatedBusinessResponse":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AllStoreResponse"}},"pageSize":{"type":"integer","format":"int32"},"totalElements":{"type":"integer","format":"int64"}}}}}}