@sohis/node-przelewy24 2.1.1

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.
Files changed (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +147 -0
  3. package/dist/enums/Channel.d.ts +18 -0
  4. package/dist/enums/Channel.d.ts.map +1 -0
  5. package/dist/enums/Channel.js +22 -0
  6. package/dist/enums/Channel.js.map +1 -0
  7. package/dist/enums/Country.d.ts +67 -0
  8. package/dist/enums/Country.d.ts.map +1 -0
  9. package/dist/enums/Country.js +71 -0
  10. package/dist/enums/Country.js.map +1 -0
  11. package/dist/enums/Currency.d.ts +36 -0
  12. package/dist/enums/Currency.d.ts.map +1 -0
  13. package/dist/enums/Currency.js +40 -0
  14. package/dist/enums/Currency.js.map +1 -0
  15. package/dist/enums/Encoding.d.ts +35 -0
  16. package/dist/enums/Encoding.d.ts.map +1 -0
  17. package/dist/enums/Encoding.js +39 -0
  18. package/dist/enums/Encoding.js.map +1 -0
  19. package/dist/enums/Language.d.ts +37 -0
  20. package/dist/enums/Language.d.ts.map +1 -0
  21. package/dist/enums/Language.js +41 -0
  22. package/dist/enums/Language.js.map +1 -0
  23. package/dist/enums/ShippingType.d.ts +13 -0
  24. package/dist/enums/ShippingType.d.ts.map +1 -0
  25. package/dist/enums/ShippingType.js +17 -0
  26. package/dist/enums/ShippingType.js.map +1 -0
  27. package/dist/enums/index.d.ts +7 -0
  28. package/dist/enums/index.d.ts.map +1 -0
  29. package/dist/enums/index.js +23 -0
  30. package/dist/enums/index.js.map +1 -0
  31. package/dist/errors/P24Error.d.ts +35 -0
  32. package/dist/errors/P24Error.d.ts.map +1 -0
  33. package/dist/errors/P24Error.js +42 -0
  34. package/dist/errors/P24Error.js.map +1 -0
  35. package/dist/errors/index.d.ts +2 -0
  36. package/dist/errors/index.d.ts.map +1 -0
  37. package/dist/errors/index.js +18 -0
  38. package/dist/errors/index.js.map +1 -0
  39. package/dist/index.d.ts +8 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +24 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/orders/Additional.d.ts +17 -0
  44. package/dist/orders/Additional.d.ts.map +1 -0
  45. package/dist/orders/Additional.js +3 -0
  46. package/dist/orders/Additional.js.map +1 -0
  47. package/dist/orders/CartItem.d.ts +58 -0
  48. package/dist/orders/CartItem.d.ts.map +1 -0
  49. package/dist/orders/CartItem.js +3 -0
  50. package/dist/orders/CartItem.js.map +1 -0
  51. package/dist/orders/Order.d.ts +211 -0
  52. package/dist/orders/Order.d.ts.map +1 -0
  53. package/dist/orders/Order.js +3 -0
  54. package/dist/orders/Order.js.map +1 -0
  55. package/dist/orders/OrderCreatedData.d.ts +10 -0
  56. package/dist/orders/OrderCreatedData.d.ts.map +1 -0
  57. package/dist/orders/OrderCreatedData.js +3 -0
  58. package/dist/orders/OrderCreatedData.js.map +1 -0
  59. package/dist/orders/Shipping.d.ts +39 -0
  60. package/dist/orders/Shipping.d.ts.map +1 -0
  61. package/dist/orders/Shipping.js +3 -0
  62. package/dist/orders/Shipping.js.map +1 -0
  63. package/dist/orders/Transaction.d.ts +23 -0
  64. package/dist/orders/Transaction.d.ts.map +1 -0
  65. package/dist/orders/Transaction.js +3 -0
  66. package/dist/orders/Transaction.js.map +1 -0
  67. package/dist/orders/TransactionBySessionIdResponse.d.ts +136 -0
  68. package/dist/orders/TransactionBySessionIdResponse.d.ts.map +1 -0
  69. package/dist/orders/TransactionBySessionIdResponse.js +3 -0
  70. package/dist/orders/TransactionBySessionIdResponse.js.map +1 -0
  71. package/dist/orders/index.d.ts +8 -0
  72. package/dist/orders/index.d.ts.map +1 -0
  73. package/dist/orders/index.js +24 -0
  74. package/dist/orders/index.js.map +1 -0
  75. package/dist/p24/BaseParameters.d.ts +46 -0
  76. package/dist/p24/BaseParameters.d.ts.map +1 -0
  77. package/dist/p24/BaseParameters.js +27 -0
  78. package/dist/p24/BaseParameters.js.map +1 -0
  79. package/dist/p24/P24.d.ts +114 -0
  80. package/dist/p24/P24.d.ts.map +1 -0
  81. package/dist/p24/P24.js +250 -0
  82. package/dist/p24/P24.js.map +1 -0
  83. package/dist/p24/P24Options.d.ts +16 -0
  84. package/dist/p24/P24Options.d.ts.map +1 -0
  85. package/dist/p24/P24Options.js +3 -0
  86. package/dist/p24/P24Options.js.map +1 -0
  87. package/dist/p24/endpoints.d.ts +9 -0
  88. package/dist/p24/endpoints.d.ts.map +1 -0
  89. package/dist/p24/endpoints.js +12 -0
  90. package/dist/p24/endpoints.js.map +1 -0
  91. package/dist/p24/index.d.ts +6 -0
  92. package/dist/p24/index.d.ts.map +1 -0
  93. package/dist/p24/index.js +22 -0
  94. package/dist/p24/index.js.map +1 -0
  95. package/dist/p24/ips.d.ts +2 -0
  96. package/dist/p24/ips.d.ts.map +1 -0
  97. package/dist/p24/ips.js +11 -0
  98. package/dist/p24/ips.js.map +1 -0
  99. package/dist/refund/Refund.d.ts +37 -0
  100. package/dist/refund/Refund.d.ts.map +1 -0
  101. package/dist/refund/Refund.js +3 -0
  102. package/dist/refund/Refund.js.map +1 -0
  103. package/dist/refund/RefundRequest.d.ts +38 -0
  104. package/dist/refund/RefundRequest.d.ts.map +1 -0
  105. package/dist/refund/RefundRequest.js +3 -0
  106. package/dist/refund/RefundRequest.js.map +1 -0
  107. package/dist/refund/RefundResult.d.ts +51 -0
  108. package/dist/refund/RefundResult.d.ts.map +1 -0
  109. package/dist/refund/RefundResult.js +3 -0
  110. package/dist/refund/RefundResult.js.map +1 -0
  111. package/dist/refund/index.d.ts +4 -0
  112. package/dist/refund/index.d.ts.map +1 -0
  113. package/dist/refund/index.js +20 -0
  114. package/dist/refund/index.js.map +1 -0
  115. package/dist/responses/ErrorResponse.d.ts +17 -0
  116. package/dist/responses/ErrorResponse.d.ts.map +1 -0
  117. package/dist/responses/ErrorResponse.js +3 -0
  118. package/dist/responses/ErrorResponse.js.map +1 -0
  119. package/dist/responses/SuccessResponse.d.ts +17 -0
  120. package/dist/responses/SuccessResponse.d.ts.map +1 -0
  121. package/dist/responses/SuccessResponse.js +3 -0
  122. package/dist/responses/SuccessResponse.js.map +1 -0
  123. package/dist/responses/index.d.ts +3 -0
  124. package/dist/responses/index.d.ts.map +1 -0
  125. package/dist/responses/index.js +19 -0
  126. package/dist/responses/index.js.map +1 -0
  127. package/dist/utils/hash.d.ts +2 -0
  128. package/dist/utils/hash.d.ts.map +1 -0
  129. package/dist/utils/hash.js +15 -0
  130. package/dist/utils/hash.js.map +1 -0
  131. package/dist/verify/NotificationRequest.d.ts +82 -0
  132. package/dist/verify/NotificationRequest.d.ts.map +1 -0
  133. package/dist/verify/NotificationRequest.js +3 -0
  134. package/dist/verify/NotificationRequest.js.map +1 -0
  135. package/dist/verify/Verification.d.ts +38 -0
  136. package/dist/verify/Verification.d.ts.map +1 -0
  137. package/dist/verify/Verification.js +3 -0
  138. package/dist/verify/Verification.js.map +1 -0
  139. package/dist/verify/VerificationData.d.ts +16 -0
  140. package/dist/verify/VerificationData.d.ts.map +1 -0
  141. package/dist/verify/VerificationData.js +3 -0
  142. package/dist/verify/VerificationData.js.map +1 -0
  143. package/dist/verify/index.d.ts +4 -0
  144. package/dist/verify/index.d.ts.map +1 -0
  145. package/dist/verify/index.js +20 -0
  146. package/dist/verify/index.js.map +1 -0
  147. package/package.json +36 -0
@@ -0,0 +1,136 @@
1
+ import { Currency } from "../enums/Currency";
2
+ /**
3
+ * Represents response of getTransactionBySessionID
4
+ *
5
+ * @export
6
+ * @interface TransactionBySessionIdResponse
7
+ */
8
+ export interface TransactionBySessionIdResponse {
9
+ /**
10
+ * Transfer title
11
+ *
12
+ * @type {string}
13
+ * @memberof TransactionBySessionIdResponse
14
+ */
15
+ statement: string;
16
+ /**
17
+ * Transaction ID
18
+ *
19
+ * @type {strinumberng}
20
+ * @memberof TransactionBySessionIdResponse
21
+ */
22
+ orderId: number;
23
+ /**
24
+ * Transaction ID assigned by Merchant
25
+ *
26
+ * @type {string}
27
+ * @memberof TransactionBySessionIdResponse
28
+ */
29
+ sessionId: string;
30
+ /**
31
+ * Transaction status. 0 - no payment, 1 - advance payment, 2 - payment made, 3 - payment returned
32
+ *
33
+ * @type {number}
34
+ * @memberof TransactionBySessionIdResponse
35
+ */
36
+ status: number;
37
+ /**
38
+ * Transaction amount
39
+ *
40
+ * @type {number}
41
+ * @memberof TransactionBySessionIdResponse
42
+ */
43
+ amount: number;
44
+ /**
45
+ * Transaction currency
46
+ *
47
+ * @type {Currency}
48
+ * @memberof TransactionBySessionIdResponse
49
+ */
50
+ currency: Currency;
51
+ /**
52
+ * Transaction registration date
53
+ *
54
+ * @type {string}
55
+ * @memberof TransactionBySessionIdResponse
56
+ */
57
+ date: string;
58
+ /**
59
+ * Date of payment
60
+ *
61
+ * @type {string}
62
+ * @memberof TransactionBySessionIdResponse
63
+ */
64
+ dateOfTransaction: string;
65
+ /**
66
+ * Customer's e-mail
67
+ *
68
+ * @type {string}
69
+ * @memberof TransactionBySessionIdResponse
70
+ */
71
+ clientEmail: string;
72
+ /**
73
+ * Customer's hashed bank account number
74
+ *
75
+ * @type {string}
76
+ * @memberof TransactionBySessionIdResponse
77
+ */
78
+ accountMD5: string;
79
+ /**
80
+ * Payment method ID
81
+ *
82
+ * @type {number}
83
+ * @memberof TransactionBySessionIdResponse
84
+ */
85
+ paymentMethod: number;
86
+ /**
87
+ * Transaction description
88
+ *
89
+ * @type {string}
90
+ * @memberof TransactionBySessionIdResponse
91
+ */
92
+ description: string;
93
+ /**
94
+ * Customer's first name and surname
95
+ *
96
+ * @type {string}
97
+ * @memberof TransactionBySessionIdResponse
98
+ */
99
+ clientName: string;
100
+ /**
101
+ * Customer's address
102
+ *
103
+ * @type {string}
104
+ * @memberof TransactionBySessionIdResponse
105
+ */
106
+ clientAddress: string;
107
+ /**
108
+ * Customer's city
109
+ *
110
+ * @type {string}
111
+ * @memberof TransactionBySessionIdResponse
112
+ */
113
+ clientCity: string;
114
+ /**
115
+ * Customer's zip code
116
+ *
117
+ * @type {string}
118
+ * @memberof TransactionBySessionIdResponse
119
+ */
120
+ clientPostcode: string;
121
+ /**
122
+ * Batch number in which the transaction was paid
123
+ *
124
+ * @type {number}
125
+ * @memberof TransactionBySessionIdResponse
126
+ */
127
+ batchId: number;
128
+ /**
129
+ * Commission
130
+ *
131
+ * @type {string}
132
+ * @memberof TransactionBySessionIdResponse
133
+ */
134
+ fee: string;
135
+ }
136
+ //# sourceMappingURL=TransactionBySessionIdResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionBySessionIdResponse.d.ts","sourceRoot":"","sources":["../../src/orders/TransactionBySessionIdResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;CAGf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionBySessionIdResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionBySessionIdResponse.js","sourceRoot":"","sources":["../../src/orders/TransactionBySessionIdResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export * from './Additional';
2
+ export * from './CartItem';
3
+ export * from './Order';
4
+ export * from './OrderCreatedData';
5
+ export * from './Shipping';
6
+ export * from './Transaction';
7
+ export * from './TransactionBySessionIdResponse';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orders/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Additional"), exports);
18
+ __exportStar(require("./CartItem"), exports);
19
+ __exportStar(require("./Order"), exports);
20
+ __exportStar(require("./OrderCreatedData"), exports);
21
+ __exportStar(require("./Shipping"), exports);
22
+ __exportStar(require("./Transaction"), exports);
23
+ __exportStar(require("./TransactionBySessionIdResponse"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/orders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,0CAAwB;AACxB,qDAAmC;AACnC,6CAA2B;AAC3B,gDAA8B;AAC9B,mEAAiD"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2019 Kasun Vithanage
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ *
24
+ */
25
+ /**
26
+ * Base request
27
+ *
28
+ * @interface BaseParameters
29
+ */
30
+ export interface BaseParameters {
31
+ /**
32
+ * Merchant ID
33
+ *
34
+ * @type {number}
35
+ * @memberof BaseParameters
36
+ */
37
+ merchantId: number;
38
+ /**
39
+ * Shop ID (default Merchant ID)
40
+ *
41
+ * @type {number}
42
+ * @memberof BaseParameters
43
+ */
44
+ posId: number;
45
+ }
46
+ //# sourceMappingURL=BaseParameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseParameters.d.ts","sourceRoot":"","sources":["../../src/p24/BaseParameters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /**
3
+ * MIT License
4
+ *
5
+ * Copyright (c) 2019 Kasun Vithanage
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ *
25
+ */
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ //# sourceMappingURL=BaseParameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseParameters.js","sourceRoot":"","sources":["../../src/p24/BaseParameters.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2019 Kasun Vithanage
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ *
24
+ */
25
+ import { P24Options } from './P24Options';
26
+ import { Order, Transaction, TransactionBySessionIdResponse } from '../orders';
27
+ import { Verification, NotificationRequest } from '../verify';
28
+ import { RefundRequest, RefundResult } from '../refund';
29
+ /**
30
+ * Represents a P24 payment system
31
+ *
32
+ * @export
33
+ * @class P24
34
+ */
35
+ export declare class P24 {
36
+ private merchantId;
37
+ private posId;
38
+ private crcKey;
39
+ private apiKey;
40
+ private client;
41
+ private baseUrl;
42
+ private options;
43
+ private baseParameters;
44
+ /**
45
+ * Creates an instance of Przelewy24.
46
+ * @param {number} merchantId Merchant ID given by Przelewy24
47
+ * @param {number} posId Shop ID (defaults to merchantId)
48
+ * @param {string} apiKey API Key from P24 panel(Klucz do raportów)
49
+ * @param {string} crcKey CRC key from P24 panel
50
+ * @param {P24Options} [options={ sandbox: false }] - additional options
51
+ * @memberof P24
52
+ */
53
+ constructor(merchantId: number, posId: number, apiKey: string, crcKey: string, options?: P24Options);
54
+ /**
55
+ * Test access to the service
56
+ *
57
+ * @returns {Promise<boolean>}
58
+ * @throws {P24Error}
59
+ * @memberof P24
60
+ */
61
+ testAccess(): Promise<boolean>;
62
+ /**
63
+ * Method returns transaction information by sessionId
64
+ *
65
+ * @returns {Promise<TransactionBySessionIdResponse>}
66
+ * @throws {P24Error}
67
+ * @memberof P24
68
+ */
69
+ GetTransactionBySessionID(SessionId: string): Promise<TransactionBySessionIdResponse>;
70
+ /**
71
+ * Creates a transaction
72
+ *
73
+ * @param {Order} order - order to be created
74
+ * @returns {Promise<Transaction>}
75
+ * @throws {P24Error}
76
+ * @memberof P24
77
+ */
78
+ createTransaction(order: Order): Promise<Transaction>;
79
+ /**
80
+ * Verify transaction
81
+ *
82
+ * @param {Verification} verification - verification request
83
+ * @returns {Promise<boolean>}
84
+ * @throws {P24Error}
85
+ * @memberof P24
86
+ */
87
+ verifyTransaction(verification: Verification): Promise<boolean>;
88
+ /**
89
+ * Verify notification transaction with our CRC Key
90
+ *
91
+ * @param {NotificationRequest} notificationRequest
92
+ * @returns {boolean}
93
+ * @memberof P24
94
+ */
95
+ verifyNotification(notificationRequest: NotificationRequest): boolean;
96
+ /**
97
+ * Handle refund
98
+ *
99
+ * @param {RefundRequest} refundRequest
100
+ * @returns {Promise<RefundResult[]>}
101
+ * @memberof P24
102
+ */
103
+ refund(refundRequest: RefundRequest): Promise<RefundResult[]>;
104
+ /**
105
+ * Validates IP with P24 backends
106
+ *
107
+ * @static
108
+ * @param {string} ip - IP Address
109
+ * @returns {boolean} - true on validated ip
110
+ * @memberof Przelewy24
111
+ */
112
+ static isIpValid(ip: string): boolean;
113
+ }
114
+ //# sourceMappingURL=P24.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P24.d.ts","sourceRoot":"","sources":["../../src/p24/P24.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,OAAO,EACH,KAAK,EAEL,WAAW,EACX,8BAA8B,EACjC,MAAM,WAAW,CAAC;AAWnB,OAAO,EACH,YAAY,EACZ,mBAAmB,EAEtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,aAAa,EACb,YAAY,EACf,MAAM,WAAW,CAAC;AAInB;;;;;GAKG;AACH,qBAAa,GAAG;IACZ,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAa;IAC5B,OAAO,CAAC,cAAc,CAAiB;IAEvC;;;;;;;;MAQE;gBAEE,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,UAA+B;IA0B5C;;;;;;OAMG;IACU,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAc3C;;;;;;OAMG;IACU,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,8BAA8B,CAAC;IAelG;;;;;;;OAOG;IACU,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC;IAoClE;;;;;;;OAOG;IACU,iBAAiB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IA8B5E;;;;;;OAMG;IACI,kBAAkB,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,OAAO;IAU5E;;;;;;OAMG;IACU,MAAM,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAkB1E;;;;;;;OAOG;WACW,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;CAG/C"}
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+ /**
3
+ * MIT License
4
+ *
5
+ * Copyright (c) 2019 Kasun Vithanage
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ *
25
+ */
26
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
+ return new (P || (P = Promise))(function (resolve, reject) {
29
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
33
+ });
34
+ };
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.P24 = void 0;
40
+ const axios_1 = __importDefault(require("axios"));
41
+ const errors_1 = require("../errors");
42
+ const ips_1 = require("./ips");
43
+ const hash_1 = require("../utils/hash");
44
+ const endpoints_1 = require("./endpoints");
45
+ /**
46
+ * Represents a P24 payment system
47
+ *
48
+ * @export
49
+ * @class P24
50
+ */
51
+ class P24 {
52
+ /**
53
+ * Creates an instance of Przelewy24.
54
+ * @param {number} merchantId Merchant ID given by Przelewy24
55
+ * @param {number} posId Shop ID (defaults to merchantId)
56
+ * @param {string} apiKey API Key from P24 panel(Klucz do raportów)
57
+ * @param {string} crcKey CRC key from P24 panel
58
+ * @param {P24Options} [options={ sandbox: false }] - additional options
59
+ * @memberof P24
60
+ */
61
+ constructor(merchantId, posId, apiKey, crcKey, options = { sandbox: false }) {
62
+ this.merchantId = merchantId;
63
+ this.posId = posId;
64
+ this.crcKey = crcKey;
65
+ this.apiKey = apiKey;
66
+ this.options = options;
67
+ if (!this.posId)
68
+ this.posId = this.merchantId;
69
+ this.baseUrl = !this.options.sandbox ? endpoints_1.ProductionUrl : endpoints_1.SandboxUrl;
70
+ this.baseParameters = {
71
+ merchantId: this.merchantId,
72
+ posId: this.posId
73
+ };
74
+ this.client = axios_1.default.create({
75
+ baseURL: `${this.baseUrl}/api/v1`,
76
+ auth: {
77
+ username: posId.toString(),
78
+ password: this.apiKey
79
+ }
80
+ });
81
+ }
82
+ /**
83
+ * Test access to the service
84
+ *
85
+ * @returns {Promise<boolean>}
86
+ * @throws {P24Error}
87
+ * @memberof P24
88
+ */
89
+ testAccess() {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ try {
92
+ const { data } = yield this.client.get(endpoints_1.EndpointTestAccess);
93
+ const res = data;
94
+ return res.data === true;
95
+ }
96
+ catch (error) {
97
+ if (error.response && error.response.data) {
98
+ const resp = error.response.data;
99
+ throw new errors_1.P24Error(resp.error, resp.code);
100
+ }
101
+ throw new errors_1.P24Error(`Unknown Error ${error}`, -1);
102
+ }
103
+ });
104
+ }
105
+ /**
106
+ * Method returns transaction information by sessionId
107
+ *
108
+ * @returns {Promise<TransactionBySessionIdResponse>}
109
+ * @throws {P24Error}
110
+ * @memberof P24
111
+ */
112
+ GetTransactionBySessionID(SessionId) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ try {
115
+ const { data } = yield this.client.get(endpoints_1.EndpointGetTransactionBySessionID + "/" + SessionId);
116
+ const resp = data;
117
+ return resp.data;
118
+ }
119
+ catch (error) {
120
+ if (error.response && error.response.data) {
121
+ const resp = error.response.data;
122
+ throw new errors_1.P24Error(resp.error, resp.code);
123
+ }
124
+ throw new errors_1.P24Error(`Unknown Error ${error}`, -1);
125
+ }
126
+ });
127
+ }
128
+ /**
129
+ * Creates a transaction
130
+ *
131
+ * @param {Order} order - order to be created
132
+ * @returns {Promise<Transaction>}
133
+ * @throws {P24Error}
134
+ * @memberof P24
135
+ */
136
+ createTransaction(order) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ try {
139
+ const hashData = {
140
+ sessionId: order.sessionId,
141
+ merchantId: this.merchantId,
142
+ amount: order.amount,
143
+ currency: order.currency,
144
+ crc: this.crcKey
145
+ };
146
+ const sign = (0, hash_1.calculateSHA384)(JSON.stringify(hashData));
147
+ const orderData = Object.assign(Object.assign(Object.assign({}, this.baseParameters), order), { sign });
148
+ const { data } = yield this.client.post(endpoints_1.EndpointTransactionRegister, orderData);
149
+ const response = data;
150
+ const transaction = {
151
+ token: response.data.token,
152
+ link: `${this.baseUrl}${endpoints_1.EndpointTransactionRequest}/${response.data.token}`
153
+ };
154
+ return transaction;
155
+ }
156
+ catch (error) {
157
+ if (error.response && error.response.data) {
158
+ const resp = error.response.data;
159
+ throw new errors_1.P24Error(resp.error, resp.code);
160
+ }
161
+ throw new errors_1.P24Error(`Unknown Error ${error}`, -1);
162
+ }
163
+ });
164
+ }
165
+ /**
166
+ * Verify transaction
167
+ *
168
+ * @param {Verification} verification - verification request
169
+ * @returns {Promise<boolean>}
170
+ * @throws {P24Error}
171
+ * @memberof P24
172
+ */
173
+ verifyTransaction(verification) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ try {
176
+ const hashData = {
177
+ sessionId: verification.sessionId,
178
+ orderId: verification.orderId,
179
+ amount: verification.amount,
180
+ currency: verification.currency,
181
+ crc: this.crcKey
182
+ };
183
+ const sign = (0, hash_1.calculateSHA384)(JSON.stringify(hashData));
184
+ const verificationData = Object.assign(Object.assign(Object.assign({}, this.baseParameters), verification), { sign });
185
+ const { data } = yield this.client.put(endpoints_1.EndpointTransactionVerify, verificationData);
186
+ const result = data;
187
+ return result.data.status === 'success';
188
+ }
189
+ catch (error) {
190
+ if (error.response && error.response.data) {
191
+ const resp = error.response.data;
192
+ throw new errors_1.P24Error(resp.error, resp.code);
193
+ }
194
+ throw new errors_1.P24Error(`Unknown Error ${error}`, -1);
195
+ }
196
+ });
197
+ }
198
+ /**
199
+ * Verify notification transaction with our CRC Key
200
+ *
201
+ * @param {NotificationRequest} notificationRequest
202
+ * @returns {boolean}
203
+ * @memberof P24
204
+ */
205
+ verifyNotification(notificationRequest) {
206
+ const notificationHash = Object.assign(Object.assign({}, notificationRequest), { sign: undefined, crc: this.crcKey });
207
+ const sign = (0, hash_1.calculateSHA384)(JSON.stringify(notificationHash));
208
+ return sign === notificationRequest.sign;
209
+ }
210
+ /**
211
+ * Handle refund
212
+ *
213
+ * @param {RefundRequest} refundRequest
214
+ * @returns {Promise<RefundResult[]>}
215
+ * @memberof P24
216
+ */
217
+ refund(refundRequest) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ try {
220
+ const { data } = yield this.client.post(endpoints_1.EndpointRefund, refundRequest);
221
+ const resp = data;
222
+ return resp.data;
223
+ }
224
+ catch (error) {
225
+ if (error.response && error.response.data) {
226
+ if (error.response.data.code === 409) {
227
+ const resp = error.response.data;
228
+ throw new errors_1.P24Error('Refund Conflict', resp.code, resp.error);
229
+ }
230
+ const resp = error.response.data;
231
+ throw new errors_1.P24Error(resp.error, resp.code);
232
+ }
233
+ throw new errors_1.P24Error(`Unknown Error ${error}`, -1);
234
+ }
235
+ });
236
+ }
237
+ /**
238
+ * Validates IP with P24 backends
239
+ *
240
+ * @static
241
+ * @param {string} ip - IP Address
242
+ * @returns {boolean} - true on validated ip
243
+ * @memberof Przelewy24
244
+ */
245
+ static isIpValid(ip) {
246
+ return ips_1.validIps.includes(ip);
247
+ }
248
+ }
249
+ exports.P24 = P24;
250
+ //# sourceMappingURL=P24.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P24.js","sourceRoot":"","sources":["../../src/p24/P24.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;;;;;;;;;;;;;AAEH,kDAA6C;AAC7C,sCAAqC;AAErC,+BAAiC;AAMjC,wCAAgD;AAOhD,2CASqB;AAarB;;;;;GAKG;AACH,MAAa,GAAG;IAUZ;;;;;;;;MAQE;IACF,YACI,UAAkB,EAClB,KAAa,EACb,MAAc,EACd,MAAc,EACd,UAAsB,EAAE,OAAO,EAAE,KAAK,EAAE;QAExC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,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,CAAC,QAAQ,CAAC,IAAI,CAAA;wBAC/D,MAAM,IAAI,iBAAQ,CAAC,iBAAiB,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;qBAC/D;oBACD,MAAM,IAAI,GAA0B,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAA;oBACvD,MAAM,IAAI,iBAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAA;iBAC5C;gBACD,MAAM,IAAI,iBAAQ,CAAC,iBAAiB,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;aACnD;QACL,CAAC;KAAA;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,SAAS,CAAC,EAAU;QAC9B,OAAO,cAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;IAChC,CAAC;CACJ;AApOD,kBAoOC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * P24 Options
3
+ *
4
+ * @export
5
+ * @interface P24Options
6
+ */
7
+ export interface P24Options {
8
+ /**
9
+ * Use sandbox ?
10
+ *
11
+ * @type {boolean}
12
+ * @memberof P24Options
13
+ */
14
+ sandbox?: boolean;
15
+ }
16
+ //# sourceMappingURL=P24Options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P24Options.d.ts","sourceRoot":"","sources":["../../src/p24/P24Options.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=P24Options.js.map