How rye-com/checkout-intents-java works
This is the Checkout Intents Java SDK: application code configures a synchronous or asynchronous client, supplies typed request parameters to service methods, and receives typed responses from the Checkout Intents REST API. Its domain surface includes checkout sessions and intents, orders, billing, and the broader commerce, fulfillment, and event APIs. The core supplies request configuration and HTTP abstractions, while the OkHttp module provides transport. Several service implementations and async paths are unsampled, so those connections are shown only where README or index evidence supports them.
Main entry points: models Typed models · OkHttpClient.kt OkHttp adapter · CheckoutIntentsClient.kt Sync client · CheckoutIntentsOkHttpClient.kt Sync OkHttp client
Components 19
Client entrypoints
- Sync client
checkout-intents-core/src/main/kotlin/com/rye/client/CheckoutIntentsClient.kt - Async client
checkout-intents-core/src/main/kotlin/com/rye/client/CheckoutIntentsClientAsync.kt
Commerce services
- Checkout intents
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/CheckoutIntentService.kt - Hosted sessions
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/betas/CheckoutSessionService.kt - Orders
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/OrderService.kt - Billing
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/BillingService.kt - Commerce APIs
checkout-intents-core/src/main/kotlin/com/rye/services/blocking - Returns and shipping
checkout-intents-core/src/main/kotlin/com/rye/services/blocking - Typed models
checkout-intents-core/src/main/kotlin/com/rye/models
Runtime support
- Client options
checkout-intents-core/src/main/kotlin/com/rye/core/ClientOptions.kt - Request options
checkout-intents-core/src/main/kotlin/com/rye/core/RequestOptions.kt - HTTP request
checkout-intents-core/src/main/kotlin/com/rye/core/http/HttpRequest.kt - Headers and query
checkout-intents-core/src/main/kotlin/com/rye/core/http/Headers.kt - HTTP responses
checkout-intents-core/src/main/kotlin/com/rye/core/http/HttpResponseFor.kt
HTTP transport
- OkHttp adapter
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/OkHttpClient.kt - Sync OkHttp client
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClient.kt - Async OkHttp client
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClientAsync.kt
Other components
- Application
- Checkout Intents API
Connections 21
- Application → Sync OkHttp client: configures client
README.md - Application → Sync client: builds request
README.md - Sync client → Checkout intents: accesses service
README.md - Checkout intents → Typed models: uses params and results
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/CheckoutIntentService.kt - Application → Async OkHttp client: configures async
README.md - Async OkHttp client → Async client: implements client
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClientAsync.kt - Sync OkHttp client → Sync client: implements client
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClient.kt - Hosted sessions → Typed models: uses session types
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/betas/CheckoutSessionService.kt - Billing → Typed models: uses billing types
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/BillingService.kt - Orders → Typed models: uses order types
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/OrderService.kt - Commerce APIs → Typed models: uses domain types
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/betas/CheckoutSessionService.kt - Returns and shipping → Typed models: uses domain types
checkout-intents-core/src/main/kotlin/com/rye/services/blocking/betas/CheckoutSessionService.kt - Sync client → Client options: configures with
- Client options → Request options: sets defaults
checkout-intents-core/src/main/kotlin/com/rye/core/RequestOptions.kt - HTTP request → Headers and query: carries metadata
checkout-intents-core/src/main/kotlin/com/rye/core/http/HttpRequest.kt - Sync OkHttp client → OkHttp adapter: uses transport
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClient.kt - Async OkHttp client → OkHttp adapter: uses transport
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/CheckoutIntentsOkHttpClientAsync.kt - OkHttp adapter → HTTP request: sends request
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/OkHttpClient.kt - OkHttp adapter → HTTP responses: returns response
checkout-intents-client-okhttp/src/main/kotlin/com/rye/client/okhttp/OkHttpClient.kt - OkHttp adapter → Checkout Intents API: calls REST API
README.md - Checkout Intents API → Sync client: returns typed data