@randock/nameshift-api-client 0.0.100 → 0.0.102

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.
@@ -91,11 +91,12 @@ src/models/ObjectId.ts
91
91
  src/models/OrderCompanyInfoDto.ts
92
92
  src/models/OrderCompanyTaxIdDto.ts
93
93
  src/models/OrderDto.ts
94
+ src/models/OrderItemDto.ts
95
+ src/models/OrderItemTaxDto.ts
94
96
  src/models/OrderListItemDto.ts
95
97
  src/models/OrderListItemDtoBuyerInformation.ts
96
98
  src/models/OrderListItemDtoDomainInformation.ts
97
99
  src/models/OrderListItemDtoSellerAccount.ts
98
- src/models/OrderTaxDto.ts
99
100
  src/models/OrderTransactionDto.ts
100
101
  src/models/PaginateResponse.ts
101
102
  src/models/PaginateResponseLinks.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.100
1
+ ## @randock/nameshift-api-client@0.0.102
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.100 --save
39
+ npm install @randock/nameshift-api-client@0.0.102 --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
- d76bdca92abb38064d62315ee94e39223c304decb4d7818a2be73291cab20aa1b926a33fb94662bbadbf3ccbbcc1f7e7
47
+ ade875a6301f8e8cb960c606439fbd6c4e95c9f7e92e22329267f4c5264186079421f2addd7cc279eb40d809f1b2c157
@@ -99,7 +99,7 @@ var BuyersApi = /** @class */ (function (_super) {
99
99
  }
100
100
  _a.label = 2;
101
101
  case 2: return [4 /*yield*/, this.request({
102
- path: "/buyers/private/lead/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
102
+ path: "/buyers/private/leads/{leadId}/status/accept".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
103
103
  method: 'PATCH',
104
104
  headers: headerParameters,
105
105
  query: queryParameters,
@@ -154,7 +154,7 @@ var BuyersApi = /** @class */ (function (_super) {
154
154
  }
155
155
  _a.label = 2;
156
156
  case 2: return [4 /*yield*/, this.request({
157
- path: "/buyers/private/lead/{leadId}/messages/read".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
157
+ path: "/buyers/private/leads/{leadId}/messages/read".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
158
158
  method: 'POST',
159
159
  headers: headerParameters,
160
160
  query: queryParameters,
@@ -260,7 +260,7 @@ var BuyersApi = /** @class */ (function (_super) {
260
260
  }
261
261
  _a.label = 2;
262
262
  case 2: return [4 /*yield*/, this.request({
263
- path: "/buyers/private/lead/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
263
+ path: "/buyers/private/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
264
264
  method: 'POST',
265
265
  headers: headerParameters,
266
266
  query: queryParameters,
@@ -314,7 +314,7 @@ var BuyersApi = /** @class */ (function (_super) {
314
314
  }
315
315
  _a.label = 2;
316
316
  case 2: return [4 /*yield*/, this.request({
317
- path: "/buyers/private/lead/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
317
+ path: "/buyers/private/leads/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
318
318
  method: 'GET',
319
319
  headers: headerParameters,
320
320
  query: queryParameters,
@@ -367,7 +367,7 @@ var BuyersApi = /** @class */ (function (_super) {
367
367
  }
368
368
  _a.label = 2;
369
369
  case 2: return [4 /*yield*/, this.request({
370
- path: "/buyers/private/lead/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
370
+ path: "/buyers/private/leads/{leadId}/messages".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
371
371
  method: 'GET',
372
372
  headers: headerParameters,
373
373
  query: queryParameters,
@@ -659,7 +659,7 @@ var BuyersApi = /** @class */ (function (_super) {
659
659
  }
660
660
  _a.label = 2;
661
661
  case 2: return [4 /*yield*/, this.request({
662
- path: "/buyers/private/lead/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
662
+ path: "/buyers/private/leads/{leadId}/offer".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
663
663
  method: 'PUT',
664
664
  headers: headerParameters,
665
665
  query: queryParameters,
@@ -65,6 +65,7 @@ export interface BuyerDomainTransferListItemDto {
65
65
  export declare const BuyerDomainTransferListItemDtoOrderStatusEnum: {
66
66
  readonly OPEN: "open";
67
67
  readonly PAID: "paid";
68
+ readonly CANCELLED: "cancelled";
68
69
  };
69
70
  export type BuyerDomainTransferListItemDtoOrderStatusEnum = typeof BuyerDomainTransferListItemDtoOrderStatusEnum[keyof typeof BuyerDomainTransferListItemDtoOrderStatusEnum];
70
71
  /**
@@ -24,7 +24,8 @@ var BuyerDomainTransferListItemDomainDto_1 = require("./BuyerDomainTransferListI
24
24
  */
25
25
  exports.BuyerDomainTransferListItemDtoOrderStatusEnum = {
26
26
  OPEN: 'open',
27
- PAID: 'paid'
27
+ PAID: 'paid',
28
+ CANCELLED: 'cancelled'
28
29
  };
29
30
  /**
30
31
  * @export
@@ -28,6 +28,7 @@ export interface ChangeOrderStatusInput {
28
28
  export declare const ChangeOrderStatusInputStatusEnum: {
29
29
  readonly OPEN: "open";
30
30
  readonly PAID: "paid";
31
+ readonly CANCELLED: "cancelled";
31
32
  };
32
33
  export type ChangeOrderStatusInputStatusEnum = typeof ChangeOrderStatusInputStatusEnum[keyof typeof ChangeOrderStatusInputStatusEnum];
33
34
  /**
@@ -23,7 +23,8 @@ exports.ChangeOrderStatusInputToJSON = ChangeOrderStatusInputToJSON;
23
23
  */
24
24
  exports.ChangeOrderStatusInputStatusEnum = {
25
25
  OPEN: 'open',
26
- PAID: 'paid'
26
+ PAID: 'paid',
27
+ CANCELLED: 'cancelled'
27
28
  };
28
29
  /**
29
30
  * Check if a given object implements the ChangeOrderStatusInput interface.
@@ -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
13
  import type { MoneyDto } from './MoneyDto';
13
14
  import type { OrderTransactionDto } from './OrderTransactionDto';
14
- import type { OrderTaxDto } from './OrderTaxDto';
15
15
  import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
16
16
  import type { AddressDto } from './AddressDto';
17
17
  /**
@@ -46,10 +46,16 @@ export interface OrderDto {
46
46
  totalPrice: MoneyDto;
47
47
  /**
48
48
  *
49
- * @type {Array<OrderTaxDto>}
49
+ * @type {MoneyDto}
50
+ * @memberof OrderDto
51
+ */
52
+ totalTaxPrice: MoneyDto;
53
+ /**
54
+ *
55
+ * @type {Array<OrderItemDto>}
50
56
  * @memberof OrderDto
51
57
  */
52
- taxes: Array<OrderTaxDto>;
58
+ items: Array<OrderItemDto>;
53
59
  /**
54
60
  *
55
61
  * @type {string}
@@ -105,6 +111,7 @@ export interface OrderDto {
105
111
  export declare const OrderDtoStatusEnum: {
106
112
  readonly OPEN: "open";
107
113
  readonly PAID: "paid";
114
+ readonly CANCELLED: "cancelled";
108
115
  };
109
116
  export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
110
117
  /**
@@ -18,9 +18,9 @@ exports.instanceOfOrderDto = instanceOfOrderDto;
18
18
  exports.OrderDtoFromJSON = OrderDtoFromJSON;
19
19
  exports.OrderDtoFromJSONTyped = OrderDtoFromJSONTyped;
20
20
  exports.OrderDtoToJSON = OrderDtoToJSON;
21
+ var OrderItemDto_1 = require("./OrderItemDto");
21
22
  var MoneyDto_1 = require("./MoneyDto");
22
23
  var OrderTransactionDto_1 = require("./OrderTransactionDto");
23
- var OrderTaxDto_1 = require("./OrderTaxDto");
24
24
  var OrderCompanyInfoDto_1 = require("./OrderCompanyInfoDto");
25
25
  var AddressDto_1 = require("./AddressDto");
26
26
  /**
@@ -28,7 +28,8 @@ var AddressDto_1 = require("./AddressDto");
28
28
  */
29
29
  exports.OrderDtoStatusEnum = {
30
30
  OPEN: 'open',
31
- PAID: 'paid'
31
+ PAID: 'paid',
32
+ CANCELLED: 'cancelled'
32
33
  };
33
34
  /**
34
35
  * Check if a given object implements the OrderDto interface.
@@ -42,7 +43,9 @@ function instanceOfOrderDto(value) {
42
43
  return false;
43
44
  if (!('totalPrice' in value) || value['totalPrice'] === undefined)
44
45
  return false;
45
- if (!('taxes' in value) || value['taxes'] === undefined)
46
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined)
47
+ return false;
48
+ if (!('items' in value) || value['items'] === undefined)
46
49
  return false;
47
50
  if (!('firstname' in value) || value['firstname'] === undefined)
48
51
  return false;
@@ -74,7 +77,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
74
77
  'status': json['status'],
75
78
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
76
79
  'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
77
- 'taxes': (json['taxes'].map(OrderTaxDto_1.OrderTaxDtoFromJSON)),
80
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
81
+ 'items': (json['items'].map(OrderItemDto_1.OrderItemDtoFromJSON)),
78
82
  'firstname': json['firstname'],
79
83
  'lastname': json['lastname'],
80
84
  'email': json['email'],
@@ -94,7 +98,8 @@ function OrderDtoToJSON(value) {
94
98
  'status': value['status'],
95
99
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
96
100
  'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
97
- 'taxes': (value['taxes'].map(OrderTaxDto_1.OrderTaxDtoToJSON)),
101
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
102
+ 'items': (value['items'].map(OrderItemDto_1.OrderItemDtoToJSON)),
98
103
  'firstname': value['firstname'],
99
104
  'lastname': value['lastname'],
100
105
  'email': value['email'],
@@ -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 { OrderItemTaxDto } from './OrderItemTaxDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface OrderItemDto
18
+ */
19
+ export interface OrderItemDto {
20
+ /**
21
+ * The uuid for this order.
22
+ * @type {string}
23
+ * @memberof OrderItemDto
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {object}
29
+ * @memberof OrderItemDto
30
+ */
31
+ orderId: object;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof OrderItemDto
36
+ */
37
+ description: string;
38
+ /**
39
+ *
40
+ * @type {MoneyDto}
41
+ * @memberof OrderItemDto
42
+ */
43
+ basePrice: MoneyDto;
44
+ /**
45
+ *
46
+ * @type {MoneyDto}
47
+ * @memberof OrderItemDto
48
+ */
49
+ totalPrice: MoneyDto;
50
+ /**
51
+ *
52
+ * @type {MoneyDto}
53
+ * @memberof OrderItemDto
54
+ */
55
+ totalTaxPrice: MoneyDto;
56
+ /**
57
+ *
58
+ * @type {Array<OrderItemTaxDto>}
59
+ * @memberof OrderItemDto
60
+ */
61
+ taxes: Array<OrderItemTaxDto>;
62
+ }
63
+ /**
64
+ * Check if a given object implements the OrderItemDto interface.
65
+ */
66
+ export declare function instanceOfOrderItemDto(value: object): value is OrderItemDto;
67
+ export declare function OrderItemDtoFromJSON(json: any): OrderItemDto;
68
+ export declare function OrderItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemDto;
69
+ export declare function OrderItemDtoToJSON(value?: OrderItemDto | null): any;
@@ -0,0 +1,72 @@
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.instanceOfOrderItemDto = instanceOfOrderItemDto;
17
+ exports.OrderItemDtoFromJSON = OrderItemDtoFromJSON;
18
+ exports.OrderItemDtoFromJSONTyped = OrderItemDtoFromJSONTyped;
19
+ exports.OrderItemDtoToJSON = OrderItemDtoToJSON;
20
+ var MoneyDto_1 = require("./MoneyDto");
21
+ var OrderItemTaxDto_1 = require("./OrderItemTaxDto");
22
+ /**
23
+ * Check if a given object implements the OrderItemDto interface.
24
+ */
25
+ function instanceOfOrderItemDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('orderId' in value) || value['orderId'] === undefined)
29
+ return false;
30
+ if (!('description' in value) || value['description'] === undefined)
31
+ return false;
32
+ if (!('basePrice' in value) || value['basePrice'] === undefined)
33
+ return false;
34
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined)
35
+ return false;
36
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined)
37
+ return false;
38
+ if (!('taxes' in value) || value['taxes'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function OrderItemDtoFromJSON(json) {
43
+ return OrderItemDtoFromJSONTyped(json, false);
44
+ }
45
+ function OrderItemDtoFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'],
51
+ 'orderId': json['orderId'],
52
+ 'description': json['description'],
53
+ 'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
54
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
55
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
56
+ 'taxes': (json['taxes'].map(OrderItemTaxDto_1.OrderItemTaxDtoFromJSON)),
57
+ };
58
+ }
59
+ function OrderItemDtoToJSON(value) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'orderId': value['orderId'],
66
+ 'description': value['description'],
67
+ 'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
68
+ 'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
69
+ 'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
70
+ 'taxes': (value['taxes'].map(OrderItemTaxDto_1.OrderItemTaxDtoToJSON)),
71
+ };
72
+ }
@@ -0,0 +1,71 @@
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
+ /**
14
+ *
15
+ * @export
16
+ * @interface OrderItemTaxDto
17
+ */
18
+ export interface OrderItemTaxDto {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof OrderItemTaxDto
23
+ */
24
+ reason: OrderItemTaxDtoReasonEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof OrderItemTaxDto
29
+ */
30
+ type: string;
31
+ /**
32
+ *
33
+ * @type {MoneyDto}
34
+ * @memberof OrderItemTaxDto
35
+ */
36
+ price: MoneyDto;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof OrderItemTaxDto
41
+ */
42
+ percentage: number;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const OrderItemTaxDtoReasonEnum: {
48
+ readonly CUSTOMER_EXEMPT: "customer_exempt";
49
+ readonly NOT_COLLECTING: "not_collecting";
50
+ readonly NOT_SUBJECT_TO_TAX: "not_subject_to_tax";
51
+ readonly NOT_SUPPORTED: "not_supported";
52
+ readonly PORTION_PRODUCT_EXEMPT: "portion_product_exempt";
53
+ readonly PORTION_REDUCED_RATED: "portion_reduced_rated";
54
+ readonly PORTION_STANDARD_RATED: "portion_standard_rated";
55
+ readonly PRODUCT_EXEMPT: "product_exempt";
56
+ readonly PRODUCT_EXEMPT_HOLIDAY: "product_exempt_holiday";
57
+ readonly PROPORTIONALLY_RATED: "proportionally_rated";
58
+ readonly REDUCED_RATED: "reduced_rated";
59
+ readonly REVERSE_CHARGE: "reverse_charge";
60
+ readonly STANDARD_RATED: "standard_rated";
61
+ readonly TAXABLE_BASIS_REDUCED: "taxable_basis_reduced";
62
+ readonly ZERO_RATED: "zero_rated";
63
+ };
64
+ export type OrderItemTaxDtoReasonEnum = typeof OrderItemTaxDtoReasonEnum[keyof typeof OrderItemTaxDtoReasonEnum];
65
+ /**
66
+ * Check if a given object implements the OrderItemTaxDto interface.
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;
@@ -0,0 +1,80 @@
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.OrderItemTaxDtoReasonEnum = void 0;
17
+ exports.instanceOfOrderItemTaxDto = instanceOfOrderItemTaxDto;
18
+ exports.OrderItemTaxDtoFromJSON = OrderItemTaxDtoFromJSON;
19
+ exports.OrderItemTaxDtoFromJSONTyped = OrderItemTaxDtoFromJSONTyped;
20
+ exports.OrderItemTaxDtoToJSON = OrderItemTaxDtoToJSON;
21
+ var MoneyDto_1 = require("./MoneyDto");
22
+ /**
23
+ * @export
24
+ */
25
+ exports.OrderItemTaxDtoReasonEnum = {
26
+ CUSTOMER_EXEMPT: 'customer_exempt',
27
+ NOT_COLLECTING: 'not_collecting',
28
+ NOT_SUBJECT_TO_TAX: 'not_subject_to_tax',
29
+ NOT_SUPPORTED: 'not_supported',
30
+ PORTION_PRODUCT_EXEMPT: 'portion_product_exempt',
31
+ PORTION_REDUCED_RATED: 'portion_reduced_rated',
32
+ PORTION_STANDARD_RATED: 'portion_standard_rated',
33
+ PRODUCT_EXEMPT: 'product_exempt',
34
+ PRODUCT_EXEMPT_HOLIDAY: 'product_exempt_holiday',
35
+ PROPORTIONALLY_RATED: 'proportionally_rated',
36
+ REDUCED_RATED: 'reduced_rated',
37
+ REVERSE_CHARGE: 'reverse_charge',
38
+ STANDARD_RATED: 'standard_rated',
39
+ TAXABLE_BASIS_REDUCED: 'taxable_basis_reduced',
40
+ ZERO_RATED: 'zero_rated'
41
+ };
42
+ /**
43
+ * Check if a given object implements the OrderItemTaxDto interface.
44
+ */
45
+ function instanceOfOrderItemTaxDto(value) {
46
+ if (!('reason' in value) || value['reason'] === undefined)
47
+ return false;
48
+ if (!('type' in value) || value['type'] === undefined)
49
+ return false;
50
+ if (!('price' in value) || value['price'] === undefined)
51
+ return false;
52
+ if (!('percentage' in value) || value['percentage'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function OrderItemTaxDtoFromJSON(json) {
57
+ return OrderItemTaxDtoFromJSONTyped(json, false);
58
+ }
59
+ function OrderItemTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'reason': json['reason'],
65
+ 'type': json['type'],
66
+ 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
67
+ 'percentage': json['percentage'],
68
+ };
69
+ }
70
+ function OrderItemTaxDtoToJSON(value) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'reason': value['reason'],
76
+ 'type': value['type'],
77
+ 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
78
+ 'percentage': value['percentage'],
79
+ };
80
+ }
@@ -68,6 +68,7 @@ export interface OrderListItemDto {
68
68
  export declare const OrderListItemDtoStatusEnum: {
69
69
  readonly OPEN: "open";
70
70
  readonly PAID: "paid";
71
+ readonly CANCELLED: "cancelled";
71
72
  };
72
73
  export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof typeof OrderListItemDtoStatusEnum];
73
74
  /**
@@ -27,7 +27,8 @@ var OrderListItemDtoSellerAccount_1 = require("./OrderListItemDtoSellerAccount")
27
27
  */
28
28
  exports.OrderListItemDtoStatusEnum = {
29
29
  OPEN: 'open',
30
- PAID: 'paid'
30
+ PAID: 'paid',
31
+ CANCELLED: 'cancelled'
31
32
  };
32
33
  /**
33
34
  * Check if a given object implements the OrderListItemDto interface.
@@ -71,11 +71,12 @@ export * from './ObjectId';
71
71
  export * from './OrderCompanyInfoDto';
72
72
  export * from './OrderCompanyTaxIdDto';
73
73
  export * from './OrderDto';
74
+ export * from './OrderItemDto';
75
+ export * from './OrderItemTaxDto';
74
76
  export * from './OrderListItemDto';
75
77
  export * from './OrderListItemDtoBuyerInformation';
76
78
  export * from './OrderListItemDtoDomainInformation';
77
79
  export * from './OrderListItemDtoSellerAccount';
78
- export * from './OrderTaxDto';
79
80
  export * from './OrderTransactionDto';
80
81
  export * from './PaginateResponse';
81
82
  export * from './PaginateResponseLinks';
@@ -89,11 +89,12 @@ __exportStar(require("./ObjectId"), exports);
89
89
  __exportStar(require("./OrderCompanyInfoDto"), exports);
90
90
  __exportStar(require("./OrderCompanyTaxIdDto"), exports);
91
91
  __exportStar(require("./OrderDto"), exports);
92
+ __exportStar(require("./OrderItemDto"), exports);
93
+ __exportStar(require("./OrderItemTaxDto"), exports);
92
94
  __exportStar(require("./OrderListItemDto"), exports);
93
95
  __exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
94
96
  __exportStar(require("./OrderListItemDtoDomainInformation"), exports);
95
97
  __exportStar(require("./OrderListItemDtoSellerAccount"), exports);
96
- __exportStar(require("./OrderTaxDto"), exports);
97
98
  __exportStar(require("./OrderTransactionDto"), exports);
98
99
  __exportStar(require("./PaginateResponse"), exports);
99
100
  __exportStar(require("./PaginateResponseLinks"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.100",
3
+ "version": "0.0.102",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -147,7 +147,7 @@ export class BuyersApi extends runtime.BaseAPI {
147
147
  }
148
148
  }
149
149
  const response = await this.request({
150
- path: `/buyers/private/lead/{leadId}/status/accept`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
150
+ path: `/buyers/private/leads/{leadId}/status/accept`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
151
151
  method: 'PATCH',
152
152
  headers: headerParameters,
153
153
  query: queryParameters,
@@ -196,7 +196,7 @@ export class BuyersApi extends runtime.BaseAPI {
196
196
  }
197
197
  }
198
198
  const response = await this.request({
199
- path: `/buyers/private/lead/{leadId}/messages/read`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
199
+ path: `/buyers/private/leads/{leadId}/messages/read`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
200
200
  method: 'POST',
201
201
  headers: headerParameters,
202
202
  query: queryParameters,
@@ -280,7 +280,7 @@ export class BuyersApi extends runtime.BaseAPI {
280
280
  }
281
281
  }
282
282
  const response = await this.request({
283
- path: `/buyers/private/lead/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
283
+ path: `/buyers/private/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
284
284
  method: 'POST',
285
285
  headers: headerParameters,
286
286
  query: queryParameters,
@@ -322,7 +322,7 @@ export class BuyersApi extends runtime.BaseAPI {
322
322
  }
323
323
  }
324
324
  const response = await this.request({
325
- path: `/buyers/private/lead/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
325
+ path: `/buyers/private/leads/{leadId}`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
326
326
  method: 'GET',
327
327
  headers: headerParameters,
328
328
  query: queryParameters,
@@ -363,7 +363,7 @@ export class BuyersApi extends runtime.BaseAPI {
363
363
  }
364
364
  }
365
365
  const response = await this.request({
366
- path: `/buyers/private/lead/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
366
+ path: `/buyers/private/leads/{leadId}/messages`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
367
367
  method: 'GET',
368
368
  headers: headerParameters,
369
369
  query: queryParameters,
@@ -604,7 +604,7 @@ export class BuyersApi extends runtime.BaseAPI {
604
604
  }
605
605
  }
606
606
  const response = await this.request({
607
- path: `/buyers/private/lead/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
607
+ path: `/buyers/private/leads/{leadId}/offer`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
608
608
  method: 'PUT',
609
609
  headers: headerParameters,
610
610
  query: queryParameters,
@@ -76,7 +76,8 @@ export interface BuyerDomainTransferListItemDto {
76
76
  */
77
77
  export const BuyerDomainTransferListItemDtoOrderStatusEnum = {
78
78
  OPEN: 'open',
79
- PAID: 'paid'
79
+ PAID: 'paid',
80
+ CANCELLED: 'cancelled'
80
81
  } as const;
81
82
  export type BuyerDomainTransferListItemDtoOrderStatusEnum = typeof BuyerDomainTransferListItemDtoOrderStatusEnum[keyof typeof BuyerDomainTransferListItemDtoOrderStatusEnum];
82
83
 
@@ -33,7 +33,8 @@ export interface ChangeOrderStatusInput {
33
33
  */
34
34
  export const ChangeOrderStatusInputStatusEnum = {
35
35
  OPEN: 'open',
36
- PAID: 'paid'
36
+ PAID: 'paid',
37
+ CANCELLED: 'cancelled'
37
38
  } as const;
38
39
  export type ChangeOrderStatusInputStatusEnum = typeof ChangeOrderStatusInputStatusEnum[keyof typeof ChangeOrderStatusInputStatusEnum];
39
40
 
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { OrderItemDto } from './OrderItemDto';
17
+ import {
18
+ OrderItemDtoFromJSON,
19
+ OrderItemDtoFromJSONTyped,
20
+ OrderItemDtoToJSON,
21
+ } from './OrderItemDto';
16
22
  import type { MoneyDto } from './MoneyDto';
17
23
  import {
18
24
  MoneyDtoFromJSON,
@@ -25,12 +31,6 @@ import {
25
31
  OrderTransactionDtoFromJSONTyped,
26
32
  OrderTransactionDtoToJSON,
27
33
  } from './OrderTransactionDto';
28
- import type { OrderTaxDto } from './OrderTaxDto';
29
- import {
30
- OrderTaxDtoFromJSON,
31
- OrderTaxDtoFromJSONTyped,
32
- OrderTaxDtoToJSON,
33
- } from './OrderTaxDto';
34
34
  import type { OrderCompanyInfoDto } from './OrderCompanyInfoDto';
35
35
  import {
36
36
  OrderCompanyInfoDtoFromJSON,
@@ -76,10 +76,16 @@ export interface OrderDto {
76
76
  totalPrice: MoneyDto;
77
77
  /**
78
78
  *
79
- * @type {Array<OrderTaxDto>}
79
+ * @type {MoneyDto}
80
+ * @memberof OrderDto
81
+ */
82
+ totalTaxPrice: MoneyDto;
83
+ /**
84
+ *
85
+ * @type {Array<OrderItemDto>}
80
86
  * @memberof OrderDto
81
87
  */
82
- taxes: Array<OrderTaxDto>;
88
+ items: Array<OrderItemDto>;
83
89
  /**
84
90
  *
85
91
  * @type {string}
@@ -136,7 +142,8 @@ export interface OrderDto {
136
142
  */
137
143
  export const OrderDtoStatusEnum = {
138
144
  OPEN: 'open',
139
- PAID: 'paid'
145
+ PAID: 'paid',
146
+ CANCELLED: 'cancelled'
140
147
  } as const;
141
148
  export type OrderDtoStatusEnum = typeof OrderDtoStatusEnum[keyof typeof OrderDtoStatusEnum];
142
149
 
@@ -149,7 +156,8 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
149
156
  if (!('status' in value) || value['status'] === undefined) return false;
150
157
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
151
158
  if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
152
- if (!('taxes' in value) || value['taxes'] === undefined) return false;
159
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
160
+ if (!('items' in value) || value['items'] === undefined) return false;
153
161
  if (!('firstname' in value) || value['firstname'] === undefined) return false;
154
162
  if (!('lastname' in value) || value['lastname'] === undefined) return false;
155
163
  if (!('email' in value) || value['email'] === undefined) return false;
@@ -175,7 +183,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
175
183
  'status': json['status'],
176
184
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
177
185
  'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
178
- 'taxes': ((json['taxes'] as Array<any>).map(OrderTaxDtoFromJSON)),
186
+ 'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
187
+ 'items': ((json['items'] as Array<any>).map(OrderItemDtoFromJSON)),
179
188
  'firstname': json['firstname'],
180
189
  'lastname': json['lastname'],
181
190
  'email': json['email'],
@@ -197,7 +206,8 @@ export function OrderDtoToJSON(value?: OrderDto | null): any {
197
206
  'status': value['status'],
198
207
  'basePrice': MoneyDtoToJSON(value['basePrice']),
199
208
  'totalPrice': MoneyDtoToJSON(value['totalPrice']),
200
- 'taxes': ((value['taxes'] as Array<any>).map(OrderTaxDtoToJSON)),
209
+ 'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
210
+ 'items': ((value['items'] as Array<any>).map(OrderItemDtoToJSON)),
201
211
  'firstname': value['firstname'],
202
212
  'lastname': value['lastname'],
203
213
  'email': value['email'],
@@ -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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+ import type { OrderItemTaxDto } from './OrderItemTaxDto';
23
+ import {
24
+ OrderItemTaxDtoFromJSON,
25
+ OrderItemTaxDtoFromJSONTyped,
26
+ OrderItemTaxDtoToJSON,
27
+ } from './OrderItemTaxDto';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface OrderItemDto
33
+ */
34
+ export interface OrderItemDto {
35
+ /**
36
+ * The uuid for this order.
37
+ * @type {string}
38
+ * @memberof OrderItemDto
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {object}
44
+ * @memberof OrderItemDto
45
+ */
46
+ orderId: object;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof OrderItemDto
51
+ */
52
+ description: string;
53
+ /**
54
+ *
55
+ * @type {MoneyDto}
56
+ * @memberof OrderItemDto
57
+ */
58
+ basePrice: MoneyDto;
59
+ /**
60
+ *
61
+ * @type {MoneyDto}
62
+ * @memberof OrderItemDto
63
+ */
64
+ totalPrice: MoneyDto;
65
+ /**
66
+ *
67
+ * @type {MoneyDto}
68
+ * @memberof OrderItemDto
69
+ */
70
+ totalTaxPrice: MoneyDto;
71
+ /**
72
+ *
73
+ * @type {Array<OrderItemTaxDto>}
74
+ * @memberof OrderItemDto
75
+ */
76
+ taxes: Array<OrderItemTaxDto>;
77
+ }
78
+
79
+ /**
80
+ * Check if a given object implements the OrderItemDto interface.
81
+ */
82
+ export function instanceOfOrderItemDto(value: object): value is OrderItemDto {
83
+ if (!('id' in value) || value['id'] === undefined) return false;
84
+ if (!('orderId' in value) || value['orderId'] === undefined) return false;
85
+ if (!('description' in value) || value['description'] === undefined) return false;
86
+ if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
87
+ if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
88
+ if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
89
+ if (!('taxes' in value) || value['taxes'] === undefined) return false;
90
+ return true;
91
+ }
92
+
93
+ export function OrderItemDtoFromJSON(json: any): OrderItemDto {
94
+ return OrderItemDtoFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function OrderItemDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemDto {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'id': json['id'],
104
+ 'orderId': json['orderId'],
105
+ 'description': json['description'],
106
+ 'basePrice': MoneyDtoFromJSON(json['basePrice']),
107
+ 'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
108
+ 'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
109
+ 'taxes': ((json['taxes'] as Array<any>).map(OrderItemTaxDtoFromJSON)),
110
+ };
111
+ }
112
+
113
+ export function OrderItemDtoToJSON(value?: OrderItemDto | null): any {
114
+ if (value == null) {
115
+ return value;
116
+ }
117
+ return {
118
+
119
+ 'id': value['id'],
120
+ 'orderId': value['orderId'],
121
+ 'description': value['description'],
122
+ 'basePrice': MoneyDtoToJSON(value['basePrice']),
123
+ 'totalPrice': MoneyDtoToJSON(value['totalPrice']),
124
+ 'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
125
+ 'taxes': ((value['taxes'] as Array<any>).map(OrderItemTaxDtoToJSON)),
126
+ };
127
+ }
128
+
@@ -0,0 +1,119 @@
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 { MoneyDto } from './MoneyDto';
17
+ import {
18
+ MoneyDtoFromJSON,
19
+ MoneyDtoFromJSONTyped,
20
+ MoneyDtoToJSON,
21
+ } from './MoneyDto';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface OrderItemTaxDto
27
+ */
28
+ export interface OrderItemTaxDto {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof OrderItemTaxDto
33
+ */
34
+ reason: OrderItemTaxDtoReasonEnum;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof OrderItemTaxDto
39
+ */
40
+ type: string;
41
+ /**
42
+ *
43
+ * @type {MoneyDto}
44
+ * @memberof OrderItemTaxDto
45
+ */
46
+ price: MoneyDto;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof OrderItemTaxDto
51
+ */
52
+ percentage: number;
53
+ }
54
+
55
+
56
+ /**
57
+ * @export
58
+ */
59
+ export const OrderItemTaxDtoReasonEnum = {
60
+ CUSTOMER_EXEMPT: 'customer_exempt',
61
+ NOT_COLLECTING: 'not_collecting',
62
+ NOT_SUBJECT_TO_TAX: 'not_subject_to_tax',
63
+ NOT_SUPPORTED: 'not_supported',
64
+ PORTION_PRODUCT_EXEMPT: 'portion_product_exempt',
65
+ PORTION_REDUCED_RATED: 'portion_reduced_rated',
66
+ PORTION_STANDARD_RATED: 'portion_standard_rated',
67
+ PRODUCT_EXEMPT: 'product_exempt',
68
+ PRODUCT_EXEMPT_HOLIDAY: 'product_exempt_holiday',
69
+ PROPORTIONALLY_RATED: 'proportionally_rated',
70
+ REDUCED_RATED: 'reduced_rated',
71
+ REVERSE_CHARGE: 'reverse_charge',
72
+ STANDARD_RATED: 'standard_rated',
73
+ TAXABLE_BASIS_REDUCED: 'taxable_basis_reduced',
74
+ ZERO_RATED: 'zero_rated'
75
+ } as const;
76
+ export type OrderItemTaxDtoReasonEnum = typeof OrderItemTaxDtoReasonEnum[keyof typeof OrderItemTaxDtoReasonEnum];
77
+
78
+
79
+ /**
80
+ * Check if a given object implements the OrderItemTaxDto interface.
81
+ */
82
+ export function instanceOfOrderItemTaxDto(value: object): value is OrderItemTaxDto {
83
+ if (!('reason' in value) || value['reason'] === undefined) return false;
84
+ if (!('type' in value) || value['type'] === undefined) return false;
85
+ if (!('price' in value) || value['price'] === undefined) return false;
86
+ if (!('percentage' in value) || value['percentage'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function OrderItemTaxDtoFromJSON(json: any): OrderItemTaxDto {
91
+ return OrderItemTaxDtoFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function OrderItemTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderItemTaxDto {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'reason': json['reason'],
101
+ 'type': json['type'],
102
+ 'price': MoneyDtoFromJSON(json['price']),
103
+ 'percentage': json['percentage'],
104
+ };
105
+ }
106
+
107
+ export function OrderItemTaxDtoToJSON(value?: OrderItemTaxDto | null): any {
108
+ if (value == null) {
109
+ return value;
110
+ }
111
+ return {
112
+
113
+ 'reason': value['reason'],
114
+ 'type': value['type'],
115
+ 'price': MoneyDtoToJSON(value['price']),
116
+ 'percentage': value['percentage'],
117
+ };
118
+ }
119
+
@@ -94,7 +94,8 @@ export interface OrderListItemDto {
94
94
  */
95
95
  export const OrderListItemDtoStatusEnum = {
96
96
  OPEN: 'open',
97
- PAID: 'paid'
97
+ PAID: 'paid',
98
+ CANCELLED: 'cancelled'
98
99
  } as const;
99
100
  export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof typeof OrderListItemDtoStatusEnum];
100
101
 
@@ -73,11 +73,12 @@ export * from './ObjectId';
73
73
  export * from './OrderCompanyInfoDto';
74
74
  export * from './OrderCompanyTaxIdDto';
75
75
  export * from './OrderDto';
76
+ export * from './OrderItemDto';
77
+ export * from './OrderItemTaxDto';
76
78
  export * from './OrderListItemDto';
77
79
  export * from './OrderListItemDtoBuyerInformation';
78
80
  export * from './OrderListItemDtoDomainInformation';
79
81
  export * from './OrderListItemDtoSellerAccount';
80
- export * from './OrderTaxDto';
81
82
  export * from './OrderTransactionDto';
82
83
  export * from './PaginateResponse';
83
84
  export * from './PaginateResponseLinks';
@@ -1,44 +0,0 @@
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
- /**
14
- *
15
- * @export
16
- * @interface OrderTaxDto
17
- */
18
- export interface OrderTaxDto {
19
- /**
20
- *
21
- * @type {string}
22
- * @memberof OrderTaxDto
23
- */
24
- type: string;
25
- /**
26
- *
27
- * @type {MoneyDto}
28
- * @memberof OrderTaxDto
29
- */
30
- price: MoneyDto;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof OrderTaxDto
35
- */
36
- percentage: number;
37
- }
38
- /**
39
- * Check if a given object implements the OrderTaxDto interface.
40
- */
41
- export declare function instanceOfOrderTaxDto(value: object): value is OrderTaxDto;
42
- export declare function OrderTaxDtoFromJSON(json: any): OrderTaxDto;
43
- export declare function OrderTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTaxDto;
44
- export declare function OrderTaxDtoToJSON(value?: OrderTaxDto | null): any;
@@ -1,55 +0,0 @@
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.instanceOfOrderTaxDto = instanceOfOrderTaxDto;
17
- exports.OrderTaxDtoFromJSON = OrderTaxDtoFromJSON;
18
- exports.OrderTaxDtoFromJSONTyped = OrderTaxDtoFromJSONTyped;
19
- exports.OrderTaxDtoToJSON = OrderTaxDtoToJSON;
20
- var MoneyDto_1 = require("./MoneyDto");
21
- /**
22
- * Check if a given object implements the OrderTaxDto interface.
23
- */
24
- function instanceOfOrderTaxDto(value) {
25
- if (!('type' in value) || value['type'] === undefined)
26
- return false;
27
- if (!('price' in value) || value['price'] === undefined)
28
- return false;
29
- if (!('percentage' in value) || value['percentage'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function OrderTaxDtoFromJSON(json) {
34
- return OrderTaxDtoFromJSONTyped(json, false);
35
- }
36
- function OrderTaxDtoFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'type': json['type'],
42
- 'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
43
- 'percentage': json['percentage'],
44
- };
45
- }
46
- function OrderTaxDtoToJSON(value) {
47
- if (value == null) {
48
- return value;
49
- }
50
- return {
51
- 'type': value['type'],
52
- 'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
53
- 'percentage': value['percentage'],
54
- };
55
- }
@@ -1,86 +0,0 @@
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 { MoneyDto } from './MoneyDto';
17
- import {
18
- MoneyDtoFromJSON,
19
- MoneyDtoFromJSONTyped,
20
- MoneyDtoToJSON,
21
- } from './MoneyDto';
22
-
23
- /**
24
- *
25
- * @export
26
- * @interface OrderTaxDto
27
- */
28
- export interface OrderTaxDto {
29
- /**
30
- *
31
- * @type {string}
32
- * @memberof OrderTaxDto
33
- */
34
- type: string;
35
- /**
36
- *
37
- * @type {MoneyDto}
38
- * @memberof OrderTaxDto
39
- */
40
- price: MoneyDto;
41
- /**
42
- *
43
- * @type {number}
44
- * @memberof OrderTaxDto
45
- */
46
- percentage: number;
47
- }
48
-
49
- /**
50
- * Check if a given object implements the OrderTaxDto interface.
51
- */
52
- export function instanceOfOrderTaxDto(value: object): value is OrderTaxDto {
53
- if (!('type' in value) || value['type'] === undefined) return false;
54
- if (!('price' in value) || value['price'] === undefined) return false;
55
- if (!('percentage' in value) || value['percentage'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function OrderTaxDtoFromJSON(json: any): OrderTaxDto {
60
- return OrderTaxDtoFromJSONTyped(json, false);
61
- }
62
-
63
- export function OrderTaxDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderTaxDto {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'type': json['type'],
70
- 'price': MoneyDtoFromJSON(json['price']),
71
- 'percentage': json['percentage'],
72
- };
73
- }
74
-
75
- export function OrderTaxDtoToJSON(value?: OrderTaxDto | null): any {
76
- if (value == null) {
77
- return value;
78
- }
79
- return {
80
-
81
- 'type': value['type'],
82
- 'price': MoneyDtoToJSON(value['price']),
83
- 'percentage': value['percentage'],
84
- };
85
- }
86
-