import{a}from"./p-6fd3642a.js";import{a as t}from"./p-1c2e2695.js";const e="surecart/v1/checkouts/",s=["line_items","line_item.price","price.product","customer","customer.shipping_address","payment_intent","discount","discount.promotion","discount.coupon","shipping_address","tax_identifier"],i=(a,i="")=>{let o=a?`${e}${a}`:e;return o=`${o}${i}`,t(o,{expand:s})},o=async({id:e,data:s={},query:o={}})=>await a({method:e?"PATCH":"POST",path:t(i(e),o),data:s}),r=async({id:e,data:s={},query:o={}})=>await a({method:"PATCH",path:t(i(e),o),data:s}),d=async({id:e,data:s={},query:o={},processor:r})=>await a({method:"POST",path:t(i(e,"/finalize/"),{processor_type:r,...o}),data:s});export{e as b,o as c,s as e,d as f,r as u}