@randock/nameshift-api-client 0.0.377 → 0.0.379

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 (32) hide show
  1. package/README.md +3 -3
  2. package/dist/models/CreateOrderInput.d.ts +6 -0
  3. package/dist/models/CreateOrderInput.js +2 -0
  4. package/dist/models/CreateSubscriptionInput.d.ts +6 -0
  5. package/dist/models/CreateSubscriptionInput.js +2 -0
  6. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +18 -0
  7. package/dist/models/IntersectionDomainDtoWithAccountDto.js +12 -0
  8. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +18 -0
  9. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +12 -0
  10. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +18 -0
  11. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +12 -0
  12. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +18 -0
  13. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +12 -0
  14. package/dist/models/OrderDto.d.ts +12 -0
  15. package/dist/models/OrderDto.js +8 -0
  16. package/dist/models/SubscriptionDto.d.ts +12 -0
  17. package/dist/models/SubscriptionDto.js +8 -0
  18. package/dist/models/UpdateOrderInput.d.ts +6 -0
  19. package/dist/models/UpdateOrderInput.js +2 -0
  20. package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
  21. package/dist/models/UpdateSubscriptionInput.js +2 -0
  22. package/package.json +1 -1
  23. package/src/models/CreateOrderInput.ts +8 -0
  24. package/src/models/CreateSubscriptionInput.ts +8 -0
  25. package/src/models/IntersectionDomainDtoWithAccountDto.ts +27 -0
  26. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +27 -0
  27. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +27 -0
  28. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +27 -0
  29. package/src/models/OrderDto.ts +18 -0
  30. package/src/models/SubscriptionDto.ts +18 -0
  31. package/src/models/UpdateOrderInput.ts +8 -0
  32. package/src/models/UpdateSubscriptionInput.ts +8 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.377
1
+ ## @randock/nameshift-api-client@0.0.379
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.377 --save
39
+ npm install @randock/nameshift-api-client@0.0.379 --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
- ed979396fc42a8197f83c39a33a36d2c9ebdce423bbf32aaf6fb85dbd54c59a61274bb4c65a42f0a31bff44d93b61888
47
+ 975f487e983539c47e537335d9ce37912eaffc24af60cb6995eced2013e7933b2784879d14070fd6286a4c57ed7acfe0
@@ -100,6 +100,12 @@ export interface CreateOrderInput {
100
100
  * @memberof CreateOrderInput
101
101
  */
102
102
  companyInfo?: OrderCompanyInfoDto | null;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof CreateOrderInput
107
+ */
108
+ selfDeclaredTaxCountry?: string;
103
109
  }
104
110
  /**
105
111
  * Check if a given object implements the CreateOrderInput interface.
@@ -53,6 +53,7 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
54
54
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
55
55
  'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
56
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
56
57
  };
57
58
  }
58
59
  function CreateOrderInputToJSON(json) {
@@ -78,5 +79,6 @@ function CreateOrderInputToJSONTyped(value, ignoreDiscriminator) {
78
79
  'addressPostalCode': value['addressPostalCode'],
79
80
  'addressCity': value['addressCity'],
80
81
  'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
82
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
81
83
  };
82
84
  }
@@ -113,6 +113,12 @@ export interface CreateSubscriptionInput {
113
113
  * @memberof CreateSubscriptionInput
114
114
  */
115
115
  companyInfo?: SubscriptionCompanyInfoDto | null;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof CreateSubscriptionInput
120
+ */
121
+ selfDeclaredTaxCountry?: string;
116
122
  }
117
123
  /**
118
124
  * @export
@@ -68,6 +68,7 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
68
68
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
69
69
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
70
70
  'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
71
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
71
72
  };
72
73
  }
73
74
  function CreateSubscriptionInputToJSON(json) {
@@ -95,5 +96,6 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
95
96
  'addressPostalCode': value['addressPostalCode'],
96
97
  'addressCity': value['addressCity'],
97
98
  'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
99
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
98
100
  };
99
101
  }
@@ -76,6 +76,24 @@ export interface IntersectionDomainDtoWithAccountDto {
76
76
  * @memberof IntersectionDomainDtoWithAccountDto
77
77
  */
78
78
  nameservers: boolean;
79
+ /**
80
+ * The date when the nameservers were last checked
81
+ * @type {Date}
82
+ * @memberof IntersectionDomainDtoWithAccountDto
83
+ */
84
+ nameserversUpdatedAt: Date | null;
85
+ /**
86
+ * Whether the domain points to our server or not.
87
+ * @type {boolean}
88
+ * @memberof IntersectionDomainDtoWithAccountDto
89
+ */
90
+ pointsToOurServer: boolean | null;
91
+ /**
92
+ * The date when the domain points to our server was last checked
93
+ * @type {Date}
94
+ * @memberof IntersectionDomainDtoWithAccountDto
95
+ */
96
+ pointsToOurServerUpdatedAt: Date | null;
79
97
  /**
80
98
  * The ASCII domain name (example.com, xn--maana-pta.com)
81
99
  * @type {string}
@@ -47,6 +47,12 @@ function instanceOfIntersectionDomainDtoWithAccountDto(value) {
47
47
  return false;
48
48
  if (!('nameservers' in value) || value['nameservers'] === undefined)
49
49
  return false;
50
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined)
51
+ return false;
52
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined)
53
+ return false;
54
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined)
55
+ return false;
50
56
  if (!('name' in value) || value['name'] === undefined)
51
57
  return false;
52
58
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -100,6 +106,9 @@ function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json, ignoreDiscrimina
100
106
  'tld': json['tld'],
101
107
  'verified': json['verified'],
102
108
  'nameservers': json['nameservers'],
109
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
110
+ 'pointsToOurServer': json['pointsToOurServer'],
111
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
103
112
  'name': json['name'],
104
113
  'displayName': json['displayName'],
105
114
  'currencyCode': json['currencyCode'],
@@ -137,6 +146,9 @@ function IntersectionDomainDtoWithAccountDtoToJSONTyped(value, ignoreDiscriminat
137
146
  'tld': value['tld'],
138
147
  'verified': value['verified'],
139
148
  'nameservers': value['nameservers'],
149
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : value['nameserversUpdatedAt'].toISOString()),
150
+ 'pointsToOurServer': value['pointsToOurServer'],
151
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : value['pointsToOurServerUpdatedAt'].toISOString()),
140
152
  'name': value['name'],
141
153
  'displayName': value['displayName'],
142
154
  'currencyCode': value['currencyCode'],
@@ -76,6 +76,24 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
76
76
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
77
77
  */
78
78
  nameservers: boolean;
79
+ /**
80
+ * The date when the nameservers were last checked
81
+ * @type {Date}
82
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
83
+ */
84
+ nameserversUpdatedAt: Date | null;
85
+ /**
86
+ * Whether the domain points to our server or not.
87
+ * @type {boolean}
88
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
89
+ */
90
+ pointsToOurServer: boolean | null;
91
+ /**
92
+ * The date when the domain points to our server was last checked
93
+ * @type {Date}
94
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
95
+ */
96
+ pointsToOurServerUpdatedAt: Date | null;
79
97
  /**
80
98
  * The ASCII domain name (example.com, xn--maana-pta.com)
81
99
  * @type {string}
@@ -47,6 +47,12 @@ function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(value)
47
47
  return false;
48
48
  if (!('nameservers' in value) || value['nameservers'] === undefined)
49
49
  return false;
50
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined)
51
+ return false;
52
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined)
53
+ return false;
54
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined)
55
+ return false;
50
56
  if (!('name' in value) || value['name'] === undefined)
51
57
  return false;
52
58
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -102,6 +108,9 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyped(json
102
108
  'tld': json['tld'],
103
109
  'verified': json['verified'],
104
110
  'nameservers': json['nameservers'],
111
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
112
+ 'pointsToOurServer': json['pointsToOurServer'],
113
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
105
114
  'name': json['name'],
106
115
  'displayName': json['displayName'],
107
116
  'currencyCode': json['currencyCode'],
@@ -140,6 +149,9 @@ function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped(value,
140
149
  'tld': value['tld'],
141
150
  'verified': value['verified'],
142
151
  'nameservers': value['nameservers'],
152
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : value['nameserversUpdatedAt'].toISOString()),
153
+ 'pointsToOurServer': value['pointsToOurServer'],
154
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : value['pointsToOurServerUpdatedAt'].toISOString()),
143
155
  'name': value['name'],
144
156
  'displayName': value['displayName'],
145
157
  'currencyCode': value['currencyCode'],
@@ -76,6 +76,24 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
76
76
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
77
77
  */
78
78
  nameservers: boolean;
79
+ /**
80
+ * The date when the nameservers were last checked
81
+ * @type {Date}
82
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
83
+ */
84
+ nameserversUpdatedAt: Date | null;
85
+ /**
86
+ * Whether the domain points to our server or not.
87
+ * @type {boolean}
88
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
89
+ */
90
+ pointsToOurServer: boolean | null;
91
+ /**
92
+ * The date when the domain points to our server was last checked
93
+ * @type {Date}
94
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
95
+ */
96
+ pointsToOurServerUpdatedAt: Date | null;
79
97
  /**
80
98
  * The ASCII domain name (example.com, xn--maana-pta.com)
81
99
  * @type {string}
@@ -47,6 +47,12 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
47
47
  return false;
48
48
  if (!('nameservers' in value) || value['nameservers'] === undefined)
49
49
  return false;
50
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined)
51
+ return false;
52
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined)
53
+ return false;
54
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined)
55
+ return false;
50
56
  if (!('name' in value) || value['name'] === undefined)
51
57
  return false;
52
58
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -102,6 +108,9 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
102
108
  'tld': json['tld'],
103
109
  'verified': json['verified'],
104
110
  'nameservers': json['nameservers'],
111
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
112
+ 'pointsToOurServer': json['pointsToOurServer'],
113
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
105
114
  'name': json['name'],
106
115
  'displayName': json['displayName'],
107
116
  'currencyCode': json['currencyCode'],
@@ -140,6 +149,9 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
140
149
  'tld': value['tld'],
141
150
  'verified': value['verified'],
142
151
  'nameservers': value['nameservers'],
152
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : value['nameserversUpdatedAt'].toISOString()),
153
+ 'pointsToOurServer': value['pointsToOurServer'],
154
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : value['pointsToOurServerUpdatedAt'].toISOString()),
143
155
  'name': value['name'],
144
156
  'displayName': value['displayName'],
145
157
  'currencyCode': value['currencyCode'],
@@ -82,6 +82,24 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
82
82
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
83
83
  */
84
84
  nameservers: boolean;
85
+ /**
86
+ * The date when the nameservers were last checked
87
+ * @type {Date}
88
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
89
+ */
90
+ nameserversUpdatedAt: Date | null;
91
+ /**
92
+ * Whether the domain points to our server or not.
93
+ * @type {boolean}
94
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
95
+ */
96
+ pointsToOurServer: boolean | null;
97
+ /**
98
+ * The date when the domain points to our server was last checked
99
+ * @type {Date}
100
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
101
+ */
102
+ pointsToOurServerUpdatedAt: Date | null;
85
103
  /**
86
104
  * The ASCII domain name (example.com, xn--maana-pta.com)
87
105
  * @type {string}
@@ -49,6 +49,12 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
49
49
  return false;
50
50
  if (!('nameservers' in value) || value['nameservers'] === undefined)
51
51
  return false;
52
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined)
53
+ return false;
54
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined)
55
+ return false;
56
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined)
57
+ return false;
52
58
  if (!('name' in value) || value['name'] === undefined)
53
59
  return false;
54
60
  if (!('displayName' in value) || value['displayName'] === undefined)
@@ -101,6 +107,9 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
101
107
  'tld': json['tld'],
102
108
  'verified': json['verified'],
103
109
  'nameservers': json['nameservers'],
110
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
111
+ 'pointsToOurServer': json['pointsToOurServer'],
112
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
104
113
  'name': json['name'],
105
114
  'displayName': json['displayName'],
106
115
  'currencyCode': json['currencyCode'],
@@ -138,6 +147,9 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
138
147
  'tld': value['tld'],
139
148
  'verified': value['verified'],
140
149
  'nameservers': value['nameservers'],
150
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : value['nameserversUpdatedAt'].toISOString()),
151
+ 'pointsToOurServer': value['pointsToOurServer'],
152
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : value['pointsToOurServerUpdatedAt'].toISOString()),
141
153
  'name': value['name'],
142
154
  'displayName': value['displayName'],
143
155
  'currencyCode': value['currencyCode'],
@@ -32,6 +32,18 @@ export interface OrderDto {
32
32
  * @memberof OrderDto
33
33
  */
34
34
  status: OrderDtoStatusEnum;
35
+ /**
36
+ * Self-declared tax country code (ISO 3166-1 alpha-2).
37
+ * @type {string}
38
+ * @memberof OrderDto
39
+ */
40
+ selfDeclaredTaxCountry: string | null;
41
+ /**
42
+ * Decided tax country code (ISO 3166-1 alpha-2).
43
+ * @type {string}
44
+ * @memberof OrderDto
45
+ */
46
+ decidedCountry: string;
35
47
  /**
36
48
  *
37
49
  * @type {MoneyDto}
@@ -48,6 +48,10 @@ function instanceOfOrderDto(value) {
48
48
  return false;
49
49
  if (!('status' in value) || value['status'] === undefined)
50
50
  return false;
51
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
52
+ return false;
53
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
54
+ return false;
51
55
  if (!('basePrice' in value) || value['basePrice'] === undefined)
52
56
  return false;
53
57
  if (!('totalPrice' in value) || value['totalPrice'] === undefined)
@@ -88,6 +92,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
88
92
  return {
89
93
  'id': json['id'],
90
94
  'status': json['status'],
95
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
96
+ 'decidedCountry': json['decidedCountry'],
91
97
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
92
98
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
93
99
  'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
@@ -115,6 +121,8 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
115
121
  return {
116
122
  'id': value['id'],
117
123
  'status': value['status'],
124
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
125
+ 'decidedCountry': value['decidedCountry'],
118
126
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
119
127
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
120
128
  'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
@@ -41,6 +41,18 @@ export interface SubscriptionDto {
41
41
  * @memberof SubscriptionDto
42
42
  */
43
43
  status: SubscriptionDtoStatusEnum;
44
+ /**
45
+ * Self-declared tax country code (ISO 3166-1 alpha-2).
46
+ * @type {string}
47
+ * @memberof SubscriptionDto
48
+ */
49
+ selfDeclaredTaxCountry: string | null;
50
+ /**
51
+ * Decided tax country code (ISO 3166-1 alpha-2).
52
+ * @type {string}
53
+ * @memberof SubscriptionDto
54
+ */
55
+ decidedCountry: string;
44
56
  /**
45
57
  *
46
58
  * @type {MoneyDto}
@@ -64,6 +64,10 @@ function instanceOfSubscriptionDto(value) {
64
64
  return false;
65
65
  if (!('status' in value) || value['status'] === undefined)
66
66
  return false;
67
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
68
+ return false;
69
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
70
+ return false;
67
71
  if (!('basePrice' in value) || value['basePrice'] === undefined)
68
72
  return false;
69
73
  if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
@@ -121,6 +125,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
121
125
  'id': json['id'],
122
126
  'invoiceId': json['invoiceId'],
123
127
  'status': json['status'],
128
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
129
+ 'decidedCountry': json['decidedCountry'],
124
130
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
125
131
  'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
126
132
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
@@ -157,6 +163,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
157
163
  'id': value['id'],
158
164
  'invoiceId': value['invoiceId'],
159
165
  'status': value['status'],
166
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
167
+ 'decidedCountry': value['decidedCountry'],
160
168
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
161
169
  'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
162
170
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
@@ -82,6 +82,12 @@ export interface UpdateOrderInput {
82
82
  * @memberof UpdateOrderInput
83
83
  */
84
84
  companyInfo?: OrderCompanyInfoDto | null;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof UpdateOrderInput
89
+ */
90
+ selfDeclaredTaxCountry?: string;
85
91
  }
86
92
  /**
87
93
  * Check if a given object implements the UpdateOrderInput interface.
@@ -44,6 +44,7 @@ function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
45
45
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
46
46
  'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
47
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
47
48
  };
48
49
  }
49
50
  function UpdateOrderInputToJSON(json) {
@@ -66,5 +67,6 @@ function UpdateOrderInputToJSONTyped(value, ignoreDiscriminator) {
66
67
  'addressPostalCode': value['addressPostalCode'],
67
68
  'addressCity': value['addressCity'],
68
69
  'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
70
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
69
71
  };
70
72
  }
@@ -95,6 +95,12 @@ export interface UpdateSubscriptionInput {
95
95
  * @memberof UpdateSubscriptionInput
96
96
  */
97
97
  companyInfo?: SubscriptionCompanyInfoDto | null;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof UpdateSubscriptionInput
102
+ */
103
+ selfDeclaredTaxCountry?: string;
98
104
  }
99
105
  /**
100
106
  * Check if a given object implements the UpdateSubscriptionInput interface.
@@ -47,6 +47,7 @@ function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
48
48
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
49
49
  'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
50
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
50
51
  };
51
52
  }
52
53
  function UpdateSubscriptionInputToJSON(json) {
@@ -71,5 +72,6 @@ function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
71
72
  'addressPostalCode': value['addressPostalCode'],
72
73
  'addressCity': value['addressCity'],
73
74
  'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
75
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
74
76
  };
75
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.377",
3
+ "version": "0.0.379",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -111,6 +111,12 @@ export interface CreateOrderInput {
111
111
  * @memberof CreateOrderInput
112
112
  */
113
113
  companyInfo?: OrderCompanyInfoDto | null;
114
+ /**
115
+ *
116
+ * @type {string}
117
+ * @memberof CreateOrderInput
118
+ */
119
+ selfDeclaredTaxCountry?: string;
114
120
  }
115
121
 
116
122
  /**
@@ -147,6 +153,7 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
147
153
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
148
154
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
149
155
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
156
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
150
157
  };
151
158
  }
152
159
 
@@ -175,6 +182,7 @@ export function CreateOrderInputToJSONTyped(value?: CreateOrderInput | null, ign
175
182
  'addressPostalCode': value['addressPostalCode'],
176
183
  'addressCity': value['addressCity'],
177
184
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
185
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
178
186
  };
179
187
  }
180
188
 
@@ -130,6 +130,12 @@ export interface CreateSubscriptionInput {
130
130
  * @memberof CreateSubscriptionInput
131
131
  */
132
132
  companyInfo?: SubscriptionCompanyInfoDto | null;
133
+ /**
134
+ *
135
+ * @type {string}
136
+ * @memberof CreateSubscriptionInput
137
+ */
138
+ selfDeclaredTaxCountry?: string;
133
139
  }
134
140
 
135
141
 
@@ -181,6 +187,7 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
181
187
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
182
188
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
183
189
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
190
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
184
191
  };
185
192
  }
186
193
 
@@ -211,6 +218,7 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
211
218
  'addressPostalCode': value['addressPostalCode'],
212
219
  'addressCity': value['addressCity'],
213
220
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
221
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
214
222
  };
215
223
  }
216
224
 
@@ -123,6 +123,24 @@ export interface IntersectionDomainDtoWithAccountDto {
123
123
  * @memberof IntersectionDomainDtoWithAccountDto
124
124
  */
125
125
  nameservers: boolean;
126
+ /**
127
+ * The date when the nameservers were last checked
128
+ * @type {Date}
129
+ * @memberof IntersectionDomainDtoWithAccountDto
130
+ */
131
+ nameserversUpdatedAt: Date | null;
132
+ /**
133
+ * Whether the domain points to our server or not.
134
+ * @type {boolean}
135
+ * @memberof IntersectionDomainDtoWithAccountDto
136
+ */
137
+ pointsToOurServer: boolean | null;
138
+ /**
139
+ * The date when the domain points to our server was last checked
140
+ * @type {Date}
141
+ * @memberof IntersectionDomainDtoWithAccountDto
142
+ */
143
+ pointsToOurServerUpdatedAt: Date | null;
126
144
  /**
127
145
  * The ASCII domain name (example.com, xn--maana-pta.com)
128
146
  * @type {string}
@@ -241,6 +259,9 @@ export function instanceOfIntersectionDomainDtoWithAccountDto(value: object): va
241
259
  if (!('tld' in value) || value['tld'] === undefined) return false;
242
260
  if (!('verified' in value) || value['verified'] === undefined) return false;
243
261
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
262
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined) return false;
263
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined) return false;
264
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined) return false;
244
265
  if (!('name' in value) || value['name'] === undefined) return false;
245
266
  if (!('displayName' in value) || value['displayName'] === undefined) return false;
246
267
  if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
@@ -280,6 +301,9 @@ export function IntersectionDomainDtoWithAccountDtoFromJSONTyped(json: any, igno
280
301
  'tld': json['tld'],
281
302
  'verified': json['verified'],
282
303
  'nameservers': json['nameservers'],
304
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
305
+ 'pointsToOurServer': json['pointsToOurServer'],
306
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
283
307
  'name': json['name'],
284
308
  'displayName': json['displayName'],
285
309
  'currencyCode': json['currencyCode'],
@@ -320,6 +344,9 @@ export function IntersectionDomainDtoWithAccountDtoToJSONTyped(value?: Intersect
320
344
  'tld': value['tld'],
321
345
  'verified': value['verified'],
322
346
  'nameservers': value['nameservers'],
347
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : (value['nameserversUpdatedAt'] as any).toISOString()),
348
+ 'pointsToOurServer': value['pointsToOurServer'],
349
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : (value['pointsToOurServerUpdatedAt'] as any).toISOString()),
323
350
  'name': value['name'],
324
351
  'displayName': value['displayName'],
325
352
  'currencyCode': value['currencyCode'],
@@ -123,6 +123,24 @@ export interface IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto {
123
123
  * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
124
124
  */
125
125
  nameservers: boolean;
126
+ /**
127
+ * The date when the nameservers were last checked
128
+ * @type {Date}
129
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
130
+ */
131
+ nameserversUpdatedAt: Date | null;
132
+ /**
133
+ * Whether the domain points to our server or not.
134
+ * @type {boolean}
135
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
136
+ */
137
+ pointsToOurServer: boolean | null;
138
+ /**
139
+ * The date when the domain points to our server was last checked
140
+ * @type {Date}
141
+ * @memberof IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto
142
+ */
143
+ pointsToOurServerUpdatedAt: Date | null;
126
144
  /**
127
145
  * The ASCII domain name (example.com, xn--maana-pta.com)
128
146
  * @type {string}
@@ -247,6 +265,9 @@ export function instanceOfIntersectionDomainDtoWithAccountDtoWithAuctionInfoDto(
247
265
  if (!('tld' in value) || value['tld'] === undefined) return false;
248
266
  if (!('verified' in value) || value['verified'] === undefined) return false;
249
267
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
268
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined) return false;
269
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined) return false;
270
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined) return false;
250
271
  if (!('name' in value) || value['name'] === undefined) return false;
251
272
  if (!('displayName' in value) || value['displayName'] === undefined) return false;
252
273
  if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
@@ -287,6 +308,9 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSONTyp
287
308
  'tld': json['tld'],
288
309
  'verified': json['verified'],
289
310
  'nameservers': json['nameservers'],
311
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
312
+ 'pointsToOurServer': json['pointsToOurServer'],
313
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
290
314
  'name': json['name'],
291
315
  'displayName': json['displayName'],
292
316
  'currencyCode': json['currencyCode'],
@@ -328,6 +352,9 @@ export function IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSONTyped
328
352
  'tld': value['tld'],
329
353
  'verified': value['verified'],
330
354
  'nameservers': value['nameservers'],
355
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : (value['nameserversUpdatedAt'] as any).toISOString()),
356
+ 'pointsToOurServer': value['pointsToOurServer'],
357
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : (value['pointsToOurServerUpdatedAt'] as any).toISOString()),
331
358
  'name': value['name'],
332
359
  'displayName': value['displayName'],
333
360
  'currencyCode': value['currencyCode'],
@@ -123,6 +123,24 @@ export interface IntersectionDomainDtoWithHijackerDtoWithAccountDto {
123
123
  * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
124
124
  */
125
125
  nameservers: boolean;
126
+ /**
127
+ * The date when the nameservers were last checked
128
+ * @type {Date}
129
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
130
+ */
131
+ nameserversUpdatedAt: Date | null;
132
+ /**
133
+ * Whether the domain points to our server or not.
134
+ * @type {boolean}
135
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
136
+ */
137
+ pointsToOurServer: boolean | null;
138
+ /**
139
+ * The date when the domain points to our server was last checked
140
+ * @type {Date}
141
+ * @memberof IntersectionDomainDtoWithHijackerDtoWithAccountDto
142
+ */
143
+ pointsToOurServerUpdatedAt: Date | null;
126
144
  /**
127
145
  * The ASCII domain name (example.com, xn--maana-pta.com)
128
146
  * @type {string}
@@ -247,6 +265,9 @@ export function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(val
247
265
  if (!('tld' in value) || value['tld'] === undefined) return false;
248
266
  if (!('verified' in value) || value['verified'] === undefined) return false;
249
267
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
268
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined) return false;
269
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined) return false;
270
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined) return false;
250
271
  if (!('name' in value) || value['name'] === undefined) return false;
251
272
  if (!('displayName' in value) || value['displayName'] === undefined) return false;
252
273
  if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
@@ -287,6 +308,9 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(
287
308
  'tld': json['tld'],
288
309
  'verified': json['verified'],
289
310
  'nameservers': json['nameservers'],
311
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
312
+ 'pointsToOurServer': json['pointsToOurServer'],
313
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
290
314
  'name': json['name'],
291
315
  'displayName': json['displayName'],
292
316
  'currencyCode': json['currencyCode'],
@@ -328,6 +352,9 @@ export function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(va
328
352
  'tld': value['tld'],
329
353
  'verified': value['verified'],
330
354
  'nameservers': value['nameservers'],
355
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : (value['nameserversUpdatedAt'] as any).toISOString()),
356
+ 'pointsToOurServer': value['pointsToOurServer'],
357
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : (value['pointsToOurServerUpdatedAt'] as any).toISOString()),
331
358
  'name': value['name'],
332
359
  'displayName': value['displayName'],
333
360
  'currencyCode': value['currencyCode'],
@@ -129,6 +129,24 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
129
129
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
130
130
  */
131
131
  nameservers: boolean;
132
+ /**
133
+ * The date when the nameservers were last checked
134
+ * @type {Date}
135
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
136
+ */
137
+ nameserversUpdatedAt: Date | null;
138
+ /**
139
+ * Whether the domain points to our server or not.
140
+ * @type {boolean}
141
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
142
+ */
143
+ pointsToOurServer: boolean | null;
144
+ /**
145
+ * The date when the domain points to our server was last checked
146
+ * @type {Date}
147
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
148
+ */
149
+ pointsToOurServerUpdatedAt: Date | null;
132
150
  /**
133
151
  * The ASCII domain name (example.com, xn--maana-pta.com)
134
152
  * @type {string}
@@ -242,6 +260,9 @@ export function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value: object):
242
260
  if (!('tld' in value) || value['tld'] === undefined) return false;
243
261
  if (!('verified' in value) || value['verified'] === undefined) return false;
244
262
  if (!('nameservers' in value) || value['nameservers'] === undefined) return false;
263
+ if (!('nameserversUpdatedAt' in value) || value['nameserversUpdatedAt'] === undefined) return false;
264
+ if (!('pointsToOurServer' in value) || value['pointsToOurServer'] === undefined) return false;
265
+ if (!('pointsToOurServerUpdatedAt' in value) || value['pointsToOurServerUpdatedAt'] === undefined) return false;
245
266
  if (!('name' in value) || value['name'] === undefined) return false;
246
267
  if (!('displayName' in value) || value['displayName'] === undefined) return false;
247
268
  if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
@@ -281,6 +302,9 @@ export function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json: any, i
281
302
  'tld': json['tld'],
282
303
  'verified': json['verified'],
283
304
  'nameservers': json['nameservers'],
305
+ 'nameserversUpdatedAt': (json['nameserversUpdatedAt'] == null ? null : new Date(json['nameserversUpdatedAt'])),
306
+ 'pointsToOurServer': json['pointsToOurServer'],
307
+ 'pointsToOurServerUpdatedAt': (json['pointsToOurServerUpdatedAt'] == null ? null : new Date(json['pointsToOurServerUpdatedAt'])),
284
308
  'name': json['name'],
285
309
  'displayName': json['displayName'],
286
310
  'currencyCode': json['currencyCode'],
@@ -321,6 +345,9 @@ export function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value?: Inters
321
345
  'tld': value['tld'],
322
346
  'verified': value['verified'],
323
347
  'nameservers': value['nameservers'],
348
+ 'nameserversUpdatedAt': (value['nameserversUpdatedAt'] == null ? null : (value['nameserversUpdatedAt'] as any).toISOString()),
349
+ 'pointsToOurServer': value['pointsToOurServer'],
350
+ 'pointsToOurServerUpdatedAt': (value['pointsToOurServerUpdatedAt'] == null ? null : (value['pointsToOurServerUpdatedAt'] as any).toISOString()),
324
351
  'name': value['name'],
325
352
  'displayName': value['displayName'],
326
353
  'currencyCode': value['currencyCode'],
@@ -67,6 +67,18 @@ export interface OrderDto {
67
67
  * @memberof OrderDto
68
68
  */
69
69
  status: OrderDtoStatusEnum;
70
+ /**
71
+ * Self-declared tax country code (ISO 3166-1 alpha-2).
72
+ * @type {string}
73
+ * @memberof OrderDto
74
+ */
75
+ selfDeclaredTaxCountry: string | null;
76
+ /**
77
+ * Decided tax country code (ISO 3166-1 alpha-2).
78
+ * @type {string}
79
+ * @memberof OrderDto
80
+ */
81
+ decidedCountry: string;
70
82
  /**
71
83
  *
72
84
  * @type {MoneyDto}
@@ -181,6 +193,8 @@ export type OrderDtoEnabledPaymentMethodsEnum = typeof OrderDtoEnabledPaymentMet
181
193
  export function instanceOfOrderDto(value: object): value is OrderDto {
182
194
  if (!('id' in value) || value['id'] === undefined) return false;
183
195
  if (!('status' in value) || value['status'] === undefined) return false;
196
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
197
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
184
198
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
185
199
  if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
186
200
  if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
@@ -210,6 +224,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
210
224
 
211
225
  'id': json['id'],
212
226
  'status': json['status'],
227
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
228
+ 'decidedCountry': json['decidedCountry'],
213
229
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
214
230
  'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
215
231
  'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
@@ -240,6 +256,8 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
240
256
 
241
257
  'id': value['id'],
242
258
  'status': value['status'],
259
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
260
+ 'decidedCountry': value['decidedCountry'],
243
261
  'basePrice': MoneyDtoToJSON(value['basePrice']),
244
262
  'totalPrice': MoneyDtoToJSON(value['totalPrice']),
245
263
  'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
@@ -94,6 +94,18 @@ export interface SubscriptionDto {
94
94
  * @memberof SubscriptionDto
95
95
  */
96
96
  status: SubscriptionDtoStatusEnum;
97
+ /**
98
+ * Self-declared tax country code (ISO 3166-1 alpha-2).
99
+ * @type {string}
100
+ * @memberof SubscriptionDto
101
+ */
102
+ selfDeclaredTaxCountry: string | null;
103
+ /**
104
+ * Decided tax country code (ISO 3166-1 alpha-2).
105
+ * @type {string}
106
+ * @memberof SubscriptionDto
107
+ */
108
+ decidedCountry: string;
97
109
  /**
98
110
  *
99
111
  * @type {MoneyDto}
@@ -270,6 +282,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
270
282
  if (!('id' in value) || value['id'] === undefined) return false;
271
283
  if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
272
284
  if (!('status' in value) || value['status'] === undefined) return false;
285
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
286
+ if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
273
287
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
274
288
  if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
275
289
  if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
@@ -308,6 +322,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
308
322
  'id': json['id'],
309
323
  'invoiceId': json['invoiceId'],
310
324
  'status': json['status'],
325
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
326
+ 'decidedCountry': json['decidedCountry'],
311
327
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
312
328
  'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
313
329
  'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
@@ -347,6 +363,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
347
363
  'id': value['id'],
348
364
  'invoiceId': value['invoiceId'],
349
365
  'status': value['status'],
366
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
367
+ 'decidedCountry': value['decidedCountry'],
350
368
  'basePrice': MoneyDtoToJSON(value['basePrice']),
351
369
  'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
352
370
  'totalPrice': MoneyDtoToJSON(value['totalPrice']),
@@ -93,6 +93,12 @@ export interface UpdateOrderInput {
93
93
  * @memberof UpdateOrderInput
94
94
  */
95
95
  companyInfo?: OrderCompanyInfoDto | null;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof UpdateOrderInput
100
+ */
101
+ selfDeclaredTaxCountry?: string;
96
102
  }
97
103
 
98
104
  /**
@@ -123,6 +129,7 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
123
129
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
124
130
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
125
131
  'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
132
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
126
133
  };
127
134
  }
128
135
 
@@ -148,6 +155,7 @@ export function UpdateOrderInputToJSONTyped(value?: UpdateOrderInput | null, ign
148
155
  'addressPostalCode': value['addressPostalCode'],
149
156
  'addressCity': value['addressCity'],
150
157
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
158
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
151
159
  };
152
160
  }
153
161
 
@@ -112,6 +112,12 @@ export interface UpdateSubscriptionInput {
112
112
  * @memberof UpdateSubscriptionInput
113
113
  */
114
114
  companyInfo?: SubscriptionCompanyInfoDto | null;
115
+ /**
116
+ *
117
+ * @type {string}
118
+ * @memberof UpdateSubscriptionInput
119
+ */
120
+ selfDeclaredTaxCountry?: string;
115
121
  }
116
122
 
117
123
  /**
@@ -144,6 +150,7 @@ export function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
144
150
  'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
145
151
  'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
146
152
  'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
153
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
147
154
  };
148
155
  }
149
156
 
@@ -171,6 +178,7 @@ export function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInp
171
178
  'addressPostalCode': value['addressPostalCode'],
172
179
  'addressCity': value['addressCity'],
173
180
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
181
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
174
182
  };
175
183
  }
176
184