tango-api-schema 2.6.33 → 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
|
@@ -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
|
{
|
package/schema/client.model.js
CHANGED
|
@@ -682,6 +682,24 @@ const client = new mongoose.Schema(
|
|
|
682
682
|
},
|
|
683
683
|
|
|
684
684
|
},
|
|
685
|
+
// Arbitrary brand-level documents uploaded from Plans & Subscription
|
|
686
|
+
// (name + stored S3 path, PDF only). path is relative to the assets bucket.
|
|
687
|
+
additionalDocuments: [
|
|
688
|
+
{
|
|
689
|
+
documentName: {
|
|
690
|
+
type: String,
|
|
691
|
+
},
|
|
692
|
+
path: {
|
|
693
|
+
type: String,
|
|
694
|
+
},
|
|
695
|
+
expiryDate: {
|
|
696
|
+
type: Date,
|
|
697
|
+
},
|
|
698
|
+
uploadedAt: {
|
|
699
|
+
type: Date,
|
|
700
|
+
},
|
|
701
|
+
},
|
|
702
|
+
],
|
|
685
703
|
price: {
|
|
686
704
|
type: Number
|
|
687
705
|
},
|
|
@@ -729,6 +747,12 @@ const client = new mongoose.Schema(
|
|
|
729
747
|
enum: ['standard', 'step'],
|
|
730
748
|
default: 'standard',
|
|
731
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
|
+
},
|
|
732
756
|
virtualAccount: {
|
|
733
757
|
accountNo: {
|
|
734
758
|
type: String
|