@randock/nameshift-api-client 0.0.487 → 0.0.489
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/.openapi-generator/FILES +11 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +23 -1
- package/dist/apis/AdminApi.js +77 -0
- package/dist/apis/BuyersApi.d.ts +33 -1
- package/dist/apis/BuyersApi.js +121 -0
- package/dist/apis/DomainAppraisalRequestsApi.d.ts +50 -0
- package/dist/apis/DomainAppraisalRequestsApi.js +217 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.d.ts +86 -0
- package/dist/apis/DomainAppraisalRequestsPublicApi.js +321 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AccountBankAccountDto.d.ts +17 -0
- package/dist/models/AccountBankAccountDto.js +15 -1
- package/dist/models/AdminBankAccountDto.d.ts +7 -0
- package/dist/models/AdminBankAccountDto.js +5 -0
- package/dist/models/AdminBankAccountNameCheckDto.d.ts +119 -0
- package/dist/models/AdminBankAccountNameCheckDto.js +119 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.d.ts +118 -0
- package/dist/models/AdminDomainAppraisalRequestListItemDto.js +109 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.d.ts +268 -0
- package/dist/models/BuyerDomainAppraisalRequestCheckoutDto.js +237 -0
- package/dist/models/BuyerInvoiceDto.d.ts +2 -2
- package/dist/models/BuyerSessionDto.d.ts +6 -0
- package/dist/models/BuyerSessionDto.js +4 -0
- package/dist/models/CreateAccountPaymentInput.d.ts +1 -0
- package/dist/models/CreateAccountPaymentInput.js +2 -1
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.d.ts +44 -0
- package/dist/models/CreateBuyerDomainAppraisalRequestInput.js +59 -0
- package/dist/models/DomainAppraisalRequestListItemDto.d.ts +82 -0
- package/dist/models/DomainAppraisalRequestListItemDto.js +85 -0
- package/dist/models/DomainAppraisalRequestStatus.d.ts +27 -0
- package/dist/models/DomainAppraisalRequestStatus.js +53 -0
- package/dist/models/DomainAppraisalRequester.d.ts +25 -0
- package/dist/models/DomainAppraisalRequester.js +51 -0
- package/dist/models/DomainSalesInformationDto.d.ts +6 -0
- package/dist/models/DomainSalesInformationDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +2 -0
- package/dist/models/FeatureFlagListItemDto.js +3 -1
- package/dist/models/GetAdminDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetAdminDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.d.ts +47 -0
- package/dist/models/GetBuyerDomainAppraisalRequests200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +2 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +3 -1
- package/dist/models/InvoiceDto.d.ts +2 -2
- package/dist/models/PrivateAccountGetMeResponse.d.ts +2 -0
- package/dist/models/PrivateAccountGetMeResponse.js +3 -1
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +82 -0
- package/src/apis/BuyersApi.ts +113 -0
- package/src/apis/DomainAppraisalRequestsApi.ts +157 -0
- package/src/apis/DomainAppraisalRequestsPublicApi.ts +271 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AccountBankAccountDto.ts +21 -0
- package/src/models/AdminBankAccountDto.ts +16 -0
- package/src/models/AdminBankAccountNameCheckDto.ts +183 -0
- package/src/models/AdminDomainAppraisalRequestListItemDto.ts +209 -0
- package/src/models/BuyerDomainAppraisalRequestCheckoutDto.ts +411 -0
- package/src/models/BuyerInvoiceDto.ts +2 -2
- package/src/models/BuyerSessionDto.ts +9 -0
- package/src/models/CreateAccountPaymentInput.ts +2 -1
- package/src/models/CreateBuyerDomainAppraisalRequestInput.ts +84 -0
- package/src/models/DomainAppraisalRequestListItemDto.ts +155 -0
- package/src/models/DomainAppraisalRequestStatus.ts +55 -0
- package/src/models/DomainAppraisalRequester.ts +53 -0
- package/src/models/DomainSalesInformationDto.ts +9 -0
- package/src/models/FeatureFlagListItemDto.ts +3 -1
- package/src/models/GetAdminDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/GetBuyerDomainAppraisalRequests200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +3 -1
- package/src/models/InvoiceDto.ts +2 -2
- package/src/models/PrivateAccountGetMeResponse.ts +3 -1
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DomainAppraisalRequestsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DomainAppraisalRequestsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DomainAppraisalRequestsApi, _super);
|
|
75
|
+
function DomainAppraisalRequestsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Cancels a domain appraisal of the seller account that has not been paid, with its invoice. **API key scope required:** `PAYMENTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
80
|
+
* Cancel domain appraisal request
|
|
81
|
+
*/
|
|
82
|
+
DomainAppraisalRequestsApi.prototype.cancelSellerDomainAppraisalRequestRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_c) {
|
|
86
|
+
switch (_c.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling cancelSellerDomainAppraisalRequest().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
94
|
+
_a = headerParameters;
|
|
95
|
+
_b = "apikey";
|
|
96
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
97
|
+
case 1:
|
|
98
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
99
|
+
_c.label = 2;
|
|
100
|
+
case 2:
|
|
101
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
102
|
+
token = this.configuration.accessToken;
|
|
103
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
104
|
+
case 3:
|
|
105
|
+
tokenString = _c.sent();
|
|
106
|
+
if (tokenString) {
|
|
107
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
108
|
+
}
|
|
109
|
+
_c.label = 4;
|
|
110
|
+
case 4: return [4 /*yield*/, this.request({
|
|
111
|
+
path: "/private/domain-appraisal-requests/{domainAppraisalRequestId}/cancel".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
112
|
+
method: 'POST',
|
|
113
|
+
headers: headerParameters,
|
|
114
|
+
query: queryParameters,
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Cancels a domain appraisal of the seller account that has not been paid, with its invoice. **API key scope required:** `PAYMENTS_WRITE`. Requests authenticated with a seller session do not need any scope.
|
|
125
|
+
* Cancel domain appraisal request
|
|
126
|
+
*/
|
|
127
|
+
DomainAppraisalRequestsApi.prototype.cancelSellerDomainAppraisalRequest = function (requestParameters, initOverrides) {
|
|
128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
129
|
+
return __generator(this, function (_a) {
|
|
130
|
+
switch (_a.label) {
|
|
131
|
+
case 0: return [4 /*yield*/, this.cancelSellerDomainAppraisalRequestRaw(requestParameters, initOverrides)];
|
|
132
|
+
case 1:
|
|
133
|
+
_a.sent();
|
|
134
|
+
return [2 /*return*/];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Lists the domain appraisals bought by the seller account. **API key scope required:** `PAYMENTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
141
|
+
* List domain appraisal requests
|
|
142
|
+
*/
|
|
143
|
+
DomainAppraisalRequestsApi.prototype.getSellerDomainAppraisalRequestsRaw = function (requestParameters, initOverrides) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
145
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response;
|
|
146
|
+
return __generator(this, function (_c) {
|
|
147
|
+
switch (_c.label) {
|
|
148
|
+
case 0:
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
if (requestParameters['filter'] != null) {
|
|
151
|
+
queryParameters['filter'] = requestParameters['filter'];
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['page'] != null) {
|
|
154
|
+
queryParameters['page'] = requestParameters['page'];
|
|
155
|
+
}
|
|
156
|
+
if (requestParameters['limit'] != null) {
|
|
157
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
158
|
+
}
|
|
159
|
+
if (requestParameters['sortBy'] != null) {
|
|
160
|
+
queryParameters['sortBy'] = requestParameters['sortBy'];
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters['filterStatus'] != null) {
|
|
163
|
+
queryParameters['filter[status]'] = requestParameters['filterStatus'];
|
|
164
|
+
}
|
|
165
|
+
headerParameters = {};
|
|
166
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
167
|
+
_a = headerParameters;
|
|
168
|
+
_b = "apikey";
|
|
169
|
+
return [4 /*yield*/, this.configuration.apiKey("apikey")];
|
|
170
|
+
case 1:
|
|
171
|
+
_a[_b] = _c.sent(); // api_key authentication
|
|
172
|
+
_c.label = 2;
|
|
173
|
+
case 2:
|
|
174
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
175
|
+
token = this.configuration.accessToken;
|
|
176
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
177
|
+
case 3:
|
|
178
|
+
tokenString = _c.sent();
|
|
179
|
+
if (tokenString) {
|
|
180
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
181
|
+
}
|
|
182
|
+
_c.label = 4;
|
|
183
|
+
case 4: return [4 /*yield*/, this.request({
|
|
184
|
+
path: "/private/domain-appraisal-requests",
|
|
185
|
+
method: 'GET',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
}, initOverrides)];
|
|
189
|
+
case 5:
|
|
190
|
+
response = _c.sent();
|
|
191
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetBuyerDomainAppraisalRequests200ResponseFromJSON)(jsonValue); })];
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Lists the domain appraisals bought by the seller account. **API key scope required:** `PAYMENTS_READ`. Requests authenticated with a seller session do not need any scope.
|
|
198
|
+
* List domain appraisal requests
|
|
199
|
+
*/
|
|
200
|
+
DomainAppraisalRequestsApi.prototype.getSellerDomainAppraisalRequests = function () {
|
|
201
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
202
|
+
var response;
|
|
203
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0: return [4 /*yield*/, this.getSellerDomainAppraisalRequestsRaw(requestParameters, initOverrides)];
|
|
207
|
+
case 1:
|
|
208
|
+
response = _a.sent();
|
|
209
|
+
return [4 /*yield*/, response.value()];
|
|
210
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
return DomainAppraisalRequestsApi;
|
|
216
|
+
}(runtime.BaseAPI));
|
|
217
|
+
exports.DomainAppraisalRequestsApi = DomainAppraisalRequestsApi;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { BuyerDomainAppraisalRequestCheckoutDto, CreateBuyerDomainAppraisalRequestInput, CreateManualTransactionInput, ObjectId, UpdateOrderInput } from '../models/index';
|
|
14
|
+
export interface DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest {
|
|
15
|
+
createBuyerDomainAppraisalRequestInput: CreateBuyerDomainAppraisalRequestInput;
|
|
16
|
+
}
|
|
17
|
+
export interface DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest {
|
|
18
|
+
domainAppraisalRequestId: string;
|
|
19
|
+
createManualTransactionInput: CreateManualTransactionInput;
|
|
20
|
+
}
|
|
21
|
+
export interface DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest {
|
|
22
|
+
domainAppraisalRequestId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest {
|
|
25
|
+
domainAppraisalRequestId: string;
|
|
26
|
+
includePaymentMethods?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest {
|
|
29
|
+
domainAppraisalRequestId: string;
|
|
30
|
+
updateOrderInput: UpdateOrderInput;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
export declare class DomainAppraisalRequestsPublicApi extends runtime.BaseAPI {
|
|
36
|
+
/**
|
|
37
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
38
|
+
* Create domain appraisal request
|
|
39
|
+
*/
|
|
40
|
+
createBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
|
|
41
|
+
/**
|
|
42
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
43
|
+
* Create domain appraisal request
|
|
44
|
+
*/
|
|
45
|
+
createBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiCreateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
|
|
46
|
+
/**
|
|
47
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
48
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
49
|
+
*/
|
|
50
|
+
createDomainAppraisalRequestManualTransactionRaw(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
51
|
+
/**
|
|
52
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
53
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
54
|
+
*/
|
|
55
|
+
createDomainAppraisalRequestManualTransaction(requestParameters: DomainAppraisalRequestsPublicApiCreateDomainAppraisalRequestManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
58
|
+
* Download domain appraisal request pro-forma invoice
|
|
59
|
+
*/
|
|
60
|
+
downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
61
|
+
/**
|
|
62
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
63
|
+
* Download domain appraisal request pro-forma invoice
|
|
64
|
+
*/
|
|
65
|
+
downloadDomainAppraisalRequestProformaInvoice(requestParameters: DomainAppraisalRequestsPublicApiDownloadDomainAppraisalRequestProformaInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
66
|
+
/**
|
|
67
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
68
|
+
* Get domain appraisal request
|
|
69
|
+
*/
|
|
70
|
+
getBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BuyerDomainAppraisalRequestCheckoutDto>>;
|
|
71
|
+
/**
|
|
72
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
73
|
+
* Get domain appraisal request
|
|
74
|
+
*/
|
|
75
|
+
getBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiGetBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuyerDomainAppraisalRequestCheckoutDto>;
|
|
76
|
+
/**
|
|
77
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
78
|
+
* Update domain appraisal request
|
|
79
|
+
*/
|
|
80
|
+
updateBuyerDomainAppraisalRequestRaw(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
83
|
+
* Update domain appraisal request
|
|
84
|
+
*/
|
|
85
|
+
updateBuyerDomainAppraisalRequest(requestParameters: DomainAppraisalRequestsPublicApiUpdateBuyerDomainAppraisalRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DomainAppraisalRequestsPublicApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DomainAppraisalRequestsPublicApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DomainAppraisalRequestsPublicApi, _super);
|
|
75
|
+
function DomainAppraisalRequestsPublicApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
80
|
+
* Create domain appraisal request
|
|
81
|
+
*/
|
|
82
|
+
DomainAppraisalRequestsPublicApi.prototype.createBuyerDomainAppraisalRequestRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
if (requestParameters['createBuyerDomainAppraisalRequestInput'] == null) {
|
|
89
|
+
throw new runtime.RequiredError('createBuyerDomainAppraisalRequestInput', 'Required parameter "createBuyerDomainAppraisalRequestInput" was null or undefined when calling createBuyerDomainAppraisalRequest().');
|
|
90
|
+
}
|
|
91
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
+
return [4 /*yield*/, this.request({
|
|
95
|
+
path: "/domain-appraisal-requests",
|
|
96
|
+
method: 'POST',
|
|
97
|
+
headers: headerParameters,
|
|
98
|
+
query: queryParameters,
|
|
99
|
+
body: (0, index_1.CreateBuyerDomainAppraisalRequestInputToJSON)(requestParameters['createBuyerDomainAppraisalRequestInput']),
|
|
100
|
+
}, initOverrides)];
|
|
101
|
+
case 1:
|
|
102
|
+
response = _a.sent();
|
|
103
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Creates the domain appraisal request of a domain for a buyer, with its draft invoice.
|
|
110
|
+
* Create domain appraisal request
|
|
111
|
+
*/
|
|
112
|
+
DomainAppraisalRequestsPublicApi.prototype.createBuyerDomainAppraisalRequest = function (requestParameters, initOverrides) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
114
|
+
var response;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0: return [4 /*yield*/, this.createBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides)];
|
|
118
|
+
case 1:
|
|
119
|
+
response = _a.sent();
|
|
120
|
+
return [4 /*yield*/, response.value()];
|
|
121
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
128
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
129
|
+
*/
|
|
130
|
+
DomainAppraisalRequestsPublicApi.prototype.createDomainAppraisalRequestManualTransactionRaw = function (requestParameters, initOverrides) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
132
|
+
var queryParameters, headerParameters, response;
|
|
133
|
+
return __generator(this, function (_a) {
|
|
134
|
+
switch (_a.label) {
|
|
135
|
+
case 0:
|
|
136
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
137
|
+
throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling createDomainAppraisalRequestManualTransaction().');
|
|
138
|
+
}
|
|
139
|
+
if (requestParameters['createManualTransactionInput'] == null) {
|
|
140
|
+
throw new runtime.RequiredError('createManualTransactionInput', 'Required parameter "createManualTransactionInput" was null or undefined when calling createDomainAppraisalRequestManualTransaction().');
|
|
141
|
+
}
|
|
142
|
+
queryParameters = {};
|
|
143
|
+
headerParameters = {};
|
|
144
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
145
|
+
return [4 /*yield*/, this.request({
|
|
146
|
+
path: "/domain-appraisal-requests/{domainAppraisalRequestId}/invoice/transactions".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
147
|
+
method: 'POST',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
body: (0, index_1.CreateManualTransactionInputToJSON)(requestParameters['createManualTransactionInput']),
|
|
151
|
+
}, initOverrides)];
|
|
152
|
+
case 1:
|
|
153
|
+
response = _a.sent();
|
|
154
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Starts the payment of the invoice of an unpaid buyer domain appraisal request.
|
|
161
|
+
* Create a new manual transaction for domain appraisal request invoice
|
|
162
|
+
*/
|
|
163
|
+
DomainAppraisalRequestsPublicApi.prototype.createDomainAppraisalRequestManualTransaction = function (requestParameters, initOverrides) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
165
|
+
return __generator(this, function (_a) {
|
|
166
|
+
switch (_a.label) {
|
|
167
|
+
case 0: return [4 /*yield*/, this.createDomainAppraisalRequestManualTransactionRaw(requestParameters, initOverrides)];
|
|
168
|
+
case 1:
|
|
169
|
+
_a.sent();
|
|
170
|
+
return [2 /*return*/];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
177
|
+
* Download domain appraisal request pro-forma invoice
|
|
178
|
+
*/
|
|
179
|
+
DomainAppraisalRequestsPublicApi.prototype.downloadDomainAppraisalRequestProformaInvoiceRaw = function (requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
181
|
+
var queryParameters, headerParameters, response;
|
|
182
|
+
return __generator(this, function (_a) {
|
|
183
|
+
switch (_a.label) {
|
|
184
|
+
case 0:
|
|
185
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
186
|
+
throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling downloadDomainAppraisalRequestProformaInvoice().');
|
|
187
|
+
}
|
|
188
|
+
queryParameters = {};
|
|
189
|
+
headerParameters = {};
|
|
190
|
+
return [4 /*yield*/, this.request({
|
|
191
|
+
path: "/domain-appraisal-requests/{domainAppraisalRequestId}/proforma/download".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
192
|
+
method: 'GET',
|
|
193
|
+
headers: headerParameters,
|
|
194
|
+
query: queryParameters,
|
|
195
|
+
}, initOverrides)];
|
|
196
|
+
case 1:
|
|
197
|
+
response = _a.sent();
|
|
198
|
+
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* Downloads the pro-forma invoice PDF of a buyer domain appraisal request before it is paid.
|
|
205
|
+
* Download domain appraisal request pro-forma invoice
|
|
206
|
+
*/
|
|
207
|
+
DomainAppraisalRequestsPublicApi.prototype.downloadDomainAppraisalRequestProformaInvoice = function (requestParameters, initOverrides) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
209
|
+
var response;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
212
|
+
case 0: return [4 /*yield*/, this.downloadDomainAppraisalRequestProformaInvoiceRaw(requestParameters, initOverrides)];
|
|
213
|
+
case 1:
|
|
214
|
+
response = _a.sent();
|
|
215
|
+
return [4 /*yield*/, response.value()];
|
|
216
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
223
|
+
* Get domain appraisal request
|
|
224
|
+
*/
|
|
225
|
+
DomainAppraisalRequestsPublicApi.prototype.getBuyerDomainAppraisalRequestRaw = function (requestParameters, initOverrides) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
+
var queryParameters, headerParameters, response;
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
switch (_a.label) {
|
|
230
|
+
case 0:
|
|
231
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
232
|
+
throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling getBuyerDomainAppraisalRequest().');
|
|
233
|
+
}
|
|
234
|
+
queryParameters = {};
|
|
235
|
+
if (requestParameters['includePaymentMethods'] != null) {
|
|
236
|
+
queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
|
|
237
|
+
}
|
|
238
|
+
headerParameters = {};
|
|
239
|
+
return [4 /*yield*/, this.request({
|
|
240
|
+
path: "/domain-appraisal-requests/{domainAppraisalRequestId}".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
}, initOverrides)];
|
|
245
|
+
case 1:
|
|
246
|
+
response = _a.sent();
|
|
247
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.BuyerDomainAppraisalRequestCheckoutDtoFromJSON)(jsonValue); })];
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Returns a buyer domain appraisal request with its invoice and payment state.
|
|
254
|
+
* Get domain appraisal request
|
|
255
|
+
*/
|
|
256
|
+
DomainAppraisalRequestsPublicApi.prototype.getBuyerDomainAppraisalRequest = function (requestParameters, initOverrides) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
258
|
+
var response;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
switch (_a.label) {
|
|
261
|
+
case 0: return [4 /*yield*/, this.getBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides)];
|
|
262
|
+
case 1:
|
|
263
|
+
response = _a.sent();
|
|
264
|
+
return [4 /*yield*/, response.value()];
|
|
265
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
272
|
+
* Update domain appraisal request
|
|
273
|
+
*/
|
|
274
|
+
DomainAppraisalRequestsPublicApi.prototype.updateBuyerDomainAppraisalRequestRaw = function (requestParameters, initOverrides) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
276
|
+
var queryParameters, headerParameters, response;
|
|
277
|
+
return __generator(this, function (_a) {
|
|
278
|
+
switch (_a.label) {
|
|
279
|
+
case 0:
|
|
280
|
+
if (requestParameters['domainAppraisalRequestId'] == null) {
|
|
281
|
+
throw new runtime.RequiredError('domainAppraisalRequestId', 'Required parameter "domainAppraisalRequestId" was null or undefined when calling updateBuyerDomainAppraisalRequest().');
|
|
282
|
+
}
|
|
283
|
+
if (requestParameters['updateOrderInput'] == null) {
|
|
284
|
+
throw new runtime.RequiredError('updateOrderInput', 'Required parameter "updateOrderInput" was null or undefined when calling updateBuyerDomainAppraisalRequest().');
|
|
285
|
+
}
|
|
286
|
+
queryParameters = {};
|
|
287
|
+
headerParameters = {};
|
|
288
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
289
|
+
return [4 /*yield*/, this.request({
|
|
290
|
+
path: "/domain-appraisal-requests/{domainAppraisalRequestId}".replace("{".concat("domainAppraisalRequestId", "}"), encodeURIComponent(String(requestParameters['domainAppraisalRequestId']))),
|
|
291
|
+
method: 'PATCH',
|
|
292
|
+
headers: headerParameters,
|
|
293
|
+
query: queryParameters,
|
|
294
|
+
body: (0, index_1.UpdateOrderInputToJSON)(requestParameters['updateOrderInput']),
|
|
295
|
+
}, initOverrides)];
|
|
296
|
+
case 1:
|
|
297
|
+
response = _a.sent();
|
|
298
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Updates the buyer and billing information of an domain appraisal request that is still unpaid.
|
|
305
|
+
* Update domain appraisal request
|
|
306
|
+
*/
|
|
307
|
+
DomainAppraisalRequestsPublicApi.prototype.updateBuyerDomainAppraisalRequest = function (requestParameters, initOverrides) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0: return [4 /*yield*/, this.updateBuyerDomainAppraisalRequestRaw(requestParameters, initOverrides)];
|
|
312
|
+
case 1:
|
|
313
|
+
_a.sent();
|
|
314
|
+
return [2 /*return*/];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
};
|
|
319
|
+
return DomainAppraisalRequestsPublicApi;
|
|
320
|
+
}(runtime.BaseAPI));
|
|
321
|
+
exports.DomainAppraisalRequestsPublicApi = DomainAppraisalRequestsPublicApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from './BuyersApi';
|
|
|
10
10
|
export * from './BuyersPublicApi';
|
|
11
11
|
export * from './ChallengesApi';
|
|
12
12
|
export * from './CustomerSuccessApi';
|
|
13
|
+
export * from './DomainAppraisalRequestsApi';
|
|
14
|
+
export * from './DomainAppraisalRequestsPublicApi';
|
|
13
15
|
export * from './DomainTransfersApi';
|
|
14
16
|
export * from './DomainsApi';
|
|
15
17
|
export * from './DomainsPublicApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -28,6 +28,8 @@ __exportStar(require("./BuyersApi"), exports);
|
|
|
28
28
|
__exportStar(require("./BuyersPublicApi"), exports);
|
|
29
29
|
__exportStar(require("./ChallengesApi"), exports);
|
|
30
30
|
__exportStar(require("./CustomerSuccessApi"), exports);
|
|
31
|
+
__exportStar(require("./DomainAppraisalRequestsApi"), exports);
|
|
32
|
+
__exportStar(require("./DomainAppraisalRequestsPublicApi"), exports);
|
|
31
33
|
__exportStar(require("./DomainTransfersApi"), exports);
|
|
32
34
|
__exportStar(require("./DomainsApi"), exports);
|
|
33
35
|
__exportStar(require("./DomainsPublicApi"), exports);
|