@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,211 @@
1
+ import { Currency } from "../enums/Currency";
2
+ import { Country } from '../enums/Country';
3
+ import { Language } from "../enums/Language";
4
+ import { Channel } from "../enums/Channel";
5
+ import { Encoding } from '../enums/Encoding';
6
+ import { CartItem } from './CartItem';
7
+ import { Additional } from "./Additional";
8
+ /**
9
+ * Represents an order
10
+ *
11
+ * @export
12
+ * @interface Order
13
+ */
14
+ export interface Order {
15
+ /**
16
+ * Unique identifier from merchant's system
17
+ *
18
+ * @type {string}
19
+ * @memberof Order
20
+ */
21
+ sessionId: string;
22
+ /**
23
+ * Transaction amount expressed in lowest currency unit, e.g. 1.23 PLN = 123
24
+ *
25
+ * @type {number}
26
+ * @memberof Order
27
+ */
28
+ amount: number;
29
+ /**
30
+ * Currency in ISO code
31
+ *
32
+ * @type {Currency}
33
+ * @memberof Order
34
+ */
35
+ currency: Currency;
36
+ /**
37
+ * Transaction description
38
+ *
39
+ * @type {string}
40
+ * @memberof Order
41
+ */
42
+ description: string;
43
+ /**
44
+ * Customer's e-mail
45
+ *
46
+ * @type {string}
47
+ * @memberof Order
48
+ */
49
+ email: string;
50
+ /**
51
+ * Customer's first name and surname
52
+ *
53
+ * @type {string}
54
+ * @memberof Order
55
+ */
56
+ client?: string;
57
+ /**
58
+ * Customer's address
59
+ *
60
+ * @type {string}
61
+ * @memberof Order
62
+ */
63
+ address?: string;
64
+ /**
65
+ * Customer's postal code
66
+ *
67
+ * @type {string}
68
+ * @memberof Order
69
+ */
70
+ zip?: string;
71
+ /**
72
+ * Customer's city
73
+ *
74
+ * @type {string}
75
+ * @memberof Order
76
+ */
77
+ city?: string;
78
+ /**
79
+ * Country code
80
+ *
81
+ * @type {Country}
82
+ * @memberof Order
83
+ */
84
+ country: Country;
85
+ /**
86
+ * Customer's telephone in the following format: 481321132123
87
+ *
88
+ * @type {string}
89
+ * @memberof Order
90
+ */
91
+ phone?: string;
92
+ /**
93
+ * One of following language codes according to ISO 639-1: bg, cs, de, en, es, fr, hr, hu, it, nl, pl, pt, se, sk
94
+ *
95
+ * @type {Language}
96
+ * @memberof Order
97
+ */
98
+ language: Language;
99
+ /**
100
+ * Payment method ID. List of payment methods provided in the panel or available through API
101
+ *
102
+ * @type {number}
103
+ * @memberof Order
104
+ */
105
+ method?: number;
106
+ /**
107
+ * URL address to which customer will be redirected when transaction is complete
108
+ *
109
+ * @type {string}
110
+ * @memberof Order
111
+ */
112
+ urlReturn: string;
113
+ /**
114
+ * URL address to which transaction status will be send
115
+ *
116
+ * @type {string}
117
+ * @memberof Order
118
+ */
119
+ urlStatus?: string;
120
+ /**
121
+ * Time limit for transaction process, 0 - no limit, max. 99 (in minutes)
122
+ *
123
+ * @type {number}
124
+ * @memberof Order
125
+ */
126
+ timeLimit?: number;
127
+ /**
128
+ * Channel of payment
129
+ *
130
+ * @type {Channel}
131
+ * @memberof Order
132
+ */
133
+ channel?: Channel;
134
+ /**
135
+ * Parameter determines wheter a user should wait for result of the transaction in the transaction
136
+ * service and be redirected back to the shop upon receiving confirmation or be redirected back to the shop immediately after payment.
137
+ *
138
+ * @type {boolean}
139
+ * @memberof Order
140
+ */
141
+ waitForResult?: boolean;
142
+ /**
143
+ * Acceptance of Przelewy24 regulations:
144
+ * false – display consent on p24 website (default),
145
+ * true – consent granted, do not display.
146
+ * In case the "true" parameter is sent, the consent – worded as follows – must be displayed on the Partner’s website: "I hereby state that I have read the regulations and information obligation of ”Przelewy24”.
147
+ * Under words regulations and information obligation there must be hyperlinks redirecting to websites with these documents. The checkbox must not be ticked by default.
148
+ *
149
+ * @type {boolean}
150
+ * @memberof Order
151
+ */
152
+ regulationAccept?: boolean;
153
+ /**
154
+ * Delivery cost
155
+ *
156
+ * @type {number}
157
+ * @memberof Order
158
+ */
159
+ shipping?: number;
160
+ /**
161
+ * Description forwarded to transfer's description (not in every payment methods).
162
+ *
163
+ * @type {string}
164
+ * @memberof Order
165
+ */
166
+ transferLabel?: string;
167
+ /**
168
+ * The parameter is necessary while using SDK libraries.
169
+ * The value passed in mobileLib parameter is always 1 and value passed in sdkVersion determines which version of library should be used.
170
+ *
171
+ * @type {number}
172
+ * @memberof Order
173
+ */
174
+ mobileLib?: number;
175
+ /**
176
+ * Version of mobile library. Determines if transaction is mobile.
177
+ *
178
+ * @type {string}
179
+ * @memberof Order
180
+ */
181
+ sdkVersion?: string;
182
+ /**
183
+ * Coding system for characters sent: ISO-8859-2, UTF-8, Windows-1250
184
+ *
185
+ * @type {Encoding}
186
+ * @memberof Order
187
+ */
188
+ encoding?: Encoding;
189
+ /**
190
+ * Special parameter for some payment flows e.g. BLIK and Card one-click.
191
+ *
192
+ * @type {string}
193
+ * @memberof Order
194
+ */
195
+ methodRefId?: string;
196
+ /**
197
+ * cart items
198
+ *
199
+ * @type {CartItem[]}
200
+ * @memberof Order
201
+ */
202
+ cart?: CartItem[];
203
+ /**
204
+ * Set of additional information about the transaction or the payer
205
+ *
206
+ * @type {Additional}
207
+ * @memberof Order
208
+ */
209
+ additional?: Additional;
210
+ }
211
+ //# sourceMappingURL=Order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../src/orders/Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,KAAK;IAClB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,EAAE,QAAQ,CAAC;IAEnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC;IAElB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Order.js","sourceRoot":"","sources":["../../src/orders/Order.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Data returned after order creation
3
+ *
4
+ * @export
5
+ * @interface OrderCreatedData
6
+ */
7
+ export interface OrderCreatedData {
8
+ /**
9
+ * Token to do a payment redirect
10
+ *
11
+ * @type {string}
12
+ * @memberof OrderCreatedData
13
+ */
14
+ token: string;
15
+ }
16
+ //# sourceMappingURL=OrderCreatedData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderCreatedData.d.ts","sourceRoot":"","sources":["../../src/orders/OrderCreatedData.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=OrderCreatedData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderCreatedData.js","sourceRoot":"","sources":["../../src/orders/OrderCreatedData.ts"],"names":[],"mappings":""}
@@ -0,0 +1,39 @@
1
+ import { ShippingType } from "../enums/ShippingType";
2
+ export interface Shipping {
3
+ /**
4
+ * Type of shipment
5
+ *
6
+ * @type {ShippingType}
7
+ * @memberof Shipping
8
+ */
9
+ type: ShippingType;
10
+ /**
11
+ * Shipment address: street and number
12
+ *
13
+ * @type {string}
14
+ * @memberof Shipping
15
+ */
16
+ address: string;
17
+ /**
18
+ * Shipment zip code
19
+ *
20
+ * @type {string}
21
+ * @memberof Shipping
22
+ */
23
+ zip: string;
24
+ /**
25
+ * Shipment city
26
+ *
27
+ * @type {string}
28
+ * @memberof Shipping
29
+ */
30
+ city: string;
31
+ /**
32
+ * Shipment country
33
+ *
34
+ * @type {string}
35
+ * @memberof Shipping
36
+ */
37
+ country: string;
38
+ }
39
+ //# sourceMappingURL=Shipping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shipping.d.ts","sourceRoot":"","sources":["../../src/orders/Shipping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,WAAW,QAAQ;IACrB;;;;;OAKG;IACH,IAAI,EAAE,YAAY,CAAC;IAEnB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Shipping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shipping.js","sourceRoot":"","sources":["../../src/orders/Shipping.ts"],"names":[],"mappings":""}
@@ -0,0 +1,54 @@
1
+ import { Order } from "./Order";
2
+ /**
3
+ * Split payment details for VAT transfer
4
+ *
5
+ * @export
6
+ * @interface SplitPaymentDetails
7
+ */
8
+ export interface SplitPaymentDetails {
9
+ /**
10
+ * VAT amount to be transferred
11
+ *
12
+ * @type {number}
13
+ * @memberof SplitPaymentDetails
14
+ */
15
+ vatAmount: number;
16
+ /**
17
+ * Invoice number
18
+ *
19
+ * @type {string}
20
+ * @memberof SplitPaymentDetails
21
+ */
22
+ invoiceNumber: string;
23
+ /**
24
+ * Tax identification number (NIP)
25
+ *
26
+ * @type {string}
27
+ * @memberof SplitPaymentDetails
28
+ */
29
+ nip: string;
30
+ /**
31
+ * Optional IBAN account number
32
+ *
33
+ * @type {string}
34
+ * @memberof SplitPaymentDetails
35
+ */
36
+ iban?: string;
37
+ }
38
+ /**
39
+ * Order with split payment details
40
+ *
41
+ * @export
42
+ * @interface SplitPaymentOrder
43
+ * @extends {Order}
44
+ */
45
+ export interface SplitPaymentOrder extends Order {
46
+ /**
47
+ * Split payment details
48
+ *
49
+ * @type {SplitPaymentDetails}
50
+ * @memberof SplitPaymentOrder
51
+ */
52
+ splitPaymentDetails: SplitPaymentDetails;
53
+ }
54
+ //# sourceMappingURL=SplitPayment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitPayment.d.ts","sourceRoot":"","sources":["../../src/orders/SplitPayment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAkB,SAAQ,KAAK;IAC5C;;;;;OAKG;IACH,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=SplitPayment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplitPayment.js","sourceRoot":"","sources":["../../src/orders/SplitPayment.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Transaction result
3
+ *
4
+ * @export
5
+ * @interface Transaction
6
+ */
7
+ export interface Transaction {
8
+ /**
9
+ * Token obtained
10
+ *
11
+ * @type {string}
12
+ * @memberof Transaction
13
+ */
14
+ token: string;
15
+ /**
16
+ * Link to pay
17
+ *
18
+ * @type {string}
19
+ * @memberof Transaction
20
+ */
21
+ link: string;
22
+ }
23
+ //# sourceMappingURL=Transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../src/orders/Transaction.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IACxB;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;CACf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.js","sourceRoot":"","sources":["../../src/orders/Transaction.ts"],"names":[],"mappings":""}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Transaction details
3
+ *
4
+ * @export
5
+ * @interface TransactionDetails
6
+ */
7
+ export interface TransactionDetails {
8
+ /**
9
+ * Transaction statement
10
+ *
11
+ * @type {string}
12
+ * @memberof TransactionDetails
13
+ */
14
+ statement: string;
15
+ /**
16
+ * Order ID from Przelewy24
17
+ *
18
+ * @type {number}
19
+ * @memberof TransactionDetails
20
+ */
21
+ orderId: number;
22
+ /**
23
+ * Transaction session ID from the Partner's system
24
+ *
25
+ * @type {string}
26
+ * @memberof TransactionDetails
27
+ */
28
+ sessionId: string;
29
+ /**
30
+ * Transaction status code
31
+ *
32
+ * @type {number}
33
+ * @memberof TransactionDetails
34
+ */
35
+ status: number;
36
+ /**
37
+ * Transaction amount
38
+ *
39
+ * @type {number}
40
+ * @memberof TransactionDetails
41
+ */
42
+ amount: number;
43
+ /**
44
+ * Transaction currency
45
+ *
46
+ * @type {"PLN"}
47
+ * @memberof TransactionDetails
48
+ */
49
+ currency: "PLN";
50
+ /**
51
+ * Transaction creation date
52
+ *
53
+ * @type {string}
54
+ * @memberof TransactionDetails
55
+ */
56
+ date: string;
57
+ /**
58
+ * Date when transaction was completed
59
+ *
60
+ * @type {string}
61
+ * @memberof TransactionDetails
62
+ */
63
+ dateOfTransaction: string;
64
+ /**
65
+ * Client email address
66
+ *
67
+ * @type {string}
68
+ * @memberof TransactionDetails
69
+ */
70
+ clientEmail: string;
71
+ /**
72
+ * MD5 hash of account data
73
+ *
74
+ * @type {string}
75
+ * @memberof TransactionDetails
76
+ */
77
+ accountMD5: string;
78
+ /**
79
+ * Payment method ID used
80
+ *
81
+ * @type {number}
82
+ * @memberof TransactionDetails
83
+ */
84
+ paymentMethod: number;
85
+ /**
86
+ * Transaction description
87
+ *
88
+ * @type {string}
89
+ * @memberof TransactionDetails
90
+ */
91
+ description: string;
92
+ /**
93
+ * Client name
94
+ *
95
+ * @type {string}
96
+ * @memberof TransactionDetails
97
+ */
98
+ clientName: string;
99
+ /**
100
+ * Client address
101
+ *
102
+ * @type {string}
103
+ * @memberof TransactionDetails
104
+ */
105
+ clientAddress: string;
106
+ /**
107
+ * Client city
108
+ *
109
+ * @type {string}
110
+ * @memberof TransactionDetails
111
+ */
112
+ clientCity: string;
113
+ /**
114
+ * Client postal code
115
+ *
116
+ * @type {string}
117
+ * @memberof TransactionDetails
118
+ */
119
+ clientPostcode: string;
120
+ /**
121
+ * Batch ID
122
+ *
123
+ * @type {number}
124
+ * @memberof TransactionDetails
125
+ */
126
+ batchId: number;
127
+ /**
128
+ * Transaction fee
129
+ *
130
+ * @type {string}
131
+ * @memberof TransactionDetails
132
+ */
133
+ fee: string;
134
+ }
135
+ //# sourceMappingURL=TransactionDetails.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionDetails.d.ts","sourceRoot":"","sources":["../../src/orders/TransactionDetails.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,QAAQ,EAAE,KAAK,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=TransactionDetails.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionDetails.js","sourceRoot":"","sources":["../../src/orders/TransactionDetails.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ export * from './Additional';
2
+ export * from './CartItem';
3
+ export * from './OfflineTransaction';
4
+ export * from './Order';
5
+ export * from './OrderCreatedData';
6
+ export * from './Shipping';
7
+ export * from './SplitPayment';
8
+ export * from './Transaction';
9
+ export * from './TransactionDetails';
10
+ //# 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,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,26 @@
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("./OfflineTransaction"), exports);
20
+ __exportStar(require("./Order"), exports);
21
+ __exportStar(require("./OrderCreatedData"), exports);
22
+ __exportStar(require("./Shipping"), exports);
23
+ __exportStar(require("./SplitPayment"), exports);
24
+ __exportStar(require("./Transaction"), exports);
25
+ __exportStar(require("./TransactionDetails"), exports);
26
+ //# 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,uDAAqC;AACrC,0CAAwB;AACxB,qDAAmC;AACnC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,uDAAqC"}
@@ -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