@unchainedshop/plugins 3.0.0-rc6 → 3.0.0-rc8
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/lib/events/node-event-emitter.js +1 -1
- package/lib/events/node-event-emitter.js.map +1 -1
- package/lib/files/gridfs/gridfs-adapter.d.ts +7 -1
- package/lib/files/gridfs/gridfs-adapter.d.ts.map +1 -1
- package/lib/files/gridfs/gridfs-adapter.js +2 -3
- package/lib/files/gridfs/gridfs-adapter.js.map +1 -1
- package/lib/files/gridfs/gridfs-webhook.js +2 -2
- package/lib/files/gridfs/gridfs-webhook.js.map +1 -1
- package/lib/files/gridfs/index.d.ts +1 -0
- package/lib/files/gridfs/index.d.ts.map +1 -1
- package/lib/files/minio/minio-adapter.d.ts.map +1 -1
- package/lib/files/minio/minio-adapter.js +6 -23
- package/lib/files/minio/minio-adapter.js.map +1 -1
- package/lib/payment/apple-iap/adapter.js +1 -1
- package/lib/payment/apple-iap/adapter.js.map +1 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.d.ts.map +1 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.js +5 -9
- package/lib/payment/datatrans-v2/api/makeFetcher.js.map +1 -1
- package/lib/payment/payrexx/api/makeFetcher.d.ts.map +1 -1
- package/lib/payment/payrexx/api/makeFetcher.js +7 -12
- package/lib/payment/payrexx/api/makeFetcher.js.map +1 -1
- package/lib/payment/stripe/stripe.js +1 -1
- package/lib/worker/email.d.ts.map +1 -1
- package/lib/worker/email.js +17 -14
- package/lib/worker/email.js.map +1 -1
- package/package.json +19 -16
- package/src/events/node-event-emitter.ts +1 -1
- package/src/files/gridfs/gridfs-adapter.ts +14 -7
- package/src/files/gridfs/gridfs-webhook.ts +2 -2
- package/src/files/gridfs/index.ts +2 -0
- package/src/files/minio/minio-adapter.ts +7 -26
- package/src/payment/apple-iap/adapter.ts +1 -1
- package/src/payment/datatrans-v2/api/makeFetcher.ts +8 -11
- package/src/payment/payrexx/api/makeFetcher.ts +10 -13
- package/src/payment/stripe/stripe.ts +1 -1
- package/src/worker/email.ts +19 -14
- package/tests/mock/datatrans/v1/secure-fields.json +4 -0
- package/tests/mock/datatrans/v1/transactions/authorize.json +48 -0
- package/tests/mock/datatrans/v1/transactions/card_check_authorized.json +47 -0
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized/settle.json +1 -0
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized.json +48 -0
- package/tests/mock/datatrans/v1/transactions/payment_authorized/cancel.json +1 -0
- package/tests/mock/datatrans/v1/transactions/payment_authorized/settle.json +1 -0
- package/tests/mock/datatrans/v1/transactions/payment_authorized.json +48 -0
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount/cancel.json +1 -0
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount.json +48 -0
- package/tests/mock/datatrans/v1/transactions/validate.json +1 -0
- package/tests/mock/datatrans/v1/transactions.json +4 -0
- package/tests/mock/payrexx/Gateway/1000001.json +106 -0
- package/tests/mock/payrexx/Gateway.json +24 -0
- package/tests/mock/payrexx/transaction_example1.json +65 -0
- package/tests/mock/payrexx/transaction_example2.json +65 -0
- package/tests/mock/payrexx/transaction_example3.json +94 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
id: 14447084,
|
|
3
|
+
uuid: '5d729516',
|
|
4
|
+
amount: 43160,
|
|
5
|
+
referenceId: '__IGNORE_WEBHOOK__',
|
|
6
|
+
time: '2024-04-13 16:46:55',
|
|
7
|
+
status: 'confirmed',
|
|
8
|
+
lang: 'de',
|
|
9
|
+
psp: 'Native_PSP',
|
|
10
|
+
pspId: 44,
|
|
11
|
+
mode: 'TEST',
|
|
12
|
+
refundable: true,
|
|
13
|
+
partiallyRefundable: true,
|
|
14
|
+
metadata: {},
|
|
15
|
+
invoice: {
|
|
16
|
+
number: 'Unchained%20%235c5201e91f9212eecb13e71a',
|
|
17
|
+
products: [ [Object] ],
|
|
18
|
+
discount: { code: null, amount: 0, percentage: null },
|
|
19
|
+
shippingAmount: null,
|
|
20
|
+
currency: 'CHF',
|
|
21
|
+
test: 1,
|
|
22
|
+
referenceId: '0d4dcfd7467f83b2336cc5a1',
|
|
23
|
+
paymentRequestId: 15716951,
|
|
24
|
+
paymentLink: {
|
|
25
|
+
hash: '5a38a636bc27b1ef3e3bbf114dde1781',
|
|
26
|
+
referenceId: '0d4dcfd7467f83b2336cc5a1',
|
|
27
|
+
email: ''
|
|
28
|
+
},
|
|
29
|
+
googleAnalyticProducts: [ [Object] ],
|
|
30
|
+
originalAmount: 43160,
|
|
31
|
+
refundedAmount: 0,
|
|
32
|
+
custom_fields: [ [Object] ]
|
|
33
|
+
},
|
|
34
|
+
contact: {
|
|
35
|
+
id: 7656364,
|
|
36
|
+
uuid: 'd67bd714',
|
|
37
|
+
title: '',
|
|
38
|
+
firstname: '',
|
|
39
|
+
lastname: '',
|
|
40
|
+
company: '',
|
|
41
|
+
street: '',
|
|
42
|
+
zip: '',
|
|
43
|
+
place: '',
|
|
44
|
+
country: '',
|
|
45
|
+
countryISO: '',
|
|
46
|
+
phone: '',
|
|
47
|
+
email: 'kaufmae@me.com',
|
|
48
|
+
date_of_birth: '',
|
|
49
|
+
delivery_title: '',
|
|
50
|
+
delivery_firstname: '',
|
|
51
|
+
delivery_lastname: '',
|
|
52
|
+
delivery_company: '',
|
|
53
|
+
delivery_street: '',
|
|
54
|
+
delivery_zip: '',
|
|
55
|
+
delivery_place: '',
|
|
56
|
+
delivery_country: '',
|
|
57
|
+
delivery_countryISO: ''
|
|
58
|
+
},
|
|
59
|
+
subscription: null,
|
|
60
|
+
pageUuid: null,
|
|
61
|
+
payrexxFee: 0,
|
|
62
|
+
payment: { brand: 'mastercard', wallet: null },
|
|
63
|
+
preAuthorizationId: 14447083,
|
|
64
|
+
payoutUuid: null
|
|
65
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
id: 14447083,
|
|
3
|
+
uuid: 'e2e292bd',
|
|
4
|
+
amount: 43160,
|
|
5
|
+
referenceId: '0d4dcfd7467f83b2336cc5a1',
|
|
6
|
+
time: '2024-04-13 16:46:52',
|
|
7
|
+
status: 'reserved',
|
|
8
|
+
lang: 'de',
|
|
9
|
+
psp: 'Native_PSP',
|
|
10
|
+
pspId: 44,
|
|
11
|
+
mode: 'TEST',
|
|
12
|
+
refundable: false,
|
|
13
|
+
partiallyRefundable: false,
|
|
14
|
+
metadata: {},
|
|
15
|
+
invoice: {
|
|
16
|
+
number: 'Unchained%20%235c5201e91f9212eecb13e71a',
|
|
17
|
+
products: [ [Object] ],
|
|
18
|
+
discount: { code: null, amount: 0, percentage: null },
|
|
19
|
+
shippingAmount: null,
|
|
20
|
+
currency: 'CHF',
|
|
21
|
+
test: 1,
|
|
22
|
+
referenceId: '0d4dcfd7467f83b2336cc5a1',
|
|
23
|
+
paymentRequestId: 15716951,
|
|
24
|
+
paymentLink: {
|
|
25
|
+
hash: '5a38a636bc27b1ef3e3bbf114dde1781',
|
|
26
|
+
referenceId: '0d4dcfd7467f83b2336cc5a1',
|
|
27
|
+
email: ''
|
|
28
|
+
},
|
|
29
|
+
googleAnalyticProducts: [ [Object] ],
|
|
30
|
+
originalAmount: 43160,
|
|
31
|
+
refundedAmount: 0,
|
|
32
|
+
custom_fields: [ [Object] ]
|
|
33
|
+
},
|
|
34
|
+
contact: {
|
|
35
|
+
id: 7656364,
|
|
36
|
+
uuid: 'd67bd714',
|
|
37
|
+
title: '',
|
|
38
|
+
firstname: '',
|
|
39
|
+
lastname: '',
|
|
40
|
+
company: '',
|
|
41
|
+
street: '',
|
|
42
|
+
zip: '',
|
|
43
|
+
place: '',
|
|
44
|
+
country: '',
|
|
45
|
+
countryISO: '',
|
|
46
|
+
phone: '',
|
|
47
|
+
email: 'kaufmae@me.com',
|
|
48
|
+
date_of_birth: '',
|
|
49
|
+
delivery_title: '',
|
|
50
|
+
delivery_firstname: '',
|
|
51
|
+
delivery_lastname: '',
|
|
52
|
+
delivery_company: '',
|
|
53
|
+
delivery_street: '',
|
|
54
|
+
delivery_zip: '',
|
|
55
|
+
delivery_place: '',
|
|
56
|
+
delivery_country: '',
|
|
57
|
+
delivery_countryISO: ''
|
|
58
|
+
},
|
|
59
|
+
subscription: null,
|
|
60
|
+
pageUuid: null,
|
|
61
|
+
payrexxFee: 0,
|
|
62
|
+
payment: { brand: 'mastercard', wallet: null },
|
|
63
|
+
payoutUuid: null
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"transaction": {
|
|
3
|
+
"id": 14447028,
|
|
4
|
+
"psp": "Native_PSP",
|
|
5
|
+
"lang": "de",
|
|
6
|
+
"mode": "TEST",
|
|
7
|
+
"time": "2024-04-13 16:42:33",
|
|
8
|
+
"uuid": "27b4cf08",
|
|
9
|
+
"pspId": 44,
|
|
10
|
+
"amount": 21580,
|
|
11
|
+
"status": "reserved",
|
|
12
|
+
"contact": {
|
|
13
|
+
"id": 7656364,
|
|
14
|
+
"zip": "",
|
|
15
|
+
"uuid": "d67bd714",
|
|
16
|
+
"email": "kaufmae@me.com",
|
|
17
|
+
"phone": "",
|
|
18
|
+
"place": "",
|
|
19
|
+
"title": "",
|
|
20
|
+
"street": "",
|
|
21
|
+
"company": "",
|
|
22
|
+
"country": "",
|
|
23
|
+
"lastname": "",
|
|
24
|
+
"firstname": "",
|
|
25
|
+
"countryISO": "",
|
|
26
|
+
"delivery_zip": "",
|
|
27
|
+
"date_of_birth": "",
|
|
28
|
+
"delivery_place": "",
|
|
29
|
+
"delivery_title": "",
|
|
30
|
+
"delivery_street": "",
|
|
31
|
+
"delivery_company": "",
|
|
32
|
+
"delivery_country": "",
|
|
33
|
+
"delivery_lastname": "",
|
|
34
|
+
"delivery_firstname": "",
|
|
35
|
+
"delivery_countryISO": ""
|
|
36
|
+
},
|
|
37
|
+
"invoice": {
|
|
38
|
+
"test": 1,
|
|
39
|
+
"number": "Unchained%20%235c5201e91f9212eecb13e71a",
|
|
40
|
+
"currency": "CHF",
|
|
41
|
+
"discount": {
|
|
42
|
+
"code": null,
|
|
43
|
+
"amount": 0,
|
|
44
|
+
"percentage": null
|
|
45
|
+
},
|
|
46
|
+
"products": [
|
|
47
|
+
{
|
|
48
|
+
"sku": null,
|
|
49
|
+
"name": "Unchained%20%235c5201e91f9212eecb13e71a",
|
|
50
|
+
"price": 21580,
|
|
51
|
+
"vatRate": null,
|
|
52
|
+
"quantity": 1
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"paymentLink": {
|
|
56
|
+
"hash": "0bc521b98be6db1e6aad347b9527cbfb",
|
|
57
|
+
"email": "",
|
|
58
|
+
"referenceId": "0d4dcfd7467f83b2336cc5a1"
|
|
59
|
+
},
|
|
60
|
+
"referenceId": "0d4dcfd7467f83b2336cc5a1",
|
|
61
|
+
"custom_fields": [
|
|
62
|
+
{
|
|
63
|
+
"name": "E-Mail",
|
|
64
|
+
"type": "email",
|
|
65
|
+
"value": "kaufmae@me.com"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"originalAmount": 21580,
|
|
69
|
+
"refundedAmount": 0,
|
|
70
|
+
"shippingAmount": null,
|
|
71
|
+
"paymentRequestId": 15716869,
|
|
72
|
+
"googleAnalyticProducts": [
|
|
73
|
+
{
|
|
74
|
+
"price": 215.8,
|
|
75
|
+
"item_id": 19052505,
|
|
76
|
+
"quantity": 1,
|
|
77
|
+
"item_name": "Unchained%20%235c5201e91f9212eecb13e71a"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"payment": {
|
|
82
|
+
"brand": "visa",
|
|
83
|
+
"wallet": null
|
|
84
|
+
},
|
|
85
|
+
"metadata": {},
|
|
86
|
+
"pageUuid": null,
|
|
87
|
+
"payoutUuid": null,
|
|
88
|
+
"payrexxFee": 0,
|
|
89
|
+
"refundable": false,
|
|
90
|
+
"referenceId": "0d4dcfd7467f83b2336cc5a1",
|
|
91
|
+
"subscription": null,
|
|
92
|
+
"partiallyRefundable": false
|
|
93
|
+
}
|
|
94
|
+
}
|