Skip to content

Commit d9a8c2a

Browse files
authored
feat: update code to v.4.1.1 (#71)
1 parent 1b9b757 commit d9a8c2a

File tree

53 files changed

+1239
-22
lines changed

Some content is hidden

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

53 files changed

+1239
-22
lines changed

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

Lines changed: 211 additions & 22 deletions
Large diffs are not rendered by default.

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ package com.expediagroup.sdk.rapid.operations
1919
import com.expediagroup.sdk.core.model.Operation
2020
import com.expediagroup.sdk.rapid.models.ChangeRoomDetailsRequest
2121

22+
/**
23+
* Change details of a room.
24+
* @property requestBody [ChangeRoomDetailsRequest]
25+
* @property params [ChangeRoomDetailsOperationParams]
26+
27+
*/
2228
class ChangeRoomDetailsOperation(
2329
requestBody: ChangeRoomDetailsRequest?,
2430
params: ChangeRoomDetailsOperationParams

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ package com.expediagroup.sdk.rapid.operations
1818

1919
import com.expediagroup.sdk.core.model.OperationParams
2020

21+
/**
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.
23+
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
24+
* @property roomId Room ID of a property.<br>
25+
* @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.
26+
* @property changeRoomDetailsRequest The request body is required, but only the fields that are being changed need to be passed in. Fields that are not being changed should not be included in the request body.
27+
* @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.
28+
* @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`
29+
*/
2130
data class ChangeRoomDetailsOperationParams(
2231
val itineraryId: kotlin.String,
2332
val roomId: kotlin.String,
@@ -39,16 +48,34 @@ data class ChangeRoomDetailsOperationParams(
3948
private var test: kotlin.String? = null,
4049
private var token: kotlin.String? = null
4150
) {
51+
/**
52+
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
53+
*/
4254
fun itineraryId(itineraryId: kotlin.String) = apply { this.itineraryId = itineraryId }
4355

56+
/**
57+
* @param roomId Room ID of a property.<br>
58+
*/
4459
fun roomId(roomId: kotlin.String) = apply { this.roomId = roomId }
4560

61+
/**
62+
* @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.
63+
*/
4664
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
4765

66+
/**
67+
* @param 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.
68+
*/
4869
fun customerSessionId(customerSessionId: kotlin.String) = apply { this.customerSessionId = customerSessionId }
4970

71+
/**
72+
* @param 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`
73+
*/
5074
fun test(test: kotlin.String) = apply { this.test = test }
5175

76+
/**
77+
* @param 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.
78+
*/
5279
fun token(token: kotlin.String) = apply { this.token = token }
5380

5481
fun build(): ChangeRoomDetailsOperationParams {

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ package com.expediagroup.sdk.rapid.operations
1919
import com.expediagroup.sdk.core.model.Operation
2020
import com.expediagroup.sdk.rapid.models.CommitChangeRoomRequestBody
2121

22+
/**
23+
* Commit a change of itinerary that may require additional payment or refund.
24+
* @property requestBody [CommitChangeRoomRequestBody]
25+
* @property params [CommitChangeOperationParams]
26+
27+
*/
2228
class CommitChangeOperation(
2329
requestBody: CommitChangeRoomRequestBody?,
2430
params: CommitChangeOperationParams

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ package com.expediagroup.sdk.rapid.operations
1818

1919
import com.expediagroup.sdk.core.model.OperationParams
2020

21+
/**
22+
* @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.
23+
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
24+
* @property roomId Room ID of a property.<br>
25+
* @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.
26+
* @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.
27+
* @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`
28+
* @property commitChangeRoomRequestBody The request body is required if additional payment is necessary. The body can optionally contain the `change_reference_id`.
29+
*/
2130
data class CommitChangeOperationParams(
2231
val itineraryId: kotlin.String,
2332
val roomId: kotlin.String,
@@ -39,16 +48,34 @@ data class CommitChangeOperationParams(
3948
private var test: kotlin.String? = null,
4049
private var token: kotlin.String? = null
4150
) {
51+
/**
52+
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
53+
*/
4254
fun itineraryId(itineraryId: kotlin.String) = apply { this.itineraryId = itineraryId }
4355

56+
/**
57+
* @param roomId Room ID of a property.<br>
58+
*/
4459
fun roomId(roomId: kotlin.String) = apply { this.roomId = roomId }
4560

61+
/**
62+
* @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.
63+
*/
4664
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
4765

66+
/**
67+
* @param 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.
68+
*/
4869
fun customerSessionId(customerSessionId: kotlin.String) = apply { this.customerSessionId = customerSessionId }
4970

71+
/**
72+
* @param 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`
73+
*/
5074
fun test(test: kotlin.String) = apply { this.test = test }
5175

76+
/**
77+
* @param 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.
78+
*/
5279
fun token(token: kotlin.String) = apply { this.token = token }
5380

5481
fun build(): CommitChangeOperationParams {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ package com.expediagroup.sdk.rapid.operations
1919
import com.expediagroup.sdk.core.model.Nothing
2020
import com.expediagroup.sdk.core.model.Operation
2121

22+
/**
23+
* Cancel Held Booking
24+
* @property params [DeleteHeldBookingOperationParams]
25+
26+
*/
2227
class DeleteHeldBookingOperation(
2328
params: DeleteHeldBookingOperationParams
2429
) : Operation<

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ package com.expediagroup.sdk.rapid.operations
1818

1919
import com.expediagroup.sdk.core.model.OperationParams
2020

21+
/**
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.
23+
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
24+
* @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.
25+
* @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.
26+
* @property test The cancel call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test held booking. * `service_unavailable` * `internal_server_error` * `post_stay_cancel`
27+
*/
2128
data class DeleteHeldBookingOperationParams(
2229
val itineraryId: kotlin.String,
2330
val customerIp: kotlin.String,
@@ -37,14 +44,29 @@ data class DeleteHeldBookingOperationParams(
3744
private var test: kotlin.String? = null,
3845
private var token: kotlin.String? = null
3946
) {
47+
/**
48+
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
49+
*/
4050
fun itineraryId(itineraryId: kotlin.String) = apply { this.itineraryId = itineraryId }
4151

52+
/**
53+
* @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.
54+
*/
4255
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
4356

57+
/**
58+
* @param 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.
59+
*/
4460
fun customerSessionId(customerSessionId: kotlin.String) = apply { this.customerSessionId = customerSessionId }
4561

62+
/**
63+
* @param test The cancel call has a test header that can be used to return set responses with the following keywords:<br> * `standard` - Requires valid test held booking. * `service_unavailable` * `internal_server_error` * `post_stay_cancel`
64+
*/
4665
fun test(test: kotlin.String) = apply { this.test = test }
4766

67+
/**
68+
* @param 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.
69+
*/
4870
fun token(token: kotlin.String) = apply { this.token = token }
4971

5072
fun build(): DeleteHeldBookingOperationParams {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ package com.expediagroup.sdk.rapid.operations
1919
import com.expediagroup.sdk.core.model.Nothing
2020
import com.expediagroup.sdk.core.model.Operation
2121

22+
/**
23+
* Cancel a room.
24+
* @property params [DeleteRoomOperationParams]
25+
26+
*/
2227
class DeleteRoomOperation(
2328
params: DeleteRoomOperationParams
2429
) : Operation<

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ package com.expediagroup.sdk.rapid.operations
1818

1919
import com.expediagroup.sdk.core.model.OperationParams
2020

21+
/**
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.
23+
* @property itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
24+
* @property roomId Room ID of a property.<br>
25+
* @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.
26+
* @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.
27+
* @property test The cancel 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` * `post_stay_cancel`
28+
*/
2129
data class DeleteRoomOperationParams(
2230
val itineraryId: kotlin.String,
2331
val roomId: kotlin.String,
@@ -39,16 +47,34 @@ data class DeleteRoomOperationParams(
3947
private var test: kotlin.String? = null,
4048
private var token: kotlin.String? = null
4149
) {
50+
/**
51+
* @param itineraryId This parameter is used only to prefix the token value - no ID value is used.<br>
52+
*/
4253
fun itineraryId(itineraryId: kotlin.String) = apply { this.itineraryId = itineraryId }
4354

55+
/**
56+
* @param roomId Room ID of a property.<br>
57+
*/
4458
fun roomId(roomId: kotlin.String) = apply { this.roomId = roomId }
4559

60+
/**
61+
* @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.
62+
*/
4663
fun customerIp(customerIp: kotlin.String) = apply { this.customerIp = customerIp }
4764

65+
/**
66+
* @param 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.
67+
*/
4868
fun customerSessionId(customerSessionId: kotlin.String) = apply { this.customerSessionId = customerSessionId }
4969

70+
/**
71+
* @param test The cancel 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` * `post_stay_cancel`
72+
*/
5073
fun test(test: kotlin.String) = apply { this.test = test }
5174

75+
/**
76+
* @param 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.
77+
*/
5278
fun token(token: kotlin.String) = apply { this.token = token }
5379

5480
fun build(): DeleteRoomOperationParams {

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ package com.expediagroup.sdk.rapid.operations
1919
import com.expediagroup.sdk.core.model.Nothing
2020
import com.expediagroup.sdk.core.model.Operation
2121

22+
/**
23+
* Get additional property room rates and availability
24+
* @property params [GetAdditionalAvailabilityOperationParams]
25+
26+
*/
2227
class GetAdditionalAvailabilityOperation(
2328
params: GetAdditionalAvailabilityOperationParams
2429
) : Operation<

0 commit comments

Comments
 (0)