@randock/nameshift-api-client 0.0.65 → 0.0.66

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.
@@ -48,6 +48,7 @@ src/models/DomainTransferDtoAgent.ts
48
48
  src/models/DomainTransferOrderDto.ts
49
49
  src/models/ForgotPasswordRequestInput.ts
50
50
  src/models/GetAllDomainTransfers200Response.ts
51
+ src/models/GetAllOrders200Response.ts
51
52
  src/models/GetBuyerTransfers200Response.ts
52
53
  src/models/HttpException.ts
53
54
  src/models/IntersectionAccountDtoWithFinancialDtoWithSettingsDtoWithAddressDto.ts
@@ -73,6 +74,11 @@ src/models/MoneyInput.ts
73
74
  src/models/NotFoundException.ts
74
75
  src/models/ObjectId.ts
75
76
  src/models/OrderDto.ts
77
+ src/models/OrderListItemDto.ts
78
+ src/models/OrderListItemDtoBasePrice.ts
79
+ src/models/OrderListItemDtoBuyerInformation.ts
80
+ src/models/OrderListItemDtoDomainInformation.ts
81
+ src/models/OrderListItemDtoSellerAccount.ts
76
82
  src/models/PaginateResponse.ts
77
83
  src/models/PaginateResponseLinks.ts
78
84
  src/models/PaginateResponseMeta.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.65
1
+ ## @randock/nameshift-api-client@0.0.66
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.65 --save
39
+ npm install @randock/nameshift-api-client@0.0.66 --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
- 9b25551466d8fa2d379b7e8e78935b85272c90d3cc06aa9ed3d3c9c8f905a59ae1b673ccc58534f2f3fa6f4a1a2e5e0a
47
+ 4c52efac8bbdd10e9e49ceef997efdaddc63fb8a6e364a592a8feffca3549359fe5a1ae4e64916313471aa80196eb70e
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ListAccounts200Response } from '../models/index';
13
+ import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, GetAllOrders200Response, ListAccounts200Response } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -21,6 +21,12 @@ export interface AdminApiChangeOrderStatusRequest {
21
21
  orderId: string;
22
22
  changeOrderStatusInput: ChangeOrderStatusInput;
23
23
  }
24
+ export interface AdminApiGetAllOrdersRequest {
25
+ filter?: object;
26
+ page?: number;
27
+ limit?: number;
28
+ sortBy?: Array<string>;
29
+ }
24
30
  export interface AdminApiListAccountsRequest {
25
31
  filter?: object;
26
32
  page?: number;
@@ -47,6 +53,14 @@ export declare class AdminApi extends runtime.BaseAPI {
47
53
  *
48
54
  */
49
55
  changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
56
+ /**
57
+ *
58
+ */
59
+ getAllOrdersRaw(requestParameters: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllOrders200Response>>;
60
+ /**
61
+ *
62
+ */
63
+ getAllOrders(requestParameters?: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response>;
50
64
  /**
51
65
  *
52
66
  */
@@ -194,6 +194,69 @@ var AdminApi = /** @class */ (function (_super) {
194
194
  });
195
195
  });
196
196
  };
197
+ /**
198
+ *
199
+ */
200
+ AdminApi.prototype.getAllOrdersRaw = function (requestParameters, initOverrides) {
201
+ return __awaiter(this, void 0, void 0, function () {
202
+ var queryParameters, headerParameters, token, tokenString, response;
203
+ return __generator(this, function (_a) {
204
+ switch (_a.label) {
205
+ case 0:
206
+ queryParameters = {};
207
+ if (requestParameters['filter'] != null) {
208
+ queryParameters['filter'] = requestParameters['filter'];
209
+ }
210
+ if (requestParameters['page'] != null) {
211
+ queryParameters['page'] = requestParameters['page'];
212
+ }
213
+ if (requestParameters['limit'] != null) {
214
+ queryParameters['limit'] = requestParameters['limit'];
215
+ }
216
+ if (requestParameters['sortBy'] != null) {
217
+ queryParameters['sortBy'] = requestParameters['sortBy'];
218
+ }
219
+ headerParameters = {};
220
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
221
+ token = this.configuration.accessToken;
222
+ return [4 /*yield*/, token("bearer", [])];
223
+ case 1:
224
+ tokenString = _a.sent();
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
227
+ }
228
+ _a.label = 2;
229
+ case 2: return [4 /*yield*/, this.request({
230
+ path: "/admin/orders",
231
+ method: 'GET',
232
+ headers: headerParameters,
233
+ query: queryParameters,
234
+ }, initOverrides)];
235
+ case 3:
236
+ response = _a.sent();
237
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllOrders200ResponseFromJSON)(jsonValue); })];
238
+ }
239
+ });
240
+ });
241
+ };
242
+ /**
243
+ *
244
+ */
245
+ AdminApi.prototype.getAllOrders = function () {
246
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
247
+ var response;
248
+ if (requestParameters === void 0) { requestParameters = {}; }
249
+ return __generator(this, function (_a) {
250
+ switch (_a.label) {
251
+ case 0: return [4 /*yield*/, this.getAllOrdersRaw(requestParameters, initOverrides)];
252
+ case 1:
253
+ response = _a.sent();
254
+ return [4 /*yield*/, response.value()];
255
+ case 2: return [2 /*return*/, _a.sent()];
256
+ }
257
+ });
258
+ });
259
+ };
197
260
  /**
198
261
  *
199
262
  */
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
13
+ import type { OrderListItemDto } from './OrderListItemDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllOrders200Response
19
+ */
20
+ export interface GetAllOrders200Response {
21
+ /**
22
+ *
23
+ * @type {Array<OrderListItemDto>}
24
+ * @memberof GetAllOrders200Response
25
+ */
26
+ data: Array<OrderListItemDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllOrders200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllOrders200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllOrders200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllOrders200Response(value: object): value is GetAllOrders200Response;
44
+ export declare function GetAllOrders200ResponseFromJSON(json: any): GetAllOrders200Response;
45
+ export declare function GetAllOrders200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllOrders200Response;
46
+ export declare function GetAllOrders200ResponseToJSON(value?: GetAllOrders200Response | null): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GetAllOrders200ResponseToJSON = exports.GetAllOrders200ResponseFromJSONTyped = exports.GetAllOrders200ResponseFromJSON = exports.instanceOfGetAllOrders200Response = void 0;
17
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
18
+ var OrderListItemDto_1 = require("./OrderListItemDto");
19
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
20
+ /**
21
+ * Check if a given object implements the GetAllOrders200Response interface.
22
+ */
23
+ function instanceOfGetAllOrders200Response(value) {
24
+ if (!('data' in value) || value['data'] === undefined)
25
+ return false;
26
+ if (!('meta' in value) || value['meta'] === undefined)
27
+ return false;
28
+ if (!('links' in value) || value['links'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ exports.instanceOfGetAllOrders200Response = instanceOfGetAllOrders200Response;
33
+ function GetAllOrders200ResponseFromJSON(json) {
34
+ return GetAllOrders200ResponseFromJSONTyped(json, false);
35
+ }
36
+ exports.GetAllOrders200ResponseFromJSON = GetAllOrders200ResponseFromJSON;
37
+ function GetAllOrders200ResponseFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'data': (json['data'].map(OrderListItemDto_1.OrderListItemDtoFromJSON)),
43
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
44
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
45
+ };
46
+ }
47
+ exports.GetAllOrders200ResponseFromJSONTyped = GetAllOrders200ResponseFromJSONTyped;
48
+ function GetAllOrders200ResponseToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'data': (value['data'].map(OrderListItemDto_1.OrderListItemDtoToJSON)),
54
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
+ };
57
+ }
58
+ exports.GetAllOrders200ResponseToJSON = GetAllOrders200ResponseToJSON;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OrderListItemDtoBasePrice } from './OrderListItemDtoBasePrice';
13
+ import type { OrderListItemDtoDomainInformation } from './OrderListItemDtoDomainInformation';
14
+ import type { OrderListItemDtoBuyerInformation } from './OrderListItemDtoBuyerInformation';
15
+ import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface OrderListItemDto
20
+ */
21
+ export interface OrderListItemDto {
22
+ /**
23
+ * The order ID
24
+ * @type {object}
25
+ * @memberof OrderListItemDto
26
+ */
27
+ id: object;
28
+ /**
29
+ * The order status
30
+ * @type {string}
31
+ * @memberof OrderListItemDto
32
+ */
33
+ status: OrderListItemDtoStatusEnum;
34
+ /**
35
+ * The order creation date
36
+ * @type {Date}
37
+ * @memberof OrderListItemDto
38
+ */
39
+ createdAt: Date;
40
+ /**
41
+ * The order domain information
42
+ * @type {OrderListItemDtoDomainInformation}
43
+ * @memberof OrderListItemDto
44
+ */
45
+ domain: OrderListItemDtoDomainInformation;
46
+ /**
47
+ * The order seller information
48
+ * @type {OrderListItemDtoSellerAccount}
49
+ * @memberof OrderListItemDto
50
+ */
51
+ sellerAccount: OrderListItemDtoSellerAccount;
52
+ /**
53
+ * The order buyer information
54
+ * @type {OrderListItemDtoBuyerInformation}
55
+ * @memberof OrderListItemDto
56
+ */
57
+ buyerInformation: OrderListItemDtoBuyerInformation;
58
+ /**
59
+ *
60
+ * @type {OrderListItemDtoBasePrice}
61
+ * @memberof OrderListItemDto
62
+ */
63
+ basePrice: OrderListItemDtoBasePrice | null;
64
+ }
65
+ /**
66
+ * @export
67
+ */
68
+ export declare const OrderListItemDtoStatusEnum: {
69
+ readonly OPEN: "open";
70
+ readonly PAID: "paid";
71
+ };
72
+ export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof typeof OrderListItemDtoStatusEnum];
73
+ /**
74
+ * Check if a given object implements the OrderListItemDto interface.
75
+ */
76
+ export declare function instanceOfOrderListItemDto(value: object): value is OrderListItemDto;
77
+ export declare function OrderListItemDtoFromJSON(json: any): OrderListItemDto;
78
+ export declare function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDto;
79
+ export declare function OrderListItemDtoToJSON(value?: OrderListItemDto | null): any;
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderListItemDtoToJSON = exports.OrderListItemDtoFromJSONTyped = exports.OrderListItemDtoFromJSON = exports.instanceOfOrderListItemDto = exports.OrderListItemDtoStatusEnum = void 0;
17
+ var OrderListItemDtoBasePrice_1 = require("./OrderListItemDtoBasePrice");
18
+ var OrderListItemDtoDomainInformation_1 = require("./OrderListItemDtoDomainInformation");
19
+ var OrderListItemDtoBuyerInformation_1 = require("./OrderListItemDtoBuyerInformation");
20
+ var OrderListItemDtoSellerAccount_1 = require("./OrderListItemDtoSellerAccount");
21
+ /**
22
+ * @export
23
+ */
24
+ exports.OrderListItemDtoStatusEnum = {
25
+ OPEN: 'open',
26
+ PAID: 'paid'
27
+ };
28
+ /**
29
+ * Check if a given object implements the OrderListItemDto interface.
30
+ */
31
+ function instanceOfOrderListItemDto(value) {
32
+ if (!('id' in value) || value['id'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ if (!('domain' in value) || value['domain'] === undefined)
39
+ return false;
40
+ if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
41
+ return false;
42
+ if (!('buyerInformation' in value) || value['buyerInformation'] === undefined)
43
+ return false;
44
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ exports.instanceOfOrderListItemDto = instanceOfOrderListItemDto;
49
+ function OrderListItemDtoFromJSON(json) {
50
+ return OrderListItemDtoFromJSONTyped(json, false);
51
+ }
52
+ exports.OrderListItemDtoFromJSON = OrderListItemDtoFromJSON;
53
+ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'],
59
+ 'status': json['status'],
60
+ 'createdAt': (new Date(json['createdAt'])),
61
+ 'domain': (0, OrderListItemDtoDomainInformation_1.OrderListItemDtoDomainInformationFromJSON)(json['domain']),
62
+ 'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
63
+ 'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
64
+ 'basePrice': (0, OrderListItemDtoBasePrice_1.OrderListItemDtoBasePriceFromJSON)(json['basePrice']),
65
+ };
66
+ }
67
+ exports.OrderListItemDtoFromJSONTyped = OrderListItemDtoFromJSONTyped;
68
+ function OrderListItemDtoToJSON(value) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'id': value['id'],
74
+ 'status': value['status'],
75
+ 'createdAt': ((value['createdAt']).toISOString()),
76
+ 'domain': (0, OrderListItemDtoDomainInformation_1.OrderListItemDtoDomainInformationToJSON)(value['domain']),
77
+ 'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountToJSON)(value['sellerAccount']),
78
+ 'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
79
+ 'basePrice': (0, OrderListItemDtoBasePrice_1.OrderListItemDtoBasePriceToJSON)(value['basePrice']),
80
+ };
81
+ }
82
+ exports.OrderListItemDtoToJSON = OrderListItemDtoToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The order base price
14
+ * @export
15
+ * @interface OrderListItemDtoBasePrice
16
+ */
17
+ export interface OrderListItemDtoBasePrice {
18
+ /**
19
+ * Monetary amount, represented as an integer without scale/decimals.
20
+ * @type {number}
21
+ * @memberof OrderListItemDtoBasePrice
22
+ */
23
+ amount: number;
24
+ /**
25
+ * Three letter ISO currency code
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoBasePrice
28
+ */
29
+ currencyCode: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the OrderListItemDtoBasePrice interface.
33
+ */
34
+ export declare function instanceOfOrderListItemDtoBasePrice(value: object): value is OrderListItemDtoBasePrice;
35
+ export declare function OrderListItemDtoBasePriceFromJSON(json: any): OrderListItemDtoBasePrice;
36
+ export declare function OrderListItemDtoBasePriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBasePrice;
37
+ export declare function OrderListItemDtoBasePriceToJSON(value?: OrderListItemDtoBasePrice | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderListItemDtoBasePriceToJSON = exports.OrderListItemDtoBasePriceFromJSONTyped = exports.OrderListItemDtoBasePriceFromJSON = exports.instanceOfOrderListItemDtoBasePrice = void 0;
17
+ /**
18
+ * Check if a given object implements the OrderListItemDtoBasePrice interface.
19
+ */
20
+ function instanceOfOrderListItemDtoBasePrice(value) {
21
+ if (!('amount' in value) || value['amount'] === undefined)
22
+ return false;
23
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfOrderListItemDtoBasePrice = instanceOfOrderListItemDtoBasePrice;
28
+ function OrderListItemDtoBasePriceFromJSON(json) {
29
+ return OrderListItemDtoBasePriceFromJSONTyped(json, false);
30
+ }
31
+ exports.OrderListItemDtoBasePriceFromJSON = OrderListItemDtoBasePriceFromJSON;
32
+ function OrderListItemDtoBasePriceFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'amount': json['amount'],
38
+ 'currencyCode': json['currencyCode'],
39
+ };
40
+ }
41
+ exports.OrderListItemDtoBasePriceFromJSONTyped = OrderListItemDtoBasePriceFromJSONTyped;
42
+ function OrderListItemDtoBasePriceToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'amount': value['amount'],
48
+ 'currencyCode': value['currencyCode'],
49
+ };
50
+ }
51
+ exports.OrderListItemDtoBasePriceToJSON = OrderListItemDtoBasePriceToJSON;
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrderListItemDtoBuyerInformation
16
+ */
17
+ export interface OrderListItemDtoBuyerInformation {
18
+ /**
19
+ * The order buyer first name
20
+ * @type {string}
21
+ * @memberof OrderListItemDtoBuyerInformation
22
+ */
23
+ firstname: string;
24
+ /**
25
+ * The order buyer last name
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoBuyerInformation
28
+ */
29
+ lastname: string;
30
+ /**
31
+ * The order buyer email
32
+ * @type {string}
33
+ * @memberof OrderListItemDtoBuyerInformation
34
+ */
35
+ email: string;
36
+ /**
37
+ * The order buyer phone
38
+ * @type {string}
39
+ * @memberof OrderListItemDtoBuyerInformation
40
+ */
41
+ phone: string;
42
+ /**
43
+ * The order buyer country
44
+ * @type {string}
45
+ * @memberof OrderListItemDtoBuyerInformation
46
+ */
47
+ country: string;
48
+ /**
49
+ * The order buyer city
50
+ * @type {string}
51
+ * @memberof OrderListItemDtoBuyerInformation
52
+ */
53
+ city: string;
54
+ /**
55
+ * The order buyer postal code
56
+ * @type {string}
57
+ * @memberof OrderListItemDtoBuyerInformation
58
+ */
59
+ postalCode: string;
60
+ /**
61
+ * The order buyer address
62
+ * @type {string}
63
+ * @memberof OrderListItemDtoBuyerInformation
64
+ */
65
+ address: string;
66
+ /**
67
+ * The order buyer company name
68
+ * @type {string}
69
+ * @memberof OrderListItemDtoBuyerInformation
70
+ */
71
+ companyName: string | null;
72
+ /**
73
+ * The order buyer company VAT number
74
+ * @type {string}
75
+ * @memberof OrderListItemDtoBuyerInformation
76
+ */
77
+ companyVatNumber: string | null;
78
+ }
79
+ /**
80
+ * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
81
+ */
82
+ export declare function instanceOfOrderListItemDtoBuyerInformation(value: object): value is OrderListItemDtoBuyerInformation;
83
+ export declare function OrderListItemDtoBuyerInformationFromJSON(json: any): OrderListItemDtoBuyerInformation;
84
+ export declare function OrderListItemDtoBuyerInformationFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoBuyerInformation;
85
+ export declare function OrderListItemDtoBuyerInformationToJSON(value?: OrderListItemDtoBuyerInformation | null): any;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrderListItemDtoBuyerInformationToJSON = exports.OrderListItemDtoBuyerInformationFromJSONTyped = exports.OrderListItemDtoBuyerInformationFromJSON = exports.instanceOfOrderListItemDtoBuyerInformation = void 0;
17
+ /**
18
+ * Check if a given object implements the OrderListItemDtoBuyerInformation interface.
19
+ */
20
+ function instanceOfOrderListItemDtoBuyerInformation(value) {
21
+ if (!('firstname' in value) || value['firstname'] === undefined)
22
+ return false;
23
+ if (!('lastname' in value) || value['lastname'] === undefined)
24
+ return false;
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('phone' in value) || value['phone'] === undefined)
28
+ return false;
29
+ if (!('country' in value) || value['country'] === undefined)
30
+ return false;
31
+ if (!('city' in value) || value['city'] === undefined)
32
+ return false;
33
+ if (!('postalCode' in value) || value['postalCode'] === undefined)
34
+ return false;
35
+ if (!('address' in value) || value['address'] === undefined)
36
+ return false;
37
+ if (!('companyName' in value) || value['companyName'] === undefined)
38
+ return false;
39
+ if (!('companyVatNumber' in value) || value['companyVatNumber'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ exports.instanceOfOrderListItemDtoBuyerInformation = instanceOfOrderListItemDtoBuyerInformation;
44
+ function OrderListItemDtoBuyerInformationFromJSON(json) {
45
+ return OrderListItemDtoBuyerInformationFromJSONTyped(json, false);
46
+ }
47
+ exports.OrderListItemDtoBuyerInformationFromJSON = OrderListItemDtoBuyerInformationFromJSON;
48
+ function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'firstname': json['firstname'],
54
+ 'lastname': json['lastname'],
55
+ 'email': json['email'],
56
+ 'phone': json['phone'],
57
+ 'country': json['country'],
58
+ 'city': json['city'],
59
+ 'postalCode': json['postalCode'],
60
+ 'address': json['address'],
61
+ 'companyName': json['companyName'],
62
+ 'companyVatNumber': json['companyVatNumber'],
63
+ };
64
+ }
65
+ exports.OrderListItemDtoBuyerInformationFromJSONTyped = OrderListItemDtoBuyerInformationFromJSONTyped;
66
+ function OrderListItemDtoBuyerInformationToJSON(value) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'firstname': value['firstname'],
72
+ 'lastname': value['lastname'],
73
+ 'email': value['email'],
74
+ 'phone': value['phone'],
75
+ 'country': value['country'],
76
+ 'city': value['city'],
77
+ 'postalCode': value['postalCode'],
78
+ 'address': value['address'],
79
+ 'companyName': value['companyName'],
80
+ 'companyVatNumber': value['companyVatNumber'],
81
+ };
82
+ }
83
+ exports.OrderListItemDtoBuyerInformationToJSON = OrderListItemDtoBuyerInformationToJSON;