import { Amazon } from "./amazon.type"; export declare namespace AmazonOrders { interface GetOrderParams { amazonOrderId: string[]; } interface GetOrderResponse { nextToken?: string; orders?: { order: Order[]; }; } interface ListOrdersByNextTokenParams { nextToken: string; } interface ListOrdersByNextTokenResponse extends ListOrdersResponse { } type ListOrdersParams = ListOrdersParams1 | ListOrdersParams2 | ListOrdersParams3 | ListOrdersParams4; interface ListOrdersParamsCommon { marketplaceId: string[]; maxResultsPerPage?: Amazon.IntType; easyShipShipmentStatus?: Amazon.EasyShipShipmentStatus; } interface ListOrdersParams1 extends ListOrdersParamsCommon { buyerEmail: string; } interface ListOrdersParams2 extends ListOrdersParamsCommon { sellerOrderId: string; } interface ListOrdersParams3 extends ListOrdersParamsCommon { lastUpdatedAfter: Date; lastUpdatedBefore?: Date; orderStatus?: Amazon.OrderStatus[]; fulfillmentChannel?: Amazon.FulfillmentChannel; paymentMethod?: Amazon.PaymentMethod[]; } interface ListOrdersParams4 extends ListOrdersParamsCommon { createdAfter: Date; createdBefore?: Date; orderStatus?: Amazon.OrderStatus[]; fulfillmentChannel?: Amazon.FulfillmentChannel; paymentMethod?: Amazon.PaymentMethod[]; } interface ListOrdersResponse { nextToken?: string; lastUpdatedBefore?: Date; createdBefore?: Date; orders?: { order: Order[]; }; } interface ListOrderItemsParams { amazonOrderId: string; } interface ListOrderItemsResponse { nextToken?: string; amazonOrderId?: string; orderItems?: { orderItem: OrderItem[]; }; } interface ListOrderItemsByNextTokenParams { nextToken: string; } interface ListOrderItemsByNextTokenResponse extends ListOrderItemsResponse { } type ShipmentServiceLevelCategory = "Expedited" | "SecondDay" | "Standard" | "NextDay"; type PriceDesignation = "BusinessPrice"; type OrderType = "StandardOrder" | "Preorder" | "SourcingOnDemandOrder"; type EasyShipShipmentStatus = "PendingPickUp" | "LabelCanceled" | "PickedUp" | "OutForDelivery" | "Damaged" | "Delivered" | "RejectedByBuyer" | "Undeliverable" | "ReturnedToSeller" | "ReturningToSeller" | "Lost"; type ConditionSubtypeId = "New" | "Mint" | "Very Good" | "Good" | "Acceptable" | "Poor" | "Club" | "OEM" | "Warranty" | "Refurbished Warranty" | "Refurbished" | "Open Box" | "Any" | "Other"; interface Address { name: string; addressLine1?: string; addressLine2?: string; addressLine3?: string; city?: string; municipality?: string; county?: string; district?: string; stateOrRegion?: string; postalCode?: string; countryCode?: Amazon.CurrencyCode; phone?: string; addressType?: Amazon.AddressType; } interface BuyerCustomizedInfo { customizedURL: string; } interface BuyerTaxInfo { companyLegalName?: string; taxingRegion?: string; taxClassifications?: TaxClassication[]; } interface Order { amazonOrderId: string; purchaseDate: string; lastUpdateDate: string; orderStatus: Amazon.OrderStatus; buyerCounty?: string; buyerEmail?: string; buyerName?: string; buyerTaxInfo?: string; earliestDeliveryDate?: string; earliestShipDate?: string; easyShipShipmentStatus?: EasyShipShipmentStatus; fulfillmentChannel?: Amazon.FulfillmentChannel; isBusinessOrder?: Amazon.BooleanType; isEstimatedShipDateSet?: Amazon.BooleanType; isPremiumOrder?: Amazon.BooleanType; isPrime?: Amazon.BooleanType; isReplacementOrder?: Amazon.BooleanType; latestDeliveryDate?: Amazon.DateType; latestShipDate?: Amazon.DateType; marketplaceId?: string; numberOfItemsShipped?: Amazon.IntType; numberOfItemsUnshipped?: Amazon.IntType; orderTotal?: Amazon.Money; orderChannel?: string; orderType?: OrderType; paymentExecutionDetail?: PaymentExecutionDetailItem[]; paymentMethod?: Amazon.PaymentMethod; paymentMethodDetails?: PaymentMethodDetails; promiseResponseDueDate?: string; purchaseOrderNumber?: string; replacedOrderId?: string; salesChannel?: string; sellerOrderId?: string; shipServiceLevel?: Amazon.ShipServiceLevel; shipmentServiceLevelCategory?: ShipmentServiceLevelCategory; shippedByAmazonTFM?: string; shippingAddress?: Address; tfmShipmentStatus?: string; } interface OrderItem { asin: string; buyerCustomizedInfo?: BuyerCustomizedInfo; codFee?: Amazon.Money; codFeeDiscount?: Amazon.Money; codFeeDiscountTax?: Amazon.Money; conditionId?: Amazon.ListingCondition; conditionNote?: string; conditionSubtypeId?: ConditionSubtypeId; giftMessageText?: string; giftWrapLevel?: string; giftWrapPrice?: Amazon.Money; giftWrapTax?: Amazon.Money; isGift?: Amazon.BooleanType; isTransparency?: Amazon.BooleanType; itemPrice?: Amazon.Money; itemTax?: Amazon.Money; orderItemId: string; pointsGranted?: string; priceDesignation?: PriceDesignation; productInfo?: ProductInfo; promotionDiscount?: Amazon.Money; promotionDiscountTax?: Amazon.Money; promotionIds?: string[]; quantityOrdered: Amazon.IntType; quantityShipped?: Amazon.IntType; scheduledDeliveryEndDate?: Amazon.DateType; scheduledDeliveryStartDate?: Amazon.DateType; sellerSku?: string; serialNumberRequired?: Amazon.BooleanType; shippingDiscount?: Amazon.Money; shippingDiscountTax?: Amazon.Money; shippingPrice?: Amazon.Money; shippingTax?: Amazon.Money; taxCollection?: TaxCollection; title?: string; } interface PaymentExecutionDetailItem { payment: Amazon.Money; paymentMethod: "GC" | "COD" | "PointsAccount"; } interface PaymentMethodDetails { paymentMethodDetail?: string; } interface ProductInfo { numberOfItems: Amazon.IntType; } interface PointsGranted { pointsNumber?: Amazon.IntType; pointsMonetaryValue?: Amazon.Money; } interface TaxClassication { name: string; value: string; } interface TaxCollection { model: "MarketplaceFacilitator"; responsibleParty: "Amazon Services, Inc."; } interface TaxClassification { name: string; value: string; } }