@randock/nameshift-api-client 0.0.64 → 0.0.65

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.
Files changed (50) hide show
  1. package/.openapi-generator/FILES +7 -2
  2. package/README.md +3 -3
  3. package/dist/apis/DomainsPublicApi.d.ts +1 -13
  4. package/dist/apis/DomainsPublicApi.js +0 -49
  5. package/dist/apis/LeadsApi.d.ts +2 -2
  6. package/dist/apis/LeadsApi.js +3 -3
  7. package/dist/apis/LeadsPublicApi.d.ts +13 -1
  8. package/dist/apis/LeadsPublicApi.js +47 -0
  9. package/dist/apis/OrdersPublicApi.d.ts +52 -0
  10. package/dist/apis/OrdersPublicApi.js +217 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/models/CreateLeadInput.d.ts +6 -6
  14. package/dist/models/CreateLeadInput.js +4 -4
  15. package/dist/models/{BuyDomainInput.d.ts → CreateOrderInput.d.ts} +30 -24
  16. package/dist/models/{BuyDomainInput.js → CreateOrderInput.js} +19 -15
  17. package/dist/models/NotFoundException.d.ts +43 -0
  18. package/dist/models/NotFoundException.js +55 -0
  19. package/dist/models/OrderDto.d.ts +118 -0
  20. package/dist/models/OrderDto.js +107 -0
  21. package/dist/models/PublicLeadDto.d.ts +6 -0
  22. package/dist/models/PublicLeadDto.js +4 -0
  23. package/dist/models/PutLeadOfferInput.d.ts +32 -0
  24. package/dist/models/{PutLeadInput.js → PutLeadOfferInput.js} +11 -11
  25. package/dist/models/UpdateLeadInput.d.ts +77 -0
  26. package/dist/models/UpdateLeadInput.js +80 -0
  27. package/dist/models/UpdateOrderInput.d.ts +85 -0
  28. package/dist/models/UpdateOrderInput.js +83 -0
  29. package/dist/models/index.d.ts +6 -2
  30. package/dist/models/index.js +6 -2
  31. package/package.json +1 -1
  32. package/src/apis/AdminApi.ts +3 -0
  33. package/src/apis/BuyersApi.ts +3 -0
  34. package/src/apis/DomainsApi.ts +3 -0
  35. package/src/apis/DomainsPublicApi.ts +3 -54
  36. package/src/apis/LeadsApi.ts +8 -8
  37. package/src/apis/LeadsPublicApi.ts +53 -0
  38. package/src/apis/OrdersPublicApi.ts +172 -0
  39. package/src/apis/UsersPublicApi.ts +3 -0
  40. package/src/apis/index.ts +1 -0
  41. package/src/models/CreateLeadInput.ts +9 -9
  42. package/src/models/{BuyDomainInput.ts → CreateOrderInput.ts} +37 -28
  43. package/src/models/NotFoundException.ts +79 -0
  44. package/src/models/OrderDto.ts +196 -0
  45. package/src/models/PublicLeadDto.ts +9 -0
  46. package/src/models/{PutLeadInput.ts → PutLeadOfferInput.ts} +9 -9
  47. package/src/models/UpdateLeadInput.ts +134 -0
  48. package/src/models/UpdateOrderInput.ts +142 -0
  49. package/src/models/index.ts +6 -2
  50. package/dist/models/PutLeadInput.d.ts +0 -32
@@ -12,86 +12,92 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface BuyDomainInput
15
+ * @interface CreateOrderInput
16
16
  */
17
- export interface BuyDomainInput {
17
+ export interface CreateOrderInput {
18
18
  /**
19
19
  *
20
20
  * @type {string}
21
- * @memberof BuyDomainInput
21
+ * @memberof CreateOrderInput
22
22
  */
23
23
  companyName: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
- * @memberof BuyDomainInput
27
+ * @memberof CreateOrderInput
28
28
  */
29
29
  companyVatNumber: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
- * @memberof BuyDomainInput
33
+ * @memberof CreateOrderInput
34
34
  */
35
35
  leadId: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
- * @memberof BuyDomainInput
39
+ * @memberof CreateOrderInput
40
+ */
41
+ locale: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateOrderInput
46
+ */
47
+ domainName: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateOrderInput
40
52
  */
41
53
  firstname: string;
42
54
  /**
43
55
  *
44
56
  * @type {string}
45
- * @memberof BuyDomainInput
57
+ * @memberof CreateOrderInput
46
58
  */
47
59
  lastname: string;
48
60
  /**
49
61
  *
50
62
  * @type {string}
51
- * @memberof BuyDomainInput
63
+ * @memberof CreateOrderInput
52
64
  */
53
65
  email: string;
54
66
  /**
55
67
  *
56
68
  * @type {string}
57
- * @memberof BuyDomainInput
69
+ * @memberof CreateOrderInput
58
70
  */
59
71
  phone: string;
60
72
  /**
61
73
  *
62
74
  * @type {string}
63
- * @memberof BuyDomainInput
75
+ * @memberof CreateOrderInput
64
76
  */
65
77
  country: string;
66
78
  /**
67
79
  *
68
80
  * @type {string}
69
- * @memberof BuyDomainInput
81
+ * @memberof CreateOrderInput
70
82
  */
71
83
  city: string;
72
84
  /**
73
85
  *
74
86
  * @type {string}
75
- * @memberof BuyDomainInput
87
+ * @memberof CreateOrderInput
76
88
  */
77
89
  postalCode: string;
78
90
  /**
79
91
  *
80
92
  * @type {string}
81
- * @memberof BuyDomainInput
93
+ * @memberof CreateOrderInput
82
94
  */
83
95
  address: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof BuyDomainInput
88
- */
89
- locale: string;
90
96
  }
91
97
  /**
92
- * Check if a given object implements the BuyDomainInput interface.
98
+ * Check if a given object implements the CreateOrderInput interface.
93
99
  */
94
- export declare function instanceOfBuyDomainInput(value: object): value is BuyDomainInput;
95
- export declare function BuyDomainInputFromJSON(json: any): BuyDomainInput;
96
- export declare function BuyDomainInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyDomainInput;
97
- export declare function BuyDomainInputToJSON(value?: BuyDomainInput | null): any;
100
+ export declare function instanceOfCreateOrderInput(value: object): value is CreateOrderInput;
101
+ export declare function CreateOrderInputFromJSON(json: any): CreateOrderInput;
102
+ export declare function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateOrderInput;
103
+ export declare function CreateOrderInputToJSON(value?: CreateOrderInput | null): any;
@@ -13,17 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.BuyDomainInputToJSON = exports.BuyDomainInputFromJSONTyped = exports.BuyDomainInputFromJSON = exports.instanceOfBuyDomainInput = void 0;
16
+ exports.CreateOrderInputToJSON = exports.CreateOrderInputFromJSONTyped = exports.CreateOrderInputFromJSON = exports.instanceOfCreateOrderInput = void 0;
17
17
  /**
18
- * Check if a given object implements the BuyDomainInput interface.
18
+ * Check if a given object implements the CreateOrderInput interface.
19
19
  */
20
- function instanceOfBuyDomainInput(value) {
20
+ function instanceOfCreateOrderInput(value) {
21
21
  if (!('companyName' in value) || value['companyName'] === undefined)
22
22
  return false;
23
23
  if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
24
24
  return false;
25
25
  if (!('leadId' in value) || value['leadId'] === undefined)
26
26
  return false;
27
+ if (!('locale' in value) || value['locale'] === undefined)
28
+ return false;
29
+ if (!('domainName' in value) || value['domainName'] === undefined)
30
+ return false;
27
31
  if (!('firstname' in value) || value['firstname'] === undefined)
28
32
  return false;
29
33
  if (!('lastname' in value) || value['lastname'] === undefined)
@@ -40,16 +44,14 @@ function instanceOfBuyDomainInput(value) {
40
44
  return false;
41
45
  if (!('address' in value) || value['address'] === undefined)
42
46
  return false;
43
- if (!('locale' in value) || value['locale'] === undefined)
44
- return false;
45
47
  return true;
46
48
  }
47
- exports.instanceOfBuyDomainInput = instanceOfBuyDomainInput;
48
- function BuyDomainInputFromJSON(json) {
49
- return BuyDomainInputFromJSONTyped(json, false);
49
+ exports.instanceOfCreateOrderInput = instanceOfCreateOrderInput;
50
+ function CreateOrderInputFromJSON(json) {
51
+ return CreateOrderInputFromJSONTyped(json, false);
50
52
  }
51
- exports.BuyDomainInputFromJSON = BuyDomainInputFromJSON;
52
- function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
53
+ exports.CreateOrderInputFromJSON = CreateOrderInputFromJSON;
54
+ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
53
55
  if (json == null) {
54
56
  return json;
55
57
  }
@@ -57,6 +59,8 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'companyName': json['companyName'],
58
60
  'companyVatNumber': json['companyVatNumber'],
59
61
  'leadId': json['leadId'],
62
+ 'locale': json['locale'],
63
+ 'domainName': json['domainName'],
60
64
  'firstname': json['firstname'],
61
65
  'lastname': json['lastname'],
62
66
  'email': json['email'],
@@ -65,11 +69,10 @@ function BuyDomainInputFromJSONTyped(json, ignoreDiscriminator) {
65
69
  'city': json['city'],
66
70
  'postalCode': json['postalCode'],
67
71
  'address': json['address'],
68
- 'locale': json['locale'],
69
72
  };
70
73
  }
71
- exports.BuyDomainInputFromJSONTyped = BuyDomainInputFromJSONTyped;
72
- function BuyDomainInputToJSON(value) {
74
+ exports.CreateOrderInputFromJSONTyped = CreateOrderInputFromJSONTyped;
75
+ function CreateOrderInputToJSON(value) {
73
76
  if (value == null) {
74
77
  return value;
75
78
  }
@@ -77,6 +80,8 @@ function BuyDomainInputToJSON(value) {
77
80
  'companyName': value['companyName'],
78
81
  'companyVatNumber': value['companyVatNumber'],
79
82
  'leadId': value['leadId'],
83
+ 'locale': value['locale'],
84
+ 'domainName': value['domainName'],
80
85
  'firstname': value['firstname'],
81
86
  'lastname': value['lastname'],
82
87
  'email': value['email'],
@@ -85,7 +90,6 @@ function BuyDomainInputToJSON(value) {
85
90
  'city': value['city'],
86
91
  'postalCode': value['postalCode'],
87
92
  'address': value['address'],
88
- 'locale': value['locale'],
89
93
  };
90
94
  }
91
- exports.BuyDomainInputToJSON = BuyDomainInputToJSON;
95
+ exports.CreateOrderInputToJSON = CreateOrderInputToJSON;
@@ -0,0 +1,43 @@
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 NotFoundException
16
+ */
17
+ export interface NotFoundException {
18
+ /**
19
+ * Exception name
20
+ * @type {string}
21
+ * @memberof NotFoundException
22
+ */
23
+ name: string;
24
+ /**
25
+ * http status code
26
+ * @type {number}
27
+ * @memberof NotFoundException
28
+ */
29
+ statusCode: number;
30
+ /**
31
+ * error message
32
+ * @type {string}
33
+ * @memberof NotFoundException
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the NotFoundException interface.
39
+ */
40
+ export declare function instanceOfNotFoundException(value: object): value is NotFoundException;
41
+ export declare function NotFoundExceptionFromJSON(json: any): NotFoundException;
42
+ export declare function NotFoundExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotFoundException;
43
+ export declare function NotFoundExceptionToJSON(value?: NotFoundException | null): 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.NotFoundExceptionToJSON = exports.NotFoundExceptionFromJSONTyped = exports.NotFoundExceptionFromJSON = exports.instanceOfNotFoundException = void 0;
17
+ /**
18
+ * Check if a given object implements the NotFoundException interface.
19
+ */
20
+ function instanceOfNotFoundException(value) {
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ exports.instanceOfNotFoundException = instanceOfNotFoundException;
30
+ function NotFoundExceptionFromJSON(json) {
31
+ return NotFoundExceptionFromJSONTyped(json, false);
32
+ }
33
+ exports.NotFoundExceptionFromJSON = NotFoundExceptionFromJSON;
34
+ function NotFoundExceptionFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'statusCode': json['statusCode'],
41
+ 'message': json['message'],
42
+ };
43
+ }
44
+ exports.NotFoundExceptionFromJSONTyped = NotFoundExceptionFromJSONTyped;
45
+ function NotFoundExceptionToJSON(value) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'statusCode': value['statusCode'],
52
+ 'message': value['message'],
53
+ };
54
+ }
55
+ exports.NotFoundExceptionToJSON = NotFoundExceptionToJSON;
@@ -0,0 +1,118 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface OrderDto
17
+ */
18
+ export interface OrderDto {
19
+ /**
20
+ * The uuid for this order.
21
+ * @type {string}
22
+ * @memberof OrderDto
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof OrderDto
29
+ */
30
+ status: OrderDtoStatusEnum;
31
+ /**
32
+ *
33
+ * @type {MoneyDto}
34
+ * @memberof OrderDto
35
+ */
36
+ basePrice: MoneyDto;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof OrderDto
41
+ */
42
+ firstname: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof OrderDto
47
+ */
48
+ lastname: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof OrderDto
53
+ */
54
+ email: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof OrderDto
59
+ */
60
+ phone: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof OrderDto
65
+ */
66
+ country: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof OrderDto
71
+ */
72
+ city: string;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof OrderDto
77
+ */
78
+ postalCode: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof OrderDto
83
+ */
84
+ address: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof OrderDto
89
+ */
90
+ locale: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof OrderDto
95
+ */
96
+ companyName: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof OrderDto
101
+ */
102
+ companyVatNumber: string | null;
103
+ }
104
+ /**
105
+ * @export
106
+ */
107
+ export declare const OrderDtoStatusEnum: {
108
+ readonly OPEN: "open";
109
+ readonly PAID: "paid";
110
+ };
111
+ export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
112
+ /**
113
+ * Check if a given object implements the OrderDto interface.
114
+ */
115
+ export declare function instanceOfOrderDto(value: object): value is OrderDto;
116
+ export declare function OrderDtoFromJSON(json: any): OrderDto;
117
+ export declare function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderDto;
118
+ export declare function OrderDtoToJSON(value?: OrderDto | null): any;
@@ -0,0 +1,107 @@
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.OrderDtoToJSON = exports.OrderDtoFromJSONTyped = exports.OrderDtoFromJSON = exports.instanceOfOrderDto = exports.OrderDtoStatusEnum = void 0;
17
+ var MoneyDto_1 = require("./MoneyDto");
18
+ /**
19
+ * @export
20
+ */
21
+ exports.OrderDtoStatusEnum = {
22
+ OPEN: 'open',
23
+ PAID: 'paid'
24
+ };
25
+ /**
26
+ * Check if a given object implements the OrderDto interface.
27
+ */
28
+ function instanceOfOrderDto(value) {
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('status' in value) || value['status'] === undefined)
32
+ return false;
33
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
34
+ return false;
35
+ if (!('firstname' in value) || value['firstname'] === undefined)
36
+ return false;
37
+ if (!('lastname' in value) || value['lastname'] === undefined)
38
+ return false;
39
+ if (!('email' in value) || value['email'] === undefined)
40
+ return false;
41
+ if (!('phone' in value) || value['phone'] === undefined)
42
+ return false;
43
+ if (!('country' in value) || value['country'] === undefined)
44
+ return false;
45
+ if (!('city' in value) || value['city'] === undefined)
46
+ return false;
47
+ if (!('postalCode' in value) || value['postalCode'] === undefined)
48
+ return false;
49
+ if (!('address' in value) || value['address'] === undefined)
50
+ return false;
51
+ if (!('locale' in value) || value['locale'] === undefined)
52
+ return false;
53
+ if (!('companyName' in value) || value['companyName'] === undefined)
54
+ return false;
55
+ if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ exports.instanceOfOrderDto = instanceOfOrderDto;
60
+ function OrderDtoFromJSON(json) {
61
+ return OrderDtoFromJSONTyped(json, false);
62
+ }
63
+ exports.OrderDtoFromJSON = OrderDtoFromJSON;
64
+ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'],
70
+ 'status': json['status'],
71
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
72
+ 'firstname': json['firstname'],
73
+ 'lastname': json['lastname'],
74
+ 'email': json['email'],
75
+ 'phone': json['phone'],
76
+ 'country': json['country'],
77
+ 'city': json['city'],
78
+ 'postalCode': json['postalCode'],
79
+ 'address': json['address'],
80
+ 'locale': json['locale'],
81
+ 'companyName': json['companyName'],
82
+ 'companyVatNumber': json['companyVatNumber'],
83
+ };
84
+ }
85
+ exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
86
+ function OrderDtoToJSON(value) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'id': value['id'],
92
+ 'status': value['status'],
93
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
94
+ 'firstname': value['firstname'],
95
+ 'lastname': value['lastname'],
96
+ 'email': value['email'],
97
+ 'phone': value['phone'],
98
+ 'country': value['country'],
99
+ 'city': value['city'],
100
+ 'postalCode': value['postalCode'],
101
+ 'address': value['address'],
102
+ 'locale': value['locale'],
103
+ 'companyName': value['companyName'],
104
+ 'companyVatNumber': value['companyVatNumber'],
105
+ };
106
+ }
107
+ exports.OrderDtoToJSON = OrderDtoToJSON;
@@ -41,6 +41,12 @@ export interface PublicLeadDto {
41
41
  * @memberof PublicLeadDto
42
42
  */
43
43
  buyer: PublicLeadBuyerDto;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PublicLeadDto
48
+ */
49
+ domainName: string;
44
50
  }
45
51
  /**
46
52
  * @export
@@ -39,6 +39,8 @@ function instanceOfPublicLeadDto(value) {
39
39
  return false;
40
40
  if (!('buyer' in value) || value['buyer'] === undefined)
41
41
  return false;
42
+ if (!('domainName' in value) || value['domainName'] === undefined)
43
+ return false;
42
44
  return true;
43
45
  }
44
46
  exports.instanceOfPublicLeadDto = instanceOfPublicLeadDto;
@@ -55,6 +57,7 @@ function PublicLeadDtoFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'status': json['status'],
56
58
  'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferFromJSON)(json['lastOffer']),
57
59
  'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoFromJSON)(json['buyer']),
60
+ 'domainName': json['domainName'],
58
61
  };
59
62
  }
60
63
  exports.PublicLeadDtoFromJSONTyped = PublicLeadDtoFromJSONTyped;
@@ -67,6 +70,7 @@ function PublicLeadDtoToJSON(value) {
67
70
  'status': value['status'],
68
71
  'lastOffer': (0, PublicLeadDtoLastOffer_1.PublicLeadDtoLastOfferToJSON)(value['lastOffer']),
69
72
  'buyer': (0, PublicLeadBuyerDto_1.PublicLeadBuyerDtoToJSON)(value['buyer']),
73
+ 'domainName': value['domainName'],
70
74
  };
71
75
  }
72
76
  exports.PublicLeadDtoToJSON = PublicLeadDtoToJSON;
@@ -0,0 +1,32 @@
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 { MoneyDto } from './MoneyDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PutLeadOfferInput
17
+ */
18
+ export interface PutLeadOfferInput {
19
+ /**
20
+ *
21
+ * @type {MoneyDto}
22
+ * @memberof PutLeadOfferInput
23
+ */
24
+ offer: MoneyDto | null;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PutLeadOfferInput interface.
28
+ */
29
+ export declare function instanceOfPutLeadOfferInput(value: object): value is PutLeadOfferInput;
30
+ export declare function PutLeadOfferInputFromJSON(json: any): PutLeadOfferInput;
31
+ export declare function PutLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLeadOfferInput;
32
+ export declare function PutLeadOfferInputToJSON(value?: PutLeadOfferInput | null): any;
@@ -13,22 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PutLeadInputToJSON = exports.PutLeadInputFromJSONTyped = exports.PutLeadInputFromJSON = exports.instanceOfPutLeadInput = void 0;
16
+ exports.PutLeadOfferInputToJSON = exports.PutLeadOfferInputFromJSONTyped = exports.PutLeadOfferInputFromJSON = exports.instanceOfPutLeadOfferInput = void 0;
17
17
  var MoneyDto_1 = require("./MoneyDto");
18
18
  /**
19
- * Check if a given object implements the PutLeadInput interface.
19
+ * Check if a given object implements the PutLeadOfferInput interface.
20
20
  */
21
- function instanceOfPutLeadInput(value) {
21
+ function instanceOfPutLeadOfferInput(value) {
22
22
  if (!('offer' in value) || value['offer'] === undefined)
23
23
  return false;
24
24
  return true;
25
25
  }
26
- exports.instanceOfPutLeadInput = instanceOfPutLeadInput;
27
- function PutLeadInputFromJSON(json) {
28
- return PutLeadInputFromJSONTyped(json, false);
26
+ exports.instanceOfPutLeadOfferInput = instanceOfPutLeadOfferInput;
27
+ function PutLeadOfferInputFromJSON(json) {
28
+ return PutLeadOfferInputFromJSONTyped(json, false);
29
29
  }
30
- exports.PutLeadInputFromJSON = PutLeadInputFromJSON;
31
- function PutLeadInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ exports.PutLeadOfferInputFromJSON = PutLeadOfferInputFromJSON;
31
+ function PutLeadOfferInputFromJSONTyped(json, ignoreDiscriminator) {
32
32
  if (json == null) {
33
33
  return json;
34
34
  }
@@ -36,8 +36,8 @@ function PutLeadInputFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'offer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['offer']),
37
37
  };
38
38
  }
39
- exports.PutLeadInputFromJSONTyped = PutLeadInputFromJSONTyped;
40
- function PutLeadInputToJSON(value) {
39
+ exports.PutLeadOfferInputFromJSONTyped = PutLeadOfferInputFromJSONTyped;
40
+ function PutLeadOfferInputToJSON(value) {
41
41
  if (value == null) {
42
42
  return value;
43
43
  }
@@ -45,4 +45,4 @@ function PutLeadInputToJSON(value) {
45
45
  'offer': (0, MoneyDto_1.MoneyDtoToJSON)(value['offer']),
46
46
  };
47
47
  }
48
- exports.PutLeadInputToJSON = PutLeadInputToJSON;
48
+ exports.PutLeadOfferInputToJSON = PutLeadOfferInputToJSON;