@randock/nameshift-api-client 0.0.92 → 0.0.94

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 (94) hide show
  1. package/.openapi-generator/FILES +8 -6
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +10 -11
  4. package/dist/apis/AccountsApi.js +27 -30
  5. package/dist/apis/OrdersPublicApi.d.ts +12 -1
  6. package/dist/apis/OrdersPublicApi.js +44 -0
  7. package/dist/apis/StripePublicApi.d.ts +28 -0
  8. package/dist/apis/StripePublicApi.js +124 -0
  9. package/dist/apis/index.d.ts +1 -0
  10. package/dist/apis/index.js +1 -0
  11. package/dist/models/AccountDto.d.ts +7 -0
  12. package/dist/models/AccountDto.js +5 -0
  13. package/dist/models/AccountPaymentProviderSessionDto.d.ts +31 -0
  14. package/dist/models/AccountPaymentProviderSessionDto.js +46 -0
  15. package/dist/models/AddressDto.d.ts +61 -0
  16. package/dist/models/AddressDto.js +66 -0
  17. package/dist/models/CreateAccountPaymentProviderInput.d.ts +31 -0
  18. package/dist/models/CreateAccountPaymentProviderInput.js +46 -0
  19. package/dist/models/CreateLeadInput.d.ts +0 -6
  20. package/dist/models/CreateLeadInput.js +0 -4
  21. package/dist/models/CreateOrderInput.d.ts +0 -30
  22. package/dist/models/CreateOrderInput.js +0 -20
  23. package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +69 -0
  24. package/dist/models/{IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.js → IntersectionAccountDtoWithSettingsDto.js} +14 -19
  25. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.d.ts +6 -0
  26. package/dist/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.js +4 -0
  27. package/dist/models/OrderCheckoutSessionDto.d.ts +31 -0
  28. package/dist/models/OrderCheckoutSessionDto.js +46 -0
  29. package/dist/models/OrderDto.d.ts +12 -16
  30. package/dist/models/OrderDto.js +12 -14
  31. package/dist/models/OrderListItemDtoBuyerInformation.d.ts +4 -21
  32. package/dist/models/OrderListItemDtoBuyerInformation.js +3 -14
  33. package/dist/models/OrderTaxDto.d.ts +44 -0
  34. package/dist/models/OrderTaxDto.js +55 -0
  35. package/dist/models/PaymentProviderDto.d.ts +45 -0
  36. package/dist/models/PaymentProviderDto.js +58 -0
  37. package/dist/models/PublicLeadBuyerDto.d.ts +0 -6
  38. package/dist/models/PublicLeadBuyerDto.js +0 -4
  39. package/dist/models/UpdateLeadInput.d.ts +0 -6
  40. package/dist/models/UpdateLeadInput.js +0 -4
  41. package/dist/models/UpdateOrderInput.d.ts +0 -30
  42. package/dist/models/UpdateOrderInput.js +0 -20
  43. package/dist/models/index.d.ts +7 -6
  44. package/dist/models/index.js +7 -6
  45. package/package.json +1 -1
  46. package/src/apis/AccountsApi.ts +44 -54
  47. package/src/apis/AccountsPublicApi.ts +0 -3
  48. package/src/apis/AdminApi.ts +0 -3
  49. package/src/apis/BuyersApi.ts +0 -3
  50. package/src/apis/BuyersPublicApi.ts +0 -3
  51. package/src/apis/DashboardApi.ts +0 -3
  52. package/src/apis/DomainsApi.ts +0 -3
  53. package/src/apis/DomainsPublicApi.ts +0 -3
  54. package/src/apis/LeadsApi.ts +0 -3
  55. package/src/apis/LeadsPublicApi.ts +0 -3
  56. package/src/apis/OrdersPublicApi.ts +40 -3
  57. package/src/apis/StripePublicApi.ts +70 -0
  58. package/src/apis/UsersApi.ts +0 -3
  59. package/src/apis/UsersPublicApi.ts +0 -3
  60. package/src/apis/index.ts +1 -0
  61. package/src/models/AccountDto.ts +16 -0
  62. package/src/models/AccountPaymentProviderSessionDto.ts +61 -0
  63. package/src/models/AddressDto.ts +106 -0
  64. package/src/models/CreateAccountPaymentProviderInput.ts +61 -0
  65. package/src/models/CreateLeadInput.ts +0 -9
  66. package/src/models/CreateOrderInput.ts +0 -45
  67. package/src/models/IntersectionAccountDtoWithSettingsDto.ts +128 -0
  68. package/src/models/IntersectionDomainSalesInformationDtoWithDomainStatsDto.ts +9 -0
  69. package/src/models/OrderCheckoutSessionDto.ts +61 -0
  70. package/src/models/OrderDto.ts +30 -27
  71. package/src/models/OrderListItemDtoBuyerInformation.ts +12 -32
  72. package/src/models/OrderTaxDto.ts +86 -0
  73. package/src/models/PaymentProviderDto.ts +81 -0
  74. package/src/models/PublicLeadBuyerDto.ts +0 -9
  75. package/src/models/UpdateLeadInput.ts +0 -9
  76. package/src/models/UpdateOrderInput.ts +0 -45
  77. package/src/models/index.ts +7 -6
  78. package/dist/models/AccountAddressDto.d.ts +0 -68
  79. package/dist/models/AccountAddressDto.js +0 -71
  80. package/dist/models/AccountAddressInput.d.ts +0 -68
  81. package/dist/models/AccountAddressInput.js +0 -71
  82. package/dist/models/AccountFinancialInput.d.ts +0 -49
  83. package/dist/models/AccountFinancialInput.js +0 -58
  84. package/dist/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.d.ts +0 -76
  85. package/dist/models/ThrottlerException.d.ts +0 -43
  86. package/dist/models/ThrottlerException.js +0 -54
  87. package/dist/models/WithFinancialDtoInner.d.ts +0 -49
  88. package/dist/models/WithFinancialDtoInner.js +0 -58
  89. package/src/models/AccountAddressDto.ts +0 -115
  90. package/src/models/AccountAddressInput.ts +0 -115
  91. package/src/models/AccountFinancialInput.ts +0 -88
  92. package/src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts +0 -143
  93. package/src/models/ThrottlerException.ts +0 -79
  94. package/src/models/WithFinancialDtoInner.ts +0 -88
@@ -0,0 +1,61 @@
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 AccountPaymentProviderSessionDto
20
+ */
21
+ export interface AccountPaymentProviderSessionDto {
22
+ /**
23
+ * Account payment provider session token
24
+ * @type {string}
25
+ * @memberof AccountPaymentProviderSessionDto
26
+ */
27
+ accessToken: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AccountPaymentProviderSessionDto interface.
32
+ */
33
+ export function instanceOfAccountPaymentProviderSessionDto(value: object): value is AccountPaymentProviderSessionDto {
34
+ if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AccountPaymentProviderSessionDtoFromJSON(json: any): AccountPaymentProviderSessionDto {
39
+ return AccountPaymentProviderSessionDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AccountPaymentProviderSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentProviderSessionDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'accessToken': json['accessToken'],
49
+ };
50
+ }
51
+
52
+ export function AccountPaymentProviderSessionDtoToJSON(value?: AccountPaymentProviderSessionDto | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'accessToken': value['accessToken'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,106 @@
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 AddressDto
20
+ */
21
+ export interface AddressDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AddressDto
26
+ */
27
+ city: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AddressDto
32
+ */
33
+ countryCode: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AddressDto
38
+ */
39
+ line1: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AddressDto
44
+ */
45
+ line2: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof AddressDto
50
+ */
51
+ postalCode: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof AddressDto
56
+ */
57
+ stateCode: string | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the AddressDto interface.
62
+ */
63
+ export function instanceOfAddressDto(value: object): value is AddressDto {
64
+ if (!('city' in value) || value['city'] === undefined) return false;
65
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
66
+ if (!('line1' in value) || value['line1'] === undefined) return false;
67
+ if (!('line2' in value) || value['line2'] === undefined) return false;
68
+ if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
69
+ if (!('stateCode' in value) || value['stateCode'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function AddressDtoFromJSON(json: any): AddressDto {
74
+ return AddressDtoFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function AddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressDto {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'city': json['city'],
84
+ 'countryCode': json['countryCode'],
85
+ 'line1': json['line1'],
86
+ 'line2': json['line2'],
87
+ 'postalCode': json['postalCode'],
88
+ 'stateCode': json['stateCode'],
89
+ };
90
+ }
91
+
92
+ export function AddressDtoToJSON(value?: AddressDto | null): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+ return {
97
+
98
+ 'city': value['city'],
99
+ 'countryCode': value['countryCode'],
100
+ 'line1': value['line1'],
101
+ 'line2': value['line2'],
102
+ 'postalCode': value['postalCode'],
103
+ 'stateCode': value['stateCode'],
104
+ };
105
+ }
106
+
@@ -0,0 +1,61 @@
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 CreateAccountPaymentProviderInput
20
+ */
21
+ export interface CreateAccountPaymentProviderInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateAccountPaymentProviderInput
26
+ */
27
+ countryIsoCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateAccountPaymentProviderInput interface.
32
+ */
33
+ export function instanceOfCreateAccountPaymentProviderInput(value: object): value is CreateAccountPaymentProviderInput {
34
+ if (!('countryIsoCode' in value) || value['countryIsoCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CreateAccountPaymentProviderInputFromJSON(json: any): CreateAccountPaymentProviderInput {
39
+ return CreateAccountPaymentProviderInputFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CreateAccountPaymentProviderInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAccountPaymentProviderInput {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'countryIsoCode': json['countryIsoCode'],
49
+ };
50
+ }
51
+
52
+ export function CreateAccountPaymentProviderInputToJSON(value?: CreateAccountPaymentProviderInput | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'countryIsoCode': value['countryIsoCode'],
59
+ };
60
+ }
61
+
@@ -68,12 +68,6 @@ export interface CreateLeadInput {
68
68
  * @memberof CreateLeadInput
69
69
  */
70
70
  email: string;
71
- /**
72
- *
73
- * @type {string}
74
- * @memberof CreateLeadInput
75
- */
76
- phone: string;
77
71
  /**
78
72
  *
79
73
  * @type {string}
@@ -105,7 +99,6 @@ export function instanceOfCreateLeadInput(value: object): value is CreateLeadInp
105
99
  if (!('firstname' in value) || value['firstname'] === undefined) return false;
106
100
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
107
101
  if (!('email' in value) || value['email'] === undefined) return false;
108
- if (!('phone' in value) || value['phone'] === undefined) return false;
109
102
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
110
103
  return true;
111
104
  }
@@ -127,7 +120,6 @@ export function CreateLeadInputFromJSONTyped(json: any, ignoreDiscriminator: boo
127
120
  'firstname': json['firstname'],
128
121
  'lastname': json['lastname'],
129
122
  'email': json['email'],
130
- 'phone': json['phone'],
131
123
  'companyName': json['companyName'],
132
124
  };
133
125
  }
@@ -145,7 +137,6 @@ export function CreateLeadInputToJSON(value?: CreateLeadInput | null): any {
145
137
  'firstname': value['firstname'],
146
138
  'lastname': value['lastname'],
147
139
  'email': value['email'],
148
- 'phone': value['phone'],
149
140
  'companyName': value['companyName'],
150
141
  };
151
142
  }
@@ -67,36 +67,6 @@ export interface CreateOrderInput {
67
67
  * @memberof CreateOrderInput
68
68
  */
69
69
  email: string;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof CreateOrderInput
74
- */
75
- phone: string;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof CreateOrderInput
80
- */
81
- country: string;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof CreateOrderInput
86
- */
87
- city: string;
88
- /**
89
- *
90
- * @type {string}
91
- * @memberof CreateOrderInput
92
- */
93
- postalCode: string;
94
- /**
95
- *
96
- * @type {string}
97
- * @memberof CreateOrderInput
98
- */
99
- address: string;
100
70
  }
101
71
 
102
72
  /**
@@ -111,11 +81,6 @@ export function instanceOfCreateOrderInput(value: object): value is CreateOrderI
111
81
  if (!('firstname' in value) || value['firstname'] === undefined) return false;
112
82
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
113
83
  if (!('email' in value) || value['email'] === undefined) return false;
114
- if (!('phone' in value) || value['phone'] === undefined) return false;
115
- if (!('country' in value) || value['country'] === undefined) return false;
116
- if (!('city' in value) || value['city'] === undefined) return false;
117
- if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
118
- if (!('address' in value) || value['address'] === undefined) return false;
119
84
  return true;
120
85
  }
121
86
 
@@ -137,11 +102,6 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
137
102
  'firstname': json['firstname'],
138
103
  'lastname': json['lastname'],
139
104
  'email': json['email'],
140
- 'phone': json['phone'],
141
- 'country': json['country'],
142
- 'city': json['city'],
143
- 'postalCode': json['postalCode'],
144
- 'address': json['address'],
145
105
  };
146
106
  }
147
107
 
@@ -159,11 +119,6 @@ export function CreateOrderInputToJSON(value?: CreateOrderInput | null): any {
159
119
  'firstname': value['firstname'],
160
120
  'lastname': value['lastname'],
161
121
  'email': value['email'],
162
- 'phone': value['phone'],
163
- 'country': value['country'],
164
- 'city': value['city'],
165
- 'postalCode': value['postalCode'],
166
- 'address': value['address'],
167
122
  };
168
123
  }
169
124
 
@@ -0,0 +1,128 @@
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 { PaymentProviderDto } from './PaymentProviderDto';
17
+ import {
18
+ PaymentProviderDtoFromJSON,
19
+ PaymentProviderDtoFromJSONTyped,
20
+ PaymentProviderDtoToJSON,
21
+ } from './PaymentProviderDto';
22
+ import type { WithSettingsInner } from './WithSettingsInner';
23
+ import {
24
+ WithSettingsInnerFromJSON,
25
+ WithSettingsInnerFromJSONTyped,
26
+ WithSettingsInnerToJSON,
27
+ } from './WithSettingsInner';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface IntersectionAccountDtoWithSettingsDto
33
+ */
34
+ export interface IntersectionAccountDtoWithSettingsDto {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof IntersectionAccountDtoWithSettingsDto
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof IntersectionAccountDtoWithSettingsDto
45
+ */
46
+ identifier: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof IntersectionAccountDtoWithSettingsDto
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof IntersectionAccountDtoWithSettingsDto
57
+ */
58
+ activeDomainTransfersNumber: number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof IntersectionAccountDtoWithSettingsDto
63
+ */
64
+ activeLeadsNumber: number;
65
+ /**
66
+ *
67
+ * @type {PaymentProviderDto}
68
+ * @memberof IntersectionAccountDtoWithSettingsDto
69
+ */
70
+ paymentProvider: PaymentProviderDto | null;
71
+ /**
72
+ *
73
+ * @type {WithSettingsInner}
74
+ * @memberof IntersectionAccountDtoWithSettingsDto
75
+ */
76
+ settings: WithSettingsInner;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the IntersectionAccountDtoWithSettingsDto interface.
81
+ */
82
+ export function instanceOfIntersectionAccountDtoWithSettingsDto(value: object): value is IntersectionAccountDtoWithSettingsDto {
83
+ if (!('id' in value) || value['id'] === undefined) return false;
84
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
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;
88
+ if (!('paymentProvider' in value) || value['paymentProvider'] === undefined) return false;
89
+ if (!('settings' in value) || value['settings'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function IntersectionAccountDtoWithSettingsDtoFromJSON(json: any): IntersectionAccountDtoWithSettingsDto {
94
+ return IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function IntersectionAccountDtoWithSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionAccountDtoWithSettingsDto {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'identifier': json['identifier'],
105
+ 'name': json['name'],
106
+ 'activeDomainTransfersNumber': json['activeDomainTransfersNumber'],
107
+ 'activeLeadsNumber': json['activeLeadsNumber'],
108
+ 'paymentProvider': PaymentProviderDtoFromJSON(json['paymentProvider']),
109
+ 'settings': WithSettingsInnerFromJSON(json['settings']),
110
+ };
111
+ }
112
+
113
+ export function IntersectionAccountDtoWithSettingsDtoToJSON(value?: IntersectionAccountDtoWithSettingsDto | null): any {
114
+ if (value == null) {
115
+ return value;
116
+ }
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'identifier': value['identifier'],
121
+ 'name': value['name'],
122
+ 'activeDomainTransfersNumber': value['activeDomainTransfersNumber'],
123
+ 'activeLeadsNumber': value['activeLeadsNumber'],
124
+ 'paymentProvider': PaymentProviderDtoToJSON(value['paymentProvider']),
125
+ 'settings': WithSettingsInnerToJSON(value['settings']),
126
+ };
127
+ }
128
+
@@ -74,6 +74,12 @@ export interface IntersectionDomainSalesInformationDtoWithDomainStatsDto {
74
74
  * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
75
75
  */
76
76
  seller: DomainSellerDto;
77
+ /**
78
+ * The domain "sold" status
79
+ * @type {boolean}
80
+ * @memberof IntersectionDomainSalesInformationDtoWithDomainStatsDto
81
+ */
82
+ sold: boolean;
77
83
  }
78
84
 
79
85
  /**
@@ -86,6 +92,7 @@ export function instanceOfIntersectionDomainSalesInformationDtoWithDomainStatsDt
86
92
  if (!('buyNowPrice' in value) || value['buyNowPrice'] === undefined) return false;
87
93
  if (!('minOfferPrice' in value) || value['minOfferPrice'] === undefined) return false;
88
94
  if (!('seller' in value) || value['seller'] === undefined) return false;
95
+ if (!('sold' in value) || value['sold'] === undefined) return false;
89
96
  return true;
90
97
  }
91
98
 
@@ -105,6 +112,7 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoFromJSONT
105
112
  'buyNowPrice': MoneyDtoFromJSON(json['buyNowPrice']),
106
113
  'minOfferPrice': MoneyDtoFromJSON(json['minOfferPrice']),
107
114
  'seller': DomainSellerDtoFromJSON(json['seller']),
115
+ 'sold': json['sold'],
108
116
  };
109
117
  }
110
118
 
@@ -120,6 +128,7 @@ export function IntersectionDomainSalesInformationDtoWithDomainStatsDtoToJSON(va
120
128
  'buyNowPrice': MoneyDtoToJSON(value['buyNowPrice']),
121
129
  'minOfferPrice': MoneyDtoToJSON(value['minOfferPrice']),
122
130
  'seller': DomainSellerDtoToJSON(value['seller']),
131
+ 'sold': value['sold'],
123
132
  };
124
133
  }
125
134
 
@@ -0,0 +1,61 @@
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 OrderCheckoutSessionDto
20
+ */
21
+ export interface OrderCheckoutSessionDto {
22
+ /**
23
+ * Order payment provider checkout session token
24
+ * @type {string}
25
+ * @memberof OrderCheckoutSessionDto
26
+ */
27
+ accessToken: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the OrderCheckoutSessionDto interface.
32
+ */
33
+ export function instanceOfOrderCheckoutSessionDto(value: object): value is OrderCheckoutSessionDto {
34
+ if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function OrderCheckoutSessionDtoFromJSON(json: any): OrderCheckoutSessionDto {
39
+ return OrderCheckoutSessionDtoFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function OrderCheckoutSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCheckoutSessionDto {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'accessToken': json['accessToken'],
49
+ };
50
+ }
51
+
52
+ export function OrderCheckoutSessionDtoToJSON(value?: OrderCheckoutSessionDto | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'accessToken': value['accessToken'],
59
+ };
60
+ }
61
+
@@ -19,6 +19,18 @@ import {
19
19
  MoneyDtoFromJSONTyped,
20
20
  MoneyDtoToJSON,
21
21
  } from './MoneyDto';
22
+ import type { OrderTaxDto } from './OrderTaxDto';
23
+ import {
24
+ OrderTaxDtoFromJSON,
25
+ OrderTaxDtoFromJSONTyped,
26
+ OrderTaxDtoToJSON,
27
+ } from './OrderTaxDto';
28
+ import type { AddressDto } from './AddressDto';
29
+ import {
30
+ AddressDtoFromJSON,
31
+ AddressDtoFromJSONTyped,
32
+ AddressDtoToJSON,
33
+ } from './AddressDto';
22
34
 
23
35
  /**
24
36
  *
@@ -46,52 +58,46 @@ export interface OrderDto {
46
58
  basePrice: MoneyDto;
47
59
  /**
48
60
  *
49
- * @type {string}
50
- * @memberof OrderDto
51
- */
52
- firstname: string;
53
- /**
54
- *
55
- * @type {string}
61
+ * @type {MoneyDto}
56
62
  * @memberof OrderDto
57
63
  */
58
- lastname: string;
64
+ totalPrice: MoneyDto;
59
65
  /**
60
66
  *
61
- * @type {string}
67
+ * @type {Array<OrderTaxDto>}
62
68
  * @memberof OrderDto
63
69
  */
64
- email: string;
70
+ taxes: Array<OrderTaxDto>;
65
71
  /**
66
72
  *
67
73
  * @type {string}
68
74
  * @memberof OrderDto
69
75
  */
70
- phone: string;
76
+ firstname: string;
71
77
  /**
72
78
  *
73
79
  * @type {string}
74
80
  * @memberof OrderDto
75
81
  */
76
- country: string;
82
+ lastname: string;
77
83
  /**
78
84
  *
79
85
  * @type {string}
80
86
  * @memberof OrderDto
81
87
  */
82
- city: string;
88
+ email: string;
83
89
  /**
84
90
  *
85
91
  * @type {string}
86
92
  * @memberof OrderDto
87
93
  */
88
- postalCode: string;
94
+ phone: string | null;
89
95
  /**
90
96
  *
91
- * @type {string}
97
+ * @type {AddressDto}
92
98
  * @memberof OrderDto
93
99
  */
94
- address: string;
100
+ address: AddressDto | null;
95
101
  /**
96
102
  *
97
103
  * @type {string}
@@ -130,13 +136,12 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
130
136
  if (!('id' in value) || value['id'] === undefined) return false;
131
137
  if (!('status' in value) || value['status'] === undefined) return false;
132
138
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
139
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
140
+ if (!('taxes' in value) || value['taxes'] === undefined) return false;
133
141
  if (!('firstname' in value) || value['firstname'] === undefined) return false;
134
142
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
135
143
  if (!('email' in value) || value['email'] === undefined) return false;
136
144
  if (!('phone' in value) || value['phone'] === undefined) return false;
137
- if (!('country' in value) || value['country'] === undefined) return false;
138
- if (!('city' in value) || value['city'] === undefined) return false;
139
- if (!('postalCode' in value) || value['postalCode'] === undefined) return false;
140
145
  if (!('address' in value) || value['address'] === undefined) return false;
141
146
  if (!('locale' in value) || value['locale'] === undefined) return false;
142
147
  if (!('companyName' in value) || value['companyName'] === undefined) return false;
@@ -157,14 +162,13 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
157
162
  'id': json['id'],
158
163
  'status': json['status'],
159
164
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
165
+ 'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
166
+ 'taxes': ((json['taxes'] as Array<any>).map(OrderTaxDtoFromJSON)),
160
167
  'firstname': json['firstname'],
161
168
  'lastname': json['lastname'],
162
169
  'email': json['email'],
163
170
  'phone': json['phone'],
164
- 'country': json['country'],
165
- 'city': json['city'],
166
- 'postalCode': json['postalCode'],
167
- 'address': json['address'],
171
+ 'address': AddressDtoFromJSON(json['address']),
168
172
  'locale': json['locale'],
169
173
  'companyName': json['companyName'],
170
174
  'companyVatNumber': json['companyVatNumber'],
@@ -180,14 +184,13 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
180
184
  'id': value['id'],
181
185
  'status': value['status'],
182
186
  'basePrice': MoneyDtoToJSON(value['basePrice']),
187
+ 'totalPrice': MoneyDtoToJSON(value['totalPrice']),
188
+ 'taxes': ((value['taxes'] as Array<any>).map(OrderTaxDtoToJSON)),
183
189
  'firstname': value['firstname'],
184
190
  'lastname': value['lastname'],
185
191
  'email': value['email'],
186
192
  'phone': value['phone'],
187
- 'country': value['country'],
188
- 'city': value['city'],
189
- 'postalCode': value['postalCode'],
190
- 'address': value['address'],
193
+ 'address': AddressDtoToJSON(value['address']),
191
194
  'locale': value['locale'],
192
195
  'companyName': value['companyName'],
193
196
  'companyVatNumber': value['companyVatNumber'],