@randock/nameshift-api-client 0.0.562 → 0.0.564
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 +16 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +28 -1
- package/dist/apis/AdminApi.js +113 -0
- 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/LeadsApi.d.ts +28 -1
- package/dist/apis/LeadsApi.js +129 -0
- package/dist/apis/LeadsPublicApi.d.ts +5 -5
- package/dist/apis/LeadsPublicApi.js +6 -4
- package/dist/models/AcceptHighestBuyerLeadOfferInput.d.ts +32 -0
- package/dist/models/AcceptHighestBuyerLeadOfferInput.js +51 -0
- 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/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -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/LeadOfferSummaryCannotAcceptReason.d.ts +29 -0
- package/dist/models/LeadOfferSummaryCannotAcceptReason.js +55 -0
- package/dist/models/LeadOfferSummaryDto.d.ts +52 -0
- package/dist/models/LeadOfferSummaryDto.js +65 -0
- package/dist/models/LeadOfferSummaryItemDto.d.ts +61 -0
- package/dist/models/LeadOfferSummaryItemDto.js +74 -0
- package/dist/models/LeadPhoneVerificationResultOutput.d.ts +47 -0
- package/dist/models/LeadPhoneVerificationResultOutput.js +62 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -0
- package/dist/models/VerifyBuyerSessionEmailOtpInput.d.ts +32 -0
- package/dist/models/VerifyBuyerSessionEmailOtpInput.js +51 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +110 -0
- package/src/apis/BuyersApi.ts +56 -0
- package/src/apis/BuyersPublicApi.ts +378 -0
- package/src/apis/LeadsApi.ts +118 -0
- package/src/apis/LeadsPublicApi.ts +14 -7
- package/src/models/AcceptHighestBuyerLeadOfferInput.ts +66 -0
- package/src/models/BuyerCheckoutProfileDto.ts +192 -0
- package/src/models/BuyerCheckoutProfileSummaryDto.ts +129 -0
- package/src/models/BuyerLandingSessionOutput.ts +120 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -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/LeadOfferSummaryCannotAcceptReason.ts +57 -0
- package/src/models/LeadOfferSummaryDto.ts +110 -0
- package/src/models/LeadOfferSummaryItemDto.ts +114 -0
- package/src/models/LeadPhoneVerificationResultOutput.ts +106 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/VerifyBuyerSessionEmailOtpInput.ts +66 -0
- package/src/models/index.ts +16 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssociateVisitorInput, CreateInformationRequestLeadInput, CreateLeadInput, LeadPhoneVerificationDeliveryDto, LeadStatusDto, LeadVerificationDto, ObjectId, PublicLeadDto, RequestLeadPhoneVerificationCodeInput, UpdateLeadInput, VerifyLeadInput, VerifyLeadPhoneInput } from '../models/index';
|
|
13
|
+
import type { AssociateVisitorInput, CreateInformationRequestLeadInput, CreateLeadInput, LeadEmailVerificationResultOutput, LeadPhoneVerificationDeliveryDto, LeadPhoneVerificationResultOutput, LeadStatusDto, LeadVerificationDto, ObjectId, PublicLeadDto, RequestLeadPhoneVerificationCodeInput, UpdateLeadInput, VerifyLeadInput, VerifyLeadPhoneInput } from '../models/index';
|
|
14
14
|
export interface LeadsPublicApiAssociateLeadVisitorRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
associateVisitorInput: AssociateVisitorInput;
|
|
@@ -150,20 +150,20 @@ export declare class LeadsPublicApi extends runtime.BaseAPI {
|
|
|
150
150
|
* Verifies a lead using the one-time code sent to the buyer email. No authentication required.
|
|
151
151
|
* Verify a lead
|
|
152
152
|
*/
|
|
153
|
-
verifyLeadRaw(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
153
|
+
verifyLeadRaw(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadEmailVerificationResultOutput>>;
|
|
154
154
|
/**
|
|
155
155
|
* Verifies a lead using the one-time code sent to the buyer email. No authentication required.
|
|
156
156
|
* Verify a lead
|
|
157
157
|
*/
|
|
158
|
-
verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
158
|
+
verifyLead(requestParameters: LeadsPublicApiVerifyLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadEmailVerificationResultOutput>;
|
|
159
159
|
/**
|
|
160
160
|
* Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
|
|
161
161
|
* Verify a lead phone code
|
|
162
162
|
*/
|
|
163
|
-
verifyLeadPhoneRaw(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
163
|
+
verifyLeadPhoneRaw(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LeadPhoneVerificationResultOutput>>;
|
|
164
164
|
/**
|
|
165
165
|
* Checks the one-time code the buyer received by Telegram, WhatsApp, SMS or a voice call. No authentication required.
|
|
166
166
|
* Verify a lead phone code
|
|
167
167
|
*/
|
|
168
|
-
verifyLeadPhone(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
168
|
+
verifyLeadPhone(requestParameters: LeadsPublicApiVerifyLeadPhoneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadPhoneVerificationResultOutput>;
|
|
169
169
|
}
|
|
@@ -539,7 +539,7 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
539
539
|
}, initOverrides)];
|
|
540
540
|
case 1:
|
|
541
541
|
response = _a.sent();
|
|
542
|
-
return [2 /*return*/, new runtime.
|
|
542
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadEmailVerificationResultOutputFromJSON)(jsonValue); })];
|
|
543
543
|
}
|
|
544
544
|
});
|
|
545
545
|
});
|
|
@@ -550,12 +550,14 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
550
550
|
*/
|
|
551
551
|
LeadsPublicApi.prototype.verifyLead = function (requestParameters, initOverrides) {
|
|
552
552
|
return __awaiter(this, void 0, void 0, function () {
|
|
553
|
+
var response;
|
|
553
554
|
return __generator(this, function (_a) {
|
|
554
555
|
switch (_a.label) {
|
|
555
556
|
case 0: return [4 /*yield*/, this.verifyLeadRaw(requestParameters, initOverrides)];
|
|
556
557
|
case 1:
|
|
557
|
-
_a.sent();
|
|
558
|
-
return [
|
|
558
|
+
response = _a.sent();
|
|
559
|
+
return [4 /*yield*/, response.value()];
|
|
560
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
559
561
|
}
|
|
560
562
|
});
|
|
561
563
|
});
|
|
@@ -588,7 +590,7 @@ var LeadsPublicApi = /** @class */ (function (_super) {
|
|
|
588
590
|
}, initOverrides)];
|
|
589
591
|
case 1:
|
|
590
592
|
response = _a.sent();
|
|
591
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
593
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LeadPhoneVerificationResultOutputFromJSON)(jsonValue); })];
|
|
592
594
|
}
|
|
593
595
|
});
|
|
594
596
|
});
|
|
@@ -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 AcceptHighestBuyerLeadOfferInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptHighestBuyerLeadOfferInput {
|
|
18
|
+
/**
|
|
19
|
+
* The offer message the seller confirmed, as given by the offer summary. The request is refused with HIGHEST_BUYER_OFFER_CHANGED when it is no longer the highest buyer offer.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptHighestBuyerLeadOfferInput
|
|
22
|
+
*/
|
|
23
|
+
leadMessageId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AcceptHighestBuyerLeadOfferInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAcceptHighestBuyerLeadOfferInput(value: object): value is AcceptHighestBuyerLeadOfferInput;
|
|
29
|
+
export declare function AcceptHighestBuyerLeadOfferInputFromJSON(json: any): AcceptHighestBuyerLeadOfferInput;
|
|
30
|
+
export declare function AcceptHighestBuyerLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AcceptHighestBuyerLeadOfferInput;
|
|
31
|
+
export declare function AcceptHighestBuyerLeadOfferInputToJSON(json: any): AcceptHighestBuyerLeadOfferInput;
|
|
32
|
+
export declare function AcceptHighestBuyerLeadOfferInputToJSONTyped(value?: AcceptHighestBuyerLeadOfferInput | 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.instanceOfAcceptHighestBuyerLeadOfferInput = instanceOfAcceptHighestBuyerLeadOfferInput;
|
|
17
|
+
exports.AcceptHighestBuyerLeadOfferInputFromJSON = AcceptHighestBuyerLeadOfferInputFromJSON;
|
|
18
|
+
exports.AcceptHighestBuyerLeadOfferInputFromJSONTyped = AcceptHighestBuyerLeadOfferInputFromJSONTyped;
|
|
19
|
+
exports.AcceptHighestBuyerLeadOfferInputToJSON = AcceptHighestBuyerLeadOfferInputToJSON;
|
|
20
|
+
exports.AcceptHighestBuyerLeadOfferInputToJSONTyped = AcceptHighestBuyerLeadOfferInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AcceptHighestBuyerLeadOfferInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAcceptHighestBuyerLeadOfferInput(value) {
|
|
25
|
+
if (!('leadMessageId' in value) || value['leadMessageId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AcceptHighestBuyerLeadOfferInputFromJSON(json) {
|
|
30
|
+
return AcceptHighestBuyerLeadOfferInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AcceptHighestBuyerLeadOfferInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'leadMessageId': json['leadMessageId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AcceptHighestBuyerLeadOfferInputToJSON(json) {
|
|
41
|
+
return AcceptHighestBuyerLeadOfferInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AcceptHighestBuyerLeadOfferInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'leadMessageId': value['leadMessageId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
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 BuyerCheckoutProfileDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerCheckoutProfileDto {
|
|
18
|
+
/**
|
|
19
|
+
* Profile identifier.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerCheckoutProfileDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* First name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerCheckoutProfileDto
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last name.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyerCheckoutProfileDto
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
* First line of the billing address.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerCheckoutProfileDto
|
|
40
|
+
*/
|
|
41
|
+
addressLine1: string;
|
|
42
|
+
/**
|
|
43
|
+
* Second line of the billing address.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyerCheckoutProfileDto
|
|
46
|
+
*/
|
|
47
|
+
addressLine2: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Postal code of the billing address.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BuyerCheckoutProfileDto
|
|
52
|
+
*/
|
|
53
|
+
addressPostalCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* City of the billing address.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BuyerCheckoutProfileDto
|
|
58
|
+
*/
|
|
59
|
+
addressCity: string;
|
|
60
|
+
/**
|
|
61
|
+
* State or province code of the billing address.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BuyerCheckoutProfileDto
|
|
64
|
+
*/
|
|
65
|
+
addressStateCode: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* ISO 3166-1 alpha-2 country of the billing address.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BuyerCheckoutProfileDto
|
|
70
|
+
*/
|
|
71
|
+
addressCountryCode: string;
|
|
72
|
+
/**
|
|
73
|
+
* Company name, for a company profile.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BuyerCheckoutProfileDto
|
|
76
|
+
*/
|
|
77
|
+
companyName: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Company registration number.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof BuyerCheckoutProfileDto
|
|
82
|
+
*/
|
|
83
|
+
companyId: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Type of the company tax ID.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof BuyerCheckoutProfileDto
|
|
88
|
+
*/
|
|
89
|
+
companyTaxIdType: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Company tax ID.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof BuyerCheckoutProfileDto
|
|
94
|
+
*/
|
|
95
|
+
companyTaxIdValue: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* ISO 3166-1 alpha-2 country of the company tax ID.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BuyerCheckoutProfileDto
|
|
100
|
+
*/
|
|
101
|
+
companyTaxIdCountryCode: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Tax country the buyer declared.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof BuyerCheckoutProfileDto
|
|
106
|
+
*/
|
|
107
|
+
selfDeclaredTaxCountry: string | null;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the BuyerCheckoutProfileDto interface.
|
|
111
|
+
*/
|
|
112
|
+
export declare function instanceOfBuyerCheckoutProfileDto(value: object): value is BuyerCheckoutProfileDto;
|
|
113
|
+
export declare function BuyerCheckoutProfileDtoFromJSON(json: any): BuyerCheckoutProfileDto;
|
|
114
|
+
export declare function BuyerCheckoutProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerCheckoutProfileDto;
|
|
115
|
+
export declare function BuyerCheckoutProfileDtoToJSON(json: any): BuyerCheckoutProfileDto;
|
|
116
|
+
export declare function BuyerCheckoutProfileDtoToJSONTyped(value?: BuyerCheckoutProfileDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,107 @@
|
|
|
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.instanceOfBuyerCheckoutProfileDto = instanceOfBuyerCheckoutProfileDto;
|
|
17
|
+
exports.BuyerCheckoutProfileDtoFromJSON = BuyerCheckoutProfileDtoFromJSON;
|
|
18
|
+
exports.BuyerCheckoutProfileDtoFromJSONTyped = BuyerCheckoutProfileDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerCheckoutProfileDtoToJSON = BuyerCheckoutProfileDtoToJSON;
|
|
20
|
+
exports.BuyerCheckoutProfileDtoToJSONTyped = BuyerCheckoutProfileDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuyerCheckoutProfileDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuyerCheckoutProfileDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('addressPostalCode' in value) || value['addressPostalCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('addressCity' in value) || value['addressCity'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('addressStateCode' in value) || value['addressStateCode'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('addressCountryCode' in value) || value['addressCountryCode'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('companyId' in value) || value['companyId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('companyTaxIdType' in value) || value['companyTaxIdType'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('companyTaxIdValue' in value) || value['companyTaxIdValue'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('companyTaxIdCountryCode' in value) || value['companyTaxIdCountryCode'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
function BuyerCheckoutProfileDtoFromJSON(json) {
|
|
58
|
+
return BuyerCheckoutProfileDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function BuyerCheckoutProfileDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': json['id'],
|
|
66
|
+
'firstName': json['firstName'],
|
|
67
|
+
'lastName': json['lastName'],
|
|
68
|
+
'addressLine1': json['addressLine1'],
|
|
69
|
+
'addressLine2': json['addressLine2'],
|
|
70
|
+
'addressPostalCode': json['addressPostalCode'],
|
|
71
|
+
'addressCity': json['addressCity'],
|
|
72
|
+
'addressStateCode': json['addressStateCode'],
|
|
73
|
+
'addressCountryCode': json['addressCountryCode'],
|
|
74
|
+
'companyName': json['companyName'],
|
|
75
|
+
'companyId': json['companyId'],
|
|
76
|
+
'companyTaxIdType': json['companyTaxIdType'],
|
|
77
|
+
'companyTaxIdValue': json['companyTaxIdValue'],
|
|
78
|
+
'companyTaxIdCountryCode': json['companyTaxIdCountryCode'],
|
|
79
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function BuyerCheckoutProfileDtoToJSON(json) {
|
|
83
|
+
return BuyerCheckoutProfileDtoToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
function BuyerCheckoutProfileDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
86
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'firstName': value['firstName'],
|
|
93
|
+
'lastName': value['lastName'],
|
|
94
|
+
'addressLine1': value['addressLine1'],
|
|
95
|
+
'addressLine2': value['addressLine2'],
|
|
96
|
+
'addressPostalCode': value['addressPostalCode'],
|
|
97
|
+
'addressCity': value['addressCity'],
|
|
98
|
+
'addressStateCode': value['addressStateCode'],
|
|
99
|
+
'addressCountryCode': value['addressCountryCode'],
|
|
100
|
+
'companyName': value['companyName'],
|
|
101
|
+
'companyId': value['companyId'],
|
|
102
|
+
'companyTaxIdType': value['companyTaxIdType'],
|
|
103
|
+
'companyTaxIdValue': value['companyTaxIdValue'],
|
|
104
|
+
'companyTaxIdCountryCode': value['companyTaxIdCountryCode'],
|
|
105
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 BuyerCheckoutProfileSummaryDto
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerCheckoutProfileSummaryDto {
|
|
18
|
+
/**
|
|
19
|
+
* Profile identifier.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* First name on the profile.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
28
|
+
*/
|
|
29
|
+
firstName: string;
|
|
30
|
+
/**
|
|
31
|
+
* Last name on the profile.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
34
|
+
*/
|
|
35
|
+
lastName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Company name, for a company profile.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
40
|
+
*/
|
|
41
|
+
companyName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* City of the billing address.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
46
|
+
*/
|
|
47
|
+
city: string;
|
|
48
|
+
/**
|
|
49
|
+
* ISO 3166-1 alpha-2 country of the billing address.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
52
|
+
*/
|
|
53
|
+
countryCode: string;
|
|
54
|
+
/**
|
|
55
|
+
* Last four characters of the company tax ID.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
58
|
+
*/
|
|
59
|
+
taxIdEnding: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* When the buyer last paid with it.
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof BuyerCheckoutProfileSummaryDto
|
|
64
|
+
*/
|
|
65
|
+
lastUsedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the BuyerCheckoutProfileSummaryDto interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfBuyerCheckoutProfileSummaryDto(value: object): value is BuyerCheckoutProfileSummaryDto;
|
|
71
|
+
export declare function BuyerCheckoutProfileSummaryDtoFromJSON(json: any): BuyerCheckoutProfileSummaryDto;
|
|
72
|
+
export declare function BuyerCheckoutProfileSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerCheckoutProfileSummaryDto;
|
|
73
|
+
export declare function BuyerCheckoutProfileSummaryDtoToJSON(json: any): BuyerCheckoutProfileSummaryDto;
|
|
74
|
+
export declare function BuyerCheckoutProfileSummaryDtoToJSONTyped(value?: BuyerCheckoutProfileSummaryDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.instanceOfBuyerCheckoutProfileSummaryDto = instanceOfBuyerCheckoutProfileSummaryDto;
|
|
17
|
+
exports.BuyerCheckoutProfileSummaryDtoFromJSON = BuyerCheckoutProfileSummaryDtoFromJSON;
|
|
18
|
+
exports.BuyerCheckoutProfileSummaryDtoFromJSONTyped = BuyerCheckoutProfileSummaryDtoFromJSONTyped;
|
|
19
|
+
exports.BuyerCheckoutProfileSummaryDtoToJSON = BuyerCheckoutProfileSummaryDtoToJSON;
|
|
20
|
+
exports.BuyerCheckoutProfileSummaryDtoToJSONTyped = BuyerCheckoutProfileSummaryDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the BuyerCheckoutProfileSummaryDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfBuyerCheckoutProfileSummaryDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('companyName' in value) || value['companyName'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('city' in value) || value['city'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('taxIdEnding' in value) || value['taxIdEnding'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function BuyerCheckoutProfileSummaryDtoFromJSON(json) {
|
|
44
|
+
return BuyerCheckoutProfileSummaryDtoFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function BuyerCheckoutProfileSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'firstName': json['firstName'],
|
|
53
|
+
'lastName': json['lastName'],
|
|
54
|
+
'companyName': json['companyName'],
|
|
55
|
+
'city': json['city'],
|
|
56
|
+
'countryCode': json['countryCode'],
|
|
57
|
+
'taxIdEnding': json['taxIdEnding'],
|
|
58
|
+
'lastUsedAt': (new Date(json['lastUsedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function BuyerCheckoutProfileSummaryDtoToJSON(json) {
|
|
62
|
+
return BuyerCheckoutProfileSummaryDtoToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function BuyerCheckoutProfileSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'firstName': value['firstName'],
|
|
72
|
+
'lastName': value['lastName'],
|
|
73
|
+
'companyName': value['companyName'],
|
|
74
|
+
'city': value['city'],
|
|
75
|
+
'countryCode': value['countryCode'],
|
|
76
|
+
'taxIdEnding': value['taxIdEnding'],
|
|
77
|
+
'lastUsedAt': ((value['lastUsedAt']).toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 BuyerLandingSessionOutput
|
|
16
|
+
*/
|
|
17
|
+
export interface BuyerLandingSessionOutput {
|
|
18
|
+
/**
|
|
19
|
+
* Bearer token of the buyer session for the landing that received it.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BuyerLandingSessionOutput
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
/**
|
|
25
|
+
* Email of the buyer.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BuyerLandingSessionOutput
|
|
28
|
+
*/
|
|
29
|
+
email: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the buyer proved the email in this session.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof BuyerLandingSessionOutput
|
|
34
|
+
*/
|
|
35
|
+
emailVerified: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* First name the buyer gave on their latest offer.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BuyerLandingSessionOutput
|
|
40
|
+
*/
|
|
41
|
+
firstName: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Last name the buyer gave on their latest offer.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BuyerLandingSessionOutput
|
|
46
|
+
*/
|
|
47
|
+
lastName: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Company name the buyer gave on their latest offer.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BuyerLandingSessionOutput
|
|
52
|
+
*/
|
|
53
|
+
companyName: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* Phone number the buyer proved with a code, or else gave on their latest offer, in E.164.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BuyerLandingSessionOutput
|
|
58
|
+
*/
|
|
59
|
+
phoneNumber: string | null;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the BuyerLandingSessionOutput interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfBuyerLandingSessionOutput(value: object): value is BuyerLandingSessionOutput;
|
|
65
|
+
export declare function BuyerLandingSessionOutputFromJSON(json: any): BuyerLandingSessionOutput;
|
|
66
|
+
export declare function BuyerLandingSessionOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLandingSessionOutput;
|
|
67
|
+
export declare function BuyerLandingSessionOutputToJSON(json: any): BuyerLandingSessionOutput;
|
|
68
|
+
export declare function BuyerLandingSessionOutputToJSONTyped(value?: BuyerLandingSessionOutput | null, ignoreDiscriminator?: boolean): any;
|