Skip to content

Commit

Permalink
chore: Publish v5.3.0 (#250)
Browse files Browse the repository at this point in the history
Co-authored-by: mohnoor94 <[email protected]>
  • Loading branch information
github-actions[bot] and mohnoor94 authored Dec 10, 2024
1 parent e8848ca commit a3994ae
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 31 deletions.
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>rapid-sdk</artifactId>
<version>5.2.0</version>
<version>5.3.0</version>
</dependency>
```

Expand Down
14 changes: 7 additions & 7 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>rapid-sdk</artifactId>
<version>5.2.0</version>
<version>5.3.0</version>
<name>EG rapid-sdk for Java</name>
<description>EG rapid-sdk v5.2.0</description>
<description>EG rapid-sdk v5.3.0</description>
<url>https://github.com/ExpediaGroup/test-sdk</url>
<inceptionYear>2022</inceptionYear>
<packaging>jar</packaging>
Expand Down Expand Up @@ -82,7 +82,7 @@
<kotlin.version>2.0.21</kotlin.version>
<kotlinx.coroutines.version>1.9.0</kotlinx.coroutines.version>
<ktor.version>2.3.13</ktor.version>
<kotlin-atomic.version>0.26.0</kotlin-atomic.version>
<kotlin-atomic.version>0.26.1</kotlin-atomic.version>
<slf4j.version>2.0.16</slf4j.version>
<maven.nexus-staging.plugin.version>1.7.0</maven.nexus-staging.plugin.version>
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
Expand Down Expand Up @@ -131,7 +131,7 @@
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>2.18.1</version>
<version>2.18.2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -153,7 +153,7 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.18.1</version>
<version>2.18.2</version>
</dependency>
</dependencies>
</dependencyManagement>
Expand Down Expand Up @@ -744,13 +744,13 @@
<dependency>
<groupId>com.ebay.ejmask</groupId>
<artifactId>ejmask-api</artifactId>
<version>1.0.3</version>
<version>1.2.1</version>
</dependency>

<dependency>
<groupId>com.ebay.ejmask</groupId>
<artifactId>ejmask-extensions</artifactId>
<version>1.0.3</version>
<version>1.2.1</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,23 @@ package com.expediagroup.sdk.rapid.models
import com.expediagroup.sdk.core.model.exception.client.PropertyConstraintViolationException
import com.expediagroup.sdk.rapid.models.TraderAddress
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonSetter
import com.fasterxml.jackson.annotation.Nulls
import org.hibernate.validator.messageinterpolation.ParameterMessageInterpolator
import javax.validation.Valid
import javax.validation.Validation
import javax.validation.constraints.NotNull

/**
* Information of the professional entity that sells the property inventory or related services.
* @param contactMessage The trader contact message.
* @param name The trader name.
* @param address
* @param businessRegisterName Name of the register where the trader is registered, and is related to the `business_register_number`
* @param businessRegisterNumber Business registration number
* @param selfCertification Certification that the trader has confirmed their commitment to only offer products or services that comply with the applicable rules of Union law.
* @param contactMessage The trader contact message.
* @param rightToWithdrawMessage The trader right to withdraw message.
* @param email The trader email address.
* @param phone The trader phone number.
*/
data class TraderDetailsInner(
// The trader contact message.
@JsonProperty("contact_message")
@JsonSetter(nulls = Nulls.AS_EMPTY)
@field:NotNull
@field:Valid
val contactMessage: kotlin.String? = "",
// The trader name.
@JsonProperty("name")
@field:Valid
Expand All @@ -78,6 +69,10 @@ data class TraderDetailsInner(
@JsonProperty("self_certification")
@field:Valid
val selfCertification: kotlin.Boolean? = null,
// The trader contact message.
@JsonProperty("contact_message")
@field:Valid
val contactMessage: kotlin.String? = null,
// The trader right to withdraw message.
@JsonProperty("right_to_withdraw_message")
@field:Valid
Expand All @@ -97,18 +92,16 @@ data class TraderDetailsInner(
}

class Builder(
private var contactMessage: kotlin.String? = null,
private var name: kotlin.String? = null,
private var address: TraderAddress? = null,
private var businessRegisterName: kotlin.String? = null,
private var businessRegisterNumber: kotlin.String? = null,
private var selfCertification: kotlin.Boolean? = null,
private var contactMessage: kotlin.String? = null,
private var rightToWithdrawMessage: kotlin.String? = null,
private var email: kotlin.String? = null,
private var phone: kotlin.String? = null
) {
fun contactMessage(contactMessage: kotlin.String) = apply { this.contactMessage = contactMessage }

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

fun address(address: TraderAddress?) = apply { this.address = address }
Expand All @@ -119,6 +112,8 @@ data class TraderDetailsInner(

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

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

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

fun email(email: kotlin.String?) = apply { this.email = email }
Expand All @@ -128,12 +123,12 @@ data class TraderDetailsInner(
fun build(): TraderDetailsInner {
val instance =
TraderDetailsInner(
contactMessage = contactMessage!!,
name = name,
address = address,
businessRegisterName = businessRegisterName,
businessRegisterNumber = businessRegisterNumber,
selfCertification = selfCertification,
contactMessage = contactMessage,
rightToWithdrawMessage = rightToWithdrawMessage,
email = email,
phone = phone
Expand Down Expand Up @@ -165,12 +160,12 @@ data class TraderDetailsInner(

fun toBuilder() =
Builder(
contactMessage = contactMessage!!,
name = name,
address = address,
businessRegisterName = businessRegisterName,
businessRegisterNumber = businessRegisterNumber,
selfCertification = selfCertification,
contactMessage = contactMessage,
rightToWithdrawMessage = rightToWithdrawMessage,
email = email,
phone = phone
Expand Down
14 changes: 6 additions & 8 deletions code/transformedSpecs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5502,7 +5502,7 @@ paths:
required: true
schema:
type: string
example: 2024-11-01
example: 2025-02-01
- name: checkout
in: query
description: >
Expand All @@ -5512,7 +5512,7 @@ paths:
required: true
schema:
type: string
example: 2024-11-03
example: 2025-02-03
- name: currency
in: query
description: >
Expand Down Expand Up @@ -6747,7 +6747,7 @@ paths:
If specified must also specify `checkout`.
schema:
type: string
example: 2024-11-01
example: 2025-02-01
- name: checkout
in: query
description: >
Expand All @@ -6760,7 +6760,7 @@ paths:
If specified must also specify `checkin`.<br>
schema:
type: string
example: 2024-11-03
example: 2025-02-03
- name: exclusion
in: query
description: >
Expand Down Expand Up @@ -8407,7 +8407,7 @@ paths:
schema:
type: string
format: date
example: 2024-11-15
example: 2025-02-15
- name: end_date
in: query
description: >
Expand All @@ -8418,7 +8418,7 @@ paths:
schema:
type: string
format: date
example: 2025-05-17
example: 2025-08-17
responses:
"200":
description: OK
Expand Down Expand Up @@ -18530,8 +18530,6 @@ components:
type: array
description: An array of traders.
items:
required:
- contact_message
type: object
properties:
name:
Expand Down

0 comments on commit a3994ae

Please sign in to comment.