@tax1driver/ts-przelewy24 2.1.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.
Files changed (201) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/.yarnrc.yml +1 -0
  3. package/LICENSE +21 -0
  4. package/README.md +330 -0
  5. package/dist/blik/Alias.d.ts +80 -0
  6. package/dist/blik/Alias.d.ts.map +1 -0
  7. package/dist/blik/Alias.js +3 -0
  8. package/dist/blik/Alias.js.map +1 -0
  9. package/dist/blik/ChargeBlik.d.ts +151 -0
  10. package/dist/blik/ChargeBlik.d.ts.map +1 -0
  11. package/dist/blik/ChargeBlik.js +4 -0
  12. package/dist/blik/ChargeBlik.js.map +1 -0
  13. package/dist/blik/RecurringParams.d.ts +37 -0
  14. package/dist/blik/RecurringParams.d.ts.map +1 -0
  15. package/dist/blik/RecurringParams.js +3 -0
  16. package/dist/blik/RecurringParams.js.map +1 -0
  17. package/dist/blik/index.d.ts +4 -0
  18. package/dist/blik/index.d.ts.map +1 -0
  19. package/dist/blik/index.js +20 -0
  20. package/dist/blik/index.js.map +1 -0
  21. package/dist/cards/CardInfo.d.ts +45 -0
  22. package/dist/cards/CardInfo.d.ts.map +1 -0
  23. package/dist/cards/CardInfo.js +3 -0
  24. package/dist/cards/CardInfo.js.map +1 -0
  25. package/dist/cards/CardNotification.d.ts +178 -0
  26. package/dist/cards/CardNotification.d.ts.map +1 -0
  27. package/dist/cards/CardNotification.js +3 -0
  28. package/dist/cards/CardNotification.js.map +1 -0
  29. package/dist/cards/ChargeCard.d.ts +81 -0
  30. package/dist/cards/ChargeCard.d.ts.map +1 -0
  31. package/dist/cards/ChargeCard.js +3 -0
  32. package/dist/cards/ChargeCard.js.map +1 -0
  33. package/dist/cards/index.d.ts +4 -0
  34. package/dist/cards/index.d.ts.map +1 -0
  35. package/dist/cards/index.js +20 -0
  36. package/dist/cards/index.js.map +1 -0
  37. package/dist/enums/Channel.d.ts +18 -0
  38. package/dist/enums/Channel.d.ts.map +1 -0
  39. package/dist/enums/Channel.js +22 -0
  40. package/dist/enums/Channel.js.map +1 -0
  41. package/dist/enums/Country.d.ts +67 -0
  42. package/dist/enums/Country.d.ts.map +1 -0
  43. package/dist/enums/Country.js +71 -0
  44. package/dist/enums/Country.js.map +1 -0
  45. package/dist/enums/Currency.d.ts +36 -0
  46. package/dist/enums/Currency.d.ts.map +1 -0
  47. package/dist/enums/Currency.js +40 -0
  48. package/dist/enums/Currency.js.map +1 -0
  49. package/dist/enums/Encoding.d.ts +35 -0
  50. package/dist/enums/Encoding.d.ts.map +1 -0
  51. package/dist/enums/Encoding.js +39 -0
  52. package/dist/enums/Encoding.js.map +1 -0
  53. package/dist/enums/Language.d.ts +37 -0
  54. package/dist/enums/Language.d.ts.map +1 -0
  55. package/dist/enums/Language.js +41 -0
  56. package/dist/enums/Language.js.map +1 -0
  57. package/dist/enums/ShippingType.d.ts +13 -0
  58. package/dist/enums/ShippingType.d.ts.map +1 -0
  59. package/dist/enums/ShippingType.js +17 -0
  60. package/dist/enums/ShippingType.js.map +1 -0
  61. package/dist/enums/index.d.ts +7 -0
  62. package/dist/enums/index.d.ts.map +1 -0
  63. package/dist/enums/index.js +23 -0
  64. package/dist/enums/index.js.map +1 -0
  65. package/dist/errors/P24Error.d.ts +38 -0
  66. package/dist/errors/P24Error.d.ts.map +1 -0
  67. package/dist/errors/P24Error.js +49 -0
  68. package/dist/errors/P24Error.js.map +1 -0
  69. package/dist/errors/index.d.ts +2 -0
  70. package/dist/errors/index.d.ts.map +1 -0
  71. package/dist/errors/index.js +18 -0
  72. package/dist/errors/index.js.map +1 -0
  73. package/dist/index.d.ts +11 -0
  74. package/dist/index.d.ts.map +1 -0
  75. package/dist/index.js +27 -0
  76. package/dist/index.js.map +1 -0
  77. package/dist/orders/Additional.d.ts +17 -0
  78. package/dist/orders/Additional.d.ts.map +1 -0
  79. package/dist/orders/Additional.js +3 -0
  80. package/dist/orders/Additional.js.map +1 -0
  81. package/dist/orders/CartItem.d.ts +58 -0
  82. package/dist/orders/CartItem.d.ts.map +1 -0
  83. package/dist/orders/CartItem.js +3 -0
  84. package/dist/orders/CartItem.js.map +1 -0
  85. package/dist/orders/OfflineTransaction.d.ts +51 -0
  86. package/dist/orders/OfflineTransaction.d.ts.map +1 -0
  87. package/dist/orders/OfflineTransaction.js +3 -0
  88. package/dist/orders/OfflineTransaction.js.map +1 -0
  89. package/dist/orders/Order.d.ts +211 -0
  90. package/dist/orders/Order.d.ts.map +1 -0
  91. package/dist/orders/Order.js +3 -0
  92. package/dist/orders/Order.js.map +1 -0
  93. package/dist/orders/OrderCreatedData.d.ts +16 -0
  94. package/dist/orders/OrderCreatedData.d.ts.map +1 -0
  95. package/dist/orders/OrderCreatedData.js +3 -0
  96. package/dist/orders/OrderCreatedData.js.map +1 -0
  97. package/dist/orders/Shipping.d.ts +39 -0
  98. package/dist/orders/Shipping.d.ts.map +1 -0
  99. package/dist/orders/Shipping.js +3 -0
  100. package/dist/orders/Shipping.js.map +1 -0
  101. package/dist/orders/SplitPayment.d.ts +54 -0
  102. package/dist/orders/SplitPayment.d.ts.map +1 -0
  103. package/dist/orders/SplitPayment.js +3 -0
  104. package/dist/orders/SplitPayment.js.map +1 -0
  105. package/dist/orders/Transaction.d.ts +23 -0
  106. package/dist/orders/Transaction.d.ts.map +1 -0
  107. package/dist/orders/Transaction.js +3 -0
  108. package/dist/orders/Transaction.js.map +1 -0
  109. package/dist/orders/TransactionDetails.d.ts +135 -0
  110. package/dist/orders/TransactionDetails.d.ts.map +1 -0
  111. package/dist/orders/TransactionDetails.js +3 -0
  112. package/dist/orders/TransactionDetails.js.map +1 -0
  113. package/dist/orders/index.d.ts +10 -0
  114. package/dist/orders/index.d.ts.map +1 -0
  115. package/dist/orders/index.js +26 -0
  116. package/dist/orders/index.js.map +1 -0
  117. package/dist/p24/BaseParameters.d.ts +46 -0
  118. package/dist/p24/BaseParameters.d.ts.map +1 -0
  119. package/dist/p24/BaseParameters.js +27 -0
  120. package/dist/p24/BaseParameters.js.map +1 -0
  121. package/dist/p24/P24.d.ts +241 -0
  122. package/dist/p24/P24.d.ts.map +1 -0
  123. package/dist/p24/P24.js +484 -0
  124. package/dist/p24/P24.js.map +1 -0
  125. package/dist/p24/P24Options.d.ts +16 -0
  126. package/dist/p24/P24Options.d.ts.map +1 -0
  127. package/dist/p24/P24Options.js +3 -0
  128. package/dist/p24/P24Options.js.map +1 -0
  129. package/dist/p24/endpoints.d.ts +13 -0
  130. package/dist/p24/endpoints.d.ts.map +1 -0
  131. package/dist/p24/endpoints.js +16 -0
  132. package/dist/p24/endpoints.js.map +1 -0
  133. package/dist/p24/index.d.ts +6 -0
  134. package/dist/p24/index.d.ts.map +1 -0
  135. package/dist/p24/index.js +22 -0
  136. package/dist/p24/index.js.map +1 -0
  137. package/dist/p24/ips.d.ts +2 -0
  138. package/dist/p24/ips.d.ts.map +1 -0
  139. package/dist/p24/ips.js +11 -0
  140. package/dist/p24/ips.js.map +1 -0
  141. package/dist/payment/PaymentMethod.d.ts +76 -0
  142. package/dist/payment/PaymentMethod.d.ts.map +1 -0
  143. package/dist/payment/PaymentMethod.js +3 -0
  144. package/dist/payment/PaymentMethod.js.map +1 -0
  145. package/dist/payment/index.d.ts +2 -0
  146. package/dist/payment/index.d.ts.map +1 -0
  147. package/dist/payment/index.js +18 -0
  148. package/dist/payment/index.js.map +1 -0
  149. package/dist/refund/Refund.d.ts +37 -0
  150. package/dist/refund/Refund.d.ts.map +1 -0
  151. package/dist/refund/Refund.js +3 -0
  152. package/dist/refund/Refund.js.map +1 -0
  153. package/dist/refund/RefundRequest.d.ts +38 -0
  154. package/dist/refund/RefundRequest.d.ts.map +1 -0
  155. package/dist/refund/RefundRequest.js +3 -0
  156. package/dist/refund/RefundRequest.js.map +1 -0
  157. package/dist/refund/RefundResult.d.ts +51 -0
  158. package/dist/refund/RefundResult.d.ts.map +1 -0
  159. package/dist/refund/RefundResult.js +3 -0
  160. package/dist/refund/RefundResult.js.map +1 -0
  161. package/dist/refund/TransactionWithRefunds.d.ts +101 -0
  162. package/dist/refund/TransactionWithRefunds.d.ts.map +1 -0
  163. package/dist/refund/TransactionWithRefunds.js +3 -0
  164. package/dist/refund/TransactionWithRefunds.js.map +1 -0
  165. package/dist/refund/index.d.ts +5 -0
  166. package/dist/refund/index.d.ts.map +1 -0
  167. package/dist/refund/index.js +21 -0
  168. package/dist/refund/index.js.map +1 -0
  169. package/dist/responses/ErrorResponse.d.ts +17 -0
  170. package/dist/responses/ErrorResponse.d.ts.map +1 -0
  171. package/dist/responses/ErrorResponse.js +3 -0
  172. package/dist/responses/ErrorResponse.js.map +1 -0
  173. package/dist/responses/SuccessResponse.d.ts +17 -0
  174. package/dist/responses/SuccessResponse.d.ts.map +1 -0
  175. package/dist/responses/SuccessResponse.js +3 -0
  176. package/dist/responses/SuccessResponse.js.map +1 -0
  177. package/dist/responses/index.d.ts +3 -0
  178. package/dist/responses/index.d.ts.map +1 -0
  179. package/dist/responses/index.js +19 -0
  180. package/dist/responses/index.js.map +1 -0
  181. package/dist/utils/hash.d.ts +2 -0
  182. package/dist/utils/hash.d.ts.map +1 -0
  183. package/dist/utils/hash.js +14 -0
  184. package/dist/utils/hash.js.map +1 -0
  185. package/dist/verify/NotificationRequest.d.ts +82 -0
  186. package/dist/verify/NotificationRequest.d.ts.map +1 -0
  187. package/dist/verify/NotificationRequest.js +3 -0
  188. package/dist/verify/NotificationRequest.js.map +1 -0
  189. package/dist/verify/Verification.d.ts +38 -0
  190. package/dist/verify/Verification.d.ts.map +1 -0
  191. package/dist/verify/Verification.js +3 -0
  192. package/dist/verify/Verification.js.map +1 -0
  193. package/dist/verify/VerificationData.d.ts +16 -0
  194. package/dist/verify/VerificationData.d.ts.map +1 -0
  195. package/dist/verify/VerificationData.js +3 -0
  196. package/dist/verify/VerificationData.js.map +1 -0
  197. package/dist/verify/index.d.ts +4 -0
  198. package/dist/verify/index.d.ts.map +1 -0
  199. package/dist/verify/index.js +20 -0
  200. package/dist/verify/index.js.map +1 -0
  201. package/package.json +45 -0
@@ -0,0 +1,35 @@
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
+ * Character Encoding
27
+ *
28
+ * @enum {number}
29
+ */
30
+ export declare enum Encoding {
31
+ ISO8859 = "ISO-8859-2",
32
+ UTF8 = "UTF-8",
33
+ WINDOWS1250 = "Windows-1250"
34
+ }
35
+ //# sourceMappingURL=Encoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Encoding.d.ts","sourceRoot":"","sources":["../../src/enums/Encoding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;GAIG;AACH,oBAAY,QAAQ;IAChB,OAAO,eAAe;IACtB,IAAI,UAAU;IACd,WAAW,iBAAiB;CAC/B"}
@@ -0,0 +1,39 @@
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
+ exports.Encoding = void 0;
28
+ /**
29
+ * Character Encoding
30
+ *
31
+ * @enum {number}
32
+ */
33
+ var Encoding;
34
+ (function (Encoding) {
35
+ Encoding["ISO8859"] = "ISO-8859-2";
36
+ Encoding["UTF8"] = "UTF-8";
37
+ Encoding["WINDOWS1250"] = "Windows-1250";
38
+ })(Encoding || (exports.Encoding = Encoding = {}));
39
+ //# sourceMappingURL=Encoding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Encoding.js","sourceRoot":"","sources":["../../src/enums/Encoding.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH;;;;GAIG;AACH,IAAY,QAIX;AAJD,WAAY,QAAQ;IAChB,kCAAsB,CAAA;IACtB,0BAAc,CAAA;IACd,wCAA4B,CAAA;AAChC,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB"}
@@ -0,0 +1,37 @@
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
+ * Language
27
+ *
28
+ * @enum {number}
29
+ */
30
+ export declare enum Language {
31
+ PL = "pl",
32
+ EN = "en",
33
+ DE = "de",
34
+ ES = "es",
35
+ IT = "it"
36
+ }
37
+ //# sourceMappingURL=Language.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Language.d.ts","sourceRoot":"","sources":["../../src/enums/Language.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;GAIG;AACH,oBAAY,QAAQ;IAChB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;CACZ"}
@@ -0,0 +1,41 @@
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
+ exports.Language = void 0;
28
+ /**
29
+ * Language
30
+ *
31
+ * @enum {number}
32
+ */
33
+ var Language;
34
+ (function (Language) {
35
+ Language["PL"] = "pl";
36
+ Language["EN"] = "en";
37
+ Language["DE"] = "de";
38
+ Language["ES"] = "es";
39
+ Language["IT"] = "it";
40
+ })(Language || (exports.Language = Language = {}));
41
+ //# sourceMappingURL=Language.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/enums/Language.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH;;;;GAIG;AACH,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;IACT,qBAAS,CAAA;AACb,CAAC,EANW,QAAQ,wBAAR,QAAQ,QAMnB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Shipping type
3
+ *
4
+ * @export
5
+ * @enum {number}
6
+ */
7
+ export declare enum ShippingType {
8
+ Courier = 0,
9
+ DeliveryPoint = 1,
10
+ ParcelLocker = 3,
11
+ PackageInAShop = 4
12
+ }
13
+ //# sourceMappingURL=ShippingType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShippingType.d.ts","sourceRoot":"","sources":["../../src/enums/ShippingType.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,YAAY;IACpB,OAAO,IAAI;IACX,aAAa,IAAI;IACjB,YAAY,IAAI;IAChB,cAAc,IAAI;CACrB"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ShippingType = void 0;
4
+ /**
5
+ * Shipping type
6
+ *
7
+ * @export
8
+ * @enum {number}
9
+ */
10
+ var ShippingType;
11
+ (function (ShippingType) {
12
+ ShippingType[ShippingType["Courier"] = 0] = "Courier";
13
+ ShippingType[ShippingType["DeliveryPoint"] = 1] = "DeliveryPoint";
14
+ ShippingType[ShippingType["ParcelLocker"] = 3] = "ParcelLocker";
15
+ ShippingType[ShippingType["PackageInAShop"] = 4] = "PackageInAShop";
16
+ })(ShippingType || (exports.ShippingType = ShippingType = {}));
17
+ //# sourceMappingURL=ShippingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShippingType.js","sourceRoot":"","sources":["../../src/enums/ShippingType.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qDAAW,CAAA;IACX,iEAAiB,CAAA;IACjB,+DAAgB,CAAA;IAChB,mEAAkB,CAAA;AACtB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB"}
@@ -0,0 +1,7 @@
1
+ export * from './Channel';
2
+ export * from './Country';
3
+ export * from './Currency';
4
+ export * from './Encoding';
5
+ export * from './Language';
6
+ export * from './ShippingType';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,23 @@
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("./Channel"), exports);
18
+ __exportStar(require("./Country"), exports);
19
+ __exportStar(require("./Currency"), exports);
20
+ __exportStar(require("./Encoding"), exports);
21
+ __exportStar(require("./Language"), exports);
22
+ __exportStar(require("./ShippingType"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,4CAA0B;AAC1B,6CAA2B;AAC3B,6CAA2B;AAC3B,6CAA2B;AAC3B,iDAA+B"}
@@ -0,0 +1,38 @@
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
+ * Error from Przelewy24
27
+ *
28
+ * @export
29
+ * @class P24Error
30
+ * @extends {Error}
31
+ */
32
+ export declare class P24Error extends Error {
33
+ error: string;
34
+ code: number;
35
+ details?: unknown;
36
+ constructor(error: string, code: number, details?: unknown);
37
+ }
38
+ //# sourceMappingURL=P24Error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P24Error.d.ts","sourceRoot":"","sources":["../../src/errors/P24Error.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,KAAK;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;gBAEb,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO;CAa7D"}
@@ -0,0 +1,49 @@
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
+ exports.P24Error = void 0;
28
+ /**
29
+ * Error from Przelewy24
30
+ *
31
+ * @export
32
+ * @class P24Error
33
+ * @extends {Error}
34
+ */
35
+ class P24Error extends Error {
36
+ constructor(error, code, details) {
37
+ const message = details
38
+ ? `${error} (code: ${code}, details: ${JSON.stringify(details)})`
39
+ : `${error} (code: ${code})`;
40
+ super(message);
41
+ this.error = error;
42
+ this.code = code;
43
+ this.details = details;
44
+ this.name = 'P24Error';
45
+ Object.setPrototypeOf(this, new.target.prototype);
46
+ }
47
+ }
48
+ exports.P24Error = P24Error;
49
+ //# sourceMappingURL=P24Error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"P24Error.js","sourceRoot":"","sources":["../../src/errors/P24Error.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH;;;;;;GAMG;AACH,MAAa,QAAS,SAAQ,KAAK;IAK/B,YAAY,KAAa,EAAE,IAAY,EAAE,OAAiB;QACtD,MAAM,OAAO,GAAG,OAAO;YACnB,CAAC,CAAC,GAAG,KAAK,WAAW,IAAI,cAAc,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG;YACjE,CAAC,CAAC,GAAG,KAAK,WAAW,IAAI,GAAG,CAAC;QACjC,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;QAEvB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC;CACJ;AAlBD,4BAkBC"}
@@ -0,0 +1,2 @@
1
+ export * from './P24Error';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1,18 @@
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("./P24Error"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,11 @@
1
+ export * from './blik';
2
+ export * from './cards';
3
+ export * from './enums';
4
+ export * from './errors';
5
+ export * from './orders';
6
+ export * from './p24';
7
+ export * from './payment';
8
+ export * from './refund';
9
+ export * from './responses';
10
+ export * from './verify';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
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("./blik"), exports);
18
+ __exportStar(require("./cards"), exports);
19
+ __exportStar(require("./enums"), exports);
20
+ __exportStar(require("./errors"), exports);
21
+ __exportStar(require("./orders"), exports);
22
+ __exportStar(require("./p24"), exports);
23
+ __exportStar(require("./payment"), exports);
24
+ __exportStar(require("./refund"), exports);
25
+ __exportStar(require("./responses"), exports);
26
+ __exportStar(require("./verify"), exports);
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,4CAA0B;AAC1B,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB"}
@@ -0,0 +1,17 @@
1
+ import { Shipping } from "./Shipping";
2
+ /**
3
+ * Additional shipping data
4
+ *
5
+ * @export
6
+ * @interface Additional
7
+ */
8
+ export interface Additional {
9
+ /**
10
+ * Additional shipping information
11
+ *
12
+ * @type {Shipping}
13
+ * @memberof Additional
14
+ */
15
+ shipping?: Shipping;
16
+ }
17
+ //# sourceMappingURL=Additional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Additional.d.ts","sourceRoot":"","sources":["../../src/orders/Additional.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACtB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Additional.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Additional.js","sourceRoot":"","sources":["../../src/orders/Additional.ts"],"names":[],"mappings":""}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * Represents a cart item
3
+ *
4
+ * @export
5
+ * @interface CartItem
6
+ */
7
+ export interface CartItem {
8
+ /**
9
+ * Shop ID on the part of Partner
10
+ *
11
+ * @type {string}
12
+ * @memberof CartItem
13
+ */
14
+ sellerId?: string;
15
+ /**
16
+ * Shop category
17
+ *
18
+ * @type {string}
19
+ * @memberof CartItem
20
+ */
21
+ sellerCategory: string;
22
+ /**
23
+ * Product name
24
+ *
25
+ * @type {string}
26
+ * @memberof CartItem
27
+ */
28
+ name?: string;
29
+ /**
30
+ * Product description
31
+ *
32
+ * @type {string}
33
+ * @memberof CartItem
34
+ */
35
+ description?: string;
36
+ /**
37
+ * Product quantity
38
+ *
39
+ * @type {number}
40
+ * @memberof CartItem
41
+ */
42
+ quantity?: number;
43
+ /**
44
+ * Product price
45
+ *
46
+ * @type {number}
47
+ * @memberof CartItem
48
+ */
49
+ price?: number;
50
+ /**
51
+ * Product number
52
+ *
53
+ * @type {number}
54
+ * @memberof CartItem
55
+ */
56
+ number?: number;
57
+ }
58
+ //# sourceMappingURL=CartItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItem.d.ts","sourceRoot":"","sources":["../../src/orders/CartItem.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=CartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItem.js","sourceRoot":"","sources":["../../src/orders/CartItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Offline transaction details for bank transfer
3
+ *
4
+ * @export
5
+ * @type {OfflineTransaction}
6
+ */
7
+ export type OfflineTransaction = {
8
+ /**
9
+ * Order ID from Przelewy24
10
+ *
11
+ * @type {number}
12
+ */
13
+ orderId: number;
14
+ /**
15
+ * Transaction session ID from the Partner's system
16
+ *
17
+ * @type {string}
18
+ */
19
+ sessionId: string;
20
+ /**
21
+ * Transaction amount
22
+ *
23
+ * @type {number}
24
+ */
25
+ amount: number;
26
+ /**
27
+ * Statement/description for bank transfer
28
+ *
29
+ * @type {string}
30
+ */
31
+ statement: string;
32
+ /**
33
+ * IBAN account number for transfer
34
+ *
35
+ * @type {string}
36
+ */
37
+ iban: string;
38
+ /**
39
+ * IBAN account owner name
40
+ *
41
+ * @type {string}
42
+ */
43
+ ibanOwner: string;
44
+ /**
45
+ * IBAN account owner address
46
+ *
47
+ * @type {string}
48
+ */
49
+ ibanOwnerAddress: string;
50
+ };
51
+ //# sourceMappingURL=OfflineTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineTransaction.d.ts","sourceRoot":"","sources":["../../src/orders/OfflineTransaction.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OfflineTransaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OfflineTransaction.js","sourceRoot":"","sources":["../../src/orders/OfflineTransaction.ts"],"names":[],"mappings":""}