1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40731],{50036:(s,i,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/Classes/BigCommerce/Accounts/Wishlists/Actions/Edit_Wishlist",function(){return e(46605)}])},46605:(s,i,e)=>{"use strict";e.r(i),e.d(i,{default:()=>l,useTOC:()=>d});var n=e(74848),t=e(27849),h=e(40272),r=e(71355);function d(s){return[{value:"Constants",id:"constants",depth:2},{value:"Methods",id:"methods",depth:2},{value:"handle_request",id:"handle_request",depth:3},{value:"sanitize_request",id:"sanitize_request",depth:3},{value:"Inherited methods",id:"inherited-methods",depth:2},{value:"__construct",id:"__construct",depth:3},{value:"handle_request",id:"handle_request-1",depth:3},{value:"sanitize_request",id:"sanitize_request-1",depth:3},{value:"get_customer_wishlist",id:"get_customer_wishlist",depth:3},{value:"get_customer_id",id:"get_customer_id",depth:3}]}let l=(0,t.e)(function(s){let{toc:i=d(s)}=s,e={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",span:"span",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h1,{children:"Edit_Wishlist"}),"\n",(0,n.jsx)(e.p,{children:"Handles the logic for editing a wishlist."}),"\n",(0,n.jsx)(e.p,{children:"This class processes the request to update the details of an existing wishlist for a customer.\nIt validates the provided wishlist ID, updates the wishlistâs name and public status, and redirects\nthe user to the updated wishlist. It also triggers success or error actions based on the operation result."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["Full name: ",(0,n.jsx)(e.code,{children:"\\BigCommerce\\Accounts\\Wishlists\\Actions\\Edit_Wishlist"})]}),"\n",(0,n.jsxs)(e.li,{children:["Parent class: ",(0,n.jsx)(e.a,{href:"./classes/BigCommerce/Accounts/Wishlists/Actions/Wishlist_Action",children:(0,n.jsx)(e.code,{children:"\\BigCommerce\\Accounts\\Wishlists\\Actions\\Wishlist_Action"})})]}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:i[0].id,children:i[0].value}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Constant"}),(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Visibility"}),(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Type"}),(0,n.jsx)(e.th,{style:{textAlign:"left"},children:"Value"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{style:{textAlign:"left"},children:(0,n.jsx)(e.code,{children:"ACTION"})}),(0,n.jsx)(e.td,{style:{textAlign:"left"},children:"public"}),(0,n.jsx)(e.td,{style:{textAlign:"left"},children:"string"}),(0,n.jsx)(e.td,{style:{textAlign:"left"},children:"âeditâ"})]})})]}),"\n",(0,n.jsx)(e.h2,{id:i[1].id,children:i[1].value}),"\n",(0,n.jsx)(e.h3,{id:i[2].id,children:i[2].value}),"\n",(0,n.jsx)(e.p,{children:"Handles the request to edit a specific wishlist."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"public"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" handle_request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $args): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"void"})]})})}),"\n",(0,n.jsx)(e.p,{children:"This method validates the request, retrieves the wishlist using the provided ID,\nupdates the wishlist with the new details, and redirects the user to the updated wishlist.\nIt triggers success or failure actions based on the outcome of the operation."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$args"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"array"})}),(0,n.jsx)(e.td,{children:"The arguments from the request."})]})})]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h3,{id:i[3].id,children:i[3].value}),"\n",(0,n.jsx)(e.p,{children:"Validates and sanitizes the request to edit a wishlist."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"protected"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" sanitize_request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $args, "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $submission): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"})]})})}),"\n",(0,n.jsx)(e.p,{children:"This method processes the submission data, ensuring the wishlist ID is valid, sanitizing\nthe request for security, and validating the provided wishlist name. It throws exceptions\nfor invalid or missing data and returns a sanitized array of the request data."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsxs)(e.tbody,{children:[(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$args"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"array"})}),(0,n.jsx)(e.td,{children:"The arguments from the request."})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$submission"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"array"})}),(0,n.jsx)(e.td,{children:"The submission data from the request."})]})]})]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Return Value:"})}),"\n",(0,n.jsx)(e.p,{children:"The sanitized request data, including the wishlist ID, name, and public status."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Throws:"})}),"\n",(0,n.jsx)(e.p,{children:"If the request is missing required fields or contains invali
1d data."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"./classes/InvalidArgumentException",children:(0,n.jsx)(e.code,{children:"InvalidArgumentException"})})}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h2,{id:i[4].id,children:i[4].value}),"\n",(0,n.jsx)(e.h3,{id:i[5].id,children:i[5].value}),"\n",(0,n.jsx)(e.p,{children:"Wishlist_Action constructor."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"public"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" __construct"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"(\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"BigCommerce"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"Api"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"v3"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"Api"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"WishlistsApi"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $wishlists): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"mixed"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Initializes the action with the WishlistsApi instance, allowing the action to interact with the BigCommerce API\nfor wishlist management."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$wishlists"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"\\BigCommerce\\Api\\v3\\Api\\WishlistsApi"})}),(0,n.jsx)(e.td,{children:"The WishlistsApi instance used for wishlist operations."})]})})]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h3,{id:i[6].id,children:i[6].value}),"\n",(0,n.jsx)(e.p,{children:"Handle the incoming request."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"public"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" handle_request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"mixed"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $args): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"void"})]})})}),"\n",(0,n.jsx)(e.p,{children:"This is an abstract method that must be implemented by subclasses to handle the specific request for a wishlist action\n(e.g., create, update, delete). The method should process the request and return the appropriate response."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["This method is ",(0,n.jsx)(e.strong,{children:"abstract"}),"."]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$args"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"mixed"})}),(0,n.jsx)(e.td,{children:"The arguments for the action request, typically including the wishlist ID and any necessary data."})]})})]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h3,{id:i[7].id,children:i[7].value}),"\n",(0,n.jsx)(e.p,{children:"Sanitize and validate the request data."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"protected"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" sanitize_request"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $args, "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $submission): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"array"})]})})}),"\n",(0,n.jsx)(e.p,{children:"This is an abstract method that must be implemented by subclasses to sanitize and validate the request submission\nbefore performing any operations on the wishlist."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsxs)(e.li,{children:["This method is ",(0,n.jsx)(e.strong,{children:"abstract"}),"."]}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsxs)(e.tbody,{children:[(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$args"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"array"})}),(0,n.jsx)(e.td,{children:"The arguments for the action request."})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$submission"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"array"})}),(0,n.jsx)(e.td,{children:"The submitted form data, typically from a POST request."})]})]})]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Return Value:"})}),"\n",(0,n.jsx)(e.p,{children:"Sanitized data to be used in the action handler."}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h3,{id:i[8].id,children:i[8].value}),"\n",(0,n.jsx)(e.p,{children:"Get the wishlist for the customer."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"protected"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" get_customer_wishlist"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"int"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $user_id, "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"int"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $wishlist_id): \\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"BigCommerce"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"Accounts"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"Wishlists"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"\\"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#005CC5","--shiki-dark":"#79B8FF"},children:"Wishlist"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Fetches the wishlist for a given customer based on their user ID and wishlist ID. If the wishlist is not found or\ndoes not belong to the customer, an exception is thrown."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsxs)(e.tbody,{children:[(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$user_id"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"int"})}),(0,n.jsx)(e.td,{children:"The ID of the user (customer)."})]}),(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$wishlist_id"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"int"})}),(0,n.jsx)(e.td,{children:"The ID of the wishlist to retrieve."})]})]})]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Return Value:"})}),"\n",(0,n.jsx)(e.p,{children:"The customerâs wishlist."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Throws:"})}),"\n",(0,n.jsx)(e.p,{children:"If the wishlist cannot be found or accessed."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"./classes/RuntimeException",children:(0,n.jsx)(e.code,{children:"RuntimeException"})})}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:"If the wishlist does not belong to the customer."}),"\n",(0,n.jsxs)(e.ul,{children:["\n",(0,n.jsx)(e.li,{children:(0,n.jsx)(e.a,{href:"./classes/InvalidArgumentException",children:(0,n.jsx)(e.code,{children:"InvalidArgumentException"})})}),"\n"]}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.h3,{id:i[9].id,children:i[9].value}),"\n",(0,n.jsx)(e.p,{children:"Get the Customer ID for the user."}),"\n",(0,n.jsx)(e.pre,{tabIndex:"0","data-language":"php","data-word-wrap":"",children:(0,n.jsx)(e.code,{children:(0,n.jsxs)(e.span,{children:[(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"protected"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#6F42C1","--shiki-dark":"#B392F0"},children:" get_customer_id"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:"("}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"int"}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#24292E","--shiki-dark":"#E1E4E8"},children:" $user_id): "}),(0,n.jsx)(e.span,{style:{"--shiki-light":"#D73A49","--shiki-dark":"#F97583"},children:"int"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Retrieves the customer ID associated with the given user ID."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Parameters:"})}),"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",(0,n.jsxs)(e.table,{children:[(0,n.jsx)(e.thead,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.th,{children:"Parameter"}),(0,n.jsx)(e.th,{children:"Type"}),(0,n.jsx)(e.th,{children:"Description"})]})}),(0,n.jsx)(e.tbody,{children:(0,n.jsxs)(e.tr,{children:[(0,n.jsx)(e.td,{children:(0,n.jsx)(e.code,{children:"$user_id"})}),(0,n.jsx)(e.td,{children:(0,n.jsx)(e.strong,{children:"int"})}),(0,n.jsx)(e.td,{children:"The ID of the user (customer)."})]})})]}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.strong,{children:"Return Value:"})}),"\n",(0,n.jsx)(e.p,{children:"The customer ID associated with the user."}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsx)(e.hr,{}),"\n",(0,n.jsxs)(e.blockquote,{children:["\n",(0,n.jsx)(e.p,{children:"Automatically generated on 2025-01-21"}),"\n"]})]})}
1,"/Classes/BigCommerce/Accounts/Wishlists/Actions/Edit_Wishlist",{filePath:"pages/Classes/BigCommerce/Accounts/Wishlists/Actions/Edit_Wishlist.md",timestamp:1737496368e3,pageMap:h.O,frontMatter:{},title:"Edit_Wishlist"},"undefined"==typeof RemoteContent?d:RemoteContent.useTOC)}},s=>{var i=i=>s(s.s=i);s.O(0,[27849,40272,90636,46593,38792],()=>i(50036)),_N_E=s.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.