Types
The types of @poltura/theme-sdk/store.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/store';BankAccount
The bank account shoppers pay a bank transfer into.
bankNamerequiredstringThe bank's name.
holderrequiredstringThe account holder's name.
numberrequiredstring | nullThe domestic account number, or null when only the IBAN is used.
ibanrequiredstring | nullThe IBAN, or null outside IBAN countries.
bicrequiredstring | nullThe BIC (SWIFT) code, or null.
CompanyRegistration
One labelled registration of the company behind the store, in the wording of its country.
kindrequiredCompanyRegistrationKindWhat the entry identifies, for icons or ordering.
labelrequiredstringThe label in the page language, as that country names the register.
valuerequiredstringThe registered value exactly as the merchant entered it.
CompanyRegistrationKind
What a company registration entry identifies.
type CompanyRegistrationKind = 'taxId' | 'vatId' | 'registrationNumber' | 'registryCourt' | 'other'CountryCode
An ISO 3166-1 alpha-2 country code in upper case, such as HU or DE.
type CountryCode = stringCurrencyCode
An ISO 4217 currency code in upper case, such as HUF or EUR.
type CurrencyCode = stringLegalLink
A link to one of the store's legal pages.
kindrequiredLegalLinkKindWhich legal page this is.
labelrequiredstringThe link text in the page language.
hrefrequiredstringWhere the link goes.
LegalLinkKind
Which legal page a footer or checkout link points at.
type LegalLinkKind = 'terms' | 'termsOfUse' | 'privacy' | 'imprint' | 'returns' | 'shipping' | 'cookies'Market
Where the visitor buys: their country, the countries the store sells to, the currency and tax display.
countryrequiredCountryCodeThe country checkout pre-selects: the chosen market's first.
countriesrequiredreadonly CountryCode[]Every country the store sells to, in any market.
deliveryCountriesrequiredreadonly CountryCode[]Where checkout ships from this page: the chosen market's countries, `country` first.
currencyCoderequiredCurrencyCodeThe currency prices and carts are in: the shopper's pick among `currencies`.
currenciesrequiredreadonly CurrencyCode[]Every currency this storefront offers, its default first; fewer than two means no choice.
taxIncludedrequiredbooleanWhether the market's prices include tax.
SocialLink
A link to one of the store's social profiles.
networkrequiredSocialNetworkWhich network the profile is on, for picking its icon.
urlrequiredstringThe profile URL.
labelrequiredstringThe network's brand name, for accessible link text.
SocialNetwork
A social network the store can link to.
type SocialNetwork = 'instagram' | 'facebook' | 'tiktok' | 'youtube' | 'pinterest' | 'linkedin' | 'x' | 'threads' | 'discord'Store
The store's identity: name, address on the web, contact and the company behind it.
idrequiredStoreIdThe Poltura store id.
namerequiredstringThe store's name as shoppers see it.
urlrequiredstringThe storefront's absolute URL, without a trailing slash.
timeZonerequiredstringThe store's IANA time zone; every store date renders in it.
contactrequiredStoreContactHow shoppers reach the store.
companyrequiredStoreCompany | nullThe company behind the store, or null when the merchant has not given it.
bankAccountrequiredBankAccount | nullThe account bank transfers go to, or null when the store takes none.
legalLinksrequiredreadonly LegalLink[]Links to the store's legal pages, in footer order.
StoreBrand
The store's logos, colours and slogan.
logorequiredMediaImageRef | nullThe logo for light backgrounds, or null to show the store name instead.
logoDarkrequiredMediaImageRef | nullThe logo for dark backgrounds, or null to reuse `logo`.
markrequiredMediaImageRef | nullThe square brand mark, used where a full logo does not fit.
colorsrequired{ readonly primary: string | null; readonly accent: string | null; }The brand colours as CSS colour strings, null where the merchant set none.
sloganrequiredstring | nullA short slogan, or null.
descriptionrequiredstring | nullA sentence or two about the store, or null.
StoreCompany
The legal entity that runs the store.
namerequiredstringThe registered company name.
addressrequiredstringThe registered address on one line.
registrationsrequiredreadonly CompanyRegistration[]The company's registrations, in the order its country lists them.
StoreContact
How shoppers reach the store's people.
emailrequiredstring | nullThe general contact address, or null when the store shows none.
phonerequiredstring | nullThe contact phone number as the merchant wrote it, or null.
supportEmailrequiredstring | nullThe address for order and support questions, or null to fall back to `email`.
StoreFeatures
Which optional storefront features the store has switched on.
customerAccountsrequiredbooleanShoppers can sign in and keep an account.
registrationrequiredbooleanShoppers can open an account themselves; otherwise only the shop opens or invites them.
stockNoticesrequiredbooleanShoppers can ask to be told when a sold-out variant is back.
chatrequiredbooleanThe store answers live chat.
reviewsrequiredbooleanProduct reviews are shown and collected.
preordersrequiredbooleanProducts can be pre-ordered.
digitalDeliveryrequiredbooleanThe store sells digital products delivered by email.
StoreId
The store's Poltura id, an opaque string that themes never parse.
type StoreId = string