liqpay-nestjs 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +15 -0
  2. package/dist/core/constants.d.ts +3 -0
  3. package/dist/core/constants.js +7 -0
  4. package/dist/core/index.d.ts +1 -0
  5. package/dist/core/index.js +17 -0
  6. package/dist/core/liqpay.client.d.ts +65 -0
  7. package/dist/core/liqpay.client.js +156 -0
  8. package/dist/core/schemas/base/envelope.schema.d.ts +6 -0
  9. package/dist/core/schemas/base/envelope.schema.js +11 -0
  10. package/dist/core/schemas/base/index.d.ts +3 -0
  11. package/dist/core/schemas/base/index.js +19 -0
  12. package/dist/core/schemas/base/request.type.d.ts +4 -0
  13. package/dist/core/schemas/base/request.type.js +2 -0
  14. package/dist/core/schemas/base/response.type.d.ts +15 -0
  15. package/dist/core/schemas/base/response.type.js +2 -0
  16. package/dist/core/schemas/checkout/checkout-callback.schema.d.ts +241 -0
  17. package/dist/core/schemas/checkout/checkout-callback.schema.js +91 -0
  18. package/dist/core/schemas/checkout/checkout-request.schema.d.ts +421 -0
  19. package/dist/core/schemas/checkout/checkout-request.schema.js +70 -0
  20. package/dist/core/schemas/checkout/index.d.ts +2 -0
  21. package/dist/core/schemas/checkout/index.js +18 -0
  22. package/dist/core/schemas/common/detail-addenda.schema.d.ts +11 -0
  23. package/dist/core/schemas/common/detail-addenda.schema.js +13 -0
  24. package/dist/core/schemas/common/enums/action.schema.d.ts +12 -0
  25. package/dist/core/schemas/common/enums/action.schema.js +17 -0
  26. package/dist/core/schemas/common/enums/bonus-type.schema.d.ts +8 -0
  27. package/dist/core/schemas/common/enums/bonus-type.schema.js +10 -0
  28. package/dist/core/schemas/common/enums/commission-payer.schema.d.ts +6 -0
  29. package/dist/core/schemas/common/enums/commission-payer.schema.js +5 -0
  30. package/dist/core/schemas/common/enums/currency.schema.d.ts +7 -0
  31. package/dist/core/schemas/common/enums/currency.schema.js +8 -0
  32. package/dist/core/schemas/common/enums/error-code.schema.d.ts +117 -0
  33. package/dist/core/schemas/common/enums/error-code.schema.js +122 -0
  34. package/dist/core/schemas/common/enums/index.d.ts +13 -0
  35. package/dist/core/schemas/common/enums/index.js +29 -0
  36. package/dist/core/schemas/common/enums/language.schema.d.ts +6 -0
  37. package/dist/core/schemas/common/enums/language.schema.js +5 -0
  38. package/dist/core/schemas/common/enums/mpi-eci.schema.d.ts +3 -0
  39. package/dist/core/schemas/common/enums/mpi-eci.schema.js +9 -0
  40. package/dist/core/schemas/common/enums/payment-status.schema.d.ts +81 -0
  41. package/dist/core/schemas/common/enums/payment-status.schema.js +48 -0
  42. package/dist/core/schemas/common/enums/paytype.schema.d.ts +14 -0
  43. package/dist/core/schemas/common/enums/paytype.schema.js +16 -0
  44. package/dist/core/schemas/common/enums/request-result.schema.d.ts +6 -0
  45. package/dist/core/schemas/common/enums/request-result.schema.js +5 -0
  46. package/dist/core/schemas/common/enums/subscribe-period.schema.d.ts +8 -0
  47. package/dist/core/schemas/common/enums/subscribe-period.schema.js +10 -0
  48. package/dist/core/schemas/common/enums/unit.schema.d.ts +55 -0
  49. package/dist/core/schemas/common/enums/unit.schema.js +58 -0
  50. package/dist/core/schemas/common/enums/version.schema.d.ts +2 -0
  51. package/dist/core/schemas/common/enums/version.schema.js +8 -0
  52. package/dist/core/schemas/common/fiscal-data.schema.d.ts +86 -0
  53. package/dist/core/schemas/common/fiscal-data.schema.js +41 -0
  54. package/dist/core/schemas/common/index.d.ts +3 -0
  55. package/dist/core/schemas/common/index.js +19 -0
  56. package/dist/core/schemas/common/split-rule.schema.d.ts +36 -0
  57. package/dist/core/schemas/common/split-rule.schema.js +13 -0
  58. package/dist/core/schemas/error/error-response.schema.d.ts +121 -0
  59. package/dist/core/schemas/error/error-response.schema.js +10 -0
  60. package/dist/core/schemas/error/error.type.d.ts +6 -0
  61. package/dist/core/schemas/error/error.type.js +2 -0
  62. package/dist/core/schemas/error/index.d.ts +3 -0
  63. package/dist/core/schemas/error/index.js +19 -0
  64. package/dist/core/schemas/payment-status/index.d.ts +2 -0
  65. package/dist/core/schemas/payment-status/index.js +18 -0
  66. package/dist/core/schemas/payment-status/payment-status-request.schema.d.ts +43 -0
  67. package/dist/core/schemas/payment-status/payment-status-request.schema.js +23 -0
  68. package/dist/core/schemas/payment-status/payment-status-response.schema.d.ts +213 -0
  69. package/dist/core/schemas/payment-status/payment-status-response.schema.js +85 -0
  70. package/dist/core/types/documented/checkout.callback.d.ts +250 -0
  71. package/dist/core/types/documented/checkout.callback.js +2 -0
  72. package/dist/core/types/documented/checkout.request.d.ts +236 -0
  73. package/dist/core/types/documented/checkout.request.js +2 -0
  74. package/dist/core/types/documented/detail-addenda.d.ts +33 -0
  75. package/dist/core/types/documented/detail-addenda.js +2 -0
  76. package/dist/core/types/documented/envelope.d.ts +15 -0
  77. package/dist/core/types/documented/envelope.js +2 -0
  78. package/dist/core/types/documented/fiscal-data.d.ts +80 -0
  79. package/dist/core/types/documented/fiscal-data.js +2 -0
  80. package/dist/core/types/documented/payment-status.request.d.ts +23 -0
  81. package/dist/core/types/documented/payment-status.request.js +2 -0
  82. package/dist/core/types/documented/payment-status.response.d.ts +225 -0
  83. package/dist/core/types/documented/payment-status.response.js +2 -0
  84. package/dist/core/types/documented/split-rule.d.ts +29 -0
  85. package/dist/core/types/documented/split-rule.js +2 -0
  86. package/dist/core/types/documented/types.d.ts +287 -0
  87. package/dist/core/types/documented/types.js +199 -0
  88. package/dist/core/types/payloads.d.ts +158 -0
  89. package/dist/core/types/payloads.js +2 -0
  90. package/dist/core/types/undocumented/checkout.callback.d.ts +61 -0
  91. package/dist/core/types/undocumented/checkout.callback.js +2 -0
  92. package/dist/core/types/undocumented/checkout.request.d.ts +39 -0
  93. package/dist/core/types/undocumented/checkout.request.js +2 -0
  94. package/dist/core/types/undocumented/detail-addenda.d.ts +9 -0
  95. package/dist/core/types/undocumented/detail-addenda.js +2 -0
  96. package/dist/core/types/undocumented/envelope.d.ts +4 -0
  97. package/dist/core/types/undocumented/envelope.js +2 -0
  98. package/dist/core/types/undocumented/fiscal-data.d.ts +23 -0
  99. package/dist/core/types/undocumented/fiscal-data.js +2 -0
  100. package/dist/core/types/undocumented/payment-status.request.d.ts +6 -0
  101. package/dist/core/types/undocumented/payment-status.request.js +2 -0
  102. package/dist/core/types/undocumented/payment-status.response.d.ts +54 -0
  103. package/dist/core/types/undocumented/payment-status.response.js +2 -0
  104. package/dist/core/types/undocumented/split-rule.d.ts +9 -0
  105. package/dist/core/types/undocumented/split-rule.js +2 -0
  106. package/dist/core/types/undocumented/types.d.ts +181 -0
  107. package/dist/core/types/undocumented/types.js +160 -0
  108. package/dist/core/utils/index.d.ts +2 -0
  109. package/dist/core/utils/index.js +18 -0
  110. package/dist/core/utils/is-success.util.d.ts +5 -0
  111. package/dist/core/utils/is-success.util.js +6 -0
  112. package/dist/core/utils/parse-boolean.d.ts +2 -0
  113. package/dist/core/utils/parse-boolean.js +7 -0
  114. package/dist/core/utils/parse-date.d.ts +1 -0
  115. package/dist/core/utils/parse-date.js +10 -0
  116. package/dist/index.d.ts +5 -0
  117. package/dist/index.js +21 -0
  118. package/dist/nest/constants/index.d.ts +1 -0
  119. package/dist/nest/constants/index.js +17 -0
  120. package/dist/nest/constants/liqpay.constants.d.ts +1 -0
  121. package/dist/nest/constants/liqpay.constants.js +4 -0
  122. package/dist/nest/index.d.ts +3 -0
  123. package/dist/nest/index.js +19 -0
  124. package/dist/nest/interfaces/index.d.ts +2 -0
  125. package/dist/nest/interfaces/index.js +18 -0
  126. package/dist/nest/interfaces/liqpay-async-options.interface.d.ts +7 -0
  127. package/dist/nest/interfaces/liqpay-async-options.interface.js +2 -0
  128. package/dist/nest/interfaces/liqpay-options.interface.d.ts +25 -0
  129. package/dist/nest/interfaces/liqpay-options.interface.js +2 -0
  130. package/dist/nest/liqpay.module.d.ts +6 -0
  131. package/dist/nest/liqpay.module.js +37 -0
  132. package/dist/nest/liqpay.providers.d.ts +4 -0
  133. package/dist/nest/liqpay.providers.js +32 -0
  134. package/dist/nest/liqpay.service.d.ts +66 -0
  135. package/dist/nest/liqpay.service.js +57 -0
  136. package/package.json +57 -0
@@ -0,0 +1,287 @@
1
+ /**
2
+ * Constant values ​​of tax rates for goods
3
+ */
4
+ export declare const LiqPayTaxRates: {
5
+ readonly NO_VAT: {
6
+ readonly letter: "А";
7
+ readonly name: "Без ПДВ 0%";
8
+ readonly type: 0;
9
+ readonly prc: 0;
10
+ };
11
+ readonly VAT20: {
12
+ readonly letter: "Б";
13
+ readonly name: "ПДВ 20%";
14
+ readonly type: 0;
15
+ readonly prc: 20;
16
+ };
17
+ readonly VAT7: {
18
+ readonly letter: "В";
19
+ readonly name: "ПДВ 7%";
20
+ readonly type: 0;
21
+ readonly prc: 7;
22
+ };
23
+ readonly EXCISE5: {
24
+ readonly letter: "Г";
25
+ readonly name: "АКЦИЗ 5%";
26
+ readonly type: 1;
27
+ readonly prc: 5;
28
+ };
29
+ };
30
+ /**
31
+ * Keys of available tax rates in LiqPay.
32
+ *
33
+ * Can be used to reference a specific tax rate from `LiqPayTaxRates`.
34
+ *
35
+ * Example:
36
+ * ```ts
37
+ * const key: LiqPayTaxRateKey = 'VAT20';
38
+ * const tax = LiqPayTaxRates[key];
39
+ * ```
40
+ */
41
+ export type LiqPayTaxRateKey = keyof typeof LiqPayTaxRates;
42
+ /**
43
+ * Fiscal tax object representing a single tax rate from LiqPay.
44
+ *
45
+ * Corresponds to one of the entries in `LiqPayTaxRates`:
46
+ * - `letter`: tax letter code ('А', 'Б', 'В', 'Г')
47
+ * - `name`: human-readable tax name
48
+ * - `type`: numeric tax type (0 or 1)
49
+ * - `prc`: percentage of tax
50
+ *
51
+ * Example:
52
+ * ```ts
53
+ * const tax: LiqPayFiscalTax = LiqPayTaxRates.VAT20;
54
+ * ```
55
+ */
56
+ export type LiqPayFiscalTax = (typeof LiqPayTaxRates)[LiqPayTaxRateKey];
57
+ /**
58
+ * Transaction type
59
+ */
60
+ export declare enum LiqPayActionEnum {
61
+ PAY = "pay",
62
+ HOLD = "hold",
63
+ PAYSPLIT = "paysplit",
64
+ SUBSCRIBE = "subscribe",
65
+ PAYDONATE = "paydonate",
66
+ AUTH = "auth",
67
+ REGULAR = "regular",
68
+ STATUS = "status"
69
+ }
70
+ /**
71
+ * Transaction type
72
+ */
73
+ export type LiqPayAction = `${LiqPayActionEnum}`;
74
+ /**
75
+ * Payment currency
76
+ */
77
+ export declare enum LiqPayCurrencyEnum {
78
+ USD = "USD",
79
+ EUR = "EUR",
80
+ UAH = "UAH"
81
+ }
82
+ /**
83
+ * Payment currency
84
+ */
85
+ export type LiqPayCurrency = `${LiqPayCurrencyEnum}`;
86
+ /**
87
+ * Payment methods to be displayed at checkout
88
+ */
89
+ export declare enum LiqPayPaytypeEnum {
90
+ APAY = "apay",
91
+ GPAY = "gpay",
92
+ CARD = "card",
93
+ PRIVAT24 = "privat24",
94
+ MASTERPASS = "masterpass",
95
+ MOMENT_PART = "moment_part",
96
+ PAYPART = "paypart",
97
+ CASH = "cash",
98
+ INVOICE = "invoice",
99
+ QR = "qr"
100
+ }
101
+ /**
102
+ * Payment methods to be displayed at checkout
103
+ */
104
+ export type LiqPayPaytype = `${LiqPayPaytypeEnum}`;
105
+ /**
106
+ * Code that represents whether 3D-Secure verification was performed during payment
107
+ */
108
+ export type LiqPayMpiEci = 5 | 6 | 7;
109
+ /**
110
+ * Resolved payment statuses
111
+ */
112
+ export declare enum LiqPayResolvedPaymentStatusEnum {
113
+ ERROR = "error",
114
+ FAILURE = "failure",
115
+ REVERSED = "reversed",
116
+ SUBSCRIBED = "subscribed",
117
+ SUCCESS = "success",
118
+ UNSUBSCRIBED = "unsubscribed"
119
+ }
120
+ /**
121
+ * Resolved payment statuses
122
+ */
123
+ export type LiqPayResolvedPaymentStatus = `${LiqPayResolvedPaymentStatusEnum}`;
124
+ /**
125
+ * Statuses that require payment confirmation
126
+ */
127
+ export declare enum LiqPayUnresolvedPaymentStatusEnum {
128
+ DS3_VERIFY = "3ds_verify",
129
+ CAPTCHA_VERIFY = "captcha_verify",
130
+ CVV_VERIFY = "cvv_verify",
131
+ IVR_VERIFY = "ivr_verify",
132
+ OTP_VERIFY = "otp_verify",
133
+ PASSWORD_VERIFY = "password_verify",
134
+ PHONE_VERIFY = "phone_verify",
135
+ PIN_VERIFY = "pin_verify",
136
+ RECEIVER_VERIFY = "receiver_verify",
137
+ SENDER_VERIFY = "sender_verify",
138
+ SENDERAPP_VERIFY = "senderapp_verify",
139
+ WAIT_QR = "wait_qr",
140
+ WAIT_SENDER = "wait_sender",
141
+ P24_VERIFY = "p24_verify",
142
+ MP_VERIFY = "mp_verify"
143
+ }
144
+ /**
145
+ * Statuses that require payment confirmation
146
+ */
147
+ export type LiqPayUnresolvedPaymentStatus = `${LiqPayUnresolvedPaymentStatusEnum}`;
148
+ /**
149
+ * Other payment statuses
150
+ */
151
+ export declare enum LiqPayOtherPaymentStatusEnum {
152
+ CASH_WAIT = "cash_wait",
153
+ HOLD_WAIT = "hold_wait",
154
+ INVOICE_WAIT = "invoice_wait",
155
+ PREPARED = "prepared",
156
+ PROCESSING = "processing",
157
+ WAIT_ACCEPT = "wait_accept",
158
+ WAIT_CARD = "wait_card",
159
+ WAIT_COMPENSATION = "wait_compensation",
160
+ WAIT_LC = "wait_lc",
161
+ WAIT_RESERVE = "wait_reserve",
162
+ WAIT_SECURE = "wait_secure",
163
+ TRY_AGAIN = "try_again"
164
+ }
165
+ /**
166
+ * Other payment statuses
167
+ */
168
+ export type LiqPayOtherPaymentStatus = `${LiqPayOtherPaymentStatusEnum}`;
169
+ /**
170
+ * Payment status
171
+ */
172
+ export type LiqPayPaymentStatus = LiqPayResolvedPaymentStatus | LiqPayUnresolvedPaymentStatus | LiqPayOtherPaymentStatus;
173
+ /**
174
+ * Payer of the acquiring fee
175
+ */
176
+ export declare enum LiqPayCommisionPayerEnum {
177
+ SENDER = "sender",
178
+ RECEIVER = "receiver"
179
+ }
180
+ /**
181
+ * Payer of the acquiring fee
182
+ */
183
+ export type LiqPayCommisionPayer = `${LiqPayCommisionPayerEnum}`;
184
+ /**
185
+ * Client language
186
+ */
187
+ export declare enum LiqPayLanguageEnum {
188
+ UK = "uk",
189
+ EN = "en"
190
+ }
191
+ /**
192
+ * Client language
193
+ */
194
+ export type LiqPayLanguage = `${LiqPayLanguageEnum}`;
195
+ /**
196
+ * The frequency of funds write-off
197
+ */
198
+ export declare enum LiqPaySubscribePeriodicityEnum {
199
+ DAY = "day",
200
+ WEEK = "week",
201
+ MONTH = "month",
202
+ YEAR = "year"
203
+ }
204
+ /**
205
+ * The frequency of funds write-off
206
+ */
207
+ export type LiqPaySubscribePeriodicity = `${LiqPaySubscribePeriodicityEnum}`;
208
+ /**
209
+ * Bonus type
210
+ */
211
+ export declare enum LiqPayBonusTypeEnum {
212
+ BONUSPLUS = "bonusplus",
213
+ DISCOUNT_CLUB = "discount_club",
214
+ PERSONAL = "personal",
215
+ PROMO = "promo"
216
+ }
217
+ /**
218
+ * Bonus type
219
+ */
220
+ export type LiqPayBonusType = `${LiqPayBonusTypeEnum}`;
221
+ /**
222
+ * Result of request execution
223
+ */
224
+ export declare enum LiqPayRequestResultEnum {
225
+ OK = "ok",
226
+ ERROR = "error"
227
+ }
228
+ /**
229
+ * Result of request execution
230
+ */
231
+ export type LiqPayRequestResult = `${LiqPayRequestResultEnum}`;
232
+ /**
233
+ * Units of measurement of goods
234
+ */
235
+ export declare enum LiqPayUnitEnum {
236
+ meter = "10001",
237
+ square_meter = "10002",
238
+ cubic_meter = "10003",
239
+ kilometer = "10004",
240
+ square_kilometer = "10005",
241
+ cubic_kilometer = "10006",
242
+ decimeter = "10007",
243
+ square_decimeter = "10008",
244
+ cubic_decimeter = "10009",
245
+ centimeter = "10010",
246
+ square_centimeter = "10011",
247
+ cubic_centimeter = "10012",
248
+ hectare = "10013",
249
+ liter = "10014",
250
+ kilogram = "10015",
251
+ gram = "10016",
252
+ metric_ton = "10017",
253
+ centner = "10018",
254
+ kilowatt_hour = "10019",
255
+ kilowatt = "10020",
256
+ centner_per_hectare = "10021",
257
+ head = "10022",
258
+ notebook = "10023",
259
+ book = "10024",
260
+ copy = "10025",
261
+ square_meter_residential = "10026",
262
+ piece = "10027",
263
+ box = "10028",
264
+ cistern = "10029",
265
+ crate = "10030",
266
+ package = "10031",
267
+ pack = "10032",
268
+ roll = "10033",
269
+ hryvnia = "10034",
270
+ kilometer_per_hour = "10035",
271
+ running_meter = "10036",
272
+ product = "10037",
273
+ set = "10038",
274
+ day = "10039",
275
+ service = "10040",
276
+ hour = "10041",
277
+ month = "10042",
278
+ bottle = "10043",
279
+ para = "10044",
280
+ portion = "10045",
281
+ minute = "10046",
282
+ milliliter = "10047"
283
+ }
284
+ /**
285
+ * Units of measurement of goods
286
+ */
287
+ export type LiqPayUnit = `${LiqPayUnitEnum}`;
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LiqPayUnitEnum = exports.LiqPayRequestResultEnum = exports.LiqPayBonusTypeEnum = exports.LiqPaySubscribePeriodicityEnum = exports.LiqPayLanguageEnum = exports.LiqPayCommisionPayerEnum = exports.LiqPayOtherPaymentStatusEnum = exports.LiqPayUnresolvedPaymentStatusEnum = exports.LiqPayResolvedPaymentStatusEnum = exports.LiqPayPaytypeEnum = exports.LiqPayCurrencyEnum = exports.LiqPayActionEnum = exports.LiqPayTaxRates = void 0;
4
+ /**
5
+ * Constant values ​​of tax rates for goods
6
+ */
7
+ exports.LiqPayTaxRates = {
8
+ NO_VAT: { letter: 'А', name: 'Без ПДВ 0%', type: 0, prc: 0 },
9
+ VAT20: { letter: 'Б', name: 'ПДВ 20%', type: 0, prc: 20 },
10
+ VAT7: { letter: 'В', name: 'ПДВ 7%', type: 0, prc: 7 },
11
+ EXCISE5: { letter: 'Г', name: 'АКЦИЗ 5%', type: 1, prc: 5 },
12
+ };
13
+ /**
14
+ * Transaction type
15
+ */
16
+ var LiqPayActionEnum;
17
+ (function (LiqPayActionEnum) {
18
+ LiqPayActionEnum["PAY"] = "pay";
19
+ LiqPayActionEnum["HOLD"] = "hold";
20
+ LiqPayActionEnum["PAYSPLIT"] = "paysplit";
21
+ LiqPayActionEnum["SUBSCRIBE"] = "subscribe";
22
+ LiqPayActionEnum["PAYDONATE"] = "paydonate";
23
+ LiqPayActionEnum["AUTH"] = "auth";
24
+ LiqPayActionEnum["REGULAR"] = "regular";
25
+ LiqPayActionEnum["STATUS"] = "status";
26
+ })(LiqPayActionEnum || (exports.LiqPayActionEnum = LiqPayActionEnum = {}));
27
+ /**
28
+ * Payment currency
29
+ */
30
+ var LiqPayCurrencyEnum;
31
+ (function (LiqPayCurrencyEnum) {
32
+ LiqPayCurrencyEnum["USD"] = "USD";
33
+ LiqPayCurrencyEnum["EUR"] = "EUR";
34
+ LiqPayCurrencyEnum["UAH"] = "UAH";
35
+ })(LiqPayCurrencyEnum || (exports.LiqPayCurrencyEnum = LiqPayCurrencyEnum = {}));
36
+ /**
37
+ * Payment methods to be displayed at checkout
38
+ */
39
+ var LiqPayPaytypeEnum;
40
+ (function (LiqPayPaytypeEnum) {
41
+ LiqPayPaytypeEnum["APAY"] = "apay";
42
+ LiqPayPaytypeEnum["GPAY"] = "gpay";
43
+ LiqPayPaytypeEnum["CARD"] = "card";
44
+ LiqPayPaytypeEnum["PRIVAT24"] = "privat24";
45
+ LiqPayPaytypeEnum["MASTERPASS"] = "masterpass";
46
+ LiqPayPaytypeEnum["MOMENT_PART"] = "moment_part";
47
+ LiqPayPaytypeEnum["PAYPART"] = "paypart";
48
+ LiqPayPaytypeEnum["CASH"] = "cash";
49
+ LiqPayPaytypeEnum["INVOICE"] = "invoice";
50
+ LiqPayPaytypeEnum["QR"] = "qr";
51
+ })(LiqPayPaytypeEnum || (exports.LiqPayPaytypeEnum = LiqPayPaytypeEnum = {}));
52
+ /**
53
+ * Resolved payment statuses
54
+ */
55
+ var LiqPayResolvedPaymentStatusEnum;
56
+ (function (LiqPayResolvedPaymentStatusEnum) {
57
+ LiqPayResolvedPaymentStatusEnum["ERROR"] = "error";
58
+ LiqPayResolvedPaymentStatusEnum["FAILURE"] = "failure";
59
+ LiqPayResolvedPaymentStatusEnum["REVERSED"] = "reversed";
60
+ LiqPayResolvedPaymentStatusEnum["SUBSCRIBED"] = "subscribed";
61
+ LiqPayResolvedPaymentStatusEnum["SUCCESS"] = "success";
62
+ LiqPayResolvedPaymentStatusEnum["UNSUBSCRIBED"] = "unsubscribed";
63
+ })(LiqPayResolvedPaymentStatusEnum || (exports.LiqPayResolvedPaymentStatusEnum = LiqPayResolvedPaymentStatusEnum = {}));
64
+ /**
65
+ * Statuses that require payment confirmation
66
+ */
67
+ var LiqPayUnresolvedPaymentStatusEnum;
68
+ (function (LiqPayUnresolvedPaymentStatusEnum) {
69
+ LiqPayUnresolvedPaymentStatusEnum["DS3_VERIFY"] = "3ds_verify";
70
+ LiqPayUnresolvedPaymentStatusEnum["CAPTCHA_VERIFY"] = "captcha_verify";
71
+ LiqPayUnresolvedPaymentStatusEnum["CVV_VERIFY"] = "cvv_verify";
72
+ LiqPayUnresolvedPaymentStatusEnum["IVR_VERIFY"] = "ivr_verify";
73
+ LiqPayUnresolvedPaymentStatusEnum["OTP_VERIFY"] = "otp_verify";
74
+ LiqPayUnresolvedPaymentStatusEnum["PASSWORD_VERIFY"] = "password_verify";
75
+ LiqPayUnresolvedPaymentStatusEnum["PHONE_VERIFY"] = "phone_verify";
76
+ LiqPayUnresolvedPaymentStatusEnum["PIN_VERIFY"] = "pin_verify";
77
+ LiqPayUnresolvedPaymentStatusEnum["RECEIVER_VERIFY"] = "receiver_verify";
78
+ LiqPayUnresolvedPaymentStatusEnum["SENDER_VERIFY"] = "sender_verify";
79
+ LiqPayUnresolvedPaymentStatusEnum["SENDERAPP_VERIFY"] = "senderapp_verify";
80
+ LiqPayUnresolvedPaymentStatusEnum["WAIT_QR"] = "wait_qr";
81
+ LiqPayUnresolvedPaymentStatusEnum["WAIT_SENDER"] = "wait_sender";
82
+ LiqPayUnresolvedPaymentStatusEnum["P24_VERIFY"] = "p24_verify";
83
+ LiqPayUnresolvedPaymentStatusEnum["MP_VERIFY"] = "mp_verify";
84
+ })(LiqPayUnresolvedPaymentStatusEnum || (exports.LiqPayUnresolvedPaymentStatusEnum = LiqPayUnresolvedPaymentStatusEnum = {}));
85
+ /**
86
+ * Other payment statuses
87
+ */
88
+ var LiqPayOtherPaymentStatusEnum;
89
+ (function (LiqPayOtherPaymentStatusEnum) {
90
+ LiqPayOtherPaymentStatusEnum["CASH_WAIT"] = "cash_wait";
91
+ LiqPayOtherPaymentStatusEnum["HOLD_WAIT"] = "hold_wait";
92
+ LiqPayOtherPaymentStatusEnum["INVOICE_WAIT"] = "invoice_wait";
93
+ LiqPayOtherPaymentStatusEnum["PREPARED"] = "prepared";
94
+ LiqPayOtherPaymentStatusEnum["PROCESSING"] = "processing";
95
+ LiqPayOtherPaymentStatusEnum["WAIT_ACCEPT"] = "wait_accept";
96
+ LiqPayOtherPaymentStatusEnum["WAIT_CARD"] = "wait_card";
97
+ LiqPayOtherPaymentStatusEnum["WAIT_COMPENSATION"] = "wait_compensation";
98
+ LiqPayOtherPaymentStatusEnum["WAIT_LC"] = "wait_lc";
99
+ LiqPayOtherPaymentStatusEnum["WAIT_RESERVE"] = "wait_reserve";
100
+ LiqPayOtherPaymentStatusEnum["WAIT_SECURE"] = "wait_secure";
101
+ LiqPayOtherPaymentStatusEnum["TRY_AGAIN"] = "try_again";
102
+ })(LiqPayOtherPaymentStatusEnum || (exports.LiqPayOtherPaymentStatusEnum = LiqPayOtherPaymentStatusEnum = {}));
103
+ /**
104
+ * Payer of the acquiring fee
105
+ */
106
+ var LiqPayCommisionPayerEnum;
107
+ (function (LiqPayCommisionPayerEnum) {
108
+ LiqPayCommisionPayerEnum["SENDER"] = "sender";
109
+ LiqPayCommisionPayerEnum["RECEIVER"] = "receiver";
110
+ })(LiqPayCommisionPayerEnum || (exports.LiqPayCommisionPayerEnum = LiqPayCommisionPayerEnum = {}));
111
+ /**
112
+ * Client language
113
+ */
114
+ var LiqPayLanguageEnum;
115
+ (function (LiqPayLanguageEnum) {
116
+ LiqPayLanguageEnum["UK"] = "uk";
117
+ LiqPayLanguageEnum["EN"] = "en";
118
+ })(LiqPayLanguageEnum || (exports.LiqPayLanguageEnum = LiqPayLanguageEnum = {}));
119
+ /**
120
+ * The frequency of funds write-off
121
+ */
122
+ var LiqPaySubscribePeriodicityEnum;
123
+ (function (LiqPaySubscribePeriodicityEnum) {
124
+ LiqPaySubscribePeriodicityEnum["DAY"] = "day";
125
+ LiqPaySubscribePeriodicityEnum["WEEK"] = "week";
126
+ LiqPaySubscribePeriodicityEnum["MONTH"] = "month";
127
+ LiqPaySubscribePeriodicityEnum["YEAR"] = "year";
128
+ })(LiqPaySubscribePeriodicityEnum || (exports.LiqPaySubscribePeriodicityEnum = LiqPaySubscribePeriodicityEnum = {}));
129
+ /**
130
+ * Bonus type
131
+ */
132
+ var LiqPayBonusTypeEnum;
133
+ (function (LiqPayBonusTypeEnum) {
134
+ LiqPayBonusTypeEnum["BONUSPLUS"] = "bonusplus";
135
+ LiqPayBonusTypeEnum["DISCOUNT_CLUB"] = "discount_club";
136
+ LiqPayBonusTypeEnum["PERSONAL"] = "personal";
137
+ LiqPayBonusTypeEnum["PROMO"] = "promo";
138
+ })(LiqPayBonusTypeEnum || (exports.LiqPayBonusTypeEnum = LiqPayBonusTypeEnum = {}));
139
+ /**
140
+ * Result of request execution
141
+ */
142
+ var LiqPayRequestResultEnum;
143
+ (function (LiqPayRequestResultEnum) {
144
+ LiqPayRequestResultEnum["OK"] = "ok";
145
+ LiqPayRequestResultEnum["ERROR"] = "error";
146
+ })(LiqPayRequestResultEnum || (exports.LiqPayRequestResultEnum = LiqPayRequestResultEnum = {}));
147
+ /**
148
+ * Units of measurement of goods
149
+ */
150
+ var LiqPayUnitEnum;
151
+ (function (LiqPayUnitEnum) {
152
+ LiqPayUnitEnum["meter"] = "10001";
153
+ LiqPayUnitEnum["square_meter"] = "10002";
154
+ LiqPayUnitEnum["cubic_meter"] = "10003";
155
+ LiqPayUnitEnum["kilometer"] = "10004";
156
+ LiqPayUnitEnum["square_kilometer"] = "10005";
157
+ LiqPayUnitEnum["cubic_kilometer"] = "10006";
158
+ LiqPayUnitEnum["decimeter"] = "10007";
159
+ LiqPayUnitEnum["square_decimeter"] = "10008";
160
+ LiqPayUnitEnum["cubic_decimeter"] = "10009";
161
+ LiqPayUnitEnum["centimeter"] = "10010";
162
+ LiqPayUnitEnum["square_centimeter"] = "10011";
163
+ LiqPayUnitEnum["cubic_centimeter"] = "10012";
164
+ LiqPayUnitEnum["hectare"] = "10013";
165
+ LiqPayUnitEnum["liter"] = "10014";
166
+ LiqPayUnitEnum["kilogram"] = "10015";
167
+ LiqPayUnitEnum["gram"] = "10016";
168
+ LiqPayUnitEnum["metric_ton"] = "10017";
169
+ LiqPayUnitEnum["centner"] = "10018";
170
+ LiqPayUnitEnum["kilowatt_hour"] = "10019";
171
+ LiqPayUnitEnum["kilowatt"] = "10020";
172
+ LiqPayUnitEnum["centner_per_hectare"] = "10021";
173
+ LiqPayUnitEnum["head"] = "10022";
174
+ LiqPayUnitEnum["notebook"] = "10023";
175
+ LiqPayUnitEnum["book"] = "10024";
176
+ LiqPayUnitEnum["copy"] = "10025";
177
+ LiqPayUnitEnum["square_meter_residential"] = "10026";
178
+ LiqPayUnitEnum["piece"] = "10027";
179
+ LiqPayUnitEnum["box"] = "10028";
180
+ LiqPayUnitEnum["cistern"] = "10029";
181
+ LiqPayUnitEnum["crate"] = "10030";
182
+ LiqPayUnitEnum["package"] = "10031";
183
+ LiqPayUnitEnum["pack"] = "10032";
184
+ LiqPayUnitEnum["roll"] = "10033";
185
+ LiqPayUnitEnum["hryvnia"] = "10034";
186
+ LiqPayUnitEnum["kilometer_per_hour"] = "10035";
187
+ LiqPayUnitEnum["running_meter"] = "10036";
188
+ LiqPayUnitEnum["product"] = "10037";
189
+ LiqPayUnitEnum["set"] = "10038";
190
+ LiqPayUnitEnum["day"] = "10039";
191
+ LiqPayUnitEnum["service"] = "10040";
192
+ LiqPayUnitEnum["hour"] = "10041";
193
+ LiqPayUnitEnum["month"] = "10042";
194
+ LiqPayUnitEnum["bottle"] = "10043";
195
+ LiqPayUnitEnum["para"] = "10044";
196
+ LiqPayUnitEnum["portion"] = "10045";
197
+ LiqPayUnitEnum["minute"] = "10046";
198
+ LiqPayUnitEnum["milliliter"] = "10047";
199
+ })(LiqPayUnitEnum || (exports.LiqPayUnitEnum = LiqPayUnitEnum = {}));
@@ -0,0 +1,158 @@
1
+ export interface LiqPayEnvelope {
2
+ data: string;
3
+ signature: string;
4
+ }
5
+ export interface LiqPayCheckoutRequestPayload {
6
+ version: number;
7
+ public_key: string;
8
+ action: string;
9
+ amount: number;
10
+ currency: string;
11
+ description: string;
12
+ order_id: string;
13
+ rro_info?: object;
14
+ expired_date?: string;
15
+ language?: string;
16
+ paytypes?: string;
17
+ result_url?: string;
18
+ server_url?: string;
19
+ verifycode?: string;
20
+ split_rules?: string;
21
+ sender_address?: string;
22
+ sender_city?: string;
23
+ sender_country_code?: string;
24
+ sender_first_name?: string;
25
+ sender_last_name?: string;
26
+ sender_postal_code?: string;
27
+ subscribe?: string;
28
+ subscribe_date_start?: string;
29
+ subscribe_periodicity?: string;
30
+ customer?: string;
31
+ recurringbytoken?: string;
32
+ customer_user_id?: string;
33
+ dae?: string;
34
+ info?: string;
35
+ product_category?: string;
36
+ product_description?: string;
37
+ product_name?: string;
38
+ product_url?: string;
39
+ }
40
+ export interface LiqPayCheckoutCallbackPayload {
41
+ acq_id: number;
42
+ action: string;
43
+ agent_commission: number;
44
+ amount: number;
45
+ amount_bonus: number;
46
+ amount_credit: number;
47
+ amount_debit: number;
48
+ authcode_credit: string;
49
+ authcode_debit: string;
50
+ card_token: string;
51
+ commission_credit: number;
52
+ commission_debit: number;
53
+ completion_date: string;
54
+ create_date: string;
55
+ currency: string;
56
+ currency_credit: string;
57
+ currency_debit: string;
58
+ customer: string;
59
+ description: string;
60
+ end_date: string;
61
+ err_code: string;
62
+ err_description: string;
63
+ info: string;
64
+ ip: string;
65
+ is_3ds: boolean;
66
+ liqpay_order_id: string;
67
+ mpi_eci: number;
68
+ order_id: string;
69
+ payment_id: number;
70
+ paytype: string;
71
+ public_key: string;
72
+ receiver_commission: number;
73
+ redirect_to: string;
74
+ refund_date_last: string;
75
+ rrn_credit: string;
76
+ rrn_debit: string;
77
+ sender_bonus: number;
78
+ sender_card_bank: string;
79
+ sender_card_country: string;
80
+ sender_card_mask2: string;
81
+ sender_iban: string;
82
+ sender_card_type: string;
83
+ sender_commission: number;
84
+ sender_first_name: string;
85
+ sender_last_name: string;
86
+ sender_phone: string;
87
+ status: string;
88
+ wait_reserve_status?: string;
89
+ token: string;
90
+ type: string;
91
+ version: number;
92
+ err_erc: string;
93
+ product_category: string;
94
+ product_description: string;
95
+ product_name: string;
96
+ product_url: string;
97
+ refund_amount: number;
98
+ verifycode?: string;
99
+ }
100
+ export interface LiqPayPaymentStatusRequestPayload {
101
+ version: number;
102
+ public_key: string;
103
+ action: string;
104
+ order_id: string;
105
+ }
106
+ export interface LiqPayPaymentStatusResponsePayload {
107
+ version: number;
108
+ public_key: string;
109
+ action: string;
110
+ acq_id: number;
111
+ agent_commission: number;
112
+ amount: number;
113
+ amount_bonus: number;
114
+ amount_credit: number;
115
+ amount_debit: number;
116
+ authcode_credit: string;
117
+ authcode_debit: string;
118
+ bonus_procent: number;
119
+ bonus_type: string;
120
+ card_token: string;
121
+ commission_credit: number;
122
+ commission_debit: number;
123
+ confirm_phone: string;
124
+ create_date: string;
125
+ currency: string;
126
+ currency_credit: string;
127
+ currency_debit: string;
128
+ description: string;
129
+ end_date: string;
130
+ info: string;
131
+ ip: string;
132
+ is_3ds: boolean;
133
+ language: string;
134
+ liqpay_order_id: string;
135
+ moment_part: string;
136
+ mpi_eci: number;
137
+ order_id: string;
138
+ payment_id: number;
139
+ paytype: string;
140
+ receiver_commission: number;
141
+ result: string;
142
+ rrn_credit: string;
143
+ rrn_debit: string;
144
+ sender_bonus: number;
145
+ sender_card_bank: string;
146
+ sender_card_country: string;
147
+ sender_card_mask2: string;
148
+ sender_iban: string;
149
+ sender_card_type: string;
150
+ sender_commission: number;
151
+ sender_first_name: string;
152
+ sender_last_name: string;
153
+ sender_phone: string;
154
+ status: string;
155
+ wait_reserve_status?: string;
156
+ transaction_id: number;
157
+ type: string;
158
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });