@randock/nameshift-api-client 0.0.97 → 0.0.99

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 (51) hide show
  1. package/.openapi-generator/FILES +4 -3
  2. package/README.md +3 -3
  3. package/dist/apis/OrdersPublicApi.d.ts +1 -12
  4. package/dist/apis/OrdersPublicApi.js +1 -45
  5. package/dist/apis/index.d.ts +0 -1
  6. package/dist/apis/index.js +0 -1
  7. package/dist/models/AccountDto.d.ts +3 -8
  8. package/dist/models/AccountDto.js +4 -7
  9. package/dist/models/AccountMetricsDto.d.ts +49 -0
  10. package/dist/models/AccountMetricsDto.js +58 -0
  11. package/dist/models/CreateOrderInput.d.ts +34 -3
  12. package/dist/models/CreateOrderInput.js +16 -11
  13. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +3 -8
  14. package/dist/models/IntersectionAccountDtoWithSettingsDto.js +4 -7
  15. package/dist/models/OrderCompanyInfoDto.d.ts +38 -0
  16. package/dist/models/OrderCompanyInfoDto.js +51 -0
  17. package/dist/models/OrderCompanyTaxIdDto.d.ts +43 -0
  18. package/dist/models/OrderCompanyTaxIdDto.js +54 -0
  19. package/dist/models/OrderDto.d.ts +6 -4
  20. package/dist/models/OrderDto.js +8 -6
  21. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -9
  22. package/dist/models/OrderListItemDtoBuyerInformation.js +4 -7
  23. package/dist/models/OrderTransactionDto.d.ts +50 -0
  24. package/dist/models/OrderTransactionDto.js +61 -0
  25. package/dist/models/UpdateOrderInput.d.ts +34 -3
  26. package/dist/models/UpdateOrderInput.js +16 -11
  27. package/dist/models/index.d.ts +4 -2
  28. package/dist/models/index.js +4 -2
  29. package/package.json +1 -1
  30. package/src/apis/OrdersPublicApi.ts +1 -41
  31. package/src/apis/index.ts +0 -1
  32. package/src/models/AccountDto.ts +11 -14
  33. package/src/models/AccountMetricsDto.ts +88 -0
  34. package/src/models/CreateOrderInput.ts +55 -11
  35. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +11 -14
  36. package/src/models/OrderCompanyInfoDto.ts +77 -0
  37. package/src/models/OrderCompanyTaxIdDto.ts +79 -0
  38. package/src/models/OrderDto.ts +22 -10
  39. package/src/models/OrderListItemDtoBuyerInformation.ts +12 -15
  40. package/src/models/OrderTransactionDto.ts +89 -0
  41. package/src/models/UpdateOrderInput.ts +55 -11
  42. package/src/models/index.ts +4 -2
  43. package/dist/apis/DashboardApi.d.ts +0 -26
  44. package/dist/apis/DashboardApi.js +0 -130
  45. package/dist/models/DashboardStatsDto.d.ts +0 -43
  46. package/dist/models/DashboardStatsDto.js +0 -54
  47. package/dist/models/OrderCheckoutSessionDto.d.ts +0 -31
  48. package/dist/models/OrderCheckoutSessionDto.js +0 -46
  49. package/src/apis/DashboardApi.ts +0 -67
  50. package/src/models/DashboardStatsDto.ts +0 -79
  51. package/src/models/OrderCheckoutSessionDto.ts +0 -61
@@ -0,0 +1,88 @@
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 AccountMetricsDto
20
+ */
21
+ export interface AccountMetricsDto {
22
+ /**
23
+ * Total of account leads number
24
+ * @type {number}
25
+ * @memberof AccountMetricsDto
26
+ */
27
+ leadsNumber: number;
28
+ /**
29
+ * Total of account domains number
30
+ * @type {number}
31
+ * @memberof AccountMetricsDto
32
+ */
33
+ domainsNumber: number;
34
+ /**
35
+ * Total of account active leads number
36
+ * @type {number}
37
+ * @memberof AccountMetricsDto
38
+ */
39
+ activeLeadsNumber: number;
40
+ /**
41
+ * Total of active account domain transfers number
42
+ * @type {number}
43
+ * @memberof AccountMetricsDto
44
+ */
45
+ activeDomainTransfersNumber: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AccountMetricsDto interface.
50
+ */
51
+ export function instanceOfAccountMetricsDto(value: object): value is AccountMetricsDto {
52
+ if (!('leadsNumber' in value) || value['leadsNumber'] === undefined) return false;
53
+ if (!('domainsNumber' in value) || value['domainsNumber'] === undefined) return false;
54
+ if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
55
+ if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AccountMetricsDtoFromJSON(json: any): AccountMetricsDto {
60
+ return AccountMetricsDtoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AccountMetricsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountMetricsDto {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'leadsNumber': json['leadsNumber'],
70
+ 'domainsNumber': json['domainsNumber'],
71
+ 'activeLeadsNumber': json['activeLeadsNumber'],
72
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
73
+ };
74
+ }
75
+
76
+ export function AccountMetricsDtoToJSON(value?: AccountMetricsDto | null): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+ return {
81
+
82
+ 'leadsNumber': value['leadsNumber'],
83
+ 'domainsNumber': value['domainsNumber'],
84
+ 'activeLeadsNumber': value['activeLeadsNumber'],
85
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
86
+ };
87
+ }
88
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
17
+ import {
18
+ OrderCompanyInfoDtoFromJSON,
19
+ OrderCompanyInfoDtoFromJSONTyped,
20
+ OrderCompanyInfoDtoToJSON,
21
+ } from './OrderCompanyInfoDto';
22
+
16
23
  /**
17
24
  *
18
25
  * @export
@@ -42,19 +49,49 @@ export interface CreateOrderInput {
42
49
  * @type {string}
43
50
  * @memberof CreateOrderInput
44
51
  */
45
- firstname: string;
52
+ email?: string;
46
53
  /**
47
54
  *
48
55
  * @type {string}
49
56
  * @memberof CreateOrderInput
50
57
  */
51
- lastname: string;
58
+ addressCountryCode?: string;
52
59
  /**
53
60
  *
54
61
  * @type {string}
55
62
  * @memberof CreateOrderInput
56
63
  */
57
- email: string;
64
+ addressStateCode?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof CreateOrderInput
69
+ */
70
+ addressLine1?: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof CreateOrderInput
75
+ */
76
+ addressLine2?: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof CreateOrderInput
81
+ */
82
+ addressPostalCode?: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof CreateOrderInput
87
+ */
88
+ addressCity?: string;
89
+ /**
90
+ *
91
+ * @type {OrderCompanyInfoDto}
92
+ * @memberof CreateOrderInput
93
+ */
94
+ companyInfo?: OrderCompanyInfoDto | null;
58
95
  }
59
96
 
60
97
  /**
@@ -64,9 +101,6 @@ export function instanceOfCreateOrderInput(value: object): value is CreateOrderI
64
101
  if (!('leadId' in value) || value['leadId'] === undefined) return false;
65
102
  if (!('locale' in value) || value['locale'] === undefined) return false;
66
103
  if (!('domainName' in value) || value['domainName'] === undefined) return false;
67
- if (!('firstname' in value) || value['firstname'] === undefined) return false;
68
- if (!('lastname' in value) || value['lastname'] === undefined) return false;
69
- if (!('email' in value) || value['email'] === undefined) return false;
70
104
  return true;
71
105
  }
72
106
 
@@ -83,9 +117,14 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
83
117
  'leadId': json['leadId'],
84
118
  'locale': json['locale'],
85
119
  'domainName': json['domainName'],
86
- 'firstname': json['firstname'],
87
- 'lastname': json['lastname'],
88
- 'email': json['email'],
120
+ 'email': json['email'] == null ? undefined : json['email'],
121
+ 'addressCountryCode': json['addressCountryCode'] == null ? undefined : json['addressCountryCode'],
122
+ 'addressStateCode': json['addressStateCode'] == null ? undefined : json['addressStateCode'],
123
+ 'addressLine1': json['addressLine1'] == null ? undefined : json['addressLine1'],
124
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
125
+ 'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
126
+ 'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
127
+ 'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
89
128
  };
90
129
  }
91
130
 
@@ -98,9 +137,14 @@ export function CreateOrderInputToJSON(value?: CreateOrderInput | null): any {
98
137
  'leadId': value['leadId'],
99
138
  'locale': value['locale'],
100
139
  'domainName': value['domainName'],
101
- 'firstname': value['firstname'],
102
- 'lastname': value['lastname'],
103
140
  'email': value['email'],
141
+ 'addressCountryCode': value['addressCountryCode'],
142
+ 'addressStateCode': value['addressStateCode'],
143
+ 'addressLine1': value['addressLine1'],
144
+ 'addressLine2': value['addressLine2'],
145
+ 'addressPostalCode': value['addressPostalCode'],
146
+ 'addressCity': value['addressCity'],
147
+ 'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
104
148
  };
105
149
  }
106
150
 
@@ -25,6 +25,12 @@ import {
25
25
  WithSettingsInnerFromJSONTyped,
26
26
  WithSettingsInnerToJSON,
27
27
  } from './WithSettingsInner';
28
+ import type { AccountMetricsDto } from './AccountMetricsDto';
29
+ import {
30
+ AccountMetricsDtoFromJSON,
31
+ AccountMetricsDtoFromJSONTyped,
32
+ AccountMetricsDtoToJSON,
33
+ } from './AccountMetricsDto';
28
34
 
29
35
  /**
30
36
  *
@@ -52,16 +58,10 @@ export interface IntersectionAccountDtoWithSettingsDto {
52
58
  name: string;
53
59
  /**
54
60
  *
55
- * @type {number}
56
- * @memberof IntersectionAccountDtoWithSettingsDto
57
- */
58
- activeDomainTransfersNumber: number;
59
- /**
60
- *
61
- * @type {number}
61
+ * @type {AccountMetricsDto}
62
62
  * @memberof IntersectionAccountDtoWithSettingsDto
63
63
  */
64
- activeLeadsNumber: number;
64
+ metrics: AccountMetricsDto;
65
65
  /**
66
66
  *
67
67
  * @type {PaymentProviderDto}
@@ -83,8 +83,7 @@ export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object):
83
83
  if (!('id' in value) || value['id'] === undefined) return false;
84
84
  if (!('identifier' in value) || value['identifier'] === undefined) return false;
85
85
  if (!('name' in value) || value['name'] === undefined) return false;
86
- if (!('activeDomainTransfersNumber' in value) || value['activeDomainTransfersNumber'] === undefined) return false;
87
- if (!('activeLeadsNumber' in value) || value['activeLeadsNumber'] === undefined) return false;
86
+ if (!('metrics' in value) || value['metrics'] === undefined) return false;
88
87
  if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
89
88
  if (!('settings' in value) || value['settings'] === undefined) return false;
90
89
  return true;
@@ -103,8 +102,7 @@ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ig
103
102
  'id': json['id'],
104
103
  'identifier': json['identifier'],
105
104
  'name': json['name'],
106
- 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
107
- 'activeLeadsNumber': json['activeLeadsNumber'],
105
+ 'metrics': AccountMetricsDtoFromJSON(json['metrics']),
108
106
  'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
109
107
  'settings': WithSettingsInnerFromJSON(json['settings']),
110
108
  };
@@ -119,8 +117,7 @@ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: Intersection
119
117
  'id': value['id'],
120
118
  'identifier': value['identifier'],
121
119
  'name': value['name'],
122
- 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
123
- 'activeLeadsNumber': value['activeLeadsNumber'],
120
+ 'metrics': AccountMetricsDtoToJSON(value['metrics']),
124
121
  'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
125
122
  'settings': WithSettingsInnerToJSON(value['settings']),
126
123
  };
@@ -0,0 +1,77 @@
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 { OrderCompanyTaxIdDto } from './OrderCompanyTaxIdDto';
17
+ import {
18
+ OrderCompanyTaxIdDtoFromJSON,
19
+ OrderCompanyTaxIdDtoFromJSONTyped,
20
+ OrderCompanyTaxIdDtoToJSON,
21
+ } from './OrderCompanyTaxIdDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface OrderCompanyInfoDto
27
+ */
28
+ export interface OrderCompanyInfoDto {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof OrderCompanyInfoDto
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {OrderCompanyTaxIdDto}
38
+ * @memberof OrderCompanyInfoDto
39
+ */
40
+ taxId: OrderCompanyTaxIdDto;
41
+ }
42
+
43
+ /**
44
+ * Check if a given object implements the OrderCompanyInfoDto interface.
45
+ */
46
+ export function instanceOfOrderCompanyInfoDto(value: object): value is OrderCompanyInfoDto {
47
+ if (!('name' in value) || value['name'] === undefined) return false;
48
+ if (!('taxId' in value) || value['taxId'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function OrderCompanyInfoDtoFromJSON(json: any): OrderCompanyInfoDto {
53
+ return OrderCompanyInfoDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function OrderCompanyInfoDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyInfoDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'name': json['name'],
63
+ 'taxId': OrderCompanyTaxIdDtoFromJSON(json['taxId']),
64
+ };
65
+ }
66
+
67
+ export function OrderCompanyInfoDtoToJSON(value?: OrderCompanyInfoDto | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'name': value['name'],
74
+ 'taxId': OrderCompanyTaxIdDtoToJSON(value['taxId']),
75
+ };
76
+ }
77
+
@@ -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 OrderCompanyTaxIdDto
20
+ */
21
+ export interface OrderCompanyTaxIdDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof OrderCompanyTaxIdDto
26
+ */
27
+ value: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof OrderCompanyTaxIdDto
32
+ */
33
+ type: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof OrderCompanyTaxIdDto
38
+ */
39
+ countryCode: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the OrderCompanyTaxIdDto interface.
44
+ */
45
+ export function instanceOfOrderCompanyTaxIdDto(value: object): value is OrderCompanyTaxIdDto {
46
+ if (!('value' in value) || value['value'] === undefined) return false;
47
+ if (!('type' in value) || value['type'] === undefined) return false;
48
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function OrderCompanyTaxIdDtoFromJSON(json: any): OrderCompanyTaxIdDto {
53
+ return OrderCompanyTaxIdDtoFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function OrderCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyTaxIdDto {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'value': json['value'],
63
+ 'type': json['type'],
64
+ 'countryCode': json['countryCode'],
65
+ };
66
+ }
67
+
68
+ export function OrderCompanyTaxIdDtoToJSON(value?: OrderCompanyTaxIdDto | null): any {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+
74
+ 'value': value['value'],
75
+ 'type': value['type'],
76
+ 'countryCode': value['countryCode'],
77
+ };
78
+ }
79
+
@@ -19,12 +19,24 @@ import {
19
19
  MoneyDtoFromJSONTyped,
20
20
  MoneyDtoToJSON,
21
21
  } from './MoneyDto';
22
+ import type { OrderTransactionDto } from './OrderTransactionDto';
23
+ import {
24
+ OrderTransactionDtoFromJSON,
25
+ OrderTransactionDtoFromJSONTyped,
26
+ OrderTransactionDtoToJSON,
27
+ } from './OrderTransactionDto';
22
28
  import type { OrderTaxDto } from './OrderTaxDto';
23
29
  import {
24
30
  OrderTaxDtoFromJSON,
25
31
  OrderTaxDtoFromJSONTyped,
26
32
  OrderTaxDtoToJSON,
27
33
  } from './OrderTaxDto';
34
+ import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
35
+ import {
36
+ OrderCompanyInfoDtoFromJSON,
37
+ OrderCompanyInfoDtoFromJSONTyped,
38
+ OrderCompanyInfoDtoToJSON,
39
+ } from './OrderCompanyInfoDto';
28
40
  import type { AddressDto } from './AddressDto';
29
41
  import {
30
42
  AddressDtoFromJSON,
@@ -106,16 +118,16 @@ export interface OrderDto {
106
118
  locale: string;
107
119
  /**
108
120
  *
109
- * @type {string}
121
+ * @type {OrderCompanyInfoDto}
110
122
  * @memberof OrderDto
111
123
  */
112
- companyName: string | null;
124
+ companyInfo: OrderCompanyInfoDto | null;
113
125
  /**
114
126
  *
115
- * @type {string}
127
+ * @type {OrderTransactionDto}
116
128
  * @memberof OrderDto
117
129
  */
118
- companyVatNumber: string | null;
130
+ transaction: OrderTransactionDto;
119
131
  }
120
132
 
121
133
 
@@ -144,8 +156,8 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
144
156
  if (!('phone' in value) || value['phone'] === undefined) return false;
145
157
  if (!('address' in value) || value['address'] === undefined) return false;
146
158
  if (!('locale' in value) || value['locale'] === undefined) return false;
147
- if (!('companyName' in value) || value['companyName'] === undefined) return false;
148
- if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
159
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
160
+ if (!('transaction' in value) || value['transaction'] === undefined) return false;
149
161
  return true;
150
162
  }
151
163
 
@@ -170,8 +182,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
170
182
  'phone': json['phone'],
171
183
  'address': AddressDtoFromJSON(json['address']),
172
184
  'locale': json['locale'],
173
- 'companyName': json['companyName'],
174
- 'companyVatNumber': json['companyVatNumber'],
185
+ 'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
186
+ 'transaction': OrderTransactionDtoFromJSON(json['transaction']),
175
187
  };
176
188
  }
177
189
 
@@ -192,8 +204,8 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
192
204
  'phone': value['phone'],
193
205
  'address': AddressDtoToJSON(value['address']),
194
206
  'locale': value['locale'],
195
- 'companyName': value['companyName'],
196
- 'companyVatNumber': value['companyVatNumber'],
207
+ 'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
208
+ 'transaction': OrderTransactionDtoToJSON(value['transaction']),
197
209
  };
198
210
  }
199
211
 
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
17
+ import {
18
+ OrderCompanyInfoDtoFromJSON,
19
+ OrderCompanyInfoDtoFromJSONTyped,
20
+ OrderCompanyInfoDtoToJSON,
21
+ } from './OrderCompanyInfoDto';
16
22
  import type { AddressDto } from './AddressDto';
17
23
  import {
18
24
  AddressDtoFromJSON,
@@ -57,17 +63,11 @@ export interface OrderListItemDtoBuyerInformation {
57
63
  */
58
64
  address: AddressDto | null;
59
65
  /**
60
- * The order buyer company name
61
- * @type {string}
62
- * @memberof OrderListItemDtoBuyerInformation
63
- */
64
- companyName: string | null;
65
- /**
66
- * The order buyer company VAT number
67
- * @type {string}
66
+ * The order buyer company information
67
+ * @type {OrderCompanyInfoDto}
68
68
  * @memberof OrderListItemDtoBuyerInformation
69
69
  */
70
- companyVatNumber: string | null;
70
+ companyInfo: OrderCompanyInfoDto | null;
71
71
  }
72
72
 
73
73
  /**
@@ -79,8 +79,7 @@ export function instanceOfOrderListItemDtoBuyerInformation(value: object): value
79
79
  if (!('email' in value) || value['email'] === undefined) return false;
80
80
  if (!('phone' in value) || value['phone'] === undefined) return false;
81
81
  if (!('address' in value) || value['address'] === undefined) return false;
82
- if (!('companyName' in value) || value['companyName'] === undefined) return false;
83
- if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined) return false;
82
+ if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
84
83
  return true;
85
84
  }
86
85
 
@@ -99,8 +98,7 @@ export function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreD
99
98
  'email': json['email'],
100
99
  'phone': json['phone'],
101
100
  'address': AddressDtoFromJSON(json['address']),
102
- 'companyName': json['companyName'],
103
- 'companyVatNumber': json['companyVatNumber'],
101
+ 'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
104
102
  };
105
103
  }
106
104
 
@@ -115,8 +113,7 @@ export function OrderListItemDtoBuyerInformationToJSON(value?: OrderListItemDtoB
115
113
  'email': value['email'],
116
114
  'phone': value['phone'],
117
115
  'address': AddressDtoToJSON(value['address']),
118
- 'companyName': value['companyName'],
119
- 'companyVatNumber': value['companyVatNumber'],
116
+ 'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
120
117
  };
121
118
  }
122
119
 
@@ -0,0 +1,89 @@
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 OrderTransactionDto
20
+ */
21
+ export interface OrderTransactionDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof OrderTransactionDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof OrderTransactionDto
32
+ */
33
+ gateway: OrderTransactionDtoGatewayEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof OrderTransactionDto
38
+ */
39
+ gatewayTransferToken: string;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const OrderTransactionDtoGatewayEnum = {
47
+ STRIPE: 'stripe'
48
+ } as const;
49
+ export type OrderTransactionDtoGatewayEnum = typeof OrderTransactionDtoGatewayEnum[keyof typeof OrderTransactionDtoGatewayEnum];
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the OrderTransactionDto interface.
54
+ */
55
+ export function instanceOfOrderTransactionDto(value: object): value is OrderTransactionDto {
56
+ if (!('id' in value) || value['id'] === undefined) return false;
57
+ if (!('gateway' in value) || value['gateway'] === undefined) return false;
58
+ if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function OrderTransactionDtoFromJSON(json: any): OrderTransactionDto {
63
+ return OrderTransactionDtoFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function OrderTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTransactionDto {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'id': json['id'],
73
+ 'gateway': json['gateway'],
74
+ 'gatewayTransferToken': json['gatewayTransferToken'],
75
+ };
76
+ }
77
+
78
+ export function OrderTransactionDtoToJSON(value?: OrderTransactionDto | null): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+ return {
83
+
84
+ 'id': value['id'],
85
+ 'gateway': value['gateway'],
86
+ 'gatewayTransferToken': value['gatewayTransferToken'],
87
+ };
88
+ }
89
+