Skip to content

Commit

Permalink
Deploying to gh-pages from @ fec3da4 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyClifford committed Aug 23, 2024
1 parent a130f2a commit 264f989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/businesses/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
window.addEventListener('beforeunload', () => {
localStorage.setItem('sidebar-scroll', leftSidebar.scrollTop);
});
</script><main class="flex flex-col min-h-full w-full pt-16 md:pl-64 xl:pl-80"><div class="relative mx-auto desktop-gutters flex justify-center"><div class="min-w-0 max-w-2xl flex-auto px-8 pb-16 pt-8 xl:pt-16 lg:max-w-none"><article><header class="mb-9 space-y-1"><h1 class="font-display text-3xl tracking-tight text-slate-900">Businesses</h1></header><astro-island uid="1hCcLc" component-url="/_astro/Prose.8cdff347.js" component-export="default" renderer-url="/_astro/client.e0200ae5.js" props="{}" ssr="" client="load" opts="{&quot;name&quot;:&quot;Prose&quot;,&quot;value&quot;:true}" await-children=""><div class="prose prose-slate max-w-none prose-headings:font-display prose-headings:font-normal prose-h2:scroll-mt-16 prose-h2:mt-8 prose-h2:pt-8 prose-h2:border-t prose-h3:scroll-mt-20 prose-h4:scroll-mt-20 prose-lead:text-slate-500 prose-a:no-underline prose-a:text-content-primary hover:prose-a:no-underline prose-img:mb-8 prose-img:mx-auto prose-img:object-contain"><!--[--><astro-slot><p>A Business represents a company registered with the New Zealand Companies Office. It is associated with a single <a href="/api/accounts" target="_self" class="group inline-flex justify-center items-center text-interactive-secondary hover:text-interactive-secondary-hover"><span class="underline"><!--[-->Account<!--]--></span><span> </span><span class="rounded-sm bg-interactive-secondary group-hover:bg-interactive-secondary-hover h-3 w-6 inline-flex justify-center items-center"><span class="text-content-inverse-primary text-[10px]"> API </span></span></a>.</p>
</script><main class="flex flex-col min-h-full w-full pt-16 md:pl-64 xl:pl-80"><div class="relative mx-auto desktop-gutters flex justify-center"><div class="min-w-0 max-w-2xl flex-auto px-8 pb-16 pt-8 xl:pt-16 lg:max-w-none"><article><header class="mb-9 space-y-1"><h1 class="font-display text-3xl tracking-tight text-slate-900">Businesses</h1></header><astro-island uid="kjYIv" component-url="/_astro/Prose.8cdff347.js" component-export="default" renderer-url="/_astro/client.e0200ae5.js" props="{}" ssr="" client="load" opts="{&quot;name&quot;:&quot;Prose&quot;,&quot;value&quot;:true}" await-children=""><div class="prose prose-slate max-w-none prose-headings:font-display prose-headings:font-normal prose-h2:scroll-mt-16 prose-h2:mt-8 prose-h2:pt-8 prose-h2:border-t prose-h3:scroll-mt-20 prose-h4:scroll-mt-20 prose-lead:text-slate-500 prose-a:no-underline prose-a:text-content-primary hover:prose-a:no-underline prose-img:mb-8 prose-img:mx-auto prose-img:object-contain"><!--[--><astro-slot><p>A Business represents a company registered with the New Zealand Companies Office. It is associated with a single <a href="/api/accounts" target="_self" class="group inline-flex justify-center items-center text-interactive-secondary hover:text-interactive-secondary-hover"><span class="underline"><!--[-->Account<!--]--></span><span> </span><span class="rounded-sm bg-interactive-secondary group-hover:bg-interactive-secondary-hover h-3 w-6 inline-flex justify-center items-center"><span class="text-content-inverse-primary text-[10px]"> API </span></span></a>.</p>
<section class="heading" data-heading-rank="2"><div class="not-prose"><a href="#business-model" class="group flex items-center relative"><svg width="16" height="16" viewbox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 mr-2 absolute right-full opacity-0 group-hover:opacity-100"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 5.75C3.90326 5.75 3.33097 5.98705 2.90901 6.40901C2.48705 6.83097 2.25 7.40326 2.25 8C2.25 8.59674 2.48705 9.16903 2.90901 9.59099C3.33097 10.0129 3.90326 10.25 4.5 10.25H6.27063C6.68484 10.25 7.02063 10.5858 7.02063 11C7.02063 11.4142 6.68484 11.75 6.27063 11.75H4.5C3.50544 11.75 2.55161 11.3549 1.84835 10.6517C1.14509 9.94839 0.75 8.99456 0.75 8C0.75 7.00544 1.14509 6.05161 1.84835 5.34835C2.55161 4.64509 3.50544 4.25 4.5 4.25H6.23156C6.64578 4.25 6.98156 4.58579 6.98156 5C6.98156 5.41421 6.64578 5.75 6.23156 5.75H4.5Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.01855 5C9.01855 4.58579 9.35434 4.25 9.76855 4.25H11.5001C12.4947 4.25 13.4485 4.64509 14.1518 5.34835C14.855 6.05161 15.2501 7.00544 15.2501 8C15.2501 8.99456 14.855 9.94839 14.1518 10.6517C13.4485 11.3549 12.4947 11.75 11.5001 11.75H9.72949C9.31528 11.75 8.97949 11.4142 8.97949 11C8.97949 10.5858 9.31528 10.25 9.72949 10.25H11.5001C12.0969 10.25 12.6692 10.0129 13.0911 9.59099C13.5131 9.16903 13.7501 8.59674 13.7501 8C13.7501 7.40326 13.5131 6.83097 13.0911 6.40901C12.6692 5.98705 12.0969 5.75 11.5001 5.75H9.76855C9.35434 5.75 9.01855 5.41421 9.01855 5Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.53345 8C4.53345 7.58579 4.86923 7.25 5.28345 7.25H10.7791C11.1933 7.25 11.5291 7.58579 11.5291 8C11.5291 8.41421 11.1933 8.75 10.7791 8.75H5.28345C4.86923 8.75 4.53345 8.41421 4.53345 8Z" fill="currentColor"></path></svg><h2 id="business-model" class="scroll-mt-32 my-4 type-headline-4 flex flex-wrap gap-1">Business Model</h2></a></div>
<div data-attributes class="my-6"><div class="flex justify-between items-center not-prose py-2"><h3 class="type-subtitle-1">Attributes</h3><button data-expand-button class="text-content-tertiary type-overline hover:text-content-secondary">
Collapse all
Expand Down Expand Up @@ -155,7 +155,7 @@
<hr/>
<div class="grid grid-cols-1 items-start gap-x-16 gap-y-10 xl:max-w-none xl:grid-cols-2"><div class="[&#38;>:first-child]:mt-0 [&#38;>:last-child]:mb-0"><div><div class="flex items-center gap-x-3"><span class="not-prose items-center inline-flex"><span class="border-orange-400 bg-orange-100 text-content-primary type-caption-2 px-2 py-0.5 rounded-full border">PUT</span></span><span class="text-xs text-zinc-400">/api/businesses/{businessId}</span></div></div><div class="not-prose"><a href="#update-business" class="group flex items-center relative"><svg width="16" height="16" viewbox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 mr-2 absolute right-full opacity-0 group-hover:opacity-100"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 5.75C3.90326 5.75 3.33097 5.98705 2.90901 6.40901C2.48705 6.83097 2.25 7.40326 2.25 8C2.25 8.59674 2.48705 9.16903 2.90901 9.59099C3.33097 10.0129 3.90326 10.25 4.5 10.25H6.27063C6.68484 10.25 7.02063 10.5858 7.02063 11C7.02063 11.4142 6.68484 11.75 6.27063 11.75H4.5C3.50544 11.75 2.55161 11.3549 1.84835 10.6517C1.14509 9.94839 0.75 8.99456 0.75 8C0.75 7.00544 1.14509 6.05161 1.84835 5.34835C2.55161 4.64509 3.50544 4.25 4.5 4.25H6.23156C6.64578 4.25 6.98156 4.58579 6.98156 5C6.98156 5.41421 6.64578 5.75 6.23156 5.75H4.5Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.01855 5C9.01855 4.58579 9.35434 4.25 9.76855 4.25H11.5001C12.4947 4.25 13.4485 4.64509 14.1518 5.34835C14.855 6.05161 15.2501 7.00544 15.2501 8C15.2501 8.99456 14.855 9.94839 14.1518 10.6517C13.4485 11.3549 12.4947 11.75 11.5001 11.75H9.72949C9.31528 11.75 8.97949 11.4142 8.97949 11C8.97949 10.5858 9.31528 10.25 9.72949 10.25H11.5001C12.0969 10.25 12.6692 10.0129 13.0911 9.59099C13.5131 9.16903 13.7501 8.59674 13.7501 8C13.7501 7.40326 13.5131 6.83097 13.0911 6.40901C12.6692 5.98705 12.0969 5.75 11.5001 5.75H9.76855C9.35434 5.75 9.01855 5.41421 9.01855 5Z" fill="currentColor"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M4.53345 8C4.53345 7.58579 4.86923 7.25 5.28345 7.25H10.7791C11.1933 7.25 11.5291 7.58579 11.5291 8C11.5291 8.41421 11.1933 8.75 10.7791 8.75H5.28345C4.86923 8.75 4.53345 8.41421 4.53345 8Z" fill="currentColor"></path></svg><h2 id="update-business" class="scroll-mt-32 my-4 type-headline-4 flex flex-wrap gap-1">Update Business <span class="not-prose items-center inline-flex"><span class="bg-surface-accent-light text-content-accent border-outline-opaque type-caption-2 px-2 py-0.5 rounded-full border">experimental</span></span></h2></a></div><p>This endpoint allows you to update a Business.</p><div data-attributes class="my-6"><div class="flex justify-between items-center not-prose py-2"><h3 class="type-subtitle-1">Attributes</h3><button data-expand-button class="text-content-tertiary type-overline hover:text-content-secondary">
Collapse all
</button></div><ul data-attribute-list role="list" class="m-0 list-none border-y border-outline-transparent divide-y divide-outline-transparent p-0 pt-4"><li class="m-0 px-0 py-4 first:pt-0"><div class="m-0 flex flex-wrap items-center gap-x-3"><h4 class="my-0" id="taxNumber">taxNumber</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">object</span></span></div><div data-expandable-slot class="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0 transition-opacity duration-500 expanded"><p>The value-added tax configuration.</p></div></li><li class="m-0 px-0 py-4 first:pt-0"><div class="m-0 flex flex-wrap items-center gap-x-3"><h4 class="my-0" id="farmlandsBusinessNumber">farmlandsBusinessNumber</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">string</span></span></div><div data-expandable-slot class="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0 transition-opacity duration-500 expanded"><p>The number associated with your Farmlands business.</p></div></li></ul></div><div data-attributes class="my-6"><div class="flex justify-between items-center not-prose py-2"><h3 class="type-subtitle-1">Errors</h3><button data-expand-button class="text-content-tertiary type-overline hover:text-content-secondary">
</button></div><ul data-attribute-list role="list" class="m-0 list-none border-y border-outline-transparent divide-y divide-outline-transparent p-0 pt-4"><li class="m-0 px-0 py-4 first:pt-0"><div class="m-0 flex flex-wrap items-center gap-x-3"><h4 class="my-0" id="tradingName">tradingName</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">string</span></span></div><div data-expandable-slot class="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0 transition-opacity duration-500 expanded"><p>The trading name of the business.</p></div></li><li class="m-0 px-0 py-4 first:pt-0"><div class="m-0 flex flex-wrap items-center gap-x-3"><h4 class="my-0" id="taxNumber">taxNumber</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">object</span></span></div><div data-expandable-slot class="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0 transition-opacity duration-500 expanded"><p>The value-added tax configuration.</p></div></li><li class="m-0 px-0 py-4 first:pt-0"><div class="m-0 flex flex-wrap items-center gap-x-3"><h4 class="my-0" id="farmlandsBusinessNumber">farmlandsBusinessNumber</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">string</span></span></div><div data-expandable-slot class="w-full flex-none [&>:first-child]:mt-0 [&>:last-child]:mb-0 transition-opacity duration-500 expanded"><p>The number associated with your Farmlands business.</p></div></li></ul></div><div data-attributes class="my-6"><div class="flex justify-between items-center not-prose py-2"><h3 class="type-subtitle-1">Errors</h3><button data-expand-button class="text-content-tertiary type-overline hover:text-content-secondary">
Collapse all
</button></div><ul data-attribute-list role="list" class="m-0 list-none border-y border-outline-transparent divide-y divide-outline-transparent p-0 pt-4"><li class="not-prose m-0 p-0 flex flex-col py-4 first:pt-0 type-content-primary"><div class="flex flex-row items-center space-x-3"><h4 class="font-mono" id="INVALID_ACCOUNT">INVALID_ACCOUNT</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">403</span></span></div><div data-expandable-slot class="transition-opacity duration-500 expanded"><p>Account does not exist, is not authorized, is of the wrong type, or is not in the NZ region.</p></div></li><li class="not-prose m-0 p-0 flex flex-col py-4 first:pt-0 type-content-primary"><div class="flex flex-row items-center space-x-3"><h4 class="font-mono" id="INVALID_NZBN">INVALID_NZBN</h4><span class="not-prose items-center inline-flex"><span class="text-content-primary border-outline-opaque bg-surface-tertiary type-caption-2 px-2 py-0.5 rounded-full border">403</span></span></div><div data-expandable-slot class="transition-opacity duration-500 expanded"><p>The NZBN provided does not match any NZ business.</p></div></li></ul></div></div><div class="[&#38;>:first-child]:mt-0 [&#38;>:last-child]:mb-0 xl:sticky xl:top-24"><div data-code-block class="flex flex-col mb-8"><div class="flex w-full rounded-t-3xl rounded-b-none border-b border-outline-inverse-opaque bg-surface-inverse-secondary shadow-sm p-4"><span class="truncate type-subtitle-2 text-sm text-content-inverse-primary">Request</span></div><div class="flex flex-row items-center border-b border-outline-inverse-opaque bg-surface-inverse-tertiary p-squish-2 space-x-2"><span class="not-prose items-center inline-flex"><span class="border-orange-500 bg-orange-800 text-content-inverse-primary type-caption-2 px-2 py-0.5 rounded-full border">PUT</span></span><span class="text-content-inverse-primary type-caption-2 truncate">/api/businesses/DKTs3U38hdhfEqwF1JKoT2</span></div><div data-code class="overflow-y-auto max-h-96"><pre class="astro-code material-theme-darker" style="background-color: #212121; overflow-x: auto;" tabindex="0"><code><span class="line"><span style="color: #FFCB6B">curl</span><span style="color: #EEFFFF"> </span><span style="color: #C3E88D">-X</span><span style="color: #EEFFFF"> </span><span style="color: #C3E88D">PUT</span><span style="color: #EEFFFF"> \</span></span>
<span class="line"><span style="color: #EEFFFF"> </span><span style="color: #C3E88D">https://service.centrapay.com/api/businesses/DKTs3U38hdhfEqwF1JKoT2</span><span style="color: #EEFFFF"> \</span></span>
Expand Down

0 comments on commit 264f989

Please sign in to comment.