@alicloud/aligenieip_1_0 1.0.9

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.
package/dist/client.js ADDED
@@ -0,0 +1,2645 @@
1
+ "use strict";
2
+ var __importStar = (this && this.__importStar) || function (mod) {
3
+ if (mod && mod.__esModule) return mod;
4
+ var result = {};
5
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
+ result["default"] = mod;
7
+ return result;
8
+ };
9
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ // This file is auto-generated, don't edit it
14
+ /**
15
+ *
16
+ */
17
+ const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
18
+ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $OpenApi = openapi_client_1;
19
+ const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
+ const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
+ const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class DeviceControlHeaders extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ commonHeaders: 'commonHeaders',
29
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
30
+ authorization: 'Authorization',
31
+ };
32
+ }
33
+ static types() {
34
+ return {
35
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
36
+ xAcsAligenieAccessToken: 'string',
37
+ authorization: 'string',
38
+ };
39
+ }
40
+ }
41
+ exports.DeviceControlHeaders = DeviceControlHeaders;
42
+ class DeviceControlRequest extends $tea.Model {
43
+ constructor(map) {
44
+ super(map);
45
+ }
46
+ static names() {
47
+ return {
48
+ payload: 'Payload',
49
+ userInfo: 'UserInfo',
50
+ };
51
+ }
52
+ static types() {
53
+ return {
54
+ payload: DeviceControlRequestPayload,
55
+ userInfo: DeviceControlRequestUserInfo,
56
+ };
57
+ }
58
+ }
59
+ exports.DeviceControlRequest = DeviceControlRequest;
60
+ class DeviceControlShrinkRequest extends $tea.Model {
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ static names() {
65
+ return {
66
+ payloadShrink: 'Payload',
67
+ userInfoShrink: 'UserInfo',
68
+ };
69
+ }
70
+ static types() {
71
+ return {
72
+ payloadShrink: 'string',
73
+ userInfoShrink: 'string',
74
+ };
75
+ }
76
+ }
77
+ exports.DeviceControlShrinkRequest = DeviceControlShrinkRequest;
78
+ class DeviceControlResponseBody extends $tea.Model {
79
+ constructor(map) {
80
+ super(map);
81
+ }
82
+ static names() {
83
+ return {
84
+ code: 'Code',
85
+ message: 'Message',
86
+ requestId: 'RequestId',
87
+ result: 'Result',
88
+ };
89
+ }
90
+ static types() {
91
+ return {
92
+ code: 'number',
93
+ message: 'string',
94
+ requestId: 'string',
95
+ result: DeviceControlResponseBodyResult,
96
+ };
97
+ }
98
+ }
99
+ exports.DeviceControlResponseBody = DeviceControlResponseBody;
100
+ class DeviceControlResponse extends $tea.Model {
101
+ constructor(map) {
102
+ super(map);
103
+ }
104
+ static names() {
105
+ return {
106
+ headers: 'headers',
107
+ statusCode: 'statusCode',
108
+ body: 'body',
109
+ };
110
+ }
111
+ static types() {
112
+ return {
113
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
114
+ statusCode: 'number',
115
+ body: DeviceControlResponseBody,
116
+ };
117
+ }
118
+ }
119
+ exports.DeviceControlResponse = DeviceControlResponse;
120
+ class GetHotelHomeBackImageAndModesHeaders extends $tea.Model {
121
+ constructor(map) {
122
+ super(map);
123
+ }
124
+ static names() {
125
+ return {
126
+ commonHeaders: 'commonHeaders',
127
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
128
+ authorization: 'Authorization',
129
+ };
130
+ }
131
+ static types() {
132
+ return {
133
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
134
+ xAcsAligenieAccessToken: 'string',
135
+ authorization: 'string',
136
+ };
137
+ }
138
+ }
139
+ exports.GetHotelHomeBackImageAndModesHeaders = GetHotelHomeBackImageAndModesHeaders;
140
+ class GetHotelHomeBackImageAndModesRequest extends $tea.Model {
141
+ constructor(map) {
142
+ super(map);
143
+ }
144
+ static names() {
145
+ return {
146
+ userInfo: 'UserInfo',
147
+ };
148
+ }
149
+ static types() {
150
+ return {
151
+ userInfo: GetHotelHomeBackImageAndModesRequestUserInfo,
152
+ };
153
+ }
154
+ }
155
+ exports.GetHotelHomeBackImageAndModesRequest = GetHotelHomeBackImageAndModesRequest;
156
+ class GetHotelHomeBackImageAndModesShrinkRequest extends $tea.Model {
157
+ constructor(map) {
158
+ super(map);
159
+ }
160
+ static names() {
161
+ return {
162
+ userInfoShrink: 'UserInfo',
163
+ };
164
+ }
165
+ static types() {
166
+ return {
167
+ userInfoShrink: 'string',
168
+ };
169
+ }
170
+ }
171
+ exports.GetHotelHomeBackImageAndModesShrinkRequest = GetHotelHomeBackImageAndModesShrinkRequest;
172
+ class GetHotelHomeBackImageAndModesResponseBody extends $tea.Model {
173
+ constructor(map) {
174
+ super(map);
175
+ }
176
+ static names() {
177
+ return {
178
+ code: 'Code',
179
+ message: 'Message',
180
+ requestId: 'RequestId',
181
+ result: 'Result',
182
+ };
183
+ }
184
+ static types() {
185
+ return {
186
+ code: 'number',
187
+ message: 'string',
188
+ requestId: 'string',
189
+ result: GetHotelHomeBackImageAndModesResponseBodyResult,
190
+ };
191
+ }
192
+ }
193
+ exports.GetHotelHomeBackImageAndModesResponseBody = GetHotelHomeBackImageAndModesResponseBody;
194
+ class GetHotelHomeBackImageAndModesResponse extends $tea.Model {
195
+ constructor(map) {
196
+ super(map);
197
+ }
198
+ static names() {
199
+ return {
200
+ headers: 'headers',
201
+ statusCode: 'statusCode',
202
+ body: 'body',
203
+ };
204
+ }
205
+ static types() {
206
+ return {
207
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
208
+ statusCode: 'number',
209
+ body: GetHotelHomeBackImageAndModesResponseBody,
210
+ };
211
+ }
212
+ }
213
+ exports.GetHotelHomeBackImageAndModesResponse = GetHotelHomeBackImageAndModesResponse;
214
+ class GetHotelOrderDetailHeaders extends $tea.Model {
215
+ constructor(map) {
216
+ super(map);
217
+ }
218
+ static names() {
219
+ return {
220
+ commonHeaders: 'commonHeaders',
221
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
222
+ authorization: 'Authorization',
223
+ };
224
+ }
225
+ static types() {
226
+ return {
227
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
228
+ xAcsAligenieAccessToken: 'string',
229
+ authorization: 'string',
230
+ };
231
+ }
232
+ }
233
+ exports.GetHotelOrderDetailHeaders = GetHotelOrderDetailHeaders;
234
+ class GetHotelOrderDetailRequest extends $tea.Model {
235
+ constructor(map) {
236
+ super(map);
237
+ }
238
+ static names() {
239
+ return {
240
+ payload: 'Payload',
241
+ };
242
+ }
243
+ static types() {
244
+ return {
245
+ payload: GetHotelOrderDetailRequestPayload,
246
+ };
247
+ }
248
+ }
249
+ exports.GetHotelOrderDetailRequest = GetHotelOrderDetailRequest;
250
+ class GetHotelOrderDetailShrinkRequest extends $tea.Model {
251
+ constructor(map) {
252
+ super(map);
253
+ }
254
+ static names() {
255
+ return {
256
+ payloadShrink: 'Payload',
257
+ };
258
+ }
259
+ static types() {
260
+ return {
261
+ payloadShrink: 'string',
262
+ };
263
+ }
264
+ }
265
+ exports.GetHotelOrderDetailShrinkRequest = GetHotelOrderDetailShrinkRequest;
266
+ class GetHotelOrderDetailResponseBody extends $tea.Model {
267
+ constructor(map) {
268
+ super(map);
269
+ }
270
+ static names() {
271
+ return {
272
+ code: 'Code',
273
+ message: 'Message',
274
+ requestId: 'RequestId',
275
+ result: 'Result',
276
+ };
277
+ }
278
+ static types() {
279
+ return {
280
+ code: 'number',
281
+ message: 'string',
282
+ requestId: 'string',
283
+ result: { 'type': 'array', 'itemType': GetHotelOrderDetailResponseBodyResult },
284
+ };
285
+ }
286
+ }
287
+ exports.GetHotelOrderDetailResponseBody = GetHotelOrderDetailResponseBody;
288
+ class GetHotelOrderDetailResponse extends $tea.Model {
289
+ constructor(map) {
290
+ super(map);
291
+ }
292
+ static names() {
293
+ return {
294
+ headers: 'headers',
295
+ statusCode: 'statusCode',
296
+ body: 'body',
297
+ };
298
+ }
299
+ static types() {
300
+ return {
301
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
302
+ statusCode: 'number',
303
+ body: GetHotelOrderDetailResponseBody,
304
+ };
305
+ }
306
+ }
307
+ exports.GetHotelOrderDetailResponse = GetHotelOrderDetailResponse;
308
+ class GetHotelSampleUtterancesHeaders extends $tea.Model {
309
+ constructor(map) {
310
+ super(map);
311
+ }
312
+ static names() {
313
+ return {
314
+ commonHeaders: 'commonHeaders',
315
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
316
+ authorization: 'Authorization',
317
+ };
318
+ }
319
+ static types() {
320
+ return {
321
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
322
+ xAcsAligenieAccessToken: 'string',
323
+ authorization: 'string',
324
+ };
325
+ }
326
+ }
327
+ exports.GetHotelSampleUtterancesHeaders = GetHotelSampleUtterancesHeaders;
328
+ class GetHotelSampleUtterancesRequest extends $tea.Model {
329
+ constructor(map) {
330
+ super(map);
331
+ }
332
+ static names() {
333
+ return {
334
+ userInfo: 'UserInfo',
335
+ };
336
+ }
337
+ static types() {
338
+ return {
339
+ userInfo: GetHotelSampleUtterancesRequestUserInfo,
340
+ };
341
+ }
342
+ }
343
+ exports.GetHotelSampleUtterancesRequest = GetHotelSampleUtterancesRequest;
344
+ class GetHotelSampleUtterancesShrinkRequest extends $tea.Model {
345
+ constructor(map) {
346
+ super(map);
347
+ }
348
+ static names() {
349
+ return {
350
+ userInfoShrink: 'UserInfo',
351
+ };
352
+ }
353
+ static types() {
354
+ return {
355
+ userInfoShrink: 'string',
356
+ };
357
+ }
358
+ }
359
+ exports.GetHotelSampleUtterancesShrinkRequest = GetHotelSampleUtterancesShrinkRequest;
360
+ class GetHotelSampleUtterancesResponseBody extends $tea.Model {
361
+ constructor(map) {
362
+ super(map);
363
+ }
364
+ static names() {
365
+ return {
366
+ code: 'Code',
367
+ message: 'Message',
368
+ requestId: 'RequestId',
369
+ result: 'Result',
370
+ };
371
+ }
372
+ static types() {
373
+ return {
374
+ code: 'number',
375
+ message: 'string',
376
+ requestId: 'string',
377
+ result: { 'type': 'array', 'itemType': 'string' },
378
+ };
379
+ }
380
+ }
381
+ exports.GetHotelSampleUtterancesResponseBody = GetHotelSampleUtterancesResponseBody;
382
+ class GetHotelSampleUtterancesResponse extends $tea.Model {
383
+ constructor(map) {
384
+ super(map);
385
+ }
386
+ static names() {
387
+ return {
388
+ headers: 'headers',
389
+ statusCode: 'statusCode',
390
+ body: 'body',
391
+ };
392
+ }
393
+ static types() {
394
+ return {
395
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
396
+ statusCode: 'number',
397
+ body: GetHotelSampleUtterancesResponseBody,
398
+ };
399
+ }
400
+ }
401
+ exports.GetHotelSampleUtterancesResponse = GetHotelSampleUtterancesResponse;
402
+ class GetHotelScreenSaverHeaders extends $tea.Model {
403
+ constructor(map) {
404
+ super(map);
405
+ }
406
+ static names() {
407
+ return {
408
+ commonHeaders: 'commonHeaders',
409
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
410
+ authorization: 'Authorization',
411
+ };
412
+ }
413
+ static types() {
414
+ return {
415
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
416
+ xAcsAligenieAccessToken: 'string',
417
+ authorization: 'string',
418
+ };
419
+ }
420
+ }
421
+ exports.GetHotelScreenSaverHeaders = GetHotelScreenSaverHeaders;
422
+ class GetHotelScreenSaverRequest extends $tea.Model {
423
+ constructor(map) {
424
+ super(map);
425
+ }
426
+ static names() {
427
+ return {
428
+ userInfo: 'UserInfo',
429
+ };
430
+ }
431
+ static types() {
432
+ return {
433
+ userInfo: GetHotelScreenSaverRequestUserInfo,
434
+ };
435
+ }
436
+ }
437
+ exports.GetHotelScreenSaverRequest = GetHotelScreenSaverRequest;
438
+ class GetHotelScreenSaverShrinkRequest extends $tea.Model {
439
+ constructor(map) {
440
+ super(map);
441
+ }
442
+ static names() {
443
+ return {
444
+ userInfoShrink: 'UserInfo',
445
+ };
446
+ }
447
+ static types() {
448
+ return {
449
+ userInfoShrink: 'string',
450
+ };
451
+ }
452
+ }
453
+ exports.GetHotelScreenSaverShrinkRequest = GetHotelScreenSaverShrinkRequest;
454
+ class GetHotelScreenSaverResponseBody extends $tea.Model {
455
+ constructor(map) {
456
+ super(map);
457
+ }
458
+ static names() {
459
+ return {
460
+ code: 'Code',
461
+ message: 'Message',
462
+ requestId: 'RequestId',
463
+ result: 'Result',
464
+ };
465
+ }
466
+ static types() {
467
+ return {
468
+ code: 'number',
469
+ message: 'string',
470
+ requestId: 'string',
471
+ result: GetHotelScreenSaverResponseBodyResult,
472
+ };
473
+ }
474
+ }
475
+ exports.GetHotelScreenSaverResponseBody = GetHotelScreenSaverResponseBody;
476
+ class GetHotelScreenSaverResponse extends $tea.Model {
477
+ constructor(map) {
478
+ super(map);
479
+ }
480
+ static names() {
481
+ return {
482
+ headers: 'headers',
483
+ statusCode: 'statusCode',
484
+ body: 'body',
485
+ };
486
+ }
487
+ static types() {
488
+ return {
489
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
490
+ statusCode: 'number',
491
+ body: GetHotelScreenSaverResponseBody,
492
+ };
493
+ }
494
+ }
495
+ exports.GetHotelScreenSaverResponse = GetHotelScreenSaverResponse;
496
+ class ListHotelControlDeviceHeaders extends $tea.Model {
497
+ constructor(map) {
498
+ super(map);
499
+ }
500
+ static names() {
501
+ return {
502
+ commonHeaders: 'commonHeaders',
503
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
504
+ authorization: 'Authorization',
505
+ };
506
+ }
507
+ static types() {
508
+ return {
509
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
510
+ xAcsAligenieAccessToken: 'string',
511
+ authorization: 'string',
512
+ };
513
+ }
514
+ }
515
+ exports.ListHotelControlDeviceHeaders = ListHotelControlDeviceHeaders;
516
+ class ListHotelControlDeviceRequest extends $tea.Model {
517
+ constructor(map) {
518
+ super(map);
519
+ }
520
+ static names() {
521
+ return {
522
+ userInfo: 'UserInfo',
523
+ };
524
+ }
525
+ static types() {
526
+ return {
527
+ userInfo: ListHotelControlDeviceRequestUserInfo,
528
+ };
529
+ }
530
+ }
531
+ exports.ListHotelControlDeviceRequest = ListHotelControlDeviceRequest;
532
+ class ListHotelControlDeviceShrinkRequest extends $tea.Model {
533
+ constructor(map) {
534
+ super(map);
535
+ }
536
+ static names() {
537
+ return {
538
+ userInfoShrink: 'UserInfo',
539
+ };
540
+ }
541
+ static types() {
542
+ return {
543
+ userInfoShrink: 'string',
544
+ };
545
+ }
546
+ }
547
+ exports.ListHotelControlDeviceShrinkRequest = ListHotelControlDeviceShrinkRequest;
548
+ class ListHotelControlDeviceResponseBody extends $tea.Model {
549
+ constructor(map) {
550
+ super(map);
551
+ }
552
+ static names() {
553
+ return {
554
+ code: 'Code',
555
+ message: 'Message',
556
+ requestId: 'RequestId',
557
+ result: 'Result',
558
+ };
559
+ }
560
+ static types() {
561
+ return {
562
+ code: 'number',
563
+ message: 'string',
564
+ requestId: 'string',
565
+ result: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
566
+ };
567
+ }
568
+ }
569
+ exports.ListHotelControlDeviceResponseBody = ListHotelControlDeviceResponseBody;
570
+ class ListHotelControlDeviceResponse extends $tea.Model {
571
+ constructor(map) {
572
+ super(map);
573
+ }
574
+ static names() {
575
+ return {
576
+ headers: 'headers',
577
+ statusCode: 'statusCode',
578
+ body: 'body',
579
+ };
580
+ }
581
+ static types() {
582
+ return {
583
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
584
+ statusCode: 'number',
585
+ body: ListHotelControlDeviceResponseBody,
586
+ };
587
+ }
588
+ }
589
+ exports.ListHotelControlDeviceResponse = ListHotelControlDeviceResponse;
590
+ class ListHotelOrderHeaders extends $tea.Model {
591
+ constructor(map) {
592
+ super(map);
593
+ }
594
+ static names() {
595
+ return {
596
+ commonHeaders: 'commonHeaders',
597
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
598
+ authorization: 'Authorization',
599
+ };
600
+ }
601
+ static types() {
602
+ return {
603
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
604
+ xAcsAligenieAccessToken: 'string',
605
+ authorization: 'string',
606
+ };
607
+ }
608
+ }
609
+ exports.ListHotelOrderHeaders = ListHotelOrderHeaders;
610
+ class ListHotelOrderRequest extends $tea.Model {
611
+ constructor(map) {
612
+ super(map);
613
+ }
614
+ static names() {
615
+ return {
616
+ payload: 'Payload',
617
+ userInfo: 'UserInfo',
618
+ };
619
+ }
620
+ static types() {
621
+ return {
622
+ payload: ListHotelOrderRequestPayload,
623
+ userInfo: ListHotelOrderRequestUserInfo,
624
+ };
625
+ }
626
+ }
627
+ exports.ListHotelOrderRequest = ListHotelOrderRequest;
628
+ class ListHotelOrderShrinkRequest extends $tea.Model {
629
+ constructor(map) {
630
+ super(map);
631
+ }
632
+ static names() {
633
+ return {
634
+ payloadShrink: 'Payload',
635
+ userInfoShrink: 'UserInfo',
636
+ };
637
+ }
638
+ static types() {
639
+ return {
640
+ payloadShrink: 'string',
641
+ userInfoShrink: 'string',
642
+ };
643
+ }
644
+ }
645
+ exports.ListHotelOrderShrinkRequest = ListHotelOrderShrinkRequest;
646
+ class ListHotelOrderResponseBody extends $tea.Model {
647
+ constructor(map) {
648
+ super(map);
649
+ }
650
+ static names() {
651
+ return {
652
+ code: 'Code',
653
+ message: 'Message',
654
+ page: 'Page',
655
+ requestId: 'RequestId',
656
+ result: 'Result',
657
+ };
658
+ }
659
+ static types() {
660
+ return {
661
+ code: 'number',
662
+ message: 'string',
663
+ page: ListHotelOrderResponseBodyPage,
664
+ requestId: 'string',
665
+ result: { 'type': 'array', 'itemType': ListHotelOrderResponseBodyResult },
666
+ };
667
+ }
668
+ }
669
+ exports.ListHotelOrderResponseBody = ListHotelOrderResponseBody;
670
+ class ListHotelOrderResponse extends $tea.Model {
671
+ constructor(map) {
672
+ super(map);
673
+ }
674
+ static names() {
675
+ return {
676
+ headers: 'headers',
677
+ statusCode: 'statusCode',
678
+ body: 'body',
679
+ };
680
+ }
681
+ static types() {
682
+ return {
683
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
684
+ statusCode: 'number',
685
+ body: ListHotelOrderResponseBody,
686
+ };
687
+ }
688
+ }
689
+ exports.ListHotelOrderResponse = ListHotelOrderResponse;
690
+ class ListHotelSceneItemHeaders extends $tea.Model {
691
+ constructor(map) {
692
+ super(map);
693
+ }
694
+ static names() {
695
+ return {
696
+ commonHeaders: 'commonHeaders',
697
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
698
+ authorization: 'Authorization',
699
+ };
700
+ }
701
+ static types() {
702
+ return {
703
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
704
+ xAcsAligenieAccessToken: 'string',
705
+ authorization: 'string',
706
+ };
707
+ }
708
+ }
709
+ exports.ListHotelSceneItemHeaders = ListHotelSceneItemHeaders;
710
+ class ListHotelSceneItemRequest extends $tea.Model {
711
+ constructor(map) {
712
+ super(map);
713
+ }
714
+ static names() {
715
+ return {
716
+ payload: 'Payload',
717
+ userInfo: 'UserInfo',
718
+ };
719
+ }
720
+ static types() {
721
+ return {
722
+ payload: ListHotelSceneItemRequestPayload,
723
+ userInfo: ListHotelSceneItemRequestUserInfo,
724
+ };
725
+ }
726
+ }
727
+ exports.ListHotelSceneItemRequest = ListHotelSceneItemRequest;
728
+ class ListHotelSceneItemShrinkRequest extends $tea.Model {
729
+ constructor(map) {
730
+ super(map);
731
+ }
732
+ static names() {
733
+ return {
734
+ payloadShrink: 'Payload',
735
+ userInfoShrink: 'UserInfo',
736
+ };
737
+ }
738
+ static types() {
739
+ return {
740
+ payloadShrink: 'string',
741
+ userInfoShrink: 'string',
742
+ };
743
+ }
744
+ }
745
+ exports.ListHotelSceneItemShrinkRequest = ListHotelSceneItemShrinkRequest;
746
+ class ListHotelSceneItemResponseBody extends $tea.Model {
747
+ constructor(map) {
748
+ super(map);
749
+ }
750
+ static names() {
751
+ return {
752
+ code: 'Code',
753
+ message: 'Message',
754
+ page: 'Page',
755
+ requestId: 'RequestId',
756
+ result: 'Result',
757
+ };
758
+ }
759
+ static types() {
760
+ return {
761
+ code: 'number',
762
+ message: 'string',
763
+ page: ListHotelSceneItemResponseBodyPage,
764
+ requestId: 'string',
765
+ result: ListHotelSceneItemResponseBodyResult,
766
+ };
767
+ }
768
+ }
769
+ exports.ListHotelSceneItemResponseBody = ListHotelSceneItemResponseBody;
770
+ class ListHotelSceneItemResponse extends $tea.Model {
771
+ constructor(map) {
772
+ super(map);
773
+ }
774
+ static names() {
775
+ return {
776
+ headers: 'headers',
777
+ statusCode: 'statusCode',
778
+ body: 'body',
779
+ };
780
+ }
781
+ static types() {
782
+ return {
783
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
784
+ statusCode: 'number',
785
+ body: ListHotelSceneItemResponseBody,
786
+ };
787
+ }
788
+ }
789
+ exports.ListHotelSceneItemResponse = ListHotelSceneItemResponse;
790
+ class ListHotelServiceCategoryHeaders extends $tea.Model {
791
+ constructor(map) {
792
+ super(map);
793
+ }
794
+ static names() {
795
+ return {
796
+ commonHeaders: 'commonHeaders',
797
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
798
+ authorization: 'Authorization',
799
+ };
800
+ }
801
+ static types() {
802
+ return {
803
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
804
+ xAcsAligenieAccessToken: 'string',
805
+ authorization: 'string',
806
+ };
807
+ }
808
+ }
809
+ exports.ListHotelServiceCategoryHeaders = ListHotelServiceCategoryHeaders;
810
+ class ListHotelServiceCategoryRequest extends $tea.Model {
811
+ constructor(map) {
812
+ super(map);
813
+ }
814
+ static names() {
815
+ return {
816
+ payload: 'Payload',
817
+ };
818
+ }
819
+ static types() {
820
+ return {
821
+ payload: ListHotelServiceCategoryRequestPayload,
822
+ };
823
+ }
824
+ }
825
+ exports.ListHotelServiceCategoryRequest = ListHotelServiceCategoryRequest;
826
+ class ListHotelServiceCategoryShrinkRequest extends $tea.Model {
827
+ constructor(map) {
828
+ super(map);
829
+ }
830
+ static names() {
831
+ return {
832
+ payloadShrink: 'Payload',
833
+ };
834
+ }
835
+ static types() {
836
+ return {
837
+ payloadShrink: 'string',
838
+ };
839
+ }
840
+ }
841
+ exports.ListHotelServiceCategoryShrinkRequest = ListHotelServiceCategoryShrinkRequest;
842
+ class ListHotelServiceCategoryResponseBody extends $tea.Model {
843
+ constructor(map) {
844
+ super(map);
845
+ }
846
+ static names() {
847
+ return {
848
+ code: 'Code',
849
+ message: 'Message',
850
+ requestId: 'RequestId',
851
+ result: 'Result',
852
+ };
853
+ }
854
+ static types() {
855
+ return {
856
+ code: 'number',
857
+ message: 'string',
858
+ requestId: 'string',
859
+ result: { 'type': 'array', 'itemType': ListHotelServiceCategoryResponseBodyResult },
860
+ };
861
+ }
862
+ }
863
+ exports.ListHotelServiceCategoryResponseBody = ListHotelServiceCategoryResponseBody;
864
+ class ListHotelServiceCategoryResponse extends $tea.Model {
865
+ constructor(map) {
866
+ super(map);
867
+ }
868
+ static names() {
869
+ return {
870
+ headers: 'headers',
871
+ statusCode: 'statusCode',
872
+ body: 'body',
873
+ };
874
+ }
875
+ static types() {
876
+ return {
877
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
878
+ statusCode: 'number',
879
+ body: ListHotelServiceCategoryResponseBody,
880
+ };
881
+ }
882
+ }
883
+ exports.ListHotelServiceCategoryResponse = ListHotelServiceCategoryResponse;
884
+ class QueryDeviceStatusHeaders extends $tea.Model {
885
+ constructor(map) {
886
+ super(map);
887
+ }
888
+ static names() {
889
+ return {
890
+ commonHeaders: 'commonHeaders',
891
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
892
+ authorization: 'Authorization',
893
+ };
894
+ }
895
+ static types() {
896
+ return {
897
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
898
+ xAcsAligenieAccessToken: 'string',
899
+ authorization: 'string',
900
+ };
901
+ }
902
+ }
903
+ exports.QueryDeviceStatusHeaders = QueryDeviceStatusHeaders;
904
+ class QueryDeviceStatusRequest extends $tea.Model {
905
+ constructor(map) {
906
+ super(map);
907
+ }
908
+ static names() {
909
+ return {
910
+ payload: 'Payload',
911
+ userInfo: 'UserInfo',
912
+ };
913
+ }
914
+ static types() {
915
+ return {
916
+ payload: QueryDeviceStatusRequestPayload,
917
+ userInfo: QueryDeviceStatusRequestUserInfo,
918
+ };
919
+ }
920
+ }
921
+ exports.QueryDeviceStatusRequest = QueryDeviceStatusRequest;
922
+ class QueryDeviceStatusShrinkRequest extends $tea.Model {
923
+ constructor(map) {
924
+ super(map);
925
+ }
926
+ static names() {
927
+ return {
928
+ payloadShrink: 'Payload',
929
+ userInfoShrink: 'UserInfo',
930
+ };
931
+ }
932
+ static types() {
933
+ return {
934
+ payloadShrink: 'string',
935
+ userInfoShrink: 'string',
936
+ };
937
+ }
938
+ }
939
+ exports.QueryDeviceStatusShrinkRequest = QueryDeviceStatusShrinkRequest;
940
+ class QueryDeviceStatusResponseBody extends $tea.Model {
941
+ constructor(map) {
942
+ super(map);
943
+ }
944
+ static names() {
945
+ return {
946
+ code: 'Code',
947
+ message: 'Message',
948
+ requestId: 'RequestId',
949
+ result: 'Result',
950
+ };
951
+ }
952
+ static types() {
953
+ return {
954
+ code: 'number',
955
+ message: 'string',
956
+ requestId: 'string',
957
+ result: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'string' } },
958
+ };
959
+ }
960
+ }
961
+ exports.QueryDeviceStatusResponseBody = QueryDeviceStatusResponseBody;
962
+ class QueryDeviceStatusResponse extends $tea.Model {
963
+ constructor(map) {
964
+ super(map);
965
+ }
966
+ static names() {
967
+ return {
968
+ headers: 'headers',
969
+ statusCode: 'statusCode',
970
+ body: 'body',
971
+ };
972
+ }
973
+ static types() {
974
+ return {
975
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
976
+ statusCode: 'number',
977
+ body: QueryDeviceStatusResponseBody,
978
+ };
979
+ }
980
+ }
981
+ exports.QueryDeviceStatusResponse = QueryDeviceStatusResponse;
982
+ class QueryHotelProductHeaders extends $tea.Model {
983
+ constructor(map) {
984
+ super(map);
985
+ }
986
+ static names() {
987
+ return {
988
+ commonHeaders: 'commonHeaders',
989
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
990
+ authorization: 'Authorization',
991
+ };
992
+ }
993
+ static types() {
994
+ return {
995
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
996
+ xAcsAligenieAccessToken: 'string',
997
+ authorization: 'string',
998
+ };
999
+ }
1000
+ }
1001
+ exports.QueryHotelProductHeaders = QueryHotelProductHeaders;
1002
+ class QueryHotelProductRequest extends $tea.Model {
1003
+ constructor(map) {
1004
+ super(map);
1005
+ }
1006
+ static names() {
1007
+ return {
1008
+ userInfo: 'UserInfo',
1009
+ };
1010
+ }
1011
+ static types() {
1012
+ return {
1013
+ userInfo: QueryHotelProductRequestUserInfo,
1014
+ };
1015
+ }
1016
+ }
1017
+ exports.QueryHotelProductRequest = QueryHotelProductRequest;
1018
+ class QueryHotelProductShrinkRequest extends $tea.Model {
1019
+ constructor(map) {
1020
+ super(map);
1021
+ }
1022
+ static names() {
1023
+ return {
1024
+ userInfoShrink: 'UserInfo',
1025
+ };
1026
+ }
1027
+ static types() {
1028
+ return {
1029
+ userInfoShrink: 'string',
1030
+ };
1031
+ }
1032
+ }
1033
+ exports.QueryHotelProductShrinkRequest = QueryHotelProductShrinkRequest;
1034
+ class QueryHotelProductResponseBody extends $tea.Model {
1035
+ constructor(map) {
1036
+ super(map);
1037
+ }
1038
+ static names() {
1039
+ return {
1040
+ code: 'Code',
1041
+ message: 'Message',
1042
+ requestId: 'RequestId',
1043
+ result: 'Result',
1044
+ };
1045
+ }
1046
+ static types() {
1047
+ return {
1048
+ code: 'number',
1049
+ message: 'string',
1050
+ requestId: 'string',
1051
+ result: QueryHotelProductResponseBodyResult,
1052
+ };
1053
+ }
1054
+ }
1055
+ exports.QueryHotelProductResponseBody = QueryHotelProductResponseBody;
1056
+ class QueryHotelProductResponse extends $tea.Model {
1057
+ constructor(map) {
1058
+ super(map);
1059
+ }
1060
+ static names() {
1061
+ return {
1062
+ headers: 'headers',
1063
+ statusCode: 'statusCode',
1064
+ body: 'body',
1065
+ };
1066
+ }
1067
+ static types() {
1068
+ return {
1069
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1070
+ statusCode: 'number',
1071
+ body: QueryHotelProductResponseBody,
1072
+ };
1073
+ }
1074
+ }
1075
+ exports.QueryHotelProductResponse = QueryHotelProductResponse;
1076
+ class RoomCheckOutHeaders extends $tea.Model {
1077
+ constructor(map) {
1078
+ super(map);
1079
+ }
1080
+ static names() {
1081
+ return {
1082
+ commonHeaders: 'commonHeaders',
1083
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
1084
+ authorization: 'Authorization',
1085
+ };
1086
+ }
1087
+ static types() {
1088
+ return {
1089
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1090
+ xAcsAligenieAccessToken: 'string',
1091
+ authorization: 'string',
1092
+ };
1093
+ }
1094
+ }
1095
+ exports.RoomCheckOutHeaders = RoomCheckOutHeaders;
1096
+ class RoomCheckOutRequest extends $tea.Model {
1097
+ constructor(map) {
1098
+ super(map);
1099
+ }
1100
+ static names() {
1101
+ return {
1102
+ deviceInfo: 'DeviceInfo',
1103
+ userInfo: 'UserInfo',
1104
+ };
1105
+ }
1106
+ static types() {
1107
+ return {
1108
+ deviceInfo: RoomCheckOutRequestDeviceInfo,
1109
+ userInfo: RoomCheckOutRequestUserInfo,
1110
+ };
1111
+ }
1112
+ }
1113
+ exports.RoomCheckOutRequest = RoomCheckOutRequest;
1114
+ class RoomCheckOutShrinkRequest extends $tea.Model {
1115
+ constructor(map) {
1116
+ super(map);
1117
+ }
1118
+ static names() {
1119
+ return {
1120
+ deviceInfoShrink: 'DeviceInfo',
1121
+ userInfoShrink: 'UserInfo',
1122
+ };
1123
+ }
1124
+ static types() {
1125
+ return {
1126
+ deviceInfoShrink: 'string',
1127
+ userInfoShrink: 'string',
1128
+ };
1129
+ }
1130
+ }
1131
+ exports.RoomCheckOutShrinkRequest = RoomCheckOutShrinkRequest;
1132
+ class RoomCheckOutResponseBody extends $tea.Model {
1133
+ constructor(map) {
1134
+ super(map);
1135
+ }
1136
+ static names() {
1137
+ return {
1138
+ code: 'Code',
1139
+ message: 'Message',
1140
+ requestId: 'RequestId',
1141
+ result: 'Result',
1142
+ };
1143
+ }
1144
+ static types() {
1145
+ return {
1146
+ code: 'number',
1147
+ message: 'string',
1148
+ requestId: 'string',
1149
+ result: 'boolean',
1150
+ };
1151
+ }
1152
+ }
1153
+ exports.RoomCheckOutResponseBody = RoomCheckOutResponseBody;
1154
+ class RoomCheckOutResponse extends $tea.Model {
1155
+ constructor(map) {
1156
+ super(map);
1157
+ }
1158
+ static names() {
1159
+ return {
1160
+ headers: 'headers',
1161
+ statusCode: 'statusCode',
1162
+ body: 'body',
1163
+ };
1164
+ }
1165
+ static types() {
1166
+ return {
1167
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1168
+ statusCode: 'number',
1169
+ body: RoomCheckOutResponseBody,
1170
+ };
1171
+ }
1172
+ }
1173
+ exports.RoomCheckOutResponse = RoomCheckOutResponse;
1174
+ class SubmitHotelOrderHeaders extends $tea.Model {
1175
+ constructor(map) {
1176
+ super(map);
1177
+ }
1178
+ static names() {
1179
+ return {
1180
+ commonHeaders: 'commonHeaders',
1181
+ xAcsAligenieAccessToken: 'x-acs-aligenie-access-token',
1182
+ authorization: 'Authorization',
1183
+ };
1184
+ }
1185
+ static types() {
1186
+ return {
1187
+ commonHeaders: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1188
+ xAcsAligenieAccessToken: 'string',
1189
+ authorization: 'string',
1190
+ };
1191
+ }
1192
+ }
1193
+ exports.SubmitHotelOrderHeaders = SubmitHotelOrderHeaders;
1194
+ class SubmitHotelOrderRequest extends $tea.Model {
1195
+ constructor(map) {
1196
+ super(map);
1197
+ }
1198
+ static names() {
1199
+ return {
1200
+ payload: 'Payload',
1201
+ userInfo: 'UserInfo',
1202
+ };
1203
+ }
1204
+ static types() {
1205
+ return {
1206
+ payload: SubmitHotelOrderRequestPayload,
1207
+ userInfo: SubmitHotelOrderRequestUserInfo,
1208
+ };
1209
+ }
1210
+ }
1211
+ exports.SubmitHotelOrderRequest = SubmitHotelOrderRequest;
1212
+ class SubmitHotelOrderShrinkRequest extends $tea.Model {
1213
+ constructor(map) {
1214
+ super(map);
1215
+ }
1216
+ static names() {
1217
+ return {
1218
+ payloadShrink: 'Payload',
1219
+ userInfoShrink: 'UserInfo',
1220
+ };
1221
+ }
1222
+ static types() {
1223
+ return {
1224
+ payloadShrink: 'string',
1225
+ userInfoShrink: 'string',
1226
+ };
1227
+ }
1228
+ }
1229
+ exports.SubmitHotelOrderShrinkRequest = SubmitHotelOrderShrinkRequest;
1230
+ class SubmitHotelOrderResponseBody extends $tea.Model {
1231
+ constructor(map) {
1232
+ super(map);
1233
+ }
1234
+ static names() {
1235
+ return {
1236
+ code: 'Code',
1237
+ message: 'Message',
1238
+ requestId: 'RequestId',
1239
+ result: 'Result',
1240
+ };
1241
+ }
1242
+ static types() {
1243
+ return {
1244
+ code: 'number',
1245
+ message: 'string',
1246
+ requestId: 'string',
1247
+ result: 'string',
1248
+ };
1249
+ }
1250
+ }
1251
+ exports.SubmitHotelOrderResponseBody = SubmitHotelOrderResponseBody;
1252
+ class SubmitHotelOrderResponse extends $tea.Model {
1253
+ constructor(map) {
1254
+ super(map);
1255
+ }
1256
+ static names() {
1257
+ return {
1258
+ headers: 'headers',
1259
+ statusCode: 'statusCode',
1260
+ body: 'body',
1261
+ };
1262
+ }
1263
+ static types() {
1264
+ return {
1265
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1266
+ statusCode: 'number',
1267
+ body: SubmitHotelOrderResponseBody,
1268
+ };
1269
+ }
1270
+ }
1271
+ exports.SubmitHotelOrderResponse = SubmitHotelOrderResponse;
1272
+ class DeviceControlRequestPayload extends $tea.Model {
1273
+ constructor(map) {
1274
+ super(map);
1275
+ }
1276
+ static names() {
1277
+ return {
1278
+ category: 'Category',
1279
+ cmd: 'Cmd',
1280
+ current: 'Current',
1281
+ device: 'Device',
1282
+ deviceNumber: 'DeviceNumber',
1283
+ extendInfo: 'ExtendInfo',
1284
+ location: 'Location',
1285
+ properties: 'Properties',
1286
+ };
1287
+ }
1288
+ static types() {
1289
+ return {
1290
+ category: 'string',
1291
+ cmd: 'string',
1292
+ current: 'string',
1293
+ device: 'string',
1294
+ deviceNumber: 'string',
1295
+ extendInfo: 'string',
1296
+ location: 'string',
1297
+ properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1298
+ };
1299
+ }
1300
+ }
1301
+ exports.DeviceControlRequestPayload = DeviceControlRequestPayload;
1302
+ class DeviceControlRequestUserInfo extends $tea.Model {
1303
+ constructor(map) {
1304
+ super(map);
1305
+ }
1306
+ static names() {
1307
+ return {
1308
+ encodeKey: 'EncodeKey',
1309
+ encodeType: 'EncodeType',
1310
+ id: 'Id',
1311
+ idType: 'IdType',
1312
+ organizationId: 'OrganizationId',
1313
+ };
1314
+ }
1315
+ static types() {
1316
+ return {
1317
+ encodeKey: 'string',
1318
+ encodeType: 'string',
1319
+ id: 'string',
1320
+ idType: 'string',
1321
+ organizationId: 'string',
1322
+ };
1323
+ }
1324
+ }
1325
+ exports.DeviceControlRequestUserInfo = DeviceControlRequestUserInfo;
1326
+ class DeviceControlResponseBodyResult extends $tea.Model {
1327
+ constructor(map) {
1328
+ super(map);
1329
+ }
1330
+ static names() {
1331
+ return {
1332
+ status: 'Status',
1333
+ };
1334
+ }
1335
+ static types() {
1336
+ return {
1337
+ status: 'string',
1338
+ };
1339
+ }
1340
+ }
1341
+ exports.DeviceControlResponseBodyResult = DeviceControlResponseBodyResult;
1342
+ class GetHotelHomeBackImageAndModesRequestUserInfo extends $tea.Model {
1343
+ constructor(map) {
1344
+ super(map);
1345
+ }
1346
+ static names() {
1347
+ return {
1348
+ encodeKey: 'EncodeKey',
1349
+ encodeType: 'EncodeType',
1350
+ id: 'Id',
1351
+ idType: 'IdType',
1352
+ organizationId: 'OrganizationId',
1353
+ };
1354
+ }
1355
+ static types() {
1356
+ return {
1357
+ encodeKey: 'string',
1358
+ encodeType: 'string',
1359
+ id: 'string',
1360
+ idType: 'string',
1361
+ organizationId: 'string',
1362
+ };
1363
+ }
1364
+ }
1365
+ exports.GetHotelHomeBackImageAndModesRequestUserInfo = GetHotelHomeBackImageAndModesRequestUserInfo;
1366
+ class GetHotelHomeBackImageAndModesResponseBodyResultModeList extends $tea.Model {
1367
+ constructor(map) {
1368
+ super(map);
1369
+ }
1370
+ static names() {
1371
+ return {
1372
+ cnName: 'CnName',
1373
+ code: 'Code',
1374
+ icon: 'Icon',
1375
+ };
1376
+ }
1377
+ static types() {
1378
+ return {
1379
+ cnName: 'string',
1380
+ code: 'string',
1381
+ icon: 'string',
1382
+ };
1383
+ }
1384
+ }
1385
+ exports.GetHotelHomeBackImageAndModesResponseBodyResultModeList = GetHotelHomeBackImageAndModesResponseBodyResultModeList;
1386
+ class GetHotelHomeBackImageAndModesResponseBodyResult extends $tea.Model {
1387
+ constructor(map) {
1388
+ super(map);
1389
+ }
1390
+ static names() {
1391
+ return {
1392
+ backgroundImage: 'BackgroundImage',
1393
+ hotelName: 'HotelName',
1394
+ modeList: 'ModeList',
1395
+ };
1396
+ }
1397
+ static types() {
1398
+ return {
1399
+ backgroundImage: 'string',
1400
+ hotelName: 'string',
1401
+ modeList: { 'type': 'array', 'itemType': GetHotelHomeBackImageAndModesResponseBodyResultModeList },
1402
+ };
1403
+ }
1404
+ }
1405
+ exports.GetHotelHomeBackImageAndModesResponseBodyResult = GetHotelHomeBackImageAndModesResponseBodyResult;
1406
+ class GetHotelOrderDetailRequestPayload extends $tea.Model {
1407
+ constructor(map) {
1408
+ super(map);
1409
+ }
1410
+ static names() {
1411
+ return {
1412
+ orderNo: 'OrderNo',
1413
+ };
1414
+ }
1415
+ static types() {
1416
+ return {
1417
+ orderNo: 'string',
1418
+ };
1419
+ }
1420
+ }
1421
+ exports.GetHotelOrderDetailRequestPayload = GetHotelOrderDetailRequestPayload;
1422
+ class GetHotelOrderDetailResponseBodyResult extends $tea.Model {
1423
+ constructor(map) {
1424
+ super(map);
1425
+ }
1426
+ static names() {
1427
+ return {
1428
+ applyAmt: 'ApplyAmt',
1429
+ gmtCreate: 'GmtCreate',
1430
+ itemUrl: 'ItemUrl',
1431
+ name: 'Name',
1432
+ quantity: 'Quantity',
1433
+ };
1434
+ }
1435
+ static types() {
1436
+ return {
1437
+ applyAmt: 'number',
1438
+ gmtCreate: 'number',
1439
+ itemUrl: 'string',
1440
+ name: 'string',
1441
+ quantity: 'number',
1442
+ };
1443
+ }
1444
+ }
1445
+ exports.GetHotelOrderDetailResponseBodyResult = GetHotelOrderDetailResponseBodyResult;
1446
+ class GetHotelSampleUtterancesRequestUserInfo extends $tea.Model {
1447
+ constructor(map) {
1448
+ super(map);
1449
+ }
1450
+ static names() {
1451
+ return {
1452
+ encodeKey: 'EncodeKey',
1453
+ encodeType: 'EncodeType',
1454
+ id: 'Id',
1455
+ idType: 'IdType',
1456
+ organizationId: 'OrganizationId',
1457
+ };
1458
+ }
1459
+ static types() {
1460
+ return {
1461
+ encodeKey: 'string',
1462
+ encodeType: 'string',
1463
+ id: 'string',
1464
+ idType: 'string',
1465
+ organizationId: 'string',
1466
+ };
1467
+ }
1468
+ }
1469
+ exports.GetHotelSampleUtterancesRequestUserInfo = GetHotelSampleUtterancesRequestUserInfo;
1470
+ class GetHotelScreenSaverRequestUserInfo extends $tea.Model {
1471
+ constructor(map) {
1472
+ super(map);
1473
+ }
1474
+ static names() {
1475
+ return {
1476
+ encodeKey: 'EncodeKey',
1477
+ encodeType: 'EncodeType',
1478
+ id: 'Id',
1479
+ idType: 'IdType',
1480
+ organizationId: 'OrganizationId',
1481
+ };
1482
+ }
1483
+ static types() {
1484
+ return {
1485
+ encodeKey: 'string',
1486
+ encodeType: 'string',
1487
+ id: 'string',
1488
+ idType: 'string',
1489
+ organizationId: 'string',
1490
+ };
1491
+ }
1492
+ }
1493
+ exports.GetHotelScreenSaverRequestUserInfo = GetHotelScreenSaverRequestUserInfo;
1494
+ class GetHotelScreenSaverResponseBodyResult extends $tea.Model {
1495
+ constructor(map) {
1496
+ super(map);
1497
+ }
1498
+ static names() {
1499
+ return {
1500
+ picUrl: 'PicUrl',
1501
+ styleCode: 'StyleCode',
1502
+ };
1503
+ }
1504
+ static types() {
1505
+ return {
1506
+ picUrl: 'string',
1507
+ styleCode: 'string',
1508
+ };
1509
+ }
1510
+ }
1511
+ exports.GetHotelScreenSaverResponseBodyResult = GetHotelScreenSaverResponseBodyResult;
1512
+ class ListHotelControlDeviceRequestUserInfo extends $tea.Model {
1513
+ constructor(map) {
1514
+ super(map);
1515
+ }
1516
+ static names() {
1517
+ return {
1518
+ encodeKey: 'EncodeKey',
1519
+ encodeType: 'EncodeType',
1520
+ id: 'Id',
1521
+ idType: 'IdType',
1522
+ organizationId: 'OrganizationId',
1523
+ };
1524
+ }
1525
+ static types() {
1526
+ return {
1527
+ encodeKey: 'string',
1528
+ encodeType: 'string',
1529
+ id: 'string',
1530
+ idType: 'string',
1531
+ organizationId: 'string',
1532
+ };
1533
+ }
1534
+ }
1535
+ exports.ListHotelControlDeviceRequestUserInfo = ListHotelControlDeviceRequestUserInfo;
1536
+ class ListHotelOrderRequestPayloadPage extends $tea.Model {
1537
+ constructor(map) {
1538
+ super(map);
1539
+ }
1540
+ static names() {
1541
+ return {
1542
+ pageNumber: 'PageNumber',
1543
+ pageSize: 'PageSize',
1544
+ };
1545
+ }
1546
+ static types() {
1547
+ return {
1548
+ pageNumber: 'number',
1549
+ pageSize: 'number',
1550
+ };
1551
+ }
1552
+ }
1553
+ exports.ListHotelOrderRequestPayloadPage = ListHotelOrderRequestPayloadPage;
1554
+ class ListHotelOrderRequestPayload extends $tea.Model {
1555
+ constructor(map) {
1556
+ super(map);
1557
+ }
1558
+ static names() {
1559
+ return {
1560
+ page: 'Page',
1561
+ };
1562
+ }
1563
+ static types() {
1564
+ return {
1565
+ page: ListHotelOrderRequestPayloadPage,
1566
+ };
1567
+ }
1568
+ }
1569
+ exports.ListHotelOrderRequestPayload = ListHotelOrderRequestPayload;
1570
+ class ListHotelOrderRequestUserInfo extends $tea.Model {
1571
+ constructor(map) {
1572
+ super(map);
1573
+ }
1574
+ static names() {
1575
+ return {
1576
+ encodeKey: 'EncodeKey',
1577
+ encodeType: 'EncodeType',
1578
+ id: 'Id',
1579
+ idType: 'IdType',
1580
+ organizationId: 'OrganizationId',
1581
+ };
1582
+ }
1583
+ static types() {
1584
+ return {
1585
+ encodeKey: 'string',
1586
+ encodeType: 'string',
1587
+ id: 'string',
1588
+ idType: 'string',
1589
+ organizationId: 'string',
1590
+ };
1591
+ }
1592
+ }
1593
+ exports.ListHotelOrderRequestUserInfo = ListHotelOrderRequestUserInfo;
1594
+ class ListHotelOrderResponseBodyPage extends $tea.Model {
1595
+ constructor(map) {
1596
+ super(map);
1597
+ }
1598
+ static names() {
1599
+ return {
1600
+ hasNext: 'HasNext',
1601
+ pageNumber: 'PageNumber',
1602
+ pageSize: 'PageSize',
1603
+ total: 'Total',
1604
+ totalPage: 'TotalPage',
1605
+ };
1606
+ }
1607
+ static types() {
1608
+ return {
1609
+ hasNext: 'boolean',
1610
+ pageNumber: 'number',
1611
+ pageSize: 'number',
1612
+ total: 'number',
1613
+ totalPage: 'number',
1614
+ };
1615
+ }
1616
+ }
1617
+ exports.ListHotelOrderResponseBodyPage = ListHotelOrderResponseBodyPage;
1618
+ class ListHotelOrderResponseBodyResult extends $tea.Model {
1619
+ constructor(map) {
1620
+ super(map);
1621
+ }
1622
+ static names() {
1623
+ return {
1624
+ applyAmt: 'ApplyAmt',
1625
+ gmtCreate: 'GmtCreate',
1626
+ orderNo: 'OrderNo',
1627
+ quantity: 'Quantity',
1628
+ roomNo: 'RoomNo',
1629
+ status: 'Status',
1630
+ type: 'Type',
1631
+ typeIconUrl: 'TypeIconUrl',
1632
+ typeName: 'TypeName',
1633
+ };
1634
+ }
1635
+ static types() {
1636
+ return {
1637
+ applyAmt: 'number',
1638
+ gmtCreate: 'number',
1639
+ orderNo: 'string',
1640
+ quantity: 'number',
1641
+ roomNo: 'string',
1642
+ status: 'string',
1643
+ type: 'string',
1644
+ typeIconUrl: 'string',
1645
+ typeName: 'string',
1646
+ };
1647
+ }
1648
+ }
1649
+ exports.ListHotelOrderResponseBodyResult = ListHotelOrderResponseBodyResult;
1650
+ class ListHotelSceneItemRequestPayload extends $tea.Model {
1651
+ constructor(map) {
1652
+ super(map);
1653
+ }
1654
+ static names() {
1655
+ return {
1656
+ type: 'Type',
1657
+ };
1658
+ }
1659
+ static types() {
1660
+ return {
1661
+ type: 'string',
1662
+ };
1663
+ }
1664
+ }
1665
+ exports.ListHotelSceneItemRequestPayload = ListHotelSceneItemRequestPayload;
1666
+ class ListHotelSceneItemRequestUserInfo extends $tea.Model {
1667
+ constructor(map) {
1668
+ super(map);
1669
+ }
1670
+ static names() {
1671
+ return {
1672
+ encodeKey: 'EncodeKey',
1673
+ encodeType: 'EncodeType',
1674
+ id: 'Id',
1675
+ idType: 'IdType',
1676
+ organizationId: 'OrganizationId',
1677
+ };
1678
+ }
1679
+ static types() {
1680
+ return {
1681
+ encodeKey: 'string',
1682
+ encodeType: 'string',
1683
+ id: 'string',
1684
+ idType: 'string',
1685
+ organizationId: 'string',
1686
+ };
1687
+ }
1688
+ }
1689
+ exports.ListHotelSceneItemRequestUserInfo = ListHotelSceneItemRequestUserInfo;
1690
+ class ListHotelSceneItemResponseBodyPage extends $tea.Model {
1691
+ constructor(map) {
1692
+ super(map);
1693
+ }
1694
+ static names() {
1695
+ return {
1696
+ hasNext: 'HasNext',
1697
+ pageNumber: 'PageNumber',
1698
+ pageSize: 'PageSize',
1699
+ total: 'Total',
1700
+ totalPage: 'TotalPage',
1701
+ };
1702
+ }
1703
+ static types() {
1704
+ return {
1705
+ hasNext: 'boolean',
1706
+ pageNumber: 'number',
1707
+ pageSize: 'number',
1708
+ total: 'number',
1709
+ totalPage: 'number',
1710
+ };
1711
+ }
1712
+ }
1713
+ exports.ListHotelSceneItemResponseBodyPage = ListHotelSceneItemResponseBodyPage;
1714
+ class ListHotelSceneItemResponseBodyResultSecondCategoryListItemList extends $tea.Model {
1715
+ constructor(map) {
1716
+ super(map);
1717
+ }
1718
+ static names() {
1719
+ return {
1720
+ category: 'Category',
1721
+ icon: 'Icon',
1722
+ id: 'Id',
1723
+ name: 'Name',
1724
+ price: 'Price',
1725
+ status: 'Status',
1726
+ type: 'Type',
1727
+ };
1728
+ }
1729
+ static types() {
1730
+ return {
1731
+ category: 'string',
1732
+ icon: 'string',
1733
+ id: 'string',
1734
+ name: 'string',
1735
+ price: 'number',
1736
+ status: 'string',
1737
+ type: 'string',
1738
+ };
1739
+ }
1740
+ }
1741
+ exports.ListHotelSceneItemResponseBodyResultSecondCategoryListItemList = ListHotelSceneItemResponseBodyResultSecondCategoryListItemList;
1742
+ class ListHotelSceneItemResponseBodyResultSecondCategoryList extends $tea.Model {
1743
+ constructor(map) {
1744
+ super(map);
1745
+ }
1746
+ static names() {
1747
+ return {
1748
+ itemList: 'ItemList',
1749
+ secondCategoryName: 'SecondCategoryName',
1750
+ };
1751
+ }
1752
+ static types() {
1753
+ return {
1754
+ itemList: { 'type': 'array', 'itemType': ListHotelSceneItemResponseBodyResultSecondCategoryListItemList },
1755
+ secondCategoryName: 'string',
1756
+ };
1757
+ }
1758
+ }
1759
+ exports.ListHotelSceneItemResponseBodyResultSecondCategoryList = ListHotelSceneItemResponseBodyResultSecondCategoryList;
1760
+ class ListHotelSceneItemResponseBodyResult extends $tea.Model {
1761
+ constructor(map) {
1762
+ super(map);
1763
+ }
1764
+ static names() {
1765
+ return {
1766
+ secondCategoryList: 'SecondCategoryList',
1767
+ };
1768
+ }
1769
+ static types() {
1770
+ return {
1771
+ secondCategoryList: { 'type': 'array', 'itemType': ListHotelSceneItemResponseBodyResultSecondCategoryList },
1772
+ };
1773
+ }
1774
+ }
1775
+ exports.ListHotelSceneItemResponseBodyResult = ListHotelSceneItemResponseBodyResult;
1776
+ class ListHotelServiceCategoryRequestPayload extends $tea.Model {
1777
+ constructor(map) {
1778
+ super(map);
1779
+ }
1780
+ static names() {
1781
+ return {
1782
+ type: 'Type',
1783
+ };
1784
+ }
1785
+ static types() {
1786
+ return {
1787
+ type: 'string',
1788
+ };
1789
+ }
1790
+ }
1791
+ exports.ListHotelServiceCategoryRequestPayload = ListHotelServiceCategoryRequestPayload;
1792
+ class ListHotelServiceCategoryResponseBodyResult extends $tea.Model {
1793
+ constructor(map) {
1794
+ super(map);
1795
+ }
1796
+ static names() {
1797
+ return {
1798
+ code: 'Code',
1799
+ desc: 'Desc',
1800
+ icon: 'Icon',
1801
+ name: 'Name',
1802
+ type: 'Type',
1803
+ };
1804
+ }
1805
+ static types() {
1806
+ return {
1807
+ code: 'string',
1808
+ desc: 'string',
1809
+ icon: 'string',
1810
+ name: 'string',
1811
+ type: 'string',
1812
+ };
1813
+ }
1814
+ }
1815
+ exports.ListHotelServiceCategoryResponseBodyResult = ListHotelServiceCategoryResponseBodyResult;
1816
+ class QueryDeviceStatusRequestPayloadLocationDevices extends $tea.Model {
1817
+ constructor(map) {
1818
+ super(map);
1819
+ }
1820
+ static names() {
1821
+ return {
1822
+ deviceNumber: 'DeviceNumber',
1823
+ deviceType: 'DeviceType',
1824
+ location: 'Location',
1825
+ };
1826
+ }
1827
+ static types() {
1828
+ return {
1829
+ deviceNumber: 'string',
1830
+ deviceType: 'string',
1831
+ location: 'string',
1832
+ };
1833
+ }
1834
+ }
1835
+ exports.QueryDeviceStatusRequestPayloadLocationDevices = QueryDeviceStatusRequestPayloadLocationDevices;
1836
+ class QueryDeviceStatusRequestPayload extends $tea.Model {
1837
+ constructor(map) {
1838
+ super(map);
1839
+ }
1840
+ static names() {
1841
+ return {
1842
+ locationDevices: 'LocationDevices',
1843
+ properties: 'Properties',
1844
+ };
1845
+ }
1846
+ static types() {
1847
+ return {
1848
+ locationDevices: { 'type': 'array', 'itemType': QueryDeviceStatusRequestPayloadLocationDevices },
1849
+ properties: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1850
+ };
1851
+ }
1852
+ }
1853
+ exports.QueryDeviceStatusRequestPayload = QueryDeviceStatusRequestPayload;
1854
+ class QueryDeviceStatusRequestUserInfo extends $tea.Model {
1855
+ constructor(map) {
1856
+ super(map);
1857
+ }
1858
+ static names() {
1859
+ return {
1860
+ encodeKey: 'EncodeKey',
1861
+ encodeType: 'EncodeType',
1862
+ id: 'Id',
1863
+ idType: 'IdType',
1864
+ organizationId: 'OrganizationId',
1865
+ };
1866
+ }
1867
+ static types() {
1868
+ return {
1869
+ encodeKey: 'string',
1870
+ encodeType: 'string',
1871
+ id: 'string',
1872
+ idType: 'string',
1873
+ organizationId: 'string',
1874
+ };
1875
+ }
1876
+ }
1877
+ exports.QueryDeviceStatusRequestUserInfo = QueryDeviceStatusRequestUserInfo;
1878
+ class QueryHotelProductRequestUserInfo extends $tea.Model {
1879
+ constructor(map) {
1880
+ super(map);
1881
+ }
1882
+ static names() {
1883
+ return {
1884
+ encodeKey: 'EncodeKey',
1885
+ encodeType: 'EncodeType',
1886
+ id: 'Id',
1887
+ idType: 'IdType',
1888
+ organizationId: 'OrganizationId',
1889
+ };
1890
+ }
1891
+ static types() {
1892
+ return {
1893
+ encodeKey: 'string',
1894
+ encodeType: 'string',
1895
+ id: 'string',
1896
+ idType: 'string',
1897
+ organizationId: 'string',
1898
+ };
1899
+ }
1900
+ }
1901
+ exports.QueryHotelProductRequestUserInfo = QueryHotelProductRequestUserInfo;
1902
+ class QueryHotelProductResponseBodyResult extends $tea.Model {
1903
+ constructor(map) {
1904
+ super(map);
1905
+ }
1906
+ static names() {
1907
+ return {
1908
+ hotelId: 'HotelId',
1909
+ hotelName: 'HotelName',
1910
+ productKey: 'ProductKey',
1911
+ productName: 'ProductName',
1912
+ };
1913
+ }
1914
+ static types() {
1915
+ return {
1916
+ hotelId: 'string',
1917
+ hotelName: 'string',
1918
+ productKey: 'string',
1919
+ productName: 'string',
1920
+ };
1921
+ }
1922
+ }
1923
+ exports.QueryHotelProductResponseBodyResult = QueryHotelProductResponseBodyResult;
1924
+ class RoomCheckOutRequestDeviceInfo extends $tea.Model {
1925
+ constructor(map) {
1926
+ super(map);
1927
+ }
1928
+ static names() {
1929
+ return {
1930
+ encodeKey: 'EncodeKey',
1931
+ encodeType: 'EncodeType',
1932
+ id: 'Id',
1933
+ idType: 'IdType',
1934
+ organizationId: 'OrganizationId',
1935
+ };
1936
+ }
1937
+ static types() {
1938
+ return {
1939
+ encodeKey: 'string',
1940
+ encodeType: 'string',
1941
+ id: 'string',
1942
+ idType: 'string',
1943
+ organizationId: 'string',
1944
+ };
1945
+ }
1946
+ }
1947
+ exports.RoomCheckOutRequestDeviceInfo = RoomCheckOutRequestDeviceInfo;
1948
+ class RoomCheckOutRequestUserInfo extends $tea.Model {
1949
+ constructor(map) {
1950
+ super(map);
1951
+ }
1952
+ static names() {
1953
+ return {
1954
+ encodeKey: 'EncodeKey',
1955
+ encodeType: 'EncodeType',
1956
+ id: 'Id',
1957
+ idType: 'IdType',
1958
+ organizationId: 'OrganizationId',
1959
+ };
1960
+ }
1961
+ static types() {
1962
+ return {
1963
+ encodeKey: 'string',
1964
+ encodeType: 'string',
1965
+ id: 'string',
1966
+ idType: 'string',
1967
+ organizationId: 'string',
1968
+ };
1969
+ }
1970
+ }
1971
+ exports.RoomCheckOutRequestUserInfo = RoomCheckOutRequestUserInfo;
1972
+ class SubmitHotelOrderRequestPayloadItemList extends $tea.Model {
1973
+ constructor(map) {
1974
+ super(map);
1975
+ }
1976
+ static names() {
1977
+ return {
1978
+ itemId: 'ItemId',
1979
+ quantity: 'Quantity',
1980
+ };
1981
+ }
1982
+ static types() {
1983
+ return {
1984
+ itemId: 'number',
1985
+ quantity: 'number',
1986
+ };
1987
+ }
1988
+ }
1989
+ exports.SubmitHotelOrderRequestPayloadItemList = SubmitHotelOrderRequestPayloadItemList;
1990
+ class SubmitHotelOrderRequestPayload extends $tea.Model {
1991
+ constructor(map) {
1992
+ super(map);
1993
+ }
1994
+ static names() {
1995
+ return {
1996
+ itemList: 'ItemList',
1997
+ type: 'Type',
1998
+ };
1999
+ }
2000
+ static types() {
2001
+ return {
2002
+ itemList: { 'type': 'array', 'itemType': SubmitHotelOrderRequestPayloadItemList },
2003
+ type: 'string',
2004
+ };
2005
+ }
2006
+ }
2007
+ exports.SubmitHotelOrderRequestPayload = SubmitHotelOrderRequestPayload;
2008
+ class SubmitHotelOrderRequestUserInfo extends $tea.Model {
2009
+ constructor(map) {
2010
+ super(map);
2011
+ }
2012
+ static names() {
2013
+ return {
2014
+ encodeKey: 'EncodeKey',
2015
+ encodeType: 'EncodeType',
2016
+ id: 'Id',
2017
+ idType: 'IdType',
2018
+ organizationId: 'OrganizationId',
2019
+ };
2020
+ }
2021
+ static types() {
2022
+ return {
2023
+ encodeKey: 'string',
2024
+ encodeType: 'string',
2025
+ id: 'string',
2026
+ idType: 'string',
2027
+ organizationId: 'string',
2028
+ };
2029
+ }
2030
+ }
2031
+ exports.SubmitHotelOrderRequestUserInfo = SubmitHotelOrderRequestUserInfo;
2032
+ class Client extends openapi_client_1.default {
2033
+ constructor(config) {
2034
+ super(config);
2035
+ this._endpointRule = "";
2036
+ this.checkConfig(config);
2037
+ this._endpoint = this.getEndpoint("aligenie", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
2038
+ }
2039
+ getEndpoint(productId, regionId, endpointRule, network, suffix, endpointMap, endpoint) {
2040
+ if (!tea_util_1.default.empty(endpoint)) {
2041
+ return endpoint;
2042
+ }
2043
+ if (!tea_util_1.default.isUnset(endpointMap) && !tea_util_1.default.empty(endpointMap[regionId])) {
2044
+ return endpointMap[regionId];
2045
+ }
2046
+ return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
2047
+ }
2048
+ async deviceControl(request) {
2049
+ let runtime = new $Util.RuntimeOptions({});
2050
+ let headers = new DeviceControlHeaders({});
2051
+ return await this.deviceControlWithOptions(request, headers, runtime);
2052
+ }
2053
+ async deviceControlWithOptions(tmpReq, headers, runtime) {
2054
+ tea_util_1.default.validateModel(tmpReq);
2055
+ let request = new DeviceControlShrinkRequest({});
2056
+ openapi_util_1.default.convert(tmpReq, request);
2057
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2058
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2059
+ }
2060
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2061
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2062
+ }
2063
+ let query = {};
2064
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2065
+ query["Payload"] = request.payloadShrink;
2066
+ }
2067
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2068
+ query["UserInfo"] = request.userInfoShrink;
2069
+ }
2070
+ let realHeaders = {};
2071
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2072
+ realHeaders = headers.commonHeaders;
2073
+ }
2074
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2075
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2076
+ }
2077
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2078
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2079
+ }
2080
+ let req = new $OpenApi.OpenApiRequest({
2081
+ headers: realHeaders,
2082
+ query: openapi_util_1.default.query(query),
2083
+ });
2084
+ let params = new $OpenApi.Params({
2085
+ action: "DeviceControl",
2086
+ version: "ip_1.0",
2087
+ protocol: "HTTPS",
2088
+ pathname: `/v1.0/ip/deviceControl`,
2089
+ method: "POST",
2090
+ authType: "AK",
2091
+ style: "ROA",
2092
+ reqBodyType: "json",
2093
+ bodyType: "json",
2094
+ });
2095
+ return $tea.cast(await this.callApi(params, req, runtime), new DeviceControlResponse({}));
2096
+ }
2097
+ async getHotelHomeBackImageAndModes(request) {
2098
+ let runtime = new $Util.RuntimeOptions({});
2099
+ let headers = new GetHotelHomeBackImageAndModesHeaders({});
2100
+ return await this.getHotelHomeBackImageAndModesWithOptions(request, headers, runtime);
2101
+ }
2102
+ async getHotelHomeBackImageAndModesWithOptions(tmpReq, headers, runtime) {
2103
+ tea_util_1.default.validateModel(tmpReq);
2104
+ let request = new GetHotelHomeBackImageAndModesShrinkRequest({});
2105
+ openapi_util_1.default.convert(tmpReq, request);
2106
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2107
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2108
+ }
2109
+ let query = {};
2110
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2111
+ query["UserInfo"] = request.userInfoShrink;
2112
+ }
2113
+ let realHeaders = {};
2114
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2115
+ realHeaders = headers.commonHeaders;
2116
+ }
2117
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2118
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2119
+ }
2120
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2121
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2122
+ }
2123
+ let req = new $OpenApi.OpenApiRequest({
2124
+ headers: realHeaders,
2125
+ query: openapi_util_1.default.query(query),
2126
+ });
2127
+ let params = new $OpenApi.Params({
2128
+ action: "GetHotelHomeBackImageAndModes",
2129
+ version: "ip_1.0",
2130
+ protocol: "HTTPS",
2131
+ pathname: `/v1.0/ip/getHotelHomeBackImageAndModes`,
2132
+ method: "POST",
2133
+ authType: "AK",
2134
+ style: "ROA",
2135
+ reqBodyType: "json",
2136
+ bodyType: "json",
2137
+ });
2138
+ return $tea.cast(await this.callApi(params, req, runtime), new GetHotelHomeBackImageAndModesResponse({}));
2139
+ }
2140
+ async getHotelOrderDetail(request) {
2141
+ let runtime = new $Util.RuntimeOptions({});
2142
+ let headers = new GetHotelOrderDetailHeaders({});
2143
+ return await this.getHotelOrderDetailWithOptions(request, headers, runtime);
2144
+ }
2145
+ async getHotelOrderDetailWithOptions(tmpReq, headers, runtime) {
2146
+ tea_util_1.default.validateModel(tmpReq);
2147
+ let request = new GetHotelOrderDetailShrinkRequest({});
2148
+ openapi_util_1.default.convert(tmpReq, request);
2149
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2150
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2151
+ }
2152
+ let query = {};
2153
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2154
+ query["Payload"] = request.payloadShrink;
2155
+ }
2156
+ let realHeaders = {};
2157
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2158
+ realHeaders = headers.commonHeaders;
2159
+ }
2160
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2161
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2162
+ }
2163
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2164
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2165
+ }
2166
+ let req = new $OpenApi.OpenApiRequest({
2167
+ headers: realHeaders,
2168
+ query: openapi_util_1.default.query(query),
2169
+ });
2170
+ let params = new $OpenApi.Params({
2171
+ action: "GetHotelOrderDetail",
2172
+ version: "ip_1.0",
2173
+ protocol: "HTTPS",
2174
+ pathname: `/v1.0/ip/getHotelOrderDetail`,
2175
+ method: "POST",
2176
+ authType: "AK",
2177
+ style: "ROA",
2178
+ reqBodyType: "json",
2179
+ bodyType: "json",
2180
+ });
2181
+ return $tea.cast(await this.callApi(params, req, runtime), new GetHotelOrderDetailResponse({}));
2182
+ }
2183
+ async getHotelSampleUtterances(request) {
2184
+ let runtime = new $Util.RuntimeOptions({});
2185
+ let headers = new GetHotelSampleUtterancesHeaders({});
2186
+ return await this.getHotelSampleUtterancesWithOptions(request, headers, runtime);
2187
+ }
2188
+ async getHotelSampleUtterancesWithOptions(tmpReq, headers, runtime) {
2189
+ tea_util_1.default.validateModel(tmpReq);
2190
+ let request = new GetHotelSampleUtterancesShrinkRequest({});
2191
+ openapi_util_1.default.convert(tmpReq, request);
2192
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2193
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2194
+ }
2195
+ let query = {};
2196
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2197
+ query["UserInfo"] = request.userInfoShrink;
2198
+ }
2199
+ let realHeaders = {};
2200
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2201
+ realHeaders = headers.commonHeaders;
2202
+ }
2203
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2204
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2205
+ }
2206
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2207
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2208
+ }
2209
+ let req = new $OpenApi.OpenApiRequest({
2210
+ headers: realHeaders,
2211
+ query: openapi_util_1.default.query(query),
2212
+ });
2213
+ let params = new $OpenApi.Params({
2214
+ action: "GetHotelSampleUtterances",
2215
+ version: "ip_1.0",
2216
+ protocol: "HTTPS",
2217
+ pathname: `/v1.0/ip/getHotelSampleUtterances`,
2218
+ method: "POST",
2219
+ authType: "AK",
2220
+ style: "ROA",
2221
+ reqBodyType: "json",
2222
+ bodyType: "json",
2223
+ });
2224
+ return $tea.cast(await this.callApi(params, req, runtime), new GetHotelSampleUtterancesResponse({}));
2225
+ }
2226
+ async getHotelScreenSaver(request) {
2227
+ let runtime = new $Util.RuntimeOptions({});
2228
+ let headers = new GetHotelScreenSaverHeaders({});
2229
+ return await this.getHotelScreenSaverWithOptions(request, headers, runtime);
2230
+ }
2231
+ async getHotelScreenSaverWithOptions(tmpReq, headers, runtime) {
2232
+ tea_util_1.default.validateModel(tmpReq);
2233
+ let request = new GetHotelScreenSaverShrinkRequest({});
2234
+ openapi_util_1.default.convert(tmpReq, request);
2235
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2236
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2237
+ }
2238
+ let query = {};
2239
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2240
+ query["UserInfo"] = request.userInfoShrink;
2241
+ }
2242
+ let realHeaders = {};
2243
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2244
+ realHeaders = headers.commonHeaders;
2245
+ }
2246
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2247
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2248
+ }
2249
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2250
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2251
+ }
2252
+ let req = new $OpenApi.OpenApiRequest({
2253
+ headers: realHeaders,
2254
+ query: openapi_util_1.default.query(query),
2255
+ });
2256
+ let params = new $OpenApi.Params({
2257
+ action: "GetHotelScreenSaver",
2258
+ version: "ip_1.0",
2259
+ protocol: "HTTPS",
2260
+ pathname: `/v1.0/ip/getHotelScreenSaver`,
2261
+ method: "POST",
2262
+ authType: "AK",
2263
+ style: "ROA",
2264
+ reqBodyType: "json",
2265
+ bodyType: "json",
2266
+ });
2267
+ return $tea.cast(await this.callApi(params, req, runtime), new GetHotelScreenSaverResponse({}));
2268
+ }
2269
+ async listHotelControlDevice(request) {
2270
+ let runtime = new $Util.RuntimeOptions({});
2271
+ let headers = new ListHotelControlDeviceHeaders({});
2272
+ return await this.listHotelControlDeviceWithOptions(request, headers, runtime);
2273
+ }
2274
+ async listHotelControlDeviceWithOptions(tmpReq, headers, runtime) {
2275
+ tea_util_1.default.validateModel(tmpReq);
2276
+ let request = new ListHotelControlDeviceShrinkRequest({});
2277
+ openapi_util_1.default.convert(tmpReq, request);
2278
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2279
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2280
+ }
2281
+ let query = {};
2282
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2283
+ query["UserInfo"] = request.userInfoShrink;
2284
+ }
2285
+ let realHeaders = {};
2286
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2287
+ realHeaders = headers.commonHeaders;
2288
+ }
2289
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2290
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2291
+ }
2292
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2293
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2294
+ }
2295
+ let req = new $OpenApi.OpenApiRequest({
2296
+ headers: realHeaders,
2297
+ query: openapi_util_1.default.query(query),
2298
+ });
2299
+ let params = new $OpenApi.Params({
2300
+ action: "ListHotelControlDevice",
2301
+ version: "ip_1.0",
2302
+ protocol: "HTTPS",
2303
+ pathname: `/v1.0/ip/listHotelControlDevice`,
2304
+ method: "POST",
2305
+ authType: "AK",
2306
+ style: "ROA",
2307
+ reqBodyType: "json",
2308
+ bodyType: "json",
2309
+ });
2310
+ return $tea.cast(await this.callApi(params, req, runtime), new ListHotelControlDeviceResponse({}));
2311
+ }
2312
+ async listHotelOrder(request) {
2313
+ let runtime = new $Util.RuntimeOptions({});
2314
+ let headers = new ListHotelOrderHeaders({});
2315
+ return await this.listHotelOrderWithOptions(request, headers, runtime);
2316
+ }
2317
+ async listHotelOrderWithOptions(tmpReq, headers, runtime) {
2318
+ tea_util_1.default.validateModel(tmpReq);
2319
+ let request = new ListHotelOrderShrinkRequest({});
2320
+ openapi_util_1.default.convert(tmpReq, request);
2321
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2322
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2323
+ }
2324
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2325
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2326
+ }
2327
+ let query = {};
2328
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2329
+ query["Payload"] = request.payloadShrink;
2330
+ }
2331
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2332
+ query["UserInfo"] = request.userInfoShrink;
2333
+ }
2334
+ let realHeaders = {};
2335
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2336
+ realHeaders = headers.commonHeaders;
2337
+ }
2338
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2339
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2340
+ }
2341
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2342
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2343
+ }
2344
+ let req = new $OpenApi.OpenApiRequest({
2345
+ headers: realHeaders,
2346
+ query: openapi_util_1.default.query(query),
2347
+ });
2348
+ let params = new $OpenApi.Params({
2349
+ action: "ListHotelOrder",
2350
+ version: "ip_1.0",
2351
+ protocol: "HTTPS",
2352
+ pathname: `/v1.0/ip/listHotelOrder`,
2353
+ method: "POST",
2354
+ authType: "AK",
2355
+ style: "ROA",
2356
+ reqBodyType: "json",
2357
+ bodyType: "json",
2358
+ });
2359
+ return $tea.cast(await this.callApi(params, req, runtime), new ListHotelOrderResponse({}));
2360
+ }
2361
+ async listHotelSceneItem(request) {
2362
+ let runtime = new $Util.RuntimeOptions({});
2363
+ let headers = new ListHotelSceneItemHeaders({});
2364
+ return await this.listHotelSceneItemWithOptions(request, headers, runtime);
2365
+ }
2366
+ async listHotelSceneItemWithOptions(tmpReq, headers, runtime) {
2367
+ tea_util_1.default.validateModel(tmpReq);
2368
+ let request = new ListHotelSceneItemShrinkRequest({});
2369
+ openapi_util_1.default.convert(tmpReq, request);
2370
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2371
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2372
+ }
2373
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2374
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2375
+ }
2376
+ let query = {};
2377
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2378
+ query["Payload"] = request.payloadShrink;
2379
+ }
2380
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2381
+ query["UserInfo"] = request.userInfoShrink;
2382
+ }
2383
+ let realHeaders = {};
2384
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2385
+ realHeaders = headers.commonHeaders;
2386
+ }
2387
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2388
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2389
+ }
2390
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2391
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2392
+ }
2393
+ let req = new $OpenApi.OpenApiRequest({
2394
+ headers: realHeaders,
2395
+ query: openapi_util_1.default.query(query),
2396
+ });
2397
+ let params = new $OpenApi.Params({
2398
+ action: "ListHotelSceneItem",
2399
+ version: "ip_1.0",
2400
+ protocol: "HTTPS",
2401
+ pathname: `/v1.0/ip/listHotelSceneItem`,
2402
+ method: "POST",
2403
+ authType: "AK",
2404
+ style: "ROA",
2405
+ reqBodyType: "json",
2406
+ bodyType: "json",
2407
+ });
2408
+ return $tea.cast(await this.callApi(params, req, runtime), new ListHotelSceneItemResponse({}));
2409
+ }
2410
+ async listHotelServiceCategory(request) {
2411
+ let runtime = new $Util.RuntimeOptions({});
2412
+ let headers = new ListHotelServiceCategoryHeaders({});
2413
+ return await this.listHotelServiceCategoryWithOptions(request, headers, runtime);
2414
+ }
2415
+ async listHotelServiceCategoryWithOptions(tmpReq, headers, runtime) {
2416
+ tea_util_1.default.validateModel(tmpReq);
2417
+ let request = new ListHotelServiceCategoryShrinkRequest({});
2418
+ openapi_util_1.default.convert(tmpReq, request);
2419
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2420
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2421
+ }
2422
+ let query = {};
2423
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2424
+ query["Payload"] = request.payloadShrink;
2425
+ }
2426
+ let realHeaders = {};
2427
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2428
+ realHeaders = headers.commonHeaders;
2429
+ }
2430
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2431
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2432
+ }
2433
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2434
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2435
+ }
2436
+ let req = new $OpenApi.OpenApiRequest({
2437
+ headers: realHeaders,
2438
+ query: openapi_util_1.default.query(query),
2439
+ });
2440
+ let params = new $OpenApi.Params({
2441
+ action: "ListHotelServiceCategory",
2442
+ version: "ip_1.0",
2443
+ protocol: "HTTPS",
2444
+ pathname: `/v1.0/ip/listHotelServiceCategory`,
2445
+ method: "POST",
2446
+ authType: "AK",
2447
+ style: "ROA",
2448
+ reqBodyType: "json",
2449
+ bodyType: "json",
2450
+ });
2451
+ return $tea.cast(await this.callApi(params, req, runtime), new ListHotelServiceCategoryResponse({}));
2452
+ }
2453
+ async queryDeviceStatus(request) {
2454
+ let runtime = new $Util.RuntimeOptions({});
2455
+ let headers = new QueryDeviceStatusHeaders({});
2456
+ return await this.queryDeviceStatusWithOptions(request, headers, runtime);
2457
+ }
2458
+ async queryDeviceStatusWithOptions(tmpReq, headers, runtime) {
2459
+ tea_util_1.default.validateModel(tmpReq);
2460
+ let request = new QueryDeviceStatusShrinkRequest({});
2461
+ openapi_util_1.default.convert(tmpReq, request);
2462
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2463
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2464
+ }
2465
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2466
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2467
+ }
2468
+ let query = {};
2469
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2470
+ query["Payload"] = request.payloadShrink;
2471
+ }
2472
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2473
+ query["UserInfo"] = request.userInfoShrink;
2474
+ }
2475
+ let realHeaders = {};
2476
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2477
+ realHeaders = headers.commonHeaders;
2478
+ }
2479
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2480
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2481
+ }
2482
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2483
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2484
+ }
2485
+ let req = new $OpenApi.OpenApiRequest({
2486
+ headers: realHeaders,
2487
+ query: openapi_util_1.default.query(query),
2488
+ });
2489
+ let params = new $OpenApi.Params({
2490
+ action: "QueryDeviceStatus",
2491
+ version: "ip_1.0",
2492
+ protocol: "HTTPS",
2493
+ pathname: `/v1.0/ip/queryDeviceStatus`,
2494
+ method: "POST",
2495
+ authType: "AK",
2496
+ style: "ROA",
2497
+ reqBodyType: "json",
2498
+ bodyType: "json",
2499
+ });
2500
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryDeviceStatusResponse({}));
2501
+ }
2502
+ async queryHotelProduct(request) {
2503
+ let runtime = new $Util.RuntimeOptions({});
2504
+ let headers = new QueryHotelProductHeaders({});
2505
+ return await this.queryHotelProductWithOptions(request, headers, runtime);
2506
+ }
2507
+ async queryHotelProductWithOptions(tmpReq, headers, runtime) {
2508
+ tea_util_1.default.validateModel(tmpReq);
2509
+ let request = new QueryHotelProductShrinkRequest({});
2510
+ openapi_util_1.default.convert(tmpReq, request);
2511
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2512
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2513
+ }
2514
+ let query = {};
2515
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2516
+ query["UserInfo"] = request.userInfoShrink;
2517
+ }
2518
+ let realHeaders = {};
2519
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2520
+ realHeaders = headers.commonHeaders;
2521
+ }
2522
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2523
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2524
+ }
2525
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2526
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2527
+ }
2528
+ let req = new $OpenApi.OpenApiRequest({
2529
+ headers: realHeaders,
2530
+ query: openapi_util_1.default.query(query),
2531
+ });
2532
+ let params = new $OpenApi.Params({
2533
+ action: "QueryHotelProduct",
2534
+ version: "ip_1.0",
2535
+ protocol: "HTTPS",
2536
+ pathname: `/v1.0/ip/queryHotelProduct`,
2537
+ method: "POST",
2538
+ authType: "AK",
2539
+ style: "ROA",
2540
+ reqBodyType: "json",
2541
+ bodyType: "json",
2542
+ });
2543
+ return $tea.cast(await this.callApi(params, req, runtime), new QueryHotelProductResponse({}));
2544
+ }
2545
+ async roomCheckOut(request) {
2546
+ let runtime = new $Util.RuntimeOptions({});
2547
+ let headers = new RoomCheckOutHeaders({});
2548
+ return await this.roomCheckOutWithOptions(request, headers, runtime);
2549
+ }
2550
+ async roomCheckOutWithOptions(tmpReq, headers, runtime) {
2551
+ tea_util_1.default.validateModel(tmpReq);
2552
+ let request = new RoomCheckOutShrinkRequest({});
2553
+ openapi_util_1.default.convert(tmpReq, request);
2554
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.deviceInfo))) {
2555
+ request.deviceInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.deviceInfo), "DeviceInfo", "json");
2556
+ }
2557
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2558
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2559
+ }
2560
+ let query = {};
2561
+ if (!tea_util_1.default.isUnset(request.deviceInfoShrink)) {
2562
+ query["DeviceInfo"] = request.deviceInfoShrink;
2563
+ }
2564
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2565
+ query["UserInfo"] = request.userInfoShrink;
2566
+ }
2567
+ let realHeaders = {};
2568
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2569
+ realHeaders = headers.commonHeaders;
2570
+ }
2571
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2572
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2573
+ }
2574
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2575
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2576
+ }
2577
+ let req = new $OpenApi.OpenApiRequest({
2578
+ headers: realHeaders,
2579
+ query: openapi_util_1.default.query(query),
2580
+ });
2581
+ let params = new $OpenApi.Params({
2582
+ action: "RoomCheckOut",
2583
+ version: "ip_1.0",
2584
+ protocol: "HTTPS",
2585
+ pathname: `/v1.0/ip/roomCheckOut`,
2586
+ method: "POST",
2587
+ authType: "AK",
2588
+ style: "ROA",
2589
+ reqBodyType: "json",
2590
+ bodyType: "json",
2591
+ });
2592
+ return $tea.cast(await this.callApi(params, req, runtime), new RoomCheckOutResponse({}));
2593
+ }
2594
+ async submitHotelOrder(request) {
2595
+ let runtime = new $Util.RuntimeOptions({});
2596
+ let headers = new SubmitHotelOrderHeaders({});
2597
+ return await this.submitHotelOrderWithOptions(request, headers, runtime);
2598
+ }
2599
+ async submitHotelOrderWithOptions(tmpReq, headers, runtime) {
2600
+ tea_util_1.default.validateModel(tmpReq);
2601
+ let request = new SubmitHotelOrderShrinkRequest({});
2602
+ openapi_util_1.default.convert(tmpReq, request);
2603
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.payload))) {
2604
+ request.payloadShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.payload), "Payload", "json");
2605
+ }
2606
+ if (!tea_util_1.default.isUnset($tea.toMap(tmpReq.userInfo))) {
2607
+ request.userInfoShrink = openapi_util_1.default.arrayToStringWithSpecifiedStyle($tea.toMap(tmpReq.userInfo), "UserInfo", "json");
2608
+ }
2609
+ let query = {};
2610
+ if (!tea_util_1.default.isUnset(request.payloadShrink)) {
2611
+ query["Payload"] = request.payloadShrink;
2612
+ }
2613
+ if (!tea_util_1.default.isUnset(request.userInfoShrink)) {
2614
+ query["UserInfo"] = request.userInfoShrink;
2615
+ }
2616
+ let realHeaders = {};
2617
+ if (!tea_util_1.default.isUnset(headers.commonHeaders)) {
2618
+ realHeaders = headers.commonHeaders;
2619
+ }
2620
+ if (!tea_util_1.default.isUnset(headers.xAcsAligenieAccessToken)) {
2621
+ realHeaders["x-acs-aligenie-access-token"] = tea_util_1.default.toJSONString(headers.xAcsAligenieAccessToken);
2622
+ }
2623
+ if (!tea_util_1.default.isUnset(headers.authorization)) {
2624
+ realHeaders["Authorization"] = tea_util_1.default.toJSONString(headers.authorization);
2625
+ }
2626
+ let req = new $OpenApi.OpenApiRequest({
2627
+ headers: realHeaders,
2628
+ query: openapi_util_1.default.query(query),
2629
+ });
2630
+ let params = new $OpenApi.Params({
2631
+ action: "SubmitHotelOrder",
2632
+ version: "ip_1.0",
2633
+ protocol: "HTTPS",
2634
+ pathname: `/v1.0/ip/submitHotelOrder`,
2635
+ method: "POST",
2636
+ authType: "AK",
2637
+ style: "ROA",
2638
+ reqBodyType: "json",
2639
+ bodyType: "json",
2640
+ });
2641
+ return $tea.cast(await this.callApi(params, req, runtime), new SubmitHotelOrderResponse({}));
2642
+ }
2643
+ }
2644
+ exports.default = Client;
2645
+ //# sourceMappingURL=client.js.map