@riocrypto/common-server 1.0.2514 → 1.0.2516

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.
@@ -2,7 +2,8 @@ import { CEPStatus } from "@riocrypto/common";
2
2
  import { Mongoose, Model, Document } from "mongoose";
3
3
  interface CEPAttrs {
4
4
  createdAt: Date;
5
- orderId: string;
5
+ orderId?: string;
6
+ bulkBankPayoutId?: string;
6
7
  SPEITrackingNumber: string;
7
8
  senderCLABE: string;
8
9
  receiverCLABE: string;
@@ -14,7 +15,8 @@ interface CEPAttrs {
14
15
  }
15
16
  interface CEPDoc extends Document {
16
17
  createdAt: Date;
17
- orderId: string;
18
+ orderId?: string;
19
+ bulkBankPayoutId?: string;
18
20
  SPEITrackingNumber: string;
19
21
  senderCLABE: string;
20
22
  receiverCLABE: string;
@@ -9,7 +9,9 @@ const buildCEP = (mongoose) => {
9
9
  const CEPSchema = new mongoose.Schema({
10
10
  orderId: {
11
11
  type: String,
12
- required: true,
12
+ },
13
+ bulkBankPayoutId: {
14
+ type: String,
13
15
  },
14
16
  SPEITrackingNumber: {
15
17
  type: String,
@@ -21,6 +21,17 @@ interface BulkBankPaymentAttrs {
21
21
  RFC?: string;
22
22
  CCI?: string;
23
23
  status: BulkBankPaymentStatus;
24
+ paymentsReceived?: {
25
+ amount: number;
26
+ SPEITrackingNumber?: string;
27
+ SPIDTrackingNumber?: string;
28
+ CEPLink?: string;
29
+ accountHolderName?: string;
30
+ accountNumber?: string;
31
+ CCI?: string;
32
+ CLABE?: string;
33
+ receivedAt: Date;
34
+ }[];
24
35
  }
25
36
  interface BulkBankPaymentDoc extends Document {
26
37
  createdAt: Date;
@@ -42,6 +53,17 @@ interface BulkBankPaymentDoc extends Document {
42
53
  RFC?: string;
43
54
  CCI?: string;
44
55
  status: BulkBankPaymentStatus;
56
+ paymentsReceived?: {
57
+ amount: number;
58
+ SPEITrackingNumber?: string;
59
+ SPIDTrackingNumber?: string;
60
+ CEPLink?: string;
61
+ accountHolderName?: string;
62
+ accountNumber?: string;
63
+ CCI?: string;
64
+ CLABE?: string;
65
+ receivedAt: Date;
66
+ }[];
45
67
  }
46
68
  interface BulkBankPaymentModel extends Model<BulkBankPaymentDoc> {
47
69
  build(attrs: BulkBankPaymentAttrs): BulkBankPaymentDoc;
@@ -67,6 +67,11 @@ const buildBulkBankPayment = (mongoose) => {
67
67
  CCI: {
68
68
  type: String,
69
69
  },
70
+ paymentsReceived: [
71
+ {
72
+ type: Object,
73
+ },
74
+ ],
70
75
  }, {
71
76
  toJSON: {
72
77
  transform(doc, ret) {
@@ -12,6 +12,12 @@ interface BulkCryptoPaymentAttrs {
12
12
  orderIdsPaid?: string[];
13
13
  depositAddress?: string;
14
14
  status: BulkCryptoPaymentStatus;
15
+ paymentsReceived?: {
16
+ amount: number;
17
+ blockchainTxId?: string;
18
+ blockchainAddress?: string;
19
+ receivedAt: Date;
20
+ }[];
15
21
  }
16
22
  interface BulkCryptoPaymentDoc extends Document {
17
23
  createdAt: Date;
@@ -25,6 +31,12 @@ interface BulkCryptoPaymentDoc extends Document {
25
31
  orderIdsPaid?: string[];
26
32
  depositAddress?: string;
27
33
  status: BulkCryptoPaymentStatus;
34
+ paymentsReceived?: {
35
+ amount: number;
36
+ blockchainTxId?: string;
37
+ blockchainAddress?: string;
38
+ receivedAt: Date;
39
+ }[];
28
40
  }
29
41
  interface BulkCryptoPaymentModel extends Model<BulkCryptoPaymentDoc> {
30
42
  build(attrs: BulkCryptoPaymentAttrs): BulkCryptoPaymentDoc;
@@ -47,6 +47,11 @@ const buildBulkCryptoPayment = (mongoose) => {
47
47
  type: String,
48
48
  required: true,
49
49
  },
50
+ paymentsReceived: [
51
+ {
52
+ type: Object,
53
+ },
54
+ ],
50
55
  }, {
51
56
  toJSON: {
52
57
  transform(doc, ret) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2514",
3
+ "version": "1.0.2516",
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.2291",
31
+ "@riocrypto/common": "^1.0.2296",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",