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,2 +1,2 @@
configured_endpoints: 201
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7aa1e3663a83ffd28f86d2c60511be93626acc3d50846c6878fcedfdccaa37ce.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-93fa70b01fd9cf6a31edec954dc66bb9a14a26e2ea0fbe2fc22ed86b7774b239.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.increase.api.core.checkRequired
import com.increase.api.core.immutableEmptyMap
import com.increase.api.core.toImmutable
import com.increase.api.errors.IncreaseInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional

Expand Down Expand Up @@ -47,6 +48,9 @@ private constructor(
@JsonProperty("beneficiary_reference")
@ExcludeMissing
private val beneficiaryReference: JsonField<String> = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
private val createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
private val description: JsonField<String> = JsonMissing.of(),
Expand Down Expand Up @@ -125,6 +129,12 @@ private constructor(
fun beneficiaryReference(): Optional<String> =
Optional.ofNullable(beneficiaryReference.getNullable("beneficiary_reference"))

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound
* wire transfer was created.
*/
fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at")

/** An Increase-constructed description of the transfer. */
fun description(): String = description.getRequired("description")

Expand Down Expand Up @@ -250,6 +260,14 @@ private constructor(
@ExcludeMissing
fun _beneficiaryReference(): JsonField<String> = beneficiaryReference

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound
* wire transfer was created.
*/
@JsonProperty("created_at")
@ExcludeMissing
fun _createdAt(): JsonField<OffsetDateTime> = createdAt

/** An Increase-constructed description of the transfer. */
@JsonProperty("description") @ExcludeMissing fun _description(): JsonField<String> = description

Expand Down Expand Up @@ -353,6 +371,7 @@ private constructor(
beneficiaryAddressLine3()
beneficiaryName()
beneficiaryReference()
createdAt()
description()
inputMessageAccountabilityData()
originatorAddressLine1()
Expand Down Expand Up @@ -390,6 +409,7 @@ private constructor(
private var beneficiaryAddressLine3: JsonField<String>? = null
private var beneficiaryName: JsonField<String>? = null
private var beneficiaryReference: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var description: JsonField<String>? = null
private var inputMessageAccountabilityData: JsonField<String>? = null
private var originatorAddressLine1: JsonField<String>? = null
Expand Down Expand Up @@ -418,6 +438,7 @@ private constructor(
beneficiaryAddressLine3 = inboundWireTransfer.beneficiaryAddressLine3
beneficiaryName = inboundWireTransfer.beneficiaryName
beneficiaryReference = inboundWireTransfer.beneficiaryReference
createdAt = inboundWireTransfer.createdAt
description = inboundWireTransfer.description
inputMessageAccountabilityData = inboundWireTransfer.inputMessageAccountabilityData
originatorAddressLine1 = inboundWireTransfer.originatorAddressLine1
Expand Down Expand Up @@ -533,6 +554,18 @@ private constructor(
this.beneficiaryReference = beneficiaryReference
}

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound
* wire transfer was created.
*/
fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt))

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the inbound
* wire transfer was created.
*/
fun createdAt(createdAt: JsonField<OffsetDateTime>) = apply { this.createdAt = createdAt }

/** An Increase-constructed description of the transfer. */
fun description(description: String) = description(JsonField.of(description))

Expand Down Expand Up @@ -808,6 +841,7 @@ private constructor(
checkRequired("beneficiaryAddressLine3", beneficiaryAddressLine3),
checkRequired("beneficiaryName", beneficiaryName),
checkRequired("beneficiaryReference", beneficiaryReference),
checkRequired("createdAt", createdAt),
checkRequired("description", description),
checkRequired("inputMessageAccountabilityData", inputMessageAccountabilityData),
checkRequired("originatorAddressLine1", originatorAddressLine1),
Expand Down Expand Up @@ -1063,15 +1097,15 @@ private constructor(
return true
}

return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && senderReference == other.senderReference && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is InboundWireTransfer && id == other.id && accountId == other.accountId && accountNumberId == other.accountNumberId && amount == other.amount && beneficiaryAddressLine1 == other.beneficiaryAddressLine1 && beneficiaryAddressLine2 == other.beneficiaryAddressLine2 && beneficiaryAddressLine3 == other.beneficiaryAddressLine3 && beneficiaryName == other.beneficiaryName && beneficiaryReference == other.beneficiaryReference && createdAt == other.createdAt && description == other.description && inputMessageAccountabilityData == other.inputMessageAccountabilityData && originatorAddressLine1 == other.originatorAddressLine1 && originatorAddressLine2 == other.originatorAddressLine2 && originatorAddressLine3 == other.originatorAddressLine3 && originatorName == other.originatorName && originatorRoutingNumber == other.originatorRoutingNumber && originatorToBeneficiaryInformation == other.originatorToBeneficiaryInformation && originatorToBeneficiaryInformationLine1 == other.originatorToBeneficiaryInformationLine1 && originatorToBeneficiaryInformationLine2 == other.originatorToBeneficiaryInformationLine2 && originatorToBeneficiaryInformationLine3 == other.originatorToBeneficiaryInformationLine3 && originatorToBeneficiaryInformationLine4 == other.originatorToBeneficiaryInformationLine4 && senderReference == other.senderReference && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, senderReference, status, type, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(id, accountId, accountNumberId, amount, beneficiaryAddressLine1, beneficiaryAddressLine2, beneficiaryAddressLine3, beneficiaryName, beneficiaryReference, createdAt, description, inputMessageAccountabilityData, originatorAddressLine1, originatorAddressLine2, originatorAddressLine3, originatorName, originatorRoutingNumber, originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4, senderReference, status, type, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, senderReference=$senderReference, status=$status, type=$type, additionalProperties=$additionalProperties}"
"InboundWireTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, beneficiaryAddressLine1=$beneficiaryAddressLine1, beneficiaryAddressLine2=$beneficiaryAddressLine2, beneficiaryAddressLine3=$beneficiaryAddressLine3, beneficiaryName=$beneficiaryName, beneficiaryReference=$beneficiaryReference, createdAt=$createdAt, description=$description, inputMessageAccountabilityData=$inputMessageAccountabilityData, originatorAddressLine1=$originatorAddressLine1, originatorAddressLine2=$originatorAddressLine2, originatorAddressLine3=$originatorAddressLine3, originatorName=$originatorName, originatorRoutingNumber=$originatorRoutingNumber, originatorToBeneficiaryInformation=$originatorToBeneficiaryInformation, originatorToBeneficiaryInformationLine1=$originatorToBeneficiaryInformationLine1, originatorToBeneficiaryInformationLine2=$originatorToBeneficiaryInformationLine2, originatorToBeneficiaryInformationLine3=$originatorToBeneficiaryInformationLine3, originatorToBeneficiaryInformationLine4=$originatorToBeneficiaryInformationLine4, senderReference=$senderReference, status=$status, type=$type, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import com.increase.api.core.checkRequired
import com.increase.api.core.immutableEmptyMap
import com.increase.api.core.toImmutable
import com.increase.api.errors.IncreaseInvalidDataException
import java.time.OffsetDateTime
import java.util.Objects
import java.util.Optional

Expand All @@ -34,6 +35,9 @@ private constructor(
@JsonProperty("account_id")
@ExcludeMissing
private val accountId: JsonField<String> = JsonMissing.of(),
@JsonProperty("created_at")
@ExcludeMissing
private val createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonProperty("idempotency_key")
@ExcludeMissing
private val idempotencyKey: JsonField<String> = JsonMissing.of(),
Expand All @@ -53,6 +57,12 @@ private constructor(
/** The identifier of the Increase Account being swept into the network. */
fun accountId(): String = accountId.getRequired("account_id")

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the enrollment
* was created.
*/
fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at")

/**
* The idempotency key you chose for this object. This value is unique across Increase and is
* used to ensure that a request is only processed once. Learn more about
Expand Down Expand Up @@ -85,6 +95,14 @@ private constructor(
/** The identifier of the Increase Account being swept into the network. */
@JsonProperty("account_id") @ExcludeMissing fun _accountId(): JsonField<String> = accountId

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the enrollment
* was created.
*/
@JsonProperty("created_at")
@ExcludeMissing
fun _createdAt(): JsonField<OffsetDateTime> = createdAt

/**
* The idempotency key you chose for this object. This value is unique across Increase and is
* used to ensure that a request is only processed once. Learn more about
Expand Down Expand Up @@ -125,6 +143,7 @@ private constructor(

id()
accountId()
createdAt()
idempotencyKey()
intrafiId()
status()
Expand All @@ -144,6 +163,7 @@ private constructor(

private var id: JsonField<String>? = null
private var accountId: JsonField<String>? = null
private var createdAt: JsonField<OffsetDateTime>? = null
private var idempotencyKey: JsonField<String>? = null
private var intrafiId: JsonField<String>? = null
private var status: JsonField<Status>? = null
Expand All @@ -154,6 +174,7 @@ private constructor(
internal fun from(intrafiAccountEnrollment: IntrafiAccountEnrollment) = apply {
id = intrafiAccountEnrollment.id
accountId = intrafiAccountEnrollment.accountId
createdAt = intrafiAccountEnrollment.createdAt
idempotencyKey = intrafiAccountEnrollment.idempotencyKey
intrafiId = intrafiAccountEnrollment.intrafiId
status = intrafiAccountEnrollment.status
Expand All @@ -173,6 +194,18 @@ private constructor(
/** The identifier of the Increase Account being swept into the network. */
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* enrollment was created.
*/
fun createdAt(createdAt: OffsetDateTime) = createdAt(JsonField.of(createdAt))

/**
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the
* enrollment was created.
*/
fun createdAt(createdAt: JsonField<OffsetDateTime>) = apply { this.createdAt = createdAt }

/**
* The idempotency key you chose for this object. This value is unique across Increase and
* is used to ensure that a request is only processed once. Learn more about
Expand Down Expand Up @@ -257,6 +290,7 @@ private constructor(
IntrafiAccountEnrollment(
checkRequired("id", id),
checkRequired("accountId", accountId),
checkRequired("createdAt", createdAt),
checkRequired("idempotencyKey", idempotencyKey),
checkRequired("intrafiId", intrafiId),
checkRequired("status", status),
Expand Down Expand Up @@ -489,15 +523,15 @@ private constructor(
return true
}

return /* spotless:off */ other is IntrafiAccountEnrollment && id == other.id && accountId == other.accountId && idempotencyKey == other.idempotencyKey && intrafiId == other.intrafiId && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is IntrafiAccountEnrollment && id == other.id && accountId == other.accountId && createdAt == other.createdAt && idempotencyKey == other.idempotencyKey && intrafiId == other.intrafiId && status == other.status && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, accountId, idempotencyKey, intrafiId, status, type, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(id, accountId, createdAt, idempotencyKey, intrafiId, status, type, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"IntrafiAccountEnrollment{id=$id, accountId=$accountId, idempotencyKey=$idempotencyKey, intrafiId=$intrafiId, status=$status, type=$type, additionalProperties=$additionalProperties}"
"IntrafiAccountEnrollment{id=$id, accountId=$accountId, createdAt=$createdAt, idempotencyKey=$idempotencyKey, intrafiId=$intrafiId, status=$status, type=$type, additionalProperties=$additionalProperties}"
}
Loading