@randock/nameshift-api-client 0.0.562 → 0.0.563
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 +12 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +14 -1
- package/dist/apis/BuyersApi.js +57 -0
- package/dist/apis/BuyersPublicApi.d.ts +100 -1
- package/dist/apis/BuyersPublicApi.js +426 -0
- package/dist/apis/LeadsPublicApi.d.ts +5 -5
- package/dist/apis/LeadsPublicApi.js +6 -4
- package/dist/models/BuyerCheckoutProfileDto.d.ts +116 -0
- package/dist/models/BuyerCheckoutProfileDto.js +107 -0
- package/dist/models/BuyerCheckoutProfileSummaryDto.d.ts +74 -0
- package/dist/models/BuyerCheckoutProfileSummaryDto.js +79 -0
- package/dist/models/BuyerLandingSessionOutput.d.ts +68 -0
- package/dist/models/BuyerLandingSessionOutput.js +75 -0
- package/dist/models/BuyerSessionEstablishTicketOutput.d.ts +32 -0
- package/dist/models/BuyerSessionEstablishTicketOutput.js +51 -0
- package/dist/models/BuyerSessionPurchaseTypeEnum.d.ts +26 -0
- package/dist/models/BuyerSessionPurchaseTypeEnum.js +52 -0
- package/dist/models/CreateBuyerSessionEstablishTicketInput.d.ts +38 -0
- package/dist/models/CreateBuyerSessionEstablishTicketInput.js +55 -0
- package/dist/models/CreateBuyerSessionFromPurchaseInput.d.ts +39 -0
- package/dist/models/CreateBuyerSessionFromPurchaseInput.js +56 -0
- package/dist/models/CreateDashboardBuyerSessionInput.d.ts +32 -0
- package/dist/models/CreateDashboardBuyerSessionInput.js +51 -0
- package/dist/models/ExchangeBuyerSessionCodeInput.d.ts +38 -0
- package/dist/models/ExchangeBuyerSessionCodeInput.js +55 -0
- package/dist/models/LeadEmailVerificationResultOutput.d.ts +33 -0
- package/dist/models/LeadEmailVerificationResultOutput.js +52 -0
- package/dist/models/LeadPhoneVerificationResultOutput.d.ts +47 -0
- package/dist/models/LeadPhoneVerificationResultOutput.js +62 -0
- package/dist/models/VerifyBuyerSessionEmailOtpInput.d.ts +32 -0
- package/dist/models/VerifyBuyerSessionEmailOtpInput.js +51 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +56 -0
- package/src/apis/BuyersPublicApi.ts +378 -0
- package/src/apis/LeadsPublicApi.ts +14 -7
- package/src/models/BuyerCheckoutProfileDto.ts +192 -0
- package/src/models/BuyerCheckoutProfileSummaryDto.ts +129 -0
- package/src/models/BuyerLandingSessionOutput.ts +120 -0
- package/src/models/BuyerSessionEstablishTicketOutput.ts +66 -0
- package/src/models/BuyerSessionPurchaseTypeEnum.ts +54 -0
- package/src/models/CreateBuyerSessionEstablishTicketInput.ts +75 -0
- package/src/models/CreateBuyerSessionFromPurchaseInput.ts +85 -0
- package/src/models/CreateDashboardBuyerSessionInput.ts +66 -0
- package/src/models/ExchangeBuyerSessionCodeInput.ts +75 -0
- package/src/models/LeadEmailVerificationResultOutput.ts +74 -0
- package/src/models/LeadPhoneVerificationResultOutput.ts +106 -0
- package/src/models/VerifyBuyerSessionEmailOtpInput.ts +66 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 BuyerCheckoutProfileDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerCheckoutProfileDto {
|
|
22
|
+
/**
|
|
23
|
+
* Profile identifier.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerCheckoutProfileDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* First name.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerCheckoutProfileDto
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last name.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerCheckoutProfileDto
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
* First line of the billing address.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyerCheckoutProfileDto
|
|
44
|
+
*/
|
|
45
|
+
addressLine1: string;
|
|
46
|
+
/**
|
|
47
|
+
* Second line of the billing address.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyerCheckoutProfileDto
|
|
50
|
+
*/
|
|
51
|
+
addressLine2: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Postal code of the billing address.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyerCheckoutProfileDto
|
|
56
|
+
*/
|
|
57
|
+
addressPostalCode: string;
|
|
58
|
+
/**
|
|
59
|
+
* City of the billing address.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BuyerCheckoutProfileDto
|
|
62
|
+
*/
|
|
63
|
+
addressCity: string;
|
|
64
|
+
/**
|
|
65
|
+
* State or province code of the billing address.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof BuyerCheckoutProfileDto
|
|
68
|
+
*/
|
|
69
|
+
addressStateCode: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* ISO 3166-1 alpha-2 country of the billing address.
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof BuyerCheckoutProfileDto
|
|
74
|
+
*/
|
|
75
|
+
addressCountryCode: string;
|
|
76
|
+
/**
|
|
77
|
+
* Company name, for a company profile.
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof BuyerCheckoutProfileDto
|
|
80
|
+
*/
|
|
81
|
+
companyName: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* Company registration number.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof BuyerCheckoutProfileDto
|
|
86
|
+
*/
|
|
87
|
+
companyId: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Type of the company tax ID.
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof BuyerCheckoutProfileDto
|
|
92
|
+
*/
|
|
93
|
+
companyTaxIdType: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* Company tax ID.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof BuyerCheckoutProfileDto
|
|
98
|
+
*/
|
|
99
|
+
companyTaxIdValue: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* ISO 3166-1 alpha-2 country of the company tax ID.
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof BuyerCheckoutProfileDto
|
|
104
|
+
*/
|
|
105
|
+
companyTaxIdCountryCode: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Tax country the buyer declared.
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof BuyerCheckoutProfileDto
|
|
110
|
+
*/
|
|
111
|
+
selfDeclaredTaxCountry: string | null;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the BuyerCheckoutProfileDto interface.
|
|
116
|
+
*/
|
|
117
|
+
export function instanceOfBuyerCheckoutProfileDto(value: object): value is BuyerCheckoutProfileDto {
|
|
118
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
119
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
120
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
121
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
122
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
123
|
+
if (!('addressPostalCode' in value) || value['addressPostalCode'] === undefined) return false;
|
|
124
|
+
if (!('addressCity' in value) || value['addressCity'] === undefined) return false;
|
|
125
|
+
if (!('addressStateCode' in value) || value['addressStateCode'] === undefined) return false;
|
|
126
|
+
if (!('addressCountryCode' in value) || value['addressCountryCode'] === undefined) return false;
|
|
127
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
128
|
+
if (!('companyId' in value) || value['companyId'] === undefined) return false;
|
|
129
|
+
if (!('companyTaxIdType' in value) || value['companyTaxIdType'] === undefined) return false;
|
|
130
|
+
if (!('companyTaxIdValue' in value) || value['companyTaxIdValue'] === undefined) return false;
|
|
131
|
+
if (!('companyTaxIdCountryCode' in value) || value['companyTaxIdCountryCode'] === undefined) return false;
|
|
132
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function BuyerCheckoutProfileDtoFromJSON(json: any): BuyerCheckoutProfileDto {
|
|
137
|
+
return BuyerCheckoutProfileDtoFromJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function BuyerCheckoutProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerCheckoutProfileDto {
|
|
141
|
+
if (json == null) {
|
|
142
|
+
return json;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'id': json['id'],
|
|
147
|
+
'firstName': json['firstName'],
|
|
148
|
+
'lastName': json['lastName'],
|
|
149
|
+
'addressLine1': json['addressLine1'],
|
|
150
|
+
'addressLine2': json['addressLine2'],
|
|
151
|
+
'addressPostalCode': json['addressPostalCode'],
|
|
152
|
+
'addressCity': json['addressCity'],
|
|
153
|
+
'addressStateCode': json['addressStateCode'],
|
|
154
|
+
'addressCountryCode': json['addressCountryCode'],
|
|
155
|
+
'companyName': json['companyName'],
|
|
156
|
+
'companyId': json['companyId'],
|
|
157
|
+
'companyTaxIdType': json['companyTaxIdType'],
|
|
158
|
+
'companyTaxIdValue': json['companyTaxIdValue'],
|
|
159
|
+
'companyTaxIdCountryCode': json['companyTaxIdCountryCode'],
|
|
160
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function BuyerCheckoutProfileDtoToJSON(json: any): BuyerCheckoutProfileDto {
|
|
165
|
+
return BuyerCheckoutProfileDtoToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function BuyerCheckoutProfileDtoToJSONTyped(value?: BuyerCheckoutProfileDto | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'id': value['id'],
|
|
176
|
+
'firstName': value['firstName'],
|
|
177
|
+
'lastName': value['lastName'],
|
|
178
|
+
'addressLine1': value['addressLine1'],
|
|
179
|
+
'addressLine2': value['addressLine2'],
|
|
180
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
181
|
+
'addressCity': value['addressCity'],
|
|
182
|
+
'addressStateCode': value['addressStateCode'],
|
|
183
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
184
|
+
'companyName': value['companyName'],
|
|
185
|
+
'companyId': value['companyId'],
|
|
186
|
+
'companyTaxIdType': value['companyTaxIdType'],
|
|
187
|
+
'companyTaxIdValue': value['companyTaxIdValue'],
|
|
188
|
+
'companyTaxIdCountryCode': value['companyTaxIdCountryCode'],
|
|
189
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 BuyerCheckoutProfileSummaryDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerCheckoutProfileSummaryDto {
|
|
22
|
+
/**
|
|
23
|
+
* Profile identifier.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* First name on the profile.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
32
|
+
*/
|
|
33
|
+
firstName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Last name on the profile.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
38
|
+
*/
|
|
39
|
+
lastName: string;
|
|
40
|
+
/**
|
|
41
|
+
* Company name, for a company profile.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
44
|
+
*/
|
|
45
|
+
companyName: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* City of the billing address.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
50
|
+
*/
|
|
51
|
+
city: string;
|
|
52
|
+
/**
|
|
53
|
+
* ISO 3166-1 alpha-2 country of the billing address.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
56
|
+
*/
|
|
57
|
+
countryCode: string;
|
|
58
|
+
/**
|
|
59
|
+
* Last four characters of the company tax ID.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
62
|
+
*/
|
|
63
|
+
taxIdEnding: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* When the buyer last paid with it.
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
68
|
+
*/
|
|
69
|
+
lastUsedAt: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the BuyerCheckoutProfileSummaryDto interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfBuyerCheckoutProfileSummaryDto(value: object): value is BuyerCheckoutProfileSummaryDto {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
78
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
79
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
80
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
81
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
82
|
+
if (!('taxIdEnding' in value) || value['taxIdEnding'] === undefined) return false;
|
|
83
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function BuyerCheckoutProfileSummaryDtoFromJSON(json: any): BuyerCheckoutProfileSummaryDto {
|
|
88
|
+
return BuyerCheckoutProfileSummaryDtoFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function BuyerCheckoutProfileSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerCheckoutProfileSummaryDto {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'firstName': json['firstName'],
|
|
99
|
+
'lastName': json['lastName'],
|
|
100
|
+
'companyName': json['companyName'],
|
|
101
|
+
'city': json['city'],
|
|
102
|
+
'countryCode': json['countryCode'],
|
|
103
|
+
'taxIdEnding': json['taxIdEnding'],
|
|
104
|
+
'lastUsedAt': (new Date(json['lastUsedAt'])),
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function BuyerCheckoutProfileSummaryDtoToJSON(json: any): BuyerCheckoutProfileSummaryDto {
|
|
109
|
+
return BuyerCheckoutProfileSummaryDtoToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function BuyerCheckoutProfileSummaryDtoToJSONTyped(value?: BuyerCheckoutProfileSummaryDto | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'id': value['id'],
|
|
120
|
+
'firstName': value['firstName'],
|
|
121
|
+
'lastName': value['lastName'],
|
|
122
|
+
'companyName': value['companyName'],
|
|
123
|
+
'city': value['city'],
|
|
124
|
+
'countryCode': value['countryCode'],
|
|
125
|
+
'taxIdEnding': value['taxIdEnding'],
|
|
126
|
+
'lastUsedAt': ((value['lastUsedAt']).toISOString()),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 BuyerLandingSessionOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerLandingSessionOutput {
|
|
22
|
+
/**
|
|
23
|
+
* Bearer token of the buyer session for the landing that received it.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerLandingSessionOutput
|
|
26
|
+
*/
|
|
27
|
+
token: string;
|
|
28
|
+
/**
|
|
29
|
+
* Email of the buyer.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerLandingSessionOutput
|
|
32
|
+
*/
|
|
33
|
+
email: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the buyer proved the email in this session.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof BuyerLandingSessionOutput
|
|
38
|
+
*/
|
|
39
|
+
emailVerified: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* First name the buyer gave on their latest offer.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BuyerLandingSessionOutput
|
|
44
|
+
*/
|
|
45
|
+
firstName: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Last name the buyer gave on their latest offer.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyerLandingSessionOutput
|
|
50
|
+
*/
|
|
51
|
+
lastName: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Company name the buyer gave on their latest offer.
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyerLandingSessionOutput
|
|
56
|
+
*/
|
|
57
|
+
companyName: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Phone number the buyer proved with a code, or else gave on their latest offer, in E.164.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof BuyerLandingSessionOutput
|
|
62
|
+
*/
|
|
63
|
+
phoneNumber: string | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the BuyerLandingSessionOutput interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfBuyerLandingSessionOutput(value: object): value is BuyerLandingSessionOutput {
|
|
70
|
+
if (!('token' in value) || value['token'] === undefined) return false;
|
|
71
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
72
|
+
if (!('emailVerified' in value) || value['emailVerified'] === undefined) return false;
|
|
73
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
74
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
75
|
+
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
76
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function BuyerLandingSessionOutputFromJSON(json: any): BuyerLandingSessionOutput {
|
|
81
|
+
return BuyerLandingSessionOutputFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function BuyerLandingSessionOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLandingSessionOutput {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'token': json['token'],
|
|
91
|
+
'email': json['email'],
|
|
92
|
+
'emailVerified': json['emailVerified'],
|
|
93
|
+
'firstName': json['firstName'],
|
|
94
|
+
'lastName': json['lastName'],
|
|
95
|
+
'companyName': json['companyName'],
|
|
96
|
+
'phoneNumber': json['phoneNumber'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function BuyerLandingSessionOutputToJSON(json: any): BuyerLandingSessionOutput {
|
|
101
|
+
return BuyerLandingSessionOutputToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function BuyerLandingSessionOutputToJSONTyped(value?: BuyerLandingSessionOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'token': value['token'],
|
|
112
|
+
'email': value['email'],
|
|
113
|
+
'emailVerified': value['emailVerified'],
|
|
114
|
+
'firstName': value['firstName'],
|
|
115
|
+
'lastName': value['lastName'],
|
|
116
|
+
'companyName': value['companyName'],
|
|
117
|
+
'phoneNumber': value['phoneNumber'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 BuyerSessionEstablishTicketOutput
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerSessionEstablishTicketOutput {
|
|
22
|
+
/**
|
|
23
|
+
* One-time ticket to open GET /buyers/session/establish with.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BuyerSessionEstablishTicketOutput
|
|
26
|
+
*/
|
|
27
|
+
ticket: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the BuyerSessionEstablishTicketOutput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfBuyerSessionEstablishTicketOutput(value: object): value is BuyerSessionEstablishTicketOutput {
|
|
34
|
+
if (!('ticket' in value) || value['ticket'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function BuyerSessionEstablishTicketOutputFromJSON(json: any): BuyerSessionEstablishTicketOutput {
|
|
39
|
+
return BuyerSessionEstablishTicketOutputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function BuyerSessionEstablishTicketOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionEstablishTicketOutput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'ticket': json['ticket'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BuyerSessionEstablishTicketOutputToJSON(json: any): BuyerSessionEstablishTicketOutput {
|
|
53
|
+
return BuyerSessionEstablishTicketOutputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerSessionEstablishTicketOutputToJSONTyped(value?: BuyerSessionEstablishTicketOutput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'ticket': value['ticket'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Kind of purchase the buyer just paid.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const BuyerSessionPurchaseTypeEnum = {
|
|
21
|
+
ORDER: 'order',
|
|
22
|
+
SUBSCRIPTION: 'subscription',
|
|
23
|
+
DOMAIN_APPRAISAL_REQUEST: 'domain_appraisal_request'
|
|
24
|
+
} as const;
|
|
25
|
+
export type BuyerSessionPurchaseTypeEnum = typeof BuyerSessionPurchaseTypeEnum[keyof typeof BuyerSessionPurchaseTypeEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfBuyerSessionPurchaseTypeEnum(value: any): boolean {
|
|
29
|
+
for (const key in BuyerSessionPurchaseTypeEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(BuyerSessionPurchaseTypeEnum, key)) {
|
|
31
|
+
if (BuyerSessionPurchaseTypeEnum[key as keyof typeof BuyerSessionPurchaseTypeEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function BuyerSessionPurchaseTypeEnumFromJSON(json: any): BuyerSessionPurchaseTypeEnum {
|
|
40
|
+
return BuyerSessionPurchaseTypeEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function BuyerSessionPurchaseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionPurchaseTypeEnum {
|
|
44
|
+
return json as BuyerSessionPurchaseTypeEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function BuyerSessionPurchaseTypeEnumToJSON(value?: BuyerSessionPurchaseTypeEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function BuyerSessionPurchaseTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerSessionPurchaseTypeEnum {
|
|
52
|
+
return value as BuyerSessionPurchaseTypeEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* 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.
|
|
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 CreateBuyerSessionEstablishTicketInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBuyerSessionEstablishTicketInput {
|
|
22
|
+
/**
|
|
23
|
+
* Domain whose landing the browser returns to.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateBuyerSessionEstablishTicketInput
|
|
26
|
+
*/
|
|
27
|
+
domainName: string;
|
|
28
|
+
/**
|
|
29
|
+
* Locale of the landing page.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateBuyerSessionEstablishTicketInput
|
|
32
|
+
*/
|
|
33
|
+
locale: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateBuyerSessionEstablishTicketInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateBuyerSessionEstablishTicketInput(value: object): value is CreateBuyerSessionEstablishTicketInput {
|
|
40
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
41
|
+
if (!('locale' in value) || value['locale'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CreateBuyerSessionEstablishTicketInputFromJSON(json: any): CreateBuyerSessionEstablishTicketInput {
|
|
46
|
+
return CreateBuyerSessionEstablishTicketInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CreateBuyerSessionEstablishTicketInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerSessionEstablishTicketInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'domainName': json['domainName'],
|
|
56
|
+
'locale': json['locale'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateBuyerSessionEstablishTicketInputToJSON(json: any): CreateBuyerSessionEstablishTicketInput {
|
|
61
|
+
return CreateBuyerSessionEstablishTicketInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateBuyerSessionEstablishTicketInputToJSONTyped(value?: CreateBuyerSessionEstablishTicketInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'domainName': value['domainName'],
|
|
72
|
+
'locale': value['locale'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|