Pular para o conteúdo principal

Store, Device & Config

store: Store

Information about the current store, such as its domain, currency, and language.

PropertyTypeAlways presentDescription
idnumberYesUnique identifier for the store.
namestringYesName of the store.
domainstringYesDomain name associated with the store.
currencystringYesCurrency code (e.g. "USD", "EUR").
language"es" or "pt" or "en"YesLanguage code of the store.

For the exact TypeScript definition, use Store from @tiendanube/nube-sdk-types.

device: Device

Information about the device being used to access the application, including screen dimensions and device type.

PropertyTypeAlways presentDescription
screenDeviceScreenYesScreen dimensions, orientation, pixel ratio.
type"mobile" or "desktop"YesThe type of device.

DeviceScreen (device.screen):

PropertyTypeAlways presentDescription
widthnumberYesWidth of the screen in pixels.
heightnumberYesHeight of the screen in pixels.
orientation"portrait" or "landscape"YesOrientation of the screen.
pixelRationumberYesPixel ratio of the screen.
innerWidthnumberYesWidth of the inner window in pixels.
innerHeightnumberYesHeight of the inner window in pixels.

For the exact TypeScript definitions, use the types from @tiendanube/nube-sdk-types (e.g. Device, DeviceScreen).

config: AppConfig

Application-wide configuration settings, including cart validation rules.

PropertyTypeAlways presentDescription
has_cart_validationbooleanYesDetermines whether cart validation is enabled.
disable_shipping_more_optionsbooleanYesDetermines whether the user can select a shipping option.

For the exact TypeScript definition, use AppConfig from @tiendanube/nube-sdk-types.