ultracart_rest_api_v2_typescript 4.0.122-RC → 4.0.124-RC

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.
@@ -583,6 +583,7 @@ src/models/OrderFraudScore.ts
583
583
  src/models/OrderGift.ts
584
584
  src/models/OrderGiftCertificate.ts
585
585
  src/models/OrderInternal.ts
586
+ src/models/OrderInvoiceResponse.ts
586
587
  src/models/OrderItem.ts
587
588
  src/models/OrderItemEdi.ts
588
589
  src/models/OrderItemEdiIdentification.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@4.0.122-RC
1
+ ## ultracart_rest_api_v2_typescript@4.0.124-RC
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 ultracart_rest_api_v2_typescript@4.0.122-RC --save
39
+ npm install ultracart_rest_api_v2_typescript@4.0.124-RC --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
54
54
 
55
55
  | Version | Date | Comments |
56
56
  | --: | :-: | --- |
57
+ | 4.0.124-RC | 01/25/2023 | convo event for engage customer |
58
+ | 4.0.123-RC | 01/25/2023 | order api method generateInvoice |
57
59
  | 4.0.122-RC | 01/24/2023 | auto order - cancel minimum and change balance options |
58
60
  | 4.0.121-RC | 01/23/2023 | conversation - method to fetch single engagement record |
59
61
  | 4.0.120-RC | 01/19/2023 | added skip_on_rebill field to coupon object |
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { AccountsReceivableRetryConfig, AccountsReceivableRetryConfigResponse, AccountsReceivableRetryStatsResponse, BaseResponse, Order, OrderByTokenQuery, OrderFormat, OrderFormatResponse, OrderPackingSlipResponse, OrderProcessPaymentRequest, OrderProcessPaymentResponse, OrderQuery, OrderQueryBatch, OrderRefundableResponse, OrderReplacement, OrderReplacementResponse, OrderResponse, OrderTokenResponse, OrdersResponse } from '../models';
13
+ import { AccountsReceivableRetryConfig, AccountsReceivableRetryConfigResponse, AccountsReceivableRetryStatsResponse, BaseResponse, Order, OrderByTokenQuery, OrderFormat, OrderFormatResponse, OrderInvoiceResponse, OrderPackingSlipResponse, OrderProcessPaymentRequest, OrderProcessPaymentResponse, OrderQuery, OrderQueryBatch, OrderRefundableResponse, OrderReplacement, OrderReplacementResponse, OrderResponse, OrderTokenResponse, OrdersResponse } from '../models';
14
14
  export interface AdjustOrderTotalRequest {
15
15
  orderId: string;
16
16
  desiredTotal: string;
@@ -29,6 +29,9 @@ export interface FormatRequest {
29
29
  orderId: string;
30
30
  formatOptions: OrderFormat;
31
31
  }
32
+ export interface GenerateInvoiceRequest {
33
+ orderId: string;
34
+ }
32
35
  export interface GenerateOrderTokenRequest {
33
36
  orderId: string;
34
37
  }
@@ -215,6 +218,20 @@ export interface OrderApiInterface {
215
218
  * Format order
216
219
  */
217
220
  format(requestParameters: FormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderFormatResponse>;
221
+ /**
222
+ * The invoice PDF that is returned is base 64 encoded
223
+ * @summary Generate an invoice for this order.
224
+ * @param {string} orderId Order ID
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ * @memberof OrderApiInterface
228
+ */
229
+ generateInvoiceRaw(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderInvoiceResponse>>;
230
+ /**
231
+ * The invoice PDF that is returned is base 64 encoded
232
+ * Generate an invoice for this order.
233
+ */
234
+ generateInvoice(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderInvoiceResponse>;
218
235
  /**
219
236
  * Retrieves a single order token for a given order id. The token can be used with the getOrderByToken API.
220
237
  * @summary Generate an order token for a given order id
@@ -587,6 +604,16 @@ export declare class OrderApi extends runtime.BaseAPI implements OrderApiInterfa
587
604
  * Format order
588
605
  */
589
606
  format(requestParameters: FormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderFormatResponse>;
607
+ /**
608
+ * The invoice PDF that is returned is base 64 encoded
609
+ * Generate an invoice for this order.
610
+ */
611
+ generateInvoiceRaw(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderInvoiceResponse>>;
612
+ /**
613
+ * The invoice PDF that is returned is base 64 encoded
614
+ * Generate an invoice for this order.
615
+ */
616
+ generateInvoice(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderInvoiceResponse>;
590
617
  /**
591
618
  * Retrieves a single order token for a given order id. The token can be used with the getOrderByToken API.
592
619
  * Generate an order token for a given order id
@@ -379,6 +379,65 @@ var OrderApi = /** @class */ (function (_super) {
379
379
  });
380
380
  });
381
381
  };
382
+ /**
383
+ * The invoice PDF that is returned is base 64 encoded
384
+ * Generate an invoice for this order.
385
+ */
386
+ OrderApi.prototype.generateInvoiceRaw = function (requestParameters, initOverrides) {
387
+ return __awaiter(this, void 0, void 0, function () {
388
+ var queryParameters, headerParameters, _a, _b, response;
389
+ return __generator(this, function (_c) {
390
+ switch (_c.label) {
391
+ case 0:
392
+ if (requestParameters.orderId === null || requestParameters.orderId === undefined) {
393
+ throw new runtime.RequiredError('orderId', 'Required parameter requestParameters.orderId was null or undefined when calling generateInvoice.');
394
+ }
395
+ queryParameters = {};
396
+ headerParameters = {};
397
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
398
+ // oauth required
399
+ _a = headerParameters;
400
+ _b = "Authorization";
401
+ return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["order_read"])];
402
+ case 1:
403
+ // oauth required
404
+ _a[_b] = _c.sent();
405
+ _c.label = 2;
406
+ case 2:
407
+ if (this.configuration && this.configuration.apiKey) {
408
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
409
+ }
410
+ return [4 /*yield*/, this.request({
411
+ path: "/order/orders/{order_id}/invoice".replace("{".concat("order_id", "}"), encodeURIComponent(String(requestParameters.orderId))),
412
+ method: 'GET',
413
+ headers: headerParameters,
414
+ query: queryParameters,
415
+ }, initOverrides)];
416
+ case 3:
417
+ response = _c.sent();
418
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.OrderInvoiceResponseFromJSON)(jsonValue); })];
419
+ }
420
+ });
421
+ });
422
+ };
423
+ /**
424
+ * The invoice PDF that is returned is base 64 encoded
425
+ * Generate an invoice for this order.
426
+ */
427
+ OrderApi.prototype.generateInvoice = function (requestParameters, initOverrides) {
428
+ return __awaiter(this, void 0, void 0, function () {
429
+ var response;
430
+ return __generator(this, function (_a) {
431
+ switch (_a.label) {
432
+ case 0: return [4 /*yield*/, this.generateInvoiceRaw(requestParameters, initOverrides)];
433
+ case 1:
434
+ response = _a.sent();
435
+ return [4 /*yield*/, response.value()];
436
+ case 2: return [2 /*return*/, _a.sent()];
437
+ }
438
+ });
439
+ });
440
+ };
382
441
  /**
383
442
  * Retrieves a single order token for a given order id. The token can be used with the getOrderByToken API.
384
443
  * Generate an order token for a given order id
@@ -167,12 +167,13 @@ export declare const ConversationWebsocketMessageEventTypeEnum: {
167
167
  readonly Rrweb: "rrweb";
168
168
  readonly ParticipantUpdate: "participant update";
169
169
  readonly ParticipantJoin: "participant join";
170
- readonly ParticipantLeft: "participant left";
170
+ readonly ParticipantLeave: "participant leave";
171
171
  readonly ReadMessage: "read message";
172
172
  readonly Typing: "typing";
173
173
  readonly AddCoupon: "add coupon";
174
174
  readonly AddItem: "add item";
175
175
  readonly WebchatContext: "webchat context";
176
+ readonly EngageCustomer: "engage customer";
176
177
  };
177
178
  export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
178
179
  /**
@@ -40,12 +40,13 @@ exports.ConversationWebsocketMessageEventTypeEnum = {
40
40
  Rrweb: 'rrweb',
41
41
  ParticipantUpdate: 'participant update',
42
42
  ParticipantJoin: 'participant join',
43
- ParticipantLeft: 'participant left',
43
+ ParticipantLeave: 'participant leave',
44
44
  ReadMessage: 'read message',
45
45
  Typing: 'typing',
46
46
  AddCoupon: 'add coupon',
47
47
  AddItem: 'add item',
48
- WebchatContext: 'webchat context'
48
+ WebchatContext: 'webchat context',
49
+ EngageCustomer: 'engage customer'
49
50
  };
50
51
  /**
51
52
  * @export
@@ -0,0 +1,54 @@
1
+ /**
2
+ * UltraCart Rest API V2
3
+ * UltraCart REST API Version 2
4
+ *
5
+ * The version of the OpenAPI document: 2.0.0
6
+ * Contact: support@ultracart.com
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 { ModelError } from './ModelError';
13
+ import { ResponseMetadata } from './ResponseMetadata';
14
+ import { Warning } from './Warning';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface OrderInvoiceResponse
19
+ */
20
+ export interface OrderInvoiceResponse {
21
+ /**
22
+ *
23
+ * @type {ModelError}
24
+ * @memberof OrderInvoiceResponse
25
+ */
26
+ error?: ModelError;
27
+ /**
28
+ *
29
+ * @type {ResponseMetadata}
30
+ * @memberof OrderInvoiceResponse
31
+ */
32
+ metadata?: ResponseMetadata;
33
+ /**
34
+ * pdf_base64
35
+ * @type {string}
36
+ * @memberof OrderInvoiceResponse
37
+ */
38
+ pdfBase64?: string;
39
+ /**
40
+ * Indicates if API call was successful
41
+ * @type {boolean}
42
+ * @memberof OrderInvoiceResponse
43
+ */
44
+ success?: boolean;
45
+ /**
46
+ *
47
+ * @type {Warning}
48
+ * @memberof OrderInvoiceResponse
49
+ */
50
+ warning?: Warning;
51
+ }
52
+ export declare function OrderInvoiceResponseFromJSON(json: any): OrderInvoiceResponse;
53
+ export declare function OrderInvoiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderInvoiceResponse;
54
+ export declare function OrderInvoiceResponseToJSON(value?: OrderInvoiceResponse | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * UltraCart Rest API V2
6
+ * UltraCart REST API Version 2
7
+ *
8
+ * The version of the OpenAPI document: 2.0.0
9
+ * Contact: support@ultracart.com
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.OrderInvoiceResponseToJSON = exports.OrderInvoiceResponseFromJSONTyped = exports.OrderInvoiceResponseFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var ModelError_1 = require("./ModelError");
19
+ var ResponseMetadata_1 = require("./ResponseMetadata");
20
+ var Warning_1 = require("./Warning");
21
+ function OrderInvoiceResponseFromJSON(json) {
22
+ return OrderInvoiceResponseFromJSONTyped(json, false);
23
+ }
24
+ exports.OrderInvoiceResponseFromJSON = OrderInvoiceResponseFromJSON;
25
+ function OrderInvoiceResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
31
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
32
+ 'pdfBase64': !(0, runtime_1.exists)(json, 'pdfBase64') ? undefined : json['pdfBase64'],
33
+ 'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
34
+ 'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
35
+ };
36
+ }
37
+ exports.OrderInvoiceResponseFromJSONTyped = OrderInvoiceResponseFromJSONTyped;
38
+ function OrderInvoiceResponseToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
47
+ 'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
48
+ 'pdfBase64': value.pdfBase64,
49
+ 'success': value.success,
50
+ 'warning': (0, Warning_1.WarningToJSON)(value.warning),
51
+ };
52
+ }
53
+ exports.OrderInvoiceResponseToJSON = OrderInvoiceResponseToJSON;
@@ -558,6 +558,7 @@ export * from './OrderFraudScore';
558
558
  export * from './OrderGift';
559
559
  export * from './OrderGiftCertificate';
560
560
  export * from './OrderInternal';
561
+ export * from './OrderInvoiceResponse';
561
562
  export * from './OrderItem';
562
563
  export * from './OrderItemEdi';
563
564
  export * from './OrderItemEdiIdentification';
@@ -576,6 +576,7 @@ __exportStar(require("./OrderFraudScore"), exports);
576
576
  __exportStar(require("./OrderGift"), exports);
577
577
  __exportStar(require("./OrderGiftCertificate"), exports);
578
578
  __exportStar(require("./OrderInternal"), exports);
579
+ __exportStar(require("./OrderInvoiceResponse"), exports);
579
580
  __exportStar(require("./OrderItem"), exports);
580
581
  __exportStar(require("./OrderItemEdi"), exports);
581
582
  __exportStar(require("./OrderItemEdiIdentification"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "4.0.122-RC",
3
+ "version": "4.0.124-RC",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "repository": {
@@ -42,6 +42,9 @@ import {
42
42
  OrderFormatResponse,
43
43
  OrderFormatResponseFromJSON,
44
44
  OrderFormatResponseToJSON,
45
+ OrderInvoiceResponse,
46
+ OrderInvoiceResponseFromJSON,
47
+ OrderInvoiceResponseToJSON,
45
48
  OrderPackingSlipResponse,
46
49
  OrderPackingSlipResponseFromJSON,
47
50
  OrderPackingSlipResponseToJSON,
@@ -100,6 +103,10 @@ export interface FormatRequest {
100
103
  formatOptions: OrderFormat;
101
104
  }
102
105
 
106
+ export interface GenerateInvoiceRequest {
107
+ orderId: string;
108
+ }
109
+
103
110
  export interface GenerateOrderTokenRequest {
104
111
  orderId: string;
105
112
  }
@@ -314,6 +321,22 @@ export interface OrderApiInterface {
314
321
  */
315
322
  format(requestParameters: FormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderFormatResponse>;
316
323
 
324
+ /**
325
+ * The invoice PDF that is returned is base 64 encoded
326
+ * @summary Generate an invoice for this order.
327
+ * @param {string} orderId Order ID
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ * @memberof OrderApiInterface
331
+ */
332
+ generateInvoiceRaw(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderInvoiceResponse>>;
333
+
334
+ /**
335
+ * The invoice PDF that is returned is base 64 encoded
336
+ * Generate an invoice for this order.
337
+ */
338
+ generateInvoice(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderInvoiceResponse>;
339
+
317
340
  /**
318
341
  * Retrieves a single order token for a given order id. The token can be used with the getOrderByToken API.
319
342
  * @summary Generate an order token for a given order id
@@ -895,6 +918,47 @@ export class OrderApi extends runtime.BaseAPI implements OrderApiInterface {
895
918
  return await response.value();
896
919
  }
897
920
 
921
+ /**
922
+ * The invoice PDF that is returned is base 64 encoded
923
+ * Generate an invoice for this order.
924
+ */
925
+ async generateInvoiceRaw(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrderInvoiceResponse>> {
926
+ if (requestParameters.orderId === null || requestParameters.orderId === undefined) {
927
+ throw new runtime.RequiredError('orderId','Required parameter requestParameters.orderId was null or undefined when calling generateInvoice.');
928
+ }
929
+
930
+ const queryParameters: any = {};
931
+
932
+ const headerParameters: runtime.HTTPHeaders = {};
933
+
934
+ if (this.configuration && this.configuration.accessToken) {
935
+ // oauth required
936
+ headerParameters["Authorization"] = await this.configuration.accessToken("ultraCartOauth", ["order_read"]);
937
+ }
938
+
939
+ if (this.configuration && this.configuration.apiKey) {
940
+ headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
941
+ }
942
+
943
+ const response = await this.request({
944
+ path: `/order/orders/{order_id}/invoice`.replace(`{${"order_id"}}`, encodeURIComponent(String(requestParameters.orderId))),
945
+ method: 'GET',
946
+ headers: headerParameters,
947
+ query: queryParameters,
948
+ }, initOverrides);
949
+
950
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrderInvoiceResponseFromJSON(jsonValue));
951
+ }
952
+
953
+ /**
954
+ * The invoice PDF that is returned is base 64 encoded
955
+ * Generate an invoice for this order.
956
+ */
957
+ async generateInvoice(requestParameters: GenerateInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderInvoiceResponse> {
958
+ const response = await this.generateInvoiceRaw(requestParameters, initOverrides);
959
+ return await response.value();
960
+ }
961
+
898
962
  /**
899
963
  * Retrieves a single order token for a given order id. The token can be used with the getOrderByToken API.
900
964
  * Generate an order token for a given order id
@@ -229,12 +229,13 @@ export const ConversationWebsocketMessageEventTypeEnum = {
229
229
  Rrweb: 'rrweb',
230
230
  ParticipantUpdate: 'participant update',
231
231
  ParticipantJoin: 'participant join',
232
- ParticipantLeft: 'participant left',
232
+ ParticipantLeave: 'participant leave',
233
233
  ReadMessage: 'read message',
234
234
  Typing: 'typing',
235
235
  AddCoupon: 'add coupon',
236
236
  AddItem: 'add item',
237
- WebchatContext: 'webchat context'
237
+ WebchatContext: 'webchat context',
238
+ EngageCustomer: 'engage customer'
238
239
  } as const;
239
240
  export type ConversationWebsocketMessageEventTypeEnum = typeof ConversationWebsocketMessageEventTypeEnum[keyof typeof ConversationWebsocketMessageEventTypeEnum];
240
241
 
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * UltraCart Rest API V2
5
+ * UltraCart REST API Version 2
6
+ *
7
+ * The version of the OpenAPI document: 2.0.0
8
+ * Contact: support@ultracart.com
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 { exists, mapValues } from '../runtime';
16
+ import {
17
+ ModelError,
18
+ ModelErrorFromJSON,
19
+ ModelErrorFromJSONTyped,
20
+ ModelErrorToJSON,
21
+ } from './ModelError';
22
+ import {
23
+ ResponseMetadata,
24
+ ResponseMetadataFromJSON,
25
+ ResponseMetadataFromJSONTyped,
26
+ ResponseMetadataToJSON,
27
+ } from './ResponseMetadata';
28
+ import {
29
+ Warning,
30
+ WarningFromJSON,
31
+ WarningFromJSONTyped,
32
+ WarningToJSON,
33
+ } from './Warning';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface OrderInvoiceResponse
39
+ */
40
+ export interface OrderInvoiceResponse {
41
+ /**
42
+ *
43
+ * @type {ModelError}
44
+ * @memberof OrderInvoiceResponse
45
+ */
46
+ error?: ModelError;
47
+ /**
48
+ *
49
+ * @type {ResponseMetadata}
50
+ * @memberof OrderInvoiceResponse
51
+ */
52
+ metadata?: ResponseMetadata;
53
+ /**
54
+ * pdf_base64
55
+ * @type {string}
56
+ * @memberof OrderInvoiceResponse
57
+ */
58
+ pdfBase64?: string;
59
+ /**
60
+ * Indicates if API call was successful
61
+ * @type {boolean}
62
+ * @memberof OrderInvoiceResponse
63
+ */
64
+ success?: boolean;
65
+ /**
66
+ *
67
+ * @type {Warning}
68
+ * @memberof OrderInvoiceResponse
69
+ */
70
+ warning?: Warning;
71
+ }
72
+
73
+ export function OrderInvoiceResponseFromJSON(json: any): OrderInvoiceResponse {
74
+ return OrderInvoiceResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function OrderInvoiceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderInvoiceResponse {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'error': !exists(json, 'error') ? undefined : ModelErrorFromJSON(json['error']),
84
+ 'metadata': !exists(json, 'metadata') ? undefined : ResponseMetadataFromJSON(json['metadata']),
85
+ 'pdfBase64': !exists(json, 'pdfBase64') ? undefined : json['pdfBase64'],
86
+ 'success': !exists(json, 'success') ? undefined : json['success'],
87
+ 'warning': !exists(json, 'warning') ? undefined : WarningFromJSON(json['warning']),
88
+ };
89
+ }
90
+
91
+ export function OrderInvoiceResponseToJSON(value?: OrderInvoiceResponse | null): any {
92
+ if (value === undefined) {
93
+ return undefined;
94
+ }
95
+ if (value === null) {
96
+ return null;
97
+ }
98
+ return {
99
+
100
+ 'error': ModelErrorToJSON(value.error),
101
+ 'metadata': ResponseMetadataToJSON(value.metadata),
102
+ 'pdfBase64': value.pdfBase64,
103
+ 'success': value.success,
104
+ 'warning': WarningToJSON(value.warning),
105
+ };
106
+ }
107
+
@@ -560,6 +560,7 @@ export * from './OrderFraudScore';
560
560
  export * from './OrderGift';
561
561
  export * from './OrderGiftCertificate';
562
562
  export * from './OrderInternal';
563
+ export * from './OrderInvoiceResponse';
563
564
  export * from './OrderItem';
564
565
  export * from './OrderItemEdi';
565
566
  export * from './OrderItemEdiIdentification';