@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.
- package/LICENSE +21 -0
- package/README.md +147 -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 +35 -0
- package/dist/errors/P24Error.d.ts.map +1 -0
- package/dist/errors/P24Error.js +42 -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 +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -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/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 +10 -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/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/TransactionBySessionIdResponse.d.ts +136 -0
- package/dist/orders/TransactionBySessionIdResponse.d.ts.map +1 -0
- package/dist/orders/TransactionBySessionIdResponse.js +3 -0
- package/dist/orders/TransactionBySessionIdResponse.js.map +1 -0
- package/dist/orders/index.d.ts +8 -0
- package/dist/orders/index.d.ts.map +1 -0
- package/dist/orders/index.js +24 -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 +114 -0
- package/dist/p24/P24.d.ts.map +1 -0
- package/dist/p24/P24.js +250 -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 +9 -0
- package/dist/p24/endpoints.d.ts.map +1 -0
- package/dist/p24/endpoints.js +12 -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/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/index.d.ts +4 -0
- package/dist/refund/index.d.ts.map +1 -0
- package/dist/refund/index.js +20 -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 +15 -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 +36 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2019 Kasun Vithanage
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# Przelewy24 for NodeJS
|
|
2
|
+
|
|
3
|
+
   
|
|
4
|
+
|
|
5
|
+
NodeJS Library for [**Przelewy24**](https://przelewy24.pl/). This library is written in Typescript to provide
|
|
6
|
+
best typesafety.
|
|
7
|
+
|
|
8
|
+
This library provides an elegant way to create/verify transactions easily.
|
|
9
|
+
|
|
10
|
+
**Note: Now this library uses the new REST API availiable in [here](https://developers.przelewy24.pl/index.php?en).**
|
|
11
|
+
|
|
12
|
+
> Previous legacy API support is still availiable in **v1.1.1**
|
|
13
|
+
> Future versions will support new REST API only, If you use legacy API please use that version
|
|
14
|
+
|
|
15
|
+
## Documentation
|
|
16
|
+
|
|
17
|
+
Documentation can be in read [here](https://ingameltd.github.io/node-przelewy24).
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm install --save @ingameltd/node-przelewy24
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Typescript
|
|
26
|
+
|
|
27
|
+
### Importing
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import {
|
|
31
|
+
P24,
|
|
32
|
+
Order,
|
|
33
|
+
Currency,
|
|
34
|
+
Country,
|
|
35
|
+
Language,
|
|
36
|
+
NotificationRequest,
|
|
37
|
+
Verification
|
|
38
|
+
} from "@ingameltd/node-przelewy24";
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Initialization
|
|
42
|
+
|
|
43
|
+
- **merchantId** : ID given by P24
|
|
44
|
+
- **posId** : Given by P24(often this referes to Merchant ID)
|
|
45
|
+
- **apiKey** : API Key from p24 panel(Klucz do raportów)
|
|
46
|
+
- **crcKey** : CRC value obtained from p24 panel
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const p24 = new P24(
|
|
50
|
+
merchantId,
|
|
51
|
+
posId,
|
|
52
|
+
apiKey,
|
|
53
|
+
crcKey,
|
|
54
|
+
{
|
|
55
|
+
sandbox: false // enable or disable sandbox
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Testing access to P24
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
const result = await p24.testAccess();
|
|
64
|
+
console.log(result); // true on success or an error being throw P24Error
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Get payment link
|
|
68
|
+
|
|
69
|
+
Prepare following details to initiate a payment
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
const order: Order = {
|
|
73
|
+
sessionId: "c837e1a3-c5a3-4e89-adf1-05faffd8913b",
|
|
74
|
+
amount: 1000, // Transaction amount expressed in lowest currency unit, e.g. 1.23 PLN = 123
|
|
75
|
+
currency: Currency.PLN,
|
|
76
|
+
description: "test order",
|
|
77
|
+
email: "john.doe@example.com",
|
|
78
|
+
country: Country.Poland,
|
|
79
|
+
language: Language.PL,
|
|
80
|
+
urlReturn: "http://myawesomeapp.com/continue",
|
|
81
|
+
urlStatus: "http://myawesomeapp.com/p24callback", // callback to get notification
|
|
82
|
+
timeLimit: 15, // 15min
|
|
83
|
+
encoding: Encoding.UTF8,
|
|
84
|
+
}
|
|
85
|
+
const result = await p24.createTransaction(order)
|
|
86
|
+
console.log(result) // prints a valid url to pay the payment or throws an error
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Verify Notification
|
|
90
|
+
|
|
91
|
+
P24 system will send you a notification to the `urlStatus` provided in
|
|
92
|
+
transaction order. You need to **verify** this Notification request before actually **Verify Transaction**
|
|
93
|
+
|
|
94
|
+
```typescript
|
|
95
|
+
const verify: NotificationRequest = req.body
|
|
96
|
+
const res = p24.verifyNotification(verify)
|
|
97
|
+
console.log(res) // true when the Notification is valid
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Verifies a transaction with P24
|
|
101
|
+
|
|
102
|
+
To accept the payment to your merchant account, after validating the Notification
|
|
103
|
+
request, you need to verify the transaction with P24 system. **If you don't do that the funds will not be transferred into your account**.
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
// extract all information from callback request
|
|
107
|
+
const verifyRequest: Verification = {
|
|
108
|
+
amount: 1000,
|
|
109
|
+
currency: Currency.PLN,
|
|
110
|
+
orderId: 3030,
|
|
111
|
+
sessionId: 'c837e1a3-c5a3-4e89-adf1-05faffd8913b'
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const res = await p24.verifyTransaction(verifyRequest)
|
|
115
|
+
console.log(res) // true on success otherwise P24Error
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Refund a requst
|
|
119
|
+
|
|
120
|
+
To refund the customer you need to open up a refund request
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
const ref = {
|
|
124
|
+
refundsUuid: '94c1fb0b-f40f-4201-b2a0-f4166839d06c',
|
|
125
|
+
requestId: 'afa379ac-c3ca-43d0-892f-e7a3f13ee4cc',
|
|
126
|
+
refunds: [
|
|
127
|
+
{
|
|
128
|
+
amount: 1000,
|
|
129
|
+
description: 'test',
|
|
130
|
+
orderId: 3030,
|
|
131
|
+
sessionId: 'c837e1a3-c5a3-4e89-adf1-05faffd8913b'
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const result = await p24.refund(ref)
|
|
137
|
+
console.log(result) // returns a SuccessResponse<RefundResult[]> where you can find about each refund request in array
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Validate IP
|
|
141
|
+
|
|
142
|
+
Library provides method to validate IP addresses with P24 backends
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
const valid = Przelewy24.isIpValid("127.0.0.1");
|
|
146
|
+
console.log(valid); // output false if IP is not from p24
|
|
147
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channels of payment
|
|
3
|
+
*
|
|
4
|
+
* @export
|
|
5
|
+
* @enum {number}
|
|
6
|
+
*/
|
|
7
|
+
export declare enum Channel {
|
|
8
|
+
Card = 1,
|
|
9
|
+
Transfer = 2,
|
|
10
|
+
TraditionalTransfer = 4,
|
|
11
|
+
NA = 8,
|
|
12
|
+
All = 16,
|
|
13
|
+
UsePrePayment = 32,
|
|
14
|
+
OnlyPayByLink = 64,
|
|
15
|
+
InstalmentPaymentForms = 128,
|
|
16
|
+
WalletsToActivate = 256
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Channel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Channel.d.ts","sourceRoot":"","sources":["../../src/enums/Channel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,OAAO;IACf,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,mBAAmB,IAAI;IACvB,EAAE,IAAI;IACN,GAAG,KAAK;IACR,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,sBAAsB,MAAM;IAC5B,iBAAiB,MAAM;CAC1B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Channel = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Channels of payment
|
|
6
|
+
*
|
|
7
|
+
* @export
|
|
8
|
+
* @enum {number}
|
|
9
|
+
*/
|
|
10
|
+
var Channel;
|
|
11
|
+
(function (Channel) {
|
|
12
|
+
Channel[Channel["Card"] = 1] = "Card";
|
|
13
|
+
Channel[Channel["Transfer"] = 2] = "Transfer";
|
|
14
|
+
Channel[Channel["TraditionalTransfer"] = 4] = "TraditionalTransfer";
|
|
15
|
+
Channel[Channel["NA"] = 8] = "NA";
|
|
16
|
+
Channel[Channel["All"] = 16] = "All";
|
|
17
|
+
Channel[Channel["UsePrePayment"] = 32] = "UsePrePayment";
|
|
18
|
+
Channel[Channel["OnlyPayByLink"] = 64] = "OnlyPayByLink";
|
|
19
|
+
Channel[Channel["InstalmentPaymentForms"] = 128] = "InstalmentPaymentForms";
|
|
20
|
+
Channel[Channel["WalletsToActivate"] = 256] = "WalletsToActivate";
|
|
21
|
+
})(Channel = exports.Channel || (exports.Channel = {}));
|
|
22
|
+
//# sourceMappingURL=Channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/enums/Channel.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,OAUX;AAVD,WAAY,OAAO;IACf,qCAAQ,CAAA;IACR,6CAAY,CAAA;IACZ,mEAAuB,CAAA;IACvB,iCAAM,CAAA;IACN,oCAAQ,CAAA;IACR,wDAAkB,CAAA;IAClB,wDAAkB,CAAA;IAClB,2EAA4B,CAAA;IAC5B,iEAAuB,CAAA;AAC3B,CAAC,EAVW,OAAO,GAAP,eAAO,KAAP,eAAO,QAUlB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
* Country Code
|
|
27
|
+
*
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
export declare enum Country {
|
|
31
|
+
Andorra = "AD",
|
|
32
|
+
Austria = "AT",
|
|
33
|
+
Belgium = "BE",
|
|
34
|
+
Cyprus = "CY",
|
|
35
|
+
CzechRepublic = "CZ",
|
|
36
|
+
Denmark = "DK",
|
|
37
|
+
Estonia = "EE",
|
|
38
|
+
Finland = "FI",
|
|
39
|
+
France = "FR",
|
|
40
|
+
Greece = "EL",
|
|
41
|
+
Spain = "ES",
|
|
42
|
+
Norway = "NO",
|
|
43
|
+
Poland = "PL",
|
|
44
|
+
Portugal = "PT",
|
|
45
|
+
SanMarino = "SM",
|
|
46
|
+
Slovakia = "SK",
|
|
47
|
+
Slovenia = "SI",
|
|
48
|
+
Switzerland = "CH",
|
|
49
|
+
Sweden = "SE",
|
|
50
|
+
Hungary = "HU",
|
|
51
|
+
GreatBritain = "GB",
|
|
52
|
+
Italy = "IT",
|
|
53
|
+
Netherland = "NL",
|
|
54
|
+
Ireland = "IE",
|
|
55
|
+
Island = "IS",
|
|
56
|
+
Lithuania = "LT",
|
|
57
|
+
Latvia = "LV",
|
|
58
|
+
Luxemburg = "LU",
|
|
59
|
+
Malta = "MT",
|
|
60
|
+
USA = "US",
|
|
61
|
+
Canada = "CA",
|
|
62
|
+
Japan = "JP",
|
|
63
|
+
Ukraine = "UA",
|
|
64
|
+
Belarus = "BY",
|
|
65
|
+
Russia = "RU"
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=Country.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Country.d.ts","sourceRoot":"","sources":["../../src/enums/Country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;GAIG;AACH,oBAAY,OAAO;IACf,OAAO,OAAO;IACd,OAAO,OAAO;IACd,OAAO,OAAO;IACd,MAAM,OAAO;IACb,aAAa,OAAO;IACpB,OAAO,OAAO;IACd,OAAO,OAAO;IACd,OAAO,OAAO;IACd,MAAM,OAAO;IACb,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,MAAM,OAAO;IACb,MAAM,OAAO;IACb,QAAQ,OAAO;IACf,SAAS,OAAO;IAChB,QAAQ,OAAO;IACf,QAAQ,OAAO;IACf,WAAW,OAAO;IAClB,MAAM,OAAO;IACb,OAAO,OAAO;IACd,YAAY,OAAO;IACnB,KAAK,OAAO;IACZ,UAAU,OAAO;IACjB,OAAO,OAAO;IACd,MAAM,OAAO;IACb,SAAS,OAAO;IAChB,MAAM,OAAO;IACb,SAAS,OAAO;IAChB,KAAK,OAAO;IACZ,GAAG,OAAO;IACV,MAAM,OAAO;IACb,KAAK,OAAO;IACZ,OAAO,OAAO;IACd,OAAO,OAAO;IACd,MAAM,OAAO;CAChB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.Country = void 0;
|
|
28
|
+
/**
|
|
29
|
+
* Country Code
|
|
30
|
+
*
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var Country;
|
|
34
|
+
(function (Country) {
|
|
35
|
+
Country["Andorra"] = "AD";
|
|
36
|
+
Country["Austria"] = "AT";
|
|
37
|
+
Country["Belgium"] = "BE";
|
|
38
|
+
Country["Cyprus"] = "CY";
|
|
39
|
+
Country["CzechRepublic"] = "CZ";
|
|
40
|
+
Country["Denmark"] = "DK";
|
|
41
|
+
Country["Estonia"] = "EE";
|
|
42
|
+
Country["Finland"] = "FI";
|
|
43
|
+
Country["France"] = "FR";
|
|
44
|
+
Country["Greece"] = "EL";
|
|
45
|
+
Country["Spain"] = "ES";
|
|
46
|
+
Country["Norway"] = "NO";
|
|
47
|
+
Country["Poland"] = "PL";
|
|
48
|
+
Country["Portugal"] = "PT";
|
|
49
|
+
Country["SanMarino"] = "SM";
|
|
50
|
+
Country["Slovakia"] = "SK";
|
|
51
|
+
Country["Slovenia"] = "SI";
|
|
52
|
+
Country["Switzerland"] = "CH";
|
|
53
|
+
Country["Sweden"] = "SE";
|
|
54
|
+
Country["Hungary"] = "HU";
|
|
55
|
+
Country["GreatBritain"] = "GB";
|
|
56
|
+
Country["Italy"] = "IT";
|
|
57
|
+
Country["Netherland"] = "NL";
|
|
58
|
+
Country["Ireland"] = "IE";
|
|
59
|
+
Country["Island"] = "IS";
|
|
60
|
+
Country["Lithuania"] = "LT";
|
|
61
|
+
Country["Latvia"] = "LV";
|
|
62
|
+
Country["Luxemburg"] = "LU";
|
|
63
|
+
Country["Malta"] = "MT";
|
|
64
|
+
Country["USA"] = "US";
|
|
65
|
+
Country["Canada"] = "CA";
|
|
66
|
+
Country["Japan"] = "JP";
|
|
67
|
+
Country["Ukraine"] = "UA";
|
|
68
|
+
Country["Belarus"] = "BY";
|
|
69
|
+
Country["Russia"] = "RU";
|
|
70
|
+
})(Country = exports.Country || (exports.Country = {}));
|
|
71
|
+
//# sourceMappingURL=Country.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Country.js","sourceRoot":"","sources":["../../src/enums/Country.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH;;;;GAIG;AACH,IAAY,OAoCX;AApCD,WAAY,OAAO;IACf,yBAAc,CAAA;IACd,yBAAc,CAAA;IACd,yBAAc,CAAA;IACd,wBAAa,CAAA;IACb,+BAAoB,CAAA;IACpB,yBAAc,CAAA;IACd,yBAAc,CAAA;IACd,yBAAc,CAAA;IACd,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,uBAAY,CAAA;IACZ,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,0BAAe,CAAA;IACf,2BAAgB,CAAA;IAChB,0BAAe,CAAA;IACf,0BAAe,CAAA;IACf,6BAAkB,CAAA;IAClB,wBAAa,CAAA;IACb,yBAAc,CAAA;IACd,8BAAmB,CAAA;IACnB,uBAAY,CAAA;IACZ,4BAAiB,CAAA;IACjB,yBAAc,CAAA;IACd,wBAAa,CAAA;IACb,2BAAgB,CAAA;IAChB,wBAAa,CAAA;IACb,2BAAgB,CAAA;IAChB,uBAAY,CAAA;IACZ,qBAAU,CAAA;IACV,wBAAa,CAAA;IACb,uBAAY,CAAA;IACZ,yBAAc,CAAA;IACd,yBAAc,CAAA;IACd,wBAAa,CAAA;AACjB,CAAC,EApCW,OAAO,GAAP,eAAO,KAAP,eAAO,QAoClB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* Currency Type
|
|
27
|
+
*
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
export declare enum Currency {
|
|
31
|
+
PLN = "PLN",
|
|
32
|
+
EUR = "EUR",
|
|
33
|
+
GBP = "GPB",
|
|
34
|
+
CZK = "CZK"
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=Currency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../src/enums/Currency.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH;;;;GAIG;AACH,oBAAY,QAAQ;IAChB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACd"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.Currency = void 0;
|
|
28
|
+
/**
|
|
29
|
+
* Currency Type
|
|
30
|
+
*
|
|
31
|
+
* @enum {string}
|
|
32
|
+
*/
|
|
33
|
+
var Currency;
|
|
34
|
+
(function (Currency) {
|
|
35
|
+
Currency["PLN"] = "PLN";
|
|
36
|
+
Currency["EUR"] = "EUR";
|
|
37
|
+
Currency["GBP"] = "GPB";
|
|
38
|
+
Currency["CZK"] = "CZK";
|
|
39
|
+
})(Currency = exports.Currency || (exports.Currency = {}));
|
|
40
|
+
//# sourceMappingURL=Currency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../src/enums/Currency.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH;;;;GAIG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;IACX,uBAAW,CAAA;AACf,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB"}
|
|
@@ -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 || (exports.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,GAAR,gBAAQ,KAAR,gBAAQ,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 || (exports.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,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB"}
|
|
@@ -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 || (exports.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,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB"}
|