Przejdź do głównej zawartości

ShippingPickupWidget

No description

type ShippingPickupWidget {
attributes: [ShippingWidgetAttribute!]!
cssUrl: String
scriptSrc: String
scriptUrl: String @deprecated
scriptVersion: String @deprecated
type: String!
}

Fields

ShippingPickupWidget.attributes ● [ShippingWidgetAttribute!]! non-null object

Attributes to place on the mount element. Empty when the widget needs none.

ShippingPickupWidget.cssUrl ● String scalar

Stylesheet the widget needs, when the carrier ships one separately from the script. Skipping it renders the map unstyled — do not derive this address yourself.

ShippingPickupWidget.scriptSrc ● String scalar

Address of the widget script — load it EXACTLY as given. It already carries whatever the carrier requires in the query string, including the public map token for carriers that authenticate the script request itself (Orlen answers 403 without it). Appending anything of your own breaks it. Null when the carrier ships no script.

ShippingPickupWidget.type ● String! non-null scalar

Which widget this is, e.g. inpost_geowidget or orlen_map. Use it to pick the right mounting code instead of branching on the carrier name.

Show deprecatedHide deprecated

ShippingPickupWidget.scriptUrl ● String deprecated scalar

DEPRECATED

Use scriptSrc, which is ready to load. Building the address yourself fails on carriers that read their token from it.

Bare script address, without the query parameters the carrier requires. Kept for storefronts written before scriptSrc existed.

ShippingPickupWidget.scriptVersion ● String deprecated scalar

DEPRECATED

Use scriptSrc, which already carries the loader version.

The carrier loader's version, when it has one. Informational: it is already part of scriptSrc, so appending it yourself produces an address the carrier rejects.

Member Of

ShippingPickupConfig object