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

fix(domain): Correct some property types #127

Merged
merged 1 commit into from
Aug 2, 2024
Merged
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
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
Loading