akua-sdk
Version:
TypeScript SDK for Akua Acquiring Processor
35 lines (34 loc) • 927 B
TypeScript
import { Country, Currency } from '../enums';
import { Address, Rails } from './common';
import { PaginatedResponse } from '../common/pagination';
interface StatusLogRawResponse {
status: string;
created_at: string;
reason?: string;
details?: Record<string, unknown>;
created_by: string;
}
export interface MerchantResponse {
id: string;
organization_id: string;
country: Country;
city: string;
state: string;
name: string;
billing_address: Address;
location_address: Address;
email: string;
phone?: string;
status: string;
activity?: string;
parent_id?: string;
rails?: Rails;
created_at: string;
updated_at: string;
supported_currencies: Currency[];
custom_data?: Record<string, unknown>;
status_logs?: StatusLogRawResponse[];
alias?: string;
}
export type MerchantsResponse = PaginatedResponse<MerchantResponse>;
export {};