tango-api-schema 2.6.34 → 2.6.35

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": "tango-api-schema",
3
- "version": "2.6.34",
3
+ "version": "2.6.35",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -21,6 +21,15 @@ let pricingSchema = new mongoose.Schema(
21
21
  oneTimeFeePerStore:{
22
22
  type:Number,
23
23
  default:"200"
24
+ },
25
+ // Billing-group-wise pricing: when a client has billingGroupWisePricing
26
+ // enabled, each billing group has its own basepricing doc keyed by these.
27
+ // Absent (undefined) on the brand-level doc used when the toggle is off.
28
+ groupId:{
29
+ type:String
30
+ },
31
+ groupName:{
32
+ type:String
24
33
  }
25
34
  },
26
35
  {
@@ -747,6 +747,12 @@ const client = new mongoose.Schema(
747
747
  enum: ['standard', 'step'],
748
748
  default: 'standard',
749
749
  },
750
+ // When true, pricing is maintained per billing group (separate basepricing
751
+ // docs keyed by groupId) instead of one brand-level pricing set.
752
+ billingGroupWisePricing: {
753
+ type: Boolean,
754
+ default: false,
755
+ },
750
756
  virtualAccount: {
751
757
  accountNo: {
752
758
  type: String