UNPKG

@selldone/sdk-storefront

Version:

A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.

10 lines (9 loc) 522 B
import { IErrorResponse } from "@selldone/core-js/server/APIAbstract"; import { AxiosError } from "axios"; import { ExchangeRate } from "@selldone/core-js/models/shop/payment/exchange_rate.model"; export default function fetchRates(this: any, onSuccess: (data: xapi.exchange_rates.get.IExchangeRatesServerResponse) => void, onError?: (error: IErrorResponse | AxiosError) => void): void; export declare namespace xapi.exchange_rates.get { interface IExchangeRatesServerResponse { rates: ExchangeRate[]; } }