@randock/nameshift-api-client 0.0.474 → 0.0.476
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 +7 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +71 -1
- package/dist/apis/AdminApi.js +288 -0
- package/dist/apis/BuyersApi.d.ts +15 -1
- package/dist/apis/BuyersApi.js +58 -0
- package/dist/apis/CustomerSuccessApi.d.ts +57 -1
- package/dist/apis/CustomerSuccessApi.js +230 -0
- package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
- package/dist/models/AccountNoteAuthorDto.js +63 -0
- package/dist/models/AccountNoteDto.d.ts +63 -0
- package/dist/models/AccountNoteDto.js +72 -0
- package/dist/models/AccountNoteListDto.d.ts +33 -0
- package/dist/models/AccountNoteListDto.js +52 -0
- package/dist/models/AdminListAccountDto.d.ts +12 -0
- package/dist/models/AdminListAccountDto.js +8 -0
- package/dist/models/BuyerSubscriptionListItemDto.d.ts +7 -0
- package/dist/models/BuyerSubscriptionListItemDto.js +5 -0
- package/dist/models/CompanyInformationDto.d.ts +2 -2
- package/dist/models/CreateAccountNoteInput.d.ts +32 -0
- package/dist/models/CreateAccountNoteInput.js +51 -0
- package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
- package/dist/models/CustomerSuccessListAccountDto.js +8 -0
- package/dist/models/ForbiddenException.d.ts +44 -0
- package/dist/models/ForbiddenException.js +59 -0
- package/dist/models/SubscriptionDetailsDto.d.ts +7 -0
- package/dist/models/SubscriptionDetailsDto.js +5 -0
- package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
- package/dist/models/UpdateAccountNoteInput.js +51 -0
- package/dist/models/UpdateSubscriptionBuyerInformationInput.d.ts +33 -0
- package/dist/models/UpdateSubscriptionBuyerInformationInput.js +52 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +3 -0
- package/src/apis/AdminApi.ts +295 -0
- package/src/apis/BuyersApi.ts +63 -0
- package/src/apis/CustomerSuccessApi.ts +238 -0
- package/src/apis/DomainsApi.ts +3 -0
- package/src/models/AccountNoteAuthorDto.ts +93 -0
- package/src/models/AccountNoteDto.ts +119 -0
- package/src/models/AccountNoteListDto.ts +74 -0
- package/src/models/AdminListAccountDto.ts +18 -0
- package/src/models/BuyerSubscriptionListItemDto.ts +16 -0
- package/src/models/CompanyInformationDto.ts +2 -2
- package/src/models/CreateAccountNoteInput.ts +66 -0
- package/src/models/CustomerSuccessListAccountDto.ts +18 -0
- package/src/models/ForbiddenException.ts +84 -0
- package/src/models/SubscriptionDetailsDto.ts +16 -0
- package/src/models/UpdateAccountNoteInput.ts +66 -0
- package/src/models/UpdateSubscriptionBuyerInformationInput.ts +74 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountNoteListDto = instanceOfAccountNoteListDto;
|
|
17
|
+
exports.AccountNoteListDtoFromJSON = AccountNoteListDtoFromJSON;
|
|
18
|
+
exports.AccountNoteListDtoFromJSONTyped = AccountNoteListDtoFromJSONTyped;
|
|
19
|
+
exports.AccountNoteListDtoToJSON = AccountNoteListDtoToJSON;
|
|
20
|
+
exports.AccountNoteListDtoToJSONTyped = AccountNoteListDtoToJSONTyped;
|
|
21
|
+
var AccountNoteDto_1 = require("./AccountNoteDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountNoteListDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountNoteListDto(value) {
|
|
26
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AccountNoteListDtoFromJSON(json) {
|
|
31
|
+
return AccountNoteListDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AccountNoteListDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'data': (json['data'].map(AccountNoteDto_1.AccountNoteDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AccountNoteListDtoToJSON(json) {
|
|
42
|
+
return AccountNoteListDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccountNoteListDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'data': (value['data'].map(AccountNoteDto_1.AccountNoteDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -31,6 +31,18 @@ export interface AdminListAccountDto {
|
|
|
31
31
|
* @memberof AdminListAccountDto
|
|
32
32
|
*/
|
|
33
33
|
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of private notes written about the account.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AdminListAccountDto
|
|
38
|
+
*/
|
|
39
|
+
notesNumber: number;
|
|
40
|
+
/**
|
|
41
|
+
* When any of the account notes was last written or edited. Null when there are none.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof AdminListAccountDto
|
|
44
|
+
*/
|
|
45
|
+
notesLastUpdatedAt: Date | null;
|
|
34
46
|
/**
|
|
35
47
|
* Account creation date.
|
|
36
48
|
* @type {Date}
|
|
@@ -53,6 +53,10 @@ function instanceOfAdminListAccountDto(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
55
55
|
return false;
|
|
56
|
+
if (!('notesNumber' in value) || value['notesNumber'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
|
+
return false;
|
|
56
60
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
61
|
return false;
|
|
58
62
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -97,6 +101,8 @@ function AdminListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
101
|
return {
|
|
98
102
|
'id': json['id'],
|
|
99
103
|
'identifier': json['identifier'],
|
|
104
|
+
'notesNumber': json['notesNumber'],
|
|
105
|
+
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
100
106
|
'createdAt': (new Date(json['createdAt'])),
|
|
101
107
|
'name': json['name'],
|
|
102
108
|
'type': json['type'],
|
|
@@ -126,6 +132,8 @@ function AdminListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
132
|
return {
|
|
127
133
|
'id': value['id'],
|
|
128
134
|
'identifier': value['identifier'],
|
|
135
|
+
'notesNumber': value['notesNumber'],
|
|
136
|
+
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
129
137
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
130
138
|
'name': value['name'],
|
|
131
139
|
'type': value['type'],
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { BuyerSubscriptionListItemDtoDomainInformation } from './BuyerSubscriptionListItemDtoDomainInformation';
|
|
13
13
|
import type { MoneyDto } from './MoneyDto';
|
|
14
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -107,6 +108,12 @@ export interface BuyerSubscriptionListItemDto {
|
|
|
107
108
|
* @memberof BuyerSubscriptionListItemDto
|
|
108
109
|
*/
|
|
109
110
|
canManageDomainDns: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Billing information of the subscription. It is the one used to build the invoices of the upcoming renewals.
|
|
113
|
+
* @type {BillingInformationDto}
|
|
114
|
+
* @memberof BuyerSubscriptionListItemDto
|
|
115
|
+
*/
|
|
116
|
+
buyerInformation: BillingInformationDto;
|
|
110
117
|
}
|
|
111
118
|
/**
|
|
112
119
|
* @export
|
|
@@ -21,6 +21,7 @@ exports.BuyerSubscriptionListItemDtoToJSON = BuyerSubscriptionListItemDtoToJSON;
|
|
|
21
21
|
exports.BuyerSubscriptionListItemDtoToJSONTyped = BuyerSubscriptionListItemDtoToJSONTyped;
|
|
22
22
|
var BuyerSubscriptionListItemDtoDomainInformation_1 = require("./BuyerSubscriptionListItemDtoDomainInformation");
|
|
23
23
|
var MoneyDto_1 = require("./MoneyDto");
|
|
24
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
24
25
|
/**
|
|
25
26
|
* @export
|
|
26
27
|
*/
|
|
@@ -79,6 +80,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
|
|
|
79
80
|
return false;
|
|
80
81
|
if (!('canManageDomainDns' in value) || value['canManageDomainDns'] === undefined)
|
|
81
82
|
return false;
|
|
83
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
84
|
+
return false;
|
|
82
85
|
return true;
|
|
83
86
|
}
|
|
84
87
|
function BuyerSubscriptionListItemDtoFromJSON(json) {
|
|
@@ -104,6 +107,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
107
|
'renewAt': (new Date(json['renewAt'])),
|
|
105
108
|
'paymentUrl': json['paymentUrl'],
|
|
106
109
|
'canManageDomainDns': json['canManageDomainDns'],
|
|
110
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['buyerInformation']),
|
|
107
111
|
};
|
|
108
112
|
}
|
|
109
113
|
function BuyerSubscriptionListItemDtoToJSON(json) {
|
|
@@ -130,5 +134,6 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
130
134
|
'renewAt': ((value['renewAt']).toISOString()),
|
|
131
135
|
'paymentUrl': value['paymentUrl'],
|
|
132
136
|
'canManageDomainDns': value['canManageDomainDns'],
|
|
137
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['buyerInformation']),
|
|
133
138
|
};
|
|
134
139
|
}
|
|
@@ -23,11 +23,11 @@ export interface CompanyInformationDto {
|
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
* Company tax identification details.
|
|
26
|
+
* Company tax identification details. A company is not required to have one.
|
|
27
27
|
* @type {CompanyTaxIdDto}
|
|
28
28
|
* @memberof CompanyInformationDto
|
|
29
29
|
*/
|
|
30
|
-
taxId: CompanyTaxIdDto;
|
|
30
|
+
taxId: CompanyTaxIdDto | null;
|
|
31
31
|
/**
|
|
32
32
|
* Optional company registration or chamber of commerce ID.
|
|
33
33
|
* @type {string}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateAccountNoteInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateAccountNoteInput {
|
|
18
|
+
/**
|
|
19
|
+
* Note body as HTML. It is sanitized before being stored, so any tag outside the editor schema is dropped.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateAccountNoteInput
|
|
22
|
+
*/
|
|
23
|
+
body: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateAccountNoteInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateAccountNoteInput(value: object): value is CreateAccountNoteInput;
|
|
29
|
+
export declare function CreateAccountNoteInputFromJSON(json: any): CreateAccountNoteInput;
|
|
30
|
+
export declare function CreateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountNoteInput;
|
|
31
|
+
export declare function CreateAccountNoteInputToJSON(json: any): CreateAccountNoteInput;
|
|
32
|
+
export declare function CreateAccountNoteInputToJSONTyped(value?: CreateAccountNoteInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreateAccountNoteInput = instanceOfCreateAccountNoteInput;
|
|
17
|
+
exports.CreateAccountNoteInputFromJSON = CreateAccountNoteInputFromJSON;
|
|
18
|
+
exports.CreateAccountNoteInputFromJSONTyped = CreateAccountNoteInputFromJSONTyped;
|
|
19
|
+
exports.CreateAccountNoteInputToJSON = CreateAccountNoteInputToJSON;
|
|
20
|
+
exports.CreateAccountNoteInputToJSONTyped = CreateAccountNoteInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateAccountNoteInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateAccountNoteInput(value) {
|
|
25
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function CreateAccountNoteInputFromJSON(json) {
|
|
30
|
+
return CreateAccountNoteInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function CreateAccountNoteInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'body': json['body'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function CreateAccountNoteInputToJSON(json) {
|
|
41
|
+
return CreateAccountNoteInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function CreateAccountNoteInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'body': value['body'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -31,6 +31,18 @@ export interface CustomerSuccessListAccountDto {
|
|
|
31
31
|
* @memberof CustomerSuccessListAccountDto
|
|
32
32
|
*/
|
|
33
33
|
identifier: string;
|
|
34
|
+
/**
|
|
35
|
+
* Number of private notes written about the account.
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CustomerSuccessListAccountDto
|
|
38
|
+
*/
|
|
39
|
+
notesNumber: number;
|
|
40
|
+
/**
|
|
41
|
+
* When any of the account notes was last written or edited. Null when there are none.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof CustomerSuccessListAccountDto
|
|
44
|
+
*/
|
|
45
|
+
notesLastUpdatedAt: Date | null;
|
|
34
46
|
/**
|
|
35
47
|
* Account creation date.
|
|
36
48
|
* @type {Date}
|
|
@@ -53,6 +53,10 @@ function instanceOfCustomerSuccessListAccountDto(value) {
|
|
|
53
53
|
return false;
|
|
54
54
|
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
55
55
|
return false;
|
|
56
|
+
if (!('notesNumber' in value) || value['notesNumber'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
|
|
59
|
+
return false;
|
|
56
60
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
61
|
return false;
|
|
58
62
|
if (!('name' in value) || value['name'] === undefined)
|
|
@@ -97,6 +101,8 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
101
|
return {
|
|
98
102
|
'id': json['id'],
|
|
99
103
|
'identifier': json['identifier'],
|
|
104
|
+
'notesNumber': json['notesNumber'],
|
|
105
|
+
'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
|
|
100
106
|
'createdAt': (new Date(json['createdAt'])),
|
|
101
107
|
'name': json['name'],
|
|
102
108
|
'type': json['type'],
|
|
@@ -126,6 +132,8 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
126
132
|
return {
|
|
127
133
|
'id': value['id'],
|
|
128
134
|
'identifier': value['identifier'],
|
|
135
|
+
'notesNumber': value['notesNumber'],
|
|
136
|
+
'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
|
|
129
137
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
130
138
|
'name': value['name'],
|
|
131
139
|
'type': value['type'],
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ForbiddenException
|
|
16
|
+
*/
|
|
17
|
+
export interface ForbiddenException {
|
|
18
|
+
/**
|
|
19
|
+
* Exception name.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForbiddenException
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP status code.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ForbiddenException
|
|
28
|
+
*/
|
|
29
|
+
statusCode: number;
|
|
30
|
+
/**
|
|
31
|
+
* error message
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ForbiddenException
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ForbiddenException interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfForbiddenException(value: object): value is ForbiddenException;
|
|
41
|
+
export declare function ForbiddenExceptionFromJSON(json: any): ForbiddenException;
|
|
42
|
+
export declare function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException;
|
|
43
|
+
export declare function ForbiddenExceptionToJSON(json: any): ForbiddenException;
|
|
44
|
+
export declare function ForbiddenExceptionToJSONTyped(value?: ForbiddenException | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfForbiddenException = instanceOfForbiddenException;
|
|
17
|
+
exports.ForbiddenExceptionFromJSON = ForbiddenExceptionFromJSON;
|
|
18
|
+
exports.ForbiddenExceptionFromJSONTyped = ForbiddenExceptionFromJSONTyped;
|
|
19
|
+
exports.ForbiddenExceptionToJSON = ForbiddenExceptionToJSON;
|
|
20
|
+
exports.ForbiddenExceptionToJSONTyped = ForbiddenExceptionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ForbiddenException interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfForbiddenException(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ForbiddenExceptionFromJSON(json) {
|
|
34
|
+
return ForbiddenExceptionFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ForbiddenExceptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'statusCode': json['statusCode'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ForbiddenExceptionToJSON(json) {
|
|
47
|
+
return ForbiddenExceptionToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ForbiddenExceptionToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'name': value['name'],
|
|
56
|
+
'statusCode': value['statusCode'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -18,6 +18,7 @@ import type { DomainTransferDetailsDto } from './DomainTransferDetailsDto';
|
|
|
18
18
|
import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
|
|
19
19
|
import type { AddressDto } from './AddressDto';
|
|
20
20
|
import type { SubscriptionDetailsDomainSellerDto } from './SubscriptionDetailsDomainSellerDto';
|
|
21
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
21
22
|
/**
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
@@ -114,6 +115,12 @@ export interface SubscriptionDetailsDto {
|
|
|
114
115
|
* @memberof SubscriptionDetailsDto
|
|
115
116
|
*/
|
|
116
117
|
companyInfo: SubscriptionCompanyInfoDto | null;
|
|
118
|
+
/**
|
|
119
|
+
* Buyer billing information as stored on the subscription. It is the editable one, used to build the invoices of the upcoming renewals.
|
|
120
|
+
* @type {BillingInformationDto}
|
|
121
|
+
* @memberof SubscriptionDetailsDto
|
|
122
|
+
*/
|
|
123
|
+
buyerInformation: BillingInformationDto;
|
|
117
124
|
/**
|
|
118
125
|
* Subscribed domain.
|
|
119
126
|
* @type {SubscriptionDetailsDomainDto}
|
|
@@ -28,6 +28,7 @@ var DomainTransferDetailsDto_1 = require("./DomainTransferDetailsDto");
|
|
|
28
28
|
var SubscriptionCompanyInfoDto_1 = require("./SubscriptionCompanyInfoDto");
|
|
29
29
|
var AddressDto_1 = require("./AddressDto");
|
|
30
30
|
var SubscriptionDetailsDomainSellerDto_1 = require("./SubscriptionDetailsDomainSellerDto");
|
|
31
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
31
32
|
/**
|
|
32
33
|
* @export
|
|
33
34
|
*/
|
|
@@ -122,6 +123,8 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
122
123
|
return false;
|
|
123
124
|
if (!('companyInfo' in value) || value['companyInfo'] === undefined)
|
|
124
125
|
return false;
|
|
126
|
+
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
|
|
127
|
+
return false;
|
|
125
128
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
126
129
|
return false;
|
|
127
130
|
if (!('type' in value) || value['type'] === undefined)
|
|
@@ -193,6 +196,7 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
193
196
|
'address': (0, AddressDto_1.AddressDtoFromJSON)(json['address']),
|
|
194
197
|
'locale': json['locale'],
|
|
195
198
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
199
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['buyerInformation']),
|
|
196
200
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoFromJSON)(json['domain']),
|
|
197
201
|
'type': json['type'],
|
|
198
202
|
'installments': json['installments'],
|
|
@@ -242,6 +246,7 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
242
246
|
'address': (0, AddressDto_1.AddressDtoToJSON)(value['address']),
|
|
243
247
|
'locale': value['locale'],
|
|
244
248
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
249
|
+
'buyerInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['buyerInformation']),
|
|
245
250
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoToJSON)(value['domain']),
|
|
246
251
|
'type': value['type'],
|
|
247
252
|
'installments': value['installments'],
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateAccountNoteInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateAccountNoteInput {
|
|
18
|
+
/**
|
|
19
|
+
* New note body as HTML. It is sanitized before being stored.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateAccountNoteInput
|
|
22
|
+
*/
|
|
23
|
+
body: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateAccountNoteInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateAccountNoteInput(value: object): value is UpdateAccountNoteInput;
|
|
29
|
+
export declare function UpdateAccountNoteInputFromJSON(json: any): UpdateAccountNoteInput;
|
|
30
|
+
export declare function UpdateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountNoteInput;
|
|
31
|
+
export declare function UpdateAccountNoteInputToJSON(json: any): UpdateAccountNoteInput;
|
|
32
|
+
export declare function UpdateAccountNoteInputToJSONTyped(value?: UpdateAccountNoteInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateAccountNoteInput = instanceOfUpdateAccountNoteInput;
|
|
17
|
+
exports.UpdateAccountNoteInputFromJSON = UpdateAccountNoteInputFromJSON;
|
|
18
|
+
exports.UpdateAccountNoteInputFromJSONTyped = UpdateAccountNoteInputFromJSONTyped;
|
|
19
|
+
exports.UpdateAccountNoteInputToJSON = UpdateAccountNoteInputToJSON;
|
|
20
|
+
exports.UpdateAccountNoteInputToJSONTyped = UpdateAccountNoteInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateAccountNoteInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateAccountNoteInput(value) {
|
|
25
|
+
if (!('body' in value) || value['body'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateAccountNoteInputFromJSON(json) {
|
|
30
|
+
return UpdateAccountNoteInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateAccountNoteInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'body': json['body'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateAccountNoteInputToJSON(json) {
|
|
41
|
+
return UpdateAccountNoteInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateAccountNoteInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'body': value['body'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateSubscriptionBuyerInformationInput
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateSubscriptionBuyerInformationInput {
|
|
19
|
+
/**
|
|
20
|
+
* Billing information to store on the subscription. It is used to build the invoices of the upcoming renewals and does not modify the already issued ones.
|
|
21
|
+
* @type {BillingInformationDto}
|
|
22
|
+
* @memberof UpdateSubscriptionBuyerInformationInput
|
|
23
|
+
*/
|
|
24
|
+
billingInformation: BillingInformationDto;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UpdateSubscriptionBuyerInformationInput interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUpdateSubscriptionBuyerInformationInput(value: object): value is UpdateSubscriptionBuyerInformationInput;
|
|
30
|
+
export declare function UpdateSubscriptionBuyerInformationInputFromJSON(json: any): UpdateSubscriptionBuyerInformationInput;
|
|
31
|
+
export declare function UpdateSubscriptionBuyerInformationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSubscriptionBuyerInformationInput;
|
|
32
|
+
export declare function UpdateSubscriptionBuyerInformationInputToJSON(json: any): UpdateSubscriptionBuyerInformationInput;
|
|
33
|
+
export declare function UpdateSubscriptionBuyerInformationInputToJSONTyped(value?: UpdateSubscriptionBuyerInformationInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUpdateSubscriptionBuyerInformationInput = instanceOfUpdateSubscriptionBuyerInformationInput;
|
|
17
|
+
exports.UpdateSubscriptionBuyerInformationInputFromJSON = UpdateSubscriptionBuyerInformationInputFromJSON;
|
|
18
|
+
exports.UpdateSubscriptionBuyerInformationInputFromJSONTyped = UpdateSubscriptionBuyerInformationInputFromJSONTyped;
|
|
19
|
+
exports.UpdateSubscriptionBuyerInformationInputToJSON = UpdateSubscriptionBuyerInformationInputToJSON;
|
|
20
|
+
exports.UpdateSubscriptionBuyerInformationInputToJSONTyped = UpdateSubscriptionBuyerInformationInputToJSONTyped;
|
|
21
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateSubscriptionBuyerInformationInput interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateSubscriptionBuyerInformationInput(value) {
|
|
26
|
+
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function UpdateSubscriptionBuyerInformationInputFromJSON(json) {
|
|
31
|
+
return UpdateSubscriptionBuyerInformationInputFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function UpdateSubscriptionBuyerInformationInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateSubscriptionBuyerInformationInputToJSON(json) {
|
|
42
|
+
return UpdateSubscriptionBuyerInformationInputToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateSubscriptionBuyerInformationInputToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
51
|
+
};
|
|
52
|
+
}
|