Squarespace API and design system integration
This skill inherits all available tools. When active, it can use any tool Claude has access to.
All monetary values must use SquarespaceMoney objects:
Products must consider Squarespace's design system:
Handle POS vs online order differentiation:
if (SquarespaceOrderUtils.isPosOrder(order)) {
applyPosOrderHandling(order);
} else {
applyOnlineOrderHandling(order);
}
Sync inventory across POS and online channels:
private void syncInventoryAcrossChannels(SquarespaceProduct product) {
for (SquarespaceVariant variant : product.getVariants()) {
updatePosInventory(variant);
updateOnlineInventory(variant);
}
}
src/test/java/io/drizzl/platform/ecom/platforms/squarespace/@SpringBootTest with Squarespace-specific mockssrc/test/resources/platform/squarespace/@MockBean
private SquarespaceServiceClientFactory sqServiceClientFactory;
@MockBean
private SquarespaceOrderComposerUtils orderComposerUtils;
when(merchantConfiguration.shouldUseContextualPrices()).thenReturn(true);
order.setTaxInterpretation(SquarespaceTaxInterpretation.INCLUSIVE);
// or
order.setTaxInterpretation(SquarespaceTaxInterpretation.EXCLUSIVE);
// Test Squarespace Commerce API endpoints
String apiUrl = "https://api.squarespace.com/1.0/commerce/orders";
// Include proper authentication and currency objects