DanielLeens commented on PR #13713: URL: https://github.com/apache/seatunnel/pull/13713#issuecomment-7249033544
### Implementation Notes and Trade-offs Head: 78819c19cb5bd3f8164677b4bf16648628465fdf The marketplace gateway and company-domain gateways use different credential contracts. Reusing the other gateway's query-key authentication or falling back to a different origin was rejected because it changes the actual subscription and sends credentials outside the configured product. This source fixes api.apilayer.com, uses apikey only in headers, and follows no redirects. Public guides link the operator's gateway distinction. No live account was used. Calling latest with a date parameter was rejected as historical backfill: a latest response remains a single quote snapshot. Historical mode instead traverses actual YYYY-MM-DD endpoints with inclusive bounds; latest performs one undated request and filters the returned native date. Omitted upper bounds freeze once at UTC yesterday/today by mode and are preserved through restoration. Weekend exclusion applies to requested historical dates or the native latest quote date. Calendar-span limits include skipped days; latest is not forced to traverse the filter span. Availability and paid history/base capabilities remain provider constraints rather than silent skips or local conversions. A single native quote is one atomic row. Splitting currencies into separate rows or inventing partial-row recovery offsets was rejected because it changes the resource and adds checkpoint state without an intra-record publication boundary. Complete JSON retains dynamic precise/null/zero rates and unknown fields. Native fields, requested currencies and business success are validated before publication. Publication/date progression share the checkpoint lock. The split stores scope hashes, frozen UTC metadata, next date and terminal state; snapshots copy mutable progress. Credentials, quotes and trust material are excluded from serialized state. Changed scope or inconsistent frozen bounds/positions fails before HTTP; terminal/latest-filtered recovery performs no GET. Isolated artifacts keep native rules out of shared engine/API code while reusing existing HTTP/Jackson versions. Only approved additive registration/POM/dist entries, bilingual guides and connector-owned tests are included. Source-local trust preserves hostname checks. Finite wire/decoded/rate/calendar/deadline/retry limits and direct socket closure bound the read/cancel lifecycle; provider bodies and key material are not attached to failure messages. Actual checks: scoped Java 11 Spotless apply/check and source self-audit; exact 26-path/hash/deletion/ASF/XML/whitespace checks; 22 type Javadocs, 16 option tables and registration/state contracts. Eleven engine E2E methods, four engine savepoint paths and six packaged-reader modes are authored. None ran locally. Compilation/runtime and live subscription interoperability remain pending GitHub CI or a suitable account environment. This is an initial implementation submission; CI/comment maintenance is handed off after first readback. No merge, production-acceptance, complete live-service parity or transaction-snapshot claim is made. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
