@datatr-ux/ovhcloud-types
Version:
TypeScript types for OVHCloud projects
23 lines • 1.42 kB
TypeScript
import { Contacts } from './Contacts';
import { PriceAcknowledge } from './PriceAcknowledge';
import { ZoneOptions } from './ZoneOptions';
/** Payload to order a new domain name */
export interface OrderRequest {
/** Admin, tech and owner contacts */
contacts?: Contacts;
/** List of DNS servers (hostnames) to set on the domain. Optional: if omitted, OVHcloud's recommended DNS servers for the domain are used. */
dns?: string[];
/** Fully-qualified domain name to order, including the extension (e.g. example.com) */
domain: string;
/** Order duration in ISO-8601 format, whole years only (e.g. P1Y). Allowed values depend on the extension's registry configuration; an unsupported duration is rejected. Defaults to P1Y if omitted. */
duration?: string;
/** Price the customer acknowledged before placing the order. Required for aftermarket or premium domains, optional otherwise. Its value/currency must equal the retail price quoted for this domain (e.g. via a dryRun order); a mismatch rejects the order. */
priceAcknowledge?: PriceAcknowledge;
/** Promotion codes to apply. Optional. */
promoCodes?: string[];
/** Acknowledgment that the customer waives the legal retractation period. Must be set to true to place the order. */
waiveRetractationPeriod?: boolean;
/** DNS zone options */
zone?: ZoneOptions;
}
//# sourceMappingURL=OrderRequest.d.ts.map