@randock/nameshift-api-client 0.0.111 → 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 +4 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +37 -2
- package/dist/apis/AdminApi.js +166 -3
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- package/dist/models/AccountSettingsDto.d.ts +50 -0
- package/dist/models/AccountSettingsDto.js +59 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
- package/dist/models/AdminAccountSettingsInput.js +44 -0
- 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/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +54 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -1
- package/src/apis/AccountsPublicApi.ts +3 -0
- package/src/apis/AdminApi.ts +166 -5
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/BuyersPublicApi.ts +3 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +3 -0
- package/src/apis/LeadsApi.ts +9 -6
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/apis/StripePublicApi.ts +3 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/models/AccountSettingsDto.ts +95 -0
- package/src/models/AdminAccountSettingsInput.ts +60 -0
- package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +99 -0
- package/src/models/DomainTransferDetailsDto.ts +15 -0
- package/src/models/List200Response.ts +9 -9
- package/src/models/List200Response1.ts +9 -9
- package/src/models/ThrottlerException.ts +79 -0
- package/src/models/index.ts +4 -0
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -30,6 +30,7 @@ import type {
|
|
|
30
30
|
PutBuyerLeadOfferInput,
|
|
31
31
|
SetDomainTransferConfirmationInput,
|
|
32
32
|
StoreBuyerLocaleInput,
|
|
33
|
+
ThrottlerException,
|
|
33
34
|
ValidationException,
|
|
34
35
|
} from '../models/index';
|
|
35
36
|
import {
|
|
@@ -63,6 +64,8 @@ import {
|
|
|
63
64
|
SetDomainTransferConfirmationInputToJSON,
|
|
64
65
|
StoreBuyerLocaleInputFromJSON,
|
|
65
66
|
StoreBuyerLocaleInputToJSON,
|
|
67
|
+
ThrottlerExceptionFromJSON,
|
|
68
|
+
ThrottlerExceptionToJSON,
|
|
66
69
|
ValidationExceptionFromJSON,
|
|
67
70
|
ValidationExceptionToJSON,
|
|
68
71
|
} from '../models/index';
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
LoginDto,
|
|
19
19
|
LoginInput,
|
|
20
20
|
RequestAccessTokenInput,
|
|
21
|
+
ThrottlerException,
|
|
21
22
|
ValidationException,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
LoginInputToJSON,
|
|
28
29
|
RequestAccessTokenInputFromJSON,
|
|
29
30
|
RequestAccessTokenInputToJSON,
|
|
31
|
+
ThrottlerExceptionFromJSON,
|
|
32
|
+
ThrottlerExceptionToJSON,
|
|
30
33
|
ValidationExceptionFromJSON,
|
|
31
34
|
ValidationExceptionToJSON,
|
|
32
35
|
} from '../models/index';
|
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -20,9 +20,10 @@ import type {
|
|
|
20
20
|
DomainDto,
|
|
21
21
|
GetAllDomainTransfers200Response,
|
|
22
22
|
IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
23
|
-
|
|
23
|
+
List200Response1,
|
|
24
24
|
NotFoundException,
|
|
25
25
|
SellerDomainTransferDto,
|
|
26
|
+
ThrottlerException,
|
|
26
27
|
UpdateDomainInput,
|
|
27
28
|
UpdateDomainTransferAuthCodeInput,
|
|
28
29
|
ValidationException,
|
|
@@ -38,12 +39,14 @@ import {
|
|
|
38
39
|
GetAllDomainTransfers200ResponseToJSON,
|
|
39
40
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSON,
|
|
40
41
|
IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON,
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
List200Response1FromJSON,
|
|
43
|
+
List200Response1ToJSON,
|
|
43
44
|
NotFoundExceptionFromJSON,
|
|
44
45
|
NotFoundExceptionToJSON,
|
|
45
46
|
SellerDomainTransferDtoFromJSON,
|
|
46
47
|
SellerDomainTransferDtoToJSON,
|
|
48
|
+
ThrottlerExceptionFromJSON,
|
|
49
|
+
ThrottlerExceptionToJSON,
|
|
47
50
|
UpdateDomainInputFromJSON,
|
|
48
51
|
UpdateDomainInputToJSON,
|
|
49
52
|
UpdateDomainTransferAuthCodeInputFromJSON,
|
|
@@ -425,7 +428,7 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
425
428
|
/**
|
|
426
429
|
*
|
|
427
430
|
*/
|
|
428
|
-
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
431
|
+
async listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>> {
|
|
429
432
|
const queryParameters: any = {};
|
|
430
433
|
|
|
431
434
|
if (requestParameters['filter'] != null) {
|
|
@@ -461,13 +464,13 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
461
464
|
query: queryParameters,
|
|
462
465
|
}, initOverrides);
|
|
463
466
|
|
|
464
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200Response1FromJSON(jsonValue));
|
|
465
468
|
}
|
|
466
469
|
|
|
467
470
|
/**
|
|
468
471
|
*
|
|
469
472
|
*/
|
|
470
|
-
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
473
|
+
async list(requestParameters: DomainsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1> {
|
|
471
474
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
472
475
|
return await response.value();
|
|
473
476
|
}
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
IntersectionDomainSalesInformationDtoWithDomainStatsDto,
|
|
19
19
|
NotFoundException,
|
|
20
|
+
ThrottlerException,
|
|
20
21
|
ValidationException,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON,
|
|
25
26
|
NotFoundExceptionFromJSON,
|
|
26
27
|
NotFoundExceptionToJSON,
|
|
28
|
+
ThrottlerExceptionFromJSON,
|
|
29
|
+
ThrottlerExceptionToJSON,
|
|
27
30
|
ValidationExceptionFromJSON,
|
|
28
31
|
ValidationExceptionToJSON,
|
|
29
32
|
} from '../models/index';
|
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -19,10 +19,11 @@ import type {
|
|
|
19
19
|
BatchReadSellerLeadMessageInput,
|
|
20
20
|
CreateLeadMessageInput,
|
|
21
21
|
IntersectionLeadDtoWithLeadDetailsDto,
|
|
22
|
-
|
|
22
|
+
List200Response,
|
|
23
23
|
ListLeadMessagesDto,
|
|
24
24
|
ObjectId,
|
|
25
25
|
PutLeadOfferInput,
|
|
26
|
+
ThrottlerException,
|
|
26
27
|
ValidationException,
|
|
27
28
|
} from '../models/index';
|
|
28
29
|
import {
|
|
@@ -34,14 +35,16 @@ import {
|
|
|
34
35
|
CreateLeadMessageInputToJSON,
|
|
35
36
|
IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
|
|
36
37
|
IntersectionLeadDtoWithLeadDetailsDtoToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
List200ResponseFromJSON,
|
|
39
|
+
List200ResponseToJSON,
|
|
39
40
|
ListLeadMessagesDtoFromJSON,
|
|
40
41
|
ListLeadMessagesDtoToJSON,
|
|
41
42
|
ObjectIdFromJSON,
|
|
42
43
|
ObjectIdToJSON,
|
|
43
44
|
PutLeadOfferInputFromJSON,
|
|
44
45
|
PutLeadOfferInputToJSON,
|
|
46
|
+
ThrottlerExceptionFromJSON,
|
|
47
|
+
ThrottlerExceptionToJSON,
|
|
45
48
|
ValidationExceptionFromJSON,
|
|
46
49
|
ValidationExceptionToJSON,
|
|
47
50
|
} from '../models/index';
|
|
@@ -311,7 +314,7 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
311
314
|
/**
|
|
312
315
|
*
|
|
313
316
|
*/
|
|
314
|
-
async listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
317
|
+
async listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>> {
|
|
315
318
|
const queryParameters: any = {};
|
|
316
319
|
|
|
317
320
|
if (requestParameters['filter'] != null) {
|
|
@@ -347,13 +350,13 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
347
350
|
query: queryParameters,
|
|
348
351
|
}, initOverrides);
|
|
349
352
|
|
|
350
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
353
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => List200ResponseFromJSON(jsonValue));
|
|
351
354
|
}
|
|
352
355
|
|
|
353
356
|
/**
|
|
354
357
|
*
|
|
355
358
|
*/
|
|
356
|
-
async list(requestParameters: LeadsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
359
|
+
async list(requestParameters: LeadsApiListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response> {
|
|
357
360
|
const response = await this.listRaw(requestParameters, initOverrides);
|
|
358
361
|
return await response.value();
|
|
359
362
|
}
|
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
NotFoundException,
|
|
22
22
|
ObjectId,
|
|
23
23
|
PublicLeadDto,
|
|
24
|
+
ThrottlerException,
|
|
24
25
|
UpdateLeadInput,
|
|
25
26
|
ValidationException,
|
|
26
27
|
VerifyLeadInput,
|
|
@@ -38,6 +39,8 @@ import {
|
|
|
38
39
|
ObjectIdToJSON,
|
|
39
40
|
PublicLeadDtoFromJSON,
|
|
40
41
|
PublicLeadDtoToJSON,
|
|
42
|
+
ThrottlerExceptionFromJSON,
|
|
43
|
+
ThrottlerExceptionToJSON,
|
|
41
44
|
UpdateLeadInputFromJSON,
|
|
42
45
|
UpdateLeadInputToJSON,
|
|
43
46
|
ValidationExceptionFromJSON,
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
NotFoundException,
|
|
21
21
|
ObjectId,
|
|
22
22
|
OrderDto,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
UpdateOrderInput,
|
|
24
25
|
ValidationException,
|
|
25
26
|
} from '../models/index';
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
ObjectIdToJSON,
|
|
35
36
|
OrderDtoFromJSON,
|
|
36
37
|
OrderDtoToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
37
40
|
UpdateOrderInputFromJSON,
|
|
38
41
|
UpdateOrderInputToJSON,
|
|
39
42
|
ValidationExceptionFromJSON,
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
ThrottlerException,
|
|
18
19
|
ValidationException,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
22
|
+
ThrottlerExceptionFromJSON,
|
|
23
|
+
ThrottlerExceptionToJSON,
|
|
21
24
|
ValidationExceptionFromJSON,
|
|
22
25
|
ValidationExceptionToJSON,
|
|
23
26
|
} from '../models/index';
|
package/src/apis/UsersApi.ts
CHANGED
|
@@ -16,11 +16,14 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
StoreUserLocaleInput,
|
|
19
|
+
ThrottlerException,
|
|
19
20
|
ValidationException,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
StoreUserLocaleInputFromJSON,
|
|
23
24
|
StoreUserLocaleInputToJSON,
|
|
25
|
+
ThrottlerExceptionFromJSON,
|
|
26
|
+
ThrottlerExceptionToJSON,
|
|
24
27
|
ValidationExceptionFromJSON,
|
|
25
28
|
ValidationExceptionToJSON,
|
|
26
29
|
} from '../models/index';
|
|
@@ -20,6 +20,7 @@ import type {
|
|
|
20
20
|
LoginInput,
|
|
21
21
|
NotFoundException,
|
|
22
22
|
SetNewPasswordInput,
|
|
23
|
+
ThrottlerException,
|
|
23
24
|
UserPasswordResetDto,
|
|
24
25
|
ValidationException,
|
|
25
26
|
} from '../models/index';
|
|
@@ -34,6 +35,8 @@ import {
|
|
|
34
35
|
NotFoundExceptionToJSON,
|
|
35
36
|
SetNewPasswordInputFromJSON,
|
|
36
37
|
SetNewPasswordInputToJSON,
|
|
38
|
+
ThrottlerExceptionFromJSON,
|
|
39
|
+
ThrottlerExceptionToJSON,
|
|
37
40
|
UserPasswordResetDtoFromJSON,
|
|
38
41
|
UserPasswordResetDtoToJSON,
|
|
39
42
|
ValidationExceptionFromJSON,
|
|
@@ -0,0 +1,95 @@
|
|
|
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 AccountSettingsDto
|
|
27
|
+
*/
|
|
28
|
+
export interface AccountSettingsDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {MoneyDto}
|
|
32
|
+
* @memberof AccountSettingsDto
|
|
33
|
+
*/
|
|
34
|
+
defaultStartingOffer: MoneyDto;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {MoneyDto}
|
|
38
|
+
* @memberof AccountSettingsDto
|
|
39
|
+
*/
|
|
40
|
+
minBuyNow: MoneyDto;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AccountSettingsDto
|
|
45
|
+
*/
|
|
46
|
+
defaultCurrencyCode: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof AccountSettingsDto
|
|
51
|
+
*/
|
|
52
|
+
automaticPayouts: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the AccountSettingsDto interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfAccountSettingsDto(value: object): value is AccountSettingsDto {
|
|
59
|
+
if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined) return false;
|
|
60
|
+
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
|
|
61
|
+
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
|
|
62
|
+
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AccountSettingsDtoFromJSON(json: any): AccountSettingsDto {
|
|
67
|
+
return AccountSettingsDtoFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsDto {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
77
|
+
'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
|
|
78
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
79
|
+
'automaticPayouts': json['automaticPayouts'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function AccountSettingsDtoToJSON(value?: AccountSettingsDto | null): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
90
|
+
'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
|
|
91
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
92
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
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 AdminAccountSettingsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminAccountSettingsInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AdminAccountSettingsInput
|
|
26
|
+
*/
|
|
27
|
+
automaticPayouts?: boolean;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAdminAccountSettingsInput(value: object): value is AdminAccountSettingsInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AdminAccountSettingsInputFromJSON(json: any): AdminAccountSettingsInput {
|
|
38
|
+
return AdminAccountSettingsInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AdminAccountSettingsInputToJSON(value?: AdminAccountSettingsInput | null): any {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -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
|
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { IntersectionLeadDtoWithListFieldsDto } from './IntersectionLeadDtoWithListFieldsDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSON,
|
|
25
|
+
IntersectionLeadDtoWithListFieldsDtoFromJSONTyped,
|
|
26
|
+
IntersectionLeadDtoWithListFieldsDtoToJSON,
|
|
27
|
+
} from './IntersectionLeadDtoWithListFieldsDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface List200Response {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<IntersectionLeadDtoWithListFieldsDto>}
|
|
44
44
|
* @memberof List200Response
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<IntersectionLeadDtoWithListFieldsDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function List200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function List200ResponseToJSON(value?: List200Response | null): any {
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(IntersectionLeadDtoWithListFieldsDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
PaginateResponseLinksFromJSONTyped,
|
|
20
20
|
PaginateResponseLinksToJSON,
|
|
21
21
|
} from './PaginateResponseLinks';
|
|
22
|
-
import type {
|
|
22
|
+
import type { IntersectionDomainDtoWithDomainUrlDto } from './IntersectionDomainDtoWithDomainUrlDto';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from './
|
|
24
|
+
IntersectionDomainDtoWithDomainUrlDtoFromJSON,
|
|
25
|
+
IntersectionDomainDtoWithDomainUrlDtoFromJSONTyped,
|
|
26
|
+
IntersectionDomainDtoWithDomainUrlDtoToJSON,
|
|
27
|
+
} from './IntersectionDomainDtoWithDomainUrlDto';
|
|
28
28
|
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
29
29
|
import {
|
|
30
30
|
PaginateResponseMetaFromJSON,
|
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
export interface List200Response1 {
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {Array<
|
|
43
|
+
* @type {Array<IntersectionDomainDtoWithDomainUrlDto>}
|
|
44
44
|
* @memberof List200Response1
|
|
45
45
|
*/
|
|
46
|
-
data: Array<
|
|
46
|
+
data: Array<IntersectionDomainDtoWithDomainUrlDto>;
|
|
47
47
|
/**
|
|
48
48
|
*
|
|
49
49
|
* @type {PaginateResponseMeta}
|
|
@@ -78,7 +78,7 @@ export function List200Response1FromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
78
78
|
}
|
|
79
79
|
return {
|
|
80
80
|
|
|
81
|
-
'data': ((json['data'] as Array<any>).map(
|
|
81
|
+
'data': ((json['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoFromJSON)),
|
|
82
82
|
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
83
83
|
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
84
84
|
};
|
|
@@ -90,7 +90,7 @@ export function List200Response1ToJSON(value?: List200Response1 | null): any {
|
|
|
90
90
|
}
|
|
91
91
|
return {
|
|
92
92
|
|
|
93
|
-
'data': ((value['data'] as Array<any>).map(
|
|
93
|
+
'data': ((value['data'] as Array<any>).map(IntersectionDomainDtoWithDomainUrlDtoToJSON)),
|
|
94
94
|
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
95
95
|
'links': PaginateResponseLinksToJSON(value['links']),
|
|
96
96
|
};
|