Skip to content

Commit a24944c

Browse files
mafgegithub-actions[bot]
authored andcommitted
Update JavaScript SDK
1 parent c68a201 commit a24944c

22 files changed

+677
-3
lines changed

javascript/sdk/src/fulfillmentoutbound_v2020_07_01/api/FbaOutboundApi.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ export class FbaOutboundApi {
6060
* @return {Promise<CreateFulfillmentReturnResponse>}
6161
*/
6262
createFulfillmentReturn(sellerFulfillmentOrderId: string, body: CreateFulfillmentReturnRequest): Promise<CreateFulfillmentReturnResponse>;
63+
/**
64+
* Returns fast delivery estimates for Product Detail and Collection pages, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
65+
* @param {GetDeliveryOfferingsRequest} body GetDeliveryOfferingsRequest parameter
66+
* @return {Promise<GetDeliveryOfferingsResponse>}
67+
*/
68+
deliveryOfferingsWithHttpInfo(body: GetDeliveryOfferingsRequest): Promise<GetDeliveryOfferingsResponse>;
69+
/**
70+
* Returns fast delivery estimates for Product Detail and Collection pages, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
71+
* @param {GetDeliveryOfferingsRequest} body GetDeliveryOfferingsRequest parameter
72+
* @return {Promise<GetDeliveryOfferingsResponse>}
73+
*/
74+
deliveryOfferings(body: GetDeliveryOfferingsRequest): Promise<GetDeliveryOfferingsResponse>;
6375
/**
6476
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
6577
* @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter
@@ -247,6 +259,8 @@ import { CreateFulfillmentOrderRequest } from '../model/CreateFulfillmentOrderRe
247259
import { CreateFulfillmentOrderResponse } from '../model/CreateFulfillmentOrderResponse.js';
248260
import { CreateFulfillmentReturnRequest } from '../model/CreateFulfillmentReturnRequest.js';
249261
import { CreateFulfillmentReturnResponse } from '../model/CreateFulfillmentReturnResponse.js';
262+
import { GetDeliveryOfferingsRequest } from '../model/GetDeliveryOfferingsRequest.js';
263+
import { GetDeliveryOfferingsResponse } from '../model/GetDeliveryOfferingsResponse.js';
250264
import { GetDeliveryOffersRequest } from '../model/GetDeliveryOffersRequest.js';
251265
import { GetDeliveryOffersResponse } from '../model/GetDeliveryOffersResponse.js';
252266
import { GetFeatureInventoryResponse } from '../model/GetFeatureInventoryResponse.js';

javascript/sdk/src/fulfillmentoutbound_v2020_07_01/api/FbaOutboundApi.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/sdk/src/fulfillmentoutbound_v2020_07_01/api/FbaOutboundApi.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import { CreateFulfillmentOrderRequest } from '../model/CreateFulfillmentOrderRe
1717
import { CreateFulfillmentOrderResponse } from '../model/CreateFulfillmentOrderResponse.js'
1818
import { CreateFulfillmentReturnRequest } from '../model/CreateFulfillmentReturnRequest.js'
1919
import { CreateFulfillmentReturnResponse } from '../model/CreateFulfillmentReturnResponse.js'
20+
import { GetDeliveryOfferingsRequest } from '../model/GetDeliveryOfferingsRequest.js'
21+
import { GetDeliveryOfferingsResponse } from '../model/GetDeliveryOfferingsResponse.js'
2022
import { GetDeliveryOffersRequest } from '../model/GetDeliveryOffersRequest.js'
2123
import { GetDeliveryOffersResponse } from '../model/GetDeliveryOffersResponse.js'
2224
import { GetFeatureInventoryResponse } from '../model/GetFeatureInventoryResponse.js'
@@ -66,6 +68,7 @@ export class FbaOutboundApi {
6668
'FbaOutboundApi-cancelFulfillmentOrder',
6769
'FbaOutboundApi-createFulfillmentOrder',
6870
'FbaOutboundApi-createFulfillmentReturn',
71+
'FbaOutboundApi-deliveryOfferings',
6972
'FbaOutboundApi-deliveryOffers',
7073
'FbaOutboundApi-getFeatureInventory',
7174
'FbaOutboundApi-getFeatureSKU',
@@ -237,6 +240,51 @@ export class FbaOutboundApi {
237240
})
238241
}
239242

243+
/**
244+
* Returns fast delivery estimates for Product Detail and Collection pages, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
245+
* @param {GetDeliveryOfferingsRequest} body GetDeliveryOfferingsRequest parameter
246+
* @return {Promise<GetDeliveryOfferingsResponse>}
247+
*/
248+
deliveryOfferingsWithHttpInfo (body) {
249+
const postBody = body
250+
251+
// verify the required parameter 'body' is set
252+
if (body === undefined || body === null) {
253+
throw new Error("Missing the required parameter 'body' when calling deliveryOfferings")
254+
}
255+
256+
const pathParams = {
257+
}
258+
const queryParams = {
259+
}
260+
const headerParams = {
261+
}
262+
const formParams = {
263+
}
264+
265+
const contentTypes = ['application/json']
266+
const accepts = ['application/json', 'payload']
267+
const returnType = GetDeliveryOfferingsResponse
268+
269+
return this.apiClient.callApi('FbaOutboundApi-deliveryOfferings',
270+
'/fba/outbound/2020-07-01/deliveryOfferings', 'POST',
271+
pathParams, queryParams, headerParams, formParams, postBody,
272+
contentTypes, accepts, returnType, this.getRateLimiter('FbaOutboundApi-deliveryOfferings')
273+
)
274+
}
275+
276+
/**
277+
* Returns fast delivery estimates for Product Detail and Collection pages, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
278+
* @param {GetDeliveryOfferingsRequest} body GetDeliveryOfferingsRequest parameter
279+
* @return {Promise<GetDeliveryOfferingsResponse>}
280+
*/
281+
deliveryOfferings (body) {
282+
return this.deliveryOfferingsWithHttpInfo(body)
283+
.then(function (response_and_data) {
284+
return response_and_data.data
285+
})
286+
}
287+
240288
/**
241289
* Returns delivery options that include an estimated delivery date and offer expiration, based on criteria that you specify. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 5 | 30 | The &#x60;x-amzn-RateLimit-Limit&#x60; response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
242290
* @param {GetDeliveryOffersRequest} body GetDeliveryOffersRequest parameter

javascript/sdk/src/fulfillmentoutbound_v2020_07_01/index.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ import { DeliveryDocument } from './model/DeliveryDocument.js';
1717
import { DeliveryInformation } from './model/DeliveryInformation.js';
1818
import { DeliveryMessage } from './model/DeliveryMessage.js';
1919
import { DeliveryOffer } from './model/DeliveryOffer.js';
20+
import { DeliveryOffering } from './model/DeliveryOffering.js';
2021
import { DeliveryPolicy } from './model/DeliveryPolicy.js';
2122
import { DeliveryPreferences } from './model/DeliveryPreferences.js';
23+
import { DeliveryQuantity } from './model/DeliveryQuantity.js';
2224
import { DeliveryWindow } from './model/DeliveryWindow.js';
2325
import { Destination } from './model/Destination.js';
2426
import { DropOffLocation } from './model/DropOffLocation.js';
@@ -40,6 +42,9 @@ import { FulfillmentReturnItemStatus } from './model/FulfillmentReturnItemStatus
4042
import { FulfillmentShipment } from './model/FulfillmentShipment.js';
4143
import { FulfillmentShipmentItem } from './model/FulfillmentShipmentItem.js';
4244
import { FulfillmentShipmentPackage } from './model/FulfillmentShipmentPackage.js';
45+
import { GetDeliveryOfferingsRequest } from './model/GetDeliveryOfferingsRequest.js';
46+
import { GetDeliveryOfferingsResponse } from './model/GetDeliveryOfferingsResponse.js';
47+
import { GetDeliveryOfferingsResult } from './model/GetDeliveryOfferingsResult.js';
4348
import { GetDeliveryOffersProduct } from './model/GetDeliveryOffersProduct.js';
4449
import { GetDeliveryOffersRequest } from './model/GetDeliveryOffersRequest.js';
4550
import { GetDeliveryOffersResponse } from './model/GetDeliveryOffersResponse.js';
@@ -88,5 +93,5 @@ import { UpdateFulfillmentOrderResponse } from './model/UpdateFulfillmentOrderRe
8893
import { VariablePrecisionAddress } from './model/VariablePrecisionAddress.js';
8994
import { Weight } from './model/Weight.js';
9095
import { FbaOutboundApi } from './api/FbaOutboundApi.js';
91-
export { ApiClient, AdditionalLocationInfo, Address, Amount, CODSettings, CancelFulfillmentOrderResponse, CreateFulfillmentOrderItem, CreateFulfillmentOrderRequest, CreateFulfillmentOrderResponse, CreateFulfillmentReturnRequest, CreateFulfillmentReturnResponse, CreateFulfillmentReturnResult, CreateReturnItem, CurrentStatus, DateRange, DeliveryDocument, DeliveryInformation, DeliveryMessage, DeliveryOffer, DeliveryPolicy, DeliveryPreferences, DeliveryWindow, Destination, DropOffLocation, Error, EventCode, Feature, FeatureSettings, FeatureSku, Fee, FulfillmentAction, FulfillmentOrder, FulfillmentOrderItem, FulfillmentOrderStatus, FulfillmentPolicy, FulfillmentPreview, FulfillmentPreviewItem, FulfillmentPreviewShipment, FulfillmentReturnItemStatus, FulfillmentShipment, FulfillmentShipmentItem, FulfillmentShipmentPackage, GetDeliveryOffersProduct, GetDeliveryOffersRequest, GetDeliveryOffersResponse, GetDeliveryOffersResult, GetDeliveryOffersTerms, GetFeatureInventoryResponse, GetFeatureInventoryResult, GetFeatureSkuResponse, GetFeatureSkuResult, GetFeaturesResponse, GetFeaturesResult, GetFulfillmentOrderResponse, GetFulfillmentOrderResult, GetFulfillmentPreviewItem, GetFulfillmentPreviewRequest, GetFulfillmentPreviewResponse, GetFulfillmentPreviewResult, GetPackageTrackingDetailsResponse, InvalidItemReason, InvalidItemReasonCode, InvalidReturnItem, ListAllFulfillmentOrdersResponse, ListAllFulfillmentOrdersResult, ListReturnReasonCodesResponse, ListReturnReasonCodesResult, LockerDetails, Money, Origin, PackageTrackingDetails, PaymentInformation, ProductIdentifier, ReasonCodeDetails, ReturnAuthorization, ReturnItem, ReturnItemDisposition, ScheduledDeliveryInfo, ShippingSpeedCategory, SubmitFulfillmentOrderStatusUpdateRequest, SubmitFulfillmentOrderStatusUpdateResponse, TrackingAddress, TrackingEvent, UnfulfillablePreviewItem, UpdateFulfillmentOrderItem, UpdateFulfillmentOrderRequest, UpdateFulfillmentOrderResponse, VariablePrecisionAddress, Weight, FbaOutboundApi };
96+
export { ApiClient, AdditionalLocationInfo, Address, Amount, CODSettings, CancelFulfillmentOrderResponse, CreateFulfillmentOrderItem, CreateFulfillmentOrderRequest, CreateFulfillmentOrderResponse, CreateFulfillmentReturnRequest, CreateFulfillmentReturnResponse, CreateFulfillmentReturnResult, CreateReturnItem, CurrentStatus, DateRange, DeliveryDocument, DeliveryInformation, DeliveryMessage, DeliveryOffer, DeliveryOffering, DeliveryPolicy, DeliveryPreferences, DeliveryQuantity, DeliveryWindow, Destination, DropOffLocation, Error, EventCode, Feature, FeatureSettings, FeatureSku, Fee, FulfillmentAction, FulfillmentOrder, FulfillmentOrderItem, FulfillmentOrderStatus, FulfillmentPolicy, FulfillmentPreview, FulfillmentPreviewItem, FulfillmentPreviewShipment, FulfillmentReturnItemStatus, FulfillmentShipment, FulfillmentShipmentItem, FulfillmentShipmentPackage, GetDeliveryOfferingsRequest, GetDeliveryOfferingsResponse, GetDeliveryOfferingsResult, GetDeliveryOffersProduct, GetDeliveryOffersRequest, GetDeliveryOffersResponse, GetDeliveryOffersResult, GetDeliveryOffersTerms, GetFeatureInventoryResponse, GetFeatureInventoryResult, GetFeatureSkuResponse, GetFeatureSkuResult, GetFeaturesResponse, GetFeaturesResult, GetFulfillmentOrderResponse, GetFulfillmentOrderResult, GetFulfillmentPreviewItem, GetFulfillmentPreviewRequest, GetFulfillmentPreviewResponse, GetFulfillmentPreviewResult, GetPackageTrackingDetailsResponse, InvalidItemReason, InvalidItemReasonCode, InvalidReturnItem, ListAllFulfillmentOrdersResponse, ListAllFulfillmentOrdersResult, ListReturnReasonCodesResponse, ListReturnReasonCodesResult, LockerDetails, Money, Origin, PackageTrackingDetails, PaymentInformation, ProductIdentifier, ReasonCodeDetails, ReturnAuthorization, ReturnItem, ReturnItemDisposition, ScheduledDeliveryInfo, ShippingSpeedCategory, SubmitFulfillmentOrderStatusUpdateRequest, SubmitFulfillmentOrderStatusUpdateResponse, TrackingAddress, TrackingEvent, UnfulfillablePreviewItem, UpdateFulfillmentOrderItem, UpdateFulfillmentOrderRequest, UpdateFulfillmentOrderResponse, VariablePrecisionAddress, Weight, FbaOutboundApi };
9297
//# sourceMappingURL=index.d.ts.map

0 commit comments

Comments
 (0)