@riocrypto/common-server 1.0.2406 → 1.0.2408

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.
@@ -37,6 +37,7 @@ interface QuoteAttrs {
37
37
  deferredPaymentType: DeferredPaymentType;
38
38
  twoWaySettlementType: TwoWaySettlementType;
39
39
  twoWaySettlementDateOffset?: number;
40
+ twoWaySettlementDate: Date;
40
41
  }
41
42
  interface QuoteDoc extends Document {
42
43
  userId: string;
@@ -75,6 +76,7 @@ interface QuoteDoc extends Document {
75
76
  deferredPaymentType: DeferredPaymentType;
76
77
  twoWaySettlementType: TwoWaySettlementType;
77
78
  twoWaySettlementDateOffset?: number;
79
+ twoWaySettlementDate: Date;
78
80
  }
79
81
  interface QuoteModel extends Model<QuoteDoc> {
80
82
  build(attrs: QuoteAttrs): QuoteDoc;
@@ -144,6 +144,9 @@ const buildQuote = (mongoose) => {
144
144
  twoWaySettlementDateOffset: {
145
145
  type: Number,
146
146
  },
147
+ twoWaySettlementDate: {
148
+ type: mongoose.Schema.Types.Date,
149
+ },
147
150
  }, {
148
151
  toJSON: {
149
152
  transform(doc, ret) {
@@ -65,6 +65,11 @@ interface RioSettingsAttrs {
65
65
  };
66
66
  };
67
67
  };
68
+ holidays: {
69
+ [key in Country]: {
70
+ dates: string[];
71
+ };
72
+ };
68
73
  }
69
74
  interface RioSettingsDoc extends mongoose.Document {
70
75
  platformFee: number;
@@ -130,6 +135,11 @@ interface RioSettingsDoc extends mongoose.Document {
130
135
  };
131
136
  };
132
137
  };
138
+ holidays: {
139
+ [key in Country]: {
140
+ dates: string[];
141
+ };
142
+ };
133
143
  }
134
144
  interface RioSettingsModel extends mongoose.Model<RioSettingsDoc> {
135
145
  build(attrs: RioSettingsAttrs): RioSettingsDoc;
@@ -69,6 +69,9 @@ const buildRioSettings = (mongoose) => {
69
69
  defaultTwoWaySettlementOffsetFee: {
70
70
  type: Object,
71
71
  },
72
+ holidays: {
73
+ type: Object,
74
+ },
72
75
  }, {
73
76
  toJSON: {
74
77
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2406",
3
+ "version": "1.0.2408",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2137",
31
+ "@riocrypto/common": "^1.0.2141",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",