Skip to content

Commit 0c3e608

Browse files
author
Jeremy D. Young
committed
DEVHUB-65 - Creating compatibility class
1 parent 62748a9 commit 0c3e608

File tree

2 files changed

+92
-0
lines changed
  • code/src/main/kotlin/com/expediagroup/sdk/rapid/models
  • override/src/main/kotlin/com/expediagroup/sdk/rapid/models

2 files changed

+92
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (C) 2022 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
@file:Suppress(
18+
"ArrayInDataClass",
19+
"EnumEntryName",
20+
"RemoveRedundantQualifierName",
21+
"UnusedImport",
22+
)
23+
24+
package com.expediagroup.sdk.rapid.models
25+
26+
import com.fasterxml.jackson.annotation.JsonProperty
27+
28+
/**
29+
* Rates returned are always AVAILABLE. PRICE_CHANGED and SOLD_OUT are never returned for rates in the Availability
30+
* call.
31+
* Values: AVAILABLE, PRICE_CHANGED, SOLD_OUT
32+
*/
33+
@Deprecated("This is replaced by Rate.Status")
34+
enum class Status(
35+
val value: kotlin.String,
36+
) {
37+
@JsonProperty("available")
38+
AVAILABLE("available"),
39+
40+
@Deprecated("Never Returned")
41+
@JsonProperty("price_changed")
42+
PRICE_CHANGED("price_changed"),
43+
44+
@Deprecated("Never Returned")
45+
@JsonProperty("sold_out")
46+
SOLD_OUT("sold_out"),
47+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (C) 2022 Expedia, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
@file:Suppress(
18+
"ArrayInDataClass",
19+
"EnumEntryName",
20+
"RemoveRedundantQualifierName",
21+
"UnusedImport"
22+
)
23+
24+
package com.expediagroup.sdk.rapid.models
25+
26+
import com.fasterxml.jackson.annotation.JsonProperty
27+
28+
/**
29+
* Rates returned are always AVAILABLE. PRICE_CHANGED and SOLD_OUT are never returned for rates in the Availability
30+
* call.
31+
* Values: AVAILABLE, PRICE_CHANGED, SOLD_OUT
32+
*/
33+
@Deprecated("This is replaced by Rate.Status")
34+
enum class Status(val value: kotlin.String) {
35+
@JsonProperty("available")
36+
AVAILABLE("available"),
37+
38+
@Deprecated("Never Returned")
39+
@JsonProperty("price_changed")
40+
PRICE_CHANGED("price_changed"),
41+
42+
@Deprecated("Never Returned")
43+
@JsonProperty("sold_out")
44+
SOLD_OUT("sold_out")
45+
}

0 commit comments

Comments
 (0)