sdk-nave-nodejs 0.0.4 → 0.0.5
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/dist/lib/client-types.d.ts +384 -6
- package/package.json +1 -1
|
@@ -81,18 +81,396 @@ export interface ResponseNaveCreateOrder {
|
|
|
81
81
|
export interface ResponseNaveGetOrder {
|
|
82
82
|
id: string;
|
|
83
83
|
external_payment_id: string;
|
|
84
|
-
payment_id: string
|
|
85
|
-
order_id: string;
|
|
84
|
+
payment_id: string;
|
|
86
85
|
expiration_date: string;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
payment_retries_allowed: number;
|
|
87
|
+
application: string;
|
|
88
|
+
integrator_id: null | string;
|
|
89
|
+
shop_id: null | string;
|
|
90
|
+
creation_date: string;
|
|
91
|
+
status: string;
|
|
92
|
+
checkout_url: string;
|
|
93
|
+
payment_attemps: number;
|
|
94
|
+
payment_type: string;
|
|
95
|
+
transactions: Array<{
|
|
96
|
+
store_id: string;
|
|
97
|
+
amount: NaveAmount;
|
|
98
|
+
ranty_id: string;
|
|
99
|
+
installment_plan: {
|
|
100
|
+
is_government_plan: boolean;
|
|
101
|
+
installment_amount: NaveAmount & {
|
|
102
|
+
components: Array<{
|
|
103
|
+
name: string;
|
|
104
|
+
amount: NaveAmount;
|
|
105
|
+
id: number;
|
|
106
|
+
}>;
|
|
107
|
+
};
|
|
108
|
+
annual_nominal_rate: number;
|
|
109
|
+
promo_id: null | string;
|
|
110
|
+
total_financial_cost: string;
|
|
111
|
+
installment_plan_type_id: string;
|
|
112
|
+
installments: number;
|
|
113
|
+
total_amount: NaveAmount;
|
|
114
|
+
name: string;
|
|
115
|
+
interest_rate: string;
|
|
116
|
+
installments_plan_gateway_id: string;
|
|
117
|
+
has_interest: boolean;
|
|
118
|
+
id: string;
|
|
119
|
+
original_id: string;
|
|
120
|
+
};
|
|
121
|
+
date_created: number;
|
|
122
|
+
contract: {
|
|
123
|
+
entity_id: string;
|
|
124
|
+
merchant_id: string;
|
|
125
|
+
};
|
|
126
|
+
reconciliation_status_entity: string;
|
|
127
|
+
transaction_type: string;
|
|
128
|
+
auth_data: {
|
|
129
|
+
reason: string;
|
|
130
|
+
code: string;
|
|
131
|
+
auth_id: string;
|
|
132
|
+
acquirer_ref_number: string;
|
|
133
|
+
id: string;
|
|
134
|
+
gateway_code: string;
|
|
135
|
+
gateway_reason: string;
|
|
136
|
+
status: string;
|
|
137
|
+
};
|
|
138
|
+
products: Array<{
|
|
139
|
+
name: string;
|
|
140
|
+
description: string;
|
|
141
|
+
id: string;
|
|
142
|
+
quantity: number;
|
|
143
|
+
unit_price: NaveAmount;
|
|
144
|
+
}>;
|
|
145
|
+
stage: string;
|
|
146
|
+
soft_descriptor: string;
|
|
147
|
+
payment_id: string;
|
|
148
|
+
id: string;
|
|
149
|
+
payment_method: {
|
|
150
|
+
data_privacy: {
|
|
151
|
+
encrypted: {
|
|
152
|
+
data: string;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
card_holder_name: string;
|
|
156
|
+
bin: string;
|
|
157
|
+
card_holder_doc_type: string;
|
|
158
|
+
type: string;
|
|
159
|
+
expiration_date: string;
|
|
160
|
+
card_type: string;
|
|
161
|
+
expiration_year: string;
|
|
162
|
+
data_privacy_type: string;
|
|
163
|
+
product_id: string;
|
|
164
|
+
expiration_month: string;
|
|
165
|
+
name: string;
|
|
166
|
+
pan: string;
|
|
167
|
+
card_holder_doc_number: string;
|
|
168
|
+
};
|
|
169
|
+
}>;
|
|
90
170
|
additional_info: {
|
|
91
|
-
order_id: string;
|
|
92
171
|
callback_url: string;
|
|
93
172
|
mobile: boolean;
|
|
173
|
+
integration_store_id: string;
|
|
174
|
+
order_id: string;
|
|
94
175
|
platform: string;
|
|
95
176
|
};
|
|
177
|
+
seller: {
|
|
178
|
+
store_id: string;
|
|
179
|
+
country: string;
|
|
180
|
+
fantasy_name: string;
|
|
181
|
+
company_id: string;
|
|
182
|
+
store_data: {
|
|
183
|
+
country: string;
|
|
184
|
+
address: {
|
|
185
|
+
number: string;
|
|
186
|
+
street: string;
|
|
187
|
+
notes: string;
|
|
188
|
+
};
|
|
189
|
+
fantasy_name: string;
|
|
190
|
+
updated_at: string;
|
|
191
|
+
city: string;
|
|
192
|
+
id: string;
|
|
193
|
+
state: string;
|
|
194
|
+
mcc: string;
|
|
195
|
+
zip_code: string;
|
|
196
|
+
};
|
|
197
|
+
city: string;
|
|
198
|
+
owner_data: {
|
|
199
|
+
business_name: string;
|
|
200
|
+
country: string;
|
|
201
|
+
address: {
|
|
202
|
+
number: string;
|
|
203
|
+
street: string;
|
|
204
|
+
notes: string;
|
|
205
|
+
};
|
|
206
|
+
city: string;
|
|
207
|
+
tax_registration_date: string;
|
|
208
|
+
external_id: string;
|
|
209
|
+
zip_code: string;
|
|
210
|
+
tax_id: string;
|
|
211
|
+
updated_at: string;
|
|
212
|
+
tax_id_type: string;
|
|
213
|
+
id: string;
|
|
214
|
+
state: string;
|
|
215
|
+
owner_type: string;
|
|
216
|
+
};
|
|
217
|
+
owner_id: string;
|
|
218
|
+
store_address: {
|
|
219
|
+
zipcode: string;
|
|
220
|
+
country: string;
|
|
221
|
+
street_1: string;
|
|
222
|
+
region: string;
|
|
223
|
+
city: string;
|
|
224
|
+
};
|
|
225
|
+
tax_id: string;
|
|
226
|
+
features_allowed: string[];
|
|
227
|
+
category_id: string;
|
|
228
|
+
branch_id: string;
|
|
229
|
+
user_id: string;
|
|
230
|
+
pos_id: string;
|
|
231
|
+
tax_id_type: string;
|
|
232
|
+
name: string;
|
|
233
|
+
branch_data: {
|
|
234
|
+
country: string;
|
|
235
|
+
address: {
|
|
236
|
+
number: string;
|
|
237
|
+
street: string;
|
|
238
|
+
notes: string;
|
|
239
|
+
};
|
|
240
|
+
city: string;
|
|
241
|
+
name: string;
|
|
242
|
+
id: string;
|
|
243
|
+
state: string;
|
|
244
|
+
zip_code: string;
|
|
245
|
+
};
|
|
246
|
+
onboarding_date: string;
|
|
247
|
+
};
|
|
248
|
+
buyer: {
|
|
249
|
+
user_id: string;
|
|
250
|
+
};
|
|
251
|
+
shipping: null;
|
|
252
|
+
contracts: null;
|
|
253
|
+
fraud_prevention: {
|
|
254
|
+
skip_fraud_service: boolean;
|
|
255
|
+
services: Array<{
|
|
256
|
+
priority: number;
|
|
257
|
+
config_id: string;
|
|
258
|
+
acquirer_id: string;
|
|
259
|
+
service_id: string;
|
|
260
|
+
}>;
|
|
261
|
+
};
|
|
262
|
+
payment_gateway: Array<{
|
|
263
|
+
store_id: string;
|
|
264
|
+
id: string;
|
|
265
|
+
}>;
|
|
266
|
+
qr_data: string;
|
|
267
|
+
amount_type: null;
|
|
268
|
+
payment_inputs: {
|
|
269
|
+
card_on_file: {
|
|
270
|
+
payment_methods: {
|
|
271
|
+
card_payment: {
|
|
272
|
+
gateways: Array<{
|
|
273
|
+
name: string;
|
|
274
|
+
id: string;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
manual_input: {
|
|
280
|
+
payment_methods: {
|
|
281
|
+
card_payment: {
|
|
282
|
+
gateways: Array<{
|
|
283
|
+
name: string;
|
|
284
|
+
id: string;
|
|
285
|
+
}>;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
wallet: {
|
|
290
|
+
payment_methods: {
|
|
291
|
+
card_payment: {
|
|
292
|
+
gateways: Array<{
|
|
293
|
+
name: string;
|
|
294
|
+
id: string;
|
|
295
|
+
}>;
|
|
296
|
+
};
|
|
297
|
+
transfer: {
|
|
298
|
+
gateways: Array<{
|
|
299
|
+
name: string;
|
|
300
|
+
id: string;
|
|
301
|
+
}>;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
click_to_pay: {
|
|
306
|
+
payment_methods: {
|
|
307
|
+
card_payment: {
|
|
308
|
+
gateways: Array<{
|
|
309
|
+
name: string;
|
|
310
|
+
id: string;
|
|
311
|
+
}>;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
payment_settings: {
|
|
317
|
+
payment_types: {
|
|
318
|
+
ecommerce: {
|
|
319
|
+
payment_inputs: {
|
|
320
|
+
card_on_file: {
|
|
321
|
+
reason: string;
|
|
322
|
+
payment_methods: {
|
|
323
|
+
card_payment: {
|
|
324
|
+
payment_gateways: {
|
|
325
|
+
sonqo: {
|
|
326
|
+
reason: string;
|
|
327
|
+
status: string;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
reason: string;
|
|
331
|
+
status: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
status: string;
|
|
335
|
+
};
|
|
336
|
+
card_not_present: {
|
|
337
|
+
reason: string;
|
|
338
|
+
payment_methods: {
|
|
339
|
+
card_payment: {
|
|
340
|
+
payment_gateways: {
|
|
341
|
+
naranja: {
|
|
342
|
+
reason: string;
|
|
343
|
+
status: string;
|
|
344
|
+
};
|
|
345
|
+
sonqo: {
|
|
346
|
+
reason: string;
|
|
347
|
+
status: string;
|
|
348
|
+
};
|
|
349
|
+
payzen: {
|
|
350
|
+
reason: string;
|
|
351
|
+
status: string;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
reason: string;
|
|
355
|
+
status: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
status: string;
|
|
359
|
+
};
|
|
360
|
+
manual_input: {
|
|
361
|
+
reason: string;
|
|
362
|
+
payment_methods: {
|
|
363
|
+
card_payment: {
|
|
364
|
+
payment_gateways: {
|
|
365
|
+
naranja: {
|
|
366
|
+
reason: string;
|
|
367
|
+
status: string;
|
|
368
|
+
};
|
|
369
|
+
sonqo: {
|
|
370
|
+
reason: string;
|
|
371
|
+
status: string;
|
|
372
|
+
};
|
|
373
|
+
payzen: {
|
|
374
|
+
reason: string;
|
|
375
|
+
status: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
reason: string;
|
|
379
|
+
status: string;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
status: string;
|
|
383
|
+
};
|
|
384
|
+
wallet: {
|
|
385
|
+
reason: string;
|
|
386
|
+
payment_methods: {
|
|
387
|
+
card_payment: {
|
|
388
|
+
payment_gateways: {
|
|
389
|
+
naranja: {
|
|
390
|
+
reason: string;
|
|
391
|
+
status: string;
|
|
392
|
+
};
|
|
393
|
+
sonqo: {
|
|
394
|
+
reason: string;
|
|
395
|
+
status: string;
|
|
396
|
+
};
|
|
397
|
+
payzen: {
|
|
398
|
+
reason: string;
|
|
399
|
+
status: string;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
402
|
+
reason: string;
|
|
403
|
+
status: string;
|
|
404
|
+
};
|
|
405
|
+
transfer: {
|
|
406
|
+
payment_gateways: {
|
|
407
|
+
coelsa: {
|
|
408
|
+
reason: string;
|
|
409
|
+
status: string;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
reason: string;
|
|
413
|
+
status: string;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
status: string;
|
|
417
|
+
};
|
|
418
|
+
dynamic_qr: {
|
|
419
|
+
reason: string;
|
|
420
|
+
payment_methods: {
|
|
421
|
+
card_payment: {
|
|
422
|
+
payment_gateways: {
|
|
423
|
+
naranja: {
|
|
424
|
+
reason: string;
|
|
425
|
+
status: string;
|
|
426
|
+
};
|
|
427
|
+
sonqo: {
|
|
428
|
+
reason: string;
|
|
429
|
+
status: string;
|
|
430
|
+
};
|
|
431
|
+
payzen: {
|
|
432
|
+
reason: string;
|
|
433
|
+
status: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
reason: string;
|
|
437
|
+
status: string;
|
|
438
|
+
};
|
|
439
|
+
transfer: {
|
|
440
|
+
payment_gateways: {
|
|
441
|
+
coelsa: {
|
|
442
|
+
reason: string;
|
|
443
|
+
status: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
reason: string;
|
|
447
|
+
status: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
status: string;
|
|
451
|
+
};
|
|
452
|
+
click_to_pay: {
|
|
453
|
+
reason: string;
|
|
454
|
+
payment_methods: {
|
|
455
|
+
card_payment: {
|
|
456
|
+
payment_gateways: {
|
|
457
|
+
sonqo: {
|
|
458
|
+
reason: string;
|
|
459
|
+
status: string;
|
|
460
|
+
};
|
|
461
|
+
};
|
|
462
|
+
reason: string;
|
|
463
|
+
status: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
status: string;
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
reason: string;
|
|
470
|
+
status: string;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
};
|
|
96
474
|
}
|
|
97
475
|
export interface ResponseNaveCancelOrder {
|
|
98
476
|
status: 'CANCELLING';
|