Extension API
Generated by composer api-docs from the @api tags in syncshop/core; do not edit by hand.
Extensions and themes use only these types. Everything else in the core is internal and may change in any
release; SyncShop\Testing\ApiContract::violations() finds what an extension uses outside this list. Rules:
_docs/DISTRIBUTION.md › Customisations.
Affiliates
| Type | Kind | What it is |
|---|---|---|
Contracts\AffiliatePortal |
interface | The affiliate portal in the shopper's account (PLAN › Affiliate engine): applying, then their link, coupon and figures. Affiliates never see who bought: no order numbers, names or addresses. |
Contracts\Referrals |
interface | Referrals and attribution (PLAN › Affiliate engine, steps 1 and 2): a visitor arrives through an affiliate's link or uses their coupon, and the order is credited to one affiliate. The storefront keeps the link visit (only with marketing cookies allowed beyond the session) and hands it over at checkout; the coupon is read from the order itself. |
Data\AffiliateAccount |
class | A shopper's own affiliate record, for their portal. rate is what they earn, theirs or the default. |
Data\AffiliateApplied |
class | A shopper applied to the programme from their account. |
Data\AffiliateDecided |
class | Staff accepted or rejected an application (the applicant is told). |
Data\AffiliateStatus |
enum | Whether an affiliate's link and coupon earn anything right now. |
Data\AffiliateView |
class | An active affiliate, as the storefront needs it. |
Data\ApplicationRefused |
class | An application that cannot be taken: sign-up closed, or the shopper already has one. |
Data\Attribution |
class | The affiliate an order is credited to. flag: why it waits for review (e.g. self_referral). |
Data\CommissionStatus |
enum | Where a commission stands. |
Data\PortalCommission |
class | A commission as its affiliate sees it: no order number, nothing about the buyer. |
Data\PortalStats |
class | An affiliate's figures for their portal: last 30 days of clicks, every credited order, what they earned. |
Data\ProgrammeView |
class | The programme as an applicant sees it. |
Data\ReferralSource |
enum | How an order came to an affiliate. |
Data\ReferralVisit |
class | The affiliate link a visitor arrived through, and when: what the storefront hands over at checkout. |
Ai
| Type | Kind | What it is |
|---|---|---|
Contracts\Assistant |
interface | The one gate every model call passes (PLAN › AI features): the feature must be switched on and within its budget; the call is logged with its metadata only (never the prompt or the answer); fixed rules open every system prompt and stored text goes in as data, never as instructions. |
Data\AiAnswer |
class | A model's answer, with what it cost; structured when a schema was asked for. |
Data\AiDriver |
enum | The providers a shop can bring its own key for (laravel/ai drivers). |
Data\AiEmbeddings |
class | Vectors for a list of texts, in the same order, with what they cost. |
Data\AiFeature |
enum | What the shop asks a model to do (PLAN › AI features); each is switched on, routed and budgeted on its own. |
Data\AiRequest |
class | One job for a model. task is the shop's own instruction; data is stored text (a supplier's description, a review, a page) that the model works on and never obeys. schema asks for a structured answer. |
Data\AiUnavailable |
class | Why a feature gave no answer: switched off, no provider, over budget, or the provider failed. The non-AI path goes on. |
Data\PersonalText |
class | Text a shopper typed, before it goes to a provider (PLAN › AI features: customer data leaves pseudonymised; national IDs and bank details never leave): e-mail addresses, IBANs and long runs of digits (phones, CNP, cards) are replaced by a marker. |
Analytics
| Type | Kind | What it is |
|---|---|---|
Contracts\AiTraffic |
interface | Counts AI traffic per day (PLAN › AI crawlers): visits from an AI assistant's answer and the pages AI crawlers fetch. Counters only: nothing about the visitor is kept. |
Contracts\OrderRevenue |
interface | What an order's goods are worth to the shop by the margin model: their price net of VAT after discounts, less what was refunded or came back; no delivery, no SGR deposit, no gift cards. In RON (a foreign-currency order at the BNR rate of its fulfilment, or of today before it). |
Contracts\ProfitLedger |
interface | The only way revenue and cost events are written (PLAN › Analytics): appended, never changed; an entry whose source is already booked is skipped, so booking an event twice is harmless. |
Data\AiAssistant |
enum | The AI assistants whose answers send visitors to the shop, recognised by the page that linked (Referer) or the utm_source some of them add. |
Data\EmailReport |
enum | The reports a staff member can get by e-mail; each needs what its screen needs. |
Data\LedgerEntry |
class | One revenue or cost event for the ledger. amount is RON, net of VAT; null: a cost that is not known. |
Data\LedgerType |
enum | What a profit ledger row is. Revenue rows are positive, cost rows negative (PLAN › The margin model). |
Data\PeriodCostKind |
enum | Costs entered per month: fixed costs by category, marketing spend by channel (PLAN › Costs the shop has to capture). |
B2B
| Type | Kind | What it is |
|---|---|---|
Contracts\BuyerContext |
interface | Who is buying on this request, for prices: a retail visitor or customer, or a buyer of a company account (its group's price lists, its company prices, net display when the group shows prices without VAT). |
Contracts\Companies |
interface | Company accounts (PLAN › B2B): which company a shopper buys for, and as what. |
Contracts\OrderLists |
interface | A company's saved order lists. Every call is scoped to the company: a list of another company is never found. |
Contracts\Quotes |
interface | Quotes (PLAN › B2B › RFQ) for the storefront. Every call is scoped to the company: a quote of another company is never found. |
Data\CompanyCredit |
class | A company as the receivables report shows it: name, CUI and the terms it buys on. |
Data\CompanyMembership |
class | A shopper's place in a company account: which company, as what, on which prices and terms. |
Data\CompanyRole |
enum | — |
Data\OrderListView |
class | A company's saved order list, as its buyers see it. |
Data\QuoteLineView |
class | A line of a quote: the product, how many, the price the buyer saw and the price the shop offers. |
Data\QuoteOffered |
class | The shop answered a quote with prices (or refused it, refused); the buyer who asked is told. |
Data\QuoteRefused |
class | A quote request that cannot be sent: empty (nothing priced in the cart) or open_limit (too many waiting). |
Data\QuoteRequested |
class | A company buyer asked for a quote; the shop is told. |
Data\QuoteStatus |
enum | Where a quote stands: requested by the buyer → offered by the shop → accepted into a cart → ordered; or declined by the buyer, refused by the shop, or expired once its date passed. |
Data\QuoteView |
class | A quote as the buyer and the shop see it. Prices are with or without VAT as pricesIncludeVat says. |
Cart
| Type | Kind | What it is |
|---|---|---|
Contracts\Carts |
interface | Carts, found by the token the storefront keeps in a cookie. Prices and stock are worked out on every read; the cart stores only variants and quantities. |
Contracts\TotalsStage |
interface | One step of the totals pipeline. It returns new totals; it never changes the ones it gets. |
Contracts\TotalsStages |
interface | Where modules plug their stages into the totals pipeline. The order of the slots is fixed (PLAN › Module rules 3); line prices, B2B price lists and currency come first, from Pricing, before any slot runs. |
Data\Adjustment |
class | A change to the goods total from a stage: a promotion, a voucher, loyalty. Negative is a discount. lines says which lines it comes off (by variant id, together equal to amount), so VAT is lowered at those lines' rates and reports can split it per product; without it, it is spread over the VAT rates by value. It never touches the SGR deposit. |
Data\CartLineView |
class | A cart line as the shopper sees it. available is how many can be sent (null for goods without stock); a line that can no longer be bought says why. |
Data\CartRefused |
class | A change the cart cannot make. reason: unavailable (not on sale), short (not enough stock: available says how many), too_many (quantity or line limit). |
Data\CartView |
class | A cart with its lines and totals; an empty one when the visitor has none yet. |
Data\GiftLine |
class | A gift a promotion adds to the cart, free. It is a variant like any other: it reserves stock, carries its SGR containers and lands on the order and the invoice at 0 lei. options are the variants the buyer may pick from when the promotion lets them choose (the chosen one is variantId). |
Data\GiftView |
class | A gift as the shopper sees it, with the gifts they may switch to. |
Data\Totals |
class | Cart and order totals (PLAN › Module rules 3), built by the pipeline: line prices (with B2B price lists and currency, from Pricing) → promotions → vouchers → loyalty → shipping → SGR deposit → VAT. Each stage returns a new Totals; the last one is the frozen snapshot an order stores. |
Data\TotalsLine |
class | One line in the totals: a variant, its quantity and price, its VAT rate and SGR containers. |
Catalog
| Type | Kind | What it is |
|---|---|---|
Contracts\AssistedSearch |
interface | Semantic search (PLAN › AI features › Search): a search in plain words becomes words, a price range and a brand, and a vector where the engine searches by meaning. Never fails: with AI off, out of budget or down, the search goes as typed. |
Contracts\Bundles |
interface | Bundles and packs (PLAN › Bundles & packs): variants made of other variants. A bundle holds no stock of its own: Inventory works through its components. Components are physical, never bundles themselves. |
Contracts\CatalogBrowser |
interface | The catalog as shoppers see it: active categories, brands and products only, in the language asked for (Romanian where a text is missing). Slugs are looked up in that language, then in Romanian, then among the slugs an item used to have. |
Contracts\CatalogImport |
interface | Writing the catalogue from an import (PLAN › Legacy migration): each call creates the record, or updates the one given by id (an earlier run). Prices go through the variant's money cast, so the price history records them. |
Contracts\CatalogVisitor |
interface | Who is browsing in this request. The catalog binds the public viewer; B2B binds a company buyer's. |
Contracts\FeedCatalog |
interface | The catalog for product feeds (PLAN › Product feeds): active products everyone may see (never those reserved for companies or groups), a page at a time. |
Contracts\ProductDimensions |
interface | Products' names, brands and main categories, for reports (deleted products included). |
Contracts\ProductSearch |
interface | Product search behind one contract (PLAN › Search): PostgreSQL full-text now, Typesense or Meilisearch as drivers. Callers get product ids in rank order; prices, stock and visibility for a buyer are applied afterwards. |
Contracts\ProductTexts |
interface | Products' texts for drafting and the write that a person approves (PLAN › AI features: AI proposes, a person decides). Writes go through the model, so the page is reindexed and search engines told. |
Contracts\RelatedProducts |
interface | Related products (PLAN › AI features): similar ones and those bought together, worked out every night (catalog:relate), and the best sellers (catalog:bestsellers). Only products on sale and open to everyone come back, best first. |
Contracts\Taxonomy |
interface | The catalogue's names for other modules that map outside data onto it (supplier feeds): every brand, every attribute with its values, and lookups by name that ignore case and diacritics. |
Contracts\VariantDirectory |
interface | Variants for other modules' screens, without reaching into the catalog's tables. |
Data\AttributeFilter |
class | A filter a shopper chose: values of a choice attribute, a number range, or yes/no. |
Data\AttributeOption |
class | An attribute for a picker or a mapping: its type and, for choices, its values. |
Data\AttributeType |
enum | — |
Data\BrandLink |
class | A brand to link to or filter by; products counts the active products in the list it was taken from. |
Data\BrandPage |
class | — |
Data\BundlePart |
class | One component of a bundle or pack, in one language: how many of which variant go in one unit. |
Data\CatalogAudience |
enum | Who sees a product or a category (and the categories below it) on the storefront. |
Data\CatalogPageChanged |
class | A product, category or brand was created, changed or removed, so its public page may have changed (the storefront tells search engines through IndexNow). kind is products, categories or brands. |
Data\CatalogViewer |
class | Who is looking at the storefront, as far as reserved products and categories go. |
Data\CategoryLink |
class | A category to link to, in one language. |
Data\CategoryPage |
class | A category as its storefront page shows it, in one language. |
Data\Discontinued |
class | A product that is no longer sold (archived). Its page sends shoppers to its category with a 301, or answers 410 Gone when it has none (PLAN › SEO). |
Data\FacetCounts |
class | How many products each filter option would show, counted with every other chosen filter applied but not this attribute's own, so options of one attribute can be combined. |
Data\FeedProduct |
class | A public product as product feeds describe it, in one language: plain-text description, large image URLs, category path. |
Data\FeedVariant |
class | A variant in a product feed: its codes, options ("Negru · 1 kg") and own image, if it has one. |
Data\FilterAttribute |
class | An attribute a category can be filtered by (filterable, and marked as a filter for the category or one above it). kind is choice (select, multiselect, variant options), range (numbers) or flag (yes/no). |
Data\FilterValue |
class | — |
Data\FulfilmentType |
enum | What happens once a variant is paid for (PLAN › Digital products). |
Data\ImportedBrand |
class | A brand brought over from the previous version (LegacyImport). |
Data\ImportedCategory |
class | A category brought over from the previous version (LegacyImport), in Romanian. |
Data\ImportedProduct |
class | A product brought over from the previous version, in Romanian, with its variants. |
Data\ImportedVariant |
class | A variant brought over: its own SKU, barcode and shelf price (bani, VAT included). |
Data\ProductCard |
class | A product in a list (category, brand, search), in one language. Prices and stock come from their modules. |
Data\ProductDimension |
class | A product as the reports group it: its name, brand and main category. |
Data\ProductImage |
class | One product image: its sizes (WebP, the original until the sizes are made) and its alt text. |
Data\ProductImageSource |
class | A product image as a vision model gets it: a medium-sized copy on its disk, and its alt text so far. |
Data\ProductListQuery |
class | Which active products a storefront list shows. A category includes everything below it. |
Data\ProductPage |
class | An active product as its storefront page shows it, in one language. |
Data\ProductSort |
enum | — |
Data\ProductStatus |
enum | — |
Data\ProductTextSource |
class | What a product says about itself in one language, for drafting its texts (AI or not). |
Data\RelationKind |
enum | How two products are related, for the product page and the cart. |
Data\SafetyContact |
class | GPSR: the manufacturer or EU responsible person named on the product page. |
Data\SearchIntent |
class | What a shopper's search asks for, as the search engine takes it: the words to look for, a price range (bani, VAT included), brands, and the query's vector for engines that search by meaning. understood when a model turned plain words into these, so the shop can say so and offer the search exactly as typed. |
Data\SearchQuery |
class | — |
Data\SearchResult |
class | — |
Data\SitemapEntry |
class | One active product, category or brand for the XML sitemaps. |
Data\Specification |
class | One line of the specifications table, ready to show: "Volum" → "330 ml". |
Data\VariantCard |
class | A variant as the cart shows it, in one language. sellable: the variant and its product are on sale. |
Data\VariantChoice |
class | A variant on the product page: its codes, its options ("Negru · 1 kg") and its image. |
Data\VariantDimension |
class | A variant as reports list it: its SKU and its product's name. |
Data\VariantPlacement |
class | Where a variant sits in the catalog, for rules that target products, categories or brands (promotions, vouchers): its product, its brand, and every category it is in together with their parents. |
Data\VariantPriceChanged |
class | A variant's retail list price was set or changed (Pricing keeps the history for Omnibus). |
Data\VariantSummary |
class | A variant as other modules show it in lists: stock, orders, reports. |
Chat
| Type | Kind | What it is |
|---|---|---|
Contracts\MessagingDriver |
interface | A messaging channel whose conversations land in the chat inbox (PLAN › Live chat: WhatsApp Business, Facebook Messenger). It reads the provider's webhook (its signature checked first) and sends the shop's replies to the customer's id on that channel. |
Contracts\VisitorBasket |
interface | What the visitor's basket is worth, VAT included, for a proactive message about it. The storefront knows the basket; without one, null. |
Data\ChatChanged |
class | Something changed in a conversation: the staff inbox refetches it. The payload is the id only (PLAN › Chat: never content a listener may not see). |
Data\InboundMessage |
class | A customer's message on a channel, as its provider sent it. |
Data\MessagingRefused |
class | The channel will not take this reply (the reply window has closed, the customer blocked the shop…). |
Data\ProactiveTrigger |
enum | What makes a proactive message show (PLAN › Live chat: chosen by the owner, never on every page). |
Checkout
| Type | Kind | What it is |
|---|---|---|
Contracts\Checkout |
interface | Checkout (PLAN › Cart & checkout): the delivery and payment a cart can have, the priced quote the buyer reviews, and placing the order. |
Contracts\PaymentDriver |
interface | A card payment processor (PLAN › Payments, couriers & invoicing). Built with the shop's credentials (DriverConfig); amounts are integer minor units, converted to the provider's format at the edge. Drivers log their calls through IntegrationLog, with secrets redacted. |
Contracts\Payments |
interface | Card payments for orders: starting one with the shop's payment driver, reading the buyer's return, and the latest attempt for an order. Each attempt is a row; a paid one moves the order to "paid". |
Contracts\SupportsRecurring |
interface | A processor that can keep a card and charge it again without the buyer (PLAN › Subscriptions): with PaymentRequest::$saveCard its paid result carries a CardToken; charge() is the merchant-initiated payment. |
Data\BankDetails |
class | Where a bank transfer goes, shown after the order is placed. |
Data\CardToken |
class | A card the processor kept for later charges: its token (and customer, for Stripe), never the number. |
Data\CheckoutDetails |
class | What the buyer filled in at checkout, already validated. |
Data\CheckoutQuote |
class | The cart priced for the chosen delivery: what the review page shows and the order will charge. |
Data\CheckoutRefused |
class | A checkout that cannot go on. reason: empty (no cart), cart (a line cannot be ordered as it stands), delivery or payment (no longer offered), out_of_stock (with the product's name), voucher (with the message why), account (a subscription needs a signed-in shopper), recurring_consent (a subscription needs the buyer's yes to future charges). |
Data\DeliveryOption |
class | A way to get the order, with its price for this cart (zero when free). |
Data\Iban |
class | IBAN checks (ISO 13616): format and the mod-97 check digits. Romanian IBANs have 24 characters. |
Data\PaymentOutcome |
enum | One vocabulary for what a processor said about a payment. Each driver maps its provider's codes onto it; the provider's own code and words travel alongside (PaymentResult) so nothing is lost. |
Data\PaymentRequest |
class | What a payment driver needs to start a card payment. reference is ours, unique per attempt; the provider echoes it back in its notification. |
Data\PaymentResult |
class | A processor's answer about a payment, verified by the driver: from a notification, a browser return or a status query. Never act on one whose signature did not check out. |
Data\PaymentSettled |
class | A card payment came in: how much, through which processor, and its fee when the processor said it. |
Data\PaymentStart |
class | How the buyer gets to the payment page: a URL to redirect to, or a self-submitting HTML form (hosted-form processors). providerReference is the provider's session or transaction id, when it gives one now. |
Data\PaymentView |
class | A card payment as pages and the admin show it. |
Data\RefundResult |
class | What happened when a refund was asked for. Distinct on purpose, so the admin never implies money moved when it did not: executed (the provider took it), unsupported (no refund API: refund from the provider's panel), failed (attempted and refused). |
Data\SavedCard |
class | A saved card as the shop shows it: brand, last four digits and expiry. |
Data\TaxId |
class | A Romanian company tax ID (CUI/CIF): 2 to 10 digits, the last a check digit (key 753217532), optionally with the "RO" of a VAT payer in front. |
Content
| Type | Kind | What it is |
|---|---|---|
Contracts\Articles |
interface | The blog for the storefront (PLAN › Blog). Lists hold live articles only, newest first. |
Contracts\Landings |
interface | Landing pages for the storefront (PLAN › Landing-page builder). |
Contracts\PageImport |
interface | Writing pages from an import: Romanian title and Markdown body, as drafts the owner reads before publishing. |
Contracts\Pages |
interface | The shop's content pages for the storefront: one by slug, those linked from the footer, and those in the sitemap. |
Data\ArticleCard |
class | An article in a list, in one language. |
Data\ArticleQuestion |
class | A question an article answers on the page (plain text both). |
Data\ArticleView |
class | An article as the storefront shows it, in one language, whatever its state (live says whether it is out): the body already rendered to safe HTML. |
Data\BlogCategoryLink |
class | A blog category in one language. |
Data\LandingColumn |
class | A column of a landing page row: its width in twelfths and its modules. |
Data\LandingModule |
class | One module of a landing page, in one language: text (html), products (title and where they come from), banner (image, heading, text, link, call to action), brands (title and brand ids) or articles (title, blog category or all, how many). Fields that do not belong to the type are null. |
Data\LandingRow |
class | A row of a landing page: contained or edge to edge, plain or on a tinted band. |
Data\LandingView |
class | A landing page as the storefront shows it, in one language. live: published and inside its dates. |
Data\PageLink |
class | A page as a link: its title and slug in the language asked for. |
Data\PageView |
class | A published page as the storefront shows it: the body already rendered to safe HTML. |
Currency
| Type | Kind | What it is |
|---|---|---|
Contracts\Currencies |
interface | The currencies customers can shop in, and RON prices shown in them. |
Contracts\ExchangeRates |
interface | Reference rates against RON (PLAN › Multi-currency). Two lookups, kept apart on purpose: - latest(): the newest rate, for showing prices in another currency; - on(): the BNR rate in force on a date, for fiscal documents (Cod fiscal art. 319: VAT in RON at the rate of the issue date). Weekends and holidays take the last rate published before them. An old invoice is never restated at today's rate. Both return null when no rate is known, so a caller never shows a guess. |
Contracts\MoneyFormatter |
interface | Money as people read it (DESIGN.md §10): "1.249,90 lei" in Romanian, "1,249.90 lei" in English, "12,50 EUR" for other currencies. The unit follows the number after a no-break space, so it never wraps alone. Views add the tabular-figures class; this returns plain text. |
Data\CurrencyOption |
class | A currency the shop sells in. |
Data\ExchangeRate |
class | A reference rate: one unit of currency is worth rate RON on date. RON itself comes back as rate 1 with source "base". |
Data\Rounding |
enum | How a converted price is rounded in a currency (PLAN › Multi-currency: .99 endings, round to 0.05). |
Customers
| Type | Kind | What it is |
|---|---|---|
Contracts\CustomerAccounts |
interface | Shopper accounts (PLAN › Customer account): signing up and in through the customer guard, never the staff one; e-mail confirmation and password resets, whose links the storefront builds and sends; the profile. |
Contracts\CustomerAddresses |
interface | A shopper's address book. Every call names the shopper, so one can never read or change another's addresses. The first address saved is the default for billing and for delivery. |
Contracts\CustomerEvents |
interface | A customer account's activity and sign-in log (PLAN › Back office › Customers): sign-ins and failed tries, changes to the account, and what staff did to it. The address and device come from the current request. |
Contracts\CustomerImport |
interface | Writing accounts from an import (PLAN › Legacy migration): creates the account, or updates the one given by id or with the same e-mail; its addresses are replaced by the imported ones. The old password is kept wrapped (see Accounts\Passwords) until the shopper signs in. |
Contracts\CustomerTokens |
interface | Bearer tokens for the Storefront API (PLAN › API): a mobile app or a headless front end signs a shopper in and keeps the token. A token stops working when the password changes, the account is banned or erased, or a year after it was last used. |
Contracts\PersonalDataExport |
interface | Everything the shop holds about a customer, as one JSON file (GDPR art. 15 and 20). |
Contracts\StockAlerts |
interface | Back-in-stock alerts (PLAN › Customer account): an e-mail asks to hear when a variant is sold online again. A guest's address is confirmed by a link first; a signed-in shopper's confirmed address counts at once. The storefront sends each alert once, then it is done. |
Contracts\Wishlists |
interface | A shopper's favourites (PLAN › Customer account): variants saved for later from the product page, listed in the account. Only signed-in shoppers have one; each variant is in it once. |
Data\AccountRefused |
class | An account action that cannot go on. reason: email_taken (an account has that e-mail), credentials (e-mail or password wrong: never which), banned (the shop closed the account), password (the current password given is wrong). |
Data\CustomerEvent |
enum | What can happen to a customer account, for its activity and sign-in log. |
Data\CustomerEventView |
class | One line of a customer account's activity log. |
Data\CustomerRegistered |
class | A shopper created an account. |
Data\CustomerView |
class | A shopper's account as the rest of the shop sees it. |
Data\ImportConflict |
class | An imported account meets one already here that it may not be merged into. |
Data\ImportedAddress |
class | An address brought over from the previous version, matched to the address register. |
Data\ImportedCustomer |
class | An account brought over from the previous version. |
Data\SavedAddress |
class | An address in a shopper's book; id is null before it is saved. |
Data\StockAlertView |
class | A back-in-stock alert as other modules see it. token opens its page from the e-mails. |
Digital
| Type | Kind | What it is |
|---|---|---|
Contracts\Downloads |
interface | Downloads (PLAN › Digital products): the buyer's links to a product's latest file once the order is paid (cash on delivery: once delivered), at once with their consent, otherwise after the 14 days to withdraw. |
Contracts\GiftCards |
interface | Gift cards (PLAN › Digital products): multi-purpose vouchers. Codes are issued for gift cards bought (one per unit, the price paid as balance) or by staff; checkout spends them as a payment after VAT. |
Contracts\Memberships |
interface | Memberships (PLAN › Digital products, Access): paid access variants put the buyer's e-mail in a customer group, whose price lists and member-only products then apply. A renewal extends from where the last one ends. |
Data\DigitalFileUpdated |
class | A new version of a product's file (Directive 2019/770: buyers are told of updates). |
Data\DownloadFile |
class | A file to send for a download: where it is on the private disk and how it is called. |
Data\DownloadView |
class | A buyer's download, as their order page, account and e-mails show it. |
Data\DownloadsGranted |
class | An order's downloads are ready: the buyer gets their links. |
Data\GiftCardRefused |
class | A gift card that cannot pay: unknown, used up, expired or disabled, another currency, or its balance moved since the review. |
Data\GiftCardView |
class | A gift card as its holder and the shop see it. |
Data\GiftCardsIssued |
class | An order's gift cards were issued: the buyer gets their codes. |
Data\MembershipView |
class | A membership as the account pages show it. |
Fulfilment
| Type | Kind | What it is |
|---|---|---|
Contracts\CourierDriver |
interface | A courier (PLAN › Payments, couriers & invoicing): books an order's AWB, gives its label, tracks it and cancels it before pickup. Built with the shop's courier account (DriverConfig); calls are logged through IntegrationLog with secrets redacted. |
Contracts\CourierNetwork |
interface | What checkout may ask the shop's couriers before an order exists: the locker networks of the couriers switched on, their lockers, and a price for a parcel from the main courier. Best effort: a courier that does not answer gives no lockers and no price, never an error. |
Contracts\QuotesShipping |
interface | A courier that can price a parcel before booking it, so checkout can charge the real cost. Best effort: null when it cannot, and checkout falls back to the shop's own price. |
Contracts\Shipments |
interface | Shipments for orders: an AWB booked with a courier driver, its label, its tracking (which moves the order along: shipped, delivered, returned) and its cancellation. |
Contracts\SupportsLockers |
interface | A courier with lockers or pickup points, so checkout can offer locker delivery. |
Data\LockerNetwork |
class | A courier's locker network the shop can deliver to (easybox, FANbox, GLS points). |
Data\LockerPoint |
class | A self-service locker or pickup point of a courier's network (easybox, FANbox). |
Data\ShipmentBooked |
class | An AWB was booked: what the courier said it costs, when it does (null otherwise). |
Data\ShipmentCancelled |
class | An AWB was cancelled before the courier took it: it is not charged. |
Data\ShipmentRequest |
class | Everything a courier needs to book one order's AWB: the recipient and address as on the order, the parcel, and what to collect on delivery. |
Data\ShipmentResult |
class | A booked AWB: its number, a tracking link, the label when the courier returns it at once, and what it costs. |
Data\ShipmentSender |
class | Ship from store: who and where a parcel is collected from, when it is not the address on the courier account, and what that courier calls the place. |
Data\ShipmentStatus |
enum | Where a parcel is, the same whichever courier carries it; each driver maps its courier's codes onto it. |
Data\ShipmentView |
class | A shipment as the admin and the order pages show it. |
Data\TrackingEvent |
class | One scan or update in a parcel's history, as the courier words it. |
Data\TrackingResult |
class | Where a parcel is now, and its history (oldest first), as the courier reports it. |
Inventory
| Type | Kind | What it is |
|---|---|---|
Contracts\Batches |
interface | Best-before dates (PLAN › Expiry dates). Batches label part of a location's on_hand with a lot and date; goods out take the earliest first. |
Contracts\Costs |
interface | What a unit of a variant costs the shop (RON, net of VAT): its weighted average from goods receipts, otherwise the manual cost; null when neither is known, which is shown as missing, never as 0 (PLAN › Analytics). |
Contracts\Stock |
interface | Stock for checkout, orders and the storefront. A reservation holds stock until it is consumed (the order ships), released, or it expires. |
Contracts\StockCounts |
interface | A stocktake from outside the admin (an import): on_hand set to what was counted, written as a movement. |
Contracts\StockFigures |
interface | Stock as the reports see it (PLAN › Reports › Inventory): what is held, and how fast it leaves. |
Contracts\Suppliers |
interface | The shop's suppliers, for other modules (supplier feeds). |
Data\Batch |
class | Units of a variant at a location that carry one lot and best-before date. |
Data\LandedSplit |
enum | How a receipt's landed costs (transport, customs) are spread over its lines. |
Data\MovementReason |
enum | Why on_hand changed. |
Data\OutOfStock |
class | Not enough available stock for a reservation; carries what was available. |
Data\ReceiptDraft |
class | A goods receipt as typed, before it is posted. |
Data\Reservation |
class | — |
Data\StockLevel |
class | A variant's stock at one location. |
Data\StockLow |
class | What can be sold of a variant in one location fell to its low-stock threshold or under it. |
Data\StockPosition |
class | What one location holds of one variant. |
Data\SupplierView |
class | A supplier as other modules see it. |
Invoicing
| Type | Kind | What it is |
|---|---|---|
Contracts\InvoiceDriver |
interface | An invoicing service (PLAN › Payments, couriers & invoicing): SmartBill, Oblio, FGO, or a native e-Factura driver. It numbers the invoice in the shop's series, sends it to e-Factura when it does that, and gives its PDF. Built with the shop's account (DriverConfig); calls go through IntegrationLog with secrets redacted. |
Contracts\Invoices |
interface | Invoices for orders, issued through the shop's invoicing driver: one standing invoice per order, reversed by a credit note when needed. |
Data\InvoiceDraft |
class | An invoice to issue, built from an order's frozen totals: always in Romanian. The seller is the shop's account at the invoicing service. A foreign-currency invoice shows VAT in RON at the BNR rate of issuedOn (the driver asks Currency for it). |
Data\InvoiceLine |
class | One invoice line, VAT included, as the buyer paid it. A discount is a negative line right after the product it came off, at its VAT rate (one that names no product comes after them all); the SGR deposit is a line outside VAT; gifts are lines at 0. |
Data\InvoiceParty |
class | The buyer as the invoice names them: a person, or a company with its CUI. |
Data\InvoiceReference |
class | How the invoicing service knows an invoice: series and number, and its own id when it has one. |
Data\InvoiceView |
class | An invoice or credit note as the admin shows it. |
Data\IssuedInvoice |
class | What the invoicing service issued: series, number, date, its id, and the PDF when it returns it at once. |
LegacyImport
| Type | Kind | What it is |
|---|---|---|
Contracts\LegacySource |
interface | The previous version's database, read only (MySQL in a shop; a stand-in in tests). |
Licensing
| Type | Kind | What it is |
|---|---|---|
Contracts\Licences |
interface | Licence keys (PLAN › Licensing): one key per unit sold, issued when the order may have its digital content (as downloads), from a pattern or a pool; the licence API's activate, validate and deactivate; the owner's self-service and the shop's revocation. |
Data\ActivationView |
class | — |
Data\LicenceAnswer |
class | What the licence API answers: status is ok (activated, still valid or deactivated), or why not: not_found, revoked, expired, limit, inactive. |
Data\LicenceView |
class | A licence key as its owner and the shop see it, with its active activations. |
Data\LicencesIssued |
class | An order's licence keys were issued: the buyer gets them. |
Loyalty
| Type | Kind | What it is |
|---|---|---|
Contracts\Loyalty |
interface | Loyalty points (PLAN › Loyalty): earned on delivered orders, spent as a discount in the cart. |
Contracts\LoyaltyCards |
interface | Physical loyalty cards: handed out by the shop, linked to an account by their holder, perks in that account's cart. |
Data\LoyaltyBalance |
class | A customer's points: those they can spend now, those still waiting for the end of a withdrawal window, and what the first are worth. |
Data\LoyaltyCardView |
class | A physical loyalty card as its holder and the staff see it. |
Data\LoyaltyEntryView |
class | One line of a customer's points history. |
Data\LoyaltyKind |
enum | Why the points changed. |
Data\LoyaltyProgramme |
class | The points programme as the storefront explains it. |
Data\LoyaltyRefused |
class | Points that can no longer be spent: the balance changed since the cart was shown. |
Marketing
| Type | Kind | What it is |
|---|---|---|
Contracts\Newsletter |
interface | The newsletter's consent (PLAN › GDPR): double opt-in, proof of every request, confirmation and unsubscription with the wording agreed to, and one-click leaving. Sending campaigns is the newsletter service's job. |
Contracts\NewsletterDriver |
interface | A newsletter service the shop's subscribers are kept in (Newsman, Klaviyo). It sends the campaigns; the shop gives it only addresses whose owners confirmed them, and takes off those who left. |
Data\FeedPreset |
enum | What a feed is for, which decides its file format: Google Merchant Center's RSS (also read by TikTok), Meta's flavour of it, Compari's XML, OpenAI's product feed for ChatGPT shopping (JSON Lines), or plain CSV and JSON. |
Data\SubscriberChanged |
class | An address was confirmed or unsubscribed (or erased: email is then the address to remove at the newsletter services). |
Data\SubscriberStatus |
enum | A newsletter address: waiting for its owner to confirm it, subscribed, or unsubscribed. |
Data\SubscriberView |
class | A newsletter address as the storefront needs it. token opens its confirm and unsubscribe page. |
Data\SubscriptionRequested |
class | Someone asked for the newsletter with an address not yet proven: the storefront sends the confirmation link. |
Marketplaces
| Type | Kind | What it is |
|---|---|---|
Contracts\MarketplaceDriver |
interface | A marketplace the shop sells on (PLAN › Integrations: order import, status sync). Failures throw a RuntimeException with the marketplace's own message. |
Data\MarketplaceAddress |
class | An address as the marketplace sends it: names, not register ids. |
Data\MarketplaceLine |
class | A product line of a marketplace order: the shop's code (SKU), how many, and the price paid with VAT. |
Data\MarketplaceOrder |
class | An order as a marketplace reports it. Amounts are with VAT in the order's currency; discount is negative (vouchers the buyer used). |
Data\MarketplaceStatus |
enum | An order's state on the marketplace, in one vocabulary for every marketplace (eMAG's numbers map onto it): new until the shop accepts it, in progress, prepared (ready to ship), finalized (shipped), cancelled, returned. |
Orders
| Type | Kind | What it is |
|---|---|---|
Contracts\CoPurchases |
interface | Products bought in the same order (PLAN › AI features, related and complementary products), for "bought together" suggestions. Counted per buyer, so one large order does not make a pair; gifts and cancelled or returned orders do not count. |
Contracts\CustomerFigures |
interface | Buyers as the reports see them (PLAN › Reports › Customers): one per e-mail address, guests included, cancelled orders left out, the imported history in. Never who they are: counts and sums only. |
Contracts\OrderBook |
interface | — |
Contracts\OrderImport |
interface | Writing past orders from an import (PLAN › Legacy migration): as they ended, for the customers' history and the shop's reports. Nothing happens because of them: no stock moves, no e-mails, no events, no invoices. A second import of the same order (by id) replaces it. |
Contracts\OrderReferrers |
interface | What sent the buyer to the shop, noted on the order once it is placed ("ai:chatgpt"). |
Contracts\Receivables |
interface | What companies owe for orders bought on terms (PLAN › Reports › B2B), in RON. |
Contracts\Returns |
interface | Returns and the withdrawal function (Directive 2023/2673 art. 11a): the window an order has, the buyer's statement taken and acknowledged, and the shop's handling. Money moves elsewhere; a refund is recorded here. |
Contracts\SalesFigures |
interface | Sales as placed (PLAN › Reports): orders, items and totals per day, for the dashboard's sales figures, which every analytics user may see. In RON, other currencies at the BNR rate of their day; cancelled orders left out, the imported history in (so "last year" works from the first day). |
Contracts\VatFigures |
interface | Orders' VAT for the VAT check (PLAN › Reports): what was charged per rate, and which orders need an invoice. |
Data\Buyer |
class | Who buys: a person, or a company with its tax ID (CUI) and trade register number. |
Data\CohortCell |
class | How many of the buyers whose first order fell in cohort (Y-m) ordered again offset months later (0 = that month). |
Data\CustomerSummary |
class | One buyer's history (guests included, by e-mail), without who they are: for reports. |
Data\DaySales |
class | One day's placed orders: how many, their items and their total in RON (bani, VAT included). |
Data\DeliveryMethod |
enum | — |
Data\ImportedOrder |
class | An order from the previous version, kept as history: what it was, as it ended. Amounts in bani, RON. |
Data\ImportedOrderLine |
class | A line of an order brought over: what was bought, at what price (bani, VAT included). Ids are 0 for products no longer there. |
Data\LockerAddress |
class | The courier locker (easybox, FANbox, GLS point) an order goes to, as it was when the order was placed: the courier driver, the locker's id in that courier's network, and what the buyer saw. |
Data\OpenInvoice |
class | An order bought on terms and not yet paid: what is owed, by whom, by when. |
Data\OrderApproval |
enum | A company order's approval: waiting for the company's administrator, approved, or rejected (and cancelled). |
Data\OrderApprovalDecided |
class | A company's administrator approved or rejected an order waiting for them; the buyer is told. |
Data\OrderDraft |
class | Everything an order needs, assembled by checkout and placed by the OrderBook. |
Data\OrderLineDraft |
class | A line as it goes into the order: the catalogue's names and the price the buyer saw, frozen. |
Data\OrderPaymentCollected |
class | The money of an order that does not move to Paid (bought on terms) came in: what waited for it can go out. |
Data\OrderPlaced |
class | An order was placed (PLAN › Module rules 2): e-mails, analytics and the like listen, on the queue. Dispatched once the outermost transaction commits, so a checkout that rolls back never announces an order. |
Data\OrderRefused |
class | An order that cannot be placed: reason is out_of_stock (with the product's name) or empty. |
Data\OrderStatus |
enum | Where an order stands (PLAN › Module rules 4): placed → confirmed → paid (prepaid orders) → picking → shipped or ready (pickup) → delivered, with cancelled and returned branches. next() is the whole state machine: a change it does not list is refused. Every change is logged. |
Data\OrderStatusChanged |
class | — |
Data\OrderSummary |
class | One order in a list: what a shopper's order history shows. |
Data\PaymentMethod |
enum | — |
Data\PeriodCustomers |
class | Buyers who ordered in a period: those whose first order it was, and those who had ordered before. |
Data\PlacedOrder |
class | An order as its confirmation page and e-mails show it. token opens it without signing in. |
Data\PostalAddress |
class | A Romanian address as entered at checkout; the locality is a SIRUTA code with its names kept beside it. |
Data\ReturnKind |
enum | — |
Data\ReturnLine |
class | One order line a return covers, and how many of it. |
Data\ReturnRefused |
class | A return that cannot be taken or moved on. reason: closed (the window is over or the order cannot be returned), lines (nothing chosen, or more than can be returned), status (the return cannot take that step). |
Data\ReturnRequested |
class | A buyer withdrew (or asked to return): the acknowledgement goes out. |
Data\ReturnStatus |
enum | Where a return stands: requested by the buyer, then accepted or rejected by the shop, the goods received, the money refunded. next() is the whole state machine. |
Data\ReturnStatusChanged |
class | The shop moved a return on: accepted, rejected, received, refunded. |
Data\ReturnView |
class | A return as the buyer and the shop see it. |
Data\StatusChangeRefused |
class | A status change the order's state machine does not allow. |
Data\TermsBalance |
class | What a company owes for orders bought on terms: the open amount, and whether any is past its due date. |
Data\VatSplit |
class | An order's VAT by rate, as its totals were fixed at checkout (shipping included, the SGR deposit outside VAT). |
Data\WithdrawalRequest |
class | The buyer's withdrawal statement, as the withdrawal function takes it. |
Data\WithdrawalWindow |
class | Whether the buyer can still withdraw from an order: open until the goods arrive and for 14 days after (OUG 34/2014 art. 9), on what is not already being returned. deadline is null while the goods are on their way. |
Platform
| Type | Kind | What it is |
|---|---|---|
Contracts\Addresses |
interface | Romania's counties and localities, for address entry (county → locality → postcode), shipping rules and the shop's own address. Other modules store the ids (county id, SIRUTA code) and read names through here. |
Contracts\AdminMenu |
interface | — |
Contracts\AdminRoutes |
interface | Admin screens of an extension, behind the same sign-in, two-factor and staff-session checks as the core's: under /admin, with route names starting "admin.". Call it in the provider's boot(). |
Contracts\ApiBulkHandler |
interface | One kind of bulk update through the API (POST /api/v1/bulk/{kind}): the module that owns the data validates and applies one row at a time, with its own Actions. Tagged 'api-bulk' in the module's provider. |
Contracts\ApiResource |
interface | One resource of the Integration API (/api/v1/{path}), declared once by the module that owns it (PLAN › API): its fields, filters, operations and how each is carried out, through the same Actions the admin uses. The validation, the OpenAPI file and the Postman collection come from it. Texts: lang/{locale}/{group}.php › api.{key}.(title|description|fields.|filters.|actions.*). A key reads it with "{key}:read" and writes with "{key}:write". Implement it with Data\ApiResourceDefaults for the usual answers, and tag the class 'api-resource' in the module's provider. |
Contracts\ApiResources |
interface | An extension's resources on the Integration API. Each sits under the extension's own path (/api/v1/acme-erp/stock-sync, path() "acme-erp/stock-sync"), with a key of its own for the scopes ("acme_erp_stock_sync:read") and texts in its namespaced lang file. Add them in the provider's boot(). |
Contracts\ChecksConnection |
interface | A driver that can prove its stored credentials work before an order depends on them. |
Contracts\CompanyRegister |
interface | Looks a Romanian company up by CUI in the public register (ANAF): name, address, VAT status. Cached a day. |
Contracts\DashboardWidgets |
interface | The cards on the admin dashboard. Modules and extensions add theirs in their provider's boot(). |
Contracts\DataFeed |
interface | One signed data feed (DISTRIBUTION.md › Data feeds): compliance data that changes without a release, such as dated VAT rates. The module that owns the data applies it; the feed client has already checked the signature. |
Contracts\DataFeeds |
interface | The data feeds this shop follows. Modules add theirs in their provider's boot(). |
Contracts\DomainEvent |
interface | Marks a domain event: something that happened in a module that others, extensions included, may react to (Event::listen). Events live in the module's Data\ namespace and carry ids and values, never models. The list is published in docs/development/extension-api.md. |
Contracts\Drivers |
interface | The drivers modules register (implemented) and the shop's switches for them (available, default, sandbox, credentials). Modules build their driver through make(); they never read credentials themselves. |
Contracts\ExtensionGate |
interface | Whether an installed extension runs for the shop being served. On-premises every installed extension runs; on the SaaS host an extension is switched on per shop (DISTRIBUTION.md › Extensions and themes on SaaS). The registries note which extension added each menu item, slot, stage, task, permission, route or listener, and use it only where its extension is on. |
Contracts\Extensions |
interface | The extensions installed in this shop, as Composer recorded them. |
Contracts\IntegrationLog |
interface | The conversation with outside services, for support: what was sent and received, with credentials and card data redacted. A failed write never breaks the call it records. |
Contracts\PermissionRegistry |
interface | The permissions extensions add next to the core's (SyncShop\Enums\Permission). Extensions add theirs in their provider's boot(); permissions:sync writes them, and removes those of an extension that is no longer installed. |
Contracts\PersonalData |
interface | What one module holds about a customer (PLAN › GDPR): each module that keeps personal data tags one of these 'personal-data', so an export gathers every part and an erasure reaches every part, without any module reading another's tables. |
Contracts\PublicUrls |
interface | The check every request the shop makes to an address someone typed goes through (webhooks, supplier feeds): HTTPS, to a host whose addresses are all public. The caller connects to the address checked (DNS pinning). |
Contracts\RetentionPolicy |
interface | How long a module keeps what it no longer needs (PLAN › GDPR, retention): each module tags one 'retention'; the daily task runs them all. Nothing a law makes the shop keep (orders, invoices) is pruned. |
Contracts\ScheduledTaskRegistry |
interface | Every built-in recurring task. Modules add theirs in their service provider's boot(); nothing else in the application schedules work. |
Contracts\SettingsClasses |
interface | Settings classes (spatie/laravel-settings) of an extension. Add yours in the provider's boot(); its properties are created by a settings migration the extension loads with loadMigrationsFrom(). |
Contracts\SettingsSections |
interface | — |
Contracts\ShopCompany |
interface | The shop's own company details (Settings → Date firmă); null until they are complete. |
Contracts\ShopContext |
interface | The shop being served. On-premises there is one, shop 1; the SaaS host serves one shop per request, job or command and many in one process. |
Contracts\ShopDataMigration |
interface | A migration that writes a shop's data rather than the schema (a default row, a starting value). It runs once for every shop, now and for every shop created later, and is recorded per shop (shop_migrations); so do spatie settings migrations. Keep it safe to run on a shop that already has the data. |
Contracts\ShopTables |
interface | Every shop's rows sit in the same tables, told apart by shop_id (DISTRIBUTION.md › Task 5c, as ELVPro does). On-premises every row belongs to shop 1; on the SaaS host the database itself shows a shop only its own rows. A migration that creates a table a shop owns calls scope() right after creating it; shared tables are listed in shared(). |
Contracts\StaffSessions |
interface | The staff member behind this request's session, as the admin itself would accept them: signed in, the session bound to their current password, and two-factor set up when the shop requires it. For other modules that lean on a staff session outside the admin's routes. |
Contracts\VerifiesWebhooks |
interface | A webhook handler whose provider checks the address before sending (Meta's GET with hub.mode, hub.verify_token and hub.challenge). |
Contracts\ViewSlots |
interface | What extensions add at the view slots of core and theme pages. Add yours in the provider's boot(); the view gets the slot's context (ViewSlot::context()). |
Contracts\WebhookHandler |
interface | Acts on a family's webhooks, on the queue. It must verify the call (the driver checks the signature) and be idempotent: the same call may arrive, or be retried, more than once. |
Contracts\WebhookHandlers |
interface | Which module handles each family's webhooks (/webhooks/{family}/{driver}). |
Contracts\Webhooks |
interface | Outgoing webhooks (PLAN › API): modules declare the events they send and send them; the shop's registered endpoints that want an event get it, signed, retried with backoff and logged. |
Data\ApiContext |
class | Who is calling: the key, and the staff member it acts for. A key acts for the person who issued it and stops working the moment they can no longer manage API keys (their account deleted, or the permission taken away). |
Data\ApiField |
class | One field of an API resource, declared once (PLAN › API): it gives the validation rules for writes and the OpenAPI schema for the reference. Its description comes from the resource's lang file (fields.{name}). |
Data\ApiResourceDefaults |
class | The usual answers of an Integration API resource (Contracts\ApiResource): read-only list and show, no filters or actions, the path from the key. A resource overrides what it does differently. |
Data\CheckReport |
class | The outcome of a connection test, step by step. labels is the translation group naming the steps (e.g. platform.storage.steps), so any module's test renders through <x-check-report>. |
Data\CheckStep |
class | One step of a connection test (storage, search, …). A warning still lets the settings be saved. |
Data\CompanyDetails |
class | The shop's company as invoices, e-Factura and legal pages need it. |
Data\CompanyLookup |
class | What the register said: verified (with the profile), deregistered, invalid (no such CUI), unavailable (ask again later). |
Data\CompanyProfile |
class | A company as the Romanian register (ANAF) describes it. |
Data\County |
class | — |
Data\CredentialField |
class | One setting a driver needs, declared once: it drives the form, the validation and the keep-on-blank rule for secrets. Types: text, textarea, secret (never shown back, kept when left blank), number, switch. |
Data\Csv |
class | A table as CSV for a spreadsheet: UTF-8 with a BOM, semicolons (what a Romanian Excel expects), and every cell that a spreadsheet would read as a formula (= + - @, tab, return) prefixed with an apostrophe. |
Data\DashboardWidget |
class | A card on the admin dashboard. The view renders the card's body and finds its own data (inject a contract with @inject); the dashboard draws the card and its title. |
Data\DemoPdf |
class | A one-page PDF of plain text lines, for demo drivers' labels and invoices (no PDF library needed). Latin-1 only: Romanian letters lose their marks. |
Data\DeviceName |
class | A short, human name for the browser behind a user agent ("Chrome · macOS"), enough to recognise one's own device; the raw string, which fingerprints a person far better (and is the visitor's own text), is never kept. |
Data\DriverConfig |
class | What a driver is built with: the shop's settings for it (credentials decrypted) and its sandbox switch. |
Data\DriverDefinition |
class | A driver that exists in code (implemented). Whether the shop may use it (available) is the shop's switch in Settings → Integrations, so a provider can be withdrawn without breaking orders that already used it. |
Data\DriverFamily |
enum | The kinds of outside service a shop connects through drivers (PLAN › Architecture: driver families). |
Data\Extension |
class | An installed extension: a Composer package of type "syncshop-extension". |
Data\IncomingWebhook |
class | A call an outside service made to us, exactly as it arrived (stored before anything acts on it). |
Data\Locality |
class | — |
Data\LocalityKind |
enum | The administrative unit a locality belongs to. |
Data\MenuItem |
class | One entry in the admin sidebar. Modules add theirs through Contracts\AdminMenu in their service provider's boot(). |
Data\PermissionDefinition |
class | A permission an extension adds to the catalog. Its name is the extension's own (acme-erp.sync.run): lowercase, with a dot after the extension's key. |
Data\PublicTarget |
class | Where an outgoing request may go: the host, port and the checked public address to connect to, or why it may not (https, unresolved, private). |
Data\ScheduledTaskDefinition |
class | A built-in recurring task, declared by the module that owns it. The default schedule lives here; the admin may change it (a database row then records the difference) and reset it back. |
Data\SettingsSection |
class | A card on Settings, declared by the module that owns the screen. |
Data\StaffSignInEvent |
enum | What the staff sign-in log records. |
Data\ViewSlot |
enum | The places on core and theme pages where extensions add markup (<x-syncshop::slot name="product.after-price" :context="[...]" />). A slot's view gets only the context listed here, as ids and values. |
Data\WebhookOutcome |
class | What came of a webhook: acted on (or already handled), or ignored and why (a bad signature, an unknown reference). |
Models\ApiKey |
class | An Integration API key. Sent as Authorization: Bearer ss_<id>_<secret>; only the secret's sha256 is stored. |
Pricing
| Type | Kind | What it is |
|---|---|---|
Contracts\CustomerGroups |
interface | The customer groups price lists are made for (retail, B2B tiers), for the modules that place buyers in them. |
Contracts\Prices |
interface | The price a buyer pays for a variant: the list price, or the lowest price any applicable price list gives for that quantity, in the buyer's currency. Promotions and vouchers act later in the totals pipeline. |
Contracts\VatRates |
interface | Dated VAT rates per class (PLAN › Compliance: rates are dated so they can change again). |
Data\Price |
class | A variant's unit price for one buyer and quantity, in the buyer's currency. unit is what to show: gross for retail, net for B2B. |
Data\PriceContext |
class | Who is buying, which decides the price (PLAN › B2B: a retail visitor, a retail customer, or a buyer inside a company account). |
Data\VatBreakdown |
class | An amount split into net, VAT and gross at one rate, exact to the minor unit: net + vat = gross always holds. VAT is worked out once per line (PLAN › Compliance), rounded half up, away from zero for negative amounts, so a credit note mirrors its invoice to the ban. |
Data\VatRate |
class | The rate of one VAT class in force on a given day. |
Promotions
| Type | Kind | What it is |
|---|---|---|
Contracts\Offers |
interface | Promotions as the storefront shows them on products. A price cut with no cart condition (no minimum, no required product) is an Offer: the reduced price itself, the same the cart charges. Everything else that covers a product (buy X get Y, tiers, free delivery, cuts with a condition) is a deal: its name beside the price. |
Contracts\Vouchers |
interface | Voucher codes for the cart and checkout. The voucher stage of the totals pipeline works out what a code takes off; these say whether it may be used, and record each use. |
Data\Offer |
class | A promotion's reduced price for a variant, as the product page shows it. unit is what to show (gross for retail, net for B2B), unitGross the same with VAT. startsAt is when the cut began, for the Omnibus lowest price of the 30 days before; endsAt goes into priceValidUntil. |
Data\PromotionKind |
enum | What a promotion does (PLAN › Promotions engine). |
Data\TargetRole |
enum | What a target means to its promotion or voucher. |
Data\TargetType |
enum | — |
Data\Tier |
class | One step of "spend more, get more": from this goods value (RON minor units), a percentage or an amount off. |
Data\VoucherCheck |
class | What a voucher code is worth for a cart right now. applies: it takes money off (or makes delivery free). pending: a real code that does not apply yet (the goods are below its minimum, nothing in the cart is covered), so the cart keeps it. Otherwise it is refused and message says why. |
Data\VoucherKind |
enum | What a voucher is worth. Any of them can also make delivery free. |
Data\VoucherRefused |
class | A voucher that can no longer be used for this order; the message is for the buyer. |
Sourcing
| Type | Kind | What it is |
|---|---|---|
Data\FeedField |
enum | The catalogue fields a feed's columns can fill. SKU is the only one required. |
Data\FeedFormat |
enum | How a supplier's feed is written. |
Storefront
| Type | Kind | What it is |
|---|---|---|
Contracts\RedirectBook |
interface | Permanent redirects from another module (an import): an old path to a record's current address on the storefront, worked out here from its slug. Returns false when the record has no address (gone, not shown) or the old path is one the shop itself uses. |
Data\AddedToCart |
class | What a quick order or a reorder put in the cart, and what the cart refused (with why), by the shopper's label for each. |
Data\Consent |
class | A visitor's cookie choice: what beyond the necessary they allowed, under which policy version. |
Stores
| Type | Kind | What it is |
|---|---|---|
Contracts\Locations |
interface | — |
Contracts\StoreReservations |
interface | Reserve in store (PLAN › Online meets offline): stock held at a store for the hours set, without payment. Collecting it is a sale at the store's till (its fiscal receipt from the register); the hold ends by itself. |
Data\Location |
class | A location as other modules see it (stock, allocation, pickup). |
Data\LocationAddress |
class | A location as a parcel's sender: its address and what each courier calls it. |
Data\LocationType |
enum | — |
Data\StoreDetails |
class | A place customers come to, as the storefront shows it: the store locator and the store's own page. Warehouses never appear. |
Data\StoreReservationMade |
class | A shopper reserved products in a store: the confirmation goes out. |
Data\StoreReservationRefused |
class | A reservation the store cannot make (not enough stock there, reservations off) or change. |
Data\StoreReservationRequest |
class | A shopper asking a store to hold products for them. |
Data\StoreReservationStatus |
enum | — |
Data\StoreReservationView |
class | A reservation in store, as the shopper and the store see it. |
Data\StoreSaleInput |
class | One receipt from the register, as a file line group or an API row gives it. |
Data\StoreSaleLineInput |
class | One item on a register receipt; a negative quantity is goods brought back. |
Data\StoreSaleOutcome |
class | What recording a receipt did. |
Subscriptions
| Type | Kind | What it is |
|---|---|---|
Contracts\SubscriptionFigures |
interface | Subscriptions as the reports see them (PLAN › Reports › Subscriptions): no buyer, only value and dates. |
Contracts\Subscriptions |
interface | Subscriptions for the storefront (PLAN › Subscriptions): the plans a variant is sold on, starting one (a fixed cart for the checkout), and the customer's own subscriptions with what they can do to them. |
Data\DunningFigures |
class | Renewals whose payment failed in a period, and how many of them were paid in the end. |
Data\PlanInterval |
enum | How often a plan renews: every count weeks, months or years. |
Data\PlanView |
class | A plan as the storefront offers it. |
Data\RenewalFailed |
class | A renewal could not be paid (or placed); it is retried, the buyer is asked to pay. Ids only: listeners read what they may see. |
Data\SubscriptionEnded |
class | A subscription is over: cancelled, or stopped after the last failed attempt. Ids only: listeners read what they may see. |
Data\SubscriptionEventView |
class | — |
Data\SubscriptionLine |
class | A subscription as the reports see it: what it is worth a month, and when it started, paused or ended. |
Data\SubscriptionRenewed |
class | A renewal was paid: the subscription runs another period. Ids only: listeners read what they may see. |
Data\SubscriptionStarted |
class | A subscription started from its first paid order. Ids only: listeners read what they may see. |
Data\SubscriptionStatus |
enum | Active: renews at the end of the period (or ends then, when cancelled to the end). PastDue: the renewal is not paid yet and is being retried. Paused: no renewals until resumed. Cancelled: over. |
Data\SubscriptionView |
class | A subscription as its customer and the admin see it. |
Shared
| Type | Kind | What it is |
|---|---|---|
Enums\Edition |
enum | Which SyncSHOP this install is (DISTRIBUTION.md › Two variants): a shop on its own server, or one of many shops on our SaaS host. Set once per install (SYNCSHOP_EDITION); the SaaS edition hides what a hosted shop does not manage itself (updates, shell tasks). |
Enums\Permission |
enum | The fixed permission catalog. A permission exists because some code enforces it: shop owners compose them into roles but never invent one. |
Enums\PermissionGroup |
enum | Groups of the permission catalog, in the order the roles screen shows them. |
Enums\SystemRole |
enum | The roles every shop starts with (PLAN › Roles and permissions). They are data the owner can edit, except that Owner and Administrator always hold every permission and system roles cannot be deleted. |
Models\User |
class | A staff account for the admin. Customers have their own model and guard (Customers module). |
Testing\ApiContract |
class | The stability contract (DISTRIBUTION.md › Customisations): code outside syncshop/core uses only the core's types marked @api; everything else may change in any release. In an extension's tests: |
Domain events
Listen with Event::listen(OrderPlaced::class, YourListener::class). They carry ids and values; read more through the contracts.
| Event | Module | Payload | What happened |
|---|---|---|---|
AffiliateApplied |
Affiliates | int $affiliateId |
A shopper applied to the programme from their account. |
AffiliateDecided |
Affiliates | int $affiliateId, int $customerId, string $email, string $name, bool $accepted |
Staff accepted or rejected an application (the applicant is told). |
QuoteOffered |
B2B | int $quoteId, bool $refused |
The shop answered a quote with prices (or refused it, refused); the buyer who asked is told. |
QuoteRequested |
B2B | int $quoteId |
A company buyer asked for a quote; the shop is told. |
CatalogPageChanged |
Catalog | string $kind, int $id |
A product, category or brand was created, changed or removed, so its public page may have changed (the storefront tells search engines through IndexNow). kind is products, categories or brands. |
VariantPriceChanged |
Catalog | int $variantId, Money $price |
A variant's retail list price was set or changed (Pricing keeps the history for Omnibus). |
ChatChanged |
Chat | int $conversationId |
Something changed in a conversation: the staff inbox refetches it. The payload is the id only (PLAN › Chat: never content a listener may not see). |
PaymentSettled |
Checkout | int $paymentId, int $orderId, string $driver, Money $amount, Money $fee, CarbonImmutable $paidAt |
A card payment came in: how much, through which processor, and its fee when the processor said it. |
CustomerRegistered |
Customers | int $customerId |
A shopper created an account. |
DigitalFileUpdated |
Digital | int $variantId, string $version |
A new version of a product's file (Directive 2019/770: buyers are told of updates). |
DownloadsGranted |
Digital | int $orderId |
An order's downloads are ready: the buyer gets their links. |
GiftCardsIssued |
Digital | int $orderId |
An order's gift cards were issued: the buyer gets their codes. |
ShipmentBooked |
Fulfilment | int $shipmentId, int $orderId, string $driver, Money $cost, CarbonImmutable $bookedAt |
An AWB was booked: what the courier said it costs, when it does (null otherwise). |
ShipmentCancelled |
Fulfilment | int $shipmentId, int $orderId, CarbonImmutable $cancelledAt |
An AWB was cancelled before the courier took it: it is not charged. |
StockLow |
Inventory | int $variantId, int $locationId, int $available, int $threshold |
What can be sold of a variant in one location fell to its low-stock threshold or under it. |
LicencesIssued |
Licensing | int $orderId |
An order's licence keys were issued: the buyer gets them. |
SubscriberChanged |
Marketing | int $subscriberId, string $email |
An address was confirmed or unsubscribed (or erased: email is then the address to remove at the newsletter services). |
SubscriptionRequested |
Marketing | int $subscriberId |
Someone asked for the newsletter with an address not yet proven: the storefront sends the confirmation link. |
OrderApprovalDecided |
Orders | int $orderId, bool $approved |
A company's administrator approved or rejected an order waiting for them; the buyer is told. |
OrderPaymentCollected |
Orders | int $orderId |
The money of an order that does not move to Paid (bought on terms) came in: what waited for it can go out. |
OrderPlaced |
Orders | int $orderId |
An order was placed (PLAN › Module rules 2): e-mails, analytics and the like listen, on the queue. Dispatched once the outermost transaction commits, so a checkout that rolls back never announces an order. |
OrderStatusChanged |
Orders | int $orderId, OrderStatus $from, OrderStatus $to |
— |
ReturnRequested |
Orders | int $returnId |
A buyer withdrew (or asked to return): the acknowledgement goes out. |
ReturnStatusChanged |
Orders | int $returnId, ReturnStatus $to |
The shop moved a return on: accepted, rejected, received, refunded. |
StoreReservationMade |
Stores | int $reservationId |
A shopper reserved products in a store: the confirmation goes out. |
RenewalFailed |
Subscriptions | int $subscriptionId, int $orderId |
A renewal could not be paid (or placed); it is retried, the buyer is asked to pay. Ids only: listeners read what they may see. |
SubscriptionEnded |
Subscriptions | int $subscriptionId, int $orderId |
A subscription is over: cancelled, or stopped after the last failed attempt. Ids only: listeners read what they may see. |
SubscriptionRenewed |
Subscriptions | int $subscriptionId, int $orderId |
A renewal was paid: the subscription runs another period. Ids only: listeners read what they may see. |
SubscriptionStarted |
Subscriptions | int $subscriptionId, int $orderId |
A subscription started from its first paid order. Ids only: listeners read what they may see. |
View slots
Add a view with ViewSlots::add(ViewSlot::ProductAfterPrice, 'acme-erp::slots.price'); it receives only the context listed.
| Slot | Where | Context |
|---|---|---|
layout.head |
Storefront: the end of every page's head (meta tags, a preconnect). | — |
layout.body-end |
Storefront: the end of every page's body. | — |
product.after-price |
Product page: under the price and the offers. | $productId, $variantId |
product.after-description |
Product page: after the description. | $productId, $variantId |
cart.after-summary |
Cart: at the end of the summary column. | — |
checkout.before-place |
Checkout review: above the button that places the order. | — |
order.after-summary |
Order page (after checkout and from the e-mail link): after the summary. | $orderNumber |
account.home |
Account home: after the recent orders. | $customerId |
admin.order.sidebar |
Admin order page: the end of the side column. | $orderId |
admin.product.sidebar |
Admin product page: the end of the side column. | $productId |
admin.customer.sidebar |
Admin customer page: the end of the side column. | $customerId |
admin.page-top |
Every admin page: above the content, for a notice that concerns the whole shop. | — |