Skip to content

Commit 5b31fd7

Browse files
committed
chore: publish v5.0.1 (#160)
1 parent 6614c5d commit 5b31fd7

File tree

67 files changed

+2225
-934
lines changed

Some content is hidden

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

67 files changed

+2225
-934
lines changed

code/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.expediagroup</groupId>
66
<artifactId>rapid-sdk</artifactId>
7-
<version>5.0.0</version>
7+
<version>5.0.1</version>
88
<name>EG rapid-sdk for Java</name>
9-
<description>EG rapid-sdk v5.0.0</description>
9+
<description>EG rapid-sdk v5.0.1</description>
1010
<url>https://github.com/ExpediaGroup/test-sdk</url>
1111
<inceptionYear>2022</inceptionYear>
1212
<packaging>jar</packaging>

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

Lines changed: 120 additions & 115 deletions
Large diffs are not rendered by default.

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ import javax.validation.constraints.Size
9999
* @param paymentRegistrationRecommended Boolean value indicating if a property may require payment registration to process payments, even when using the property_collect Business Model. If true, then a property may not be successfully bookable without registering payments first.
100100
* @param vacationRentalDetails
101101
* @param supplySource The supply source of the property.
102+
* @param registryNumber The property's registry number required by some jurisdictions.
102103
*/
103104
data class PropertyContent(
104105
// Unique Expedia property ID.
@@ -218,7 +219,11 @@ data class PropertyContent(
218219
// The supply source of the property.
219220
@JsonProperty("supply_source")
220221
@field:Valid
221-
val supplySource: kotlin.String? = null
222+
val supplySource: kotlin.String? = null,
223+
// The property's registry number required by some jurisdictions.
224+
@JsonProperty("registry_number")
225+
@field:Valid
226+
val registryNumber: kotlin.String? = null
222227
) {
223228
companion object {
224229
@JvmStatic
@@ -259,7 +264,8 @@ data class PropertyContent(
259264
private var multiUnit: kotlin.Boolean? = null,
260265
private var paymentRegistrationRecommended: kotlin.Boolean? = null,
261266
private var vacationRentalDetails: VacationRentalDetails? = null,
262-
private var supplySource: kotlin.String? = null
267+
private var supplySource: kotlin.String? = null,
268+
private var registryNumber: kotlin.String? = null
263269
) {
264270
fun propertyId(propertyId: kotlin.String?) = apply { this.propertyId = propertyId }
265271

@@ -329,6 +335,8 @@ data class PropertyContent(
329335

330336
fun supplySource(supplySource: kotlin.String?) = apply { this.supplySource = supplySource }
331337

338+
fun registryNumber(registryNumber: kotlin.String?) = apply { this.registryNumber = registryNumber }
339+
332340
fun build(): PropertyContent {
333341
return PropertyContent(
334342
propertyId = propertyId,
@@ -364,7 +372,8 @@ data class PropertyContent(
364372
multiUnit = multiUnit,
365373
paymentRegistrationRecommended = paymentRegistrationRecommended,
366374
vacationRentalDetails = vacationRentalDetails,
367-
supplySource = supplySource
375+
supplySource = supplySource,
376+
registryNumber = registryNumber
368377
)
369378
}
370379
}

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

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import javax.validation.constraints.Size
4646
* A room history event, representing a change made to a specific room.
4747
* @param historyId Room history id for particular change.
4848
* @param eventTimestamp Date and time in UTC of the change event, in extended ISO 8601 format.
49-
* @param eventType Type type of event associated with this history item such as modified or canceled.
50-
* @param eventSource The source of the event. If `voyager_agent`, `agent_id` will be supplied.
49+
* @param eventType Type of event associated with this history item such as modified or canceled. If the booking is marked as a no-show by the property/supplier, the value of event_type is `canceled` when the `include` request parameter is `history`. However, it is `canceled_no_show` when the `include` request parameter is `history_v2`.
50+
* @param eventSource The source of the event. If `voyager_agent`, `agent_id` will be supplied. If the event source is property/supplier, the value of event_source is `other` when the `include` request parameter is `history`. However, it is `supplier` when the `include` request parameter is `history_v2`.
5151
* @param changeReferenceId Optional identifier provided during changes via Rapid.
5252
* @param agentId An agent user id number associated with a modification.
5353
* @param roomId The room id.
@@ -77,10 +77,10 @@ data class RoomHistoryItem(
7777
@JsonProperty("event_timestamp")
7878
@field:Valid
7979
val eventTimestamp: kotlin.String? = null,
80-
// Type type of event associated with this history item such as modified or canceled.
80+
// Type of event associated with this history item such as modified or canceled. If the booking is marked as a no-show by the property/supplier, the value of event_type is `canceled` when the `include` request parameter is `history`. However, it is `canceled_no_show` when the `include` request parameter is `history_v2`.
8181
@JsonProperty("event_type")
8282
val eventType: RoomHistoryItem.EventType? = null,
83-
// The source of the event. If `voyager_agent`, `agent_id` will be supplied.
83+
// The source of the event. If `voyager_agent`, `agent_id` will be supplied. If the event source is property/supplier, the value of event_source is `other` when the `include` request parameter is `history`. However, it is `supplier` when the `include` request parameter is `history_v2`.
8484
@JsonProperty("event_source")
8585
val eventSource: RoomHistoryItem.EventSource? = null,
8686
// Optional identifier provided during changes via Rapid.
@@ -260,8 +260,8 @@ data class RoomHistoryItem(
260260
}
261261

262262
/**
263-
* Type type of event associated with this history item such as modified or canceled.
264-
* Values: CREATED,MODIFIED,CANCELED
263+
* Type of event associated with this history item such as modified or canceled. If the booking is marked as a no-show by the property/supplier, the value of event_type is `canceled` when the `include` request parameter is `history`. However, it is `canceled_no_show` when the `include` request parameter is `history_v2`.
264+
* Values: CREATED,MODIFIED,CANCELED,CANCELED_NO_SHOW
265265
*/
266266
enum class EventType(val value: kotlin.String) {
267267
@JsonProperty("created")
@@ -271,12 +271,15 @@ data class RoomHistoryItem(
271271
MODIFIED("modified"),
272272

273273
@JsonProperty("canceled")
274-
CANCELED("canceled")
274+
CANCELED("canceled"),
275+
276+
@JsonProperty("canceled_no_show")
277+
CANCELED_NO_SHOW("canceled_no_show")
275278
}
276279

277280
/**
278-
* The source of the event. If `voyager_agent`, `agent_id` will be supplied.
279-
* Values: RAPID_API,VOYAGER_AGENT,OTHER
281+
* The source of the event. If `voyager_agent`, `agent_id` will be supplied. If the event source is property/supplier, the value of event_source is `other` when the `include` request parameter is `history`. However, it is `supplier` when the `include` request parameter is `history_v2`.
282+
* Values: RAPID_API,VOYAGER_AGENT,OTHER,SUPPLIER
280283
*/
281284
enum class EventSource(val value: kotlin.String) {
282285
@JsonProperty("rapid_api")
@@ -286,6 +289,9 @@ data class RoomHistoryItem(
286289
VOYAGER_AGENT("voyager_agent"),
287290

288291
@JsonProperty("other")
289-
OTHER("other")
292+
OTHER("other"),
293+
294+
@JsonProperty("supplier")
295+
SUPPLIER("supplier")
290296
}
291297
}

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/ChangeRoomDetailsOperation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class ChangeRoomDetailsOperation private constructor(
6767
override fun pathPattern(): String {
6868
val paramsMap =
6969
buildMap {
70-
put("itinerary_id", "[a-z0-9]+")
71-
put("room_id", "[a-z0-9]+")
70+
put("itinerary_id", "[a-z0-9\\-]+")
71+
put("room_id", "[a-z0-9\\-]+")
7272
}
7373
val substitutor = StringSubstitutor(paramsMap, "{", "}")
7474
return substitutor.replace("/v3/itineraries/{itinerary_id}/rooms/{room_id}")

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/ChangeRoomDetailsOperationContext.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
*/
1616
package com.expediagroup.sdk.rapid.operations
1717

18+
import com.fasterxml.jackson.annotation.JsonProperty
19+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
20+
1821
/**
1922
* @property customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
2023
* @property customerSessionId Insert your own unique value for each user session, beginning with the first API call. Continue to pass the same value for each subsequent API call during the user's session, using a new value for every new customer session.<br> Including this value greatly eases EPS's internal debugging process for issues with partner requests, as it explicitly links together request paths for individual user's session.
2124
* @property test The change call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test booking. * `service_unavailable` * `unknown_internal_error`
2225
*/
26+
@JsonDeserialize(builder = ChangeRoomDetailsOperationParams.Builder::class)
2327
data class ChangeRoomDetailsOperationContext(
2428
val customerIp: kotlin.String,
2529
val customerSessionId: kotlin.String? =
@@ -33,9 +37,9 @@ data class ChangeRoomDetailsOperationContext(
3337
}
3438

3539
class Builder(
36-
private var customerIp: kotlin.String? = null,
37-
private var customerSessionId: kotlin.String? = null,
38-
private var test: ChangeRoomDetailsOperationParams.Test? = null
40+
@JsonProperty("Customer-Ip") private var customerIp: kotlin.String? = null,
41+
@JsonProperty("Customer-Session-Id") private var customerSessionId: kotlin.String? = null,
42+
@JsonProperty("Test") private var test: ChangeRoomDetailsOperationParams.Test? = null
3943
) {
4044
/**
4145
* @param customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/ChangeRoomDetailsOperationParams.kt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
package com.expediagroup.sdk.rapid.operations
1717

1818
import com.expediagroup.sdk.core.model.OperationParams
19+
import com.fasterxml.jackson.annotation.JsonProperty
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
1921

2022
/**
2123
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
@@ -25,6 +27,7 @@ import com.expediagroup.sdk.core.model.OperationParams
2527
* @property test The change call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test booking. * `service_unavailable` * `unknown_internal_error`
2628
* @property token Provided as part of the link object and used to maintain state across calls. This simplifies each subsequent call by limiting the amount of information required at each step and reduces the potential for errors. Token values cannot be viewed or changed.
2729
*/
30+
@JsonDeserialize(builder = ChangeRoomDetailsOperationParams.Builder::class)
2831
data class ChangeRoomDetailsOperationParams
2932
internal constructor(
3033
val itineraryId: kotlin.String? = null,
@@ -76,12 +79,12 @@ data class ChangeRoomDetailsOperationParams
7679
}
7780

7881
class Builder(
79-
private var itineraryId: kotlin.String? = null,
80-
private var roomId: kotlin.String? = null,
81-
private var customerIp: kotlin.String? = null,
82-
private var customerSessionId: kotlin.String? = null,
83-
private var test: ChangeRoomDetailsOperationParams.Test? = null,
84-
private var token: kotlin.String? = null
82+
@JsonProperty("itinerary_id") private var itineraryId: kotlin.String? = null,
83+
@JsonProperty("room_id") private var roomId: kotlin.String? = null,
84+
@JsonProperty("Customer-Ip") private var customerIp: kotlin.String? = null,
85+
@JsonProperty("Customer-Session-Id") private var customerSessionId: kotlin.String? = null,
86+
@JsonProperty("Test") private var test: ChangeRoomDetailsOperationParams.Test? = null,
87+
@JsonProperty("token") private var token: kotlin.String? = null
8588
) {
8689
/**
8790
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/CommitChangeOperation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class CommitChangeOperation private constructor(
6767
override fun pathPattern(): String {
6868
val paramsMap =
6969
buildMap {
70-
put("itinerary_id", "[a-z0-9]+")
71-
put("room_id", "[a-z0-9]+")
70+
put("itinerary_id", "[a-z0-9\\-]+")
71+
put("room_id", "[a-z0-9\\-]+")
7272
}
7373
val substitutor = StringSubstitutor(paramsMap, "{", "}")
7474
return substitutor.replace("/v3/itineraries/{itinerary_id}/rooms/{room_id}/pricing")

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/CommitChangeOperationContext.kt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
*/
1616
package com.expediagroup.sdk.rapid.operations
1717

18+
import com.fasterxml.jackson.annotation.JsonProperty
19+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
20+
1821
/**
19-
* @property customerIp IP address of the customer, as captured by your integration. Send IPV4 addresses only.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
22+
* @property customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
2023
* @property customerSessionId Insert your own unique value for each user session, beginning with the first API call. Continue to pass the same value for each subsequent API call during the user's session, using a new value for every new customer session.<br> Including this value greatly eases EPS's internal debugging process for issues with partner requests, as it explicitly links together request paths for individual user's session.
2124
* @property test The change call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test booking. * `service_unavailable` * `unknown_internal_error`
2225
*/
26+
@JsonDeserialize(builder = CommitChangeOperationParams.Builder::class)
2327
data class CommitChangeOperationContext(
2428
val customerIp: kotlin.String,
2529
val customerSessionId: kotlin.String? =
@@ -33,12 +37,12 @@ data class CommitChangeOperationContext(
3337
}
3438

3539
class Builder(
36-
private var customerIp: kotlin.String? = null,
37-
private var customerSessionId: kotlin.String? = null,
38-
private var test: CommitChangeOperationParams.Test? = null
40+
@JsonProperty("Customer-Ip") private var customerIp: kotlin.String? = null,
41+
@JsonProperty("Customer-Session-Id") private var customerSessionId: kotlin.String? = null,
42+
@JsonProperty("Test") private var test: CommitChangeOperationParams.Test? = null
3943
) {
4044
/**
41-
* @param customerIp IP address of the customer, as captured by your integration. Send IPV4 addresses only.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
45+
* @param customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
4246
*/
4347
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
4448

code/src/main/kotlin/com/expediagroup/sdk/rapid/operations/CommitChangeOperationParams.kt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@
1616
package com.expediagroup.sdk.rapid.operations
1717

1818
import com.expediagroup.sdk.core.model.OperationParams
19+
import com.fasterxml.jackson.annotation.JsonProperty
20+
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
1921

2022
/**
2123
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
2224
* @property roomId Room ID of a property.<br>
23-
* @property customerIp IP address of the customer, as captured by your integration. Send IPV4 addresses only.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
25+
* @property customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
2426
* @property customerSessionId Insert your own unique value for each user session, beginning with the first API call. Continue to pass the same value for each subsequent API call during the user's session, using a new value for every new customer session.<br> Including this value greatly eases EPS's internal debugging process for issues with partner requests, as it explicitly links together request paths for individual user's session.
2527
* @property test The change call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test booking. * `service_unavailable` * `unknown_internal_error`
2628
* @property token Provided as part of the link object and used to maintain state across calls. This simplifies each subsequent call by limiting the amount of information required at each step and reduces the potential for errors. Token values cannot be viewed or changed.
2729
*/
30+
@JsonDeserialize(builder = CommitChangeOperationParams.Builder::class)
2831
data class CommitChangeOperationParams
2932
internal constructor(
3033
val itineraryId: kotlin.String? = null,
@@ -76,12 +79,12 @@ data class CommitChangeOperationParams
7679
}
7780

7881
class Builder(
79-
private var itineraryId: kotlin.String? = null,
80-
private var roomId: kotlin.String? = null,
81-
private var customerIp: kotlin.String? = null,
82-
private var customerSessionId: kotlin.String? = null,
83-
private var test: CommitChangeOperationParams.Test? = null,
84-
private var token: kotlin.String? = null
82+
@JsonProperty("itinerary_id") private var itineraryId: kotlin.String? = null,
83+
@JsonProperty("room_id") private var roomId: kotlin.String? = null,
84+
@JsonProperty("Customer-Ip") private var customerIp: kotlin.String? = null,
85+
@JsonProperty("Customer-Session-Id") private var customerSessionId: kotlin.String? = null,
86+
@JsonProperty("Test") private var test: CommitChangeOperationParams.Test? = null,
87+
@JsonProperty("token") private var token: kotlin.String? = null
8588
) {
8689
/**
8790
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
@@ -94,7 +97,7 @@ data class CommitChangeOperationParams
9497
fun roomId(roomId: kotlin.String) = apply { this.roomId = roomId }
9598

9699
/**
97-
* @param customerIp IP address of the customer, as captured by your integration. Send IPV4 addresses only.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
100+
* @param customerIp IP address of the customer, as captured by your integration.<br> Ensure your integration passes the customer's IP, not your own. This value helps determine their location and assign the correct payment gateway.<br> Also used for fraud recovery and other important analytics.
98101
*/
99102
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
100103

0 commit comments

Comments
 (0)