@riocrypto/common-server 1.0.2516 → 1.0.2518

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.
@@ -26,10 +26,10 @@ interface BulkBankPaymentAttrs {
26
26
  SPEITrackingNumber?: string;
27
27
  SPIDTrackingNumber?: string;
28
28
  CEPLink?: string;
29
- accountHolderName?: string;
30
- accountNumber?: string;
31
- CCI?: string;
32
- CLABE?: string;
29
+ originAccountHolderName?: string;
30
+ originAccountNumber?: string;
31
+ originCCI?: string;
32
+ originCLABE?: string;
33
33
  receivedAt: Date;
34
34
  }[];
35
35
  }
@@ -58,10 +58,10 @@ interface BulkBankPaymentDoc extends Document {
58
58
  SPEITrackingNumber?: string;
59
59
  SPIDTrackingNumber?: string;
60
60
  CEPLink?: string;
61
- accountHolderName?: string;
62
- accountNumber?: string;
63
- CCI?: string;
64
- CLABE?: string;
61
+ originAccountHolderName?: string;
62
+ originAccountNumber?: string;
63
+ originCCI?: string;
64
+ originCLABE?: string;
65
65
  receivedAt: Date;
66
66
  }[];
67
67
  }
@@ -23,10 +23,6 @@ interface BulkBankPayoutAttrs {
23
23
  SPIDTrackingNumber?: string;
24
24
  CEPLink?: string;
25
25
  reference?: string;
26
- accountHolderName?: string;
27
- accountNumber?: string;
28
- CCI?: string;
29
- CLABE?: string;
30
26
  sentAt: Date;
31
27
  }[];
32
28
  }
@@ -54,10 +50,6 @@ interface BulkBankPayoutDoc extends Document {
54
50
  SPIDTrackingNumber?: string;
55
51
  CEPLink?: string;
56
52
  reference?: string;
57
- accountHolderName?: string;
58
- accountNumber?: string;
59
- CCI?: string;
60
- CLABE?: string;
61
53
  sentAt: Date;
62
54
  }[];
63
55
  }
@@ -15,7 +15,7 @@ interface BulkCryptoPaymentAttrs {
15
15
  paymentsReceived?: {
16
16
  amount: number;
17
17
  blockchainTxId?: string;
18
- blockchainAddress?: string;
18
+ originBlockchainAddress?: string;
19
19
  receivedAt: Date;
20
20
  }[];
21
21
  }
@@ -34,7 +34,7 @@ interface BulkCryptoPaymentDoc extends Document {
34
34
  paymentsReceived?: {
35
35
  amount: number;
36
36
  blockchainTxId?: string;
37
- blockchainAddress?: string;
37
+ originBlockchainAddress?: string;
38
38
  receivedAt: Date;
39
39
  }[];
40
40
  }
@@ -15,7 +15,6 @@ interface BulkCryptoPayoutAttrs {
15
15
  payoutsSent?: {
16
16
  amount: number;
17
17
  blockchainTxId?: string;
18
- blockchainAddress?: string;
19
18
  sentAt: Date;
20
19
  }[];
21
20
  }
@@ -35,7 +34,6 @@ interface BulkCryptoPayoutDoc extends Document {
35
34
  payoutsSent?: {
36
35
  amount: number;
37
36
  blockchainTxId?: string;
38
- blockchainAddress?: string;
39
37
  sentAt: Date;
40
38
  }[];
41
39
  }
@@ -1,10 +1,11 @@
1
- import { Fiat, Crypto, DeferredPaymentType, TWAPSettlementStatus, Side } from "@riocrypto/common";
1
+ import { Fiat, Crypto, DeferredPaymentType, TWAPSettlementStatus, Side, Country } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface TWAPSettlementAttrs {
4
4
  createdAt: Date;
5
5
  side: Side;
6
6
  userId: string;
7
7
  status: TWAPSettlementStatus;
8
+ country: Country;
8
9
  TWAPSessionId: string;
9
10
  deferredPaymentType: DeferredPaymentType;
10
11
  paymentAmount: number;
@@ -25,6 +26,7 @@ interface TWAPSettlementDoc extends Document {
25
26
  side: Side;
26
27
  userId: string;
27
28
  status: TWAPSettlementStatus;
29
+ country: Country;
28
30
  TWAPSessionId: string;
29
31
  deferredPaymentType: DeferredPaymentType;
30
32
  paymentAmount: number;
@@ -18,6 +18,10 @@ const buildTWAPSettlement = (mongoose) => {
18
18
  type: String,
19
19
  required: true,
20
20
  },
21
+ country: {
22
+ type: String,
23
+ required: true,
24
+ },
21
25
  status: {
22
26
  type: String,
23
27
  required: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2516",
3
+ "version": "1.0.2518",
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.2296",
31
+ "@riocrypto/common": "^1.0.2300",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",