@randock/nameshift-api-client 0.0.280 → 0.0.282

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.280
1
+ ## @randock/nameshift-api-client@0.0.282
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.280 --save
39
+ npm install @randock/nameshift-api-client@0.0.282 --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
- 916364c60c2f041b1fe10cda996946d0d4e8ab793c23104407dc258b0913aba7fc5c3894acf0631c0368aaa391ac15f9
47
+ ec9d210210caa6ba8f59c17894bf90dcf69145a95e8869bdbeecdd523d2a6d3c870ad4e115197248ab839c0046ceab30
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -25,6 +25,9 @@ export interface AdminApiChangeSubscriptionStatusRequest {
25
25
  subscriptionId: string;
26
26
  changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
27
27
  }
28
+ export interface AdminApiCreateNegativeInvoiceRequest {
29
+ invoiceId: string;
30
+ }
28
31
  export interface AdminApiDownloadInvoiceRequest {
29
32
  invoiceId: string;
30
33
  }
@@ -152,6 +155,14 @@ export declare class AdminApi extends runtime.BaseAPI {
152
155
  *
153
156
  */
154
157
  changeSubscriptionStatus(requestParameters: AdminApiChangeSubscriptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
158
+ /**
159
+ *
160
+ */
161
+ createNegativeInvoiceRaw(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>>;
162
+ /**
163
+ *
164
+ */
165
+ createNegativeInvoice(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
155
166
  /**
156
167
  *
157
168
  */
@@ -250,6 +250,59 @@ var AdminApi = /** @class */ (function (_super) {
250
250
  });
251
251
  });
252
252
  };
253
+ /**
254
+ *
255
+ */
256
+ AdminApi.prototype.createNegativeInvoiceRaw = function (requestParameters, initOverrides) {
257
+ return __awaiter(this, void 0, void 0, function () {
258
+ var queryParameters, headerParameters, token, tokenString, response;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0:
262
+ if (requestParameters['invoiceId'] == null) {
263
+ throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling createNegativeInvoice().');
264
+ }
265
+ queryParameters = {};
266
+ headerParameters = {};
267
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
268
+ token = this.configuration.accessToken;
269
+ return [4 /*yield*/, token("bearer", [])];
270
+ case 1:
271
+ tokenString = _a.sent();
272
+ if (tokenString) {
273
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
274
+ }
275
+ _a.label = 2;
276
+ case 2: return [4 /*yield*/, this.request({
277
+ path: "/admin/invoices/{invoiceId}/negative".replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
278
+ method: 'POST',
279
+ headers: headerParameters,
280
+ query: queryParameters,
281
+ }, initOverrides)];
282
+ case 3:
283
+ response = _a.sent();
284
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ObjectIdFromJSON)(jsonValue); })];
285
+ }
286
+ });
287
+ });
288
+ };
289
+ /**
290
+ *
291
+ */
292
+ AdminApi.prototype.createNegativeInvoice = function (requestParameters, initOverrides) {
293
+ return __awaiter(this, void 0, void 0, function () {
294
+ var response;
295
+ return __generator(this, function (_a) {
296
+ switch (_a.label) {
297
+ case 0: return [4 /*yield*/, this.createNegativeInvoiceRaw(requestParameters, initOverrides)];
298
+ case 1:
299
+ response = _a.sent();
300
+ return [4 /*yield*/, response.value()];
301
+ case 2: return [2 /*return*/, _a.sent()];
302
+ }
303
+ });
304
+ });
305
+ };
253
306
  /**
254
307
  *
255
308
  */
@@ -48,6 +48,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
48
48
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
49
49
  */
50
50
  domain: IntersectionDomainDtoWithAccountDto;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
55
+ */
56
+ manualType: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum | null;
51
57
  /**
52
58
  *
53
59
  * @type {BuyerDto}
@@ -118,6 +124,16 @@ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLas
118
124
  readonly ADMIN: "admin";
119
125
  };
120
126
  export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum];
127
+ /**
128
+ * @export
129
+ */
130
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum: {
131
+ readonly BUY_NOW: "buy_now";
132
+ readonly OFFER: "offer";
133
+ readonly LEASE_TO_OWN: "lease_to_own";
134
+ readonly RENT: "rent";
135
+ };
136
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum];
121
137
  /**
122
138
  * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
123
139
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = void 0;
16
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoStatusEnum = void 0;
17
17
  exports.instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto;
18
18
  exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON;
19
19
  exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped;
@@ -41,6 +41,15 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum
41
41
  AI: 'ai',
42
42
  ADMIN: 'admin'
43
43
  };
44
+ /**
45
+ * @export
46
+ */
47
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum = {
48
+ BUY_NOW: 'buy_now',
49
+ OFFER: 'offer',
50
+ LEASE_TO_OWN: 'lease_to_own',
51
+ RENT: 'rent'
52
+ };
44
53
  /**
45
54
  * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
46
55
  */
@@ -55,6 +64,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto(valu
55
64
  return false;
56
65
  if (!('domain' in value) || value['domain'] === undefined)
57
66
  return false;
67
+ if (!('manualType' in value) || value['manualType'] === undefined)
68
+ return false;
58
69
  if (!('buyer' in value) || value['buyer'] === undefined)
59
70
  return false;
60
71
  if (!('archived' in value) || value['archived'] === undefined)
@@ -86,6 +97,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSONTyped(j
86
97
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
87
98
  'lastOfferBy': json['lastOfferBy'],
88
99
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
100
+ 'manualType': json['manualType'],
89
101
  'buyer': (0, BuyerDto_1.BuyerDtoFromJSON)(json['buyer']),
90
102
  'archived': json['archived'],
91
103
  'createdAt': (new Date(json['createdAt'])),
@@ -110,6 +122,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTyped(val
110
122
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
111
123
  'lastOfferBy': value['lastOfferBy'],
112
124
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
125
+ 'manualType': value['manualType'],
113
126
  'buyer': (0, BuyerDto_1.BuyerDtoToJSON)(value['buyer']),
114
127
  'archived': value['archived'],
115
128
  'createdAt': ((value['createdAt']).toISOString()),
@@ -66,6 +66,18 @@ export interface InvoiceDto {
66
66
  * @memberof InvoiceDto
67
67
  */
68
68
  sellerAccount: InvoiceSellerAccountDto;
69
+ /**
70
+ *
71
+ * @type {object}
72
+ * @memberof InvoiceDto
73
+ */
74
+ parent: object | null;
75
+ /**
76
+ *
77
+ * @type {boolean}
78
+ * @memberof InvoiceDto
79
+ */
80
+ hasChildren: boolean;
69
81
  }
70
82
  /**
71
83
  * @export
@@ -58,6 +58,10 @@ function instanceOfInvoiceDto(value) {
58
58
  return false;
59
59
  if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
60
60
  return false;
61
+ if (!('parent' in value) || value['parent'] === undefined)
62
+ return false;
63
+ if (!('hasChildren' in value) || value['hasChildren'] === undefined)
64
+ return false;
61
65
  return true;
62
66
  }
63
67
  function InvoiceDtoFromJSON(json) {
@@ -76,6 +80,8 @@ function InvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
76
80
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
77
81
  'target': json['target'],
78
82
  'sellerAccount': (0, InvoiceSellerAccountDto_1.InvoiceSellerAccountDtoFromJSON)(json['sellerAccount']),
83
+ 'parent': json['parent'],
84
+ 'hasChildren': json['hasChildren'],
79
85
  };
80
86
  }
81
87
  function InvoiceDtoToJSON(json) {
@@ -95,5 +101,7 @@ function InvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
95
101
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
96
102
  'target': value['target'],
97
103
  'sellerAccount': (0, InvoiceSellerAccountDto_1.InvoiceSellerAccountDtoToJSON)(value['sellerAccount']),
104
+ 'parent': value['parent'],
105
+ 'hasChildren': value['hasChildren'],
98
106
  };
99
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.280",
3
+ "version": "0.0.282",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -35,6 +35,7 @@ import type {
35
35
  ListBankAccounts200Response,
36
36
  ListDomains200Response,
37
37
  NotFoundException,
38
+ ObjectId,
38
39
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
39
40
  SubscriptionDetailsDto,
40
41
  ThrottlerException,
@@ -81,6 +82,8 @@ import {
81
82
  ListDomains200ResponseToJSON,
82
83
  NotFoundExceptionFromJSON,
83
84
  NotFoundExceptionToJSON,
85
+ ObjectIdFromJSON,
86
+ ObjectIdToJSON,
84
87
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInputFromJSON,
85
88
  SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
86
89
  SubscriptionDetailsDtoFromJSON,
@@ -108,6 +111,10 @@ export interface AdminApiChangeSubscriptionStatusRequest {
108
111
  changeSubscriptionStatusInput: ChangeSubscriptionStatusInput;
109
112
  }
110
113
 
114
+ export interface AdminApiCreateNegativeInvoiceRequest {
115
+ invoiceId: string;
116
+ }
117
+
111
118
  export interface AdminApiDownloadInvoiceRequest {
112
119
  invoiceId: string;
113
120
  }
@@ -385,6 +392,47 @@ export class AdminApi extends runtime.BaseAPI {
385
392
  await this.changeSubscriptionStatusRaw(requestParameters, initOverrides);
386
393
  }
387
394
 
395
+ /**
396
+ *
397
+ */
398
+ async createNegativeInvoiceRaw(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ObjectId>> {
399
+ if (requestParameters['invoiceId'] == null) {
400
+ throw new runtime.RequiredError(
401
+ 'invoiceId',
402
+ 'Required parameter "invoiceId" was null or undefined when calling createNegativeInvoice().'
403
+ );
404
+ }
405
+
406
+ const queryParameters: any = {};
407
+
408
+ const headerParameters: runtime.HTTPHeaders = {};
409
+
410
+ if (this.configuration && this.configuration.accessToken) {
411
+ const token = this.configuration.accessToken;
412
+ const tokenString = await token("bearer", []);
413
+
414
+ if (tokenString) {
415
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
416
+ }
417
+ }
418
+ const response = await this.request({
419
+ path: `/admin/invoices/{invoiceId}/negative`.replace(`{${"invoiceId"}}`, encodeURIComponent(String(requestParameters['invoiceId']))),
420
+ method: 'POST',
421
+ headers: headerParameters,
422
+ query: queryParameters,
423
+ }, initOverrides);
424
+
425
+ return new runtime.JSONApiResponse(response, (jsonValue) => ObjectIdFromJSON(jsonValue));
426
+ }
427
+
428
+ /**
429
+ *
430
+ */
431
+ async createNegativeInvoice(requestParameters: AdminApiCreateNegativeInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId> {
432
+ const response = await this.createNegativeInvoiceRaw(requestParameters, initOverrides);
433
+ return await response.value();
434
+ }
435
+
388
436
  /**
389
437
  *
390
438
  */
@@ -71,6 +71,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto {
71
71
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
72
72
  */
73
73
  domain: IntersectionDomainDtoWithAccountDto;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto
78
+ */
79
+ manualType: IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum | null;
74
80
  /**
75
81
  *
76
82
  * @type {BuyerDto}
@@ -145,6 +151,17 @@ export const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferBy
145
151
  } as const;
146
152
  export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoLastOfferByEnum];
147
153
 
154
+ /**
155
+ * @export
156
+ */
157
+ export const IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum = {
158
+ BUY_NOW: 'buy_now',
159
+ OFFER: 'offer',
160
+ LEASE_TO_OWN: 'lease_to_own',
161
+ RENT: 'rent'
162
+ } as const;
163
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoManualTypeEnum];
164
+
148
165
 
149
166
  /**
150
167
  * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto interface.
@@ -155,6 +172,7 @@ export function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsD
155
172
  if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
156
173
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
157
174
  if (!('domain' in value) || value['domain'] === undefined) return false;
175
+ if (!('manualType' in value) || value['manualType'] === undefined) return false;
158
176
  if (!('buyer' in value) || value['buyer'] === undefined) return false;
159
177
  if (!('archived' in value) || value['archived'] === undefined) return false;
160
178
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
@@ -181,6 +199,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoFromJSON
181
199
  'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
182
200
  'lastOfferBy': json['lastOfferBy'],
183
201
  'domain': IntersectionDomainDtoWithAccountDtoFromJSON(json['domain']),
202
+ 'manualType': json['manualType'],
184
203
  'buyer': BuyerDtoFromJSON(json['buyer']),
185
204
  'archived': json['archived'],
186
205
  'createdAt': (new Date(json['createdAt'])),
@@ -208,6 +227,7 @@ export function IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDtoToJSONTy
208
227
  'lastOffer': MoneyDtoToJSON(value['lastOffer']),
209
228
  'lastOfferBy': value['lastOfferBy'],
210
229
  'domain': IntersectionDomainDtoWithAccountDtoToJSON(value['domain']),
230
+ 'manualType': value['manualType'],
211
231
  'buyer': BuyerDtoToJSON(value['buyer']),
212
232
  'archived': value['archived'],
213
233
  'createdAt': ((value['createdAt']).toISOString()),
@@ -89,6 +89,18 @@ export interface InvoiceDto {
89
89
  * @memberof InvoiceDto
90
90
  */
91
91
  sellerAccount: InvoiceSellerAccountDto;
92
+ /**
93
+ *
94
+ * @type {object}
95
+ * @memberof InvoiceDto
96
+ */
97
+ parent: object | null;
98
+ /**
99
+ *
100
+ * @type {boolean}
101
+ * @memberof InvoiceDto
102
+ */
103
+ hasChildren: boolean;
92
104
  }
93
105
 
94
106
 
@@ -125,6 +137,8 @@ export function instanceOfInvoiceDto(value: object): value is InvoiceDto {
125
137
  if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
126
138
  if (!('target' in value) || value['target'] === undefined) return false;
127
139
  if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
140
+ if (!('parent' in value) || value['parent'] === undefined) return false;
141
+ if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
128
142
  return true;
129
143
  }
130
144
 
@@ -146,6 +160,8 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
146
160
  'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
147
161
  'target': json['target'],
148
162
  'sellerAccount': InvoiceSellerAccountDtoFromJSON(json['sellerAccount']),
163
+ 'parent': json['parent'],
164
+ 'hasChildren': json['hasChildren'],
149
165
  };
150
166
  }
151
167
 
@@ -168,6 +184,8 @@ export function InvoiceDtoToJSONTyped(value?: InvoiceDto | null, ignoreDiscrimin
168
184
  'totalPrice': MoneyDtoToJSON(value['totalPrice']),
169
185
  'target': value['target'],
170
186
  'sellerAccount': InvoiceSellerAccountDtoToJSON(value['sellerAccount']),
187
+ 'parent': value['parent'],
188
+ 'hasChildren': value['hasChildren'],
171
189
  };
172
190
  }
173
191