redsys-easy 4.0.2 → 5.0.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.
@@ -1,316 +1,316 @@
1
- import type { TransactionType } from '../assets/transaction-types';
2
- import type { CardBrand } from '../assets/card-brands';
3
- import type { Country } from '../assets/countries';
4
- import type { Currency } from '../assets/currencies';
5
- import type { Language } from '../assets/lang-codes';
6
- import type { BaseInputParams, RedirectInputParams, RequestInputParams, RestIniciaPeticionInputParams, RestTrataPeticionInputParams } from '../types/input-params';
7
- import type { BaseOutputParams, NotificationOutputParams, RequestOutputParams, RestIniciaPeticionOutputParams, RestTrataPeticionOutputParams } from '../types/output-params';
8
- export interface BaseFormatterInput<RawInputParams extends Partial<BaseInputParams>> {
9
- /**
10
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTCODE}
11
- */
12
- merchantCode: string;
13
- /**
14
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TRANSACTIONTYPE}
15
- */
16
- transactionType: TransactionType;
17
- /**
18
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_ORDER}
19
- */
20
- order: string;
21
- /**
22
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TERMINAL}
23
- */
24
- terminal: string;
25
- /**
26
- * Amount designated as a decimal string currency unit
27
- *
28
- * @example
29
- * `'1.99'` (1.99 EUR)
30
- *
31
- * @remarks
32
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_AMOUNT}
33
- */
34
- amount?: string;
35
- /**
36
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CURRENCY}
37
- */
38
- currency?: Currency;
39
- /**
40
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_PAN}
41
- */
42
- pan?: string;
43
- /**
44
- * Card expiry year, YY
45
- *
46
- * @remarks
47
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EXPIRYDATE}
48
- */
49
- expiryYear?: string;
50
- /**
51
- * Card expiry month, MM
52
- *
53
- * @remarks
54
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EXPIRYDATE}
55
- */
56
- expiryMonth?: string;
57
- /**
58
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CVV2}
59
- */
60
- cvv?: string;
61
- /**
62
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTNAME}
63
- */
64
- merchantName?: string;
65
- /**
66
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_IDENTIFIER}
67
- */
68
- identifier?: string;
69
- /**
70
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_GROUP}
71
- */
72
- group?: string;
73
- /**
74
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_DIRECTPAYMENT}
75
- */
76
- directPayment?: BaseInputParams['DS_MERCHANT_DIRECTPAYMENT'];
77
- /**
78
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTDATA}
79
- */
80
- merchantData?: string;
81
- /**
82
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_IDOPER}
83
- */
84
- operationId?: string;
85
- /**
86
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_PRODUCTDESCRIPTION}
87
- */
88
- productDescription?: string;
89
- /**
90
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TAX_REFERENCE}
91
- */
92
- taxReference?: string;
93
- /**
94
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TRANSACTIONDATE}
95
- */
96
- transactionDate?: string;
97
- /**
98
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TITULAR}
99
- */
100
- cardHolder?: string;
101
- /**
102
- * @see {@link RestTrataPeticionInputParams}
103
- */
104
- raw?: RawInputParams;
105
- }
106
- /**
107
- * Input parameters for the redirect input formatter
108
- *
109
- * @public
110
- */
111
- export interface RedirectFormatterInput<RawInputParams extends Partial<RedirectInputParams>> extends BaseFormatterInput<RawInputParams> {
112
- /**
113
- * @see {@link RedirectInputParams.DS_MERCHANT_MERCHANTURL}
114
- */
115
- merchantURL?: string;
116
- /**
117
- * @see {@link RedirectInputParams.DS_MERCHANT_URLOK}
118
- */
119
- successURL?: string;
120
- /**
121
- * @see {@link RedirectInputParams.DS_MERCHANT_URLKO}
122
- */
123
- errorURL?: string;
124
- /**
125
- * @see {@link RedirectInputParams.DS_MERCHANT_PAYMETHODS}
126
- */
127
- payMethods?: string;
128
- /**
129
- * @see {@link RedirectInputParams.DS_MERCHANT_CONSUMERLANGUAGE}
130
- */
131
- lang?: Language;
132
- }
133
- export interface RequestFormatterInput<RawInputParams extends Partial<RequestInputParams>> extends BaseFormatterInput<RawInputParams> {
134
- /**
135
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_MOBILE}
136
- */
137
- customerMobile?: string;
138
- /**
139
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_MAIL}
140
- */
141
- customerMail?: string;
142
- /**
143
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_SMS_TEXT}
144
- */
145
- smsTemplate?: string;
146
- }
147
- /**
148
- * Input parameters for the REST iniciaPeticion input formatter
149
- *
150
- * @public
151
- */
152
- export interface RestIniciaPeticionFormatterInput<RawInputParams extends Partial<RestIniciaPeticionInputParams>> extends RequestFormatterInput<RawInputParams> {
153
- /**
154
- * @see {@link RestIniciaPeticionInputParams.DS_MERCHANT_EMV3DS}
155
- */
156
- emv3ds?: RestIniciaPeticionInputParams['DS_MERCHANT_EMV3DS'];
157
- }
158
- /**
159
- * Input parameters for the REST trataPeticion input formatter
160
- *
161
- * @public
162
- */
163
- export interface RestTrataPeticionFormatterInput<RawInputParams extends Partial<RestTrataPeticionInputParams>> extends RequestFormatterInput<RawInputParams> {
164
- /**
165
- * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EMV3DS}
166
- */
167
- emv3ds?: RestTrataPeticionInputParams['DS_MERCHANT_EMV3DS'];
168
- }
169
- export interface BaseFormatterOutput<RawOutputParams extends BaseOutputParams> {
170
- /**
171
- * @see {@link RestTrataPeticionOutputParams.Ds_MerchantCode}
172
- */
173
- merchantCode: string;
174
- /**
175
- * @see {@link RestTrataPeticionOutputParams.Ds_Terminal}
176
- */
177
- terminal: string;
178
- /**
179
- * @see {@link RestTrataPeticionOutputParams.Ds_Order}
180
- */
181
- order: string;
182
- /**
183
- * @see {@link RestTrataPeticionOutputParams.Ds_TransactionType}
184
- */
185
- transactionType: TransactionType;
186
- /**
187
- * @see {@link RestTrataPeticionOutputParams.Ds_SecurePayment}
188
- */
189
- securePayment?: boolean;
190
- /**
191
- * @see {@link RestTrataPeticionOutputParams.Ds_Card_Country}
192
- */
193
- cardCountry?: Country;
194
- /**
195
- * @see {@link RestTrataPeticionOutputParams.Ds_Card_Brand}
196
- */
197
- cardBrand?: CardBrand;
198
- /**
199
- * @see {@link RestTrataPeticionOutputParams.Ds_Card_PSD2}
200
- */
201
- cardPSD2?: boolean;
202
- /**
203
- * @see {@link RestTrataPeticionOutputParams.Ds_MerchantData}
204
- */
205
- merchantData?: string;
206
- /**
207
- * @see {@link RestTrataPeticionOutputParams.Ds_AuthorisationCode}
208
- */
209
- authorisationCode?: string;
210
- /**
211
- * @see {@link RestTrataPeticionOutputParams.Ds_Card_Type}
212
- */
213
- cardType?: BaseOutputParams['Ds_Card_Type'];
214
- raw: RawOutputParams;
215
- }
216
- export interface ResolvedTransactionTraitFormatterOutput {
217
- /**
218
- * Amount designated as a decimal string currency unit.
219
- *
220
- * @example
221
- * `'1.99'` (1.99 EUR)
222
- *
223
- * @remarks
224
- * @see {@link RestTrataPeticionOutputParams.Ds_Amount}
225
- */
226
- amount: string;
227
- /**
228
- * @see {@link RestTrataPeticionOutputParams.Ds_Currency}
229
- */
230
- currency: Currency;
231
- /**
232
- * @see {@link RestTrataPeticionOutputParams.Ds_Response}
233
- */
234
- response: number;
235
- }
236
- /**
237
- * Ouput parameters for the notification output formatter
238
- *
239
- * @public
240
- */
241
- export interface NotificationFormatterOutput<RawOutputParams extends NotificationOutputParams> extends BaseFormatterOutput<RawOutputParams>, ResolvedTransactionTraitFormatterOutput {
242
- /**
243
- * @see {@link RestNotificationOutputParams.Ds_Date}
244
- */
245
- date: string;
246
- /**
247
- * @see {@link RestNotificationOutputParams.Ds_Hour}
248
- */
249
- time: string;
250
- /**
251
- * Timestamp of transaction
252
- */
253
- timestamp: Date;
254
- /**
255
- * @see {@link RestNotificationOutputParams.Ds_ConsumerLanguage}
256
- */
257
- lang?: Language;
258
- }
259
- export interface RequestFormatterOutput<RawOutputParams extends RequestOutputParams> extends BaseFormatterOutput<RawOutputParams> {
260
- /**
261
- * @see {@link RestTrataPeticionOutputParams.Ds_Merchant_Identifier}
262
- */
263
- identifier?: string;
264
- /**
265
- * @see {@link RestTrataPeticionOutputParams.Ds_Card_Number}
266
- */
267
- cardNumber?: string;
268
- /**
269
- * @see {@link RestTrataPeticionOutputParams.Ds_UrlPago2Fases}
270
- */
271
- payURL?: string;
272
- /**
273
- * Card expiry year, YY
274
- *
275
- * @remarks
276
- * @see {@link RestTrataPeticionOutputParams.Ds_ExpiryDate}
277
- */
278
- expiryYear?: string;
279
- /**
280
- * Card expiry month, MM
281
- *
282
- * @remarks
283
- * @see {@link RestTrataPeticionOutputParams.Ds_ExpiryDate}
284
- */
285
- expiryMonth?: string;
286
- /**
287
- * @see {@link RestTrataPeticionOutputParams.Ds_Language}
288
- */
289
- lang?: Language;
290
- }
291
- /**
292
- * Ouput parameters for the REST iniciaPeticion output formatter
293
- *
294
- * @public
295
- */
296
- export interface RestIniciaPeticionFormatterOutput<RawOutputParams extends RestIniciaPeticionOutputParams> extends RequestFormatterOutput<RawOutputParams> {
297
- /**
298
- * @see {@link RestIniciaPeticionOutputParams.Ds_EMV3DS}
299
- */
300
- emv3ds?: RestIniciaPeticionOutputParams['Ds_EMV3DS'];
301
- }
302
- /**
303
- * Ouput parameters for the REST trataPeticion output formatter
304
- *
305
- * @public
306
- */
307
- export interface RestTrataPeticionFormatterOutput<RawOutputParams extends RestTrataPeticionOutputParams> extends RequestFormatterOutput<RawOutputParams>, Omit<ResolvedTransactionTraitFormatterOutput, 'response'> {
308
- /**
309
- * @see {@link RestTrataPeticionOutputParams.Ds_Response}
310
- */
311
- response?: number;
312
- /**
313
- * @see {@link RestTrataPeticionOutputParams.Ds_EMV3DS}
314
- */
315
- emv3ds?: RestTrataPeticionOutputParams['Ds_EMV3DS'];
316
- }
1
+ import type { TransactionType } from '../assets/transaction-types';
2
+ import type { CardBrand } from '../assets/card-brands';
3
+ import type { Country } from '../assets/countries';
4
+ import type { Currency } from '../assets/currencies';
5
+ import type { Language } from '../assets/lang-codes';
6
+ import type { BaseInputParams, RedirectInputParams, RequestInputParams, RestIniciaPeticionInputParams, RestTrataPeticionInputParams } from '../types/input-params';
7
+ import type { BaseOutputParams, NotificationOutputParams, RequestOutputParams, RestIniciaPeticionOutputParams, RestTrataPeticionOutputParams } from '../types/output-params';
8
+ export interface BaseFormatterInput<RawInputParams extends Partial<BaseInputParams>> {
9
+ /**
10
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTCODE}
11
+ */
12
+ merchantCode: string;
13
+ /**
14
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TRANSACTIONTYPE}
15
+ */
16
+ transactionType: TransactionType;
17
+ /**
18
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_ORDER}
19
+ */
20
+ order: string;
21
+ /**
22
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TERMINAL}
23
+ */
24
+ terminal: string;
25
+ /**
26
+ * Amount designated as a decimal string currency unit
27
+ *
28
+ * @example
29
+ * `'1.99'` (1.99 EUR)
30
+ *
31
+ * @remarks
32
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_AMOUNT}
33
+ */
34
+ amount?: string;
35
+ /**
36
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CURRENCY}
37
+ */
38
+ currency?: Currency;
39
+ /**
40
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_PAN}
41
+ */
42
+ pan?: string;
43
+ /**
44
+ * Card expiry year, YY
45
+ *
46
+ * @remarks
47
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EXPIRYDATE}
48
+ */
49
+ expiryYear?: string;
50
+ /**
51
+ * Card expiry month, MM
52
+ *
53
+ * @remarks
54
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EXPIRYDATE}
55
+ */
56
+ expiryMonth?: string;
57
+ /**
58
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CVV2}
59
+ */
60
+ cvv?: string;
61
+ /**
62
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTNAME}
63
+ */
64
+ merchantName?: string;
65
+ /**
66
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_IDENTIFIER}
67
+ */
68
+ identifier?: string;
69
+ /**
70
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_GROUP}
71
+ */
72
+ group?: string;
73
+ /**
74
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_DIRECTPAYMENT}
75
+ */
76
+ directPayment?: BaseInputParams['DS_MERCHANT_DIRECTPAYMENT'];
77
+ /**
78
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_MERCHANTDATA}
79
+ */
80
+ merchantData?: string;
81
+ /**
82
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_IDOPER}
83
+ */
84
+ operationId?: string;
85
+ /**
86
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_PRODUCTDESCRIPTION}
87
+ */
88
+ productDescription?: string;
89
+ /**
90
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TAX_REFERENCE}
91
+ */
92
+ taxReference?: string;
93
+ /**
94
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TRANSACTIONDATE}
95
+ */
96
+ transactionDate?: string;
97
+ /**
98
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_TITULAR}
99
+ */
100
+ cardHolder?: string;
101
+ /**
102
+ * @see {@link RestTrataPeticionInputParams}
103
+ */
104
+ raw?: RawInputParams;
105
+ }
106
+ /**
107
+ * Input parameters for the redirect input formatter
108
+ *
109
+ * @public
110
+ */
111
+ export interface RedirectFormatterInput<RawInputParams extends Partial<RedirectInputParams>> extends BaseFormatterInput<RawInputParams> {
112
+ /**
113
+ * @see {@link RedirectInputParams.DS_MERCHANT_MERCHANTURL}
114
+ */
115
+ merchantURL?: string;
116
+ /**
117
+ * @see {@link RedirectInputParams.DS_MERCHANT_URLOK}
118
+ */
119
+ successURL?: string;
120
+ /**
121
+ * @see {@link RedirectInputParams.DS_MERCHANT_URLKO}
122
+ */
123
+ errorURL?: string;
124
+ /**
125
+ * @see {@link RedirectInputParams.DS_MERCHANT_PAYMETHODS}
126
+ */
127
+ payMethods?: string;
128
+ /**
129
+ * @see {@link RedirectInputParams.DS_MERCHANT_CONSUMERLANGUAGE}
130
+ */
131
+ lang?: Language;
132
+ }
133
+ export interface RequestFormatterInput<RawInputParams extends Partial<RequestInputParams>> extends BaseFormatterInput<RawInputParams> {
134
+ /**
135
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_MOBILE}
136
+ */
137
+ customerMobile?: string;
138
+ /**
139
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_MAIL}
140
+ */
141
+ customerMail?: string;
142
+ /**
143
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_CUSTOMER_SMS_TEXT}
144
+ */
145
+ smsTemplate?: string;
146
+ }
147
+ /**
148
+ * Input parameters for the REST iniciaPeticion input formatter
149
+ *
150
+ * @public
151
+ */
152
+ export interface RestIniciaPeticionFormatterInput<RawInputParams extends Partial<RestIniciaPeticionInputParams>> extends RequestFormatterInput<RawInputParams> {
153
+ /**
154
+ * @see {@link RestIniciaPeticionInputParams.DS_MERCHANT_EMV3DS}
155
+ */
156
+ emv3ds?: RestIniciaPeticionInputParams['DS_MERCHANT_EMV3DS'];
157
+ }
158
+ /**
159
+ * Input parameters for the REST trataPeticion input formatter
160
+ *
161
+ * @public
162
+ */
163
+ export interface RestTrataPeticionFormatterInput<RawInputParams extends Partial<RestTrataPeticionInputParams>> extends RequestFormatterInput<RawInputParams> {
164
+ /**
165
+ * @see {@link RestTrataPeticionInputParams.DS_MERCHANT_EMV3DS}
166
+ */
167
+ emv3ds?: RestTrataPeticionInputParams['DS_MERCHANT_EMV3DS'];
168
+ }
169
+ export interface BaseFormatterOutput<RawOutputParams extends BaseOutputParams> {
170
+ /**
171
+ * @see {@link RestTrataPeticionOutputParams.Ds_MerchantCode}
172
+ */
173
+ merchantCode: string;
174
+ /**
175
+ * @see {@link RestTrataPeticionOutputParams.Ds_Terminal}
176
+ */
177
+ terminal: string;
178
+ /**
179
+ * @see {@link RestTrataPeticionOutputParams.Ds_Order}
180
+ */
181
+ order: string;
182
+ /**
183
+ * @see {@link RestTrataPeticionOutputParams.Ds_TransactionType}
184
+ */
185
+ transactionType: TransactionType;
186
+ /**
187
+ * @see {@link RestTrataPeticionOutputParams.Ds_SecurePayment}
188
+ */
189
+ securePayment?: boolean;
190
+ /**
191
+ * @see {@link RestTrataPeticionOutputParams.Ds_Card_Country}
192
+ */
193
+ cardCountry?: Country;
194
+ /**
195
+ * @see {@link RestTrataPeticionOutputParams.Ds_Card_Brand}
196
+ */
197
+ cardBrand?: CardBrand;
198
+ /**
199
+ * @see {@link RestTrataPeticionOutputParams.Ds_Card_PSD2}
200
+ */
201
+ cardPSD2?: boolean;
202
+ /**
203
+ * @see {@link RestTrataPeticionOutputParams.Ds_MerchantData}
204
+ */
205
+ merchantData?: string;
206
+ /**
207
+ * @see {@link RestTrataPeticionOutputParams.Ds_AuthorisationCode}
208
+ */
209
+ authorisationCode?: string;
210
+ /**
211
+ * @see {@link RestTrataPeticionOutputParams.Ds_Card_Type}
212
+ */
213
+ cardType?: BaseOutputParams['Ds_Card_Type'];
214
+ raw: RawOutputParams;
215
+ }
216
+ export interface ResolvedTransactionTraitFormatterOutput {
217
+ /**
218
+ * Amount designated as a decimal string currency unit.
219
+ *
220
+ * @example
221
+ * `'1.99'` (1.99 EUR)
222
+ *
223
+ * @remarks
224
+ * @see {@link RestTrataPeticionOutputParams.Ds_Amount}
225
+ */
226
+ amount: string;
227
+ /**
228
+ * @see {@link RestTrataPeticionOutputParams.Ds_Currency}
229
+ */
230
+ currency: Currency;
231
+ /**
232
+ * @see {@link RestTrataPeticionOutputParams.Ds_Response}
233
+ */
234
+ response: number;
235
+ }
236
+ /**
237
+ * Ouput parameters for the notification output formatter
238
+ *
239
+ * @public
240
+ */
241
+ export interface NotificationFormatterOutput<RawOutputParams extends NotificationOutputParams> extends BaseFormatterOutput<RawOutputParams>, ResolvedTransactionTraitFormatterOutput {
242
+ /**
243
+ * @see {@link RestNotificationOutputParams.Ds_Date}
244
+ */
245
+ date: string;
246
+ /**
247
+ * @see {@link RestNotificationOutputParams.Ds_Hour}
248
+ */
249
+ time: string;
250
+ /**
251
+ * Timestamp of transaction
252
+ */
253
+ timestamp: Date;
254
+ /**
255
+ * @see {@link RestNotificationOutputParams.Ds_ConsumerLanguage}
256
+ */
257
+ lang?: Language;
258
+ }
259
+ export interface RequestFormatterOutput<RawOutputParams extends RequestOutputParams> extends BaseFormatterOutput<RawOutputParams> {
260
+ /**
261
+ * @see {@link RestTrataPeticionOutputParams.Ds_Merchant_Identifier}
262
+ */
263
+ identifier?: string;
264
+ /**
265
+ * @see {@link RestTrataPeticionOutputParams.Ds_Card_Number}
266
+ */
267
+ cardNumber?: string;
268
+ /**
269
+ * @see {@link RestTrataPeticionOutputParams.Ds_UrlPago2Fases}
270
+ */
271
+ payURL?: string;
272
+ /**
273
+ * Card expiry year, YY
274
+ *
275
+ * @remarks
276
+ * @see {@link RestTrataPeticionOutputParams.Ds_ExpiryDate}
277
+ */
278
+ expiryYear?: string;
279
+ /**
280
+ * Card expiry month, MM
281
+ *
282
+ * @remarks
283
+ * @see {@link RestTrataPeticionOutputParams.Ds_ExpiryDate}
284
+ */
285
+ expiryMonth?: string;
286
+ /**
287
+ * @see {@link RestTrataPeticionOutputParams.Ds_Language}
288
+ */
289
+ lang?: Language;
290
+ }
291
+ /**
292
+ * Ouput parameters for the REST iniciaPeticion output formatter
293
+ *
294
+ * @public
295
+ */
296
+ export interface RestIniciaPeticionFormatterOutput<RawOutputParams extends RestIniciaPeticionOutputParams> extends RequestFormatterOutput<RawOutputParams> {
297
+ /**
298
+ * @see {@link RestIniciaPeticionOutputParams.Ds_EMV3DS}
299
+ */
300
+ emv3ds?: RestIniciaPeticionOutputParams['Ds_EMV3DS'];
301
+ }
302
+ /**
303
+ * Ouput parameters for the REST trataPeticion output formatter
304
+ *
305
+ * @public
306
+ */
307
+ export interface RestTrataPeticionFormatterOutput<RawOutputParams extends RestTrataPeticionOutputParams> extends RequestFormatterOutput<RawOutputParams>, Omit<ResolvedTransactionTraitFormatterOutput, 'response'> {
308
+ /**
309
+ * @see {@link RestTrataPeticionOutputParams.Ds_Response}
310
+ */
311
+ response?: number;
312
+ /**
313
+ * @see {@link RestTrataPeticionOutputParams.Ds_EMV3DS}
314
+ */
315
+ emv3ds?: RestTrataPeticionOutputParams['Ds_EMV3DS'];
316
+ }