Skip to content

Commit 1fdceed

Browse files
claude[bot]github-actions[bot]claude
authored
chore: sync Kotlin sample with paymentRail schema change (#280)
## Summary - Updated Kotlin sample app to support the optional `paymentRail` field added to quote account destinations in #279 ## Context The recent schema change (309c629) added an optional `paymentRail` field to `AccountDestination` in quotes, allowing users to specify which payment rail to use for transfers. ## Changes **Kotlin Sample App:** - Updated `buildQuoteDestination()` in `Quotes.kt` to pass through `paymentRail` from input JSON when provided **No changes needed:** - Mintlify documentation: Examples demonstrate default behavior (system-selected rail) which remains valid - Grid Visualizer: Generated code uses default rail selection which still works correctly ## Test plan - [ ] Verify Kotlin sample accepts requests with optional `paymentRail` field - [ ] Verify existing requests without `paymentRail` continue to work 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 94a2523 commit 1fdceed

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • samples/kotlin/src/main/kotlin/com/grid/sample/routes

samples/kotlin/src/main/kotlin/com/grid/sample/routes/Quotes.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ private fun buildQuoteDestination(destNode: JsonNode): QuoteDestinationOneOf {
122122

123123
val accountDest = QuoteDestinationOneOf.AccountDestination.builder()
124124
.accountId(destNode.get("accountId").asText())
125+
.apply {
126+
destNode.optText("paymentRail")?.let { paymentRail(it) }
127+
}
125128
.build()
126129
return QuoteDestinationOneOf.ofAccountDestination(accountDest)
127130
}

0 commit comments

Comments
 (0)