@randock/nameshift-api-client 0.0.229 → 0.0.231
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 +3 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -0
- package/dist/apis/AdminApi.js +51 -0
- package/dist/apis/DomainsApi.d.ts +13 -1
- package/dist/apis/DomainsApi.js +56 -0
- package/dist/models/AdminVerificationDepositDto.d.ts +3 -2
- package/dist/models/AdminVerificationDepositDto.js +3 -2
- package/dist/models/AirwallexDepositDto.d.ts +63 -0
- package/dist/models/AirwallexDepositDto.js +72 -0
- package/dist/models/AirwallexDepositDtoFee.d.ts +38 -0
- package/dist/models/AirwallexDepositDtoFee.js +51 -0
- package/dist/models/ConcreteDomainTransferTaskData.d.ts +1 -0
- package/dist/models/ConcreteDomainTransferTaskData.js +2 -1
- package/dist/models/UpdateDomainTransferIpsTagInput.d.ts +32 -0
- package/dist/models/UpdateDomainTransferIpsTagInput.js +51 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +44 -0
- package/src/apis/DomainsApi.ts +58 -0
- package/src/models/AdminVerificationDepositDto.ts +12 -4
- package/src/models/AirwallexDepositDto.ts +119 -0
- package/src/models/AirwallexDepositDtoFee.ts +73 -0
- package/src/models/ConcreteDomainTransferTaskData.ts +2 -1
- package/src/models/UpdateDomainTransferIpsTagInput.ts +66 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,8 @@ src/models/AirwallexBankAccountDetailsDto.ts
|
|
|
49
49
|
src/models/AirwallexBankAccountDetailsDtoInstitution.ts
|
|
50
50
|
src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts
|
|
51
51
|
src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts
|
|
52
|
+
src/models/AirwallexDepositDto.ts
|
|
53
|
+
src/models/AirwallexDepositDtoFee.ts
|
|
52
54
|
src/models/BadRequestException.ts
|
|
53
55
|
src/models/BatchDeleteBuyerLeadsInput.ts
|
|
54
56
|
src/models/BatchImportPreviewDto.ts
|
|
@@ -230,6 +232,7 @@ src/models/UpdateAccountBillingInformationInput.ts
|
|
|
230
232
|
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
231
233
|
src/models/UpdateDomainInput.ts
|
|
232
234
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
235
|
+
src/models/UpdateDomainTransferIpsTagInput.ts
|
|
233
236
|
src/models/UpdateLeadInput.ts
|
|
234
237
|
src/models/UpdateOrderInput.ts
|
|
235
238
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.231
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.231 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
1392c1f1833cf6345417060e9c3924362b54c81c86aaef5da9529722ab42584ded44c88a99ce9b7d731b68eebe075cb0
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -104,6 +104,9 @@ export interface AdminApiUpdateAccountSettingsRequest {
|
|
|
104
104
|
accountId: string;
|
|
105
105
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
106
106
|
}
|
|
107
|
+
export interface AdminApiVerifyBankAccountRequest {
|
|
108
|
+
bankAccountId: string;
|
|
109
|
+
}
|
|
107
110
|
/**
|
|
108
111
|
*
|
|
109
112
|
*/
|
|
@@ -276,4 +279,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
276
279
|
*
|
|
277
280
|
*/
|
|
278
281
|
updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
verifyBankAccountRaw(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
*/
|
|
289
|
+
verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
279
290
|
}
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1278,6 +1278,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1278
1278
|
});
|
|
1279
1279
|
});
|
|
1280
1280
|
};
|
|
1281
|
+
/**
|
|
1282
|
+
*
|
|
1283
|
+
*/
|
|
1284
|
+
AdminApi.prototype.verifyBankAccountRaw = function (requestParameters, initOverrides) {
|
|
1285
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1286
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1287
|
+
return __generator(this, function (_a) {
|
|
1288
|
+
switch (_a.label) {
|
|
1289
|
+
case 0:
|
|
1290
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
1291
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling verifyBankAccount().');
|
|
1292
|
+
}
|
|
1293
|
+
queryParameters = {};
|
|
1294
|
+
headerParameters = {};
|
|
1295
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1296
|
+
token = this.configuration.accessToken;
|
|
1297
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1298
|
+
case 1:
|
|
1299
|
+
tokenString = _a.sent();
|
|
1300
|
+
if (tokenString) {
|
|
1301
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1302
|
+
}
|
|
1303
|
+
_a.label = 2;
|
|
1304
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1305
|
+
path: "/admin/bank-accounts/{bankAccountId}/verify".replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
1306
|
+
method: 'POST',
|
|
1307
|
+
headers: headerParameters,
|
|
1308
|
+
query: queryParameters,
|
|
1309
|
+
}, initOverrides)];
|
|
1310
|
+
case 3:
|
|
1311
|
+
response = _a.sent();
|
|
1312
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1317
|
+
/**
|
|
1318
|
+
*
|
|
1319
|
+
*/
|
|
1320
|
+
AdminApi.prototype.verifyBankAccount = function (requestParameters, initOverrides) {
|
|
1321
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1322
|
+
return __generator(this, function (_a) {
|
|
1323
|
+
switch (_a.label) {
|
|
1324
|
+
case 0: return [4 /*yield*/, this.verifyBankAccountRaw(requestParameters, initOverrides)];
|
|
1325
|
+
case 1:
|
|
1326
|
+
_a.sent();
|
|
1327
|
+
return [2 /*return*/];
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1330
|
+
});
|
|
1331
|
+
};
|
|
1281
1332
|
return AdminApi;
|
|
1282
1333
|
}(runtime.BaseAPI));
|
|
1283
1334
|
exports.AdminApi = AdminApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput, UpdateDomainTransferIpsTagInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -59,6 +59,10 @@ export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
|
59
59
|
transferId: string;
|
|
60
60
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
61
61
|
}
|
|
62
|
+
export interface DomainsApiUpdateDomainTransferIpsTagRequest {
|
|
63
|
+
transferId: string;
|
|
64
|
+
updateDomainTransferIpsTagInput: UpdateDomainTransferIpsTagInput;
|
|
65
|
+
}
|
|
62
66
|
/**
|
|
63
67
|
*
|
|
64
68
|
*/
|
|
@@ -175,4 +179,12 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
175
179
|
*
|
|
176
180
|
*/
|
|
177
181
|
updateDomainTransferAuthCode(requestParameters: DomainsApiUpdateDomainTransferAuthCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
updateDomainTransferIpsTagRaw(requestParameters: DomainsApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
*/
|
|
189
|
+
updateDomainTransferIpsTag(requestParameters: DomainsApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
178
190
|
}
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -869,6 +869,62 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
869
869
|
});
|
|
870
870
|
});
|
|
871
871
|
};
|
|
872
|
+
/**
|
|
873
|
+
*
|
|
874
|
+
*/
|
|
875
|
+
DomainsApi.prototype.updateDomainTransferIpsTagRaw = function (requestParameters, initOverrides) {
|
|
876
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
877
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
878
|
+
return __generator(this, function (_a) {
|
|
879
|
+
switch (_a.label) {
|
|
880
|
+
case 0:
|
|
881
|
+
if (requestParameters['transferId'] == null) {
|
|
882
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().');
|
|
883
|
+
}
|
|
884
|
+
if (requestParameters['updateDomainTransferIpsTagInput'] == null) {
|
|
885
|
+
throw new runtime.RequiredError('updateDomainTransferIpsTagInput', 'Required parameter "updateDomainTransferIpsTagInput" was null or undefined when calling updateDomainTransferIpsTag().');
|
|
886
|
+
}
|
|
887
|
+
queryParameters = {};
|
|
888
|
+
headerParameters = {};
|
|
889
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
890
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
891
|
+
token = this.configuration.accessToken;
|
|
892
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
893
|
+
case 1:
|
|
894
|
+
tokenString = _a.sent();
|
|
895
|
+
if (tokenString) {
|
|
896
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
897
|
+
}
|
|
898
|
+
_a.label = 2;
|
|
899
|
+
case 2: return [4 /*yield*/, this.request({
|
|
900
|
+
path: "/private/domains/transfers/{transferId}/ips-tag".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))),
|
|
901
|
+
method: 'PATCH',
|
|
902
|
+
headers: headerParameters,
|
|
903
|
+
query: queryParameters,
|
|
904
|
+
body: (0, index_1.UpdateDomainTransferIpsTagInputToJSON)(requestParameters['updateDomainTransferIpsTagInput']),
|
|
905
|
+
}, initOverrides)];
|
|
906
|
+
case 3:
|
|
907
|
+
response = _a.sent();
|
|
908
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
909
|
+
}
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
*
|
|
915
|
+
*/
|
|
916
|
+
DomainsApi.prototype.updateDomainTransferIpsTag = function (requestParameters, initOverrides) {
|
|
917
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
918
|
+
return __generator(this, function (_a) {
|
|
919
|
+
switch (_a.label) {
|
|
920
|
+
case 0: return [4 /*yield*/, this.updateDomainTransferIpsTagRaw(requestParameters, initOverrides)];
|
|
921
|
+
case 1:
|
|
922
|
+
_a.sent();
|
|
923
|
+
return [2 /*return*/];
|
|
924
|
+
}
|
|
925
|
+
});
|
|
926
|
+
});
|
|
927
|
+
};
|
|
872
928
|
return DomainsApi;
|
|
873
929
|
}(runtime.BaseAPI));
|
|
874
930
|
exports.DomainsApi = DomainsApi;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AirwallexDepositDto } from './AirwallexDepositDto';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,10 +24,10 @@ export interface AdminVerificationDepositDto {
|
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
+
* @type {AirwallexDepositDto}
|
|
27
28
|
* @memberof AdminVerificationDepositDto
|
|
28
29
|
*/
|
|
29
|
-
raw:
|
|
30
|
+
raw: AirwallexDepositDto;
|
|
30
31
|
}
|
|
31
32
|
/**
|
|
32
33
|
* Check if a given object implements the AdminVerificationDepositDto interface.
|
|
@@ -18,6 +18,7 @@ exports.AdminVerificationDepositDtoFromJSON = AdminVerificationDepositDtoFromJSO
|
|
|
18
18
|
exports.AdminVerificationDepositDtoFromJSONTyped = AdminVerificationDepositDtoFromJSONTyped;
|
|
19
19
|
exports.AdminVerificationDepositDtoToJSON = AdminVerificationDepositDtoToJSON;
|
|
20
20
|
exports.AdminVerificationDepositDtoToJSONTyped = AdminVerificationDepositDtoToJSONTyped;
|
|
21
|
+
var AirwallexDepositDto_1 = require("./AirwallexDepositDto");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AdminVerificationDepositDto interface.
|
|
23
24
|
*/
|
|
@@ -37,7 +38,7 @@ function AdminVerificationDepositDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
}
|
|
38
39
|
return {
|
|
39
40
|
'id': json['id'],
|
|
40
|
-
'raw': json['raw'],
|
|
41
|
+
'raw': (0, AirwallexDepositDto_1.AirwallexDepositDtoFromJSON)(json['raw']),
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function AdminVerificationDepositDtoToJSON(json) {
|
|
@@ -50,6 +51,6 @@ function AdminVerificationDepositDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
50
51
|
}
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
|
-
'raw': value['raw'],
|
|
54
|
+
'raw': (0, AirwallexDepositDto_1.AirwallexDepositDtoToJSON)(value['raw']),
|
|
54
55
|
};
|
|
55
56
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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 type { AirwallexDepositDtoFee } from './AirwallexDepositDtoFee';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AirwallexDepositDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AirwallexDepositDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AirwallexDepositDto
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof AirwallexDepositDto
|
|
29
|
+
*/
|
|
30
|
+
payer: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AirwallexDepositDto
|
|
35
|
+
*/
|
|
36
|
+
amount: number;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AirwallexDepositDto
|
|
41
|
+
*/
|
|
42
|
+
currency: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AirwallexDepositDto
|
|
47
|
+
*/
|
|
48
|
+
reference: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {AirwallexDepositDtoFee}
|
|
52
|
+
* @memberof AirwallexDepositDto
|
|
53
|
+
*/
|
|
54
|
+
fee: AirwallexDepositDtoFee;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AirwallexDepositDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAirwallexDepositDto(value: object): value is AirwallexDepositDto;
|
|
60
|
+
export declare function AirwallexDepositDtoFromJSON(json: any): AirwallexDepositDto;
|
|
61
|
+
export declare function AirwallexDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexDepositDto;
|
|
62
|
+
export declare function AirwallexDepositDtoToJSON(json: any): AirwallexDepositDto;
|
|
63
|
+
export declare function AirwallexDepositDtoToJSONTyped(value?: AirwallexDepositDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAirwallexDepositDto = instanceOfAirwallexDepositDto;
|
|
17
|
+
exports.AirwallexDepositDtoFromJSON = AirwallexDepositDtoFromJSON;
|
|
18
|
+
exports.AirwallexDepositDtoFromJSONTyped = AirwallexDepositDtoFromJSONTyped;
|
|
19
|
+
exports.AirwallexDepositDtoToJSON = AirwallexDepositDtoToJSON;
|
|
20
|
+
exports.AirwallexDepositDtoToJSONTyped = AirwallexDepositDtoToJSONTyped;
|
|
21
|
+
var AirwallexDepositDtoFee_1 = require("./AirwallexDepositDtoFee");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AirwallexDepositDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAirwallexDepositDto(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('payer' in value) || value['payer'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('fee' in value) || value['fee'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AirwallexDepositDtoFromJSON(json) {
|
|
41
|
+
return AirwallexDepositDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AirwallexDepositDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'payer': json['payer'],
|
|
50
|
+
'amount': json['amount'],
|
|
51
|
+
'currency': json['currency'],
|
|
52
|
+
'reference': json['reference'],
|
|
53
|
+
'fee': (0, AirwallexDepositDtoFee_1.AirwallexDepositDtoFeeFromJSON)(json['fee']),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AirwallexDepositDtoToJSON(json) {
|
|
57
|
+
return AirwallexDepositDtoToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AirwallexDepositDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'payer': value['payer'],
|
|
67
|
+
'amount': value['amount'],
|
|
68
|
+
'currency': value['currency'],
|
|
69
|
+
'reference': value['reference'],
|
|
70
|
+
'fee': (0, AirwallexDepositDtoFee_1.AirwallexDepositDtoFeeToJSON)(value['fee']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AirwallexDepositDtoFee
|
|
16
|
+
*/
|
|
17
|
+
export interface AirwallexDepositDtoFee {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AirwallexDepositDtoFee
|
|
22
|
+
*/
|
|
23
|
+
amount?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AirwallexDepositDtoFee
|
|
28
|
+
*/
|
|
29
|
+
currency?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AirwallexDepositDtoFee interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAirwallexDepositDtoFee(value: object): value is AirwallexDepositDtoFee;
|
|
35
|
+
export declare function AirwallexDepositDtoFeeFromJSON(json: any): AirwallexDepositDtoFee;
|
|
36
|
+
export declare function AirwallexDepositDtoFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexDepositDtoFee;
|
|
37
|
+
export declare function AirwallexDepositDtoFeeToJSON(json: any): AirwallexDepositDtoFee;
|
|
38
|
+
export declare function AirwallexDepositDtoFeeToJSONTyped(value?: AirwallexDepositDtoFee | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAirwallexDepositDtoFee = instanceOfAirwallexDepositDtoFee;
|
|
17
|
+
exports.AirwallexDepositDtoFeeFromJSON = AirwallexDepositDtoFeeFromJSON;
|
|
18
|
+
exports.AirwallexDepositDtoFeeFromJSONTyped = AirwallexDepositDtoFeeFromJSONTyped;
|
|
19
|
+
exports.AirwallexDepositDtoFeeToJSON = AirwallexDepositDtoFeeToJSON;
|
|
20
|
+
exports.AirwallexDepositDtoFeeToJSONTyped = AirwallexDepositDtoFeeToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AirwallexDepositDtoFee interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAirwallexDepositDtoFee(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function AirwallexDepositDtoFeeFromJSON(json) {
|
|
28
|
+
return AirwallexDepositDtoFeeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function AirwallexDepositDtoFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
36
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AirwallexDepositDtoFeeToJSON(json) {
|
|
40
|
+
return AirwallexDepositDtoFeeToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AirwallexDepositDtoFeeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'amount': value['amount'],
|
|
49
|
+
'currency': value['currency'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -32,6 +32,7 @@ export declare const ConcreteDomainTransferTaskDataRequirementsEnum: {
|
|
|
32
32
|
readonly OWNED_DOMAIN_TAKEN_BY_BUYER: "owned_domain_taken_by_buyer";
|
|
33
33
|
readonly OWNED_DOMAIN_TAKEN_BY_SELLER: "owned_domain_taken_by_seller";
|
|
34
34
|
readonly DOMAIN_IPS_TAG: "domain_ips_tag";
|
|
35
|
+
readonly DOMAIN_IPS_TAG_SELLER: "domain_ips_tag_seller";
|
|
35
36
|
};
|
|
36
37
|
export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
|
|
37
38
|
/**
|
|
@@ -28,7 +28,8 @@ exports.ConcreteDomainTransferTaskDataRequirementsEnum = {
|
|
|
28
28
|
OWNED_DOMAIN: 'owned_domain',
|
|
29
29
|
OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
|
|
30
30
|
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller',
|
|
31
|
-
DOMAIN_IPS_TAG: 'domain_ips_tag'
|
|
31
|
+
DOMAIN_IPS_TAG: 'domain_ips_tag',
|
|
32
|
+
DOMAIN_IPS_TAG_SELLER: 'domain_ips_tag_seller'
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* Check if a given object implements the ConcreteDomainTransferTaskData interface.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDomainTransferIpsTagInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDomainTransferIpsTagInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateDomainTransferIpsTagInput
|
|
22
|
+
*/
|
|
23
|
+
ipsTag: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateDomainTransferIpsTagInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateDomainTransferIpsTagInput(value: object): value is UpdateDomainTransferIpsTagInput;
|
|
29
|
+
export declare function UpdateDomainTransferIpsTagInputFromJSON(json: any): UpdateDomainTransferIpsTagInput;
|
|
30
|
+
export declare function UpdateDomainTransferIpsTagInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainTransferIpsTagInput;
|
|
31
|
+
export declare function UpdateDomainTransferIpsTagInputToJSON(json: any): UpdateDomainTransferIpsTagInput;
|
|
32
|
+
export declare function UpdateDomainTransferIpsTagInputToJSONTyped(value?: UpdateDomainTransferIpsTagInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateDomainTransferIpsTagInput = instanceOfUpdateDomainTransferIpsTagInput;
|
|
17
|
+
exports.UpdateDomainTransferIpsTagInputFromJSON = UpdateDomainTransferIpsTagInputFromJSON;
|
|
18
|
+
exports.UpdateDomainTransferIpsTagInputFromJSONTyped = UpdateDomainTransferIpsTagInputFromJSONTyped;
|
|
19
|
+
exports.UpdateDomainTransferIpsTagInputToJSON = UpdateDomainTransferIpsTagInputToJSON;
|
|
20
|
+
exports.UpdateDomainTransferIpsTagInputToJSONTyped = UpdateDomainTransferIpsTagInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateDomainTransferIpsTagInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateDomainTransferIpsTagInput(value) {
|
|
25
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateDomainTransferIpsTagInputFromJSON(json) {
|
|
30
|
+
return UpdateDomainTransferIpsTagInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateDomainTransferIpsTagInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'ipsTag': json['ipsTag'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateDomainTransferIpsTagInputToJSON(json) {
|
|
41
|
+
return UpdateDomainTransferIpsTagInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateDomainTransferIpsTagInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'ipsTag': value['ipsTag'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export * from './AirwallexBankAccountDetailsDto';
|
|
|
21
21
|
export * from './AirwallexBankAccountDetailsDtoInstitution';
|
|
22
22
|
export * from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
23
23
|
export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
24
|
+
export * from './AirwallexDepositDto';
|
|
25
|
+
export * from './AirwallexDepositDtoFee';
|
|
24
26
|
export * from './BadRequestException';
|
|
25
27
|
export * from './BatchDeleteBuyerLeadsInput';
|
|
26
28
|
export * from './BatchImportPreviewDto';
|
|
@@ -202,6 +204,7 @@ export * from './UpdateAccountBillingInformationInput';
|
|
|
202
204
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
203
205
|
export * from './UpdateDomainInput';
|
|
204
206
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
207
|
+
export * from './UpdateDomainTransferIpsTagInput';
|
|
205
208
|
export * from './UpdateLeadInput';
|
|
206
209
|
export * from './UpdateOrderInput';
|
|
207
210
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|
package/dist/models/index.js
CHANGED
|
@@ -39,6 +39,8 @@ __exportStar(require("./AirwallexBankAccountDetailsDto"), exports);
|
|
|
39
39
|
__exportStar(require("./AirwallexBankAccountDetailsDtoInstitution"), exports);
|
|
40
40
|
__exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
|
|
41
41
|
__exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethodCode"), exports);
|
|
42
|
+
__exportStar(require("./AirwallexDepositDto"), exports);
|
|
43
|
+
__exportStar(require("./AirwallexDepositDtoFee"), exports);
|
|
42
44
|
__exportStar(require("./BadRequestException"), exports);
|
|
43
45
|
__exportStar(require("./BatchDeleteBuyerLeadsInput"), exports);
|
|
44
46
|
__exportStar(require("./BatchImportPreviewDto"), exports);
|
|
@@ -220,6 +222,7 @@ __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
|
220
222
|
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
221
223
|
__exportStar(require("./UpdateDomainInput"), exports);
|
|
222
224
|
__exportStar(require("./UpdateDomainTransferAuthCodeInput"), exports);
|
|
225
|
+
__exportStar(require("./UpdateDomainTransferIpsTagInput"), exports);
|
|
223
226
|
__exportStar(require("./UpdateLeadInput"), exports);
|
|
224
227
|
__exportStar(require("./UpdateOrderInput"), exports);
|
|
225
228
|
__exportStar(require("./UpdateSubscriptionBillingPeriodicityInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -193,6 +193,10 @@ export interface AdminApiUpdateAccountSettingsRequest {
|
|
|
193
193
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
export interface AdminApiVerifyBankAccountRequest {
|
|
197
|
+
bankAccountId: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
196
200
|
/**
|
|
197
201
|
*
|
|
198
202
|
*/
|
|
@@ -1175,4 +1179,44 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
1175
1179
|
await this.updateAccountSettingsRaw(requestParameters, initOverrides);
|
|
1176
1180
|
}
|
|
1177
1181
|
|
|
1182
|
+
/**
|
|
1183
|
+
*
|
|
1184
|
+
*/
|
|
1185
|
+
async verifyBankAccountRaw(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1186
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
1187
|
+
throw new runtime.RequiredError(
|
|
1188
|
+
'bankAccountId',
|
|
1189
|
+
'Required parameter "bankAccountId" was null or undefined when calling verifyBankAccount().'
|
|
1190
|
+
);
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
const queryParameters: any = {};
|
|
1194
|
+
|
|
1195
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1196
|
+
|
|
1197
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1198
|
+
const token = this.configuration.accessToken;
|
|
1199
|
+
const tokenString = await token("bearer", []);
|
|
1200
|
+
|
|
1201
|
+
if (tokenString) {
|
|
1202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
const response = await this.request({
|
|
1206
|
+
path: `/admin/bank-accounts/{bankAccountId}/verify`.replace(`{${"bankAccountId"}}`, encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
1207
|
+
method: 'POST',
|
|
1208
|
+
headers: headerParameters,
|
|
1209
|
+
query: queryParameters,
|
|
1210
|
+
}, initOverrides);
|
|
1211
|
+
|
|
1212
|
+
return new runtime.VoidApiResponse(response);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
*
|
|
1217
|
+
*/
|
|
1218
|
+
async verifyBankAccount(requestParameters: AdminApiVerifyBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1219
|
+
await this.verifyBankAccountRaw(requestParameters, initOverrides);
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1178
1222
|
}
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -29,6 +29,7 @@ import type {
|
|
|
29
29
|
ThrottlerException,
|
|
30
30
|
UpdateDomainInput,
|
|
31
31
|
UpdateDomainTransferAuthCodeInput,
|
|
32
|
+
UpdateDomainTransferIpsTagInput,
|
|
32
33
|
ValidationException,
|
|
33
34
|
} from '../models/index';
|
|
34
35
|
import {
|
|
@@ -60,6 +61,8 @@ import {
|
|
|
60
61
|
UpdateDomainInputToJSON,
|
|
61
62
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
62
63
|
UpdateDomainTransferAuthCodeInputToJSON,
|
|
64
|
+
UpdateDomainTransferIpsTagInputFromJSON,
|
|
65
|
+
UpdateDomainTransferIpsTagInputToJSON,
|
|
63
66
|
ValidationExceptionFromJSON,
|
|
64
67
|
ValidationExceptionToJSON,
|
|
65
68
|
} from '../models/index';
|
|
@@ -125,6 +128,11 @@ export interface DomainsApiUpdateDomainTransferAuthCodeRequest {
|
|
|
125
128
|
updateDomainTransferAuthCodeInput: UpdateDomainTransferAuthCodeInput;
|
|
126
129
|
}
|
|
127
130
|
|
|
131
|
+
export interface DomainsApiUpdateDomainTransferIpsTagRequest {
|
|
132
|
+
transferId: string;
|
|
133
|
+
updateDomainTransferIpsTagInput: UpdateDomainTransferIpsTagInput;
|
|
134
|
+
}
|
|
135
|
+
|
|
128
136
|
/**
|
|
129
137
|
*
|
|
130
138
|
*/
|
|
@@ -766,4 +774,54 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
766
774
|
await this.updateDomainTransferAuthCodeRaw(requestParameters, initOverrides);
|
|
767
775
|
}
|
|
768
776
|
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
async updateDomainTransferIpsTagRaw(requestParameters: DomainsApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
781
|
+
if (requestParameters['transferId'] == null) {
|
|
782
|
+
throw new runtime.RequiredError(
|
|
783
|
+
'transferId',
|
|
784
|
+
'Required parameter "transferId" was null or undefined when calling updateDomainTransferIpsTag().'
|
|
785
|
+
);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
if (requestParameters['updateDomainTransferIpsTagInput'] == null) {
|
|
789
|
+
throw new runtime.RequiredError(
|
|
790
|
+
'updateDomainTransferIpsTagInput',
|
|
791
|
+
'Required parameter "updateDomainTransferIpsTagInput" was null or undefined when calling updateDomainTransferIpsTag().'
|
|
792
|
+
);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
const queryParameters: any = {};
|
|
796
|
+
|
|
797
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
798
|
+
|
|
799
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
800
|
+
|
|
801
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
802
|
+
const token = this.configuration.accessToken;
|
|
803
|
+
const tokenString = await token("bearer", []);
|
|
804
|
+
|
|
805
|
+
if (tokenString) {
|
|
806
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
const response = await this.request({
|
|
810
|
+
path: `/private/domains/transfers/{transferId}/ips-tag`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))),
|
|
811
|
+
method: 'PATCH',
|
|
812
|
+
headers: headerParameters,
|
|
813
|
+
query: queryParameters,
|
|
814
|
+
body: UpdateDomainTransferIpsTagInputToJSON(requestParameters['updateDomainTransferIpsTagInput']),
|
|
815
|
+
}, initOverrides);
|
|
816
|
+
|
|
817
|
+
return new runtime.VoidApiResponse(response);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
823
|
+
async updateDomainTransferIpsTag(requestParameters: DomainsApiUpdateDomainTransferIpsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
824
|
+
await this.updateDomainTransferIpsTagRaw(requestParameters, initOverrides);
|
|
825
|
+
}
|
|
826
|
+
|
|
769
827
|
}
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AirwallexDepositDto } from './AirwallexDepositDto';
|
|
17
|
+
import {
|
|
18
|
+
AirwallexDepositDtoFromJSON,
|
|
19
|
+
AirwallexDepositDtoFromJSONTyped,
|
|
20
|
+
AirwallexDepositDtoToJSON,
|
|
21
|
+
AirwallexDepositDtoToJSONTyped,
|
|
22
|
+
} from './AirwallexDepositDto';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -27,10 +35,10 @@ export interface AdminVerificationDepositDto {
|
|
|
27
35
|
id: string;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
|
-
* @type {
|
|
38
|
+
* @type {AirwallexDepositDto}
|
|
31
39
|
* @memberof AdminVerificationDepositDto
|
|
32
40
|
*/
|
|
33
|
-
raw:
|
|
41
|
+
raw: AirwallexDepositDto;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -53,7 +61,7 @@ export function AdminVerificationDepositDtoFromJSONTyped(json: any, ignoreDiscri
|
|
|
53
61
|
return {
|
|
54
62
|
|
|
55
63
|
'id': json['id'],
|
|
56
|
-
'raw': json['raw'],
|
|
64
|
+
'raw': AirwallexDepositDtoFromJSON(json['raw']),
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -69,7 +77,7 @@ export function AdminVerificationDepositDtoToJSONTyped(value?: AdminVerification
|
|
|
69
77
|
return {
|
|
70
78
|
|
|
71
79
|
'id': value['id'],
|
|
72
|
-
'raw': value['raw'],
|
|
80
|
+
'raw': AirwallexDepositDtoToJSON(value['raw']),
|
|
73
81
|
};
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AirwallexDepositDtoFee } from './AirwallexDepositDtoFee';
|
|
17
|
+
import {
|
|
18
|
+
AirwallexDepositDtoFeeFromJSON,
|
|
19
|
+
AirwallexDepositDtoFeeFromJSONTyped,
|
|
20
|
+
AirwallexDepositDtoFeeToJSON,
|
|
21
|
+
AirwallexDepositDtoFeeToJSONTyped,
|
|
22
|
+
} from './AirwallexDepositDtoFee';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AirwallexDepositDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AirwallexDepositDto {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AirwallexDepositDto
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {object}
|
|
39
|
+
* @memberof AirwallexDepositDto
|
|
40
|
+
*/
|
|
41
|
+
payer: object;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AirwallexDepositDto
|
|
46
|
+
*/
|
|
47
|
+
amount: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AirwallexDepositDto
|
|
52
|
+
*/
|
|
53
|
+
currency: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AirwallexDepositDto
|
|
58
|
+
*/
|
|
59
|
+
reference: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {AirwallexDepositDtoFee}
|
|
63
|
+
* @memberof AirwallexDepositDto
|
|
64
|
+
*/
|
|
65
|
+
fee: AirwallexDepositDtoFee;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the AirwallexDepositDto interface.
|
|
70
|
+
*/
|
|
71
|
+
export function instanceOfAirwallexDepositDto(value: object): value is AirwallexDepositDto {
|
|
72
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
73
|
+
if (!('payer' in value) || value['payer'] === undefined) return false;
|
|
74
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
75
|
+
if (!('currency' in value) || value['currency'] === undefined) return false;
|
|
76
|
+
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
77
|
+
if (!('fee' in value) || value['fee'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AirwallexDepositDtoFromJSON(json: any): AirwallexDepositDto {
|
|
82
|
+
return AirwallexDepositDtoFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AirwallexDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexDepositDto {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': json['id'],
|
|
92
|
+
'payer': json['payer'],
|
|
93
|
+
'amount': json['amount'],
|
|
94
|
+
'currency': json['currency'],
|
|
95
|
+
'reference': json['reference'],
|
|
96
|
+
'fee': AirwallexDepositDtoFeeFromJSON(json['fee']),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AirwallexDepositDtoToJSON(json: any): AirwallexDepositDto {
|
|
101
|
+
return AirwallexDepositDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AirwallexDepositDtoToJSONTyped(value?: AirwallexDepositDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'payer': value['payer'],
|
|
113
|
+
'amount': value['amount'],
|
|
114
|
+
'currency': value['currency'],
|
|
115
|
+
'reference': value['reference'],
|
|
116
|
+
'fee': AirwallexDepositDtoFeeToJSON(value['fee']),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AirwallexDepositDtoFee
|
|
20
|
+
*/
|
|
21
|
+
export interface AirwallexDepositDtoFee {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AirwallexDepositDtoFee
|
|
26
|
+
*/
|
|
27
|
+
amount?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AirwallexDepositDtoFee
|
|
32
|
+
*/
|
|
33
|
+
currency?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AirwallexDepositDtoFee interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAirwallexDepositDtoFee(value: object): value is AirwallexDepositDtoFee {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AirwallexDepositDtoFeeFromJSON(json: any): AirwallexDepositDtoFee {
|
|
44
|
+
return AirwallexDepositDtoFeeFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AirwallexDepositDtoFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexDepositDtoFee {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
54
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AirwallexDepositDtoFeeToJSON(json: any): AirwallexDepositDtoFee {
|
|
59
|
+
return AirwallexDepositDtoFeeToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AirwallexDepositDtoFeeToJSONTyped(value?: AirwallexDepositDtoFee | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'amount': value['amount'],
|
|
70
|
+
'currency': value['currency'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -37,7 +37,8 @@ export const ConcreteDomainTransferTaskDataRequirementsEnum = {
|
|
|
37
37
|
OWNED_DOMAIN: 'owned_domain',
|
|
38
38
|
OWNED_DOMAIN_TAKEN_BY_BUYER: 'owned_domain_taken_by_buyer',
|
|
39
39
|
OWNED_DOMAIN_TAKEN_BY_SELLER: 'owned_domain_taken_by_seller',
|
|
40
|
-
DOMAIN_IPS_TAG: 'domain_ips_tag'
|
|
40
|
+
DOMAIN_IPS_TAG: 'domain_ips_tag',
|
|
41
|
+
DOMAIN_IPS_TAG_SELLER: 'domain_ips_tag_seller'
|
|
41
42
|
} as const;
|
|
42
43
|
export type ConcreteDomainTransferTaskDataRequirementsEnum = typeof ConcreteDomainTransferTaskDataRequirementsEnum[keyof typeof ConcreteDomainTransferTaskDataRequirementsEnum];
|
|
43
44
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateDomainTransferIpsTagInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateDomainTransferIpsTagInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateDomainTransferIpsTagInput
|
|
26
|
+
*/
|
|
27
|
+
ipsTag: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateDomainTransferIpsTagInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateDomainTransferIpsTagInput(value: object): value is UpdateDomainTransferIpsTagInput {
|
|
34
|
+
if (!('ipsTag' in value) || value['ipsTag'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateDomainTransferIpsTagInputFromJSON(json: any): UpdateDomainTransferIpsTagInput {
|
|
39
|
+
return UpdateDomainTransferIpsTagInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateDomainTransferIpsTagInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDomainTransferIpsTagInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'ipsTag': json['ipsTag'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateDomainTransferIpsTagInputToJSON(json: any): UpdateDomainTransferIpsTagInput {
|
|
53
|
+
return UpdateDomainTransferIpsTagInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateDomainTransferIpsTagInputToJSONTyped(value?: UpdateDomainTransferIpsTagInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ipsTag': value['ipsTag'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -23,6 +23,8 @@ export * from './AirwallexBankAccountDetailsDto';
|
|
|
23
23
|
export * from './AirwallexBankAccountDetailsDtoInstitution';
|
|
24
24
|
export * from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
25
25
|
export * from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
26
|
+
export * from './AirwallexDepositDto';
|
|
27
|
+
export * from './AirwallexDepositDtoFee';
|
|
26
28
|
export * from './BadRequestException';
|
|
27
29
|
export * from './BatchDeleteBuyerLeadsInput';
|
|
28
30
|
export * from './BatchImportPreviewDto';
|
|
@@ -204,6 +206,7 @@ export * from './UpdateAccountBillingInformationInput';
|
|
|
204
206
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
205
207
|
export * from './UpdateDomainInput';
|
|
206
208
|
export * from './UpdateDomainTransferAuthCodeInput';
|
|
209
|
+
export * from './UpdateDomainTransferIpsTagInput';
|
|
207
210
|
export * from './UpdateLeadInput';
|
|
208
211
|
export * from './UpdateOrderInput';
|
|
209
212
|
export * from './UpdateSubscriptionBillingPeriodicityInput';
|