Skip to content

Commit ac09142

Browse files
authored
chore: update code to v4.3.0 (#102)
1 parent 9b1c5df commit ac09142

File tree

247 files changed

+7474
-3619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+7474
-3619
lines changed

code/src/main/kotlin/com/expediagroup/sdk/core/model/OperationParams.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,6 @@ interface OperationParams {
1919
fun getHeaders(): Map<String, String>?
2020

2121
fun getQueryParams(): Map<String, Iterable<String>>?
22+
23+
fun getPathParams(): Map<String, String>
2224
}

code/src/main/kotlin/com/expediagroup/sdk/domain/rapid/RapidHelpers.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ import com.expediagroup.sdk.core.client.ClientHelpers
2020
import com.expediagroup.sdk.core.constant.HeaderKey
2121
import com.expediagroup.sdk.core.model.Response
2222

23+
@Deprecated("Use operations and responses instead")
2324
class RapidHelpers(client: BaseRapidClient) : ClientHelpers(client) {
2425
/** Extracts the token parameter from a URL string if it exists; otherwise, returns null. */
26+
@Deprecated("Construct operation using Link", ReplaceWith("Operation(link: Link)"))
2527
fun extractToken(url: String): String? = Regex("token=([^&]*)").find(url)?.groupValues?.getOrNull(1)
2628

2729
/** Extracts the room booking ID from a URL string if it exists; otherwise, returns null. */
30+
@Deprecated("Construct operation using Link", ReplaceWith("Operation(link: Link)"))
2831
fun extractRoomBookingId(url: String): String? = Regex("rooms\\/([a-z0-9-]+)").find(url)?.groupValues?.getOrNull(1)
2932

3033
/** Extracts the transaction ID from a response object if it exists; otherwise, returns null. */
34+
@Deprecated("Get transactionId from response headers", ReplaceWith("response.headers[transaction-id]"))
3135
fun <T> extractTransactionId(response: Response<T>): String? = response.headers[HeaderKey.TRANSACTION_ID]?.first()
3236
}

code/src/main/kotlin/com/expediagroup/sdk/rapid/client/rapidClient.kt

Lines changed: 337 additions & 43 deletions
Large diffs are not rendered by default.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Address.kt

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,31 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
33+
import com.expediagroup.sdk.rapid.models.Localized
3534
import com.fasterxml.jackson.annotation.JsonProperty
35+
import org.hibernate.validator.constraints.Length
3636
import javax.validation.Valid
37+
import javax.validation.constraints.Max
38+
import javax.validation.constraints.Min
39+
import javax.validation.constraints.Pattern
40+
import javax.validation.constraints.Size
3741

3842
/**
3943
* Container for the property's address information.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Address1.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
*

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Adjustment.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
* Any price adjustments associated with this itinerary.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/AffiliateCollect.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
* This option will be returned if a booking can be made using Expedia Affiliate Collect.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/AllInclusive.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
* Information about the all-inclusive rate plans available at the property.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Amenity.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
* An individual amenity.

code/src/main/kotlin/com/expediagroup/sdk/rapid/models/Amount.kt

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,30 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
package com.expediagroup.sdk.rapid.models
18-
19-
/*
20-
* Copyright (C) 2022 Expedia, Inc.
16+
/**
2117
*
22-
* Licensed under the Apache License, Version 2.0 (the "License");
23-
* you may not use this file except in compliance with the License.
24-
* You may obtain a copy of the License at
18+
* Please note:
19+
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20+
* Do not edit this file manually.
2521
*
26-
* http://www.apache.org/licenses/LICENSE-2.0
27-
*
28-
* Unless required by applicable law or agreed to in writing, software
29-
* distributed under the License is distributed on an "AS IS" BASIS,
30-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31-
* See the License for the specific language governing permissions and
32-
* limitations under the License.
3322
*/
3423

24+
@file:Suppress(
25+
"ArrayInDataClass",
26+
"EnumEntryName",
27+
"RemoveRedundantQualifierName",
28+
"UnusedImport"
29+
)
30+
31+
package com.expediagroup.sdk.rapid.models
32+
3533
import com.fasterxml.jackson.annotation.JsonProperty
34+
import org.hibernate.validator.constraints.Length
3635
import javax.validation.Valid
36+
import javax.validation.constraints.Max
37+
import javax.validation.constraints.Min
38+
import javax.validation.constraints.Pattern
39+
import javax.validation.constraints.Size
3740

3841
/**
3942
* The monetary amount.

0 commit comments

Comments
 (0)