rapida-partner 3.0.0 → 3.1.0

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.0.0",
3
+ "version": "3.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "index.ts",
6
6
  "files": [
@@ -56,6 +56,10 @@ interface IMarketplace {
56
56
  stockInEndpoint: string;
57
57
  stockOutEndpoint: string;
58
58
  productBaseUrl: string;
59
+ // Endpoint, na mesma base de productBaseUrl, das configurações de venda dos
60
+ // produtos (productId, price, isActive). Quando presente, o preço de venda
61
+ // vem daqui e o backend calcula o valor do pedido; sem ele, usa product.price.
62
+ productSellingSettingsEndpoint?: string;
59
63
  }
60
64
 
61
65
  interface IService {
@@ -104,7 +104,8 @@
104
104
  "productsAutocomplete": { "$ref": "form-autocomplete.ref.json" },
105
105
  "stockInEndpoint": { "type": "string" },
106
106
  "stockOutEndpoint": { "type": "string" },
107
- "productBaseUrl": { "type": "string" }
107
+ "productBaseUrl": { "type": "string" },
108
+ "productSellingSettingsEndpoint": { "type": "string" }
108
109
  },
109
110
  "required": ["paymentGateways", "productsAutocomplete", "stockInEndpoint", "stockOutEndpoint", "productBaseUrl"]
110
111
  },