@randock/nameshift-api-client 0.0.112 → 0.0.113
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +13 -1
- package/dist/apis/AdminApi.js +57 -3
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +54 -0
- package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +65 -0
- package/dist/models/DomainTransferDetailsDto.d.ts +7 -0
- package/dist/models/DomainTransferDetailsDto.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +57 -5
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +99 -0
- package/src/models/DomainTransferDetailsDto.ts +15 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -52,6 +52,7 @@ src/models/DomainDto.ts
|
|
|
52
52
|
src/models/DomainSellerDto.ts
|
|
53
53
|
src/models/DomainStats.ts
|
|
54
54
|
src/models/DomainTransferAgentDto.ts
|
|
55
|
+
src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts
|
|
55
56
|
src/models/DomainTransferDetailWorkflowStepActionDto.ts
|
|
56
57
|
src/models/DomainTransferDetailWorkflowStepDto.ts
|
|
57
58
|
src/models/DomainTransferDetailsAuthCodeDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.113
|
|
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.113 --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
|
+
50d723139da0843db5744fe9d53aa01bc3846f4fa38885897d0e8a03368874b5cd50cde3145d1a6e360e11da61a58401
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface AdminApiGetAccountSettingsRequest {
|
|
|
25
25
|
accountId: string;
|
|
26
26
|
}
|
|
27
27
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
28
|
-
|
|
28
|
+
domainTransferId: string;
|
|
29
29
|
}
|
|
30
30
|
export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
|
|
31
31
|
transferId: string;
|
|
@@ -50,6 +50,10 @@ export interface AdminApiListAccountsRequest {
|
|
|
50
50
|
limit?: number;
|
|
51
51
|
sortBy?: Array<string>;
|
|
52
52
|
}
|
|
53
|
+
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
54
|
+
transferId: string;
|
|
55
|
+
invoiceId: string;
|
|
56
|
+
}
|
|
53
57
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
54
58
|
accountId: string;
|
|
55
59
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -122,6 +126,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
122
126
|
*
|
|
123
127
|
*/
|
|
124
128
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
payDomainTransferSellerInvoiceRaw(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
payDomainTransferSellerInvoice(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
125
137
|
/**
|
|
126
138
|
*
|
|
127
139
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -256,8 +256,8 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
256
256
|
return __generator(this, function (_a) {
|
|
257
257
|
switch (_a.label) {
|
|
258
258
|
case 0:
|
|
259
|
-
if (requestParameters['
|
|
260
|
-
throw new runtime.RequiredError('
|
|
259
|
+
if (requestParameters['domainTransferId'] == null) {
|
|
260
|
+
throw new runtime.RequiredError('domainTransferId', 'Required parameter "domainTransferId" was null or undefined when calling getAdminDomainTransferDetails().');
|
|
261
261
|
}
|
|
262
262
|
queryParameters = {};
|
|
263
263
|
headerParameters = {};
|
|
@@ -271,7 +271,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
271
271
|
}
|
|
272
272
|
_a.label = 2;
|
|
273
273
|
case 2: return [4 /*yield*/, this.request({
|
|
274
|
-
path: "/admin/domain-transfers/{
|
|
274
|
+
path: "/admin/domain-transfers/{domainTransferId}".replace("{".concat("domainTransferId", "}"), encodeURIComponent(String(requestParameters['domainTransferId']))),
|
|
275
275
|
method: 'GET',
|
|
276
276
|
headers: headerParameters,
|
|
277
277
|
query: queryParameters,
|
|
@@ -546,6 +546,60 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
546
546
|
});
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
*/
|
|
552
|
+
AdminApi.prototype.payDomainTransferSellerInvoiceRaw = function (requestParameters, initOverrides) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
554
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
555
|
+
return __generator(this, function (_a) {
|
|
556
|
+
switch (_a.label) {
|
|
557
|
+
case 0:
|
|
558
|
+
if (requestParameters['transferId'] == null) {
|
|
559
|
+
throw new runtime.RequiredError('transferId', 'Required parameter "transferId" was null or undefined when calling payDomainTransferSellerInvoice().');
|
|
560
|
+
}
|
|
561
|
+
if (requestParameters['invoiceId'] == null) {
|
|
562
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling payDomainTransferSellerInvoice().');
|
|
563
|
+
}
|
|
564
|
+
queryParameters = {};
|
|
565
|
+
headerParameters = {};
|
|
566
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
567
|
+
token = this.configuration.accessToken;
|
|
568
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
569
|
+
case 1:
|
|
570
|
+
tokenString = _a.sent();
|
|
571
|
+
if (tokenString) {
|
|
572
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
573
|
+
}
|
|
574
|
+
_a.label = 2;
|
|
575
|
+
case 2: return [4 /*yield*/, this.request({
|
|
576
|
+
path: "/admin/domain-transfers/{transferId}/seller-invoices/{invoiceId}/pay".replace("{".concat("transferId", "}"), encodeURIComponent(String(requestParameters['transferId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
577
|
+
method: 'POST',
|
|
578
|
+
headers: headerParameters,
|
|
579
|
+
query: queryParameters,
|
|
580
|
+
}, initOverrides)];
|
|
581
|
+
case 3:
|
|
582
|
+
response = _a.sent();
|
|
583
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
*
|
|
590
|
+
*/
|
|
591
|
+
AdminApi.prototype.payDomainTransferSellerInvoice = function (requestParameters, initOverrides) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
593
|
+
return __generator(this, function (_a) {
|
|
594
|
+
switch (_a.label) {
|
|
595
|
+
case 0: return [4 /*yield*/, this.payDomainTransferSellerInvoiceRaw(requestParameters, initOverrides)];
|
|
596
|
+
case 1:
|
|
597
|
+
_a.sent();
|
|
598
|
+
return [2 /*return*/];
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
};
|
|
549
603
|
/**
|
|
550
604
|
*
|
|
551
605
|
*/
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DomainTransferDetailSellerPayoutInvoiceDto
|
|
17
|
+
*/
|
|
18
|
+
export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
19
|
+
/**
|
|
20
|
+
* The domain seller payout invoice ID
|
|
21
|
+
* @type {object}
|
|
22
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
23
|
+
*/
|
|
24
|
+
id: object;
|
|
25
|
+
/**
|
|
26
|
+
* The domain seller payout invoice price
|
|
27
|
+
* @type {MoneyDto}
|
|
28
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
29
|
+
*/
|
|
30
|
+
price: MoneyDto;
|
|
31
|
+
/**
|
|
32
|
+
* The domain seller payout invoice transaction status
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
35
|
+
*/
|
|
36
|
+
transactionStatus: DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum: {
|
|
42
|
+
readonly OPEN: "open";
|
|
43
|
+
readonly PAID: "paid";
|
|
44
|
+
readonly CANCELLED: "cancelled";
|
|
45
|
+
readonly REFUNDED: "refunded";
|
|
46
|
+
};
|
|
47
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DomainTransferDetailSellerPayoutInvoiceDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value: object): value is DomainTransferDetailSellerPayoutInvoiceDto;
|
|
52
|
+
export declare function DomainTransferDetailSellerPayoutInvoiceDtoFromJSON(json: any): DomainTransferDetailSellerPayoutInvoiceDto;
|
|
53
|
+
export declare function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailSellerPayoutInvoiceDto;
|
|
54
|
+
export declare function DomainTransferDetailSellerPayoutInvoiceDtoToJSON(value?: DomainTransferDetailSellerPayoutInvoiceDto | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfDomainTransferDetailSellerPayoutInvoiceDto = instanceOfDomainTransferDetailSellerPayoutInvoiceDto;
|
|
18
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSON = DomainTransferDetailSellerPayoutInvoiceDtoFromJSON;
|
|
19
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped = DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped;
|
|
20
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoToJSON = DomainTransferDetailSellerPayoutInvoiceDtoToJSON;
|
|
21
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
|
|
26
|
+
OPEN: 'open',
|
|
27
|
+
PAID: 'paid',
|
|
28
|
+
CANCELLED: 'cancelled',
|
|
29
|
+
REFUNDED: 'refunded'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DomainTransferDetailSellerPayoutInvoiceDto interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value) {
|
|
35
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('transactionStatus' in value) || value['transactionStatus'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoFromJSON(json) {
|
|
44
|
+
return DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
|
|
53
|
+
'transactionStatus': json['transactionStatus'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function DomainTransferDetailSellerPayoutInvoiceDtoToJSON(value) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
|
|
63
|
+
'transactionStatus': value['transactionStatus'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { DomainTransferDetailsOrderDto } from './DomainTransferDetailsOrderDto';
|
|
13
|
+
import type { DomainTransferDetailSellerPayoutInvoiceDto } from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
13
14
|
import type { DomainTransferDetailsValidationDto } from './DomainTransferDetailsValidationDto';
|
|
14
15
|
import type { DomainTransferDetailWorkflowStepDto } from './DomainTransferDetailWorkflowStepDto';
|
|
15
16
|
import type { DomainTransferDetailsAuthCodeDto } from './DomainTransferDetailsAuthCodeDto';
|
|
@@ -74,6 +75,12 @@ export interface DomainTransferDetailsDto {
|
|
|
74
75
|
* @memberof DomainTransferDetailsDto
|
|
75
76
|
*/
|
|
76
77
|
workflow: Array<DomainTransferDetailWorkflowStepDto>;
|
|
78
|
+
/**
|
|
79
|
+
* The domain seller payouts invoices
|
|
80
|
+
* @type {Array<DomainTransferDetailSellerPayoutInvoiceDto>}
|
|
81
|
+
* @memberof DomainTransferDetailsDto
|
|
82
|
+
*/
|
|
83
|
+
sellerPayoutInvoices: Array<DomainTransferDetailSellerPayoutInvoiceDto>;
|
|
77
84
|
}
|
|
78
85
|
/**
|
|
79
86
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.DomainTransferDetailsDtoFromJSON = DomainTransferDetailsDtoFromJSON;
|
|
|
19
19
|
exports.DomainTransferDetailsDtoFromJSONTyped = DomainTransferDetailsDtoFromJSONTyped;
|
|
20
20
|
exports.DomainTransferDetailsDtoToJSON = DomainTransferDetailsDtoToJSON;
|
|
21
21
|
var DomainTransferDetailsOrderDto_1 = require("./DomainTransferDetailsOrderDto");
|
|
22
|
+
var DomainTransferDetailSellerPayoutInvoiceDto_1 = require("./DomainTransferDetailSellerPayoutInvoiceDto");
|
|
22
23
|
var DomainTransferDetailsValidationDto_1 = require("./DomainTransferDetailsValidationDto");
|
|
23
24
|
var DomainTransferDetailWorkflowStepDto_1 = require("./DomainTransferDetailWorkflowStepDto");
|
|
24
25
|
var DomainTransferDetailsAuthCodeDto_1 = require("./DomainTransferDetailsAuthCodeDto");
|
|
@@ -55,6 +56,8 @@ function instanceOfDomainTransferDetailsDto(value) {
|
|
|
55
56
|
return false;
|
|
56
57
|
if (!('workflow' in value) || value['workflow'] === undefined)
|
|
57
58
|
return false;
|
|
59
|
+
if (!('sellerPayoutInvoices' in value) || value['sellerPayoutInvoices'] === undefined)
|
|
60
|
+
return false;
|
|
58
61
|
return true;
|
|
59
62
|
}
|
|
60
63
|
function DomainTransferDetailsDtoFromJSON(json) {
|
|
@@ -74,6 +77,7 @@ function DomainTransferDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
77
|
'validations': (json['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoFromJSON)),
|
|
75
78
|
'createdAt': (new Date(json['createdAt'])),
|
|
76
79
|
'workflow': (json['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
80
|
+
'sellerPayoutInvoices': (json['sellerPayoutInvoices'].map(DomainTransferDetailSellerPayoutInvoiceDto_1.DomainTransferDetailSellerPayoutInvoiceDtoFromJSON)),
|
|
77
81
|
};
|
|
78
82
|
}
|
|
79
83
|
function DomainTransferDetailsDtoToJSON(value) {
|
|
@@ -90,5 +94,6 @@ function DomainTransferDetailsDtoToJSON(value) {
|
|
|
90
94
|
'validations': (value['validations'].map(DomainTransferDetailsValidationDto_1.DomainTransferDetailsValidationDtoToJSON)),
|
|
91
95
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
92
96
|
'workflow': (value['workflow'].map(DomainTransferDetailWorkflowStepDto_1.DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
97
|
+
'sellerPayoutInvoices': (value['sellerPayoutInvoices'].map(DomainTransferDetailSellerPayoutInvoiceDto_1.DomainTransferDetailSellerPayoutInvoiceDtoToJSON)),
|
|
93
98
|
};
|
|
94
99
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './DomainDto';
|
|
|
32
32
|
export * from './DomainSellerDto';
|
|
33
33
|
export * from './DomainStats';
|
|
34
34
|
export * from './DomainTransferAgentDto';
|
|
35
|
+
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
35
36
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
|
36
37
|
export * from './DomainTransferDetailWorkflowStepDto';
|
|
37
38
|
export * from './DomainTransferDetailsAuthCodeDto';
|
package/dist/models/index.js
CHANGED
|
@@ -50,6 +50,7 @@ __exportStar(require("./DomainDto"), exports);
|
|
|
50
50
|
__exportStar(require("./DomainSellerDto"), exports);
|
|
51
51
|
__exportStar(require("./DomainStats"), exports);
|
|
52
52
|
__exportStar(require("./DomainTransferAgentDto"), exports);
|
|
53
|
+
__exportStar(require("./DomainTransferDetailSellerPayoutInvoiceDto"), exports);
|
|
53
54
|
__exportStar(require("./DomainTransferDetailWorkflowStepActionDto"), exports);
|
|
54
55
|
__exportStar(require("./DomainTransferDetailWorkflowStepDto"), exports);
|
|
55
56
|
__exportStar(require("./DomainTransferDetailsAuthCodeDto"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface AdminApiGetAccountSettingsRequest {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
75
|
-
|
|
75
|
+
domainTransferId: string;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface AdminApiGetAdminExecuteDomainTransferStepActionRequest {
|
|
@@ -102,6 +102,11 @@ export interface AdminApiListAccountsRequest {
|
|
|
102
102
|
sortBy?: Array<string>;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
106
|
+
transferId: string;
|
|
107
|
+
invoiceId: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
106
111
|
accountId: string;
|
|
107
112
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -257,10 +262,10 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
257
262
|
*
|
|
258
263
|
*/
|
|
259
264
|
async getAdminDomainTransferDetailsRaw(requestParameters: AdminApiGetAdminDomainTransferDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainTransferDetailsDto>> {
|
|
260
|
-
if (requestParameters['
|
|
265
|
+
if (requestParameters['domainTransferId'] == null) {
|
|
261
266
|
throw new runtime.RequiredError(
|
|
262
|
-
'
|
|
263
|
-
'Required parameter "
|
|
267
|
+
'domainTransferId',
|
|
268
|
+
'Required parameter "domainTransferId" was null or undefined when calling getAdminDomainTransferDetails().'
|
|
264
269
|
);
|
|
265
270
|
}
|
|
266
271
|
|
|
@@ -277,7 +282,7 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
277
282
|
}
|
|
278
283
|
}
|
|
279
284
|
const response = await this.request({
|
|
280
|
-
path: `/admin/domain-transfers/{
|
|
285
|
+
path: `/admin/domain-transfers/{domainTransferId}`.replace(`{${"domainTransferId"}}`, encodeURIComponent(String(requestParameters['domainTransferId']))),
|
|
281
286
|
method: 'GET',
|
|
282
287
|
headers: headerParameters,
|
|
283
288
|
query: queryParameters,
|
|
@@ -498,6 +503,53 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
498
503
|
return await response.value();
|
|
499
504
|
}
|
|
500
505
|
|
|
506
|
+
/**
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
async payDomainTransferSellerInvoiceRaw(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
510
|
+
if (requestParameters['transferId'] == null) {
|
|
511
|
+
throw new runtime.RequiredError(
|
|
512
|
+
'transferId',
|
|
513
|
+
'Required parameter "transferId" was null or undefined when calling payDomainTransferSellerInvoice().'
|
|
514
|
+
);
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
if (requestParameters['invoiceId'] == null) {
|
|
518
|
+
throw new runtime.RequiredError(
|
|
519
|
+
'invoiceId',
|
|
520
|
+
'Required parameter "invoiceId" was null or undefined when calling payDomainTransferSellerInvoice().'
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const queryParameters: any = {};
|
|
525
|
+
|
|
526
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
527
|
+
|
|
528
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
529
|
+
const token = this.configuration.accessToken;
|
|
530
|
+
const tokenString = await token("bearer", []);
|
|
531
|
+
|
|
532
|
+
if (tokenString) {
|
|
533
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
const response = await this.request({
|
|
537
|
+
path: `/admin/domain-transfers/{transferId}/seller-invoices/{invoiceId}/pay`.replace(`{${"transferId"}}`, encodeURIComponent(String(requestParameters['transferId']))).replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
538
|
+
method: 'POST',
|
|
539
|
+
headers: headerParameters,
|
|
540
|
+
query: queryParameters,
|
|
541
|
+
}, initOverrides);
|
|
542
|
+
|
|
543
|
+
return new runtime.VoidApiResponse(response);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
*
|
|
548
|
+
*/
|
|
549
|
+
async payDomainTransferSellerInvoice(requestParameters: AdminApiPayDomainTransferSellerInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
550
|
+
await this.payDomainTransferSellerInvoiceRaw(requestParameters, initOverrides);
|
|
551
|
+
}
|
|
552
|
+
|
|
501
553
|
/**
|
|
502
554
|
*
|
|
503
555
|
*/
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
} from './MoneyDto';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DomainTransferDetailSellerPayoutInvoiceDto
|
|
27
|
+
*/
|
|
28
|
+
export interface DomainTransferDetailSellerPayoutInvoiceDto {
|
|
29
|
+
/**
|
|
30
|
+
* The domain seller payout invoice ID
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
33
|
+
*/
|
|
34
|
+
id: object;
|
|
35
|
+
/**
|
|
36
|
+
* The domain seller payout invoice price
|
|
37
|
+
* @type {MoneyDto}
|
|
38
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
39
|
+
*/
|
|
40
|
+
price: MoneyDto;
|
|
41
|
+
/**
|
|
42
|
+
* The domain seller payout invoice transaction status
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DomainTransferDetailSellerPayoutInvoiceDto
|
|
45
|
+
*/
|
|
46
|
+
transactionStatus: DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
|
|
54
|
+
OPEN: 'open',
|
|
55
|
+
PAID: 'paid',
|
|
56
|
+
CANCELLED: 'cancelled',
|
|
57
|
+
REFUNDED: 'refunded'
|
|
58
|
+
} as const;
|
|
59
|
+
export type DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = typeof DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum[keyof typeof DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum];
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the DomainTransferDetailSellerPayoutInvoiceDto interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfDomainTransferDetailSellerPayoutInvoiceDto(value: object): value is DomainTransferDetailSellerPayoutInvoiceDto {
|
|
66
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
68
|
+
if (!('transactionStatus' in value) || value['transactionStatus'] === undefined) return false;
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DomainTransferDetailSellerPayoutInvoiceDtoFromJSON(json: any): DomainTransferDetailSellerPayoutInvoiceDto {
|
|
73
|
+
return DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainTransferDetailSellerPayoutInvoiceDto {
|
|
77
|
+
if (json == null) {
|
|
78
|
+
return json;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'id': json['id'],
|
|
83
|
+
'price': MoneyDtoFromJSON(json['price']),
|
|
84
|
+
'transactionStatus': json['transactionStatus'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function DomainTransferDetailSellerPayoutInvoiceDtoToJSON(value?: DomainTransferDetailSellerPayoutInvoiceDto | null): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'price': MoneyDtoToJSON(value['price']),
|
|
96
|
+
'transactionStatus': value['transactionStatus'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
DomainTransferDetailsOrderDtoFromJSONTyped,
|
|
20
20
|
DomainTransferDetailsOrderDtoToJSON,
|
|
21
21
|
} from './DomainTransferDetailsOrderDto';
|
|
22
|
+
import type { DomainTransferDetailSellerPayoutInvoiceDto } from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
23
|
+
import {
|
|
24
|
+
DomainTransferDetailSellerPayoutInvoiceDtoFromJSON,
|
|
25
|
+
DomainTransferDetailSellerPayoutInvoiceDtoFromJSONTyped,
|
|
26
|
+
DomainTransferDetailSellerPayoutInvoiceDtoToJSON,
|
|
27
|
+
} from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
22
28
|
import type { DomainTransferDetailsValidationDto } from './DomainTransferDetailsValidationDto';
|
|
23
29
|
import {
|
|
24
30
|
DomainTransferDetailsValidationDtoFromJSON,
|
|
@@ -104,6 +110,12 @@ export interface DomainTransferDetailsDto {
|
|
|
104
110
|
* @memberof DomainTransferDetailsDto
|
|
105
111
|
*/
|
|
106
112
|
workflow: Array<DomainTransferDetailWorkflowStepDto>;
|
|
113
|
+
/**
|
|
114
|
+
* The domain seller payouts invoices
|
|
115
|
+
* @type {Array<DomainTransferDetailSellerPayoutInvoiceDto>}
|
|
116
|
+
* @memberof DomainTransferDetailsDto
|
|
117
|
+
*/
|
|
118
|
+
sellerPayoutInvoices: Array<DomainTransferDetailSellerPayoutInvoiceDto>;
|
|
107
119
|
}
|
|
108
120
|
|
|
109
121
|
|
|
@@ -133,6 +145,7 @@ export function instanceOfDomainTransferDetailsDto(value: object): value is Doma
|
|
|
133
145
|
if (!('validations' in value) || value['validations'] === undefined) return false;
|
|
134
146
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
135
147
|
if (!('workflow' in value) || value['workflow'] === undefined) return false;
|
|
148
|
+
if (!('sellerPayoutInvoices' in value) || value['sellerPayoutInvoices'] === undefined) return false;
|
|
136
149
|
return true;
|
|
137
150
|
}
|
|
138
151
|
|
|
@@ -155,6 +168,7 @@ export function DomainTransferDetailsDtoFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
155
168
|
'validations': ((json['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoFromJSON)),
|
|
156
169
|
'createdAt': (new Date(json['createdAt'])),
|
|
157
170
|
'workflow': ((json['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoFromJSON)),
|
|
171
|
+
'sellerPayoutInvoices': ((json['sellerPayoutInvoices'] as Array<any>).map(DomainTransferDetailSellerPayoutInvoiceDtoFromJSON)),
|
|
158
172
|
};
|
|
159
173
|
}
|
|
160
174
|
|
|
@@ -173,6 +187,7 @@ export function DomainTransferDetailsDtoToJSON(value?: DomainTransferDetailsDto
|
|
|
173
187
|
'validations': ((value['validations'] as Array<any>).map(DomainTransferDetailsValidationDtoToJSON)),
|
|
174
188
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
175
189
|
'workflow': ((value['workflow'] as Array<any>).map(DomainTransferDetailWorkflowStepDtoToJSON)),
|
|
190
|
+
'sellerPayoutInvoices': ((value['sellerPayoutInvoices'] as Array<any>).map(DomainTransferDetailSellerPayoutInvoiceDtoToJSON)),
|
|
176
191
|
};
|
|
177
192
|
}
|
|
178
193
|
|
package/src/models/index.ts
CHANGED
|
@@ -34,6 +34,7 @@ export * from './DomainDto';
|
|
|
34
34
|
export * from './DomainSellerDto';
|
|
35
35
|
export * from './DomainStats';
|
|
36
36
|
export * from './DomainTransferAgentDto';
|
|
37
|
+
export * from './DomainTransferDetailSellerPayoutInvoiceDto';
|
|
37
38
|
export * from './DomainTransferDetailWorkflowStepActionDto';
|
|
38
39
|
export * from './DomainTransferDetailWorkflowStepDto';
|
|
39
40
|
export * from './DomainTransferDetailsAuthCodeDto';
|