|
2 | 2 | "swagger": "2.0", |
3 | 3 | "info": { |
4 | 4 | "title": "OPERA Cloud Block Reservation Asynchronous API", |
5 | | - "description": "APIs to cater Block Reservation related asynchronous functionality in OPERA.<br /><br />Compatible with OPERA Cloud release 21.5.0.0.<br /><br /><p>This document and all content within is available under the Universal Permissive License v 1.0 (https://oss.oracle.com/licenses/upl). Copyright (c) 2020,2022 Oracle and/or its affiliates.</p>", |
6 | | - "version": "21.5.0.0", |
| 5 | + "description": "APIs to cater Block Reservation related asynchronous functionality in OPERA.<br /><br /> Compatible with OPERA Cloud release 22.4.0.0.<br /><br /><p> This document and all content within is available under the Universal Permissive License v 1.0 (https://oss.oracle.com/licenses/upl). Copyright (c) 2020, 2022 Oracle and/or its affiliates.</p>", |
| 6 | + "version": "22.4.0.0", |
7 | 7 | "termsOfService": "https://www.oracle.com/legal/terms.html", |
8 | 8 | "contact": { |
9 | 9 | "email": "hospitality_apis_ww_grp@oracle.com" |
|
571 | 571 | "minLength": 0, |
572 | 572 | "maxLength": 80 |
573 | 573 | }, |
574 | | - "masterBlockId": { |
575 | | - "description": "A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.", |
576 | | - "type": "string", |
577 | | - "minLength": 0, |
578 | | - "maxLength": 80 |
579 | | - }, |
580 | 574 | "blockCode": { |
581 | 575 | "description": "Defined block code for the block.", |
582 | 576 | "type": "string", |
|
589 | 583 | "minLength": 0, |
590 | 584 | "maxLength": 2000 |
591 | 585 | }, |
| 586 | + "masterBlockId": { |
| 587 | + "description": "A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.", |
| 588 | + "type": "string", |
| 589 | + "minLength": 0, |
| 590 | + "maxLength": 80 |
| 591 | + }, |
592 | 592 | "status": { |
593 | 593 | "description": "Booking Status of the block.", |
594 | 594 | "type": "string", |
|
603 | 603 | }, |
604 | 604 | "startDate": { |
605 | 605 | "type": "string", |
606 | | - "format": "date" |
| 606 | + "format": "date-time" |
607 | 607 | }, |
608 | 608 | "endDate": { |
609 | 609 | "type": "string", |
610 | | - "format": "date" |
| 610 | + "format": "date-time" |
611 | 611 | }, |
612 | 612 | "cutOffDate": { |
613 | 613 | "type": "string", |
614 | | - "format": "date" |
| 614 | + "format": "date-time" |
615 | 615 | }, |
616 | 616 | "cutOffDays": { |
617 | 617 | "type": "integer" |
618 | 618 | }, |
619 | 619 | "cancellationDate": { |
620 | 620 | "description": "Cancellation Date.", |
621 | 621 | "type": "string", |
622 | | - "format": "date" |
| 622 | + "format": "date-time" |
623 | 623 | }, |
624 | 624 | "cancellationCode": { |
625 | 625 | "description": "Code that idenfies the reason for cancellation.", |
|
681 | 681 | "minLength": 0, |
682 | 682 | "maxLength": 20 |
683 | 683 | }, |
684 | | - "allocationDates": { |
685 | | - "type": "array", |
686 | | - "maxItems": 4000, |
687 | | - "items": { |
688 | | - "$ref": "#/definitions/roomAllocationDateType" |
689 | | - } |
690 | | - }, |
691 | | - "hotelId": { |
692 | | - "description": "The Hotel Code the block belongs to.", |
693 | | - "type": "string", |
694 | | - "minLength": 0, |
695 | | - "maxLength": 20 |
696 | | - }, |
697 | 684 | "createDateTime": { |
698 | 685 | "description": "The business date the block was created.", |
699 | 686 | "type": "string", |
|
710 | 697 | "type": "string", |
711 | 698 | "minLength": 0, |
712 | 699 | "maxLength": 20 |
| 700 | + }, |
| 701 | + "ratePlanCode": { |
| 702 | + "description": "Rate code associated with Block.", |
| 703 | + "type": "string", |
| 704 | + "minLength": 0, |
| 705 | + "maxLength": 20 |
| 706 | + }, |
| 707 | + "lastModifiedDate": { |
| 708 | + "description": "Date Time when the block was modified last.", |
| 709 | + "type": "string", |
| 710 | + "format": "date-time" |
| 711 | + }, |
| 712 | + "sourceCode": { |
| 713 | + "description": "Source of the Block.", |
| 714 | + "type": "string", |
| 715 | + "minLength": 0, |
| 716 | + "maxLength": 20 |
| 717 | + }, |
| 718 | + "allocationDates": { |
| 719 | + "type": "array", |
| 720 | + "maxItems": 4000, |
| 721 | + "items": { |
| 722 | + "$ref": "#/definitions/roomAllocationDateType" |
| 723 | + } |
713 | 724 | } |
714 | 725 | } |
715 | 726 | }, |
716 | 727 | "roomAllocationDateType": { |
717 | 728 | "type": "object", |
718 | 729 | "properties": { |
| 730 | + "allocationDate": { |
| 731 | + "description": "The block date for which the allocation details are listed.", |
| 732 | + "type": "string", |
| 733 | + "format": "date-time" |
| 734 | + }, |
719 | 735 | "allocations": { |
720 | 736 | "type": "array", |
721 | 737 | "maxItems": 4000, |
722 | 738 | "items": { |
723 | 739 | "$ref": "#/definitions/roomAllocationDetailsType" |
724 | 740 | } |
725 | | - }, |
726 | | - "allocationDate": { |
727 | | - "description": "The block date for which the allocation details are listed.", |
728 | | - "type": "string", |
729 | | - "format": "date" |
730 | 741 | } |
731 | 742 | } |
732 | 743 | }, |
733 | 744 | "roomAllocationDetailsType": { |
734 | 745 | "type": "object", |
735 | 746 | "properties": { |
736 | | - "inventory": { |
737 | | - "description": "The break up of projected rooms by occupancy.", |
738 | | - "$ref": "#/definitions/blockGridInvType" |
739 | | - }, |
740 | | - "rates": { |
741 | | - "description": "The break up of occupancy rates.", |
742 | | - "$ref": "#/definitions/blockGridRatesType" |
| 747 | + "originalRooms": { |
| 748 | + "description": "The total original( forecasted ) rooms for the block.", |
| 749 | + "type": "integer" |
743 | 750 | }, |
744 | 751 | "roomType": { |
745 | 752 | "description": "The room type for which the allocation details are listed.", |
746 | 753 | "type": "string", |
747 | 754 | "minLength": 0, |
748 | 755 | "maxLength": 20 |
749 | 756 | }, |
750 | | - "originalRooms": { |
751 | | - "description": "The total original( forecasted ) rooms for the block.", |
752 | | - "type": "integer" |
753 | | - }, |
754 | 757 | "currentRooms": { |
755 | 758 | "description": "The total current( projected + pickup ) rooms for the block.", |
756 | 759 | "type": "integer" |
757 | 760 | }, |
758 | 761 | "pickupRooms": { |
759 | 762 | "description": "The total pickup rooms for the block.", |
760 | 763 | "type": "integer" |
| 764 | + }, |
| 765 | + "inventory": { |
| 766 | + "description": "The break up of projected rooms by occupancy.", |
| 767 | + "$ref": "#/definitions/blockGridInvType" |
| 768 | + }, |
| 769 | + "rates": { |
| 770 | + "description": "The break up of occupancy rates.", |
| 771 | + "$ref": "#/definitions/blockGridRatesType" |
| 772 | + }, |
| 773 | + "actualRevenue": { |
| 774 | + "description": "The break up of actual revenue for room type. Applicable for past dates, business date or future dates.", |
| 775 | + "$ref": "#/definitions/blockActualRevenueType" |
| 776 | + }, |
| 777 | + "potentialRevenue": { |
| 778 | + "description": "The break up of potential revenue for room type. Applicable for business date or future dates.", |
| 779 | + "$ref": "#/definitions/blockPotenitalRevenueType" |
761 | 780 | } |
762 | 781 | } |
763 | 782 | }, |
|
787 | 806 | } |
788 | 807 | } |
789 | 808 | }, |
| 809 | + "blockActualRevenueType": { |
| 810 | + "type": "object", |
| 811 | + "description": "Indicates the sum of revenue breakup per room type per block per allocation date for the reservations. Applicable for past dates, business date or future dates.", |
| 812 | + "properties": { |
| 813 | + "roomRevenue": { |
| 814 | + "description": "Indicates room revenue amount.", |
| 815 | + "type": "number" |
| 816 | + }, |
| 817 | + "foodRevenue": { |
| 818 | + "description": "Indicates food revenue amount.", |
| 819 | + "type": "number" |
| 820 | + }, |
| 821 | + "otherRevenue": { |
| 822 | + "description": "Indicates other revenue amount.", |
| 823 | + "type": "number" |
| 824 | + }, |
| 825 | + "nonRevenue": { |
| 826 | + "description": "Indicates non revenue amount.", |
| 827 | + "type": "number" |
| 828 | + }, |
| 829 | + "totalRevenue": { |
| 830 | + "description": "Indicates total revenue amount.", |
| 831 | + "type": "number" |
| 832 | + }, |
| 833 | + "roomRevenueTax": { |
| 834 | + "description": "Indicates room revenue tax amount.", |
| 835 | + "type": "number" |
| 836 | + }, |
| 837 | + "foodRevenueTax": { |
| 838 | + "description": "Indicates food revenue tax amount.", |
| 839 | + "type": "number" |
| 840 | + }, |
| 841 | + "otherRevenueTax": { |
| 842 | + "description": "Indicates other revenue tax amount.", |
| 843 | + "type": "number" |
| 844 | + }, |
| 845 | + "nonRevenueTax": { |
| 846 | + "description": "Indicates non revenue tax amount.", |
| 847 | + "type": "number" |
| 848 | + }, |
| 849 | + "totalRevenueTax": { |
| 850 | + "description": "Indicates total revenue tax amount.", |
| 851 | + "type": "number" |
| 852 | + }, |
| 853 | + "currency": { |
| 854 | + "description": "Currency code to reflect the currency in which an amount may be expressed.", |
| 855 | + "type": "string" |
| 856 | + } |
| 857 | + } |
| 858 | + }, |
| 859 | + "blockPotenitalRevenueType": { |
| 860 | + "type": "object", |
| 861 | + "description": "Indicates the sum of revenue breakup per room type per block per allocation date for the reservations. Applicable for business date or future dates.", |
| 862 | + "properties": { |
| 863 | + "roomRevenue": { |
| 864 | + "description": "Indicates room revenue amount.", |
| 865 | + "type": "number" |
| 866 | + }, |
| 867 | + "foodRevenue": { |
| 868 | + "description": "Indicates food revenue amount.", |
| 869 | + "type": "number" |
| 870 | + }, |
| 871 | + "otherRevenue": { |
| 872 | + "description": "Indicates other revenue amount.", |
| 873 | + "type": "number" |
| 874 | + }, |
| 875 | + "nonRevenue": { |
| 876 | + "description": "Indicates non revenue amount.", |
| 877 | + "type": "number" |
| 878 | + }, |
| 879 | + "totalRevenue": { |
| 880 | + "description": "Indicates total revenue amount.", |
| 881 | + "type": "number" |
| 882 | + }, |
| 883 | + "roomRevenueTax": { |
| 884 | + "description": "Indicates room revenue tax amount.", |
| 885 | + "type": "number" |
| 886 | + }, |
| 887 | + "foodRevenueTax": { |
| 888 | + "description": "Indicates food revenue tax amount.", |
| 889 | + "type": "number" |
| 890 | + }, |
| 891 | + "otherRevenueTax": { |
| 892 | + "description": "Indicates other revenue tax amount.", |
| 893 | + "type": "number" |
| 894 | + }, |
| 895 | + "nonRevenueTax": { |
| 896 | + "description": "Indicates non revenue tax amount.", |
| 897 | + "type": "number" |
| 898 | + }, |
| 899 | + "totalRevenueTax": { |
| 900 | + "description": "Indicates total revenue tax amount.", |
| 901 | + "type": "number" |
| 902 | + }, |
| 903 | + "currency": { |
| 904 | + "description": "Currency code to reflect the currency in which an amount may be expressed.", |
| 905 | + "type": "string" |
| 906 | + } |
| 907 | + } |
| 908 | + }, |
790 | 909 | "blockGridRatesType": { |
791 | 910 | "type": "object", |
792 | 911 | "description": "Indicates the rate amount values per person occupancy.", |
|
824 | 943 | "endDate": { |
825 | 944 | "type": "string", |
826 | 945 | "format": "date" |
| 946 | + }, |
| 947 | + "occupancyDate": { |
| 948 | + "type": "string", |
| 949 | + "format": "date" |
| 950 | + }, |
| 951 | + "startLastModifiedDate": { |
| 952 | + "type": "string", |
| 953 | + "format": "date-time" |
| 954 | + }, |
| 955 | + "endLastModifiedDate": { |
| 956 | + "type": "string", |
| 957 | + "format": "date-time" |
827 | 958 | } |
828 | 959 | } |
829 | 960 | }, |
|
0 commit comments