@yuno-payments/dashboard-api-mfe 0.36.32 → 0.36.34-beta.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/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/queries/payments/payments.query.d.ts +18 -19
- package/build/cjs/types/types/checkout/styling/styling.d.ts +7 -1
- package/build/cjs/types/types/payment/payment.d.ts +149 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/queries/payments/payments.query.d.ts +18 -19
- package/build/esm/types/types/checkout/styling/styling.d.ts +7 -1
- package/build/esm/types/types/payment/payment.d.ts +149 -0
- package/build/index.d.ts +173 -20
- package/package.json +1 -1
|
@@ -4,34 +4,33 @@ import type { Organization, Payment, Payouts, RefundPdfResponse, SendPaymentNoti
|
|
|
4
4
|
import { PaymentFiltersSection } from '../../types/payment/payment';
|
|
5
5
|
import { CustomAxiosResponse } from '../../utils/handler-error';
|
|
6
6
|
import { AxiosError } from 'axios';
|
|
7
|
-
|
|
8
|
-
export declare function
|
|
7
|
+
import { BFFErrorResponse } from '../../mutations';
|
|
8
|
+
export declare function usePostPaymentsLazy(params: GetPaymentsParams): UseQueryResult<Payment.PaymentList, AxiosError<BFFErrorResponse>>;
|
|
9
|
+
export declare function usePostPaymentsEvaluated(params: GetPaymentsEvaluatedParams): UseQueryResult<Payment.PaymentList, AxiosError<BFFErrorResponse>>;
|
|
9
10
|
export declare function useGetPaymentV2({ paymentCode, enabled, }: {
|
|
10
11
|
paymentCode: string;
|
|
11
12
|
enabled?: boolean;
|
|
12
|
-
}): UseQueryResult<Payment.PaymentV2,
|
|
13
|
-
export declare function useGetTransactionDetailsV2({ payment_code, enabled, }: GetTransactionDetailsV2Params): UseQueryResult<Payment.TransactionDetailsResult,
|
|
14
|
-
export declare function useGetTransactionRawResponse({ transaction_code, enabled, }: GetTransactionDetailsV2Params): UseQueryResult<Payment.TransactionDetailsResult,
|
|
13
|
+
}): UseQueryResult<Payment.PaymentV2, AxiosError<BFFErrorResponse>>;
|
|
14
|
+
export declare function useGetTransactionDetailsV2({ payment_code, enabled, }: GetTransactionDetailsV2Params): UseQueryResult<Payment.TransactionDetailsResult, AxiosError<BFFErrorResponse>>;
|
|
15
|
+
export declare function useGetTransactionRawResponse({ transaction_code, enabled, }: GetTransactionDetailsV2Params): UseQueryResult<Payment.TransactionDetailsResult, AxiosError<BFFErrorResponse>>;
|
|
15
16
|
export declare function useGetPaymentsMethodsByCountry(params: Organization.PaymentMethods): UseQueryResult<Organization.PaymentMethods[], CustomAxiosResponse<null>>;
|
|
16
|
-
export declare function useGetPaymentMethodsAndProviders(): UseQueryResult<Payment.PaymentMethodsAndProviders,
|
|
17
|
+
export declare function useGetPaymentMethodsAndProviders(): UseQueryResult<Payment.PaymentMethodsAndProviders, AxiosError<BFFErrorResponse>>;
|
|
17
18
|
export declare function useGetCardBrands(): UseQueryResult<Payment.CardBrand[], unknown>;
|
|
18
19
|
export declare function useGetPaymentFilters(enabled?: boolean, section?: PaymentFiltersSection): UseQueryResult<Payment.Filters, CustomAxiosResponse>;
|
|
19
|
-
export declare function useGetPaymentMetricsFilters(): UseQueryResult<Payment.PaymentMethodsAndProviders,
|
|
20
|
+
export declare function useGetPaymentMetricsFilters(): UseQueryResult<Payment.PaymentMethodsAndProviders, AxiosError<BFFErrorResponse>>;
|
|
20
21
|
export declare function useGetPaymentTransactionsDetails({ transaction_code, enabled, }: {
|
|
21
22
|
transaction_code: string;
|
|
22
23
|
enabled?: boolean;
|
|
23
|
-
}): UseQueryResult<Payment.
|
|
24
|
-
error: boolean;
|
|
25
|
-
}, unknown>;
|
|
24
|
+
}): UseQueryResult<Payment.PaymentTransactionDetail, AxiosError<BFFErrorResponse>>;
|
|
26
25
|
export declare function useGetTransactionHistoryByPaymentCode({ payment_code, enabled, }: {
|
|
27
26
|
payment_code: string;
|
|
28
27
|
enabled?: boolean;
|
|
29
|
-
}): UseQueryResult<Payment.TransactionHistoryByPayment,
|
|
30
|
-
export declare function usePostTransactions(params: GetTransactionsParams): UseQueryResult<Payment.TransactionDetailsResult
|
|
31
|
-
export declare function usePostFraudTransactions(params: GetTransactionsParams): UseQueryResult<Payment.TransactionDetailsResult
|
|
32
|
-
export declare function useGetPayoutDetail(params: GetPayoutDetail): UseQueryResult<Payouts.Details
|
|
33
|
-
export declare function useGetPayoutTransactionDetail(params: GetPayoutTransactionDetail): UseQueryResult
|
|
34
|
-
export declare function useGetPayoutHistoryDetail(params: GetPayoutDetail): UseQueryResult
|
|
35
|
-
export declare function useGetProofOfCancel(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError
|
|
36
|
-
export declare function useGetProofOfPayment(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError
|
|
37
|
-
export declare function useSendPaymentNotification(params: SendPaymentNotification.Params, body: SendPaymentNotification.Body, options: SendPaymentNotification.Options): UseQueryResult<SendPaymentNotification.Response, AxiosError
|
|
28
|
+
}): UseQueryResult<Payment.TransactionHistoryByPayment, AxiosError<BFFErrorResponse>>;
|
|
29
|
+
export declare function usePostTransactions(params: GetTransactionsParams): UseQueryResult<Payment.TransactionDetailsResult, AxiosError<BFFErrorResponse>>;
|
|
30
|
+
export declare function usePostFraudTransactions(params: GetTransactionsParams): UseQueryResult<Payment.TransactionDetailsResult, AxiosError<BFFErrorResponse>>;
|
|
31
|
+
export declare function useGetPayoutDetail(params: GetPayoutDetail): UseQueryResult<Payouts.Details, AxiosError<BFFErrorResponse>>;
|
|
32
|
+
export declare function useGetPayoutTransactionDetail(params: GetPayoutTransactionDetail): UseQueryResult<Payouts.Details, AxiosError<BFFErrorResponse>>;
|
|
33
|
+
export declare function useGetPayoutHistoryDetail(params: GetPayoutDetail): UseQueryResult<Payouts.Details, AxiosError<BFFErrorResponse>>;
|
|
34
|
+
export declare function useGetProofOfCancel(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError<BFFErrorResponse>>;
|
|
35
|
+
export declare function useGetProofOfPayment(transactionCode: string, accountCode: string): UseQueryResult<RefundPdfResponse, AxiosError<BFFErrorResponse>>;
|
|
36
|
+
export declare function useSendPaymentNotification(params: SendPaymentNotification.Params, body: SendPaymentNotification.Body, options: SendPaymentNotification.Options): UseQueryResult<SendPaymentNotification.Response, AxiosError<BFFErrorResponse>>;
|
|
@@ -109,6 +109,12 @@ export declare namespace StylingSettings {
|
|
|
109
109
|
hide_pay_button?: boolean;
|
|
110
110
|
render_mode?: RenderMode;
|
|
111
111
|
};
|
|
112
|
+
payment_method_list?: {
|
|
113
|
+
unfolded_display?: boolean;
|
|
114
|
+
preselected_payment_method?: boolean;
|
|
115
|
+
condensed_checkout_view?: boolean;
|
|
116
|
+
edit_payment_method_list?: boolean;
|
|
117
|
+
};
|
|
112
118
|
};
|
|
113
119
|
}
|
|
114
120
|
interface UpdateSettingsResponse extends UpdateSettings {
|
|
@@ -123,7 +129,7 @@ export declare namespace StylingSettings {
|
|
|
123
129
|
}
|
|
124
130
|
export declare enum RenderMode {
|
|
125
131
|
MODAL = "MODAL",
|
|
126
|
-
|
|
132
|
+
RENDER = "RENDER"
|
|
127
133
|
}
|
|
128
134
|
export declare enum VisualizationMode {
|
|
129
135
|
ONE_STEP = "ONE_STEP",
|
|
@@ -270,6 +270,155 @@ export declare namespace Payment {
|
|
|
270
270
|
stand_alone?: string;
|
|
271
271
|
purpose?: string;
|
|
272
272
|
}
|
|
273
|
+
interface PaymentTransactionDetail {
|
|
274
|
+
id?: number;
|
|
275
|
+
code?: string;
|
|
276
|
+
parent_id?: string;
|
|
277
|
+
payment_method_type?: string;
|
|
278
|
+
payment_id?: number;
|
|
279
|
+
category?: string;
|
|
280
|
+
status?: string;
|
|
281
|
+
customer_payment_method_code?: string;
|
|
282
|
+
amount?: number;
|
|
283
|
+
provider_id?: string;
|
|
284
|
+
created_at?: string;
|
|
285
|
+
updated_at?: string;
|
|
286
|
+
response_code?: string;
|
|
287
|
+
one_time_token?: string;
|
|
288
|
+
type?: string;
|
|
289
|
+
response_message?: string;
|
|
290
|
+
provider_raw_response?: string;
|
|
291
|
+
provider_transaction_id?: string;
|
|
292
|
+
provider_status?: string;
|
|
293
|
+
provider_status_detail?: string;
|
|
294
|
+
merchant_reference?: string;
|
|
295
|
+
reason?: string;
|
|
296
|
+
description?: string;
|
|
297
|
+
vault_on_success?: boolean;
|
|
298
|
+
require_action_type?: string;
|
|
299
|
+
parent_provider?: string;
|
|
300
|
+
provider_raw_notification?: string;
|
|
301
|
+
account_integration_code?: string;
|
|
302
|
+
provider_action_data?: string;
|
|
303
|
+
technical_reverse_provider_transaction_id?: string;
|
|
304
|
+
technical_reverse_transaction_type?: string;
|
|
305
|
+
technical_reverse_status?: string;
|
|
306
|
+
provider_response_message?: string;
|
|
307
|
+
trace_id?: string;
|
|
308
|
+
checkout_url?: string;
|
|
309
|
+
payment?: PaymentTransactionDetail[];
|
|
310
|
+
bank_transfer?: string[];
|
|
311
|
+
bnpl?: string[];
|
|
312
|
+
card?: Card[];
|
|
313
|
+
card_transaction?: Card[];
|
|
314
|
+
payment_link?: string[];
|
|
315
|
+
ticket?: string[];
|
|
316
|
+
wallet?: string[];
|
|
317
|
+
customer_payer?: CustomerPayerTransactionDetail[];
|
|
318
|
+
error?: boolean;
|
|
319
|
+
provider_account_id?: string;
|
|
320
|
+
parent_payment_method_type?: string;
|
|
321
|
+
provider_third_party_account_id?: string;
|
|
322
|
+
provider_response_code?: string;
|
|
323
|
+
}
|
|
324
|
+
interface PaymentTransactionDetail {
|
|
325
|
+
id?: number;
|
|
326
|
+
code?: string;
|
|
327
|
+
account_code?: string;
|
|
328
|
+
currency_code?: string;
|
|
329
|
+
organization_code?: string;
|
|
330
|
+
}
|
|
331
|
+
interface Card {
|
|
332
|
+
id?: number;
|
|
333
|
+
type?: string;
|
|
334
|
+
brand?: string;
|
|
335
|
+
verify?: string;
|
|
336
|
+
capture?: boolean;
|
|
337
|
+
card_iin?: string;
|
|
338
|
+
card_lfd?: string;
|
|
339
|
+
category?: string;
|
|
340
|
+
created_at?: string;
|
|
341
|
+
updated_at?: string;
|
|
342
|
+
issuer_code?: string;
|
|
343
|
+
issuer_name?: string;
|
|
344
|
+
country_code?: string;
|
|
345
|
+
country_name?: string;
|
|
346
|
+
installments?: number;
|
|
347
|
+
three_ds_code?: string;
|
|
348
|
+
three_ds_ds_id?: string;
|
|
349
|
+
three_ds_token?: string;
|
|
350
|
+
transaction_id?: number;
|
|
351
|
+
sequence_number?: string;
|
|
352
|
+
soft_descriptor?: string;
|
|
353
|
+
three_ds_acs_id?: string;
|
|
354
|
+
card_holder_name?: string;
|
|
355
|
+
installment_info?: string;
|
|
356
|
+
three_ds_version?: string;
|
|
357
|
+
installments_type?: string;
|
|
358
|
+
three_ds_setup_id?: string;
|
|
359
|
+
authorization_code?: string;
|
|
360
|
+
card_number_length?: number;
|
|
361
|
+
installments_amount?: string;
|
|
362
|
+
internal_card_token?: string;
|
|
363
|
+
three_ds_cryptogram?: string;
|
|
364
|
+
card_expiration_year?: number;
|
|
365
|
+
three_ds_collect_url?: string;
|
|
366
|
+
three_ds_solution_id?: string;
|
|
367
|
+
card_expiration_month?: number;
|
|
368
|
+
three_ds_developer_id?: string;
|
|
369
|
+
three_ds_pares_status?: string;
|
|
370
|
+
three_ds_has_challenge?: string;
|
|
371
|
+
provider_transaction_id?: string;
|
|
372
|
+
three_ds_transaction_id?: string;
|
|
373
|
+
card_security_code_length?: number;
|
|
374
|
+
first_installment_deferral?: string;
|
|
375
|
+
retrieval_reference_number?: string;
|
|
376
|
+
third_party_transaction_id?: string;
|
|
377
|
+
three_ds_setup_reference_id?: string;
|
|
378
|
+
internal_security_code_token?: string;
|
|
379
|
+
fingerprint_code?: string;
|
|
380
|
+
three_ds_electronic_commerce_indicator?: string;
|
|
381
|
+
network_token_response_code?: string;
|
|
382
|
+
network_token_response_message?: string;
|
|
383
|
+
network_token_lfd?: string;
|
|
384
|
+
network_token_iin?: string;
|
|
385
|
+
network_token_expiration_month?: number;
|
|
386
|
+
network_token_expiration_year?: number;
|
|
387
|
+
network_token_par?: string;
|
|
388
|
+
network_token_status?: string;
|
|
389
|
+
}
|
|
390
|
+
interface CustomerPayerTransactionDetail {
|
|
391
|
+
id?: number;
|
|
392
|
+
email?: string;
|
|
393
|
+
gender?: string;
|
|
394
|
+
last_name?: string;
|
|
395
|
+
created_at?: string;
|
|
396
|
+
first_name?: string;
|
|
397
|
+
ip_address?: string;
|
|
398
|
+
payment_id?: number;
|
|
399
|
+
updated_at?: string;
|
|
400
|
+
nationality?: string;
|
|
401
|
+
phone_number?: string;
|
|
402
|
+
customer_code?: string;
|
|
403
|
+
date_of_birth?: string;
|
|
404
|
+
document_type?: string;
|
|
405
|
+
document_number?: string;
|
|
406
|
+
device_fingerprint?: string;
|
|
407
|
+
phone_country_code?: string;
|
|
408
|
+
browser_info_language?: string;
|
|
409
|
+
third_party_session_id?: string;
|
|
410
|
+
browser_info_user_agent?: string;
|
|
411
|
+
browser_info_color_depth?: string;
|
|
412
|
+
browser_info_java_enabled?: string;
|
|
413
|
+
browser_info_screen_width?: string;
|
|
414
|
+
browser_info_accept_header?: string;
|
|
415
|
+
browser_info_screen_height?: string;
|
|
416
|
+
browser_info_accept_browser?: string;
|
|
417
|
+
browser_info_accept_content?: string;
|
|
418
|
+
browser_info_javascript_enabled?: string;
|
|
419
|
+
organization_customer_external_id?: string;
|
|
420
|
+
browser_info_browser_time_difference?: string;
|
|
421
|
+
}
|
|
273
422
|
interface TransactionDetailsResult {
|
|
274
423
|
content: TransactionDetails[];
|
|
275
424
|
}
|