@zkp2p/providers 5.0.0 → 6.0.0
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.
- package/alipay/transfer_alipay.json +87 -0
- package/package.json +1 -1
- package/providers.json +2 -1
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actionType": "transfer_alipay",
|
|
3
|
+
"proofEngine": "reclaim",
|
|
4
|
+
"authLink": "https://consumeprod.alipay.com/record/standard.htm",
|
|
5
|
+
"url": "https://shenghuo.alipay.com/send/queryTransferDetail.htm?tradeNo={{TRADE_NO}}",
|
|
6
|
+
"method": "GET",
|
|
7
|
+
"body": "",
|
|
8
|
+
"metadata": {
|
|
9
|
+
"platform": "alipay",
|
|
10
|
+
"urlRegex": "https://consumeprod.alipay.com/record/standard.htm",
|
|
11
|
+
"method": "GET",
|
|
12
|
+
"fallbackUrlRegex": "",
|
|
13
|
+
"fallbackMethod": "",
|
|
14
|
+
"preprocessRegex": "",
|
|
15
|
+
"transactionsExtraction": {
|
|
16
|
+
"transactionXPathListSelector": "//table[@id='tradeRecordsIndex']//tbody/tr[contains(@class,'J-item') and .//li[contains(@data-link,'send/queryTransferDetail.htm')]]",
|
|
17
|
+
"transactionXPathSelectors": {
|
|
18
|
+
"amount": "normalize-space(.//td[contains(@class,'amount')]/span[contains(@class,'amount')])",
|
|
19
|
+
"paymentId": "normalize-space(.//a[contains(@class,'J-tradeNo')]/@data-clipboard-text)",
|
|
20
|
+
"recipient": "normalize-space(substring-before(.//td[@class='name']/p[contains(@class,'name')][1], '|'))",
|
|
21
|
+
"date": "normalize-space(concat(.//td[@class='time']/p[1], ' ', .//td[@class='time']/p[2]))"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"proofMetadataSelectors": [
|
|
25
|
+
{
|
|
26
|
+
"type": "regex",
|
|
27
|
+
"value": "交易号\\s+(\\d{16,})"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"paramNames": [
|
|
32
|
+
"TRADE_NO"
|
|
33
|
+
],
|
|
34
|
+
"paramSelectors": [
|
|
35
|
+
{
|
|
36
|
+
"type": "xPath",
|
|
37
|
+
"value": "normalize-space((//table[@id='tradeRecordsIndex']//tbody/tr[contains(@class,'J-item') and .//li[contains(@data-link,'send/queryTransferDetail.htm')]]//a[contains(@class,'J-tradeNo')]/@data-clipboard-text)[{{INDEX}} + 1])"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"skipRequestHeaders": [
|
|
41
|
+
"Cookie",
|
|
42
|
+
"Accept-Encoding"
|
|
43
|
+
],
|
|
44
|
+
"secretHeaders": [
|
|
45
|
+
"Cookie"
|
|
46
|
+
],
|
|
47
|
+
"responseMatches": [
|
|
48
|
+
{
|
|
49
|
+
"type": "regex",
|
|
50
|
+
"value": "<span class=\"J-emoji\"[^>]*data-emoji=\"(?<recipientIdName>[^\"]+)\"><\\/span>\\r\\n\\s*\\t\\t(?<recipientId>[^\\r\\n]+)"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "regex",
|
|
54
|
+
"value": "<td\\s+class=\"postalfee\">\\s*(?<postalFee>[^<]+)<\\/td>"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"type": "regex",
|
|
58
|
+
"value": "<td\\s+class=\"amount\">\\s*=?(?<totalAmount>[^<]+)<\\/td>"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "regex",
|
|
62
|
+
"value": "<td\\s+class=\"time\"[^>]*>\\s*(?<dateCompleted>[^\\r\\n]+)"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"responseRedactions": [
|
|
66
|
+
{
|
|
67
|
+
"regex": "<th>¶Ô·½ÐÅÏ¢£º<\\/th>(.*?)<\\/tr>",
|
|
68
|
+
"jsonPath": "",
|
|
69
|
+
"xPath": ""
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"regex": "<td\\s+class=\"postalfee\">[\\s\\S]*?<\\/td>",
|
|
73
|
+
"jsonPath": "",
|
|
74
|
+
"xPath": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"regex": "<td\\s+class=\"amount\">[\\s\\S]*?<\\/td>",
|
|
78
|
+
"jsonPath": "",
|
|
79
|
+
"xPath": ""
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"regex": "<th class=\"time\">(.*?)<\\/th>[\\s\\S]*?<td\\s+class=\"time\">[\\s\\S]*?<\\/td>",
|
|
83
|
+
"jsonPath": "",
|
|
84
|
+
"xPath": ""
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
package/package.json
CHANGED
package/providers.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
{ "id": "usbank", "files": ["usbank/transfer_zelle.json"] },
|
|
15
15
|
{ "id": "venmo", "files": ["venmo/transfer_venmo.json"] },
|
|
16
16
|
{ "id": "wise", "files": ["wise/transfer_wise.json"] },
|
|
17
|
-
{ "id": "n26", "files": ["n26/transfer_n26.json"] }
|
|
17
|
+
{ "id": "n26", "files": ["n26/transfer_n26.json"] },
|
|
18
|
+
{ "id": "alipay", "files": ["alipay/transfer_alipay.json"] }
|
|
18
19
|
]
|
|
19
20
|
}
|