@smartico/public-api 0.0.345 → 0.0.346

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.
@@ -238,3 +238,11 @@ ___
238
238
  • `Optional` **custom\_section\_type\_id**: `number`
239
239
 
240
240
  ID of specific Custom Section type
241
+
242
+ ___
243
+
244
+ ### cant\_buy\_message
245
+
246
+ • `Optional` **cant\_buy\_message**: `string`
247
+
248
+ The message that should be shown to the user if they are not eligible to buy it. This message can be used to explain the reason why user cannot buy the item, e.g. 'You should be VIP to buy this item'.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.345",
3
+ "version": "0.0.346",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -56,6 +56,7 @@ export const StoreItemTransform = (items: StoreItem[]): TStoreItem[] => {
56
56
  custom_section_id: r.itemPublicMeta.custom_section_id,
57
57
  only_in_custom_section: r.itemPublicMeta.only_in_custom_section,
58
58
  custom_section_type_id: r.itemPublicMeta.custom_section_type_id,
59
+ ...(r.itemPublicMeta.cant_buy_message ? { cant_buy_message: r.itemPublicMeta.cant_buy_message } : {}),
59
60
  };
60
61
  return x;
61
62
  });
@@ -558,6 +558,8 @@ export interface TStoreItem {
558
558
  only_in_custom_section?: boolean;
559
559
  /** ID of specific Custom Section type */
560
560
  custom_section_type_id?: number;
561
+ /** The message that should be shown to the user if they are not eligible to buy it. This message can be used to explain the reason why user cannot buy the item, e.g. 'You should be VIP to buy this item'. */
562
+ cant_buy_message?: string;
561
563
  }
562
564
 
563
565
  /**