Repository navigation
feat(support): Add Selling Partner API for Support v2025-02-01 - #8
Merged
Merged
Conversation
Implements the three Support API operations via a new SupportService,
exposed as AmazonConnection.Support:
- ListCases (POST /support/2025-02-01/cases): auto-pages on nextToken,
honours MaxNumberOfPages and surfaces NextToken on the parameter, with
ListCasesByNextToken for manual paging.
- GetCase (GET /cases/{caseId}).
- ListContacts (GET /cases/{caseId}/contacts): same paging pattern, with
ListContactsByNextToken.
Models under AmazonSpApiSDK/Models/Support are generated from Amazon's
support_2025-02-01.json in the existing swagger-codegen style. Fields the
model marks x-amzn-api-internal (ListCasesRequest.marketplaceId/sortField,
Case.lastOutboundDate) are omitted, as they are not in the public reference.
Parameterless JSON constructors are public to satisfy ExecuteRequestAsync<T>.
Amazon has not published usage plans for this API, so the rate limits are
conservative defaults (1 req/s, burst 1); the limiter adopts the
x-amzn-RateLimit-Limit header from the first response.
Also adds SupportSample.cs and a README section.
Tests: added SupportTests (13 cases) covering deserialisation of Amazon's
sandbox responses, request body and query serialisation, validation and
rate-limit registration. Full suite passes (17/17).
Breaking: no
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brings the Support API v2025-02-01 into integration/AMZDW for testing ahead of upstream review.
Same branch and commit as upstream PR abuzuhri#960, so a later upstream sync will merge cleanly.
Tests: merged result builds; full suite passes (20/20).