@moneygraph/sdk
Version:
AI-native SDK for global payouts powered by StratosPay
53 lines (52 loc) • 1.66 kB
TypeScript
/**
* MoneyGraph SDK - Reference Module
*
* Reference data APIs:
* - Countries
* - Currencies with rates
* - Source of funds
* - MCC (Merchant Category Codes)
* - Business registration types
*/
import { ApiClient } from '../api/client';
import type { Country, Currency, SourceOfFunds, MerchantCategoryCode, BusinessRegistrationType, PaginatedResponse } from '../types';
export declare class ReferenceModule {
private readonly client;
constructor(client: ApiClient);
/**
* Get list of supported countries
*/
getCountries(page?: number): Promise<PaginatedResponse<Country>>;
/**
* Get all countries (unpaginated convenience method)
*/
getAllCountries(): Promise<Country[]>;
/**
* Get currency details and rates for a country
*/
getCurrencies(countryIso2: string): Promise<Currency[]>;
/**
* Get list of source of funds options
*/
getSourceOfFunds(): Promise<SourceOfFunds[]>;
/**
* Get list of MCC codes
*/
getMccCodes(): Promise<MerchantCategoryCode[]>;
/**
* Get list of business registration types
*/
getBusinessRegistrationTypes(): Promise<BusinessRegistrationType[]>;
/**
* Find source of funds by name (case-insensitive partial match)
*/
findSourceOfFunds(searchTerm: string): Promise<SourceOfFunds | undefined>;
/**
* Find MCC by name (case-insensitive partial match)
*/
findMcc(searchTerm: string): Promise<MerchantCategoryCode | undefined>;
/**
* Find business registration type by name
*/
findBusinessType(searchTerm: string): Promise<BusinessRegistrationType | undefined>;
}