picker-db 4.8.0 → 4.10.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.
@@ -902,9 +902,15 @@ module.exports = (connection) => {
902
902
  PNF_REASON.PROVIDER_ERROR,
903
903
  ],
904
904
  },
905
+ deliveryAddressExists: {
906
+ type: Boolean,
907
+ },
905
908
  deliveryAddressRequired: {
906
909
  type: Boolean,
907
910
  },
911
+ paymentInfoExists: {
912
+ type: Boolean,
913
+ },
908
914
  paymentInfoRequired: {
909
915
  type: Boolean,
910
916
  },
@@ -917,6 +923,19 @@ module.exports = (connection) => {
917
923
  index: true,
918
924
  sparse: true,
919
925
  },
926
+ metadata: {
927
+ type: {
928
+ referenceRecommendation: {
929
+ reference: { type: String, required: false },
930
+ residential: { type: String, required: false },
931
+ apartment: { type: String, required: false },
932
+ instruction: { type: String, required: false },
933
+ },
934
+ attributes: { type: [{ type: String }], required: false },
935
+ },
936
+ default: {},
937
+ required: false,
938
+ },
920
939
  }, { timestamps: true });
921
940
 
922
941
  BookingSchema.pre("save", async function (next) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "4.8.0",
3
+ "version": "4.10.0",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {