@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.
- package/.yarn/install-state.gz +0 -0
- package/.yarnrc.yml +1 -0
- package/LICENSE +21 -0
- package/README.md +330 -0
- package/dist/blik/Alias.d.ts +80 -0
- package/dist/blik/Alias.d.ts.map +1 -0
- package/dist/blik/Alias.js +3 -0
- package/dist/blik/Alias.js.map +1 -0
- package/dist/blik/ChargeBlik.d.ts +151 -0
- package/dist/blik/ChargeBlik.d.ts.map +1 -0
- package/dist/blik/ChargeBlik.js +4 -0
- package/dist/blik/ChargeBlik.js.map +1 -0
- package/dist/blik/RecurringParams.d.ts +37 -0
- package/dist/blik/RecurringParams.d.ts.map +1 -0
- package/dist/blik/RecurringParams.js +3 -0
- package/dist/blik/RecurringParams.js.map +1 -0
- package/dist/blik/index.d.ts +4 -0
- package/dist/blik/index.d.ts.map +1 -0
- package/dist/blik/index.js +20 -0
- package/dist/blik/index.js.map +1 -0
- package/dist/cards/CardInfo.d.ts +45 -0
- package/dist/cards/CardInfo.d.ts.map +1 -0
- package/dist/cards/CardInfo.js +3 -0
- package/dist/cards/CardInfo.js.map +1 -0
- package/dist/cards/CardNotification.d.ts +178 -0
- package/dist/cards/CardNotification.d.ts.map +1 -0
- package/dist/cards/CardNotification.js +3 -0
- package/dist/cards/CardNotification.js.map +1 -0
- package/dist/cards/ChargeCard.d.ts +81 -0
- package/dist/cards/ChargeCard.d.ts.map +1 -0
- package/dist/cards/ChargeCard.js +3 -0
- package/dist/cards/ChargeCard.js.map +1 -0
- package/dist/cards/index.d.ts +4 -0
- package/dist/cards/index.d.ts.map +1 -0
- package/dist/cards/index.js +20 -0
- package/dist/cards/index.js.map +1 -0
- package/dist/enums/Channel.d.ts +18 -0
- package/dist/enums/Channel.d.ts.map +1 -0
- package/dist/enums/Channel.js +22 -0
- package/dist/enums/Channel.js.map +1 -0
- package/dist/enums/Country.d.ts +67 -0
- package/dist/enums/Country.d.ts.map +1 -0
- package/dist/enums/Country.js +71 -0
- package/dist/enums/Country.js.map +1 -0
- package/dist/enums/Currency.d.ts +36 -0
- package/dist/enums/Currency.d.ts.map +1 -0
- package/dist/enums/Currency.js +40 -0
- package/dist/enums/Currency.js.map +1 -0
- package/dist/enums/Encoding.d.ts +35 -0
- package/dist/enums/Encoding.d.ts.map +1 -0
- package/dist/enums/Encoding.js +39 -0
- package/dist/enums/Encoding.js.map +1 -0
- package/dist/enums/Language.d.ts +37 -0
- package/dist/enums/Language.d.ts.map +1 -0
- package/dist/enums/Language.js +41 -0
- package/dist/enums/Language.js.map +1 -0
- package/dist/enums/ShippingType.d.ts +13 -0
- package/dist/enums/ShippingType.d.ts.map +1 -0
- package/dist/enums/ShippingType.js +17 -0
- package/dist/enums/ShippingType.js.map +1 -0
- package/dist/enums/index.d.ts +7 -0
- package/dist/enums/index.d.ts.map +1 -0
- package/dist/enums/index.js +23 -0
- package/dist/enums/index.js.map +1 -0
- package/dist/errors/P24Error.d.ts +38 -0
- package/dist/errors/P24Error.d.ts.map +1 -0
- package/dist/errors/P24Error.js +49 -0
- package/dist/errors/P24Error.js.map +1 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +18 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/orders/Additional.d.ts +17 -0
- package/dist/orders/Additional.d.ts.map +1 -0
- package/dist/orders/Additional.js +3 -0
- package/dist/orders/Additional.js.map +1 -0
- package/dist/orders/CartItem.d.ts +58 -0
- package/dist/orders/CartItem.d.ts.map +1 -0
- package/dist/orders/CartItem.js +3 -0
- package/dist/orders/CartItem.js.map +1 -0
- package/dist/orders/OfflineTransaction.d.ts +51 -0
- package/dist/orders/OfflineTransaction.d.ts.map +1 -0
- package/dist/orders/OfflineTransaction.js +3 -0
- package/dist/orders/OfflineTransaction.js.map +1 -0
- package/dist/orders/Order.d.ts +211 -0
- package/dist/orders/Order.d.ts.map +1 -0
- package/dist/orders/Order.js +3 -0
- package/dist/orders/Order.js.map +1 -0
- package/dist/orders/OrderCreatedData.d.ts +16 -0
- package/dist/orders/OrderCreatedData.d.ts.map +1 -0
- package/dist/orders/OrderCreatedData.js +3 -0
- package/dist/orders/OrderCreatedData.js.map +1 -0
- package/dist/orders/Shipping.d.ts +39 -0
- package/dist/orders/Shipping.d.ts.map +1 -0
- package/dist/orders/Shipping.js +3 -0
- package/dist/orders/Shipping.js.map +1 -0
- package/dist/orders/SplitPayment.d.ts +54 -0
- package/dist/orders/SplitPayment.d.ts.map +1 -0
- package/dist/orders/SplitPayment.js +3 -0
- package/dist/orders/SplitPayment.js.map +1 -0
- package/dist/orders/Transaction.d.ts +23 -0
- package/dist/orders/Transaction.d.ts.map +1 -0
- package/dist/orders/Transaction.js +3 -0
- package/dist/orders/Transaction.js.map +1 -0
- package/dist/orders/TransactionDetails.d.ts +135 -0
- package/dist/orders/TransactionDetails.d.ts.map +1 -0
- package/dist/orders/TransactionDetails.js +3 -0
- package/dist/orders/TransactionDetails.js.map +1 -0
- package/dist/orders/index.d.ts +10 -0
- package/dist/orders/index.d.ts.map +1 -0
- package/dist/orders/index.js +26 -0
- package/dist/orders/index.js.map +1 -0
- package/dist/p24/BaseParameters.d.ts +46 -0
- package/dist/p24/BaseParameters.d.ts.map +1 -0
- package/dist/p24/BaseParameters.js +27 -0
- package/dist/p24/BaseParameters.js.map +1 -0
- package/dist/p24/P24.d.ts +241 -0
- package/dist/p24/P24.d.ts.map +1 -0
- package/dist/p24/P24.js +484 -0
- package/dist/p24/P24.js.map +1 -0
- package/dist/p24/P24Options.d.ts +16 -0
- package/dist/p24/P24Options.d.ts.map +1 -0
- package/dist/p24/P24Options.js +3 -0
- package/dist/p24/P24Options.js.map +1 -0
- package/dist/p24/endpoints.d.ts +13 -0
- package/dist/p24/endpoints.d.ts.map +1 -0
- package/dist/p24/endpoints.js +16 -0
- package/dist/p24/endpoints.js.map +1 -0
- package/dist/p24/index.d.ts +6 -0
- package/dist/p24/index.d.ts.map +1 -0
- package/dist/p24/index.js +22 -0
- package/dist/p24/index.js.map +1 -0
- package/dist/p24/ips.d.ts +2 -0
- package/dist/p24/ips.d.ts.map +1 -0
- package/dist/p24/ips.js +11 -0
- package/dist/p24/ips.js.map +1 -0
- package/dist/payment/PaymentMethod.d.ts +76 -0
- package/dist/payment/PaymentMethod.d.ts.map +1 -0
- package/dist/payment/PaymentMethod.js +3 -0
- package/dist/payment/PaymentMethod.js.map +1 -0
- package/dist/payment/index.d.ts +2 -0
- package/dist/payment/index.d.ts.map +1 -0
- package/dist/payment/index.js +18 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/refund/Refund.d.ts +37 -0
- package/dist/refund/Refund.d.ts.map +1 -0
- package/dist/refund/Refund.js +3 -0
- package/dist/refund/Refund.js.map +1 -0
- package/dist/refund/RefundRequest.d.ts +38 -0
- package/dist/refund/RefundRequest.d.ts.map +1 -0
- package/dist/refund/RefundRequest.js +3 -0
- package/dist/refund/RefundRequest.js.map +1 -0
- package/dist/refund/RefundResult.d.ts +51 -0
- package/dist/refund/RefundResult.d.ts.map +1 -0
- package/dist/refund/RefundResult.js +3 -0
- package/dist/refund/RefundResult.js.map +1 -0
- package/dist/refund/TransactionWithRefunds.d.ts +101 -0
- package/dist/refund/TransactionWithRefunds.d.ts.map +1 -0
- package/dist/refund/TransactionWithRefunds.js +3 -0
- package/dist/refund/TransactionWithRefunds.js.map +1 -0
- package/dist/refund/index.d.ts +5 -0
- package/dist/refund/index.d.ts.map +1 -0
- package/dist/refund/index.js +21 -0
- package/dist/refund/index.js.map +1 -0
- package/dist/responses/ErrorResponse.d.ts +17 -0
- package/dist/responses/ErrorResponse.d.ts.map +1 -0
- package/dist/responses/ErrorResponse.js +3 -0
- package/dist/responses/ErrorResponse.js.map +1 -0
- package/dist/responses/SuccessResponse.d.ts +17 -0
- package/dist/responses/SuccessResponse.d.ts.map +1 -0
- package/dist/responses/SuccessResponse.js +3 -0
- package/dist/responses/SuccessResponse.js.map +1 -0
- package/dist/responses/index.d.ts +3 -0
- package/dist/responses/index.d.ts.map +1 -0
- package/dist/responses/index.js +19 -0
- package/dist/responses/index.js.map +1 -0
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/hash.js +14 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/verify/NotificationRequest.d.ts +82 -0
- package/dist/verify/NotificationRequest.d.ts.map +1 -0
- package/dist/verify/NotificationRequest.js +3 -0
- package/dist/verify/NotificationRequest.js.map +1 -0
- package/dist/verify/Verification.d.ts +38 -0
- package/dist/verify/Verification.d.ts.map +1 -0
- package/dist/verify/Verification.js +3 -0
- package/dist/verify/Verification.js.map +1 -0
- package/dist/verify/VerificationData.d.ts +16 -0
- package/dist/verify/VerificationData.d.ts.map +1 -0
- package/dist/verify/VerificationData.js +3 -0
- package/dist/verify/VerificationData.js.map +1 -0
- package/dist/verify/index.d.ts +4 -0
- package/dist/verify/index.d.ts.map +1 -0
- package/dist/verify/index.js +20 -0
- package/dist/verify/index.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseParameters.js","sourceRoot":"","sources":["../../src/p24/BaseParameters.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG"}
|
|
@@ -0,0 +1,241 @@
|
|
|
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 } from '../orders';
|
|
27
|
+
import { Verification, NotificationRequest } from '../verify';
|
|
28
|
+
import { RefundRequest, RefundResult } from '../refund';
|
|
29
|
+
import { TransactionDetails } from '../orders/TransactionDetails';
|
|
30
|
+
import { Currency } from '../enums';
|
|
31
|
+
import { PaymentMethod } from '../payment/PaymentMethod';
|
|
32
|
+
import { OfflineTransaction } from '../orders/OfflineTransaction';
|
|
33
|
+
import { SplitPaymentOrder } from '../orders/SplitPayment';
|
|
34
|
+
import { TransactionWithRefunds } from '../refund/TransactionWithRefunds';
|
|
35
|
+
import { ChargeCard3DSParams, ChargeCardParams, ChargeCardDirectParams } from '../cards/ChargeCard';
|
|
36
|
+
import { CardPaymentNotification } from '../cards/CardNotification';
|
|
37
|
+
import { BlikAlias } from '../blik/Alias';
|
|
38
|
+
import { ChargeBlikByAliasParams, ChargeBlikByCodeParams, ChargeBlikData } from '../blik/ChargeBlik';
|
|
39
|
+
/**
|
|
40
|
+
* Represents a P24 payment system
|
|
41
|
+
*
|
|
42
|
+
* @export
|
|
43
|
+
* @class P24
|
|
44
|
+
*/
|
|
45
|
+
export declare class P24 {
|
|
46
|
+
private merchantId;
|
|
47
|
+
private posId;
|
|
48
|
+
private crcKey;
|
|
49
|
+
private apiKey;
|
|
50
|
+
private client;
|
|
51
|
+
private baseUrl;
|
|
52
|
+
private options;
|
|
53
|
+
private baseParameters;
|
|
54
|
+
/**
|
|
55
|
+
* Creates an instance of Przelewy24.
|
|
56
|
+
* @param {number} merchantId Merchant ID given by Przelewy24
|
|
57
|
+
* @param {number} posId Shop ID (defaults to merchantId)
|
|
58
|
+
* @param {string} apiKey API Key from P24 panel(Klucz do raportów)
|
|
59
|
+
* @param {string} crcKey CRC key from P24 panel
|
|
60
|
+
* @param {P24Options} [options={ sandbox: false }] - additional options
|
|
61
|
+
* @memberof P24
|
|
62
|
+
*/
|
|
63
|
+
constructor(merchantId: number, posId: number, apiKey: string, crcKey: string, options?: P24Options);
|
|
64
|
+
/**
|
|
65
|
+
* Centralized error handler for API calls
|
|
66
|
+
* @private
|
|
67
|
+
* @param {any} error - The caught error
|
|
68
|
+
* @param {string} defaultMessage - Default error message
|
|
69
|
+
* @throws {P24Error}
|
|
70
|
+
*/
|
|
71
|
+
private handleApiError;
|
|
72
|
+
/**
|
|
73
|
+
* Test access to the service
|
|
74
|
+
*
|
|
75
|
+
* @returns {Promise<boolean>}
|
|
76
|
+
* @throws {P24Error}
|
|
77
|
+
* @memberof P24
|
|
78
|
+
*/
|
|
79
|
+
testAccess(): Promise<boolean>;
|
|
80
|
+
/**
|
|
81
|
+
* Creates a transaction
|
|
82
|
+
*
|
|
83
|
+
* @param {Order} order - order to be created
|
|
84
|
+
* @returns {Promise<Transaction>}
|
|
85
|
+
* @throws {P24Error}
|
|
86
|
+
* @memberof P24
|
|
87
|
+
*/
|
|
88
|
+
createTransaction(order: Order): Promise<Transaction>;
|
|
89
|
+
/**
|
|
90
|
+
* Verify transaction
|
|
91
|
+
*
|
|
92
|
+
* @param {Verification} verification - verification request
|
|
93
|
+
* @returns {Promise<boolean>}
|
|
94
|
+
* @throws {P24Error}
|
|
95
|
+
* @memberof P24
|
|
96
|
+
*/
|
|
97
|
+
verifyTransaction(verification: Verification): Promise<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Verify notification transaction with our CRC Key
|
|
100
|
+
*
|
|
101
|
+
* @param {NotificationRequest} notificationRequest
|
|
102
|
+
* @returns {boolean}
|
|
103
|
+
* @memberof P24
|
|
104
|
+
*/
|
|
105
|
+
verifyNotification(notificationRequest: NotificationRequest): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Handle refund
|
|
108
|
+
*
|
|
109
|
+
* @param {RefundRequest} refundRequest
|
|
110
|
+
* @returns {Promise<RefundResult[]>}
|
|
111
|
+
* @memberof P24
|
|
112
|
+
*/
|
|
113
|
+
refund(refundRequest: RefundRequest): Promise<RefundResult[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Get transaction details
|
|
116
|
+
*
|
|
117
|
+
* @param {string} sessionId
|
|
118
|
+
* @returns {Promise<TransactionDetails>}
|
|
119
|
+
* @memberof P24
|
|
120
|
+
*/
|
|
121
|
+
getTransactionDetails(sessionId: string): Promise<TransactionDetails>;
|
|
122
|
+
/**
|
|
123
|
+
* List payment methods
|
|
124
|
+
*
|
|
125
|
+
* @param {string} lang - Language code ('en' or 'pl')
|
|
126
|
+
* @returns {PaymentMethod[]} - List of payment methods
|
|
127
|
+
* @memberof P24
|
|
128
|
+
*/
|
|
129
|
+
listPaymentMethods(lang: string, options?: {
|
|
130
|
+
amount?: number;
|
|
131
|
+
currency?: Currency;
|
|
132
|
+
}): Promise<PaymentMethod[]>;
|
|
133
|
+
/**
|
|
134
|
+
* Register offline transaction
|
|
135
|
+
*
|
|
136
|
+
* @param {string} token - Transaction token obtained with createTransaction
|
|
137
|
+
* @returns {Promise<OfflineTransaction>} - Offline transaction details
|
|
138
|
+
* @throws {P24Error}
|
|
139
|
+
* @memberof P24
|
|
140
|
+
*/
|
|
141
|
+
registerOfflineTransaction(token: string): Promise<OfflineTransaction>;
|
|
142
|
+
/**
|
|
143
|
+
* Split payment
|
|
144
|
+
*
|
|
145
|
+
* @param {SplitPaymentOrder} order - order with split payment details
|
|
146
|
+
* @returns {Promise<Transaction>}
|
|
147
|
+
* @throws {P24Error}
|
|
148
|
+
* @memberof P24
|
|
149
|
+
*/
|
|
150
|
+
splitPayment(order: SplitPaymentOrder): Promise<Transaction>;
|
|
151
|
+
/**
|
|
152
|
+
* Get refund by orderID
|
|
153
|
+
*
|
|
154
|
+
* @param {string} orderId - Order ID
|
|
155
|
+
* @returns {Promise<TransactionWithRefunds>} - List of refunds
|
|
156
|
+
* @throws {P24Error}
|
|
157
|
+
* @memberof P24
|
|
158
|
+
*/
|
|
159
|
+
getRefundsByOrderId(orderId: string): Promise<TransactionWithRefunds>;
|
|
160
|
+
/**
|
|
161
|
+
* Charge card with 3DS
|
|
162
|
+
*
|
|
163
|
+
* @param {string} token - Card token
|
|
164
|
+
* @returns {Promise<ChargeCard3DSParams>} - 3DS Data
|
|
165
|
+
* @throws {P24Error}
|
|
166
|
+
* @memberof P24
|
|
167
|
+
*/
|
|
168
|
+
chargeCard3DS(token: string): Promise<ChargeCard3DSParams>;
|
|
169
|
+
/**
|
|
170
|
+
* Charge card without 3DS
|
|
171
|
+
*
|
|
172
|
+
* @param {string} token - Card token
|
|
173
|
+
* @returns {Promise<ChargeCardParams>} - Charge card data
|
|
174
|
+
* @throws {P24Error}
|
|
175
|
+
* @memberof P24
|
|
176
|
+
*/
|
|
177
|
+
chargeCard(token: string): Promise<ChargeCardParams>;
|
|
178
|
+
/**
|
|
179
|
+
* Charge card directly
|
|
180
|
+
*
|
|
181
|
+
* @param {ChargeCardDirectParams} params - Direct charge parameters
|
|
182
|
+
* @returns {Promise<ChargeCardParams>} - Charge card data
|
|
183
|
+
* @throws {P24Error}
|
|
184
|
+
* @memberof P24
|
|
185
|
+
*/
|
|
186
|
+
chargeCardDirect(params: ChargeCardDirectParams): Promise<ChargeCardParams | ChargeCard3DSParams>;
|
|
187
|
+
/**
|
|
188
|
+
* Verifies card payment notification
|
|
189
|
+
*
|
|
190
|
+
* @param {CardNotificationRequest} cardNotificationRequest - Card notification request
|
|
191
|
+
* @returns {boolean} - true on valid notification
|
|
192
|
+
* @memberof P24
|
|
193
|
+
*/
|
|
194
|
+
verifyCardNotification(cardNotificationRequest: CardPaymentNotification): boolean;
|
|
195
|
+
/**
|
|
196
|
+
* Charge BLIK account by code
|
|
197
|
+
*
|
|
198
|
+
* @param {ChargeBlikByCodeParams} params - BLIK charge parameters
|
|
199
|
+
* @returns {Promise<ChargeBlikData>} - BLIK charge data
|
|
200
|
+
* @throws {P24Error}
|
|
201
|
+
* @memberof P24
|
|
202
|
+
*/
|
|
203
|
+
chargeBlikByCode(params: ChargeBlikByCodeParams): Promise<ChargeBlikData>;
|
|
204
|
+
/**
|
|
205
|
+
* Charge BLIK account by alias
|
|
206
|
+
*
|
|
207
|
+
* @param {ChargeBlikByAliasParams} params - BLIK charge parameters
|
|
208
|
+
* @returns {Promise<ChargeBlikData>} - BLIK charge data
|
|
209
|
+
* @throws {P24Error}
|
|
210
|
+
* @memberof P24
|
|
211
|
+
*/
|
|
212
|
+
chargeBlikByAlias(params: ChargeBlikByAliasParams): Promise<ChargeBlikData>;
|
|
213
|
+
/**
|
|
214
|
+
* Get BLIK aliases by email
|
|
215
|
+
*
|
|
216
|
+
* @param {string} email - Customer email
|
|
217
|
+
* @returns {Promise<BlikAlias[]>} - List of BLIK aliases
|
|
218
|
+
* @throws {P24Error}
|
|
219
|
+
* @memberof P24
|
|
220
|
+
*/
|
|
221
|
+
getBlikAliasesByEmail(email: string): Promise<BlikAlias[]>;
|
|
222
|
+
/**
|
|
223
|
+
* Get BLIK aliases by email (for aliases registered with aliasValue and aliasLabel fields)
|
|
224
|
+
*
|
|
225
|
+
* @param {string} email - Customer email
|
|
226
|
+
* @returns {Promise<BlikAlias[]>} - List of BLIK aliases
|
|
227
|
+
* @throws {P24Error}
|
|
228
|
+
* @memberof P24
|
|
229
|
+
*/
|
|
230
|
+
getBlikAliasesByEmailCustom(email: string): Promise<BlikAlias[]>;
|
|
231
|
+
/**
|
|
232
|
+
* Validates IP with P24 backends
|
|
233
|
+
*
|
|
234
|
+
* @static
|
|
235
|
+
* @param {string} ip - IP Address
|
|
236
|
+
* @returns {boolean} - true on validated ip
|
|
237
|
+
* @memberof Przelewy24
|
|
238
|
+
*/
|
|
239
|
+
static isIpValid(ip: string): boolean;
|
|
240
|
+
}
|
|
241
|
+
//# 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,EACd,MAAM,WAAW,CAAC;AAenB,OAAO,EACH,YAAY,EACZ,mBAAmB,EAEtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACH,aAAa,EACb,YAAY,EACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,qBAAq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