Skip to content
Closed
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
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,25 @@ jobs:



test:
timeout-minutes: 15
name: test
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: |
8
21
cache: gradle

- name: Set up Gradle
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa # v2.12.0

- name: Run tests
run: ./scripts/test
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 238
openapi_spec_hash: b920ca422925bb06a6268f840371d1da
openapi_spec_hash: 27aa7d8f7762271b625489f107ff4e8a
config_hash: 2ae0d8aaecf01b38cbf9f9e112822c23
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ private constructor(
fun loan(): Optional<Loan> = body.loan()

/**
* The identifier for the Program that this Account falls under. Required if you operate more
* than one Program.
* The identifier for the Program that this Account falls under. Required if your Group operates
* more than one Program. List your [Programs](#programs) to find their identifiers.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
Expand Down Expand Up @@ -238,8 +238,9 @@ private constructor(
fun loan(loan: JsonField<Loan>) = apply { body.loan(loan) }

/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
* The identifier for the Program that this Account falls under. Required if your Group
* operates more than one Program. List your [Programs](#programs) to find their
* identifiers.
*/
fun programId(programId: String) = apply { body.programId(programId) }

Expand Down Expand Up @@ -466,8 +467,9 @@ private constructor(
fun loan(): Optional<Loan> = loan.getOptional("loan")

/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
* The identifier for the Program that this Account falls under. Required if your Group
* operates more than one Program. List your [Programs](#programs) to find their
* identifiers.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
* the server responded with an unexpected value).
Expand Down Expand Up @@ -633,8 +635,9 @@ private constructor(
fun loan(loan: JsonField<Loan>) = apply { this.loan = loan }

/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
* The identifier for the Program that this Account falls under. Required if your Group
* operates more than one Program. List your [Programs](#programs) to find their
* identifiers.
*/
fun programId(programId: String) = programId(JsonField.of(programId))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ private constructor(
fun accountId(): String = accountId.getRequired("account_id")

/**
* The destination account number.
* The receiver's account 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).
Expand Down Expand Up @@ -334,7 +334,7 @@ private constructor(
fun currency(): Currency = currency.getRequired("currency")

/**
* The type of entity that owns the account to which the ACH Transfer is being sent.
* The type of entity that owns the receiver's account.
*
* @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 @@ -351,7 +351,7 @@ private constructor(
fun externalAccountId(): Optional<String> = externalAccountId.getOptional("external_account_id")

/**
* The type of the account to which the transfer will be sent.
* The type of the receiver's bank account.
*
* @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 @@ -379,7 +379,8 @@ private constructor(
inboundFundsHold.getOptional("inbound_funds_hold")

/**
* Your identifier for the transfer recipient.
* Your internal identifier for the transfer recipient. This value is informational and not
* verified by the recipient's bank.
*
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
Expand Down Expand Up @@ -445,7 +446,7 @@ private constructor(
fun return_(): Optional<Return> = return_.getOptional("return")

/**
* The American Bankers' Association (ABA) Routing Transit Number (RTN).
* The American Bankers' Association (ABA) Routing Transit Number (RTN) of the receiver's bank.
*
* @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 @@ -989,7 +990,7 @@ private constructor(
*/
fun accountId(accountId: JsonField<String>) = apply { this.accountId = accountId }

/** The destination account number. */
/** The receiver's account number. */
fun accountNumber(accountNumber: String) = accountNumber(JsonField.of(accountNumber))

/**
Expand Down Expand Up @@ -1232,7 +1233,7 @@ private constructor(
*/
fun currency(currency: JsonField<Currency>) = apply { this.currency = currency }

/** The type of entity that owns the account to which the ACH Transfer is being sent. */
/** The type of entity that owns the receiver's account. */
fun destinationAccountHolder(destinationAccountHolder: DestinationAccountHolder) =
destinationAccountHolder(JsonField.of(destinationAccountHolder))

Expand Down Expand Up @@ -1266,7 +1267,7 @@ private constructor(
this.externalAccountId = externalAccountId
}

/** The type of the account to which the transfer will be sent. */
/** The type of the receiver's bank account. */
fun funding(funding: Funding) = funding(JsonField.of(funding))

/**
Expand Down Expand Up @@ -1322,7 +1323,10 @@ private constructor(
this.inboundFundsHold = inboundFundsHold
}

/** Your identifier for the transfer recipient. */
/**
* Your internal identifier for the transfer recipient. This value is informational and not
* verified by the recipient's bank.
*/
fun individualId(individualId: String?) = individualId(JsonField.ofNullable(individualId))

/** Alias for calling [Builder.individualId] with `individualId.orElse(null)`. */
Expand Down Expand Up @@ -1465,7 +1469,10 @@ private constructor(
*/
fun return_(return_: JsonField<Return>) = apply { this.return_ = return_ }

/** The American Bankers' Association (ABA) Routing Transit Number (RTN). */
/**
* The American Bankers' Association (ABA) Routing Transit Number (RTN) of the receiver's
* bank.
*/
fun routingNumber(routingNumber: String) = routingNumber(JsonField.of(routingNumber))

/**
Expand Down Expand Up @@ -4860,7 +4867,7 @@ private constructor(
override fun toString() = value.toString()
}

/** The type of entity that owns the account to which the ACH Transfer is being sent. */
/** The type of entity that owns the receiver's account. */
class DestinationAccountHolder
@JsonCreator
private constructor(private val value: JsonField<String>) : Enum {
Expand Down Expand Up @@ -5020,7 +5027,7 @@ private constructor(
override fun toString() = value.toString()
}

/** The type of the account to which the transfer will be sent. */
/** The type of the receiver's bank account. */
class Funding @JsonCreator private constructor(private val value: JsonField<String>) : Enum {

/**
Expand Down Expand Up @@ -7569,7 +7576,7 @@ private constructor(
* The chosen effective date will be the same as the ACH processing date on which
* the transfer is submitted. This is necessary, but not sufficient for the transfer
* to be settled same-day: it must also be submitted before the last same-day cutoff
* and be less than or equal to $1,000.000.00.
* and be less than or equal to $1,000,000.00.
*/
@JvmField val SAME_DAY = of("same_day")

Expand All @@ -7589,7 +7596,7 @@ private constructor(
* The chosen effective date will be the same as the ACH processing date on which
* the transfer is submitted. This is necessary, but not sufficient for the transfer
* to be settled same-day: it must also be submitted before the last same-day cutoff
* and be less than or equal to $1,000.000.00.
* and be less than or equal to $1,000,000.00.
*/
SAME_DAY,
/**
Expand All @@ -7616,7 +7623,7 @@ private constructor(
* The chosen effective date will be the same as the ACH processing date on which
* the transfer is submitted. This is necessary, but not sufficient for the transfer
* to be settled same-day: it must also be submitted before the last same-day cutoff
* and be less than or equal to $1,000.000.00.
* and be less than or equal to $1,000,000.00.
*/
SAME_DAY,
/**
Expand Down Expand Up @@ -7838,7 +7845,8 @@ private constructor(
fun transactionId(): String = transactionId.getRequired("transaction_id")

/**
* The identifier of the ACH Transfer associated with this return.
* The identifier of the ACH Transfer associated with this return. This matches the original
* Transaction's `source.ach_transfer_intention.transfer_id`.
*
* @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 @@ -8037,7 +8045,10 @@ private constructor(
this.transactionId = transactionId
}

/** The identifier of the ACH Transfer associated with this return. */
/**
* The identifier of the ACH Transfer associated with this return. This matches the
* original Transaction's `source.ach_transfer_intention.transfer_id`.
*/
fun transferId(transferId: String) = transferId(JsonField.of(transferId))

/**
Expand Down Expand Up @@ -9872,7 +9883,10 @@ private constructor(
/** The transfer has been rejected. */
@JvmField val REJECTED = of("rejected")

/** The transfer is complete. */
/**
* The transfer has been submitted to the Federal Reserve. When the transfer settles,
* the status remains `submitted` and the `settlement` sub-object is populated.
*/
@JvmField val SUBMITTED = of("submitted")

/** The transfer has been returned. */
Expand All @@ -9897,7 +9911,10 @@ private constructor(
REQUIRES_ATTENTION,
/** The transfer has been rejected. */
REJECTED,
/** The transfer is complete. */
/**
* The transfer has been submitted to the Federal Reserve. When the transfer settles,
* the status remains `submitted` and the `settlement` sub-object is populated.
*/
SUBMITTED,
/** The transfer has been returned. */
RETURNED,
Expand Down Expand Up @@ -9927,7 +9944,10 @@ private constructor(
REQUIRES_ATTENTION,
/** The transfer has been rejected. */
REJECTED,
/** The transfer is complete. */
/**
* The transfer has been submitted to the Federal Reserve. When the transfer settles,
* the status remains `submitted` and the `settlement` sub-object is populated.
*/
SUBMITTED,
/** The transfer has been returned. */
RETURNED,
Expand Down
Loading
Loading