Closed Javadebi closed 7 months ago
This problem also exists on generatePackingOptions operation.
Also for confirmPackingOption operation.
@Javadebi : We're using models from API model's repo to generate classes automatically. Therefore, We shouldn't update directly generated api models.
Also, this package allows to override headers while calling methods as well:
client
.createReport(
{
body: {
reportType,
dataStartTime: startDate,
dataEndTime: endDate,
marketplaceIds,
reportOptions,
},
},
{
headers: {
'content-type': 'application/json; charset=utf-8',
},
},
)
And, you can raise an issue Or open a PR to fix the bugs in the specs in https://github.com/amzn/selling-partner-api-models. Once they are fixed, our API clients will be re-generated and released.
@Javadebi : We're using models from API model's repo to generate classes automatically. Therefore, We shouldn't update directly generated api models.
Also, this package allows to override headers while calling methods as well:
client .createReport( { body: { reportType, dataStartTime: startDate, dataEndTime: endDate, marketplaceIds, reportOptions, }, }, { headers: { 'content-type': 'application/json; charset=utf-8', }, }, )
And, you can raise an issue Or open a PR to fix the bugs in the specs in https://github.com/amzn/selling-partner-api-models. Once they are fixed, our API clients will be re-generated and released.
Thank you, I knew that you can pass headers manually, but did not know it is automatically generated.
Hello, thank you for your awesome package. I just wanted to report a bug in the cancelInboundPlan operation from your newest update, FulfillmentInboundApiClientV20240320. The content type is incorrect and should be set to "application/json; charset=utf-8".