Skip to content

Commit

Permalink
feat(specs): push source type (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3600

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Aug 27, 2024
1 parent 9167cff commit 29d136a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import kotlinx.serialization.json.*
* @param sourceID Universally uniqud identifier (UUID) of a source.
* @param type
* @param name
* @param input
* @param createdAt Date of creation in RFC 3339 format.
* @param input
* @param authenticationID Universally unique identifier (UUID) of an authentication resource.
* @param updatedAt Date of last update in RFC 3339 format.
*/
Expand All @@ -25,11 +25,11 @@ public data class Source(

@SerialName(value = "name") val name: String,

@SerialName(value = "input") val input: SourceInput,

/** Date of creation in RFC 3339 format. */
@SerialName(value = "createdAt") val createdAt: String,

@SerialName(value = "input") val input: SourceInput? = null,

/** Universally unique identifier (UUID) of an authentication resource. */
@SerialName(value = "authenticationID") val authenticationID: String? = null,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public data class SourceCreate(
/** Descriptive name of the source. */
@SerialName(value = "name") val name: String,

@SerialName(value = "input") val input: SourceInput,
@SerialName(value = "input") val input: SourceInput? = null,

/** Universally unique identifier (UUID) of an authentication resource. */
@SerialName(value = "authenticationID") val authenticationID: String? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ public enum class SourceType(public val value: kotlin.String) {
Shopify("shopify"),

@SerialName(value = "sfcc")
Sfcc("sfcc");
Sfcc("sfcc"),

@SerialName(value = "push")
Push("push");

override fun toString(): kotlin.String = value
}

0 comments on commit 29d136a

Please # to comment.