@yuno-payments/dashboard-api-mfe 0.42.8 → 0.42.15-recipients-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.
@@ -138,6 +138,7 @@ export declare class Api extends HttpClient {
138
138
  payload: Audit.AuditApiLogsParams;
139
139
  }): Promise<AxiosResponse<T>>;
140
140
  getApiLogsDetailByPaymentCode<T>(paymentCode: string): Promise<AxiosResponse<T>>;
141
+ getApiLogsByTransactionCode<T>(transactionCode: string, accountCode: string): Promise<AxiosResponse<T>>;
141
142
  useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
142
143
  useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
143
144
  useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
@@ -505,14 +506,14 @@ export declare class Api extends HttpClient {
505
506
  postCreateRuleMultiAccount<T>(payload: any, accountCode: any): Promise<AxiosResponse<T, any>>;
506
507
  postEditRule<T>(payload: any, ruleId: any, accountCode: any): Promise<AxiosResponse<T, any>>;
507
508
  postApiKeysRoll<T>(payload: any, keyCode: any, password: any): Promise<AxiosResponse<T, any>>;
508
- patchApiKeysEditNote<T>(payload: any, keyCode: any): Promise<AxiosResponse<T, any>>;
509
+ patchApiKeysEditNote<T>(payload: any, keyCode: any, password: any): Promise<AxiosResponse<T, any>>;
509
510
  getCustomizedApiKeysMembers<T>(): Promise<AxiosResponse<T, any>>;
510
511
  getCustomizedApiKeysAccounts<T>(): Promise<AxiosResponse<T, any>>;
511
512
  postCreateCustomizedApiKeys<T>(payload: any): Promise<AxiosResponse<T, any>>;
512
513
  pathCreateCustomizedApiKeys<T>(payload: any, code: any): Promise<AxiosResponse<T, any>>;
513
514
  postCustomizedApiKeys<T>(accountCodes: string[]): Promise<AxiosResponse<T, any>>;
514
515
  getCustomizedApiKeysProducts<T>(): Promise<AxiosResponse<T, any>>;
515
- getCustomizedApiKeysToken<T>(code: any, password: any): Promise<AxiosResponse<T, any>>;
516
+ getCustomizedApiKeysToken<T>(code: string, password?: string, otp?: string, mfaToken?: string): Promise<AxiosResponse<T, any>>;
516
517
  validatePasswordStatus<T>(): Promise<AxiosResponse<T, any, {}>>;
517
518
  deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
518
519
  postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
@@ -568,5 +569,22 @@ export declare class Api extends HttpClient {
568
569
  }): Promise<AxiosResponse<T, any>>;
569
570
  getCommunicationsFilters<T>(): Promise<AxiosResponse<T, any>>;
570
571
  getCommunicationDetails<T>(communicationId: string, accountCode: string): Promise<AxiosResponse<T, any>>;
572
+ getRecipients<T>(organizationCode: string, params: {
573
+ account_ids?: string;
574
+ countries?: string;
575
+ national_entities?: string;
576
+ entity_types?: string;
577
+ start_date?: string;
578
+ end_date?: string;
579
+ search_type?: string;
580
+ search_value?: string;
581
+ page?: number;
582
+ page_size?: number;
583
+ sort_by?: string;
584
+ sort_order?: string;
585
+ }): Promise<AxiosResponse<T, any>>;
586
+ getRecipientById<T>(organizationCode: string, recipientId: string): Promise<AxiosResponse<T, any>>;
587
+ getOnboardingDetail<T>(organizationCode: string, recipientId: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
588
+ getOnboardingTimeline<T>(organizationCode: string, onboardingId: string): Promise<AxiosResponse<T, any>>;
571
589
  }
572
590
  export {};
@@ -9,3 +9,4 @@ export declare function usePostWebhookLogs({ params, }: {
9
9
  params: Audit.AuditWebhooksParams;
10
10
  }): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
11
11
  export declare function useGetApiLogsDetailByPaymentCode(code: string | null | undefined): UseQueryResult<unknown, BFFErrorResponse>;
12
+ export declare function useGetApiLogsByTransactionCode(transactionCode: string | null | undefined, accountCode: string | null | undefined): UseQueryResult<Audit.ApiLogByTransactionCode, BFFErrorResponse>;
@@ -31,3 +31,4 @@ export * from './smart-recovery';
31
31
  export * from './network-tokens';
32
32
  export * from './template-reporting';
33
33
  export * from './organization-config';
34
+ export * from './recipients';
@@ -0,0 +1 @@
1
+ export * from './recipients.query';
@@ -0,0 +1,8 @@
1
+ import { AxiosError } from 'axios';
2
+ import { UseQueryResult } from '@tanstack/react-query';
3
+ import { Recipients, GetRecipientsParams, GetRecipientByIdParams, GetOnboardingDetailParams, GetOnboardingTimelineParams } from '../../types/recipients';
4
+ import { BFFErrorResponse } from '../../mutations';
5
+ export declare function useGetRecipients(organizationCode: string, params: GetRecipientsParams, enabled?: boolean): UseQueryResult<Recipients.RecipientListResponse, AxiosError<BFFErrorResponse>>;
6
+ export declare function useGetRecipientById(organizationCode: string, params: GetRecipientByIdParams, enabled?: boolean): UseQueryResult<Recipients.RecipientDetail, AxiosError<BFFErrorResponse>>;
7
+ export declare function useGetOnboardingDetail(organizationCode: string, params: GetOnboardingDetailParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingDetail, AxiosError<BFFErrorResponse>>;
8
+ export declare function useGetOnboardingTimeline(organizationCode: string, params: GetOnboardingTimelineParams, enabled?: boolean): UseQueryResult<Recipients.OnboardingTimeline, AxiosError<BFFErrorResponse>>;
@@ -203,4 +203,18 @@ export declare namespace Audit {
203
203
  interface AuditWebhooksResendParams {
204
204
  codes: string[];
205
205
  }
206
+ interface ApiLogByTransactionCode {
207
+ code: string;
208
+ url: string;
209
+ method: string;
210
+ source: string;
211
+ headers: AuditApiJSON;
212
+ request: AuditApiJSON;
213
+ response: AuditApiJSON;
214
+ account_name: string;
215
+ account_code: string;
216
+ status_code: number;
217
+ trace_id: string;
218
+ created_at: string;
219
+ }
206
220
  }
@@ -31,3 +31,4 @@ export * from './ai';
31
31
  export * from './smart-recovery';
32
32
  export * from './template-reporting';
33
33
  export * from './organization-config';
34
+ export * from './recipients';
@@ -0,0 +1 @@
1
+ export * from './recipients';
@@ -0,0 +1,216 @@
1
+ export declare namespace Recipients {
2
+ interface Document {
3
+ number: string | null;
4
+ type: string | null;
5
+ }
6
+ interface Phone {
7
+ country_code: string | null;
8
+ number: string | null;
9
+ }
10
+ interface Address {
11
+ address_line_1: string | null;
12
+ address_line_2: string | null;
13
+ country: string | null;
14
+ city: string | null;
15
+ state: string | null;
16
+ zip_code: string | null;
17
+ }
18
+ interface Bank {
19
+ code: string | null;
20
+ branch: string | null;
21
+ branch_digit: string | null;
22
+ account: string | null;
23
+ account_digit: string | null;
24
+ account_type: string | null;
25
+ routing: string | null;
26
+ country: string | null;
27
+ currency: string | null;
28
+ payout_schedule?: string | null;
29
+ }
30
+ interface WithdrawalMethod {
31
+ bank: Bank | null;
32
+ }
33
+ interface Documentation {
34
+ file_name: string;
35
+ content_type: string;
36
+ content_category: string;
37
+ content: string | null;
38
+ }
39
+ interface OnboardingSummary {
40
+ id: string;
41
+ provider_id: string;
42
+ status: string;
43
+ created_at: string;
44
+ }
45
+ interface RecipientListItem {
46
+ id: string;
47
+ merchant_recipient_id: string | null;
48
+ national_entity: string;
49
+ entity_type: string | null;
50
+ country: string;
51
+ first_name: string | null;
52
+ last_name: string | null;
53
+ legal_name: string | null;
54
+ email: string | null;
55
+ account_id: string;
56
+ date_of_birth: string | null;
57
+ website: string | null;
58
+ industry: string | null;
59
+ merchant_category_code: string | null;
60
+ created_at: string;
61
+ updated_at: string;
62
+ }
63
+ interface Pagination {
64
+ page: number;
65
+ page_size: number;
66
+ total_items: number;
67
+ total_pages: number;
68
+ has_next: boolean;
69
+ has_previous: boolean;
70
+ }
71
+ interface RecipientListResponse {
72
+ data: RecipientListItem[];
73
+ pagination: Pagination;
74
+ }
75
+ interface RecipientDetail {
76
+ id: string;
77
+ merchant_recipient_id: string | null;
78
+ national_entity: string;
79
+ entity_type: string | null;
80
+ country: string;
81
+ first_name: string | null;
82
+ last_name: string | null;
83
+ legal_name: string | null;
84
+ email: string | null;
85
+ account_id: string;
86
+ created_at: string;
87
+ updated_at: string;
88
+ document: Document | null;
89
+ phone: Phone | null;
90
+ address: Address | null;
91
+ withdrawal_method: WithdrawalMethod | null;
92
+ documentation: Documentation[];
93
+ onboardings: OnboardingSummary[];
94
+ }
95
+ interface OnboardingProvider {
96
+ id: string | null;
97
+ connection_id: string | null;
98
+ redirect_url: string | null;
99
+ recipient_id: string | null;
100
+ recipient_additional_id: string | null;
101
+ onboarding_url: string | null;
102
+ legal_entity: string | null;
103
+ balance_account_id: string | null;
104
+ recipient_type: string | null;
105
+ raw_notification: string | null;
106
+ raw_response: string | null;
107
+ response_code: string | null;
108
+ response_message: string | null;
109
+ }
110
+ interface LegalRepresentativeDocument {
111
+ type: string | null;
112
+ number: string | null;
113
+ }
114
+ interface LegalRepresentative {
115
+ first_name: string | null;
116
+ last_name: string | null;
117
+ email: string | null;
118
+ document: LegalRepresentativeDocument | null;
119
+ phone: Phone | null;
120
+ address: Address | null;
121
+ date_of_birth: string | null;
122
+ }
123
+ interface Requirement {
124
+ field: string | null;
125
+ message: string | null;
126
+ status: string | null;
127
+ }
128
+ interface CapabilityRequirement {
129
+ provider_response_code: string | null;
130
+ provider_response_message: string | null;
131
+ provider_response_field: string | null;
132
+ message: string | null;
133
+ status: string | null;
134
+ }
135
+ interface Capability {
136
+ status: string | null;
137
+ requirements: CapabilityRequirement[];
138
+ }
139
+ interface Capabilities {
140
+ payouts: Capability | null;
141
+ send_transfers: Capability | null;
142
+ receive_transfers: Capability | null;
143
+ payments: Capability | null;
144
+ }
145
+ interface TermsOfService {
146
+ acceptance: boolean | null;
147
+ date: string | null;
148
+ ip: string | null;
149
+ }
150
+ interface Metadata {
151
+ key: string;
152
+ value: string;
153
+ }
154
+ interface OnboardingDetail {
155
+ id: string;
156
+ type: string;
157
+ workflow: string;
158
+ description: string | null;
159
+ status: string;
160
+ response_message: string | null;
161
+ callback_url: string | null;
162
+ provider: OnboardingProvider | null;
163
+ documentation: Documentation[];
164
+ legal_representatives: LegalRepresentative[];
165
+ withdrawal_methods: WithdrawalMethod | null;
166
+ requirements: Requirement[];
167
+ capabilities: Capabilities | null;
168
+ terms_of_service: TermsOfService | null;
169
+ metadata: Metadata[];
170
+ created_at: string;
171
+ updated_at: string;
172
+ expires_at: string | null;
173
+ }
174
+ interface TimelineEventData {
175
+ provider_id?: string | null;
176
+ provider_status?: string | null;
177
+ provider_response_code?: string | null;
178
+ provider_response_message?: string | null;
179
+ provider_recipient_id?: string | null;
180
+ provider_redirect_url?: string | null;
181
+ requirements?: Requirement[];
182
+ capabilities?: Capabilities | null;
183
+ change_type?: string | null;
184
+ }
185
+ interface TimelineEvent {
186
+ timestamp: string;
187
+ event_type: string;
188
+ status: string | null;
189
+ event_data: TimelineEventData | null;
190
+ }
191
+ type OnboardingTimeline = TimelineEvent[];
192
+ }
193
+ export interface GetRecipientsParams {
194
+ account_ids?: string;
195
+ countries?: string;
196
+ national_entities?: string;
197
+ entity_types?: string;
198
+ start_date?: string;
199
+ end_date?: string;
200
+ search_type?: string;
201
+ search_value?: string;
202
+ page?: number;
203
+ page_size?: number;
204
+ sort_by?: string;
205
+ sort_order?: string;
206
+ }
207
+ export interface GetRecipientByIdParams {
208
+ recipient_id: string;
209
+ }
210
+ export interface GetOnboardingDetailParams {
211
+ recipient_id: string;
212
+ onboarding_id: string;
213
+ }
214
+ export interface GetOnboardingTimelineParams {
215
+ onboarding_id: string;
216
+ }