Skip to content

Commit 5fcb2e3

Browse files
committed
Regenerate code from latest upstream models
1 parent 8037cfe commit 5fcb2e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+875
-462
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If you've found any of my packages useful, please consider [becoming a Sponsor](
4242
4343
## Features
4444

45-
* Supports all Selling Partner API operations (for Sellers and Vendors) as of 6/19/2024
45+
* Supports all Selling Partner API operations (for Sellers and Vendors) as of 4/2/2025
4646
* Automatically generates Restricted Data Tokens for all calls that require them -- no extra calls to the Tokens API needed
4747
* Includes a [`Document` helper class](#uploading-and-downloading-documents) for uploading and downloading feed/report documents
4848
* Can handle the end-to-end OAuth flow, from building authorization URLs to converting authorization codes into refresh tokens

resources/models/raw/seller/catalog-items/v2022-04-01.json

Lines changed: 166 additions & 166 deletions
Large diffs are not rendered by default.

resources/models/raw/seller/easy-ship/v2022-03-23.json

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.1",
33
"info": {
44
"title": "Selling Partner API for Easy Ship",
5-
"description": "The Selling Partner API for Easy Ship helps you build applications that help sellers manage and ship Amazon Easy Ship orders.\n\nYour Easy Ship applications can:\n\n* Get available time slots for packages to be scheduled for delivery.\n\n* Schedule, reschedule, and cancel Easy Ship orders.\n\n* Print labels, invoices, and warranties.\n\nSee the [Marketplace Support Table](doc:easyship-api-v2022-03-23-use-case-guide#marketplace-support-table) for the differences in Easy Ship operations by marketplace.",
5+
"description": "Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).",
66
"contact": {
77
"name": "Selling Partner API Developer Support",
88
"url": "https://sellercentral.amazon.com/gp/mws/contactus.html"
@@ -2316,6 +2316,69 @@
23162316
}
23172317
},
23182318
"description": "Error response returned when the request is unsuccessful."
2319+
},
2320+
"Code": {
2321+
"type": "string",
2322+
"description": "An error code that identifies the type of error that occurred. The error codes listed below are specific to the Easy Ship section.",
2323+
"enum": [
2324+
"InvalidInput",
2325+
"InvalidTimeSlotId",
2326+
"ScheduledPackageAlreadyExists",
2327+
"ScheduleWindowExpired",
2328+
"RetryableAfterGettingNewSlots",
2329+
"TimeSlotNotAvailable",
2330+
"ResourceNotFound",
2331+
"InvalidOrderState",
2332+
"RegionNotSupported",
2333+
"OrderNotEligibleForRescheduling",
2334+
"InternalServerError"
2335+
],
2336+
"x-docgen-enum-table-extension": [
2337+
{
2338+
"value": "InvalidInput",
2339+
"description": "HTTP status code 400. Request has missing or invalid parameters and cannot be processed."
2340+
},
2341+
{
2342+
"value": "InvalidTimeSlotId",
2343+
"description": "HTTP status code 400. The specified time slot identifier is not valid."
2344+
},
2345+
{
2346+
"value": "ScheduledPackageAlreadyExists",
2347+
"description": "HTTP status code 400. The order has already been scheduled."
2348+
},
2349+
{
2350+
"value": "ScheduleWindowExpired",
2351+
"description": "HTTP status code 400. The selected time slot has expired. Try calling `listHandoverSlots` again to get a new time slot."
2352+
},
2353+
{
2354+
"value": "RetryableAfterGettingNewSlots",
2355+
"description": "HTTP status code 400. Order scheduling has failed because of an issue with the selected time slot. If you see this error, request a new time slot and try to schedule again."
2356+
},
2357+
{
2358+
"value": "TimeSlotNotAvailable",
2359+
"description": "HTTP status code 404. No time slot is available due to various factors such as: invalid weight and dimension parameters, or the available slots are only available after the expected cancellation date."
2360+
},
2361+
{
2362+
"value": "ResourceNotFound",
2363+
"description": "HTTP status code 404. The specified resource (for example, `amazonOrderId` or `marketplaceId`) does not exist."
2364+
},
2365+
{
2366+
"value": "InvalidOrderState",
2367+
"description": "HTTP status code 404. The request cannot be applied to the order in its current state. For example, you cannot cancel an order which has not yet been scheduled or which has already been canceled."
2368+
},
2369+
{
2370+
"value": "RegionNotSupported",
2371+
"description": "HTTP status code 404. Amazon Easy Ship is not supported in the specified marketplace."
2372+
},
2373+
{
2374+
"value": "OrderNotEligibleForRescheduling",
2375+
"description": "HTTP status code 405. Order is not eligible for rescheduling."
2376+
},
2377+
{
2378+
"value": "InternalServerError",
2379+
"description": "HTTP status code 500. There was an internal service failure."
2380+
}
2381+
]
23192382
}
23202383
}
23212384
},

resources/models/raw/seller/services/v1.json

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3848,6 +3848,27 @@
38483848
},
38493849
"response": ""
38503850
},
3851+
{
3852+
"request": {
3853+
"parameters": {
3854+
"serviceJobId": {
3855+
"value": "validJobId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687"
3856+
},
3857+
"appointmentId": {
3858+
"value": "validAppointmentId-1-9cb9bc29-3d7d-5e49-5709-efb693t25687_87b9d5f2-839d-y13e-sd4d-dae1c3996s3d"
3859+
},
3860+
"body": {
3861+
"value": {
3862+
"estimatedArrivalTime": {
3863+
"startTime": "2000-01-01T09:00:00.000Z",
3864+
"endTime": "2000-01-01T09:30:00.000Z"
3865+
}
3866+
}
3867+
}
3868+
}
3869+
},
3870+
"response": ""
3871+
},
38513872
{
38523873
"request": {
38533874
"parameters": {
@@ -4648,6 +4669,59 @@
46484669
}
46494670
]
46504671
},
4672+
{
4673+
"request": {
4674+
"parameters": {
4675+
"serviceJobId": {
4676+
"value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468"
4677+
},
4678+
"appointmentId": {
4679+
"value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a"
4680+
},
4681+
"body": {
4682+
"value": {
4683+
"estimatedArrivalTime": {
4684+
"startTime": "2021-01-01T10:00:00.000Z"
4685+
}
4686+
}
4687+
}
4688+
}
4689+
},
4690+
"response": [
4691+
{
4692+
"code": "InvalidInput",
4693+
"message": "Failed to process input. Reason: ETA start and end time both are mandatory field as part of estimatedArrivalTime object. Please check the input again",
4694+
"details": ""
4695+
}
4696+
]
4697+
},
4698+
{
4699+
"request": {
4700+
"parameters": {
4701+
"serviceJobId": {
4702+
"value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468"
4703+
},
4704+
"appointmentId": {
4705+
"value": "validJobId-9cb9bc29-3d7d-5e49-5709-efb693d34468_00b9d5f2-839d-c13e-b8cd-dae1c3995b2a"
4706+
},
4707+
"body": {
4708+
"value": {
4709+
"estimatedArrivalTime": {
4710+
"startTime": "2021-01-01T10-00:00.000Z",
4711+
"endTime": "2000-01-01T10:30:00.000Z"
4712+
}
4713+
}
4714+
}
4715+
}
4716+
},
4717+
"response": [
4718+
{
4719+
"code": "InvalidInput",
4720+
"message": "Could not parse given time input 2021-01-01T10-00:00.000Z. Please provide time in ISO8601 format",
4721+
"details": ""
4722+
}
4723+
]
4724+
},
46514725
{
46524726
"request": {
46534727
"parameters": {
@@ -9889,6 +9963,9 @@
98899963
"SetAppointmentFulfillmentDataRequest": {
98909964
"type": "object",
98919965
"properties": {
9966+
"estimatedArrivalTime": {
9967+
"$ref": "#/components/schemas/DateTimeRange"
9968+
},
98929969
"fulfillmentTime": {
98939970
"$ref": "#/components/schemas/FulfillmentTime"
98949971
},
@@ -9917,6 +9994,26 @@
99179994
},
99189995
"description": "Input for fulfillment time details"
99199996
},
9997+
"DateTimeRange": {
9998+
"required": [
9999+
"endTime",
10000+
"startTime"
10001+
],
10002+
"type": "object",
10003+
"properties": {
10004+
"startTime": {
10005+
"type": "string",
10006+
"description": "The beginning of the time range. Must be in UTC in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.",
10007+
"format": "date-time"
10008+
},
10009+
"endTime": {
10010+
"type": "string",
10011+
"description": "The end of the time range. Must be in UTC in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.",
10012+
"format": "date-time"
10013+
}
10014+
},
10015+
"description": "A range of time."
10016+
},
992010017
"FulfillmentDocuments": {
992110018
"type": "array",
992210019
"description": "List of documents captured during service appointment fulfillment.",

resources/models/raw/seller/shipping/v2.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5232,7 +5232,7 @@
52325232
},
52335233
"itemIdentifier": {
52345234
"type": "string",
5235-
"description": "A unique identifier for an item provided by the client."
5235+
"description": "A unique identifier for an item provided by the client. Please use the Orders SP api and populate this field with the response parameter OrderItemId. Note: This is Required field for Amazon Marketplace Orders (ON Amazon type of requests)."
52365236
},
52375237
"quantity": {
52385238
"type": "integer",
@@ -5644,6 +5644,18 @@
56445644
"$ref": "#/components/schemas/TaxDetail"
56455645
}
56465646
},
5647+
"GoodsOwner": {
5648+
"required": [
5649+
"merchantId"
5650+
],
5651+
"type": "object",
5652+
"properties": {
5653+
"merchantId": {
5654+
"$ref": "#/components/schemas/MerchantId"
5655+
}
5656+
},
5657+
"description": "The seller owning the goods before handing them over to the carrier"
5658+
},
56475659
"EventCode": {
56485660
"type": "string",
56495661
"description": "The tracking event type.",
@@ -6378,6 +6390,9 @@
63786390
"description": "The ship date and time (the requested pickup). This defaults to the current date and time.",
63796391
"format": "date-time"
63806392
},
6393+
"goodsOwner": {
6394+
"$ref": "#/components/schemas/GoodsOwner"
6395+
},
63816396
"packages": {
63826397
"$ref": "#/components/schemas/PackageList"
63836398
},
@@ -6763,6 +6778,10 @@
67636778
},
67646779
"description": "Date Range for query the results."
67656780
},
6781+
"MerchantId": {
6782+
"type": "string",
6783+
"description": "merchant Id of provided merchant "
6784+
},
67666785
"PaymentType": {
67676786
"type": "string",
67686787
"description": "Payment type of the purchase.",

resources/models/raw/vendor/direct-fulfillment-orders/v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,7 @@
25502550
]
25512551
}
25522552
},
2553-
"description": "The tax details related to the order."
2553+
"description": "The tax details for the order.\n_Note:_ Amazon calculates tax on the list price (Amazon retail price)."
25542554
},
25552555
"AcknowledgementStatus": {
25562556
"type": "object",

resources/models/raw/vendor/direct-fulfillment-orders/v2021-12-28.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@
14951495
]
14961496
}
14971497
},
1498-
"description": "The tax details related to the order."
1498+
"description": "The tax details for the order.\n_Note:_ Amazon calculates tax on the list price (Amazon retail price)."
14991499
},
15001500
"AcknowledgementStatus": {
15011501
"type": "object",

0 commit comments

Comments
 (0)