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: 85e424bee4fe449466ceada88117613e
openapi_spec_hash: 49d468466a752f8ea72af00d00683f50
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2,293 changes: 2,169 additions & 124 deletions increase-java-core/src/main/kotlin/com/increase/api/models/entities/Entity.kt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,8 @@ private constructor(
fun adjustedAt(): OffsetDateTime = adjustedAt.getRequired("adjusted_at")

/**
* The amount of the adjustment.
* The amount of the adjustment in USD cents. A positive amount is a credit to your account
* and a negative amount is a debit.
*
* @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 @@ -1272,7 +1273,10 @@ private constructor(
this.adjustedAt = adjustedAt
}

/** The amount of the adjustment. */
/**
* The amount of the adjustment in USD cents. A positive amount is a credit to your
* account and a negative amount is a debit.
*/
fun amount(amount: Long) = amount(JsonField.of(amount))

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ private constructor(
private val debtorName: JsonField<String>,
private val debtorRoutingNumber: JsonField<String>,
private val decline: JsonField<Decline>,
private val endToEndIdentification: JsonField<String>,
private val status: JsonField<Status>,
private val transactionId: JsonField<String>,
private val transactionIdentification: JsonField<String>,
private val type: JsonField<Type>,
private val uniqueEndToEndTransactionReference: JsonField<String>,
private val unstructuredRemittanceInformation: JsonField<String>,
Expand Down Expand Up @@ -73,10 +75,16 @@ private constructor(
@ExcludeMissing
debtorRoutingNumber: JsonField<String> = JsonMissing.of(),
@JsonProperty("decline") @ExcludeMissing decline: JsonField<Decline> = JsonMissing.of(),
@JsonProperty("end_to_end_identification")
@ExcludeMissing
endToEndIdentification: JsonField<String> = JsonMissing.of(),
@JsonProperty("status") @ExcludeMissing status: JsonField<Status> = JsonMissing.of(),
@JsonProperty("transaction_id")
@ExcludeMissing
transactionId: JsonField<String> = JsonMissing.of(),
@JsonProperty("transaction_identification")
@ExcludeMissing
transactionIdentification: JsonField<String> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
@JsonProperty("unique_end_to_end_transaction_reference")
@ExcludeMissing
Expand All @@ -97,8 +105,10 @@ private constructor(
debtorName,
debtorRoutingNumber,
decline,
endToEndIdentification,
status,
transactionId,
transactionIdentification,
type,
uniqueEndToEndTransactionReference,
unstructuredRemittanceInformation,
Expand Down Expand Up @@ -203,6 +213,15 @@ private constructor(
*/
fun decline(): Optional<Decline> = decline.getOptional("decline")

/**
* A free-form reference string set by the sender, to help identify the transfer.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun endToEndIdentification(): Optional<String> =
endToEndIdentification.getOptional("end_to_end_identification")

/**
* The lifecycle status of the transfer.
*
Expand All @@ -219,6 +238,15 @@ private constructor(
*/
fun transactionId(): Optional<String> = transactionId.getOptional("transaction_id")

/**
* The FedNow network identification of the transfer.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun transactionIdentification(): Optional<String> =
transactionIdentification.getOptional("transaction_identification")

/**
* A constant representing the object's type. For this resource it will always be
* `inbound_fednow_transfer`.
Expand Down Expand Up @@ -346,6 +374,16 @@ private constructor(
*/
@JsonProperty("decline") @ExcludeMissing fun _decline(): JsonField<Decline> = decline

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

/**
* Returns the raw JSON value of [status].
*
Expand All @@ -362,6 +400,16 @@ private constructor(
@ExcludeMissing
fun _transactionId(): JsonField<String> = transactionId

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

/**
* Returns the raw JSON value of [type].
*
Expand Down Expand Up @@ -421,8 +469,10 @@ private constructor(
* .debtorName()
* .debtorRoutingNumber()
* .decline()
* .endToEndIdentification()
* .status()
* .transactionId()
* .transactionIdentification()
* .type()
* .uniqueEndToEndTransactionReference()
* .unstructuredRemittanceInformation()
Expand All @@ -446,8 +496,10 @@ private constructor(
private var debtorName: JsonField<String>? = null
private var debtorRoutingNumber: JsonField<String>? = null
private var decline: JsonField<Decline>? = null
private var endToEndIdentification: JsonField<String>? = null
private var status: JsonField<Status>? = null
private var transactionId: JsonField<String>? = null
private var transactionIdentification: JsonField<String>? = null
private var type: JsonField<Type>? = null
private var uniqueEndToEndTransactionReference: JsonField<String>? = null
private var unstructuredRemittanceInformation: JsonField<String>? = null
Expand All @@ -467,8 +519,10 @@ private constructor(
debtorName = inboundFednowTransfer.debtorName
debtorRoutingNumber = inboundFednowTransfer.debtorRoutingNumber
decline = inboundFednowTransfer.decline
endToEndIdentification = inboundFednowTransfer.endToEndIdentification
status = inboundFednowTransfer.status
transactionId = inboundFednowTransfer.transactionId
transactionIdentification = inboundFednowTransfer.transactionIdentification
type = inboundFednowTransfer.type
uniqueEndToEndTransactionReference =
inboundFednowTransfer.uniqueEndToEndTransactionReference
Expand Down Expand Up @@ -645,6 +699,28 @@ private constructor(
*/
fun decline(decline: JsonField<Decline>) = apply { this.decline = decline }

/** A free-form reference string set by the sender, to help identify the transfer. */
fun endToEndIdentification(endToEndIdentification: String?) =
endToEndIdentification(JsonField.ofNullable(endToEndIdentification))

/**
* Alias for calling [Builder.endToEndIdentification] with
* `endToEndIdentification.orElse(null)`.
*/
fun endToEndIdentification(endToEndIdentification: Optional<String>) =
endToEndIdentification(endToEndIdentification.getOrNull())

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

/** The lifecycle status of the transfer. */
fun status(status: Status) = status(JsonField.of(status))

Expand Down Expand Up @@ -675,6 +751,28 @@ private constructor(
this.transactionId = transactionId
}

/** The FedNow network identification of the transfer. */
fun transactionIdentification(transactionIdentification: String?) =
transactionIdentification(JsonField.ofNullable(transactionIdentification))

/**
* Alias for calling [Builder.transactionIdentification] with
* `transactionIdentification.orElse(null)`.
*/
fun transactionIdentification(transactionIdentification: Optional<String>) =
transactionIdentification(transactionIdentification.getOrNull())

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

/**
* A constant representing the object's type. For this resource it will always be
* `inbound_fednow_transfer`.
Expand Down Expand Up @@ -780,8 +878,10 @@ private constructor(
* .debtorName()
* .debtorRoutingNumber()
* .decline()
* .endToEndIdentification()
* .status()
* .transactionId()
* .transactionIdentification()
* .type()
* .uniqueEndToEndTransactionReference()
* .unstructuredRemittanceInformation()
Expand All @@ -803,8 +903,10 @@ private constructor(
checkRequired("debtorName", debtorName),
checkRequired("debtorRoutingNumber", debtorRoutingNumber),
checkRequired("decline", decline),
checkRequired("endToEndIdentification", endToEndIdentification),
checkRequired("status", status),
checkRequired("transactionId", transactionId),
checkRequired("transactionIdentification", transactionIdentification),
checkRequired("type", type),
checkRequired(
"uniqueEndToEndTransactionReference",
Expand Down Expand Up @@ -845,8 +947,10 @@ private constructor(
debtorName()
debtorRoutingNumber()
decline().ifPresent { it.validate() }
endToEndIdentification()
status().validate()
transactionId()
transactionIdentification()
type().validate()
uniqueEndToEndTransactionReference()
unstructuredRemittanceInformation()
Expand Down Expand Up @@ -880,8 +984,10 @@ private constructor(
(if (debtorName.asKnown().isPresent) 1 else 0) +
(if (debtorRoutingNumber.asKnown().isPresent) 1 else 0) +
(decline.asKnown().getOrNull()?.validity() ?: 0) +
(if (endToEndIdentification.asKnown().isPresent) 1 else 0) +
(status.asKnown().getOrNull()?.validity() ?: 0) +
(if (transactionId.asKnown().isPresent) 1 else 0) +
(if (transactionIdentification.asKnown().isPresent) 1 else 0) +
(type.asKnown().getOrNull()?.validity() ?: 0) +
(if (uniqueEndToEndTransactionReference.asKnown().isPresent) 1 else 0) +
(if (unstructuredRemittanceInformation.asKnown().isPresent) 1 else 0)
Expand Down Expand Up @@ -1912,8 +2018,10 @@ private constructor(
debtorName == other.debtorName &&
debtorRoutingNumber == other.debtorRoutingNumber &&
decline == other.decline &&
endToEndIdentification == other.endToEndIdentification &&
status == other.status &&
transactionId == other.transactionId &&
transactionIdentification == other.transactionIdentification &&
type == other.type &&
uniqueEndToEndTransactionReference == other.uniqueEndToEndTransactionReference &&
unstructuredRemittanceInformation == other.unstructuredRemittanceInformation &&
Expand All @@ -1934,8 +2042,10 @@ private constructor(
debtorName,
debtorRoutingNumber,
decline,
endToEndIdentification,
status,
transactionId,
transactionIdentification,
type,
uniqueEndToEndTransactionReference,
unstructuredRemittanceInformation,
Expand All @@ -1946,5 +2056,5 @@ private constructor(
override fun hashCode(): Int = hashCode

override fun toString() =
"InboundFednowTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, confirmation=$confirmation, createdAt=$createdAt, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, decline=$decline, status=$status, transactionId=$transactionId, type=$type, uniqueEndToEndTransactionReference=$uniqueEndToEndTransactionReference, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}"
"InboundFednowTransfer{id=$id, accountId=$accountId, accountNumberId=$accountNumberId, amount=$amount, confirmation=$confirmation, createdAt=$createdAt, creditorName=$creditorName, currency=$currency, debtorAccountNumber=$debtorAccountNumber, debtorName=$debtorName, debtorRoutingNumber=$debtorRoutingNumber, decline=$decline, endToEndIdentification=$endToEndIdentification, status=$status, transactionId=$transactionId, transactionIdentification=$transactionIdentification, type=$type, uniqueEndToEndTransactionReference=$uniqueEndToEndTransactionReference, unstructuredRemittanceInformation=$unstructuredRemittanceInformation, additionalProperties=$additionalProperties}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ private constructor(
fun cardId(): String = body.cardId()

/**
* Details about the cardholder, as it will appear on the physical card.
* Details about the cardholder, as it will appear on the physical card. The combined first name
* and last name cannot exceed 25 characters.
*
* @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 @@ -153,7 +154,10 @@ private constructor(
*/
fun cardId(cardId: JsonField<String>) = apply { body.cardId(cardId) }

/** Details about the cardholder, as it will appear on the physical card. */
/**
* Details about the cardholder, as it will appear on the physical card. The combined first
* name and last name cannot exceed 25 characters.
*/
fun cardholder(cardholder: Cardholder) = apply { body.cardholder(cardholder) }

/**
Expand Down Expand Up @@ -374,7 +378,8 @@ private constructor(
fun cardId(): String = cardId.getRequired("card_id")

/**
* Details about the cardholder, as it will appear on the physical card.
* Details about the cardholder, as it will appear on the physical card. The combined first
* name and last name cannot exceed 25 characters.
*
* @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 @@ -489,7 +494,10 @@ private constructor(
*/
fun cardId(cardId: JsonField<String>) = apply { this.cardId = cardId }

/** Details about the cardholder, as it will appear on the physical card. */
/**
* Details about the cardholder, as it will appear on the physical card. The combined
* first name and last name cannot exceed 25 characters.
*/
fun cardholder(cardholder: Cardholder) = cardholder(JsonField.of(cardholder))

/**
Expand Down Expand Up @@ -643,7 +651,10 @@ private constructor(
"Body{cardId=$cardId, cardholder=$cardholder, shipment=$shipment, physicalCardProfileId=$physicalCardProfileId, additionalProperties=$additionalProperties}"
}

/** Details about the cardholder, as it will appear on the physical card. */
/**
* Details about the cardholder, as it will appear on the physical card. The combined first name
* and last name cannot exceed 25 characters.
*/
class Cardholder
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
private constructor(
Expand Down
Loading
Loading