@randock/nameshift-api-client 0.0.105 → 0.0.107

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 (30) hide show
  1. package/.openapi-generator/FILES +5 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +3 -3
  4. package/dist/apis/AdminApi.d.ts +15 -1
  5. package/dist/apis/AdminApi.js +63 -0
  6. package/dist/models/GetAllOwnedDomains200Response.d.ts +46 -0
  7. package/dist/models/GetAllOwnedDomains200Response.js +57 -0
  8. package/dist/models/InvoiceItemDto.d.ts +69 -0
  9. package/dist/models/{OrderItemDto.js → InvoiceItemDto.js} +13 -13
  10. package/dist/models/{OrderItemTaxDto.d.ts → InvoiceItemTaxDto.d.ts} +14 -14
  11. package/dist/models/{OrderItemTaxDto.js → InvoiceItemTaxDto.js} +12 -12
  12. package/dist/models/InvoiceTransactionDto.d.ts +50 -0
  13. package/dist/models/{OrderTransactionDto.js → InvoiceTransactionDto.js} +12 -12
  14. package/dist/models/OrderDto.d.ts +6 -6
  15. package/dist/models/OrderDto.js +6 -6
  16. package/dist/models/OwnedDomainDto.d.ts +103 -0
  17. package/dist/models/OwnedDomainDto.js +99 -0
  18. package/dist/models/index.d.ts +5 -3
  19. package/dist/models/index.js +5 -3
  20. package/package.json +1 -1
  21. package/src/apis/AdminApi.ts +60 -0
  22. package/src/models/GetAllOwnedDomains200Response.ts +98 -0
  23. package/src/models/{OrderItemDto.ts → InvoiceItemDto.ts} +24 -24
  24. package/src/models/{OrderItemTaxDto.ts → InvoiceItemTaxDto.ts} +15 -15
  25. package/src/models/{OrderTransactionDto.ts → InvoiceTransactionDto.ts} +14 -14
  26. package/src/models/OrderDto.ts +19 -19
  27. package/src/models/OwnedDomainDto.ts +164 -0
  28. package/src/models/index.ts +5 -3
  29. package/dist/models/OrderItemDto.d.ts +0 -69
  30. package/dist/models/OrderTransactionDto.d.ts +0 -50
@@ -63,6 +63,7 @@ src/models/DomainTransferOrderDto.ts
63
63
  src/models/ForgotPasswordRequestInput.ts
64
64
  src/models/GetAllDomainTransfers200Response.ts
65
65
  src/models/GetAllOrders200Response.ts
66
+ src/models/GetAllOwnedDomains200Response.ts
66
67
  src/models/GetBuyerInvoices200Response.ts
67
68
  src/models/GetBuyerLeads200Response.ts
68
69
  src/models/GetBuyerTransfers200Response.ts
@@ -76,6 +77,9 @@ src/models/IntersectionLeadDtoWithLeadDetailsDto.ts
76
77
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
77
78
  src/models/InvoiceDomainDto.ts
78
79
  src/models/InvoiceDto.ts
80
+ src/models/InvoiceItemDto.ts
81
+ src/models/InvoiceItemTaxDto.ts
82
+ src/models/InvoiceTransactionDto.ts
79
83
  src/models/LeadDomainDto.ts
80
84
  src/models/LeadDto.ts
81
85
  src/models/LeadMessageData.ts
@@ -94,13 +98,11 @@ src/models/ObjectId.ts
94
98
  src/models/OrderCompanyInfoDto.ts
95
99
  src/models/OrderCompanyTaxIdDto.ts
96
100
  src/models/OrderDto.ts
97
- src/models/OrderItemDto.ts
98
- src/models/OrderItemTaxDto.ts
99
101
  src/models/OrderListItemDto.ts
100
102
  src/models/OrderListItemDtoBuyerInformation.ts
101
103
  src/models/OrderListItemDtoDomainInformation.ts
102
104
  src/models/OrderListItemDtoSellerAccount.ts
103
- src/models/OrderTransactionDto.ts
105
+ src/models/OwnedDomainDto.ts
104
106
  src/models/PaginateResponse.ts
105
107
  src/models/PaginateResponseLinks.ts
106
108
  src/models/PaginateResponseMeta.ts
@@ -1 +1 @@
1
- 7.8.0
1
+ 7.9.0-SNAPSHOT
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.105
1
+ ## @randock/nameshift-api-client@0.0.107
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.105 --save
39
+ npm install @randock/nameshift-api-client@0.0.107 --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
- b041fe43ddb0576af663c54c77fd961eccbbe52ef5a847864fcb805a3af6b599b7c1233dfe0796c550906ec4c797ee69
47
+ 369eda823d1ecbaa04dc8f6557f855052303eaa31ad3299be303825cd505525ca8c5ecdbc98e7d5de5a0f093d0800c5d
@@ -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, DomainTransferDetailsDto, GetAllOrders200Response, ListAccounts200Response } from '../models/index';
13
+ import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -35,6 +35,12 @@ export interface AdminApiGetAllOrdersRequest {
35
35
  limit?: number;
36
36
  sortBy?: Array<string>;
37
37
  }
38
+ export interface AdminApiGetAllOwnedDomainsRequest {
39
+ filter?: object;
40
+ page?: number;
41
+ limit?: number;
42
+ sortBy?: Array<string>;
43
+ }
38
44
  export interface AdminApiListAccountsRequest {
39
45
  filter?: object;
40
46
  page?: number;
@@ -85,6 +91,14 @@ export declare class AdminApi extends runtime.BaseAPI {
85
91
  *
86
92
  */
87
93
  getAllOrders(requestParameters?: AdminApiGetAllOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOrders200Response>;
94
+ /**
95
+ *
96
+ */
97
+ getAllOwnedDomainsRaw(requestParameters: AdminApiGetAllOwnedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAllOwnedDomains200Response>>;
98
+ /**
99
+ *
100
+ */
101
+ getAllOwnedDomains(requestParameters?: AdminApiGetAllOwnedDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllOwnedDomains200Response>;
88
102
  /**
89
103
  *
90
104
  */
@@ -367,6 +367,69 @@ var AdminApi = /** @class */ (function (_super) {
367
367
  });
368
368
  });
369
369
  };
370
+ /**
371
+ *
372
+ */
373
+ AdminApi.prototype.getAllOwnedDomainsRaw = function (requestParameters, initOverrides) {
374
+ return __awaiter(this, void 0, void 0, function () {
375
+ var queryParameters, headerParameters, token, tokenString, response;
376
+ return __generator(this, function (_a) {
377
+ switch (_a.label) {
378
+ case 0:
379
+ queryParameters = {};
380
+ if (requestParameters['filter'] != null) {
381
+ queryParameters['filter'] = requestParameters['filter'];
382
+ }
383
+ if (requestParameters['page'] != null) {
384
+ queryParameters['page'] = requestParameters['page'];
385
+ }
386
+ if (requestParameters['limit'] != null) {
387
+ queryParameters['limit'] = requestParameters['limit'];
388
+ }
389
+ if (requestParameters['sortBy'] != null) {
390
+ queryParameters['sortBy'] = requestParameters['sortBy'];
391
+ }
392
+ headerParameters = {};
393
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
394
+ token = this.configuration.accessToken;
395
+ return [4 /*yield*/, token("bearer", [])];
396
+ case 1:
397
+ tokenString = _a.sent();
398
+ if (tokenString) {
399
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
400
+ }
401
+ _a.label = 2;
402
+ case 2: return [4 /*yield*/, this.request({
403
+ path: "/admin/owned-domains",
404
+ method: 'GET',
405
+ headers: headerParameters,
406
+ query: queryParameters,
407
+ }, initOverrides)];
408
+ case 3:
409
+ response = _a.sent();
410
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetAllOwnedDomains200ResponseFromJSON)(jsonValue); })];
411
+ }
412
+ });
413
+ });
414
+ };
415
+ /**
416
+ *
417
+ */
418
+ AdminApi.prototype.getAllOwnedDomains = function () {
419
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
420
+ var response;
421
+ if (requestParameters === void 0) { requestParameters = {}; }
422
+ return __generator(this, function (_a) {
423
+ switch (_a.label) {
424
+ case 0: return [4 /*yield*/, this.getAllOwnedDomainsRaw(requestParameters, initOverrides)];
425
+ case 1:
426
+ response = _a.sent();
427
+ return [4 /*yield*/, response.value()];
428
+ case 2: return [2 /*return*/, _a.sent()];
429
+ }
430
+ });
431
+ });
432
+ };
370
433
  /**
371
434
  *
372
435
  */
@@ -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 { OwnedDomainDto } from './OwnedDomainDto';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetAllOwnedDomains200Response
19
+ */
20
+ export interface GetAllOwnedDomains200Response {
21
+ /**
22
+ *
23
+ * @type {Array<OwnedDomainDto>}
24
+ * @memberof GetAllOwnedDomains200Response
25
+ */
26
+ data: Array<OwnedDomainDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof GetAllOwnedDomains200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof GetAllOwnedDomains200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the GetAllOwnedDomains200Response interface.
42
+ */
43
+ export declare function instanceOfGetAllOwnedDomains200Response(value: object): value is GetAllOwnedDomains200Response;
44
+ export declare function GetAllOwnedDomains200ResponseFromJSON(json: any): GetAllOwnedDomains200Response;
45
+ export declare function GetAllOwnedDomains200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllOwnedDomains200Response;
46
+ export declare function GetAllOwnedDomains200ResponseToJSON(value?: GetAllOwnedDomains200Response | null): any;
@@ -0,0 +1,57 @@
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.instanceOfGetAllOwnedDomains200Response = instanceOfGetAllOwnedDomains200Response;
17
+ exports.GetAllOwnedDomains200ResponseFromJSON = GetAllOwnedDomains200ResponseFromJSON;
18
+ exports.GetAllOwnedDomains200ResponseFromJSONTyped = GetAllOwnedDomains200ResponseFromJSONTyped;
19
+ exports.GetAllOwnedDomains200ResponseToJSON = GetAllOwnedDomains200ResponseToJSON;
20
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
21
+ var OwnedDomainDto_1 = require("./OwnedDomainDto");
22
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
23
+ /**
24
+ * Check if a given object implements the GetAllOwnedDomains200Response interface.
25
+ */
26
+ function instanceOfGetAllOwnedDomains200Response(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ if (!('links' in value) || value['links'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GetAllOwnedDomains200ResponseFromJSON(json) {
36
+ return GetAllOwnedDomains200ResponseFromJSONTyped(json, false);
37
+ }
38
+ function GetAllOwnedDomains200ResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'data': (json['data'].map(OwnedDomainDto_1.OwnedDomainDtoFromJSON)),
44
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
45
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
46
+ };
47
+ }
48
+ function GetAllOwnedDomains200ResponseToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'data': (value['data'].map(OwnedDomainDto_1.OwnedDomainDtoToJSON)),
54
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
55
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
56
+ };
57
+ }
@@ -0,0 +1,69 @@
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 { MoneyDto } from './MoneyDto';
13
+ import type { InvoiceItemTaxDto } from './InvoiceItemTaxDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface InvoiceItemDto
18
+ */
19
+ export interface InvoiceItemDto {
20
+ /**
21
+ * The uuid for this order.
22
+ * @type {string}
23
+ * @memberof InvoiceItemDto
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {object}
29
+ * @memberof InvoiceItemDto
30
+ */
31
+ orderId: object;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof InvoiceItemDto
36
+ */
37
+ description: string;
38
+ /**
39
+ *
40
+ * @type {MoneyDto}
41
+ * @memberof InvoiceItemDto
42
+ */
43
+ basePrice: MoneyDto;
44
+ /**
45
+ *
46
+ * @type {MoneyDto}
47
+ * @memberof InvoiceItemDto
48
+ */
49
+ totalPrice: MoneyDto;
50
+ /**
51
+ *
52
+ * @type {MoneyDto}
53
+ * @memberof InvoiceItemDto
54
+ */
55
+ totalTaxPrice: MoneyDto;
56
+ /**
57
+ *
58
+ * @type {Array<InvoiceItemTaxDto>}
59
+ * @memberof InvoiceItemDto
60
+ */
61
+ taxes: Array<InvoiceItemTaxDto>;
62
+ }
63
+ /**
64
+ * Check if a given object implements the InvoiceItemDto interface.
65
+ */
66
+ export declare function instanceOfInvoiceItemDto(value: object): value is InvoiceItemDto;
67
+ export declare function InvoiceItemDtoFromJSON(json: any): InvoiceItemDto;
68
+ export declare function InvoiceItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemDto;
69
+ export declare function InvoiceItemDtoToJSON(value?: InvoiceItemDto | null): any;
@@ -13,16 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfOrderItemDto = instanceOfOrderItemDto;
17
- exports.OrderItemDtoFromJSON = OrderItemDtoFromJSON;
18
- exports.OrderItemDtoFromJSONTyped = OrderItemDtoFromJSONTyped;
19
- exports.OrderItemDtoToJSON = OrderItemDtoToJSON;
16
+ exports.instanceOfInvoiceItemDto = instanceOfInvoiceItemDto;
17
+ exports.InvoiceItemDtoFromJSON = InvoiceItemDtoFromJSON;
18
+ exports.InvoiceItemDtoFromJSONTyped = InvoiceItemDtoFromJSONTyped;
19
+ exports.InvoiceItemDtoToJSON = InvoiceItemDtoToJSON;
20
20
  var MoneyDto_1 = require("./MoneyDto");
21
- var OrderItemTaxDto_1 = require("./OrderItemTaxDto");
21
+ var InvoiceItemTaxDto_1 = require("./InvoiceItemTaxDto");
22
22
  /**
23
- * Check if a given object implements the OrderItemDto interface.
23
+ * Check if a given object implements the InvoiceItemDto interface.
24
24
  */
25
- function instanceOfOrderItemDto(value) {
25
+ function instanceOfInvoiceItemDto(value) {
26
26
  if (!('id' in value) || value['id'] === undefined)
27
27
  return false;
28
28
  if (!('orderId' in value) || value['orderId'] === undefined)
@@ -39,10 +39,10 @@ function instanceOfOrderItemDto(value) {
39
39
  return false;
40
40
  return true;
41
41
  }
42
- function OrderItemDtoFromJSON(json) {
43
- return OrderItemDtoFromJSONTyped(json, false);
42
+ function InvoiceItemDtoFromJSON(json) {
43
+ return InvoiceItemDtoFromJSONTyped(json, false);
44
44
  }
45
- function OrderItemDtoFromJSONTyped(json, ignoreDiscriminator) {
45
+ function InvoiceItemDtoFromJSONTyped(json, ignoreDiscriminator) {
46
46
  if (json == null) {
47
47
  return json;
48
48
  }
@@ -53,10 +53,10 @@ function OrderItemDtoFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
54
54
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
55
55
  'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
56
- 'taxes': (json['taxes'].map(OrderItemTaxDto_1.OrderItemTaxDtoFromJSON)),
56
+ 'taxes': (json['taxes'].map(InvoiceItemTaxDto_1.InvoiceItemTaxDtoFromJSON)),
57
57
  };
58
58
  }
59
- function OrderItemDtoToJSON(value) {
59
+ function InvoiceItemDtoToJSON(value) {
60
60
  if (value == null) {
61
61
  return value;
62
62
  }
@@ -67,6 +67,6 @@ function OrderItemDtoToJSON(value) {
67
67
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
68
68
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
69
69
  'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
70
- 'taxes': (value['taxes'].map(OrderItemTaxDto_1.OrderItemTaxDtoToJSON)),
70
+ 'taxes': (value['taxes'].map(InvoiceItemTaxDto_1.InvoiceItemTaxDtoToJSON)),
71
71
  };
72
72
  }
@@ -13,38 +13,38 @@ import type { MoneyDto } from './MoneyDto';
13
13
  /**
14
14
  *
15
15
  * @export
16
- * @interface OrderItemTaxDto
16
+ * @interface InvoiceItemTaxDto
17
17
  */
18
- export interface OrderItemTaxDto {
18
+ export interface InvoiceItemTaxDto {
19
19
  /**
20
20
  *
21
21
  * @type {string}
22
- * @memberof OrderItemTaxDto
22
+ * @memberof InvoiceItemTaxDto
23
23
  */
24
- reason: OrderItemTaxDtoReasonEnum;
24
+ reason: InvoiceItemTaxDtoReasonEnum;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
- * @memberof OrderItemTaxDto
28
+ * @memberof InvoiceItemTaxDto
29
29
  */
30
30
  type: string;
31
31
  /**
32
32
  *
33
33
  * @type {MoneyDto}
34
- * @memberof OrderItemTaxDto
34
+ * @memberof InvoiceItemTaxDto
35
35
  */
36
36
  price: MoneyDto;
37
37
  /**
38
38
  *
39
39
  * @type {number}
40
- * @memberof OrderItemTaxDto
40
+ * @memberof InvoiceItemTaxDto
41
41
  */
42
42
  percentage: number;
43
43
  }
44
44
  /**
45
45
  * @export
46
46
  */
47
- export declare const OrderItemTaxDtoReasonEnum: {
47
+ export declare const InvoiceItemTaxDtoReasonEnum: {
48
48
  readonly CUSTOMER_EXEMPT: "customer_exempt";
49
49
  readonly NOT_COLLECTING: "not_collecting";
50
50
  readonly NOT_SUBJECT_TO_TAX: "not_subject_to_tax";
@@ -61,11 +61,11 @@ export declare const OrderItemTaxDtoReasonEnum: {
61
61
  readonly TAXABLE_BASIS_REDUCED: "taxable_basis_reduced";
62
62
  readonly ZERO_RATED: "zero_rated";
63
63
  };
64
- export type OrderItemTaxDtoReasonEnum = typeof OrderItemTaxDtoReasonEnum[keyof typeof OrderItemTaxDtoReasonEnum];
64
+ export type InvoiceItemTaxDtoReasonEnum = typeof InvoiceItemTaxDtoReasonEnum[keyof typeof InvoiceItemTaxDtoReasonEnum];
65
65
  /**
66
- * Check if a given object implements the OrderItemTaxDto interface.
66
+ * Check if a given object implements the InvoiceItemTaxDto interface.
67
67
  */
68
- export declare function instanceOfOrderItemTaxDto(value: object): value is OrderItemTaxDto;
69
- export declare function OrderItemTaxDtoFromJSON(json: any): OrderItemTaxDto;
70
- export declare function OrderItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemTaxDto;
71
- export declare function OrderItemTaxDtoToJSON(value?: OrderItemTaxDto | null): any;
68
+ export declare function instanceOfInvoiceItemTaxDto(value: object): value is InvoiceItemTaxDto;
69
+ export declare function InvoiceItemTaxDtoFromJSON(json: any): InvoiceItemTaxDto;
70
+ export declare function InvoiceItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceItemTaxDto;
71
+ export declare function InvoiceItemTaxDtoToJSON(value?: InvoiceItemTaxDto | null): any;
@@ -13,16 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderItemTaxDtoReasonEnum = void 0;
17
- exports.instanceOfOrderItemTaxDto = instanceOfOrderItemTaxDto;
18
- exports.OrderItemTaxDtoFromJSON = OrderItemTaxDtoFromJSON;
19
- exports.OrderItemTaxDtoFromJSONTyped = OrderItemTaxDtoFromJSONTyped;
20
- exports.OrderItemTaxDtoToJSON = OrderItemTaxDtoToJSON;
16
+ exports.InvoiceItemTaxDtoReasonEnum = void 0;
17
+ exports.instanceOfInvoiceItemTaxDto = instanceOfInvoiceItemTaxDto;
18
+ exports.InvoiceItemTaxDtoFromJSON = InvoiceItemTaxDtoFromJSON;
19
+ exports.InvoiceItemTaxDtoFromJSONTyped = InvoiceItemTaxDtoFromJSONTyped;
20
+ exports.InvoiceItemTaxDtoToJSON = InvoiceItemTaxDtoToJSON;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
22
  /**
23
23
  * @export
24
24
  */
25
- exports.OrderItemTaxDtoReasonEnum = {
25
+ exports.InvoiceItemTaxDtoReasonEnum = {
26
26
  CUSTOMER_EXEMPT: 'customer_exempt',
27
27
  NOT_COLLECTING: 'not_collecting',
28
28
  NOT_SUBJECT_TO_TAX: 'not_subject_to_tax',
@@ -40,9 +40,9 @@ exports.OrderItemTaxDtoReasonEnum = {
40
40
  ZERO_RATED: 'zero_rated'
41
41
  };
42
42
  /**
43
- * Check if a given object implements the OrderItemTaxDto interface.
43
+ * Check if a given object implements the InvoiceItemTaxDto interface.
44
44
  */
45
- function instanceOfOrderItemTaxDto(value) {
45
+ function instanceOfInvoiceItemTaxDto(value) {
46
46
  if (!('reason' in value) || value['reason'] === undefined)
47
47
  return false;
48
48
  if (!('type' in value) || value['type'] === undefined)
@@ -53,10 +53,10 @@ function instanceOfOrderItemTaxDto(value) {
53
53
  return false;
54
54
  return true;
55
55
  }
56
- function OrderItemTaxDtoFromJSON(json) {
57
- return OrderItemTaxDtoFromJSONTyped(json, false);
56
+ function InvoiceItemTaxDtoFromJSON(json) {
57
+ return InvoiceItemTaxDtoFromJSONTyped(json, false);
58
58
  }
59
- function OrderItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
59
+ function InvoiceItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
60
60
  if (json == null) {
61
61
  return json;
62
62
  }
@@ -67,7 +67,7 @@ function OrderItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'percentage': json['percentage'],
68
68
  };
69
69
  }
70
- function OrderItemTaxDtoToJSON(value) {
70
+ function InvoiceItemTaxDtoToJSON(value) {
71
71
  if (value == null) {
72
72
  return value;
73
73
  }
@@ -0,0 +1,50 @@
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 InvoiceTransactionDto
16
+ */
17
+ export interface InvoiceTransactionDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InvoiceTransactionDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InvoiceTransactionDto
28
+ */
29
+ gateway: InvoiceTransactionDtoGatewayEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InvoiceTransactionDto
34
+ */
35
+ gatewayTransferToken: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const InvoiceTransactionDtoGatewayEnum: {
41
+ readonly STRIPE: "stripe";
42
+ };
43
+ export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
44
+ /**
45
+ * Check if a given object implements the InvoiceTransactionDto interface.
46
+ */
47
+ export declare function instanceOfInvoiceTransactionDto(value: object): value is InvoiceTransactionDto;
48
+ export declare function InvoiceTransactionDtoFromJSON(json: any): InvoiceTransactionDto;
49
+ export declare function InvoiceTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransactionDto;
50
+ export declare function InvoiceTransactionDtoToJSON(value?: InvoiceTransactionDto | null): any;
@@ -13,21 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderTransactionDtoGatewayEnum = void 0;
17
- exports.instanceOfOrderTransactionDto = instanceOfOrderTransactionDto;
18
- exports.OrderTransactionDtoFromJSON = OrderTransactionDtoFromJSON;
19
- exports.OrderTransactionDtoFromJSONTyped = OrderTransactionDtoFromJSONTyped;
20
- exports.OrderTransactionDtoToJSON = OrderTransactionDtoToJSON;
16
+ exports.InvoiceTransactionDtoGatewayEnum = void 0;
17
+ exports.instanceOfInvoiceTransactionDto = instanceOfInvoiceTransactionDto;
18
+ exports.InvoiceTransactionDtoFromJSON = InvoiceTransactionDtoFromJSON;
19
+ exports.InvoiceTransactionDtoFromJSONTyped = InvoiceTransactionDtoFromJSONTyped;
20
+ exports.InvoiceTransactionDtoToJSON = InvoiceTransactionDtoToJSON;
21
21
  /**
22
22
  * @export
23
23
  */
24
- exports.OrderTransactionDtoGatewayEnum = {
24
+ exports.InvoiceTransactionDtoGatewayEnum = {
25
25
  STRIPE: 'stripe'
26
26
  };
27
27
  /**
28
- * Check if a given object implements the OrderTransactionDto interface.
28
+ * Check if a given object implements the InvoiceTransactionDto interface.
29
29
  */
30
- function instanceOfOrderTransactionDto(value) {
30
+ function instanceOfInvoiceTransactionDto(value) {
31
31
  if (!('id' in value) || value['id'] === undefined)
32
32
  return false;
33
33
  if (!('gateway' in value) || value['gateway'] === undefined)
@@ -36,10 +36,10 @@ function instanceOfOrderTransactionDto(value) {
36
36
  return false;
37
37
  return true;
38
38
  }
39
- function OrderTransactionDtoFromJSON(json) {
40
- return OrderTransactionDtoFromJSONTyped(json, false);
39
+ function InvoiceTransactionDtoFromJSON(json) {
40
+ return InvoiceTransactionDtoFromJSONTyped(json, false);
41
41
  }
42
- function OrderTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
42
+ function InvoiceTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
43
43
  if (json == null) {
44
44
  return json;
45
45
  }
@@ -49,7 +49,7 @@ function OrderTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
49
49
  'gatewayTransferToken': json['gatewayTransferToken'],
50
50
  };
51
51
  }
52
- function OrderTransactionDtoToJSON(value) {
52
+ function InvoiceTransactionDtoToJSON(value) {
53
53
  if (value == null) {
54
54
  return value;
55
55
  }
@@ -9,9 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { OrderItemDto } from './OrderItemDto';
12
+ import type { InvoiceItemDto } from './InvoiceItemDto';
13
+ import type { InvoiceTransactionDto } from './InvoiceTransactionDto';
13
14
  import type { MoneyDto } from './MoneyDto';
14
- import type { OrderTransactionDto } from './OrderTransactionDto';
15
15
  import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
16
16
  import type { AddressDto } from './AddressDto';
17
17
  /**
@@ -52,10 +52,10 @@ export interface OrderDto {
52
52
  totalTaxPrice: MoneyDto;
53
53
  /**
54
54
  *
55
- * @type {Array<OrderItemDto>}
55
+ * @type {Array<InvoiceItemDto>}
56
56
  * @memberof OrderDto
57
57
  */
58
- items: Array<OrderItemDto>;
58
+ items: Array<InvoiceItemDto>;
59
59
  /**
60
60
  *
61
61
  * @type {string}
@@ -100,10 +100,10 @@ export interface OrderDto {
100
100
  companyInfo: OrderCompanyInfoDto | null;
101
101
  /**
102
102
  *
103
- * @type {OrderTransactionDto}
103
+ * @type {InvoiceTransactionDto}
104
104
  * @memberof OrderDto
105
105
  */
106
- transaction: OrderTransactionDto;
106
+ transaction: InvoiceTransactionDto;
107
107
  }
108
108
  /**
109
109
  * @export