DanielLeens commented on PR #13699: URL: https://github.com/apache/seatunnel/pull/13699#issuecomment-7246927357
### Implementation Notes and Trade-offs Head: 8827c1287138fd47896c4d5c7fae3cae57442eda The source implements only the native seller order-list read contract. It always sends lastmodifieddate and extracts lastModifiedDate, rather than switching to creationDate or the default unfiltered recent-order list. Complete returned JSON retains buyer, line-item, payment, tax, status, null and extension values. Native getOrders leaves cancelStatus.cancelRequests empty; individual getOrder enrichment is outside this listing scope. Configured timestamp bounds have millisecond precision, and the upper bound freezes once at enumeration. The native inclusive filter includes the upper instant, which local filtering excludes. This preserves finer fractional response timestamps inside the half-open interval. Numeric offsets are reconstructed only after validating native next links against the fixed environment, path, filter and limit. A response claiming remaining rows without a next link fails rather than silently completing. The connector keeps HTTPS work outside checkpoint locks and publishes small chunks under the output lock. Serialized state contains the frozen upper, page count, offset, row position and complete-page digest; it excludes raw orders, tokens, secrets and trust certificates. A restored partial page verifies complete raw data and pagination before publishing the suffix. JSON object order can vary, while changed content or row order is rejected. Terminal and empty scans acquire no token. Application secrets may rotate within the same seller/application scope. A generic HTTP source was considered but would not carry the seller refresh lifecycle, modification-time extraction or exact page replay. Additional shipping/detail endpoints and refund-signing configuration were omitted because they are separate operations outside this native order-list contract. No new SDK or shared HTTP/engine changes are needed. Ambiguous refresh POST retries were rejected; only explicit throttling can repeat token issuance, while eligible read-only data failures use bounded retries and at most one forced unauthorized-read renewal. The fixed production/sandbox endpoints, source-local trust and retained hostname verification constrain credential delivery. Provider order retention, permissions and live-list mutation remain external constraints. A bounded read provides neither a transaction snapshot nor a persistent watermark shared by independent jobs. Actual validation: scoped Java 11 Spotless apply/check, source review, exact path/hash/whitespace/ASF checks, type Javadocs, configuration tables, dependency scope and registration/state contracts. Sixteen engine methods and seven packaged modes were authored, including two real engine savepoint paths. They were not run locally. Compilation, runtime and live-provider interoperability remain pending GitHub CI. This initial PR is handed off for subsequent CI/comment maintenance without a merge or production-readiness claim. -- 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]
