PageSourceSearch

https://alisverislio.com/_next/static/chunks/pages/apiDocs/metropo…/resto-presale-info-9770ba890196ff44.js

js alisverislio.com collected 2026-10-02 01:22:49 UTC 6,744 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3271],{2152:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apiDocs/metropol/payment/resto-presale-info",function(){return a(6215)}])},7027:function(e,t,a){"use strict";a.d(t,{Z:function(){return c}});var n=a(5893),s=a(7294),i=a(1664),r=a.n(i),o=a(1163);let l=[{title:"Başlangı\xe7",submenus:[{name:"Token Alma",path:"/apiDocs/metropol/authentication"}]},{title:"Kullanıcı İşlemleri",submenus:[{name:"Kayıt / G\xf6r\xfcnt\xfcleme",path:"/apiDocs/metropol/user/save-get-user"},{name:"Bakiye Sorgulama",path:"/apiDocs/metropol/user/get-balance"},{name:"C\xfczdan Bakiye İadesi",path:"/apiDocs/metropol/user/create-drawback"},{name:"Kullanıcıya ait hareketler",path:"/apiDocs/metropol/user/user-transactions"}]},{title:"Satış Noktaları",submenus:[{name:"İl/İl\xe7e",path:"/apiDocs/metropol/explore/cities"},{name:"Konum İle Noktalar",path:"/apiDocs/metropol/explore/merchants-by-coordinates"},{name:"Filtre İle Noktalar",path:"/apiDocs/metropol/explore/merchants-by-filter"}]},{title:"\xd6deme",submenus:[{name:"Resto Satış \xd6n Bilgi",path:"/apiDocs/metropol/payment/resto-presale-info"},{name:"Resto Satış Onayı",path:"/apiDocs/metropol/payment/resto-confirm-sale"},{name:"Gift C\xfczdana Y\xfckleme",path:"/apiDocs/metropol/payment/gift-topup"},{name:"Gift Harcama Callback",path:"/apiDocs/metropol/payment/gift-callback"},{name:"Harcama Detayı Sorgulama",path:"/apiDocs/metropol/payment/spending-details"}]}];
1function c(){let e=(0,o.useRouter)(),[t,a]=(0,s.useState)({});(0,s.useEffect)(()=>{let t=localStorage.getItem("metropolApiOpenMenus");if(t)try{a(JSON.parse(t))}catch(e){console.error("Failed to parse saved menu state:",e)}let n=e.asPath;l.forEach((e,t)=>{e.submenus.some(e=>n.includes(e.path))&&a(e=>({...e,[t]:!0}))})},[]),(0,s.useEffect)(()=>{localStorage.setItem("metropolApiOpenMenus",JSON.stringify(t))},[t]);let i=e=>{a(t=>({...t,[e]:!t[e]}))};return(0,n.jsxs)("aside",{className:"apidocs-sidebar",style:{paddingTop:"40px"},children:[(0,n.jsx)("div",{style:{display:"flex",justifyContent:"center",marginBottom:32},children:(0,n.jsx)(r(),{href:"/apiDocs/metropol",children:(0,n.jsx)("img",{src:"/assets/img/logo/Logo.png",alt:"Logo",style:{height:40,width:"auto",display:"block"}})})}),l.map((a,s)=>(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:"apidocs-menu-title".concat(t[s]?" open":""),onClick:()=>i(s),tabIndex:0,role:"button",children:(0,n.jsx)("span",{children:a.title})}),t[s]&&a.submenus.map(t=>{let a=e.asPath.includes(t.path);return(0,n.jsx)("div",{className:"apidocs-submenu",children:(0,n.jsx)(r(),{className:"apidocs-submenu-link ".concat(a?"active":""),href:t.path,children:t.name})},t.name)})]},a.title))]})}},7970:function(e,t,a){"use strict";a.d(t,{fo:function(){return r},cg:function(){return o},yj:function(){return l}});var n=a(5893);function s(e){let{title:t,code:a,format:s=!1}=e,i=s?JSON.stringify(JSON.parse(a),null,2):a;return(0,n.jsxs)("div",{className:"apidocs-code-block",children:[(0,n.jsxs)("div",{className:"apidocs-code-header",children:[(0,n.jsx)("span",{children:t}),(0,n.jsx)("button",{className:"apidocs-copy-btn",onClick:()=>navigator.clipboard.writeText(a),children:"Copy"})]}),(0,n.jsx)("pre",{className:"apidocs-pre",children:i})]})}function i(e){let{title:t,children:a}=e;return(0,n.jsxs)("div",{className:"apidocs-section",children:[(0,n.jsx)("h2",{children:t}),a]})}function r(e){let{title:t,code:a,codeTitle:r,format:o}=e;return(0,n.jsx)(i,{title:t,children:(0,n.jsx)(s,{title:r,code:a,format:o})})}function o(e){let{method:t,url:a}
1=e,s={GET:"#3a86ff",POST:"#2ecc71",PUT:"#f39c12",DELETE:"#e74c3c",PATCH:"#9b59b6"}[t.toUpperCase()]||"#3a86ff";return(0,n.jsx)(i,{title:"Endpoint",children:(0,n.jsxs)("div",{className:"apidocs-endpoint",children:[(0,n.jsx)("div",{className:"apidocs-endpoint-method",style:{backgroundColor:s},children:t}),(0,n.jsx)("div",{className:"apidocs-endpoint-url",children:a})]})})}function l(e){let{title:t,headers:a,rows:s}=e;return(0,n.jsx)(i,{title:t,children:(0,n.jsx)("div",{className:"apidocs-table-wrapper",children:(0,n.jsxs)("table",{className:"apidocs-table",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:a.map((e,t)=>(0,n.jsx)("th",{children:e},t))})}),(0,n.jsx)("tbody",{children:s.map((e,t)=>(0,n.jsx)("tr",{children:e.map((e,t)=>(0,n.jsx)("td",{children:e},t))},t))})]})})})}a(7294)},7599:function(e,t,a){"use strict";var n=a(5893),s=a(7294);let i=(0,s.createContext)();t.Z=e=>{let{children:t}=e,[a,r]=(0,s.useState)(!1);return(0,n.jsx)(i.Provider,{value:{isEnter:a,handleMouseEnter:()=>{r(!0)},handleMouseLeave:()=>{r(!1)}},children:t})}},6215:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return l}});var n=a(5893);a(7294);var s=a(143),i=a(7599);a(5705);var r=a(7027),o=a(7970);function l(){return(0,n.jsx)(i.Z,{children:(0,n.jsx)(s.Z,{children:(0,n.jsxs)("div",{className:"apidocs-container",children:[(0,n.jsx)(r.Z,{}),(0,n.jsxs)("main",{className:"apidocs-main",children:[(0,n.jsx)("h1",{children:"Satış Bilgi Endpointi"}),(0,n.jsx)("p",{children:"Resto \xf6demesi i\xe7in kullanıcı QR code okuyacak veya kısa kod girecek"}),(0,n.jsx)(o.cg,{method:"POST",url:"/sale/get_presale_info"}),(0,n.jsx)(o.yj,{title:"Request Parametreleri",headers:["Alan","Tip","Zorunlu","A\xe7ıklama"],rows:[["phone","String","Evet","Kullanıcıya ait telefon numarası"],["codeType","int","Evet","Kod tipi: 0 QR kod, 1 kısa kod"],["code","String","Evet","QR kodu veya kısa kod"]]}),(0,n.jsx)(o.fo,{title:"Request \xd6rneği",codeTitle:"Request",code:'{\n  "phone": "5494777534",\n  "codeType": 1,\n  "code": "4545454"\n}'}),(0,n.jsx)(o.fo,{title:"Response \xd6rneği",codeTitle:"Response",code:'{\n  "MerchantName": "string",\n  "CityName": "string",\n  "DistrictName": "string",\n  "RequestAmount": "string",\n  "TransactionId": 2147483647,\n  "ProductName": "string",\n  "Kdv": "string",\n  "SaleRefCode": "string",\n  "SessionExpireDate": "2025-07-02T08:50:35.132Z"\n}'}),(0,n.jsx)(o.yj,{title:"Response Parametreleri",headers:["Alan","Tip","Nullable","A\xe7ıklama"],rows:[["MerchantName","String","Hayır","Satış Noktası adı"],["CityName","String","Hayır","Şehir adı"],["DistrictName","String","Hayır","İl\xe7e adı"],["RequestAmount","String","Hayır","Satış tutarı"],["TransactionId","int","Hayır","Satış işlemi ID'si"],["ProductName","String","Hayır","\xdcr\xfcn adı"],["Kdv","String","Hayır","Kdv tutarı"],["SaleRefCode","String","Hayır","Satış referans kodu"],["SessionExpireDate","Datetime","Hayır","Oturumun bitiş tarihi"]]})]})]})})})}},1163:function(e,t,a){e.exports=a(3079)}},function(e){e.O(0,[8802,347,211,143,5705,2888,9774,179],function(){return e(e.s=2152)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.