@foxy.io/sdk
Version:
Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.
23 lines (22 loc) • 861 B
TypeScript
import type { CustomerPortalSettings } from './Graph/customer_portal_settings';
import type { Resource } from '../core/Resource/Resource';
import type { Subscription } from './Graph/subscription';
declare type Config = CustomerPortalSettings['props']['subscriptions']['allow_next_date_modification'];
declare type Options = {
value: string;
settings: {
subscriptions: {
allow_next_date_modification: Config;
};
};
subscription: Omit<Resource<Subscription>, '_links' | '_embedded'>;
};
/**
* Checks if given date (YYYY-MM-DD) can be used as the next transaction
* date for given subscription.
*
* @param opts Subscription, customer portal settings and value.
* @returns True if given date can be used as next transaction date.
*/
export declare function isNextTransactionDate(opts: Options): boolean;
export {};