Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Publish v1.0.0-SNAPSHOT #36

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:

release-sdk:
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@v20241126
needs: [ run-examples ]
secrets: inherit
with:
branch: ${{ inputs.branch }}
2 changes: 1 addition & 1 deletion code/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<dependency>
<groupId>com.expediagroup</groupId>
<artifactId>xap-sdk</artifactId>
<version>1.0.0</version>
<version>1.0.0-SNAPSHOT</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.expediagroup</groupId>
<artifactId>xap-sdk</artifactId>
<version>1.0.0</version>
<version>1.0.0-SNAPSHOT</version>
<name>EG xap-sdk for Java</name>
<description>EG xap-sdk v1.0.0</description>
<description>EG xap-sdk v1.0.0-SNAPSHOT</description>
<url>https://github.com/ExpediaGroup/test-sdk</url>
<inceptionYear>2022</inceptionYear>
<packaging>jar</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import javax.validation.constraints.NotNull
/**
* The rate detail information for a car offer.
* @param ratePeriod Rate period. Supported values: Daily,Weekly,Monthly,Trip,Weekend
* @param rateCode Rate plan identifier.
* @param prePay Indicates whether this reservation should be paid at the time of booking (true) or at time of rental return (false).
* @param rateCode Rate plan identifier.
* @param creditCardRequired Indicates whether credit card is required for booking.
* @param discounts List of discount information.
* @param mileages A list of charges to be levied based on the mileage driven.
Expand All @@ -55,16 +55,15 @@ data class RateDetails(
@field:NotNull
@field:Valid
val ratePeriod: kotlin.String,
// Rate plan identifier.
@JsonProperty("RateCode")
@field:NotNull
@field:Valid
val rateCode: kotlin.String,
// Indicates whether this reservation should be paid at the time of booking (true) or at time of rental return (false).
@JsonProperty("PrePay")
@field:NotNull
@field:Valid
val prePay: kotlin.Boolean,
// Rate plan identifier.
@JsonProperty("RateCode")
@field:Valid
val rateCode: kotlin.String? = null,
// Indicates whether credit card is required for booking.
@JsonProperty("CreditCardRequired")
@field:Valid
Expand All @@ -89,19 +88,19 @@ data class RateDetails(

class Builder(
private var ratePeriod: kotlin.String? = null,
private var rateCode: kotlin.String? = null,
private var prePay: kotlin.Boolean? = null,
private var rateCode: kotlin.String? = null,
private var creditCardRequired: kotlin.Boolean? = null,
private var discounts: kotlin.collections.List<Discount>? = null,
private var mileages: kotlin.collections.List<Mileage>? = null,
private var mobileRate: kotlin.Boolean? = null
) {
fun ratePeriod(ratePeriod: kotlin.String) = apply { this.ratePeriod = ratePeriod }

fun rateCode(rateCode: kotlin.String) = apply { this.rateCode = rateCode }

fun prePay(prePay: kotlin.Boolean) = apply { this.prePay = prePay }

fun rateCode(rateCode: kotlin.String?) = apply { this.rateCode = rateCode }

fun creditCardRequired(creditCardRequired: kotlin.Boolean?) = apply { this.creditCardRequired = creditCardRequired }

fun discounts(discounts: kotlin.collections.List<Discount>?) = apply { this.discounts = discounts }
Expand All @@ -114,8 +113,8 @@ data class RateDetails(
val instance =
RateDetails(
ratePeriod = ratePeriod!!,
rateCode = rateCode!!,
prePay = prePay!!,
rateCode = rateCode,
creditCardRequired = creditCardRequired,
discounts = discounts,
mileages = mileages,
Expand Down Expand Up @@ -149,8 +148,8 @@ data class RateDetails(
fun toBuilder() =
Builder(
ratePeriod = ratePeriod!!,
rateCode = rateCode!!,
prePay = prePay!!,
rateCode = rateCode,
creditCardRequired = creditCardRequired,
discounts = discounts,
mileages = mileages,
Expand Down
1 change: 0 additions & 1 deletion code/transformedSpecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6353,7 +6353,6 @@ components:
RateDetails:
required:
- PrePay
- RateCode
- RatePeriod
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ public static void main(String[] args) {

logger.info(
"============================== Running Car Scenarios =============================");
CarListingsQuickStartScenario carListingsQuickStartScenario = new CarListingsQuickStartScenario();
CarListingsQuickStartScenario carListingsQuickStartScenario =
new CarListingsQuickStartScenario();

carListingsQuickStartScenario.run();

CarDetailsQuickStartScenario carDetailsQuickStartScenario = new CarDetailsQuickStartScenario();
Expand Down
Loading