Skip to content

Commit 2d76a6c

Browse files
feat(api): api update
1 parent dbee135 commit 2d76a6c

File tree

4 files changed

+24
-16
lines changed

4 files changed

+24
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 220
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-d5e8c32ee2dc3b3f70e43e439b18ad51e73cb830c01f7bb53290a340be7937ea.yml
3-
openapi_spec_hash: dcf97003cd0f0b49bfc2b1213ef83ed9
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-071556e7dfc2b2d72c1f9fee711211e0272dab780651b1a49d3e302d3a9f59be.yml
3+
openapi_spec_hash: 01d445dc17f564c99f440a768f170b0d
44
config_hash: f0b80170c2ea09811aeae3f1e94bc422

increase-kotlin-core/src/main/kotlin/com/increase/api/models/achtransfers/AchTransfer.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9227,11 +9227,11 @@ private constructor(
92279227
* to be made available to the ODFI no later than the opening of business on the second
92289228
* banking day following the Settlement Date of the original entry.".
92299229
*
9230-
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. if
9231-
* the server responded with an unexpected value).
9230+
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
9231+
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
92329232
*/
9233-
fun administrativeReturnsExpectedBy(): OffsetDateTime? =
9234-
administrativeReturnsExpectedBy.getNullable("administrative_returns_expected_by")
9233+
fun administrativeReturnsExpectedBy(): OffsetDateTime =
9234+
administrativeReturnsExpectedBy.getRequired("administrative_returns_expected_by")
92359235

92369236
/**
92379237
* The ACH transfer's effective date as sent to the Federal Reserve. If a specific date was
@@ -9402,10 +9402,8 @@ private constructor(
94029402
* return entry to be made available to the ODFI no later than the opening of business
94039403
* on the second banking day following the Settlement Date of the original entry.".
94049404
*/
9405-
fun administrativeReturnsExpectedBy(administrativeReturnsExpectedBy: OffsetDateTime?) =
9406-
administrativeReturnsExpectedBy(
9407-
JsonField.ofNullable(administrativeReturnsExpectedBy)
9408-
)
9405+
fun administrativeReturnsExpectedBy(administrativeReturnsExpectedBy: OffsetDateTime) =
9406+
administrativeReturnsExpectedBy(JsonField.of(administrativeReturnsExpectedBy))
94099407

94109408
/**
94119409
* Sets [Builder.administrativeReturnsExpectedBy] to an arbitrary JSON value.

increase-kotlin-core/src/test/kotlin/com/increase/api/models/achtransfers/AchTransferListPageResponseTest.kt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ internal class AchTransferListPageResponseTest {
156156
.status(AchTransfer.Status.RETURNED)
157157
.submission(
158158
AchTransfer.Submission.builder()
159-
.administrativeReturnsExpectedBy(null)
159+
.administrativeReturnsExpectedBy(
160+
OffsetDateTime.parse("2020-02-05T11:00:00Z")
161+
)
160162
.effectiveDate(LocalDate.parse("2020-01-31"))
161163
.expectedFundsSettlementAt(
162164
OffsetDateTime.parse("2020-02-03T13:30:00Z")
@@ -313,7 +315,9 @@ internal class AchTransferListPageResponseTest {
313315
.status(AchTransfer.Status.RETURNED)
314316
.submission(
315317
AchTransfer.Submission.builder()
316-
.administrativeReturnsExpectedBy(null)
318+
.administrativeReturnsExpectedBy(
319+
OffsetDateTime.parse("2020-02-05T11:00:00Z")
320+
)
317321
.effectiveDate(LocalDate.parse("2020-01-31"))
318322
.expectedFundsSettlementAt(OffsetDateTime.parse("2020-02-03T13:30:00Z"))
319323
.expectedSettlementSchedule(
@@ -476,7 +480,9 @@ internal class AchTransferListPageResponseTest {
476480
.status(AchTransfer.Status.RETURNED)
477481
.submission(
478482
AchTransfer.Submission.builder()
479-
.administrativeReturnsExpectedBy(null)
483+
.administrativeReturnsExpectedBy(
484+
OffsetDateTime.parse("2020-02-05T11:00:00Z")
485+
)
480486
.effectiveDate(LocalDate.parse("2020-01-31"))
481487
.expectedFundsSettlementAt(
482488
OffsetDateTime.parse("2020-02-03T13:30:00Z")

increase-kotlin-core/src/test/kotlin/com/increase/api/models/achtransfers/AchTransferTest.kt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ internal class AchTransferTest {
145145
.status(AchTransfer.Status.RETURNED)
146146
.submission(
147147
AchTransfer.Submission.builder()
148-
.administrativeReturnsExpectedBy(null)
148+
.administrativeReturnsExpectedBy(
149+
OffsetDateTime.parse("2020-02-05T11:00:00Z")
150+
)
149151
.effectiveDate(LocalDate.parse("2020-01-31"))
150152
.expectedFundsSettlementAt(OffsetDateTime.parse("2020-02-03T13:30:00Z"))
151153
.expectedSettlementSchedule(
@@ -294,7 +296,7 @@ internal class AchTransferTest {
294296
assertThat(achTransfer.submission())
295297
.isEqualTo(
296298
AchTransfer.Submission.builder()
297-
.administrativeReturnsExpectedBy(null)
299+
.administrativeReturnsExpectedBy(OffsetDateTime.parse("2020-02-05T11:00:00Z"))
298300
.effectiveDate(LocalDate.parse("2020-01-31"))
299301
.expectedFundsSettlementAt(OffsetDateTime.parse("2020-02-03T13:30:00Z"))
300302
.expectedSettlementSchedule(
@@ -443,7 +445,9 @@ internal class AchTransferTest {
443445
.status(AchTransfer.Status.RETURNED)
444446
.submission(
445447
AchTransfer.Submission.builder()
446-
.administrativeReturnsExpectedBy(null)
448+
.administrativeReturnsExpectedBy(
449+
OffsetDateTime.parse("2020-02-05T11:00:00Z")
450+
)
447451
.effectiveDate(LocalDate.parse("2020-01-31"))
448452
.expectedFundsSettlementAt(OffsetDateTime.parse("2020-02-03T13:30:00Z"))
449453
.expectedSettlementSchedule(

0 commit comments

Comments
 (0)