Skip to content

Commit

Permalink
Merge pull request #127 from andacata/correct_some_property_types
Browse files Browse the repository at this point in the history
fix(domain): Correct some property types
  • Loading branch information
lilgallon authored Aug 2, 2024
2 parents 31d452c + 112adff commit c083557
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.izivia.ocpi.toolkit.modules.commands.domain

import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL

/**
* @property responseUrl (max-length=255) URL that the CommandResult POST should be sent to. This URL might contain a
Expand All @@ -10,6 +11,6 @@ import com.izivia.ocpi.toolkit.common.CiString
* a reservation that matches this reservationId the Charge Point will replace the reservation.
*/
data class CancelReservation(
val responseUrl: CiString,
val responseUrl: URL,
val reservationId: CiString
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.izivia.ocpi.toolkit.modules.commands.domain

import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL
import com.izivia.ocpi.toolkit.modules.tokens.domain.Token
import java.time.Instant

Expand All @@ -25,7 +26,7 @@ import java.time.Instant
* reference will be provided in the relevant Session and/or CDR.
*/
data class ReserveNow(
val responseUrl: CiString,
val responseUrl: URL,
val token: Token,
val expiryDate: Instant,
val reservationId: CiString,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.izivia.ocpi.toolkit.modules.commands.domain

import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL
import com.izivia.ocpi.toolkit.modules.tokens.domain.Token

/**
Expand All @@ -23,7 +24,7 @@ import com.izivia.ocpi.toolkit.modules.tokens.domain.Token
* reference will be provided in the relevant Session and/or CDR.
*/
data class StartSession(
val responseUrl: CiString,
val responseUrl: URL,
val token: Token,
val locationId: CiString,
val evseUid: CiString?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.izivia.ocpi.toolkit.modules.commands.domain

import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL

/**
* @property responseUrl (max-length-255) URL that the CommandResult POST should be sent to. This URL might contain a
Expand All @@ -9,6 +10,6 @@ import com.izivia.ocpi.toolkit.common.CiString
* @property sessionId (max-length-36) Session.id of the Session that is requested to be stopped.
*/
data class StopSession(
val responseUrl: CiString,
val responseUrl: URL,
val sessionId: CiString
)
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.izivia.ocpi.toolkit.modules.commands.domain

import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL

/**
* @property responseUrl (max-length=255) URL that the CommandResult POST should be sent to. This URL might contain a
Expand All @@ -16,7 +17,7 @@ import com.izivia.ocpi.toolkit.common.CiString
* unlock.
*/
data class UnlockConnector(
val responseUrl: CiString,
val responseUrl: URL,
val locationId: CiString,
val evseUid: CiString,
val connectorId: CiString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ data class PublishTokenType(
val type: TokenType?,
val visualNumber: String?,
val issuer: String?,
val groupId: CiString
val groupId: CiString?
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.izivia.ocpi.toolkit.modules.tariff.domain

import com.izivia.ocpi.toolkit.annotations.Partial
import com.izivia.ocpi.toolkit.common.CiString
import com.izivia.ocpi.toolkit.common.URL
import com.izivia.ocpi.toolkit.modules.locations.domain.EnergyMix
import com.izivia.ocpi.toolkit.modules.types.DisplayText
import com.izivia.ocpi.toolkit.modules.types.Price
Expand Down Expand Up @@ -47,7 +48,7 @@ data class Tariff(
val countryCode: CiString,
val currency: String,
val tariffAltText: List<DisplayText>? = null,
val tariffAltUrl: CiString? = null,
val tariffAltUrl: URL? = null,
val minPrice: Price? = null,
val maxPrice: Price? = null,
val elements: List<TariffElement>,
Expand Down

0 comments on commit c083557

Please sign in to comment.