@automattic/wpcom-checkout
Version:
Functions and components used by WordPress.com checkout.
16 lines • 643 B
TypeScript
import type { CountryListItem } from './types';
export interface CountryTaxRequirements {
city?: true;
subdivision?: true;
organization?: true;
address?: true;
}
/**
* Returns tax requirements for the specified country code.
*
* NOTE: Will return an empty object if the countries list is empty or if the country
* code is not in the list! Always check that the countries list has loaded
* before calling this.
*/
export declare function getCountryTaxRequirements(countries: CountryListItem[] | undefined, countryCode: string | undefined): CountryTaxRequirements;
//# sourceMappingURL=get-country-tax-requirements.d.ts.map