@randock/nameshift-api-client 0.0.132 → 0.0.134

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.
@@ -38,6 +38,7 @@ src/models/BillingInformationDto.ts
38
38
  src/models/BuyerDomainTransferAuthCodeDto.ts
39
39
  src/models/BuyerDomainTransferListItemDomainDto.ts
40
40
  src/models/BuyerDomainTransferListItemDto.ts
41
+ src/models/BuyerDto.ts
41
42
  src/models/BuyerLeadListItemDomainDto.ts
42
43
  src/models/BuyerLeadListItemDto.ts
43
44
  src/models/BuyerSecurityUserDto.ts
@@ -83,7 +84,7 @@ src/models/IntersectionDomainDtoWithAccountDto.ts
83
84
  src/models/IntersectionDomainDtoWithDomainUrlDto.ts
84
85
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
85
86
  src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts
86
- src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
87
+ src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
87
88
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
88
89
  src/models/InvoiceDomainDto.ts
89
90
  src/models/InvoiceDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.132
1
+ ## @randock/nameshift-api-client@0.0.134
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.132 --save
39
+ npm install @randock/nameshift-api-client@0.0.134 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 17017fd36ac55ddc5e45ac2c3a1cba2ad5957aa416e05214fcd824c1091a228b47225ae7fb0094c766cecbdb3013f6ad
47
+ 4d566c3c82683a4e5f66af26b92e2edc075f27a870d3248109a3f93af75ea6d9206a170c420c45178bd60ae7aaadaf01
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -69,11 +69,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
69
69
  /**
70
70
  *
71
71
  */
72
- getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>>;
72
+ getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto>>;
73
73
  /**
74
74
  *
75
75
  */
76
- getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto>;
76
+ getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto>;
77
77
  /**
78
78
  *
79
79
  */
@@ -271,7 +271,7 @@ var LeadsApi = /** @class */ (function (_super) {
271
271
  }, initOverrides)];
272
272
  case 3:
273
273
  response = _a.sent();
274
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoFromJSON)(jsonValue); })];
274
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON)(jsonValue); })];
275
275
  }
276
276
  });
277
277
  });
@@ -13,6 +13,9 @@ import * as runtime from '../runtime';
13
13
  export interface StripePublicApiPostStripeWebhookRequest {
14
14
  stripeSignature: string;
15
15
  }
16
+ export interface StripePublicApiPostStripeWebhookConnectedAccountsRequest {
17
+ stripeSignature: string;
18
+ }
16
19
  /**
17
20
  *
18
21
  */
@@ -25,4 +28,12 @@ export declare class StripePublicApi extends runtime.BaseAPI {
25
28
  *
26
29
  */
27
30
  postStripeWebhook(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
31
+ /**
32
+ *
33
+ */
34
+ postStripeWebhookConnectedAccountsRaw(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
35
+ /**
36
+ *
37
+ */
38
+ postStripeWebhookConnectedAccounts(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
28
39
  }
@@ -119,6 +119,51 @@ var StripePublicApi = /** @class */ (function (_super) {
119
119
  });
120
120
  });
121
121
  };
122
+ /**
123
+ *
124
+ */
125
+ StripePublicApi.prototype.postStripeWebhookConnectedAccountsRaw = function (requestParameters, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var queryParameters, headerParameters, response;
128
+ return __generator(this, function (_a) {
129
+ switch (_a.label) {
130
+ case 0:
131
+ if (requestParameters['stripeSignature'] == null) {
132
+ throw new runtime.RequiredError('stripeSignature', 'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhookConnectedAccounts().');
133
+ }
134
+ queryParameters = {};
135
+ headerParameters = {};
136
+ if (requestParameters['stripeSignature'] != null) {
137
+ headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
138
+ }
139
+ return [4 /*yield*/, this.request({
140
+ path: "/stripe/webhook/connected-accounts",
141
+ method: 'POST',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ }, initOverrides)];
145
+ case 1:
146
+ response = _a.sent();
147
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
148
+ }
149
+ });
150
+ });
151
+ };
152
+ /**
153
+ *
154
+ */
155
+ StripePublicApi.prototype.postStripeWebhookConnectedAccounts = function (requestParameters, initOverrides) {
156
+ return __awaiter(this, void 0, void 0, function () {
157
+ return __generator(this, function (_a) {
158
+ switch (_a.label) {
159
+ case 0: return [4 /*yield*/, this.postStripeWebhookConnectedAccountsRaw(requestParameters, initOverrides)];
160
+ case 1:
161
+ _a.sent();
162
+ return [2 /*return*/];
163
+ }
164
+ });
165
+ });
166
+ };
122
167
  return StripePublicApi;
123
168
  }(runtime.BaseAPI));
124
169
  exports.StripePublicApi = StripePublicApi;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface BuyerDto
16
+ */
17
+ export interface BuyerDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof BuyerDto
22
+ */
23
+ initials: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BuyerDto
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the BuyerDto interface.
33
+ */
34
+ export declare function instanceOfBuyerDto(value: object): value is BuyerDto;
35
+ export declare function BuyerDtoFromJSON(json: any): BuyerDto;
36
+ export declare function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDto;
37
+ export declare function BuyerDtoToJSON(json: any): BuyerDto;
38
+ export declare function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfBuyerDto = instanceOfBuyerDto;
17
+ exports.BuyerDtoFromJSON = BuyerDtoFromJSON;
18
+ exports.BuyerDtoFromJSONTyped = BuyerDtoFromJSONTyped;
19
+ exports.BuyerDtoToJSON = BuyerDtoToJSON;
20
+ exports.BuyerDtoToJSONTyped = BuyerDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerDto interface.
23
+ */
24
+ function instanceOfBuyerDto(value) {
25
+ if (!('initials' in value) || value['initials'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function BuyerDtoFromJSON(json) {
32
+ return BuyerDtoFromJSONTyped(json, false);
33
+ }
34
+ function BuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'initials': json['initials'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function BuyerDtoToJSON(json) {
44
+ return BuyerDtoToJSONTyped(json, false);
45
+ }
46
+ function BuyerDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'initials': value['initials'],
53
+ 'name': value['name'],
54
+ };
55
+ }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
13
+ import type { MoneyDto } from './MoneyDto';
14
+ import type { BuyerDto } from './BuyerDto';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
19
+ */
20
+ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
21
+ /**
22
+ * The lead id
23
+ * @type {string}
24
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
25
+ */
26
+ id: string;
27
+ /**
28
+ * The current lead status
29
+ * @type {string}
30
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
31
+ */
32
+ status: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum;
33
+ /**
34
+ * The lead last offer amount
35
+ * @type {MoneyDto}
36
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
37
+ */
38
+ lastOffer: MoneyDto | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
43
+ */
44
+ lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum | null;
45
+ /**
46
+ *
47
+ * @type {IntersectionDomainDtoWithAccountDto}
48
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
49
+ */
50
+ domain: IntersectionDomainDtoWithAccountDto;
51
+ /**
52
+ *
53
+ * @type {BuyerDto}
54
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
55
+ */
56
+ buyer: BuyerDto;
57
+ /**
58
+ * Created at date
59
+ * @type {Date}
60
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
61
+ */
62
+ createdAt: Date;
63
+ /**
64
+ * Number of buyer unread messages
65
+ * @type {number}
66
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
67
+ */
68
+ unreadBuyerMessagesNumber: number;
69
+ /**
70
+ * Number of seller unread messages
71
+ * @type {number}
72
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
73
+ */
74
+ unreadSellerMessagesNumber: number;
75
+ /**
76
+ * Lead order payment URL
77
+ * @type {string}
78
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
79
+ */
80
+ orderPaymentUrl: string | null;
81
+ }
82
+ /**
83
+ * @export
84
+ */
85
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum: {
86
+ readonly UNVERIFIED: "unverified";
87
+ readonly ACTIVE: "active";
88
+ readonly ACCEPTED: "accepted";
89
+ readonly FINISHED: "finished";
90
+ readonly DELETED: "deleted";
91
+ readonly ARCHIVED: "archived";
92
+ };
93
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum];
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum: {
98
+ readonly BUYER: "buyer";
99
+ readonly SELLER: "seller";
100
+ readonly ADMIN: "admin";
101
+ };
102
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum];
103
+ /**
104
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
105
+ */
106
+ export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
107
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
108
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
109
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
110
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto | null, ignoreDiscriminator?: boolean): any;
@@ -13,18 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = void 0;
17
- exports.instanceOfIntersectionLeadDtoWithLeadDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDto;
18
- exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoFromJSON;
19
- exports.IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped;
20
- exports.IntersectionLeadDtoWithLeadDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoToJSON;
21
- exports.IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped;
16
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = void 0;
17
+ exports.instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
18
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON;
19
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped;
20
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON;
21
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped;
22
22
  var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
23
23
  var MoneyDto_1 = require("./MoneyDto");
24
+ var BuyerDto_1 = require("./BuyerDto");
24
25
  /**
25
26
  * @export
26
27
  */
27
- exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
28
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = {
28
29
  UNVERIFIED: 'unverified',
29
30
  ACTIVE: 'active',
30
31
  ACCEPTED: 'accepted',
@@ -35,15 +36,15 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
35
36
  /**
36
37
  * @export
37
38
  */
38
- exports.IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
39
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = {
39
40
  BUYER: 'buyer',
40
41
  SELLER: 'seller',
41
42
  ADMIN: 'admin'
42
43
  };
43
44
  /**
44
- * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
45
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
45
46
  */
46
- function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
47
+ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto(value) {
47
48
  if (!('id' in value) || value['id'] === undefined)
48
49
  return false;
49
50
  if (!('status' in value) || value['status'] === undefined)
@@ -54,6 +55,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
54
55
  return false;
55
56
  if (!('domain' in value) || value['domain'] === undefined)
56
57
  return false;
58
+ if (!('buyer' in value) || value['buyer'] === undefined)
59
+ return false;
57
60
  if (!('createdAt' in value) || value['createdAt'] === undefined)
58
61
  return false;
59
62
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
@@ -64,10 +67,10 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value) {
64
67
  return false;
65
68
  return true;
66
69
  }
67
- function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json) {
68
- return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
70
+ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON(json) {
71
+ return IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(json, false);
69
72
  }
70
- function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
73
+ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
71
74
  if (json == null) {
72
75
  return json;
73
76
  }
@@ -77,16 +80,17 @@ function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, ignoreDiscrimi
77
80
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
78
81
  'lastOfferBy': json['lastOfferBy'],
79
82
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
83
+ 'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
80
84
  'createdAt': (new Date(json['createdAt'])),
81
85
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
82
86
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
83
87
  'orderPaymentUrl': json['orderPaymentUrl'],
84
88
  };
85
89
  }
86
- function IntersectionLeadDtoWithLeadDetailsDtoToJSON(json) {
87
- return IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(json, false);
90
+ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON(json) {
91
+ return IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(json, false);
88
92
  }
89
- function IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
93
+ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
90
94
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
91
95
  if (value == null) {
92
96
  return value;
@@ -97,6 +101,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(value, ignoreDiscrimin
97
101
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
98
102
  'lastOfferBy': value['lastOfferBy'],
99
103
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
104
+ 'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
100
105
  'createdAt': ((value['createdAt']).toISOString()),
101
106
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
102
107
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
@@ -17,6 +17,7 @@ export * from './BillingInformationDto';
17
17
  export * from './BuyerDomainTransferAuthCodeDto';
18
18
  export * from './BuyerDomainTransferListItemDomainDto';
19
19
  export * from './BuyerDomainTransferListItemDto';
20
+ export * from './BuyerDto';
20
21
  export * from './BuyerLeadListItemDomainDto';
21
22
  export * from './BuyerLeadListItemDto';
22
23
  export * from './BuyerSecurityUserDto';
@@ -62,7 +63,7 @@ export * from './IntersectionDomainDtoWithAccountDto';
62
63
  export * from './IntersectionDomainDtoWithDomainUrlDto';
63
64
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
64
65
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
65
- export * from './IntersectionLeadDtoWithLeadDetailsDto';
66
+ export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
66
67
  export * from './IntersectionLeadDtoWithListFieldsDto';
67
68
  export * from './InvoiceDomainDto';
68
69
  export * from './InvoiceDto';
@@ -35,6 +35,7 @@ __exportStar(require("./BillingInformationDto"), exports);
35
35
  __exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
36
36
  __exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
37
37
  __exportStar(require("./BuyerDomainTransferListItemDto"), exports);
38
+ __exportStar(require("./BuyerDto"), exports);
38
39
  __exportStar(require("./BuyerLeadListItemDomainDto"), exports);
39
40
  __exportStar(require("./BuyerLeadListItemDto"), exports);
40
41
  __exportStar(require("./BuyerSecurityUserDto"), exports);
@@ -80,7 +81,7 @@ __exportStar(require("./IntersectionDomainDtoWithAccountDto"), exports);
80
81
  __exportStar(require("./IntersectionDomainDtoWithDomainUrlDto"), exports);
81
82
  __exportStar(require("./IntersectionDomainDtoWithHijackerDtoWithAccountDto"), exports);
82
83
  __exportStar(require("./IntersectionDomainSalesInformationDtoWithDomainStatsDto"), exports);
83
- __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDto"), exports);
84
+ __exportStar(require("./IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto"), exports);
84
85
  __exportStar(require("./IntersectionLeadDtoWithListFieldsDto"), exports);
85
86
  __exportStar(require("./InvoiceDomainDto"), exports);
86
87
  __exportStar(require("./InvoiceDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.132",
3
+ "version": "0.0.134",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -18,7 +18,7 @@ import type {
18
18
  BadRequestException,
19
19
  BatchReadSellerLeadMessageInput,
20
20
  CreateLeadMessageInput,
21
- IntersectionLeadDtoWithLeadDetailsDto,
21
+ IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto,
22
22
  List200Response,
23
23
  ListLeadMessagesDto,
24
24
  ObjectId,
@@ -33,8 +33,8 @@ import {
33
33
  BatchReadSellerLeadMessageInputToJSON,
34
34
  CreateLeadMessageInputFromJSON,
35
35
  CreateLeadMessageInputToJSON,
36
- IntersectionLeadDtoWithLeadDetailsDtoFromJSON,
37
- IntersectionLeadDtoWithLeadDetailsDtoToJSON,
36
+ IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON,
37
+ IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON,
38
38
  List200ResponseFromJSON,
39
39
  List200ResponseToJSON,
40
40
  ListLeadMessagesDtoFromJSON,
@@ -232,7 +232,7 @@ export class LeadsApi extends runtime.BaseAPI {
232
232
  /**
233
233
  *
234
234
  */
235
- async getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDto>> {
235
+ async getLeadRaw(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto>> {
236
236
  if (requestParameters['leadId'] == null) {
237
237
  throw new runtime.RequiredError(
238
238
  'leadId',
@@ -259,13 +259,13 @@ export class LeadsApi extends runtime.BaseAPI {
259
259
  query: queryParameters,
260
260
  }, initOverrides);
261
261
 
262
- return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionLeadDtoWithLeadDetailsDtoFromJSON(jsonValue));
262
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON(jsonValue));
263
263
  }
264
264
 
265
265
  /**
266
266
  *
267
267
  */
268
- async getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDto> {
268
+ async getLead(requestParameters: LeadsApiGetLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto> {
269
269
  const response = await this.getLeadRaw(requestParameters, initOverrides);
270
270
  return await response.value();
271
271
  }
@@ -29,6 +29,10 @@ export interface StripePublicApiPostStripeWebhookRequest {
29
29
  stripeSignature: string;
30
30
  }
31
31
 
32
+ export interface StripePublicApiPostStripeWebhookConnectedAccountsRequest {
33
+ stripeSignature: string;
34
+ }
35
+
32
36
  /**
33
37
  *
34
38
  */
@@ -70,4 +74,40 @@ export class StripePublicApi extends runtime.BaseAPI {
70
74
  await this.postStripeWebhookRaw(requestParameters, initOverrides);
71
75
  }
72
76
 
77
+ /**
78
+ *
79
+ */
80
+ async postStripeWebhookConnectedAccountsRaw(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
81
+ if (requestParameters['stripeSignature'] == null) {
82
+ throw new runtime.RequiredError(
83
+ 'stripeSignature',
84
+ 'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhookConnectedAccounts().'
85
+ );
86
+ }
87
+
88
+ const queryParameters: any = {};
89
+
90
+ const headerParameters: runtime.HTTPHeaders = {};
91
+
92
+ if (requestParameters['stripeSignature'] != null) {
93
+ headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
94
+ }
95
+
96
+ const response = await this.request({
97
+ path: `/stripe/webhook/connected-accounts`,
98
+ method: 'POST',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ }, initOverrides);
102
+
103
+ return new runtime.VoidApiResponse(response);
104
+ }
105
+
106
+ /**
107
+ *
108
+ */
109
+ async postStripeWebhookConnectedAccounts(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
110
+ await this.postStripeWebhookConnectedAccountsRaw(requestParameters, initOverrides);
111
+ }
112
+
73
113
  }
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift API
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BuyerDto
20
+ */
21
+ export interface BuyerDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof BuyerDto
26
+ */
27
+ initials: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof BuyerDto
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BuyerDto interface.
38
+ */
39
+ export function instanceOfBuyerDto(value: object): value is BuyerDto {
40
+ if (!('initials' in value) || value['initials'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BuyerDtoFromJSON(json: any): BuyerDto {
46
+ return BuyerDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'initials': json['initials'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function BuyerDtoToJSON(json: any): BuyerDto {
61
+ return BuyerDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'initials': value['initials'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -27,65 +27,78 @@ import {
27
27
  MoneyDtoToJSON,
28
28
  MoneyDtoToJSONTyped,
29
29
  } from './MoneyDto';
30
+ import type { BuyerDto } from './BuyerDto';
31
+ import {
32
+ BuyerDtoFromJSON,
33
+ BuyerDtoFromJSONTyped,
34
+ BuyerDtoToJSON,
35
+ BuyerDtoToJSONTyped,
36
+ } from './BuyerDto';
30
37
 
31
38
  /**
32
39
  *
33
40
  * @export
34
- * @interface IntersectionLeadDtoWithLeadDetailsDto
41
+ * @interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
35
42
  */
36
- export interface IntersectionLeadDtoWithLeadDetailsDto {
43
+ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
37
44
  /**
38
45
  * The lead id
39
46
  * @type {string}
40
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
47
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
41
48
  */
42
49
  id: string;
43
50
  /**
44
51
  * The current lead status
45
52
  * @type {string}
46
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
53
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
47
54
  */
48
- status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
55
+ status: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum;
49
56
  /**
50
57
  * The lead last offer amount
51
58
  * @type {MoneyDto}
52
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
59
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
53
60
  */
54
61
  lastOffer: MoneyDto | null;
55
62
  /**
56
63
  *
57
64
  * @type {string}
58
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
65
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
59
66
  */
60
- lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum | null;
67
+ lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum | null;
61
68
  /**
62
69
  *
63
70
  * @type {IntersectionDomainDtoWithAccountDto}
64
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
71
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
65
72
  */
66
73
  domain: IntersectionDomainDtoWithAccountDto;
74
+ /**
75
+ *
76
+ * @type {BuyerDto}
77
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
78
+ */
79
+ buyer: BuyerDto;
67
80
  /**
68
81
  * Created at date
69
82
  * @type {Date}
70
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
83
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
71
84
  */
72
85
  createdAt: Date;
73
86
  /**
74
87
  * Number of buyer unread messages
75
88
  * @type {number}
76
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
89
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
77
90
  */
78
91
  unreadBuyerMessagesNumber: number;
79
92
  /**
80
93
  * Number of seller unread messages
81
94
  * @type {number}
82
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
95
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
83
96
  */
84
97
  unreadSellerMessagesNumber: number;
85
98
  /**
86
99
  * Lead order payment URL
87
100
  * @type {string}
88
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
101
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
89
102
  */
90
103
  orderPaymentUrl: string | null;
91
104
  }
@@ -94,7 +107,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDto {
94
107
  /**
95
108
  * @export
96
109
  */
97
- export const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
110
+ export const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = {
98
111
  UNVERIFIED: 'unverified',
99
112
  ACTIVE: 'active',
100
113
  ACCEPTED: 'accepted',
@@ -102,28 +115,29 @@ export const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = {
102
115
  DELETED: 'deleted',
103
116
  ARCHIVED: 'archived'
104
117
  } as const;
105
- export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
118
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum];
106
119
 
107
120
  /**
108
121
  * @export
109
122
  */
110
- export const IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = {
123
+ export const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = {
111
124
  BUYER: 'buyer',
112
125
  SELLER: 'seller',
113
126
  ADMIN: 'admin'
114
127
  } as const;
115
- export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum];
128
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum];
116
129
 
117
130
 
118
131
  /**
119
- * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
132
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
120
133
  */
121
- export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDto {
134
+ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
122
135
  if (!('id' in value) || value['id'] === undefined) return false;
123
136
  if (!('status' in value) || value['status'] === undefined) return false;
124
137
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
125
138
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
126
139
  if (!('domain' in value) || value['domain'] === undefined) return false;
140
+ if (!('buyer' in value) || value['buyer'] === undefined) return false;
127
141
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
128
142
  if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined) return false;
129
143
  if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined) return false;
@@ -131,11 +145,11 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object):
131
145
  return true;
132
146
  }
133
147
 
134
- export function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto {
135
- return IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json, false);
148
+ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
149
+ return IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(json, false);
136
150
  }
137
151
 
138
- export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto {
152
+ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
139
153
  if (json == null) {
140
154
  return json;
141
155
  }
@@ -146,6 +160,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
146
160
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
147
161
  'lastOfferBy': json['lastOfferBy'],
148
162
  'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
163
+ 'buyer': BuyerDtoFromJSON(json['buyer']),
149
164
  'createdAt': (new Date(json['createdAt'])),
150
165
  'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
151
166
  'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
@@ -153,11 +168,11 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
153
168
  };
154
169
  }
155
170
 
156
- export function IntersectionLeadDtoWithLeadDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto {
157
- return IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(json, false);
171
+ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
172
+ return IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(json, false);
158
173
  }
159
174
 
160
- export function IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDto | null, ignoreDiscriminator: boolean = false): any {
175
+ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto | null, ignoreDiscriminator: boolean = false): any {
161
176
  if (value == null) {
162
177
  return value;
163
178
  }
@@ -169,6 +184,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ig
169
184
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
170
185
  'lastOfferBy': value['lastOfferBy'],
171
186
  'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
187
+ 'buyer': BuyerDtoToJSON(value['buyer']),
172
188
  'createdAt': ((value['createdAt']).toISOString()),
173
189
  'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
174
190
  'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
@@ -19,6 +19,7 @@ export * from './BillingInformationDto';
19
19
  export * from './BuyerDomainTransferAuthCodeDto';
20
20
  export * from './BuyerDomainTransferListItemDomainDto';
21
21
  export * from './BuyerDomainTransferListItemDto';
22
+ export * from './BuyerDto';
22
23
  export * from './BuyerLeadListItemDomainDto';
23
24
  export * from './BuyerLeadListItemDto';
24
25
  export * from './BuyerSecurityUserDto';
@@ -64,7 +65,7 @@ export * from './IntersectionDomainDtoWithAccountDto';
64
65
  export * from './IntersectionDomainDtoWithDomainUrlDto';
65
66
  export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
66
67
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
67
- export * from './IntersectionLeadDtoWithLeadDetailsDto';
68
+ export * from './IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto';
68
69
  export * from './IntersectionLeadDtoWithListFieldsDto';
69
70
  export * from './InvoiceDomainDto';
70
71
  export * from './InvoiceDto';
@@ -1,103 +0,0 @@
1
- /**
2
- * Nameshift
3
- * Nameshift API
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
13
- import type { MoneyDto } from './MoneyDto';
14
- /**
15
- *
16
- * @export
17
- * @interface IntersectionLeadDtoWithLeadDetailsDto
18
- */
19
- export interface IntersectionLeadDtoWithLeadDetailsDto {
20
- /**
21
- * The lead id
22
- * @type {string}
23
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
24
- */
25
- id: string;
26
- /**
27
- * The current lead status
28
- * @type {string}
29
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
30
- */
31
- status: IntersectionLeadDtoWithLeadDetailsDtoStatusEnum;
32
- /**
33
- * The lead last offer amount
34
- * @type {MoneyDto}
35
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
36
- */
37
- lastOffer: MoneyDto | null;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
42
- */
43
- lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum | null;
44
- /**
45
- *
46
- * @type {IntersectionDomainDtoWithAccountDto}
47
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
48
- */
49
- domain: IntersectionDomainDtoWithAccountDto;
50
- /**
51
- * Created at date
52
- * @type {Date}
53
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
54
- */
55
- createdAt: Date;
56
- /**
57
- * Number of buyer unread messages
58
- * @type {number}
59
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
60
- */
61
- unreadBuyerMessagesNumber: number;
62
- /**
63
- * Number of seller unread messages
64
- * @type {number}
65
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
66
- */
67
- unreadSellerMessagesNumber: number;
68
- /**
69
- * Lead order payment URL
70
- * @type {string}
71
- * @memberof IntersectionLeadDtoWithLeadDetailsDto
72
- */
73
- orderPaymentUrl: string | null;
74
- }
75
- /**
76
- * @export
77
- */
78
- export declare const IntersectionLeadDtoWithLeadDetailsDtoStatusEnum: {
79
- readonly UNVERIFIED: "unverified";
80
- readonly ACTIVE: "active";
81
- readonly ACCEPTED: "accepted";
82
- readonly FINISHED: "finished";
83
- readonly DELETED: "deleted";
84
- readonly ARCHIVED: "archived";
85
- };
86
- export type IntersectionLeadDtoWithLeadDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoStatusEnum];
87
- /**
88
- * @export
89
- */
90
- export declare const IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum: {
91
- readonly BUYER: "buyer";
92
- readonly SELLER: "seller";
93
- readonly ADMIN: "admin";
94
- };
95
- export type IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoLastOfferByEnum];
96
- /**
97
- * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDto interface.
98
- */
99
- export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDto;
100
- export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto;
101
- export declare function IntersectionLeadDtoWithLeadDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDto;
102
- export declare function IntersectionLeadDtoWithLeadDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDto;
103
- export declare function IntersectionLeadDtoWithLeadDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDto | null, ignoreDiscriminator?: boolean): any;