@randock/nameshift-api-client 0.0.89 → 0.0.90

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 (37) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/BuyersApi.d.ts +35 -1
  5. package/dist/apis/BuyersApi.js +160 -0
  6. package/dist/models/AccountSettingsInput.d.ts +3 -3
  7. package/dist/models/AccountSettingsInput.js +3 -3
  8. package/dist/models/IntersectionLeadDtoWithLeadDetailsDto.d.ts +2 -2
  9. package/dist/models/IntersectionLeadDtoWithListFieldsDto.d.ts +11 -2
  10. package/dist/models/IntersectionLeadDtoWithListFieldsDto.js +7 -0
  11. package/dist/models/LeadDomainDto.d.ts +43 -0
  12. package/dist/models/LeadDomainDto.js +54 -0
  13. package/dist/models/LeadDto.d.ts +84 -0
  14. package/dist/models/LeadDto.js +88 -0
  15. package/dist/models/LeadMessageDto.d.ts +2 -0
  16. package/dist/models/LeadMessageDto.js +2 -0
  17. package/dist/models/PutBuyerLeadOfferInput.d.ts +32 -0
  18. package/dist/models/PutBuyerLeadOfferInput.js +47 -0
  19. package/dist/models/UpdateDomainInput.d.ts +5 -5
  20. package/dist/models/UpdateDomainInput.js +5 -5
  21. package/dist/models/index.d.ts +3 -1
  22. package/dist/models/index.js +3 -1
  23. package/package.json +1 -1
  24. package/src/apis/BuyersApi.ts +150 -0
  25. package/src/apis/LeadsApi.ts +3 -0
  26. package/src/models/AccountSettingsInput.ts +9 -9
  27. package/src/models/IntersectionLeadDtoWithLeadDetailsDto.ts +2 -2
  28. package/src/models/IntersectionLeadDtoWithListFieldsDto.ts +19 -2
  29. package/src/models/LeadDomainDto.ts +79 -0
  30. package/src/models/LeadDto.ts +144 -0
  31. package/src/models/LeadMessageDto.ts +2 -0
  32. package/src/models/PutBuyerLeadOfferInput.ts +68 -0
  33. package/src/models/UpdateDomainInput.ts +13 -13
  34. package/src/models/index.ts +3 -1
  35. package/dist/models/MoneyInput.d.ts +0 -37
  36. package/dist/models/MoneyInput.js +0 -50
  37. package/src/models/MoneyInput.ts +0 -70
@@ -19,6 +19,12 @@ import {
19
19
  LeadMessageDataFromJSONTyped,
20
20
  LeadMessageDataToJSON,
21
21
  } from './LeadMessageData';
22
+ import type { LeadDomainDto } from './LeadDomainDto';
23
+ import {
24
+ LeadDomainDtoFromJSON,
25
+ LeadDomainDtoFromJSONTyped,
26
+ LeadDomainDtoToJSON,
27
+ } from './LeadDomainDto';
22
28
  import type { MoneyDto } from './MoneyDto';
23
29
  import {
24
30
  MoneyDtoFromJSON,
@@ -33,7 +39,7 @@ import {
33
39
  */
34
40
  export interface IntersectionLeadDtoWithListFieldsDto {
35
41
  /**
36
- * The current id
42
+ * The lead id
37
43
  * @type {string}
38
44
  * @memberof IntersectionLeadDtoWithListFieldsDto
39
45
  */
@@ -45,7 +51,7 @@ export interface IntersectionLeadDtoWithListFieldsDto {
45
51
  */
46
52
  status: IntersectionLeadDtoWithListFieldsDtoStatusEnum;
47
53
  /**
48
- *
54
+ * The lead last offer amount
49
55
  * @type {MoneyDto}
50
56
  * @memberof IntersectionLeadDtoWithListFieldsDto
51
57
  */
@@ -80,6 +86,12 @@ export interface IntersectionLeadDtoWithListFieldsDto {
80
86
  * @memberof IntersectionLeadDtoWithListFieldsDto
81
87
  */
82
88
  createdAt: Date;
89
+ /**
90
+ * Domain information
91
+ * @type {LeadDomainDto}
92
+ * @memberof IntersectionLeadDtoWithListFieldsDto
93
+ */
94
+ domain: LeadDomainDto;
83
95
  /**
84
96
  *
85
97
  * @type {string}
@@ -145,6 +157,8 @@ export type IntersectionLeadDtoWithListFieldsDtoLastMessageFromEnum = typeof Int
145
157
  */
146
158
  export const IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = {
147
159
  OFFER: 'offer',
160
+ OFFER_WITHDRAWN: 'offer_withdrawn',
161
+ OFFER_REJECTED: 'offer_rejected',
148
162
  MESSAGE: 'message'
149
163
  } as const;
150
164
  export type IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum = typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum[keyof typeof IntersectionLeadDtoWithListFieldsDtoLastMessageTypeEnum];
@@ -162,6 +176,7 @@ export function instanceOfIntersectionLeadDtoWithListFieldsDto(value: object): v
162
176
  if (!('lastMessageType' in value) || value['lastMessageType'] === undefined) return false;
163
177
  if (!('lastMessageData' in value) || value['lastMessageData'] === undefined) return false;
164
178
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
179
+ if (!('domain' in value) || value['domain'] === undefined) return false;
165
180
  if (!('domainName' in value) || value['domainName'] === undefined) return false;
166
181
  if (!('buyerInitials' in value) || value['buyerInitials'] === undefined) return false;
167
182
  if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined) return false;
@@ -187,6 +202,7 @@ export function IntersectionLeadDtoWithListFieldsDtoFromJSONTyped(json: any, ign
187
202
  'lastMessageType': json['lastMessageType'],
188
203
  'lastMessageData': LeadMessageDataFromJSON(json['lastMessageData']),
189
204
  'createdAt': (new Date(json['createdAt'])),
205
+ 'domain': LeadDomainDtoFromJSON(json['domain']),
190
206
  'domainName': json['domainName'],
191
207
  'buyerInitials': json['buyerInitials'],
192
208
  'lastMessageMessage': json['lastMessageMessage'],
@@ -208,6 +224,7 @@ export function IntersectionLeadDtoWithListFieldsDtoToJSON(value?: IntersectionL
208
224
  'lastMessageType': value['lastMessageType'],
209
225
  'lastMessageData': LeadMessageDataToJSON(value['lastMessageData']),
210
226
  'createdAt': ((value['createdAt']).toISOString()),
227
+ 'domain': LeadDomainDtoToJSON(value['domain']),
211
228
  'domainName': value['domainName'],
212
229
  'buyerInitials': value['buyerInitials'],
213
230
  'lastMessageMessage': value['lastMessageMessage'],
@@ -0,0 +1,79 @@
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 LeadDomainDto
20
+ */
21
+ export interface LeadDomainDto {
22
+ /**
23
+ * The domain id
24
+ * @type {string}
25
+ * @memberof LeadDomainDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * Domain name
30
+ * @type {string}
31
+ * @memberof LeadDomainDto
32
+ */
33
+ name: string;
34
+ /**
35
+ * Domain currency code
36
+ * @type {string}
37
+ * @memberof LeadDomainDto
38
+ */
39
+ currencyCode: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the LeadDomainDto interface.
44
+ */
45
+ export function instanceOfLeadDomainDto(value: object): value is LeadDomainDto {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function LeadDomainDtoFromJSON(json: any): LeadDomainDto {
53
+ return LeadDomainDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function LeadDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDomainDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'name': json['name'],
64
+ 'currencyCode': json['currencyCode'],
65
+ };
66
+ }
67
+
68
+ export function LeadDomainDtoToJSON(value?: LeadDomainDto | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'id': value['id'],
75
+ 'name': value['name'],
76
+ 'currencyCode': value['currencyCode'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,144 @@
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
+ import type { LeadDomainDto } from './LeadDomainDto';
17
+ import {
18
+ LeadDomainDtoFromJSON,
19
+ LeadDomainDtoFromJSONTyped,
20
+ LeadDomainDtoToJSON,
21
+ } from './LeadDomainDto';
22
+ import type { MoneyDto } from './MoneyDto';
23
+ import {
24
+ MoneyDtoFromJSON,
25
+ MoneyDtoFromJSONTyped,
26
+ MoneyDtoToJSON,
27
+ } from './MoneyDto';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface LeadDto
33
+ */
34
+ export interface LeadDto {
35
+ /**
36
+ * The lead id
37
+ * @type {string}
38
+ * @memberof LeadDto
39
+ */
40
+ id: string;
41
+ /**
42
+ * The current lead status
43
+ * @type {string}
44
+ * @memberof LeadDto
45
+ */
46
+ status: LeadDtoStatusEnum;
47
+ /**
48
+ * The lead last offer amount
49
+ * @type {MoneyDto}
50
+ * @memberof LeadDto
51
+ */
52
+ lastOffer: MoneyDto | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof LeadDto
57
+ */
58
+ lastOfferBy: LeadDtoLastOfferByEnum | null;
59
+ /**
60
+ * Created at date
61
+ * @type {Date}
62
+ * @memberof LeadDto
63
+ */
64
+ createdAt: Date;
65
+ /**
66
+ * Domain information
67
+ * @type {LeadDomainDto}
68
+ * @memberof LeadDto
69
+ */
70
+ domain: LeadDomainDto;
71
+ }
72
+
73
+
74
+ /**
75
+ * @export
76
+ */
77
+ export const LeadDtoStatusEnum = {
78
+ UNVERIFIED: 'unverified',
79
+ ACTIVE: 'active',
80
+ ACCEPTED: 'accepted',
81
+ FINISHED: 'finished',
82
+ DELETED: 'deleted',
83
+ ARCHIVED: 'archived'
84
+ } as const;
85
+ export type LeadDtoStatusEnum = typeof LeadDtoStatusEnum[keyof typeof LeadDtoStatusEnum];
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const LeadDtoLastOfferByEnum = {
91
+ BUYER: 'buyer',
92
+ SELLER: 'seller',
93
+ ADMIN: 'admin'
94
+ } as const;
95
+ export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
96
+
97
+
98
+ /**
99
+ * Check if a given object implements the LeadDto interface.
100
+ */
101
+ export function instanceOfLeadDto(value: object): value is LeadDto {
102
+ if (!('id' in value) || value['id'] === undefined) return false;
103
+ if (!('status' in value) || value['status'] === undefined) return false;
104
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined) return false;
105
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined) return false;
106
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
107
+ if (!('domain' in value) || value['domain'] === undefined) return false;
108
+ return true;
109
+ }
110
+
111
+ export function LeadDtoFromJSON(json: any): LeadDto {
112
+ return LeadDtoFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function LeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadDto {
116
+ if (json == null) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'id': json['id'],
122
+ 'status': json['status'],
123
+ 'lastOffer': MoneyDtoFromJSON(json['lastOffer']),
124
+ 'lastOfferBy': json['lastOfferBy'],
125
+ 'createdAt': (new Date(json['createdAt'])),
126
+ 'domain': LeadDomainDtoFromJSON(json['domain']),
127
+ };
128
+ }
129
+
130
+ export function LeadDtoToJSON(value?: LeadDto | null): any {
131
+ if (value == null) {
132
+ return value;
133
+ }
134
+ return {
135
+
136
+ 'id': value['id'],
137
+ 'status': value['status'],
138
+ 'lastOffer': MoneyDtoToJSON(value['lastOffer']),
139
+ 'lastOfferBy': value['lastOfferBy'],
140
+ 'createdAt': ((value['createdAt']).toISOString()),
141
+ 'domain': LeadDomainDtoToJSON(value['domain']),
142
+ };
143
+ }
144
+
@@ -88,6 +88,8 @@ export interface LeadMessageDto {
88
88
  */
89
89
  export const LeadMessageDtoTypeEnum = {
90
90
  OFFER: 'offer',
91
+ OFFER_WITHDRAWN: 'offer_withdrawn',
92
+ OFFER_REJECTED: 'offer_rejected',
91
93
  MESSAGE: 'message'
92
94
  } as const;
93
95
  export type LeadMessageDtoTypeEnum = typeof LeadMessageDtoTypeEnum[keyof typeof LeadMessageDtoTypeEnum];
@@ -0,0 +1,68 @@
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
+ import type { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface PutBuyerLeadOfferInput
27
+ */
28
+ export interface PutBuyerLeadOfferInput {
29
+ /**
30
+ *
31
+ * @type {MoneyDto}
32
+ * @memberof PutBuyerLeadOfferInput
33
+ */
34
+ offer: MoneyDto | null;
35
+ }
36
+
37
+ /**
38
+ * Check if a given object implements the PutBuyerLeadOfferInput interface.
39
+ */
40
+ export function instanceOfPutBuyerLeadOfferInput(value: object): value is PutBuyerLeadOfferInput {
41
+ if (!('offer' in value) || value['offer'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PutBuyerLeadOfferInputFromJSON(json: any): PutBuyerLeadOfferInput {
46
+ return PutBuyerLeadOfferInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PutBuyerLeadOfferInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutBuyerLeadOfferInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'offer': MoneyDtoFromJSON(json['offer']),
56
+ };
57
+ }
58
+
59
+ export function PutBuyerLeadOfferInputToJSON(value?: PutBuyerLeadOfferInput | null): any {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+
65
+ 'offer': MoneyDtoToJSON(value['offer']),
66
+ };
67
+ }
68
+
@@ -13,12 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { MoneyInput } from './MoneyInput';
16
+ import type { MoneyDto } from './MoneyDto';
17
17
  import {
18
- MoneyInputFromJSON,
19
- MoneyInputFromJSONTyped,
20
- MoneyInputToJSON,
21
- } from './MoneyInput';
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
22
 
23
23
  /**
24
24
  *
@@ -28,16 +28,16 @@ import {
28
28
  export interface UpdateDomainInput {
29
29
  /**
30
30
  *
31
- * @type {MoneyInput}
31
+ * @type {MoneyDto}
32
32
  * @memberof UpdateDomainInput
33
33
  */
34
- bin?: MoneyInput | null;
34
+ bin?: MoneyDto | null;
35
35
  /**
36
36
  *
37
- * @type {MoneyInput}
37
+ * @type {MoneyDto}
38
38
  * @memberof UpdateDomainInput
39
39
  */
40
- minOffer?: MoneyInput | null;
40
+ minOffer?: MoneyDto | null;
41
41
  /**
42
42
  *
43
43
  * @type {string}
@@ -63,8 +63,8 @@ export function UpdateDomainInputFromJSONTyped(json: any, ignoreDiscriminator: b
63
63
  }
64
64
  return {
65
65
 
66
- 'bin': json['bin'] == null ? undefined : MoneyInputFromJSON(json['bin']),
67
- 'minOffer': json['minOffer'] == null ? undefined : MoneyInputFromJSON(json['minOffer']),
66
+ 'bin': json['bin'] == null ? undefined : MoneyDtoFromJSON(json['bin']),
67
+ 'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
68
68
  'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
69
69
  };
70
70
  }
@@ -75,8 +75,8 @@ export function UpdateDomainInputToJSON(value?: UpdateDomainInput | null): any {
75
75
  }
76
76
  return {
77
77
 
78
- 'bin': MoneyInputToJSON(value['bin']),
79
- 'minOffer': MoneyInputToJSON(value['minOffer']),
78
+ 'bin': MoneyDtoToJSON(value['bin']),
79
+ 'minOffer': MoneyDtoToJSON(value['minOffer']),
80
80
  'currencyCode': value['currencyCode'],
81
81
  };
82
82
  }
@@ -55,6 +55,8 @@ export * from './IntersectionDomainDtoWithHijackerDtoWithAccountDto';
55
55
  export * from './IntersectionDomainSalesInformationDtoWithDomainStatsDto';
56
56
  export * from './IntersectionLeadDtoWithLeadDetailsDto';
57
57
  export * from './IntersectionLeadDtoWithListFieldsDto';
58
+ export * from './LeadDomainDto';
59
+ export * from './LeadDto';
58
60
  export * from './LeadMessageData';
59
61
  export * from './LeadMessageDto';
60
62
  export * from './LeadStatusDto';
@@ -66,7 +68,6 @@ export * from './ListLeadMessagesDto';
66
68
  export * from './LoginDto';
67
69
  export * from './LoginInput';
68
70
  export * from './MoneyDto';
69
- export * from './MoneyInput';
70
71
  export * from './NotFoundException';
71
72
  export * from './ObjectId';
72
73
  export * from './OrderDto';
@@ -79,6 +80,7 @@ export * from './PaginateResponseLinks';
79
80
  export * from './PaginateResponseMeta';
80
81
  export * from './PublicLeadBuyerDto';
81
82
  export * from './PublicLeadDto';
83
+ export * from './PutBuyerLeadOfferInput';
82
84
  export * from './PutLeadOfferInput';
83
85
  export * from './RegisterAccountInput';
84
86
  export * from './RelatedSellerDomain';
@@ -1,37 +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
- /**
13
- *
14
- * @export
15
- * @interface MoneyInput
16
- */
17
- export interface MoneyInput {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof MoneyInput
22
- */
23
- amount: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof MoneyInput
28
- */
29
- currencyCode: string;
30
- }
31
- /**
32
- * Check if a given object implements the MoneyInput interface.
33
- */
34
- export declare function instanceOfMoneyInput(value: object): value is MoneyInput;
35
- export declare function MoneyInputFromJSON(json: any): MoneyInput;
36
- export declare function MoneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyInput;
37
- export declare function MoneyInputToJSON(value?: MoneyInput | null): any;
@@ -1,50 +0,0 @@
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.instanceOfMoneyInput = instanceOfMoneyInput;
17
- exports.MoneyInputFromJSON = MoneyInputFromJSON;
18
- exports.MoneyInputFromJSONTyped = MoneyInputFromJSONTyped;
19
- exports.MoneyInputToJSON = MoneyInputToJSON;
20
- /**
21
- * Check if a given object implements the MoneyInput interface.
22
- */
23
- function instanceOfMoneyInput(value) {
24
- if (!('amount' in value) || value['amount'] === undefined)
25
- return false;
26
- if (!('currencyCode' in value) || value['currencyCode'] === undefined)
27
- return false;
28
- return true;
29
- }
30
- function MoneyInputFromJSON(json) {
31
- return MoneyInputFromJSONTyped(json, false);
32
- }
33
- function MoneyInputFromJSONTyped(json, ignoreDiscriminator) {
34
- if (json == null) {
35
- return json;
36
- }
37
- return {
38
- 'amount': json['amount'],
39
- 'currencyCode': json['currencyCode'],
40
- };
41
- }
42
- function MoneyInputToJSON(value) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'amount': value['amount'],
48
- 'currencyCode': value['currencyCode'],
49
- };
50
- }
@@ -1,70 +0,0 @@
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 MoneyInput
20
- */
21
- export interface MoneyInput {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof MoneyInput
26
- */
27
- amount: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof MoneyInput
32
- */
33
- currencyCode: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the MoneyInput interface.
38
- */
39
- export function instanceOfMoneyInput(value: object): value is MoneyInput {
40
- if (!('amount' in value) || value['amount'] === undefined) return false;
41
- if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function MoneyInputFromJSON(json: any): MoneyInput {
46
- return MoneyInputFromJSONTyped(json, false);
47
- }
48
-
49
- export function MoneyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MoneyInput {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'amount': json['amount'],
56
- 'currencyCode': json['currencyCode'],
57
- };
58
- }
59
-
60
- export function MoneyInputToJSON(value?: MoneyInput | null): any {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
-
66
- 'amount': value['amount'],
67
- 'currencyCode': value['currencyCode'],
68
- };
69
- }
70
-