CREATE DOMAIN Clause Samples

CREATE DOMAIN. This structure will be used to initiate domain creation. It is necessary that the user be made to check domain name availability before coming to this stage. struct T_DOMAIN_CREATE { struct T_DOMAIN Domain; char szDomainChoiceTwo[32]; char szDomainChoiceThree[32]; int nCreateMode; int nBillingMethod; int nCardType; char szCardHolder[64]; char szCardNumber[16]; time_t tmExpDate; }; The usage of the fields is explained below. nCOMMAND: CMD_CREATE. esERVERTYPE: SERVER_DOMAIN. szDOMAINNAME: Hold the first preference for domain name. This field is filled on input. szADMINUSERNAME: Admin user to be created. szADMINPASSWORD: Admin user password. szDOMAINCHOICETWO: Holds the second preference for domain name. This field is filled on input. szDOMAINCHOICETHREE: Holds the third preference for domain name. This field is filled on input. ncREATEMODE: Hold the domain name creation mode. This field is filled on input. This field can have the following values: - DOMAIN_CREATE_REGISTERNEW: Register the domain name specified. If name cannot be registered, the call fails. - DOMAIN_CREATE_TRANSFEROLD: Do not register the domain name. The domain is owned by the user. CNM has to initiate process to shift the domain name from the current DNS to CNM DNS server. - DOMAIN_CREATE_NOACTION: Do not register the domain name. The user will get the DNS for the domain transferred to CNM DNS server. nBILLINGMETHOD: Holds the billing method to be used. This field is filled on input. The permissible values are: - BILLING_CREDITCARD - BILLING_RAISEINVOICE nCARDTYPE: Holds the credit card type. This field is filled on input. This value is valid only if nBillingMethod is BILLING_CREDITCARD. The permissible values are: - CREDITCARD_VISA - CREDITCARD_MASTERCARD - CREDITCARD_AMEX - CREDITCARD_DISCOVER szCARDHOLDER: Holds the credit card owner name. This field is filled on input. This value is valid only if nBillingMethod is BILLING_CREDITCARD. szCARDNUMBER: Holds the credit card number. This field is filled on input. This value is valid only if nBillingMethod is BILLING_CREDITCARD. tmEXPDATE: Holds the credit card expiry date. This field is filled on input. This value is valid only if nBillingMethod is BILLING_CREDITCARD.