rapida-partner 3.5.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapida-partner",
3
- "version": "3.5.0",
3
+ "version": "3.6.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "index.ts",
6
6
  "files": [
@@ -28,12 +28,32 @@ export interface IPublicContract {
28
28
  * contra chamadas servidor-a-servidor (use `access: "trustedCallers"` para isso).
29
29
  */
30
30
  allowedOrigins?: string[];
31
+ /**
32
+ * Somas agrupadas por um campo, calculadas no banco e expostas com o mesmo
33
+ * `access` do contrato em `GET <endpoint>/aggregations/<id>` (aceita o mesmo
34
+ * `filters` da listagem e respeita o workspace). Ex.: saldo de estoque por
35
+ * produto sem varrer todas as movimentações.
36
+ */
37
+ aggregations?: IContractAggregation[];
31
38
  request?: IContractRequest;
32
39
  conditions?: IFormCondition;
33
40
  businessRules?: IBusinessRule[];
34
41
  userStory?: string;
35
42
  }
36
43
 
44
+ /**
45
+ * Agregação de um contrato público. A resposta é uma lista de
46
+ * `{ _id: <valor de groupBy>, <campo de sum>: <total> }`.
47
+ */
48
+ export interface IContractAggregation {
49
+ // Último segmento da rota: GET <endpoint>/aggregations/<id>.
50
+ id: string;
51
+ // Campo pelo qual os registros são agrupados (ex.: "productId").
52
+ groupBy: string;
53
+ // Campos numéricos somados em cada grupo (ex.: ["inputQuantity"]).
54
+ sum: string[];
55
+ }
56
+
37
57
  export interface IContractRequest {
38
58
  entity: string,
39
59
  relatedEntity?: {
@@ -75,6 +75,40 @@ interface IMarketplace {
75
75
  // Campos fixos da saída de estoque gravada no vendedor a cada venda aprovada
76
76
  // (ex.: stockOutType, hasSerialNumber, responsibleId da pessoa padrão).
77
77
  stockOutDefaults?: Record<string, string | number | boolean>;
78
+ // Saldo já somado no vendedor: agregações (IPublicContract.aggregations) das
79
+ // entradas e das saídas de estoque agrupadas por productId, somando
80
+ // inputQuantity e outputQuantity. Com os dois, a loja deixa de ler todas as
81
+ // movimentações (ex.: "/stock-ins/aggregations/balance").
82
+ stockInAggregateEndpoint?: string;
83
+ stockOutAggregateEndpoint?: string;
84
+ // Pedidos enviados ao vendedor (módulo pronto getStoreOrdersModule, contrato
85
+ // público com access "trustedCallers"). A loja cria o pedido aprovado e lê
86
+ // dali o andamento da entrega (em separação, enviado, entregue, rastreio).
87
+ storeOrdersEndpoint?: string;
88
+ // Categorias e marcas do vendedor, para menu, filtros e navegação da vitrine.
89
+ categoriesEndpoint?: string;
90
+ brandsEndpoint?: string;
91
+ // Em que campo do produto do vendedor está cada informação usada pela
92
+ // vitrine. O gerador tem um padrão para cada campo omitido.
93
+ productFieldMap?: IMarketplaceProductFieldMap;
94
+ }
95
+
96
+ export interface IMarketplaceProductFieldMap {
97
+ // Referência à categoria (padrão "categoryId").
98
+ category?: string;
99
+ // Referência à marca (padrão "brandId").
100
+ brand?: string;
101
+ // Lista de tags (padrão "productsTags").
102
+ tags?: string;
103
+ // Modelo (padrão "productModel").
104
+ model?: string;
105
+ // Peso e medidas, usados por cotação de frete por transportadora.
106
+ weight?: string;
107
+ height?: string;
108
+ width?: string;
109
+ length?: string;
110
+ // Lista de propriedades da ficha técnica (padrão "othersProperties").
111
+ properties?: string;
78
112
  }
79
113
 
80
114
  export interface ISellerServiceAuth {
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Andamento da entrega de um pedido no vendedor. O pagamento continua sendo da
3
+ * loja; separação, envio e rastreio são do vendedor (módulo pronto
4
+ * getStoreOrdersModule).
5
+ */
6
+ export type TStoreOrderFulfillmentStatus = "received" | "preparing" | "shipped" | "delivered" | "cancelled";
7
+
8
+ export interface IStoreOrderItem {
9
+ productId: string;
10
+ name: string;
11
+ quantity: number;
12
+ unitPrice: number;
13
+ }
14
+
15
+ /**
16
+ * Pedido aprovado que a loja envia ao vendedor por IMarketplace.storeOrdersEndpoint.
17
+ * Os campos são os nomes do form do módulo pronto.
18
+ */
19
+ export interface IStoreOrder {
20
+ // Id do pedido na loja; um pedido por storeOrderId.
21
+ storeOrderId: string;
22
+ storeName?: string;
23
+ customerName?: string;
24
+ customerEmail?: string;
25
+ items: IStoreOrderItem[];
26
+ // Endereço de entrega, em campos próprios (os forms não aninham objetos).
27
+ addressZipCode?: string;
28
+ addressStreet?: string;
29
+ addressNumber?: string;
30
+ addressComplement?: string;
31
+ addressDistrict?: string;
32
+ addressCity?: string;
33
+ addressState?: string;
34
+ addressCountry?: string;
35
+ subtotal: number;
36
+ discount: number;
37
+ shipping: number;
38
+ total: number;
39
+ currency: string;
40
+ status: TStoreOrderFulfillmentStatus;
41
+ trackingCode?: string;
42
+ trackingUrl?: string;
43
+ notes?: string;
44
+ }
@@ -10,7 +10,8 @@ export type TStoreFeature =
10
10
  | "cashDiscount"
11
11
  | "installments"
12
12
  | "favorites"
13
- | "blog";
13
+ | "blog"
14
+ | "shipping";
14
15
 
15
16
  export type TStoreFeatureToggle = `${TStoreFeature}Enabled`;
16
17
 
@@ -65,6 +66,24 @@ export interface IStoreSettings extends Partial<Record<TStoreFeatureToggle, bool
65
66
  // Só têm efeito com as funcionalidades "cashDiscount" e "installments".
66
67
  cashDiscountPercent?: number;
67
68
  maxInstallments?: number;
69
+
70
+ // Só têm efeito com a funcionalidade "shipping". CEP de onde os pedidos
71
+ // saem (somente dígitos), frete grátis a partir de um valor e a tabela de
72
+ // faixas de CEP com valor e prazo. CEP fora de toda faixa não é atendido.
73
+ originZipCode?: string;
74
+ freeShippingAbove?: number;
75
+ shippingRanges?: IStoreShippingRange[];
76
+ }
77
+
78
+ /** Faixa de CEP (inclusiva, somente dígitos) com valor e prazo do frete. */
79
+ export interface IStoreShippingRange {
80
+ // Nome da faixa mostrado ao cliente (ex.: "Capital", "Nordeste").
81
+ label?: string;
82
+ zipCodeStart: string;
83
+ zipCodeEnd: string;
84
+ price: number;
85
+ // Prazo de entrega em dias úteis.
86
+ deliveryDays: number;
68
87
  }
69
88
 
70
89
  /**
@@ -0,0 +1,82 @@
1
+ import { EDataType } from "../../enums/form.enum";
2
+ import type { IFormElement } from "../../interfaces/form.interface";
3
+ import type { TStoreOrderFulfillmentStatus } from "../../interfaces/store-order.interface";
4
+ import { tr } from "../store-settings/translations";
5
+
6
+ type TLabel = ReturnType<typeof tr>;
7
+
8
+ const text = (name: string, label: TLabel, extra: Partial<{ isRequired: boolean; isDisabled: boolean }> = {}): IFormElement => ({
9
+ type: "input",
10
+ name,
11
+ dataType: EDataType.TEXT,
12
+ label,
13
+ ...extra,
14
+ });
15
+
16
+ const money = (name: string, label: TLabel): IFormElement => ({
17
+ type: "input",
18
+ name,
19
+ dataType: EDataType.CURRENCY,
20
+ label,
21
+ isDisabled: true,
22
+ });
23
+
24
+ export const STORE_ORDER_STATUS_LABELS: Record<TStoreOrderFulfillmentStatus, TLabel> = {
25
+ received: tr("Recebido", "Received", "Recibido"),
26
+ preparing: tr("Em separação", "Preparing", "En preparación"),
27
+ shipped: tr("Enviado", "Shipped", "Enviado"),
28
+ delivered: tr("Entregue", "Delivered", "Entregado"),
29
+ cancelled: tr("Cancelado", "Cancelled", "Cancelado"),
30
+ };
31
+
32
+ export const fulfillmentElements: IFormElement[] = [
33
+ {
34
+ type: "select",
35
+ name: "status",
36
+ dataType: EDataType.TEXT,
37
+ label: tr("Andamento", "Status", "Estado"),
38
+ isRequired: true,
39
+ options: (Object.keys(STORE_ORDER_STATUS_LABELS) as TStoreOrderFulfillmentStatus[]).map((status) => ({
40
+ label: STORE_ORDER_STATUS_LABELS[status],
41
+ value: status,
42
+ isSelected: status === "received",
43
+ })),
44
+ },
45
+ text("trackingCode", tr("Código de rastreio", "Tracking code", "Código de seguimiento")),
46
+ text("trackingUrl", tr("Link de rastreio", "Tracking link", "Enlace de seguimiento")),
47
+ text("notes", tr("Observações", "Notes", "Observaciones")),
48
+ ];
49
+
50
+ export const orderElements: IFormElement[] = [
51
+ text("storeOrderId", tr("Pedido na loja", "Store order", "Pedido en la tienda"), { isRequired: true, isDisabled: true }),
52
+ text("storeName", tr("Loja", "Store", "Tienda"), { isDisabled: true }),
53
+ text("customerName", tr("Cliente", "Customer", "Cliente"), { isDisabled: true }),
54
+ text("customerEmail", tr("E-mail do cliente", "Customer e-mail", "Correo del cliente"), { isDisabled: true }),
55
+ {
56
+ type: "array",
57
+ name: "items",
58
+ label: tr("Itens", "Items", "Artículos"),
59
+ elements: [
60
+ text("productId", tr("Produto (id)", "Product (id)", "Producto (id)"), { isRequired: true, isDisabled: true }),
61
+ text("name", tr("Produto", "Product", "Producto"), { isRequired: true, isDisabled: true }),
62
+ { type: "input", name: "quantity", dataType: EDataType.INTEGER, label: tr("Quantidade", "Quantity", "Cantidad"), isRequired: true, isDisabled: true },
63
+ money("unitPrice", tr("Preço unitário", "Unit price", "Precio unitario")),
64
+ ],
65
+ },
66
+ money("subtotal", tr("Subtotal", "Subtotal", "Subtotal")),
67
+ money("discount", tr("Desconto", "Discount", "Descuento")),
68
+ money("shipping", tr("Frete", "Shipping", "Envío")),
69
+ money("total", tr("Total", "Total", "Total")),
70
+ text("currency", tr("Moeda", "Currency", "Moneda"), { isDisabled: true }),
71
+ ];
72
+
73
+ export const addressElements: IFormElement[] = [
74
+ text("addressZipCode", tr("CEP", "ZIP code", "Código postal"), { isDisabled: true }),
75
+ text("addressStreet", tr("Logradouro", "Street", "Calle"), { isDisabled: true }),
76
+ text("addressNumber", tr("Número", "Number", "Número"), { isDisabled: true }),
77
+ text("addressComplement", tr("Complemento", "Complement", "Complemento"), { isDisabled: true }),
78
+ text("addressDistrict", tr("Bairro", "District", "Barrio"), { isDisabled: true }),
79
+ text("addressCity", tr("Cidade", "City", "Ciudad"), { isDisabled: true }),
80
+ text("addressState", tr("Estado", "State", "Estado"), { isDisabled: true }),
81
+ text("addressCountry", tr("País", "Country", "País"), { isDisabled: true }),
82
+ ];
@@ -0,0 +1,108 @@
1
+ import { EDataType } from "../../enums/form.enum";
2
+ import type { IPublicContract } from "../../interfaces/form-contract.interface";
3
+ import type { IForm } from "../../interfaces/form.interface";
4
+ import type { IList } from "../../interfaces/list.interface";
5
+ import type { IModule } from "../../interfaces/project.interface";
6
+ import { tr } from "../store-settings/translations";
7
+ import { STORE_ORDER_STATUS_LABELS, addressElements, fulfillmentElements, orderElements } from "./store-order.elements";
8
+
9
+ export const STORE_ORDERS_ENDPOINT = "/store-orders";
10
+
11
+ export interface IStoreOrdersModuleOptions {
12
+ // Quem cria e lê os pedidos sem login. "trustedCallers" (padrão): só o
13
+ // backend da loja, com o token de serviço de IMarketplace.sellerServiceAuth.
14
+ publicAccess?: IPublicContract["access"];
15
+ allowedOrigins?: string[];
16
+ }
17
+
18
+ const ENTITY = "storeOrders";
19
+
20
+ // Um pedido por storeOrderId em cada workspace. Fica no contrato interno do
21
+ // form, de onde o gerador cria o índice único, e não no público: o reenvio do
22
+ // mesmo pedido pela loja é recusado em vez de duplicar.
23
+ const UNIQUE_STORE_ORDER = [{ identificator: "storeOrderIdPerWorkspace", fields: ["storeOrderId"] }];
24
+
25
+ export const getStoreOrderForm = (options: IStoreOrdersModuleOptions = {}): IForm => ({
26
+ componentType: "form",
27
+ id: "storeOrderForm",
28
+ title: tr("Pedido da loja", "Store order", "Pedido de la tienda"),
29
+ icon: "truck",
30
+ guards: "isAuthorized",
31
+ elements: [
32
+ {
33
+ type: "tab",
34
+ id: "storeOrderTabs",
35
+ tabs: [
36
+ { id: "fulfillment", title: tr("Entrega", "Fulfillment", "Entrega"), elements: fulfillmentElements },
37
+ { id: "order", title: tr("Pedido", "Order", "Pedido"), elements: orderElements },
38
+ { id: "address", title: tr("Endereço", "Address", "Dirección"), elements: addressElements },
39
+ ],
40
+ },
41
+ ],
42
+ contracts: [
43
+ {
44
+ id: ENTITY,
45
+ endpoint: STORE_ORDERS_ENDPOINT,
46
+ actions: ["get", "getById", "update"],
47
+ request: { entity: ENTITY, fields: [], uniqueConstraints: UNIQUE_STORE_ORDER },
48
+ },
49
+ ],
50
+ publicContracts: [
51
+ {
52
+ id: "storeOrdersFromStore",
53
+ endpoint: STORE_ORDERS_ENDPOINT,
54
+ actions: ["create", "get", "update"],
55
+ access: options.publicAccess ?? "trustedCallers",
56
+ ...(options.allowedOrigins ? { allowedOrigins: options.allowedOrigins } : {}),
57
+ request: { entity: ENTITY, fields: [] },
58
+ },
59
+ ],
60
+ });
61
+
62
+ export const getStoreOrderList = (): IList => ({
63
+ componentType: "list",
64
+ id: "storeOrderList",
65
+ title: tr("Pedidos da loja", "Store orders", "Pedidos de la tienda"),
66
+ guards: ["isAuthorized"],
67
+ dataSource: { endpoint: STORE_ORDERS_ENDPOINT, paramType: "query", hasAuthentication: true },
68
+ listItems: [
69
+ { property: "storeOrderId", type: "title", label: tr("Pedido", "Order", "Pedido"), dataType: EDataType.TEXT },
70
+ { property: "customerName", type: "subtitle", label: tr("Cliente", "Customer", "Cliente"), dataType: EDataType.TEXT },
71
+ { property: "total", type: "description", label: tr("Total", "Total", "Total"), dataType: EDataType.CURRENCY },
72
+ { property: "status", type: "badge", label: tr("Andamento", "Status", "Estado"), dataType: EDataType.TEXT },
73
+ { property: "createdAt", label: tr("Recebido em", "Received at", "Recibido el"), dataType: EDataType.DATE, isTimestamp: true },
74
+ ],
75
+ listFilters: [
76
+ {
77
+ type: "select",
78
+ name: "status",
79
+ dataType: EDataType.TEXT,
80
+ label: tr("Andamento", "Status", "Estado"),
81
+ options: (Object.keys(STORE_ORDER_STATUS_LABELS) as (keyof typeof STORE_ORDER_STATUS_LABELS)[]).map((status) => ({
82
+ label: STORE_ORDER_STATUS_LABELS[status],
83
+ value: status,
84
+ })),
85
+ },
86
+ ],
87
+ contracts: [
88
+ {
89
+ id: ENTITY,
90
+ endpoint: STORE_ORDERS_ENDPOINT,
91
+ actions: ["get", "getById", "update"],
92
+ request: { entity: ENTITY, fields: [] },
93
+ },
94
+ ],
95
+ });
96
+
97
+ /**
98
+ * Módulo pronto "Pedidos da loja", para o Backoffice do vendedor. A loja cria
99
+ * aqui cada pedido aprovado (IStoreOrder) por IMarketplace.storeOrdersEndpoint
100
+ * (STORE_ORDERS_ENDPOINT) e lê o andamento da entrega; o vendedor atualiza
101
+ * status e rastreio.
102
+ */
103
+ export const getStoreOrdersModule = (options: IStoreOrdersModuleOptions = {}): IModule => ({
104
+ id: "storeOrdersModule",
105
+ title: tr("Pedidos da loja", "Store orders", "Pedidos de la tienda"),
106
+ icon: "truck",
107
+ components: [getStoreOrderList(), getStoreOrderForm(options)],
108
+ });
@@ -10,8 +10,38 @@ const FEATURE_LABELS: Record<TStoreFeature, ReturnType<typeof tr>> = {
10
10
  installments: tr("Anunciar parcelas sem juros", "Show interest-free installments", "Anunciar cuotas sin interés"),
11
11
  favorites: tr("Favoritos", "Favorites", "Favoritos"),
12
12
  blog: tr("Blog", "Blog", "Blog"),
13
+ shipping: tr("Cobrar frete por faixa de CEP", "Charge shipping by ZIP code range", "Cobrar envío por rango de código postal"),
13
14
  };
14
15
 
16
+ const shippingElements: IFormElement[] = [
17
+ {
18
+ type: "input",
19
+ name: "originZipCode",
20
+ dataType: EDataType.TEXT,
21
+ label: tr("CEP de origem", "Origin ZIP code", "Código postal de origen"),
22
+ tooltip: tr("Somente dígitos (ex.: 57035000)", "Digits only (e.g. 57035000)", "Solo dígitos (ej.: 57035000)"),
23
+ validators: ["onlyNumbers"],
24
+ },
25
+ {
26
+ type: "input",
27
+ name: "freeShippingAbove",
28
+ dataType: EDataType.CURRENCY,
29
+ label: tr("Frete grátis acima de", "Free shipping above", "Envío gratis a partir de"),
30
+ },
31
+ {
32
+ type: "array",
33
+ name: "shippingRanges",
34
+ label: tr("Faixas de CEP", "ZIP code ranges", "Rangos de código postal"),
35
+ elements: [
36
+ { type: "input", name: "label", dataType: EDataType.TEXT, label: tr("Nome da faixa", "Range name", "Nombre del rango") },
37
+ { type: "input", name: "zipCodeStart", dataType: EDataType.TEXT, label: tr("CEP inicial", "First ZIP code", "Código postal inicial"), isRequired: true, validators: ["onlyNumbers"] },
38
+ { type: "input", name: "zipCodeEnd", dataType: EDataType.TEXT, label: tr("CEP final", "Last ZIP code", "Código postal final"), isRequired: true, validators: ["onlyNumbers"] },
39
+ { type: "input", name: "price", dataType: EDataType.CURRENCY, label: tr("Valor do frete", "Shipping price", "Precio del envío"), isRequired: true },
40
+ { type: "input", name: "deliveryDays", dataType: EDataType.INTEGER, label: tr("Prazo (dias úteis)", "Delivery time (business days)", "Plazo (días hábiles)"), isRequired: true },
41
+ ],
42
+ },
43
+ ];
44
+
15
45
  const featureDetails = (feature: TStoreFeature): IFormElement[] => {
16
46
  if (feature === "cashDiscount") {
17
47
  return [
@@ -34,6 +64,7 @@ const featureDetails = (feature: TStoreFeature): IFormElement[] => {
34
64
  },
35
65
  ];
36
66
  }
67
+ if (feature === "shipping") return shippingElements;
37
68
  return [];
38
69
  };
39
70
 
@@ -129,6 +129,26 @@
129
129
  "stockOutDefaults": {
130
130
  "type": "object",
131
131
  "additionalProperties": { "type": ["string", "number", "boolean"] }
132
+ },
133
+ "stockInAggregateEndpoint": { "type": "string" },
134
+ "stockOutAggregateEndpoint": { "type": "string" },
135
+ "storeOrdersEndpoint": { "type": "string" },
136
+ "categoriesEndpoint": { "type": "string" },
137
+ "brandsEndpoint": { "type": "string" },
138
+ "productFieldMap": {
139
+ "type": "object",
140
+ "properties": {
141
+ "category": { "type": "string", "minLength": 1 },
142
+ "brand": { "type": "string", "minLength": 1 },
143
+ "tags": { "type": "string", "minLength": 1 },
144
+ "model": { "type": "string", "minLength": 1 },
145
+ "weight": { "type": "string", "minLength": 1 },
146
+ "height": { "type": "string", "minLength": 1 },
147
+ "width": { "type": "string", "minLength": 1 },
148
+ "length": { "type": "string", "minLength": 1 },
149
+ "properties": { "type": "string", "minLength": 1 }
150
+ },
151
+ "additionalProperties": false
132
152
  }
133
153
  },
134
154
  "required": ["paymentGateways", "productsAutocomplete", "stockInEndpoint", "stockOutEndpoint", "productBaseUrl"]
@@ -40,6 +40,37 @@
40
40
  },
41
41
  "description": "Browser origins allowed via CORS. Does not protect against server-to-server calls."
42
42
  },
43
+ "aggregations": {
44
+ "type": "array",
45
+ "description": "Grouped sums exposed at GET <endpoint>/aggregations/<id>, with the contract's access.",
46
+ "items": {
47
+ "type": "object",
48
+ "properties": {
49
+ "id": {
50
+ "type": "string",
51
+ "pattern": "^[a-zA-Z0-9-]+$"
52
+ },
53
+ "groupBy": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "sum": {
58
+ "type": "array",
59
+ "minItems": 1,
60
+ "items": {
61
+ "type": "string",
62
+ "minLength": 1
63
+ }
64
+ }
65
+ },
66
+ "required": [
67
+ "id",
68
+ "groupBy",
69
+ "sum"
70
+ ],
71
+ "additionalProperties": false
72
+ }
73
+ },
43
74
  "request": {
44
75
  "type": "object",
45
76
  "properties": {
@@ -7,7 +7,7 @@
7
7
  "type": "array",
8
8
  "items": {
9
9
  "type": "string",
10
- "enum": ["whatsappButton", "stockAvailability", "cashDiscount", "installments", "favorites", "blog"]
10
+ "enum": ["whatsappButton", "stockAvailability", "cashDiscount", "installments", "favorites", "blog", "shipping"]
11
11
  },
12
12
  "uniqueItems": true
13
13
  },
@@ -28,12 +28,30 @@
28
28
  "youtubeUrl": { "type": "string" },
29
29
  "cashDiscountPercent": { "type": "number", "minimum": 0, "maximum": 100 },
30
30
  "maxInstallments": { "type": "integer", "minimum": 0 },
31
+ "originZipCode": { "type": "string", "pattern": "^[0-9]{8}$" },
32
+ "freeShippingAbove": { "type": "number", "minimum": 0 },
33
+ "shippingRanges": {
34
+ "type": "array",
35
+ "items": {
36
+ "type": "object",
37
+ "properties": {
38
+ "label": { "type": "string" },
39
+ "zipCodeStart": { "type": "string", "pattern": "^[0-9]{8}$" },
40
+ "zipCodeEnd": { "type": "string", "pattern": "^[0-9]{8}$" },
41
+ "price": { "type": "number", "minimum": 0 },
42
+ "deliveryDays": { "type": "integer", "minimum": 0 }
43
+ },
44
+ "required": ["zipCodeStart", "zipCodeEnd", "price", "deliveryDays"],
45
+ "additionalProperties": false
46
+ }
47
+ },
31
48
  "whatsappButtonEnabled": { "type": "boolean" },
32
49
  "stockAvailabilityEnabled": { "type": "boolean" },
33
50
  "cashDiscountEnabled": { "type": "boolean" },
34
51
  "installmentsEnabled": { "type": "boolean" },
35
52
  "favoritesEnabled": { "type": "boolean" },
36
- "blogEnabled": { "type": "boolean" }
53
+ "blogEnabled": { "type": "boolean" },
54
+ "shippingEnabled": { "type": "boolean" }
37
55
  },
38
56
  "additionalProperties": false
39
57
  }