@riocrypto/common-server 1.0.1781 → 1.0.1783

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.
@@ -116,7 +116,7 @@ class ClusterClient {
116
116
  crypto: chainedQuote.crypto,
117
117
  originCountry: chainedQuote.originCountry,
118
118
  destinationCountry: chainedQuote.destinationCountry,
119
- discount: chainedQuote,
119
+ discount: chainedQuote.discount,
120
120
  markup: chainedQuote.markup,
121
121
  noMarkups: chainedQuote.noMarkups,
122
122
  reissueAfterExpiration: chainedQuote.reissueAfterExpiration,
@@ -23,6 +23,8 @@ interface ChainedOrderAttrs {
23
23
  brokerId?: string;
24
24
  notes?: string;
25
25
  netPrice: number;
26
+ markup?: number;
27
+ discount?: number;
26
28
  }
27
29
  interface ChainedOrderDoc extends Document {
28
30
  originUserId: string;
@@ -47,6 +49,8 @@ interface ChainedOrderDoc extends Document {
47
49
  brokerId?: string;
48
50
  notes?: string;
49
51
  netPrice: number;
52
+ markup?: number;
53
+ discount?: number;
50
54
  }
51
55
  interface ChainedOrderModel extends Model<ChainedOrderDoc> {
52
56
  build(attrs: ChainedOrderAttrs): ChainedOrderDoc;
@@ -101,6 +101,12 @@ const buildChainedOrder = (mongoose) => {
101
101
  netPrice: {
102
102
  type: Number,
103
103
  },
104
+ markup: {
105
+ type: Number,
106
+ },
107
+ discount: {
108
+ type: Number,
109
+ },
104
110
  }, {
105
111
  toJSON: {
106
112
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1781",
3
+ "version": "1.0.1783",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@google-cloud/secret-manager": "^5.3.0",
27
27
  "@google-cloud/storage": "^6.9.5",
28
28
  "@hyperdx/node-opentelemetry": "^0.4.2",
29
- "@riocrypto/common": "^1.0.1579",
29
+ "@riocrypto/common": "^1.0.1582",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^1.6.0",
32
32
  "crypto-js": "^4.2.0",