@zkp2p/providers 7.8.0 → 7.8.2

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.
@@ -13,13 +13,11 @@
13
13
  "fallbackMethod": "",
14
14
  "preprocessRegex": "",
15
15
  "transactionsExtraction": {
16
- "transactionXPathListSelector": "//div[@id='account-main']//table[contains(@class,'table-list')]",
17
- "transactionXPathSelectors": {
18
- "fullName": "normalize-space(.//tr[th[normalize-space()='真实姓名']]//span[@id='username'])",
19
- "mobile": "normalize-space(.//tr[th[normalize-space()='手机']]//td//span[1])",
20
- "email": "normalize-space(.//tr[th[normalize-space()='邮箱']]//td//span[1])"
16
+ "transactionXPathSelectors": {
17
+ "fullName": "normalize-space(//div[@id='account-main']//tr[th[normalize-space()='真实姓名']]//span[@id='username'])",
18
+ "email": "normalize-space(//div[@id='account-main']//tr[th[normalize-space()='邮箱']]//td//span[1])"
19
+ }
21
20
  }
22
- }
23
21
  },
24
22
  "paramNames": [],
25
23
  "paramSelectors": [],
@@ -33,30 +31,21 @@
33
31
  "responseMatches": [
34
32
  {
35
33
  "type": "regex",
36
- "value": "\\buserName\\b\\s*:\\s*[\"'](?<fullName>[^\"']+)[\"']"
34
+ "value": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?userName\\s*:\\s*'(?<fullName>[^']+)'"
37
35
  },
38
36
  {
39
37
  "type": "regex",
40
- "value": "\\bmobile\\b\\s*:\\s*[\"'](?<mobile>[^\"']+)[\"']"
41
- },
42
- {
43
- "type": "regex",
44
- "value": "\\bemail\\b\\s*:\\s*[\"'](?<email>[^\"']+)[\"']"
38
+ "value": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?email\\s*:\\s*'(?<email>[^']+)'"
45
39
  }
46
40
  ],
47
41
  "responseRedactions": [
48
42
  {
49
- "regex": "\\buserName\\b\\s*:\\s*[\"'][^\"']+[\"']",
50
- "jsonPath": "",
51
- "xPath": ""
52
- },
53
- {
54
- "regex": "\\bmobile\\b\\s*:\\s*[\"'][^\"']+[\"']",
43
+ "regex": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?userName\\s*:\\s*'[^']+'",
55
44
  "jsonPath": "",
56
45
  "xPath": ""
57
46
  },
58
47
  {
59
- "regex": "\\bemail\\b\\s*:\\s*[\"'][^\"']+[\"']",
48
+ "regex": "window\\.GLOBAL_NAV_DATA\\s*=\\s*\\{[\\s\\S]*?email\\s*:\\s*'[^']+'",
60
49
  "jsonPath": "",
61
50
  "xPath": ""
62
51
  }
@@ -2,42 +2,44 @@
2
2
  "actionType": "transfer_zelle",
3
3
  "proofEngine": "reclaim",
4
4
  "authLink": "https://online.citi.com/US/nga/zelle/transfer",
5
- "url": "https://online.citi.com/gcgapi/prod/public/v1/p2ppayments/pastActivityTransactions?transactionCount=20&pageId=0&tab=All",
6
- "method": "GET",
7
- "body": "",
5
+ "url": "https://online.citi.com/gcgapi/prod/public/v1/p2ppayments/activityTransactionDetails",
6
+ "method": "POST",
7
+ "body": "{\"transactionType\":[\"OUTGOING_PAYMENT\",\"SCHEDULED_PAYMENT\"],\"transactionView\":\"LIST_VIEW\",\"transactionStatus\":[\"ALL\"],\"pageOptions\":{\"pageMode\":\"SLICE\",\"page\":1,\"pageSize\":20},\"fetchBlockInfo\":false}",
8
8
  "metadata": {
9
9
  "platform": "zelle",
10
- "urlRegex": "https://online.citi.com/gcgapi/prod/public/v1/p2ppayments/pastActivityTransactions\\?transactionCount=20&pageId=0&tab=All",
11
- "method": "GET",
10
+ "metadataUrl": "https://online.citi.com/gcgapi/prod/public/v1/p2ppayments/activityTransactionDetails",
11
+ "metadataUrlMethod": "POST",
12
+ "metadataUrlBody": "{\"transactionType\":[\"OUTGOING_PAYMENT\",\"SCHEDULED_PAYMENT\"],\"transactionView\":\"LIST_VIEW\",\"transactionStatus\":[\"ALL\"],\"pageOptions\":{\"pageMode\":\"SLICE\",\"page\":1,\"pageSize\":20},\"fetchBlockInfo\":false}",
13
+ "urlRegex": "https://online.citi.com/gcgapi/prod/public/v1/p2ppayments/activityTransactionDetails",
14
+ "method": "POST",
12
15
  "fallbackUrlRegex": "",
13
16
  "fallbackMethod": "",
14
17
  "preprocessRegex": "",
15
18
  "transactionsExtraction": {
16
- "transactionJsonPathListSelector": "$.content.paymentTransactionsData",
19
+ "transactionJsonPathListSelector": "$.transactionData[0].transactions",
17
20
  "transactionJsonPathSelectors": {
18
21
  "amount": "$.amount",
19
- "paymentId": "$.paymentID",
22
+ "paymentId": "$.transactionId",
20
23
  "recipient": "$.partyToken",
21
- "date": "$.updatedTimeStamp",
22
- "currency": "$.currency"
24
+ "date": "$.initiationDate"
23
25
  }
24
26
  },
25
27
  "proofMetadataSelectors": [
26
28
  {
27
29
  "type": "jsonPath",
28
- "value": "$.content.paymentTransactionsData[{{INDEX}}].amount"
30
+ "value": "$.transactionData[0].transactions[{{INDEX}}].amount"
29
31
  },
30
32
  {
31
33
  "type": "jsonPath",
32
- "value": "$.content.paymentTransactionsData[{{INDEX}}].paymentID"
34
+ "value": "$.transactionData[0].transactions[{{INDEX}}].transactionId"
33
35
  },
34
36
  {
35
37
  "type": "jsonPath",
36
- "value": "$.content.paymentTransactionsData[{{INDEX}}].partyToken"
38
+ "value": "$.transactionData[0].transactions[{{INDEX}}].partyToken"
37
39
  },
38
40
  {
39
41
  "type": "jsonPath",
40
- "value": "$.content.paymentTransactionsData[{{INDEX}}].updatedTimeStamp"
42
+ "value": "$.transactionData[0].transactions[{{INDEX}}].initiationDate"
41
43
  }
42
44
  ]
43
45
  },
@@ -54,19 +56,19 @@
54
56
  "responseMatches": [
55
57
  {
56
58
  "type": "regex",
57
- "value": "\"paymentID\":\"(?<paymentID>[^\"]+)\""
59
+ "value": "\"transactionId\":\"(?<transactionId>[^\"]+)\""
58
60
  },
59
61
  {
60
62
  "type": "regex",
61
- "value": "\"paymentStatus\":\"(?<paymentStatus>[^\"]+)\""
63
+ "value": "\"transactionStatus\":\"(?<transactionStatus>[^\"]+)\""
62
64
  },
63
65
  {
64
66
  "type": "regex",
65
- "value": "\"updatedTimeStamp\":\"(?<updatedTimeStamp>[^\"]+)\""
67
+ "value": "\"initiationDate\":\"(?<initiationDate>[^\"]+)\""
66
68
  },
67
69
  {
68
70
  "type": "regex",
69
- "value": "\"amount\":\"(?<amount>[^\"]+)\""
71
+ "value": "\"amount\":(?<amount>[0-9\\.]+)"
70
72
  },
71
73
  {
72
74
  "type": "regex",
@@ -75,23 +77,23 @@
75
77
  ],
76
78
  "responseRedactions": [
77
79
  {
78
- "jsonPath": "$.content.paymentTransactionsData[{{INDEX}}].paymentID",
80
+ "jsonPath": "$.transactionData[0].transactions[{{INDEX}}].transactionId",
79
81
  "xPath": ""
80
82
  },
81
83
  {
82
- "jsonPath": "$.content.paymentTransactionsData[{{INDEX}}].paymentStatus",
84
+ "jsonPath": "$.transactionData[0].transactions[{{INDEX}}].transactionStatus",
83
85
  "xPath": ""
84
86
  },
85
87
  {
86
- "jsonPath": "$.content.paymentTransactionsData[{{INDEX}}].updatedTimeStamp",
88
+ "jsonPath": "$.transactionData[0].transactions[{{INDEX}}].initiationDate",
87
89
  "xPath": ""
88
90
  },
89
91
  {
90
- "jsonPath": "$.content.paymentTransactionsData[{{INDEX}}].amount",
92
+ "jsonPath": "$.transactionData[0].transactions[{{INDEX}}].amount",
91
93
  "xPath": ""
92
94
  },
93
95
  {
94
- "jsonPath": "$.content.paymentTransactionsData[{{INDEX}}].partyToken",
96
+ "jsonPath": "$.transactionData[0].transactions[{{INDEX}}].partyToken",
95
97
  "xPath": ""
96
98
  }
97
99
  ],
@@ -116,7 +118,7 @@
116
118
  },
117
119
  "useExternalAction": true,
118
120
  "external": {
119
- "actionLink": "citi://",
121
+ "actionLink": "https://www.citi.com/citi-partner/zelle/login",
120
122
  "appStoreLink": "https://apps.apple.com/us/app/citi-mobile/id301724680",
121
123
  "playStoreLink": "https://play.google.com/store/apps/details?id=com.citi.citimobile"
122
124
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zkp2p/providers",
3
- "version": "7.8.0",
3
+ "version": "7.8.2",
4
4
  "description": "Provider JSON templates for ZKP2P",
5
5
  "scripts": {
6
6
  "start": "node index.js"