hostinger-api-sdk 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +1052 -85
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +578 -32
- package/dist/api.js +753 -9
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +578 -32
- package/dist/esm/api.js +741 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/DomainsMoveApi.md +438 -0
- package/docs/DomainsPortfolioApi.md +56 -0
- package/docs/DomainsTransferApi.md +56 -0
- package/docs/DomainsV1MoveIncomingUpdateRequest.md +20 -0
- package/docs/DomainsV1MoveIncomingUpdateRequestDomainContacts.md +27 -0
- package/docs/DomainsV1MoveMoveResource.md +26 -0
- package/docs/DomainsV1MoveOutgoingStoreRequest.md +20 -0
- package/docs/DomainsV1PortfolioClaimRequest.md +24 -0
- package/docs/{DomainsV1PortfolioPurchaseRequestDomainContacts.md → DomainsV1PortfolioClaimRequestDomainContacts.md} +3 -3
- package/docs/DomainsV1PortfolioClaimResource.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +1 -1
- package/docs/DomainsV1TransferClaimRequest.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.27.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -152,6 +152,21 @@ export const DomainsV1IRTPVerificationResourceStatusEnum = {
|
|
|
152
152
|
Completed: 'completed',
|
|
153
153
|
Canceled: 'canceled'
|
|
154
154
|
};
|
|
155
|
+
export const DomainsV1MoveMoveResourceStatusEnum = {
|
|
156
|
+
Initiated: 'initiated',
|
|
157
|
+
Activating: 'activating',
|
|
158
|
+
Completed: 'completed'
|
|
159
|
+
};
|
|
160
|
+
export const DomainsV1PortfolioClaimResourceStatusEnum = {
|
|
161
|
+
Active: 'active',
|
|
162
|
+
PendingSetup: 'pending_setup',
|
|
163
|
+
Expired: 'expired',
|
|
164
|
+
Requested: 'requested',
|
|
165
|
+
PendingVerification: 'pending_verification',
|
|
166
|
+
Deleted: 'deleted',
|
|
167
|
+
Suspended: 'suspended',
|
|
168
|
+
Failed: 'failed'
|
|
169
|
+
};
|
|
155
170
|
export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
|
|
156
171
|
Owner: 'owner',
|
|
157
172
|
Admin: 'admin',
|
|
@@ -4708,12 +4723,632 @@ export class DomainsForwardingApi extends BaseAPI {
|
|
|
4708
4723
|
return DomainsForwardingApiFp(this.configuration).updateDomainForwardingV1(domain, domainsV1ForwardingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4709
4724
|
}
|
|
4710
4725
|
}
|
|
4726
|
+
/**
|
|
4727
|
+
* DomainsMoveApi - axios parameter creator
|
|
4728
|
+
* @export
|
|
4729
|
+
*/
|
|
4730
|
+
export const DomainsMoveApiAxiosParamCreator = function (configuration) {
|
|
4731
|
+
return {
|
|
4732
|
+
/**
|
|
4733
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
4734
|
+
* @summary Accept incoming domain move
|
|
4735
|
+
* @param {string} domain Domain name
|
|
4736
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
4737
|
+
* @param {*} [options] Override http request option.
|
|
4738
|
+
* @throws {RequiredError}
|
|
4739
|
+
*/
|
|
4740
|
+
acceptIncomingDomainMoveV1: (domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveIncomingUpdateRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveIncomingUpdateRequest, options = {}) {
|
|
4741
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4742
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domain', domain);
|
|
4743
|
+
// verify required parameter 'domainsV1MoveIncomingUpdateRequest' is not null or undefined
|
|
4744
|
+
assertParamExists('acceptIncomingDomainMoveV1', 'domainsV1MoveIncomingUpdateRequest', domainsV1MoveIncomingUpdateRequest);
|
|
4745
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4746
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4748
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4749
|
+
let baseOptions;
|
|
4750
|
+
if (configuration) {
|
|
4751
|
+
baseOptions = configuration.baseOptions;
|
|
4752
|
+
}
|
|
4753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4754
|
+
const localVarHeaderParameter = {};
|
|
4755
|
+
const localVarQueryParameter = {};
|
|
4756
|
+
// authentication apiToken required
|
|
4757
|
+
// http bearer authentication required
|
|
4758
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4759
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4760
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4762
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4763
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveIncomingUpdateRequest, localVarRequestOptions, configuration);
|
|
4764
|
+
return {
|
|
4765
|
+
url: toPathString(localVarUrlObj),
|
|
4766
|
+
options: localVarRequestOptions,
|
|
4767
|
+
};
|
|
4768
|
+
}),
|
|
4769
|
+
/**
|
|
4770
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
4771
|
+
* @summary Cancel outgoing domain move
|
|
4772
|
+
* @param {string} domain Domain name
|
|
4773
|
+
* @param {*} [options] Override http request option.
|
|
4774
|
+
* @throws {RequiredError}
|
|
4775
|
+
*/
|
|
4776
|
+
cancelOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4777
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4778
|
+
assertParamExists('cancelOutgoingDomainMoveV1', 'domain', domain);
|
|
4779
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4780
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4781
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4783
|
+
let baseOptions;
|
|
4784
|
+
if (configuration) {
|
|
4785
|
+
baseOptions = configuration.baseOptions;
|
|
4786
|
+
}
|
|
4787
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4788
|
+
const localVarHeaderParameter = {};
|
|
4789
|
+
const localVarQueryParameter = {};
|
|
4790
|
+
// authentication apiToken required
|
|
4791
|
+
// http bearer authentication required
|
|
4792
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4793
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4794
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4795
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4796
|
+
return {
|
|
4797
|
+
url: toPathString(localVarUrlObj),
|
|
4798
|
+
options: localVarRequestOptions,
|
|
4799
|
+
};
|
|
4800
|
+
}),
|
|
4801
|
+
/**
|
|
4802
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
4803
|
+
* @summary Get incoming domain move list
|
|
4804
|
+
* @param {*} [options] Override http request option.
|
|
4805
|
+
* @throws {RequiredError}
|
|
4806
|
+
*/
|
|
4807
|
+
getIncomingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4808
|
+
const localVarPath = `/api/domains/v1/move/incoming`;
|
|
4809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4810
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4811
|
+
let baseOptions;
|
|
4812
|
+
if (configuration) {
|
|
4813
|
+
baseOptions = configuration.baseOptions;
|
|
4814
|
+
}
|
|
4815
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4816
|
+
const localVarHeaderParameter = {};
|
|
4817
|
+
const localVarQueryParameter = {};
|
|
4818
|
+
// authentication apiToken required
|
|
4819
|
+
// http bearer authentication required
|
|
4820
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4821
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4822
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4823
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4824
|
+
return {
|
|
4825
|
+
url: toPathString(localVarUrlObj),
|
|
4826
|
+
options: localVarRequestOptions,
|
|
4827
|
+
};
|
|
4828
|
+
}),
|
|
4829
|
+
/**
|
|
4830
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
4831
|
+
* @summary Get incoming domain move
|
|
4832
|
+
* @param {string} domain Domain name
|
|
4833
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
4834
|
+
* @param {*} [options] Override http request option.
|
|
4835
|
+
* @throws {RequiredError}
|
|
4836
|
+
*/
|
|
4837
|
+
getIncomingDomainMoveV1: (domain_1, forceSync_1, ...args_1) => __awaiter(this, [domain_1, forceSync_1, ...args_1], void 0, function* (domain, forceSync, options = {}) {
|
|
4838
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4839
|
+
assertParamExists('getIncomingDomainMoveV1', 'domain', domain);
|
|
4840
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4841
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4843
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4844
|
+
let baseOptions;
|
|
4845
|
+
if (configuration) {
|
|
4846
|
+
baseOptions = configuration.baseOptions;
|
|
4847
|
+
}
|
|
4848
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4849
|
+
const localVarHeaderParameter = {};
|
|
4850
|
+
const localVarQueryParameter = {};
|
|
4851
|
+
// authentication apiToken required
|
|
4852
|
+
// http bearer authentication required
|
|
4853
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4854
|
+
if (forceSync !== undefined) {
|
|
4855
|
+
localVarQueryParameter['force_sync'] = forceSync;
|
|
4856
|
+
}
|
|
4857
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4858
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4859
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4860
|
+
return {
|
|
4861
|
+
url: toPathString(localVarUrlObj),
|
|
4862
|
+
options: localVarRequestOptions,
|
|
4863
|
+
};
|
|
4864
|
+
}),
|
|
4865
|
+
/**
|
|
4866
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
4867
|
+
* @summary Get outgoing domain move list
|
|
4868
|
+
* @param {*} [options] Override http request option.
|
|
4869
|
+
* @throws {RequiredError}
|
|
4870
|
+
*/
|
|
4871
|
+
getOutgoingDomainMoveListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
4872
|
+
const localVarPath = `/api/domains/v1/move/outgoing`;
|
|
4873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4874
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4875
|
+
let baseOptions;
|
|
4876
|
+
if (configuration) {
|
|
4877
|
+
baseOptions = configuration.baseOptions;
|
|
4878
|
+
}
|
|
4879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4880
|
+
const localVarHeaderParameter = {};
|
|
4881
|
+
const localVarQueryParameter = {};
|
|
4882
|
+
// authentication apiToken required
|
|
4883
|
+
// http bearer authentication required
|
|
4884
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4885
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4886
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4887
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4888
|
+
return {
|
|
4889
|
+
url: toPathString(localVarUrlObj),
|
|
4890
|
+
options: localVarRequestOptions,
|
|
4891
|
+
};
|
|
4892
|
+
}),
|
|
4893
|
+
/**
|
|
4894
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
4895
|
+
* @summary Get outgoing domain move
|
|
4896
|
+
* @param {string} domain Domain name
|
|
4897
|
+
* @param {*} [options] Override http request option.
|
|
4898
|
+
* @throws {RequiredError}
|
|
4899
|
+
*/
|
|
4900
|
+
getOutgoingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4901
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4902
|
+
assertParamExists('getOutgoingDomainMoveV1', 'domain', domain);
|
|
4903
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4904
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4906
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4907
|
+
let baseOptions;
|
|
4908
|
+
if (configuration) {
|
|
4909
|
+
baseOptions = configuration.baseOptions;
|
|
4910
|
+
}
|
|
4911
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4912
|
+
const localVarHeaderParameter = {};
|
|
4913
|
+
const localVarQueryParameter = {};
|
|
4914
|
+
// authentication apiToken required
|
|
4915
|
+
// http bearer authentication required
|
|
4916
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4917
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4919
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4920
|
+
return {
|
|
4921
|
+
url: toPathString(localVarUrlObj),
|
|
4922
|
+
options: localVarRequestOptions,
|
|
4923
|
+
};
|
|
4924
|
+
}),
|
|
4925
|
+
/**
|
|
4926
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
4927
|
+
* @summary Reject incoming domain move
|
|
4928
|
+
* @param {string} domain Domain name
|
|
4929
|
+
* @param {*} [options] Override http request option.
|
|
4930
|
+
* @throws {RequiredError}
|
|
4931
|
+
*/
|
|
4932
|
+
rejectIncomingDomainMoveV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
|
|
4933
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4934
|
+
assertParamExists('rejectIncomingDomainMoveV1', 'domain', domain);
|
|
4935
|
+
const localVarPath = `/api/domains/v1/move/incoming/{domain}`
|
|
4936
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4938
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4939
|
+
let baseOptions;
|
|
4940
|
+
if (configuration) {
|
|
4941
|
+
baseOptions = configuration.baseOptions;
|
|
4942
|
+
}
|
|
4943
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4944
|
+
const localVarHeaderParameter = {};
|
|
4945
|
+
const localVarQueryParameter = {};
|
|
4946
|
+
// authentication apiToken required
|
|
4947
|
+
// http bearer authentication required
|
|
4948
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4949
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4951
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4952
|
+
return {
|
|
4953
|
+
url: toPathString(localVarUrlObj),
|
|
4954
|
+
options: localVarRequestOptions,
|
|
4955
|
+
};
|
|
4956
|
+
}),
|
|
4957
|
+
/**
|
|
4958
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
4959
|
+
* @summary Start outgoing domain move
|
|
4960
|
+
* @param {string} domain Domain name
|
|
4961
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
4962
|
+
* @param {*} [options] Override http request option.
|
|
4963
|
+
* @throws {RequiredError}
|
|
4964
|
+
*/
|
|
4965
|
+
startOutgoingDomainMoveV1: (domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1) => __awaiter(this, [domain_1, domainsV1MoveOutgoingStoreRequest_1, ...args_1], void 0, function* (domain, domainsV1MoveOutgoingStoreRequest, options = {}) {
|
|
4966
|
+
// verify required parameter 'domain' is not null or undefined
|
|
4967
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domain', domain);
|
|
4968
|
+
// verify required parameter 'domainsV1MoveOutgoingStoreRequest' is not null or undefined
|
|
4969
|
+
assertParamExists('startOutgoingDomainMoveV1', 'domainsV1MoveOutgoingStoreRequest', domainsV1MoveOutgoingStoreRequest);
|
|
4970
|
+
const localVarPath = `/api/domains/v1/move/outgoing/{domain}`
|
|
4971
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
4972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4973
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4974
|
+
let baseOptions;
|
|
4975
|
+
if (configuration) {
|
|
4976
|
+
baseOptions = configuration.baseOptions;
|
|
4977
|
+
}
|
|
4978
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4979
|
+
const localVarHeaderParameter = {};
|
|
4980
|
+
const localVarQueryParameter = {};
|
|
4981
|
+
// authentication apiToken required
|
|
4982
|
+
// http bearer authentication required
|
|
4983
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4984
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4985
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4986
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4987
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4988
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1MoveOutgoingStoreRequest, localVarRequestOptions, configuration);
|
|
4989
|
+
return {
|
|
4990
|
+
url: toPathString(localVarUrlObj),
|
|
4991
|
+
options: localVarRequestOptions,
|
|
4992
|
+
};
|
|
4993
|
+
}),
|
|
4994
|
+
};
|
|
4995
|
+
};
|
|
4996
|
+
/**
|
|
4997
|
+
* DomainsMoveApi - functional programming interface
|
|
4998
|
+
* @export
|
|
4999
|
+
*/
|
|
5000
|
+
export const DomainsMoveApiFp = function (configuration) {
|
|
5001
|
+
const localVarAxiosParamCreator = DomainsMoveApiAxiosParamCreator(configuration);
|
|
5002
|
+
return {
|
|
5003
|
+
/**
|
|
5004
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
5005
|
+
* @summary Accept incoming domain move
|
|
5006
|
+
* @param {string} domain Domain name
|
|
5007
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
5008
|
+
* @param {*} [options] Override http request option.
|
|
5009
|
+
* @throws {RequiredError}
|
|
5010
|
+
*/
|
|
5011
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5013
|
+
var _a, _b;
|
|
5014
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options);
|
|
5015
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.acceptIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5016
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5017
|
+
});
|
|
5018
|
+
},
|
|
5019
|
+
/**
|
|
5020
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5021
|
+
* @summary Cancel outgoing domain move
|
|
5022
|
+
* @param {string} domain Domain name
|
|
5023
|
+
* @param {*} [options] Override http request option.
|
|
5024
|
+
* @throws {RequiredError}
|
|
5025
|
+
*/
|
|
5026
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5028
|
+
var _a, _b;
|
|
5029
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOutgoingDomainMoveV1(domain, options);
|
|
5030
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.cancelOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5031
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5032
|
+
});
|
|
5033
|
+
},
|
|
5034
|
+
/**
|
|
5035
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5036
|
+
* @summary Get incoming domain move list
|
|
5037
|
+
* @param {*} [options] Override http request option.
|
|
5038
|
+
* @throws {RequiredError}
|
|
5039
|
+
*/
|
|
5040
|
+
getIncomingDomainMoveListV1(options) {
|
|
5041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5042
|
+
var _a, _b;
|
|
5043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveListV1(options);
|
|
5044
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5045
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5046
|
+
});
|
|
5047
|
+
},
|
|
5048
|
+
/**
|
|
5049
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5050
|
+
* @summary Get incoming domain move
|
|
5051
|
+
* @param {string} domain Domain name
|
|
5052
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5053
|
+
* @param {*} [options] Override http request option.
|
|
5054
|
+
* @throws {RequiredError}
|
|
5055
|
+
*/
|
|
5056
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5058
|
+
var _a, _b;
|
|
5059
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getIncomingDomainMoveV1(domain, forceSync, options);
|
|
5060
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5061
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5062
|
+
});
|
|
5063
|
+
},
|
|
5064
|
+
/**
|
|
5065
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5066
|
+
* @summary Get outgoing domain move list
|
|
5067
|
+
* @param {*} [options] Override http request option.
|
|
5068
|
+
* @throws {RequiredError}
|
|
5069
|
+
*/
|
|
5070
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5071
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5072
|
+
var _a, _b;
|
|
5073
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveListV1(options);
|
|
5074
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5075
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5076
|
+
});
|
|
5077
|
+
},
|
|
5078
|
+
/**
|
|
5079
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5080
|
+
* @summary Get outgoing domain move
|
|
5081
|
+
* @param {string} domain Domain name
|
|
5082
|
+
* @param {*} [options] Override http request option.
|
|
5083
|
+
* @throws {RequiredError}
|
|
5084
|
+
*/
|
|
5085
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5086
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5087
|
+
var _a, _b;
|
|
5088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOutgoingDomainMoveV1(domain, options);
|
|
5089
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.getOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5090
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5091
|
+
});
|
|
5092
|
+
},
|
|
5093
|
+
/**
|
|
5094
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5095
|
+
* @summary Reject incoming domain move
|
|
5096
|
+
* @param {string} domain Domain name
|
|
5097
|
+
* @param {*} [options] Override http request option.
|
|
5098
|
+
* @throws {RequiredError}
|
|
5099
|
+
*/
|
|
5100
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5102
|
+
var _a, _b;
|
|
5103
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rejectIncomingDomainMoveV1(domain, options);
|
|
5104
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.rejectIncomingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5105
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5106
|
+
});
|
|
5107
|
+
},
|
|
5108
|
+
/**
|
|
5109
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5110
|
+
* @summary Start outgoing domain move
|
|
5111
|
+
* @param {string} domain Domain name
|
|
5112
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5113
|
+
* @param {*} [options] Override http request option.
|
|
5114
|
+
* @throws {RequiredError}
|
|
5115
|
+
*/
|
|
5116
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5118
|
+
var _a, _b;
|
|
5119
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options);
|
|
5120
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsMoveApi.startOutgoingDomainMoveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5121
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5122
|
+
});
|
|
5123
|
+
},
|
|
5124
|
+
};
|
|
5125
|
+
};
|
|
5126
|
+
/**
|
|
5127
|
+
* DomainsMoveApi - factory interface
|
|
5128
|
+
* @export
|
|
5129
|
+
*/
|
|
5130
|
+
export const DomainsMoveApiFactory = function (configuration, basePath, axios) {
|
|
5131
|
+
const localVarFp = DomainsMoveApiFp(configuration);
|
|
5132
|
+
return {
|
|
5133
|
+
/**
|
|
5134
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
5135
|
+
* @summary Accept incoming domain move
|
|
5136
|
+
* @param {string} domain Domain name
|
|
5137
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
5138
|
+
* @param {*} [options] Override http request option.
|
|
5139
|
+
* @throws {RequiredError}
|
|
5140
|
+
*/
|
|
5141
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5142
|
+
return localVarFp.acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(axios, basePath));
|
|
5143
|
+
},
|
|
5144
|
+
/**
|
|
5145
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5146
|
+
* @summary Cancel outgoing domain move
|
|
5147
|
+
* @param {string} domain Domain name
|
|
5148
|
+
* @param {*} [options] Override http request option.
|
|
5149
|
+
* @throws {RequiredError}
|
|
5150
|
+
*/
|
|
5151
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5152
|
+
return localVarFp.cancelOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5153
|
+
},
|
|
5154
|
+
/**
|
|
5155
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5156
|
+
* @summary Get incoming domain move list
|
|
5157
|
+
* @param {*} [options] Override http request option.
|
|
5158
|
+
* @throws {RequiredError}
|
|
5159
|
+
*/
|
|
5160
|
+
getIncomingDomainMoveListV1(options) {
|
|
5161
|
+
return localVarFp.getIncomingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
5162
|
+
},
|
|
5163
|
+
/**
|
|
5164
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5165
|
+
* @summary Get incoming domain move
|
|
5166
|
+
* @param {string} domain Domain name
|
|
5167
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5168
|
+
* @param {*} [options] Override http request option.
|
|
5169
|
+
* @throws {RequiredError}
|
|
5170
|
+
*/
|
|
5171
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5172
|
+
return localVarFp.getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(axios, basePath));
|
|
5173
|
+
},
|
|
5174
|
+
/**
|
|
5175
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5176
|
+
* @summary Get outgoing domain move list
|
|
5177
|
+
* @param {*} [options] Override http request option.
|
|
5178
|
+
* @throws {RequiredError}
|
|
5179
|
+
*/
|
|
5180
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5181
|
+
return localVarFp.getOutgoingDomainMoveListV1(options).then((request) => request(axios, basePath));
|
|
5182
|
+
},
|
|
5183
|
+
/**
|
|
5184
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5185
|
+
* @summary Get outgoing domain move
|
|
5186
|
+
* @param {string} domain Domain name
|
|
5187
|
+
* @param {*} [options] Override http request option.
|
|
5188
|
+
* @throws {RequiredError}
|
|
5189
|
+
*/
|
|
5190
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5191
|
+
return localVarFp.getOutgoingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5192
|
+
},
|
|
5193
|
+
/**
|
|
5194
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5195
|
+
* @summary Reject incoming domain move
|
|
5196
|
+
* @param {string} domain Domain name
|
|
5197
|
+
* @param {*} [options] Override http request option.
|
|
5198
|
+
* @throws {RequiredError}
|
|
5199
|
+
*/
|
|
5200
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5201
|
+
return localVarFp.rejectIncomingDomainMoveV1(domain, options).then((request) => request(axios, basePath));
|
|
5202
|
+
},
|
|
5203
|
+
/**
|
|
5204
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5205
|
+
* @summary Start outgoing domain move
|
|
5206
|
+
* @param {string} domain Domain name
|
|
5207
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5208
|
+
* @param {*} [options] Override http request option.
|
|
5209
|
+
* @throws {RequiredError}
|
|
5210
|
+
*/
|
|
5211
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5212
|
+
return localVarFp.startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(axios, basePath));
|
|
5213
|
+
},
|
|
5214
|
+
};
|
|
5215
|
+
};
|
|
5216
|
+
/**
|
|
5217
|
+
* DomainsMoveApi - object-oriented interface
|
|
5218
|
+
* @export
|
|
5219
|
+
* @class DomainsMoveApi
|
|
5220
|
+
* @extends {BaseAPI}
|
|
5221
|
+
*/
|
|
5222
|
+
export class DomainsMoveApi extends BaseAPI {
|
|
5223
|
+
/**
|
|
5224
|
+
* Accept an incoming move for a specified domain. The provided WHOIS profiles become the contacts of the domain, so they must belong to your account and satisfy the requirements of the TLD. Only the contact types the domain actually uses are applied, but all four profile IDs have to be provided. The move has to still be waiting for your decision, already accepted moves cannot be accepted again. Accepting does not complete the move. A confirmation email is sent to the email address of the new owner contact, and the domain changes hands only after the change is confirmed from it. Until then the move stays in the `activating` status, which can be followed with the [incoming move endpoint](#tag/domains-move). Use this endpoint to take ownership of a domain offered to you.
|
|
5225
|
+
* @summary Accept incoming domain move
|
|
5226
|
+
* @param {string} domain Domain name
|
|
5227
|
+
* @param {DomainsV1MoveIncomingUpdateRequest} domainsV1MoveIncomingUpdateRequest
|
|
5228
|
+
* @param {*} [options] Override http request option.
|
|
5229
|
+
* @throws {RequiredError}
|
|
5230
|
+
* @memberof DomainsMoveApi
|
|
5231
|
+
*/
|
|
5232
|
+
acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options) {
|
|
5233
|
+
return DomainsMoveApiFp(this.configuration).acceptIncomingDomainMoveV1(domain, domainsV1MoveIncomingUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5234
|
+
}
|
|
5235
|
+
/**
|
|
5236
|
+
* Cancel an outgoing move for a specified domain. The move can only be cancelled while the receiving account has not accepted it yet. The domain stays in your account. Use this endpoint to withdraw a move you no longer want to complete.
|
|
5237
|
+
* @summary Cancel outgoing domain move
|
|
5238
|
+
* @param {string} domain Domain name
|
|
5239
|
+
* @param {*} [options] Override http request option.
|
|
5240
|
+
* @throws {RequiredError}
|
|
5241
|
+
* @memberof DomainsMoveApi
|
|
5242
|
+
*/
|
|
5243
|
+
cancelOutgoingDomainMoveV1(domain, options) {
|
|
5244
|
+
return DomainsMoveApiFp(this.configuration).cancelOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5245
|
+
}
|
|
5246
|
+
/**
|
|
5247
|
+
* Retrieve all domains other Hostinger accounts are moving to your account. Moves of every status are returned, including the ones which already completed. Use this endpoint to find domains waiting for you to accept them.
|
|
5248
|
+
* @summary Get incoming domain move list
|
|
5249
|
+
* @param {*} [options] Override http request option.
|
|
5250
|
+
* @throws {RequiredError}
|
|
5251
|
+
* @memberof DomainsMoveApi
|
|
5252
|
+
*/
|
|
5253
|
+
getIncomingDomainMoveListV1(options) {
|
|
5254
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
5255
|
+
}
|
|
5256
|
+
/**
|
|
5257
|
+
* Retrieve the incoming move for a specified domain. Returns 404 when no account is moving this domain to you. Use this endpoint to check whether a domain addressed to you is still waiting to be accepted.
|
|
5258
|
+
* @summary Get incoming domain move
|
|
5259
|
+
* @param {string} domain Domain name
|
|
5260
|
+
* @param {boolean} [forceSync] Re-check the move against the registry before responding. Only has an effect while the move is in the `activating` status.
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
* @memberof DomainsMoveApi
|
|
5264
|
+
*/
|
|
5265
|
+
getIncomingDomainMoveV1(domain, forceSync, options) {
|
|
5266
|
+
return DomainsMoveApiFp(this.configuration).getIncomingDomainMoveV1(domain, forceSync, options).then((request) => request(this.axios, this.basePath));
|
|
5267
|
+
}
|
|
5268
|
+
/**
|
|
5269
|
+
* Retrieve all domains you are moving to other Hostinger accounts. Only moves which have not completed yet are returned. Use this endpoint to track moves you have initiated and the accounts they are addressed to.
|
|
5270
|
+
* @summary Get outgoing domain move list
|
|
5271
|
+
* @param {*} [options] Override http request option.
|
|
5272
|
+
* @throws {RequiredError}
|
|
5273
|
+
* @memberof DomainsMoveApi
|
|
5274
|
+
*/
|
|
5275
|
+
getOutgoingDomainMoveListV1(options) {
|
|
5276
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveListV1(options).then((request) => request(this.axios, this.basePath));
|
|
5277
|
+
}
|
|
5278
|
+
/**
|
|
5279
|
+
* Retrieve the outgoing move for a specified domain. Returns 404 when the domain has no move in progress. Use this endpoint to track the status of a move you have initiated for a single domain.
|
|
5280
|
+
* @summary Get outgoing domain move
|
|
5281
|
+
* @param {string} domain Domain name
|
|
5282
|
+
* @param {*} [options] Override http request option.
|
|
5283
|
+
* @throws {RequiredError}
|
|
5284
|
+
* @memberof DomainsMoveApi
|
|
5285
|
+
*/
|
|
5286
|
+
getOutgoingDomainMoveV1(domain, options) {
|
|
5287
|
+
return DomainsMoveApiFp(this.configuration).getOutgoingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5288
|
+
}
|
|
5289
|
+
/**
|
|
5290
|
+
* Reject an incoming move for a specified domain. The domain stays in the account which initiated the move. Moves you have already accepted cannot be rejected anymore. Use this endpoint to decline a domain you do not want to take over.
|
|
5291
|
+
* @summary Reject incoming domain move
|
|
5292
|
+
* @param {string} domain Domain name
|
|
5293
|
+
* @param {*} [options] Override http request option.
|
|
5294
|
+
* @throws {RequiredError}
|
|
5295
|
+
* @memberof DomainsMoveApi
|
|
5296
|
+
*/
|
|
5297
|
+
rejectIncomingDomainMoveV1(domain, options) {
|
|
5298
|
+
return DomainsMoveApiFp(this.configuration).rejectIncomingDomainMoveV1(domain, options).then((request) => request(this.axios, this.basePath));
|
|
5299
|
+
}
|
|
5300
|
+
/**
|
|
5301
|
+
* Initiate a move of a specified domain to another Hostinger account. The receiving account has to already exist and accept the move before the domain changes hands. The domain must be active. The subscription it belongs to is resolved automatically, and the request is rejected with a 404 status code when the domain has no domain subscription of its own. Domains protected by premium protection require an additional verification step, such requests are rejected with a 428 status code. Use this endpoint to hand a domain over to another Hostinger user.
|
|
5302
|
+
* @summary Start outgoing domain move
|
|
5303
|
+
* @param {string} domain Domain name
|
|
5304
|
+
* @param {DomainsV1MoveOutgoingStoreRequest} domainsV1MoveOutgoingStoreRequest
|
|
5305
|
+
* @param {*} [options] Override http request option.
|
|
5306
|
+
* @throws {RequiredError}
|
|
5307
|
+
* @memberof DomainsMoveApi
|
|
5308
|
+
*/
|
|
5309
|
+
startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options) {
|
|
5310
|
+
return DomainsMoveApiFp(this.configuration).startOutgoingDomainMoveV1(domain, domainsV1MoveOutgoingStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5311
|
+
}
|
|
5312
|
+
}
|
|
4711
5313
|
/**
|
|
4712
5314
|
* DomainsPortfolioApi - axios parameter creator
|
|
4713
5315
|
* @export
|
|
4714
5316
|
*/
|
|
4715
5317
|
export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
4716
5318
|
return {
|
|
5319
|
+
/**
|
|
5320
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
5321
|
+
* @summary Claim free domain
|
|
5322
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
5323
|
+
* @param {*} [options] Override http request option.
|
|
5324
|
+
* @throws {RequiredError}
|
|
5325
|
+
*/
|
|
5326
|
+
claimFreeDomainV1: (domainsV1PortfolioClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1PortfolioClaimRequest_1, ...args_1], void 0, function* (domainsV1PortfolioClaimRequest, options = {}) {
|
|
5327
|
+
// verify required parameter 'domainsV1PortfolioClaimRequest' is not null or undefined
|
|
5328
|
+
assertParamExists('claimFreeDomainV1', 'domainsV1PortfolioClaimRequest', domainsV1PortfolioClaimRequest);
|
|
5329
|
+
const localVarPath = `/api/domains/v1/portfolio/claim`;
|
|
5330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5331
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5332
|
+
let baseOptions;
|
|
5333
|
+
if (configuration) {
|
|
5334
|
+
baseOptions = configuration.baseOptions;
|
|
5335
|
+
}
|
|
5336
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5337
|
+
const localVarHeaderParameter = {};
|
|
5338
|
+
const localVarQueryParameter = {};
|
|
5339
|
+
// authentication apiToken required
|
|
5340
|
+
// http bearer authentication required
|
|
5341
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
5342
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5343
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5344
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5345
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5346
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1PortfolioClaimRequest, localVarRequestOptions, configuration);
|
|
5347
|
+
return {
|
|
5348
|
+
url: toPathString(localVarUrlObj),
|
|
5349
|
+
options: localVarRequestOptions,
|
|
5350
|
+
};
|
|
5351
|
+
}),
|
|
4717
5352
|
/**
|
|
4718
5353
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
4719
5354
|
* @summary Disable domain lock
|
|
@@ -5045,6 +5680,21 @@ export const DomainsPortfolioApiAxiosParamCreator = function (configuration) {
|
|
|
5045
5680
|
export const DomainsPortfolioApiFp = function (configuration) {
|
|
5046
5681
|
const localVarAxiosParamCreator = DomainsPortfolioApiAxiosParamCreator(configuration);
|
|
5047
5682
|
return {
|
|
5683
|
+
/**
|
|
5684
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
5685
|
+
* @summary Claim free domain
|
|
5686
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
5687
|
+
* @param {*} [options] Override http request option.
|
|
5688
|
+
* @throws {RequiredError}
|
|
5689
|
+
*/
|
|
5690
|
+
claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
|
|
5691
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5692
|
+
var _a, _b;
|
|
5693
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options);
|
|
5694
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsPortfolioApi.claimFreeDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
5695
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5696
|
+
});
|
|
5697
|
+
},
|
|
5048
5698
|
/**
|
|
5049
5699
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
5050
5700
|
* @summary Disable domain lock
|
|
@@ -5204,6 +5854,16 @@ export const DomainsPortfolioApiFp = function (configuration) {
|
|
|
5204
5854
|
export const DomainsPortfolioApiFactory = function (configuration, basePath, axios) {
|
|
5205
5855
|
const localVarFp = DomainsPortfolioApiFp(configuration);
|
|
5206
5856
|
return {
|
|
5857
|
+
/**
|
|
5858
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
5859
|
+
* @summary Claim free domain
|
|
5860
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
5861
|
+
* @param {*} [options] Override http request option.
|
|
5862
|
+
* @throws {RequiredError}
|
|
5863
|
+
*/
|
|
5864
|
+
claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
|
|
5865
|
+
return localVarFp.claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(axios, basePath));
|
|
5866
|
+
},
|
|
5207
5867
|
/**
|
|
5208
5868
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
5209
5869
|
* @summary Disable domain lock
|
|
@@ -5313,6 +5973,17 @@ export const DomainsPortfolioApiFactory = function (configuration, basePath, axi
|
|
|
5313
5973
|
* @extends {BaseAPI}
|
|
5314
5974
|
*/
|
|
5315
5975
|
export class DomainsPortfolioApi extends BaseAPI {
|
|
5976
|
+
/**
|
|
5977
|
+
* Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
|
|
5978
|
+
* @summary Claim free domain
|
|
5979
|
+
* @param {DomainsV1PortfolioClaimRequest} domainsV1PortfolioClaimRequest
|
|
5980
|
+
* @param {*} [options] Override http request option.
|
|
5981
|
+
* @throws {RequiredError}
|
|
5982
|
+
* @memberof DomainsPortfolioApi
|
|
5983
|
+
*/
|
|
5984
|
+
claimFreeDomainV1(domainsV1PortfolioClaimRequest, options) {
|
|
5985
|
+
return DomainsPortfolioApiFp(this.configuration).claimFreeDomainV1(domainsV1PortfolioClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5986
|
+
}
|
|
5316
5987
|
/**
|
|
5317
5988
|
* Disable domain lock for the domain. Domain lock needs to be disabled before transferring the domain to another registrar. Use this endpoint to prepare domains for transfer to other registrars.
|
|
5318
5989
|
* @summary Disable domain lock
|
|
@@ -5430,6 +6101,39 @@ export class DomainsPortfolioApi extends BaseAPI {
|
|
|
5430
6101
|
*/
|
|
5431
6102
|
export const DomainsTransferApiAxiosParamCreator = function (configuration) {
|
|
5432
6103
|
return {
|
|
6104
|
+
/**
|
|
6105
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
6106
|
+
* @summary Claim free domain transfer
|
|
6107
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
6108
|
+
* @param {*} [options] Override http request option.
|
|
6109
|
+
* @throws {RequiredError}
|
|
6110
|
+
*/
|
|
6111
|
+
claimFreeDomainTransferV1: (domainsV1TransferClaimRequest_1, ...args_1) => __awaiter(this, [domainsV1TransferClaimRequest_1, ...args_1], void 0, function* (domainsV1TransferClaimRequest, options = {}) {
|
|
6112
|
+
// verify required parameter 'domainsV1TransferClaimRequest' is not null or undefined
|
|
6113
|
+
assertParamExists('claimFreeDomainTransferV1', 'domainsV1TransferClaimRequest', domainsV1TransferClaimRequest);
|
|
6114
|
+
const localVarPath = `/api/domains/v1/transfers/claim`;
|
|
6115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6117
|
+
let baseOptions;
|
|
6118
|
+
if (configuration) {
|
|
6119
|
+
baseOptions = configuration.baseOptions;
|
|
6120
|
+
}
|
|
6121
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6122
|
+
const localVarHeaderParameter = {};
|
|
6123
|
+
const localVarQueryParameter = {};
|
|
6124
|
+
// authentication apiToken required
|
|
6125
|
+
// http bearer authentication required
|
|
6126
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
6127
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6128
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6130
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6131
|
+
localVarRequestOptions.data = serializeDataIfNeeded(domainsV1TransferClaimRequest, localVarRequestOptions, configuration);
|
|
6132
|
+
return {
|
|
6133
|
+
url: toPathString(localVarUrlObj),
|
|
6134
|
+
options: localVarRequestOptions,
|
|
6135
|
+
};
|
|
6136
|
+
}),
|
|
5433
6137
|
/**
|
|
5434
6138
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
5435
6139
|
* @summary Get transfer list
|
|
@@ -5499,6 +6203,21 @@ export const DomainsTransferApiAxiosParamCreator = function (configuration) {
|
|
|
5499
6203
|
export const DomainsTransferApiFp = function (configuration) {
|
|
5500
6204
|
const localVarAxiosParamCreator = DomainsTransferApiAxiosParamCreator(configuration);
|
|
5501
6205
|
return {
|
|
6206
|
+
/**
|
|
6207
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
6208
|
+
* @summary Claim free domain transfer
|
|
6209
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
6210
|
+
* @param {*} [options] Override http request option.
|
|
6211
|
+
* @throws {RequiredError}
|
|
6212
|
+
*/
|
|
6213
|
+
claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
|
|
6214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6215
|
+
var _a, _b;
|
|
6216
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options);
|
|
6217
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsTransferApi.claimFreeDomainTransferV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
6218
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6219
|
+
});
|
|
6220
|
+
},
|
|
5502
6221
|
/**
|
|
5503
6222
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
5504
6223
|
* @summary Get transfer list
|
|
@@ -5537,6 +6256,16 @@ export const DomainsTransferApiFp = function (configuration) {
|
|
|
5537
6256
|
export const DomainsTransferApiFactory = function (configuration, basePath, axios) {
|
|
5538
6257
|
const localVarFp = DomainsTransferApiFp(configuration);
|
|
5539
6258
|
return {
|
|
6259
|
+
/**
|
|
6260
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
6261
|
+
* @summary Claim free domain transfer
|
|
6262
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
6263
|
+
* @param {*} [options] Override http request option.
|
|
6264
|
+
* @throws {RequiredError}
|
|
6265
|
+
*/
|
|
6266
|
+
claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
|
|
6267
|
+
return localVarFp.claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(axios, basePath));
|
|
6268
|
+
},
|
|
5540
6269
|
/**
|
|
5541
6270
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
5542
6271
|
* @summary Get transfer list
|
|
@@ -5565,6 +6294,17 @@ export const DomainsTransferApiFactory = function (configuration, basePath, axio
|
|
|
5565
6294
|
* @extends {BaseAPI}
|
|
5566
6295
|
*/
|
|
5567
6296
|
export class DomainsTransferApi extends BaseAPI {
|
|
6297
|
+
/**
|
|
6298
|
+
* Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
|
|
6299
|
+
* @summary Claim free domain transfer
|
|
6300
|
+
* @param {DomainsV1TransferClaimRequest} domainsV1TransferClaimRequest
|
|
6301
|
+
* @param {*} [options] Override http request option.
|
|
6302
|
+
* @throws {RequiredError}
|
|
6303
|
+
* @memberof DomainsTransferApi
|
|
6304
|
+
*/
|
|
6305
|
+
claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options) {
|
|
6306
|
+
return DomainsTransferApiFp(this.configuration).claimFreeDomainTransferV1(domainsV1TransferClaimRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6307
|
+
}
|
|
5568
6308
|
/**
|
|
5569
6309
|
* Retrieve all domain transfers in your portfolio. Use this endpoint to monitor incoming and outgoing registrar transfers across your domains.
|
|
5570
6310
|
* @summary Get transfer list
|