Skip to content
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
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: e4f648ab7005edc0efad68f6a4e9847c
openapi_spec_hash: d847e7a3b4ea40599848769bc91b0d73
config_hash: 1ca082e374ef7000e2a5971e8da740e0
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ private constructor(

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the end of the
* period the Account Statement covers.
* period the Account Statement covers. The statement covers all transactions up to, but not
* including this timestamp. Usually, this is the beginning of the following month.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
Expand All @@ -144,7 +145,8 @@ private constructor(

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the start of the
* period the Account Statement covers.
* period the Account Statement covers. This is the first moment of the statement period and is
* inclusive. Usually, this is the beginning of the month this statement covers.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
Expand Down Expand Up @@ -400,7 +402,8 @@ private constructor(

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the end of the
* period the Account Statement covers.
* period the Account Statement covers. The statement covers all transactions up to, but not
* including this timestamp. Usually, this is the beginning of the following month.
*/
fun statementPeriodEnd(statementPeriodEnd: OffsetDateTime) =
statementPeriodEnd(JsonField.of(statementPeriodEnd))
Expand All @@ -418,7 +421,8 @@ private constructor(

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time representing the start of the
* period the Account Statement covers.
* period the Account Statement covers. This is the first moment of the statement period and
* is inclusive. Usually, this is the beginning of the month this statement covers.
*/
fun statementPeriodStart(statementPeriodStart: OffsetDateTime) =
statementPeriodStart(JsonField.of(statementPeriodStart))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15260,24 +15260,28 @@ private constructor(
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
private val city: JsonField<String>,
private val country: JsonField<String>,
private val line1: JsonField<String>,
private val line2: JsonField<String>,
private val state: JsonField<String>,
private val zip: JsonField<String>,
private val line2: JsonField<String>,
private val additionalProperties: MutableMap<String, JsonValue>,
) {

@JsonCreator
private constructor(
@JsonProperty("city") @ExcludeMissing city: JsonField<String> = JsonMissing.of(),
@JsonProperty("country")
@ExcludeMissing
country: JsonField<String> = JsonMissing.of(),
@JsonProperty("line1") @ExcludeMissing line1: JsonField<String> = JsonMissing.of(),
@JsonProperty("line2") @ExcludeMissing line2: JsonField<String> = JsonMissing.of(),
@JsonProperty("state") @ExcludeMissing state: JsonField<String> = JsonMissing.of(),
@JsonProperty("zip") @ExcludeMissing zip: JsonField<String> = JsonMissing.of(),
@JsonProperty("line2") @ExcludeMissing line2: JsonField<String> = JsonMissing.of(),
) : this(city, line1, state, zip, line2, mutableMapOf())
) : this(city, country, line1, line2, state, zip, mutableMapOf())

/**
* The city of the address.
* The city, district, town, or village of the address.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected
Expand All @@ -15286,40 +15290,49 @@ private constructor(
fun city(): String = city.getRequired("city")

/**
* The first line of the address. This is usually the street number and street.
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
*
* Defaults to `US`.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
fun line1(): String = line1.getRequired("line1")
fun country(): String = country.getRequired("country")

/**
* The two-letter United States Postal Service (USPS) abbreviation for the state of the
* address.
* The first line of the address. This is usually the street number and street.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
*/
fun state(): String = state.getRequired("state")
fun line1(): String = line1.getRequired("line1")

/**
* The ZIP code of the address.
* The second line of the address. This might be the floor or room number.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
* unexpectedly missing or null (e.g. if the server responded with an unexpected
* value).
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun zip(): String = zip.getRequired("zip")
fun line2(): Optional<String> = line2.getOptional("line2")

/**
* The second line of the address. This might be the floor or room number.
* The two-letter United States Postal Service (USPS) abbreviation for the US state,
* province, or region of the address. Required in certain countries.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun line2(): Optional<String> = line2.getOptional("line2")
fun state(): Optional<String> = state.getOptional("state")

/**
* The ZIP or postal code of the address. Required in certain countries.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
* if the server responded with an unexpected value).
*/
fun zip(): Optional<String> = zip.getOptional("zip")

/**
* Returns the raw JSON value of [city].
Expand All @@ -15328,13 +15341,27 @@ private constructor(
*/
@JsonProperty("city") @ExcludeMissing fun _city(): JsonField<String> = city

/**
* Returns the raw JSON value of [country].
*
* Unlike [country], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("country") @ExcludeMissing fun _country(): JsonField<String> = country

/**
* Returns the raw JSON value of [line1].
*
* Unlike [line1], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("line1") @ExcludeMissing fun _line1(): JsonField<String> = line1

/**
* Returns the raw JSON value of [line2].
*
* Unlike [line2], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField<String> = line2

/**
* Returns the raw JSON value of [state].
*
Expand All @@ -15349,13 +15376,6 @@ private constructor(
*/
@JsonProperty("zip") @ExcludeMissing fun _zip(): JsonField<String> = zip

/**
* Returns the raw JSON value of [line2].
*
* Unlike [line2], this method doesn't throw if the JSON field has an unexpected type.
*/
@JsonProperty("line2") @ExcludeMissing fun _line2(): JsonField<String> = line2

@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
Expand All @@ -15376,9 +15396,8 @@ private constructor(
* The following fields are required:
* ```java
* .city()
* .country()
* .line1()
* .state()
* .zip()
* ```
*/
@JvmStatic fun builder() = Builder()
Expand All @@ -15388,23 +15407,25 @@ private constructor(
class Builder internal constructor() {

private var city: JsonField<String>? = null
private var country: JsonField<String>? = null
private var line1: JsonField<String>? = null
private var state: JsonField<String>? = null
private var zip: JsonField<String>? = null
private var line2: JsonField<String> = JsonMissing.of()
private var state: JsonField<String> = JsonMissing.of()
private var zip: JsonField<String> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
internal fun from(address: Address) = apply {
city = address.city
country = address.country
line1 = address.line1
line2 = address.line2
state = address.state
zip = address.zip
line2 = address.line2
additionalProperties = address.additionalProperties.toMutableMap()
}

/** The city of the address. */
/** The city, district, town, or village of the address. */
fun city(city: String) = city(JsonField.of(city))

/**
Expand All @@ -15416,6 +15437,22 @@ private constructor(
*/
fun city(city: JsonField<String>) = apply { this.city = city }

/**
* The two-letter ISO 3166-1 alpha-2 code for the country of the address.
*
* Defaults to `US`.
*/
fun country(country: String) = country(JsonField.of(country))

/**
* Sets [Builder.country] to an arbitrary JSON value.
*
* You should usually call [Builder.country] with a well-typed [String] value
* instead. This method is primarily for setting the field to an undocumented or not
* yet supported value.
*/
fun country(country: JsonField<String>) = apply { this.country = country }

/** The first line of the address. This is usually the street number and street. */
fun line1(line1: String) = line1(JsonField.of(line1))

Expand All @@ -15428,9 +15465,21 @@ private constructor(
*/
fun line1(line1: JsonField<String>) = apply { this.line1 = line1 }

/** The second line of the address. This might be the floor or room number. */
fun line2(line2: String) = line2(JsonField.of(line2))

/**
* The two-letter United States Postal Service (USPS) abbreviation for the state of
* the address.
* Sets [Builder.line2] to an arbitrary JSON value.
*
* You should usually call [Builder.line2] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun line2(line2: JsonField<String>) = apply { this.line2 = line2 }

/**
* The two-letter United States Postal Service (USPS) abbreviation for the US state,
* province, or region of the address. Required in certain countries.
*/
fun state(state: String) = state(JsonField.of(state))

Expand All @@ -15443,7 +15492,7 @@ private constructor(
*/
fun state(state: JsonField<String>) = apply { this.state = state }

/** The ZIP code of the address. */
/** The ZIP or postal code of the address. Required in certain countries. */
fun zip(zip: String) = zip(JsonField.of(zip))

/**
Expand All @@ -15455,18 +15504,6 @@ private constructor(
*/
fun zip(zip: JsonField<String>) = apply { this.zip = zip }

/** The second line of the address. This might be the floor or room number. */
fun line2(line2: String) = line2(JsonField.of(line2))

/**
* Sets [Builder.line2] to an arbitrary JSON value.
*
* You should usually call [Builder.line2] with a well-typed [String] value instead.
* This method is primarily for setting the field to an undocumented or not yet
* supported value.
*/
fun line2(line2: JsonField<String>) = apply { this.line2 = line2 }

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -15497,20 +15534,20 @@ private constructor(
* The following fields are required:
* ```java
* .city()
* .country()
* .line1()
* .state()
* .zip()
* ```
*
* @throws IllegalStateException if any required field is unset.
*/
fun build(): Address =
Address(
checkRequired("city", city),
checkRequired("country", country),
checkRequired("line1", line1),
checkRequired("state", state),
checkRequired("zip", zip),
line2,
state,
zip,
additionalProperties.toMutableMap(),
)
}
Expand All @@ -15533,10 +15570,11 @@ private constructor(
}

city()
country()
line1()
line2()
state()
zip()
line2()
validated = true
}

Expand All @@ -15557,10 +15595,11 @@ private constructor(
@JvmSynthetic
internal fun validity(): Int =
(if (city.asKnown().isPresent) 1 else 0) +
(if (country.asKnown().isPresent) 1 else 0) +
(if (line1.asKnown().isPresent) 1 else 0) +
(if (line2.asKnown().isPresent) 1 else 0) +
(if (state.asKnown().isPresent) 1 else 0) +
(if (zip.asKnown().isPresent) 1 else 0) +
(if (line2.asKnown().isPresent) 1 else 0)
(if (zip.asKnown().isPresent) 1 else 0)

override fun equals(other: Any?): Boolean {
if (this === other) {
Expand All @@ -15569,21 +15608,22 @@ private constructor(

return other is Address &&
city == other.city &&
country == other.country &&
line1 == other.line1 &&
line2 == other.line2 &&
state == other.state &&
zip == other.zip &&
line2 == other.line2 &&
additionalProperties == other.additionalProperties
}

private val hashCode: Int by lazy {
Objects.hash(city, line1, state, zip, line2, additionalProperties)
Objects.hash(city, country, line1, line2, state, zip, additionalProperties)
}

override fun hashCode(): Int = hashCode

override fun toString() =
"Address{city=$city, line1=$line1, state=$state, zip=$zip, line2=$line2, additionalProperties=$additionalProperties}"
"Address{city=$city, country=$country, line1=$line1, line2=$line2, state=$state, zip=$zip, additionalProperties=$additionalProperties}"
}

/**
Expand Down
Loading
Loading