python-amazon-sp-api 2.0.15__py3-none-any.whl → 2.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/METADATA +7 -7
  2. python_amazon_sp_api-2.1.3.dist-info/RECORD +350 -0
  3. sp_api/__version__.py +1 -1
  4. sp_api/api/__init__.py +160 -4
  5. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +85 -110
  6. sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +456 -0
  7. sp_api/api/aplus_content/aplus_content.py +176 -125
  8. sp_api/api/application_integrations/application_integrations.py +59 -68
  9. sp_api/api/application_management/application_management.py +20 -13
  10. sp_api/api/authorization/authorization.py +8 -26
  11. sp_api/api/catalog/catalog.py +27 -61
  12. sp_api/api/catalog_items/catalog_items.py +108 -78
  13. sp_api/api/catalog_items/catalog_items_2020_12_01.py +86 -0
  14. sp_api/api/catalog_items/catalog_items_2022_04_01.py +89 -0
  15. sp_api/api/customer_feedback/customer_feedback.py +100 -0
  16. sp_api/api/data_kiosk/data_kiosk.py +80 -75
  17. sp_api/api/delivery_by_amazon/__init__.py +0 -0
  18. sp_api/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  19. sp_api/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +81 -0
  20. sp_api/api/easy_ship/easy_ship.py +121 -111
  21. sp_api/api/external_fulfillment/external_fulfillment.py +211 -434
  22. sp_api/api/external_fulfillment/inventory.py +120 -0
  23. sp_api/api/external_fulfillment/inventory_2021_01_06.py +71 -0
  24. sp_api/api/external_fulfillment/inventory_2024_09_11.py +96 -0
  25. sp_api/api/external_fulfillment/returns.py +120 -0
  26. sp_api/api/external_fulfillment/returns_2021_08_19.py +88 -0
  27. sp_api/api/external_fulfillment/returns_2024_09_11.py +141 -0
  28. sp_api/api/external_fulfillment/shipping.py +120 -0
  29. sp_api/api/external_fulfillment/shipping_2021_01_06.py +256 -0
  30. sp_api/api/external_fulfillment/shipping_2024_09_11.py +233 -0
  31. sp_api/api/fba_inbound_eligibility/fba_inbound_eligibility.py +30 -24
  32. sp_api/api/fba_small_and_light/fba_small_and_light.py +60 -99
  33. sp_api/api/feeds/feeds.py +75 -245
  34. sp_api/api/feeds/feeds_2021_06_30.py +320 -0
  35. sp_api/api/finances/finances.py +123 -90
  36. sp_api/api/finances/finances_2024_06_01.py +71 -0
  37. sp_api/api/finances/finances_2024_06_19.py +114 -0
  38. sp_api/api/finances/finances_v0.py +116 -0
  39. sp_api/api/fulfillment_inbound/fulfillment_inbound.py +107 -1784
  40. sp_api/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1722 -0
  41. sp_api/api/fulfillment_inbound/fulfillment_inbound_v0.py +1384 -0
  42. sp_api/api/fulfillment_outbound/fulfillment_outbound.py +256 -480
  43. sp_api/api/inventories/inventories.py +79 -42
  44. sp_api/api/invoices/__init__.py +0 -0
  45. sp_api/api/invoices/invoices.py +92 -0
  46. sp_api/api/invoices/invoices_2024_06_19.py +344 -0
  47. sp_api/api/listings_items/listings_items.py +110 -163
  48. sp_api/api/listings_items/listings_items_2020_09_01.py +189 -0
  49. sp_api/api/listings_items/listings_items_2021_08_01.py +233 -0
  50. sp_api/api/listings_restrictions/listings_restrictions.py +23 -10
  51. sp_api/api/merchant_fulfillment/merchant_fulfillment.py +107 -222
  52. sp_api/api/messaging/messaging.py +184 -198
  53. sp_api/api/notifications/notifications.py +144 -106
  54. sp_api/api/orders/orders.py +9 -46
  55. sp_api/api/orders/orders_2026_01_01.py +19 -65
  56. sp_api/api/orders/orders_v0.py +152 -184
  57. sp_api/api/product_fees/product_fees.py +101 -75
  58. sp_api/api/product_type_definitions/product_type_definitions.py +47 -36
  59. sp_api/api/products/products.py +94 -386
  60. sp_api/api/products/products_2022_05_01.py +96 -0
  61. sp_api/api/products/products_v0.py +389 -0
  62. sp_api/api/replenishment/replenishment.py +58 -69
  63. sp_api/api/reports/reports.py +124 -157
  64. sp_api/api/sales/sales.py +22 -39
  65. sp_api/api/seller_wallet/__init__.py +0 -0
  66. sp_api/api/seller_wallet/seller_wallet.py +92 -0
  67. sp_api/api/seller_wallet/seller_wallet_2024_03_01.py +300 -0
  68. sp_api/api/sellers/sellers.py +15 -35
  69. sp_api/api/services/services.py +479 -82
  70. sp_api/api/shipment_invoicing/__init__.py +0 -0
  71. sp_api/api/shipment_invoicing/shipment_invoicing.py +92 -0
  72. sp_api/api/shipment_invoicing/shipment_invoicing_v0.py +101 -0
  73. sp_api/api/shipping/shipping.py +94 -440
  74. sp_api/api/shipping/shippingV2.py +183 -474
  75. sp_api/api/shipping/shipping_v1.py +330 -0
  76. sp_api/api/shipping/shipping_v2.py +723 -0
  77. sp_api/api/solicitations/solicitations.py +28 -18
  78. sp_api/api/supply_sources/supply_sources.py +67 -57
  79. sp_api/api/tokens/tokens.py +14 -35
  80. sp_api/api/vehicles/__init__.py +0 -0
  81. sp_api/api/vehicles/vehicles.py +92 -0
  82. sp_api/api/vehicles/vehicles_2024_11_01.py +33 -0
  83. sp_api/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  84. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +116 -189
  85. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +114 -0
  86. sp_api/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +114 -0
  87. sp_api/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  88. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  89. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  90. sp_api/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +50 -0
  91. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +122 -624
  92. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +390 -0
  93. sp_api/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +320 -0
  94. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +113 -29
  95. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +47 -0
  96. sp_api/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +47 -0
  97. sp_api/api/vendor_invoices/vendor_invoices.py +15 -264
  98. sp_api/api/vendor_orders/vendor_orders.py +83 -131
  99. sp_api/api/vendor_shipments/vendor_shipments.py +149 -68
  100. sp_api/api/vendor_transaction_status/vendor_transaction_status.py +16 -11
  101. sp_api/asyncio/api/__init__.py +159 -4
  102. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py +84 -110
  103. sp_api/asyncio/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu_2024_05_09.py +457 -0
  104. sp_api/asyncio/api/aplus_content/aplus_content.py +176 -125
  105. sp_api/asyncio/api/application_integrations/application_integrations.py +59 -68
  106. sp_api/asyncio/api/application_management/application_management.py +20 -13
  107. sp_api/asyncio/api/authorization/authorization.py +8 -26
  108. sp_api/asyncio/api/catalog/catalog.py +27 -61
  109. sp_api/asyncio/api/catalog_items/catalog_items.py +94 -71
  110. sp_api/asyncio/api/catalog_items/catalog_items_2020_12_01.py +87 -0
  111. sp_api/asyncio/api/catalog_items/catalog_items_2022_04_01.py +90 -0
  112. sp_api/asyncio/api/customer_feedback/customer_feedback.py +100 -0
  113. sp_api/asyncio/api/data_kiosk/data_kiosk.py +80 -75
  114. sp_api/asyncio/api/delivery_by_amazon/__init__.py +0 -0
  115. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon.py +92 -0
  116. sp_api/asyncio/api/delivery_by_amazon/delivery_by_amazon_2022_07_01.py +82 -0
  117. sp_api/asyncio/api/easy_ship/easy_ship.py +121 -111
  118. sp_api/asyncio/api/external_fulfillment/external_fulfillment.py +212 -435
  119. sp_api/asyncio/api/external_fulfillment/inventory.py +126 -0
  120. sp_api/asyncio/api/external_fulfillment/inventory_2021_01_06.py +73 -0
  121. sp_api/asyncio/api/external_fulfillment/inventory_2024_09_11.py +98 -0
  122. sp_api/asyncio/api/external_fulfillment/returns.py +124 -0
  123. sp_api/asyncio/api/external_fulfillment/returns_2021_08_19.py +90 -0
  124. sp_api/asyncio/api/external_fulfillment/returns_2024_09_11.py +143 -0
  125. sp_api/asyncio/api/external_fulfillment/shipping.py +124 -0
  126. sp_api/asyncio/api/external_fulfillment/shipping_2021_01_06.py +258 -0
  127. sp_api/asyncio/api/external_fulfillment/shipping_2024_09_11.py +235 -0
  128. sp_api/asyncio/api/fba_inbound_eligibility/fba_inbound_eligibility.py +31 -25
  129. sp_api/asyncio/api/fba_small_and_light/fba_small_and_light.py +61 -100
  130. sp_api/asyncio/api/feeds/feeds.py +75 -243
  131. sp_api/asyncio/api/feeds/feeds_2021_06_30.py +318 -0
  132. sp_api/asyncio/api/finances/finances.py +123 -91
  133. sp_api/asyncio/api/finances/finances_2024_06_01.py +72 -0
  134. sp_api/asyncio/api/finances/finances_2024_06_19.py +115 -0
  135. sp_api/asyncio/api/finances/finances_v0.py +117 -0
  136. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound.py +107 -1785
  137. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_2024_03_20.py +1723 -0
  138. sp_api/asyncio/api/fulfillment_inbound/fulfillment_inbound_v0.py +1385 -0
  139. sp_api/asyncio/api/fulfillment_outbound/fulfillment_outbound.py +257 -481
  140. sp_api/asyncio/api/inventories/inventories.py +79 -42
  141. sp_api/asyncio/api/invoices/__init__.py +0 -0
  142. sp_api/asyncio/api/invoices/invoices.py +92 -0
  143. sp_api/asyncio/api/invoices/invoices_2024_06_19.py +345 -0
  144. sp_api/asyncio/api/listings_items/listings_items.py +109 -163
  145. sp_api/asyncio/api/listings_items/listings_items_2020_09_01.py +190 -0
  146. sp_api/asyncio/api/listings_items/listings_items_2021_08_01.py +233 -0
  147. sp_api/asyncio/api/listings_restrictions/listings_restrictions.py +23 -10
  148. sp_api/asyncio/api/merchant_fulfillment/merchant_fulfillment.py +110 -222
  149. sp_api/asyncio/api/messaging/messaging.py +185 -199
  150. sp_api/asyncio/api/notifications/notifications.py +145 -107
  151. sp_api/asyncio/api/orders/orders.py +9 -46
  152. sp_api/asyncio/api/orders/orders_2026_01_01.py +19 -65
  153. sp_api/asyncio/api/orders/orders_v0.py +152 -184
  154. sp_api/asyncio/api/product_fees/product_fees.py +101 -75
  155. sp_api/asyncio/api/product_type_definitions/product_type_definitions.py +47 -36
  156. sp_api/asyncio/api/products/products.py +94 -387
  157. sp_api/asyncio/api/products/products_2022_05_01.py +109 -0
  158. sp_api/asyncio/api/products/products_v0.py +388 -0
  159. sp_api/asyncio/api/replenishment/replenishment.py +59 -70
  160. sp_api/asyncio/api/reports/reports.py +124 -157
  161. sp_api/asyncio/api/sales/sales.py +22 -39
  162. sp_api/asyncio/api/seller_wallet/__init__.py +0 -0
  163. sp_api/asyncio/api/seller_wallet/seller_wallet.py +92 -0
  164. sp_api/asyncio/api/seller_wallet/seller_wallet_2024_03_01.py +301 -0
  165. sp_api/asyncio/api/sellers/sellers.py +16 -36
  166. sp_api/asyncio/api/services/services.py +479 -82
  167. sp_api/asyncio/api/shipment_invoicing/__init__.py +0 -0
  168. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing.py +92 -0
  169. sp_api/asyncio/api/shipment_invoicing/shipment_invoicing_v0.py +102 -0
  170. sp_api/asyncio/api/shipping/shipping.py +94 -441
  171. sp_api/asyncio/api/shipping/shippingV2.py +181 -472
  172. sp_api/asyncio/api/shipping/shipping_v1.py +331 -0
  173. sp_api/asyncio/api/shipping/shipping_v2.py +717 -0
  174. sp_api/asyncio/api/solicitations/solicitations.py +29 -19
  175. sp_api/asyncio/api/supply_sources/supply_sources.py +67 -57
  176. sp_api/asyncio/api/tokens/tokens.py +14 -35
  177. sp_api/asyncio/api/vehicles/__init__.py +0 -0
  178. sp_api/asyncio/api/vehicles/vehicles.py +92 -0
  179. sp_api/asyncio/api/vehicles/vehicles_2024_11_01.py +34 -0
  180. sp_api/asyncio/api/vendor_direct_fulfillment_inventory/vendor_direct_fulfillment_inventory.py +16 -29
  181. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders.py +120 -192
  182. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_2021_12_28.py +116 -0
  183. sp_api/asyncio/api/vendor_direct_fulfillment_orders/vendor_direct_fulfillment_orders_v1.py +115 -0
  184. sp_api/asyncio/api/vendor_direct_fulfillment_payments/vendor_direct_fulfillment_payments.py +15 -225
  185. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/__init__.py +0 -0
  186. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data.py +92 -0
  187. sp_api/asyncio/api/vendor_direct_fulfillment_sandbox_test_data/vendor_direct_fulfillment_sandbox_test_data_2021_10_28.py +51 -0
  188. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping.py +120 -623
  189. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_2021_12_28.py +392 -0
  190. sp_api/asyncio/api/vendor_direct_fulfillment_shipping/vendor_direct_fulfillment_shipping_v1.py +321 -0
  191. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions.py +112 -29
  192. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_2021_12_28.py +49 -0
  193. sp_api/asyncio/api/vendor_direct_fulfillment_transactions/vendor_direct_fulfillment_transactions_v1.py +48 -0
  194. sp_api/asyncio/api/vendor_invoices/vendor_invoices.py +16 -265
  195. sp_api/asyncio/api/vendor_orders/vendor_orders.py +84 -132
  196. sp_api/asyncio/api/vendor_shipments/vendor_shipments.py +150 -69
  197. sp_api/asyncio/api/vendor_transaction_status/vendor_transaction_status.py +17 -12
  198. sp_api/asyncio/base/client.py +2 -2
  199. sp_api/asyncio/util/load_date_bound.py +1 -1
  200. sp_api/base/__init__.py +10 -0
  201. sp_api/base/_core.py +2 -2
  202. sp_api/base/client.py +3 -3
  203. sp_api/base/helpers.py +12 -1
  204. sp_api/base/marketplaces.py +6 -3
  205. sp_api/util/__init__.py +2 -0
  206. sp_api/util/load_date_bound.py +1 -1
  207. sp_api/util/versioned_client.py +45 -0
  208. python_amazon_sp_api-2.0.15.dist-info/RECORD +0 -255
  209. sp_api/asyncio/api/models/__init__.py +0 -4
  210. sp_api/asyncio/api/overrides/__init__.py +0 -1
  211. {python_amazon_sp_api-2.0.15.data → python_amazon_sp_api-2.1.3.data}/scripts/make_endpoint +0 -0
  212. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/WHEEL +0 -0
  213. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/licenses/LICENSE +0 -0
  214. {python_amazon_sp_api-2.0.15.dist-info → python_amazon_sp_api-2.1.3.dist-info}/top_level.txt +0 -0
@@ -16,24 +16,29 @@ class Services(AsyncBaseClient):
16
16
  async def get_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse:
17
17
  """
18
18
  get_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse
19
-
20
- Gets service job details for the service job indicated by the service job identifier you specify.
21
-
19
+
20
+ Gets details of service job indicated by the provided `serviceJobID`.
21
+
22
22
  **Usage Plan:**
23
-
23
+
24
24
  ====================================== ==============
25
25
  Rate (requests per second) Burst
26
26
  ====================================== ==============
27
27
  20 40
28
28
  ====================================== ==============
29
-
29
+
30
30
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
31
-
31
+
32
+ Examples:
33
+ literal blocks::
34
+
35
+ await Services().get_service_job_by_service_job_id("value")
36
+
32
37
  Args:
33
- serviceJobId:string | * REQUIRED A service job identifier.
34
-
38
+ serviceJobId: object | required A service job identifier.
39
+
35
40
  Returns:
36
- ApiResponse:
41
+ ApiResponse
37
42
  """
38
43
 
39
44
  return await self._request(
@@ -46,26 +51,30 @@ class Services(AsyncBaseClient):
46
51
  ) -> ApiResponse:
47
52
  """
48
53
  cancel_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse
49
-
50
- Cancels the service job indicated by the service job identifier you specify.
51
-
54
+
55
+ Cancels the service job indicated by the service job identifier specified.
56
+
52
57
  **Usage Plan:**
53
-
54
-
58
+
55
59
  ====================================== ==============
56
60
  Rate (requests per second) Burst
57
61
  ====================================== ==============
58
62
  5 20
59
63
  ====================================== ==============
60
-
64
+
61
65
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
62
-
66
+
67
+ Examples:
68
+ literal blocks::
69
+
70
+ await Services().cancel_service_job_by_service_job_id("value")
71
+
63
72
  Args:
64
- serviceJobId:string | * REQUIRED An Amazon defined service job identifier.
65
- key cancellationReasonCode:string | * REQUIRED A cancel reason code that specifies the reason for cancelling a service job.
66
-
73
+ serviceJobId: object | required An Amazon defined service job identifier.
74
+ key cancellationReasonCode: object | required A cancel reason code that specifies the reason for cancelling a service job.
75
+
67
76
  Returns:
68
- ApiResponse:
77
+ ApiResponse
69
78
  """
70
79
 
71
80
  return await self._request(
@@ -78,25 +87,29 @@ class Services(AsyncBaseClient):
78
87
  ) -> ApiResponse:
79
88
  """
80
89
  complete_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse
81
-
82
- Completes the service job indicated by the service job identifier you specify.
83
-
90
+
91
+ Completes the service job indicated by the service job identifier specified.
92
+
84
93
  **Usage Plan:**
85
-
86
-
94
+
87
95
  ====================================== ==============
88
96
  Rate (requests per second) Burst
89
97
  ====================================== ==============
90
98
  5 20
91
99
  ====================================== ==============
92
-
100
+
93
101
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
94
-
102
+
103
+ Examples:
104
+ literal blocks::
105
+
106
+ await Services().complete_service_job_by_service_job_id("value")
107
+
95
108
  Args:
96
- serviceJobId:string | * REQUIRED An Amazon defined service job identifier.
97
-
109
+ serviceJobId: object | required An Amazon defined service job identifier.
110
+
98
111
  Returns:
99
- ApiResponse:
112
+ ApiResponse
100
113
  """
101
114
 
102
115
  return await self._request(
@@ -107,36 +120,44 @@ class Services(AsyncBaseClient):
107
120
  async def get_service_jobs(self, **kwargs) -> ApiResponse:
108
121
  """
109
122
  get_service_jobs(self, **kwargs) -> ApiResponse
110
-
123
+
111
124
  Gets service job details for the specified filter query.
112
-
125
+
113
126
  **Usage Plan:**
114
-
127
+
115
128
  ====================================== ==============
116
129
  Rate (requests per second) Burst
117
130
  ====================================== ==============
118
131
  10 40
119
132
  ====================================== ==============
120
-
133
+
121
134
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
122
-
135
+
136
+ Examples:
137
+ literal blocks::
138
+
139
+ await Services().get_service_jobs()
140
+
123
141
  Args:
124
- key serviceOrderIds: array | List of service order ids for the query you want to perform.Max values supported 20.
125
- key serviceJobStatus: array | A list of one or more job status by which to filter the list of jobs.
126
- key pageToken: string | String returned in the response of your previous request.
127
- key pageSize: integer | A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
128
- key sortField: string | Sort fields on which you want to sort the output.
129
- key sortOrder: string | Sort order for the query you want to perform.
130
- key createdAfter: string | A date used for selecting jobs created after (or at) a specified time must be in ISO 8601 format. Required if LastUpdatedAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
131
- key createdBefore: string | A date used for selecting jobs created before (or at) a specified time must be in ISO 8601 format.
132
- key lastUpdatedAfter: string | A date used for selecting jobs updated after (or at) a specified time must be in ISO 8601 format. Required if createdAfter is not specified.Specifying both CreatedAfter and LastUpdatedAfter returns an error.
133
- key lastUpdatedBefore: string | A date used for selecting jobs updated before (or at) a specified time must be in ISO 8601 format.
134
- key scheduleStartDate: string | A date used for filtering jobs schedule after (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
135
- key scheduleEndDate: string | A date used for filtering jobs schedule before (or at) a specified time must be in ISO 8601 format. schedule end date should not be earlier than schedule start date.
136
- key marketplaceIds: array | * REQUIRED Used to select jobs that were placed in the specified marketplaces.
137
-
142
+ key serviceOrderIds: object | List of service order ids for the query you want to perform.Max values supported 20.
143
+ key serviceJobStatus: object | A list of one or more job status by which to filter the list of jobs.
144
+ key pageToken: object | String returned in the response of your previous request.
145
+ key pageSize: object | A non-negative integer that indicates the maximum number of jobs to return in the list, Value must be 1 - 20. Default 20.
146
+ key sortField: object | Sort fields on which you want to sort the output.
147
+ key sortOrder: object | Sort order for the query you want to perform.
148
+ key createdAfter: object | A date used for selecting jobs created at or after a specified time. Must be in ISO 8601 format. Required if `LastUpdatedAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
149
+ key createdBefore: object | A date used for selecting jobs created at or before a specified time. Must be in ISO 8601 format.
150
+ key lastUpdatedAfter: object | A date used for selecting jobs updated at or after a specified time. Must be in ISO 8601 format. Required if `createdAfter` is not specified. Specifying both `CreatedAfter` and `LastUpdatedAfter` returns an error.
151
+ key lastUpdatedBefore: object | A date used for selecting jobs updated at or before a specified time. Must be in ISO 8601 format.
152
+ key scheduleStartDate: object | A date used for filtering jobs schedules at or after a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
153
+ key scheduleEndDate: object | A date used for filtering jobs schedules at or before a specified time. Must be in ISO 8601 format. Schedule end date should not be earlier than schedule start date.
154
+ key marketplaceIds: object | required Used to select jobs that were placed in the specified marketplaces.
155
+ key asins: object | List of Amazon Standard Identification Numbers (ASIN) of the items. Max values supported is 20.
156
+ key requiredSkills: object | A defined set of related knowledge, skills, experience, tools, materials, and work processes common to service delivery for a set of products and/or service scenarios. Max values supported is 20.
157
+ key storeIds: object | List of Amazon-defined identifiers for the region scope. Max values supported is 50.
158
+
138
159
  Returns:
139
- ApiResponse:
160
+ ApiResponse
140
161
  """
141
162
 
142
163
  return await self._request(kwargs.pop("path"), params=kwargs)
@@ -147,31 +168,30 @@ class Services(AsyncBaseClient):
147
168
  ) -> ApiResponse:
148
169
  """
149
170
  add_appointment_for_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse
150
-
151
- Adds an appointment to the service job indicated by the service job identifier you specify.
152
-
171
+
172
+ Adds an appointment to the service job indicated by the service job identifier specified.
173
+
153
174
  **Usage Plan:**
154
-
155
-
175
+
156
176
  ====================================== ==============
157
177
  Rate (requests per second) Burst
158
178
  ====================================== ==============
159
179
  5 20
160
180
  ====================================== ==============
161
-
181
+
162
182
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
163
-
183
+
184
+ Examples:
185
+ literal blocks::
186
+
187
+ await Services().add_appointment_for_service_job_by_service_job_id("value")
188
+
164
189
  Args:
165
- serviceJobId:string | * REQUIRED An Amazon defined service job identifier.
166
- body: {
167
- "appointmentTime": {
168
- "startTime": "2019-08-24T14:15:22Z",
169
- "durationInMinutes": 0
170
- }
171
- }
172
-
173
- Returns:
174
- ApiResponse:
190
+ serviceJobId: object | required An Amazon defined service job identifier.
191
+ body: AddAppointmentRequest | required Add appointment operation input details.
192
+
193
+ Returns:
194
+ ApiResponse
175
195
  """
176
196
 
177
197
  return await self._request(
@@ -184,35 +204,412 @@ class Services(AsyncBaseClient):
184
204
  ) -> ApiResponse:
185
205
  """
186
206
  reschedule_appointment_for_service_job_by_service_job_id(self, serviceJobId, **kwargs) -> ApiResponse
187
-
207
+
188
208
  Reschedules an appointment for the service job indicated by the service job identifier you specify.
209
+
210
+ Examples:
211
+ literal blocks::
212
+
213
+ await Services().reschedule_appointment_for_service_job_by_service_job_id("value")
214
+
215
+ Args:
216
+ serviceJobId: | required
217
+ **kwargs:
218
+
219
+ Returns:
220
+ ApiResponse
221
+ """
222
+
223
+ return await self._request(
224
+ fill_query_params(kwargs.pop("path"), serviceJobId), data=kwargs
225
+ )
226
+
227
+
228
+
189
229
 
230
+
231
+
232
+ @sp_endpoint("/service/v1/serviceJobs/{}/appointments/{}", method="POST")
233
+ async def reschedule_appointment_for_service_job_by_service_job_id_post(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse:
234
+ """
235
+ reschedule_appointment_for_service_job_by_service_job_id_post(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse
236
+
237
+ Reschedules an appointment for the service job indicated by the service job identifier specified.
238
+
239
+ **Usage Plan:**
240
+
241
+ ====================================== ==============
242
+ Rate (requests per second) Burst
243
+ ====================================== ==============
244
+ 5 20
245
+ ====================================== ==============
246
+
247
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
248
+
249
+ Examples:
250
+ literal blocks::
251
+
252
+ await Services().reschedule_appointment_for_service_job_by_service_job_id_post("value", "value")
253
+
254
+ Args:
255
+ serviceJobId: object | required An Amazon defined service job identifier.
256
+ appointmentId: object | required An existing appointment identifier for the Service Job.
257
+ body: RescheduleAppointmentRequest | required Reschedule appointment operation input details.
258
+
259
+ Returns:
260
+ ApiResponse
261
+ """
262
+ return await self._request(fill_query_params(kwargs.pop("path"), serviceJobId, appointmentId), data=kwargs)
263
+
264
+ @sp_endpoint("/service/v1/serviceJobs/{}/appointments/{}/resources", method="PUT")
265
+ async def assign_appointment_resources(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse:
266
+ """
267
+ assign_appointment_resources(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse
268
+
269
+ Assigns new resource(s) or overwrite/update the existing one(s) to a service job appointment.
270
+
190
271
  **Usage Plan:**
272
+
273
+ ====================================== ==============
274
+ Rate (requests per second) Burst
275
+ ====================================== ==============
276
+ 1 2
277
+ ====================================== ==============
278
+
279
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
280
+
281
+ Examples:
282
+ literal blocks::
283
+
284
+ await Services().assign_appointment_resources("value", "value")
285
+
286
+ Args:
287
+ serviceJobId: object | required An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API.
288
+ appointmentId: object | required An Amazon-defined identifier of active service job appointment.
289
+ body: AssignAppointmentResourcesRequest | required
290
+
291
+ Returns:
292
+ ApiResponse
293
+ """
294
+ return await self._request(fill_query_params(kwargs.pop("path"), serviceJobId, appointmentId), data=kwargs)
191
295
 
296
+ @sp_endpoint("/service/v1/serviceJobs/{}/appointments/{}/fulfillment", method="PUT")
297
+ async def set_appointment_fulfillment_data(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse:
298
+ """
299
+ set_appointment_fulfillment_data(self, serviceJobId, appointmentId, **kwargs) -> ApiResponse
300
+
301
+ Updates the appointment fulfillment data related to a given `jobID` and `appointmentID`.
302
+
303
+ **Usage Plan:**
304
+
192
305
  ====================================== ==============
193
306
  Rate (requests per second) Burst
194
307
  ====================================== ==============
195
308
  5 20
196
309
  ====================================== ==============
310
+
311
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
312
+
313
+ Examples:
314
+ literal blocks::
315
+
316
+ await Services().set_appointment_fulfillment_data("value", "value")
317
+
318
+ Args:
319
+ serviceJobId: object | required An Amazon-defined service job identifier. Get this value by calling the `getServiceJobs` operation of the Services API.
320
+ appointmentId: object | required An Amazon-defined identifier of active service job appointment.
321
+ body: SetAppointmentFulfillmentDataRequest | required Appointment fulfillment data collection details.
322
+
323
+ Returns:
324
+ ApiResponse
325
+ """
326
+ return await self._request(fill_query_params(kwargs.pop("path"), serviceJobId, appointmentId), data=kwargs)
197
327
 
328
+ @sp_endpoint("/service/v1/serviceResources/{}/capacity/range", method="POST")
329
+ async def get_range_slot_capacity(self, resourceId, **kwargs) -> ApiResponse:
330
+ """
331
+ get_range_slot_capacity(self, resourceId, **kwargs) -> ApiResponse
332
+
333
+ Provides capacity slots in a format similar to availability records.
334
+
335
+ **Usage Plan:**
336
+
337
+ ====================================== ==============
338
+ Rate (requests per second) Burst
339
+ ====================================== ==============
340
+ 5 20
341
+ ====================================== ==============
342
+
198
343
  For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
344
+
345
+ Examples:
346
+ literal blocks::
347
+
348
+ await Services().get_range_slot_capacity("value")
349
+
350
+ Args:
351
+ resourceId: object | required Resource Identifier.
352
+ body: RangeSlotCapacityQuery | required Request body.
353
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
354
+ key nextPageToken: object | Next page token returned in the response of your previous request.
355
+
356
+ Returns:
357
+ ApiResponse
358
+ """
359
+ return await self._request(fill_query_params(kwargs.pop("path"), resourceId), data=kwargs)
199
360
 
361
+ @sp_endpoint("/service/v1/serviceResources/{}/capacity/fixed", method="POST")
362
+ async def get_fixed_slot_capacity(self, resourceId, **kwargs) -> ApiResponse:
363
+ """
364
+ get_fixed_slot_capacity(self, resourceId, **kwargs) -> ApiResponse
365
+
366
+ Provides capacity in fixed-size slots.
367
+
368
+ **Usage Plan:**
369
+
370
+ ====================================== ==============
371
+ Rate (requests per second) Burst
372
+ ====================================== ==============
373
+ 5 20
374
+ ====================================== ==============
375
+
376
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
377
+
378
+ Examples:
379
+ literal blocks::
380
+
381
+ await Services().get_fixed_slot_capacity("value")
382
+
200
383
  Args:
201
- serviceJobId:string | * REQUIRED An Amazon defined service job identifier.
202
- appointmentId:string | * REQUIRED An existing appointment identifier for the Service Job.
203
- kwargs: Example | >>>
204
- {
205
- "appointmentTime": {
206
- "startTime": "2019-08-24T14:15:22Z",
207
- "durationInMinutes": 0
208
- },
209
- "rescheduleReasonCode": "string"
210
- }
384
+ resourceId: object | required Resource Identifier.
385
+ body: FixedSlotCapacityQuery | required Request body.
386
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
387
+ key nextPageToken: object | Next page token returned in the response of your previous request.
388
+
389
+ Returns:
390
+ ApiResponse
391
+ """
392
+ return await self._request(fill_query_params(kwargs.pop("path"), resourceId), data=kwargs)
211
393
 
394
+ @sp_endpoint("/service/v1/serviceResources/{}/schedules", method="PUT")
395
+ async def update_schedule(self, resourceId, **kwargs) -> ApiResponse:
396
+ """
397
+ update_schedule(self, resourceId, **kwargs) -> ApiResponse
398
+
399
+ Update the schedule of the given resource.
400
+
401
+ **Usage Plan:**
402
+
403
+ ====================================== ==============
404
+ Rate (requests per second) Burst
405
+ ====================================== ==============
406
+ 5 20
407
+ ====================================== ==============
408
+
409
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
410
+
411
+ Examples:
412
+ literal blocks::
413
+
414
+ await Services().update_schedule("value")
415
+
416
+ Args:
417
+ resourceId: object | required Resource (store) Identifier
418
+ body: UpdateScheduleRequest | required Schedule details
419
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
420
+
212
421
  Returns:
213
- ApiResponse:
422
+ ApiResponse
214
423
  """
424
+ return await self._request(fill_query_params(kwargs.pop("path"), resourceId), data=kwargs)
215
425
 
216
- return await self._request(
217
- fill_query_params(kwargs.pop("path"), serviceJobId), data=kwargs
218
- )
426
+ @sp_endpoint("/service/v1/reservation", method="POST")
427
+ async def create_reservation(self, **kwargs) -> ApiResponse:
428
+ """
429
+ create_reservation(self, **kwargs) -> ApiResponse
430
+
431
+ Create a reservation.
432
+
433
+ **Usage Plan:**
434
+
435
+ ====================================== ==============
436
+ Rate (requests per second) Burst
437
+ ====================================== ==============
438
+ 5 20
439
+ ====================================== ==============
440
+
441
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
442
+
443
+ Examples:
444
+ literal blocks::
445
+
446
+ await Services().create_reservation()
447
+
448
+ Args:
449
+ body: CreateReservationRequest | required Reservation details
450
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
451
+
452
+ Returns:
453
+ ApiResponse
454
+ """
455
+ return await self._request(kwargs.pop("path"), data=kwargs)
456
+
457
+ @sp_endpoint("/service/v1/reservation/{}", method="PUT")
458
+ async def update_reservation(self, reservationId, **kwargs) -> ApiResponse:
459
+ """
460
+ update_reservation(self, reservationId, **kwargs) -> ApiResponse
461
+
462
+ Update a reservation.
463
+
464
+ **Usage Plan:**
465
+
466
+ ====================================== ==============
467
+ Rate (requests per second) Burst
468
+ ====================================== ==============
469
+ 5 20
470
+ ====================================== ==============
471
+
472
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
473
+
474
+ Examples:
475
+ literal blocks::
476
+
477
+ await Services().update_reservation("value")
478
+
479
+ Args:
480
+ reservationId: object | required Reservation Identifier
481
+ body: UpdateReservationRequest | required Reservation details
482
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
483
+
484
+ Returns:
485
+ ApiResponse
486
+ """
487
+ return await self._request(fill_query_params(kwargs.pop("path"), reservationId), data=kwargs)
488
+
489
+ @sp_endpoint("/service/v1/reservation/{}", method="DELETE")
490
+ async def cancel_reservation(self, reservationId, **kwargs) -> ApiResponse:
491
+ """
492
+ cancel_reservation(self, reservationId, **kwargs) -> ApiResponse
493
+
494
+ Cancel a reservation.
495
+
496
+ **Usage Plan:**
497
+
498
+ ====================================== ==============
499
+ Rate (requests per second) Burst
500
+ ====================================== ==============
501
+ 5 20
502
+ ====================================== ==============
503
+
504
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
505
+
506
+ Examples:
507
+ literal blocks::
508
+
509
+ await Services().cancel_reservation("value")
510
+
511
+ Args:
512
+ reservationId: object | required Reservation Identifier
513
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
514
+
515
+ Returns:
516
+ ApiResponse
517
+ """
518
+ return await self._request(fill_query_params(kwargs.pop("path"), reservationId), params=kwargs)
519
+
520
+ @sp_endpoint("/service/v1/serviceJobs/{}/appointmentSlots", method="GET")
521
+ async def get_appointmment_slots_by_job_id(self, serviceJobId, **kwargs) -> ApiResponse:
522
+ """
523
+ get_appointmment_slots_by_job_id(self, serviceJobId, **kwargs) -> ApiResponse
524
+
525
+ Gets appointment slots for the service associated with the service job id specified.
526
+
527
+ **Usage Plan:**
528
+
529
+ ====================================== ==============
530
+ Rate (requests per second) Burst
531
+ ====================================== ==============
532
+ 5 20
533
+ ====================================== ==============
534
+
535
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
536
+
537
+ Examples:
538
+ literal blocks::
539
+
540
+ await Services().get_appointmment_slots_by_job_id("value")
541
+
542
+ Args:
543
+ serviceJobId: object | required A service job identifier to retrive appointment slots for associated service.
544
+ key marketplaceIds: object | required An identifier for the marketplace in which the resource operates.
545
+ key startTime: object | A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration.
546
+ key endTime: object | A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
547
+
548
+ Returns:
549
+ ApiResponse
550
+ """
551
+ return await self._request(fill_query_params(kwargs.pop("path"), serviceJobId), params=kwargs)
552
+
553
+ @sp_endpoint("/service/v1/appointmentSlots", method="GET")
554
+ async def get_appointment_slots(self, **kwargs) -> ApiResponse:
555
+ """
556
+ get_appointment_slots(self, **kwargs) -> ApiResponse
557
+
558
+ Gets appointment slots as per the service context specified.
559
+
560
+ **Usage Plan:**
561
+
562
+ ====================================== ==============
563
+ Rate (requests per second) Burst
564
+ ====================================== ==============
565
+ 20 40
566
+ ====================================== ==============
567
+
568
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
569
+
570
+ Examples:
571
+ literal blocks::
572
+
573
+ await Services().get_appointment_slots()
574
+
575
+ Args:
576
+ key asin: object | required ASIN associated with the service.
577
+ key storeId: object | required Store identifier defining the region scope to retrive appointment slots.
578
+ key marketplaceIds: object | required An identifier for the marketplace for which appointment slots are queried
579
+ key startTime: object | A time from which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `startTime` is provided, `endTime` should also be provided. Default value is as per business configuration.
580
+ key endTime: object | A time up to which the appointment slots will be retrieved. The specified time must be in ISO 8601 format. If `endTime` is provided, `startTime` should also be provided. Default value is as per business configuration. Maximum range of appointment slots can be 90 days.
581
+
582
+ Returns:
583
+ ApiResponse
584
+ """
585
+ return await self._request(kwargs.pop("path"), params=kwargs)
586
+
587
+ @sp_endpoint("/service/v1/documents", method="POST")
588
+ async def create_service_document_upload_destination(self, **kwargs) -> ApiResponse:
589
+ """
590
+ create_service_document_upload_destination(self, **kwargs) -> ApiResponse
591
+
592
+ Creates an upload destination.
593
+
594
+ **Usage Plan:**
595
+
596
+ ====================================== ==============
597
+ Rate (requests per second) Burst
598
+ ====================================== ==============
599
+ 5 20
600
+ ====================================== ==============
601
+
602
+ For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
603
+
604
+ Examples:
605
+ literal blocks::
606
+
607
+ await Services().create_service_document_upload_destination()
608
+
609
+ Args:
610
+ body: ServiceUploadDocument | required Upload document operation input details.
611
+
612
+ Returns:
613
+ ApiResponse
614
+ """
615
+ return await self._request(kwargs.pop("path"), data=kwargs)
File without changes